@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 SearchOrderItemApi = /** @class */ (function (_super) {
81
81
  */
82
82
  SearchOrderItemApi.prototype.getAvailableOrderItemsOperationsRaw = 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.orderReference === null || requestParameters.orderReference === undefined) {
89
89
  throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling getAvailableOrderItemsOperations.');
@@ -93,32 +93,24 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
93
93
  if (this.configuration && this.configuration.apiKey) {
94
94
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
95
95
  }
96
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
97
- token = this.configuration.accessToken;
98
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
99
- return [4 /*yield*/, token("bearerAuth", [])];
100
- case 1:
101
- _a = _b.sent();
102
- return [3 /*break*/, 3];
103
- case 2:
104
- _a = token;
105
- _b.label = 3;
106
- case 3:
107
- tokenString = _a;
108
- if (tokenString) {
109
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
96
+ if (this.configuration && this.configuration.accessToken) {
97
+ token = this.configuration.accessToken;
98
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
99
+ if (tokenString) {
100
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
101
+ }
110
102
  }
111
- _b.label = 4;
112
- case 4:
113
- _b.trys.push([4, 6, , 7]);
103
+ _a.label = 1;
104
+ case 1:
105
+ _a.trys.push([1, 3, , 4]);
114
106
  return [4 /*yield*/, this.request({
115
107
  path: "/orders/{orderReference}/available-items-operations".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))),
116
108
  method: 'GET',
117
109
  headers: headerParameters,
118
110
  query: queryParameters,
119
111
  })];
120
- case 5:
121
- response = _b.sent();
112
+ case 2:
113
+ response = _a.sent();
122
114
  contentType = response.headers.get("content-type");
123
115
  if (contentType && contentType.indexOf("application/json") !== -1) {
124
116
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(models_1.OrderItemsOperationFromJSON); })];
@@ -130,12 +122,12 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
130
122
  // TODO : Better handling of others application types
131
123
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
132
124
  }
133
- return [3 /*break*/, 7];
134
- case 6:
135
- response_1 = _b.sent();
125
+ return [3 /*break*/, 4];
126
+ case 3:
127
+ response_1 = _a.sent();
136
128
  console.debug(response_1);
137
129
  throw response_1;
138
- case 7: return [2 /*return*/];
130
+ case 4: return [2 /*return*/];
139
131
  }
140
132
  });
141
133
  });
@@ -163,9 +155,9 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
163
155
  */
164
156
  SearchOrderItemApi.prototype.getOrderAddedItemsRaw = function (requestParameters) {
165
157
  return __awaiter(this, void 0, void 0, function () {
166
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_2;
167
- return __generator(this, function (_b) {
168
- switch (_b.label) {
158
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
159
+ return __generator(this, function (_a) {
160
+ switch (_a.label) {
169
161
  case 0:
170
162
  if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
171
163
  throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling getOrderAddedItems.');
@@ -178,32 +170,24 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
178
170
  if (this.configuration && this.configuration.apiKey) {
179
171
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
180
172
  }
181
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
182
- token = this.configuration.accessToken;
183
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
184
- return [4 /*yield*/, token("bearerAuth", [])];
185
- case 1:
186
- _a = _b.sent();
187
- return [3 /*break*/, 3];
188
- case 2:
189
- _a = token;
190
- _b.label = 3;
191
- case 3:
192
- tokenString = _a;
193
- if (tokenString) {
194
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
173
+ if (this.configuration && this.configuration.accessToken) {
174
+ token = this.configuration.accessToken;
175
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
176
+ if (tokenString) {
177
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
178
+ }
195
179
  }
196
- _b.label = 4;
197
- case 4:
198
- _b.trys.push([4, 6, , 7]);
180
+ _a.label = 1;
181
+ case 1:
182
+ _a.trys.push([1, 3, , 4]);
199
183
  return [4 /*yield*/, this.request({
200
184
  path: "/orders/{orderReference}/added-items".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))),
201
185
  method: 'GET',
202
186
  headers: headerParameters,
203
187
  query: queryParameters,
204
188
  })];
205
- case 5:
206
- response = _b.sent();
189
+ case 2:
190
+ response = _a.sent();
207
191
  contentType = response.headers.get("content-type");
208
192
  if (contentType && contentType.indexOf("application/json") !== -1) {
209
193
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(models_1.OrderAddedItemFromJSON); })];
@@ -215,12 +199,12 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
215
199
  // TODO : Better handling of others application types
216
200
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
217
201
  }
218
- return [3 /*break*/, 7];
219
- case 6:
220
- response_2 = _b.sent();
202
+ return [3 /*break*/, 4];
203
+ case 3:
204
+ response_2 = _a.sent();
221
205
  console.debug(response_2);
222
206
  throw response_2;
223
- case 7: return [2 /*return*/];
207
+ case 4: return [2 /*return*/];
224
208
  }
225
209
  });
226
210
  });
