@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
@@ -80,9 +80,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
80
80
  */
81
81
  SearchInventoryApi.prototype.getCurrentInventoryActiveProductsRaw = 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) {
@@ -107,32 +107,24 @@ var SearchInventoryApi = /** @class */ (function (_super) {
107
107
  if (this.configuration && this.configuration.apiKey) {
108
108
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
109
109
  }
110
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
111
- token = this.configuration.accessToken;
112
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
113
- return [4 /*yield*/, token("bearerAuth", [])];
114
- case 1:
115
- _a = _b.sent();
116
- return [3 /*break*/, 3];
117
- case 2:
118
- _a = token;
119
- _b.label = 3;
120
- case 3:
121
- tokenString = _a;
122
- if (tokenString) {
123
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
110
+ if (this.configuration && this.configuration.accessToken) {
111
+ token = this.configuration.accessToken;
112
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
113
+ if (tokenString) {
114
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
115
+ }
124
116
  }
125
- _b.label = 4;
126
- case 4:
127
- _b.trys.push([4, 6, , 7]);
117
+ _a.label = 1;
118
+ case 1:
119
+ _a.trys.push([1, 3, , 4]);
128
120
  return [4 /*yield*/, this.request({
129
121
  path: "/inventories/me/active-products",
130
122
  method: 'GET',
131
123
  headers: headerParameters,
132
124
  query: queryParameters,
133
125
  })];
134
- case 5:
135
- response = _b.sent();
126
+ case 2:
127
+ response = _a.sent();
136
128
  contentType = response.headers.get("content-type");
137
129
  if (contentType && contentType.indexOf("application/json") !== -1) {
138
130
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedActiveProductsFromJSON)(jsonValue); })];
@@ -144,12 +136,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
144
136
  // TODO : Better handling of others application types
145
137
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
146
138
  }
147
- return [3 /*break*/, 7];
148
- case 6:
149
- response_1 = _b.sent();
139
+ return [3 /*break*/, 4];
140
+ case 3:
141
+ response_1 = _a.sent();
150
142
  console.debug(response_1);
151
143
  throw response_1;
152
- case 7: return [2 /*return*/];
144
+ case 4: return [2 /*return*/];
153
145
  }
154
146
  });
155
147
  });
@@ -176,9 +168,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
176
168
  */
