Circle V2 API Docs
Preparing search index...
@repo/db
contactTypesRepo
Variable contactTypesRepo
Const
contactTypesRepo
:
DbRepo
<
{
create
:
(
params
:
CreateContactTypeParams
,
)
=>
Promise
<
{
contact_type_id
:
ContactTypeId
;
created_at
:
DbDate
;
created_by
:
string
;
org_id
:
number
|
null
;
type
:
string
;
}
,
>
;
delete
:
(
contactTypeId
:
ContactTypeId
,
orgId
:
EntityId
)
=>
Promise
<
void
>
;
findOrCreateDefault
:
(
orgId
:
EntityId
,
createdBy
:
UserId
,
)
=>
Promise
<
{
contact_type_id
:
ContactTypeId
;
created_at
:
DbDate
;
created_by
:
string
;
org_id
:
number
|
null
;
type
:
string
;
}
,
>
;
getById
:
(
contactTypeId
:
ContactTypeId
,
)
=>
Promise
<
{
contact_type_id
:
ContactTypeId
;
created_at
:
DbDate
;
created_by
:
string
;
fields
:
{
contact_type
:
string
;
created_at
:
DbDate
;
field_id
:
ContactTypeFieldId
;
key
:
string
;
}
[]
;
org_id
:
number
|
null
;
type
:
string
;
}
,
>
;
list
:
(
entityId
:
EntityId
,
)
=>
Promise
<
{
contact_count
:
number
;
contact_type_id
:
ContactTypeId
;
created_at
:
DbDate
;
created_by
:
string
;
field_count
:
number
;
org_id
:
number
|
null
;
type
:
string
;
}
[]
,
>
;
update
:
(
contactTypeId
:
ContactTypeId
,
orgId
:
EntityId
,
params
:
UpdateContactTypeParams
,
)
=>
Promise
<
void
>
;
}
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...