@iblai/iblai-api 4.261.1-core → 4.262.0-core
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +943 -123
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +941 -124
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +943 -123
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +16 -0
- package/dist/types/models/LifecycleStageEnum.d.ts +14 -0
- package/dist/types/models/Organization.d.ts +34 -0
- package/dist/types/models/PaginatedOrganizationList.d.ts +7 -0
- package/dist/types/models/PaginatedPersonList.d.ts +7 -0
- package/dist/types/models/PatchedOrganization.d.ts +34 -0
- package/dist/types/models/PatchedPerson.d.ts +73 -0
- package/dist/types/models/Person.d.ts +73 -0
- package/dist/types/models/PersonInviteConflict.d.ts +12 -0
- package/dist/types/models/PersonInviteRequest.d.ts +18 -0
- package/dist/types/models/PersonInviteResponse.d.ts +37 -0
- package/dist/types/models/PersonLinkUserRequest.d.ts +6 -0
- package/dist/types/models/PersonMergeRequest.d.ts +10 -0
- package/dist/types/models/PersonMergeResponse.d.ts +17 -0
- package/dist/types/services/CrmService.d.ts +222 -0
- package/dist/types/services/OrganizationsService.d.ts +83 -0
- package/dist/types/services/PersonsService.d.ts +142 -0
- package/package.json +1 -1
- package/sdk_schema.yml +1803 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +16 -0
- package/src/models/LifecycleStageEnum.ts +18 -0
- package/src/models/Organization.ts +39 -0
- package/src/models/PaginatedOrganizationList.ts +12 -0
- package/src/models/PaginatedPersonList.ts +12 -0
- package/src/models/PatchedOrganization.ts +39 -0
- package/src/models/PatchedPerson.ts +78 -0
- package/src/models/Person.ts +78 -0
- package/src/models/PersonInviteConflict.ts +17 -0
- package/src/models/PersonInviteRequest.ts +23 -0
- package/src/models/PersonInviteResponse.ts +42 -0
- package/src/models/PersonLinkUserRequest.ts +11 -0
- package/src/models/PersonMergeRequest.ts +15 -0
- package/src/models/PersonMergeResponse.ts +22 -0
- package/src/services/CrmService.ts +481 -0
- package/src/services/OrganizationsService.ts +186 -0
- package/src/services/PersonsService.ts +304 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import type { Organization } from '../models/Organization';
|
|
2
|
+
import type { PaginatedOrganizationList } from '../models/PaginatedOrganizationList';
|
|
3
|
+
import type { PaginatedPersonList } from '../models/PaginatedPersonList';
|
|
4
|
+
import type { PatchedOrganization } from '../models/PatchedOrganization';
|
|
5
|
+
import type { PatchedPerson } from '../models/PatchedPerson';
|
|
6
|
+
import type { Person } from '../models/Person';
|
|
7
|
+
import type { PersonInviteRequest } from '../models/PersonInviteRequest';
|
|
8
|
+
import type { PersonInviteResponse } from '../models/PersonInviteResponse';
|
|
9
|
+
import type { PersonLinkUserRequest } from '../models/PersonLinkUserRequest';
|
|
10
|
+
import type { PersonMergeRequest } from '../models/PersonMergeRequest';
|
|
11
|
+
import type { PersonMergeResponse } from '../models/PersonMergeResponse';
|
|
12
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
13
|
+
export declare class CrmService {
|
|
14
|
+
/**
|
|
15
|
+
* List organizations
|
|
16
|
+
* Returns a paginated list of organizations in your Platform. Supports filtering by `owner` and by `name` (case-insensitive substring match).
|
|
17
|
+
*
|
|
18
|
+
* **Required permission:** `Ibl.CRM/Organizations/list`.
|
|
19
|
+
* @returns PaginatedOrganizationList
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
static crmOrganizationsList({ name, owner, page, pageSize, }: {
|
|
23
|
+
name?: string;
|
|
24
|
+
owner?: number;
|
|
25
|
+
/**
|
|
26
|
+
* A page number within the paginated result set.
|
|
27
|
+
*/
|
|
28
|
+
page?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Number of results to return per page.
|
|
31
|
+
*/
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
}): CancelablePromise<PaginatedOrganizationList>;
|
|
34
|
+
/**
|
|
35
|
+
* Create an organization
|
|
36
|
+
* Creates a new organization in your Platform. The Platform is inferred from your credentials. `name` must be unique within your Platform.
|
|
37
|
+
*
|
|
38
|
+
* **Required permission:** `Ibl.CRM/Organizations/write`.
|
|
39
|
+
* @returns Organization
|
|
40
|
+
* @throws ApiError
|
|
41
|
+
*/
|
|
42
|
+
static crmOrganizationsCreate({ requestBody, }: {
|
|
43
|
+
requestBody: Organization;
|
|
44
|
+
}): CancelablePromise<Organization>;
|
|
45
|
+
/**
|
|
46
|
+
* Retrieve an organization
|
|
47
|
+
* Returns a single organization by id.
|
|
48
|
+
*
|
|
49
|
+
* **Required permission:** `Ibl.CRM/Organizations/read`.
|
|
50
|
+
* @returns Organization
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
static crmOrganizationsRetrieve({ id, }: {
|
|
54
|
+
id: string;
|
|
55
|
+
}): CancelablePromise<Organization>;
|
|
56
|
+
/**
|
|
57
|
+
* Replace an organization
|
|
58
|
+
* Replaces all editable fields on the organization.
|
|
59
|
+
*
|
|
60
|
+
* **Required permission:** `Ibl.CRM/Organizations/write`.
|
|
61
|
+
* @returns Organization
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
static crmOrganizationsUpdate({ id, requestBody, }: {
|
|
65
|
+
id: string;
|
|
66
|
+
requestBody: Organization;
|
|
67
|
+
}): CancelablePromise<Organization>;
|
|
68
|
+
/**
|
|
69
|
+
* Update an organization
|
|
70
|
+
* Updates only the supplied fields on the organization.
|
|
71
|
+
*
|
|
72
|
+
* **Required permission:** `Ibl.CRM/Organizations/write`.
|
|
73
|
+
* @returns Organization
|
|
74
|
+
* @throws ApiError
|
|
75
|
+
*/
|
|
76
|
+
static crmOrganizationsPartialUpdate({ id, requestBody, }: {
|
|
77
|
+
id: string;
|
|
78
|
+
requestBody?: PatchedOrganization;
|
|
79
|
+
}): CancelablePromise<Organization>;
|
|
80
|
+
/**
|
|
81
|
+
* Delete an organization
|
|
82
|
+
* Deletes the organization. Any persons linked to it are kept; their organization reference is cleared.
|
|
83
|
+
*
|
|
84
|
+
* **Required permission:** `Ibl.CRM/Organizations/delete`.
|
|
85
|
+
* @returns void
|
|
86
|
+
* @throws ApiError
|
|
87
|
+
*/
|
|
88
|
+
static crmOrganizationsDestroy({ id, }: {
|
|
89
|
+
id: string;
|
|
90
|
+
}): CancelablePromise<void>;
|
|
91
|
+
/**
|
|
92
|
+
* List persons
|
|
93
|
+
* Returns a paginated list of persons in your Platform. Supports filtering by `lifecycle_stage`, `owner`, `organization`, `created_at__gte`/`created_at__lte`, and `metadata__has_key`.
|
|
94
|
+
*
|
|
95
|
+
* **Required permission:** `Ibl.CRM/Persons/list`.
|
|
96
|
+
* @returns PaginatedPersonList
|
|
97
|
+
* @throws ApiError
|
|
98
|
+
*/
|
|
99
|
+
static crmPersonsList({ createdAtGte, createdAtLte, lifecycleStage, metadataHasKey, organization, owner, page, pageSize, }: {
|
|
100
|
+
createdAtGte?: string;
|
|
101
|
+
createdAtLte?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Funnel position. Free-form transitions in v0.
|
|
104
|
+
*
|
|
105
|
+
* * `lead` - Lead
|
|
106
|
+
* * `qualified` - Qualified
|
|
107
|
+
* * `opportunity` - Opportunity
|
|
108
|
+
* * `customer` - Customer
|
|
109
|
+
* * `churned` - Churned
|
|
110
|
+
*/
|
|
111
|
+
lifecycleStage?: 'churned' | 'customer' | 'lead' | 'opportunity' | 'qualified';
|
|
112
|
+
metadataHasKey?: string;
|
|
113
|
+
organization?: string;
|
|
114
|
+
owner?: number;
|
|
115
|
+
/**
|
|
116
|
+
* A page number within the paginated result set.
|
|
117
|
+
*/
|
|
118
|
+
page?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Number of results to return per page.
|
|
121
|
+
*/
|
|
122
|
+
pageSize?: number;
|
|
123
|
+
}): CancelablePromise<PaginatedPersonList>;
|
|
124
|
+
/**
|
|
125
|
+
* Create a person
|
|
126
|
+
* Creates a new person in your Platform. The Platform is inferred from your credentials. If `organization` is supplied, it must reference an organization in your Platform.
|
|
127
|
+
*
|
|
128
|
+
* **Required permission:** `Ibl.CRM/Persons/write`.
|
|
129
|
+
* @returns Person
|
|
130
|
+
* @throws ApiError
|
|
131
|
+
*/
|
|
132
|
+
static crmPersonsCreate({ requestBody, }: {
|
|
133
|
+
requestBody: Person;
|
|
134
|
+
}): CancelablePromise<Person>;
|
|
135
|
+
/**
|
|
136
|
+
* Retrieve a person
|
|
137
|
+
* Returns a single person by id.
|
|
138
|
+
*
|
|
139
|
+
* **Required permission:** `Ibl.CRM/Persons/read`.
|
|
140
|
+
* @returns Person
|
|
141
|
+
* @throws ApiError
|
|
142
|
+
*/
|
|
143
|
+
static crmPersonsRetrieve({ id, }: {
|
|
144
|
+
id: string;
|
|
145
|
+
}): CancelablePromise<Person>;
|
|
146
|
+
/**
|
|
147
|
+
* Replace a person
|
|
148
|
+
* Replaces all editable fields on the person.
|
|
149
|
+
*
|
|
150
|
+
* **Required permission:** `Ibl.CRM/Persons/write`.
|
|
151
|
+
* @returns Person
|
|
152
|
+
* @throws ApiError
|
|
153
|
+
*/
|
|
154
|
+
static crmPersonsUpdate({ id, requestBody, }: {
|
|
155
|
+
id: string;
|
|
156
|
+
requestBody: Person;
|
|
157
|
+
}): CancelablePromise<Person>;
|
|
158
|
+
/**
|
|
159
|
+
* Update a person
|
|
160
|
+
* Updates only the supplied fields on the person.
|
|
161
|
+
*
|
|
162
|
+
* **Required permission:** `Ibl.CRM/Persons/write`.
|
|
163
|
+
* @returns Person
|
|
164
|
+
* @throws ApiError
|
|
165
|
+
*/
|
|
166
|
+
static crmPersonsPartialUpdate({ id, requestBody, }: {
|
|
167
|
+
id: string;
|
|
168
|
+
requestBody?: PatchedPerson;
|
|
169
|
+
}): CancelablePromise<Person>;
|
|
170
|
+
/**
|
|
171
|
+
* Delete a person
|
|
172
|
+
* Deletes the person.
|
|
173
|
+
*
|
|
174
|
+
* **Required permission:** `Ibl.CRM/Persons/delete`.
|
|
175
|
+
* @returns void
|
|
176
|
+
* @throws ApiError
|
|
177
|
+
*/
|
|
178
|
+
static crmPersonsDestroy({ id, }: {
|
|
179
|
+
id: string;
|
|
180
|
+
}): CancelablePromise<void>;
|
|
181
|
+
/**
|
|
182
|
+
* Invite a person to the platform
|
|
183
|
+
* Sends a platform invitation to the person's `primary_email`. On acceptance, the invitee joins your Platform with the privileges configured in the request body.
|
|
184
|
+
*
|
|
185
|
+
* Returns `409 Conflict` if an active invitation already exists for this email in your Platform, and `422 Unprocessable Entity` if the person is already linked to a platform user.
|
|
186
|
+
*
|
|
187
|
+
* **Required permission:** `Ibl.CRM/Invite/action`.
|
|
188
|
+
* @returns PersonInviteResponse
|
|
189
|
+
* @throws ApiError
|
|
190
|
+
*/
|
|
191
|
+
static crmPersonsInviteCreate({ id, requestBody, }: {
|
|
192
|
+
id: string;
|
|
193
|
+
requestBody?: PersonInviteRequest;
|
|
194
|
+
}): CancelablePromise<PersonInviteResponse>;
|
|
195
|
+
/**
|
|
196
|
+
* Bind a person to an existing platform user
|
|
197
|
+
* Links this person to an existing platform user. The target user must already be a member of your Platform — if they are not, send them an invitation via `POST /persons/{id}/invite/` instead.
|
|
198
|
+
*
|
|
199
|
+
* This call is idempotent: linking a person that is already bound to the same user is a no-op. Re-linking a person that is already bound to a *different* user is refused; the existing binding is preserved and the unchanged person is returned.
|
|
200
|
+
*
|
|
201
|
+
* **Required permission:** `Ibl.CRM/Persons/write`.
|
|
202
|
+
* @returns Person
|
|
203
|
+
* @throws ApiError
|
|
204
|
+
*/
|
|
205
|
+
static crmPersonsLinkUserCreate({ id, requestBody, }: {
|
|
206
|
+
id: string;
|
|
207
|
+
requestBody: PersonLinkUserRequest;
|
|
208
|
+
}): CancelablePromise<Person>;
|
|
209
|
+
/**
|
|
210
|
+
* Merge duplicate persons into a primary
|
|
211
|
+
* Marks each person in `duplicate_ids` as inactive and reports how many related records (deals, activities, tags) were re-parented onto `primary_id`.
|
|
212
|
+
*
|
|
213
|
+
* All ids — both the primary and every duplicate — must belong to your Platform. `primary_id` may not appear in `duplicate_ids`.
|
|
214
|
+
*
|
|
215
|
+
* **Required permission:** `Ibl.CRM/Persons/write`.
|
|
216
|
+
* @returns PersonMergeResponse
|
|
217
|
+
* @throws ApiError
|
|
218
|
+
*/
|
|
219
|
+
static crmPersonsMergeCreate({ requestBody, }: {
|
|
220
|
+
requestBody: PersonMergeRequest;
|
|
221
|
+
}): CancelablePromise<PersonMergeResponse>;
|
|
222
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { Organization } from '../models/Organization';
|
|
2
|
+
import type { PaginatedOrganizationList } from '../models/PaginatedOrganizationList';
|
|
3
|
+
import type { PatchedOrganization } from '../models/PatchedOrganization';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
export declare class OrganizationsService {
|
|
6
|
+
/**
|
|
7
|
+
* List organizations
|
|
8
|
+
* Returns a paginated list of organizations in your Platform. Supports filtering by `owner` and by `name` (case-insensitive substring match).
|
|
9
|
+
*
|
|
10
|
+
* **Required permission:** `Ibl.CRM/Organizations/list`.
|
|
11
|
+
* @returns PaginatedOrganizationList
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static organizationsList({ name, owner, page, pageSize, }: {
|
|
15
|
+
name?: string;
|
|
16
|
+
owner?: number;
|
|
17
|
+
/**
|
|
18
|
+
* A page number within the paginated result set.
|
|
19
|
+
*/
|
|
20
|
+
page?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Number of results to return per page.
|
|
23
|
+
*/
|
|
24
|
+
pageSize?: number;
|
|
25
|
+
}): CancelablePromise<PaginatedOrganizationList>;
|
|
26
|
+
/**
|
|
27
|
+
* Create an organization
|
|
28
|
+
* Creates a new organization in your Platform. The Platform is inferred from your credentials. `name` must be unique within your Platform.
|
|
29
|
+
*
|
|
30
|
+
* **Required permission:** `Ibl.CRM/Organizations/write`.
|
|
31
|
+
* @returns Organization
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
static organizationsCreate({ requestBody, }: {
|
|
35
|
+
requestBody: Organization;
|
|
36
|
+
}): CancelablePromise<Organization>;
|
|
37
|
+
/**
|
|
38
|
+
* Retrieve an organization
|
|
39
|
+
* Returns a single organization by id.
|
|
40
|
+
*
|
|
41
|
+
* **Required permission:** `Ibl.CRM/Organizations/read`.
|
|
42
|
+
* @returns Organization
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
static organizationsRetrieve({ id, }: {
|
|
46
|
+
id: string;
|
|
47
|
+
}): CancelablePromise<Organization>;
|
|
48
|
+
/**
|
|
49
|
+
* Replace an organization
|
|
50
|
+
* Replaces all editable fields on the organization.
|
|
51
|
+
*
|
|
52
|
+
* **Required permission:** `Ibl.CRM/Organizations/write`.
|
|
53
|
+
* @returns Organization
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static organizationsUpdate({ id, requestBody, }: {
|
|
57
|
+
id: string;
|
|
58
|
+
requestBody: Organization;
|
|
59
|
+
}): CancelablePromise<Organization>;
|
|
60
|
+
/**
|
|
61
|
+
* Update an organization
|
|
62
|
+
* Updates only the supplied fields on the organization.
|
|
63
|
+
*
|
|
64
|
+
* **Required permission:** `Ibl.CRM/Organizations/write`.
|
|
65
|
+
* @returns Organization
|
|
66
|
+
* @throws ApiError
|
|
67
|
+
*/
|
|
68
|
+
static organizationsPartialUpdate({ id, requestBody, }: {
|
|
69
|
+
id: string;
|
|
70
|
+
requestBody?: PatchedOrganization;
|
|
71
|
+
}): CancelablePromise<Organization>;
|
|
72
|
+
/**
|
|
73
|
+
* Delete an organization
|
|
74
|
+
* Deletes the organization. Any persons linked to it are kept; their organization reference is cleared.
|
|
75
|
+
*
|
|
76
|
+
* **Required permission:** `Ibl.CRM/Organizations/delete`.
|
|
77
|
+
* @returns void
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
static organizationsDestroy({ id, }: {
|
|
81
|
+
id: string;
|
|
82
|
+
}): CancelablePromise<void>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type { PaginatedPersonList } from '../models/PaginatedPersonList';
|
|
2
|
+
import type { PatchedPerson } from '../models/PatchedPerson';
|
|
3
|
+
import type { Person } from '../models/Person';
|
|
4
|
+
import type { PersonInviteRequest } from '../models/PersonInviteRequest';
|
|
5
|
+
import type { PersonInviteResponse } from '../models/PersonInviteResponse';
|
|
6
|
+
import type { PersonLinkUserRequest } from '../models/PersonLinkUserRequest';
|
|
7
|
+
import type { PersonMergeRequest } from '../models/PersonMergeRequest';
|
|
8
|
+
import type { PersonMergeResponse } from '../models/PersonMergeResponse';
|
|
9
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
|
+
export declare class PersonsService {
|
|
11
|
+
/**
|
|
12
|
+
* List persons
|
|
13
|
+
* Returns a paginated list of persons in your Platform. Supports filtering by `lifecycle_stage`, `owner`, `organization`, `created_at__gte`/`created_at__lte`, and `metadata__has_key`.
|
|
14
|
+
*
|
|
15
|
+
* **Required permission:** `Ibl.CRM/Persons/list`.
|
|
16
|
+
* @returns PaginatedPersonList
|
|
17
|
+
* @throws ApiError
|
|
18
|
+
*/
|
|
19
|
+
static personsList({ createdAtGte, createdAtLte, lifecycleStage, metadataHasKey, organization, owner, page, pageSize, }: {
|
|
20
|
+
createdAtGte?: string;
|
|
21
|
+
createdAtLte?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Funnel position. Free-form transitions in v0.
|
|
24
|
+
*
|
|
25
|
+
* * `lead` - Lead
|
|
26
|
+
* * `qualified` - Qualified
|
|
27
|
+
* * `opportunity` - Opportunity
|
|
28
|
+
* * `customer` - Customer
|
|
29
|
+
* * `churned` - Churned
|
|
30
|
+
*/
|
|
31
|
+
lifecycleStage?: 'churned' | 'customer' | 'lead' | 'opportunity' | 'qualified';
|
|
32
|
+
metadataHasKey?: string;
|
|
33
|
+
organization?: string;
|
|
34
|
+
owner?: number;
|
|
35
|
+
/**
|
|
36
|
+
* A page number within the paginated result set.
|
|
37
|
+
*/
|
|
38
|
+
page?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Number of results to return per page.
|
|
41
|
+
*/
|
|
42
|
+
pageSize?: number;
|
|
43
|
+
}): CancelablePromise<PaginatedPersonList>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a person
|
|
46
|
+
* Creates a new person in your Platform. The Platform is inferred from your credentials. If `organization` is supplied, it must reference an organization in your Platform.
|
|
47
|
+
*
|
|
48
|
+
* **Required permission:** `Ibl.CRM/Persons/write`.
|
|
49
|
+
* @returns Person
|
|
50
|
+
* @throws ApiError
|
|
51
|
+
*/
|
|
52
|
+
static personsCreate({ requestBody, }: {
|
|
53
|
+
requestBody: Person;
|
|
54
|
+
}): CancelablePromise<Person>;
|
|
55
|
+
/**
|
|
56
|
+
* Retrieve a person
|
|
57
|
+
* Returns a single person by id.
|
|
58
|
+
*
|
|
59
|
+
* **Required permission:** `Ibl.CRM/Persons/read`.
|
|
60
|
+
* @returns Person
|
|
61
|
+
* @throws ApiError
|
|
62
|
+
*/
|
|
63
|
+
static personsRetrieve({ id, }: {
|
|
64
|
+
id: string;
|
|
65
|
+
}): CancelablePromise<Person>;
|
|
66
|
+
/**
|
|
67
|
+
* Replace a person
|
|
68
|
+
* Replaces all editable fields on the person.
|
|
69
|
+
*
|
|
70
|
+
* **Required permission:** `Ibl.CRM/Persons/write`.
|
|
71
|
+
* @returns Person
|
|
72
|
+
* @throws ApiError
|
|
73
|
+
*/
|
|
74
|
+
static personsUpdate({ id, requestBody, }: {
|
|
75
|
+
id: string;
|
|
76
|
+
requestBody: Person;
|
|
77
|
+
}): CancelablePromise<Person>;
|
|
78
|
+
/**
|
|
79
|
+
* Update a person
|
|
80
|
+
* Updates only the supplied fields on the person.
|
|
81
|
+
*
|
|
82
|
+
* **Required permission:** `Ibl.CRM/Persons/write`.
|
|
83
|
+
* @returns Person
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static personsPartialUpdate({ id, requestBody, }: {
|
|
87
|
+
id: string;
|
|
88
|
+
requestBody?: PatchedPerson;
|
|
89
|
+
}): CancelablePromise<Person>;
|
|
90
|
+
/**
|
|
91
|
+
* Delete a person
|
|
92
|
+
* Deletes the person.
|
|
93
|
+
*
|
|
94
|
+
* **Required permission:** `Ibl.CRM/Persons/delete`.
|
|
95
|
+
* @returns void
|
|
96
|
+
* @throws ApiError
|
|
97
|
+
*/
|
|
98
|
+
static personsDestroy({ id, }: {
|
|
99
|
+
id: string;
|
|
100
|
+
}): CancelablePromise<void>;
|
|
101
|
+
/**
|
|
102
|
+
* Invite a person to the platform
|
|
103
|
+
* Sends a platform invitation to the person's `primary_email`. On acceptance, the invitee joins your Platform with the privileges configured in the request body.
|
|
104
|
+
*
|
|
105
|
+
* Returns `409 Conflict` if an active invitation already exists for this email in your Platform, and `422 Unprocessable Entity` if the person is already linked to a platform user.
|
|
106
|
+
*
|
|
107
|
+
* **Required permission:** `Ibl.CRM/Invite/action`.
|
|
108
|
+
* @returns PersonInviteResponse
|
|
109
|
+
* @throws ApiError
|
|
110
|
+
*/
|
|
111
|
+
static personsInviteCreate({ id, requestBody, }: {
|
|
112
|
+
id: string;
|
|
113
|
+
requestBody?: PersonInviteRequest;
|
|
114
|
+
}): CancelablePromise<PersonInviteResponse>;
|
|
115
|
+
/**
|
|
116
|
+
* Bind a person to an existing platform user
|
|
117
|
+
* Links this person to an existing platform user. The target user must already be a member of your Platform — if they are not, send them an invitation via `POST /persons/{id}/invite/` instead.
|
|
118
|
+
*
|
|
119
|
+
* This call is idempotent: linking a person that is already bound to the same user is a no-op. Re-linking a person that is already bound to a *different* user is refused; the existing binding is preserved and the unchanged person is returned.
|
|
120
|
+
*
|
|
121
|
+
* **Required permission:** `Ibl.CRM/Persons/write`.
|
|
122
|
+
* @returns Person
|
|
123
|
+
* @throws ApiError
|
|
124
|
+
*/
|
|
125
|
+
static personsLinkUserCreate({ id, requestBody, }: {
|
|
126
|
+
id: string;
|
|
127
|
+
requestBody: PersonLinkUserRequest;
|
|
128
|
+
}): CancelablePromise<Person>;
|
|
129
|
+
/**
|
|
130
|
+
* Merge duplicate persons into a primary
|
|
131
|
+
* Marks each person in `duplicate_ids` as inactive and reports how many related records (deals, activities, tags) were re-parented onto `primary_id`.
|
|
132
|
+
*
|
|
133
|
+
* All ids — both the primary and every duplicate — must belong to your Platform. `primary_id` may not appear in `duplicate_ids`.
|
|
134
|
+
*
|
|
135
|
+
* **Required permission:** `Ibl.CRM/Persons/write`.
|
|
136
|
+
* @returns PersonMergeResponse
|
|
137
|
+
* @throws ApiError
|
|
138
|
+
*/
|
|
139
|
+
static personsMergeCreate({ requestBody, }: {
|
|
140
|
+
requestBody: PersonMergeRequest;
|
|
141
|
+
}): CancelablePromise<PersonMergeResponse>;
|
|
142
|
+
}
|