177
169
  SearchInventoryApi.prototype.getCurrentInventoryMisalignedProductsRaw = function (requestParameters) {
178
170
  return __awaiter(this, void 0, void 0, function () {
179
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_2;
180
- return __generator(this, function (_b) {
181
- switch (_b.label) {
171
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
172
+ return __generator(this, function (_a) {
173
+ switch (_a.label) {
182
174
  case 0:
183
175
  queryParameters = {};
184
176
  if (requestParameters.q !== undefined) {
@@ -203,32 +195,24 @@ var SearchInventoryApi = /** @class */ (function (_super) {
203
195
  if (this.configuration && this.configuration.apiKey) {
204
196
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
205
197
  }
206
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
207
- token = this.configuration.accessToken;
208
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
209
- return [4 /*yield*/, token("bearerAuth", [])];
210
- case 1:
211
- _a = _b.sent();
212
- return [3 /*break*/, 3];
213
- case 2:
214
- _a = token;
215
- _b.label = 3;
216
- case 3:
217
- tokenString = _a;
218
- if (tokenString) {
219
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
198
+ if (this.configuration && this.configuration.accessToken) {
199
+ token = this.configuration.accessToken;
200
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
201
+ if (tokenString) {
202
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
203
+ }
220
204
  }
221
- _b.label = 4;
222
- case 4:
223
- _b.trys.push([4, 6, , 7]);
205
+ _a.label = 1;
206
+ case 1:
207
+ _a.trys.push([1, 3, , 4]);
224
208
  return [4 /*yield*/, this.request({
225
209
  path: "/inventories/me/misaligned-products",
226
210
  method: 'GET',
227
211
  headers: headerParameters,
228
212
  query: queryParameters,
229
213
  })];
230
- case 5:
231
- response = _b.sent();
214
+ case 2:
215
+ response = _a.sent();
232
216
  contentType = response.headers.get("content-type");
233
217
  if (contentType && contentType.indexOf("application/json") !== -1) {
234
218
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedMisalignedProductsFromJSON)(jsonValue); })];
@@ -240,12 +224,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
240
224
  // TODO : Better handling of others application types
241
225
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
242
226
  }
243
- return [3 /*break*/, 7];
244
- case 6:
245
- response_2 = _b.sent();
227
+ return [3 /*break*/, 4];
228
+ case 3:
229
+ response_2 = _a.sent();
246
230
  console.debug(response_2);
247
231
  throw response_2;
248
- case 7: return [2 /*return*/];
232
+ case 4: return [2 /*return*/];
249
233
  }
250
234
  });
251
235
  });
@@ -272,9 +256,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
272
256
  */
273
257
  SearchInventoryApi.prototype.getCurrentInventoryOverstockProductsRaw = function (requestParameters) {
274
258
  return __awaiter(this, void 0, void 0, function () {
275
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_3;
276
- return __generator(this, function (_b) {
277
- switch (_b.label) {
259
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_3;
260
+ return __generator(this, function (_a) {
261
+ switch (_a.label) {
278
262
  case 0:
279
263
  queryParameters = {};
280
264
  if (requestParameters.q !== undefined) {
@@ -311,32 +295,24 @@ var SearchInventoryApi = /** @class */ (function (_super) {
311
295
  if (this.configuration && this.configuration.apiKey) {
312
296
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
313
297
  }
314
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
315
- token = this.configuration.accessToken;
316
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
317
- return [4 /*yield*/, token("bearerAuth", [])];
318
- case 1:
319
- _a = _b.sent();
320
- return [3 /*break*/, 3];
321
- case 2:
322
- _a = token;
323
- _b.label = 3;
324
- case 3:
325
- tokenString = _a;
326
- if (tokenString) {
327
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
298
+ if (this.configuration && this.configuration.accessToken) {
299
+ token = this.configuration.accessToken;
300
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
301
+ if (tokenString) {
302
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
303
+ }
328
304
  }
329
- _b.label = 4;
330
- case 4:
331
- _b.trys.push([4, 6, , 7]);
305
+ _a.label = 1;
306
+ case 1:
307
+ _a.trys.push([1, 3, , 4]);
332
308
  return [4 /*yield*/, this.request({
333
309
  path: "/inventories/me/overstock-products",
334
310
  method: 'GET',
335
311
  headers: headerParameters,
336
312
  query: queryParameters,
337
313
  })];
338
- case 5:
339
- response = _b.sent();
314
+ case 2:
315
+ response = _a.sent();
340
316
  contentType = response.headers.get("content-type");
341
317
  if (contentType && contentType.indexOf("application/json") !== -1) {
342
318
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedOverstockProductsFromJSON)(jsonValue); })];
@@ -348,12 +324,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
348
324
  // TODO : Better handling of others application types
349
325
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
350
326
  }
351
- return [3 /*break*/, 7];
352
- case 6:
353
- response_3 = _b.sent();
327
+ return [3 /*break*/, 4];
328
+ case 3:
329
+ response_3 = _a.sent();
354
330
  console.debug(response_3);
355
331
  throw response_3;
356
- case 7: return [2 /*return*/];
332
+ case 4: return [2 /*return*/];
357
333
  }
358
334
  });
359
335
  });
@@ -380,41 +356,33 @@ var SearchInventoryApi = /** @class */ (function (_super) {
380
356
  */
381
357
  SearchInventoryApi.prototype.getCurrentInventoryStatisticsRaw = function () {
382
358
  return __awaiter(this, void 0, void 0, function () {
383
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_4;
384
- return __generator(this, function (_b) {
385
- switch (_b.label) {
359
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_4;
360
+ return __generator(this, function (_a) {
361
+ switch (_a.label) {
386
362
  case 0:
387
363
  queryParameters = {};
388
364
  headerParameters = {};
389
365
  if (this.configuration && this.configuration.apiKey) {
390
366
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
391
367
  }
392
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
393
- token = this.configuration.accessToken;
394
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
395
- return [4 /*yield*/, token("bearerAuth", [])];
396
- case 1:
397
- _a = _b.sent();
398
- return [3 /*break*/, 3];
399
- case 2:
400
- _a = token;
401
- _b.label = 3;
402
- case 3:
403
- tokenString = _a;
404
- if (tokenString) {
405
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
368
+ if (this.configuration && this.configuration.accessToken) {
369
+ token = this.configuration.accessToken;
370
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
371
+ if (tokenString) {
372
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
373
+ }
406
374
  }
407
- _b.label = 4;
408
- case 4:
409
- _b.trys.push([4, 6, , 7]);
375
+ _a.label = 1;
376
+ case 1:
377
+ _a.trys.push([1, 3, , 4]);
410
378
  return [4 /*yield*/, this.request({
411
379
  path: "/inventories/me/statistics",
412
380
  method: 'GET',
413
381
  headers: headerParameters,
414
382
  query: queryParameters,
415
383
  })];
416
- case 5:
417
- response = _b.sent();
384
+ case 2:
385
+ response = _a.sent();
418
386
  contentType = response.headers.get("content-type");
419
387
  if (contentType && contentType.indexOf("application/json") !== -1) {
420
388
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.StatisticsFromJSON)(jsonValue); })];
@@ -426,12 +394,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
426
394
  // TODO : Better handling of others application types
427
395
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
428
396
  }
429
- return [3 /*break*/, 7];
430
- case 6:
431
- response_4 = _b.sent();
397
+ return [3 /*break*/, 4];
398
+ case 3:
399
+ response_4 = _a.sent();
432
400
  console.debug(response_4);
433
401
  throw response_4;
434
- case 7: return [2 /*return*/];
402
+ case 4: return [2 /*return*/];
435
403
  }
436
404
  });
437
405
  });
@@ -459,41 +427,33 @@ var SearchInventoryApi = /** @class */ (function (_super) {
459
427
  */
460
428
  SearchInventoryApi.prototype.getCurrentInventorySynchroneityRaw = function () {
461
429
  return __awaiter(this, void 0, void 0, function () {
462
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_5;
463
- return __generator(this, function (_b) {
464
- switch (_b.label) {
430
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_5;
431
+ return __generator(this, function (_a) {
432
+ switch (_a.label) {
465
433
  case 0:
466
434
  queryParameters = {};
467
435
  headerParameters = {};
468
436
  if (this.configuration && this.configuration.apiKey) {
469
437
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
470
438
  }
471
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
472
- token = this.configuration.accessToken;
473
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
474
- return [4 /*yield*/, token("bearerAuth", [])];
475
- case 1:
476
- _a = _b.sent();
477
- return [3 /*break*/, 3];
478
- case 2:
479
- _a = token;
480
- _b.label = 3;
481
- case 3:
482
- tokenString = _a;
483
- if (tokenString) {
484
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
439
+ if (this.configuration && this.configuration.accessToken) {
440
+ token = this.configuration.accessToken;
441
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
442
+ if (tokenString) {
443
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
444
+ }
485
445
  }
486
- _b.label = 4;
487
- case 4:
488
- _b.trys.push([4, 6, , 7]);
446
+ _a.label = 1;
447
+ case 1:
448
+ _a.trys.push([1, 3, , 4]);
489
449
  return [4 /*yield*/, this.request({
490
450
  path: "/inventories/me/synchroneity",
491
451
  method: 'GET',
492
452
  headers: headerParameters,
493
453
  query: queryParameters,
494
454
  })];
495
- case 5:
496
- response = _b.sent();
455
+ case 2:
456
+ response = _a.sent();
497
457
  contentType = response.headers.get("content-type");
498
458
  if (contentType && contentType.indexOf("application/json") !== -1) {
499
459
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SynchroneityFromJSON)(jsonValue); })];
@@ -505,12 +465,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
505
465
  // TODO : Better handling of others application types
506
466
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
507
467
  }
508
- return [3 /*break*/, 7];
509
- case 6:
510
- response_5 = _b.sent();
468
+ return [3 /*break*/, 4];
469
+ case 3:
470
+ response_5 = _a.sent();
511
471
  console.debug(response_5);
512
472
  throw response_5;
513
- case 7: return [2 /*return*/];
473
+ case 4: return [2 /*return*/];
514
474
  }
515
475
  });
516
476
  });
@@ -538,9 +498,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
538
498
  */
539
499
  SearchInventoryApi.prototype.getInventoryActiveProductsRaw = function (requestParameters) {
540
500
  return __awaiter(this, void 0, void 0, function () {
541
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_6;
542
- return __generator(this, function (_b) {
543
- switch (_b.label) {
501
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_6;
502
+ return __generator(this, function (_a) {
503
+ switch (_a.label) {
544
504
  case 0:
545
505
  if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
546
506
  throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventoryActiveProducts.');
@@ -568,32 +528,24 @@ var SearchInventoryApi = /** @class */ (function (_super) {
568
528
  if (this.configuration && this.configuration.apiKey) {
569
529
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
570
530
  }
571
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
572
- token = this.configuration.accessToken;
573
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
574
- return [4 /*yield*/, token("bearerAuth", [])];
575
- case 1:
576
- _a = _b.sent();
577
- return [3 /*break*/, 3];
578
- case 2:
579
- _a = token;
580
- _b.label = 3;
581
- case 3:
582
- tokenString = _a;
583
- if (tokenString) {
584
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
531
+ if (this.configuration && this.configuration.accessToken) {
532
+ token = this.configuration.accessToken;
533
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
534
+ if (tokenString) {
535
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
536
+ }
585
537
  }
586
- _b.label = 4;
587
- case 4:
588
- _b.trys.push([4, 6, , 7]);
538
+ _a.label = 1;
539
+ case 1:
540
+ _a.trys.push([1, 3, , 4]);
589
541
  return [4 /*yield*/, this.request({
590
542
  path: "/inventories/{inventoryId}/active-products".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters.inventoryId))),
591
543
  method: 'GET',
592
544
  headers: headerParameters,
593
545
  query: queryParameters,
594
546
  })];
595
- case 5:
596
- response = _b.sent();
547
+ case 2:
548
+ response = _a.sent();
597
549
  contentType = response.headers.get("content-type");
598
550
  if (contentType && contentType.indexOf("application/json") !== -1) {
599
551
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedActiveProductsFromJSON)(jsonValue); })];
@@ -605,12 +557,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
605
557
  // TODO : Better handling of others application types
606
558
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
607
559
  }
608
- return [3 /*break*/, 7];
609
- case 6:
610
- response_6 = _b.sent();
560
+ return [3 /*break*/, 4];
561
+ case 3:
562
+ response_6 = _a.sent();
611
563
  console.debug(response_6);
612
564
  throw response_6;
613
- case 7: return [2 /*return*/];
565
+ case 4: return [2 /*return*/];
614
566
  }
615
567
  });
616
568
  });
@@ -637,9 +589,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
637
589
  */
638
590
  SearchInventoryApi.prototype.getInventoryMisalignedProductsRaw = function (requestParameters) {
639
591
  return __awaiter(this, void 0, void 0, function () {
640
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_7;
641
- return __generator(this, function (_b) {
642
- switch (_b.label) {
592
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_7;
593
+ return __generator(this, function (_a) {
594
+ switch (_a.label) {
643
595
  case 0:
644
596
  if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
645
597
  throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventoryMisalignedProducts.');
@@ -667,32 +619,24 @@ var SearchInventoryApi = /** @class */ (function (_super) {
667
619
  if (this.configuration && this.configuration.apiKey) {
668
620
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
669
621
  }
670
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
671
- token = this.configuration.accessToken;
672
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
673
- return [4 /*yield*/, token("bearerAuth", [])];
674
- case 1:
675
- _a = _b.sent();
676
- return [3 /*break*/, 3];
677
- case 2:
678
- _a = token;
679
- _b.label = 3;
680
- case 3:
681
- tokenString = _a;
682
- if (tokenString) {
683
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
622
+ if (this.configuration && this.configuration.accessToken) {
623
+ token = this.configuration.accessToken;
624
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
625
+ if (tokenString) {
626
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
627
+ }
684
628
  }
685
- _b.label = 4;
686
- case 4:
687
- _b.trys.push([4, 6, , 7]);
629
+ _a.label = 1;
630
+ case 1:
631
+ _a.trys.push([1, 3, , 4]);
688
632
  return [4 /*yield*/, this.request({
689
633
  path: "/inventories/{inventoryId}/misaligned-products".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters.inventoryId))),
690
634
  method: 'GET',
691
635
  headers: headerParameters,
692
636
  query: queryParameters,
693
637
  })];
694
- case 5:
695
- response = _b.sent();
638
+ case 2:
639
+ response = _a.sent();
696
640
  contentType = response.headers.get("content-type");
697
641
  if (contentType && contentType.indexOf("application/json") !== -1) {
698
642
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedMisalignedProductsFromJSON)(jsonValue); })];
@@ -704,12 +648,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
704
648
  // TODO : Better handling of others application types
705
649
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
706
650
  }
707
- return [3 /*break*/, 7];
708
- case 6:
709
- response_7 = _b.sent();
651
+ return [3 /*break*/, 4];
652
+ case 3:
653
+ response_7 = _a.sent();
710
654
  console.debug(response_7);
711
655
  throw response_7;
712
- case 7: return [2 /*return*/];
656
+ case 4: return [2 /*return*/];
713
657
  }
714
658
  });
715
659
  });
@@ -736,9 +680,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
736
680
  */
737
681
  SearchInventoryApi.prototype.getInventoryOverstockProductsRaw = function (requestParameters) {
738
682
  return __awaiter(this, void 0, void 0, function () {
739
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_8;
740
- return __generator(this, function (_b) {
741
- switch (_b.label) {
683
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_8;
684
+ return __generator(this, function (_a) {
685
+ switch (_a.label) {
742
686
  case 0:
743
687
  if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
744
688
  throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventoryOverstockProducts.');
@@ -778,32 +722,24 @@ var SearchInventoryApi = /** @class */ (function (_super) {
778
722
  if (this.configuration && this.configuration.apiKey) {
779
723
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
780
724
  }
781
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
782
- token = this.configuration.accessToken;
783
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
784
- return [4 /*yield*/, token("bearerAuth", [])];
785
- case 1:
786
- _a = _b.sent();
787
- return [3 /*break*/, 3];
788
- case 2:
789
- _a = token;
790
- _b.label = 3;
791
- case 3:
792
- tokenString = _a;
793
- if (tokenString) {
794
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
725
+ if (this.configuration && this.configuration.accessToken) {
726
+ token = this.configuration.accessToken;
727
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
728
+ if (tokenString) {
729
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
730
+ }
795
731
  }
796
- _b.label = 4;
797
- case 4:
798
- _b.trys.push([4, 6, , 7]);
732
+ _a.label = 1;
733
+ case 1:
734
+ _a.trys.push([1, 3, , 4]);
799
735
  return [4 /*yield*/, this.request({
800
736
  path: "/inventories/{inventoryId}/overstock-products".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters.inventoryId))),
801
737
  method: 'GET',
802
738
  headers: headerParameters,
803
739
  query: queryParameters,
804
740
  })];
805
- case 5:
806
- response = _b.sent();
741
+ case 2:
742
+ response = _a.sent();
807
743
  contentType = response.headers.get("content-type");
808
744
  if (contentType && contentType.indexOf("application/json") !== -1) {
809
745
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedOverstockProductsFromJSON)(jsonValue); })];
@@ -815,12 +751,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
815
751
  // TODO : Better handling of others application types
816
752
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
817
753
  }
818
- return [3 /*break*/, 7];
819
- case 6:
820
- response_8 = _b.sent();
754
+ return [3 /*break*/, 4];
755
+ case 3:
756
+ response_8 = _a.sent();
821
757
  console.debug(response_8);
822
758
  throw response_8;
823
- case 7: return [2 /*return*/];
759
+ case 4: return [2 /*return*/];
824
760
  }
825
761
  });
826
762
  });
@@ -847,9 +783,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
847
783
  */
848
784
  SearchInventoryApi.prototype.getInventoryStatisticsRaw = function (requestParameters) {
849
785
  return __awaiter(this, void 0, void 0, function () {
850
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_9;
851
- return __generator(this, function (_b) {
852
- switch (_b.label) {
786
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_9;
787
+ return __generator(this, function (_a) {
788
+ switch (_a.label) {
853
789
  case 0:
854
790
  if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
855
791
  throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventoryStatistics.');
@@ -859,32 +795,24 @@ var SearchInventoryApi = /** @class */ (function (_super) {
859
795
  if (this.configuration && this.configuration.apiKey) {
860
796
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
861
797
  }
862
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
863
- token = this.configuration.accessToken;
864
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
865
- return [4 /*yield*/, token("bearerAuth", [])];
866
- case 1:
867
- _a = _b.sent();
868
- return [3 /*break*/, 3];
869
- case 2:
870
- _a = token;
871
- _b.label = 3;
872
- case 3:
873
- tokenString = _a;
874
- if (tokenString) {
875
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
798
+ if (this.configuration && this.configuration.accessToken) {
799
+ token = this.configuration.accessToken;
800
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
801
+ if (tokenString) {
802
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
803
+ }
876
804
  }
877
- _b.label = 4;
878
- case 4:
879
- _b.trys.push([4, 6, , 7]);
805
+ _a.label = 1;
806
+ case 1:
807
+ _a.trys.push([1, 3, , 4]);
880
808
  return [4 /*yield*/, this.request({
881
809
  path: "/inventories/{inventoryId}/statistics".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters.inventoryId))),
882
810
  method: 'GET',
883
811
  headers: headerParameters,
884
812
  query: queryParameters,
885
813
  })];
886
- case 5:
887
- response = _b.sent();
814
+ case 2:
815
+ response = _a.sent();
888
816
  contentType = response.headers.get("content-type");
889
817
  if (contentType && contentType.indexOf("application/json") !== -1) {
890
818
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.StatisticsFromJSON)(jsonValue); })];
@@ -896,12 +824,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
896
824
  // TODO : Better handling of others application types
897
825
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
898
826
  }
899
- return [3 /*break*/, 7];
900
- case 6:
901
- response_9 = _b.sent();
827
+ return [3 /*break*/, 4];
828
+ case 3:
829
+ response_9 = _a.sent();
902
830
  console.debug(response_9);
903
831
  throw response_9;
904
- case 7: return [2 /*return*/];
832
+ case 4: return [2 /*return*/];
905
833
  }
906
834
  });
907
835
  });
@@ -929,9 +857,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
929
857
  */
930
858
  SearchInventoryApi.prototype.getInventorySynchroneityRaw = function (requestParameters) {
931
859
  return __awaiter(this, void 0, void 0, function () {
932
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_10;
933
- return __generator(this, function (_b) {
934
- switch (_b.label) {
860
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_10;
861
+ return __generator(this, function (_a) {
862
+ switch (_a.label) {
935
863
  case 0:
936
864
  if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
937
865
  throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventorySynchroneity.');
@@ -941,32 +869,24 @@ var SearchInventoryApi = /** @class */ (function (_super) {
941
869
  if (this.configuration && this.configuration.apiKey) {
942
870
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
943
871
  }
944
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
945
- token = this.configuration.accessToken;
946
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
947
- return [4 /*yield*/, token("bearerAuth", [])];
948
- case 1:
949
- _a = _b.sent();
950
- return [3 /*break*/, 3];
951
- case 2:
952
- _a = token;
953
- _b.label = 3;
954
- case 3:
955
- tokenString = _a;
956
- if (tokenString) {
957
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
872
+ if (this.configuration && this.configuration.accessToken) {
873
+ token = this.configuration.accessToken;
874
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
875
+ if (tokenString) {
876
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
877
+ }
958
878
  }
959
- _b.label = 4;
960
- case 4:
961
- _b.trys.push([4, 6, , 7]);
879
+ _a.label = 1;
880
+ case 1:
881
+ _a.trys.push([1, 3, , 4]);
962
882
  return [4 /*yield*/, this.request({
963
883
  path: "/inventories/{inventoryId}/synchroneity".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters.inventoryId))),
964
884
  method: 'GET',
965
885
  headers: headerParameters,
966
886
  query: queryParameters,
967
887
  })];
968
- case 5:
969
- response = _b.sent();
888
+ case 2:
889
+ response = _a.sent();
970
890
  contentType = response.headers.get("content-type");
971
891
  if (contentType && contentType.indexOf("application/json") !== -1) {
972
892
  return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SynchroneityFromJSON)(jsonValue); })];
@@ -978,12 +898,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
978
898
  // TODO : Better handling of others application types
979
899
  return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
980
900
  }
981
- return [3 /*break*/, 7];
982
- case 6:
983
- response_10 = _b.sent();
901
+ return [3 /*break*/, 4];
902
+ case 3:
903
+ response_10 = _a.sent();
984
904
  console.debug(response_10);
985
905
  throw response_10;
986
- case 7: return [2 /*return*/];
906
+ case 4: return [2 /*return*/];
987
907
  }
988
908
  });
989
909
  });