@lcdp/api-react-rest-client 0.0.2-LDS-2482-Move-JSON-codegen-of-API-somewhere-else.0 → 0.0.2-develop.0
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/RestError.d.ts +4 -6
- package/auth/src/models/RestError.js +0 -2
- package/configuration/src/apis/ManageVariableApi.d.ts +53 -1
- package/configuration/src/apis/ManageVariableApi.js +54 -1
- package/configuration/src/apis/SearchVariableApi.d.ts +53 -1
- package/configuration/src/apis/SearchVariableApi.js +54 -1
- package/configuration/src/models/RestError.d.ts +4 -6
- package/configuration/src/models/RestError.js +0 -2
- package/content/src/models/RestError.d.ts +4 -6
- package/content/src/models/RestError.js +0 -2
- package/favorite/src/models/RestError.d.ts +4 -6
- package/favorite/src/models/RestError.js +0 -2
- package/inventory/src/models/RestError.d.ts +4 -6
- package/inventory/src/models/RestError.js +0 -2
- package/invoice/src/models/InvoiceType.d.ts +0 -1
- package/invoice/src/models/InvoiceType.js +0 -1
- package/invoice/src/models/RestError.d.ts +4 -6
- package/invoice/src/models/RestError.js +0 -2
- package/laboratory-store/src/models/ImageVersions.d.ts +6 -6
- package/laboratory-store/src/models/ImageVersions.js +1 -1
- package/laboratory-store/src/models/RestError.d.ts +4 -6
- package/laboratory-store/src/models/RestError.js +0 -2
- package/lexicon/src/models/RestError.d.ts +4 -6
- package/lexicon/src/models/RestError.js +0 -2
- package/litigation/src/models/RestError.d.ts +4 -6
- package/litigation/src/models/RestError.js +0 -2
- package/magic-cart/src/apis/ManageMagicCartApi.d.ts +29 -0
- package/magic-cart/src/apis/{ManageExpressOrderApi.js → ManageMagicCartApi.js} +17 -16
- package/magic-cart/src/apis/index.d.ts +1 -1
- package/magic-cart/src/apis/index.js +1 -1
- package/magic-cart/src/models/AnyMagicCartCreationParameters.d.ts +25 -0
- package/magic-cart/src/models/AnyMagicCartCreationParameters.js +64 -0
- package/magic-cart/src/models/MagicCart.d.ts +28 -0
- package/magic-cart/src/models/MagicCart.js +43 -0
- package/magic-cart/src/models/MagicCartWithInitialCreationParameters.d.ts +29 -0
- package/magic-cart/src/models/MagicCartWithInitialCreationParameters.js +50 -0
- package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.d.ts +28 -0
- package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.js +42 -0
- package/magic-cart/src/models/MagicCartWithNeedCreationParameters.d.ts +29 -0
- package/magic-cart/src/models/MagicCartWithNeedCreationParameters.js +50 -0
- package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.d.ts +28 -0
- package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.js +42 -0
- package/magic-cart/src/models/MagicNeed.d.ts +39 -0
- package/magic-cart/src/models/{ExpressOrderNeed.js → MagicNeed.js} +10 -8
- package/magic-cart/src/models/MagicProductBus.d.ts +33 -0
- package/magic-cart/src/models/{HttpLink.js → MagicProductBus.js} +12 -10
- package/magic-cart/src/models/MagicProposal.d.ts +39 -0
- package/magic-cart/src/models/{DistributionRange.js → MagicProposal.js} +12 -12
- package/magic-cart/src/models/index.d.ts +9 -24
- package/magic-cart/src/models/index.js +9 -24
- package/mangopay-hook/src/apis/MangopayHookApi.d.ts +13 -0
- package/mangopay-hook/src/apis/MangopayHookApi.js +63 -1
- package/mangopay-hook/src/models/RestError.d.ts +4 -6
- package/mangopay-hook/src/models/RestError.js +0 -2
- package/notification/src/models/NotificationTypeId.d.ts +0 -1
- package/notification/src/models/NotificationTypeId.js +0 -1
- package/notification/src/models/RestError.d.ts +4 -6
- package/notification/src/models/RestError.js +0 -2
- package/order/src/models/OrderItemPrices.d.ts +1 -7
- package/order/src/models/OrderItemPrices.js +0 -2
- package/order/src/models/OrderPrices.d.ts +1 -1
- package/order/src/models/ProductLink.d.ts +7 -0
- package/order/src/models/ProductLink.js +3 -2
- package/order/src/models/ProductLinkAllOf.d.ts +7 -0
- package/order/src/models/ProductLinkAllOf.js +3 -0
- package/order/src/models/RestError.d.ts +4 -6
- package/order/src/models/RestError.js +0 -2
- package/order/src/models/Vat.d.ts +39 -0
- package/order/src/models/Vat.js +46 -0
- package/order/src/models/index.d.ts +1 -0
- package/order/src/models/index.js +1 -0
- package/package.json +1 -1
- package/product/src/apis/SearchProductApi.d.ts +0 -1
- package/product/src/apis/SearchProductApi.js +0 -3
- package/product/src/models/ImageVersions.d.ts +6 -6
- package/product/src/models/ImageVersions.js +1 -1
- package/product/src/models/RestError.d.ts +4 -6
- package/product/src/models/RestError.js +0 -2
- package/pub/src/models/Image.d.ts +3 -3
- package/pub/src/models/Image.js +4 -3
- package/pub/src/models/ImageVersions.d.ts +6 -6
- package/pub/src/models/ImageVersions.js +1 -1
- package/pub/src/models/Pub.d.ts +7 -7
- package/pub/src/models/Pub.js +9 -9
- package/pub/src/models/PubLocationEnum.d.ts +1 -3
- package/pub/src/models/PubLocationEnum.js +0 -2
- package/pub/src/models/RestError.d.ts +4 -6
- package/pub/src/models/RestError.js +0 -2
- package/recommendation/src/apis/index.d.ts +0 -1
- package/recommendation/src/apis/index.js +0 -1
- package/recommendation/src/models/index.d.ts +0 -3
- package/recommendation/src/models/index.js +0 -3
- package/rfx/src/models/RestError.d.ts +4 -6
- package/rfx/src/models/RestError.js +0 -2
- package/sale-offer/src/models/ImageVersions.d.ts +6 -6
- package/sale-offer/src/models/ImageVersions.js +1 -1
- package/sale-offer/src/models/RestError.d.ts +4 -6
- package/sale-offer/src/models/RestError.js +0 -2
- package/servant/src/models/RestError.d.ts +4 -6
- package/servant/src/models/RestError.js +0 -2
- package/shipment/src/models/RestError.d.ts +4 -6
- package/shipment/src/models/RestError.js +0 -2
- package/shopping-cart/src/models/CartSubCartLine.d.ts +6 -0
- package/shopping-cart/src/models/CartSubCartLine.js +2 -0
- package/shopping-cart/src/models/RestError.d.ts +4 -6
- package/shopping-cart/src/models/RestError.js +0 -2
- package/statistic/src/models/RestError.d.ts +4 -6
- package/statistic/src/models/RestError.js +0 -2
- package/subscription/src/models/RestError.d.ts +4 -6
- package/subscription/src/models/RestError.js +0 -2
- package/ubo/src/models/RestError.d.ts +4 -6
- package/ubo/src/models/RestError.js +0 -2
- package/user/src/models/NotificationTypeId.d.ts +0 -1
- package/user/src/models/NotificationTypeId.js +0 -1
- package/user/src/models/RestError.d.ts +4 -6
- package/user/src/models/RestError.js +0 -2
- package/user/src/models/UserDelegatedServices.d.ts +1 -1
- package/wish/src/models/RestError.d.ts +4 -6
- package/wish/src/models/RestError.js +0 -2
- package/magic-cart/src/apis/ManageExpressOrderApi.d.ts +0 -31
- package/magic-cart/src/models/AnyIdentifiedDistributionMode.d.ts +0 -28
- package/magic-cart/src/models/AnyIdentifiedDistributionMode.js +0 -69
- package/magic-cart/src/models/Barcodes.d.ts +0 -45
- package/magic-cart/src/models/Barcodes.js +0 -48
- package/magic-cart/src/models/DistributionMode.d.ts +0 -27
- package/magic-cart/src/models/DistributionMode.js +0 -41
- package/magic-cart/src/models/DistributionRange.d.ts +0 -39
- package/magic-cart/src/models/ExpressOrder.d.ts +0 -28
- package/magic-cart/src/models/ExpressOrder.js +0 -43
- package/magic-cart/src/models/ExpressOrderCreationParameters.d.ts +0 -34
- package/magic-cart/src/models/ExpressOrderCreationParameters.js +0 -45
- package/magic-cart/src/models/ExpressOrderNeed.d.ts +0 -33
- package/magic-cart/src/models/HttpLink.d.ts +0 -27
- package/magic-cart/src/models/IdentifiedDistributionRange.d.ts +0 -34
- package/magic-cart/src/models/IdentifiedDistributionRange.js +0 -49
- package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.d.ts +0 -33
- package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.js +0 -43
- package/magic-cart/src/models/IdentifiedRangeDistributionMode.d.ts +0 -29
- package/magic-cart/src/models/IdentifiedRangeDistributionMode.js +0 -50
- package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.d.ts +0 -28
- package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.js +0 -42
- package/magic-cart/src/models/ProductLink.d.ts +0 -41
- package/magic-cart/src/models/ProductLink.js +0 -50
- package/magic-cart/src/models/ProductLinkAllOf.d.ts +0 -40
- package/magic-cart/src/models/ProductLinkAllOf.js +0 -46
- package/magic-cart/src/models/QuotationDistributionMode.d.ts +0 -22
- package/magic-cart/src/models/QuotationDistributionMode.js +0 -28
- package/magic-cart/src/models/SaleOfferLink.d.ts +0 -54
- package/magic-cart/src/models/SaleOfferLink.js +0 -52
- package/magic-cart/src/models/SaleOfferLinkAllOf.d.ts +0 -53
- package/magic-cart/src/models/SaleOfferLinkAllOf.js +0 -52
- package/magic-cart/src/models/SaleOfferProposal.d.ts +0 -47
- package/magic-cart/src/models/SaleOfferProposal.js +0 -49
- package/magic-cart/src/models/SellerProposal.d.ts +0 -41
- package/magic-cart/src/models/SellerProposal.js +0 -47
- package/magic-cart/src/models/Stock.d.ts +0 -39
- package/magic-cart/src/models/Stock.js +0 -46
- package/magic-cart/src/models/UnitaryDistributionMode.d.ts +0 -34
- package/magic-cart/src/models/UnitaryDistributionMode.js +0 -49
- package/magic-cart/src/models/UnitaryDistributionModeAllOf.d.ts +0 -33
- package/magic-cart/src/models/UnitaryDistributionModeAllOf.js +0 -43
- package/magic-cart/src/models/UserLink.d.ts +0 -34
- package/magic-cart/src/models/UserLink.js +0 -49
- package/magic-cart/src/models/UserLinkAllOf.d.ts +0 -33
- package/magic-cart/src/models/UserLinkAllOf.js +0 -43
- package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.d.ts +0 -45
- package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.js +0 -182
- package/recommendation/src/models/FavoriteProductRecommendation.d.ts +0 -53
- package/recommendation/src/models/FavoriteProductRecommendation.js +0 -52
- package/recommendation/src/models/PaginatedFavoriteProductRecommendations.d.ts +0 -29
- package/recommendation/src/models/PaginatedFavoriteProductRecommendations.js +0 -50
- package/recommendation/src/models/PaginatedFavoriteProductRecommendationsAllOf.d.ts +0 -28
- package/recommendation/src/models/PaginatedFavoriteProductRecommendationsAllOf.js +0 -42
|
@@ -16,31 +16,31 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ImageVersions {
|
|
18
18
|
/**
|
|
19
|
-
* URI to S3 file (width
|
|
19
|
+
* URI to S3 file (width 100px, height computed with original image aspect ratio)
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ImageVersions
|
|
22
22
|
*/
|
|
23
23
|
xsmall?: string;
|
|
24
24
|
/**
|
|
25
|
-
* URI to S3 file (width
|
|
25
|
+
* URI to S3 file (width 350px, height computed with original image aspect ratio)
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ImageVersions
|
|
28
28
|
*/
|
|
29
29
|
small?: string;
|
|
30
30
|
/**
|
|
31
|
-
* URI to S3 file (width
|
|
31
|
+
* URI to S3 file (width 1024px, height computed with original image aspect ratio)
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ImageVersions
|
|
34
34
|
*/
|
|
35
35
|
medium?: string;
|
|
36
36
|
/**
|
|
37
|
-
* URI to S3 file (width
|
|
37
|
+
* URI to S3 file (width 1920px, height computed with original image aspect ratio)
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof ImageVersions
|
|
40
40
|
*/
|
|
41
41
|
large?: string;
|
|
42
42
|
/**
|
|
43
|
-
* URI to S3 file (width
|
|
43
|
+
* URI to S3 file (width 3840px, height computed with original image aspect ratio)
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof ImageVersions
|
|
46
46
|
*/
|
|
@@ -50,7 +50,7 @@ export interface ImageVersions {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof ImageVersions
|
|
52
52
|
*/
|
|
53
|
-
original
|
|
53
|
+
original?: string;
|
|
54
54
|
}
|
|
55
55
|
export declare function ImageVersionsFromJSON(json: any): ImageVersions;
|
|
56
56
|
export declare function ImageVersionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageVersions;
|
|
@@ -29,7 +29,7 @@ function ImageVersionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'medium': !(0, runtime_1.exists)(json, 'medium') ? undefined : json['medium'],
|
|
30
30
|
'large': !(0, runtime_1.exists)(json, 'large') ? undefined : json['large'],
|
|
31
31
|
'xlarge': !(0, runtime_1.exists)(json, 'xlarge') ? undefined : json['xlarge'],
|
|
32
|
-
'original': json['original'],
|
|
32
|
+
'original': !(0, runtime_1.exists)(json, 'original') ? undefined : json['original'],
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
exports.ImageVersionsFromJSONTyped = ImageVersionsFromJSONTyped;
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -53,8 +53,7 @@ export declare enum RestErrorCodeEnum {
|
|
|
53
53
|
CODE014 = "CODE014",
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
|
-
CODE017 = "CODE017"
|
|
57
|
-
CODE018 = "CODE018"
|
|
56
|
+
CODE017 = "CODE017"
|
|
58
57
|
}
|
|
59
58
|
/**
|
|
60
59
|
* @export
|
|
@@ -78,6 +77,5 @@ export declare enum RestErrorMessageEnum {
|
|
|
78
77
|
MESSAGE014 = "Invalid Meta-Order",
|
|
79
78
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
80
79
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
81
|
-
MESSAGE017 = "Batch is forbidden for sale"
|
|
82
|
-
MESSAGE018 = "Trial already used"
|
|
80
|
+
MESSAGE017 = "Batch is forbidden for sale"
|
|
83
81
|
}
|
|
@@ -65,7 +65,6 @@ var RestErrorCodeEnum;
|
|
|
65
65
|
RestErrorCodeEnum["CODE015"] = "CODE015";
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
|
-
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
68
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
70
69
|
/**
|
|
71
70
|
* @export
|
|
@@ -91,5 +90,4 @@ var RestErrorMessageEnum;
|
|
|
91
90
|
RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
|
|
92
91
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
93
92
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
94
|
-
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
95
93
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -53,8 +53,7 @@ export declare enum RestErrorCodeEnum {
|
|
|
53
53
|
CODE014 = "CODE014",
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
|
-
CODE017 = "CODE017"
|
|
57
|
-
CODE018 = "CODE018"
|
|
56
|
+
CODE017 = "CODE017"
|
|
58
57
|
}
|
|
59
58
|
/**
|
|
60
59
|
* @export
|
|
@@ -78,6 +77,5 @@ export declare enum RestErrorMessageEnum {
|
|
|
78
77
|
MESSAGE014 = "Invalid Meta-Order",
|
|
79
78
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
80
79
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
81
|
-
MESSAGE017 = "Batch is forbidden for sale"
|
|
82
|
-
MESSAGE018 = "Trial already used"
|
|
80
|
+
MESSAGE017 = "Batch is forbidden for sale"
|
|
83
81
|
}
|
|
@@ -65,7 +65,6 @@ var RestErrorCodeEnum;
|
|
|
65
65
|
RestErrorCodeEnum["CODE015"] = "CODE015";
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
|
-
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
68
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
70
69
|
/**
|
|
71
70
|
* @export
|
|
@@ -91,5 +90,4 @@ var RestErrorMessageEnum;
|
|
|
91
90
|
RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
|
|
92
91
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
93
92
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
94
|
-
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
95
93
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -53,8 +53,7 @@ export declare enum RestErrorCodeEnum {
|
|
|
53
53
|
CODE014 = "CODE014",
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
|
-
CODE017 = "CODE017"
|
|
57
|
-
CODE018 = "CODE018"
|
|
56
|
+
CODE017 = "CODE017"
|
|
58
57
|
}
|
|
59
58
|
/**
|
|
60
59
|
* @export
|
|
@@ -78,6 +77,5 @@ export declare enum RestErrorMessageEnum {
|
|
|
78
77
|
MESSAGE014 = "Invalid Meta-Order",
|
|
79
78
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
80
79
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
81
|
-
MESSAGE017 = "Batch is forbidden for sale"
|
|
82
|
-
MESSAGE018 = "Trial already used"
|
|
80
|
+
MESSAGE017 = "Batch is forbidden for sale"
|
|
83
81
|
}
|
|
@@ -65,7 +65,6 @@ var RestErrorCodeEnum;
|
|
|
65
65
|
RestErrorCodeEnum["CODE015"] = "CODE015";
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
|
-
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
68
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
70
69
|
/**
|
|
71
70
|
* @export
|
|
@@ -91,5 +90,4 @@ var RestErrorMessageEnum;
|
|
|
91
90
|
RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
|
|
92
91
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
93
92
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
94
|
-
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
95
93
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-magic-cart
|
|
3
|
+
* This is the REST API of Magic cart
|
|
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 { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
|
|
13
|
+
import { AnyMagicCartCreationParameters, MagicCart } from '../models';
|
|
14
|
+
export interface CreateMagicCartRequest {
|
|
15
|
+
anyMagicCartCreationParameters: AnyMagicCartCreationParameters;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* no description
|
|
19
|
+
*/
|
|
20
|
+
export declare class ManageMagicCartApi extends BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Create magic ad cart
|
|
23
|
+
*/
|
|
24
|
+
createMagicCartRaw(requestParameters: CreateMagicCartRequest): Promise<ApiResponse<MagicCart | BlobWithMeta>>;
|
|
25
|
+
/**
|
|
26
|
+
* Create magic ad cart
|
|
27
|
+
*/
|
|
28
|
+
createMagicCart(requestParameters: CreateMagicCartRequest): Promise<MagicCart | BlobWithMeta>;
|
|
29
|
+
}
|
|
@@ -64,27 +64,29 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.ManageMagicCartApi = void 0;
|
|
68
68
|
var runtime_1 = require("../runtime");
|
|
69
69
|
var models_1 = require("../models");
|
|
70
70
|
/**
|
|
71
71
|
* no description
|
|
72
72
|
*/
|
|
73
|
-
var
|
|
74
|
-
__extends(
|
|
75
|
-
function
|
|
73
|
+
var ManageMagicCartApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(ManageMagicCartApi, _super);
|
|
75
|
+
function ManageMagicCartApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Create
|
|
80
|
-
* Request Express Order proposition
|
|
79
|
+
* Create magic ad cart
|
|
81
80
|
*/
|
|
82
|
-
|
|
81
|
+
ManageMagicCartApi.prototype.createMagicCartRaw = function (requestParameters) {
|
|
83
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
84
83
|
var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
|
|
85
84
|
return __generator(this, function (_a) {
|
|
86
85
|
switch (_a.label) {
|
|
87
86
|
case 0:
|
|
87
|
+
if (requestParameters.anyMagicCartCreationParameters === null || requestParameters.anyMagicCartCreationParameters === undefined) {
|
|
88
|
+
throw new runtime_1.RequiredError('anyMagicCartCreationParameters', 'Required parameter requestParameters.anyMagicCartCreationParameters was null or undefined when calling createMagicCart.');
|
|
89
|
+
}
|
|
88
90
|
queryParameters = {};
|
|
89
91
|
headerParameters = {};
|
|
90
92
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -102,17 +104,17 @@ var ManageExpressOrderApi = /** @class */ (function (_super) {
|
|
|
102
104
|
case 1:
|
|
103
105
|
_a.trys.push([1, 3, , 4]);
|
|
104
106
|
return [4 /*yield*/, this.request({
|
|
105
|
-
path: "/
|
|
107
|
+
path: "/magic-carts",
|
|
106
108
|
method: 'POST',
|
|
107
109
|
headers: headerParameters,
|
|
108
110
|
query: queryParameters,
|
|
109
|
-
body: (0, models_1.
|
|
111
|
+
body: (0, models_1.AnyMagicCartCreationParametersToJSON)(requestParameters.anyMagicCartCreationParameters),
|
|
110
112
|
})];
|
|
111
113
|
case 2:
|
|
112
114
|
response = _a.sent();
|
|
113
115
|
contentType = response.headers.get("content-type");
|
|
114
116
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
115
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.
|
|
117
|
+
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.MagicCartFromJSON)(jsonValue); })];
|
|
116
118
|
}
|
|
117
119
|
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
118
120
|
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
@@ -132,15 +134,14 @@ var ManageExpressOrderApi = /** @class */ (function (_super) {
|
|
|
132
134
|
});
|
|
133
135
|
};
|
|
134
136
|
/**
|
|
135
|
-
* Create
|
|
136
|
-
* Request Express Order proposition
|
|
137
|
+
* Create magic ad cart
|
|
137
138
|
*/
|
|
138
|
-
|
|
139
|
+
ManageMagicCartApi.prototype.createMagicCart = function (requestParameters) {
|
|
139
140
|
return __awaiter(this, void 0, void 0, function () {
|
|
140
141
|
var response;
|
|
141
142
|
return __generator(this, function (_a) {
|
|
142
143
|
switch (_a.label) {
|
|
143
|
-
case 0: return [4 /*yield*/, this.
|
|
144
|
+
case 0: return [4 /*yield*/, this.createMagicCartRaw(requestParameters)];
|
|
144
145
|
case 1:
|
|
145
146
|
response = _a.sent();
|
|
146
147
|
return [4 /*yield*/, response.value()];
|
|
@@ -149,6 +150,6 @@ var ManageExpressOrderApi = /** @class */ (function (_super) {
|
|
|
149
150
|
});
|
|
150
151
|
});
|
|
151
152
|
};
|
|
152
|
-
return
|
|
153
|
+
return ManageMagicCartApi;
|
|
153
154
|
}(runtime_1.BaseAPI));
|
|
154
|
-
exports.
|
|
155
|
+
exports.ManageMagicCartApi = ManageMagicCartApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './ManageMagicCartApi';
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./ManageMagicCartApi"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-magic-cart
|
|
3
|
+
* This is the REST API of Magic cart
|
|
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 { MagicCartWithInitialCreationParameters } from './MagicCartWithInitialCreationParameters';
|
|
13
|
+
import { MagicCartWithNeedCreationParameters } from './MagicCartWithNeedCreationParameters';
|
|
14
|
+
/**
|
|
15
|
+
* @type AnyMagicCartCreationParameters
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export declare type AnyMagicCartCreationParameters = {
|
|
19
|
+
wishFrom: 'cart';
|
|
20
|
+
} & MagicCartWithInitialCreationParameters | {
|
|
21
|
+
wishFrom: 'need';
|
|
22
|
+
} & MagicCartWithNeedCreationParameters;
|
|
23
|
+
export declare function AnyMagicCartCreationParametersFromJSON(json: any): AnyMagicCartCreationParameters;
|
|
24
|
+
export declare function AnyMagicCartCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyMagicCartCreationParameters;
|
|
25
|
+
export declare function AnyMagicCartCreationParametersToJSON(value?: AnyMagicCartCreationParameters | null): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-magic-cart
|
|
6
|
+
* This is the REST API of Magic cart
|
|
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
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.AnyMagicCartCreationParametersToJSON = exports.AnyMagicCartCreationParametersFromJSONTyped = exports.AnyMagicCartCreationParametersFromJSON = void 0;
|
|
28
|
+
var MagicCartWithInitialCreationParameters_1 = require("./MagicCartWithInitialCreationParameters");
|
|
29
|
+
var MagicCartWithNeedCreationParameters_1 = require("./MagicCartWithNeedCreationParameters");
|
|
30
|
+
function AnyMagicCartCreationParametersFromJSON(json) {
|
|
31
|
+
return AnyMagicCartCreationParametersFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.AnyMagicCartCreationParametersFromJSON = AnyMagicCartCreationParametersFromJSON;
|
|
34
|
+
function AnyMagicCartCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
switch (json['wishFrom']) {
|
|
39
|
+
case 'cart':
|
|
40
|
+
return __assign(__assign({}, (0, MagicCartWithInitialCreationParameters_1.MagicCartWithInitialCreationParametersFromJSONTyped)(json, true)), { wishFrom: 'cart' });
|
|
41
|
+
case 'need':
|
|
42
|
+
return __assign(__assign({}, (0, MagicCartWithNeedCreationParameters_1.MagicCartWithNeedCreationParametersFromJSONTyped)(json, true)), { wishFrom: 'need' });
|
|
43
|
+
default:
|
|
44
|
+
throw new Error("No variant of AnyMagicCartCreationParameters exists with 'wishFrom=".concat(json['wishFrom'], "'"));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.AnyMagicCartCreationParametersFromJSONTyped = AnyMagicCartCreationParametersFromJSONTyped;
|
|
48
|
+
function AnyMagicCartCreationParametersToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
switch (value['wishFrom']) {
|
|
56
|
+
case 'cart':
|
|
57
|
+
return (0, MagicCartWithInitialCreationParameters_1.MagicCartWithInitialCreationParametersToJSON)(value);
|
|
58
|
+
case 'need':
|
|
59
|
+
return (0, MagicCartWithNeedCreationParameters_1.MagicCartWithNeedCreationParametersToJSON)(value);
|
|
60
|
+
default:
|
|
61
|
+
throw new Error("No variant of AnyMagicCartCreationParameters exists with 'wishFrom=".concat(value['wishFrom'], "'"));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.AnyMagicCartCreationParametersToJSON = AnyMagicCartCreationParametersToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-magic-cart
|
|
3
|
+
* This is the REST API of Magic cart
|
|
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 { MagicProposal } from './MagicProposal';
|
|
13
|
+
/**
|
|
14
|
+
* The cart proposal send to the client
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MagicCart
|
|
17
|
+
*/
|
|
18
|
+
export interface MagicCart {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<MagicProposal>}
|
|
22
|
+
* @memberof MagicCart
|
|
23
|
+
*/
|
|
24
|
+
magicProposal?: Array<MagicProposal>;
|
|
25
|
+
}
|
|
26
|
+
export declare function MagicCartFromJSON(json: any): MagicCart;
|
|
27
|
+
export declare function MagicCartFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicCart;
|
|
28
|
+
export declare function MagicCartToJSON(value?: MagicCart | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-magic-cart
|
|
6
|
+
* This is the REST API of Magic cart
|
|
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.MagicCartToJSON = exports.MagicCartFromJSONTyped = exports.MagicCartFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var MagicProposal_1 = require("./MagicProposal");
|
|
19
|
+
function MagicCartFromJSON(json) {
|
|
20
|
+
return MagicCartFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.MagicCartFromJSON = MagicCartFromJSON;
|
|
23
|
+
function MagicCartFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'magicProposal': !(0, runtime_1.exists)(json, 'magicProposal') ? undefined : (json['magicProposal'].map(MagicProposal_1.MagicProposalFromJSON)),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.MagicCartFromJSONTyped = MagicCartFromJSONTyped;
|
|
32
|
+
function MagicCartToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'magicProposal': value.magicProposal === undefined ? undefined : (value.magicProposal.map(MagicProposal_1.MagicProposalToJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.MagicCartToJSON = MagicCartToJSON;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-magic-cart
|
|
3
|
+
* This is the REST API of Magic cart
|
|
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 { MagicProductBus } from './MagicProductBus';
|
|
13
|
+
import { MagicProposal } from './MagicProposal';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface MagicCartWithInitialCreationParameters
|
|
18
|
+
*/
|
|
19
|
+
export interface MagicCartWithInitialCreationParameters extends MagicProductBus {
|
|
20
|
+
/**
|
|
21
|
+
* Shopping cart created by the client
|
|
22
|
+
* @type {Array<MagicProposal>}
|
|
23
|
+
* @memberof MagicCartWithInitialCreationParameters
|
|
24
|
+
*/
|
|
25
|
+
cart: Array<MagicProposal>;
|
|
26
|
+
}
|
|
27
|
+
export declare function MagicCartWithInitialCreationParametersFromJSON(json: any): MagicCartWithInitialCreationParameters;
|
|
28
|
+
export declare function MagicCartWithInitialCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicCartWithInitialCreationParameters;
|
|
29
|
+
export declare function MagicCartWithInitialCreationParametersToJSON(value?: MagicCartWithInitialCreationParameters | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-magic-cart
|
|
6
|
+
* This is the REST API of Magic cart
|
|
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
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.MagicCartWithInitialCreationParametersToJSON = exports.MagicCartWithInitialCreationParametersFromJSONTyped = exports.MagicCartWithInitialCreationParametersFromJSON = void 0;
|
|
28
|
+
var MagicProductBus_1 = require("./MagicProductBus");
|
|
29
|
+
var MagicProposal_1 = require("./MagicProposal");
|
|
30
|
+
function MagicCartWithInitialCreationParametersFromJSON(json) {
|
|
31
|
+
return MagicCartWithInitialCreationParametersFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.MagicCartWithInitialCreationParametersFromJSON = MagicCartWithInitialCreationParametersFromJSON;
|
|
34
|
+
function MagicCartWithInitialCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return __assign(__assign({}, (0, MagicProductBus_1.MagicProductBusFromJSONTyped)(json, ignoreDiscriminator)), { 'cart': (json['cart'].map(MagicProposal_1.MagicProposalFromJSON)) });
|
|
39
|
+
}
|
|
40
|
+
exports.MagicCartWithInitialCreationParametersFromJSONTyped = MagicCartWithInitialCreationParametersFromJSONTyped;
|
|
41
|
+
function MagicCartWithInitialCreationParametersToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return __assign(__assign({}, (0, MagicProductBus_1.MagicProductBusToJSON)(value)), { 'cart': (value.cart.map(MagicProposal_1.MagicProposalToJSON)) });
|
|
49
|
+
}
|
|
50
|
+
exports.MagicCartWithInitialCreationParametersToJSON = MagicCartWithInitialCreationParametersToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-magic-cart
|
|
3
|
+
* This is the REST API of Magic cart
|
|
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 { MagicProposal } from './MagicProposal';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MagicCartWithInitialCreationParametersAllOf
|
|
17
|
+
*/
|
|
18
|
+
export interface MagicCartWithInitialCreationParametersAllOf {
|
|
19
|
+
/**
|
|
20
|
+
* Shopping cart created by the client
|
|
21
|
+
* @type {Array<MagicProposal>}
|
|
22
|
+
* @memberof MagicCartWithInitialCreationParametersAllOf
|
|
23
|
+
*/
|
|
24
|
+
cart: Array<MagicProposal>;
|
|
25
|
+
}
|
|
26
|
+
export declare function MagicCartWithInitialCreationParametersAllOfFromJSON(json: any): MagicCartWithInitialCreationParametersAllOf;
|
|
27
|
+
export declare function MagicCartWithInitialCreationParametersAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicCartWithInitialCreationParametersAllOf;
|
|
28
|
+
export declare function MagicCartWithInitialCreationParametersAllOfToJSON(value?: MagicCartWithInitialCreationParametersAllOf | null): any;
|