Circle V2 API Docs
    Preparing search index...

    Variable auditQuestionsRepoConst

    auditQuestionsRepo: DbRepo<
        {
            create: (
                params: { question_type: "summary" | "pass_fail" } & {
                    additional_instructions?: string | null;
                    created_at?: DbDate;
                    created_by?: string & { __brand: "UserId" } | null;
                    id?: AuditQuestionId;
                    manual?: boolean;
                    org_id?: number | null;
                    question?: string | null;
                    question_order?: number | null;
                    share_with_org?: boolean | null;
                    shared_by?: string & { __brand: "UserId" } | null;
                    shared_with_entity_id?: number & { __brand: "EntityId" } | null;
                    template_id?: string & { __brand: "AuditTemplateId" } | null;
                    updated_at?: string & { __brand: "DbDate" } | null;
                },
            ) => Promise<
                {
                    additional_instructions: string
                    | null;
                    created_at: DbDate;
                    created_by: string & { __brand: "UserId" } | null;
                    id: AuditQuestionId;
                    manual: boolean;
                    org_id: number | null;
                    question: string | null;
                    question_order: number | null;
                    question_type: "summary" | "pass_fail";
                    share_with_org: boolean | null;
                    shared_by: string & { __brand: "UserId" } | null;
                    shared_with_entity_id: number & { __brand: "EntityId" } | null;
                    template_id: string & { __brand: "AuditTemplateId" } | null;
                    updated_at: string & { __brand: "DbDate" } | null;
                },
            >;
            delete: (
                id: AuditQuestionId,
            ) => Promise<
                {
                    additional_instructions: string
                    | null;
                    created_at: DbDate;
                    created_by: string & { __brand: "UserId" } | null;
                    id: AuditQuestionId;
                    manual: boolean;
                    org_id: number | null;
                    question: string | null;
                    question_order: number | null;
                    question_type: "summary" | "pass_fail";
                    share_with_org: boolean | null;
                    shared_by: string & { __brand: "UserId" } | null;
                    shared_with_entity_id: number & { __brand: "EntityId" } | null;
                    template_id: string & { __brand: "AuditTemplateId" } | null;
                    updated_at: string & { __brand: "DbDate" } | null;
                },
            >;
            getById: (
                id: AuditQuestionId,
            ) => Promise<
                {
                    additional_instructions: string
                    | null;
                    created_at: DbDate;
                    created_by: string & { __brand: "UserId" } | null;
                    id: AuditQuestionId;
                    manual: boolean;
                    org_id: number | null;
                    question: string | null;
                    question_order: number | null;
                    question_type: "summary" | "pass_fail";
                    share_with_org: boolean | null;
                    shared_by: string & { __brand: "UserId" } | null;
                    shared_with_entity_id: number & { __brand: "EntityId" } | null;
                    template_id: string & { __brand: "AuditTemplateId" } | null;
                    updated_at: string & { __brand: "DbDate" } | null;
                },
            >;
            listByTemplateId: (
                templateId: AuditTemplateId,
                options?: ListAuditQuestionsByTemplateIdOptions,
            ) => Promise<
                {
                    additional_instructions: string
                    | null;
                    created_at: DbDate;
                    created_by: string & { __brand: "UserId" } | null;
                    id: AuditQuestionId;
                    manual: boolean;
                    org_id: number | null;
                    question: string | null;
                    question_order: number | null;
                    question_type: "summary" | "pass_fail";
                    share_with_org: boolean | null;
                    shared_by: string & { __brand: "UserId" } | null;
                    shared_with_entity_id: number & { __brand: "EntityId" } | null;
                    template_id: string & { __brand: "AuditTemplateId" } | null;
                    updated_at: string & { __brand: "DbDate" } | null;
                }[],
            >;
            update: (
                id: AuditQuestionId,
                params: {
                    additional_instructions?: string | null;
                    created_at?: DbDate;
                    created_by?: string & { __brand: "UserId" } | null;
                    id?: AuditQuestionId;
                    manual?: boolean;
                    org_id?: number | null;
                    question?: string | null;
                    question_order?: number | null;
                    question_type?: "summary" | "pass_fail";
                    share_with_org?: boolean | null;
                    shared_by?: string & { __brand: "UserId" } | null;
                    shared_with_entity_id?: number & { __brand: "EntityId" } | null;
                    template_id?: string & { __brand: "AuditTemplateId" } | null;
                    updated_at?: string & { __brand: "DbDate" } | null;
                },
            ) => Promise<
                {
                    additional_instructions: string
                    | null;
                    created_at: DbDate;
                    created_by: string & { __brand: "UserId" } | null;
                    id: AuditQuestionId;
                    manual: boolean;
                    org_id: number | null;
                    question: string | null;
                    question_order: number | null;
                    question_type: "summary" | "pass_fail";
                    share_with_org: boolean | null;
                    shared_by: string & { __brand: "UserId" } | null;
                    shared_with_entity_id: number & { __brand: "EntityId" } | null;
                    template_id: string & { __brand: "AuditTemplateId" } | null;
                    updated_at: string & { __brand: "DbDate" } | null;
                },
            >;
        },
    > = ...