pipedrive 24.1.1 → 25.0.0
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/esm/versions/v1/api/deals-api.d.ts +3 -3
- package/dist/esm/versions/v1/api/deals-api.js +2 -2
- package/dist/esm/versions/v1/api/organizations-api.d.ts +3 -3
- package/dist/esm/versions/v1/api/organizations-api.js +2 -2
- package/dist/esm/versions/v1/api/persons-api.d.ts +3 -3
- package/dist/esm/versions/v1/api/persons-api.js +2 -2
- package/dist/esm/versions/v1/api/subscriptions-api.d.ts +36 -36
- package/dist/esm/versions/v1/api/subscriptions-api.js +36 -36
- package/dist/esm/versions/v1/api/webhooks-api.d.ts +4 -4
- package/dist/esm/versions/v1/api/webhooks-api.js +4 -4
- package/dist/esm/versions/v1/models/add-webhook-request.d.ts +5 -6
- package/dist/esm/versions/v1/models/add-webhook-request.js +4 -5
- package/dist/esm/versions/v1/models/additional-data.d.ts +38 -0
- package/dist/esm/versions/v1/models/additional-data.js +14 -0
- package/dist/esm/versions/v1/models/get-notes-response-additional-data.d.ts +3 -3
- package/dist/esm/versions/v1/models/index.d.ts +1 -1
- package/dist/esm/versions/v1/models/index.js +1 -1
- package/dist/esm/versions/v1/models/user-access.d.ts +3 -2
- package/dist/esm/versions/v1/models/user-access.js +4 -3
- package/dist/esm/versions/v1/models/user-access1.d.ts +3 -2
- package/dist/esm/versions/v1/models/user-access1.js +4 -3
- package/dist/esm/versions/v2/api/activities-api.d.ts +34 -2
- package/dist/esm/versions/v2/api/activities-api.js +25 -5
- package/dist/esm/versions/v2/api/beta-api.d.ts +160 -2424
- package/dist/esm/versions/v2/api/beta-api.js +169 -2788
- package/dist/esm/versions/v2/api/deals-api.d.ts +491 -0
- package/dist/esm/versions/v2/api/deals-api.js +613 -0
- package/dist/esm/versions/v2/api/organizations-api.d.ts +237 -0
- package/dist/esm/versions/v2/api/organizations-api.js +301 -0
- package/dist/esm/versions/v2/api/persons-api.d.ts +237 -0
- package/dist/esm/versions/v2/api/persons-api.js +301 -0
- package/dist/esm/versions/v2/api/products-api.d.ts +237 -0
- package/dist/esm/versions/v2/api/products-api.js +301 -0
- package/dist/esm/versions/v2/api/users-api.d.ts +103 -0
- package/dist/esm/versions/v2/api/users-api.js +140 -0
- package/dist/esm/versions/v2/api.d.ts +1 -0
- package/dist/esm/versions/v2/api.js +1 -0
- package/dist/esm/versions/v2/models/add-ainstallment-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/add-ainstallment-response.js +14 -0
- package/dist/esm/versions/v2/models/add-deal-follower-request.d.ts +23 -0
- package/dist/esm/versions/v2/models/add-deal-follower-request.js +14 -0
- package/dist/esm/versions/v2/models/add-follower-response-all-of.d.ts +24 -0
- package/dist/esm/versions/v2/models/add-follower-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/add-follower-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/add-follower-response.js +14 -0
- package/dist/esm/versions/v2/models/add-installment-request-body.d.ts +33 -0
- package/dist/esm/versions/v2/models/add-installment-request-body.js +14 -0
- package/dist/esm/versions/v2/models/delete-follower-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/delete-follower-response-data.js +14 -0
- package/dist/esm/versions/v2/models/delete-follower-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/delete-follower-response.js +14 -0
- package/dist/esm/versions/v2/models/delete-installment-response-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/delete-installment-response-data.js +14 -0
- package/dist/esm/versions/v2/models/delete-installment-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/delete-installment-response.js +14 -0
- package/dist/esm/versions/v2/models/follower-changelog-item.d.ts +38 -0
- package/dist/esm/versions/v2/models/follower-changelog-item.js +14 -0
- package/dist/esm/versions/v2/models/follower-item.d.ts +28 -0
- package/dist/esm/versions/v2/models/follower-item.js +14 -0
- package/dist/esm/versions/v2/models/follower-item1.d.ts +28 -0
- package/dist/esm/versions/v2/models/follower-item1.js +14 -0
- package/dist/esm/versions/v2/models/get-activities-response-all-of-additional-data.d.ts +23 -0
- package/dist/esm/versions/v2/models/get-activities-response-all-of-additional-data.js +14 -0
- package/dist/esm/versions/v2/models/get-activities-response-all-of.d.ts +6 -0
- package/dist/esm/versions/v2/models/get-deals-response-all-of.d.ts +6 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response-all-of.d.ts +30 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/get-follower-changelogs-response.js +14 -0
- package/dist/esm/versions/v2/models/get-followers-response-all-of.d.ts +30 -0
- package/dist/esm/versions/v2/models/get-followers-response-all-of.js +14 -0
- package/dist/esm/versions/v2/models/get-followers-response.d.ts +18 -0
- package/dist/esm/versions/v2/models/get-followers-response.js +14 -0
- package/dist/esm/versions/v2/models/get-installments-response-data-inner.d.ts +43 -0
- package/dist/esm/versions/v2/models/get-installments-response-data-inner.js +14 -0
- package/dist/esm/versions/v2/models/get-installments-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/get-installments-response.js +14 -0
- package/dist/esm/versions/v2/models/get-organizations-response-all-of.d.ts +6 -0
- package/dist/esm/versions/v2/models/get-persons-response-all-of.d.ts +6 -0
- package/dist/esm/versions/v2/models/get-pipelines-response-all-of.d.ts +6 -0
- package/dist/esm/versions/v2/models/get-stages-response.d.ts +6 -0
- package/dist/esm/versions/v2/models/index.d.ts +21 -0
- package/dist/esm/versions/v2/models/index.js +21 -0
- package/dist/esm/versions/v2/models/update-installment-request-body.d.ts +33 -0
- package/dist/esm/versions/v2/models/update-installment-request-body.js +14 -0
- package/dist/esm/versions/v2/models/update-installment-response.d.ts +29 -0
- package/dist/esm/versions/v2/models/update-installment-response.js +14 -0
- package/dist/versions/v1/api/deals-api.d.ts +3 -3
- package/dist/versions/v1/api/deals-api.js +2 -2
- package/dist/versions/v1/api/organizations-api.d.ts +3 -3
- package/dist/versions/v1/api/organizations-api.js +2 -2
- package/dist/versions/v1/api/persons-api.d.ts +3 -3
- package/dist/versions/v1/api/persons-api.js +2 -2
- package/dist/versions/v1/api/subscriptions-api.d.ts +36 -36
- package/dist/versions/v1/api/subscriptions-api.js +36 -36
- package/dist/versions/v1/api/webhooks-api.d.ts +4 -4
- package/dist/versions/v1/api/webhooks-api.js +4 -4
- package/dist/versions/v1/models/add-webhook-request.d.ts +5 -6
- package/dist/versions/v1/models/add-webhook-request.js +4 -5
- package/dist/versions/v1/models/additional-data.d.ts +38 -0
- package/dist/versions/v1/models/additional-data.js +15 -0
- package/dist/versions/v1/models/get-notes-response-additional-data.d.ts +3 -3
- package/dist/versions/v1/models/index.d.ts +1 -1
- package/dist/versions/v1/models/index.js +1 -1
- package/dist/versions/v1/models/user-access.d.ts +3 -2
- package/dist/versions/v1/models/user-access.js +4 -3
- package/dist/versions/v1/models/user-access1.d.ts +3 -2
- package/dist/versions/v1/models/user-access1.js +4 -3
- package/dist/versions/v2/api/activities-api.d.ts +34 -2
- package/dist/versions/v2/api/activities-api.js +25 -5
- package/dist/versions/v2/api/beta-api.d.ts +160 -2424
- package/dist/versions/v2/api/beta-api.js +171 -2790
- package/dist/versions/v2/api/deals-api.d.ts +491 -0
- package/dist/versions/v2/api/deals-api.js +613 -0
- package/dist/versions/v2/api/organizations-api.d.ts +237 -0
- package/dist/versions/v2/api/organizations-api.js +301 -0
- package/dist/versions/v2/api/persons-api.d.ts +237 -0
- package/dist/versions/v2/api/persons-api.js +301 -0
- package/dist/versions/v2/api/products-api.d.ts +237 -0
- package/dist/versions/v2/api/products-api.js +301 -0
- package/dist/versions/v2/api/users-api.d.ts +103 -0
- package/dist/versions/v2/api/users-api.js +150 -0
- package/dist/versions/v2/api.d.ts +1 -0
- package/dist/versions/v2/api.js +1 -0
- package/dist/versions/v2/models/add-ainstallment-response.d.ts +29 -0
- package/dist/versions/v2/models/add-ainstallment-response.js +15 -0
- package/dist/versions/v2/models/add-deal-follower-request.d.ts +23 -0
- package/dist/versions/v2/models/add-deal-follower-request.js +15 -0
- package/dist/versions/v2/models/add-follower-response-all-of.d.ts +24 -0
- package/dist/versions/v2/models/add-follower-response-all-of.js +15 -0
- package/dist/versions/v2/models/add-follower-response.d.ts +18 -0
- package/dist/versions/v2/models/add-follower-response.js +15 -0
- package/dist/versions/v2/models/add-installment-request-body.d.ts +33 -0
- package/dist/versions/v2/models/add-installment-request-body.js +15 -0
- package/dist/versions/v2/models/delete-follower-response-data.d.ts +23 -0
- package/dist/versions/v2/models/delete-follower-response-data.js +15 -0
- package/dist/versions/v2/models/delete-follower-response.d.ts +29 -0
- package/dist/versions/v2/models/delete-follower-response.js +15 -0
- package/dist/versions/v2/models/delete-installment-response-data.d.ts +23 -0
- package/dist/versions/v2/models/delete-installment-response-data.js +15 -0
- package/dist/versions/v2/models/delete-installment-response.d.ts +29 -0
- package/dist/versions/v2/models/delete-installment-response.js +15 -0
- package/dist/versions/v2/models/follower-changelog-item.d.ts +38 -0
- package/dist/versions/v2/models/follower-changelog-item.js +15 -0
- package/dist/versions/v2/models/follower-item.d.ts +28 -0
- package/dist/versions/v2/models/follower-item.js +15 -0
- package/dist/versions/v2/models/follower-item1.d.ts +28 -0
- package/dist/versions/v2/models/follower-item1.js +15 -0
- package/dist/versions/v2/models/get-activities-response-all-of-additional-data.d.ts +23 -0
- package/dist/versions/v2/models/get-activities-response-all-of-additional-data.js +15 -0
- package/dist/versions/v2/models/get-activities-response-all-of.d.ts +6 -0
- package/dist/versions/v2/models/get-deals-response-all-of.d.ts +6 -0
- package/dist/versions/v2/models/get-follower-changelogs-response-all-of.d.ts +30 -0
- package/dist/versions/v2/models/get-follower-changelogs-response-all-of.js +15 -0
- package/dist/versions/v2/models/get-follower-changelogs-response.d.ts +18 -0
- package/dist/versions/v2/models/get-follower-changelogs-response.js +15 -0
- package/dist/versions/v2/models/get-followers-response-all-of.d.ts +30 -0
- package/dist/versions/v2/models/get-followers-response-all-of.js +15 -0
- package/dist/versions/v2/models/get-followers-response.d.ts +18 -0
- package/dist/versions/v2/models/get-followers-response.js +15 -0
- package/dist/versions/v2/models/get-installments-response-data-inner.d.ts +43 -0
- package/dist/versions/v2/models/get-installments-response-data-inner.js +15 -0
- package/dist/versions/v2/models/get-installments-response.d.ts +29 -0
- package/dist/versions/v2/models/get-installments-response.js +15 -0
- package/dist/versions/v2/models/get-organizations-response-all-of.d.ts +6 -0
- package/dist/versions/v2/models/get-persons-response-all-of.d.ts +6 -0
- package/dist/versions/v2/models/get-pipelines-response-all-of.d.ts +6 -0
- package/dist/versions/v2/models/get-stages-response.d.ts +6 -0
- package/dist/versions/v2/models/index.d.ts +21 -0
- package/dist/versions/v2/models/index.js +21 -0
- package/dist/versions/v2/models/update-installment-request-body.d.ts +33 -0
- package/dist/versions/v2/models/update-installment-request-body.js +15 -0
- package/dist/versions/v2/models/update-installment-response.d.ts +29 -0
- package/dist/versions/v2/models/update-installment-response.js +15 -0
- package/package.json +1 -1
@@ -65,6 +65,43 @@ export const DealsApiAxiosParamCreator = function (configuration) {
|
|
65
65
|
options: localVarRequestOptions,
|
66
66
|
};
|
67
67
|
}),
|
68
|
+
/**
|
69
|
+
* Adds a user as a follower to the deal.
|
70
|
+
* @summary Add a follower to a deal
|
71
|
+
* @param {number} id The ID of the deal
|
72
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
73
|
+
|
74
|
+
* @throws {RequiredError}
|
75
|
+
*/
|
76
|
+
addDealFollower: (id, AddDealFollowerRequest) => __awaiter(this, void 0, void 0, function* () {
|
77
|
+
// verify required parameter 'id' is not null or undefined
|
78
|
+
assertParamExists('addDealFollower', 'id', id);
|
79
|
+
const localVarPath = `/deals/{id}/followers`
|
80
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
81
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
82
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
83
|
+
let baseOptions;
|
84
|
+
if (configuration) {
|
85
|
+
baseOptions = configuration.baseOptions;
|
86
|
+
}
|
87
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
88
|
+
const localVarHeaderParameter = {};
|
89
|
+
const localVarQueryParameter = {};
|
90
|
+
// authentication api_key required
|
91
|
+
yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
|
92
|
+
// authentication oauth2 required
|
93
|
+
// oauth required
|
94
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration);
|
95
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
96
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
97
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
98
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
99
|
+
localVarRequestOptions.data = serializeDataIfNeeded(AddDealFollowerRequest, localVarRequestOptions, configuration);
|
100
|
+
return {
|
101
|
+
url: toPathString(localVarUrlObj),
|
102
|
+
options: localVarRequestOptions,
|
103
|
+
};
|
104
|
+
}),
|
68
105
|
/**
|
69
106
|
* Adds a product to a deal, creating a new item called a deal-product.
|
70
107
|
* @summary Add a product to a deal
|
@@ -174,6 +211,44 @@ export const DealsApiAxiosParamCreator = function (configuration) {
|
|
174
211
|
options: localVarRequestOptions,
|
175
212
|
};
|
176
213
|
}),
|
214
|
+
/**
|
215
|
+
* Deletes a user follower from the deal.
|
216
|
+
* @summary Delete a follower from a deal
|
217
|
+
* @param {number} id The ID of the deal
|
218
|
+
* @param {number} follower_id The ID of the following user
|
219
|
+
|
220
|
+
* @throws {RequiredError}
|
221
|
+
*/
|
222
|
+
deleteDealFollower: (id, follower_id) => __awaiter(this, void 0, void 0, function* () {
|
223
|
+
// verify required parameter 'id' is not null or undefined
|
224
|
+
assertParamExists('deleteDealFollower', 'id', id);
|
225
|
+
// verify required parameter 'follower_id' is not null or undefined
|
226
|
+
assertParamExists('deleteDealFollower', 'follower_id', follower_id);
|
227
|
+
const localVarPath = `/deals/{id}/followers/{follower_id}`
|
228
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
229
|
+
.replace(`{${"follower_id"}}`, encodeURIComponent(String(follower_id)));
|
230
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
231
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
232
|
+
let baseOptions;
|
233
|
+
if (configuration) {
|
234
|
+
baseOptions = configuration.baseOptions;
|
235
|
+
}
|
236
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
237
|
+
const localVarHeaderParameter = {};
|
238
|
+
const localVarQueryParameter = {};
|
239
|
+
// authentication api_key required
|
240
|
+
yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
|
241
|
+
// authentication oauth2 required
|
242
|
+
// oauth required
|
243
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration);
|
244
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
245
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
246
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
247
|
+
return {
|
248
|
+
url: toPathString(localVarUrlObj),
|
249
|
+
options: localVarRequestOptions,
|
250
|
+
};
|
251
|
+
}),
|
177
252
|
/**
|
178
253
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
179
254
|
* @summary Delete an attached product from a deal
|
@@ -212,6 +287,44 @@ export const DealsApiAxiosParamCreator = function (configuration) {
|
|
212
287
|
options: localVarRequestOptions,
|
213
288
|
};
|
214
289
|
}),
|
290
|
+
/**
|
291
|
+
* Removes an installment from a deal. Only available in Advanced and above plans.
|
292
|
+
* @summary Delete an installment from a deal
|
293
|
+
* @param {number} id The ID of the deal
|
294
|
+
* @param {number} installment_id The ID of the installment
|
295
|
+
|
296
|
+
* @throws {RequiredError}
|
297
|
+
*/
|
298
|
+
deleteInstallment: (id, installment_id) => __awaiter(this, void 0, void 0, function* () {
|
299
|
+
// verify required parameter 'id' is not null or undefined
|
300
|
+
assertParamExists('deleteInstallment', 'id', id);
|
301
|
+
// verify required parameter 'installment_id' is not null or undefined
|
302
|
+
assertParamExists('deleteInstallment', 'installment_id', installment_id);
|
303
|
+
const localVarPath = `/deals/{id}/installments/{installment_id}`
|
304
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
305
|
+
.replace(`{${"installment_id"}}`, encodeURIComponent(String(installment_id)));
|
306
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
307
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
308
|
+
let baseOptions;
|
309
|
+
if (configuration) {
|
310
|
+
baseOptions = configuration.baseOptions;
|
311
|
+
}
|
312
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
313
|
+
const localVarHeaderParameter = {};
|
314
|
+
const localVarQueryParameter = {};
|
315
|
+
// authentication api_key required
|
316
|
+
yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
|
317
|
+
// authentication oauth2 required
|
318
|
+
// oauth required
|
319
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
320
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
321
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
322
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
323
|
+
return {
|
324
|
+
url: toPathString(localVarUrlObj),
|
325
|
+
options: localVarRequestOptions,
|
326
|
+
};
|
327
|
+
}),
|
215
328
|
/**
|
216
329
|
* Lists discounts attached to a deal.
|
217
330
|
* @summary List discounts added to a deal
|
@@ -288,6 +401,90 @@ export const DealsApiAxiosParamCreator = function (configuration) {
|
|
288
401
|
options: localVarRequestOptions,
|
289
402
|
};
|
290
403
|
}),
|
404
|
+
/**
|
405
|
+
* Lists users who are following the deal.
|
406
|
+
* @summary List followers of a deal
|
407
|
+
* @param {number} id The ID of the deal
|
408
|
+
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
409
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
410
|
+
|
411
|
+
* @throws {RequiredError}
|
412
|
+
*/
|
413
|
+
getDealFollowers: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
414
|
+
// verify required parameter 'id' is not null or undefined
|
415
|
+
assertParamExists('getDealFollowers', 'id', id);
|
416
|
+
const localVarPath = `/deals/{id}/followers`
|
417
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
418
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
419
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
420
|
+
let baseOptions;
|
421
|
+
if (configuration) {
|
422
|
+
baseOptions = configuration.baseOptions;
|
423
|
+
}
|
424
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
425
|
+
const localVarHeaderParameter = {};
|
426
|
+
const localVarQueryParameter = {};
|
427
|
+
// authentication api_key required
|
428
|
+
yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
|
429
|
+
// authentication oauth2 required
|
430
|
+
// oauth required
|
431
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
432
|
+
if (limit !== undefined) {
|
433
|
+
localVarQueryParameter['limit'] = limit;
|
434
|
+
}
|
435
|
+
if (cursor !== undefined) {
|
436
|
+
localVarQueryParameter['cursor'] = cursor;
|
437
|
+
}
|
438
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
439
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
440
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
441
|
+
return {
|
442
|
+
url: toPathString(localVarUrlObj),
|
443
|
+
options: localVarRequestOptions,
|
444
|
+
};
|
445
|
+
}),
|
446
|
+
/**
|
447
|
+
* Lists changelogs about users have followed the deal.
|
448
|
+
* @summary List followers changelog of a deal
|
449
|
+
* @param {number} id The ID of the deal
|
450
|
+
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
451
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
452
|
+
|
453
|
+
* @throws {RequiredError}
|
454
|
+
*/
|
455
|
+
getDealFollowersChangelog: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
456
|
+
// verify required parameter 'id' is not null or undefined
|
457
|
+
assertParamExists('getDealFollowersChangelog', 'id', id);
|
458
|
+
const localVarPath = `/deals/{id}/followers/changelog`
|
459
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
460
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
461
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
462
|
+
let baseOptions;
|
463
|
+
if (configuration) {
|
464
|
+
baseOptions = configuration.baseOptions;
|
465
|
+
}
|
466
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
467
|
+
const localVarHeaderParameter = {};
|
468
|
+
const localVarQueryParameter = {};
|
469
|
+
// authentication api_key required
|
470
|
+
yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
|
471
|
+
// authentication oauth2 required
|
472
|
+
// oauth required
|
473
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
474
|
+
if (limit !== undefined) {
|
475
|
+
localVarQueryParameter['limit'] = limit;
|
476
|
+
}
|
477
|
+
if (cursor !== undefined) {
|
478
|
+
localVarQueryParameter['cursor'] = cursor;
|
479
|
+
}
|
480
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
481
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
482
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
483
|
+
return {
|
484
|
+
url: toPathString(localVarUrlObj),
|
485
|
+
options: localVarRequestOptions,
|
486
|
+
};
|
487
|
+
}),
|
291
488
|
/**
|
292
489
|
* Lists products attached to a deal.
|
293
490
|
* @summary List products attached to a deal
|
@@ -484,6 +681,58 @@ export const DealsApiAxiosParamCreator = function (configuration) {
|
|
484
681
|
options: localVarRequestOptions,
|
485
682
|
};
|
486
683
|
}),
|
684
|
+
/**
|
685
|
+
* Lists installments attached to a list of deals. Only available in Advanced and above plans.
|
686
|
+
* @summary List installments added to a list of deals
|
687
|
+
* @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
|
688
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
689
|
+
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
690
|
+
* @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: `id`, `billing_date`, `deal_id`.
|
691
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
692
|
+
|
693
|
+
* @throws {RequiredError}
|
694
|
+
*/
|
695
|
+
getInstallments: (deal_ids, cursor, limit, sort_by, sort_direction) => __awaiter(this, void 0, void 0, function* () {
|
696
|
+
// verify required parameter 'deal_ids' is not null or undefined
|
697
|
+
assertParamExists('getInstallments', 'deal_ids', deal_ids);
|
698
|
+
const localVarPath = `/deals/installments`;
|
699
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
700
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
701
|
+
let baseOptions;
|
702
|
+
if (configuration) {
|
703
|
+
baseOptions = configuration.baseOptions;
|
704
|
+
}
|
705
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
706
|
+
const localVarHeaderParameter = {};
|
707
|
+
const localVarQueryParameter = {};
|
708
|
+
// authentication api_key required
|
709
|
+
yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
|
710
|
+
// authentication oauth2 required
|
711
|
+
// oauth required
|
712
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
713
|
+
if (deal_ids) {
|
714
|
+
localVarQueryParameter['deal_ids'] = deal_ids;
|
715
|
+
}
|
716
|
+
if (cursor !== undefined) {
|
717
|
+
localVarQueryParameter['cursor'] = cursor;
|
718
|
+
}
|
719
|
+
if (limit !== undefined) {
|
720
|
+
localVarQueryParameter['limit'] = limit;
|
721
|
+
}
|
722
|
+
if (sort_by !== undefined) {
|
723
|
+
localVarQueryParameter['sort_by'] = sort_by;
|
724
|
+
}
|
725
|
+
if (sort_direction !== undefined) {
|
726
|
+
localVarQueryParameter['sort_direction'] = sort_direction;
|
727
|
+
}
|
728
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
729
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
730
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
731
|
+
return {
|
732
|
+
url: toPathString(localVarUrlObj),
|
733
|
+
options: localVarRequestOptions,
|
734
|
+
};
|
735
|
+
}),
|
487
736
|
/**
|
488
737
|
* Adds a discount to a deal changing, the deal value if the deal has one-time products attached.
|
489
738
|
* @summary Add a discount to a deal
|
@@ -521,6 +770,43 @@ export const DealsApiAxiosParamCreator = function (configuration) {
|
|
521
770
|
options: localVarRequestOptions,
|
522
771
|
};
|
523
772
|
}),
|
773
|
+
/**
|
774
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
|
775
|
+
* @summary Add an installment to a deal
|
776
|
+
* @param {number} id The ID of the deal
|
777
|
+
* @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
|
778
|
+
|
779
|
+
* @throws {RequiredError}
|
780
|
+
*/
|
781
|
+
postInstallment: (id, AddInstallmentRequestBody) => __awaiter(this, void 0, void 0, function* () {
|
782
|
+
// verify required parameter 'id' is not null or undefined
|
783
|
+
assertParamExists('postInstallment', 'id', id);
|
784
|
+
const localVarPath = `/deals/{id}/installments`
|
785
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
786
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
787
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
788
|
+
let baseOptions;
|
789
|
+
if (configuration) {
|
790
|
+
baseOptions = configuration.baseOptions;
|
791
|
+
}
|
792
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
793
|
+
const localVarHeaderParameter = {};
|
794
|
+
const localVarQueryParameter = {};
|
795
|
+
// authentication api_key required
|
796
|
+
yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
|
797
|
+
// authentication oauth2 required
|
798
|
+
// oauth required
|
799
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
800
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
801
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
802
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
803
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
804
|
+
localVarRequestOptions.data = serializeDataIfNeeded(AddInstallmentRequestBody, localVarRequestOptions, configuration);
|
805
|
+
return {
|
806
|
+
url: toPathString(localVarUrlObj),
|
807
|
+
options: localVarRequestOptions,
|
808
|
+
};
|
809
|
+
}),
|
524
810
|
/**
|
525
811
|
* Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID.
|
526
812
|
* @summary Search deals
|
@@ -708,6 +994,47 @@ export const DealsApiAxiosParamCreator = function (configuration) {
|
|
708
994
|
options: localVarRequestOptions,
|
709
995
|
};
|
710
996
|
}),
|
997
|
+
/**
|
998
|
+
* Edits an installment added to a deal. Only available in Advanced and above plans.
|
999
|
+
* @summary Update an installment added to a deal
|
1000
|
+
* @param {number} id The ID of the deal
|
1001
|
+
* @param {number} installment_id The ID of the installment
|
1002
|
+
* @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
|
1003
|
+
|
1004
|
+
* @throws {RequiredError}
|
1005
|
+
*/
|
1006
|
+
updateInstallment: (id, installment_id, UpdateInstallmentRequestBody) => __awaiter(this, void 0, void 0, function* () {
|
1007
|
+
// verify required parameter 'id' is not null or undefined
|
1008
|
+
assertParamExists('updateInstallment', 'id', id);
|
1009
|
+
// verify required parameter 'installment_id' is not null or undefined
|
1010
|
+
assertParamExists('updateInstallment', 'installment_id', installment_id);
|
1011
|
+
const localVarPath = `/deals/{id}/installments/{installment_id}`
|
1012
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
1013
|
+
.replace(`{${"installment_id"}}`, encodeURIComponent(String(installment_id)));
|
1014
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1015
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1016
|
+
let baseOptions;
|
1017
|
+
if (configuration) {
|
1018
|
+
baseOptions = configuration.baseOptions;
|
1019
|
+
}
|
1020
|
+
const localVarRequestOptions = Object.assign({ method: 'PATCH' }, baseOptions);
|
1021
|
+
const localVarHeaderParameter = {};
|
1022
|
+
const localVarQueryParameter = {};
|
1023
|
+
// authentication api_key required
|
1024
|
+
yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
|
1025
|
+
// authentication oauth2 required
|
1026
|
+
// oauth required
|
1027
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
1028
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1029
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1030
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1031
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
1032
|
+
localVarRequestOptions.data = serializeDataIfNeeded(UpdateInstallmentRequestBody, localVarRequestOptions, configuration);
|
1033
|
+
return {
|
1034
|
+
url: toPathString(localVarUrlObj),
|
1035
|
+
options: localVarRequestOptions,
|
1036
|
+
};
|
1037
|
+
}),
|
711
1038
|
};
|
712
1039
|
};
|
713
1040
|
/**
|
@@ -730,6 +1057,20 @@ export const DealsApiFp = function (configuration) {
|
|
730
1057
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
731
1058
|
});
|
732
1059
|
},
|
1060
|
+
/**
|
1061
|
+
* Adds a user as a follower to the deal.
|
1062
|
+
* @summary Add a follower to a deal
|
1063
|
+
* @param {number} id The ID of the deal
|
1064
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
1065
|
+
|
1066
|
+
* @throws {RequiredError}
|
1067
|
+
*/
|
1068
|
+
addDealFollower(id, AddDealFollowerRequest) {
|
1069
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1070
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addDealFollower(id, AddDealFollowerRequest);
|
1071
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1072
|
+
});
|
1073
|
+
},
|
733
1074
|
/**
|
734
1075
|
* Adds a product to a deal, creating a new item called a deal-product.
|
735
1076
|
* @summary Add a product to a deal
|
@@ -771,6 +1112,20 @@ export const DealsApiFp = function (configuration) {
|
|
771
1112
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
772
1113
|
});
|
773
1114
|
},
|
1115
|
+
/**
|
1116
|
+
* Deletes a user follower from the deal.
|
1117
|
+
* @summary Delete a follower from a deal
|
1118
|
+
* @param {number} id The ID of the deal
|
1119
|
+
* @param {number} follower_id The ID of the following user
|
1120
|
+
|
1121
|
+
* @throws {RequiredError}
|
1122
|
+
*/
|
1123
|
+
deleteDealFollower(id, follower_id) {
|
1124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1125
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDealFollower(id, follower_id);
|
1126
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1127
|
+
});
|
1128
|
+
},
|
774
1129
|
/**
|
775
1130
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
776
1131
|
* @summary Delete an attached product from a deal
|
@@ -785,6 +1140,20 @@ export const DealsApiFp = function (configuration) {
|
|
785
1140
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
786
1141
|
});
|
787
1142
|
},
|
1143
|
+
/**
|
1144
|
+
* Removes an installment from a deal. Only available in Advanced and above plans.
|
1145
|
+
* @summary Delete an installment from a deal
|
1146
|
+
* @param {number} id The ID of the deal
|
1147
|
+
* @param {number} installment_id The ID of the installment
|
1148
|
+
|
1149
|
+
* @throws {RequiredError}
|
1150
|
+
*/
|
1151
|
+
deleteInstallment(id, installment_id) {
|
1152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1153
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInstallment(id, installment_id);
|
1154
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1155
|
+
});
|
1156
|
+
},
|
788
1157
|
/**
|
789
1158
|
* Lists discounts attached to a deal.
|
790
1159
|
* @summary List discounts added to a deal
|
@@ -813,6 +1182,36 @@ export const DealsApiFp = function (configuration) {
|
|
813
1182
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
814
1183
|
});
|
815
1184
|
},
|
1185
|
+
/**
|
1186
|
+
* Lists users who are following the deal.
|
1187
|
+
* @summary List followers of a deal
|
1188
|
+
* @param {number} id The ID of the deal
|
1189
|
+
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
1190
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
1191
|
+
|
1192
|
+
* @throws {RequiredError}
|
1193
|
+
*/
|
1194
|
+
getDealFollowers(id, limit, cursor) {
|
1195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1196
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealFollowers(id, limit, cursor);
|
1197
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1198
|
+
});
|
1199
|
+
},
|
1200
|
+
/**
|
1201
|
+
* Lists changelogs about users have followed the deal.
|
1202
|
+
* @summary List followers changelog of a deal
|
1203
|
+
* @param {number} id The ID of the deal
|
1204
|
+
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
1205
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
1206
|
+
|
1207
|
+
* @throws {RequiredError}
|
1208
|
+
*/
|
1209
|
+
getDealFollowersChangelog(id, limit, cursor) {
|
1210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1211
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealFollowersChangelog(id, limit, cursor);
|
1212
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1213
|
+
});
|
1214
|
+
},
|
816
1215
|
/**
|
817
1216
|
* Lists products attached to a deal.
|
818
1217
|
* @summary List products attached to a deal
|
@@ -875,6 +1274,23 @@ export const DealsApiFp = function (configuration) {
|
|
875
1274
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
876
1275
|
});
|
877
1276
|
},
|
1277
|
+
/**
|
1278
|
+
* Lists installments attached to a list of deals. Only available in Advanced and above plans.
|
1279
|
+
* @summary List installments added to a list of deals
|
1280
|
+
* @param {Array<number>} deal_ids An array of integers with the IDs of the deals for which the attached installments will be returned. A maximum of 100 deal IDs can be provided.
|
1281
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
1282
|
+
* @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
|
1283
|
+
* @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: `id`, `billing_date`, `deal_id`.
|
1284
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
1285
|
+
|
1286
|
+
* @throws {RequiredError}
|
1287
|
+
*/
|
1288
|
+
getInstallments(deal_ids, cursor, limit, sort_by, sort_direction) {
|
1289
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1290
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInstallments(deal_ids, cursor, limit, sort_by, sort_direction);
|
1291
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1292
|
+
});
|
1293
|
+
},
|
878
1294
|
/**
|
879
1295
|
* Adds a discount to a deal changing, the deal value if the deal has one-time products attached.
|
880
1296
|
* @summary Add a discount to a deal
|
@@ -889,6 +1305,20 @@ export const DealsApiFp = function (configuration) {
|
|
889
1305
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
890
1306
|
});
|
891
1307
|
},
|
1308
|
+
/**
|
1309
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
|
1310
|
+
* @summary Add an installment to a deal
|
1311
|
+
* @param {number} id The ID of the deal
|
1312
|
+
* @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
|
1313
|
+
|
1314
|
+
* @throws {RequiredError}
|
1315
|
+
*/
|
1316
|
+
postInstallment(id, AddInstallmentRequestBody) {
|
1317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1318
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postInstallment(id, AddInstallmentRequestBody);
|
1319
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1320
|
+
});
|
1321
|
+
},
|
892
1322
|
/**
|
893
1323
|
* Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID.
|
894
1324
|
* @summary Search deals
|
@@ -954,6 +1384,21 @@ export const DealsApiFp = function (configuration) {
|
|
954
1384
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
955
1385
|
});
|
956
1386
|
},
|
1387
|
+
/**
|
1388
|
+
* Edits an installment added to a deal. Only available in Advanced and above plans.
|
1389
|
+
* @summary Update an installment added to a deal
|
1390
|
+
* @param {number} id The ID of the deal
|
1391
|
+
* @param {number} installment_id The ID of the installment
|
1392
|
+
* @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
|
1393
|
+
|
1394
|
+
* @throws {RequiredError}
|
1395
|
+
*/
|
1396
|
+
updateInstallment(id, installment_id, UpdateInstallmentRequestBody) {
|
1397
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1398
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateInstallment(id, installment_id, UpdateInstallmentRequestBody);
|
1399
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1400
|
+
});
|
1401
|
+
},
|
957
1402
|
};
|
958
1403
|
};
|
959
1404
|
/**
|
@@ -973,6 +1418,16 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
973
1418
|
addDeal(requestParameters = {}) {
|
974
1419
|
return localVarFp.addDeal(requestParameters.AddDealRequest).then((request) => request(axios, basePath));
|
975
1420
|
},
|
1421
|
+
/**
|
1422
|
+
* Adds a user as a follower to the deal.
|
1423
|
+
* @summary Add a follower to a deal
|
1424
|
+
* @param {DealsApiAddDealFollowerRequest} requestParameters Request parameters.
|
1425
|
+
|
1426
|
+
* @throws {RequiredError}
|
1427
|
+
*/
|
1428
|
+
addDealFollower(requestParameters) {
|
1429
|
+
return localVarFp.addDealFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
|
1430
|
+
},
|
976
1431
|
/**
|
977
1432
|
* Adds a product to a deal, creating a new item called a deal-product.
|
978
1433
|
* @summary Add a product to a deal
|
@@ -1003,6 +1458,16 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
1003
1458
|
deleteDeal(requestParameters) {
|
1004
1459
|
return localVarFp.deleteDeal(requestParameters.id).then((request) => request(axios, basePath));
|
1005
1460
|
},
|
1461
|
+
/**
|
1462
|
+
* Deletes a user follower from the deal.
|
1463
|
+
* @summary Delete a follower from a deal
|
1464
|
+
* @param {DealsApiDeleteDealFollowerRequest} requestParameters Request parameters.
|
1465
|
+
|
1466
|
+
* @throws {RequiredError}
|
1467
|
+
*/
|
1468
|
+
deleteDealFollower(requestParameters) {
|
1469
|
+
return localVarFp.deleteDealFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
|
1470
|
+
},
|
1006
1471
|
/**
|
1007
1472
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
1008
1473
|
* @summary Delete an attached product from a deal
|
@@ -1013,6 +1478,16 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
1013
1478
|
deleteDealProduct(requestParameters) {
|
1014
1479
|
return localVarFp.deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(axios, basePath));
|
1015
1480
|
},
|
1481
|
+
/**
|
1482
|
+
* Removes an installment from a deal. Only available in Advanced and above plans.
|
1483
|
+
* @summary Delete an installment from a deal
|
1484
|
+
* @param {DealsApiDeleteInstallmentRequest} requestParameters Request parameters.
|
1485
|
+
|
1486
|
+
* @throws {RequiredError}
|
1487
|
+
*/
|
1488
|
+
deleteInstallment(requestParameters) {
|
1489
|
+
return localVarFp.deleteInstallment(requestParameters.id, requestParameters.installment_id).then((request) => request(axios, basePath));
|
1490
|
+
},
|
1016
1491
|
/**
|
1017
1492
|
* Lists discounts attached to a deal.
|
1018
1493
|
* @summary List discounts added to a deal
|
@@ -1033,6 +1508,26 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
1033
1508
|
getDeal(requestParameters) {
|
1034
1509
|
return localVarFp.getDeal(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(axios, basePath));
|
1035
1510
|
},
|
1511
|
+
/**
|
1512
|
+
* Lists users who are following the deal.
|
1513
|
+
* @summary List followers of a deal
|
1514
|
+
* @param {DealsApiGetDealFollowersRequest} requestParameters Request parameters.
|
1515
|
+
|
1516
|
+
* @throws {RequiredError}
|
1517
|
+
*/
|
1518
|
+
getDealFollowers(requestParameters) {
|
1519
|
+
return localVarFp.getDealFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
1520
|
+
},
|
1521
|
+
/**
|
1522
|
+
* Lists changelogs about users have followed the deal.
|
1523
|
+
* @summary List followers changelog of a deal
|
1524
|
+
* @param {DealsApiGetDealFollowersChangelogRequest} requestParameters Request parameters.
|
1525
|
+
|
1526
|
+
* @throws {RequiredError}
|
1527
|
+
*/
|
1528
|
+
getDealFollowersChangelog(requestParameters) {
|
1529
|
+
return localVarFp.getDealFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
1530
|
+
},
|
1036
1531
|
/**
|
1037
1532
|
* Lists products attached to a deal.
|
1038
1533
|
* @summary List products attached to a deal
|
@@ -1063,6 +1558,16 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
1063
1558
|
getDealsProducts(requestParameters) {
|
1064
1559
|
return localVarFp.getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
|
1065
1560
|
},
|
1561
|
+
/**
|
1562
|
+
* Lists installments attached to a list of deals. Only available in Advanced and above plans.
|
1563
|
+
* @summary List installments added to a list of deals
|
1564
|
+
* @param {DealsApiGetInstallmentsRequest} requestParameters Request parameters.
|
1565
|
+
|
1566
|
+
* @throws {RequiredError}
|
1567
|
+
*/
|
1568
|
+
getInstallments(requestParameters) {
|
1569
|
+
return localVarFp.getInstallments(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
|
1570
|
+
},
|
1066
1571
|
/**
|
1067
1572
|
* Adds a discount to a deal changing, the deal value if the deal has one-time products attached.
|
1068
1573
|
* @summary Add a discount to a deal
|
@@ -1073,6 +1578,16 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
1073
1578
|
postAdditionalDiscount(requestParameters) {
|
1074
1579
|
return localVarFp.postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(axios, basePath));
|
1075
1580
|
},
|
1581
|
+
/**
|
1582
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
|
1583
|
+
* @summary Add an installment to a deal
|
1584
|
+
* @param {DealsApiPostInstallmentRequest} requestParameters Request parameters.
|
1585
|
+
|
1586
|
+
* @throws {RequiredError}
|
1587
|
+
*/
|
1588
|
+
postInstallment(requestParameters) {
|
1589
|
+
return localVarFp.postInstallment(requestParameters.id, requestParameters.AddInstallmentRequestBody).then((request) => request(axios, basePath));
|
1590
|
+
},
|
1076
1591
|
/**
|
1077
1592
|
* Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID.
|
1078
1593
|
* @summary Search deals
|
@@ -1113,6 +1628,16 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
|
|
1113
1628
|
updateDealProduct(requestParameters) {
|
1114
1629
|
return localVarFp.updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(axios, basePath));
|
1115
1630
|
},
|
1631
|
+
/**
|
1632
|
+
* Edits an installment added to a deal. Only available in Advanced and above plans.
|
1633
|
+
* @summary Update an installment added to a deal
|
1634
|
+
* @param {DealsApiUpdateInstallmentRequest} requestParameters Request parameters.
|
1635
|
+
|
1636
|
+
* @throws {RequiredError}
|
1637
|
+
*/
|
1638
|
+
updateInstallment(requestParameters) {
|
1639
|
+
return localVarFp.updateInstallment(requestParameters.id, requestParameters.installment_id, requestParameters.UpdateInstallmentRequestBody).then((request) => request(axios, basePath));
|
1640
|
+
},
|
1116
1641
|
};
|
1117
1642
|
};
|
1118
1643
|
/**
|
@@ -1133,6 +1658,17 @@ export class DealsApi extends BaseAPI {
|
|
1133
1658
|
addDeal(requestParameters = {}) {
|
1134
1659
|
return DealsApiFp(this.configuration).addDeal(requestParameters.AddDealRequest).then((request) => request(this.axios, this.basePath));
|
1135
1660
|
}
|
1661
|
+
/**
|
1662
|
+
* Adds a user as a follower to the deal.
|
1663
|
+
* @summary Add a follower to a deal
|
1664
|
+
* @param {DealsApiAddDealFollowerRequest} requestParameters Request parameters.
|
1665
|
+
|
1666
|
+
* @throws {RequiredError}
|
1667
|
+
* @memberof DealsApi
|
1668
|
+
*/
|
1669
|
+
addDealFollower(requestParameters) {
|
1670
|
+
return DealsApiFp(this.configuration).addDealFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
|
1671
|
+
}
|
1136
1672
|
/**
|
1137
1673
|
* Adds a product to a deal, creating a new item called a deal-product.
|
1138
1674
|
* @summary Add a product to a deal
|
@@ -1166,6 +1702,17 @@ export class DealsApi extends BaseAPI {
|
|
1166
1702
|
deleteDeal(requestParameters) {
|
1167
1703
|
return DealsApiFp(this.configuration).deleteDeal(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
1168
1704
|
}
|
1705
|
+
/**
|
1706
|
+
* Deletes a user follower from the deal.
|
1707
|
+
* @summary Delete a follower from a deal
|
1708
|
+
* @param {DealsApiDeleteDealFollowerRequest} requestParameters Request parameters.
|
1709
|
+
|
1710
|
+
* @throws {RequiredError}
|
1711
|
+
* @memberof DealsApi
|
1712
|
+
*/
|
1713
|
+
deleteDealFollower(requestParameters) {
|
1714
|
+
return DealsApiFp(this.configuration).deleteDealFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
|
1715
|
+
}
|
1169
1716
|
/**
|
1170
1717
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
1171
1718
|
* @summary Delete an attached product from a deal
|
@@ -1177,6 +1724,17 @@ export class DealsApi extends BaseAPI {
|
|
1177
1724
|
deleteDealProduct(requestParameters) {
|
1178
1725
|
return DealsApiFp(this.configuration).deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(this.axios, this.basePath));
|
1179
1726
|
}
|
1727
|
+
/**
|
1728
|
+
* Removes an installment from a deal. Only available in Advanced and above plans.
|
1729
|
+
* @summary Delete an installment from a deal
|
1730
|
+
* @param {DealsApiDeleteInstallmentRequest} requestParameters Request parameters.
|
1731
|
+
|
1732
|
+
* @throws {RequiredError}
|
1733
|
+
* @memberof DealsApi
|
1734
|
+
*/
|
1735
|
+
deleteInstallment(requestParameters) {
|
1736
|
+
return DealsApiFp(this.configuration).deleteInstallment(requestParameters.id, requestParameters.installment_id).then((request) => request(this.axios, this.basePath));
|
1737
|
+
}
|
1180
1738
|
/**
|
1181
1739
|
* Lists discounts attached to a deal.
|
1182
1740
|
* @summary List discounts added to a deal
|
@@ -1199,6 +1757,28 @@ export class DealsApi extends BaseAPI {
|
|
1199
1757
|
getDeal(requestParameters) {
|
1200
1758
|
return DealsApiFp(this.configuration).getDeal(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(this.axios, this.basePath));
|
1201
1759
|
}
|
1760
|
+
/**
|
1761
|
+
* Lists users who are following the deal.
|
1762
|
+
* @summary List followers of a deal
|
1763
|
+
* @param {DealsApiGetDealFollowersRequest} requestParameters Request parameters.
|
1764
|
+
|
1765
|
+
* @throws {RequiredError}
|
1766
|
+
* @memberof DealsApi
|
1767
|
+
*/
|
1768
|
+
getDealFollowers(requestParameters) {
|
1769
|
+
return DealsApiFp(this.configuration).getDealFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
1770
|
+
}
|
1771
|
+
/**
|
1772
|
+
* Lists changelogs about users have followed the deal.
|
1773
|
+
* @summary List followers changelog of a deal
|
1774
|
+
* @param {DealsApiGetDealFollowersChangelogRequest} requestParameters Request parameters.
|
1775
|
+
|
1776
|
+
* @throws {RequiredError}
|
1777
|
+
* @memberof DealsApi
|
1778
|
+
*/
|
1779
|
+
getDealFollowersChangelog(requestParameters) {
|
1780
|
+
return DealsApiFp(this.configuration).getDealFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
1781
|
+
}
|
1202
1782
|
/**
|
1203
1783
|
* Lists products attached to a deal.
|
1204
1784
|
* @summary List products attached to a deal
|
@@ -1232,6 +1812,17 @@ export class DealsApi extends BaseAPI {
|
|
1232
1812
|
getDealsProducts(requestParameters) {
|
1233
1813
|
return DealsApiFp(this.configuration).getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
|
1234
1814
|
}
|
1815
|
+
/**
|
1816
|
+
* Lists installments attached to a list of deals. Only available in Advanced and above plans.
|
1817
|
+
* @summary List installments added to a list of deals
|
1818
|
+
* @param {DealsApiGetInstallmentsRequest} requestParameters Request parameters.
|
1819
|
+
|
1820
|
+
* @throws {RequiredError}
|
1821
|
+
* @memberof DealsApi
|
1822
|
+
*/
|
1823
|
+
getInstallments(requestParameters) {
|
1824
|
+
return DealsApiFp(this.configuration).getInstallments(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
|
1825
|
+
}
|
1235
1826
|
/**
|
1236
1827
|
* Adds a discount to a deal changing, the deal value if the deal has one-time products attached.
|
1237
1828
|
* @summary Add a discount to a deal
|
@@ -1243,6 +1834,17 @@ export class DealsApi extends BaseAPI {
|
|
1243
1834
|
postAdditionalDiscount(requestParameters) {
|
1244
1835
|
return DealsApiFp(this.configuration).postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(this.axios, this.basePath));
|
1245
1836
|
}
|
1837
|
+
/**
|
1838
|
+
* Adds an installment to a deal. An installment can only be added if the deal includes at least one one-time product. If the deal contains at least one recurring product, adding installments is not allowed. Only available in Advanced and above plans.
|
1839
|
+
* @summary Add an installment to a deal
|
1840
|
+
* @param {DealsApiPostInstallmentRequest} requestParameters Request parameters.
|
1841
|
+
|
1842
|
+
* @throws {RequiredError}
|
1843
|
+
* @memberof DealsApi
|
1844
|
+
*/
|
1845
|
+
postInstallment(requestParameters) {
|
1846
|
+
return DealsApiFp(this.configuration).postInstallment(requestParameters.id, requestParameters.AddInstallmentRequestBody).then((request) => request(this.axios, this.basePath));
|
1847
|
+
}
|
1246
1848
|
/**
|
1247
1849
|
* Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID.
|
1248
1850
|
* @summary Search deals
|
@@ -1287,4 +1889,15 @@ export class DealsApi extends BaseAPI {
|
|
1287
1889
|
updateDealProduct(requestParameters) {
|
1288
1890
|
return DealsApiFp(this.configuration).updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(this.axios, this.basePath));
|
1289
1891
|
}
|
1892
|
+
/**
|
1893
|
+
* Edits an installment added to a deal. Only available in Advanced and above plans.
|
1894
|
+
* @summary Update an installment added to a deal
|
1895
|
+
* @param {DealsApiUpdateInstallmentRequest} requestParameters Request parameters.
|
1896
|
+
|
1897
|
+
* @throws {RequiredError}
|
1898
|
+
* @memberof DealsApi
|
1899
|
+
*/
|
1900
|
+
updateInstallment(requestParameters) {
|
1901
|
+
return DealsApiFp(this.configuration).updateInstallment(requestParameters.id, requestParameters.installment_id, requestParameters.UpdateInstallmentRequestBody).then((request) => request(this.axios, this.basePath));
|
1902
|
+
}
|
1290
1903
|
}
|