pipedrive 22.3.1-rc.2 → 22.3.1-rc.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/CHANGELOG.md +17 -4
  2. package/README.md +29 -24
  3. package/api/activities-api.ts +1 -24
  4. package/api/activity-fields-api.ts +1 -24
  5. package/api/activity-types-api.ts +1 -21
  6. package/api/billing-api.ts +1 -24
  7. package/api/call-logs-api.ts +1 -24
  8. package/api/channels-api.ts +1 -24
  9. package/api/currencies-api.ts +1 -24
  10. package/api/deal-fields-api.ts +1 -24
  11. package/api/deals-api.ts +1 -24
  12. package/api/files-api.ts +1 -24
  13. package/api/filters-api.ts +1 -24
  14. package/api/goals-api.ts +1 -24
  15. package/api/item-search-api.ts +1 -24
  16. package/api/lead-labels-api.ts +1 -21
  17. package/api/lead-sources-api.ts +1 -24
  18. package/api/leads-api.ts +1 -24
  19. package/api/legacy-teams-api.ts +1 -24
  20. package/api/mailbox-api.ts +1 -24
  21. package/api/note-fields-api.ts +1 -24
  22. package/api/notes-api.ts +1 -21
  23. package/api/organization-fields-api.ts +1 -24
  24. package/api/organization-relationships-api.ts +1 -24
  25. package/api/organizations-api.ts +1 -24
  26. package/api/permission-sets-api.ts +1 -24
  27. package/api/person-fields-api.ts +1 -21
  28. package/api/persons-api.ts +1 -24
  29. package/api/pipelines-api.ts +1 -24
  30. package/api/product-fields-api.ts +1 -24
  31. package/api/products-api.ts +1 -24
  32. package/api/project-templates-api.ts +1 -24
  33. package/api/projects-api.ts +1 -24
  34. package/api/recents-api.ts +1 -24
  35. package/api/roles-api.ts +1 -24
  36. package/api/stages-api.ts +1 -24
  37. package/api/subscriptions-api.ts +1 -24
  38. package/api/tasks-api.ts +1 -24
  39. package/api/user-connections-api.ts +1 -24
  40. package/api/user-settings-api.ts +1 -24
  41. package/api/users-api.ts +1 -24
  42. package/api/webhooks-api.ts +1 -21
  43. package/base.ts +31 -0
  44. package/common.ts +0 -1
  45. package/configuration.ts +11 -2
  46. package/dist/api/activities-api.js +7 -30
  47. package/dist/api/activity-fields-api.js +1 -24
  48. package/dist/api/activity-types-api.js +0 -20
  49. package/dist/api/billing-api.js +1 -24
  50. package/dist/api/call-logs-api.js +5 -28
  51. package/dist/api/channels-api.js +4 -27
  52. package/dist/api/currencies-api.js +1 -24
  53. package/dist/api/deal-fields-api.js +6 -29
  54. package/dist/api/deals-api.js +28 -51
  55. package/dist/api/files-api.js +11 -34
  56. package/dist/api/filters-api.js +7 -30
  57. package/dist/api/goals-api.js +5 -28
  58. package/dist/api/item-search-api.js +2 -25
  59. package/dist/api/lead-labels-api.js +0 -20
  60. package/dist/api/lead-sources-api.js +1 -24
  61. package/dist/api/leads-api.js +7 -30
  62. package/dist/api/legacy-teams-api.js +8 -31
  63. package/dist/api/mailbox-api.js +7 -30
  64. package/dist/api/note-fields-api.js +1 -24
  65. package/dist/api/notes-api.js +0 -20
  66. package/dist/api/organization-fields-api.js +6 -29
  67. package/dist/api/organization-relationships-api.js +5 -28
  68. package/dist/api/organizations-api.js +19 -42
  69. package/dist/api/permission-sets-api.js +3 -26
  70. package/dist/api/person-fields-api.js +0 -20
  71. package/dist/api/persons-api.js +21 -44
  72. package/dist/api/pipelines-api.js +8 -31
  73. package/dist/api/product-fields-api.js +6 -29
  74. package/dist/api/products-api.js +12 -35
  75. package/dist/api/project-templates-api.js +4 -27
  76. package/dist/api/projects-api.js +14 -37
  77. package/dist/api/recents-api.js +1 -24
  78. package/dist/api/roles-api.js +12 -35
  79. package/dist/api/stages-api.js +7 -30
  80. package/dist/api/subscriptions-api.js +9 -32
  81. package/dist/api/tasks-api.js +5 -28
  82. package/dist/api/user-connections-api.js +1 -24
  83. package/dist/api/user-settings-api.js +1 -24
  84. package/dist/api/users-api.js +10 -33
  85. package/dist/api/webhooks-api.js +0 -20
  86. package/dist/base.js +26 -0
  87. package/dist/common.d.ts +0 -1
  88. package/dist/common.js +1 -2
  89. package/dist/configuration.d.ts +1 -0
  90. package/dist/configuration.js +8 -2
  91. package/dist/esm/api/activities-api.js +0 -23
  92. package/dist/esm/api/activity-fields-api.js +0 -23
  93. package/dist/esm/api/activity-types-api.js +0 -20
  94. package/dist/esm/api/billing-api.js +0 -23
  95. package/dist/esm/api/call-logs-api.js +0 -23
  96. package/dist/esm/api/channels-api.js +0 -23
  97. package/dist/esm/api/currencies-api.js +0 -23
  98. package/dist/esm/api/deal-fields-api.js +0 -23
  99. package/dist/esm/api/deals-api.js +0 -23
  100. package/dist/esm/api/files-api.js +0 -23
  101. package/dist/esm/api/filters-api.js +0 -23
  102. package/dist/esm/api/goals-api.js +0 -23
  103. package/dist/esm/api/item-search-api.js +0 -23
  104. package/dist/esm/api/lead-labels-api.js +0 -20
  105. package/dist/esm/api/lead-sources-api.js +0 -23
  106. package/dist/esm/api/leads-api.js +0 -23
  107. package/dist/esm/api/legacy-teams-api.js +0 -23
  108. package/dist/esm/api/mailbox-api.js +0 -23
  109. package/dist/esm/api/note-fields-api.js +0 -23
  110. package/dist/esm/api/notes-api.js +0 -20
  111. package/dist/esm/api/organization-fields-api.js +0 -23
  112. package/dist/esm/api/organization-relationships-api.js +0 -23
  113. package/dist/esm/api/organizations-api.js +0 -23
  114. package/dist/esm/api/permission-sets-api.js +0 -23
  115. package/dist/esm/api/person-fields-api.js +0 -20
  116. package/dist/esm/api/persons-api.js +0 -23
  117. package/dist/esm/api/pipelines-api.js +0 -23
  118. package/dist/esm/api/product-fields-api.js +0 -23
  119. package/dist/esm/api/products-api.js +0 -23
  120. package/dist/esm/api/project-templates-api.js +0 -23
  121. package/dist/esm/api/projects-api.js +0 -23
  122. package/dist/esm/api/recents-api.js +0 -23
  123. package/dist/esm/api/roles-api.js +0 -23
  124. package/dist/esm/api/stages-api.js +0 -23
  125. package/dist/esm/api/subscriptions-api.js +0 -23
  126. package/dist/esm/api/tasks-api.js +0 -23
  127. package/dist/esm/api/user-connections-api.js +0 -23
  128. package/dist/esm/api/user-settings-api.js +0 -23
  129. package/dist/esm/api/users-api.js +0 -23
  130. package/dist/esm/api/webhooks-api.js +0 -20
  131. package/dist/esm/base.js +26 -0
  132. package/dist/esm/common.d.ts +0 -1
  133. package/dist/esm/common.js +0 -1
  134. package/dist/esm/configuration.d.ts +1 -0
  135. package/dist/esm/configuration.js +8 -2
  136. package/docs/AddWebhookRequest.md +1 -1
  137. package/docs/BasicDeal.md +3 -0
  138. package/docs/CallLogObject.md +2 -1
  139. package/docs/DealParticipantsChangelog.md +12 -0
  140. package/docs/DealsApi.md +74 -8
  141. package/docs/FiltersApi.md +4 -1
  142. package/docs/GetDeal.md +1 -1
  143. package/docs/GetDealRelatedObjects.md +11 -0
  144. package/docs/GetDealsRelatedObjects.md +3 -3
  145. package/docs/ItemSearchApi.md +2 -2
  146. package/docs/LeadsApi.md +4 -1
  147. package/docs/MailboxApi.md +2 -2
  148. package/docs/MeetingsApi.md +118 -0
  149. package/docs/NewDeal.md +3 -0
  150. package/docs/OrganizationsApi.md +10 -4
  151. package/docs/ParticipantsChangelog.md +11 -0
  152. package/docs/ParticipantsChangelogItem.md +12 -0
  153. package/docs/PersonsApi.md +14 -5
  154. package/docs/PostDealParticipants.md +1 -1
  155. package/docs/PostDealParticipantsRelatedObjects.md +10 -0
  156. package/docs/ProductsApi.md +2 -2
  157. package/docs/RecentsApi.md +2 -2
  158. package/docs/ResponseCallLogObject.md +2 -1
  159. package/docs/UpdateDealRequest.md +3 -0
  160. package/docs/UserProviderLinkCreateRequest.md +12 -0
  161. package/docs/UserProviderLinkErrorResponse.md +10 -0
  162. package/docs/UserProviderLinkSuccessResponse.md +10 -0
  163. package/docs/UserProviderLinkSuccessResponseData.md +9 -0
  164. package/docs/UsersApi.md +2 -2
  165. package/migration.md +309 -0
  166. package/package.json +3 -3
  167. package/src/api/MeetingsApi.js +181 -0
  168. package/src/model/GetDealRelatedObjects.js +101 -0
  169. package/src/model/PostDealParticipantsRelatedObjects.js +90 -0
  170. package/src/model/UserProviderLinkCreateRequest.js +120 -0
  171. package/src/model/UserProviderLinkErrorResponse.js +90 -0
  172. package/src/model/UserProviderLinkSuccessResponse.js +90 -0
  173. package/src/model/UserProviderLinkSuccessResponseData.js +79 -0
  174. package/test/functional/access-token.test.js +5 -5
  175. package/test/functional/authorisation.test.js +5 -8
