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

    Memberships of IDENTITY workspaces: the one dashboard user who signs in as that person. Read them through IdentityDashboardWorkspaceAdminService.

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

    The process service, on the shared database.

    • Makes userId the workspace's member. An identity has one: a second user is refused, and the same user again is told they already are.

      Parameters

      • __namedParameters: {
            tx?: PgAsyncTransaction<NodePgQueryResultHKT, EmptyRelations>;
            userId: string;
            workspaceId: string;
        }

      Returns Promise<
          | {
              ok: true;
              value: {
                  createdAt: Date;
                  status: "ACTIVE"
                  | "DELETED"
                  | "DISABLED";
                  userId: string;
              };
          }
          | { error: ServiceError; ok: false },
      >