@@ -247,9 +231,9 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
247
231
  */
248
232
  SearchOrderItemApi.prototype.getOrderItemsRaw = function (requestParameters) {
249
233
  return __awaiter(this, void 0, void 0, function () {
250
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_3;
251
- return __generator(this, function (_b) {
252
- switch (_b.label) {
234
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_3;
235
+ return __generator(this, function (_a) {
236
+ switch (_a.label) {
253
237
  case 0:
254
238
  if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
255
239
  throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling getOrderItems.');
@@ -262,32 +246,24 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
262
246
  if (this.configuration && this.configuration.apiKey) {
263
247
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
264
248
  }
265
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
266
- token = this.configuration.accessToken;
267
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
268
- return [4 /*yield*/, token("bearerAuth", [])];
269
- case 1:
270
- _a = _b.sent();
271
- return [3 /*break*/, 3];
272
- case 2:
273
- _a = token;
274
- _b.label = 3;
275
- case 3:
276
- tokenString = _a;
277
- if (tokenString) {
278
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
249
+ if (this.configuration && this.configuration.accessToken) {
250
+ token = this.configuration.accessToken;
251
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
252
+ if (tokenString) {
253
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
254
+ }
279
255
  }
280
- _b.label = 4;
281
- case 4:
282
- _b.trys.push([4, 6, , 7]);
256
+ _a.label = 1;
257
+ case 1:
258
+ _a.trys.push([1, 3, , 4]);
283
259
  return [4 /*yield*/, this.request({
284
260
  path: "/orders/{orderReference}/items".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))),
285
261
  method: 'GET',
286
262
  headers: headerParameters,
287
263
  query: queryParameters,
288
264
  })];
289
- case 5:
290
- response = _b.sent();
265
+ case 2:
266
+ response = _a.sent();
291
267
  contentType = response.headers.get("content-type");
292
268
  if (contentType && contentType.indexOf("application/json") !== -1) {
293
269
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(models_1.OrderItemFromJSON); })];
@@ -299,12 +275,12 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
299
275
  // TODO : Better handling of others application types
300
276
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
301
277
  }
302
- return [3 /*break*/, 7];
303
- case 6:
304
- response_3 = _b.sent();
278
+ return [3 /*break*/, 4];
279
+ case 3:
280
+ response_3 = _a.sent();
305
281
  console.debug(response_3);
306
282
  throw response_3;
307
- case 7: return [2 /*return*/];
283
+ case 4: return [2 /*return*/];
308
284
  }
309
285
  });
310
286
  });
@@ -331,9 +307,9 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
331
307
  */
