@iblai/iblai-api 4.265.1-core → 4.265.2-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 +2168 -258
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2165 -259
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +2168 -258
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +26 -1
- package/dist/types/models/Activity.d.ts +83 -0
- package/dist/types/models/ActivityTypeEnum.d.ts +18 -0
- package/dist/types/models/Deal.d.ts +83 -0
- package/dist/types/models/DealLostRequest.d.ts +10 -0
- package/dist/types/models/DealMoveStageRequest.d.ts +10 -0
- package/dist/types/models/DealStatusEnum.d.ts +10 -0
- package/dist/types/models/DealWonRequest.d.ts +6 -0
- package/dist/types/models/LeadSource.d.ts +30 -0
- package/dist/types/models/NotificationTemplateDetail.d.ts +24 -2
- package/dist/types/models/NotificationTemplateList.d.ts +5 -2
- package/dist/types/models/Organization.d.ts +1 -1
- package/dist/types/models/PaginatedActivityList.d.ts +7 -0
- package/dist/types/models/PaginatedDealList.d.ts +7 -0
- package/dist/types/models/PaginatedLeadSourceList.d.ts +7 -0
- package/dist/types/models/PaginatedPipelineList.d.ts +7 -0
- package/dist/types/models/PaginatedPipelineStageList.d.ts +7 -0
- package/dist/types/models/PatchedActivity.d.ts +83 -0
- package/dist/types/models/PatchedDeal.d.ts +83 -0
- package/dist/types/models/PatchedLeadSource.d.ts +30 -0
- package/dist/types/models/PatchedNotificationTemplateDetail.d.ts +24 -2
- package/dist/types/models/PatchedOrganization.d.ts +1 -1
- package/dist/types/models/PatchedPipeline.d.ts +34 -0
- package/dist/types/models/PatchedPipelineStage.d.ts +40 -0
- package/dist/types/models/Pipeline.d.ts +34 -0
- package/dist/types/models/PipelineStage.d.ts +40 -0
- package/dist/types/models/RecipientsRecipientModeEnum.d.ts +14 -0
- package/dist/types/models/{TypeD36Enum.d.ts → Type4b7Enum.d.ts} +7 -1
- package/dist/types/services/ActivitiesService.d.ts +126 -0
- package/dist/types/services/CrmService.d.ts +553 -1
- package/dist/types/services/DealsService.d.ts +160 -0
- package/dist/types/services/LeadSourcesService.d.ts +95 -0
- package/dist/types/services/PersonsService.d.ts +1 -1
- package/dist/types/services/PipelinesService.d.ts +183 -0
- package/package.json +1 -1
- package/sdk_schema.yml +4093 -141
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +26 -1
- package/src/models/Activity.ts +88 -0
- package/src/models/ActivityTypeEnum.ts +22 -0
- package/src/models/Deal.ts +88 -0
- package/src/models/DealLostRequest.ts +15 -0
- package/src/models/DealMoveStageRequest.ts +15 -0
- package/src/models/DealStatusEnum.ts +14 -0
- package/src/models/DealWonRequest.ts +11 -0
- package/src/models/LeadSource.ts +35 -0
- package/src/models/NotificationTemplateDetail.ts +24 -2
- package/src/models/NotificationTemplateList.ts +5 -2
- package/src/models/Organization.ts +1 -1
- package/src/models/PaginatedActivityList.ts +12 -0
- package/src/models/PaginatedDealList.ts +12 -0
- package/src/models/PaginatedLeadSourceList.ts +12 -0
- package/src/models/PaginatedPipelineList.ts +12 -0
- package/src/models/PaginatedPipelineStageList.ts +12 -0
- package/src/models/PatchedActivity.ts +88 -0
- package/src/models/PatchedDeal.ts +88 -0
- package/src/models/PatchedLeadSource.ts +35 -0
- package/src/models/PatchedNotificationTemplateDetail.ts +24 -2
- package/src/models/PatchedOrganization.ts +1 -1
- package/src/models/PatchedPipeline.ts +39 -0
- package/src/models/PatchedPipelineStage.ts +45 -0
- package/src/models/Pipeline.ts +39 -0
- package/src/models/PipelineStage.ts +45 -0
- package/src/models/RecipientsRecipientModeEnum.ts +18 -0
- package/src/models/{TypeD36Enum.ts → Type4b7Enum.ts} +7 -1
- package/src/services/ActivitiesService.ts +255 -0
- package/src/services/CrmService.ts +1161 -1
- package/src/services/DealsService.ts +337 -0
- package/src/services/LeadSourcesService.ts +198 -0
- package/src/services/PersonsService.ts +1 -1
- package/src/services/PipelinesService.ts +406 -0
|
@@ -1,16 +1,394 @@
|
|
|
1
|
+
import type { Activity } from '../models/Activity';
|
|
2
|
+
import type { Deal } from '../models/Deal';
|
|
3
|
+
import type { DealLostRequest } from '../models/DealLostRequest';
|
|
4
|
+
import type { DealMoveStageRequest } from '../models/DealMoveStageRequest';
|
|
5
|
+
import type { DealWonRequest } from '../models/DealWonRequest';
|
|
6
|
+
import type { LeadSource } from '../models/LeadSource';
|
|
1
7
|
import type { Organization } from '../models/Organization';
|
|
8
|
+
import type { PaginatedActivityList } from '../models/PaginatedActivityList';
|
|
9
|
+
import type { PaginatedDealList } from '../models/PaginatedDealList';
|
|
10
|
+
import type { PaginatedLeadSourceList } from '../models/PaginatedLeadSourceList';
|
|
2
11
|
import type { PaginatedOrganizationList } from '../models/PaginatedOrganizationList';
|
|
3
12
|
import type { PaginatedPersonList } from '../models/PaginatedPersonList';
|
|
13
|
+
import type { PaginatedPipelineList } from '../models/PaginatedPipelineList';
|
|
14
|
+
import type { PaginatedPipelineStageList } from '../models/PaginatedPipelineStageList';
|
|
15
|
+
import type { PatchedActivity } from '../models/PatchedActivity';
|
|
16
|
+
import type { PatchedDeal } from '../models/PatchedDeal';
|
|
17
|
+
import type { PatchedLeadSource } from '../models/PatchedLeadSource';
|
|
4
18
|
import type { PatchedOrganization } from '../models/PatchedOrganization';
|
|
5
19
|
import type { PatchedPerson } from '../models/PatchedPerson';
|
|
20
|
+
import type { PatchedPipeline } from '../models/PatchedPipeline';
|
|
21
|
+
import type { PatchedPipelineStage } from '../models/PatchedPipelineStage';
|
|
6
22
|
import type { Person } from '../models/Person';
|
|
7
23
|
import type { PersonInviteRequest } from '../models/PersonInviteRequest';
|
|
8
24
|
import type { PersonInviteResponse } from '../models/PersonInviteResponse';
|
|
9
25
|
import type { PersonLinkUserRequest } from '../models/PersonLinkUserRequest';
|
|
10
26
|
import type { PersonMergeRequest } from '../models/PersonMergeRequest';
|
|
11
27
|
import type { PersonMergeResponse } from '../models/PersonMergeResponse';
|
|
28
|
+
import type { Pipeline } from '../models/Pipeline';
|
|
29
|
+
import type { PipelineStage } from '../models/PipelineStage';
|
|
12
30
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
13
31
|
export declare class CrmService {
|
|
32
|
+
/**
|
|
33
|
+
* List activities
|
|
34
|
+
* Returns a paginated list of Activities in your Platform. Supports filtering by `type`, `is_done`, `owner`, `deal`, `person`, schedule-from ranges, and `metadata__has_key`.
|
|
35
|
+
*
|
|
36
|
+
* **Required permission:** `Ibl.CRM/Activities/list`.
|
|
37
|
+
* @returns PaginatedActivityList
|
|
38
|
+
* @throws ApiError
|
|
39
|
+
*/
|
|
40
|
+
static crmActivitiesList({ deal, isDone, metadataHasKey, owner, page, pageSize, person, scheduleFromGte, scheduleFromLte, type, }: {
|
|
41
|
+
deal?: number;
|
|
42
|
+
isDone?: boolean;
|
|
43
|
+
metadataHasKey?: string;
|
|
44
|
+
owner?: number;
|
|
45
|
+
/**
|
|
46
|
+
* A page number within the paginated result set.
|
|
47
|
+
*/
|
|
48
|
+
page?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Number of results to return per page.
|
|
51
|
+
*/
|
|
52
|
+
pageSize?: number;
|
|
53
|
+
person?: string;
|
|
54
|
+
scheduleFromGte?: string;
|
|
55
|
+
scheduleFromLte?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Interaction kind.
|
|
58
|
+
*
|
|
59
|
+
* * `call` - Call
|
|
60
|
+
* * `meeting` - Meeting
|
|
61
|
+
* * `email` - Email
|
|
62
|
+
* * `note` - Note
|
|
63
|
+
* * `task` - Task
|
|
64
|
+
* * `lunch` - Lunch
|
|
65
|
+
* * `deadline` - Deadline
|
|
66
|
+
*/
|
|
67
|
+
type?: 'call' | 'deadline' | 'email' | 'lunch' | 'meeting' | 'note' | 'task';
|
|
68
|
+
}): CancelablePromise<PaginatedActivityList>;
|
|
69
|
+
/**
|
|
70
|
+
* Create an activity
|
|
71
|
+
* Creates an Activity. Either `deal` or `person` must be supplied; both must belong to your Platform.
|
|
72
|
+
*
|
|
73
|
+
* **Required permission:** `Ibl.CRM/Activities/write`.
|
|
74
|
+
* @returns Activity
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
static crmActivitiesCreate({ requestBody, }: {
|
|
78
|
+
requestBody: Activity;
|
|
79
|
+
}): CancelablePromise<Activity>;
|
|
80
|
+
/**
|
|
81
|
+
* Retrieve an activity
|
|
82
|
+
* Returns a single Activity by id.
|
|
83
|
+
*
|
|
84
|
+
* **Required permission:** `Ibl.CRM/Activities/read`.
|
|
85
|
+
* @returns Activity
|
|
86
|
+
* @throws ApiError
|
|
87
|
+
*/
|
|
88
|
+
static crmActivitiesRetrieve({ id, }: {
|
|
89
|
+
/**
|
|
90
|
+
* A unique integer value identifying this activity.
|
|
91
|
+
*/
|
|
92
|
+
id: number;
|
|
93
|
+
}): CancelablePromise<Activity>;
|
|
94
|
+
/**
|
|
95
|
+
* Replace an activity
|
|
96
|
+
* Replaces all editable fields on the Activity.
|
|
97
|
+
*
|
|
98
|
+
* **Required permission:** `Ibl.CRM/Activities/write`.
|
|
99
|
+
* @returns Activity
|
|
100
|
+
* @throws ApiError
|
|
101
|
+
*/
|
|
102
|
+
static crmActivitiesUpdate({ id, requestBody, }: {
|
|
103
|
+
/**
|
|
104
|
+
* A unique integer value identifying this activity.
|
|
105
|
+
*/
|
|
106
|
+
id: number;
|
|
107
|
+
requestBody: Activity;
|
|
108
|
+
}): CancelablePromise<Activity>;
|
|
109
|
+
/**
|
|
110
|
+
* Update an activity
|
|
111
|
+
* Updates only the supplied fields on the Activity.
|
|
112
|
+
*
|
|
113
|
+
* **Required permission:** `Ibl.CRM/Activities/write`.
|
|
114
|
+
* @returns Activity
|
|
115
|
+
* @throws ApiError
|
|
116
|
+
*/
|
|
117
|
+
static crmActivitiesPartialUpdate({ id, requestBody, }: {
|
|
118
|
+
/**
|
|
119
|
+
* A unique integer value identifying this activity.
|
|
120
|
+
*/
|
|
121
|
+
id: number;
|
|
122
|
+
requestBody?: PatchedActivity;
|
|
123
|
+
}): CancelablePromise<Activity>;
|
|
124
|
+
/**
|
|
125
|
+
* Delete an activity
|
|
126
|
+
* Deletes the Activity.
|
|
127
|
+
*
|
|
128
|
+
* **Required permission:** `Ibl.CRM/Activities/delete`.
|
|
129
|
+
* @returns void
|
|
130
|
+
* @throws ApiError
|
|
131
|
+
*/
|
|
132
|
+
static crmActivitiesDestroy({ id, }: {
|
|
133
|
+
/**
|
|
134
|
+
* A unique integer value identifying this activity.
|
|
135
|
+
*/
|
|
136
|
+
id: number;
|
|
137
|
+
}): CancelablePromise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Mark an activity as done
|
|
140
|
+
* Flips `is_done=True` and stamps `done_at` if it isn't already set. Idempotent — calling on an already-done Activity preserves the original `done_at`.
|
|
141
|
+
*
|
|
142
|
+
* **Required permission:** `Ibl.CRM/Activities/write`.
|
|
143
|
+
* @returns Activity
|
|
144
|
+
* @throws ApiError
|
|
145
|
+
*/
|
|
146
|
+
static crmActivitiesDoneCreate({ id, }: {
|
|
147
|
+
/**
|
|
148
|
+
* A unique integer value identifying this activity.
|
|
149
|
+
*/
|
|
150
|
+
id: number;
|
|
151
|
+
}): CancelablePromise<Activity>;
|
|
152
|
+
/**
|
|
153
|
+
* List deals
|
|
154
|
+
* Returns a paginated list of Deals in your Platform. Supports filtering by `status`, `pipeline`, `stage`, `owner`, `source`, `person`, `organization`, expected-close-date and created-at ranges, and `metadata__has_key`.
|
|
155
|
+
*
|
|
156
|
+
* **Required permission:** `Ibl.CRM/Deals/list`.
|
|
157
|
+
* @returns PaginatedDealList
|
|
158
|
+
* @throws ApiError
|
|
159
|
+
*/
|
|
160
|
+
static crmDealsList({ createdAtGte, createdAtLte, expectedCloseDateGte, expectedCloseDateLte, metadataHasKey, organization, owner, page, pageSize, person, pipeline, source, stage, status, }: {
|
|
161
|
+
createdAtGte?: string;
|
|
162
|
+
createdAtLte?: string;
|
|
163
|
+
expectedCloseDateGte?: string;
|
|
164
|
+
expectedCloseDateLte?: string;
|
|
165
|
+
metadataHasKey?: string;
|
|
166
|
+
organization?: string;
|
|
167
|
+
owner?: number;
|
|
168
|
+
/**
|
|
169
|
+
* A page number within the paginated result set.
|
|
170
|
+
*/
|
|
171
|
+
page?: number;
|
|
172
|
+
/**
|
|
173
|
+
* Number of results to return per page.
|
|
174
|
+
*/
|
|
175
|
+
pageSize?: number;
|
|
176
|
+
person?: string;
|
|
177
|
+
pipeline?: number;
|
|
178
|
+
source?: number;
|
|
179
|
+
stage?: number;
|
|
180
|
+
/**
|
|
181
|
+
* Service-managed (read-only in serializer). Derived from the destination stage's is_won/is_lost.
|
|
182
|
+
*
|
|
183
|
+
* * `open` - Open
|
|
184
|
+
* * `won` - Won
|
|
185
|
+
* * `lost` - Lost
|
|
186
|
+
*/
|
|
187
|
+
status?: 'lost' | 'open' | 'won';
|
|
188
|
+
}): CancelablePromise<PaginatedDealList>;
|
|
189
|
+
/**
|
|
190
|
+
* Create a deal
|
|
191
|
+
* Creates a new Deal. All FK targets (`person`, `organization`, `pipeline`, `stage`, `source`) must belong to your Platform; `stage` must belong to `pipeline`. `status` and `closed_at` are service-managed — passing them returns `400`.
|
|
192
|
+
*
|
|
193
|
+
* **Required permission:** `Ibl.CRM/Deals/write`.
|
|
194
|
+
* @returns Deal
|
|
195
|
+
* @throws ApiError
|
|
196
|
+
*/
|
|
197
|
+
static crmDealsCreate({ requestBody, }: {
|
|
198
|
+
requestBody: Deal;
|
|
199
|
+
}): CancelablePromise<Deal>;
|
|
200
|
+
/**
|
|
201
|
+
* Retrieve a deal
|
|
202
|
+
* Returns a single Deal by id.
|
|
203
|
+
*
|
|
204
|
+
* **Required permission:** `Ibl.CRM/Deals/read`.
|
|
205
|
+
* @returns Deal
|
|
206
|
+
* @throws ApiError
|
|
207
|
+
*/
|
|
208
|
+
static crmDealsRetrieve({ id, }: {
|
|
209
|
+
/**
|
|
210
|
+
* A unique integer value identifying this deal.
|
|
211
|
+
*/
|
|
212
|
+
id: number;
|
|
213
|
+
}): CancelablePromise<Deal>;
|
|
214
|
+
/**
|
|
215
|
+
* Replace a deal
|
|
216
|
+
* Replaces all editable fields on the Deal.
|
|
217
|
+
*
|
|
218
|
+
* **Required permission:** `Ibl.CRM/Deals/write`.
|
|
219
|
+
* @returns Deal
|
|
220
|
+
* @throws ApiError
|
|
221
|
+
*/
|
|
222
|
+
static crmDealsUpdate({ id, requestBody, }: {
|
|
223
|
+
/**
|
|
224
|
+
* A unique integer value identifying this deal.
|
|
225
|
+
*/
|
|
226
|
+
id: number;
|
|
227
|
+
requestBody: Deal;
|
|
228
|
+
}): CancelablePromise<Deal>;
|
|
229
|
+
/**
|
|
230
|
+
* Update a deal
|
|
231
|
+
* Updates only the supplied fields on the Deal. Direct writes to `status` or `closed_at` are rejected with `400` — use `POST /deals/{id}/move-stage/`, `won/`, or `lost/`.
|
|
232
|
+
*
|
|
233
|
+
* **Required permission:** `Ibl.CRM/Deals/write`.
|
|
234
|
+
* @returns Deal
|
|
235
|
+
* @throws ApiError
|
|
236
|
+
*/
|
|
237
|
+
static crmDealsPartialUpdate({ id, requestBody, }: {
|
|
238
|
+
/**
|
|
239
|
+
* A unique integer value identifying this deal.
|
|
240
|
+
*/
|
|
241
|
+
id: number;
|
|
242
|
+
requestBody?: PatchedDeal;
|
|
243
|
+
}): CancelablePromise<Deal>;
|
|
244
|
+
/**
|
|
245
|
+
* Delete a deal
|
|
246
|
+
* Deletes the Deal.
|
|
247
|
+
*
|
|
248
|
+
* **Required permission:** `Ibl.CRM/Deals/delete`.
|
|
249
|
+
* @returns void
|
|
250
|
+
* @throws ApiError
|
|
251
|
+
*/
|
|
252
|
+
static crmDealsDestroy({ id, }: {
|
|
253
|
+
/**
|
|
254
|
+
* A unique integer value identifying this deal.
|
|
255
|
+
*/
|
|
256
|
+
id: number;
|
|
257
|
+
}): CancelablePromise<void>;
|
|
258
|
+
/**
|
|
259
|
+
* Mark a deal as lost
|
|
260
|
+
* Moves the Deal into a closed-lost stage and persists `lost_reason`. If `stage_code` is omitted, the first `is_lost=True` stage in the Deal's pipeline (by sort order) is used.
|
|
261
|
+
*
|
|
262
|
+
* **Required permission:** `Ibl.CRM/Deals/write`.
|
|
263
|
+
* @returns Deal
|
|
264
|
+
* @throws ApiError
|
|
265
|
+
*/
|
|
266
|
+
static crmDealsLostCreate({ id, requestBody, }: {
|
|
267
|
+
/**
|
|
268
|
+
* A unique integer value identifying this deal.
|
|
269
|
+
*/
|
|
270
|
+
id: number;
|
|
271
|
+
requestBody: DealLostRequest;
|
|
272
|
+
}): CancelablePromise<Deal>;
|
|
273
|
+
/**
|
|
274
|
+
* Move a deal to a different stage
|
|
275
|
+
* Moves the Deal to the stage identified by `stage_id` or `stage_code`. The target stage must belong to this Deal's pipeline. Records an audit Activity and emits `deal_stage_changed`. `Deal.status` is recomputed from the new stage's `is_won` / `is_lost` flags.
|
|
276
|
+
*
|
|
277
|
+
* **Required permission:** `Ibl.CRM/Deals/write`.
|
|
278
|
+
* @returns Deal
|
|
279
|
+
* @throws ApiError
|
|
280
|
+
*/
|
|
281
|
+
static crmDealsMoveStageCreate({ id, requestBody, }: {
|
|
282
|
+
/**
|
|
283
|
+
* A unique integer value identifying this deal.
|
|
284
|
+
*/
|
|
285
|
+
id: number;
|
|
286
|
+
requestBody?: DealMoveStageRequest;
|
|
287
|
+
}): CancelablePromise<Deal>;
|
|
288
|
+
/**
|
|
289
|
+
* Mark a deal as won
|
|
290
|
+
* Moves the Deal into a closed-won stage and sets `status='won'`. If `stage_code` is omitted, the first `is_won=True` stage in the Deal's pipeline (by sort order) is used.
|
|
291
|
+
*
|
|
292
|
+
* **Required permission:** `Ibl.CRM/Deals/write`.
|
|
293
|
+
* @returns Deal
|
|
294
|
+
* @throws ApiError
|
|
295
|
+
*/
|
|
296
|
+
static crmDealsWonCreate({ id, requestBody, }: {
|
|
297
|
+
/**
|
|
298
|
+
* A unique integer value identifying this deal.
|
|
299
|
+
*/
|
|
300
|
+
id: number;
|
|
301
|
+
requestBody?: DealWonRequest;
|
|
302
|
+
}): CancelablePromise<Deal>;
|
|
303
|
+
/**
|
|
304
|
+
* List lead sources
|
|
305
|
+
* Returns a paginated list of LeadSources in your Platform.
|
|
306
|
+
*
|
|
307
|
+
* **Required permission:** `Ibl.CRM/Pipelines/list`.
|
|
308
|
+
* @returns PaginatedLeadSourceList
|
|
309
|
+
* @throws ApiError
|
|
310
|
+
*/
|
|
311
|
+
static crmLeadSourcesList({ code, name, page, pageSize, }: {
|
|
312
|
+
code?: string;
|
|
313
|
+
name?: string;
|
|
314
|
+
/**
|
|
315
|
+
* A page number within the paginated result set.
|
|
316
|
+
*/
|
|
317
|
+
page?: number;
|
|
318
|
+
/**
|
|
319
|
+
* Number of results to return per page.
|
|
320
|
+
*/
|
|
321
|
+
pageSize?: number;
|
|
322
|
+
}): CancelablePromise<PaginatedLeadSourceList>;
|
|
323
|
+
/**
|
|
324
|
+
* Create a lead source
|
|
325
|
+
* Creates a new LeadSource in your Platform. `code` must be unique.
|
|
326
|
+
*
|
|
327
|
+
* **Required permission:** `Ibl.CRM/Pipelines/write`.
|
|
328
|
+
* @returns LeadSource
|
|
329
|
+
* @throws ApiError
|
|
330
|
+
*/
|
|
331
|
+
static crmLeadSourcesCreate({ requestBody, }: {
|
|
332
|
+
requestBody: LeadSource;
|
|
333
|
+
}): CancelablePromise<LeadSource>;
|
|
334
|
+
/**
|
|
335
|
+
* Retrieve a lead source
|
|
336
|
+
* Returns a single LeadSource by id.
|
|
337
|
+
*
|
|
338
|
+
* **Required permission:** `Ibl.CRM/Pipelines/read`.
|
|
339
|
+
* @returns LeadSource
|
|
340
|
+
* @throws ApiError
|
|
341
|
+
*/
|
|
342
|
+
static crmLeadSourcesRetrieve({ id, }: {
|
|
343
|
+
/**
|
|
344
|
+
* A unique integer value identifying this lead source.
|
|
345
|
+
*/
|
|
346
|
+
id: number;
|
|
347
|
+
}): CancelablePromise<LeadSource>;
|
|
348
|
+
/**
|
|
349
|
+
* Replace a lead source
|
|
350
|
+
* Replaces all editable fields on the LeadSource.
|
|
351
|
+
*
|
|
352
|
+
* **Required permission:** `Ibl.CRM/Pipelines/write`.
|
|
353
|
+
* @returns LeadSource
|
|
354
|
+
* @throws ApiError
|
|
355
|
+
*/
|
|
356
|
+
static crmLeadSourcesUpdate({ id, requestBody, }: {
|
|
357
|
+
/**
|
|
358
|
+
* A unique integer value identifying this lead source.
|
|
359
|
+
*/
|
|
360
|
+
id: number;
|
|
361
|
+
requestBody: LeadSource;
|
|
362
|
+
}): CancelablePromise<LeadSource>;
|
|
363
|
+
/**
|
|
364
|
+
* Update a lead source
|
|
365
|
+
* Updates only the supplied fields on the LeadSource.
|
|
366
|
+
*
|
|
367
|
+
* **Required permission:** `Ibl.CRM/Pipelines/write`.
|
|
368
|
+
* @returns LeadSource
|
|
369
|
+
* @throws ApiError
|
|
370
|
+
*/
|
|
371
|
+
static crmLeadSourcesPartialUpdate({ id, requestBody, }: {
|
|
372
|
+
/**
|
|
373
|
+
* A unique integer value identifying this lead source.
|
|
374
|
+
*/
|
|
375
|
+
id: number;
|
|
376
|
+
requestBody?: PatchedLeadSource;
|
|
377
|
+
}): CancelablePromise<LeadSource>;
|
|
378
|
+
/**
|
|
379
|
+
* Delete a lead source
|
|
380
|
+
* Deletes the LeadSource. Any Deals referencing it have their `source` cleared.
|
|
381
|
+
*
|
|
382
|
+
* **Required permission:** `Ibl.CRM/Pipelines/delete`.
|
|
383
|
+
* @returns void
|
|
384
|
+
* @throws ApiError
|
|
385
|
+
*/
|
|
386
|
+
static crmLeadSourcesDestroy({ id, }: {
|
|
387
|
+
/**
|
|
388
|
+
* A unique integer value identifying this lead source.
|
|
389
|
+
*/
|
|
390
|
+
id: number;
|
|
391
|
+
}): CancelablePromise<void>;
|
|
14
392
|
/**
|
|
15
393
|
* List organizations
|
|
16
394
|
* Returns a paginated list of organizations in your Platform. Supports filtering by `owner` and by `name` (case-insensitive substring match).
|
|
@@ -100,7 +478,7 @@ export declare class CrmService {
|
|
|
100
478
|
createdAtGte?: string;
|
|
101
479
|
createdAtLte?: string;
|
|
102
480
|
/**
|
|
103
|
-
* Funnel position.
|
|
481
|
+
* Funnel position. Transitions are unrestricted — any stage may move to any other.
|
|
104
482
|
*
|
|
105
483
|
* * `lead` - Lead
|
|
106
484
|
* * `qualified` - Qualified
|
|
@@ -219,4 +597,178 @@ export declare class CrmService {
|
|
|
219
597
|
static crmPersonsMergeCreate({ requestBody, }: {
|
|
220
598
|
requestBody: PersonMergeRequest;
|
|
221
599
|
}): CancelablePromise<PersonMergeResponse>;
|
|
600
|
+
/**
|
|
601
|
+
* List pipelines
|
|
602
|
+
* Returns a paginated list of Pipelines in your Platform. Each Pipeline includes its ordered `stages` inline.
|
|
603
|
+
*
|
|
604
|
+
* **Required permission:** `Ibl.CRM/Pipelines/list`.
|
|
605
|
+
* @returns PaginatedPipelineList
|
|
606
|
+
* @throws ApiError
|
|
607
|
+
*/
|
|
608
|
+
static crmPipelinesList({ code, isDefault, name, page, pageSize, }: {
|
|
609
|
+
code?: string;
|
|
610
|
+
isDefault?: boolean;
|
|
611
|
+
name?: string;
|
|
612
|
+
/**
|
|
613
|
+
* A page number within the paginated result set.
|
|
614
|
+
*/
|
|
615
|
+
page?: number;
|
|
616
|
+
/**
|
|
617
|
+
* Number of results to return per page.
|
|
618
|
+
*/
|
|
619
|
+
pageSize?: number;
|
|
620
|
+
}): CancelablePromise<PaginatedPipelineList>;
|
|
621
|
+
/**
|
|
622
|
+
* Create a pipeline
|
|
623
|
+
* Creates a new Pipeline. `code` must be unique within your Platform. Promoting another Pipeline to `is_default=true` while one already exists will fail — unset the existing default first.
|
|
624
|
+
*
|
|
625
|
+
* **Required permission:** `Ibl.CRM/Pipelines/write`.
|
|
626
|
+
* @returns Pipeline
|
|
627
|
+
* @throws ApiError
|
|
628
|
+
*/
|
|
629
|
+
static crmPipelinesCreate({ requestBody, }: {
|
|
630
|
+
requestBody: Pipeline;
|
|
631
|
+
}): CancelablePromise<Pipeline>;
|
|
632
|
+
/**
|
|
633
|
+
* List stages for a pipeline
|
|
634
|
+
* Returns the ordered list of PipelineStages for the given Pipeline.
|
|
635
|
+
*
|
|
636
|
+
* **Required permission:** `Ibl.CRM/Pipelines/list`.
|
|
637
|
+
* @returns PaginatedPipelineStageList
|
|
638
|
+
* @throws ApiError
|
|
639
|
+
*/
|
|
640
|
+
static crmPipelinesStagesList({ pipelinePk, code, isLost, isWon, page, pageSize, }: {
|
|
641
|
+
pipelinePk: number;
|
|
642
|
+
code?: string;
|
|
643
|
+
isLost?: boolean;
|
|
644
|
+
isWon?: boolean;
|
|
645
|
+
/**
|
|
646
|
+
* A page number within the paginated result set.
|
|
647
|
+
*/
|
|
648
|
+
page?: number;
|
|
649
|
+
/**
|
|
650
|
+
* Number of results to return per page.
|
|
651
|
+
*/
|
|
652
|
+
pageSize?: number;
|
|
653
|
+
}): CancelablePromise<PaginatedPipelineStageList>;
|
|
654
|
+
/**
|
|
655
|
+
* Create a stage
|
|
656
|
+
* Creates a new PipelineStage in the URL Pipeline. `code` must be unique within that Pipeline. At most one of `is_won` / `is_lost` may be true.
|
|
657
|
+
*
|
|
658
|
+
* **Required permission:** `Ibl.CRM/Pipelines/write`.
|
|
659
|
+
* @returns PipelineStage
|
|
660
|
+
* @throws ApiError
|
|
661
|
+
*/
|
|
662
|
+
static crmPipelinesStagesCreate({ pipelinePk, requestBody, }: {
|
|
663
|
+
pipelinePk: number;
|
|
664
|
+
requestBody: PipelineStage;
|
|
665
|
+
}): CancelablePromise<PipelineStage>;
|
|
666
|
+
/**
|
|
667
|
+
* Retrieve a stage
|
|
668
|
+
* Returns a single PipelineStage by id (must belong to the URL Pipeline).
|
|
669
|
+
*
|
|
670
|
+
* **Required permission:** `Ibl.CRM/Pipelines/read`.
|
|
671
|
+
* @returns PipelineStage
|
|
672
|
+
* @throws ApiError
|
|
673
|
+
*/
|
|
674
|
+
static crmPipelinesStagesRetrieve({ id, pipelinePk, }: {
|
|
675
|
+
id: number;
|
|
676
|
+
pipelinePk: number;
|
|
677
|
+
}): CancelablePromise<PipelineStage>;
|
|
678
|
+
/**
|
|
679
|
+
* Replace a stage
|
|
680
|
+
* Replaces all editable fields on the PipelineStage.
|
|
681
|
+
*
|
|
682
|
+
* **Required permission:** `Ibl.CRM/Pipelines/write`.
|
|
683
|
+
* @returns PipelineStage
|
|
684
|
+
* @throws ApiError
|
|
685
|
+
*/
|
|
686
|
+
static crmPipelinesStagesUpdate({ id, pipelinePk, requestBody, }: {
|
|
687
|
+
id: number;
|
|
688
|
+
pipelinePk: number;
|
|
689
|
+
requestBody: PipelineStage;
|
|
690
|
+
}): CancelablePromise<PipelineStage>;
|
|
691
|
+
/**
|
|
692
|
+
* Update a stage
|
|
693
|
+
* Updates only the supplied fields on the PipelineStage.
|
|
694
|
+
*
|
|
695
|
+
* **Required permission:** `Ibl.CRM/Pipelines/write`.
|
|
696
|
+
* @returns PipelineStage
|
|
697
|
+
* @throws ApiError
|
|
698
|
+
*/
|
|
699
|
+
static crmPipelinesStagesPartialUpdate({ id, pipelinePk, requestBody, }: {
|
|
700
|
+
id: number;
|
|
701
|
+
pipelinePk: number;
|
|
702
|
+
requestBody?: PatchedPipelineStage;
|
|
703
|
+
}): CancelablePromise<PipelineStage>;
|
|
704
|
+
/**
|
|
705
|
+
* Delete a stage
|
|
706
|
+
* Deletes the PipelineStage. Fails with `409 Conflict` if any Deal still references it (FK is PROTECTed).
|
|
707
|
+
*
|
|
708
|
+
* **Required permission:** `Ibl.CRM/Pipelines/delete`.
|
|
709
|
+
* @returns void
|
|
710
|
+
* @throws ApiError
|
|
711
|
+
*/
|
|
712
|
+
static crmPipelinesStagesDestroy({ id, pipelinePk, }: {
|
|
713
|
+
id: number;
|
|
714
|
+
pipelinePk: number;
|
|
715
|
+
}): CancelablePromise<void>;
|
|
716
|
+
/**
|
|
717
|
+
* Retrieve a pipeline
|
|
718
|
+
* Returns a single Pipeline by id, including its ordered `stages`.
|
|
719
|
+
*
|
|
720
|
+
* **Required permission:** `Ibl.CRM/Pipelines/read`.
|
|
721
|
+
* @returns Pipeline
|
|
722
|
+
* @throws ApiError
|
|
723
|
+
*/
|
|
724
|
+
static crmPipelinesRetrieve({ id, }: {
|
|
725
|
+
/**
|
|
726
|
+
* A unique integer value identifying this pipeline.
|
|
727
|
+
*/
|
|
728
|
+
id: number;
|
|
729
|
+
}): CancelablePromise<Pipeline>;
|
|
730
|
+
/**
|
|
731
|
+
* Replace a pipeline
|
|
732
|
+
* Replaces all editable fields on the Pipeline.
|
|
733
|
+
*
|
|
734
|
+
* **Required permission:** `Ibl.CRM/Pipelines/write`.
|
|
735
|
+
* @returns Pipeline
|
|
736
|
+
* @throws ApiError
|
|
737
|
+
*/
|
|
738
|
+
static crmPipelinesUpdate({ id, requestBody, }: {
|
|
739
|
+
/**
|
|
740
|
+
* A unique integer value identifying this pipeline.
|
|
741
|
+
*/
|
|
742
|
+
id: number;
|
|
743
|
+
requestBody: Pipeline;
|
|
744
|
+
}): CancelablePromise<Pipeline>;
|
|
745
|
+
/**
|
|
746
|
+
* Update a pipeline
|
|
747
|
+
* Updates only the supplied fields on the Pipeline.
|
|
748
|
+
*
|
|
749
|
+
* **Required permission:** `Ibl.CRM/Pipelines/write`.
|
|
750
|
+
* @returns Pipeline
|
|
751
|
+
* @throws ApiError
|
|
752
|
+
*/
|
|
753
|
+
static crmPipelinesPartialUpdate({ id, requestBody, }: {
|
|
754
|
+
/**
|
|
755
|
+
* A unique integer value identifying this pipeline.
|
|
756
|
+
*/
|
|
757
|
+
id: number;
|
|
758
|
+
requestBody?: PatchedPipeline;
|
|
759
|
+
}): CancelablePromise<Pipeline>;
|
|
760
|
+
/**
|
|
761
|
+
* Delete a pipeline
|
|
762
|
+
* Deletes the Pipeline. Fails with `409 Conflict` if any Deal still references it (FK is PROTECTed).
|
|
763
|
+
*
|
|
764
|
+
* **Required permission:** `Ibl.CRM/Pipelines/delete`.
|
|
765
|
+
* @returns void
|
|
766
|
+
* @throws ApiError
|
|
767
|
+
*/
|
|
768
|
+
static crmPipelinesDestroy({ id, }: {
|
|
769
|
+
/**
|
|
770
|
+
* A unique integer value identifying this pipeline.
|
|
771
|
+
*/
|
|
772
|
+
id: number;
|
|
773
|
+
}): CancelablePromise<void>;
|
|
222
774
|
}
|