Circle V2 API Docs
Preparing search index...
@repo/trpc
routers/contacts/index
contactsRouter
Variable contactsRouter
Const
contactsRouter
:
BuiltRouter
<
{
ctx
:
TRPCContext
;
errorShape
:
DefaultErrorShape
;
meta
:
object
;
transformer
:
false
;
}
,
DecorateCreateRouterOptions
<
{
create
:
MutationProcedure
<
{
input
:
{
contactTypeId
?:
string
;
fieldValues
?:
{
key
:
string
;
value
:
string
}
[]
;
}
;
meta
:
object
;
output
:
{
contact_id
:
ContactId
;
contact_type
:
string
;
created_at
:
DbDate
;
created_by
:
string
|
null
;
org_id
:
number
;
}
;
}
,
>
;
delete
:
MutationProcedure
<
{
input
:
{
contactId
:
string
}
;
meta
:
object
;
output
:
void
}
,
>
;
get
:
QueryProcedure
<
{
input
:
{
contactId
:
string
}
;
meta
:
object
;
output
:
{
contact_id
:
ContactId
;
contact_type
:
string
;
contact_type_id
:
ContactTypeId
;
contact_type_name
:
string
;
created_at
:
DbDate
;
created_by
:
string
|
null
;
fieldValues
:
{
field_id
:
string
;
key
:
string
;
value
:
string
|
null
;
value_id
:
string
;
}
[]
;
org_id
:
number
;
}
;
}
,
>
;
list
:
QueryProcedure
<
{
input
:
{
contactTypeId
?:
string
;
cursor
?:
number
;
limit
?:
number
;
offset
?:
number
;
search
?:
string
;
sortBy
?:
"name"
|
"created_at"
;
sortOrder
?:
"asc"
|
"desc"
;
}
;
meta
:
object
;
output
:
PaginatedResponse
<
{
contact_id
:
ContactId
;
contact_type
:
string
;
contact_type_name
:
string
;
created_at
:
DbDate
;
created_by
:
string
|
null
;
name
:
string
|
null
;
org_id
:
number
;
}
,
>
;
}
,
>
;
update
:
MutationProcedure
<
{
input
:
{
contactId
:
string
;
contactTypeId
?:
string
;
fieldValues
?:
{
fieldId
:
string
;
value
:
string
|
null
;
valueId
?:
string
|
null
;
}
[]
;
}
;
meta
:
object
;
output
:
void
;
}
,
>
;
}
,
>
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...