332
308
  SearchOrderItemApi.prototype.getOrderRefundedItemsRaw = function (requestParameters) {
333
309
  return __awaiter(this, void 0, void 0, function () {
334
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_4;
335
- return __generator(this, function (_b) {
336
- switch (_b.label) {
310
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_4;
311
+ return __generator(this, function (_a) {
312
+ switch (_a.label) {
337
313
  case 0:
338
314
  if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
339
315
  throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling getOrderRefundedItems.');
@@ -346,32 +322,24 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
346
322
  if (this.configuration && this.configuration.apiKey) {
347
323
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
348
324
  }
349
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
350
- token = this.configuration.accessToken;
351
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
352
- return [4 /*yield*/, token("bearerAuth", [])];
353
- case 1:
354
- _a = _b.sent();
355
- return [3 /*break*/, 3];
356
- case 2:
357
- _a = token;
358
- _b.label = 3;
359
- case 3:
360
- tokenString = _a;
361
- if (tokenString) {
362
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
325
+ if (this.configuration && this.configuration.accessToken) {
326
+ token = this.configuration.accessToken;
327
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
328
+ if (tokenString) {
329
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
330
+ }
363
331
  }
364
- _b.label = 4;
365
- case 4:
366
- _b.trys.push([4, 6, , 7]);
332
+ _a.label = 1;
333
+ case 1:
334
+ _a.trys.push([1, 3, , 4]);
367
335
  return [4 /*yield*/, this.request({
368
336
  path: "/orders/{orderReference}/refunded-items".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))),
369
337
  method: 'GET',
370
338
  headers: headerParameters,
371
339
  query: queryParameters,
372
340
  })];
373
- case 5:
374
- response = _b.sent();
341
+ case 2:
342
+ response = _a.sent();
375
343
  contentType = response.headers.get("content-type");
376
344
  if (contentType && contentType.indexOf("application/json") !== -1) {
377
345
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(models_1.OrderRefundedItemFromJSON); })];
@@ -383,12 +351,12 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
383
351
  // TODO : Better handling of others application types
384
352
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
385
353
  }
386
- return [3 /*break*/, 7];
387
- case 6:
388
- response_4 = _b.sent();
354
+ return [3 /*break*/, 4];
355
+ case 3:
356
+ response_4 = _a.sent();
389
357
  console.debug(response_4);
390
358
  throw response_4;
391
- case 7: return [2 /*return*/];
359
+ case 4: return [2 /*return*/];
392
360
  }
393
361
  });
394
362
  });
@@ -415,9 +383,9 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
415
383
  */
416
384
  SearchOrderItemApi.prototype.getOrderRemovedItemsRaw = function (requestParameters) {
417
385
  return __awaiter(this, void 0, void 0, function () {
418
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_5;
419
- return __generator(this, function (_b) {
420
- switch (_b.label) {
386
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_5;
387
+ return __generator(this, function (_a) {
388
+ switch (_a.label) {
421
389
  case 0:
422
390
  if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
423
391
  throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling getOrderRemovedItems.');
@@ -430,32 +398,24 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
430
398
  if (this.configuration && this.configuration.apiKey) {
431
399
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
432
400
  }
433
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
434
- token = this.configuration.accessToken;
435
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
436
- return [4 /*yield*/, token("bearerAuth", [])];
437
- case 1:
438
- _a = _b.sent();
439
- return [3 /*break*/, 3];
440
- case 2:
441
- _a = token;
442
- _b.label = 3;
443
- case 3:
444
- tokenString = _a;
445
- if (tokenString) {
446
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
401
+ if (this.configuration && this.configuration.accessToken) {
402
+ token = this.configuration.accessToken;
403
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
404
+ if (tokenString) {
405
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
406
+ }
447
407
  }
448
- _b.label = 4;
449
- case 4:
450
- _b.trys.push([4, 6, , 7]);
408
+ _a.label = 1;
409
+ case 1:
410
+ _a.trys.push([1, 3, , 4]);
451
411
  return [4 /*yield*/, this.request({
452
412
  path: "/orders/{orderReference}/removed-items".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))),
453
413
  method: 'GET',
454
414
  headers: headerParameters,
455
415
  query: queryParameters,
456
416
  })];
457
- case 5:
458
- response = _b.sent();
417
+ case 2:
418
+ response = _a.sent();
459
419
  contentType = response.headers.get("content-type");
460
420
  if (contentType && contentType.indexOf("application/json") !== -1) {
461
421
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(models_1.OrderRemovedItemFromJSON); })];
@@ -467,12 +427,12 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
467
427
  // TODO : Better handling of others application types
468
428
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
469
429
  }
470
- return [3 /*break*/, 7];
471
- case 6:
472
- response_5 = _b.sent();
430
+ return [3 /*break*/, 4];
431
+ case 3:
432
+ response_5 = _a.sent();
473
433
  console.debug(response_5);
474
434
  throw response_5;
475
- case 7: return [2 /*return*/];
435
+ case 4: return [2 /*return*/];
476
436
  }
477
437
  });
478
438
  });
