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

    Reads the admin auth tables, which the customer and bank dashboards and the email handler are granted; the user-shadow:* test is shadowAccessSql.

    Index
    instance: (...args: []) => DashboardStaffAdminService = ...

    The process service, on the shared database.

    • The staff principal for a cfx-admin login: the admin user with this sub, a cfx.to email and canShadowRead (so ACTIVE), matching adminUserId when given; null for anyone else.

      Parameters

      • __namedParameters: { adminUserId?: string; cognitoSub: string; email: string }
        • OptionaladminUserId?: string
        • cognitoSub: string
        • email: string

          The verified token's email: the admin pool's own IdP asserts it.

      Returns Promise<DashboardStaff | null>

    • Parameters

      • input: {
            cognitoSubs?: string[];
            ids?: string[];
            page?: number;
            pageSize?: number;
            statuses?: ("ACTIVE" | "DISABLED")[];
        }

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