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
package/CHANGELOG.md CHANGED
@@ -8,6 +8,9 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [22.3.1-rc.3] - 2024-01-08
12
+ - Add `lead_id` as an acceptable body parameter for the `POST /v1/callLogs` endpoint
13
+
11
14
  ## [22.3.1-rc.2] - 2023-12-22
12
15
 
13
16
  ## [22.3.1-rc.1] - 2023-12-22
@@ -592,10 +595,9 @@ structure
592
595
  * Fixed `GET /goal/:id/results` error handling in case when there are no existing stages connected to specified goal
593
596
  * Fixed typo in lead example response (`crrency` to `currency`)
594
597
 
595
- [Unreleased]: https://github.com/pipedrive/api-docs/compare/v22.3.1-rc.2...HEAD
596
- [22.3.1-rc.2]: https://github.com/pipedrive/api-docs/compare/v22.3.1-rc.1...v22.3.1-rc.2
597
- [22.3.1-rc.1]: https://github.com/pipedrive/api-docs/compare/v22.3.1-rc.0...v22.3.1-rc.1
598
- [22.3.1-rc.0]: https://github.com/pipedrive/api-docs/compare/v22.3.0...v22.3.1-rc.0
598
+ [Unreleased]: https://github.com/pipedrive/api-docs/compare/v22.3.1-rc.3...HEAD
599
+ [22.3.1-rc.3]: https://github.com/pipedrive/api-docs/compare/v22.4.0...v22.3.1-rc.3
600
+ [22.4.0]: https://github.com/pipedrive/api-docs/compare/v22.3.0...v22.4.0
599
601
  [22.3.0]: https://github.com/pipedrive/api-docs/compare/v22.2.0...v22.3.0
600
602
  [22.2.0]: https://github.com/pipedrive/api-docs/compare/v22.1.0...v22.2.0
601
603
  [22.1.0]: https://github.com/pipedrive/api-docs/compare/v22.0.2...v22.1.0
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -418,32 +415,12 @@ export const ActivitiesApiAxiosParamCreator = function (configuration?: Configur
418
415
  }
419
416
  };
420
417
 
418
+
421
419
  /**
422
420
  * ActivitiesApi - functional programming interface
423
421
  * @export
424
422
  */
