Circle V2 API Docs
Preparing search index...
@repo/legacy
chart-review
AuditTemplatesRepo
Class AuditTemplatesRepo
Hierarchy (
View Summary
)
DbRepo
AuditTemplatesRepo
Index
Constructors
constructor
Properties
supabase
Methods
get
All
Templates
Visible
To
User
get
By
Id
get
Question
By
Id
list
with
Db
Constructors
constructor
new
AuditTemplatesRepo
(
options
:
DbRepoOptions
)
:
AuditTemplatesRepo
Parameters
options
:
DbRepoOptions
Returns
AuditTemplatesRepo
Properties
Protected
Readonly
supabase
supabase
:
SupabaseClient
<
Database
>
Methods
get
All
Templates
Visible
To
User
getAllTemplatesVisibleToUser
(
userId
:
string
,
)
:
Promise
<
{
audit_question
:
{
id
:
number
;
question
:
string
|
null
;
question_order
:
number
|
null
;
question_type
:
"pass_fail"
|
"summary"
;
}
[]
;
description
:
string
|
null
;
id
:
number
;
name
:
string
|
null
;
}
[]
,
>
Parameters
userId
:
string
Returns
Promise
<
{
audit_question
:
{
id
:
number
;
question
:
string
|
null
;
question_order
:
number
|
null
;
question_type
:
"pass_fail"
|
"summary"
;
}
[]
;
description
:
string
|
null
;
id
:
number
;
name
:
string
|
null
;
}
[]
,
>
get
By
Id
getById
(
id
:
number
,
)
:
Promise
<
{
audit_question
:
{
id
:
number
;
manual
:
boolean
;
question
:
string
|
null
;
question_order
:
number
|
null
;
question_type
:
"pass_fail"
|
"summary"
;
updated_at
:
string
|
null
;
}
[]
;
created_at
:
string
;
created_by
:
string
|
null
;
custom_review_criteria_prompt
:
string
|
null
;
custom_summary_prompt
:
string
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
|
null
;
org_id
:
number
|
null
;
share_with_org
:
boolean
|
null
;
shared_by
:
string
|
null
;
shared_with_entity_id
:
number
|
null
;
updated_at
:
string
|
null
;
}
,
>
Parameters
id
:
number
Returns
Promise
<
{
audit_question
:
{
id
:
number
;
manual
:
boolean
;
question
:
string
|
null
;
question_order
:
number
|
null
;
question_type
:
"pass_fail"
|
"summary"
;
updated_at
:
string
|
null
;
}
[]
;
created_at
:
string
;
created_by
:
string
|
null
;
custom_review_criteria_prompt
:
string
|
null
;
custom_summary_prompt
:
string
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
|
null
;
org_id
:
number
|
null
;
share_with_org
:
boolean
|
null
;
shared_by
:
string
|
null
;
shared_with_entity_id
:
number
|
null
;
updated_at
:
string
|
null
;
}
,
>
get
Question
By
Id
getQuestionById
(
questionId
:
number
,
)
:
Promise
<
{
id
:
number
;
question
:
string
|
null
;
question_type
:
"pass_fail"
|
"summary"
;
}
,
>
Parameters
questionId
:
number
Returns
Promise
<
{
id
:
number
;
question
:
string
|
null
;
question_type
:
"pass_fail"
|
"summary"
;
}
,
>
list
list
(
ids
:
number
[]
,
)
:
Promise
<
{
audit_question
:
{
id
:
number
;
question
:
string
|
null
;
question_order
:
number
|
null
;
question_type
:
"pass_fail"
|
"summary"
;
}
[]
;
created_at
:
string
;
created_by
:
string
|
null
;
custom_review_criteria_prompt
:
string
|
null
;
custom_summary_prompt
:
string
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
|
null
;
org_id
:
number
|
null
;
share_with_org
:
boolean
|
null
;
shared_by
:
string
|
null
;
shared_with_entity_id
:
number
|
null
;
updated_at
:
string
|
null
;
}
[]
,
>
Parameters
ids
:
number
[]
Returns
Promise
<
{
audit_question
:
{
id
:
number
;
question
:
string
|
null
;
question_order
:
number
|
null
;
question_type
:
"pass_fail"
|
"summary"
;
}
[]
;
created_at
:
string
;
created_by
:
string
|
null
;
custom_review_criteria_prompt
:
string
|
null
;
custom_summary_prompt
:
string
|
null
;
description
:
string
|
null
;
id
:
number
;
name
:
string
|
null
;
org_id
:
number
|
null
;
share_with_org
:
boolean
|
null
;
shared_by
:
string
|
null
;
shared_with_entity_id
:
number
|
null
;
updated_at
:
string
|
null
;
}
[]
,
>
with
Db
withDb
(
options
:
{
supabase
:
SupabaseClient
<
Database
>
}
)
:
this
Parameters
options
:
{
supabase
:
SupabaseClient
<
Database
>
}
Returns
this
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
supabase
Methods
get
All
Templates
Visible
To
User
get
By
Id
get
Question
By
Id
list
with
Db
Circle V2 API Docs
Loading...