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

    The reads of the role catalog and per-user permissions, needing only db; AdminDashboardRoleService adds the writes.

    Hierarchy (View Summary)

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

    The process service, on the shared database.

    • The permission keys the user's role grants, deduped and sorted; [] for no role. One query, for the per-request auth path (lib/auth.ts).

      Parameters

      • __namedParameters: { userId: string }

      Returns Promise<
          {
              ok: true;
              value: { permissionKeys: string[]; roleName: string
              | null };
          },
      >

    • Parameters

      • Optionalinput: {
            ids?: string[];
            names?: string[];
            page?: number;
            pageSize?: number;
            userIds?: string[];
        }
        • Optionalids?: string[]
        • Optionalnames?: string[]
        • Optionalpage?: number
        • OptionalpageSize?: number
        • OptionaluserIds?: string[]

          Roles held by any of these users.

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