@lcdp/api-react-rest-client 2.5.5-develop.6796395304 → 2.5.5

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 (208) hide show
  1. package/auth/src/apis/AuthApi.js +35 -51
  2. package/auth/src/apis/ManageApiKeyApi.js +53 -77
  3. package/auth/src/apis/SearchApiKeyApi.js +36 -52
  4. package/auth/src/runtime.d.ts +2 -2
  5. package/auth/src/runtime.js +1 -1
  6. package/banking-operation/src/apis/ManageLevyApi.js +36 -52
  7. package/banking-operation/src/apis/ManageOrderPaymentApi.js +36 -52
  8. package/banking-operation/src/apis/SearchLevyApi.js +36 -52
  9. package/banking-operation/src/apis/SearchOrderPaymentApi.js +18 -26
  10. package/banking-operation/src/runtime.d.ts +2 -2
  11. package/banking-operation/src/runtime.js +1 -1
  12. package/catalog/src/apis/ManageProductInsightApi.js +53 -77
  13. package/catalog/src/apis/SearchProductInsightApi.js +36 -52
  14. package/catalog/src/runtime.d.ts +2 -2
  15. package/catalog/src/runtime.js +1 -1
  16. package/challenge/src/apis/ManageChallengesApi.js +18 -26
  17. package/challenge/src/runtime.d.ts +2 -2
  18. package/challenge/src/runtime.js +1 -1
  19. package/configuration/src/apis/ManageVariableApi.js +17 -25
  20. package/configuration/src/apis/ManageVatApi.js +35 -51
  21. package/configuration/src/apis/SearchVatApi.js +36 -52
  22. package/configuration/src/runtime.d.ts +2 -2
  23. package/configuration/src/runtime.js +1 -1
  24. package/content/src/apis/ManageContentApi.js +18 -26
  25. package/content/src/runtime.d.ts +2 -2
  26. package/content/src/runtime.js +1 -1
  27. package/factory/src/apis/ManageAssemblyApi.js +35 -53
  28. package/factory/src/apis/ManageAssemblyOperationApi.js +18 -26
  29. package/factory/src/apis/SearchAssemblyApi.js +72 -104
  30. package/factory/src/apis/SearchAssemblyLineApi.js +36 -52
  31. package/factory/src/apis/SearchAssemblyOperationApi.js +36 -52
  32. package/factory/src/runtime.d.ts +2 -2
  33. package/factory/src/runtime.js +1 -1
  34. package/favorite/src/apis/ManageFavoriteProductApi.js +71 -103
  35. package/favorite/src/runtime.d.ts +2 -2
  36. package/favorite/src/runtime.js +1 -1
  37. package/geo/src/apis/SearchCountryApi.js +18 -26
  38. package/geo/src/runtime.d.ts +2 -2
  39. package/geo/src/runtime.js +1 -1
  40. package/inventory/src/apis/ManageInventoryApi.js +86 -126
  41. package/inventory/src/apis/SearchInventoryApi.js +180 -260
  42. package/inventory/src/runtime.d.ts +2 -2
  43. package/inventory/src/runtime.js +1 -1
  44. package/invoice/src/apis/ManageInvoiceApi.js +36 -52
  45. package/invoice/src/apis/ManageInvoiceLineApi.js +35 -51
  46. package/invoice/src/apis/ManageInvoicesSummaryApi.js +17 -25
  47. package/invoice/src/apis/SearchInvoiceApi.js +36 -52
  48. package/invoice/src/apis/SearchInvoiceLineApi.js +18 -26
  49. package/invoice/src/apis/SearchOrderTallyApi.js +36 -52
  50. package/invoice/src/runtime.d.ts +2 -2
  51. package/invoice/src/runtime.js +1 -1
  52. package/laboratory/src/apis/ManageLaboratoryApi.js +18 -26
  53. package/laboratory/src/apis/SearchLaboratoryApi.js +36 -52
  54. package/laboratory/src/runtime.d.ts +2 -2
  55. package/laboratory/src/runtime.js +1 -1
  56. package/laboratory-store/src/apis/ManageLaboratoryStoreApi.js +36 -52
  57. package/laboratory-store/src/apis/ManageLaboratoryStoreImageApi.js +70 -106
  58. package/laboratory-store/src/apis/SearchLaboratoryStoreApi.js +36 -52
  59. package/laboratory-store/src/runtime.d.ts +2 -2
  60. package/laboratory-store/src/runtime.js +1 -1
  61. package/laboratory-store-log/src/apis/SearchLaboratoryStoreLogApi.js +18 -26
  62. package/laboratory-store-log/src/runtime.d.ts +2 -2
  63. package/laboratory-store-log/src/runtime.js +1 -1
  64. package/lexicon/src/apis/ManageLexiconApi.d.ts +2 -2
  65. package/lexicon/src/apis/ManageLexiconApi.js +37 -53
  66. package/lexicon/src/apis/SearchLexiconApi.js +72 -104
  67. package/lexicon/src/runtime.d.ts +2 -2
  68. package/lexicon/src/runtime.js +1 -1
  69. package/litigation/src/apis/ManageLitigationApi.js +17 -25
  70. package/litigation/src/runtime.d.ts +2 -2
  71. package/litigation/src/runtime.js +1 -1
  72. package/magic-cart/src/apis/ManageExpressOrderApi.js +18 -26
  73. package/magic-cart/src/runtime.d.ts +2 -2
  74. package/magic-cart/src/runtime.js +1 -1
  75. package/mandate/src/apis/ManageMandatesApi.js +71 -103
  76. package/mandate/src/runtime.d.ts +2 -2
  77. package/mandate/src/runtime.js +1 -1
  78. package/mangopay-hook/src/runtime.d.ts +2 -2
  79. package/mangopay-hook/src/runtime.js +1 -1
  80. package/message/src/apis/ManageMessageApi.js +87 -127
  81. package/message/src/apis/SearchMessageApi.js +54 -78
  82. package/message/src/runtime.d.ts +2 -2
  83. package/message/src/runtime.js +1 -1
  84. package/notification/src/apis/ManageNotificationApi.js +35 -51
  85. package/notification/src/apis/ManageNotificationTypeApi.js +53 -79
  86. package/notification/src/apis/SearchNotificationApi.js +36 -52
  87. package/notification/src/apis/SearchNotificationTypeApi.js +54 -78
  88. package/notification/src/runtime.d.ts +2 -2
  89. package/notification/src/runtime.js +1 -1
  90. package/order/src/apis/ManageMetaOrderApi.js +35 -51
  91. package/order/src/apis/ManageOrderApi.d.ts +2 -2
  92. package/order/src/apis/ManageOrderApi.js +159 -231
  93. package/order/src/apis/ManageOrderItemApi.js +88 -128
  94. package/order/src/apis/SearchOrderApi.d.ts +0 -2
  95. package/order/src/apis/SearchOrderApi.js +72 -106
  96. package/order/src/apis/SearchOrderItemApi.js +90 -130
  97. package/order/src/models/Reservation.d.ts +0 -6
  98. package/order/src/models/Reservation.js +0 -2
  99. package/order/src/runtime.d.ts +2 -2
  100. package/order/src/runtime.js +1 -1
  101. package/order-log/src/apis/SearchOrderLogApi.js +18 -26
  102. package/order-log/src/runtime.d.ts +2 -2
  103. package/order-log/src/runtime.js +1 -1
  104. package/outrage-message/src/apis/ManageOutrageMessageApi.js +53 -77
  105. package/outrage-message/src/apis/SearchOutrageMessageApi.js +36 -52
  106. package/outrage-message/src/runtime.d.ts +2 -2
  107. package/outrage-message/src/runtime.js +1 -1
  108. package/package.json +1 -1
  109. package/product/src/apis/ManageProductApi.js +36 -52
  110. package/product/src/apis/ManageProductImageApi.js +34 -52
  111. package/product/src/apis/ManageProductProscriptionApi.js +35 -51
  112. package/product/src/apis/SearchProductApi.js +36 -52
  113. package/product/src/apis/SearchProductImageApi.js +36 -52
  114. package/product/src/apis/SearchProductMetadataApi.js +72 -104
  115. package/product/src/apis/SearchProductProscriptionApi.js +18 -26
  116. package/product/src/runtime.d.ts +2 -2
  117. package/product/src/runtime.js +1 -1
  118. package/pub/src/apis/ManagePubApi.js +70 -102
  119. package/pub/src/apis/ManagePubImageApi.js +18 -28
  120. package/pub/src/apis/SearchPubApi.js +54 -78
  121. package/pub/src/runtime.d.ts +2 -2
  122. package/pub/src/runtime.js +1 -1
  123. package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.js +18 -26
  124. package/recommendation/src/apis/SearchProductPriceRecommendationApi.js +18 -26
  125. package/recommendation/src/apis/SearchProductRecommendationApi.js +18 -26
  126. package/recommendation/src/runtime.d.ts +2 -2
  127. package/recommendation/src/runtime.js +1 -1
  128. package/rfx/src/apis/ManageRfiApi.js +17 -25
  129. package/rfx/src/apis/ManageRfilApi.js +17 -25
  130. package/rfx/src/apis/ManageRfoApi.js +17 -25
  131. package/rfx/src/apis/ManageRfoiApi.js +36 -52
  132. package/rfx/src/apis/SearchRfoiApi.js +18 -26
  133. package/rfx/src/runtime.d.ts +2 -2
  134. package/rfx/src/runtime.js +1 -1
  135. package/sale-offer/src/apis/ManageSaleOfferApi.d.ts +2 -2
  136. package/sale-offer/src/apis/ManageSaleOfferApi.js +107 -155
  137. package/sale-offer/src/apis/SearchSaleOfferApi.js +36 -52
  138. package/sale-offer/src/models/SaleOffer.d.ts +1 -1
  139. package/sale-offer/src/models/SaleOffer.js +1 -1
  140. package/sale-offer/src/models/SaleOfferCreationParameters.d.ts +2 -2
  141. package/sale-offer/src/models/SaleOfferCreationParameters.js +1 -1
  142. package/sale-offer/src/models/SaleOfferJournal.d.ts +1 -1
  143. package/sale-offer/src/models/SaleOfferJournal.js +3 -2
  144. package/sale-offer/src/models/SaleOfferNewVersionParameters.d.ts +1 -1
  145. package/sale-offer/src/models/SaleOfferNewVersionParameters.js +1 -1
  146. package/sale-offer/src/runtime.d.ts +2 -2
  147. package/sale-offer/src/runtime.js +1 -1
  148. package/sale-offer-log/src/apis/SearchSaleOfferLogApi.js +18 -26
  149. package/sale-offer-log/src/runtime.d.ts +2 -2
  150. package/sale-offer-log/src/runtime.js +1 -1
  151. package/servant/src/apis/ManageTaskApi.js +17 -25
  152. package/servant/src/apis/SearchServantApi.js +18 -26
  153. package/servant/src/runtime.d.ts +2 -2
  154. package/servant/src/runtime.js +1 -1
  155. package/shipment/src/apis/ManageOrderCarriageApi.js +18 -26
  156. package/shipment/src/apis/ManageShipmentApi.js +36 -52
  157. package/shipment/src/apis/SearchOrderCarriageApi.js +36 -52
  158. package/shipment/src/runtime.d.ts +2 -2
  159. package/shipment/src/runtime.js +1 -1
  160. package/shopping-cart/src/apis/ManageCartApi.js +36 -52
  161. package/shopping-cart/src/apis/ManageCartSubCartApi.js +53 -77
  162. package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +88 -128
  163. package/shopping-cart/src/runtime.d.ts +2 -2
  164. package/shopping-cart/src/runtime.js +1 -1
  165. package/statistic/src/apis/SearchSaleOfferStatisticsApi.js +36 -52
  166. package/statistic/src/runtime.d.ts +2 -2
  167. package/statistic/src/runtime.js +1 -1
  168. package/subscription/src/apis/ManageSubscriptionApi.js +53 -77
  169. package/subscription/src/apis/ManageSubscriptionPlanApi.js +18 -26
  170. package/subscription/src/apis/SearchSubscriptionApi.js +18 -26
  171. package/subscription/src/apis/SearchSubscriptionPlanApi.js +36 -52
  172. package/subscription/src/apis/SearchSubscriptionPlanFeatureApi.js +18 -26
  173. package/subscription/src/runtime.d.ts +2 -2
  174. package/subscription/src/runtime.js +1 -1
  175. package/thread/src/apis/ManageThreadCommentApi.js +36 -52
  176. package/thread/src/apis/SearchThreadApi.js +18 -26
  177. package/thread/src/apis/SearchThreadCommentApi.js +18 -26
  178. package/thread/src/runtime.d.ts +2 -2
  179. package/thread/src/runtime.js +1 -1
  180. package/ubo/src/apis/ManageUboDeclarationApi.js +18 -26
  181. package/ubo/src/apis/SearchUboDeclarationApi.js +18 -26
  182. package/ubo/src/runtime.d.ts +2 -2
  183. package/ubo/src/runtime.js +1 -1
  184. package/user/src/apis/ManagePasswordApi.js +34 -50
  185. package/user/src/apis/ManageUserApi.js +121 -177
  186. package/user/src/apis/ManageUserBankAccountApi.js +36 -52
  187. package/user/src/apis/ManageUserDocumentApi.js +54 -82
  188. package/user/src/apis/ManageUserFavoriteLaboratoryStoreApi.js +68 -100
  189. package/user/src/apis/ManageUserRestrictionApi.js +136 -200
  190. package/user/src/apis/ManageUserRoleApi.js +18 -26
  191. package/user/src/apis/ManageUserRuleApi.js +35 -51
  192. package/user/src/apis/ManageUserSocialNetworksApi.js +36 -52
  193. package/user/src/apis/ManageUserTransportApi.js +18 -26
  194. package/user/src/apis/SearchUserApi.js +108 -156
  195. package/user/src/apis/SearchUserDocumentApi.js +124 -180
  196. package/user/src/apis/SearchUserFavoriteLaboratoryStoreApi.js +36 -52
  197. package/user/src/apis/SearchUserFeatureApi.js +18 -26
  198. package/user/src/apis/SearchUserRestrictionApi.js +72 -104
  199. package/user/src/apis/SearchUserRuleApi.js +18 -26
  200. package/user/src/apis/SearchUserSocialNetworksApi.js +36 -52
  201. package/user/src/apis/SearchUserTransportApi.js +36 -52
  202. package/user/src/runtime.d.ts +2 -2
  203. package/user/src/runtime.js +1 -1
  204. package/wish/src/apis/ManageWishApi.js +51 -75
  205. package/wish/src/apis/SearchProductEnthusiasmApi.js +18 -26
  206. package/wish/src/apis/SearchWishApi.js +36 -52
  207. package/wish/src/runtime.d.ts +2 -2
  208. package/wish/src/runtime.js +1 -1
