Circle V2 API Docs
Preparing search index...
@repo/db
facilitiesRepo
Variable facilitiesRepo
Const
facilitiesRepo
:
DbRepo
<
{
countInOrganization
:
(
params
:
ListFacilitiesInOrganizationParams
,
)
=>
Promise
<
number
>
;
create
:
(
params
:
{
entityId
:
EntityId
;
name
:
string
}
,
)
=>
Promise
<
{
created_at
:
DbDate
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
;
id
:
FacilityId
;
name
:
string
;
timezone
:
string
|
null
;
updated_at
:
DbDate
;
}
,
>
;
createWithIntegration
:
(
params
:
CreateFacilityWithIntegrationParams
,
)
=>
Promise
<
{
facility
:
{
created_at
:
DbDate
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
;
id
:
FacilityId
;
name
:
string
;
timezone
:
string
|
null
;
updated_at
:
DbDate
;
}
;
integration
:
{
created_at
:
DbDate
;
created_by
:
string
|
null
;
credentials
:
|
{
access_id
:
string
;
app_id
:
string
;
location_id
:
number
;
location_name
?:
string
;
secret_key
:
string
;
}
|
{
bearer_token
:
string
;
location_ids
:
number
[]
;
location_name
?:
string
;
}
|
{
api_id
:
string
;
api_secret
:
string
;
location_name
?:
string
;
realm_id
:
string
;
service_facility_id
:
number
;
sunwave_email
:
string
;
}
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
;
facility_id
:
FacilityId
|
null
;
id
:
IntegrationId
;
label
:
string
|
null
;
last_sync
:
string
|
null
;
status
:
"error"
|
"active"
|
"inactive"
;
type
:
"kipu"
|
"lightningstep"
|
"sunwave"
;
updated_at
:
DbDate
;
}
;
}
,
>
;
delete
:
(
id
:
FacilityId
,
)
=>
Promise
<
{
created_at
:
DbDate
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
;
id
:
FacilityId
;
name
:
string
;
timezone
:
string
|
null
;
updated_at
:
DbDate
;
}
,
>
;
getById
:
(
id
:
FacilityId
,
)
=>
Promise
<
{
created_at
:
DbDate
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
;
id
:
FacilityId
;
name
:
string
;
timezone
:
string
|
null
;
updated_at
:
DbDate
;
}
,
>
;
listInOrganization
:
(
params
:
ListFacilitiesInOrganizationParams
,
)
=>
Promise
<
{
id
:
FacilityId
;
name
:
string
}
[]
>
;
listWithIntegrations
:
(
params
:
ListFacilitiesInOrganizationParams
,
)
=>
Promise
<
{
created_at
:
DbDate
;
id
:
FacilityId
;
integration_credentials
:
|
{
bearer_token
:
string
;
location_ids
:
number
[]
;
location_name
?:
string
;
}
|
{
api_id
:
string
;
api_secret
:
string
;
location_name
?:
string
;
realm_id
:
string
;
service_facility_id
:
number
;
sunwave_email
:
string
;
}
|
{
app_id
:
string
;
location_id
:
number
;
location_name
?:
string
}
|
null
;
integration_id
:
IntegrationId
|
null
;
integration_label
:
string
|
null
;
integration_status
:
"error"
|
"active"
|
"inactive"
|
null
;
integration_type
:
"kipu"
|
"lightningstep"
|
"sunwave"
|
null
;
last_sync
:
string
|
null
;
name
:
string
;
}
[]
,
>
;
listWithLevelsOfCare
:
(
entityId
:
EntityId
,
)
=>
Promise
<
FacilityWithLevelsOfCare
[]
>
;
update
:
(
id
:
FacilityId
,
params
:
UpdateFacilityParams
,
)
=>
Promise
<
{
created_at
:
DbDate
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
;
id
:
FacilityId
;
name
:
string
;
timezone
:
string
|
null
;
updated_at
:
DbDate
;
}
,
>
;
}
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...