@lcdp/api-react-rest-client 3.1.2 → 3.1.3-LDS-5369-api-modifications-routes-et-sch.21861896537
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/order/src/apis/ManageForeorderApi.d.ts +31 -0
- package/order/src/apis/{ManageMetaOrderApi.js → ManageForeorderApi.js} +18 -91
- package/order/src/apis/ManageOrderApi.d.ts +8 -8
- package/order/src/apis/ManageOrderApi.js +9 -10
- package/order/src/apis/index.d.ts +1 -1
- package/order/src/apis/index.js +1 -1
- package/order/src/models/{AnyMetaOrderWarning.d.ts → AnyForeorderWarning.d.ts} +5 -5
- package/order/src/models/{AnyMetaOrderWarning.js → AnyForeorderWarning.js} +10 -10
- package/order/src/models/Foreorder.d.ts +241 -0
- package/order/src/models/Foreorder.js +180 -0
- package/order/src/models/ForeorderCreationParameters.d.ts +45 -0
- package/order/src/models/ForeorderCreationParameters.js +58 -0
- package/order/src/models/ForeorderCreationResponse.d.ts +39 -0
- package/order/src/models/ForeorderCreationResponse.js +53 -0
- package/order/src/models/ForeorderWarning.d.ts +31 -0
- package/order/src/models/{MetaOrderWarning.js → ForeorderWarning.js} +11 -11
- package/order/src/models/Order.d.ts +9 -7
- package/order/src/models/Order.js +6 -4
- package/order/src/models/OrderCreationParameters.d.ts +46 -0
- package/order/src/models/OrderCreationParameters.js +59 -0
- package/order/src/models/index.d.ts +6 -7
- package/order/src/models/index.js +6 -7
- package/package.json +1 -1
- package/shopping-cart/src/apis/ManageCartApi.d.ts +30 -28
- package/shopping-cart/src/apis/ManageCartApi.js +43 -167
- package/shopping-cart/src/apis/ManageCartLineApi.d.ts +82 -0
- package/shopping-cart/src/apis/{ManageCartSubCartApi.js → ManageCartLineApi.js} +86 -157
- package/shopping-cart/src/apis/index.d.ts +1 -2
- package/shopping-cart/src/apis/index.js +1 -2
- package/shopping-cart/src/models/Cart.d.ts +6 -6
- package/shopping-cart/src/models/Cart.js +10 -4
- package/shopping-cart/src/models/CartCreationParameters.d.ts +44 -0
- package/shopping-cart/src/models/CartCreationParameters.js +56 -0
- package/shopping-cart/src/models/CartCreationResponse.d.ts +39 -0
- package/shopping-cart/src/models/CartCreationResponse.js +49 -0
- package/shopping-cart/src/models/{CartSubCartLine.d.ts → CartLine.d.ts} +13 -13
- package/shopping-cart/src/models/{CartSubCartLine.js → CartLine.js} +11 -11
- package/shopping-cart/src/models/CartLineResponse.d.ts +39 -0
- package/shopping-cart/src/models/CartLineResponse.js +49 -0
- package/shopping-cart/src/models/CartLineUpdateParameters.d.ts +37 -0
- package/shopping-cart/src/models/CartLineUpdateParameters.js +49 -0
- package/shopping-cart/src/models/CartLinesResponse.d.ts +39 -0
- package/shopping-cart/src/models/CartLinesResponse.js +49 -0
- package/shopping-cart/src/models/CartRecord.d.ts +70 -0
- package/shopping-cart/src/models/CartRecord.js +74 -0
- package/shopping-cart/src/models/{CartSubCartTransport.d.ts → CartRecordTransport.d.ts} +12 -12
- package/shopping-cart/src/models/{CartSubCartTransport.js → CartRecordTransport.js} +11 -11
- package/shopping-cart/src/models/CartSummary.d.ts +31 -0
- package/shopping-cart/src/models/CartSummary.js +47 -0
- package/shopping-cart/src/models/CartWarning.d.ts +68 -0
- package/shopping-cart/src/models/CartWarning.js +69 -0
- package/shopping-cart/src/models/OwnerLink.d.ts +43 -0
- package/shopping-cart/src/models/{SellerLink.js → OwnerLink.js} +13 -14
- package/shopping-cart/src/models/PaginatedCarts.d.ts +46 -0
- package/shopping-cart/src/models/PaginatedCarts.js +58 -0
- package/shopping-cart/src/models/PagingMetadata.d.ts +49 -0
- package/shopping-cart/src/models/PagingMetadata.js +55 -0
- package/shopping-cart/src/models/index.d.ts +13 -6
- package/shopping-cart/src/models/index.js +13 -6
- package/order/src/apis/ManageMetaOrderApi.d.ts +0 -45
- package/order/src/models/MetaOrder.d.ts +0 -64
- package/order/src/models/MetaOrder.js +0 -70
- package/order/src/models/MetaOrderCreationParameters.d.ts +0 -38
- package/order/src/models/MetaOrderCreationParameters.js +0 -52
- package/order/src/models/MetaOrderCreationSubCartParameters.d.ts +0 -31
- package/order/src/models/MetaOrderCreationSubCartParameters.js +0 -47
- package/order/src/models/MetaOrderPrices.d.ts +0 -79
- package/order/src/models/MetaOrderPrices.js +0 -79
- package/order/src/models/MetaOrderWarning.d.ts +0 -31
- package/order/src/models/MetaOrderWithWarnings.d.ts +0 -39
- package/order/src/models/MetaOrderWithWarnings.js +0 -49
- package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +0 -107
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.d.ts +0 -151
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +0 -879
- package/shopping-cart/src/models/CartSubCart.d.ts +0 -76
- package/shopping-cart/src/models/CartSubCart.js +0 -78
- package/shopping-cart/src/models/CartSubCartLineUpdateParameters.d.ts +0 -37
- package/shopping-cart/src/models/CartSubCartLineUpdateParameters.js +0 -49
- package/shopping-cart/src/models/SellerLink.d.ts +0 -50
- package/shopping-cart/src/models/UserRole.d.ts +0 -29
- package/shopping-cart/src/models/UserRole.js +0 -52
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.CartRecordTransportToJSON = exports.CartRecordTransportFromJSONTyped = exports.CartRecordTransportFromJSON = exports.instanceOfCartRecordTransport = void 0;
|
|
17
17
|
/**
|
|
18
|
-
* Check if a given object implements the
|
|
18
|
+
* Check if a given object implements the CartRecordTransport interface.
|
|
19
19
|
*/
|
|
20
|
-
function
|
|
20
|
+
function instanceOfCartRecordTransport(value) {
|
|
21
21
|
if (!('minimumPrice' in value) || value['minimumPrice'] === undefined)
|
|
22
22
|
return false;
|
|
23
23
|
if (!('totalShippingFeesExcludingTaxes' in value) || value['totalShippingFeesExcludingTaxes'] === undefined)
|
|
@@ -28,12 +28,12 @@ function instanceOfCartSubCartTransport(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
return true;
|
|
30
30
|
}
|
|
31
|
-
exports.
|
|
32
|
-
function
|
|
33
|
-
return
|
|
31
|
+
exports.instanceOfCartRecordTransport = instanceOfCartRecordTransport;
|
|
32
|
+
function CartRecordTransportFromJSON(json) {
|
|
33
|
+
return CartRecordTransportFromJSONTyped(json, false);
|
|
34
34
|
}
|
|
35
|
-
exports.
|
|
36
|
-
function
|
|
35
|
+
exports.CartRecordTransportFromJSON = CartRecordTransportFromJSON;
|
|
36
|
+
function CartRecordTransportFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
37
|
if (json == null) {
|
|
38
38
|
return json;
|
|
39
39
|
}
|
|
@@ -44,8 +44,8 @@ function CartSubCartTransportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'deliveryDelay': json['deliveryDelay'],
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
exports.
|
|
48
|
-
function
|
|
47
|
+
exports.CartRecordTransportFromJSONTyped = CartRecordTransportFromJSONTyped;
|
|
48
|
+
function CartRecordTransportToJSON(value) {
|
|
49
49
|
if (value == null) {
|
|
50
50
|
return value;
|
|
51
51
|
}
|
|
@@ -56,4 +56,4 @@ function CartSubCartTransportToJSON(value) {
|
|
|
56
56
|
'deliveryDelay': value['deliveryDelay'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
exports.
|
|
59
|
+
exports.CartRecordTransportToJSON = CartRecordTransportToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
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
|
+
* Summary computed on all visible records
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CartSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface CartSummary {
|
|
18
|
+
/**
|
|
19
|
+
* Total number of lines across all visible records
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CartSummary
|
|
22
|
+
*/
|
|
23
|
+
lineCount: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CartSummary interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCartSummary(value: object): value is CartSummary;
|
|
29
|
+
export declare function CartSummaryFromJSON(json: any): CartSummary;
|
|
30
|
+
export declare function CartSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartSummary;
|
|
31
|
+
export declare function CartSummaryToJSON(value?: CartSummary | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
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.CartSummaryToJSON = exports.CartSummaryFromJSONTyped = exports.CartSummaryFromJSON = exports.instanceOfCartSummary = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CartSummary interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfCartSummary(value) {
|
|
21
|
+
if (!('lineCount' in value) || value['lineCount'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCartSummary = instanceOfCartSummary;
|
|
26
|
+
function CartSummaryFromJSON(json) {
|
|
27
|
+
return CartSummaryFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CartSummaryFromJSON = CartSummaryFromJSON;
|
|
30
|
+
function CartSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'lineCount': json['lineCount'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.CartSummaryFromJSONTyped = CartSummaryFromJSONTyped;
|
|
39
|
+
function CartSummaryToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'lineCount': value['lineCount'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.CartSummaryToJSON = CartSummaryToJSON;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
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 CartWarning
|
|
16
|
+
*/
|
|
17
|
+
export interface CartWarning {
|
|
18
|
+
/**
|
|
19
|
+
* Type of warning
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CartWarning
|
|
22
|
+
*/
|
|
23
|
+
type: CartWarningTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Id of the cart concerned by the warning
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CartWarning
|
|
28
|
+
*/
|
|
29
|
+
cartId?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Reference of the offer concerned by the warning
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CartWarning
|
|
34
|
+
*/
|
|
35
|
+
offerReference: string;
|
|
36
|
+
/**
|
|
37
|
+
* Id of the distribution range concerned by the warning
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CartWarning
|
|
40
|
+
*/
|
|
41
|
+
distributionRangeId?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Quantity originally requested
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CartWarning
|
|
46
|
+
*/
|
|
47
|
+
requestedQuantity: number;
|
|
48
|
+
/**
|
|
49
|
+
* Quantity actually set in the cart
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CartWarning
|
|
52
|
+
*/
|
|
53
|
+
finalQuantity: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const CartWarningTypeEnum: {
|
|
59
|
+
readonly QUANTITY_EXCEEDED: "QuantityExceeded";
|
|
60
|
+
};
|
|
61
|
+
export declare type CartWarningTypeEnum = typeof CartWarningTypeEnum[keyof typeof CartWarningTypeEnum];
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the CartWarning interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfCartWarning(value: object): value is CartWarning;
|
|
66
|
+
export declare function CartWarningFromJSON(json: any): CartWarning;
|
|
67
|
+
export declare function CartWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartWarning;
|
|
68
|
+
export declare function CartWarningToJSON(value?: CartWarning | null): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
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.CartWarningToJSON = exports.CartWarningFromJSONTyped = exports.CartWarningFromJSON = exports.instanceOfCartWarning = exports.CartWarningTypeEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.CartWarningTypeEnum = {
|
|
21
|
+
QUANTITY_EXCEEDED: 'QuantityExceeded'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the CartWarning interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfCartWarning(value) {
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('offerReference' in value) || value['offerReference'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('requestedQuantity' in value) || value['requestedQuantity'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('finalQuantity' in value) || value['finalQuantity'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
exports.instanceOfCartWarning = instanceOfCartWarning;
|
|
38
|
+
function CartWarningFromJSON(json) {
|
|
39
|
+
return CartWarningFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
exports.CartWarningFromJSON = CartWarningFromJSON;
|
|
42
|
+
function CartWarningFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'type': json['type'],
|
|
48
|
+
'cartId': json['cartId'],
|
|
49
|
+
'offerReference': json['offerReference'],
|
|
50
|
+
'distributionRangeId': json['distributionRangeId'],
|
|
51
|
+
'requestedQuantity': json['requestedQuantity'],
|
|
52
|
+
'finalQuantity': json['finalQuantity'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.CartWarningFromJSONTyped = CartWarningFromJSONTyped;
|
|
56
|
+
function CartWarningToJSON(value) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'type': value['type'],
|
|
62
|
+
'cartId': value['cartId'],
|
|
63
|
+
'offerReference': value['offerReference'],
|
|
64
|
+
'distributionRangeId': value['distributionRangeId'],
|
|
65
|
+
'requestedQuantity': value['requestedQuantity'],
|
|
66
|
+
'finalQuantity': value['finalQuantity'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
exports.CartWarningToJSON = CartWarningToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
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 OwnerLink
|
|
16
|
+
*/
|
|
17
|
+
export interface OwnerLink {
|
|
18
|
+
/**
|
|
19
|
+
* Any URL that is using http or https protocol
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OwnerLink
|
|
22
|
+
*/
|
|
23
|
+
href: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier of the owner
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof OwnerLink
|
|
28
|
+
*/
|
|
29
|
+
id: number;
|
|
30
|
+
/**
|
|
31
|
+
* User nickname
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OwnerLink
|
|
34
|
+
*/
|
|
35
|
+
nickname?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the OwnerLink interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfOwnerLink(value: object): value is OwnerLink;
|
|
41
|
+
export declare function OwnerLinkFromJSON(json: any): OwnerLink;
|
|
42
|
+
export declare function OwnerLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): OwnerLink;
|
|
43
|
+
export declare function OwnerLinkToJSON(value?: OwnerLink | null): any;
|
|
@@ -13,22 +13,23 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
var UserRole_1 = require("./UserRole");
|
|
16
|
+
exports.OwnerLinkToJSON = exports.OwnerLinkFromJSONTyped = exports.OwnerLinkFromJSON = exports.instanceOfOwnerLink = void 0;
|
|
18
17
|
/**
|
|
19
|
-
* Check if a given object implements the
|
|
18
|
+
* Check if a given object implements the OwnerLink interface.
|
|
20
19
|
*/
|
|
21
|
-
function
|
|
20
|
+
function instanceOfOwnerLink(value) {
|
|
22
21
|
if (!('href' in value) || value['href'] === undefined)
|
|
23
22
|
return false;
|
|
23
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
24
|
+
return false;
|
|
24
25
|
return true;
|
|
25
26
|
}
|
|
26
|
-
exports.
|
|
27
|
-
function
|
|
28
|
-
return
|
|
27
|
+
exports.instanceOfOwnerLink = instanceOfOwnerLink;
|
|
28
|
+
function OwnerLinkFromJSON(json) {
|
|
29
|
+
return OwnerLinkFromJSONTyped(json, false);
|
|
29
30
|
}
|
|
30
|
-
exports.
|
|
31
|
-
function
|
|
31
|
+
exports.OwnerLinkFromJSON = OwnerLinkFromJSON;
|
|
32
|
+
function OwnerLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
33
|
if (json == null) {
|
|
33
34
|
return json;
|
|
34
35
|
}
|
|
@@ -36,11 +37,10 @@ function SellerLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'href': json['href'],
|
|
37
38
|
'id': json['id'],
|
|
38
39
|
'nickname': json['nickname'],
|
|
39
|
-
'role': (json['role'] === null || json['role'] === undefined) ? json['role'] : (0, UserRole_1.UserRoleFromJSON)(json['role']),
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
exports.
|
|
43
|
-
function
|
|
42
|
+
exports.OwnerLinkFromJSONTyped = OwnerLinkFromJSONTyped;
|
|
43
|
+
function OwnerLinkToJSON(value) {
|
|
44
44
|
if (value == null) {
|
|
45
45
|
return value;
|
|
46
46
|
}
|
|
@@ -48,7 +48,6 @@ function SellerLinkToJSON(value) {
|
|
|
48
48
|
'href': value['href'],
|
|
49
49
|
'id': value['id'],
|
|
50
50
|
'nickname': value['nickname'],
|
|
51
|
-
'role': (0, UserRole_1.UserRoleToJSON)(value['role']),
|
|
52
51
|
};
|
|
53
52
|
}
|
|
54
|
-
exports.
|
|
53
|
+
exports.OwnerLinkToJSON = OwnerLinkToJSON;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
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
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { CartSummary } from './CartSummary';
|
|
14
|
+
import type { CartRecord } from './CartRecord';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface PaginatedCarts
|
|
19
|
+
*/
|
|
20
|
+
export interface PaginatedCarts {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {PagingMetadata}
|
|
24
|
+
* @memberof PaginatedCarts
|
|
25
|
+
*/
|
|
26
|
+
metadata: PagingMetadata;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {CartSummary}
|
|
30
|
+
* @memberof PaginatedCarts
|
|
31
|
+
*/
|
|
32
|
+
summary: CartSummary;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<CartRecord>}
|
|
36
|
+
* @memberof PaginatedCarts
|
|
37
|
+
*/
|
|
38
|
+
records: Array<CartRecord>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the PaginatedCarts interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfPaginatedCarts(value: object): value is PaginatedCarts;
|
|
44
|
+
export declare function PaginatedCartsFromJSON(json: any): PaginatedCarts;
|
|
45
|
+
export declare function PaginatedCartsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCarts;
|
|
46
|
+
export declare function PaginatedCartsToJSON(value?: PaginatedCarts | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
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.PaginatedCartsToJSON = exports.PaginatedCartsFromJSONTyped = exports.PaginatedCartsFromJSON = exports.instanceOfPaginatedCarts = void 0;
|
|
17
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
18
|
+
var CartSummary_1 = require("./CartSummary");
|
|
19
|
+
var CartRecord_1 = require("./CartRecord");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the PaginatedCarts interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfPaginatedCarts(value) {
|
|
24
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('summary' in value) || value['summary'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('records' in value) || value['records'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
exports.instanceOfPaginatedCarts = instanceOfPaginatedCarts;
|
|
33
|
+
function PaginatedCartsFromJSON(json) {
|
|
34
|
+
return PaginatedCartsFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
exports.PaginatedCartsFromJSON = PaginatedCartsFromJSON;
|
|
37
|
+
function PaginatedCartsFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'metadata': (json['metadata'] === null || json['metadata'] === undefined) ? json['metadata'] : (0, PagingMetadata_1.PagingMetadataFromJSON)(json['metadata']),
|
|
43
|
+
'summary': (json['summary'] === null || json['summary'] === undefined) ? json['summary'] : (0, CartSummary_1.CartSummaryFromJSON)(json['summary']),
|
|
44
|
+
'records': (json['records'] === null || json['records'] === undefined) ? json['records'] : json['records'].map(CartRecord_1.CartRecordFromJSON),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.PaginatedCartsFromJSONTyped = PaginatedCartsFromJSONTyped;
|
|
48
|
+
function PaginatedCartsToJSON(value) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'metadata': (0, PagingMetadata_1.PagingMetadataToJSON)(value['metadata']),
|
|
54
|
+
'summary': (0, CartSummary_1.CartSummaryToJSON)(value['summary']),
|
|
55
|
+
'records': (value['records'] === null || value['records'] === undefined) ? value['records'] : value['records'].map(CartRecord_1.CartRecordToJSON),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.PaginatedCartsToJSON = PaginatedCartsToJSON;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
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
|
+
* All information about current and available pages
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PagingMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface PagingMetadata {
|
|
18
|
+
/**
|
|
19
|
+
* Current page requested. Start at 0. May not be present if user do not request specific page.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PagingMetadata
|
|
22
|
+
*/
|
|
23
|
+
page?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PagingMetadata
|
|
28
|
+
*/
|
|
29
|
+
perPage?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Total number of item visible by the client in the request
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PagingMetadata
|
|
34
|
+
*/
|
|
35
|
+
totalVisible: number;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of item found in database
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PagingMetadata
|
|
40
|
+
*/
|
|
41
|
+
totalFound: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PagingMetadata interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPagingMetadata(value: object): value is PagingMetadata;
|
|
47
|
+
export declare function PagingMetadataFromJSON(json: any): PagingMetadata;
|
|
48
|
+
export declare function PagingMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagingMetadata;
|
|
49
|
+
export declare function PagingMetadataToJSON(value?: PagingMetadata | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
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.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.PagingMetadataFromJSON = exports.instanceOfPagingMetadata = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PagingMetadata interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfPagingMetadata(value) {
|
|
21
|
+
if (!('totalVisible' in value) || value['totalVisible'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalFound' in value) || value['totalFound'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfPagingMetadata = instanceOfPagingMetadata;
|
|
28
|
+
function PagingMetadataFromJSON(json) {
|
|
29
|
+
return PagingMetadataFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.PagingMetadataFromJSON = PagingMetadataFromJSON;
|
|
32
|
+
function PagingMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'page': json['page'],
|
|
38
|
+
'perPage': json['perPage'],
|
|
39
|
+
'totalVisible': json['totalVisible'],
|
|
40
|
+
'totalFound': json['totalFound'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.PagingMetadataFromJSONTyped = PagingMetadataFromJSONTyped;
|
|
44
|
+
function PagingMetadataToJSON(value) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'page': value['page'],
|
|
50
|
+
'perPage': value['perPage'],
|
|
51
|
+
'totalVisible': value['totalVisible'],
|
|
52
|
+
'totalFound': value['totalFound'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.PagingMetadataToJSON = PagingMetadataToJSON;
|
|
@@ -1,23 +1,30 @@
|
|
|
1
1
|
export * from './AnyIdentifiedDistributionMode';
|
|
2
2
|
export * from './Barcodes';
|
|
3
3
|
export * from './Cart';
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
4
|
+
export * from './CartCreationParameters';
|
|
5
|
+
export * from './CartCreationResponse';
|
|
6
|
+
export * from './CartLine';
|
|
7
|
+
export * from './CartLineResponse';
|
|
8
|
+
export * from './CartLineUpdateParameters';
|
|
9
|
+
export * from './CartLinesResponse';
|
|
10
|
+
export * from './CartRecord';
|
|
11
|
+
export * from './CartRecordTransport';
|
|
12
|
+
export * from './CartSummary';
|
|
13
|
+
export * from './CartWarning';
|
|
8
14
|
export * from './DistributionMode';
|
|
9
15
|
export * from './DistributionRange';
|
|
10
16
|
export * from './HttpLink';
|
|
11
17
|
export * from './IdentifiedDistributionRange';
|
|
12
18
|
export * from './IdentifiedRangeDistributionMode';
|
|
19
|
+
export * from './OwnerLink';
|
|
20
|
+
export * from './PaginatedCarts';
|
|
21
|
+
export * from './PagingMetadata';
|
|
13
22
|
export * from './ProductLink';
|
|
14
23
|
export * from './ProductStorageType';
|
|
15
24
|
export * from './QuotationDistributionMode';
|
|
16
25
|
export * from './RestError';
|
|
17
26
|
export * from './SaleOfferLink';
|
|
18
27
|
export * from './SaleOfferStatus';
|
|
19
|
-
export * from './SellerLink';
|
|
20
28
|
export * from './ShoppedOffer';
|
|
21
29
|
export * from './Stock';
|
|
22
30
|
export * from './UnitaryDistributionMode';
|
|
23
|
-
export * from './UserRole';
|
|
@@ -19,23 +19,30 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./AnyIdentifiedDistributionMode"), exports);
|
|
20
20
|
__exportStar(require("./Barcodes"), exports);
|
|
21
21
|
__exportStar(require("./Cart"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./
|
|
25
|
-
__exportStar(require("./
|
|
22
|
+
__exportStar(require("./CartCreationParameters"), exports);
|
|
23
|
+
__exportStar(require("./CartCreationResponse"), exports);
|
|
24
|
+
__exportStar(require("./CartLine"), exports);
|
|
25
|
+
__exportStar(require("./CartLineResponse"), exports);
|
|
26
|
+
__exportStar(require("./CartLineUpdateParameters"), exports);
|
|
27
|
+
__exportStar(require("./CartLinesResponse"), exports);
|
|
28
|
+
__exportStar(require("./CartRecord"), exports);
|
|
29
|
+
__exportStar(require("./CartRecordTransport"), exports);
|
|
30
|
+
__exportStar(require("./CartSummary"), exports);
|
|
31
|
+
__exportStar(require("./CartWarning"), exports);
|
|
26
32
|
__exportStar(require("./DistributionMode"), exports);
|
|
27
33
|
__exportStar(require("./DistributionRange"), exports);
|
|
28
34
|
__exportStar(require("./HttpLink"), exports);
|
|
29
35
|
__exportStar(require("./IdentifiedDistributionRange"), exports);
|
|
30
36
|
__exportStar(require("./IdentifiedRangeDistributionMode"), exports);
|
|
37
|
+
__exportStar(require("./OwnerLink"), exports);
|
|
38
|
+
__exportStar(require("./PaginatedCarts"), exports);
|
|
39
|
+
__exportStar(require("./PagingMetadata"), exports);
|
|
31
40
|
__exportStar(require("./ProductLink"), exports);
|
|
32
41
|
__exportStar(require("./ProductStorageType"), exports);
|
|
33
42
|
__exportStar(require("./QuotationDistributionMode"), exports);
|
|
34
43
|
__exportStar(require("./RestError"), exports);
|
|
35
44
|
__exportStar(require("./SaleOfferLink"), exports);
|
|
36
45
|
__exportStar(require("./SaleOfferStatus"), exports);
|
|
37
|
-
__exportStar(require("./SellerLink"), exports);
|
|
38
46
|
__exportStar(require("./ShoppedOffer"), exports);
|
|
39
47
|
__exportStar(require("./Stock"), exports);
|
|
40
48
|
__exportStar(require("./UnitaryDistributionMode"), exports);
|
|
41
|
-
__exportStar(require("./UserRole"), exports);
|