@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.
- package/auth/src/apis/AuthApi.js +35 -51
- package/auth/src/apis/ManageApiKeyApi.js +53 -77
- package/auth/src/apis/SearchApiKeyApi.js +36 -52
- package/auth/src/runtime.d.ts +2 -2
- package/auth/src/runtime.js +1 -1
- package/banking-operation/src/apis/ManageLevyApi.js +36 -52
- package/banking-operation/src/apis/ManageOrderPaymentApi.js +36 -52
- package/banking-operation/src/apis/SearchLevyApi.js +36 -52
- package/banking-operation/src/apis/SearchOrderPaymentApi.js +18 -26
- package/banking-operation/src/runtime.d.ts +2 -2
- package/banking-operation/src/runtime.js +1 -1
- package/catalog/src/apis/ManageProductInsightApi.js +53 -77
- package/catalog/src/apis/SearchProductInsightApi.js +36 -52
- package/catalog/src/runtime.d.ts +2 -2
- package/catalog/src/runtime.js +1 -1
- package/challenge/src/apis/ManageChallengesApi.js +18 -26
- package/challenge/src/runtime.d.ts +2 -2
- package/challenge/src/runtime.js +1 -1
- package/configuration/src/apis/ManageVariableApi.js +17 -25
- package/configuration/src/apis/ManageVatApi.js +35 -51
- package/configuration/src/apis/SearchVatApi.js +36 -52
- package/configuration/src/runtime.d.ts +2 -2
- package/configuration/src/runtime.js +1 -1
- package/content/src/apis/ManageContentApi.js +18 -26
- package/content/src/runtime.d.ts +2 -2
- package/content/src/runtime.js +1 -1
- package/factory/src/apis/ManageAssemblyApi.js +35 -53
- package/factory/src/apis/ManageAssemblyOperationApi.js +18 -26
- package/factory/src/apis/SearchAssemblyApi.js +72 -104
- package/factory/src/apis/SearchAssemblyLineApi.js +36 -52
- package/factory/src/apis/SearchAssemblyOperationApi.js +36 -52
- package/factory/src/runtime.d.ts +2 -2
- package/factory/src/runtime.js +1 -1
- package/favorite/src/apis/ManageFavoriteProductApi.js +71 -103
- package/favorite/src/runtime.d.ts +2 -2
- package/favorite/src/runtime.js +1 -1
- package/geo/src/apis/SearchCountryApi.js +18 -26
- package/geo/src/runtime.d.ts +2 -2
- package/geo/src/runtime.js +1 -1
- package/inventory/src/apis/ManageInventoryApi.js +86 -126
- package/inventory/src/apis/SearchInventoryApi.js +180 -260
- package/inventory/src/runtime.d.ts +2 -2
- package/inventory/src/runtime.js +1 -1
- package/invoice/src/apis/ManageInvoiceApi.js +36 -52
- package/invoice/src/apis/ManageInvoiceLineApi.js +35 -51
- package/invoice/src/apis/ManageInvoicesSummaryApi.js +17 -25
- package/invoice/src/apis/SearchInvoiceApi.js +36 -52
- package/invoice/src/apis/SearchInvoiceLineApi.js +18 -26
- package/invoice/src/apis/SearchOrderTallyApi.js +36 -52
- package/invoice/src/runtime.d.ts +2 -2
- package/invoice/src/runtime.js +1 -1
- package/laboratory/src/apis/ManageLaboratoryApi.js +18 -26
- package/laboratory/src/apis/SearchLaboratoryApi.js +36 -52
- package/laboratory/src/runtime.d.ts +2 -2
- package/laboratory/src/runtime.js +1 -1
- package/laboratory-store/src/apis/ManageLaboratoryStoreApi.js +36 -52
- package/laboratory-store/src/apis/ManageLaboratoryStoreImageApi.js +70 -106
- package/laboratory-store/src/apis/SearchLaboratoryStoreApi.js +36 -52
- package/laboratory-store/src/runtime.d.ts +2 -2
- package/laboratory-store/src/runtime.js +1 -1
- package/laboratory-store-log/src/apis/SearchLaboratoryStoreLogApi.js +18 -26
- package/laboratory-store-log/src/runtime.d.ts +2 -2
- package/laboratory-store-log/src/runtime.js +1 -1
- package/lexicon/src/apis/ManageLexiconApi.d.ts +2 -2
- package/lexicon/src/apis/ManageLexiconApi.js +37 -53
- package/lexicon/src/apis/SearchLexiconApi.js +72 -104
- package/lexicon/src/runtime.d.ts +2 -2
- package/lexicon/src/runtime.js +1 -1
- package/litigation/src/apis/ManageLitigationApi.js +17 -25
- package/litigation/src/runtime.d.ts +2 -2
- package/litigation/src/runtime.js +1 -1
- package/magic-cart/src/apis/ManageExpressOrderApi.js +18 -26
- package/magic-cart/src/runtime.d.ts +2 -2
- package/magic-cart/src/runtime.js +1 -1
- package/mandate/src/apis/ManageMandatesApi.js +71 -103
- package/mandate/src/runtime.d.ts +2 -2
- package/mandate/src/runtime.js +1 -1
- package/mangopay-hook/src/runtime.d.ts +2 -2
- package/mangopay-hook/src/runtime.js +1 -1
- package/message/src/apis/ManageMessageApi.js +87 -127
- package/message/src/apis/SearchMessageApi.js +54 -78
- package/message/src/runtime.d.ts +2 -2
- package/message/src/runtime.js +1 -1
- package/notification/src/apis/ManageNotificationApi.js +35 -51
- package/notification/src/apis/ManageNotificationTypeApi.js +53 -79
- package/notification/src/apis/SearchNotificationApi.js +36 -52
- package/notification/src/apis/SearchNotificationTypeApi.js +54 -78
- package/notification/src/runtime.d.ts +2 -2
- package/notification/src/runtime.js +1 -1
- package/order/src/apis/ManageMetaOrderApi.js +35 -51
- package/order/src/apis/ManageOrderApi.d.ts +2 -2
- package/order/src/apis/ManageOrderApi.js +159 -231
- package/order/src/apis/ManageOrderItemApi.js +88 -128
- package/order/src/apis/SearchOrderApi.d.ts +0 -2
- package/order/src/apis/SearchOrderApi.js +72 -106
- package/order/src/apis/SearchOrderItemApi.js +90 -130
- package/order/src/models/Reservation.d.ts +0 -6
- package/order/src/models/Reservation.js +0 -2
- package/order/src/runtime.d.ts +2 -2
- package/order/src/runtime.js +1 -1
- package/order-log/src/apis/SearchOrderLogApi.js +18 -26
- package/order-log/src/runtime.d.ts +2 -2
- package/order-log/src/runtime.js +1 -1
- package/outrage-message/src/apis/ManageOutrageMessageApi.js +53 -77
- package/outrage-message/src/apis/SearchOutrageMessageApi.js +36 -52
- package/outrage-message/src/runtime.d.ts +2 -2
- package/outrage-message/src/runtime.js +1 -1
- package/package.json +1 -1
- package/product/src/apis/ManageProductApi.js +36 -52
- package/product/src/apis/ManageProductImageApi.js +34 -52
- package/product/src/apis/ManageProductProscriptionApi.js +35 -51
- package/product/src/apis/SearchProductApi.js +36 -52
- package/product/src/apis/SearchProductImageApi.js +36 -52
- package/product/src/apis/SearchProductMetadataApi.js +72 -104
- package/product/src/apis/SearchProductProscriptionApi.js +18 -26
- package/product/src/runtime.d.ts +2 -2
- package/product/src/runtime.js +1 -1
- package/pub/src/apis/ManagePubApi.js +70 -102
- package/pub/src/apis/ManagePubImageApi.js +18 -28
- package/pub/src/apis/SearchPubApi.js +54 -78
- package/pub/src/runtime.d.ts +2 -2
- package/pub/src/runtime.js +1 -1
- package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.js +18 -26
- package/recommendation/src/apis/SearchProductPriceRecommendationApi.js +18 -26
- package/recommendation/src/apis/SearchProductRecommendationApi.js +18 -26
- package/recommendation/src/runtime.d.ts +2 -2
- package/recommendation/src/runtime.js +1 -1
- package/rfx/src/apis/ManageRfiApi.js +17 -25
- package/rfx/src/apis/ManageRfilApi.js +17 -25
- package/rfx/src/apis/ManageRfoApi.js +17 -25
- package/rfx/src/apis/ManageRfoiApi.js +36 -52
- package/rfx/src/apis/SearchRfoiApi.js +18 -26
- package/rfx/src/runtime.d.ts +2 -2
- package/rfx/src/runtime.js +1 -1
- package/sale-offer/src/apis/ManageSaleOfferApi.d.ts +2 -2
- package/sale-offer/src/apis/ManageSaleOfferApi.js +107 -155
- package/sale-offer/src/apis/SearchSaleOfferApi.js +36 -52
- package/sale-offer/src/models/SaleOffer.d.ts +1 -1
- package/sale-offer/src/models/SaleOffer.js +1 -1
- package/sale-offer/src/models/SaleOfferCreationParameters.d.ts +2 -2
- package/sale-offer/src/models/SaleOfferCreationParameters.js +1 -1
- package/sale-offer/src/models/SaleOfferJournal.d.ts +1 -1
- package/sale-offer/src/models/SaleOfferJournal.js +3 -2
- package/sale-offer/src/models/SaleOfferNewVersionParameters.d.ts +1 -1
- package/sale-offer/src/models/SaleOfferNewVersionParameters.js +1 -1
- package/sale-offer/src/runtime.d.ts +2 -2
- package/sale-offer/src/runtime.js +1 -1
- package/sale-offer-log/src/apis/SearchSaleOfferLogApi.js +18 -26
- package/sale-offer-log/src/runtime.d.ts +2 -2
- package/sale-offer-log/src/runtime.js +1 -1
- package/servant/src/apis/ManageTaskApi.js +17 -25
- package/servant/src/apis/SearchServantApi.js +18 -26
- package/servant/src/runtime.d.ts +2 -2
- package/servant/src/runtime.js +1 -1
- package/shipment/src/apis/ManageOrderCarriageApi.js +18 -26
- package/shipment/src/apis/ManageShipmentApi.js +36 -52
- package/shipment/src/apis/SearchOrderCarriageApi.js +36 -52
- package/shipment/src/runtime.d.ts +2 -2
- package/shipment/src/runtime.js +1 -1
- package/shopping-cart/src/apis/ManageCartApi.js +36 -52
- package/shopping-cart/src/apis/ManageCartSubCartApi.js +53 -77
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +88 -128
- package/shopping-cart/src/runtime.d.ts +2 -2
- package/shopping-cart/src/runtime.js +1 -1
- package/statistic/src/apis/SearchSaleOfferStatisticsApi.js +36 -52
- package/statistic/src/runtime.d.ts +2 -2
- package/statistic/src/runtime.js +1 -1
- package/subscription/src/apis/ManageSubscriptionApi.js +53 -77
- package/subscription/src/apis/ManageSubscriptionPlanApi.js +18 -26
- package/subscription/src/apis/SearchSubscriptionApi.js +18 -26
- package/subscription/src/apis/SearchSubscriptionPlanApi.js +36 -52
- package/subscription/src/apis/SearchSubscriptionPlanFeatureApi.js +18 -26
- package/subscription/src/runtime.d.ts +2 -2
- package/subscription/src/runtime.js +1 -1
- package/thread/src/apis/ManageThreadCommentApi.js +36 -52
- package/thread/src/apis/SearchThreadApi.js +18 -26
- package/thread/src/apis/SearchThreadCommentApi.js +18 -26
- package/thread/src/runtime.d.ts +2 -2
- package/thread/src/runtime.js +1 -1
- package/ubo/src/apis/ManageUboDeclarationApi.js +18 -26
- package/ubo/src/apis/SearchUboDeclarationApi.js +18 -26
- package/ubo/src/runtime.d.ts +2 -2
- package/ubo/src/runtime.js +1 -1
- package/user/src/apis/ManagePasswordApi.js +34 -50
- package/user/src/apis/ManageUserApi.js +121 -177
- package/user/src/apis/ManageUserBankAccountApi.js +36 -52
- package/user/src/apis/ManageUserDocumentApi.js +54 -82
- package/user/src/apis/ManageUserFavoriteLaboratoryStoreApi.js +68 -100
- package/user/src/apis/ManageUserRestrictionApi.js +136 -200
- package/user/src/apis/ManageUserRoleApi.js +18 -26
- package/user/src/apis/ManageUserRuleApi.js +35 -51
- package/user/src/apis/ManageUserSocialNetworksApi.js +36 -52
- package/user/src/apis/ManageUserTransportApi.js +18 -26
- package/user/src/apis/SearchUserApi.js +108 -156
- package/user/src/apis/SearchUserDocumentApi.js +124 -180
- package/user/src/apis/SearchUserFavoriteLaboratoryStoreApi.js +36 -52
- package/user/src/apis/SearchUserFeatureApi.js +18 -26
- package/user/src/apis/SearchUserRestrictionApi.js +72 -104
- package/user/src/apis/SearchUserRuleApi.js +18 -26
- package/user/src/apis/SearchUserSocialNetworksApi.js +36 -52
- package/user/src/apis/SearchUserTransportApi.js +36 -52
- package/user/src/runtime.d.ts +2 -2
- package/user/src/runtime.js +1 -1
- package/wish/src/apis/ManageWishApi.js +51 -75
- package/wish/src/apis/SearchProductEnthusiasmApi.js +18 -26
- package/wish/src/apis/SearchWishApi.js +36 -52
- package/wish/src/runtime.d.ts +2 -2
- 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,
|
|
84
|
-
return __generator(this, function (
|
|
85
|
-
switch (
|
|
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 (
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
126
|
-
case
|
|
127
|
-
|
|
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
|
|
135
|
-
response =
|
|
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*/,
|
|
148
|
-
case
|
|
149
|
-
response_1 =
|
|
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
|
|
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,
|
|
180
|
-
return __generator(this, function (
|
|
181
|
-
switch (
|
|
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 (
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
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
|
-
|
|
222
|
-
case
|
|
223
|
-
|
|
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
|
|
231
|
-
response =
|
|
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*/,
|
|
244
|
-
case
|
|
245
|
-
response_2 =
|
|
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
|
|
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,
|
|
276
|
-
return __generator(this, function (
|
|
277
|
-
switch (
|
|
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 (
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
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
|
-
|
|
330
|
-
case
|
|
331
|
-
|
|
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
|
|
339
|
-
response =
|
|
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*/,
|
|
352
|
-
case
|
|
353
|
-
response_3 =
|
|
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
|
|
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,
|
|
384
|
-
return __generator(this, function (
|
|
385
|
-
switch (
|
|
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 (
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
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
|
-
|
|
408
|
-
case
|
|
409
|
-
|
|
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
|
|
417
|
-
response =
|
|
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*/,
|
|
430
|
-
case
|
|
431
|
-
response_4 =
|
|
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
|
|
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,
|
|
463
|
-
return __generator(this, function (
|
|
464
|
-
switch (
|
|
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 (
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
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
|
-
|
|
487
|
-
case
|
|
488
|
-
|
|
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
|
|
496
|
-
response =
|
|
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*/,
|
|
509
|
-
case
|
|
510
|
-
response_5 =
|
|
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
|
|
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,
|
|
542
|
-
return __generator(this, function (
|
|
543
|
-
switch (
|
|
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 (
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
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
|
-
|
|
587
|
-
case
|
|
588
|
-
|
|
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
|
|
596
|
-
response =
|
|
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*/,
|
|
609
|
-
case
|
|
610
|
-
response_6 =
|
|
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
|
|
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,
|
|
641
|
-
return __generator(this, function (
|
|
642
|
-
switch (
|
|
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 (
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
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
|
-
|
|
686
|
-
case
|
|
687
|
-
|
|
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
|
|
695
|
-
response =
|
|
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*/,
|
|
708
|
-
case
|
|
709
|
-
response_7 =
|
|
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
|
|
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,
|
|
740
|
-
return __generator(this, function (
|
|
741
|
-
switch (
|
|
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 (
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
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
|
-
|
|
797
|
-
case
|
|
798
|
-
|
|
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
|
|
806
|
-
response =
|
|
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*/,
|
|
819
|
-
case
|
|
820
|
-
response_8 =
|
|
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
|
|
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,
|
|
851
|
-
return __generator(this, function (
|
|
852
|
-
switch (
|
|
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 (
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
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
|
-
|
|
878
|
-
case
|
|
879
|
-
|
|
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
|
|
887
|
-
response =
|
|
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*/,
|
|
900
|
-
case
|
|
901
|
-
response_9 =
|
|
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
|
|
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,
|
|
933
|
-
return __generator(this, function (
|
|
934
|
-
switch (
|
|
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 (
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
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
|
-
|
|
960
|
-
case
|
|
961
|
-
|
|
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
|
|
969
|
-
response =
|
|
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*/,
|
|
982
|
-
case
|
|
983
|
-
response_10 =
|
|
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
|
|
906
|
+
case 4: return [2 /*return*/];
|
|
987
907
|
}
|
|
988
908
|
});
|
|
989
909
|
});
|