@lcdp/api-react-rest-client 2.5.5-develop.6787497078 → 2.5.5-develop.6796323718
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 +51 -35
- package/auth/src/apis/ManageApiKeyApi.js +77 -53
- package/auth/src/apis/SearchApiKeyApi.js +52 -36
- package/auth/src/runtime.d.ts +2 -2
- package/auth/src/runtime.js +1 -1
- package/banking-operation/src/apis/ManageLevyApi.js +52 -36
- package/banking-operation/src/apis/ManageOrderPaymentApi.js +52 -36
- package/banking-operation/src/apis/SearchLevyApi.js +52 -36
- package/banking-operation/src/apis/SearchOrderPaymentApi.js +26 -18
- package/banking-operation/src/runtime.d.ts +2 -2
- package/banking-operation/src/runtime.js +1 -1
- package/catalog/src/apis/ManageProductInsightApi.js +77 -53
- package/catalog/src/apis/SearchProductInsightApi.js +52 -36
- package/catalog/src/runtime.d.ts +2 -2
- package/catalog/src/runtime.js +1 -1
- package/challenge/src/apis/ManageChallengesApi.js +26 -18
- package/challenge/src/runtime.d.ts +2 -2
- package/challenge/src/runtime.js +1 -1
- package/configuration/src/apis/ManageVariableApi.js +25 -17
- package/configuration/src/apis/ManageVatApi.js +51 -35
- package/configuration/src/apis/SearchVatApi.js +52 -36
- package/configuration/src/runtime.d.ts +2 -2
- package/configuration/src/runtime.js +1 -1
- package/content/src/apis/ManageContentApi.js +26 -18
- package/content/src/runtime.d.ts +2 -2
- package/content/src/runtime.js +1 -1
- package/factory/src/apis/ManageAssemblyApi.js +53 -35
- package/factory/src/apis/ManageAssemblyOperationApi.js +26 -18
- package/factory/src/apis/SearchAssemblyApi.js +104 -72
- package/factory/src/apis/SearchAssemblyLineApi.js +52 -36
- package/factory/src/apis/SearchAssemblyOperationApi.js +52 -36
- package/factory/src/runtime.d.ts +2 -2
- package/factory/src/runtime.js +1 -1
- package/favorite/src/apis/ManageFavoriteProductApi.js +103 -71
- package/favorite/src/runtime.d.ts +2 -2
- package/favorite/src/runtime.js +1 -1
- package/geo/src/apis/SearchCountryApi.js +26 -18
- package/geo/src/runtime.d.ts +2 -2
- package/geo/src/runtime.js +1 -1
- package/inventory/src/apis/ManageInventoryApi.js +126 -86
- package/inventory/src/apis/SearchInventoryApi.js +260 -180
- package/inventory/src/runtime.d.ts +2 -2
- package/inventory/src/runtime.js +1 -1
- package/invoice/src/apis/ManageInvoiceApi.js +52 -36
- package/invoice/src/apis/ManageInvoiceLineApi.js +51 -35
- package/invoice/src/apis/ManageInvoicesSummaryApi.js +25 -17
- package/invoice/src/apis/SearchInvoiceApi.js +52 -36
- package/invoice/src/apis/SearchInvoiceLineApi.js +26 -18
- package/invoice/src/apis/SearchOrderTallyApi.js +52 -36
- package/invoice/src/runtime.d.ts +2 -2
- package/invoice/src/runtime.js +1 -1
- package/laboratory/src/apis/ManageLaboratoryApi.js +26 -18
- package/laboratory/src/apis/SearchLaboratoryApi.js +52 -36
- package/laboratory/src/runtime.d.ts +2 -2
- package/laboratory/src/runtime.js +1 -1
- package/laboratory-store/src/apis/ManageLaboratoryStoreApi.js +52 -36
- package/laboratory-store/src/apis/ManageLaboratoryStoreImageApi.js +106 -70
- package/laboratory-store/src/apis/SearchLaboratoryStoreApi.js +52 -36
- 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 +26 -18
- package/laboratory-store-log/src/runtime.d.ts +2 -2
- package/laboratory-store-log/src/runtime.js +1 -1
- package/lexicon/src/apis/ManageLexiconApi.js +51 -35
- package/lexicon/src/apis/SearchLexiconApi.js +104 -72
- package/lexicon/src/runtime.d.ts +2 -2
- package/lexicon/src/runtime.js +1 -1
- package/litigation/src/apis/ManageLitigationApi.js +25 -17
- package/litigation/src/runtime.d.ts +2 -2
- package/litigation/src/runtime.js +1 -1
- package/magic-cart/src/apis/ManageExpressOrderApi.js +26 -18
- package/magic-cart/src/runtime.d.ts +2 -2
- package/magic-cart/src/runtime.js +1 -1
- package/mandate/src/apis/ManageMandatesApi.js +103 -71
- 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 +127 -87
- package/message/src/apis/SearchMessageApi.js +78 -54
- package/message/src/runtime.d.ts +2 -2
- package/message/src/runtime.js +1 -1
- package/notification/src/apis/ManageNotificationApi.js +51 -35
- package/notification/src/apis/ManageNotificationTypeApi.js +79 -53
- package/notification/src/apis/SearchNotificationApi.js +52 -36
- package/notification/src/apis/SearchNotificationTypeApi.js +78 -54
- package/notification/src/runtime.d.ts +2 -2
- package/notification/src/runtime.js +1 -1
- package/order/src/apis/ManageMetaOrderApi.js +51 -35
- package/order/src/apis/ManageOrderApi.js +229 -157
- package/order/src/apis/ManageOrderItemApi.js +128 -88
- package/order/src/apis/SearchOrderApi.js +104 -72
- package/order/src/apis/SearchOrderItemApi.js +130 -90
- package/order/src/runtime.d.ts +2 -2
- package/order/src/runtime.js +1 -1
- package/order-log/src/apis/SearchOrderLogApi.js +26 -18
- package/order-log/src/runtime.d.ts +2 -2
- package/order-log/src/runtime.js +1 -1
- package/outrage-message/src/apis/ManageOutrageMessageApi.js +77 -53
- package/outrage-message/src/apis/SearchOutrageMessageApi.js +52 -36
- 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 +52 -36
- package/product/src/apis/ManageProductImageApi.js +52 -34
- package/product/src/apis/ManageProductProscriptionApi.js +51 -35
- package/product/src/apis/SearchProductApi.js +52 -36
- package/product/src/apis/SearchProductImageApi.js +52 -36
- package/product/src/apis/SearchProductMetadataApi.js +104 -72
- package/product/src/apis/SearchProductProscriptionApi.js +26 -18
- package/product/src/runtime.d.ts +2 -2
- package/product/src/runtime.js +1 -1
- package/pub/src/apis/ManagePubApi.js +102 -70
- package/pub/src/apis/ManagePubImageApi.js +28 -18
- package/pub/src/apis/SearchPubApi.js +78 -54
- package/pub/src/runtime.d.ts +2 -2
- package/pub/src/runtime.js +1 -1
- package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.js +26 -18
- package/recommendation/src/apis/SearchProductPriceRecommendationApi.js +26 -18
- package/recommendation/src/apis/SearchProductRecommendationApi.js +26 -18
- package/recommendation/src/runtime.d.ts +2 -2
- package/recommendation/src/runtime.js +1 -1
- package/rfx/src/apis/ManageRfiApi.js +25 -17
- package/rfx/src/apis/ManageRfilApi.js +25 -17
- package/rfx/src/apis/ManageRfoApi.js +25 -17
- package/rfx/src/apis/ManageRfoiApi.js +52 -36
- package/rfx/src/apis/SearchRfoiApi.js +26 -18
- package/rfx/src/runtime.d.ts +2 -2
- package/rfx/src/runtime.js +1 -1
- package/sale-offer/src/apis/ManageSaleOfferApi.js +153 -105
- package/sale-offer/src/apis/SearchSaleOfferApi.js +52 -36
- 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 +26 -18
- 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 +25 -17
- package/servant/src/apis/SearchServantApi.js +26 -18
- package/servant/src/runtime.d.ts +2 -2
- package/servant/src/runtime.js +1 -1
- package/shipment/src/apis/ManageOrderCarriageApi.js +26 -18
- package/shipment/src/apis/ManageShipmentApi.js +52 -36
- package/shipment/src/apis/SearchOrderCarriageApi.js +52 -36
- package/shipment/src/runtime.d.ts +2 -2
- package/shipment/src/runtime.js +1 -1
- package/shopping-cart/src/apis/ManageCartApi.js +52 -36
- package/shopping-cart/src/apis/ManageCartSubCartApi.js +77 -53
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +128 -88
- package/shopping-cart/src/runtime.d.ts +2 -2
- package/shopping-cart/src/runtime.js +1 -1
- package/statistic/src/apis/SearchSaleOfferStatisticsApi.js +52 -36
- package/statistic/src/runtime.d.ts +2 -2
- package/statistic/src/runtime.js +1 -1
- package/subscription/src/apis/ManageSubscriptionApi.js +77 -53
- package/subscription/src/apis/ManageSubscriptionPlanApi.js +26 -18
- package/subscription/src/apis/SearchSubscriptionApi.js +26 -18
- package/subscription/src/apis/SearchSubscriptionPlanApi.js +52 -36
- package/subscription/src/apis/SearchSubscriptionPlanFeatureApi.js +26 -18
- package/subscription/src/runtime.d.ts +2 -2
- package/subscription/src/runtime.js +1 -1
- package/thread/src/apis/ManageThreadCommentApi.js +52 -36
- package/thread/src/apis/SearchThreadApi.js +26 -18
- package/thread/src/apis/SearchThreadCommentApi.js +26 -18
- package/thread/src/runtime.d.ts +2 -2
- package/thread/src/runtime.js +1 -1
- package/ubo/src/apis/ManageUboDeclarationApi.js +26 -18
- package/ubo/src/apis/SearchUboDeclarationApi.js +26 -18
- package/ubo/src/runtime.d.ts +2 -2
- package/ubo/src/runtime.js +1 -1
- package/user/src/apis/ManagePasswordApi.js +50 -34
- package/user/src/apis/ManageUserApi.js +177 -121
- package/user/src/apis/ManageUserBankAccountApi.js +52 -36
- package/user/src/apis/ManageUserDocumentApi.js +82 -54
- package/user/src/apis/ManageUserFavoriteLaboratoryStoreApi.js +100 -68
- package/user/src/apis/ManageUserRestrictionApi.js +200 -136
- package/user/src/apis/ManageUserRoleApi.js +26 -18
- package/user/src/apis/ManageUserRuleApi.js +51 -35
- package/user/src/apis/ManageUserSocialNetworksApi.js +52 -36
- package/user/src/apis/ManageUserTransportApi.js +26 -18
- package/user/src/apis/SearchUserApi.js +156 -108
- package/user/src/apis/SearchUserDocumentApi.js +180 -124
- package/user/src/apis/SearchUserFavoriteLaboratoryStoreApi.js +52 -36
- package/user/src/apis/SearchUserFeatureApi.js +26 -18
- package/user/src/apis/SearchUserRestrictionApi.js +104 -72
- package/user/src/apis/SearchUserRuleApi.js +26 -18
- package/user/src/apis/SearchUserSocialNetworksApi.js +52 -36
- package/user/src/apis/SearchUserTransportApi.js +52 -36
- package/user/src/runtime.d.ts +2 -2
- package/user/src/runtime.js +1 -1
- package/wish/src/apis/ManageWishApi.js +75 -51
- package/wish/src/apis/SearchProductEnthusiasmApi.js +26 -18
- package/wish/src/apis/SearchWishApi.js +52 -36
- 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, response, contentType, response_1;
|
|
84
|
-
return __generator(this, function (
|
|
85
|
-
switch (
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_1;
|
|
84
|
+
return __generator(this, function (_b) {
|
|
85
|
+
switch (_b.label) {
|
|
86
86
|
case 0:
|
|
87
87
|
queryParameters = {};
|
|
88
88
|
if (requestParameters.q !== undefined) {
|
|
@@ -107,24 +107,32 @@ 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)
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
_a.label = 1;
|
|
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", [])];
|
|
118
114
|
case 1:
|
|
119
|
-
_a.
|
|
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);
|
|
124
|
+
}
|
|
125
|
+
_b.label = 4;
|
|
126
|
+
case 4:
|
|
127
|
+
_b.trys.push([4, 6, , 7]);
|
|
120
128
|
return [4 /*yield*/, this.request({
|
|
121
129
|
path: "/inventories/me/active-products",
|
|
122
130
|
method: 'GET',
|
|
123
131
|
headers: headerParameters,
|
|
124
132
|
query: queryParameters,
|
|
125
133
|
})];
|
|
126
|
-
case
|
|
127
|
-
response =
|
|
134
|
+
case 5:
|
|
135
|
+
response = _b.sent();
|
|
128
136
|
contentType = response.headers.get("content-type");
|
|
129
137
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
130
138
|
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedActiveProductsFromJSON)(jsonValue); })];
|
|
@@ -136,12 +144,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
136
144
|
// TODO : Better handling of others application types
|
|
137
145
|
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
138
146
|
}
|
|
139
|
-
return [3 /*break*/,
|
|
140
|
-
case
|
|
141
|
-
response_1 =
|
|
147
|
+
return [3 /*break*/, 7];
|
|
148
|
+
case 6:
|
|
149
|
+
response_1 = _b.sent();
|
|
142
150
|
console.debug(response_1);
|
|
143
151
|
throw response_1;
|
|
144
|
-
case
|
|
152
|
+
case 7: return [2 /*return*/];
|
|
145
153
|
}
|
|
146
154
|
});
|
|
147
155
|
});
|
|
@@ -168,9 +176,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
168
176
|
*/
|
|
169
177
|
SearchInventoryApi.prototype.getCurrentInventoryMisalignedProductsRaw = function (requestParameters) {
|
|
170
178
|
return __awaiter(this, void 0, void 0, function () {
|
|
171
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
|
|
172
|
-
return __generator(this, function (
|
|
173
|
-
switch (
|
|
179
|
+
var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_2;
|
|
180
|
+
return __generator(this, function (_b) {
|
|
181
|
+
switch (_b.label) {
|
|
174
182
|
case 0:
|
|
175
183
|
queryParameters = {};
|
|
176
184
|
if (requestParameters.q !== undefined) {
|
|
@@ -195,24 +203,32 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
195
203
|
if (this.configuration && this.configuration.apiKey) {
|
|
196
204
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
197
205
|
}
|
|
198
|
-
if (this.configuration && this.configuration.accessToken)
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
_a.label = 1;
|
|
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", [])];
|
|
206
210
|
case 1:
|
|
207
|
-
_a.
|
|
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);
|
|
220
|
+
}
|
|
221
|
+
_b.label = 4;
|
|
222
|
+
case 4:
|
|
223
|
+
_b.trys.push([4, 6, , 7]);
|
|
208
224
|
return [4 /*yield*/, this.request({
|
|
209
225
|
path: "/inventories/me/misaligned-products",
|
|
210
226
|
method: 'GET',
|
|
211
227
|
headers: headerParameters,
|
|
212
228
|
query: queryParameters,
|
|
213
229
|
})];
|
|
214
|
-
case
|
|
215
|
-
response =
|
|
230
|
+
case 5:
|
|
231
|
+
response = _b.sent();
|
|
216
232
|
contentType = response.headers.get("content-type");
|
|
217
233
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
218
234
|
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedMisalignedProductsFromJSON)(jsonValue); })];
|
|
@@ -224,12 +240,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
224
240
|
// TODO : Better handling of others application types
|
|
225
241
|
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
226
242
|
}
|
|
227
|
-
return [3 /*break*/,
|
|
228
|
-
case
|
|
229
|
-
response_2 =
|
|
243
|
+
return [3 /*break*/, 7];
|
|
244
|
+
case 6:
|
|
245
|
+
response_2 = _b.sent();
|
|
230
246
|
console.debug(response_2);
|
|
231
247
|
throw response_2;
|
|
232
|
-
case
|
|
248
|
+
case 7: return [2 /*return*/];
|
|
233
249
|
}
|
|
234
250
|
});
|
|
235
251
|
});
|
|
@@ -256,9 +272,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
256
272
|
*/
|
|
257
273
|
SearchInventoryApi.prototype.getCurrentInventoryOverstockProductsRaw = function (requestParameters) {
|
|
258
274
|
return __awaiter(this, void 0, void 0, function () {
|
|
259
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_3;
|
|
260
|
-
return __generator(this, function (
|
|
261
|
-
switch (
|
|
275
|
+
var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_3;
|
|
276
|
+
return __generator(this, function (_b) {
|
|
277
|
+
switch (_b.label) {
|
|
262
278
|
case 0:
|
|
263
279
|
queryParameters = {};
|
|
264
280
|
if (requestParameters.q !== undefined) {
|
|
@@ -295,24 +311,32 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
295
311
|
if (this.configuration && this.configuration.apiKey) {
|
|
296
312
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
297
313
|
}
|
|
298
|
-
if (this.configuration && this.configuration.accessToken)
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
_a.label = 1;
|
|
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", [])];
|
|
306
318
|
case 1:
|
|
307
|
-
_a.
|
|
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);
|
|
328
|
+
}
|
|
329
|
+
_b.label = 4;
|
|
330
|
+
case 4:
|
|
331
|
+
_b.trys.push([4, 6, , 7]);
|
|
308
332
|
return [4 /*yield*/, this.request({
|
|
309
333
|
path: "/inventories/me/overstock-products",
|
|
310
334
|
method: 'GET',
|
|
311
335
|
headers: headerParameters,
|
|
312
336
|
query: queryParameters,
|
|
313
337
|
})];
|
|
314
|
-
case
|
|
315
|
-
response =
|
|
338
|
+
case 5:
|
|
339
|
+
response = _b.sent();
|
|
316
340
|
contentType = response.headers.get("content-type");
|
|
317
341
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
318
342
|
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedOverstockProductsFromJSON)(jsonValue); })];
|
|
@@ -324,12 +348,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
324
348
|
// TODO : Better handling of others application types
|
|
325
349
|
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
326
350
|
}
|
|
327
|
-
return [3 /*break*/,
|
|
328
|
-
case
|
|
329
|
-
response_3 =
|
|
351
|
+
return [3 /*break*/, 7];
|
|
352
|
+
case 6:
|
|
353
|
+
response_3 = _b.sent();
|
|
330
354
|
console.debug(response_3);
|
|
331
355
|
throw response_3;
|
|
332
|
-
case
|
|
356
|
+
case 7: return [2 /*return*/];
|
|
333
357
|
}
|
|
334
358
|
});
|
|
335
359
|
});
|
|
@@ -356,33 +380,41 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
356
380
|
*/
|
|
357
381
|
SearchInventoryApi.prototype.getCurrentInventoryStatisticsRaw = function () {
|
|
358
382
|
return __awaiter(this, void 0, void 0, function () {
|
|
359
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_4;
|
|
360
|
-
return __generator(this, function (
|
|
361
|
-
switch (
|
|
383
|
+
var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_4;
|
|
384
|
+
return __generator(this, function (_b) {
|
|
385
|
+
switch (_b.label) {
|
|
362
386
|
case 0:
|
|
363
387
|
queryParameters = {};
|
|
364
388
|
headerParameters = {};
|
|
365
389
|
if (this.configuration && this.configuration.apiKey) {
|
|
366
390
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
367
391
|
}
|
|
368
|
-
if (this.configuration && this.configuration.accessToken)
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
_a.label = 1;
|
|
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", [])];
|
|
376
396
|
case 1:
|
|
377
|
-
_a.
|
|
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);
|
|
406
|
+
}
|
|
407
|
+
_b.label = 4;
|
|
408
|
+
case 4:
|
|
409
|
+
_b.trys.push([4, 6, , 7]);
|
|
378
410
|
return [4 /*yield*/, this.request({
|
|
379
411
|
path: "/inventories/me/statistics",
|
|
380
412
|
method: 'GET',
|
|
381
413
|
headers: headerParameters,
|
|
382
414
|
query: queryParameters,
|
|
383
415
|
})];
|
|
384
|
-
case
|
|
385
|
-
response =
|
|
416
|
+
case 5:
|
|
417
|
+
response = _b.sent();
|
|
386
418
|
contentType = response.headers.get("content-type");
|
|
387
419
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
388
420
|
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.StatisticsFromJSON)(jsonValue); })];
|
|
@@ -394,12 +426,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
394
426
|
// TODO : Better handling of others application types
|
|
395
427
|
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
396
428
|
}
|
|
397
|
-
return [3 /*break*/,
|
|
398
|
-
case
|
|
399
|
-
response_4 =
|
|
429
|
+
return [3 /*break*/, 7];
|
|
430
|
+
case 6:
|
|
431
|
+
response_4 = _b.sent();
|
|
400
432
|
console.debug(response_4);
|
|
401
433
|
throw response_4;
|
|
402
|
-
case
|
|
434
|
+
case 7: return [2 /*return*/];
|
|
403
435
|
}
|
|
404
436
|
});
|
|
405
437
|
});
|
|
@@ -427,33 +459,41 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
427
459
|
*/
|
|
428
460
|
SearchInventoryApi.prototype.getCurrentInventorySynchroneityRaw = function () {
|
|
429
461
|
return __awaiter(this, void 0, void 0, function () {
|
|
430
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_5;
|
|
431
|
-
return __generator(this, function (
|
|
432
|
-
switch (
|
|
462
|
+
var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_5;
|
|
463
|
+
return __generator(this, function (_b) {
|
|
464
|
+
switch (_b.label) {
|
|
433
465
|
case 0:
|
|
434
466
|
queryParameters = {};
|
|
435
467
|
headerParameters = {};
|
|
436
468
|
if (this.configuration && this.configuration.apiKey) {
|
|
437
469
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
438
470
|
}
|
|
439
|
-
if (this.configuration && this.configuration.accessToken)
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
_a.label = 1;
|
|
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", [])];
|
|
447
475
|
case 1:
|
|
448
|
-
_a.
|
|
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);
|
|
485
|
+
}
|
|
486
|
+
_b.label = 4;
|
|
487
|
+
case 4:
|
|
488
|
+
_b.trys.push([4, 6, , 7]);
|
|
449
489
|
return [4 /*yield*/, this.request({
|
|
450
490
|
path: "/inventories/me/synchroneity",
|
|
451
491
|
method: 'GET',
|
|
452
492
|
headers: headerParameters,
|
|
453
493
|
query: queryParameters,
|
|
454
494
|
})];
|
|
455
|
-
case
|
|
456
|
-
response =
|
|
495
|
+
case 5:
|
|
496
|
+
response = _b.sent();
|
|
457
497
|
contentType = response.headers.get("content-type");
|
|
458
498
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
459
499
|
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SynchroneityFromJSON)(jsonValue); })];
|
|
@@ -465,12 +505,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
465
505
|
// TODO : Better handling of others application types
|
|
466
506
|
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
467
507
|
}
|
|
468
|
-
return [3 /*break*/,
|
|
469
|
-
case
|
|
470
|
-
response_5 =
|
|
508
|
+
return [3 /*break*/, 7];
|
|
509
|
+
case 6:
|
|
510
|
+
response_5 = _b.sent();
|
|
471
511
|
console.debug(response_5);
|
|
472
512
|
throw response_5;
|
|
473
|
-
case
|
|
513
|
+
case 7: return [2 /*return*/];
|
|
474
514
|
}
|
|
475
515
|
});
|
|
476
516
|
});
|
|
@@ -498,9 +538,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
498
538
|
*/
|
|
499
539
|
SearchInventoryApi.prototype.getInventoryActiveProductsRaw = function (requestParameters) {
|
|
500
540
|
return __awaiter(this, void 0, void 0, function () {
|
|
501
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_6;
|
|
502
|
-
return __generator(this, function (
|
|
503
|
-
switch (
|
|
541
|
+
var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_6;
|
|
542
|
+
return __generator(this, function (_b) {
|
|
543
|
+
switch (_b.label) {
|
|
504
544
|
case 0:
|
|
505
545
|
if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
|
|
506
546
|
throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventoryActiveProducts.');
|
|
@@ -528,24 +568,32 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
528
568
|
if (this.configuration && this.configuration.apiKey) {
|
|
529
569
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
530
570
|
}
|
|
531
|
-
if (this.configuration && this.configuration.accessToken)
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
_a.label = 1;
|
|
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", [])];
|
|
539
575
|
case 1:
|
|
540
|
-
_a.
|
|
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);
|
|
585
|
+
}
|
|
586
|
+
_b.label = 4;
|
|
587
|
+
case 4:
|
|
588
|
+
_b.trys.push([4, 6, , 7]);
|
|
541
589
|
return [4 /*yield*/, this.request({
|
|
542
590
|
path: "/inventories/{inventoryId}/active-products".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters.inventoryId))),
|
|
543
591
|
method: 'GET',
|
|
544
592
|
headers: headerParameters,
|
|
545
593
|
query: queryParameters,
|
|
546
594
|
})];
|
|
547
|
-
case
|
|
548
|
-
response =
|
|
595
|
+
case 5:
|
|
596
|
+
response = _b.sent();
|
|
549
597
|
contentType = response.headers.get("content-type");
|
|
550
598
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
551
599
|
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedActiveProductsFromJSON)(jsonValue); })];
|
|
@@ -557,12 +605,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
557
605
|
// TODO : Better handling of others application types
|
|
558
606
|
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
559
607
|
}
|
|
560
|
-
return [3 /*break*/,
|
|
561
|
-
case
|
|
562
|
-
response_6 =
|
|
608
|
+
return [3 /*break*/, 7];
|
|
609
|
+
case 6:
|
|
610
|
+
response_6 = _b.sent();
|
|
563
611
|
console.debug(response_6);
|
|
564
612
|
throw response_6;
|
|
565
|
-
case
|
|
613
|
+
case 7: return [2 /*return*/];
|
|
566
614
|
}
|
|
567
615
|
});
|
|
568
616
|
});
|
|
@@ -589,9 +637,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
589
637
|
*/
|
|
590
638
|
SearchInventoryApi.prototype.getInventoryMisalignedProductsRaw = function (requestParameters) {
|
|
591
639
|
return __awaiter(this, void 0, void 0, function () {
|
|
592
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_7;
|
|
593
|
-
return __generator(this, function (
|
|
594
|
-
switch (
|
|
640
|
+
var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_7;
|
|
641
|
+
return __generator(this, function (_b) {
|
|
642
|
+
switch (_b.label) {
|
|
595
643
|
case 0:
|
|
596
644
|
if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
|
|
597
645
|
throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventoryMisalignedProducts.');
|
|
@@ -619,24 +667,32 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
619
667
|
if (this.configuration && this.configuration.apiKey) {
|
|
620
668
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
621
669
|
}
|
|
622
|
-
if (this.configuration && this.configuration.accessToken)
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
_a.label = 1;
|
|
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", [])];
|
|
630
674
|
case 1:
|
|
631
|
-
_a.
|
|
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);
|
|
684
|
+
}
|
|
685
|
+
_b.label = 4;
|
|
686
|
+
case 4:
|
|
687
|
+
_b.trys.push([4, 6, , 7]);
|
|
632
688
|
return [4 /*yield*/, this.request({
|
|
633
689
|
path: "/inventories/{inventoryId}/misaligned-products".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters.inventoryId))),
|
|
634
690
|
method: 'GET',
|
|
635
691
|
headers: headerParameters,
|
|
636
692
|
query: queryParameters,
|
|
637
693
|
})];
|
|
638
|
-
case
|
|
639
|
-
response =
|
|
694
|
+
case 5:
|
|
695
|
+
response = _b.sent();
|
|
640
696
|
contentType = response.headers.get("content-type");
|
|
641
697
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
642
698
|
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedMisalignedProductsFromJSON)(jsonValue); })];
|
|
@@ -648,12 +704,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
648
704
|
// TODO : Better handling of others application types
|
|
649
705
|
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
650
706
|
}
|
|
651
|
-
return [3 /*break*/,
|
|
652
|
-
case
|
|
653
|
-
response_7 =
|
|
707
|
+
return [3 /*break*/, 7];
|
|
708
|
+
case 6:
|
|
709
|
+
response_7 = _b.sent();
|
|
654
710
|
console.debug(response_7);
|
|
655
711
|
throw response_7;
|
|
656
|
-
case
|
|
712
|
+
case 7: return [2 /*return*/];
|
|
657
713
|
}
|
|
658
714
|
});
|
|
659
715
|
});
|
|
@@ -680,9 +736,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
680
736
|
*/
|
|
681
737
|
SearchInventoryApi.prototype.getInventoryOverstockProductsRaw = function (requestParameters) {
|
|
682
738
|
return __awaiter(this, void 0, void 0, function () {
|
|
683
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_8;
|
|
684
|
-
return __generator(this, function (
|
|
685
|
-
switch (
|
|
739
|
+
var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_8;
|
|
740
|
+
return __generator(this, function (_b) {
|
|
741
|
+
switch (_b.label) {
|
|
686
742
|
case 0:
|
|
687
743
|
if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
|
|
688
744
|
throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventoryOverstockProducts.');
|
|
@@ -722,24 +778,32 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
722
778
|
if (this.configuration && this.configuration.apiKey) {
|
|
723
779
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
724
780
|
}
|
|
725
|
-
if (this.configuration && this.configuration.accessToken)
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
_a.label = 1;
|
|
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", [])];
|
|
733
785
|
case 1:
|
|
734
|
-
_a.
|
|
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);
|
|
795
|
+
}
|
|
796
|
+
_b.label = 4;
|
|
797
|
+
case 4:
|
|
798
|
+
_b.trys.push([4, 6, , 7]);
|
|
735
799
|
return [4 /*yield*/, this.request({
|
|
736
800
|
path: "/inventories/{inventoryId}/overstock-products".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters.inventoryId))),
|
|
737
801
|
method: 'GET',
|
|
738
802
|
headers: headerParameters,
|
|
739
803
|
query: queryParameters,
|
|
740
804
|
})];
|
|
741
|
-
case
|
|
742
|
-
response =
|
|
805
|
+
case 5:
|
|
806
|
+
response = _b.sent();
|
|
743
807
|
contentType = response.headers.get("content-type");
|
|
744
808
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
745
809
|
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedOverstockProductsFromJSON)(jsonValue); })];
|
|
@@ -751,12 +815,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
751
815
|
// TODO : Better handling of others application types
|
|
752
816
|
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
753
817
|
}
|
|
754
|
-
return [3 /*break*/,
|
|
755
|
-
case
|
|
756
|
-
response_8 =
|
|
818
|
+
return [3 /*break*/, 7];
|
|
819
|
+
case 6:
|
|
820
|
+
response_8 = _b.sent();
|
|
757
821
|
console.debug(response_8);
|
|
758
822
|
throw response_8;
|
|
759
|
-
case
|
|
823
|
+
case 7: return [2 /*return*/];
|
|
760
824
|
}
|
|
761
825
|
});
|
|
762
826
|
});
|
|
@@ -783,9 +847,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
783
847
|
*/
|
|
784
848
|
SearchInventoryApi.prototype.getInventoryStatisticsRaw = function (requestParameters) {
|
|
785
849
|
return __awaiter(this, void 0, void 0, function () {
|
|
786
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_9;
|
|
787
|
-
return __generator(this, function (
|
|
788
|
-
switch (
|
|
850
|
+
var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_9;
|
|
851
|
+
return __generator(this, function (_b) {
|
|
852
|
+
switch (_b.label) {
|
|
789
853
|
case 0:
|
|
790
854
|
if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
|
|
791
855
|
throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventoryStatistics.');
|
|
@@ -795,24 +859,32 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
795
859
|
if (this.configuration && this.configuration.apiKey) {
|
|
796
860
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
797
861
|
}
|
|
798
|
-
if (this.configuration && this.configuration.accessToken)
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
_a.label = 1;
|
|
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", [])];
|
|
806
866
|
case 1:
|
|
807
|
-
_a.
|
|
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);
|
|
876
|
+
}
|
|
877
|
+
_b.label = 4;
|
|
878
|
+
case 4:
|
|
879
|
+
_b.trys.push([4, 6, , 7]);
|
|
808
880
|
return [4 /*yield*/, this.request({
|
|
809
881
|
path: "/inventories/{inventoryId}/statistics".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters.inventoryId))),
|
|
810
882
|
method: 'GET',
|
|
811
883
|
headers: headerParameters,
|
|
812
884
|
query: queryParameters,
|
|
813
885
|
})];
|
|
814
|
-
case
|
|
815
|
-
response =
|
|
886
|
+
case 5:
|
|
887
|
+
response = _b.sent();
|
|
816
888
|
contentType = response.headers.get("content-type");
|
|
817
889
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
818
890
|
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.StatisticsFromJSON)(jsonValue); })];
|
|
@@ -824,12 +896,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
824
896
|
// TODO : Better handling of others application types
|
|
825
897
|
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
826
898
|
}
|
|
827
|
-
return [3 /*break*/,
|
|
828
|
-
case
|
|
829
|
-
response_9 =
|
|
899
|
+
return [3 /*break*/, 7];
|
|
900
|
+
case 6:
|
|
901
|
+
response_9 = _b.sent();
|
|
830
902
|
console.debug(response_9);
|
|
831
903
|
throw response_9;
|
|
832
|
-
case
|
|
904
|
+
case 7: return [2 /*return*/];
|
|
833
905
|
}
|
|
834
906
|
});
|
|
835
907
|
});
|
|
@@ -857,9 +929,9 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
857
929
|
*/
|
|
858
930
|
SearchInventoryApi.prototype.getInventorySynchroneityRaw = function (requestParameters) {
|
|
859
931
|
return __awaiter(this, void 0, void 0, function () {
|
|
860
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_10;
|
|
861
|
-
return __generator(this, function (
|
|
862
|
-
switch (
|
|
932
|
+
var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_10;
|
|
933
|
+
return __generator(this, function (_b) {
|
|
934
|
+
switch (_b.label) {
|
|
863
935
|
case 0:
|
|
864
936
|
if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
|
|
865
937
|
throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventorySynchroneity.');
|
|
@@ -869,24 +941,32 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
869
941
|
if (this.configuration && this.configuration.apiKey) {
|
|
870
942
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
871
943
|
}
|
|
872
|
-
if (this.configuration && this.configuration.accessToken)
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
_a.label = 1;
|
|
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", [])];
|
|
880
948
|
case 1:
|
|
881
|
-
_a.
|
|
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);
|
|
958
|
+
}
|
|
959
|
+
_b.label = 4;
|
|
960
|
+
case 4:
|
|
961
|
+
_b.trys.push([4, 6, , 7]);
|
|
882
962
|
return [4 /*yield*/, this.request({
|
|
883
963
|
path: "/inventories/{inventoryId}/synchroneity".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters.inventoryId))),
|
|
884
964
|
method: 'GET',
|
|
885
965
|
headers: headerParameters,
|
|
886
966
|
query: queryParameters,
|
|
887
967
|
})];
|
|
888
|
-
case
|
|
889
|
-
response =
|
|
968
|
+
case 5:
|
|
969
|
+
response = _b.sent();
|
|
890
970
|
contentType = response.headers.get("content-type");
|
|
891
971
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
892
972
|
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SynchroneityFromJSON)(jsonValue); })];
|
|
@@ -898,12 +978,12 @@ var SearchInventoryApi = /** @class */ (function (_super) {
|
|
|
898
978
|
// TODO : Better handling of others application types
|
|
899
979
|
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
900
980
|
}
|
|
901
|
-
return [3 /*break*/,
|
|
902
|
-
case
|
|
903
|
-
response_10 =
|
|
981
|
+
return [3 /*break*/, 7];
|
|
982
|
+
case 6:
|
|
983
|
+
response_10 = _b.sent();
|
|
904
984
|
console.debug(response_10);
|
|
905
985
|
throw response_10;
|
|
906
|
-
case
|
|
986
|
+
case 7: return [2 /*return*/];
|
|
907
987
|
}
|
|
908
988
|
});
|
|
909
989
|
});
|