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

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