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

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 (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/api/leads-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';
@@ -414,32 +411,12 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
414
411
  }
415
412
  };
416
413
 
414
+
417
415
  /**
418
416
  * LeadsApi - functional programming interface
419
417
  * @export
420
418
  */
421
419
  export const LeadsApiFp = function(configuration?: Configuration) {
422
-
423
- /**
424
- * Axios interceptor to add the SDK version as a User-Agent header
425
- * */
426
- globalAxios.interceptors.request.use(function (config) {
427
- const version = require("../../package.json").version;
428
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
429
- return config;
430
- });
431
-
432
- /**
433
- * Axios response interceptor to modify response structure
434
- */
435
- globalAxios.interceptors.response.use(function (response) {
436
- return response.hasOwnProperty('success') ? response : response.data;
437
- }, function (error) {
438
- if(error?.response?.data) {
439
- return Promise.reject(error.response.data);
440
- }
441
- return Promise.reject(error);
442
- });
443
420
  const localVarAxiosParamCreator = LeadsApiAxiosParamCreator(configuration)
444
421
  return {
445
422
  /**
@@ -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';
@@ -410,32 +407,12 @@ export const LegacyTeamsApiAxiosParamCreator = function (configuration?: Configu
410
407
  }
411
408
  };
412
409
 
410
+
413
411
  /**
414
412
  * LegacyTeamsApi - functional programming interface
415
413
  * @export
416
414
  */
417
415
  export const LegacyTeamsApiFp = function(configuration?: Configuration) {
418
-
419
- /**
420
- * Axios interceptor to add the SDK version as a User-Agent header
421
- * */
422
- globalAxios.interceptors.request.use(function (config) {
423
- const version = require("../../package.json").version;
424
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
425
- return config;
426
- });
427
-
428
- /**
429
- * Axios response interceptor to modify response structure
430
- */
431
- globalAxios.interceptors.response.use(function (response) {
432
- return response.hasOwnProperty('success') ? response : response.data;
433
- }, function (error) {
434
- if(error?.response?.data) {
435
- return Promise.reject(error.response.data);
436
- }
437
- return Promise.reject(error);
438
- });
439
416
  const localVarAxiosParamCreator = LegacyTeamsApiAxiosParamCreator(configuration)
440
417
  return {
441
418
  /**
@@ -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 MailboxApiAxiosParamCreator = function (configuration?: Configurati
338
335
  }
339
336
  };
340
337
 
338
+
341
339
  /**
342
340
  * MailboxApi - functional programming interface
343
341
  * @export
344
342
  */
345
343
  export const MailboxApiFp = 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 = MailboxApiAxiosParamCreator(configuration)
368
345
  return {
369
346
  /**
@@ -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 NoteFieldsApiAxiosParamCreator = function (configuration?: Configur
72
69
  }
73
70
  };
74
71
 
72
+
75
73
  /**
76
74
  * NoteFieldsApi - functional programming interface
77
75
  * @export
78
76
  */
79
77
  export const NoteFieldsApiFp = 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 = NoteFieldsApiAxiosParamCreator(configuration)
102
79
  return {
103
80
  /**
package/api/notes-api.ts CHANGED
@@ -562,32 +562,12 @@ export const NotesApiAxiosParamCreator = function (configuration?: Configuration
562
562
  }
563
563
  };
564
564
 
565
+
565
566
  /**
566
567
  * NotesApi - functional programming interface
567
568
  * @export
568
569
  */
569
570
  export const NotesApiFp = function(configuration?: Configuration) {
570
-
571
- /**
572
- * Axios interceptor to add the SDK version as a User-Agent header
573
- * */
574
- globalAxios.interceptors.request.use(function (config) {
575
- const version = require("../../package.json").version;
576
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
577
- return config;
578
- });
579
-
580
- /**
581
- * Axios response interceptor to modify response structure
582
- */
583
- globalAxios.interceptors.response.use(function (response) {
584
- return response.hasOwnProperty('success') ? response : response.data;
585
- }, function (error) {
586
- if(error?.response?.data) {
587
- return Promise.reject(error.response.data);
588
- }
589
- return Promise.reject(error);
590
- });
591
571
  const localVarAxiosParamCreator = NotesApiAxiosParamCreator(configuration)
592
572
  return {
593
573
  /**
@@ -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 OrganizationFieldsApiAxiosParamCreator = function (configuration?:
304
301
  }
305
302
  };
306
303
 
304
+
307
305
  /**
308
306
  * OrganizationFieldsApi - functional programming interface
309
307
  * @export
310
308
  */
311
309
  export const OrganizationFieldsApiFp = 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 = OrganizationFieldsApiAxiosParamCreator(configuration)
334
311
  return {
335
312
  /**
@@ -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';
@@ -264,32 +261,12 @@ export const OrganizationRelationshipsApiAxiosParamCreator = function (configura
264
261
  }
265
262
  };
266
263
 
264
+
267
265
  /**
268
266
  * OrganizationRelationshipsApi - functional programming interface
269
267
  * @export
270
268
  */
271
269
  export const OrganizationRelationshipsApiFp = function(configuration?: Configuration) {
272
-
273
- /**
274
- * Axios interceptor to add the SDK version as a User-Agent header
275
- * */
276
- globalAxios.interceptors.request.use(function (config) {
277
- const version = require("../../package.json").version;
278
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
279
- return config;
280
- });
281
-
282
- /**
283
- * Axios response interceptor to modify response structure
284
- */
285
- globalAxios.interceptors.response.use(function (response) {
286
- return response.hasOwnProperty('success') ? response : response.data;
287
- }, function (error) {
288
- if(error?.response?.data) {
289
- return Promise.reject(error.response.data);
290
- }
291
- return Promise.reject(error);
292
- });
293
270
  const localVarAxiosParamCreator = OrganizationRelationshipsApiAxiosParamCreator(configuration)
294
271
  return {
295
272
  /**
@@ -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';
@@ -1054,32 +1051,12 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
1054
1051
  }
1055
1052
  };
1056
1053
 
1054
+
1057
1055
  /**
1058
1056
  * OrganizationsApi - functional programming interface
1059
1057
  * @export
1060
1058
  */
1061
1059
  export const OrganizationsApiFp = function(configuration?: Configuration) {
1062
-
1063
- /**
1064
- * Axios interceptor to add the SDK version as a User-Agent header
1065
- * */
1066
- globalAxios.interceptors.request.use(function (config) {
1067
- const version = require("../../package.json").version;
1068
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
1069
- return config;
1070
- });
1071
-
1072
- /**
1073
- * Axios response interceptor to modify response structure
1074
- */
1075
- globalAxios.interceptors.response.use(function (response) {
1076
- return response.hasOwnProperty('success') ? response : response.data;
1077
- }, function (error) {
1078
- if(error?.response?.data) {
1079
- return Promise.reject(error.response.data);
1080
- }
1081
- return Promise.reject(error);
1082
- });
1083
1060
  const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration)
1084
1061
  return {
1085
1062
  /**
@@ -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';
@@ -173,32 +170,12 @@ export const PermissionSetsApiAxiosParamCreator = function (configuration?: Conf
173
170
  }
174
171
  };
175
172
 
173
+
176
174
  /**
177
175
  * PermissionSetsApi - functional programming interface
178
176
  * @export
179
177
  */
180
178
  export const PermissionSetsApiFp = function(configuration?: Configuration) {
181
-
182
- /**
183
- * Axios interceptor to add the SDK version as a User-Agent header
184
- * */
185
- globalAxios.interceptors.request.use(function (config) {
186
- const version = require("../../package.json").version;
187
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
188
- return config;
189
- });
190
-
191
- /**
192
- * Axios response interceptor to modify response structure
193
- */
194
- globalAxios.interceptors.response.use(function (response) {
195
- return response.hasOwnProperty('success') ? response : response.data;
196
- }, function (error) {
197
- if(error?.response?.data) {
198
- return Promise.reject(error.response.data);
199
- }
200
- return Promise.reject(error);
201
- });
202
179
  const localVarAxiosParamCreator = PermissionSetsApiAxiosParamCreator(configuration)
203
180
  return {
204
181
  /**
@@ -301,32 +301,12 @@ export const PersonFieldsApiAxiosParamCreator = function (configuration?: Config
301
301
  }
302
302
  };
303
303
 
304
+
304
305
  /**
305
306
  * PersonFieldsApi - functional programming interface
306
307
  * @export
307
308
  */
308
309
  export const PersonFieldsApiFp = function(configuration?: Configuration) {
309
-
310
- /**
311
- * Axios interceptor to add the SDK version as a User-Agent header
312
- * */
313
- globalAxios.interceptors.request.use(function (config) {
314
- const version = require("../../package.json").version;
315
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
316
- return config;
317
- });
318
-
319
- /**
320
- * Axios response interceptor to modify response structure
321
- */
322
- globalAxios.interceptors.response.use(function (response) {
323
- return response.hasOwnProperty('success') ? response : response.data;
324
- }, function (error) {
325
- if(error?.response?.data) {
326
- return Promise.reject(error.response.data);
327
- }
328
- return Promise.reject(error);
329
- });
330
310
  const localVarAxiosParamCreator = PersonFieldsApiAxiosParamCreator(configuration)
331
311
  return {
332
312
  /**
@@ -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';
@@ -1172,32 +1169,12 @@ export const PersonsApiAxiosParamCreator = function (configuration?: Configurati
1172
1169
  }
1173
1170
  };
1174
1171
 
1172
+
1175
1173
  /**
1176
1174
  * PersonsApi - functional programming interface
1177
1175
  * @export
1178
1176
  */
1179
1177
  export const PersonsApiFp = function(configuration?: Configuration) {
1180
-
1181
- /**
1182
- * Axios interceptor to add the SDK version as a User-Agent header
1183
- * */
1184
- globalAxios.interceptors.request.use(function (config) {
1185
- const version = require("../../package.json").version;
1186
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
1187
- return config;
1188
- });
1189
-
1190
- /**
1191
- * Axios response interceptor to modify response structure
1192
- */
1193
- globalAxios.interceptors.response.use(function (response) {
1194
- return response.hasOwnProperty('success') ? response : response.data;
1195
- }, function (error) {
1196
- if(error?.response?.data) {
1197
- return Promise.reject(error.response.data);
1198
- }
1199
- return Promise.reject(error);
1200
- });
1201
1178
  const localVarAxiosParamCreator = PersonsApiAxiosParamCreator(configuration)
1202
1179
  return {
1203
1180
  /**
@@ -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';
@@ -472,32 +469,12 @@ export const PipelinesApiAxiosParamCreator = function (configuration?: Configura
472
469
  }
473
470
  };
474
471
 
472
+
475
473
  /**
476
474
  * PipelinesApi - functional programming interface
477
475
  * @export
478
476
  */
479
477
  export const PipelinesApiFp = function(configuration?: Configuration) {
480
-
481
- /**
482
- * Axios interceptor to add the SDK version as a User-Agent header
483
- * */
484
- globalAxios.interceptors.request.use(function (config) {
485
- const version = require("../../package.json").version;
486
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
487
- return config;
488
- });
489
-
490
- /**
491
- * Axios response interceptor to modify response structure
492
- */
493
- globalAxios.interceptors.response.use(function (response) {
494
- return response.hasOwnProperty('success') ? response : response.data;
495
- }, function (error) {
496
- if(error?.response?.data) {
497
- return Promise.reject(error.response.data);
498
- }
499
- return Promise.reject(error);
500
- });
501
478
  const localVarAxiosParamCreator = PipelinesApiAxiosParamCreator(configuration)
502
479
  return {
503
480
  /**
@@ -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';
@@ -306,32 +303,12 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration?: Confi
306
303
  }
307
304
  };
308
305
 
306
+
309
307
  /**
310
308
  * ProductFieldsApi - functional programming interface
311
309
  * @export
312
310
  */
313
311
  export const ProductFieldsApiFp = function(configuration?: Configuration) {
314
-
315
- /**
316
- * Axios interceptor to add the SDK version as a User-Agent header
317
- * */
318
- globalAxios.interceptors.request.use(function (config) {
319
- const version = require("../../package.json").version;
320
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
321
- return config;
322
- });
323
-
324
- /**
325
- * Axios response interceptor to modify response structure
326
- */
327
- globalAxios.interceptors.response.use(function (response) {
328
- return response.hasOwnProperty('success') ? response : response.data;
329
- }, function (error) {
330
- if(error?.response?.data) {
331
- return Promise.reject(error.response.data);
332
- }
333
- return Promise.reject(error);
334
- });
335
312
  const localVarAxiosParamCreator = ProductFieldsApiAxiosParamCreator(configuration)
336
313
  return {
337
314
  /**
@@ -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';
@@ -664,32 +661,12 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
664
661
  }
665
662
  };
666
663
 
664
+
667
665
  /**
668
666
  * ProductsApi - functional programming interface
669
667
  * @export
670
668
  */
671
669
  export const ProductsApiFp = function(configuration?: Configuration) {
672
-
673
- /**
674
- * Axios interceptor to add the SDK version as a User-Agent header
675
- * */
676
- globalAxios.interceptors.request.use(function (config) {
677
- const version = require("../../package.json").version;
678
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
679
- return config;
680
- });
681
-
682
- /**
683
- * Axios response interceptor to modify response structure
684
- */
685
- globalAxios.interceptors.response.use(function (response) {
686
- return response.hasOwnProperty('success') ? response : response.data;
687
- }, function (error) {
688
- if(error?.response?.data) {
689
- return Promise.reject(error.response.data);
690
- }
691
- return Promise.reject(error);
692
- });
693
670
  const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)
694
671
  return {
695
672
  /**
@@ -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';
@@ -211,32 +208,12 @@ export const ProjectTemplatesApiAxiosParamCreator = function (configuration?: Co
211
208
  }
212
209
  };
213
210
 
211
+
214
212
  /**
215
213
  * ProjectTemplatesApi - functional programming interface
216
214
  * @export
217
215
  */
218
216
  export const ProjectTemplatesApiFp = function(configuration?: Configuration) {
219
-
220
- /**
221
- * Axios interceptor to add the SDK version as a User-Agent header
222
- * */
223
- globalAxios.interceptors.request.use(function (config) {
224
- const version = require("../../package.json").version;
225
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
226
- return config;
227
- });
228
-
229
- /**
230
- * Axios response interceptor to modify response structure
231
- */
232
- globalAxios.interceptors.response.use(function (response) {
233
- return response.hasOwnProperty('success') ? response : response.data;
234
- }, function (error) {
235
- if(error?.response?.data) {
236
- return Promise.reject(error.response.data);
237
- }
238
- return Promise.reject(error);
239
- });
240
217
  const localVarAxiosParamCreator = ProjectTemplatesApiAxiosParamCreator(configuration)
241
218
  return {
242
219
  /**