Circle V2 API Docs
Preparing search index...
@repo/db
auditQuestionsRepo
Variable auditQuestionsRepo
Const
auditQuestionsRepo
:
DbRepo
<
{
create
:
(
params
:
{
question_type
:
"pass_fail"
|
"summary"
}
&
{
created_at
?:
DbDate
;
created_by
?:
string
&
{
__brand
:
"UserId"
}
|
null
;
id
?:
AuditQuestionId
;
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
<
{
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
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
:
"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
<
{
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
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
:
"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
,
)
=>
Promise
<
{
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
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
:
"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
:
{
created_at
?:
DbDate
;
created_by
?:
string
&
{
__brand
:
"UserId"
}
|
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
:
"UserId"
}
|
null
;
shared_with_entity_id
?:
number
&
{
__brand
:
"EntityId"
}
|
null
;
template_id
?:
string
&
{
__brand
:
"AuditTemplateId"
}
|
null
;
updated_at
?:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
)
=>
Promise
<
{
created_at
:
DbDate
;
created_by
:
string
&
{
__brand
:
"UserId"
}
|
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
:
"UserId"
}
|
null
;
shared_with_entity_id
:
number
&
{
__brand
:
"EntityId"
}
|
null
;
template_id
:
string
&
{
__brand
:
"AuditTemplateId"
}
|
null
;
updated_at
:
string
&
{
__brand
:
"DbDate"
}
|
null
;
}
,
>
;
}
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...