@lcdp/api-react-rest-client 2.5.5 → 2.5.6-LDS-3247-OrderStatusReason-default-value.6824011887

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 (223) 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/models/NotificationTypeId.d.ts +2 -0
  88. package/notification/src/models/NotificationTypeId.js +2 -0
  89. package/notification/src/runtime.d.ts +2 -2
  90. package/notification/src/runtime.js +1 -1
  91. package/order/src/apis/ManageMetaOrderApi.js +51 -35
  92. package/order/src/apis/ManageOrderApi.d.ts +6 -17
  93. package/order/src/apis/ManageOrderApi.js +210 -221
  94. package/order/src/apis/ManageOrderItemApi.d.ts +4 -4
  95. package/order/src/apis/ManageOrderItemApi.js +132 -92
  96. package/order/src/apis/SearchOrderApi.js +104 -72
  97. package/order/src/apis/SearchOrderItemApi.d.ts +2 -0
  98. package/order/src/apis/SearchOrderItemApi.js +132 -90
  99. package/order/src/models/Order.d.ts +14 -1
  100. package/order/src/models/Order.js +5 -0
  101. package/order/src/models/OrderJournal.d.ts +13 -0
  102. package/order/src/models/OrderJournal.js +6 -0
  103. package/order/src/models/OrderStatus.d.ts +4 -2
  104. package/order/src/models/OrderStatus.js +4 -2
  105. package/order/src/models/OrderStatusReason.d.ts +24 -0
  106. package/order/src/models/OrderStatusReason.js +39 -0
  107. package/order/src/models/OrderUpdateParameters.d.ts +20 -0
  108. package/order/src/models/OrderUpdateParameters.js +8 -0
  109. package/order/src/models/UpdateOrderStatusParameters.d.ts +3 -5
  110. package/order/src/models/UpdateOrderStatusParameters.js +2 -4
  111. package/order/src/models/index.d.ts +1 -0
  112. package/order/src/models/index.js +1 -0
  113. package/order/src/runtime.d.ts +2 -2
  114. package/order/src/runtime.js +1 -1
  115. package/order-log/src/apis/SearchOrderLogApi.js +26 -18
  116. package/order-log/src/models/OrderLog.d.ts +19 -0
  117. package/order-log/src/models/OrderLog.js +3 -2
  118. package/order-log/src/models/OrderLogAllOf.d.ts +19 -0
  119. package/order-log/src/models/OrderLogAllOf.js +7 -0
  120. package/order-log/src/models/OrderStatusReason.d.ts +24 -0
  121. package/order-log/src/models/OrderStatusReason.js +39 -0
  122. package/order-log/src/models/index.d.ts +1 -0
  123. package/order-log/src/models/index.js +1 -0
  124. package/order-log/src/runtime.d.ts +2 -2
  125. package/order-log/src/runtime.js +1 -1
  126. package/outrage-message/src/apis/ManageOutrageMessageApi.js +77 -53
  127. package/outrage-message/src/apis/SearchOutrageMessageApi.js +52 -36
  128. package/outrage-message/src/runtime.d.ts +2 -2
  129. package/outrage-message/src/runtime.js +1 -1
  130. package/package.json +1 -1
  131. package/product/src/apis/ManageProductApi.js +52 -36
  132. package/product/src/apis/ManageProductImageApi.js +52 -34
  133. package/product/src/apis/ManageProductProscriptionApi.js +51 -35
  134. package/product/src/apis/SearchProductApi.js +52 -36
  135. package/product/src/apis/SearchProductImageApi.js +52 -36
  136. package/product/src/apis/SearchProductMetadataApi.js +104 -72
  137. package/product/src/apis/SearchProductProscriptionApi.js +26 -18
  138. package/product/src/runtime.d.ts +2 -2
  139. package/product/src/runtime.js +1 -1
  140. package/pub/src/apis/ManagePubApi.js +102 -70
  141. package/pub/src/apis/ManagePubImageApi.js +28 -18
  142. package/pub/src/apis/SearchPubApi.js +78 -54
  143. package/pub/src/runtime.d.ts +2 -2
  144. package/pub/src/runtime.js +1 -1
  145. package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.js +26 -18
  146. package/recommendation/src/apis/SearchProductPriceRecommendationApi.js +26 -18
  147. package/recommendation/src/apis/SearchProductRecommendationApi.js +26 -18
  148. package/recommendation/src/runtime.d.ts +2 -2
  149. package/recommendation/src/runtime.js +1 -1
  150. package/rfx/src/apis/ManageRfiApi.js +25 -17
  151. package/rfx/src/apis/ManageRfilApi.js +25 -17
  152. package/rfx/src/apis/ManageRfoApi.js +25 -17
  153. package/rfx/src/apis/ManageRfoiApi.js +52 -36
  154. package/rfx/src/apis/SearchRfoiApi.js +26 -18
  155. package/rfx/src/runtime.d.ts +2 -2
  156. package/rfx/src/runtime.js +1 -1
  157. package/sale-offer/src/apis/ManageSaleOfferApi.js +153 -105
  158. package/sale-offer/src/apis/SearchSaleOfferApi.js +52 -36
  159. package/sale-offer/src/runtime.d.ts +2 -2
  160. package/sale-offer/src/runtime.js +1 -1
  161. package/sale-offer-log/src/apis/SearchSaleOfferLogApi.js +26 -18
  162. package/sale-offer-log/src/runtime.d.ts +2 -2
  163. package/sale-offer-log/src/runtime.js +1 -1
  164. package/servant/src/apis/ManageTaskApi.js +25 -17
  165. package/servant/src/apis/SearchServantApi.js +26 -18
  166. package/servant/src/runtime.d.ts +2 -2
  167. package/servant/src/runtime.js +1 -1
  168. package/shipment/src/apis/ManageOrderCarriageApi.js +26 -18
  169. package/shipment/src/apis/ManageShipmentApi.js +52 -36
  170. package/shipment/src/apis/SearchOrderCarriageApi.js +52 -36
  171. package/shipment/src/runtime.d.ts +2 -2
  172. package/shipment/src/runtime.js +1 -1
  173. package/shopping-cart/src/apis/ManageCartApi.js +52 -36
  174. package/shopping-cart/src/apis/ManageCartSubCartApi.js +77 -53
  175. package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +128 -88
  176. package/shopping-cart/src/runtime.d.ts +2 -2
  177. package/shopping-cart/src/runtime.js +1 -1
  178. package/statistic/src/apis/SearchSaleOfferStatisticsApi.js +52 -36
  179. package/statistic/src/runtime.d.ts +2 -2
  180. package/statistic/src/runtime.js +1 -1
  181. package/subscription/src/apis/ManageSubscriptionApi.js +77 -53
  182. package/subscription/src/apis/ManageSubscriptionPlanApi.js +26 -18
  183. package/subscription/src/apis/SearchSubscriptionApi.js +26 -18
  184. package/subscription/src/apis/SearchSubscriptionPlanApi.js +52 -36
  185. package/subscription/src/apis/SearchSubscriptionPlanFeatureApi.js +26 -18
  186. package/subscription/src/runtime.d.ts +2 -2
  187. package/subscription/src/runtime.js +1 -1
  188. package/thread/src/apis/ManageThreadCommentApi.js +52 -36
  189. package/thread/src/apis/SearchThreadApi.js +26 -18
  190. package/thread/src/apis/SearchThreadCommentApi.js +26 -18
  191. package/thread/src/runtime.d.ts +2 -2
  192. package/thread/src/runtime.js +1 -1
  193. package/ubo/src/apis/ManageUboDeclarationApi.js +26 -18
  194. package/ubo/src/apis/SearchUboDeclarationApi.js +26 -18
  195. package/ubo/src/runtime.d.ts +2 -2
  196. package/ubo/src/runtime.js +1 -1
  197. package/user/src/apis/ManagePasswordApi.js +50 -34
  198. package/user/src/apis/ManageUserApi.js +177 -121
  199. package/user/src/apis/ManageUserBankAccountApi.js +52 -36
  200. package/user/src/apis/ManageUserDocumentApi.js +82 -54
  201. package/user/src/apis/ManageUserFavoriteLaboratoryStoreApi.js +100 -68
  202. package/user/src/apis/ManageUserRestrictionApi.js +200 -136
  203. package/user/src/apis/ManageUserRoleApi.js +26 -18
  204. package/user/src/apis/ManageUserRuleApi.js +51 -35
  205. package/user/src/apis/ManageUserSocialNetworksApi.js +52 -36
  206. package/user/src/apis/ManageUserTransportApi.js +26 -18
  207. package/user/src/apis/SearchUserApi.js +156 -108
  208. package/user/src/apis/SearchUserDocumentApi.js +180 -124
  209. package/user/src/apis/SearchUserFavoriteLaboratoryStoreApi.js +52 -36
  210. package/user/src/apis/SearchUserFeatureApi.js +26 -18
  211. package/user/src/apis/SearchUserRestrictionApi.js +104 -72
  212. package/user/src/apis/SearchUserRuleApi.js +26 -18
  213. package/user/src/apis/SearchUserSocialNetworksApi.js +52 -36
  214. package/user/src/apis/SearchUserTransportApi.js +52 -36
  215. package/user/src/models/NotificationTypeId.d.ts +2 -0
  216. package/user/src/models/NotificationTypeId.js +2 -0
  217. package/user/src/runtime.d.ts +2 -2
  218. package/user/src/runtime.js +1 -1
  219. package/wish/src/apis/ManageWishApi.js +75 -51
  220. package/wish/src/apis/SearchProductEnthusiasmApi.js +26 -18
  221. package/wish/src/apis/SearchWishApi.js +52 -36
  222. package/wish/src/runtime.d.ts +2 -2
  223. package/wish/src/runtime.js +1 -1
