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

    Read-only access to related people across every customer.

    Hierarchy (View Summary)

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

    The process default: built from each dependency's own instance().

    • The people listed in an organization's AiPrise business-profile copy, for an organization with no related person rows. Only name, ownership, shares and active role names leave the query; items is empty when the organization is missing or deleted, has no profile copy, or the copy lists no people. At most AIPRISE_PROFILE_PEOPLE_MAX people.

      Parameters

      • __namedParameters: { organizationId: string }

      Returns Promise<
          {
              ok: true;
              value: { items: AiPriseProfilePerson[]; syncedAt: Date
              | null };
          },
      >

    • Parameters

      • args: RelatedPersonAdminSearchArgs & { withVerificationReasons: true }

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

    • Parameters

      • args: RelatedPersonAdminSearchArgs & { withVerificationReasons?: false }

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