@@ -35,12 +35,6 @@ export interface Reservation {
35
35
  * @memberof Reservation
36
36
  */
37
37
  saleOffer?: SaleOfferLink;
38
- /**
39
- * True if the associated sale offer have a limited stock. False if not. Important note : You can not release claimed items for a non limited-stock sale offer.
40
- * @type {boolean}
41
- * @memberof Reservation
42
- */
43
- limitedStock?: boolean;
44
38
  /**
45
39
  * Total number of item linked to this order (claimed + released)
46
40
  * @type {number}
@@ -29,7 +29,6 @@ function ReservationFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
30
30
  'product': !(0, runtime_1.exists)(json, 'product') ? undefined : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
31
31
  'saleOffer': !(0, runtime_1.exists)(json, 'saleOffer') ? undefined : (0, SaleOfferLink_1.SaleOfferLinkFromJSON)(json['saleOffer']),
32
- 'limitedStock': !(0, runtime_1.exists)(json, 'limitedStock') ? undefined : json['limitedStock'],
33
32
  'total': !(0, runtime_1.exists)(json, 'total') ? undefined : json['total'],
34
33
  'claimed': !(0, runtime_1.exists)(json, 'claimed') ? undefined : json['claimed'],
35
34
  'released': !(0, runtime_1.exists)(json, 'released') ? undefined : json['released'],
@@ -47,7 +46,6 @@ function ReservationToJSON(value) {
47
46
  'id': value.id,
48
47
  'product': (0, ProductLink_1.ProductLinkToJSON)(value.product),
49
48
  'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkToJSON)(value.saleOffer),
50
- 'limitedStock': value.limitedStock,
51
49
  'total': value.total,
52
50
  'claimed': value.claimed,
53
51
  'released': value.released,
@@ -49,7 +49,7 @@ export interface ConfigurationParameters {
49
49
  username?: string;
50
50
  password?: string;
51
51
  apiKey?: string | ((name: string) => string);
52
- accessToken?: string | ((name?: string, scopes?: string[]) => Promise<string>);
52
+ accessToken?: string | ((name?: string, scopes?: string[]) => string);
53
53
  headers?: HTTPHeaders;
54
54
  credentials?: RequestCredentials;
55
55
  referrerPolicy?: ReferrerPolicy;
@@ -64,7 +64,7 @@ export declare class Configuration {
64
64
  get username(): string | undefined;
65
65
  get password(): string | undefined;
66
66
  get apiKey(): ((name: string) => string) | undefined;
67
- get accessToken(): ((name: string, scopes?: string[]) => Promise<string>) | undefined;
67
+ get accessToken(): ((name: string, scopes?: string[]) => string) | undefined;
68
68
  get headers(): HTTPHeaders | undefined;
69
69
  get credentials(): RequestCredentials | undefined;
70
70
  get referrerPolicy(): ReferrerPolicy | undefined;
@@ -291,7 +291,7 @@ var Configuration = /** @class */ (function () {
291
291
  get: function () {
292
292
  var accessToken = this.configuration.accessToken;
293
293
  if (accessToken) {
294
- return typeof accessToken === 'function' ? accessToken : function () { return Promise.resolve(accessToken); };
294
+ return typeof accessToken === 'function' ? accessToken : function () { return accessToken; };
295
295
  }
296
296
  return undefined;
297
297
  },
@@ -80,9 +80,9 @@ var SearchOrderLogApi = /** @class */ (function (_super) {
80
80
  */
81
81
  SearchOrderLogApi.prototype.getOrderLogsRaw = function (requestParameters) {
82
82
  return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_1;
84
- return __generator(this, function (_b) {
85
- switch (_b.label) {
83
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
86
  case 0:
87
87
  queryParameters = {};
88
88
  if (requestParameters.q !== undefined) {
@@ -113,32 +113,24 @@ var SearchOrderLogApi = /** @class */ (function (_super) {
113
113
  if (this.configuration && this.configuration.apiKey) {
114
114
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
115
115
  }
116
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
117
- token = this.configuration.accessToken;
118
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
119
- return [4 /*yield*/, token("bearerAuth", [])];
120
- case 1:
121
- _a = _b.sent();
122
- return [3 /*break*/, 3];
123
- case 2:
124
- _a = token;
125
- _b.label = 3;
126
- case 3:
127
- tokenString = _a;
128
- if (tokenString) {
129
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
116
+ if (this.configuration && this.configuration.accessToken) {
117
+ token = this.configuration.accessToken;
118
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
119
+ if (tokenString) {
120
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
121
+ }
130
122
  }
131
- _b.label = 4;
132
- case 4:
133
- _b.trys.push([4, 6, , 7]);
123
+ _a.label = 1;
124
+ case 1:
125
+ _a.trys.push([1, 3, , 4]);
134
126
  return [4 /*yield*/, this.request({
135
127
  path: "/order-logs",
136
128
  method: 'GET',
137
129
  headers: headerParameters,
138
130
  query: queryParameters,
139
131
  })];
140
- case 5:
141
- response = _b.sent();
132
+ case 2:
133
+ response = _a.sent();
142
134
  contentType = response.headers.get("content-type");
143
135
  if (contentType && contentType.indexOf("application/json") !== -1) {
144
136
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedOrderLogsFromJSON)(jsonValue); })];
@@ -150,12 +142,12 @@ var SearchOrderLogApi = /** @class */ (function (_super) {
150
142
  // TODO : Better handling of others application types
151
143
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
152
144
  }
153
- return [3 /*break*/, 7];
154
- case 6:
155
- response_1 = _b.sent();
145
+ return [3 /*break*/, 4];
146
+ case 3:
147
+ response_1 = _a.sent();
156
148
  console.debug(response_1);
157
149
  throw response_1;
158
- case 7: return [2 /*return*/];
150
+ case 4: return [2 /*return*/];
159
151
  }
160
152
  });
161
153
  });
@@ -49,7 +49,7 @@ export interface ConfigurationParameters {
49
49
  username?: string;
50
50
  password?: string;
51
51
  apiKey?: string | ((name: string) => string);
52
- accessToken?: string | ((name?: string, scopes?: string[]) => Promise<string>);
52
+ accessToken?: string | ((name?: string, scopes?: string[]) => string);
53
53
  headers?: HTTPHeaders;
54
54
  credentials?: RequestCredentials;
55
55
  referrerPolicy?: ReferrerPolicy;
@@ -64,7 +64,7 @@ export declare class Configuration {
64
64
  get username(): string | undefined;
65
65
  get password(): string | undefined;
66
66
  get apiKey(): ((name: string) => string) | undefined;
67
- get accessToken(): ((name: string, scopes?: string[]) => Promise<string>) | undefined;
67
+ get accessToken(): ((name: string, scopes?: string[]) => string) | undefined;
68
68
  get headers(): HTTPHeaders | undefined;
69
69
  get credentials(): RequestCredentials | undefined;
70
70
  get referrerPolicy(): ReferrerPolicy | undefined;
@@ -291,7 +291,7 @@ var Configuration = /** @class */ (function () {
291
291
  get: function () {
292
292
  var accessToken = this.configuration.accessToken;
293
293
  if (accessToken) {
294
- return typeof accessToken === 'function' ? accessToken : function () { return Promise.resolve(accessToken); };
294
+ return typeof accessToken === 'function' ? accessToken : function () { return accessToken; };
295
295
  }
296
296
  return undefined;
297
297
  },