Circle V2 API Docs
Preparing search index...
@repo/trpc
routers/audit-templates/index
auditTemplatesRouter
Variable auditTemplatesRouter
Const
auditTemplatesRouter
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
customReviewCriteriaPrompt
?:
string
;
customSummaryPrompt
?:
string
;
description
?:
string
;
name
:
string
;
questions
?:
{
question
:
string
;
questionOrder
:
number
;
questionType
:
"pass_fail"
|
"summary"
;
}
[]
;
}
;
meta
:
object
;
output
:
{
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
:
MutationProcedure
<
{
input
:
{
id
:
string
}
;
meta
:
object
;
output
:
{
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
:
MutationProcedure
<
{
input
:
{
id
:
string
}
;
meta
:
object
;
output
:
{
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
:
QueryProcedure
<
{
input
:
{
id
:
string
}
;
meta
:
object
;
output
:
{
auditTemplate
:
{
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
;
}
;
questions
:
{
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
...
}
|
null
;
id
:
AuditQuestionId
;
org_id
:
number
|
null
;
question
:
string
|
null
;
question_order
:
number
|
null
;
question_type
:
"pass_fail"
|
"summary"
;
share_with_org
:
boolean
|
null
;
shared_by
:
string
&
{
__brand
:
...
}
|
null
;
shared_with_entity_id
:
number
&
{
__brand
:
...
}
|
null
;
template_id
:
string
&
{
__brand
:
...
}
|
null
;
updated_at
:
string
&
{
__brand
:
...
}
|
null
;
}
[]
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
cursor
?:
number
;
limit
?:
number
;
offset
?:
number
;
search
?:
string
;
sortBy
?:
"name"
|
"created_at"
;
sortOrder
?:
"asc"
|
"desc"
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
{
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
;
}
,
>
;
}
,
>
;
toggleSharing
:
MutationProcedure
<
{
input
:
{
id
:
string
;
shared
:
boolean
}
;
meta
:
object
;
output
:
{
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
;
}
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
customReviewCriteriaPrompt
?:
string
|
null
;
customSummaryPrompt
?:
string
|
null
;
description
?:
string
|
null
;
id
:
string
;
name
?:
string
;
questions
?:
{
id
?:
string
;
question
:
string
;
questionOrder
:
number
;
questionType
:
"pass_fail"
|
"summary"
;
}
[]
;
}
;
meta
:
object
;
output
:
{
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...