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.
Files changed (113) hide show
  1. package/dist/esm/versions/v1/api/deals-api.d.ts +3 -3
  2. package/dist/esm/versions/v1/api/deals-api.js +2 -2
  3. package/dist/esm/versions/v1/api/organizations-api.d.ts +3 -3
  4. package/dist/esm/versions/v1/api/organizations-api.js +2 -2
  5. package/dist/esm/versions/v1/api/persons-api.d.ts +3 -3
  6. package/dist/esm/versions/v1/api/persons-api.js +2 -2
  7. package/dist/esm/versions/v1/api/subscriptions-api.d.ts +36 -36
  8. package/dist/esm/versions/v1/api/subscriptions-api.js +36 -36
  9. package/dist/esm/versions/v1/api/webhooks-api.d.ts +4 -4
  10. package/dist/esm/versions/v1/api/webhooks-api.js +4 -4
  11. package/dist/esm/versions/v1/models/add-webhook-request.d.ts +5 -6
  12. package/dist/esm/versions/v1/models/add-webhook-request.js +4 -5
  13. package/dist/esm/versions/v1/models/user-access.d.ts +3 -2
  14. package/dist/esm/versions/v1/models/user-access.js +4 -3
  15. package/dist/esm/versions/v1/models/user-access1.d.ts +3 -2
  16. package/dist/esm/versions/v1/models/user-access1.js +4 -3
  17. package/dist/esm/versions/v2/api/beta-api.d.ts +82 -2632
  18. package/dist/esm/versions/v2/api/beta-api.js +139 -3090
  19. package/dist/esm/versions/v2/api/deals-api.d.ts +237 -0
  20. package/dist/esm/versions/v2/api/deals-api.js +301 -0
  21. package/dist/esm/versions/v2/api/organizations-api.d.ts +237 -0
  22. package/dist/esm/versions/v2/api/organizations-api.js +301 -0
  23. package/dist/esm/versions/v2/api/persons-api.d.ts +237 -0
  24. package/dist/esm/versions/v2/api/persons-api.js +301 -0
  25. package/dist/esm/versions/v2/api/products-api.d.ts +237 -0
  26. package/dist/esm/versions/v2/api/products-api.js +301 -0
  27. package/dist/esm/versions/v2/api/users-api.d.ts +103 -0
  28. package/dist/esm/versions/v2/api/users-api.js +140 -0
  29. package/dist/esm/versions/v2/api.d.ts +1 -0
  30. package/dist/esm/versions/v2/api.js +1 -0
  31. package/dist/esm/versions/v2/models/add-deal-follower-request.d.ts +23 -0
  32. package/dist/esm/versions/v2/models/add-deal-follower-request.js +14 -0
  33. package/dist/esm/versions/v2/models/add-follower-response-all-of.d.ts +24 -0
  34. package/dist/esm/versions/v2/models/add-follower-response-all-of.js +14 -0
  35. package/dist/esm/versions/v2/models/add-follower-response.d.ts +18 -0
  36. package/dist/esm/versions/v2/models/add-follower-response.js +14 -0
  37. package/dist/esm/versions/v2/models/delete-follower-response-data.d.ts +23 -0
  38. package/dist/esm/versions/v2/models/delete-follower-response-data.js +14 -0
  39. package/dist/esm/versions/v2/models/delete-follower-response.d.ts +29 -0
  40. package/dist/esm/versions/v2/models/delete-follower-response.js +14 -0
  41. package/dist/esm/versions/v2/models/follower-changelog-item.d.ts +38 -0
  42. package/dist/esm/versions/v2/models/follower-changelog-item.js +14 -0
  43. package/dist/esm/versions/v2/models/follower-item.d.ts +28 -0
  44. package/dist/esm/versions/v2/models/follower-item.js +14 -0
  45. package/dist/esm/versions/v2/models/follower-item1.d.ts +28 -0
  46. package/dist/esm/versions/v2/models/follower-item1.js +14 -0
  47. package/dist/esm/versions/v2/models/get-follower-changelogs-response-all-of.d.ts +30 -0
  48. package/dist/esm/versions/v2/models/get-follower-changelogs-response-all-of.js +14 -0
  49. package/dist/esm/versions/v2/models/get-follower-changelogs-response.d.ts +18 -0
  50. package/dist/esm/versions/v2/models/get-follower-changelogs-response.js +14 -0
  51. package/dist/esm/versions/v2/models/get-followers-response-all-of.d.ts +30 -0
  52. package/dist/esm/versions/v2/models/get-followers-response-all-of.js +14 -0
  53. package/dist/esm/versions/v2/models/get-followers-response.d.ts +18 -0
  54. package/dist/esm/versions/v2/models/get-followers-response.js +14 -0
  55. package/dist/esm/versions/v2/models/index.d.ts +12 -0
  56. package/dist/esm/versions/v2/models/index.js +12 -0
  57. package/dist/versions/v1/api/deals-api.d.ts +3 -3
  58. package/dist/versions/v1/api/deals-api.js +2 -2
  59. package/dist/versions/v1/api/organizations-api.d.ts +3 -3
  60. package/dist/versions/v1/api/organizations-api.js +2 -2
  61. package/dist/versions/v1/api/persons-api.d.ts +3 -3
  62. package/dist/versions/v1/api/persons-api.js +2 -2
  63. package/dist/versions/v1/api/subscriptions-api.d.ts +36 -36
  64. package/dist/versions/v1/api/subscriptions-api.js +36 -36
  65. package/dist/versions/v1/api/webhooks-api.d.ts +4 -4
  66. package/dist/versions/v1/api/webhooks-api.js +4 -4
  67. package/dist/versions/v1/models/add-webhook-request.d.ts +5 -6
  68. package/dist/versions/v1/models/add-webhook-request.js +4 -5
  69. package/dist/versions/v1/models/user-access.d.ts +3 -2
  70. package/dist/versions/v1/models/user-access.js +4 -3
  71. package/dist/versions/v1/models/user-access1.d.ts +3 -2
  72. package/dist/versions/v1/models/user-access1.js +4 -3
  73. package/dist/versions/v2/api/beta-api.d.ts +82 -2632
  74. package/dist/versions/v2/api/beta-api.js +141 -3092
  75. package/dist/versions/v2/api/deals-api.d.ts +237 -0
  76. package/dist/versions/v2/api/deals-api.js +301 -0
  77. package/dist/versions/v2/api/organizations-api.d.ts +237 -0
  78. package/dist/versions/v2/api/organizations-api.js +301 -0
  79. package/dist/versions/v2/api/persons-api.d.ts +237 -0
  80. package/dist/versions/v2/api/persons-api.js +301 -0
  81. package/dist/versions/v2/api/products-api.d.ts +237 -0
  82. package/dist/versions/v2/api/products-api.js +301 -0
  83. package/dist/versions/v2/api/users-api.d.ts +103 -0
  84. package/dist/versions/v2/api/users-api.js +150 -0
  85. package/dist/versions/v2/api.d.ts +1 -0
  86. package/dist/versions/v2/api.js +1 -0
  87. package/dist/versions/v2/models/add-deal-follower-request.d.ts +23 -0
  88. package/dist/versions/v2/models/add-deal-follower-request.js +15 -0
  89. package/dist/versions/v2/models/add-follower-response-all-of.d.ts +24 -0
  90. package/dist/versions/v2/models/add-follower-response-all-of.js +15 -0
  91. package/dist/versions/v2/models/add-follower-response.d.ts +18 -0
  92. package/dist/versions/v2/models/add-follower-response.js +15 -0
  93. package/dist/versions/v2/models/delete-follower-response-data.d.ts +23 -0
  94. package/dist/versions/v2/models/delete-follower-response-data.js +15 -0
  95. package/dist/versions/v2/models/delete-follower-response.d.ts +29 -0
  96. package/dist/versions/v2/models/delete-follower-response.js +15 -0
  97. package/dist/versions/v2/models/follower-changelog-item.d.ts +38 -0
  98. package/dist/versions/v2/models/follower-changelog-item.js +15 -0
  99. package/dist/versions/v2/models/follower-item.d.ts +28 -0
  100. package/dist/versions/v2/models/follower-item.js +15 -0
  101. package/dist/versions/v2/models/follower-item1.d.ts +28 -0
  102. package/dist/versions/v2/models/follower-item1.js +15 -0
  103. package/dist/versions/v2/models/get-follower-changelogs-response-all-of.d.ts +30 -0
  104. package/dist/versions/v2/models/get-follower-changelogs-response-all-of.js +15 -0
  105. package/dist/versions/v2/models/get-follower-changelogs-response.d.ts +18 -0
  106. package/dist/versions/v2/models/get-follower-changelogs-response.js +15 -0
  107. package/dist/versions/v2/models/get-followers-response-all-of.d.ts +30 -0
  108. package/dist/versions/v2/models/get-followers-response-all-of.js +15 -0
  109. package/dist/versions/v2/models/get-followers-response.d.ts +18 -0
  110. package/dist/versions/v2/models/get-followers-response.js +15 -0
  111. package/dist/versions/v2/models/index.d.ts +12 -0
  112. package/dist/versions/v2/models/index.js +12 -0
  113. 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