@@ -24,9 +24,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ProductFieldsApi = exports.ProductFieldsApiFactory = exports.ProductFieldsApiFp = exports.ProductFieldsApiAxiosParamCreator = void 0;
26
26
  const axios_1 = require("axios");
27
- // URLSearchParams not necessarily used
28
- // @ts-ignore
29
- const url_1 = require("url");
30
27
  // Some imports not used depending on template conditions
31
28
  // @ts-ignore
32
29
  const common_1 = require("../common");
@@ -48,7 +45,7 @@ const ProductFieldsApiAxiosParamCreator = function (configuration) {
48
45
  addProductField: (ProductFieldAllOf) => __awaiter(this, void 0, void 0, function* () {
49
46
  const localVarPath = `/productFields`;
50
47
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
48
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
52
49
  let baseOptions;
53
50
  if (configuration) {
54
51
  baseOptions = configuration.baseOptions;
@@ -84,7 +81,7 @@ const ProductFieldsApiAxiosParamCreator = function (configuration) {
84
81
  const localVarPath = `/productFields/{id}`
85
82
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
86
83
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
84
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
88
85
  let baseOptions;
89
86
  if (configuration) {
90
87
  baseOptions = configuration.baseOptions;
@@ -117,7 +114,7 @@ const ProductFieldsApiAxiosParamCreator = function (configuration) {
117
114
  (0, common_1.assertParamExists)('deleteProductFields', 'ids', ids);
118
115
  const localVarPath = `/productFields`;
119
116
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
120
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
117
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
121
118
  let baseOptions;
122
119
  if (configuration) {
123
120
  baseOptions = configuration.baseOptions;
@@ -154,7 +151,7 @@ const ProductFieldsApiAxiosParamCreator = function (configuration) {
154
151
  const localVarPath = `/productFields/{id}`
155
152
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
156
153
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
154
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
158
155
  let baseOptions;
159
156
  if (configuration) {
160
157
  baseOptions = configuration.baseOptions;
@@ -186,7 +183,7 @@ const ProductFieldsApiAxiosParamCreator = function (configuration) {
186
183
  getProductFields: (start, limit) => __awaiter(this, void 0, void 0, function* () {
187
184
  const localVarPath = `/productFields`;
188
185
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
189
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
186
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
190
187
  let baseOptions;
191
188
  if (configuration) {
192
189
  baseOptions = configuration.baseOptions;
@@ -227,7 +224,7 @@ const ProductFieldsApiAxiosParamCreator = function (configuration) {
227
224
  const localVarPath = `/productFields/{id}`
228
225
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
229
226
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
230
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
227
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
231
228
  let baseOptions;
232
229
  if (configuration) {
233
230
  baseOptions = configuration.baseOptions;
@@ -258,26 +255,6 @@ exports.ProductFieldsApiAxiosParamCreator = ProductFieldsApiAxiosParamCreator;
258
255
  * @export
259
256
  */
260
257
  const ProductFieldsApiFp = function (configuration) {
261
- /**
262
- * Axios interceptor to add the SDK version as a User-Agent header
263
- * */
264
- axios_1.default.interceptors.request.use(function (config) {
265
- const version = require("../../package.json").version;
266
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
267
- return config;
268
- });
269
- /**
270
- * Axios response interceptor to modify response structure
271
- */
272
- axios_1.default.interceptors.response.use(function (response) {
273
- return response.hasOwnProperty('success') ? response : response.data;
274
- }, function (error) {
275
- var _a;
276
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
277
- return Promise.reject(error.response.data);
278
- }
279
- return Promise.reject(error);
280
- });
281
258
  const localVarAxiosParamCreator = (0, exports.ProductFieldsApiAxiosParamCreator)(configuration);
282
259
  return {
283
260
  /**
@@ -24,9 +24,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = void 0;
26
26
  const axios_1 = require("axios");
27
- // URLSearchParams not necessarily used
28
- // @ts-ignore
29
- const url_1 = require("url");
30
27
  // Some imports not used depending on template conditions
31
28
  // @ts-ignore
32
29
  const common_1 = require("../common");
@@ -48,7 +45,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
48
45
  addProduct: (AddProductRequest) => __awaiter(this, void 0, void 0, function* () {
49
46
  const localVarPath = `/products`;
50
47
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
48
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
52
49
  let baseOptions;
53
50
  if (configuration) {
54
51
  baseOptions = configuration.baseOptions;
@@ -85,7 +82,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
85
82
  const localVarPath = `/products/{id}/followers`
86
83
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
87
84
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
88
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
85
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
89
86
  let baseOptions;
90
87
  if (configuration) {
91
88
  baseOptions = configuration.baseOptions;
@@ -121,7 +118,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
121
118
  const localVarPath = `/products/{id}`
122
119
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
123
120
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
124
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
121
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
125
122
  let baseOptions;
126
123
  if (configuration) {
127
124
  baseOptions = configuration.baseOptions;
@@ -159,7 +156,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
159
156
  .replace(`{${"id"}}`, encodeURIComponent(String(id)))
160
157
  .replace(`{${"follower_id"}}`, encodeURIComponent(String(follower_id)));
161
158
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
162
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
159
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
163
160
  let baseOptions;
164
161
  if (configuration) {
165
162
  baseOptions = configuration.baseOptions;
@@ -193,7 +190,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
193
190
  const localVarPath = `/products/{id}`
194
191
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
195
192
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
196
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
193
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
197
194
  let baseOptions;
198
195
  if (configuration) {
199
196
  baseOptions = configuration.baseOptions;
@@ -230,7 +227,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
230
227
  const localVarPath = `/products/{id}/deals`
231
228
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
232
229
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
233
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
230
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
234
231
  let baseOptions;
235
232
  if (configuration) {
236
233
  baseOptions = configuration.baseOptions;
@@ -276,7 +273,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
276
273
  const localVarPath = `/products/{id}/files`
277
274
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
278
275
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
276
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
280
277
  let baseOptions;
281
278
  if (configuration) {
282
279
  baseOptions = configuration.baseOptions;
@@ -321,7 +318,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
321
318
  const localVarPath = `/products/{id}/followers`
322
319
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
323
320
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
324
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
321
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
325
322
  let baseOptions;
326
323
  if (configuration) {
327
324
  baseOptions = configuration.baseOptions;
@@ -361,7 +358,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
361
358
  const localVarPath = `/products/{id}/permittedUsers`
362
359
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
363
360
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
364
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
361
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
365
362
  let baseOptions;
366
363
  if (configuration) {
367
364
  baseOptions = configuration.baseOptions;
@@ -398,7 +395,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
398
395
  getProducts: (user_id, filter_id, ids, first_char, get_summary, start, limit) => __awaiter(this, void 0, void 0, function* () {
399
396
  const localVarPath = `/products`;
400
397
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
401
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
398
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
402
399
  let baseOptions;
403
400
  if (configuration) {
404
401
  baseOptions = configuration.baseOptions;
@@ -457,7 +454,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
457
454
  (0, common_1.assertParamExists)('searchProducts', 'term', term);
458
455
  const localVarPath = `/products/search`;
459
456
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
460
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
457
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
461
458
  let baseOptions;
462
459
  if (configuration) {
463
460
  baseOptions = configuration.baseOptions;
@@ -510,7 +507,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
510
507
  const localVarPath = `/products/{id}`
511
508
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
512
509
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
513
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
510
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
514
511
  let baseOptions;
515
512
  if (configuration) {
516
513
  baseOptions = configuration.baseOptions;
@@ -541,26 +538,6 @@ exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
541
538
  * @export
542
539
  */
543
540
  const ProductsApiFp = function (configuration) {
544
- /**
545
- * Axios interceptor to add the SDK version as a User-Agent header
546
- * */
547
- axios_1.default.interceptors.request.use(function (config) {
548
- const version = require("../../package.json").version;
549
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
550
- return config;
551
- });
552
- /**
553
- * Axios response interceptor to modify response structure
554
- */
555
- axios_1.default.interceptors.response.use(function (response) {
556
- return response.hasOwnProperty('success') ? response : response.data;
557
- }, function (error) {
558
- var _a;
559
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
560
- return Promise.reject(error.response.data);
561
- }
562
- return Promise.reject(error);
563
- });
564
541
  const localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
565
542
  return {
566
543
  /**
@@ -24,9 +24,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ProjectTemplatesApi = exports.ProjectTemplatesApiFactory = exports.ProjectTemplatesApiFp = exports.ProjectTemplatesApiAxiosParamCreator = void 0;
26
26
  const axios_1 = require("axios");
27
- // URLSearchParams not necessarily used
28
- // @ts-ignore
29
- const url_1 = require("url");
30
27
  // Some imports not used depending on template conditions
31
28
  // @ts-ignore
32
29
  const common_1 = require("../common");
@@ -51,7 +48,7 @@ const ProjectTemplatesApiAxiosParamCreator = function (configuration) {
51
48
  const localVarPath = `/projectTemplates/{id}`
52
49
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
53
50
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
51
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
55
52
  let baseOptions;
56
53
  if (configuration) {
57
54
  baseOptions = configuration.baseOptions;
@@ -83,7 +80,7 @@ const ProjectTemplatesApiAxiosParamCreator = function (configuration) {
83
80
  getProjectTemplates: (cursor, limit) => __awaiter(this, void 0, void 0, function* () {
84
81
  const localVarPath = `/projectTemplates`;
85
82
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
86
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
83
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
87
84
  let baseOptions;
88
85
  if (configuration) {
89
86
  baseOptions = configuration.baseOptions;
@@ -123,7 +120,7 @@ const ProjectTemplatesApiAxiosParamCreator = function (configuration) {
123
120
  const localVarPath = `/projects/boards/{id}`
124
121
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
125
122
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
126
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
123
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
127
124
  let baseOptions;
128
125
  if (configuration) {
129
126
  baseOptions = configuration.baseOptions;
@@ -157,7 +154,7 @@ const ProjectTemplatesApiAxiosParamCreator = function (configuration) {
157
154
  const localVarPath = `/projects/phases/{id}`
158
155
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
159
156
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
160
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
157
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
161
158
  let baseOptions;
162
159
  if (configuration) {
163
160
  baseOptions = configuration.baseOptions;
@@ -186,26 +183,6 @@ exports.ProjectTemplatesApiAxiosParamCreator = ProjectTemplatesApiAxiosParamCrea
186
183
  * @export
187
184
  */
188
185
  const ProjectTemplatesApiFp = function (configuration) {
189
- /**
190
- * Axios interceptor to add the SDK version as a User-Agent header
191
- * */
192
- axios_1.default.interceptors.request.use(function (config) {
193
- const version = require("../../package.json").version;
194
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
195
- return config;
196
- });
197
- /**
198
- * Axios response interceptor to modify response structure
199
- */
200
- axios_1.default.interceptors.response.use(function (response) {
201
- return response.hasOwnProperty('success') ? response : response.data;
202
- }, function (error) {
203
- var _a;
204
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
205
- return Promise.reject(error.response.data);
206
- }
207
- return Promise.reject(error);
208
- });
209
186
  const localVarAxiosParamCreator = (0, exports.ProjectTemplatesApiAxiosParamCreator)(configuration);
210
187
  return {
211
188
  /**
@@ -24,9 +24,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = void 0;
26
26
  const axios_1 = require("axios");
27
- // URLSearchParams not necessarily used
28
- // @ts-ignore
29
- const url_1 = require("url");
30
27
  // Some imports not used depending on template conditions
31
28
  // @ts-ignore
32
29
  const common_1 = require("../common");
@@ -48,7 +45,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
48
45
  addProject: (AddProjectRequest) => __awaiter(this, void 0, void 0, function* () {
49
46
  const localVarPath = `/projects`;
50
47
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
48
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
52
49
  let baseOptions;
53
50
  if (configuration) {
54
51
  baseOptions = configuration.baseOptions;
@@ -84,7 +81,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
84
81
  const localVarPath = `/projects/{id}/archive`
85
82
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
86
83
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
84
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
88
85
  let baseOptions;
89
86
  if (configuration) {
90
87
  baseOptions = configuration.baseOptions;
@@ -118,7 +115,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
118
115
  const localVarPath = `/projects/{id}`
119
116
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
120
117
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
121
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
122
119
  let baseOptions;
123
120
  if (configuration) {
124
121
  baseOptions = configuration.baseOptions;
@@ -152,7 +149,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
152
149
  const localVarPath = `/projects/{id}`
153
150
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
154
151
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
155
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
152
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
156
153
  let baseOptions;
157
154
  if (configuration) {
158
155
  baseOptions = configuration.baseOptions;
@@ -186,7 +183,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
186
183
  const localVarPath = `/projects/{id}/activities`
187
184
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
188
185
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
189
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
186
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
190
187
  let baseOptions;
191
188
  if (configuration) {
192
189
  baseOptions = configuration.baseOptions;
@@ -220,7 +217,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
220
217
  const localVarPath = `/projects/{id}/groups`
221
218
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
222
219
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
223
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
220
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
224
221
  let baseOptions;
225
222
  if (configuration) {
226
223
  baseOptions = configuration.baseOptions;
@@ -254,7 +251,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
254
251
  const localVarPath = `/projects/{id}/plan`
255
252
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
256
253
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
257
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
254
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
258
255
  let baseOptions;
259
256
  if (configuration) {
260
257
  baseOptions = configuration.baseOptions;
@@ -288,7 +285,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
288
285
  const localVarPath = `/projects/{id}/tasks`
289
286
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
290
287
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
291
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
288
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
292
289
  let baseOptions;
293
290
  if (configuration) {
294
291
  baseOptions = configuration.baseOptions;
@@ -324,7 +321,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
324
321
  getProjects: (cursor, limit, filter_id, status, phase_id, include_archived) => __awaiter(this, void 0, void 0, function* () {
325
322
  const localVarPath = `/projects`;
326
323
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
327
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
324
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
328
325
  let baseOptions;
329
326
  if (configuration) {
330
327
  baseOptions = configuration.baseOptions;
@@ -372,7 +369,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
372
369
  getProjectsBoards: () => __awaiter(this, void 0, void 0, function* () {
373
370
  const localVarPath = `/projects/boards`;
374
371
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
375
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
372
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
376
373
  let baseOptions;
377
374
  if (configuration) {
378
375
  baseOptions = configuration.baseOptions;
@@ -405,7 +402,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
405
402
  (0, common_1.assertParamExists)('getProjectsPhases', 'board_id', board_id);
406
403
  const localVarPath = `/projects/phases`;
407
404
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
408
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
405
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
409
406
  let baseOptions;
410
407
  if (configuration) {
411
408
  baseOptions = configuration.baseOptions;
@@ -447,7 +444,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
447
444
  .replace(`{${"id"}}`, encodeURIComponent(String(id)))
448
445
  .replace(`{${"activityId"}}`, encodeURIComponent(String(activityId)));
449
446
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
450
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
447
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
451
448
  let baseOptions;
452
449
  if (configuration) {
453
450
  baseOptions = configuration.baseOptions;
@@ -488,7 +485,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
488
485
  .replace(`{${"id"}}`, encodeURIComponent(String(id)))
489
486
  .replace(`{${"taskId"}}`, encodeURIComponent(String(taskId)));
490
487
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
491
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
488
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
492
489
  let baseOptions;
493
490
  if (configuration) {
494
491
  baseOptions = configuration.baseOptions;
@@ -525,7 +522,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
525
522
  const localVarPath = `/projects/{id}`
526
523
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
527
524
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
528
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
525
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
529
526
  let baseOptions;
530
527
  if (configuration) {
531
528
  baseOptions = configuration.baseOptions;
@@ -556,26 +553,6 @@ exports.ProjectsApiAxiosParamCreator = ProjectsApiAxiosParamCreator;
556
553
  * @export
557
554
  */
558
555
  const ProjectsApiFp = function (configuration) {
559
- /**
560
- * Axios interceptor to add the SDK version as a User-Agent header
561
- * */
562
- axios_1.default.interceptors.request.use(function (config) {
563
- const version = require("../../package.json").version;
564
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
565
- return config;
566
- });
567
- /**
568
- * Axios response interceptor to modify response structure
569
- */
570
- axios_1.default.interceptors.response.use(function (response) {
571
- return response.hasOwnProperty('success') ? response : response.data;
572
- }, function (error) {
573
- var _a;
574
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
575
- return Promise.reject(error.response.data);
576
- }
577
- return Promise.reject(error);
578
- });
579
556
  const localVarAxiosParamCreator = (0, exports.ProjectsApiAxiosParamCreator)(configuration);
580
557
  return {
581
558
  /**
@@ -24,9 +24,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.RecentsApi = exports.RecentsApiFactory = exports.RecentsApiFp = exports.RecentsApiAxiosParamCreator = void 0;
26
26
  const axios_1 = require("axios");
27
- // URLSearchParams not necessarily used
28
- // @ts-ignore
29
- const url_1 = require("url");
30
27
  // Some imports not used depending on template conditions
31
28
  // @ts-ignore
32
29
  const common_1 = require("../common");
@@ -53,7 +50,7 @@ const RecentsApiAxiosParamCreator = function (configuration) {
53
50
  (0, common_1.assertParamExists)('getRecents', 'since_timestamp', since_timestamp);
54
51
  const localVarPath = `/recents`;
55
52
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
56
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
53
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
57
54
  let baseOptions;
58
55
  if (configuration) {
59
56
  baseOptions = configuration.baseOptions;
@@ -94,26 +91,6 @@ exports.RecentsApiAxiosParamCreator = RecentsApiAxiosParamCreator;
94
91
  * @export
95
92
  */
96
93
  const RecentsApiFp = function (configuration) {
97
- /**
98
- * Axios interceptor to add the SDK version as a User-Agent header
99
- * */
100
- axios_1.default.interceptors.request.use(function (config) {
101
- const version = require("../../package.json").version;
102
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
103
- return config;
104
- });
105
- /**
106
- * Axios response interceptor to modify response structure
107
- */
108
- axios_1.default.interceptors.response.use(function (response) {
109
- return response.hasOwnProperty('success') ? response : response.data;
110
- }, function (error) {
111
- var _a;
112
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
113
- return Promise.reject(error.response.data);
114
- }
115
- return Promise.reject(error);
116
- });
117
94
  const localVarAxiosParamCreator = (0, exports.RecentsApiAxiosParamCreator)(configuration);
118
95
  return {
119
96
  /**
@@ -24,9 +24,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = void 0;
26
26
  const axios_1 = require("axios");
27
- // URLSearchParams not necessarily used
28
- // @ts-ignore
29
- const url_1 = require("url");
30
27
  // Some imports not used depending on template conditions
31
28
  // @ts-ignore
32
29
  const common_1 = require("../common");
@@ -52,7 +49,7 @@ const RolesApiAxiosParamCreator = function (configuration) {
52
49
  const localVarPath = `/roles/{id}/settings`
53
50
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
54
51
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
52
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
56
53
  let baseOptions;
57
54
  if (configuration) {
58
55
  baseOptions = configuration.baseOptions;
@@ -85,7 +82,7 @@ const RolesApiAxiosParamCreator = function (configuration) {
85
82
  addRole: (AddRoleRequest) => __awaiter(this, void 0, void 0, function* () {
86
83
  const localVarPath = `/roles`;
87
84
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
88
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
85
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
89
86
  let baseOptions;
90
87
  if (configuration) {
91
88
  baseOptions = configuration.baseOptions;
@@ -122,7 +119,7 @@ const RolesApiAxiosParamCreator = function (configuration) {
122
119
  const localVarPath = `/roles/{id}/assignments`
123
120
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
124
121
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
125
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
126
123
  let baseOptions;
127
124
  if (configuration) {
128
125
  baseOptions = configuration.baseOptions;
@@ -158,7 +155,7 @@ const RolesApiAxiosParamCreator = function (configuration) {
158
155
  const localVarPath = `/roles/{id}`
159
156
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
160
157
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
161
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
158
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
162
159
  let baseOptions;
163
160
  if (configuration) {
164
161
  baseOptions = configuration.baseOptions;
@@ -193,7 +190,7 @@ const RolesApiAxiosParamCreator = function (configuration) {
193
190
  const localVarPath = `/roles/{id}/assignments`
194
191
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
195
192
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
196
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
193
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
197
194
  let baseOptions;
198
195
  if (configuration) {
199
196
  baseOptions = configuration.baseOptions;
@@ -229,7 +226,7 @@ const RolesApiAxiosParamCreator = function (configuration) {
229
226
  const localVarPath = `/roles/{id}`
230
227
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
231
228
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
232
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
229
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
233
230
  let baseOptions;
234
231
  if (configuration) {
235
232
  baseOptions = configuration.baseOptions;
@@ -265,7 +262,7 @@ const RolesApiAxiosParamCreator = function (configuration) {
265
262
  const localVarPath = `/roles/{id}/assignments`
266
263
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
267
264
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
268
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
265
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
269
266
  let baseOptions;
270
267
  if (configuration) {
271
268
  baseOptions = configuration.baseOptions;
@@ -306,7 +303,7 @@ const RolesApiAxiosParamCreator = function (configuration) {
306
303
  const localVarPath = `/roles/{id}/pipelines`
307
304
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
308
305
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
309
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
306
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
310
307
  let baseOptions;
311
308
  if (configuration) {
312
309
  baseOptions = configuration.baseOptions;
@@ -343,7 +340,7 @@ const RolesApiAxiosParamCreator = function (configuration) {
343
340
  const localVarPath = `/roles/{id}/settings`
344
341
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
345
342
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
346
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
343
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
347
344
  let baseOptions;
348
345
  if (configuration) {
349
346
  baseOptions = configuration.baseOptions;
@@ -375,7 +372,7 @@ const RolesApiAxiosParamCreator = function (configuration) {
375
372
  getRoles: (start, limit) => __awaiter(this, void 0, void 0, function* () {
376
373
  const localVarPath = `/roles`;
377
374
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
378
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
375
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
379
376
  let baseOptions;
380
377
  if (configuration) {
381
378
  baseOptions = configuration.baseOptions;
@@ -416,7 +413,7 @@ const RolesApiAxiosParamCreator = function (configuration) {
416
413
  const localVarPath = `/roles/{id}`
417
414
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
418
415
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
419
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
416
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
420
417
  let baseOptions;
421
418
  if (configuration) {
422
419
  baseOptions = configuration.baseOptions;
@@ -453,7 +450,7 @@ const RolesApiAxiosParamCreator = function (configuration) {
453
450
  const localVarPath = `/roles/{id}/pipelines`
454
451
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
455
452
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
456
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
453
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
457
454
  let baseOptions;
458
455
  if (configuration) {
459
456
  baseOptions = configuration.baseOptions;
@@ -484,26 +481,6 @@ exports.RolesApiAxiosParamCreator = RolesApiAxiosParamCreator;
484
481
  * @export
485
482
  */
486
483
  const RolesApiFp = function (configuration) {
487
- /**
488
- * Axios interceptor to add the SDK version as a User-Agent header
489
- * */
490
- axios_1.default.interceptors.request.use(function (config) {
491
- const version = require("../../package.json").version;
492
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
493
- return config;
494
- });
495
- /**
496
- * Axios response interceptor to modify response structure
497
- */
498
- axios_1.default.interceptors.response.use(function (response) {
499
- return response.hasOwnProperty('success') ? response : response.data;
500
- }, function (error) {
501
- var _a;
502
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
503
- return Promise.reject(error.response.data);
504
- }
505
- return Promise.reject(error);
506
- });
507
484
  const localVarAxiosParamCreator = (0, exports.RolesApiAxiosParamCreator)(configuration);
508
485
  return {
509
486
  /**