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
@@ -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.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = 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");
@@ -56,7 +53,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
56
53
  (0, common_1.assertParamExists)('addFile', 'file', file);
57
54
  const localVarPath = `/files`;
58
55
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
59
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
56
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
60
57
  let baseOptions;
61
58
  if (configuration) {
62
59
  baseOptions = configuration.baseOptions;
@@ -125,7 +122,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
125
122
  (0, common_1.assertParamExists)('addFileAndLinkIt', 'remote_location', remote_location);
126
123
  const localVarPath = `/files/remote`;
127
124
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
128
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
125
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
129
126
  let baseOptions;
130
127
  if (configuration) {
131
128
  baseOptions = configuration.baseOptions;
@@ -133,7 +130,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
133
130
  const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
134
131
  const localVarHeaderParameter = {};
135
132
  const localVarQueryParameter = {};
136
- const localVarFormParams = new url_1.URLSearchParams();
133
+ const localVarFormParams = new URLSearchParams();
137
134
  // authentication api_key required
138
135
  yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
139
136
  // authentication oauth2 required
@@ -177,7 +174,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
177
174
  const localVarPath = `/files/{id}`
178
175
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
179
176
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
180
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
177
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
181
178
  let baseOptions;
182
179
  if (configuration) {
183
180
  baseOptions = configuration.baseOptions;
@@ -211,7 +208,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
211
208
  const localVarPath = `/files/{id}/download`
212
209
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
213
210
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
214
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
211
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
215
212
  let baseOptions;
216
213
  if (configuration) {
217
214
  baseOptions = configuration.baseOptions;
@@ -245,7 +242,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
245
242
  const localVarPath = `/files/{id}`
246
243
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
247
244
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
248
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
245
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
249
246
  let baseOptions;
250
247
  if (configuration) {
251
248
  baseOptions = configuration.baseOptions;
@@ -278,7 +275,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
278
275
  getFiles: (start, limit, sort) => __awaiter(this, void 0, void 0, function* () {
279
276
  const localVarPath = `/files`;
280
277
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
281
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
278
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
282
279
  let baseOptions;
283
280
  if (configuration) {
284
281
  baseOptions = configuration.baseOptions;
@@ -329,7 +326,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
329
326
  (0, common_1.assertParamExists)('linkFileToItem', 'remote_location', remote_location);
330
327
  const localVarPath = `/files/remoteLink`;
331
328
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
332
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
329
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
333
330
  let baseOptions;
334
331
  if (configuration) {
335
332
  baseOptions = configuration.baseOptions;
@@ -337,7 +334,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
337
334
  const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions);
338
335
  const localVarHeaderParameter = {};
339
336
  const localVarQueryParameter = {};
340
- const localVarFormParams = new url_1.URLSearchParams();
337
+ const localVarFormParams = new URLSearchParams();
341
338
  // authentication api_key required
342
339
  yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
343
340
  // authentication oauth2 required
@@ -380,7 +377,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
380
377
  const localVarPath = `/files/{id}`
381
378
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
382
379
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
383
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
380
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
384
381
  let baseOptions;
385
382
  if (configuration) {
386
383
  baseOptions = configuration.baseOptions;
@@ -388,7 +385,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
388
385
  const localVarRequestOptions = Object.assign({ method: 'PUT' }, baseOptions);
389
386
  const localVarHeaderParameter = {};
390
387
  const localVarQueryParameter = {};
391
- const localVarFormParams = new url_1.URLSearchParams();
388
+ const localVarFormParams = new URLSearchParams();
392
389
  // authentication api_key required
393
390
  yield (0, common_1.setApiKeyToObject)(localVarQueryParameter, "api_token", configuration);
394
391
  // authentication oauth2 required
@@ -418,26 +415,6 @@ exports.FilesApiAxiosParamCreator = FilesApiAxiosParamCreator;
418
415
  * @export
419
416
  */
420
417
  const FilesApiFp = function (configuration) {
421
- /**
422
- * Axios interceptor to add the SDK version as a User-Agent header
423
- * */
424
- axios_1.default.interceptors.request.use(function (config) {
425
- const version = require("../../package.json").version;
426
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
427
- return config;
428
- });
429
- /**
430
- * Axios response interceptor to modify response structure
431
- */
432
- axios_1.default.interceptors.response.use(function (response) {
433
- return response.hasOwnProperty('success') ? response : response.data;
434
- }, function (error) {
435
- var _a;
436
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
437
- return Promise.reject(error.response.data);
438
- }
439
- return Promise.reject(error);
440
- });
441
418
  const localVarAxiosParamCreator = (0, exports.FilesApiAxiosParamCreator)(configuration);
442
419
  return {
443
420
  /**
@@ -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.FiltersApi = exports.FiltersApiFactory = exports.FiltersApiFp = exports.FiltersApiAxiosParamCreator = 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 FiltersApiAxiosParamCreator = function (configuration) {
48
45
  addFilter: (AddFilterRequest) => __awaiter(this, void 0, void 0, function* () {
49
46
  const localVarPath = `/filters`;
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 FiltersApiAxiosParamCreator = function (configuration) {
84
81
  const localVarPath = `/filters/{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 FiltersApiAxiosParamCreator = function (configuration) {
117
114
  (0, common_1.assertParamExists)('deleteFilters', 'ids', ids);
118
115
  const localVarPath = `/filters`;
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 FiltersApiAxiosParamCreator = function (configuration) {
154
151
  const localVarPath = `/filters/{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;
@@ -184,7 +181,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
184
181
  getFilterHelpers: () => __awaiter(this, void 0, void 0, function* () {
185
182
  const localVarPath = `/filters/helpers`;
186
183
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
187
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
184
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
188
185
  let baseOptions;
189
186
  if (configuration) {
190
187
  baseOptions = configuration.baseOptions;
@@ -215,7 +212,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
215
212
  getFilters: (type) => __awaiter(this, void 0, void 0, function* () {
216
213
  const localVarPath = `/filters`;
217
214
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
218
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
215
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
219
216
  let baseOptions;
220
217
  if (configuration) {
221
218
  baseOptions = configuration.baseOptions;
@@ -253,7 +250,7 @@ const FiltersApiAxiosParamCreator = function (configuration) {
253
250
  const localVarPath = `/filters/{id}`
254
251
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
255
252
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
256
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
253
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
257
254
  let baseOptions;
258
255
  if (configuration) {
259
256
  baseOptions = configuration.baseOptions;
@@ -284,26 +281,6 @@ exports.FiltersApiAxiosParamCreator = FiltersApiAxiosParamCreator;
284
281
  * @export
285
282
  */
286
283
  const FiltersApiFp = function (configuration) {
287
- /**
288
- * Axios interceptor to add the SDK version as a User-Agent header
289
- * */
290
- axios_1.default.interceptors.request.use(function (config) {
291
- const version = require("../../package.json").version;
292
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
293
- return config;
294
- });
295
- /**
296
- * Axios response interceptor to modify response structure
297
- */
298
- axios_1.default.interceptors.response.use(function (response) {
299
- return response.hasOwnProperty('success') ? response : response.data;
300
- }, function (error) {
301
- var _a;
302
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
303
- return Promise.reject(error.response.data);
304
- }
305
- return Promise.reject(error);
306
- });
307
284
  const localVarAxiosParamCreator = (0, exports.FiltersApiAxiosParamCreator)(configuration);
308
285
  return {
309
286
  /**
@@ -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.GoalsApi = exports.GoalsApiFactory = exports.GoalsApiFp = exports.GoalsApiAxiosParamCreator = 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 GoalsApiAxiosParamCreator = function (configuration) {
48
45
  addGoal: (AddGoalRequest) => __awaiter(this, void 0, void 0, function* () {
49
46
  const localVarPath = `/goals`;
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 GoalsApiAxiosParamCreator = function (configuration) {
84
81
  const localVarPath = `/goals/{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;
@@ -124,7 +121,7 @@ const GoalsApiAxiosParamCreator = function (configuration) {
124
121
  const localVarPath = `/goals/{id}/results`
125
122
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
126
123
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
127
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
124
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
128
125
  let baseOptions;
129
126
  if (configuration) {
130
127
  baseOptions = configuration.baseOptions;
@@ -177,7 +174,7 @@ const GoalsApiAxiosParamCreator = function (configuration) {
177
174
  getGoals: (type_name, title, is_active, assignee_id, assignee_type, expected_outcome_target, expected_outcome_tracking_metric, expected_outcome_currency_id, type_params_pipeline_id, type_params_stage_id, type_params_activity_type_id, period_start, period_end) => __awaiter(this, void 0, void 0, function* () {
178
175
  const localVarPath = `/goals/find`;
179
176
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
180
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
177
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
181
178
  let baseOptions;
182
179
  if (configuration) {
183
180
  baseOptions = configuration.baseOptions;
@@ -255,7 +252,7 @@ const GoalsApiAxiosParamCreator = function (configuration) {
255
252
  const localVarPath = `/goals/{id}`
256
253
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
257
254
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
258
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
255
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
259
256
  let baseOptions;
260
257
  if (configuration) {
261
258
  baseOptions = configuration.baseOptions;
@@ -286,26 +283,6 @@ exports.GoalsApiAxiosParamCreator = GoalsApiAxiosParamCreator;
286
283
  * @export
287
284
  */
288
285
  const GoalsApiFp = function (configuration) {
289
- /**
290
- * Axios interceptor to add the SDK version as a User-Agent header
291
- * */
292
- axios_1.default.interceptors.request.use(function (config) {
293
- const version = require("../../package.json").version;
294
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
295
- return config;
296
- });
297
- /**
298
- * Axios response interceptor to modify response structure
299
- */
300
- axios_1.default.interceptors.response.use(function (response) {
301
- return response.hasOwnProperty('success') ? response : response.data;
302
- }, function (error) {
303
- var _a;
304
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
305
- return Promise.reject(error.response.data);
306
- }
307
- return Promise.reject(error);
308
- });
309
286
  const localVarAxiosParamCreator = (0, exports.GoalsApiAxiosParamCreator)(configuration);
310
287
  return {
311
288
  /**
@@ -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.ItemSearchApi = exports.ItemSearchApiFactory = exports.ItemSearchApiFp = exports.ItemSearchApiAxiosParamCreator = 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");
@@ -57,7 +54,7 @@ const ItemSearchApiAxiosParamCreator = function (configuration) {
57
54
  (0, common_1.assertParamExists)('searchItem', 'term', term);
58
55
  const localVarPath = `/itemSearch`;
59
56
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
60
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
57
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
61
58
  let baseOptions;
62
59
  if (configuration) {
63
60
  baseOptions = configuration.baseOptions;
@@ -124,7 +121,7 @@ const ItemSearchApiAxiosParamCreator = function (configuration) {
124
121
  (0, common_1.assertParamExists)('searchItemByField', 'field_key', field_key);
125
122
  const localVarPath = `/itemSearch/field`;
126
123
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
127
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
124
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
128
125
  let baseOptions;
129
126
  if (configuration) {
130
127
  baseOptions = configuration.baseOptions;
@@ -174,26 +171,6 @@ exports.ItemSearchApiAxiosParamCreator = ItemSearchApiAxiosParamCreator;
174
171
  * @export
175
172
  */
176
173
  const ItemSearchApiFp = function (configuration) {
177
- /**
178
- * Axios interceptor to add the SDK version as a User-Agent header
179
- * */
180
- axios_1.default.interceptors.request.use(function (config) {
181
- const version = require("../../package.json").version;
182
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
183
- return config;
184
- });
185
- /**
186
- * Axios response interceptor to modify response structure
187
- */
188
- axios_1.default.interceptors.response.use(function (response) {
189
- return response.hasOwnProperty('success') ? response : response.data;
190
- }, function (error) {
191
- var _a;
192
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
193
- return Promise.reject(error.response.data);
194
- }
195
- return Promise.reject(error);
196
- });
197
174
  const localVarAxiosParamCreator = (0, exports.ItemSearchApiAxiosParamCreator)(configuration);
198
175
  return {
199
176
  /**
@@ -177,26 +177,6 @@ exports.LeadLabelsApiAxiosParamCreator = LeadLabelsApiAxiosParamCreator;
177
177
  * @export
178
178
  */
179
179
  const LeadLabelsApiFp = function (configuration) {
180
- /**
181
- * Axios interceptor to add the SDK version as a User-Agent header
182
- * */
183
- axios_1.default.interceptors.request.use(function (config) {
184
- const version = require("../../package.json").version;
185
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
186
- return config;
187
- });
188
- /**
189
- * Axios response interceptor to modify response structure
190
- */
191
- axios_1.default.interceptors.response.use(function (response) {
192
- return response.hasOwnProperty('success') ? response : response.data;
193
- }, function (error) {
194
- var _a;
195
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
196
- return Promise.reject(error.response.data);
197
- }
198
- return Promise.reject(error);
199
- });
200
180
  const localVarAxiosParamCreator = (0, exports.LeadLabelsApiAxiosParamCreator)(configuration);
201
181
  return {
202
182
  /**
@@ -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.LeadSourcesApi = exports.LeadSourcesApiFactory = exports.LeadSourcesApiFp = exports.LeadSourcesApiAxiosParamCreator = 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");
@@ -47,7 +44,7 @@ const LeadSourcesApiAxiosParamCreator = function (configuration) {
47
44
  getLeadSources: () => __awaiter(this, void 0, void 0, function* () {
48
45
  const localVarPath = `/leadSources`;
49
46
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
47
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
48
  let baseOptions;
52
49
  if (configuration) {
53
50
  baseOptions = configuration.baseOptions;
@@ -76,26 +73,6 @@ exports.LeadSourcesApiAxiosParamCreator = LeadSourcesApiAxiosParamCreator;
76
73
  * @export
77
74
  */
78
75
  const LeadSourcesApiFp = function (configuration) {
79
- /**
80
- * Axios interceptor to add the SDK version as a User-Agent header
81
- * */
82
- axios_1.default.interceptors.request.use(function (config) {
83
- const version = require("../../package.json").version;
84
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
85
- return config;
86
- });
87
- /**
88
- * Axios response interceptor to modify response structure
89
- */
90
- axios_1.default.interceptors.response.use(function (response) {
91
- return response.hasOwnProperty('success') ? response : response.data;
92
- }, function (error) {
93
- var _a;
94
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
95
- return Promise.reject(error.response.data);
96
- }
97
- return Promise.reject(error);
98
- });
99
76
  const localVarAxiosParamCreator = (0, exports.LeadSourcesApiAxiosParamCreator)(configuration);
100
77
  return {
101
78
  /**
@@ -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.LeadsApi = exports.LeadsApiFactory = exports.LeadsApiFp = exports.LeadsApiAxiosParamCreator = 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 LeadsApiAxiosParamCreator = function (configuration) {
48
45
  addLead: (AddLeadRequest) => __awaiter(this, void 0, void 0, function* () {
49
46
  const localVarPath = `/leads`;
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 LeadsApiAxiosParamCreator = function (configuration) {
84
81
  const localVarPath = `/leads/{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;
@@ -118,7 +115,7 @@ const LeadsApiAxiosParamCreator = function (configuration) {
118
115
  const localVarPath = `/leads/{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 LeadsApiAxiosParamCreator = function (configuration) {
152
149
  const localVarPath = `/leads/{id}/permittedUsers`
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;
@@ -190,7 +187,7 @@ const LeadsApiAxiosParamCreator = function (configuration) {
190
187
  getLeads: (limit, start, archived_status, owner_id, person_id, organization_id, filter_id, sort) => __awaiter(this, void 0, void 0, function* () {
191
188
  const localVarPath = `/leads`;
192
189
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
193
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
190
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
194
191
  let baseOptions;
195
192
  if (configuration) {
196
193
  baseOptions = configuration.baseOptions;
@@ -254,7 +251,7 @@ const LeadsApiAxiosParamCreator = function (configuration) {
254
251
  (0, common_1.assertParamExists)('searchLeads', 'term', term);
255
252
  const localVarPath = `/leads/search`;
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;
@@ -313,7 +310,7 @@ const LeadsApiAxiosParamCreator = function (configuration) {
313
310
  const localVarPath = `/leads/{id}`
314
311
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
315
312
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
316
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
313
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
317
314
  let baseOptions;
318
315
  if (configuration) {
319
316
  baseOptions = configuration.baseOptions;
@@ -344,26 +341,6 @@ exports.LeadsApiAxiosParamCreator = LeadsApiAxiosParamCreator;
344
341
  * @export
345
342
  */
346
343
  const LeadsApiFp = function (configuration) {
347
- /**
348
- * Axios interceptor to add the SDK version as a User-Agent header
349
- * */
350
- axios_1.default.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
- * Axios response interceptor to modify response structure
357
- */
358
- axios_1.default.interceptors.response.use(function (response) {
359
- return response.hasOwnProperty('success') ? response : response.data;
360
- }, function (error) {
361
- var _a;
362
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
363
- return Promise.reject(error.response.data);
364
- }
365
- return Promise.reject(error);
366
- });
367
344
  const localVarAxiosParamCreator = (0, exports.LeadsApiAxiosParamCreator)(configuration);
368
345
  return {
369
346
  /**
@@ -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.LegacyTeamsApi = exports.LegacyTeamsApiFactory = exports.LegacyTeamsApiFp = exports.LegacyTeamsApiAxiosParamCreator = 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 LegacyTeamsApiAxiosParamCreator = function (configuration) {
48
45
  addTeam: (AddTeamRequest1) => __awaiter(this, void 0, void 0, function* () {
49
46
  const localVarPath = `/legacyTeams`;
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 LegacyTeamsApiAxiosParamCreator = function (configuration) {
85
82
  const localVarPath = `/legacyTeams/{id}/users`
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;
@@ -122,7 +119,7 @@ const LegacyTeamsApiAxiosParamCreator = function (configuration) {
122
119
  const localVarPath = `/legacyTeams/{id}/users`
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;
@@ -159,7 +156,7 @@ const LegacyTeamsApiAxiosParamCreator = function (configuration) {
159
156
  const localVarPath = `/legacyTeams/{id}`
160
157
  .replace(`{${"id"}}`, encodeURIComponent(String(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;
@@ -196,7 +193,7 @@ const LegacyTeamsApiAxiosParamCreator = function (configuration) {
196
193
  const localVarPath = `/legacyTeams/{id}/users`
197
194
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
198
195
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
199
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
196
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
200
197
  let baseOptions;
201
198
  if (configuration) {
202
199
  baseOptions = configuration.baseOptions;
@@ -228,7 +225,7 @@ const LegacyTeamsApiAxiosParamCreator = function (configuration) {
228
225
  getTeams: (order_by, skip_users) => __awaiter(this, void 0, void 0, function* () {
229
226
  const localVarPath = `/legacyTeams`;
230
227
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
231
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
228
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
232
229
  let baseOptions;
233
230
  if (configuration) {
234
231
  baseOptions = configuration.baseOptions;
@@ -270,7 +267,7 @@ const LegacyTeamsApiAxiosParamCreator = function (configuration) {
270
267
  const localVarPath = `/legacyTeams/user/{id}`
271
268
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
272
269
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
273
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
270
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
274
271
  let baseOptions;
275
272
  if (configuration) {
276
273
  baseOptions = configuration.baseOptions;
@@ -311,7 +308,7 @@ const LegacyTeamsApiAxiosParamCreator = function (configuration) {
311
308
  const localVarPath = `/legacyTeams/{id}`
312
309
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
313
310
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
314
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
311
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
315
312
  let baseOptions;
316
313
  if (configuration) {
317
314
  baseOptions = configuration.baseOptions;
@@ -342,26 +339,6 @@ exports.LegacyTeamsApiAxiosParamCreator = LegacyTeamsApiAxiosParamCreator;
342
339
  * @export
343
340
  */
344
341
  const LegacyTeamsApiFp = function (configuration) {
345
- /**
346
- * Axios interceptor to add the SDK version as a User-Agent header
347
- * */
348
- axios_1.default.interceptors.request.use(function (config) {
349
- const version = require("../../package.json").version;
350
- config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`;
351
- return config;
352
- });
353
- /**
354
- * Axios response interceptor to modify response structure
355
- */
356
- axios_1.default.interceptors.response.use(function (response) {
357
- return response.hasOwnProperty('success') ? response : response.data;
358
- }, function (error) {
359
- var _a;
360
- if ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) {
361
- return Promise.reject(error.response.data);
362
- }
363
- return Promise.reject(error);
364
- });
365
342
  const localVarAxiosParamCreator = (0, exports.LegacyTeamsApiAxiosParamCreator)(configuration);
366
343
  return {
367
344
  /**