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

    What a member of a customer's dashboard holds, read at call time. An internal role grants nothing. Only permissionsOf takes a caller; the rest answer about other members, so they check no permission.

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

    The process service, on the shared database.

    • The ACTIVE members of the customer who hold one of roleIds or are one of userIds, and hold every one of requiredKeys. Without roles and users, no one.

      Parameters

      • args: {
            customerId: string;
            page?: number;
            pageSize?: number;
            requiredKeys: string[];
            roleIds: string[];
            userIds: string[];
        }

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