@@ -80,9 +80,9 @@ var ManagePasswordApi = /** @class */ (function (_super) {
80
80
  */
81
81
  ManagePasswordApi.prototype.setCurrentUserPasswordRaw = function (requestParameters) {
82
82
  return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, token, tokenString, response, response_1;
84
- return __generator(this, function (_a) {
85
- switch (_a.label) {
83
+ var queryParameters, headerParameters, token, tokenString, _a, response, response_1;
84
+ return __generator(this, function (_b) {
85
+ switch (_b.label) {
86
86
  case 0:
87
87
  queryParameters = {};
88
88
  headerParameters = {};
@@ -90,16 +90,24 @@ var ManagePasswordApi = /** @class */ (function (_super) {
90
90
  if (this.configuration && this.configuration.apiKey) {
91
91
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
92
92
  }
93
- if (this.configuration && this.configuration.accessToken) {
94
- token = this.configuration.accessToken;
95
- tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
96
- if (tokenString) {
97
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
98
- }
99
- }
100
- _a.label = 1;
93
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
94
+ token = this.configuration.accessToken;
95
+ if (!(typeof token === 'function')) return [3 /*break*/, 2];
96
+ return [4 /*yield*/, token("bearerAuth", [])];
101
97
  case 1:
102
- _a.trys.push([1, 3, , 4]);
98
+ _a = _b.sent();
99
+ return [3 /*break*/, 3];
100
+ case 2:
101
+ _a = token;
102
+ _b.label = 3;
103
+ case 3:
104
+ tokenString = _a;
105
+ if (tokenString) {
106
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
107
+ }
108
+ _b.label = 4;
109
+ case 4:
110
+ _b.trys.push([4, 6, , 7]);
103
111
  return [4 /*yield*/, this.request({
104
112
  path: "/users/me/password",
105
113
  method: 'PUT',
@@ -107,14 +115,14 @@ var ManagePasswordApi = /** @class */ (function (_super) {
107
115
  query: queryParameters,
108
116
  body: (0, models_1.MyPasswordUpdateParametersToJSON)(requestParameters.myPasswordUpdateParameters),
109
117
  })];
110
- case 2:
111
- response = _a.sent();
118
+ case 5:
119
+ response = _b.sent();
112
120
  return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
113
- case 3:
114
- response_1 = _a.sent();
121
+ case 6:
122
+ response_1 = _b.sent();
115
123
  console.debug(response_1);
116
124
  throw response_1;
117
- case 4: return [2 /*return*/];
125
+ case 7: return [2 /*return*/];
118
126
  }
119
127
  });
120
128
  });
@@ -139,9 +147,9 @@ var ManagePasswordApi = /** @class */ (function (_super) {
139
147
  */
140
148
  ManagePasswordApi.prototype.setUserPasswordRaw = function (requestParameters) {
141
149
  return __awaiter(this, void 0, void 0, function () {
142
- var queryParameters, headerParameters, token, tokenString, response, response_2;
143
- return __generator(this, function (_a) {
144
- switch (_a.label) {
150
+ var queryParameters, headerParameters, token, tokenString, _a, response, response_2;
151
+ return __generator(this, function (_b) {
152
+ switch (_b.label) {
145
153
  case 0:
146
154
  if (requestParameters.userId === null || requestParameters.userId === undefined) {
147
155
  throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling setUserPassword.');
@@ -152,16 +160,24 @@ var ManagePasswordApi = /** @class */ (function (_super) {
152
160
  if (this.configuration && this.configuration.apiKey) {
153
161
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
154
162
  }
155
- if (this.configuration && this.configuration.accessToken) {
156
- token = this.configuration.accessToken;
157
- tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
158
- if (tokenString) {
159
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
160
- }
161
- }
162
- _a.label = 1;
163
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
164
+ token = this.configuration.accessToken;
165
+ if (!(typeof token === 'function')) return [3 /*break*/, 2];
166
+ return [4 /*yield*/, token("bearerAuth", [])];
163
167
  case 1:
164
- _a.trys.push([1, 3, , 4]);
168
+ _a = _b.sent();
169
+ return [3 /*break*/, 3];
170
+ case 2:
171
+ _a = token;
172
+ _b.label = 3;
173
+ case 3:
174
+ tokenString = _a;
175
+ if (tokenString) {
176
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
177
+ }
178
+ _b.label = 4;
179
+ case 4:
180
+ _b.trys.push([4, 6, , 7]);
165
181
  return [4 /*yield*/, this.request({
166
182
  path: "/users/{userId}/password".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters.userId))),
167
183
  method: 'PUT',
@@ -169,14 +185,14 @@ var ManagePasswordApi = /** @class */ (function (_super) {
169
185
  query: queryParameters,
170
186
  body: (0, models_1.SomeonePasswordUpdateParametersToJSON)(requestParameters.someonePasswordUpdateParameters),
171
187
  })];
172
- case 2:
173
- response = _a.sent();
188
+ case 5:
189
+ response = _b.sent();
174
190
  return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
175
- case 3:
176
- response_2 = _a.sent();
191
+ case 6:
192
+ response_2 = _b.sent();
177
193
  console.debug(response_2);
178
194
  throw response_2;
179
- case 4: return [2 /*return*/];
195
+ case 7: return [2 /*return*/];
180
196
  }
181
197
  });
182
198
  });
@@ -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
  });