pipedrive 24.1.0 → 24.2.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/models/additional-data.d.ts +38 -0
- package/dist/esm/versions/v1/models/additional-data.js +14 -0
- package/dist/esm/versions/v1/models/base-webhook.d.ts +2 -1
- package/dist/esm/versions/v1/models/base-webhook.js +2 -1
- 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/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 +288 -2
- package/dist/esm/versions/v2/api/beta-api.js +337 -5
- package/dist/esm/versions/v2/api/deals-api.d.ts +254 -0
- package/dist/esm/versions/v2/api/deals-api.js +312 -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-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-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/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-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 +9 -0
- package/dist/esm/versions/v2/models/index.js +9 -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/models/additional-data.d.ts +38 -0
- package/dist/versions/v1/models/additional-data.js +15 -0
- package/dist/versions/v1/models/base-webhook.d.ts +2 -1
- package/dist/versions/v1/models/base-webhook.js +2 -1
- 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/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 +288 -2
- package/dist/versions/v2/api/beta-api.js +337 -5
- package/dist/versions/v2/api/deals-api.d.ts +254 -0
- package/dist/versions/v2/api/deals-api.js +312 -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-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-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/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-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 +9 -0
- package/dist/versions/v2/models/index.js +9 -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
@@ -351,6 +351,44 @@ const BetaApiAxiosParamCreator = function (configuration) {
|
|
351
351
|
options: localVarRequestOptions,
|
352
352
|
};
|
353
353
|
}),
|
354
|
+
/**
|
355
|
+
* Removes an installment from a deal. Only available in Advanced and above plans.
|
356
|
+
* @summary Delete an installment from a deal
|
357
|
+
* @param {number} id The ID of the deal
|
358
|
+
* @param {number} installment_id The ID of the installment
|
359
|
+
|
360
|
+
* @throws {RequiredError}
|
361
|
+
*/
|
362
|
+
deleteInstallment: (id, installment_id) => __awaiter(this, void 0, void 0, function* () {
|
363
|
+
// verify required parameter 'id' is not null or undefined
|
364
|
+
(0, common_1.assertParamExists)('deleteInstallment', 'id', id);
|
365
|
+
// verify required parameter 'installment_id' is not null or undefined
|
366
|
+
(0, common_1.assertParamExists)('deleteInstallment', 'installment_id', installment_id);
|
367
|
+
const localVarPath = `/deals/{id}/installments/{installment_id}`
|
368
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
369
|
+
.replace(`{${"installment_id"}}`, encodeURIComponent(String(installment_id)));
|
370
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
371
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
372
|
+
let baseOptions;
|
373
|
+
if (configuration) {
|
374
|
+
baseOptions = configuration.baseOptions;
|
375
|
+
}
|
376
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
377
|
+
const localVarHeaderParameter = {};
|
378
|
+
const localVarQueryParameter = {};
|
379
|
+
// authentication api_key required
|
380
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
381
|
+
// authentication oauth2 required
|
382
|
+
// oauth required
|
383
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
384
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
385
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
386
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
387
|
+
return {
|
388
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
389
|
+
options: localVarRequestOptions,
|
390
|
+
};
|
391
|
+
}),
|
354
392
|
/**
|
355
393
|
* Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
|
356
394
|
* @summary Delete a organization
|
@@ -425,6 +463,10 @@ const BetaApiAxiosParamCreator = function (configuration) {
|
|
425
463
|
* @param {number} [filter_id] If supplied, only activities matching the specified filter are returned
|
426
464
|
* @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
427
465
|
* @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored.
|
466
|
+
* @param {number} [deal_id] If supplied, only activities linked to the specified deal are returned. If filter_id is provided, this is ignored.
|
467
|
+
* @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
|
468
|
+
* @param {number} [person_id] If supplied, only activities whose primary participant is the given person are returned. If filter_id is provided, this is ignored.
|
469
|
+
* @param {number} [org_id] If supplied, only activities linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
428
470
|
* @param {string} [updated_since] If set, only activities with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
429
471
|
* @param {string} [updated_until] If set, only activities with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
430
472
|
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
@@ -435,7 +477,7 @@ const BetaApiAxiosParamCreator = function (configuration) {
|
|
435
477
|
|
436
478
|
* @throws {RequiredError}
|
437
479
|
*/
|
438
|
-
getActivities: (filter_id, ids, owner_id, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
480
|
+
getActivities: (filter_id, ids, owner_id, deal_id, lead_id, person_id, org_id, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
439
481
|
const localVarPath = `/activities`;
|
440
482
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
441
483
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -460,6 +502,18 @@ const BetaApiAxiosParamCreator = function (configuration) {
|
|
460
502
|
if (owner_id !== undefined) {
|
461
503
|
localVarQueryParameter['owner_id'] = owner_id;
|
462
504
|
}
|
505
|
+
if (deal_id !== undefined) {
|
506
|
+
localVarQueryParameter['deal_id'] = deal_id;
|
507
|
+
}
|
508
|
+
if (lead_id !== undefined) {
|
509
|
+
localVarQueryParameter['lead_id'] = lead_id;
|
510
|
+
}
|
511
|
+
if (person_id !== undefined) {
|
512
|
+
localVarQueryParameter['person_id'] = person_id;
|
513
|
+
}
|
514
|
+
if (org_id !== undefined) {
|
515
|
+
localVarQueryParameter['org_id'] = org_id;
|
516
|
+
}
|
463
517
|
if (updated_since !== undefined) {
|
464
518
|
localVarQueryParameter['updated_since'] = updated_since;
|
465
519
|
}
|
@@ -799,6 +853,58 @@ const BetaApiAxiosParamCreator = function (configuration) {
|
|
799
853
|
options: localVarRequestOptions,
|
800
854
|
};
|
801
855
|
}),
|
856
|
+
/**
|
857
|
+
* Lists installments attached to a list of deals. Only available in Advanced and above plans.
|
858
|
+
* @summary List installments added to a list of deals
|
859
|
+
* @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.
|
860
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
861
|
+
* @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.
|
862
|
+
* @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: `id`, `billing_date`, `deal_id`.
|
863
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
864
|
+
|
865
|
+
* @throws {RequiredError}
|
866
|
+
*/
|
867
|
+
getInstallments: (deal_ids, cursor, limit, sort_by, sort_direction) => __awaiter(this, void 0, void 0, function* () {
|
868
|
+
// verify required parameter 'deal_ids' is not null or undefined
|
869
|
+
(0, common_1.assertParamExists)('getInstallments', 'deal_ids', deal_ids);
|
870
|
+
const localVarPath = `/deals/installments`;
|
871
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
872
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
873
|
+
let baseOptions;
|
874
|
+
if (configuration) {
|
875
|
+
baseOptions = configuration.baseOptions;
|
876
|
+
}
|
877
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
878
|
+
const localVarHeaderParameter = {};
|
879
|
+
const localVarQueryParameter = {};
|
880
|
+
// authentication api_key required
|
881
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
882
|
+
// authentication oauth2 required
|
883
|
+
// oauth required
|
884
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
885
|
+
if (deal_ids) {
|
886
|
+
localVarQueryParameter['deal_ids'] = deal_ids;
|
887
|
+
}
|
888
|
+
if (cursor !== undefined) {
|
889
|
+
localVarQueryParameter['cursor'] = cursor;
|
890
|
+
}
|
891
|
+
if (limit !== undefined) {
|
892
|
+
localVarQueryParameter['limit'] = limit;
|
893
|
+
}
|
894
|
+
if (sort_by !== undefined) {
|
895
|
+
localVarQueryParameter['sort_by'] = sort_by;
|
896
|
+
}
|
897
|
+
if (sort_direction !== undefined) {
|
898
|
+
localVarQueryParameter['sort_direction'] = sort_direction;
|
899
|
+
}
|
900
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
901
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
902
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
903
|
+
return {
|
904
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
905
|
+
options: localVarRequestOptions,
|
906
|
+
};
|
907
|
+
}),
|
802
908
|
/**
|
803
909
|
* Returns the details of a specific organization.
|
804
910
|
* @summary Get details of a organization
|
@@ -1072,6 +1178,43 @@ const BetaApiAxiosParamCreator = function (configuration) {
|
|
1072
1178
|
options: localVarRequestOptions,
|
1073
1179
|
};
|
1074
1180
|
}),
|
1181
|
+
/**
|
1182
|
+
* 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.
|
1183
|
+
* @summary Add an installment to a deal
|
1184
|
+
* @param {number} id The ID of the deal
|
1185
|
+
* @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
|
1186
|
+
|
1187
|
+
* @throws {RequiredError}
|
1188
|
+
*/
|
1189
|
+
postInstallment: (id, AddInstallmentRequestBody) => __awaiter(this, void 0, void 0, function* () {
|
1190
|
+
// verify required parameter 'id' is not null or undefined
|
1191
|
+
(0, common_1.assertParamExists)('postInstallment', 'id', id);
|
1192
|
+
const localVarPath = `/deals/{id}/installments`
|
1193
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
1194
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1195
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1196
|
+
let baseOptions;
|
1197
|
+
if (configuration) {
|
1198
|
+
baseOptions = configuration.baseOptions;
|
1199
|
+
}
|
1200
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
1201
|
+
const localVarHeaderParameter = {};
|
1202
|
+
const localVarQueryParameter = {};
|
1203
|
+
// authentication api_key required
|
1204
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
1205
|
+
// authentication oauth2 required
|
1206
|
+
// oauth required
|
1207
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
1208
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1209
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1210
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1211
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
1212
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(AddInstallmentRequestBody, localVarRequestOptions, configuration);
|
1213
|
+
return {
|
1214
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
1215
|
+
options: localVarRequestOptions,
|
1216
|
+
};
|
1217
|
+
}),
|
1075
1218
|
/**
|
1076
1219
|
* 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.
|
1077
1220
|
* @summary Search deals
|
@@ -1596,6 +1739,47 @@ const BetaApiAxiosParamCreator = function (configuration) {
|
|
1596
1739
|
options: localVarRequestOptions,
|
1597
1740
|
};
|
1598
1741
|
}),
|
1742
|
+
/**
|
1743
|
+
* Edits an installment added to a deal. Only available in Advanced and above plans.
|
1744
|
+
* @summary Update an installment added to a deal
|
1745
|
+
* @param {number} id The ID of the deal
|
1746
|
+
* @param {number} installment_id The ID of the installment
|
1747
|
+
* @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
|
1748
|
+
|
1749
|
+
* @throws {RequiredError}
|
1750
|
+
*/
|
1751
|
+
updateInstallment: (id, installment_id, UpdateInstallmentRequestBody) => __awaiter(this, void 0, void 0, function* () {
|
1752
|
+
// verify required parameter 'id' is not null or undefined
|
1753
|
+
(0, common_1.assertParamExists)('updateInstallment', 'id', id);
|
1754
|
+
// verify required parameter 'installment_id' is not null or undefined
|
1755
|
+
(0, common_1.assertParamExists)('updateInstallment', 'installment_id', installment_id);
|
1756
|
+
const localVarPath = `/deals/{id}/installments/{installment_id}`
|
1757
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
1758
|
+
.replace(`{${"installment_id"}}`, encodeURIComponent(String(installment_id)));
|
1759
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1760
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1761
|
+
let baseOptions;
|
1762
|
+
if (configuration) {
|
1763
|
+
baseOptions = configuration.baseOptions;
|
1764
|
+
}
|
1765
|
+
const localVarRequestOptions = Object.assign({ method: 'PATCH' }, baseOptions);
|
1766
|
+
const localVarHeaderParameter = {};
|
1767
|
+
const localVarQueryParameter = {};
|
1768
|
+
// authentication api_key required
|
1769
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
1770
|
+
// authentication oauth2 required
|
1771
|
+
// oauth required
|
1772
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
1773
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1774
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1775
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1776
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
1777
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(UpdateInstallmentRequestBody, localVarRequestOptions, configuration);
|
1778
|
+
return {
|
1779
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
1780
|
+
options: localVarRequestOptions,
|
1781
|
+
};
|
1782
|
+
}),
|
1599
1783
|
/**
|
1600
1784
|
* Updates the properties of a organization.
|
1601
1785
|
* @summary Update a organization
|
@@ -1800,6 +1984,20 @@ const BetaApiFp = function (configuration) {
|
|
1800
1984
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1801
1985
|
});
|
1802
1986
|
},
|
1987
|
+
/**
|
1988
|
+
* Removes an installment from a deal. Only available in Advanced and above plans.
|
1989
|
+
* @summary Delete an installment from a deal
|
1990
|
+
* @param {number} id The ID of the deal
|
1991
|
+
* @param {number} installment_id The ID of the installment
|
1992
|
+
|
1993
|
+
* @throws {RequiredError}
|
1994
|
+
*/
|
1995
|
+
deleteInstallment(id, installment_id) {
|
1996
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1997
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInstallment(id, installment_id);
|
1998
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1999
|
+
});
|
2000
|
+
},
|
1803
2001
|
/**
|
1804
2002
|
* Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
|
1805
2003
|
* @summary Delete a organization
|
@@ -1832,6 +2030,10 @@ const BetaApiFp = function (configuration) {
|
|
1832
2030
|
* @param {number} [filter_id] If supplied, only activities matching the specified filter are returned
|
1833
2031
|
* @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
|
1834
2032
|
* @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored.
|
2033
|
+
* @param {number} [deal_id] If supplied, only activities linked to the specified deal are returned. If filter_id is provided, this is ignored.
|
2034
|
+
* @param {string} [lead_id] If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored.
|
2035
|
+
* @param {number} [person_id] If supplied, only activities whose primary participant is the given person are returned. If filter_id is provided, this is ignored.
|
2036
|
+
* @param {number} [org_id] If supplied, only activities linked to the specified organization are returned. If filter_id is provided, this is ignored.
|
1835
2037
|
* @param {string} [updated_since] If set, only activities with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
1836
2038
|
* @param {string} [updated_until] If set, only activities with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
|
1837
2039
|
* @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`.
|
@@ -1842,9 +2044,9 @@ const BetaApiFp = function (configuration) {
|
|
1842
2044
|
|
1843
2045
|
* @throws {RequiredError}
|
1844
2046
|
*/
|
1845
|
-
getActivities(filter_id, ids, owner_id, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor) {
|
2047
|
+
getActivities(filter_id, ids, owner_id, deal_id, lead_id, person_id, org_id, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor) {
|
1846
2048
|
return __awaiter(this, void 0, void 0, function* () {
|
1847
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getActivities(filter_id, ids, owner_id, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor);
|
2049
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getActivities(filter_id, ids, owner_id, deal_id, lead_id, person_id, org_id, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor);
|
1848
2050
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1849
2051
|
});
|
1850
2052
|
},
|
@@ -1952,6 +2154,23 @@ const BetaApiFp = function (configuration) {
|
|
1952
2154
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1953
2155
|
});
|
1954
2156
|
},
|
2157
|
+
/**
|
2158
|
+
* Lists installments attached to a list of deals. Only available in Advanced and above plans.
|
2159
|
+
* @summary List installments added to a list of deals
|
2160
|
+
* @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.
|
2161
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
2162
|
+
* @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.
|
2163
|
+
* @param {'id' | 'billing_date' | 'deal_id'} [sort_by] The field to sort by. Supported fields: `id`, `billing_date`, `deal_id`.
|
2164
|
+
* @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`.
|
2165
|
+
|
2166
|
+
* @throws {RequiredError}
|
2167
|
+
*/
|
2168
|
+
getInstallments(deal_ids, cursor, limit, sort_by, sort_direction) {
|
2169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2170
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInstallments(deal_ids, cursor, limit, sort_by, sort_direction);
|
2171
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2172
|
+
});
|
2173
|
+
},
|
1955
2174
|
/**
|
1956
2175
|
* Returns the details of a specific organization.
|
1957
2176
|
* @summary Get details of a organization
|
@@ -2043,6 +2262,20 @@ const BetaApiFp = function (configuration) {
|
|
2043
2262
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2044
2263
|
});
|
2045
2264
|
},
|
2265
|
+
/**
|
2266
|
+
* 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.
|
2267
|
+
* @summary Add an installment to a deal
|
2268
|
+
* @param {number} id The ID of the deal
|
2269
|
+
* @param {AddInstallmentRequestBody} [AddInstallmentRequestBody]
|
2270
|
+
|
2271
|
+
* @throws {RequiredError}
|
2272
|
+
*/
|
2273
|
+
postInstallment(id, AddInstallmentRequestBody) {
|
2274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2275
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postInstallment(id, AddInstallmentRequestBody);
|
2276
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2277
|
+
});
|
2278
|
+
},
|
2046
2279
|
/**
|
2047
2280
|
* 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.
|
2048
2281
|
* @summary Search deals
|
@@ -2216,6 +2449,21 @@ const BetaApiFp = function (configuration) {
|
|
2216
2449
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2217
2450
|
});
|
2218
2451
|
},
|
2452
|
+
/**
|
2453
|
+
* Edits an installment added to a deal. Only available in Advanced and above plans.
|
2454
|
+
* @summary Update an installment added to a deal
|
2455
|
+
* @param {number} id The ID of the deal
|
2456
|
+
* @param {number} installment_id The ID of the installment
|
2457
|
+
* @param {UpdateInstallmentRequestBody} [UpdateInstallmentRequestBody]
|
2458
|
+
|
2459
|
+
* @throws {RequiredError}
|
2460
|
+
*/
|
2461
|
+
updateInstallment(id, installment_id, UpdateInstallmentRequestBody) {
|
2462
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2463
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateInstallment(id, installment_id, UpdateInstallmentRequestBody);
|
2464
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2465
|
+
});
|
2466
|
+
},
|
2219
2467
|
/**
|
2220
2468
|
* Updates the properties of a organization.
|
2221
2469
|
* @summary Update a organization
|
@@ -2344,6 +2592,16 @@ const BetaApiFactory = function (configuration, basePath, axios) {
|
|
2344
2592
|
deleteDealProduct(requestParameters) {
|
2345
2593
|
return localVarFp.deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(axios, basePath));
|
2346
2594
|
},
|
2595
|
+
/**
|
2596
|
+
* Removes an installment from a deal. Only available in Advanced and above plans.
|
2597
|
+
* @summary Delete an installment from a deal
|
2598
|
+
* @param {BetaApiDeleteInstallmentRequest} requestParameters Request parameters.
|
2599
|
+
|
2600
|
+
* @throws {RequiredError}
|
2601
|
+
*/
|
2602
|
+
deleteInstallment(requestParameters) {
|
2603
|
+
return localVarFp.deleteInstallment(requestParameters.id, requestParameters.installment_id).then((request) => request(axios, basePath));
|
2604
|
+
},
|
2347
2605
|
/**
|
2348
2606
|
* Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
|
2349
2607
|
* @summary Delete a organization
|
@@ -2372,7 +2630,7 @@ const BetaApiFactory = function (configuration, basePath, axios) {
|
|
2372
2630
|
* @throws {RequiredError}
|
2373
2631
|
*/
|
2374
2632
|
getActivities(requestParameters = {}) {
|
2375
|
-
return localVarFp.getActivities(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
2633
|
+
return localVarFp.getActivities(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.deal_id, requestParameters.lead_id, requestParameters.person_id, requestParameters.org_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
2376
2634
|
},
|
2377
2635
|
/**
|
2378
2636
|
* Returns the details of a specific activity.
|
@@ -2434,6 +2692,16 @@ const BetaApiFactory = function (configuration, basePath, axios) {
|
|
2434
2692
|
getDealsProducts(requestParameters) {
|
2435
2693
|
return localVarFp.getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
|
2436
2694
|
},
|
2695
|
+
/**
|
2696
|
+
* Lists installments attached to a list of deals. Only available in Advanced and above plans.
|
2697
|
+
* @summary List installments added to a list of deals
|
2698
|
+
* @param {BetaApiGetInstallmentsRequest} requestParameters Request parameters.
|
2699
|
+
|
2700
|
+
* @throws {RequiredError}
|
2701
|
+
*/
|
2702
|
+
getInstallments(requestParameters) {
|
2703
|
+
return localVarFp.getInstallments(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(axios, basePath));
|
2704
|
+
},
|
2437
2705
|
/**
|
2438
2706
|
* Returns the details of a specific organization.
|
2439
2707
|
* @summary Get details of a organization
|
@@ -2484,6 +2752,16 @@ const BetaApiFactory = function (configuration, basePath, axios) {
|
|
2484
2752
|
postAdditionalDiscount(requestParameters) {
|
2485
2753
|
return localVarFp.postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(axios, basePath));
|
2486
2754
|
},
|
2755
|
+
/**
|
2756
|
+
* 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.
|
2757
|
+
* @summary Add an installment to a deal
|
2758
|
+
* @param {BetaApiPostInstallmentRequest} requestParameters Request parameters.
|
2759
|
+
|
2760
|
+
* @throws {RequiredError}
|
2761
|
+
*/
|
2762
|
+
postInstallment(requestParameters) {
|
2763
|
+
return localVarFp.postInstallment(requestParameters.id, requestParameters.AddInstallmentRequestBody).then((request) => request(axios, basePath));
|
2764
|
+
},
|
2487
2765
|
/**
|
2488
2766
|
* 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.
|
2489
2767
|
* @summary Search deals
|
@@ -2584,6 +2862,16 @@ const BetaApiFactory = function (configuration, basePath, axios) {
|
|
2584
2862
|
updateDealProduct(requestParameters) {
|
2585
2863
|
return localVarFp.updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(axios, basePath));
|
2586
2864
|
},
|
2865
|
+
/**
|
2866
|
+
* Edits an installment added to a deal. Only available in Advanced and above plans.
|
2867
|
+
* @summary Update an installment added to a deal
|
2868
|
+
* @param {BetaApiUpdateInstallmentRequest} requestParameters Request parameters.
|
2869
|
+
|
2870
|
+
* @throws {RequiredError}
|
2871
|
+
*/
|
2872
|
+
updateInstallment(requestParameters) {
|
2873
|
+
return localVarFp.updateInstallment(requestParameters.id, requestParameters.installment_id, requestParameters.UpdateInstallmentRequestBody).then((request) => request(axios, basePath));
|
2874
|
+
},
|
2587
2875
|
/**
|
2588
2876
|
* Updates the properties of a organization.
|
2589
2877
|
* @summary Update a organization
|
@@ -2713,6 +3001,17 @@ class BetaApi extends base_1.BaseAPI {
|
|
2713
3001
|
deleteDealProduct(requestParameters) {
|
2714
3002
|
return (0, exports.BetaApiFp)(this.configuration).deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id).then((request) => request(this.axios, this.basePath));
|
2715
3003
|
}
|
3004
|
+
/**
|
3005
|
+
* Removes an installment from a deal. Only available in Advanced and above plans.
|
3006
|
+
* @summary Delete an installment from a deal
|
3007
|
+
* @param {BetaApiDeleteInstallmentRequest} requestParameters Request parameters.
|
3008
|
+
|
3009
|
+
* @throws {RequiredError}
|
3010
|
+
* @memberof BetaApi
|
3011
|
+
*/
|
3012
|
+
deleteInstallment(requestParameters) {
|
3013
|
+
return (0, exports.BetaApiFp)(this.configuration).deleteInstallment(requestParameters.id, requestParameters.installment_id).then((request) => request(this.axios, this.basePath));
|
3014
|
+
}
|
2716
3015
|
/**
|
2717
3016
|
* Marks a organization as deleted. After 30 days, the organization will be permanently deleted.
|
2718
3017
|
* @summary Delete a organization
|
@@ -2744,7 +3043,7 @@ class BetaApi extends base_1.BaseAPI {
|
|
2744
3043
|
* @memberof BetaApi
|
2745
3044
|
*/
|
2746
3045
|
getActivities(requestParameters = {}) {
|
2747
|
-
return (0, exports.BetaApiFp)(this.configuration).getActivities(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
3046
|
+
return (0, exports.BetaApiFp)(this.configuration).getActivities(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.deal_id, requestParameters.lead_id, requestParameters.person_id, requestParameters.org_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
2748
3047
|
}
|
2749
3048
|
/**
|
2750
3049
|
* Returns the details of a specific activity.
|
@@ -2812,6 +3111,17 @@ class BetaApi extends base_1.BaseAPI {
|
|
2812
3111
|
getDealsProducts(requestParameters) {
|
2813
3112
|
return (0, exports.BetaApiFp)(this.configuration).getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
|
2814
3113
|
}
|
3114
|
+
/**
|
3115
|
+
* Lists installments attached to a list of deals. Only available in Advanced and above plans.
|
3116
|
+
* @summary List installments added to a list of deals
|
3117
|
+
* @param {BetaApiGetInstallmentsRequest} requestParameters Request parameters.
|
3118
|
+
|
3119
|
+
* @throws {RequiredError}
|
3120
|
+
* @memberof BetaApi
|
3121
|
+
*/
|
3122
|
+
getInstallments(requestParameters) {
|
3123
|
+
return (0, exports.BetaApiFp)(this.configuration).getInstallments(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction).then((request) => request(this.axios, this.basePath));
|
3124
|
+
}
|
2815
3125
|
/**
|
2816
3126
|
* Returns the details of a specific organization.
|
2817
3127
|
* @summary Get details of a organization
|
@@ -2867,6 +3177,17 @@ class BetaApi extends base_1.BaseAPI {
|
|
2867
3177
|
postAdditionalDiscount(requestParameters) {
|
2868
3178
|
return (0, exports.BetaApiFp)(this.configuration).postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody).then((request) => request(this.axios, this.basePath));
|
2869
3179
|
}
|
3180
|
+
/**
|
3181
|
+
* 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.
|
3182
|
+
* @summary Add an installment to a deal
|
3183
|
+
* @param {BetaApiPostInstallmentRequest} requestParameters Request parameters.
|
3184
|
+
|
3185
|
+
* @throws {RequiredError}
|
3186
|
+
* @memberof BetaApi
|
3187
|
+
*/
|
3188
|
+
postInstallment(requestParameters) {
|
3189
|
+
return (0, exports.BetaApiFp)(this.configuration).postInstallment(requestParameters.id, requestParameters.AddInstallmentRequestBody).then((request) => request(this.axios, this.basePath));
|
3190
|
+
}
|
2870
3191
|
/**
|
2871
3192
|
* 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.
|
2872
3193
|
* @summary Search deals
|
@@ -2977,6 +3298,17 @@ class BetaApi extends base_1.BaseAPI {
|
|
2977
3298
|
updateDealProduct(requestParameters) {
|
2978
3299
|
return (0, exports.BetaApiFp)(this.configuration).updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest).then((request) => request(this.axios, this.basePath));
|
2979
3300
|
}
|
3301
|
+
/**
|
3302
|
+
* Edits an installment added to a deal. Only available in Advanced and above plans.
|
3303
|
+
* @summary Update an installment added to a deal
|
3304
|
+
* @param {BetaApiUpdateInstallmentRequest} requestParameters Request parameters.
|
3305
|
+
|
3306
|
+
* @throws {RequiredError}
|
3307
|
+
* @memberof BetaApi
|
3308
|
+
*/
|
3309
|
+
updateInstallment(requestParameters) {
|
3310
|
+
return (0, exports.BetaApiFp)(this.configuration).updateInstallment(requestParameters.id, requestParameters.installment_id, requestParameters.UpdateInstallmentRequestBody).then((request) => request(this.axios, this.basePath));
|
3311
|
+
}
|
2980
3312
|
/**
|
2981
3313
|
* Updates the properties of a organization.
|
2982
3314
|
* @summary Update a organization
|