@@ -255,47 +255,39 @@ var ManageUserApi = /** @class */ (function (_super) {
255
255
  */
256
256
  ManageUserApi.prototype.deleteCurrentUserRaw = function () {
257
257
  return __awaiter(this, void 0, void 0, function () {
258
- var queryParameters, headerParameters, token, tokenString, _a, response, response_4;
259
- return __generator(this, function (_b) {
260
- switch (_b.label) {
258
+ var queryParameters, headerParameters, token, tokenString, response, response_4;
259
+ return __generator(this, function (_a) {
260
+ switch (_a.label) {
261
261
  case 0:
262
262
  queryParameters = {};
263
263
  headerParameters = {};
264
264
  if (this.configuration && this.configuration.apiKey) {
265
265
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
266
266
  }
267
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
268
- token = this.configuration.accessToken;
269
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
270
- return [4 /*yield*/, token("bearerAuth", [])];
271
- case 1:
272
- _a = _b.sent();
273
- return [3 /*break*/, 3];
274
- case 2:
275
- _a = token;
276
- _b.label = 3;
277
- case 3:
278
- tokenString = _a;
279
- if (tokenString) {
280
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
267
+ if (this.configuration && this.configuration.accessToken) {
268
+ token = this.configuration.accessToken;
269
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
270
+ if (tokenString) {
271
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
272
+ }
281
273
  }
282
- _b.label = 4;
283
- case 4:
284
- _b.trys.push([4, 6, , 7]);
274
+ _a.label = 1;
275
+ case 1:
276
+ _a.trys.push([1, 3, , 4]);
285
277
  return [4 /*yield*/, this.request({
286
278
  path: "/users/me",
287
279
  method: 'DELETE',
288
280
  headers: headerParameters,
289
281
  query: queryParameters,
290
282
  })];
291
- case 5:
292
- response = _b.sent();
283
+ case 2:
284
+ response = _a.sent();
293
285
  return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
294
- case 6:
295
- response_4 = _b.sent();
286
+ case 3:
287
+ response_4 = _a.sent();
296
288
  console.debug(response_4);
297
289
  throw response_4;
298
- case 7: return [2 /*return*/];
290
+ case 4: return [2 /*return*/];
299
291
  }
300
292
  });
301
293
  });
@@ -320,9 +312,9 @@ var ManageUserApi = /** @class */ (function (_super) {
320
312
  */
321
313
  ManageUserApi.prototype.deleteUserRaw = function (requestParameters) {
322
314
  return __awaiter(this, void 0, void 0, function () {
323
- var queryParameters, headerParameters, token, tokenString, _a, response, response_5;
324
- return __generator(this, function (_b) {
325
- switch (_b.label) {
315
+ var queryParameters, headerParameters, token, tokenString, response, response_5;
316
+ return __generator(this, function (_a) {
317
+ switch (_a.label) {
326
318
  case 0:
327
319
  if (requestParameters.userId === null || requestParameters.userId === undefined) {
328
320
  throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling deleteUser.');
@@ -332,38 +324,30 @@ var ManageUserApi = /** @class */ (function (_super) {
332
324
  if (this.configuration && this.configuration.apiKey) {
333
325
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
334
326
  }
335
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
336
- token = this.configuration.accessToken;
337
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
338
- return [4 /*yield*/, token("bearerAuth", [])];
339
- case 1:
340
- _a = _b.sent();
341
- return [3 /*break*/, 3];
342
- case 2:
343
- _a = token;
344
- _b.label = 3;
345
- case 3:
346
- tokenString = _a;
347
- if (tokenString) {
348
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
327
+ if (this.configuration && this.configuration.accessToken) {
328
+ token = this.configuration.accessToken;
329
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
330
+ if (tokenString) {
331
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
332
+ }
349
333
  }
350
- _b.label = 4;
351
- case 4:
352
- _b.trys.push([4, 6, , 7]);
334
+ _a.label = 1;
335
+ case 1:
336
+ _a.trys.push([1, 3, , 4]);
353
337
  return [4 /*yield*/, this.request({
354
338
  path: "/users/{userId}".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters.userId))),
355
339
  method: 'DELETE',
356
340
  headers: headerParameters,
357
341
  query: queryParameters,
358
342
  })];
359
- case 5:
360
- response = _b.sent();
343
+ case 2:
344
+ response = _a.sent();
361
345
  return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
362
- case 6:
363
- response_5 = _b.sent();
346
+ case 3:
347
+ response_5 = _a.sent();
364
348
  console.debug(response_5);
365
349
  throw response_5;
366
- case 7: return [2 /*return*/];
350
+ case 4: return [2 /*return*/];
367
351
  }
368
352
  });
369
353
  });
@@ -389,9 +373,9 @@ var ManageUserApi = /** @class */ (function (_super) {
389
373
  */
390
374
  ManageUserApi.prototype.setCurrentUserHolidayModeEnabledRaw = function (requestParameters) {
391
375
  return __awaiter(this, void 0, void 0, function () {
392
- var queryParameters, headerParameters, token, tokenString, _a, response, response_6;
393
- return __generator(this, function (_b) {
394
- switch (_b.label) {
376
+ var queryParameters, headerParameters, token, tokenString, response, response_6;
377
+ return __generator(this, function (_a) {
378
+ switch (_a.label) {
395
379
  case 0:
396
380
  if (requestParameters.body === null || requestParameters.body === undefined) {
397
381
  throw new runtime_1.RequiredError('body', 'Required parameter requestParameters.body was null or undefined when calling setCurrentUserHolidayModeEnabled.');
@@ -402,24 +386,16 @@ var ManageUserApi = /** @class */ (function (_super) {
402
386
  if (this.configuration && this.configuration.apiKey) {
403
387
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
404
388
  }
405
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
406
- token = this.configuration.accessToken;
407
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
408
- return [4 /*yield*/, token("bearerAuth", [])];
409
- case 1:
410
- _a = _b.sent();
411
- return [3 /*break*/, 3];
412
- case 2:
413
- _a = token;
414
- _b.label = 3;
415
- case 3:
416
- tokenString = _a;
417
- if (tokenString) {
418
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
389
+ if (this.configuration && this.configuration.accessToken) {
390
+ token = this.configuration.accessToken;
391
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
392
+ if (tokenString) {
393
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
394
+ }
419
395
  }
420
- _b.label = 4;
421
- case 4:
422
- _b.trys.push([4, 6, , 7]);
396
+ _a.label = 1;
397
+ case 1:
398
+ _a.trys.push([1, 3, , 4]);
423
399
  return [4 /*yield*/, this.request({
424
400
  path: "/users/me/holiday-mode-enabled",
425
401
  method: 'PUT',
@@ -427,14 +403,14 @@ var ManageUserApi = /** @class */ (function (_super) {
427
403
  query: queryParameters,
428
404
  body: requestParameters.body,
429
405
  })];
430
- case 5:
431
- response = _b.sent();
406
+ case 2:
407
+ response = _a.sent();
432
408
  return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
433
- case 6:
434
- response_6 = _b.sent();
409
+ case 3:
410
+ response_6 = _a.sent();
435
411
  console.debug(response_6);
436
412
  throw response_6;
437
- case 7: return [2 /*return*/];
413
+ case 4: return [2 /*return*/];
438
414
  }
439
415
  });
440
416
  });
@@ -460,9 +436,9 @@ var ManageUserApi = /** @class */ (function (_super) {
460
436
  */
461
437
  ManageUserApi.prototype.setUserCustomCommissionsRaw = function (requestParameters) {
462
438
  return __awaiter(this, void 0, void 0, function () {
463
- var queryParameters, headerParameters, token, tokenString, _a, response, response_7;
464
- return __generator(this, function (_b) {
465
- switch (_b.label) {
439
+ var queryParameters, headerParameters, token, tokenString, response, response_7;
440
+ return __generator(this, function (_a) {
441
+ switch (_a.label) {
466
442
  case 0:
467
443
  if (requestParameters.userId === null || requestParameters.userId === undefined) {
468
444
  throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling setUserCustomCommissions.');
@@ -473,24 +449,16 @@ var ManageUserApi = /** @class */ (function (_super) {
473
449
  if (this.configuration && this.configuration.apiKey) {
474
450
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
475
451
  }
476
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
477
- token = this.configuration.accessToken;
478
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
479
- return [4 /*yield*/, token("bearerAuth", [])];
480
- case 1:
481
- _a = _b.sent();
482
- return [3 /*break*/, 3];
483
- case 2:
484
- _a = token;
485
- _b.label = 3;
486
- case 3:
487
- tokenString = _a;
488
- if (tokenString) {
489
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
452
+ if (this.configuration && this.configuration.accessToken) {
453
+ token = this.configuration.accessToken;
454
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
455
+ if (tokenString) {
456
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
457
+ }
490
458
  }
491
- _b.label = 4;
492
- case 4:
493
- _b.trys.push([4, 6, , 7]);
459
+ _a.label = 1;
460
+ case 1:
461
+ _a.trys.push([1, 3, , 4]);
494
462
  return [4 /*yield*/, this.request({
495
463
  path: "/users/{userId}/custom-commissions".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters.userId))),
496
464
  method: 'PATCH',
@@ -498,14 +466,14 @@ var ManageUserApi = /** @class */ (function (_super) {
498
466
  query: queryParameters,
499
467
  body: (0, models_1.UserCustomCommissionsUpdateParametersToJSON)(requestParameters.userCustomCommissionsUpdateParameters),
500
468
  })];
501
- case 5:
502
- response = _b.sent();
469
+ case 2:
470
+ response = _a.sent();
503
471
  return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
504
- case 6:
505
- response_7 = _b.sent();
472
+ case 3:
473
+ response_7 = _a.sent();
506
474
  console.debug(response_7);
507
475
  throw response_7;
508
- case 7: return [2 /*return*/];
476
+ case 4: return [2 /*return*/];
509
477
  }
510
478
  });
511
479
  });
@@ -531,9 +499,9 @@ var ManageUserApi = /** @class */ (function (_super) {
531
499
  */
532
500
  ManageUserApi.prototype.setUserHolidayModeEnabledRaw = function (requestParameters) {
533
501
  return __awaiter(this, void 0, void 0, function () {
534
- var queryParameters, headerParameters, token, tokenString, _a, response, response_8;
535
- return __generator(this, function (_b) {
536
- switch (_b.label) {
502
+ var queryParameters, headerParameters, token, tokenString, response, response_8;
503
+ return __generator(this, function (_a) {
504
+ switch (_a.label) {
537
505
  case 0:
538
506
  if (requestParameters.userId === null || requestParameters.userId === undefined) {
539
507
  throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling setUserHolidayModeEnabled.');
@@ -547,24 +515,16 @@ var ManageUserApi = /** @class */ (function (_super) {
547
515
  if (this.configuration && this.configuration.apiKey) {
548
516
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
549
517
  }
550
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
551
- token = this.configuration.accessToken;
552
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
553
- return [4 /*yield*/, token("bearerAuth", [])];
554
- case 1:
555
- _a = _b.sent();
556
- return [3 /*break*/, 3];
557
- case 2:
558
- _a = token;
559
- _b.label = 3;
560
- case 3:
561
- tokenString = _a;
562
- if (tokenString) {
563
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
518
+ if (this.configuration && this.configuration.accessToken) {
519
+ token = this.configuration.accessToken;
520
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
521
+ if (tokenString) {
522
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
523
+ }
564
524
  }
565
- _b.label = 4;
566
- case 4:
567
- _b.trys.push([4, 6, , 7]);
525
+ _a.label = 1;
526
+ case 1:
527
+ _a.trys.push([1, 3, , 4]);
568
528
  return [4 /*yield*/, this.request({
569
529
  path: "/users/{userId}/holiday-mode-enabled".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters.userId))),
570
530
  method: 'PUT',
@@ -572,14 +532,14 @@ var ManageUserApi = /** @class */ (function (_super) {
572
532
  query: queryParameters,
573
533
  body: requestParameters.body,
574
534
  })];
575
- case 5:
576
- response = _b.sent();
535
+ case 2:
536
+ response = _a.sent();
577
537
  return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
578
- case 6:
579
- response_8 = _b.sent();
538
+ case 3:
539
+ response_8 = _a.sent();
580
540
  console.debug(response_8);
581
541
  throw response_8;
582
- case 7: return [2 /*return*/];
542
+ case 4: return [2 /*return*/];
583
543
  }
584
544
  });
585
545
  });
@@ -605,9 +565,9 @@ var ManageUserApi = /** @class */ (function (_super) {
605
565
  */
606
566
  ManageUserApi.prototype.updateCurrentUserRaw = function (requestParameters) {
607
567
  return __awaiter(this, void 0, void 0, function () {
608
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_9;
609
- return __generator(this, function (_b) {
610
- switch (_b.label) {
568
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_9;
569
+ return __generator(this, function (_a) {
570
+ switch (_a.label) {
611
571
  case 0:
612
572
  if (requestParameters.userUpdateParameters === null || requestParameters.userUpdateParameters === undefined) {
613
573
  throw new runtime_1.RequiredError('userUpdateParameters', 'Required parameter requestParameters.userUpdateParameters was null or undefined when calling updateCurrentUser.');
@@ -618,24 +578,16 @@ var ManageUserApi = /** @class */ (function (_super) {
618
578
  if (this.configuration && this.configuration.apiKey) {
619
579
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
620
580
  }
621
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
622
- token = this.configuration.accessToken;
623
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
624
- return [4 /*yield*/, token("bearerAuth", [])];
625
- case 1:
626
- _a = _b.sent();
627
- return [3 /*break*/, 3];
628
- case 2:
629
- _a = token;
630
- _b.label = 3;
631
- case 3:
632
- tokenString = _a;
633
- if (tokenString) {
634
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
581
+ if (this.configuration && this.configuration.accessToken) {
582
+ token = this.configuration.accessToken;
583
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
584
+ if (tokenString) {
585
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
586
+ }
635
587
  }
636
- _b.label = 4;
637
- case 4:
638
- _b.trys.push([4, 6, , 7]);
588
+ _a.label = 1;
589
+ case 1:
590
+ _a.trys.push([1, 3, , 4]);
639
591
  return [4 /*yield*/, this.request({
640
592
  path: "/users/me",
641
593
  method: 'PATCH',
@@ -643,8 +595,8 @@ var ManageUserApi = /** @class */ (function (_super) {
643
595
  query: queryParameters,
644
596
  body: (0, models_1.UserUpdateParametersToJSON)(requestParameters.userUpdateParameters),
645
597
  })];
646
- case 5:
647
- response = _b.sent();
598
+ case 2:
599
+ response = _a.sent();
648
600
  contentType = response.headers.get("content-type");
649
601
  if (contentType && contentType.indexOf("application/json") !== -1) {
650
602
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.UserFromJSON)(jsonValue); })];
@@ -656,12 +608,12 @@ var ManageUserApi = /** @class */ (function (_super) {
656
608
  // TODO : Better handling of others application types
657
609
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
658
610
  }
659
- return [3 /*break*/, 7];
660
- case 6:
661
- response_9 = _b.sent();
611
+ return [3 /*break*/, 4];
612
+ case 3:
613
+ response_9 = _a.sent();
662
614
  console.debug(response_9);
663
615
  throw response_9;
664
- case 7: return [2 /*return*/];
616
+ case 4: return [2 /*return*/];
665
617
  }
666
618
  });
667
619
  });
@@ -688,9 +640,9 @@ var ManageUserApi = /** @class */ (function (_super) {
688
640
  */
689
641
  ManageUserApi.prototype.updateUserRaw = function (requestParameters) {
690
642
  return __awaiter(this, void 0, void 0, function () {
691
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_10;
692
- return __generator(this, function (_b) {
693
- switch (_b.label) {
643
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_10;
644
+ return __generator(this, function (_a) {
645
+ switch (_a.label) {
694
646
  case 0:
695
647
  if (requestParameters.userId === null || requestParameters.userId === undefined) {
696
648
  throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling updateUser.');
@@ -704,24 +656,16 @@ var ManageUserApi = /** @class */ (function (_super) {
704
656
  if (this.configuration && this.configuration.apiKey) {
705
657
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
706
658
  }
707
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
708
- token = this.configuration.accessToken;
709
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
710
- return [4 /*yield*/, token("bearerAuth", [])];
711
- case 1:
712
- _a = _b.sent();
713
- return [3 /*break*/, 3];
714
- case 2:
715
- _a = token;
716
- _b.label = 3;
717
- case 3:
718
- tokenString = _a;
719
- if (tokenString) {
720
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
659
+ if (this.configuration && this.configuration.accessToken) {
660
+ token = this.configuration.accessToken;
661
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
662
+ if (tokenString) {
663
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
664
+ }
721
665
  }
722
- _b.label = 4;
723
- case 4:
724
- _b.trys.push([4, 6, , 7]);
666
+ _a.label = 1;
667
+ case 1:
668
+ _a.trys.push([1, 3, , 4]);
725
669
  return [4 /*yield*/, this.request({
726
670
  path: "/users/{userId}".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters.userId))),
727
671
  method: 'PATCH',
@@ -729,8 +673,8 @@ var ManageUserApi = /** @class */ (function (_super) {
729
673
  query: queryParameters,
730
674
  body: (0, models_1.UserUpdateParametersToJSON)(requestParameters.userUpdateParameters),
731
675
  })];
732
- case 5:
733
- response = _b.sent();
676
+ case 2:
677
+ response = _a.sent();
734
678
  contentType = response.headers.get("content-type");
735
679
  if (contentType && contentType.indexOf("application/json") !== -1) {
736
680
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.UserFromJSON)(jsonValue); })];
@@ -742,12 +686,12 @@ var ManageUserApi = /** @class */ (function (_super) {
742
686
  // TODO : Better handling of others application types
743
687
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
744
688
  }
745
- return [3 /*break*/, 7];
746
- case 6:
747
- response_10 = _b.sent();
689
+ return [3 /*break*/, 4];
690
+ case 3:
691
+ response_10 = _a.sent();
748
692
  console.debug(response_10);
749
693
  throw response_10;
750
- case 7: return [2 /*return*/];
694
+ case 4: return [2 /*return*/];
751
695
  }
752
696
  });
753
697
  });
@@ -81,9 +81,9 @@ var ManageUserBankAccountApi = /** @class */ (function (_super) {
81
81
  */
82
82
  ManageUserBankAccountApi.prototype.createOrUpdateCurrentUserBankAccountRaw = function (requestParameters) {
83
83
  return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_1;
85
- return __generator(this, function (_b) {
86
- switch (_b.label) {
84
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
87
  case 0:
88
88
  if (requestParameters.userBankAccountCreationParameters === null || requestParameters.userBankAccountCreationParameters === undefined) {
89
89
  throw new runtime_1.RequiredError('userBankAccountCreationParameters', 'Required parameter requestParameters.userBankAccountCreationParameters was null or undefined when calling createOrUpdateCurrentUserBankAccount.');
@@ -94,24 +94,16 @@ var ManageUserBankAccountApi = /** @class */ (function (_super) {
94
94
  if (this.configuration && this.configuration.apiKey) {
95
95
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
96
96
  }
97
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
98
- token = this.configuration.accessToken;
99
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
100
- return [4 /*yield*/, token("bearerAuth", [])];
101
- case 1:
102
- _a = _b.sent();
103
- return [3 /*break*/, 3];
104
- case 2:
105
- _a = token;
106
- _b.label = 3;
107
- case 3:
108
- tokenString = _a;
109
- if (tokenString) {
110
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
97
+ if (this.configuration && this.configuration.accessToken) {
98
+ token = this.configuration.accessToken;
99
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
100
+ if (tokenString) {
101
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
102
+ }
111
103
  }
112
- _b.label = 4;
113
- case 4:
114
- _b.trys.push([4, 6, , 7]);
104
+ _a.label = 1;
105
+ case 1:
106
+ _a.trys.push([1, 3, , 4]);
115
107
  return [4 /*yield*/, this.request({
116
108
  path: "/users/me/bank-account",
117
109
  method: 'POST',
@@ -119,8 +111,8 @@ var ManageUserBankAccountApi = /** @class */ (function (_super) {
119
111
  query: queryParameters,
120
112
  body: (0, models_1.UserBankAccountCreationParametersToJSON)(requestParameters.userBankAccountCreationParameters),
121
113
  })];
122
- case 5:
123
- response = _b.sent();
114
+ case 2:
115
+ response = _a.sent();
124
116
  contentType = response.headers.get("content-type");
125
117
  if (contentType && contentType.indexOf("application/json") !== -1) {
126
118
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.UserBankAccountLinkFromJSON)(jsonValue); })];
@@ -132,12 +124,12 @@ var ManageUserBankAccountApi = /** @class */ (function (_super) {
132
124
  // TODO : Better handling of others application types
133
125
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
134
126
  }
135
- return [3 /*break*/, 7];
136
- case 6:
137
- response_1 = _b.sent();
127
+ return [3 /*break*/, 4];
128
+ case 3:
129
+ response_1 = _a.sent();
138
130
  console.debug(response_1);
139
131
  throw response_1;
140
- case 7: return [2 /*return*/];
132
+ case 4: return [2 /*return*/];
141
133
  }
142
134
  });
143
135
  });
@@ -166,9 +158,9 @@ var ManageUserBankAccountApi = /** @class */ (function (_super) {
166
158
  */
167
159
  ManageUserBankAccountApi.prototype.createOrUpdateUserBankAccountRaw = function (requestParameters) {
168
160
  return __awaiter(this, void 0, void 0, function () {
169
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_2;
170
- return __generator(this, function (_b) {
171
- switch (_b.label) {
161
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
162
+ return __generator(this, function (_a) {
163
+ switch (_a.label) {
172
164
  case 0:
173
165
  if (requestParameters.userId === null || requestParameters.userId === undefined) {
174
166
  throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling createOrUpdateUserBankAccount.');
@@ -182,24 +174,16 @@ var ManageUserBankAccountApi = /** @class */ (function (_super) {
182
174
  if (this.configuration && this.configuration.apiKey) {
183
175
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
184
176
  }
185
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
186
- token = this.configuration.accessToken;
187
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
188
- return [4 /*yield*/, token("bearerAuth", [])];
189
- case 1:
190
- _a = _b.sent();
191
- return [3 /*break*/, 3];
192
- case 2:
193
- _a = token;
194
- _b.label = 3;
195
- case 3:
196
- tokenString = _a;
197
- if (tokenString) {
198
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
177
+ if (this.configuration && this.configuration.accessToken) {
178
+ token = this.configuration.accessToken;
179
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
180
+ if (tokenString) {
181
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
182
+ }
199
183
  }
200
- _b.label = 4;
201
- case 4:
202
- _b.trys.push([4, 6, , 7]);
184
+ _a.label = 1;
185
+ case 1:
186
+ _a.trys.push([1, 3, , 4]);
203
187
  return [4 /*yield*/, this.request({
204
188
  path: "/users/{userId}/bank-account".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters.userId))),
205
189
  method: 'POST',
@@ -207,8 +191,8 @@ var ManageUserBankAccountApi = /** @class */ (function (_super) {
207
191
  query: queryParameters,
208
192
  body: (0, models_1.UserBankAccountCreationParametersToJSON)(requestParameters.userBankAccountCreationParameters),
209
193
  })];
210
- case 5:
211
- response = _b.sent();
194
+ case 2:
195
+ response = _a.sent();
212
196
  contentType = response.headers.get("content-type");
213
197
  if (contentType && contentType.indexOf("application/json") !== -1) {
214
198
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.UserBankAccountLinkFromJSON)(jsonValue); })];
@@ -220,12 +204,12 @@ var ManageUserBankAccountApi = /** @class */ (function (_super) {
220
204
  // TODO : Better handling of others application types
221
205
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
222
206
  }
223
- return [3 /*break*/, 7];
224
- case 6:
225
- response_2 = _b.sent();
207
+ return [3 /*break*/, 4];
208
+ case 3:
209
+ response_2 = _a.sent();
226
210
  console.debug(response_2);
227
211
  throw response_2;
228
- case 7: return [2 /*return*/];
212
+ case 4: return [2 /*return*/];
229
213
  }
230
214
  });
231
215
  });