@lcdp/api-react-rest-client 2.1.2-develop.4345729489 → 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/auth/src/models/HttpLink.d.ts +1 -1
- package/banking-operation/src/models/HttpLink.d.ts +1 -1
- package/factory/src/models/HttpLink.d.ts +1 -1
- package/favorite/src/models/HttpLink.d.ts +1 -1
- package/inventory/src/models/HttpLink.d.ts +1 -1
- package/invoice/src/models/HttpLink.d.ts +1 -1
- package/laboratory-store/src/models/HttpLink.d.ts +1 -1
- package/laboratory-store/src/models/ImageVersions.d.ts +6 -6
- package/laboratory-store-log/src/models/HttpLink.d.ts +1 -1
- package/magic-cart/src/models/HttpLink.d.ts +1 -1
- package/message/src/models/HttpLink.d.ts +1 -1
- package/notification/src/models/HttpLink.d.ts +1 -1
- package/order/src/models/HttpLink.d.ts +1 -1
- package/order-log/src/models/HttpLink.d.ts +1 -1
- package/package.json +1 -1
- package/product/src/models/HttpLink.d.ts +1 -1
- package/product/src/models/ImageVersions.d.ts +6 -6
- package/pub/src/models/HttpLink.d.ts +1 -1
- package/pub/src/models/ImageVersions.d.ts +6 -6
- package/recommendation/src/models/HttpLink.d.ts +1 -1
- package/rfx/src/models/HttpLink.d.ts +1 -1
- package/sale-offer/src/models/HttpLink.d.ts +1 -1
- package/sale-offer/src/models/ImageVersions.d.ts +6 -6
- package/sale-offer-log/src/models/HttpLink.d.ts +1 -1
- package/shipment/src/models/HttpLink.d.ts +1 -1
- package/shipment/src/models/Shipment.d.ts +3 -3
- package/shipment/src/models/Shipment.js +3 -3
- package/shipment/src/models/ShipmentLabels.d.ts +33 -0
- package/shipment/src/models/ShipmentLabels.js +44 -0
- package/shipment/src/models/index.d.ts +1 -0
- package/shipment/src/models/index.js +1 -0
- package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +15 -2
- package/shopping-cart/src/apis/ManageCartSubCartApi.js +18 -4
- package/shopping-cart/src/models/CartSubCart.d.ts +6 -0
- package/shopping-cart/src/models/CartSubCart.js +2 -0
- package/shopping-cart/src/models/HttpLink.d.ts +1 -1
- package/statistic/src/models/HttpLink.d.ts +1 -1
- package/subscription/src/models/HttpLink.d.ts +1 -1
- package/thread/src/models/HttpLink.d.ts +1 -1
- package/user/src/models/HttpLink.d.ts +1 -1
- package/wish/src/models/HttpLink.d.ts +1 -1
|
@@ -16,37 +16,37 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ImageVersions {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* URL to S3 file (width 128px, height computed with original image aspect ratio)
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ImageVersions
|
|
22
22
|
*/
|
|
23
23
|
xsmall?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* URL to S3 file (width 256px, height computed with original image aspect ratio)
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ImageVersions
|
|
28
28
|
*/
|
|
29
29
|
small?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* URL to S3 file (width 512px, height computed with original image aspect ratio)
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ImageVersions
|
|
34
34
|
*/
|
|
35
35
|
medium?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* URL to S3 file (width 1024px, height computed with original image aspect ratio)
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof ImageVersions
|
|
40
40
|
*/
|
|
41
41
|
large?: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* URL to S3 file (width 2048px, height computed with original image aspect ratio)
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof ImageVersions
|
|
46
46
|
*/
|
|
47
47
|
xlarge?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* URL to S3 file (Original size)
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof ImageVersions
|
|
52
52
|
*/
|
package/package.json
CHANGED
|
@@ -16,37 +16,37 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ImageVersions {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* URL to S3 file (width 128px, height computed with original image aspect ratio)
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ImageVersions
|
|
22
22
|
*/
|
|
23
23
|
xsmall?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* URL to S3 file (width 256px, height computed with original image aspect ratio)
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ImageVersions
|
|
28
28
|
*/
|
|
29
29
|
small?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* URL to S3 file (width 512px, height computed with original image aspect ratio)
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ImageVersions
|
|
34
34
|
*/
|
|
35
35
|
medium?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* URL to S3 file (width 1024px, height computed with original image aspect ratio)
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof ImageVersions
|
|
40
40
|
*/
|
|
41
41
|
large?: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* URL to S3 file (width 2048px, height computed with original image aspect ratio)
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof ImageVersions
|
|
46
46
|
*/
|
|
47
47
|
xlarge?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* URL to S3 file (Original size)
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof ImageVersions
|
|
52
52
|
*/
|
|
@@ -16,37 +16,37 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ImageVersions {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* URL to S3 file (width 128px, height computed with original image aspect ratio)
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ImageVersions
|
|
22
22
|
*/
|
|
23
23
|
xsmall?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* URL to S3 file (width 256px, height computed with original image aspect ratio)
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ImageVersions
|
|
28
28
|
*/
|
|
29
29
|
small?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* URL to S3 file (width 512px, height computed with original image aspect ratio)
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ImageVersions
|
|
34
34
|
*/
|
|
35
35
|
medium?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* URL to S3 file (width 1024px, height computed with original image aspect ratio)
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof ImageVersions
|
|
40
40
|
*/
|
|
41
41
|
large?: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* URL to S3 file (width 2048px, height computed with original image aspect ratio)
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof ImageVersions
|
|
46
46
|
*/
|
|
47
47
|
xlarge?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* URL to S3 file (Original size)
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof ImageVersions
|
|
52
52
|
*/
|
|
@@ -16,37 +16,37 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ImageVersions {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* URL to S3 file (width 128px, height computed with original image aspect ratio)
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ImageVersions
|
|
22
22
|
*/
|
|
23
23
|
xsmall?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* URL to S3 file (width 256px, height computed with original image aspect ratio)
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ImageVersions
|
|
28
28
|
*/
|
|
29
29
|
small?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* URL to S3 file (width 512px, height computed with original image aspect ratio)
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ImageVersions
|
|
34
34
|
*/
|
|
35
35
|
medium?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* URL to S3 file (width 1024px, height computed with original image aspect ratio)
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof ImageVersions
|
|
40
40
|
*/
|
|
41
41
|
large?: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* URL to S3 file (width 2048px, height computed with original image aspect ratio)
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof ImageVersions
|
|
46
46
|
*/
|
|
47
47
|
xlarge?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* URL to S3 file (Original size)
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof ImageVersions
|
|
52
52
|
*/
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ShipmentLabels } from './ShipmentLabels';
|
|
13
13
|
import { ShipmentParcel } from './ShipmentParcel';
|
|
14
14
|
/**
|
|
15
15
|
* A shipment is a transport request for X parcels.
|
|
@@ -25,10 +25,10 @@ export interface Shipment {
|
|
|
25
25
|
reservationNumber?: string;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
|
-
* @type {
|
|
28
|
+
* @type {ShipmentLabels}
|
|
29
29
|
* @memberof Shipment
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
labels?: ShipmentLabels;
|
|
32
32
|
/**
|
|
33
33
|
* Pickup date for this shipment
|
|
34
34
|
* @type {Date}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ShipmentToJSON = exports.ShipmentFromJSONTyped = exports.ShipmentFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
-
var
|
|
18
|
+
var ShipmentLabels_1 = require("./ShipmentLabels");
|
|
19
19
|
var ShipmentParcel_1 = require("./ShipmentParcel");
|
|
20
20
|
function ShipmentFromJSON(json) {
|
|
21
21
|
return ShipmentFromJSONTyped(json, false);
|
|
@@ -27,7 +27,7 @@ function ShipmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
29
|
'reservationNumber': !(0, runtime_1.exists)(json, 'reservationNumber') ? undefined : json['reservationNumber'],
|
|
30
|
-
'
|
|
30
|
+
'labels': !(0, runtime_1.exists)(json, 'labels') ? undefined : (0, ShipmentLabels_1.ShipmentLabelsFromJSON)(json['labels']),
|
|
31
31
|
'pickupDate': !(0, runtime_1.exists)(json, 'pickupDate') ? undefined : (new Date(json['pickupDate'])),
|
|
32
32
|
'parcels': !(0, runtime_1.exists)(json, 'parcels') ? undefined : (json['parcels'].map(ShipmentParcel_1.ShipmentParcelFromJSON)),
|
|
33
33
|
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
@@ -43,7 +43,7 @@ function ShipmentToJSON(value) {
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
'reservationNumber': value.reservationNumber,
|
|
46
|
-
'
|
|
46
|
+
'labels': (0, ShipmentLabels_1.ShipmentLabelsToJSON)(value.labels),
|
|
47
47
|
'pickupDate': value.pickupDate === undefined ? undefined : (value.pickupDate.toISOString()),
|
|
48
48
|
'parcels': value.parcels === undefined ? undefined : (value.parcels.map(ShipmentParcel_1.ShipmentParcelToJSON)),
|
|
49
49
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP shipment
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ShipmentLabels
|
|
16
|
+
*/
|
|
17
|
+
export interface ShipmentLabels {
|
|
18
|
+
/**
|
|
19
|
+
* URI to PDF file
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ShipmentLabels
|
|
22
|
+
*/
|
|
23
|
+
pdf?: string;
|
|
24
|
+
/**
|
|
25
|
+
* URI to ZPL file
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ShipmentLabels
|
|
28
|
+
*/
|
|
29
|
+
zpl?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function ShipmentLabelsFromJSON(json: any): ShipmentLabels;
|
|
32
|
+
export declare function ShipmentLabelsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShipmentLabels;
|
|
33
|
+
export declare function ShipmentLabelsToJSON(value?: ShipmentLabels | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP shipment
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ShipmentLabelsToJSON = exports.ShipmentLabelsFromJSONTyped = exports.ShipmentLabelsFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ShipmentLabelsFromJSON(json) {
|
|
19
|
+
return ShipmentLabelsFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ShipmentLabelsFromJSON = ShipmentLabelsFromJSON;
|
|
22
|
+
function ShipmentLabelsFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'pdf': !(0, runtime_1.exists)(json, 'pdf') ? undefined : json['pdf'],
|
|
28
|
+
'zpl': !(0, runtime_1.exists)(json, 'zpl') ? undefined : json['zpl'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.ShipmentLabelsFromJSONTyped = ShipmentLabelsFromJSONTyped;
|
|
32
|
+
function ShipmentLabelsToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'pdf': value.pdf,
|
|
41
|
+
'zpl': value.zpl,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.ShipmentLabelsToJSON = ShipmentLabelsToJSON;
|
|
@@ -13,6 +13,7 @@ export * from './RestError';
|
|
|
13
13
|
export * from './Shipment';
|
|
14
14
|
export * from './ShipmentCreationParameters';
|
|
15
15
|
export * from './ShipmentError';
|
|
16
|
+
export * from './ShipmentLabels';
|
|
16
17
|
export * from './ShipmentParcel';
|
|
17
18
|
export * from './ShipmentParcelStatus';
|
|
18
19
|
export * from './SkybillLink';
|
|
@@ -29,6 +29,7 @@ __exportStar(require("./RestError"), exports);
|
|
|
29
29
|
__exportStar(require("./Shipment"), exports);
|
|
30
30
|
__exportStar(require("./ShipmentCreationParameters"), exports);
|
|
31
31
|
__exportStar(require("./ShipmentError"), exports);
|
|
32
|
+
__exportStar(require("./ShipmentLabels"), exports);
|
|
32
33
|
__exportStar(require("./ShipmentParcel"), exports);
|
|
33
34
|
__exportStar(require("./ShipmentParcelStatus"), exports);
|
|
34
35
|
__exportStar(require("./SkybillLink"), exports);
|
|
@@ -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),
|