@lcdp/api-react-rest-client 2.1.2-develop.4364529993 → 2.1.2-develop.4366019146
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/package.json
CHANGED
|
@@ -17,6 +17,9 @@ export interface DeleteCurrentCartSubCartRequest {
|
|
|
17
17
|
export interface GetCurrentCartSubCartRequest {
|
|
18
18
|
subCartId: number;
|
|
19
19
|
}
|
|
20
|
+
export interface GetCurrentCartSubCartsRequest {
|
|
21
|
+
orderBy?: GetCurrentCartSubCartsOrderByEnum;
|
|
22
|
+
}
|
|
20
23
|
/**
|
|
21
24
|
* no description
|
|
22
25
|
*/
|
|
@@ -40,9 +43,19 @@ export declare class ManageCartSubCartApi extends BaseAPI {
|
|
|
40
43
|
/**
|
|
41
44
|
* Get user cart split by SubCart
|
|
42
45
|
*/
|
|
43
|
-
getCurrentCartSubCartsRaw(): Promise<ApiResponse<Array<CartSubCart> | BlobWithMeta>>;
|
|
46
|
+
getCurrentCartSubCartsRaw(requestParameters: GetCurrentCartSubCartsRequest): Promise<ApiResponse<Array<CartSubCart> | BlobWithMeta>>;
|
|
44
47
|
/**
|
|
45
48
|
* Get user cart split by SubCart
|
|
46
49
|
*/
|
|
47
|
-
getCurrentCartSubCarts(): Promise<Array<CartSubCart> | BlobWithMeta>;
|
|
50
|
+
getCurrentCartSubCarts(requestParameters: GetCurrentCartSubCartsRequest): Promise<Array<CartSubCart> | BlobWithMeta>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
* @enum {string}
|
|
55
|
+
*/
|
|
56
|
+
export declare enum GetCurrentCartSubCartsOrderByEnum {
|
|
57
|
+
UPDATEDATasc = "UPDATED_AT:asc",
|
|
58
|
+
UPDATEDATdesc = "UPDATED_AT:desc",
|
|
59
|
+
TOTALEXCLUDINGTAXESasc = "TOTAL_EXCLUDING_TAXES:asc",
|
|
60
|
+
TOTALEXCLUDINGTAXESdesc = "TOTAL_EXCLUDING_TAXES:desc"
|
|
48
61
|
}
|
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.ManageCartSubCartApi = void 0;
|
|
67
|
+
exports.GetCurrentCartSubCartsOrderByEnum = exports.ManageCartSubCartApi = void 0;
|
|
68
68
|
var runtime_1 = require("../runtime");
|
|
69
69
|
var models_1 = require("../models");
|
|
70
70
|
/**
|
|
@@ -211,13 +211,16 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
211
211
|
/**
|
|
212
212
|
* Get user cart split by SubCart
|
|
213
213
|
*/
|
|
214
|
-
ManageCartSubCartApi.prototype.getCurrentCartSubCartsRaw = function () {
|
|
214
|
+
ManageCartSubCartApi.prototype.getCurrentCartSubCartsRaw = function (requestParameters) {
|
|
215
215
|
return __awaiter(this, void 0, void 0, function () {
|
|
216
216
|
var queryParameters, headerParameters, token, tokenString, response, contentType, response_3;
|
|
217
217
|
return __generator(this, function (_a) {
|
|
218
218
|
switch (_a.label) {
|
|
219
219
|
case 0:
|
|
220
220
|
queryParameters = {};
|
|
221
|
+
if (requestParameters.orderBy !== undefined) {
|
|
222
|
+
queryParameters['orderBy'] = requestParameters.orderBy;
|
|
223
|
+
}
|
|
221
224
|
headerParameters = {};
|
|
222
225
|
if (this.configuration && this.configuration.apiKey) {
|
|
223
226
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
@@ -264,12 +267,12 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
264
267
|
/**
|
|
265
268
|
* Get user cart split by SubCart
|
|
266
269
|
*/
|
|
267
|
-
ManageCartSubCartApi.prototype.getCurrentCartSubCarts = function () {
|
|
270
|
+
ManageCartSubCartApi.prototype.getCurrentCartSubCarts = function (requestParameters) {
|
|
268
271
|
return __awaiter(this, void 0, void 0, function () {
|
|
269
272
|
var response;
|
|
270
273
|
return __generator(this, function (_a) {
|
|
271
274
|
switch (_a.label) {
|
|
272
|
-
case 0: return [4 /*yield*/, this.getCurrentCartSubCartsRaw()];
|
|
275
|
+
case 0: return [4 /*yield*/, this.getCurrentCartSubCartsRaw(requestParameters)];
|
|
273
276
|
case 1:
|
|
274
277
|
response = _a.sent();
|
|
275
278
|
return [4 /*yield*/, response.value()];
|
|
@@ -281,3 +284,14 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
281
284
|
return ManageCartSubCartApi;
|
|
282
285
|
}(runtime_1.BaseAPI));
|
|
283
286
|
exports.ManageCartSubCartApi = ManageCartSubCartApi;
|
|
287
|
+
/**
|
|
288
|
+
* @export
|
|
289
|
+
* @enum {string}
|
|
290
|
+
*/
|
|
291
|
+
var GetCurrentCartSubCartsOrderByEnum;
|
|
292
|
+
(function (GetCurrentCartSubCartsOrderByEnum) {
|
|
293
|
+
GetCurrentCartSubCartsOrderByEnum["UPDATEDATasc"] = "UPDATED_AT:asc";
|
|
294
|
+
GetCurrentCartSubCartsOrderByEnum["UPDATEDATdesc"] = "UPDATED_AT:desc";
|
|
295
|
+
GetCurrentCartSubCartsOrderByEnum["TOTALEXCLUDINGTAXESasc"] = "TOTAL_EXCLUDING_TAXES:asc";
|
|
296
|
+
GetCurrentCartSubCartsOrderByEnum["TOTALEXCLUDINGTAXESdesc"] = "TOTAL_EXCLUDING_TAXES:desc";
|
|
297
|
+
})(GetCurrentCartSubCartsOrderByEnum = exports.GetCurrentCartSubCartsOrderByEnum || (exports.GetCurrentCartSubCartsOrderByEnum = {}));
|
|
@@ -30,6 +30,12 @@ export interface CartSubCart {
|
|
|
30
30
|
* @memberof CartSubCart
|
|
31
31
|
*/
|
|
32
32
|
transport?: CartSubCartTransport;
|
|
33
|
+
/**
|
|
34
|
+
* Last update date of this sub cart
|
|
35
|
+
* @type {Date}
|
|
36
|
+
* @memberof CartSubCart
|
|
37
|
+
*/
|
|
38
|
+
updatedAt?: Date;
|
|
33
39
|
/**
|
|
34
40
|
*
|
|
35
41
|
* @type {SellerLink}
|
|
@@ -29,6 +29,7 @@ function CartSubCartFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
return {
|
|
30
30
|
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
31
31
|
'transport': !(0, runtime_1.exists)(json, 'transport') ? undefined : (0, CartSubCartTransport_1.CartSubCartTransportFromJSON)(json['transport']),
|
|
32
|
+
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
32
33
|
'seller': !(0, runtime_1.exists)(json, 'seller') ? undefined : (0, SellerLink_1.SellerLinkFromJSON)(json['seller']),
|
|
33
34
|
'lineCount': !(0, runtime_1.exists)(json, 'lineCount') ? undefined : json['lineCount'],
|
|
34
35
|
'lines': !(0, runtime_1.exists)(json, 'lines') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['lines']),
|
|
@@ -47,6 +48,7 @@ function CartSubCartToJSON(value) {
|
|
|
47
48
|
return {
|
|
48
49
|
'id': value.id,
|
|
49
50
|
'transport': (0, CartSubCartTransport_1.CartSubCartTransportToJSON)(value.transport),
|
|
51
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
50
52
|
'seller': (0, SellerLink_1.SellerLinkToJSON)(value.seller),
|
|
51
53
|
'lineCount': value.lineCount,
|
|
52
54
|
'lines': (0, HttpLink_1.HttpLinkToJSON)(value.lines),
|