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