pipedrive 24.2.0 → 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/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/beta-api.d.ts +82 -2632
- package/dist/esm/versions/v2/api/beta-api.js +139 -3090
- package/dist/esm/versions/v2/api/deals-api.d.ts +237 -0
- package/dist/esm/versions/v2/api/deals-api.js +301 -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-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/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/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-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/index.d.ts +12 -0
- package/dist/esm/versions/v2/models/index.js +12 -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/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/beta-api.d.ts +82 -2632
- package/dist/versions/v2/api/beta-api.js +141 -3092
- package/dist/versions/v2/api/deals-api.d.ts +237 -0
- package/dist/versions/v2/api/deals-api.js +301 -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-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/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/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-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/index.d.ts +12 -0
- package/dist/versions/v2/models/index.js +12 -0
- package/package.json +1 -1
@@ -71,6 +71,43 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
71
71
|
options: localVarRequestOptions,
|
72
72
|
};
|
73
73
|
}),
|
74
|
+
/**
|
75
|
+
* Adds a user as a follower to the deal.
|
76
|
+
* @summary Add a follower to a deal
|
77
|
+
* @param {number} id The ID of the deal
|
78
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
79
|
+
|
80
|
+
* @throws {RequiredError}
|
81
|
+
*/
|
82
|
+
addDealFollower: (id, AddDealFollowerRequest) => __awaiter(this, void 0, void 0, function* () {
|
83
|
+
// verify required parameter 'id' is not null or undefined
|
84
|
+
(0, common_1.assertParamExists)('addDealFollower', 'id', id);
|
85
|
+
const localVarPath = `/deals/{id}/followers`
|
86
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
87
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
88
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
89
|
+
let baseOptions;
|
90
|
+
if (configuration) {
|
91
|
+
baseOptions = configuration.baseOptions;
|
92
|
+
}
|
93
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
|
94
|
+
const localVarHeaderParameter = {};
|
95
|
+
const localVarQueryParameter = {};
|
96
|
+
// authentication api_key required
|
97
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
98
|
+
// authentication oauth2 required
|
99
|
+
// oauth required
|
100
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full"], configuration);
|
101
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
102
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
103
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
104
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
105
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(AddDealFollowerRequest, localVarRequestOptions, configuration);
|
106
|
+
return {
|
107
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
108
|
+
options: localVarRequestOptions,
|
109
|
+
};
|
110
|
+
}),
|
74
111
|
/**
|
75
112
|
* Adds a product to a deal, creating a new item called a deal-product.
|
76
113
|
* @summary Add a product to a deal
|
@@ -180,6 +217,44 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
180
217
|
options: localVarRequestOptions,
|
181
218
|
};
|
182
219
|
}),
|
220
|
+
/**
|
221
|
+
* Deletes a user follower from the deal.
|
222
|
+
* @summary Delete a follower from a deal
|
223
|
+
* @param {number} id The ID of the deal
|
224
|
+
* @param {number} follower_id The ID of the following user
|
225
|
+
|
226
|
+
* @throws {RequiredError}
|
227
|
+
*/
|
228
|
+
deleteDealFollower: (id, follower_id) => __awaiter(this, void 0, void 0, function* () {
|
229
|
+
// verify required parameter 'id' is not null or undefined
|
230
|
+
(0, common_1.assertParamExists)('deleteDealFollower', 'id', id);
|
231
|
+
// verify required parameter 'follower_id' is not null or undefined
|
232
|
+
(0, common_1.assertParamExists)('deleteDealFollower', 'follower_id', follower_id);
|
233
|
+
const localVarPath = `/deals/{id}/followers/{follower_id}`
|
234
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
235
|
+
.replace(`{${"follower_id"}}`, encodeURIComponent(String(follower_id)));
|
236
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
237
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
238
|
+
let baseOptions;
|
239
|
+
if (configuration) {
|
240
|
+
baseOptions = configuration.baseOptions;
|
241
|
+
}
|
242
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
|
243
|
+
const localVarHeaderParameter = {};
|
244
|
+
const localVarQueryParameter = {};
|
245
|
+
// authentication api_key required
|
246
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
247
|
+
// authentication oauth2 required
|
248
|
+
// oauth required
|
249
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:full"], configuration);
|
250
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
251
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
252
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
253
|
+
return {
|
254
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
255
|
+
options: localVarRequestOptions,
|
256
|
+
};
|
257
|
+
}),
|
183
258
|
/**
|
184
259
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
185
260
|
* @summary Delete an attached product from a deal
|
@@ -332,6 +407,90 @@ const DealsApiAxiosParamCreator = function (configuration) {
|
|
332
407
|
options: localVarRequestOptions,
|
333
408
|
};
|
334
409
|
}),
|
410
|
+
/**
|
411
|
+
* Lists users who are following the deal.
|
412
|
+
* @summary List followers of a deal
|
413
|
+
* @param {number} id The ID of the deal
|
414
|
+
* @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.
|
415
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
416
|
+
|
417
|
+
* @throws {RequiredError}
|
418
|
+
*/
|
419
|
+
getDealFollowers: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
420
|
+
// verify required parameter 'id' is not null or undefined
|
421
|
+
(0, common_1.assertParamExists)('getDealFollowers', 'id', id);
|
422
|
+
const localVarPath = `/deals/{id}/followers`
|
423
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
424
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
425
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
426
|
+
let baseOptions;
|
427
|
+
if (configuration) {
|
428
|
+
baseOptions = configuration.baseOptions;
|
429
|
+
}
|
430
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
431
|
+
const localVarHeaderParameter = {};
|
432
|
+
const localVarQueryParameter = {};
|
433
|
+
// authentication api_key required
|
434
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
435
|
+
// authentication oauth2 required
|
436
|
+
// oauth required
|
437
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
438
|
+
if (limit !== undefined) {
|
439
|
+
localVarQueryParameter['limit'] = limit;
|
440
|
+
}
|
441
|
+
if (cursor !== undefined) {
|
442
|
+
localVarQueryParameter['cursor'] = cursor;
|
443
|
+
}
|
444
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
445
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
446
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
447
|
+
return {
|
448
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
449
|
+
options: localVarRequestOptions,
|
450
|
+
};
|
451
|
+
}),
|
452
|
+
/**
|
453
|
+
* Lists changelogs about users have followed the deal.
|
454
|
+
* @summary List followers changelog of a deal
|
455
|
+
* @param {number} id The ID of the deal
|
456
|
+
* @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.
|
457
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
458
|
+
|
459
|
+
* @throws {RequiredError}
|
460
|
+
*/
|
461
|
+
getDealFollowersChangelog: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
|
462
|
+
// verify required parameter 'id' is not null or undefined
|
463
|
+
(0, common_1.assertParamExists)('getDealFollowersChangelog', 'id', id);
|
464
|
+
const localVarPath = `/deals/{id}/followers/changelog`
|
465
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
466
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
467
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
468
|
+
let baseOptions;
|
469
|
+
if (configuration) {
|
470
|
+
baseOptions = configuration.baseOptions;
|
471
|
+
}
|
472
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
|
473
|
+
const localVarHeaderParameter = {};
|
474
|
+
const localVarQueryParameter = {};
|
475
|
+
// authentication api_key required
|
476
|
+
yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
|
477
|
+
// authentication oauth2 required
|
478
|
+
// oauth required
|
479
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration);
|
480
|
+
if (limit !== undefined) {
|
481
|
+
localVarQueryParameter['limit'] = limit;
|
482
|
+
}
|
483
|
+
if (cursor !== undefined) {
|
484
|
+
localVarQueryParameter['cursor'] = cursor;
|
485
|
+
}
|
486
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
487
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
488
|
+
localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
|
489
|
+
return {
|
490
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
491
|
+
options: localVarRequestOptions,
|
492
|
+
};
|
493
|
+
}),
|
335
494
|
/**
|
336
495
|
* Lists products attached to a deal.
|
337
496
|
* @summary List products attached to a deal
|
@@ -905,6 +1064,20 @@ const DealsApiFp = function (configuration) {
|
|
905
1064
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
906
1065
|
});
|
907
1066
|
},
|
1067
|
+
/**
|
1068
|
+
* Adds a user as a follower to the deal.
|
1069
|
+
* @summary Add a follower to a deal
|
1070
|
+
* @param {number} id The ID of the deal
|
1071
|
+
* @param {AddDealFollowerRequest} [AddDealFollowerRequest]
|
1072
|
+
|
1073
|
+
* @throws {RequiredError}
|
1074
|
+
*/
|
1075
|
+
addDealFollower(id, AddDealFollowerRequest) {
|
1076
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1077
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addDealFollower(id, AddDealFollowerRequest);
|
1078
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1079
|
+
});
|
1080
|
+
},
|
908
1081
|
/**
|
909
1082
|
* Adds a product to a deal, creating a new item called a deal-product.
|
910
1083
|
* @summary Add a product to a deal
|
@@ -946,6 +1119,20 @@ const DealsApiFp = function (configuration) {
|
|
946
1119
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
947
1120
|
});
|
948
1121
|
},
|
1122
|
+
/**
|
1123
|
+
* Deletes a user follower from the deal.
|
1124
|
+
* @summary Delete a follower from a deal
|
1125
|
+
* @param {number} id The ID of the deal
|
1126
|
+
* @param {number} follower_id The ID of the following user
|
1127
|
+
|
1128
|
+
* @throws {RequiredError}
|
1129
|
+
*/
|
1130
|
+
deleteDealFollower(id, follower_id) {
|
1131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1132
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDealFollower(id, follower_id);
|
1133
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1134
|
+
});
|
1135
|
+
},
|
949
1136
|
/**
|
950
1137
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
951
1138
|
* @summary Delete an attached product from a deal
|
@@ -1002,6 +1189,36 @@ const DealsApiFp = function (configuration) {
|
|
1002
1189
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1003
1190
|
});
|
1004
1191
|
},
|
1192
|
+
/**
|
1193
|
+
* Lists users who are following the deal.
|
1194
|
+
* @summary List followers of a deal
|
1195
|
+
* @param {number} id The ID of the deal
|
1196
|
+
* @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.
|
1197
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
1198
|
+
|
1199
|
+
* @throws {RequiredError}
|
1200
|
+
*/
|
1201
|
+
getDealFollowers(id, limit, cursor) {
|
1202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1203
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealFollowers(id, limit, cursor);
|
1204
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1205
|
+
});
|
1206
|
+
},
|
1207
|
+
/**
|
1208
|
+
* Lists changelogs about users have followed the deal.
|
1209
|
+
* @summary List followers changelog of a deal
|
1210
|
+
* @param {number} id The ID of the deal
|
1211
|
+
* @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.
|
1212
|
+
* @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
|
1213
|
+
|
1214
|
+
* @throws {RequiredError}
|
1215
|
+
*/
|
1216
|
+
getDealFollowersChangelog(id, limit, cursor) {
|
1217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1218
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDealFollowersChangelog(id, limit, cursor);
|
1219
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1220
|
+
});
|
1221
|
+
},
|
1005
1222
|
/**
|
1006
1223
|
* Lists products attached to a deal.
|
1007
1224
|
* @summary List products attached to a deal
|
@@ -1209,6 +1426,16 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
1209
1426
|
addDeal(requestParameters = {}) {
|
1210
1427
|
return localVarFp.addDeal(requestParameters.AddDealRequest).then((request) => request(axios, basePath));
|
1211
1428
|
},
|
1429
|
+
/**
|
1430
|
+
* Adds a user as a follower to the deal.
|
1431
|
+
* @summary Add a follower to a deal
|
1432
|
+
* @param {DealsApiAddDealFollowerRequest} requestParameters Request parameters.
|
1433
|
+
|
1434
|
+
* @throws {RequiredError}
|
1435
|
+
*/
|
1436
|
+
addDealFollower(requestParameters) {
|
1437
|
+
return localVarFp.addDealFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
|
1438
|
+
},
|
1212
1439
|
/**
|
1213
1440
|
* Adds a product to a deal, creating a new item called a deal-product.
|
1214
1441
|
* @summary Add a product to a deal
|
@@ -1239,6 +1466,16 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
1239
1466
|
deleteDeal(requestParameters) {
|
1240
1467
|
return localVarFp.deleteDeal(requestParameters.id).then((request) => request(axios, basePath));
|
1241
1468
|
},
|
1469
|
+
/**
|
1470
|
+
* Deletes a user follower from the deal.
|
1471
|
+
* @summary Delete a follower from a deal
|
1472
|
+
* @param {DealsApiDeleteDealFollowerRequest} requestParameters Request parameters.
|
1473
|
+
|
1474
|
+
* @throws {RequiredError}
|
1475
|
+
*/
|
1476
|
+
deleteDealFollower(requestParameters) {
|
1477
|
+
return localVarFp.deleteDealFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
|
1478
|
+
},
|
1242
1479
|
/**
|
1243
1480
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
1244
1481
|
* @summary Delete an attached product from a deal
|
@@ -1279,6 +1516,26 @@ const DealsApiFactory = function (configuration, basePath, axios) {
|
|
1279
1516
|
getDeal(requestParameters) {
|
1280
1517
|
return localVarFp.getDeal(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(axios, basePath));
|
1281
1518
|
},
|
1519
|
+
/**
|
1520
|
+
* Lists users who are following the deal.
|
1521
|
+
* @summary List followers of a deal
|
1522
|
+
* @param {DealsApiGetDealFollowersRequest} requestParameters Request parameters.
|
1523
|
+
|
1524
|
+
* @throws {RequiredError}
|
1525
|
+
*/
|
1526
|
+
getDealFollowers(requestParameters) {
|
1527
|
+
return localVarFp.getDealFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
1528
|
+
},
|
1529
|
+
/**
|
1530
|
+
* Lists changelogs about users have followed the deal.
|
1531
|
+
* @summary List followers changelog of a deal
|
1532
|
+
* @param {DealsApiGetDealFollowersChangelogRequest} requestParameters Request parameters.
|
1533
|
+
|
1534
|
+
* @throws {RequiredError}
|
1535
|
+
*/
|
1536
|
+
getDealFollowersChangelog(requestParameters) {
|
1537
|
+
return localVarFp.getDealFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
|
1538
|
+
},
|
1282
1539
|
/**
|
1283
1540
|
* Lists products attached to a deal.
|
1284
1541
|
* @summary List products attached to a deal
|
@@ -1410,6 +1667,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
1410
1667
|
addDeal(requestParameters = {}) {
|
1411
1668
|
return (0, exports.DealsApiFp)(this.configuration).addDeal(requestParameters.AddDealRequest).then((request) => request(this.axios, this.basePath));
|
1412
1669
|
}
|
1670
|
+
/**
|
1671
|
+
* Adds a user as a follower to the deal.
|
1672
|
+
* @summary Add a follower to a deal
|
1673
|
+
* @param {DealsApiAddDealFollowerRequest} requestParameters Request parameters.
|
1674
|
+
|
1675
|
+
* @throws {RequiredError}
|
1676
|
+
* @memberof DealsApi
|
1677
|
+
*/
|
1678
|
+
addDealFollower(requestParameters) {
|
1679
|
+
return (0, exports.DealsApiFp)(this.configuration).addDealFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
|
1680
|
+
}
|
1413
1681
|
/**
|
1414
1682
|
* Adds a product to a deal, creating a new item called a deal-product.
|
1415
1683
|
* @summary Add a product to a deal
|
@@ -1443,6 +1711,17 @@ class DealsApi extends base_1.BaseAPI {
|
|
1443
1711
|
deleteDeal(requestParameters) {
|
1444
1712
|
return (0, exports.DealsApiFp)(this.configuration).deleteDeal(requestParameters.id).then((request) => request(this.axios, this.basePath));
|
1445
1713
|
}
|
1714
|
+
/**
|
1715
|
+
* Deletes a user follower from the deal.
|
1716
|
+
* @summary Delete a follower from a deal
|
1717
|
+
* @param {DealsApiDeleteDealFollowerRequest} requestParameters Request parameters.
|
1718
|
+
|
1719
|
+
* @throws {RequiredError}
|
1720
|
+
* @memberof DealsApi
|
1721
|
+
*/
|
1722
|
+
deleteDealFollower(requestParameters) {
|
1723
|
+
return (0, exports.DealsApiFp)(this.configuration).deleteDealFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
|
1724
|
+
}
|
1446
1725
|
/**
|
1447
1726
|
* Deletes a product attachment from a deal, using the `product_attachment_id`.
|
1448
1727
|
* @summary Delete an attached product from a deal
|
@@ -1487,6 +1766,28 @@ class DealsApi extends base_1.BaseAPI {
|
|
1487
1766
|
getDeal(requestParameters) {
|
1488
1767
|
return (0, exports.DealsApiFp)(this.configuration).getDeal(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(this.axios, this.basePath));
|
1489
1768
|
}
|
1769
|
+
/**
|
1770
|
+
* Lists users who are following the deal.
|
1771
|
+
* @summary List followers of a deal
|
1772
|
+
* @param {DealsApiGetDealFollowersRequest} requestParameters Request parameters.
|
1773
|
+
|
1774
|
+
* @throws {RequiredError}
|
1775
|
+
* @memberof DealsApi
|
1776
|
+
*/
|
1777
|
+
getDealFollowers(requestParameters) {
|
1778
|
+
return (0, exports.DealsApiFp)(this.configuration).getDealFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
1779
|
+
}
|
1780
|
+
/**
|
1781
|
+
* Lists changelogs about users have followed the deal.
|
1782
|
+
* @summary List followers changelog of a deal
|
1783
|
+
* @param {DealsApiGetDealFollowersChangelogRequest} requestParameters Request parameters.
|
1784
|
+
|
1785
|
+
* @throws {RequiredError}
|
1786
|
+
* @memberof DealsApi
|
1787
|
+
*/
|
1788
|
+
getDealFollowersChangelog(requestParameters) {
|
1789
|
+
return (0, exports.DealsApiFp)(this.configuration).getDealFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
|
1790
|
+
}
|
1490
1791
|
/**
|
1491
1792
|
* Lists products attached to a deal.
|
1492
1793
|
* @summary List products attached to a deal
|