Circle V2 API Docs
    Preparing search index...

    Variable profilesRepoConst

    profilesRepo: DbRepo<
        {
            countInOrganization: (
                params: ListProfilesInOrganizationParams,
            ) => Promise<number>;
            create: (
                params: { is_superadmin: boolean; profile_type: "external" | "user" } & {
                    clinic_size?: string | null;
                    created_at?: string | null;
                    customer_id?: string | null;
                    email?: string | null;
                    expectations?: string | null;
                    external_system?: "kipu" | "lightningstep" | "sunwave" | null;
                    external_system_id?: string | null;
                    first_name?: string | null;
                    hear_about_us?: string | null;
                    id?: ProfileId;
                    last_name?: string | null;
                    last_updated?: string | null;
                    price_id?: string | null;
                    session_limit?: string | null;
                    subscription_status?:
                        | "trial_ended"
                        | "trial_running"
                        | "active"
                        | "inactive"
                        | null;
                    title?: string
                    | null;
                    user_id?: string & { __brand: "UserId" } | null;
                    vertical?: string | null;
                },
            ) => Promise<
                {
                    clinic_size: string
                    | null;
                    created_at: string | null;
                    customer_id: string | null;
                    email: string | null;
                    expectations: string | null;
                    external_system: "kipu" | "lightningstep" | "sunwave" | null;
                    external_system_id: string | null;
                    first_name: string | null;
                    hear_about_us: string | null;
                    id: ProfileId;
                    is_superadmin: boolean;
                    last_name: string | null;
                    last_updated: string | null;
                    price_id: string | null;
                    profile_type: "external" | "user";
                    session_limit: string | null;
                    subscription_status:
                        | "trial_ended"
                        | "trial_running"
                        | "active"
                        | "inactive"
                        | null;
                    title: string
                    | null;
                    user_id: string & { __brand: "UserId" } | null;
                    vertical: string | null;
                },
            >;
            getByAuthUserId: (
                userId: UserId,
            ) => Promise<
                {
                    clinic_size: string
                    | null;
                    created_at: string | null;
                    customer_id: string | null;
                    email: string | null;
                    expectations: string | null;
                    external_system: "kipu" | "lightningstep" | "sunwave" | null;
                    external_system_id: string | null;
                    first_name: string | null;
                    hear_about_us: string | null;
                    id: ProfileId;
                    is_superadmin: boolean;
                    last_name: string | null;
                    last_updated: string | null;
                    price_id: string | null;
                    profile_type: "external" | "user";
                    session_limit: string | null;
                    subscription_status:
                        | "trial_ended"
                        | "trial_running"
                        | "active"
                        | "inactive"
                        | null;
                    title: string
                    | null;
                    user_id: string & { __brand: "UserId" } | null;
                    vertical: string | null;
                },
            >;
            getByEmail: (
                email: string,
            ) => Promise<
                | {
                    clinic_size: string
                    | null;
                    created_at: string | null;
                    customer_id: string | null;
                    email: string | null;
                    expectations: string | null;
                    external_system: "kipu" | "lightningstep" | "sunwave" | null;
                    external_system_id: string | null;
                    first_name: string | null;
                    hear_about_us: string | null;
                    id: ProfileId;
                    is_superadmin: boolean;
                    last_name: string | null;
                    last_updated: string | null;
                    price_id: string | null;
                    profile_type: "external" | "user";
                    session_limit: string | null;
                    subscription_status:
                        | "trial_ended"
                        | "trial_running"
                        | "active"
                        | "inactive"
                        | null;
                    title: string
                    | null;
                    user_id: string & { __brand: "UserId" } | null;
                    vertical: string | null;
                }
                | undefined,
            >;
            getById: (
                id: ProfileId,
            ) => Promise<
                {
                    clinic_size: string
                    | null;
                    created_at: string | null;
                    customer_id: string | null;
                    email: string | null;
                    expectations: string | null;
                    external_system: "kipu" | "lightningstep" | "sunwave" | null;
                    external_system_id: string | null;
                    first_name: string | null;
                    hear_about_us: string | null;
                    id: ProfileId;
                    is_superadmin: boolean;
                    last_name: string | null;
                    last_updated: string | null;
                    price_id: string | null;
                    profile_type: "external" | "user";
                    session_limit: string | null;
                    subscription_status:
                        | "trial_ended"
                        | "trial_running"
                        | "active"
                        | "inactive"
                        | null;
                    title: string
                    | null;
                    user_id: string & { __brand: "UserId" } | null;
                    vertical: string | null;
                },
            >;
            listByUserIds: (
                userIds: UserId[],
            ) => Promise<
                { id: ProfileId; user_id: string & { __brand: "UserId" }
                | null }[],
            >;
            listInOrganization: (
                params: ListProfilesInOrganizationParams,
            ) => Promise<
                {
                    first_name: string
                    | null;
                    id: ProfileId;
                    last_name: string | null;
                    title: string | null;
                }[],
            >;
            update: (
                id: ProfileId,
                params: {
                    clinic_size?: string | null;
                    created_at?: string | null;
                    customer_id?: string | null;
                    email?: string | null;
                    expectations?: string | null;
                    external_system?: "kipu" | "lightningstep" | "sunwave" | null;
                    external_system_id?: string | null;
                    first_name?: string | null;
                    hear_about_us?: string | null;
                    id?: ProfileId;
                    is_superadmin?: boolean;
                    last_name?: string | null;
                    last_updated?: string | null;
                    price_id?: string | null;
                    profile_type?: "external" | "user";
                    session_limit?: string | null;
                    subscription_status?:
                        | "trial_ended"
                        | "trial_running"
                        | "active"
                        | "inactive"
                        | null;
                    title?: string
                    | null;
                    user_id?: string & { __brand: "UserId" } | null;
                    vertical?: string | null;
                },
            ) => Promise<
                {
                    clinic_size: string
                    | null;
                    created_at: string | null;
                    customer_id: string | null;
                    email: string | null;
                    expectations: string | null;
                    external_system: "kipu" | "lightningstep" | "sunwave" | null;
                    external_system_id: string | null;
                    first_name: string | null;
                    hear_about_us: string | null;
                    id: ProfileId;
                    is_superadmin: boolean;
                    last_name: string | null;
                    last_updated: string | null;
                    price_id: string | null;
                    profile_type: "external" | "user";
                    session_limit: string | null;
                    subscription_status:
                        | "trial_ended"
                        | "trial_running"
                        | "active"
                        | "inactive"
                        | null;
                    title: string
                    | null;
                    user_id: string & { __brand: "UserId" } | null;
                    vertical: string | null;
                },
            >;
        },
    > = ...