@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
@@ -81,9 +81,9 @@ var ManageOrderApi = /** @class */ (function (_super) {
81
81
  */
82
82
  ManageOrderApi.prototype.createOrderRaw = 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.from === null || requestParameters.from === undefined) {
89
89
  throw new runtime_1.RequiredError('from', 'Required parameter requestParameters.from was null or undefined when calling createOrder.');
@@ -96,32 +96,24 @@ var ManageOrderApi = /** @class */ (function (_super) {
96
96
  if (this.configuration && this.configuration.apiKey) {
97
97
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
98
98
  }
99
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
100
- token = this.configuration.accessToken;
101
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
102
- return [4 /*yield*/, token("bearerAuth", [])];
103
- case 1:
104
- _a = _b.sent();
105
- return [3 /*break*/, 3];
106
- case 2:
107
- _a = token;
108
- _b.label = 3;
109
- case 3:
110
- tokenString = _a;
111
- if (tokenString) {
112
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
99
+ if (this.configuration && this.configuration.accessToken) {
100
+ token = this.configuration.accessToken;
101
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
102
+ if (tokenString) {
103
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
104
+ }
113
105
  }
114
- _b.label = 4;
115
- case 4:
116
- _b.trys.push([4, 6, , 7]);
106
+ _a.label = 1;
107
+ case 1:
108
+ _a.trys.push([1, 3, , 4]);
117
109
  return [4 /*yield*/, this.request({
118
110
  path: "/orders",
119
111
  method: 'POST',
120
112
  headers: headerParameters,
121
113
  query: queryParameters,
122
114
  })];
123
- case 5:
124
- response = _b.sent();
115
+ case 2:
116
+ response = _a.sent();
125
117
  contentType = response.headers.get("content-type");
126
118
  if (contentType && contentType.indexOf("application/json") !== -1) {
127
119
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.OrderFromJSON)(jsonValue); })];
@@ -133,12 +125,12 @@ var ManageOrderApi = /** @class */ (function (_super) {
133
125
  // TODO : Better handling of others application types
134
126
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
135
127
  }
136
- return [3 /*break*/, 7];
137
- case 6:
138
- response_1 = _b.sent();
128
+ return [3 /*break*/, 4];
129
+ case 3:
130
+ response_1 = _a.sent();
139
131
  console.debug(response_1);
140
132
  throw response_1;
141
- case 7: return [2 /*return*/];
133
+ case 4: return [2 /*return*/];
142
134
  }
143
135
  });
144
136
  });
