Circle V2 API Docs
    Preparing search index...

    Variable formsRepoConst

    formsRepo: DbRepo<
        {
            archiveDeletable: (
                params: GetFormByIdEditableParams,
            ) => Promise<{ id: FormId }>;
            countAccessibleForUser: (params: FormVisibilityParams) => Promise<number>;
            create: (params: CreateFormParams) => Promise<{ id: FormId }>;
            getById: (
                params: GetFormByIdParams,
            ) => Promise<
                | {
                    annotation_count: number;
                    context: string
                    | null;
                    created_at: DbDate;
                    created_by: UserId | null;
                    default_font_size: string | null;
                    file_name: string | null;
                    file_url: string | null;
                    id: FormId;
                    org_id: number & { __brand: "EntityId" } | null;
                    share_with_org: boolean;
                    updated_at: DbDate | null;
                }
                | null,
            >;
            getByIdDeletable: (
                params: GetFormByIdEditableParams,
            ) => Promise<
                | {
                    annotation_count: number;
                    context: string
                    | null;
                    created_at: DbDate;
                    created_by: UserId | null;
                    default_font_size: string | null;
                    file_name: string | null;
                    file_url: string | null;
                    id: FormId;
                    org_id: number & { __brand: "EntityId" } | null;
                    share_with_org: boolean;
                    updated_at: DbDate | null;
                }
                | null,
            >;
            getByIdEditable: (
                params: GetFormByIdEditableParams,
            ) => Promise<
                | {
                    annotation_count: number;
                    context: string
                    | null;
                    created_at: DbDate;
                    created_by: UserId | null;
                    default_font_size: string | null;
                    file_name: string | null;
                    file_url: string | null;
                    id: FormId;
                    org_id: number & { __brand: "EntityId" } | null;
                    share_with_org: boolean;
                    updated_at: DbDate | null;
                }
                | null,
            >;
            listAccessibleForUser: (
                params: ListAccessibleFormsParams,
            ) => Promise<
                {
                    annotation_count: number;
                    context: string
                    | null;
                    created_at: DbDate;
                    created_by: UserId | null;
                    default_font_size: string | null;
                    file_name: string | null;
                    file_url: string | null;
                    id: FormId;
                    org_id: number & { __brand: "EntityId" } | null;
                    share_with_org: boolean;
                    updated_at: DbDate | null;
                }[],
            >;
            listRowPermissionsForForms: (
                params: FormEditabilityParams & { formIds: readonly FormId[] },
            ) => Promise<{ can_delete: boolean; can_edit: boolean; id: FormId }[]>;
            renameEditable: (
                params: RenameFormParams,
            ) => Promise<{ file_name: string | null; id: FormId }>;
            setOrgSharingEditable: (
                params: SetFormOrgSharingParams,
            ) => Promise<
                {
                    id: FormId;
                    org_id: number & { __brand: "EntityId" }
                    | null;
                    share_with_org: boolean;
                },
            >;
        },
    > = ...