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