@@ -167,9 +159,9 @@ var ManageOrderApi = /** @class */ (function (_super) {
167
159
  */
168
160
  ManageOrderApi.prototype.setOrderAcceptedRaw = function (requestParameters) {
169
161
  return __awaiter(this, void 0, void 0, function () {
170
- var queryParameters, headerParameters, token, tokenString, _a, response, response_2;
171
- return __generator(this, function (_b) {
172
- switch (_b.label) {
162
+ var queryParameters, headerParameters, token, tokenString, response, response_2;
163
+ return __generator(this, function (_a) {
164
+ switch (_a.label) {
173
165
  case 0:
174
166
  if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
175
167
  throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling setOrderAccepted.');
@@ -183,24 +175,16 @@ var ManageOrderApi = /** @class */ (function (_super) {
183
175
  if (this.configuration && this.configuration.apiKey) {
184
176
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
185
177
  }
186
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
187
- token = this.configuration.accessToken;
188
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
189
- return [4 /*yield*/, token("bearerAuth", [])];
190
- case 1:
191
- _a = _b.sent();
192
- return [3 /*break*/, 3];
193
- case 2:
194
- _a = token;
195
- _b.label = 3;
196
- case 3:
197
- tokenString = _a;
198
- if (tokenString) {
199
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
178
+ if (this.configuration && this.configuration.accessToken) {
179
+ token = this.configuration.accessToken;
180
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
181
+ if (tokenString) {
182
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
183
+ }
200
184
  }
201
- _b.label = 4;
202
- case 4:
203
- _b.trys.push([4, 6, , 7]);
185
+ _a.label = 1;
186
+ case 1:
187
+ _a.trys.push([1, 3, , 4]);
204
188
  return [4 /*yield*/, this.request({
205
189
  path: "/orders/{orderReference}/accepted".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))),
206
190
  method: 'PUT',
@@ -208,14 +192,14 @@ var ManageOrderApi = /** @class */ (function (_super) {
208
192
  query: queryParameters,
209
193
  body: requestParameters.body,
210
194
  })];
211
- case 5:
212
- response = _b.sent();
195
+ case 2:
196
+ response = _a.sent();
213
197
  return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
214
- case 6:
215
- response_2 = _b.sent();
198
+ case 3:
199
+ response_2 = _a.sent();
216
200
  console.debug(response_2);
217
201
  throw response_2;
218
- case 7: return [2 /*return*/];
202
+ case 4: return [2 /*return*/];
219
203
  }
220
204
  });
221
205
  });
@@ -242,9 +226,9 @@ var ManageOrderApi = /** @class */ (function (_super) {
242
226
  */
243
227
  ManageOrderApi.prototype.setOrderDeliveryConfirmedRaw = function (requestParameters) {
244
228
  return __awaiter(this, void 0, void 0, function () {
245
- var queryParameters, headerParameters, token, tokenString, _a, response, response_3;
246
- return __generator(this, function (_b) {
247
- switch (_b.label) {
229
+ var queryParameters, headerParameters, token, tokenString, response, response_3;
230
+ return __generator(this, function (_a) {
231
+ switch (_a.label) {
248
232
  case 0:
249
233
  if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
250
234
  throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling setOrderDeliveryConfirmed.');
@@ -258,24 +242,16 @@ var ManageOrderApi = /** @class */ (function (_super) {
258
242
  if (this.configuration && this.configuration.apiKey) {
259
243
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
260
244
  }
261
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
262
- token = this.configuration.accessToken;
263
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
264
- return [4 /*yield*/, token("bearerAuth", [])];
265
- case 1:
266
- _a = _b.sent();
267
- return [3 /*break*/, 3];
268
- case 2:
269
- _a = token;
270
- _b.label = 3;
271
- case 3:
272
- tokenString = _a;
273
- if (tokenString) {
274
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
245
+ if (this.configuration && this.configuration.accessToken) {
246
+ token = this.configuration.accessToken;
247
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
248
+ if (tokenString) {
249
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
250
+ }
275
251
  }
276
- _b.label = 4;
277
- case 4:
278
- _b.trys.push([4, 6, , 7]);
252
+ _a.label = 1;
253
+ case 1:
254
+ _a.trys.push([1, 3, , 4]);
279
255
  return [4 /*yield*/, this.request({
280
256
  path: "/orders/{orderReference}/delivery-confirmed".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))),
281
257
  method: 'PUT',
@@ -283,14 +259,14 @@ var ManageOrderApi = /** @class */ (function (_super) {
283
259
  query: queryParameters,
284
260
  body: requestParameters.body,
285
261
  })];
286
- case 5:
287
- response = _b.sent();
262
+ case 2:
263
+ response = _a.sent();
288
264
  return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
289
- case 6:
290
- response_3 = _b.sent();
265
+ case 3:
266
+ response_3 = _a.sent();
291
267
  console.debug(response_3);
292
268
  throw response_3;
293
- case 7: return [2 /*return*/];
269
+ case 4: return [2 /*return*/];
294
270
  }
295
271
  });
296
272
  });
@@ -317,9 +293,9 @@ var ManageOrderApi = /** @class */ (function (_super) {
317
293
  */
318
294
  ManageOrderApi.prototype.setOrderInLitigationRaw = function (requestParameters) {
319
295
  return __awaiter(this, void 0, void 0, function () {
320
- var queryParameters, headerParameters, token, tokenString, _a, response, response_4;
321
- return __generator(this, function (_b) {
322
- switch (_b.label) {
296
+ var queryParameters, headerParameters, token, tokenString, response, response_4;
297
+ return __generator(this, function (_a) {
298
+ switch (_a.label) {
323
299
  case 0:
324
300
  if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
325
301
  throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling setOrderInLitigation.');
@@ -333,24 +309,16 @@ var ManageOrderApi = /** @class */ (function (_super) {
333
309
  if (this.configuration && this.configuration.apiKey) {
334
310
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
335
311
  }
336
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
337
- token = this.configuration.accessToken;
338
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
339
- return [4 /*yield*/, token("bearerAuth", [])];
340
- case 1:
341
- _a = _b.sent();
342
- return [3 /*break*/, 3];
343
- case 2:
344
- _a = token;
345
- _b.label = 3;
346
- case 3:
347
- tokenString = _a;
348
- if (tokenString) {
349
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
312
+ if (this.configuration && this.configuration.accessToken) {
313
+ token = this.configuration.accessToken;
314
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
315
+ if (tokenString) {
316
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
317
+ }
350
318
  }
351
- _b.label = 4;
352
- case 4:
353
- _b.trys.push([4, 6, , 7]);
319
+ _a.label = 1;
320
+ case 1:
321
+ _a.trys.push([1, 3, , 4]);
354
322
  return [4 /*yield*/, this.request({
355
323
  path: "/orders/{orderReference}/in-litigation".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))),
356
324
  method: 'PUT',
@@ -358,14 +326,14 @@ var ManageOrderApi = /** @class */ (function (_super) {
358
326
  query: queryParameters,
359
327
  body: requestParameters.body,
360
328
  })];
361
- case 5:
362
- response = _b.sent();
329
+ case 2:
330
+ response = _a.sent();
363
331
  return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
364
- case 6:
365
- response_4 = _b.sent();
332
+ case 3:
333
+ response_4 = _a.sent();
366
334
  console.debug(response_4);
367
335
  throw response_4;
368
- case 7: return [2 /*return*/];
336
+ case 4: return [2 /*return*/];
369
337
  }
370
338
  });
371
339
  });
@@ -392,9 +360,9 @@ var ManageOrderApi = /** @class */ (function (_super) {
392
360
  */
393
361
  ManageOrderApi.prototype.setOrderPausedRaw = function (requestParameters) {
394
362
  return __awaiter(this, void 0, void 0, function () {
395
- var queryParameters, headerParameters, token, tokenString, _a, response, response_5;
396
- return __generator(this, function (_b) {
397
- switch (_b.label) {
363
+ var queryParameters, headerParameters, token, tokenString, response, response_5;
364
+ return __generator(this, function (_a) {
365
+ switch (_a.label) {
398
366
  case 0:
399
367
  if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
400
368
  throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling setOrderPaused.');
@@ -408,24 +376,16 @@ var ManageOrderApi = /** @class */ (function (_super) {
408
376
  if (this.configuration && this.configuration.apiKey) {
409
377
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
410
378
  }
411
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
412
- token = this.configuration.accessToken;
413
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
414
- return [4 /*yield*/, token("bearerAuth", [])];
415
- case 1:
416
- _a = _b.sent();
417
- return [3 /*break*/, 3];
418
- case 2:
419
- _a = token;
420
- _b.label = 3;
421
- case 3:
422
- tokenString = _a;
423
- if (tokenString) {
424
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
379
+ if (this.configuration && this.configuration.accessToken) {
380
+ token = this.configuration.accessToken;
381
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
382
+ if (tokenString) {
383
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
384
+ }
425
385
  }
426
- _b.label = 4;
427
- case 4:
428
- _b.trys.push([4, 6, , 7]);
386
+ _a.label = 1;
387
+ case 1:
388
+ _a.trys.push([1, 3, , 4]);
429
389
  return [4 /*yield*/, this.request({
430
390
  path: "/orders/{orderReference}/paused".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))),
431
391
  method: 'PUT',
@@ -433,14 +393,14 @@ var ManageOrderApi = /** @class */ (function (_super) {
433
393
  query: queryParameters,
434
394
  body: requestParameters.body,
435
395
  })];
436
- case 5:
437
- response = _b.sent();
396
+ case 2:
397
+ response = _a.sent();
438
398
  return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
439
- case 6:
440
- response_5 = _b.sent();
399
+ case 3:
400
+ response_5 = _a.sent();
441
401
  console.debug(response_5);
442
402
  throw response_5;
443
- case 7: return [2 /*return*/];
403
+ case 4: return [2 /*return*/];
444
404
  }
445
405
  });
446
406
  });
@@ -466,9 +426,9 @@ var ManageOrderApi = /** @class */ (function (_super) {
466
426
  */
467
427
  ManageOrderApi.prototype.updateOrderRaw = function (requestParameters) {
468
428
  return __awaiter(this, void 0, void 0, function () {
469
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_6;
470
- return __generator(this, function (_b) {
471
- switch (_b.label) {
429
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_6;
430
+ return __generator(this, function (_a) {
431
+ switch (_a.label) {
472
432
  case 0:
473
433
  if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
474
434
  throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling updateOrder.');
@@ -479,24 +439,16 @@ var ManageOrderApi = /** @class */ (function (_super) {
479
439
  if (this.configuration && this.configuration.apiKey) {
480
440
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
481
441
  }
482
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
483
- token = this.configuration.accessToken;
484
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
485
- return [4 /*yield*/, token("bearerAuth", [])];
486
- case 1:
487
- _a = _b.sent();
488
- return [3 /*break*/, 3];
489
- case 2:
490
- _a = token;
491
- _b.label = 3;
492
- case 3:
493
- tokenString = _a;
494
- if (tokenString) {
495
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
442
+ if (this.configuration && this.configuration.accessToken) {
443
+ token = this.configuration.accessToken;
444
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
445
+ if (tokenString) {
446
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
447
+ }
496
448
  }
497
- _b.label = 4;
498
- case 4:
499
- _b.trys.push([4, 6, , 7]);
449
+ _a.label = 1;
450
+ case 1:
451
+ _a.trys.push([1, 3, , 4]);
500
452
  return [4 /*yield*/, this.request({
501
453
  path: "/orders/{orderReference}".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))),
502
454
  method: 'PATCH',
@@ -504,8 +456,8 @@ var ManageOrderApi = /** @class */ (function (_super) {
504
456
  query: queryParameters,
505
457
  body: (0, models_1.OrderUpdateParametersToJSON)(requestParameters.orderUpdateParameters),
506
458
  })];
507
- case 5:
508
- response = _b.sent();
459
+ case 2:
460
+ response = _a.sent();
509
461
  contentType = response.headers.get("content-type");
510
462
  if (contentType && contentType.indexOf("application/json") !== -1) {
511
463
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.OrderFromJSON)(jsonValue); })];
@@ -517,12 +469,12 @@ var ManageOrderApi = /** @class */ (function (_super) {
517
469
  // TODO : Better handling of others application types
518
470
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
519
471
  }
520
- return [3 /*break*/, 7];
521
- case 6:
522
- response_6 = _b.sent();
472
+ return [3 /*break*/, 4];
473
+ case 3:
474
+ response_6 = _a.sent();
523
475
  console.debug(response_6);
524
476
  throw response_6;
525
- case 7: return [2 /*return*/];
477
+ case 4: return [2 /*return*/];
526
478
  }
527
479
  });
528
480
  });
@@ -549,9 +501,9 @@ var ManageOrderApi = /** @class */ (function (_super) {
549
501
  */
550
502
  ManageOrderApi.prototype.updateOrderAnomaliesRaw = function (requestParameters) {
551
503
  return __awaiter(this, void 0, void 0, function () {
552
- var queryParameters, headerParameters, token, tokenString, _a, response, response_7;
553
- return __generator(this, function (_b) {
554
- switch (_b.label) {
504
+ var queryParameters, headerParameters, token, tokenString, response, response_7;
505
+ return __generator(this, function (_a) {
506
+ switch (_a.label) {
555
507
  case 0:
556
508
  if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
557
509
  throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling updateOrderAnomalies.');
@@ -565,24 +517,16 @@ var ManageOrderApi = /** @class */ (function (_super) {
565
517
  if (this.configuration && this.configuration.apiKey) {
566
518
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
567
519
  }
568
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
569
- token = this.configuration.accessToken;
570
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
571
- return [4 /*yield*/, token("bearerAuth", [])];
572
- case 1:
573
- _a = _b.sent();
574
- return [3 /*break*/, 3];
575
- case 2:
576
- _a = token;
577
- _b.label = 3;
578
- case 3:
579
- tokenString = _a;
580
- if (tokenString) {
581
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
520
+ if (this.configuration && this.configuration.accessToken) {
521
+ token = this.configuration.accessToken;
522
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
523
+ if (tokenString) {
524
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
525
+ }
582
526
  }
583
- _b.label = 4;
584
- case 4:
585
- _b.trys.push([4, 6, , 7]);
527
+ _a.label = 1;
528
+ case 1:
529
+ _a.trys.push([1, 3, , 4]);
586
530
  return [4 /*yield*/, this.request({
587
531
  path: "/orders/{orderReference}/anomalies".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))),
588
532
  method: 'PATCH',
@@ -590,14 +534,14 @@ var ManageOrderApi = /** @class */ (function (_super) {
590
534
  query: queryParameters,
591
535
  body: (0, models_1.AnomaliesUpdateParametersToJSON)(requestParameters.anomaliesUpdateParameters),
592
536
  })];
593
- case 5:
594
- response = _b.sent();
537
+ case 2:
538
+ response = _a.sent();
595
539
  return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
596
- case 6:
597
- response_7 = _b.sent();
540
+ case 3:
541
+ response_7 = _a.sent();
598
542
  console.debug(response_7);
599
543
  throw response_7;
600
- case 7: return [2 /*return*/];
544
+ case 4: return [2 /*return*/];
601
545
  }
602
546
  });
603
547
  });
@@ -618,14 +562,14 @@ var ManageOrderApi = /** @class */ (function (_super) {
618
562
  });
619
563
  };
620
564
  /**
621
- * # Preconditions : - \'released\' can not be greater than \'claimed\' - \'released\' can be modified only if \'limitedStock\' is true
565
+ * # Preconditions : - \'released\' can not be greater than \'claimed\'
622
566
  * Update order reservations
623
567
  */
624
568
  ManageOrderApi.prototype.updateOrderReservationRaw = function (requestParameters) {
625
569
  return __awaiter(this, void 0, void 0, function () {
626
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_8;
627
- return __generator(this, function (_b) {
628
- switch (_b.label) {
570
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_8;
571
+ return __generator(this, function (_a) {
572
+ switch (_a.label) {
629
573
  case 0:
630
574
  if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
631
575
  throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling updateOrderReservation.');
@@ -642,24 +586,16 @@ var ManageOrderApi = /** @class */ (function (_super) {
642
586
  if (this.configuration && this.configuration.apiKey) {
643
587
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
644
588
  }
645
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
646
- token = this.configuration.accessToken;
647
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
648
- return [4 /*yield*/, token("bearerAuth", [])];
649
- case 1:
650
- _a = _b.sent();
651
- return [3 /*break*/, 3];
652
- case 2:
653
- _a = token;
654
- _b.label = 3;
655
- case 3:
656
- tokenString = _a;
657
- if (tokenString) {
658
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
589
+ if (this.configuration && this.configuration.accessToken) {
590
+ token = this.configuration.accessToken;
591
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
592
+ if (tokenString) {
593
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
594
+ }
659
595
  }
660
- _b.label = 4;
661
- case 4:
662
- _b.trys.push([4, 6, , 7]);
596
+ _a.label = 1;
597
+ case 1:
598
+ _a.trys.push([1, 3, , 4]);
663
599
  return [4 /*yield*/, this.request({
664
600
  path: "/orders/{orderReference}/reservations/{reservationId}".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))).replace("{".concat("reservationId", "}"), encodeURIComponent(String(requestParameters.reservationId))),
665
601
  method: 'PATCH',
@@ -667,8 +603,8 @@ var ManageOrderApi = /** @class */ (function (_super) {
667
603
  query: queryParameters,
668
604
  body: (0, models_1.ReservationUpdateParametersToJSON)(requestParameters.reservationUpdateParameters),
669
605
  })];
670
- case 5:
671
- response = _b.sent();
606
+ case 2:
607
+ response = _a.sent();
672
608
  contentType = response.headers.get("content-type");
673
609
  if (contentType && contentType.indexOf("application/json") !== -1) {
674
610
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ReservationFromJSON)(jsonValue); })];
@@ -680,18 +616,18 @@ var ManageOrderApi = /** @class */ (function (_super) {
680
616
  // TODO : Better handling of others application types
681
617
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
682
618
  }
683
- return [3 /*break*/, 7];
684
- case 6:
685
- response_8 = _b.sent();
619
+ return [3 /*break*/, 4];
620
+ case 3:
621
+ response_8 = _a.sent();
686
622
  console.debug(response_8);
687
623
  throw response_8;
688
- case 7: return [2 /*return*/];
624
+ case 4: return [2 /*return*/];
689
625
  }
690
626
  });
691
627
  });
692
628
  };
693
629
  /**
694
- * # Preconditions : - \'released\' can not be greater than \'claimed\' - \'released\' can be modified only if \'limitedStock\' is true
630
+ * # Preconditions : - \'released\' can not be greater than \'claimed\'
695
631
  * Update order reservations
696
632
  */
697
633
  ManageOrderApi.prototype.updateOrderReservation = function (requestParameters) {
@@ -714,9 +650,9 @@ var ManageOrderApi = /** @class */ (function (_super) {
714
650
  */
715
651
  ManageOrderApi.prototype.updateOrderStatusRaw = function (requestParameters) {
716
652
  return __awaiter(this, void 0, void 0, function () {
717
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_9;
718
- return __generator(this, function (_b) {
719
- switch (_b.label) {
653
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_9;
654
+ return __generator(this, function (_a) {
655
+ switch (_a.label) {
720
656
  case 0:
721
657
  if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
722
658
  throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling updateOrderStatus.');
@@ -730,24 +666,16 @@ var ManageOrderApi = /** @class */ (function (_super) {
730
666
  if (this.configuration && this.configuration.apiKey) {
731
667
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
732
668
  }
733
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
734
- token = this.configuration.accessToken;
735
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
736
- return [4 /*yield*/, token("bearerAuth", [])];
737
- case 1:
738
- _a = _b.sent();
739
- return [3 /*break*/, 3];
740
- case 2:
741
- _a = token;
742
- _b.label = 3;
743
- case 3:
744
- tokenString = _a;
745
- if (tokenString) {
746
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
669
+ if (this.configuration && this.configuration.accessToken) {
670
+ token = this.configuration.accessToken;
671
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
672
+ if (tokenString) {
673
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
674
+ }
747
675
  }
748
- _b.label = 4;
749
- case 4:
750
- _b.trys.push([4, 6, , 7]);
676
+ _a.label = 1;
677
+ case 1:
678
+ _a.trys.push([1, 3, , 4]);
751
679
  return [4 /*yield*/, this.request({
752
680
  path: "/orders/{orderReference}/status".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))),
753
681
  method: 'PUT',
@@ -755,8 +683,8 @@ var ManageOrderApi = /** @class */ (function (_super) {
755
683
  query: queryParameters,
756
684
  body: requestParameters.body,
757
685
  })];
758
- case 5:
759
- response = _b.sent();
686
+ case 2:
687
+ response = _a.sent();
760
688
  contentType = response.headers.get("content-type");
761
689
  if (contentType && contentType.indexOf("application/json") !== -1) {
762
690
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.OrderStatusFromJSON)(jsonValue); })];
@@ -768,12 +696,12 @@ var ManageOrderApi = /** @class */ (function (_super) {
768
696
  // TODO : Better handling of others application types
769
697
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
770
698
  }
771
- return [3 /*break*/, 7];
772
- case 6:
773
- response_9 = _b.sent();
699
+ return [3 /*break*/, 4];
700
+ case 3:
701
+ response_9 = _a.sent();
774
702
  console.debug(response_9);
775
703
  throw response_9;
776
- case 7: return [2 /*return*/];
704
+ case 4: return [2 /*return*/];
777
705
  }
778
706
  });
779
707
  });