@@ -326,6 +401,90 @@ export const DealsApiAxiosParamCreator = function (configuration) {
326
401
  options: localVarRequestOptions,
327
402
  };
328
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
+ }),
329
488
  /**
330
489
  * Lists products attached to a deal.
331
490
  * @summary List products attached to a deal
@@ -898,6 +1057,20 @@ export const DealsApiFp = function (configuration) {
898
1057
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
899
1058
  });
900
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
+ },
901
1074
  /**
902
1075
  * Adds a product to a deal, creating a new item called a deal-product.
903
1076
  * @summary Add a product to a deal
@@ -939,6 +1112,20 @@ export const DealsApiFp = function (configuration) {
939
1112
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
940
1113
  });
941
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
+ },
942
1129
  /**
943
1130
  * Deletes a product attachment from a deal, using the `product_attachment_id`.
944
1131
  * @summary Delete an attached product from a deal
@@ -995,6 +1182,36 @@ export const DealsApiFp = function (configuration) {
995
1182
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
996
1183
  });
997
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
+ },
998
1215
  /**
999
1216
  * Lists products attached to a deal.
1000
1217
  * @summary List products attached to a deal
@@ -1201,6 +1418,16 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
1201
1418
  addDeal(requestParameters = {}) {
1202
1419
  return localVarFp.addDeal(requestParameters.AddDealRequest).then((request) => request(axios, basePath));
1203
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
+ },
1204
1431
  /**
1205
1432
  * Adds a product to a deal, creating a new item called a deal-product.
1206
1433
  * @summary Add a product to a deal
@@ -1231,6 +1458,16 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
1231
1458
  deleteDeal(requestParameters) {
1232
1459
  return localVarFp.deleteDeal(requestParameters.id).then((request) => request(axios, basePath));
1233
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
+ },
1234
1471
  /**
1235
1472
  * Deletes a product attachment from a deal, using the `product_attachment_id`.
1236
1473
  * @summary Delete an attached product from a deal
@@ -1271,6 +1508,26 @@ export const DealsApiFactory = function (configuration, basePath, axios) {
1271
1508
  getDeal(requestParameters) {
1272
1509
  return localVarFp.getDeal(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(axios, basePath));
1273
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
+ },
1274
1531
  /**
1275
1532
  * Lists products attached to a deal.
1276
1533
  * @summary List products attached to a deal
@@ -1401,6 +1658,17 @@ export class DealsApi extends BaseAPI {
1401
1658
  addDeal(requestParameters = {}) {
1402
1659
  return DealsApiFp(this.configuration).addDeal(requestParameters.AddDealRequest).then((request) => request(this.axios, this.basePath));
1403
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
+ }
1404
1672
  /**
1405
1673
  * Adds a product to a deal, creating a new item called a deal-product.
1406
1674
  * @summary Add a product to a deal
@@ -1434,6 +1702,17 @@ export class DealsApi extends BaseAPI {
1434
1702
  deleteDeal(requestParameters) {
1435
1703
  return DealsApiFp(this.configuration).deleteDeal(requestParameters.id).then((request) => request(this.axios, this.basePath));
1436
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
+ }
1437
1716
  /**
1438
1717
  * Deletes a product attachment from a deal, using the `product_attachment_id`.
1439
1718
  * @summary Delete an attached product from a deal
@@ -1478,6 +1757,28 @@ export class DealsApi extends BaseAPI {
1478
1757
  getDeal(requestParameters) {
1479
1758
  return DealsApiFp(this.configuration).getDeal(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(this.axios, this.basePath));
1480
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
+ }
1481
1782
  /**
1482
1783
  * Lists products attached to a deal.
1483
1784
  * @summary List products attached to a deal