425
423
  export const ActivitiesApiFp = function(configuration?: Configuration) {
426
-
427
- /**
428
- * Axios interceptor to add the SDK version as a User-Agent header
429
- * */
430
- globalAxios.interceptors.request.use(function (config) {
431
- const version = require("../../package.json").version;
432
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
433
- return config;
434
- });
435
-
436
- /**
437
- * Axios response interceptor to modify response structure
438
- */
439
- globalAxios.interceptors.response.use(function (response) {
440
- return response.hasOwnProperty('success') ? response : response.data;
441
- }, function (error) {
442
- if(error?.response?.data) {
443
- return Promise.reject(error.response.data);
444
- }
445
- return Promise.reject(error);
446
- });
447
424
  const localVarAxiosParamCreator = ActivitiesApiAxiosParamCreator(configuration)
448
425
  return {
449
426
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -72,32 +69,12 @@ export const ActivityFieldsApiAxiosParamCreator = function (configuration?: Conf
72
69
  }
73
70
  };
74
71
 
72
+
75
73
  /**
76
74
  * ActivityFieldsApi - functional programming interface
77
75
  * @export
78
76
  */
79
77
  export const ActivityFieldsApiFp = function(configuration?: Configuration) {
80
-
81
- /**
82
- * Axios interceptor to add the SDK version as a User-Agent header
83
- * */
84
- globalAxios.interceptors.request.use(function (config) {
85
- const version = require("../../package.json").version;
86
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
87
- return config;
88
- });
89
-
90
- /**
91
- * Axios response interceptor to modify response structure
92
- */
93
- globalAxios.interceptors.response.use(function (response) {
94
- return response.hasOwnProperty('success') ? response : response.data;
95
- }, function (error) {
96
- if(error?.response?.data) {
97
- return Promise.reject(error.response.data);
98
- }
99
- return Promise.reject(error);
100
- });
101
78
  const localVarAxiosParamCreator = ActivityFieldsApiAxiosParamCreator(configuration)
102
79
  return {
103
80
  /**
@@ -248,32 +248,12 @@ export const ActivityTypesApiAxiosParamCreator = function (configuration?: Confi
248
248
  }
249
249
  };
250
250
 
251
+
251
252
  /**
252
253
  * ActivityTypesApi - functional programming interface
253
254
  * @export
254
255
  */
255
256
  export const ActivityTypesApiFp = function(configuration?: Configuration) {
256
-
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
- /**
267
- * Axios response interceptor to modify response structure
268
- */
269
- globalAxios.interceptors.response.use(function (response) {
270
- return response.hasOwnProperty('success') ? response : response.data;
271
- }, function (error) {
272
- if(error?.response?.data) {
273
- return Promise.reject(error.response.data);
274
- }
275
- return Promise.reject(error);
276
- });
277
257
  const localVarAxiosParamCreator = ActivityTypesApiAxiosParamCreator(configuration)
278
258
  return {
279
259
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -72,32 +69,12 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
72
69
  }
73
70
  };
74
71
 
72
+
75
73
  /**
76
74
  * BillingApi - functional programming interface
77
75
  * @export
78
76
  */
79
77
  export const BillingApiFp = function(configuration?: Configuration) {
80
-
81
- /**
82
- * Axios interceptor to add the SDK version as a User-Agent header
83
- * */
84
- globalAxios.interceptors.request.use(function (config) {
85
- const version = require("../../package.json").version;
86
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
87
- return config;
88
- });
89
-
90
- /**
91
- * Axios response interceptor to modify response structure
92
- */
93
- globalAxios.interceptors.response.use(function (response) {
94
- return response.hasOwnProperty('success') ? response : response.data;
95
- }, function (error) {
96
- if(error?.response?.data) {
97
- return Promise.reject(error.response.data);
98
- }
99
- return Promise.reject(error);
100
- });
101
78
  const localVarAxiosParamCreator = BillingApiAxiosParamCreator(configuration)
102
79
  return {
103
80
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -275,32 +272,12 @@ export const CallLogsApiAxiosParamCreator = function (configuration?: Configurat
275
272
  }
276
273
  };
277
274
 
275
+
278
276
  /**
279
277
  * CallLogsApi - functional programming interface
280
278
  * @export
281
279
  */
282
280
  export const CallLogsApiFp = function(configuration?: Configuration) {
283
-
284
- /**
285
- * Axios interceptor to add the SDK version as a User-Agent header
286
- * */
287
- globalAxios.interceptors.request.use(function (config) {
288
- const version = require("../../package.json").version;
289
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
290
- return config;
291
- });
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
- if(error?.response?.data) {
300
- return Promise.reject(error.response.data);
301
- }
302
- return Promise.reject(error);
303
- });
304
281
  const localVarAxiosParamCreator = CallLogsApiAxiosParamCreator(configuration)
305
282
  return {
306
283
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -221,32 +218,12 @@ export const ChannelsApiAxiosParamCreator = function (configuration?: Configurat
221
218
  }
222
219
  };
223
220
 
221
+
224
222
  /**
225
223
  * ChannelsApi - functional programming interface
226
224
  * @export
227
225
  */
228
226
  export const ChannelsApiFp = function(configuration?: Configuration) {
229
-
230
- /**
231
- * Axios interceptor to add the SDK version as a User-Agent header
232
- * */
233
- globalAxios.interceptors.request.use(function (config) {
234
- const version = require("../../package.json").version;
235
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
236
- return config;
237
- });
238
-
239
- /**
240
- * Axios response interceptor to modify response structure
241
- */
242
- globalAxios.interceptors.response.use(function (response) {
243
- return response.hasOwnProperty('success') ? response : response.data;
244
- }, function (error) {
245
- if(error?.response?.data) {
246
- return Promise.reject(error.response.data);
247
- }
248
- return Promise.reject(error);
249
- });
250
227
  const localVarAxiosParamCreator = ChannelsApiAxiosParamCreator(configuration)
251
228
  return {
252
229
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -77,32 +74,12 @@ export const CurrenciesApiAxiosParamCreator = function (configuration?: Configur
77
74
  }
78
75
  };
79
76
 
77
+
80
78
  /**
81
79
  * CurrenciesApi - functional programming interface
82
80
  * @export
83
81
  */
84
82
  export const CurrenciesApiFp = function(configuration?: Configuration) {
85
-
86
- /**
87
- * Axios interceptor to add the SDK version as a User-Agent header
88
- * */
89
- globalAxios.interceptors.request.use(function (config) {
90
- const version = require("../../package.json").version;
91
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
92
- return config;
93
- });
94
-
95
- /**
96
- * Axios response interceptor to modify response structure
97
- */
98
- globalAxios.interceptors.response.use(function (response) {
99
- return response.hasOwnProperty('success') ? response : response.data;
100
- }, function (error) {
101
- if(error?.response?.data) {
102
- return Promise.reject(error.response.data);
103
- }
104
- return Promise.reject(error);
105
- });
106
83
  const localVarAxiosParamCreator = CurrenciesApiAxiosParamCreator(configuration)
107
84
  return {
108
85
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -304,32 +301,12 @@ export const DealFieldsApiAxiosParamCreator = function (configuration?: Configur
304
301
  }
305
302
  };
306
303
 
304
+
307
305
  /**
308
306
  * DealFieldsApi - functional programming interface
309
307
  * @export
310
308
  */
311
309
  export const DealFieldsApiFp = function(configuration?: Configuration) {
312
-
313
- /**
314
- * Axios interceptor to add the SDK version as a User-Agent header
315
- * */
316
- globalAxios.interceptors.request.use(function (config) {
317
- const version = require("../../package.json").version;
318
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
319
- return config;
320
- });
321
-
322
- /**
323
- * Axios response interceptor to modify response structure
324
- */
325
- globalAxios.interceptors.response.use(function (response) {
326
- return response.hasOwnProperty('success') ? response : response.data;
327
- }, function (error) {
328
- if(error?.response?.data) {
329
- return Promise.reject(error.response.data);
330
- }
331
- return Promise.reject(error);
332
- });
333
310
  const localVarAxiosParamCreator = DealFieldsApiAxiosParamCreator(configuration)
334
311
  return {
335
312
  /**
package/api/deals-api.ts CHANGED
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -1571,32 +1568,12 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
1571
1568
  }
1572
1569
  };
1573
1570
 
1571
+
1574
1572
  /**
1575
1573
  * DealsApi - functional programming interface
1576
1574
  * @export
1577
1575
  */
1578
1576
  export const DealsApiFp = function(configuration?: Configuration) {
1579
-
1580
- /**
1581
- * Axios interceptor to add the SDK version as a User-Agent header
1582
- * */
1583
- globalAxios.interceptors.request.use(function (config) {
1584
- const version = require("../../package.json").version;
1585
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
1586
- return config;
1587
- });
1588
-
1589
- /**
1590
- * Axios response interceptor to modify response structure
1591
- */
1592
- globalAxios.interceptors.response.use(function (response) {
1593
- return response.hasOwnProperty('success') ? response : response.data;
1594
- }, function (error) {
1595
- if(error?.response?.data) {
1596
- return Promise.reject(error.response.data);
1597
- }
1598
- return Promise.reject(error);
1599
- });
1600
1577
  const localVarAxiosParamCreator = DealsApiAxiosParamCreator(configuration)
1601
1578
  return {
1602
1579
  /**
package/api/files-api.ts CHANGED
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -500,32 +497,12 @@ export const FilesApiAxiosParamCreator = function (configuration?: Configuration
500
497
  }
501
498
  };
502
499
 
500
+
503
501
  /**
504
502
  * FilesApi - functional programming interface
505
503
  * @export
506
504
  */
507
505
  export const FilesApiFp = function(configuration?: Configuration) {
508
-
509
- /**
510
- * Axios interceptor to add the SDK version as a User-Agent header
511
- * */
512
- globalAxios.interceptors.request.use(function (config) {
513
- const version = require("../../package.json").version;
514
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
515
- return config;
516
- });
517
-
518
- /**
519
- * Axios response interceptor to modify response structure
520
- */
521
- globalAxios.interceptors.response.use(function (response) {
522
- return response.hasOwnProperty('success') ? response : response.data;
523
- }, function (error) {
524
- if(error?.response?.data) {
525
- return Promise.reject(error.response.data);
526
- }
527
- return Promise.reject(error);
528
- });
529
506
  const localVarAxiosParamCreator = FilesApiAxiosParamCreator(configuration)
530
507
  return {
531
508
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -338,32 +335,12 @@ export const FiltersApiAxiosParamCreator = function (configuration?: Configurati
338
335
  }
339
336
  };
340
337
 
338
+
341
339
  /**
342
340
  * FiltersApi - functional programming interface
343
341
  * @export
344
342
  */
345
343
  export const FiltersApiFp = function(configuration?: Configuration) {
346
-
347
- /**
348
- * Axios interceptor to add the SDK version as a User-Agent header
349
- * */
350
- globalAxios.interceptors.request.use(function (config) {
351
- const version = require("../../package.json").version;
352
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
353
- return config;
354
- });
355
-
356
- /**
357
- * Axios response interceptor to modify response structure
358
- */
359
- globalAxios.interceptors.response.use(function (response) {
360
- return response.hasOwnProperty('success') ? response : response.data;
361
- }, function (error) {
362
- if(error?.response?.data) {
363
- return Promise.reject(error.response.data);
364
- }
365
- return Promise.reject(error);
366
- });
367
344
  const localVarAxiosParamCreator = FiltersApiAxiosParamCreator(configuration)
368
345
  return {
369
346
  /**
package/api/goals-api.ts CHANGED
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -337,32 +334,12 @@ export const GoalsApiAxiosParamCreator = function (configuration?: Configuration
337
334
  }
338
335
  };
339
336
 
337
+
340
338
  /**
341
339
  * GoalsApi - functional programming interface
342
340
  * @export
343
341
  */
344
342
  export const GoalsApiFp = function(configuration?: Configuration) {
345
-
346
- /**
347
- * Axios interceptor to add the SDK version as a User-Agent header
348
- * */
349
- globalAxios.interceptors.request.use(function (config) {
350
- const version = require("../../package.json").version;
351
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
352
- return config;
353
- });
354
-
355
- /**
356
- * Axios response interceptor to modify response structure
357
- */
358
- globalAxios.interceptors.response.use(function (response) {
359
- return response.hasOwnProperty('success') ? response : response.data;
360
- }, function (error) {
361
- if(error?.response?.data) {
362
- return Promise.reject(error.response.data);
363
- }
364
- return Promise.reject(error);
365
- });
366
343
  const localVarAxiosParamCreator = GoalsApiAxiosParamCreator(configuration)
367
344
  return {
368
345
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -194,32 +191,12 @@ export const ItemSearchApiAxiosParamCreator = function (configuration?: Configur
194
191
  }
195
192
  };
196
193
 
194
+
197
195
  /**
198
196
  * ItemSearchApi - functional programming interface
199
197
  * @export
200
198
  */
201
199
  export const ItemSearchApiFp = function(configuration?: Configuration) {
202
-
203
- /**
204
- * Axios interceptor to add the SDK version as a User-Agent header
205
- * */
206
- globalAxios.interceptors.request.use(function (config) {
207
- const version = require("../../package.json").version;
208
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
209
- return config;
210
- });
211
-
212
- /**
213
- * Axios response interceptor to modify response structure
214
- */
215
- globalAxios.interceptors.response.use(function (response) {
216
- return response.hasOwnProperty('success') ? response : response.data;
217
- }, function (error) {
218
- if(error?.response?.data) {
219
- return Promise.reject(error.response.data);
220
- }
221
- return Promise.reject(error);
222
- });
223
200
  const localVarAxiosParamCreator = ItemSearchApiAxiosParamCreator(configuration)
224
201
  return {
225
202
  /**
@@ -206,32 +206,12 @@ export const LeadLabelsApiAxiosParamCreator = function (configuration?: Configur
206
206
  }
207
207
  };
208
208
 
209
+
209
210
  /**
210
211
  * LeadLabelsApi - functional programming interface
211
212
  * @export
212
213
  */
213
214
  export const LeadLabelsApiFp = function(configuration?: Configuration) {
214
-
215
- /**
216
- * Axios interceptor to add the SDK version as a User-Agent header
217
- * */
218
- globalAxios.interceptors.request.use(function (config) {
219
- const version = require("../../package.json").version;
220
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
221
- return config;
222
- });
223
-
224
- /**
225
- * Axios response interceptor to modify response structure
226
- */
227
- globalAxios.interceptors.response.use(function (response) {
228
- return response.hasOwnProperty('success') ? response : response.data;
229
- }, function (error) {
230
- if(error?.response?.data) {
231
- return Promise.reject(error.response.data);
232
- }
233
- return Promise.reject(error);
234
- });
235
215
  const localVarAxiosParamCreator = LeadLabelsApiAxiosParamCreator(configuration)
236
216
  return {
237
217
  /**
@@ -16,9 +16,6 @@
16
16
  import type { Configuration } from '../configuration';
17
17
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
- // URLSearchParams not necessarily used
20
- // @ts-ignore
21
- import { URL, URLSearchParams } from 'url';
22
19
  // Some imports not used depending on template conditions
23
20
  // @ts-ignore
24
21
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
@@ -72,32 +69,12 @@ export const LeadSourcesApiAxiosParamCreator = function (configuration?: Configu
72
69
  }
73
70
  };
74
71
 
72
+
75
73
  /**
76
74
  * LeadSourcesApi - functional programming interface
77
75
  * @export
78
76
  */
79
77
  export const LeadSourcesApiFp = function(configuration?: Configuration) {
80
-
81
- /**
82
- * Axios interceptor to add the SDK version as a User-Agent header
83
- * */
84
- globalAxios.interceptors.request.use(function (config) {
85
- const version = require("../../package.json").version;
86
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
87
- return config;
88
- });
89
-
90
- /**
91
- * Axios response interceptor to modify response structure
92
- */
93
- globalAxios.interceptors.response.use(function (response) {
94
- return response.hasOwnProperty('success') ? response : response.data;
95
- }, function (error) {
96
- if(error?.response?.data) {
97
- return Promise.reject(error.response.data);
98
- }
99
- return Promise.reject(error);
100
- });
101
78
  const localVarAxiosParamCreator = LeadSourcesApiAxiosParamCreator(configuration)
102
79
  return {
103
80
  /**