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 PersonsApiAxiosParamCreator = function (configuration) {
65
65
  options: localVarRequestOptions,
66
66
  };
67
67
  }),
68
+ /**
69
+ * Adds a user as a follower to the person.
70
+ * @summary Add a follower to a person
71
+ * @param {number} id The ID of the person
72
+ * @param {AddDealFollowerRequest} [AddDealFollowerRequest]
73
+
74
+ * @throws {RequiredError}
75
+ */
76
+ addPersonFollower: (id, AddDealFollowerRequest) => __awaiter(this, void 0, void 0, function* () {
77
+ // verify required parameter 'id' is not null or undefined
78
+ assertParamExists('addPersonFollower', 'id', id);
79
+ const localVarPath = `/persons/{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", ["contacts: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
  * Marks a person as deleted. After 30 days, the person will be permanently deleted.
70
107
  * @summary Delete a person
@@ -99,6 +136,44 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
99
136
  options: localVarRequestOptions,
100
137
  };
101
138
  }),
139
+ /**
140
+ * Deletes a user follower from the person.
141
+ * @summary Delete a follower from a person
142
+ * @param {number} id The ID of the person
143
+ * @param {number} follower_id The ID of the following user
144
+
145
+ * @throws {RequiredError}
146
+ */
147
+ deletePersonFollower: (id, follower_id) => __awaiter(this, void 0, void 0, function* () {
148
+ // verify required parameter 'id' is not null or undefined
149
+ assertParamExists('deletePersonFollower', 'id', id);
150
+ // verify required parameter 'follower_id' is not null or undefined
151
+ assertParamExists('deletePersonFollower', 'follower_id', follower_id);
152
+ const localVarPath = `/persons/{id}/followers/{follower_id}`
153
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
154
+ .replace(`{${"follower_id"}}`, encodeURIComponent(String(follower_id)));
155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
156
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
157
+ let baseOptions;
158
+ if (configuration) {
159
+ baseOptions = configuration.baseOptions;
160
+ }
161
+ const localVarRequestOptions = Object.assign({ method: 'DELETE' }, baseOptions);
162
+ const localVarHeaderParameter = {};
163
+ const localVarQueryParameter = {};
164
+ // authentication api_key required
165
+ yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
166
+ // authentication oauth2 required
167
+ // oauth required
168
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration);
169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
+ localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
172
+ return {
173
+ url: toPathString(localVarUrlObj),
174
+ options: localVarRequestOptions,
175
+ };
176
+ }),
102
177
  /**
103
178
  * Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
104
179
  * @summary Get details of a person
@@ -141,6 +216,90 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
141
216
  options: localVarRequestOptions,
142
217
  };
143
218
  }),
219
+ /**
220
+ * Lists users who are following the person.
221
+ * @summary List followers of a person
222
+ * @param {number} id The ID of the person
223
+ * @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.
224
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
225
+
226
+ * @throws {RequiredError}
227
+ */
228
+ getPersonFollowers: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
229
+ // verify required parameter 'id' is not null or undefined
230
+ assertParamExists('getPersonFollowers', 'id', id);
231
+ const localVarPath = `/persons/{id}/followers`
232
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
233
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
234
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
235
+ let baseOptions;
236
+ if (configuration) {
237
+ baseOptions = configuration.baseOptions;
238
+ }
239
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
240
+ const localVarHeaderParameter = {};
241
+ const localVarQueryParameter = {};
242
+ // authentication api_key required
243
+ yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
244
+ // authentication oauth2 required
245
+ // oauth required
246
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
247
+ if (limit !== undefined) {
248
+ localVarQueryParameter['limit'] = limit;
249
+ }
250
+ if (cursor !== undefined) {
251
+ localVarQueryParameter['cursor'] = cursor;
252
+ }
253
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
254
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
+ localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
256
+ return {
257
+ url: toPathString(localVarUrlObj),
258
+ options: localVarRequestOptions,
259
+ };
260
+ }),
261
+ /**
262
+ * Lists changelogs about users have followed the person.
263
+ * @summary List followers changelog of a person
264
+ * @param {number} id The ID of the person
265
+ * @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.
266
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
267
+
268
+ * @throws {RequiredError}
269
+ */
270
+ getPersonFollowersChangelog: (id, limit, cursor) => __awaiter(this, void 0, void 0, function* () {
271
+ // verify required parameter 'id' is not null or undefined
272
+ assertParamExists('getPersonFollowersChangelog', 'id', id);
273
+ const localVarPath = `/persons/{id}/followers/changelog`
274
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
275
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
276
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
277
+ let baseOptions;
278
+ if (configuration) {
279
+ baseOptions = configuration.baseOptions;
280
+ }
281
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions);
282
+ const localVarHeaderParameter = {};
283
+ const localVarQueryParameter = {};
284
+ // authentication api_key required
285
+ yield setApiKeyToObject(localVarQueryParameter, "api_token", configuration);
286
+ // authentication oauth2 required
287
+ // oauth required
288
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration);
289
+ if (limit !== undefined) {
290
+ localVarQueryParameter['limit'] = limit;
291
+ }
292
+ if (cursor !== undefined) {
293
+ localVarQueryParameter['cursor'] = cursor;
294
+ }
295
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
296
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
+ localVarRequestOptions.headers = Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions);
298
+ return {
299
+ url: toPathString(localVarUrlObj),
300
+ options: localVarRequestOptions,
301
+ };
302
+ }),
144
303
  /**
145
304
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
146
305
  * @summary Get all persons
@@ -338,6 +497,20 @@ export const PersonsApiFp = function (configuration) {
338
497
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
339
498
  });
340
499
  },
500
+ /**
501
+ * Adds a user as a follower to the person.
502
+ * @summary Add a follower to a person
503
+ * @param {number} id The ID of the person
504
+ * @param {AddDealFollowerRequest} [AddDealFollowerRequest]
505
+
506
+ * @throws {RequiredError}
507
+ */
508
+ addPersonFollower(id, AddDealFollowerRequest) {
509
+ return __awaiter(this, void 0, void 0, function* () {
510
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addPersonFollower(id, AddDealFollowerRequest);
511
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
512
+ });
513
+ },
341
514
  /**
342
515
  * Marks a person as deleted. After 30 days, the person will be permanently deleted.
343
516
  * @summary Delete a person
@@ -351,6 +524,20 @@ export const PersonsApiFp = function (configuration) {
351
524
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
352
525
  });
353
526
  },
527
+ /**
528
+ * Deletes a user follower from the person.
529
+ * @summary Delete a follower from a person
530
+ * @param {number} id The ID of the person
531
+ * @param {number} follower_id The ID of the following user
532
+
533
+ * @throws {RequiredError}
534
+ */
535
+ deletePersonFollower(id, follower_id) {
536
+ return __awaiter(this, void 0, void 0, function* () {
537
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePersonFollower(id, follower_id);
538
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
539
+ });
540
+ },
354
541
  /**
355
542
  * Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
356
543
  * @summary Get details of a person
@@ -366,6 +553,36 @@ export const PersonsApiFp = function (configuration) {
366
553
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
367
554
  });
368
555
  },
556
+ /**
557
+ * Lists users who are following the person.
558
+ * @summary List followers of a person
559
+ * @param {number} id The ID of the person
560
+ * @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.
561
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
562
+
563
+ * @throws {RequiredError}
564
+ */
565
+ getPersonFollowers(id, limit, cursor) {
566
+ return __awaiter(this, void 0, void 0, function* () {
567
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPersonFollowers(id, limit, cursor);
568
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
569
+ });
570
+ },
571
+ /**
572
+ * Lists changelogs about users have followed the person.
573
+ * @summary List followers changelog of a person
574
+ * @param {number} id The ID of the person
575
+ * @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.
576
+ * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
577
+
578
+ * @throws {RequiredError}
579
+ */
580
+ getPersonFollowersChangelog(id, limit, cursor) {
581
+ return __awaiter(this, void 0, void 0, function* () {
582
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPersonFollowersChangelog(id, limit, cursor);
583
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
584
+ });
585
+ },
369
586
  /**
370
587
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
371
588
  * @summary Get all persons
@@ -442,6 +659,16 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
442
659
  addPerson(requestParameters = {}) {
443
660
  return localVarFp.addPerson(requestParameters.AddPersonRequest).then((request) => request(axios, basePath));
444
661
  },
662
+ /**
663
+ * Adds a user as a follower to the person.
664
+ * @summary Add a follower to a person
665
+ * @param {PersonsApiAddPersonFollowerRequest} requestParameters Request parameters.
666
+
667
+ * @throws {RequiredError}
668
+ */
669
+ addPersonFollower(requestParameters) {
670
+ return localVarFp.addPersonFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(axios, basePath));
671
+ },
445
672
  /**
446
673
  * Marks a person as deleted. After 30 days, the person will be permanently deleted.
447
674
  * @summary Delete a person
@@ -452,6 +679,16 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
452
679
  deletePerson(requestParameters) {
453
680
  return localVarFp.deletePerson(requestParameters.id).then((request) => request(axios, basePath));
454
681
  },
682
+ /**
683
+ * Deletes a user follower from the person.
684
+ * @summary Delete a follower from a person
685
+ * @param {PersonsApiDeletePersonFollowerRequest} requestParameters Request parameters.
686
+
687
+ * @throws {RequiredError}
688
+ */
689
+ deletePersonFollower(requestParameters) {
690
+ return localVarFp.deletePersonFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(axios, basePath));
691
+ },
455
692
  /**
456
693
  * Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
457
694
  * @summary Get details of a person
@@ -462,6 +699,26 @@ export const PersonsApiFactory = function (configuration, basePath, axios) {
462
699
  getPerson(requestParameters) {
463
700
  return localVarFp.getPerson(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(axios, basePath));
464
701
  },
702
+ /**
703
+ * Lists users who are following the person.
704
+ * @summary List followers of a person
705
+ * @param {PersonsApiGetPersonFollowersRequest} requestParameters Request parameters.
706
+
707
+ * @throws {RequiredError}
708
+ */
709
+ getPersonFollowers(requestParameters) {
710
+ return localVarFp.getPersonFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
711
+ },
712
+ /**
713
+ * Lists changelogs about users have followed the person.
714
+ * @summary List followers changelog of a person
715
+ * @param {PersonsApiGetPersonFollowersChangelogRequest} requestParameters Request parameters.
716
+
717
+ * @throws {RequiredError}
718
+ */
719
+ getPersonFollowersChangelog(requestParameters) {
720
+ return localVarFp.getPersonFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(axios, basePath));
721
+ },
465
722
  /**
466
723
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
467
724
  * @summary Get all persons
@@ -512,6 +769,17 @@ export class PersonsApi extends BaseAPI {
512
769
  addPerson(requestParameters = {}) {
513
770
  return PersonsApiFp(this.configuration).addPerson(requestParameters.AddPersonRequest).then((request) => request(this.axios, this.basePath));
514
771
  }
772
+ /**
773
+ * Adds a user as a follower to the person.
774
+ * @summary Add a follower to a person
775
+ * @param {PersonsApiAddPersonFollowerRequest} requestParameters Request parameters.
776
+
777
+ * @throws {RequiredError}
778
+ * @memberof PersonsApi
779
+ */
780
+ addPersonFollower(requestParameters) {
781
+ return PersonsApiFp(this.configuration).addPersonFollower(requestParameters.id, requestParameters.AddDealFollowerRequest).then((request) => request(this.axios, this.basePath));
782
+ }
515
783
  /**
516
784
  * Marks a person as deleted. After 30 days, the person will be permanently deleted.
517
785
  * @summary Delete a person
@@ -523,6 +791,17 @@ export class PersonsApi extends BaseAPI {
523
791
  deletePerson(requestParameters) {
524
792
  return PersonsApiFp(this.configuration).deletePerson(requestParameters.id).then((request) => request(this.axios, this.basePath));
525
793
  }
794
+ /**
795
+ * Deletes a user follower from the person.
796
+ * @summary Delete a follower from a person
797
+ * @param {PersonsApiDeletePersonFollowerRequest} requestParameters Request parameters.
798
+
799
+ * @throws {RequiredError}
800
+ * @memberof PersonsApi
801
+ */
802
+ deletePersonFollower(requestParameters) {
803
+ return PersonsApiFp(this.configuration).deletePersonFollower(requestParameters.id, requestParameters.follower_id).then((request) => request(this.axios, this.basePath));
804
+ }
526
805
  /**
527
806
  * Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
528
807
  * @summary Get details of a person
@@ -534,6 +813,28 @@ export class PersonsApi extends BaseAPI {
534
813
  getPerson(requestParameters) {
535
814
  return PersonsApiFp(this.configuration).getPerson(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields).then((request) => request(this.axios, this.basePath));
536
815
  }
816
+ /**
817
+ * Lists users who are following the person.
818
+ * @summary List followers of a person
819
+ * @param {PersonsApiGetPersonFollowersRequest} requestParameters Request parameters.
820
+
821
+ * @throws {RequiredError}
822
+ * @memberof PersonsApi
823
+ */
824
+ getPersonFollowers(requestParameters) {
825
+ return PersonsApiFp(this.configuration).getPersonFollowers(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
826
+ }
827
+ /**
828
+ * Lists changelogs about users have followed the person.
829
+ * @summary List followers changelog of a person
830
+ * @param {PersonsApiGetPersonFollowersChangelogRequest} requestParameters Request parameters.
831
+
832
+ * @throws {RequiredError}
833
+ * @memberof PersonsApi
834
+ */
835
+ getPersonFollowersChangelog(requestParameters) {
836
+ return PersonsApiFp(this.configuration).getPersonFollowersChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor).then((request) => request(this.axios, this.basePath));
837
+ }
537
838
  /**
538
839
  * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company.
539
840
  * @summary Get all persons