Circle V2 API Docs
Preparing search index...
@repo/db
auditTemplatesRepo
Variable auditTemplatesRepo
Const
auditTemplatesRepo
:
DbRepo
<
{
countAIQuestions
:
(
templateId
:
AuditTemplateId
,
)
=>
Promise
<
{
count
:
number
}
>
;
countInScope
:
(
params
:
AuditTemplatesListInScopeParams
)
=>
Promise
<
number
>
;
create
:
(
params
:
{}
&
{
created_at
?:
DbDate
;
created_by
?:
string
&
{
__brand
:
"UserId"
}
|
null
;
custom_review_criteria_prompt
?:
string
|
null
;
custom_summary_prompt
?:
string
|
null
;
description
?:
string
|
null
;
id
?:
AuditTemplateId
;
name
?:
string
|
null
;
org_id
?:
number
&
{
__brand
:
"EntityId"
}
|
null
;
share_with_org
?:
boolean
|
null
;
shared_by
?:
string
&
{
__brand
:
"UserId"
}
|
null
;
shared_with_entity_id
?:
number
&
{
__brand
:
"EntityId"
}
|
null
;
updated_at
?:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
)
=>
Promise
<
{
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
custom_review_criteria_prompt
:
string
|
null
;
custom_summary_prompt
:
string
|
null
;
description
:
string
|
null
;
id
:
AuditTemplateId
;
name
:
string
|
null
;
org_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
share_with_org
:
boolean
|
null
;
shared_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
shared_with_entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
>
;
delete
:
(
id
:
AuditTemplateId
,
)
=>
Promise
<
{
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
custom_review_criteria_prompt
:
string
|
null
;
custom_summary_prompt
:
string
|
null
;
description
:
string
|
null
;
id
:
AuditTemplateId
;
name
:
string
|
null
;
org_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
share_with_org
:
boolean
|
null
;
shared_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
shared_with_entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
>
;
duplicate
:
(
id
:
AuditTemplateId
,
userId
:
UserId
,
orgId
:
EntityId
,
)
=>
Promise
<
{
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
custom_review_criteria_prompt
:
string
|
null
;
custom_summary_prompt
:
string
|
null
;
description
:
string
|
null
;
id
:
AuditTemplateId
;
name
:
string
|
null
;
org_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
share_with_org
:
boolean
|
null
;
shared_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
shared_with_entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
>
;
getById
:
(
id
:
AuditTemplateId
,
)
=>
Promise
<
{
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
custom_review_criteria_prompt
:
string
|
null
;
custom_summary_prompt
:
string
|
null
;
description
:
string
|
null
;
id
:
AuditTemplateId
;
name
:
string
|
null
;
org_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
share_with_org
:
boolean
|
null
;
shared_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
shared_with_entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
>
;
getLabelsByIds
:
(
ids
:
AuditTemplateId
[]
,
)
=>
Promise
<
{
id
:
AuditTemplateId
;
name
:
string
|
null
}
[]
>
;
list
:
(
params
:
AuditTemplatesListParams
,
)
=>
Promise
<
{
items
:
{
created_at
:
DbDate
;
first_name
:
string
|
null
;
id
:
AuditTemplateId
;
last_name
:
string
|
null
;
name
:
string
|
null
;
org_name
:
string
|
null
;
question_count
:
number
|
null
;
}
[]
;
total
:
number
;
}
,
>
;
listCreators
:
(
params
:
{
limit
:
number
;
offset
:
number
;
search
?:
string
}
,
)
=>
Promise
<
{
items
:
{
first_name
:
string
|
null
;
last_name
:
string
|
null
;
user_id
:
UserId
;
}
[]
;
total
:
number
;
}
,
>
;
listForExport
:
(
params
?:
TemplateFilterParams
,
)
=>
Promise
<
{
created_at
:
DbDate
;
custom_review_criteria_prompt
:
string
|
null
;
custom_summary_prompt
:
string
|
null
;
description
:
string
|
null
;
id
:
AuditTemplateId
;
name
:
string
|
null
;
questions
:
{
additional_instructions
:
string
|
null
;
id
:
AuditQuestionId
;
manual
:
boolean
;
question
:
string
|
null
;
question_order
:
number
|
null
;
question_type
:
"summary"
|
"pass_fail"
;
}
[]
;
}
[]
,
>
;
listInScope
:
(
params
:
AuditTemplatesListInScopeParams
,
)
=>
Promise
<
{
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
custom_review_criteria_prompt
:
string
|
null
;
custom_summary_prompt
:
string
|
null
;
description
:
string
|
null
;
id
:
AuditTemplateId
;
name
:
string
|
null
;
org_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
question_count
:
number
|
null
;
share_with_org
:
boolean
|
null
;
triggers
:
{
enabled
:
boolean
;
id
:
ChartReviewTriggerId
;
name
:
string
}
[]
;
}
[]
,
>
;
setQuestions
:
(
templateId
:
AuditTemplateId
,
__namedParameters
:
SetAuditTemplateQuestionsParams
,
)
=>
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
:
AuditTemplateId
,
params
:
{
created_at
?:
DbDate
;
created_by
?:
string
&
{
__brand
:
"UserId"
}
|
null
;
custom_review_criteria_prompt
?:
string
|
null
;
custom_summary_prompt
?:
string
|
null
;
description
?:
string
|
null
;
id
?:
AuditTemplateId
;
name
?:
string
|
null
;
org_id
?:
number
&
{
__brand
:
"EntityId"
}
|
null
;
share_with_org
?:
boolean
|
null
;
shared_by
?:
string
&
{
__brand
:
"UserId"
}
|
null
;
shared_with_entity_id
?:
number
&
{
__brand
:
"EntityId"
}
|
null
;
updated_at
?:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
)
=>
Promise
<
{
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
custom_review_criteria_prompt
:
string
|
null
;
custom_summary_prompt
:
string
|
null
;
description
:
string
|
null
;
id
:
AuditTemplateId
;
name
:
string
|
null
;
org_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
share_with_org
:
boolean
|
null
;
shared_by
:
string
&
{
__brand
:
"UserId"
}
|
null
;
shared_with_entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
>
;
}
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...