Circle V2 API Docs
Preparing search index...
@repo/db
facilityProgramsRepo
Variable facilityProgramsRepo
Const
facilityProgramsRepo
:
DbRepo
<
{
ensureProgramExists
:
(
rows
:
(
{
entity_id
:
number
&
{
__brand
:
"EntityId"
}
;
external_id
:
string
;
facility_id
:
string
;
integration_id
:
string
;
name
:
string
;
}
&
{
created_at
?:
DbDate
;
external_created_at
?:
string
|
null
;
external_updated_at
?:
string
|
null
;
id
?:
FacilityProgramId
;
updated_at
?:
DbDate
;
}
)
[]
,
)
=>
Promise
<
{
created_at
:
DbDate
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
;
external_created_at
:
string
|
null
;
external_id
:
string
;
external_updated_at
:
string
|
null
;
facility_id
:
string
;
id
:
FacilityProgramId
;
integration_id
:
string
;
name
:
string
;
updated_at
:
DbDate
;
}
[]
,
>
;
getAllByEntityId
:
(
entityId
:
EntityId
,
)
=>
Promise
<
{
created_at
:
DbDate
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
;
external_created_at
:
string
|
null
;
external_id
:
string
;
external_updated_at
:
string
|
null
;
facility_id
:
string
;
id
:
FacilityProgramId
;
integration_id
:
string
;
name
:
string
;
updated_at
:
DbDate
;
}
[]
,
>
;
upsert
:
(
rows
:
(
{
entity_id
:
number
&
{
__brand
:
"EntityId"
}
;
external_id
:
string
;
facility_id
:
string
;
integration_id
:
string
;
name
:
string
;
}
&
{
created_at
?:
DbDate
;
external_created_at
?:
string
|
null
;
external_updated_at
?:
string
|
null
;
id
?:
FacilityProgramId
;
updated_at
?:
DbDate
;
}
)
[]
,
)
=>
Promise
<
{
created_at
:
DbDate
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
;
external_created_at
:
string
|
null
;
external_id
:
string
;
external_updated_at
:
string
|
null
;
facility_id
:
string
;
id
:
FacilityProgramId
;
integration_id
:
string
;
name
:
string
;
updated_at
:
DbDate
;
}
[]
,
>
;
}
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...