Circle V2 API Docs
Preparing search index...
@repo/trpc
routers/facilities/index
facilitiesRouter
Variable facilitiesRouter
Const
facilitiesRouter
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
integration
?:
|
{
credentials
:
{
app_id
:
string
;
location_id
:
number
;
location_name
?:
string
;
}
;
type
:
"kipu"
;
}
|
{
credentials
:
{
bearer_token
:
string
;
location_ids
:
number
[]
;
location_name
?:
string
;
}
;
type
:
"lightningstep"
;
}
|
{
credentials
:
{
api_id
:
string
;
api_secret
:
string
;
location_name
?:
string
;
realm_id
:
string
;
service_facility_id
:
number
;
sunwave_email
:
string
;
}
;
type
:
"sunwave"
;
}
;
name
:
string
;
}
;
meta
:
object
;
output
:
|
{
created_at
:
DbDate
;
entity_id
:
number
&
{
__brand
:
"EntityId"
}
;
id
:
FacilityId
;
name
:
string
;
timezone
:
string
|
null
;
updated_at
:
DbDate
;
}
|
{
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
?:
(...)
|
(...)
;
secret_key
:
string
;
}
|
{
bearer_token
:
string
;
location_ids
:
(...)
[]
;
location_name
?:
(...)
|
(...)
;
}
|
{
api_id
:
string
;
api_secret
:
string
;
location_name
?:
(...)
|
(...)
;
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
:
"active"
|
"inactive"
|
"error"
;
type
:
"kipu"
|
"lightningstep"
|
"sunwave"
;
updated_at
:
DbDate
;
}
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
id
:
string
}
;
meta
:
object
;
output
:
{
success
:
boolean
}
}
,
>
;
listInOrganization
:
QueryProcedure
<
{
input
:
{
cursor
?:
number
;
limit
?:
number
;
offset
?:
number
;
search
?:
string
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
{
id
:
FacilityId
;
name
:
string
}
>
;
}
,
>
;
listWithIntegrations
:
QueryProcedure
<
{
input
:
{
cursor
?:
number
;
limit
?:
number
;
offset
?:
number
;
search
?:
string
;
}
;
meta
:
object
;
output
:
{
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
:
"active"
|
"inactive"
|
"error"
|
null
;
integration_type
:
"kipu"
|
"lightningstep"
|
"sunwave"
|
null
;
last_sync
:
string
|
null
;
name
:
string
;
}
[]
;
}
,
>
;
listWithLevelsOfCare
:
QueryProcedure
<
{
input
:
void
;
meta
:
object
;
output
:
FacilityWithLevelsOfCare
[]
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
id
:
string
;
integration
?:
|
{
credentials
:
{
app_id
:
string
;
location_id
:
number
;
location_name
?:
string
;
}
;
type
:
"kipu"
;
}
|
{
credentials
:
{
bearer_token
:
string
;
location_ids
:
number
[]
;
location_name
?:
string
;
}
;
type
:
"lightningstep"
;
}
|
{
credentials
:
{
api_id
:
string
;
api_secret
:
string
;
location_name
?:
string
;
realm_id
:
string
;
service_facility_id
:
number
;
sunwave_email
:
string
;
}
;
type
:
"sunwave"
;
}
;
name
:
string
;
}
;
meta
:
object
;
output
:
UpdateFacilityWithIntegrationResult
;
}
,
>
;
}
,
>
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...