@cfxlabsinc/b2b-services
    Preparing search index...

    The reads of admin dashboard users, needing only db; AdminDashboardUserService adds the writes.

    Hierarchy (View Summary)

    Index
    db: B2bDatabase
    instance: (...args: []) => AdminDashboardUserQueryService = ...

    The process service, on the shared database.

    • Parameters

      • Optionalinput: {
            cognitoSubs?: string[];
            ids?: string[];
            orderBy?: { direction: "ASC" | "DESC"; field: UserSortField }[];
            page?: number;
            pageSize?: number;
            query?: string;
            roleIds?: string[];
            statuses?: ("ACTIVE" | "DISABLED")[];
        }
        • OptionalcognitoSubs?: string[]
        • Optionalids?: string[]
        • OptionalorderBy?: { direction: "ASC" | "DESC"; field: UserSortField }[]

          Applied ahead of a stable id tiebreak; omitted, rows come in creation order. lastSeenAt sorts its ISO-8601 jsonb string, which is chronological.

        • Optionalpage?: number
        • OptionalpageSize?: number
        • Optionalquery?: string

          Case-insensitive substring of the email, first name or last name.

        • OptionalroleIds?: string[]
        • Optionalstatuses?: ("ACTIVE" | "DISABLED")[]

      Returns Promise<
          {
              ok: true;
              value: { hasNext: boolean; items: AdminDashboardUser[]; total: number };
          },
      >