pipedrive 22.3.1-rc.2 → 22.3.1-rc.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. package/CHANGELOG.md +6 -4
  2. package/api/activities-api.ts +1 -24
  3. package/api/activity-fields-api.ts +1 -24
  4. package/api/activity-types-api.ts +1 -21
  5. package/api/billing-api.ts +1 -24
  6. package/api/call-logs-api.ts +1 -24
  7. package/api/channels-api.ts +1 -24
  8. package/api/currencies-api.ts +1 -24
  9. package/api/deal-fields-api.ts +1 -24
  10. package/api/deals-api.ts +1 -24
  11. package/api/files-api.ts +1 -24
  12. package/api/filters-api.ts +1 -24
  13. package/api/goals-api.ts +1 -24
  14. package/api/item-search-api.ts +1 -24
  15. package/api/lead-labels-api.ts +1 -21
  16. package/api/lead-sources-api.ts +1 -24
  17. package/api/leads-api.ts +1 -24
  18. package/api/legacy-teams-api.ts +1 -24
  19. package/api/mailbox-api.ts +1 -24
  20. package/api/note-fields-api.ts +1 -24
  21. package/api/notes-api.ts +1 -21
  22. package/api/organization-fields-api.ts +1 -24
  23. package/api/organization-relationships-api.ts +1 -24
  24. package/api/organizations-api.ts +1 -24
  25. package/api/permission-sets-api.ts +1 -24
  26. package/api/person-fields-api.ts +1 -21
  27. package/api/persons-api.ts +1 -24
  28. package/api/pipelines-api.ts +1 -24
  29. package/api/product-fields-api.ts +1 -24
  30. package/api/products-api.ts +1 -24
  31. package/api/project-templates-api.ts +1 -24
  32. package/api/projects-api.ts +1 -24
  33. package/api/recents-api.ts +1 -24
  34. package/api/roles-api.ts +1 -24
  35. package/api/stages-api.ts +1 -24
  36. package/api/subscriptions-api.ts +1 -24
  37. package/api/tasks-api.ts +1 -24
  38. package/api/user-connections-api.ts +1 -24
  39. package/api/user-settings-api.ts +1 -24
  40. package/api/users-api.ts +1 -24
  41. package/api/webhooks-api.ts +1 -21
  42. package/base.ts +23 -0
  43. package/common.ts +0 -1
  44. package/configuration.ts +3 -1
  45. package/dist/api/activities-api.js +7 -30
  46. package/dist/api/activity-fields-api.js +1 -24
  47. package/dist/api/activity-types-api.js +0 -20
  48. package/dist/api/billing-api.js +1 -24
  49. package/dist/api/call-logs-api.js +5 -28
  50. package/dist/api/channels-api.js +4 -27
  51. package/dist/api/currencies-api.js +1 -24
  52. package/dist/api/deal-fields-api.js +6 -29
  53. package/dist/api/deals-api.js +28 -51
  54. package/dist/api/files-api.js +11 -34
  55. package/dist/api/filters-api.js +7 -30
  56. package/dist/api/goals-api.js +5 -28
  57. package/dist/api/item-search-api.js +2 -25
  58. package/dist/api/lead-labels-api.js +0 -20
  59. package/dist/api/lead-sources-api.js +1 -24
  60. package/dist/api/leads-api.js +7 -30
  61. package/dist/api/legacy-teams-api.js +8 -31
  62. package/dist/api/mailbox-api.js +7 -30
  63. package/dist/api/note-fields-api.js +1 -24
  64. package/dist/api/notes-api.js +0 -20
  65. package/dist/api/organization-fields-api.js +6 -29
  66. package/dist/api/organization-relationships-api.js +5 -28
  67. package/dist/api/organizations-api.js +19 -42
  68. package/dist/api/permission-sets-api.js +3 -26
  69. package/dist/api/person-fields-api.js +0 -20
  70. package/dist/api/persons-api.js +21 -44
  71. package/dist/api/pipelines-api.js +8 -31
  72. package/dist/api/product-fields-api.js +6 -29
  73. package/dist/api/products-api.js +12 -35
  74. package/dist/api/project-templates-api.js +4 -27
  75. package/dist/api/projects-api.js +14 -37
  76. package/dist/api/recents-api.js +1 -24
  77. package/dist/api/roles-api.js +12 -35
  78. package/dist/api/stages-api.js +7 -30
  79. package/dist/api/subscriptions-api.js +9 -32
  80. package/dist/api/tasks-api.js +5 -28
  81. package/dist/api/user-connections-api.js +1 -24
  82. package/dist/api/user-settings-api.js +1 -24
  83. package/dist/api/users-api.js +10 -33
  84. package/dist/api/webhooks-api.js +0 -20
  85. package/dist/base.js +20 -0
  86. package/dist/common.d.ts +0 -1
  87. package/dist/common.js +1 -2
  88. package/dist/configuration.d.ts +1 -0
  89. package/dist/configuration.js +1 -1
  90. package/dist/esm/api/activities-api.js +0 -23
  91. package/dist/esm/api/activity-fields-api.js +0 -23
  92. package/dist/esm/api/activity-types-api.js +0 -20
  93. package/dist/esm/api/billing-api.js +0 -23
  94. package/dist/esm/api/call-logs-api.js +0 -23
  95. package/dist/esm/api/channels-api.js +0 -23
  96. package/dist/esm/api/currencies-api.js +0 -23
  97. package/dist/esm/api/deal-fields-api.js +0 -23
  98. package/dist/esm/api/deals-api.js +0 -23
  99. package/dist/esm/api/files-api.js +0 -23
  100. package/dist/esm/api/filters-api.js +0 -23
  101. package/dist/esm/api/goals-api.js +0 -23
  102. package/dist/esm/api/item-search-api.js +0 -23
  103. package/dist/esm/api/lead-labels-api.js +0 -20
  104. package/dist/esm/api/lead-sources-api.js +0 -23
  105. package/dist/esm/api/leads-api.js +0 -23
  106. package/dist/esm/api/legacy-teams-api.js +0 -23
  107. package/dist/esm/api/mailbox-api.js +0 -23
  108. package/dist/esm/api/note-fields-api.js +0 -23
  109. package/dist/esm/api/notes-api.js +0 -20
  110. package/dist/esm/api/organization-fields-api.js +0 -23
  111. package/dist/esm/api/organization-relationships-api.js +0 -23
  112. package/dist/esm/api/organizations-api.js +0 -23
  113. package/dist/esm/api/permission-sets-api.js +0 -23
  114. package/dist/esm/api/person-fields-api.js +0 -20
  115. package/dist/esm/api/persons-api.js +0 -23
  116. package/dist/esm/api/pipelines-api.js +0 -23
  117. package/dist/esm/api/product-fields-api.js +0 -23
  118. package/dist/esm/api/products-api.js +0 -23
  119. package/dist/esm/api/project-templates-api.js +0 -23
  120. package/dist/esm/api/projects-api.js +0 -23
  121. package/dist/esm/api/recents-api.js +0 -23
  122. package/dist/esm/api/roles-api.js +0 -23
  123. package/dist/esm/api/stages-api.js +0 -23
  124. package/dist/esm/api/subscriptions-api.js +0 -23
  125. package/dist/esm/api/tasks-api.js +0 -23
  126. package/dist/esm/api/user-connections-api.js +0 -23
  127. package/dist/esm/api/user-settings-api.js +0 -23
  128. package/dist/esm/api/users-api.js +0 -23
  129. package/dist/esm/api/webhooks-api.js +0 -20
  130. package/dist/esm/base.js +20 -0
  131. package/dist/esm/common.d.ts +0 -1
  132. package/dist/esm/common.js +0 -1
  133. package/dist/esm/configuration.d.ts +1 -0
  134. package/dist/esm/configuration.js +1 -1
  135. package/docs/CallLogObject.md +2 -1
  136. package/docs/DealsApi.md +14 -8
  137. package/docs/FiltersApi.md +4 -1
  138. package/docs/GetDeal.md +1 -1
  139. package/docs/GetDealRelatedObjects.md +11 -0
  140. package/docs/GetDealsRelatedObjects.md +3 -3
  141. package/docs/ItemSearchApi.md +2 -2
  142. package/docs/LeadsApi.md +4 -1
  143. package/docs/MailboxApi.md +2 -2
  144. package/docs/MeetingsApi.md +118 -0
  145. package/docs/OrganizationsApi.md +10 -4
  146. package/docs/PersonsApi.md +14 -5
  147. package/docs/PostDealParticipants.md +1 -1
  148. package/docs/PostDealParticipantsRelatedObjects.md +10 -0
  149. package/docs/ProductsApi.md +2 -2
  150. package/docs/RecentsApi.md +2 -2
  151. package/docs/ResponseCallLogObject.md +2 -1
  152. package/docs/UserProviderLinkCreateRequest.md +12 -0
  153. package/docs/UserProviderLinkErrorResponse.md +10 -0
  154. package/docs/UserProviderLinkSuccessResponse.md +10 -0
  155. package/docs/UserProviderLinkSuccessResponseData.md +9 -0
  156. package/docs/UsersApi.md +2 -2
  157. package/package.json +3 -3
  158. package/src/api/MeetingsApi.js +181 -0
  159. package/src/model/GetDealRelatedObjects.js +101 -0
  160. package/src/model/PostDealParticipantsRelatedObjects.js +90 -0
  161. package/src/model/UserProviderLinkCreateRequest.js +120 -0
  162. package/src/model/UserProviderLinkErrorResponse.js +90 -0
  163. package/src/model/UserProviderLinkSuccessResponse.js +90 -0
  164. package/src/model/UserProviderLinkSuccessResponseData.js +79 -0
  165. package/test/functional/access-token.test.js +5 -5
  166. package/test/functional/authorisation.test.js +5 -8
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL, URLSearchParams } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
@@ -414,26 +411,6 @@ export const FilesApiAxiosParamCreator = function (configuration) {
414
411
  * @export
415
412
  */
416
413
  export const FilesApiFp = function (configuration) {
417
- /**
418
- * Axios interceptor to add the SDK version as a User-Agent header
419
- * */
420
- globalAxios.interceptors.request.use(function (config) {
421
- const version = require("../../package.json").version;
422
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
423
- return config;
424
- });
425
- /**
426
- * Axios response interceptor to modify response structure
427
- */
428
- globalAxios.interceptors.response.use(function (response) {
429
- return response.hasOwnProperty('success') ? response : response.data;
430
- }, function (error) {
431
- var _a;
432
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
433
- return Promise.reject(error.response.data);
434
- }
435
- return Promise.reject(error);
436
- });
437
414
  const localVarAxiosParamCreator = FilesApiAxiosParamCreator(configuration);
438
415
  return {
439
416
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -280,26 +277,6 @@ export const FiltersApiAxiosParamCreator = function (configuration) {
280
277
  * @export
281
278
  */
282
279
  export const FiltersApiFp = function (configuration) {
283
- /**
284
- * Axios interceptor to add the SDK version as a User-Agent header
285
- * */
286
- globalAxios.interceptors.request.use(function (config) {
287
- const version = require("../../package.json").version;
288
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
289
- return config;
290
- });
291
- /**
292
- * Axios response interceptor to modify response structure
293
- */
294
- globalAxios.interceptors.response.use(function (response) {
295
- return response.hasOwnProperty('success') ? response : response.data;
296
- }, function (error) {
297
- var _a;
298
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
299
- return Promise.reject(error.response.data);
300
- }
301
- return Promise.reject(error);
302
- });
303
280
  const localVarAxiosParamCreator = FiltersApiAxiosParamCreator(configuration);
304
281
  return {
305
282
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -282,26 +279,6 @@ export const GoalsApiAxiosParamCreator = function (configuration) {
282
279
  * @export
283
280
  */
284
281
  export const GoalsApiFp = function (configuration) {
285
- /**
286
- * Axios interceptor to add the SDK version as a User-Agent header
287
- * */
288
- globalAxios.interceptors.request.use(function (config) {
289
- const version = require("../../package.json").version;
290
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
291
- return config;
292
- });
293
- /**
294
- * Axios response interceptor to modify response structure
295
- */
296
- globalAxios.interceptors.response.use(function (response) {
297
- return response.hasOwnProperty('success') ? response : response.data;
298
- }, function (error) {
299
- var _a;
300
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
301
- return Promise.reject(error.response.data);
302
- }
303
- return Promise.reject(error);
304
- });
305
282
  const localVarAxiosParamCreator = GoalsApiAxiosParamCreator(configuration);
306
283
  return {
307
284
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
@@ -170,26 +167,6 @@ export const ItemSearchApiAxiosParamCreator = function (configuration) {
170
167
  * @export
171
168
  */
172
169
  export const ItemSearchApiFp = function (configuration) {
173
- /**
174
- * Axios interceptor to add the SDK version as a User-Agent header
175
- * */
176
- globalAxios.interceptors.request.use(function (config) {
177
- const version = require("../../package.json").version;
178
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
179
- return config;
180
- });
181
- /**
182
- * Axios response interceptor to modify response structure
183
- */
184
- globalAxios.interceptors.response.use(function (response) {
185
- return response.hasOwnProperty('success') ? response : response.data;
186
- }, function (error) {
187
- var _a;
188
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
189
- return Promise.reject(error.response.data);
190
- }
191
- return Promise.reject(error);
192
- });
193
170
  const localVarAxiosParamCreator = ItemSearchApiAxiosParamCreator(configuration);
194
171
  return {
195
172
  /**
@@ -173,26 +173,6 @@ export const LeadLabelsApiAxiosParamCreator = function (configuration) {
173
173
  * @export
174
174
  */
175
175
  export const LeadLabelsApiFp = function (configuration) {
176
- /**
177
- * Axios interceptor to add the SDK version as a User-Agent header
178
- * */
179
- globalAxios.interceptors.request.use(function (config) {
180
- const version = require("../../package.json").version;
181
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
182
- return config;
183
- });
184
- /**
185
- * Axios response interceptor to modify response structure
186
- */
187
- globalAxios.interceptors.response.use(function (response) {
188
- return response.hasOwnProperty('success') ? response : response.data;
189
- }, function (error) {
190
- var _a;
191
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
192
- return Promise.reject(error.response.data);
193
- }
194
- return Promise.reject(error);
195
- });
196
176
  const localVarAxiosParamCreator = LeadLabelsApiAxiosParamCreator(configuration);
197
177
  return {
198
178
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
@@ -72,26 +69,6 @@ export const LeadSourcesApiAxiosParamCreator = function (configuration) {
72
69
  * @export
73
70
  */
74
71
  export const LeadSourcesApiFp = function (configuration) {
75
- /**
76
- * Axios interceptor to add the SDK version as a User-Agent header
77
- * */
78
- globalAxios.interceptors.request.use(function (config) {
79
- const version = require("../../package.json").version;
80
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
81
- return config;
82
- });
83
- /**
84
- * Axios response interceptor to modify response structure
85
- */
86
- globalAxios.interceptors.response.use(function (response) {
87
- return response.hasOwnProperty('success') ? response : response.data;
88
- }, function (error) {
89
- var _a;
90
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
91
- return Promise.reject(error.response.data);
92
- }
93
- return Promise.reject(error);
94
- });
95
72
  const localVarAxiosParamCreator = LeadSourcesApiAxiosParamCreator(configuration);
96
73
  return {
97
74
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -340,26 +337,6 @@ export const LeadsApiAxiosParamCreator = function (configuration) {
340
337
  * @export
341
338
  */
342
339
  export const LeadsApiFp = function (configuration) {
343
- /**
344
- * Axios interceptor to add the SDK version as a User-Agent header
345
- * */
346
- globalAxios.interceptors.request.use(function (config) {
347
- const version = require("../../package.json").version;
348
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
349
- return config;
350
- });
351
- /**
352
- * Axios response interceptor to modify response structure
353
- */
354
- globalAxios.interceptors.response.use(function (response) {
355
- return response.hasOwnProperty('success') ? response : response.data;
356
- }, function (error) {
357
- var _a;
358
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
359
- return Promise.reject(error.response.data);
360
- }
361
- return Promise.reject(error);
362
- });
363
340
  const localVarAxiosParamCreator = LeadsApiAxiosParamCreator(configuration);
364
341
  return {
365
342
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -338,26 +335,6 @@ export const LegacyTeamsApiAxiosParamCreator = function (configuration) {
338
335
  * @export
339
336
  */
340
337
  export const LegacyTeamsApiFp = function (configuration) {
341
- /**
342
- * Axios interceptor to add the SDK version as a User-Agent header
343
- * */
344
- globalAxios.interceptors.request.use(function (config) {
345
- const version = require("../../package.json").version;
346
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
347
- return config;
348
- });
349
- /**
350
- * Axios response interceptor to modify response structure
351
- */
352
- globalAxios.interceptors.response.use(function (response) {
353
- return response.hasOwnProperty('success') ? response : response.data;
354
- }, function (error) {
355
- var _a;
356
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
357
- return Promise.reject(error.response.data);
358
- }
359
- return Promise.reject(error);
360
- });
361
338
  const localVarAxiosParamCreator = LegacyTeamsApiAxiosParamCreator(configuration);
362
339
  return {
363
340
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL, URLSearchParams } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
@@ -283,26 +280,6 @@ export const MailboxApiAxiosParamCreator = function (configuration) {
283
280
  * @export
284
281
  */
285
282
  export const MailboxApiFp = function (configuration) {
286
- /**
287
- * Axios interceptor to add the SDK version as a User-Agent header
288
- * */
289
- globalAxios.interceptors.request.use(function (config) {
290
- const version = require("../../package.json").version;
291
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
292
- return config;
293
- });
294
- /**
295
- * Axios response interceptor to modify response structure
296
- */
297
- globalAxios.interceptors.response.use(function (response) {
298
- return response.hasOwnProperty('success') ? response : response.data;
299
- }, function (error) {
300
- var _a;
301
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
302
- return Promise.reject(error.response.data);
303
- }
304
- return Promise.reject(error);
305
- });
306
283
  const localVarAxiosParamCreator = MailboxApiAxiosParamCreator(configuration);
307
284
  return {
308
285
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
@@ -72,26 +69,6 @@ export const NoteFieldsApiAxiosParamCreator = function (configuration) {
72
69
  * @export
73
70
  */
74
71
  export const NoteFieldsApiFp = function (configuration) {
75
- /**
76
- * Axios interceptor to add the SDK version as a User-Agent header
77
- * */
78
- globalAxios.interceptors.request.use(function (config) {
79
- const version = require("../../package.json").version;
80
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
81
- return config;
82
- });
83
- /**
84
- * Axios response interceptor to modify response structure
85
- */
86
- globalAxios.interceptors.response.use(function (response) {
87
- return response.hasOwnProperty('success') ? response : response.data;
88
- }, function (error) {
89
- var _a;
90
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
91
- return Promise.reject(error.response.data);
92
- }
93
- return Promise.reject(error);
94
- });
95
72
  const localVarAxiosParamCreator = NoteFieldsApiAxiosParamCreator(configuration);
96
73
  return {
97
74
  /**
@@ -463,26 +463,6 @@ export const NotesApiAxiosParamCreator = function (configuration) {
463
463
  * @export
464
464
  */
465
465
  export const NotesApiFp = function (configuration) {
466
- /**
467
- * Axios interceptor to add the SDK version as a User-Agent header
468
- * */
469
- globalAxios.interceptors.request.use(function (config) {
470
- const version = require("../../package.json").version;
471
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
472
- return config;
473
- });
474
- /**
475
- * Axios response interceptor to modify response structure
476
- */
477
- globalAxios.interceptors.response.use(function (response) {
478
- return response.hasOwnProperty('success') ? response : response.data;
479
- }, function (error) {
480
- var _a;
481
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
482
- return Promise.reject(error.response.data);
483
- }
484
- return Promise.reject(error);
485
- });
486
466
  const localVarAxiosParamCreator = NotesApiAxiosParamCreator(configuration);
487
467
  return {
488
468
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -254,26 +251,6 @@ export const OrganizationFieldsApiAxiosParamCreator = function (configuration) {
254
251
  * @export
255
252
  */
256
253
  export const OrganizationFieldsApiFp = function (configuration) {
257
- /**
258
- * Axios interceptor to add the SDK version as a User-Agent header
259
- * */
260
- globalAxios.interceptors.request.use(function (config) {
261
- const version = require("../../package.json").version;
262
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
263
- return config;
264
- });
265
- /**
266
- * Axios response interceptor to modify response structure
267
- */
268
- globalAxios.interceptors.response.use(function (response) {
269
- return response.hasOwnProperty('success') ? response : response.data;
270
- }, function (error) {
271
- var _a;
272
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
273
- return Promise.reject(error.response.data);
274
- }
275
- return Promise.reject(error);
276
- });
277
254
  const localVarAxiosParamCreator = OrganizationFieldsApiAxiosParamCreator(configuration);
278
255
  return {
279
256
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -220,26 +217,6 @@ export const OrganizationRelationshipsApiAxiosParamCreator = function (configura
220
217
  * @export
221
218
  */
222
219
  export const OrganizationRelationshipsApiFp = function (configuration) {
223
- /**
224
- * Axios interceptor to add the SDK version as a User-Agent header
225
- * */
226
- globalAxios.interceptors.request.use(function (config) {
227
- const version = require("../../package.json").version;
228
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
229
- return config;
230
- });
231
- /**
232
- * Axios response interceptor to modify response structure
233
- */
234
- globalAxios.interceptors.response.use(function (response) {
235
- return response.hasOwnProperty('success') ? response : response.data;
236
- }, function (error) {
237
- var _a;
238
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
239
- return Promise.reject(error.response.data);
240
- }
241
- return Promise.reject(error);
242
- });
243
220
  const localVarAxiosParamCreator = OrganizationRelationshipsApiAxiosParamCreator(configuration);
244
221
  return {
245
222
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -840,26 +837,6 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
840
837
  * @export
841
838
  */
842
839
  export const OrganizationsApiFp = function (configuration) {
843
- /**
844
- * Axios interceptor to add the SDK version as a User-Agent header
845
- * */
846
- globalAxios.interceptors.request.use(function (config) {
847
- const version = require("../../package.json").version;
848
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
849
- return config;
850
- });
851
- /**
852
- * Axios response interceptor to modify response structure
853
- */
854
- globalAxios.interceptors.response.use(function (response) {
855
- return response.hasOwnProperty('success') ? response : response.data;
856
- }, function (error) {
857
- var _a;
858
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
859
- return Promise.reject(error.response.data);
860
- }
861
- return Promise.reject(error);
862
- });
863
840
  const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration);
864
841
  return {
865
842
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
@@ -152,26 +149,6 @@ export const PermissionSetsApiAxiosParamCreator = function (configuration) {
152
149
  * @export
153
150
  */
154
151
  export const PermissionSetsApiFp = function (configuration) {
155
- /**
156
- * Axios interceptor to add the SDK version as a User-Agent header
157
- * */
158
- globalAxios.interceptors.request.use(function (config) {
159
- const version = require("../../package.json").version;
160
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
161
- return config;
162
- });
163
- /**
164
- * Axios response interceptor to modify response structure
165
- */
166
- globalAxios.interceptors.response.use(function (response) {
167
- return response.hasOwnProperty('success') ? response : response.data;
168
- }, function (error) {
169
- var _a;
170
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
171
- return Promise.reject(error.response.data);
172
- }
173
- return Promise.reject(error);
174
- });
175
152
  const localVarAxiosParamCreator = PermissionSetsApiAxiosParamCreator(configuration);
176
153
  return {
177
154
  /**
@@ -251,26 +251,6 @@ export const PersonFieldsApiAxiosParamCreator = function (configuration) {
251
251
  * @export
252
252
  */
253
253
  export const PersonFieldsApiFp = function (configuration) {
254
- /**
255
- * Axios interceptor to add the SDK version as a User-Agent header
256
- * */
257
- globalAxios.interceptors.request.use(function (config) {
258
- const version = require("../../package.json").version;
259
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
260
- return config;
261
- });
262
- /**
263
- * Axios response interceptor to modify response structure
264
- */
265
- globalAxios.interceptors.response.use(function (response) {
266
- return response.hasOwnProperty('success') ? response : response.data;
267
- }, function (error) {
268
- var _a;
269
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
270
- return Promise.reject(error.response.data);
271
- }
272
- return Promise.reject(error);
273
- });
274
254
  const localVarAxiosParamCreator = PersonFieldsApiAxiosParamCreator(configuration);
275
255
  return {
276
256
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -937,26 +934,6 @@ export const PersonsApiAxiosParamCreator = function (configuration) {
937
934
  * @export
938
935
  */
939
936
  export const PersonsApiFp = function (configuration) {
940
- /**
941
- * Axios interceptor to add the SDK version as a User-Agent header
942
- * */
943
- globalAxios.interceptors.request.use(function (config) {
944
- const version = require("../../package.json").version;
945
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
946
- return config;
947
- });
948
- /**
949
- * Axios response interceptor to modify response structure
950
- */
951
- globalAxios.interceptors.response.use(function (response) {
952
- return response.hasOwnProperty('success') ? response : response.data;
953
- }, function (error) {
954
- var _a;
955
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
956
- return Promise.reject(error.response.data);
957
- }
958
- return Promise.reject(error);
959
- });
960
937
  const localVarAxiosParamCreator = PersonsApiAxiosParamCreator(configuration);
961
938
  return {
962
939
  /**
@@ -21,9 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import globalAxios from 'axios';
24
- // URLSearchParams not necessarily used
25
- // @ts-ignore
26
- import { URL } from 'url';
27
24
  // Some imports not used depending on template conditions
28
25
  // @ts-ignore
29
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -388,26 +385,6 @@ export const PipelinesApiAxiosParamCreator = function (configuration) {
388
385
  * @export
389
386
  */
390
387
  export const PipelinesApiFp = function (configuration) {
391
- /**
392
- * Axios interceptor to add the SDK version as a User-Agent header
393
- * */
394
- globalAxios.interceptors.request.use(function (config) {
395
- const version = require("../../package.json").version;
396
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
397
- return config;
398
- });
399
- /**
400
- * Axios response interceptor to modify response structure
401
- */
402
- globalAxios.interceptors.response.use(function (response) {
403
- return response.hasOwnProperty('success') ? response : response.data;
404
- }, function (error) {
405
- var _a;
406
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
407
- return Promise.reject(error.response.data);
408
- }
409
- return Promise.reject(error);
410
- });
411
388
  const localVarAxiosParamCreator = PipelinesApiAxiosParamCreator(configuration);
412
389
  return {
413
390
  /**