@lcdp/api-react-rest-client 3.1.9 → 3.1.10
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 +3 -5
- package/auth/src/models/RestError.js +3 -5
- package/catalog/src/models/RestError.d.ts +3 -5
- package/catalog/src/models/RestError.js +3 -5
- package/chargebee-hook/src/models/RestError.d.ts +3 -5
- package/chargebee-hook/src/models/RestError.js +3 -5
- package/configuration/src/models/RestError.d.ts +3 -5
- package/configuration/src/models/RestError.js +3 -5
- package/content/src/models/RestError.d.ts +3 -5
- package/content/src/models/RestError.js +3 -5
- package/favorite/src/models/RestError.d.ts +3 -5
- package/favorite/src/models/RestError.js +3 -5
- package/inventory/src/models/RestError.d.ts +3 -5
- package/inventory/src/models/RestError.js +3 -5
- package/invoice/src/models/RestError.d.ts +3 -5
- package/invoice/src/models/RestError.js +3 -5
- package/laboratory-store/src/models/RestError.d.ts +3 -5
- package/laboratory-store/src/models/RestError.js +3 -5
- package/lexicon/src/models/RestError.d.ts +3 -5
- package/lexicon/src/models/RestError.js +3 -5
- package/litigation/src/models/RestError.d.ts +3 -5
- package/litigation/src/models/RestError.js +3 -5
- package/magic-cart/src/models/ExpressOrder.d.ts +4 -4
- package/magic-cart/src/models/ExpressOrder.js +7 -3
- package/magic-cart/src/models/ShoppedOffer.d.ts +43 -0
- package/magic-cart/src/models/ShoppedOffer.js +53 -0
- package/magic-cart/src/models/index.d.ts +1 -2
- package/magic-cart/src/models/index.js +1 -2
- package/mangopay-hook/src/models/RestError.d.ts +3 -5
- package/mangopay-hook/src/models/RestError.js +3 -5
- package/notification/src/models/NotificationTypeId.d.ts +0 -1
- package/notification/src/models/NotificationTypeId.js +0 -1
- package/notification/src/models/RestError.d.ts +3 -5
- package/notification/src/models/RestError.js +3 -5
- package/order/src/apis/ManageForeorderApi.d.ts +31 -0
- package/order/src/apis/ManageForeorderApi.js +163 -0
- package/order/src/apis/ManageOrderApi.d.ts +9 -9
- package/order/src/apis/ManageOrderApi.js +12 -13
- package/order/src/apis/SearchForeorderItemApi.d.ts +44 -0
- package/order/src/apis/SearchForeorderItemApi.js +175 -0
- package/order/src/apis/index.d.ts +2 -1
- package/order/src/apis/index.js +2 -1
- package/order/src/models/AnyForeorderCreationParameters.d.ts +23 -0
- package/order/src/models/AnyForeorderCreationParameters.js +45 -0
- package/order/src/models/AnyForeorderWarning.d.ts +26 -0
- package/order/src/models/AnyForeorderWarning.js +50 -0
- package/order/src/models/AnyOrderCreationParameters.d.ts +26 -0
- package/order/src/models/AnyOrderCreationParameters.js +50 -0
- package/order/src/models/AnySource.d.ts +26 -0
- package/order/src/models/AnySource.js +50 -0
- package/order/src/models/CartForeorderCreationParameters.d.ts +37 -0
- package/order/src/models/CartForeorderCreationParameters.js +51 -0
- package/order/src/models/CartSource.d.ts +37 -0
- package/order/src/models/CartSource.js +49 -0
- package/order/src/models/CloneOrderCreationParameters.d.ts +37 -0
- package/order/src/models/CloneOrderCreationParameters.js +51 -0
- package/order/src/models/Foreorder.d.ts +155 -0
- package/order/src/models/Foreorder.js +128 -0
- package/order/src/models/ForeorderCreationParameters.d.ts +31 -0
- package/order/src/models/ForeorderCreationParameters.js +47 -0
- package/order/src/models/ForeorderItemWarning.d.ts +77 -0
- package/order/src/models/{OrderItemWarning.js → ForeorderItemWarning.js} +21 -18
- package/order/src/models/ForeorderOrderCreationParameters.d.ts +37 -0
- package/order/src/models/ForeorderOrderCreationParameters.js +51 -0
- package/order/src/models/ForeorderWarning.d.ts +51 -0
- package/order/src/models/{OrderWarning.js → ForeorderWarning.js} +12 -12
- package/order/src/models/ForeorderWarningBase.d.ts +37 -0
- package/order/src/models/ForeorderWarningBase.js +51 -0
- package/order/src/models/ForeordersWithWarnings.d.ts +39 -0
- package/order/src/models/ForeordersWithWarnings.js +53 -0
- package/order/src/models/Order.d.ts +80 -75
- package/order/src/models/Order.js +53 -48
- package/order/src/models/OrderAddedItem.d.ts +9 -9
- package/order/src/models/OrderAddedItem.js +18 -0
- package/order/src/models/OrderCreationParameters.d.ts +31 -0
- package/order/src/models/OrderCreationParameters.js +47 -0
- package/order/src/models/OrderItem.d.ts +9 -9
- package/order/src/models/OrderItem.js +18 -0
- package/order/src/models/OrderItemPrices.d.ts +8 -8
- package/order/src/models/OrderItemPrices.js +10 -0
- package/order/src/models/OrderPrices.d.ts +9 -9
- package/order/src/models/OrderPrices.js +18 -0
- package/order/src/models/OrderRefundedItem.d.ts +9 -9
- package/order/src/models/OrderRefundedItem.js +18 -0
- package/order/src/models/OrderRemovedItem.d.ts +9 -9
- package/order/src/models/OrderRemovedItem.js +18 -0
- package/order/src/models/OrderSource.d.ts +37 -0
- package/order/src/models/OrderSource.js +49 -0
- package/order/src/models/Reservation.d.ts +7 -7
- package/order/src/models/Reservation.js +14 -0
- package/order/src/models/RestError.d.ts +3 -5
- package/order/src/models/RestError.js +3 -5
- package/order/src/models/ShoppedOffer.d.ts +2 -2
- package/order/src/models/ShoppedOffer.js +2 -2
- package/order/src/models/Source.d.ts +31 -0
- package/order/src/models/Source.js +45 -0
- package/order/src/models/index.d.ts +17 -9
- package/order/src/models/index.js +17 -9
- package/package.json +1 -1
- package/product/src/models/RestError.d.ts +3 -5
- package/product/src/models/RestError.js +3 -5
- package/pub/src/models/RestError.d.ts +3 -5
- package/pub/src/models/RestError.js +3 -5
- package/rfx/src/models/RestError.d.ts +3 -5
- package/rfx/src/models/RestError.js +3 -5
- package/sale-offer/src/models/RestError.d.ts +3 -5
- package/sale-offer/src/models/RestError.js +3 -5
- package/servant/src/models/RestError.d.ts +3 -5
- package/servant/src/models/RestError.js +3 -5
- package/shipment/src/models/RestError.d.ts +3 -5
- package/shipment/src/models/RestError.js +3 -5
- package/shopping-cart/src/apis/ManageCartApi.d.ts +35 -24
- package/shopping-cart/src/apis/ManageCartApi.js +57 -120
- package/shopping-cart/src/apis/ManageCartLineApi.d.ts +45 -0
- package/shopping-cart/src/apis/ManageCartLineApi.js +238 -0
- package/shopping-cart/src/apis/SearchCartApi.d.ts +59 -0
- package/shopping-cart/src/apis/SearchCartApi.js +267 -0
- package/shopping-cart/src/apis/SearchCartLineApi.d.ts +41 -0
- package/{order/src/apis/ManageMetaOrderApi.js → shopping-cart/src/apis/SearchCartLineApi.js} +46 -41
- package/shopping-cart/src/apis/index.d.ts +3 -2
- package/shopping-cart/src/apis/index.js +3 -2
- package/shopping-cart/src/models/Cart.d.ts +61 -4
- package/shopping-cart/src/models/Cart.js +47 -2
- package/shopping-cart/src/models/CartCreationParameters.d.ts +44 -0
- package/shopping-cart/src/models/CartCreationParameters.js +56 -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/CartLineUpdateParameters.d.ts +37 -0
- package/shopping-cart/src/models/CartLineUpdateParameters.js +49 -0
- package/shopping-cart/src/models/CartLineWithWarnings.d.ts +39 -0
- package/shopping-cart/src/models/CartLineWithWarnings.js +49 -0
- package/shopping-cart/src/models/CartSummary.d.ts +31 -0
- package/shopping-cart/src/models/CartSummary.js +47 -0
- package/shopping-cart/src/models/{CartSubCartTransport.d.ts → CartTransport.d.ts} +12 -12
- package/shopping-cart/src/models/{CartSubCartTransport.js → CartTransport.js} +11 -11
- package/shopping-cart/src/models/CartUpdateParameters.d.ts +31 -0
- package/shopping-cart/src/models/CartUpdateParameters.js +45 -0
- package/shopping-cart/src/models/CartWarning.d.ts +76 -0
- package/shopping-cart/src/models/CartWarning.js +69 -0
- package/shopping-cart/src/models/CartsWithWarnings.d.ts +39 -0
- package/shopping-cart/src/models/CartsWithWarnings.js +49 -0
- package/shopping-cart/src/models/OwnerLink.d.ts +43 -0
- package/shopping-cart/src/models/OwnerLink.js +53 -0
- 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/RestError.d.ts +3 -5
- package/shopping-cart/src/models/RestError.js +3 -5
- package/shopping-cart/src/models/ShoppedOffer.d.ts +2 -2
- package/shopping-cart/src/models/ShoppedOffer.js +2 -2
- package/shopping-cart/src/models/index.d.ts +12 -4
- package/shopping-cart/src/models/index.js +12 -4
- package/smuggler/src/models/RestError.d.ts +3 -5
- package/smuggler/src/models/RestError.js +3 -5
- package/statistic/src/models/RestError.d.ts +3 -5
- package/statistic/src/models/RestError.js +3 -5
- package/third-party/src/models/RestError.d.ts +3 -5
- package/third-party/src/models/RestError.js +3 -5
- package/ubo/src/apis/ManageUboDeclarationApi.d.ts +2 -2
- package/ubo/src/apis/ManageUboDeclarationApi.js +2 -2
- package/ubo/src/models/RestError.d.ts +3 -5
- package/ubo/src/models/RestError.js +3 -5
- package/user/src/models/NotificationTypeId.d.ts +0 -1
- package/user/src/models/NotificationTypeId.js +0 -1
- package/user/src/models/RestError.d.ts +3 -5
- package/user/src/models/RestError.js +3 -5
- package/user/src/models/User.d.ts +7 -0
- package/user/src/models/User.js +3 -0
- package/user/src/models/UserMangopayUbo.d.ts +31 -0
- package/user/src/models/UserMangopayUbo.js +45 -0
- package/user/src/models/index.d.ts +1 -0
- package/user/src/models/index.js +1 -0
- package/wish/src/models/RestError.d.ts +3 -5
- package/wish/src/models/RestError.js +3 -5
- package/magic-cart/src/models/SaleOfferProposal.d.ts +0 -51
- package/magic-cart/src/models/SaleOfferProposal.js +0 -61
- package/magic-cart/src/models/SellerProposal.d.ts +0 -45
- package/magic-cart/src/models/SellerProposal.js +0 -57
- package/order/src/apis/ManageMetaOrderApi.d.ts +0 -45
- package/order/src/models/AnyMetaOrderWarning.d.ts +0 -26
- package/order/src/models/AnyMetaOrderWarning.js +0 -50
- 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/MetaOrderWarning.js +0 -47
- package/order/src/models/MetaOrderWithWarnings.d.ts +0 -39
- package/order/src/models/MetaOrderWithWarnings.js +0 -49
- package/order/src/models/OrderItemWarning.d.ts +0 -72
- package/order/src/models/OrderWarning.d.ts +0 -51
- package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +0 -107
- package/shopping-cart/src/apis/ManageCartSubCartApi.js +0 -556
- 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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP orders
|
|
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.AnyForeorderWarningToJSON = exports.AnyForeorderWarningFromJSONTyped = exports.AnyForeorderWarningFromJSON = void 0;
|
|
17
|
+
var ForeorderItemWarning_1 = require("./ForeorderItemWarning");
|
|
18
|
+
var ForeorderWarning_1 = require("./ForeorderWarning");
|
|
19
|
+
function AnyForeorderWarningFromJSON(json) {
|
|
20
|
+
return AnyForeorderWarningFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.AnyForeorderWarningFromJSON = AnyForeorderWarningFromJSON;
|
|
23
|
+
function AnyForeorderWarningFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
switch (json['type']) {
|
|
28
|
+
case 'foreorder':
|
|
29
|
+
return Object.assign({}, (0, ForeorderWarning_1.ForeorderWarningFromJSONTyped)(json, true), { type: 'foreorder' });
|
|
30
|
+
case 'foreorder_item':
|
|
31
|
+
return Object.assign({}, (0, ForeorderItemWarning_1.ForeorderItemWarningFromJSONTyped)(json, true), { type: 'foreorder_item' });
|
|
32
|
+
default:
|
|
33
|
+
throw new Error("No variant of AnyForeorderWarning exists with 'type=".concat(json['type'], "'"));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.AnyForeorderWarningFromJSONTyped = AnyForeorderWarningFromJSONTyped;
|
|
37
|
+
function AnyForeorderWarningToJSON(value) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
switch (value['type']) {
|
|
42
|
+
case 'foreorder':
|
|
43
|
+
return (0, ForeorderWarning_1.ForeorderWarningToJSON)(value);
|
|
44
|
+
case 'foreorder_item':
|
|
45
|
+
return (0, ForeorderItemWarning_1.ForeorderItemWarningToJSON)(value);
|
|
46
|
+
default:
|
|
47
|
+
throw new Error("No variant of AnyForeorderWarning exists with 'type=".concat(value['type'], "'"));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.AnyForeorderWarningToJSON = AnyForeorderWarningToJSON;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP orders
|
|
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 { CloneOrderCreationParameters } from './CloneOrderCreationParameters';
|
|
13
|
+
import type { ForeorderOrderCreationParameters } from './ForeorderOrderCreationParameters';
|
|
14
|
+
/**
|
|
15
|
+
* @type AnyOrderCreationParameters
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare type AnyOrderCreationParameters = {
|
|
20
|
+
source: 'foreorder';
|
|
21
|
+
} & ForeorderOrderCreationParameters | {
|
|
22
|
+
source: 'order';
|
|
23
|
+
} & CloneOrderCreationParameters;
|
|
24
|
+
export declare function AnyOrderCreationParametersFromJSON(json: any): AnyOrderCreationParameters;
|
|
25
|
+
export declare function AnyOrderCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyOrderCreationParameters;
|
|
26
|
+
export declare function AnyOrderCreationParametersToJSON(value?: AnyOrderCreationParameters | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP orders
|
|
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.AnyOrderCreationParametersToJSON = exports.AnyOrderCreationParametersFromJSONTyped = exports.AnyOrderCreationParametersFromJSON = void 0;
|
|
17
|
+
var CloneOrderCreationParameters_1 = require("./CloneOrderCreationParameters");
|
|
18
|
+
var ForeorderOrderCreationParameters_1 = require("./ForeorderOrderCreationParameters");
|
|
19
|
+
function AnyOrderCreationParametersFromJSON(json) {
|
|
20
|
+
return AnyOrderCreationParametersFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.AnyOrderCreationParametersFromJSON = AnyOrderCreationParametersFromJSON;
|
|
23
|
+
function AnyOrderCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
switch (json['source']) {
|
|
28
|
+
case 'foreorder':
|
|
29
|
+
return Object.assign({}, (0, ForeorderOrderCreationParameters_1.ForeorderOrderCreationParametersFromJSONTyped)(json, true), { source: 'foreorder' });
|
|
30
|
+
case 'order':
|
|
31
|
+
return Object.assign({}, (0, CloneOrderCreationParameters_1.CloneOrderCreationParametersFromJSONTyped)(json, true), { source: 'order' });
|
|
32
|
+
default:
|
|
33
|
+
throw new Error("No variant of AnyOrderCreationParameters exists with 'source=".concat(json['source'], "'"));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.AnyOrderCreationParametersFromJSONTyped = AnyOrderCreationParametersFromJSONTyped;
|
|
37
|
+
function AnyOrderCreationParametersToJSON(value) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
switch (value['source']) {
|
|
42
|
+
case 'foreorder':
|
|
43
|
+
return (0, ForeorderOrderCreationParameters_1.ForeorderOrderCreationParametersToJSON)(value);
|
|
44
|
+
case 'order':
|
|
45
|
+
return (0, CloneOrderCreationParameters_1.CloneOrderCreationParametersToJSON)(value);
|
|
46
|
+
default:
|
|
47
|
+
throw new Error("No variant of AnyOrderCreationParameters exists with 'source=".concat(value['source'], "'"));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.AnyOrderCreationParametersToJSON = AnyOrderCreationParametersToJSON;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP orders
|
|
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 { CartSource } from './CartSource';
|
|
13
|
+
import type { OrderSource } from './OrderSource';
|
|
14
|
+
/**
|
|
15
|
+
* @type AnySource
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare type AnySource = {
|
|
20
|
+
source: 'cart';
|
|
21
|
+
} & CartSource | {
|
|
22
|
+
source: 'order';
|
|
23
|
+
} & OrderSource;
|
|
24
|
+
export declare function AnySourceFromJSON(json: any): AnySource;
|
|
25
|
+
export declare function AnySourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnySource;
|
|
26
|
+
export declare function AnySourceToJSON(value?: AnySource | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP orders
|
|
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.AnySourceToJSON = exports.AnySourceFromJSONTyped = exports.AnySourceFromJSON = void 0;
|
|
17
|
+
var CartSource_1 = require("./CartSource");
|
|
18
|
+
var OrderSource_1 = require("./OrderSource");
|
|
19
|
+
function AnySourceFromJSON(json) {
|
|
20
|
+
return AnySourceFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.AnySourceFromJSON = AnySourceFromJSON;
|
|
23
|
+
function AnySourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
switch (json['source']) {
|
|
28
|
+
case 'cart':
|
|
29
|
+
return Object.assign({}, (0, CartSource_1.CartSourceFromJSONTyped)(json, true), { source: 'cart' });
|
|
30
|
+
case 'order':
|
|
31
|
+
return Object.assign({}, (0, OrderSource_1.OrderSourceFromJSONTyped)(json, true), { source: 'order' });
|
|
32
|
+
default:
|
|
33
|
+
throw new Error("No variant of AnySource exists with 'source=".concat(json['source'], "'"));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.AnySourceFromJSONTyped = AnySourceFromJSONTyped;
|
|
37
|
+
function AnySourceToJSON(value) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
switch (value['source']) {
|
|
42
|
+
case 'cart':
|
|
43
|
+
return (0, CartSource_1.CartSourceToJSON)(value);
|
|
44
|
+
case 'order':
|
|
45
|
+
return (0, OrderSource_1.OrderSourceToJSON)(value);
|
|
46
|
+
default:
|
|
47
|
+
throw new Error("No variant of AnySource exists with 'source=".concat(value['source'], "'"));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.AnySourceToJSON = AnySourceToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP orders
|
|
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 CartForeorderCreationParameters
|
|
16
|
+
*/
|
|
17
|
+
export interface CartForeorderCreationParameters {
|
|
18
|
+
/**
|
|
19
|
+
* Source from which to create foreorders
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CartForeorderCreationParameters
|
|
22
|
+
*/
|
|
23
|
+
source: string;
|
|
24
|
+
/**
|
|
25
|
+
* List of cart ids
|
|
26
|
+
* @type {Array<number>}
|
|
27
|
+
* @memberof CartForeorderCreationParameters
|
|
28
|
+
*/
|
|
29
|
+
ids: Array<number>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CartForeorderCreationParameters interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCartForeorderCreationParameters(value: object): value is CartForeorderCreationParameters;
|
|
35
|
+
export declare function CartForeorderCreationParametersFromJSON(json: any): CartForeorderCreationParameters;
|
|
36
|
+
export declare function CartForeorderCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartForeorderCreationParameters;
|
|
37
|
+
export declare function CartForeorderCreationParametersToJSON(value?: CartForeorderCreationParameters | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP orders
|
|
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.CartForeorderCreationParametersToJSON = exports.CartForeorderCreationParametersFromJSONTyped = exports.CartForeorderCreationParametersFromJSON = exports.instanceOfCartForeorderCreationParameters = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CartForeorderCreationParameters interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfCartForeorderCreationParameters(value) {
|
|
21
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('ids' in value) || value['ids'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfCartForeorderCreationParameters = instanceOfCartForeorderCreationParameters;
|
|
28
|
+
function CartForeorderCreationParametersFromJSON(json) {
|
|
29
|
+
return CartForeorderCreationParametersFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.CartForeorderCreationParametersFromJSON = CartForeorderCreationParametersFromJSON;
|
|
32
|
+
function CartForeorderCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'source': json['source'],
|
|
38
|
+
'ids': json['ids'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.CartForeorderCreationParametersFromJSONTyped = CartForeorderCreationParametersFromJSONTyped;
|
|
42
|
+
function CartForeorderCreationParametersToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'source': value['source'],
|
|
48
|
+
'ids': value['ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.CartForeorderCreationParametersToJSON = CartForeorderCreationParametersToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP orders
|
|
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 CartSource
|
|
16
|
+
*/
|
|
17
|
+
export interface CartSource {
|
|
18
|
+
/**
|
|
19
|
+
* Source from which the object have been created
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CartSource
|
|
22
|
+
*/
|
|
23
|
+
source?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Source Cart id
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CartSource
|
|
28
|
+
*/
|
|
29
|
+
id: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CartSource interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCartSource(value: object): value is CartSource;
|
|
35
|
+
export declare function CartSourceFromJSON(json: any): CartSource;
|
|
36
|
+
export declare function CartSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartSource;
|
|
37
|
+
export declare function CartSourceToJSON(value?: CartSource | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP orders
|
|
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.CartSourceToJSON = exports.CartSourceFromJSONTyped = exports.CartSourceFromJSON = exports.instanceOfCartSource = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CartSource interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfCartSource(value) {
|
|
21
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCartSource = instanceOfCartSource;
|
|
26
|
+
function CartSourceFromJSON(json) {
|
|
27
|
+
return CartSourceFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CartSourceFromJSON = CartSourceFromJSON;
|
|
30
|
+
function CartSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'source': json['source'],
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.CartSourceFromJSONTyped = CartSourceFromJSONTyped;
|
|
40
|
+
function CartSourceToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'source': value['source'],
|
|
46
|
+
'id': value['id'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.CartSourceToJSON = CartSourceToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP orders
|
|
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 CloneOrderCreationParameters
|
|
16
|
+
*/
|
|
17
|
+
export interface CloneOrderCreationParameters {
|
|
18
|
+
/**
|
|
19
|
+
* Source from which to create orders.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CloneOrderCreationParameters
|
|
22
|
+
*/
|
|
23
|
+
source: string;
|
|
24
|
+
/**
|
|
25
|
+
* List of order references
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof CloneOrderCreationParameters
|
|
28
|
+
*/
|
|
29
|
+
references: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CloneOrderCreationParameters interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCloneOrderCreationParameters(value: object): value is CloneOrderCreationParameters;
|
|
35
|
+
export declare function CloneOrderCreationParametersFromJSON(json: any): CloneOrderCreationParameters;
|
|
36
|
+
export declare function CloneOrderCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): CloneOrderCreationParameters;
|
|
37
|
+
export declare function CloneOrderCreationParametersToJSON(value?: CloneOrderCreationParameters | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP orders
|
|
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.CloneOrderCreationParametersToJSON = exports.CloneOrderCreationParametersFromJSONTyped = exports.CloneOrderCreationParametersFromJSON = exports.instanceOfCloneOrderCreationParameters = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CloneOrderCreationParameters interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfCloneOrderCreationParameters(value) {
|
|
21
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('references' in value) || value['references'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfCloneOrderCreationParameters = instanceOfCloneOrderCreationParameters;
|
|
28
|
+
function CloneOrderCreationParametersFromJSON(json) {
|
|
29
|
+
return CloneOrderCreationParametersFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.CloneOrderCreationParametersFromJSON = CloneOrderCreationParametersFromJSON;
|
|
32
|
+
function CloneOrderCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'source': json['source'],
|
|
38
|
+
'references': json['references'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.CloneOrderCreationParametersFromJSONTyped = CloneOrderCreationParametersFromJSONTyped;
|
|
42
|
+
function CloneOrderCreationParametersToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'source': value['source'],
|
|
48
|
+
'references': value['references'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.CloneOrderCreationParametersToJSON = CloneOrderCreationParametersToJSON;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP orders
|
|
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 { UserLink } from './UserLink';
|
|
13
|
+
import type { OrderPrices } from './OrderPrices';
|
|
14
|
+
import type { OrderType } from './OrderType';
|
|
15
|
+
import type { Address } from './Address';
|
|
16
|
+
import type { OrderJournal } from './OrderJournal';
|
|
17
|
+
import type { OrderStorageType } from './OrderStorageType';
|
|
18
|
+
import type { HttpLink } from './HttpLink';
|
|
19
|
+
import type { AnySource } from './AnySource';
|
|
20
|
+
/**
|
|
21
|
+
* A foreorder represents a pre-order state before it becomes an actual order.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface Foreorder
|
|
24
|
+
*/
|
|
25
|
+
export interface Foreorder {
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier for this foreorder
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof Foreorder
|
|
30
|
+
*/
|
|
31
|
+
reference: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {OrderType}
|
|
35
|
+
* @memberof Foreorder
|
|
36
|
+
*/
|
|
37
|
+
type: OrderType;
|
|
38
|
+
/**
|
|
39
|
+
* Estimated delivery date using to order creation date + delivery delay of seller (Business day only).
|
|
40
|
+
* Eg : createdAt: 01/01/2020 / deliveryDelay: 3 => 06/01/2020'
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof Foreorder
|
|
44
|
+
*/
|
|
45
|
+
estimatedDeliveryDate: Date | null;
|
|
46
|
+
/**
|
|
47
|
+
* Creation date of this order
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof Foreorder
|
|
50
|
+
*/
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {UserLink}
|
|
55
|
+
* @memberof Foreorder
|
|
56
|
+
*/
|
|
57
|
+
seller: UserLink;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {UserLink}
|
|
61
|
+
* @memberof Foreorder
|
|
62
|
+
*/
|
|
63
|
+
buyer: UserLink;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Address}
|
|
67
|
+
* @memberof Foreorder
|
|
68
|
+
*/
|
|
69
|
+
shippingAddress: Address;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Address}
|
|
73
|
+
* @memberof Foreorder
|
|
74
|
+
*/
|
|
75
|
+
billingAddress: Address;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {HttpLink}
|
|
79
|
+
* @memberof Foreorder
|
|
80
|
+
*/
|
|
81
|
+
shipments: HttpLink;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<OrderStorageType>}
|
|
85
|
+
* @memberof Foreorder
|
|
86
|
+
*/
|
|
87
|
+
storageTypes?: Array<OrderStorageType>;
|
|
88
|
+
/**
|
|
89
|
+
* Number of maximum shipments available
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof Foreorder
|
|
92
|
+
*/
|
|
93
|
+
maxShipment: number;
|
|
94
|
+
/**
|
|
95
|
+
* Order shall be shipped before this date
|
|
96
|
+
* @type {Date}
|
|
97
|
+
* @memberof Foreorder
|
|
98
|
+
*/
|
|
99
|
+
maxShippingDate?: Date;
|
|
100
|
+
/**
|
|
101
|
+
* Max parcel quantity per shipment
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof Foreorder
|
|
104
|
+
*/
|
|
105
|
+
maxParcelPerShipment: number;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {OrderPrices}
|
|
109
|
+
* @memberof Foreorder
|
|
110
|
+
*/
|
|
111
|
+
prices: OrderPrices;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {HttpLink}
|
|
115
|
+
* @memberof Foreorder
|
|
116
|
+
*/
|
|
117
|
+
items: HttpLink;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {HttpLink}
|
|
121
|
+
* @memberof Foreorder
|
|
122
|
+
*/
|
|
123
|
+
reservations: HttpLink;
|
|
124
|
+
/**
|
|
125
|
+
* Labels of the order
|
|
126
|
+
* @type {Array<string>}
|
|
127
|
+
* @memberof Foreorder
|
|
128
|
+
*/
|
|
129
|
+
tags: Array<string>;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {OrderJournal}
|
|
133
|
+
* @memberof Foreorder
|
|
134
|
+
*/
|
|
135
|
+
journal: OrderJournal;
|
|
136
|
+
/**
|
|
137
|
+
* Version of the order. It is changed each time the order or items are updated
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof Foreorder
|
|
140
|
+
*/
|
|
141
|
+
eTag: string;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {AnySource}
|
|
145
|
+
* @memberof Foreorder
|
|
146
|
+
*/
|
|
147
|
+
source: AnySource;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Check if a given object implements the Foreorder interface.
|
|
151
|
+
*/
|
|
152
|
+
export declare function instanceOfForeorder(value: object): value is Foreorder;
|
|
153
|
+
export declare function ForeorderFromJSON(json: any): Foreorder;
|
|
154
|
+
export declare function ForeorderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Foreorder;
|
|
155
|
+
export declare function ForeorderToJSON(value?: Foreorder | null): any;
|