@lcdp/api-react-rest-client 2.1.4-develop.5077396774 → 2.1.4-develop.5077941181
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 -3
- package/auth/src/models/RestError.js +1 -1
- package/configuration/src/models/RestError.d.ts +3 -3
- package/configuration/src/models/RestError.js +1 -1
- package/content/src/models/RestError.d.ts +3 -3
- package/content/src/models/RestError.js +1 -1
- package/favorite/src/models/RestError.d.ts +3 -3
- package/favorite/src/models/RestError.js +1 -1
- package/inventory/src/models/RestError.d.ts +3 -3
- package/inventory/src/models/RestError.js +1 -1
- package/invoice/src/models/RestError.d.ts +3 -3
- package/invoice/src/models/RestError.js +1 -1
- package/laboratory-store/src/models/RestError.d.ts +3 -3
- package/laboratory-store/src/models/RestError.js +1 -1
- package/lexicon/src/models/RestError.d.ts +3 -3
- package/lexicon/src/models/RestError.js +1 -1
- package/litigation/src/models/RestError.d.ts +3 -3
- package/litigation/src/models/RestError.js +1 -1
- package/magic-cart/src/models/ProductLink.d.ts +7 -0
- package/magic-cart/src/models/ProductLink.js +3 -2
- package/magic-cart/src/models/ProductLinkAllOf.d.ts +7 -0
- package/magic-cart/src/models/ProductLinkAllOf.js +3 -0
- package/magic-cart/src/models/ProductStorageType.d.ts +25 -0
- package/magic-cart/src/models/ProductStorageType.js +40 -0
- package/magic-cart/src/models/index.d.ts +1 -0
- package/magic-cart/src/models/index.js +1 -0
- package/mangopay-hook/src/models/RestError.d.ts +3 -3
- package/mangopay-hook/src/models/RestError.js +1 -1
- package/notification/src/models/RestError.d.ts +3 -3
- package/notification/src/models/RestError.js +1 -1
- package/order/src/models/Order.d.ts +20 -0
- package/order/src/models/Order.js +8 -0
- package/order/src/models/OrderJournal.d.ts +27 -0
- package/order/src/models/OrderJournal.js +42 -0
- package/order/src/models/OrderStorageType.d.ts +25 -0
- package/order/src/models/OrderStorageType.js +40 -0
- 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/ProductStorageType.d.ts +25 -0
- package/order/src/models/ProductStorageType.js +40 -0
- package/order/src/models/RestError.d.ts +3 -3
- package/order/src/models/RestError.js +1 -1
- package/order/src/models/index.d.ts +3 -0
- package/order/src/models/index.js +3 -0
- package/package.json +1 -1
- package/product/src/models/Product.d.ts +3 -2
- package/product/src/models/Product.js +3 -2
- package/product/src/models/ProductCreationOrUpdateParameters.d.ts +3 -2
- package/product/src/models/ProductCreationOrUpdateParameters.js +3 -2
- package/product/src/models/ProductStorageType.d.ts +25 -0
- package/product/src/models/ProductStorageType.js +40 -0
- package/product/src/models/RestError.d.ts +3 -3
- package/product/src/models/RestError.js +1 -1
- package/product/src/models/index.d.ts +1 -0
- package/product/src/models/index.js +1 -0
- package/pub/src/models/RestError.d.ts +3 -3
- package/pub/src/models/RestError.js +1 -1
- package/rfx/src/models/RestError.d.ts +3 -3
- package/rfx/src/models/RestError.js +1 -1
- package/sale-offer/src/models/RestError.d.ts +3 -3
- package/sale-offer/src/models/RestError.js +1 -1
- package/servant/src/models/RestError.d.ts +3 -3
- package/servant/src/models/RestError.js +1 -1
- package/shipment/src/models/RestError.d.ts +3 -3
- package/shipment/src/models/RestError.js +1 -1
- package/shopping-cart/src/models/ProductLink.d.ts +11 -4
- package/shopping-cart/src/models/ProductLink.js +3 -3
- package/shopping-cart/src/models/ProductLinkAllOf.d.ts +11 -4
- package/shopping-cart/src/models/ProductLinkAllOf.js +7 -5
- package/shopping-cart/src/models/ProductStorageType.d.ts +25 -0
- package/shopping-cart/src/models/ProductStorageType.js +40 -0
- package/shopping-cart/src/models/RestError.d.ts +3 -3
- package/shopping-cart/src/models/RestError.js +1 -1
- package/shopping-cart/src/models/index.d.ts +1 -0
- package/shopping-cart/src/models/index.js +1 -0
- package/statistic/src/models/RestError.d.ts +3 -3
- package/statistic/src/models/RestError.js +1 -1
- package/subscription/src/models/RestError.d.ts +3 -3
- package/subscription/src/models/RestError.js +1 -1
- package/ubo/src/models/RestError.d.ts +3 -3
- package/ubo/src/models/RestError.js +1 -1
- package/user/src/models/RestError.d.ts +3 -3
- package/user/src/models/RestError.js +1 -1
- package/wish/src/models/RestError.d.ts +3 -3
- package/wish/src/models/RestError.js +1 -1
|
@@ -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` -
|
|
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` - Image dimension exceeded * `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 * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users
|
|
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` -
|
|
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` - Image dimension exceeded * `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 * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -72,7 +72,7 @@ export declare enum RestErrorMessageEnum {
|
|
|
72
72
|
MESSAGE007 = "Wrong Address according CHRONOPOST",
|
|
73
73
|
MESSAGE008 = "Invalid Mangopay Mandate",
|
|
74
74
|
MESSAGE009 = "Invalid Status",
|
|
75
|
-
MESSAGE010 = "
|
|
75
|
+
MESSAGE010 = "Image dimension exceeded",
|
|
76
76
|
MESSAGE011 = "Empty User Address",
|
|
77
77
|
MESSAGE012 = "Empty User Legal Name",
|
|
78
78
|
MESSAGE013 = "Invalid quantities",
|
|
@@ -84,7 +84,7 @@ var RestErrorMessageEnum;
|
|
|
84
84
|
RestErrorMessageEnum["MESSAGE007"] = "Wrong Address according CHRONOPOST";
|
|
85
85
|
RestErrorMessageEnum["MESSAGE008"] = "Invalid Mangopay Mandate";
|
|
86
86
|
RestErrorMessageEnum["MESSAGE009"] = "Invalid Status";
|
|
87
|
-
RestErrorMessageEnum["MESSAGE010"] = "
|
|
87
|
+
RestErrorMessageEnum["MESSAGE010"] = "Image dimension exceeded";
|
|
88
88
|
RestErrorMessageEnum["MESSAGE011"] = "Empty User Address";
|
|
89
89
|
RestErrorMessageEnum["MESSAGE012"] = "Empty User Legal Name";
|
|
90
90
|
RestErrorMessageEnum["MESSAGE013"] = "Invalid quantities";
|
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
import { Address } from './Address';
|
|
13
13
|
import { Anomalies } from './Anomalies';
|
|
14
14
|
import { HttpLink } from './HttpLink';
|
|
15
|
+
import { OrderJournal } from './OrderJournal';
|
|
15
16
|
import { OrderPrices } from './OrderPrices';
|
|
16
17
|
import { OrderStatus } from './OrderStatus';
|
|
18
|
+
import { OrderStorageType } from './OrderStorageType';
|
|
17
19
|
import { OrderThreads } from './OrderThreads';
|
|
18
20
|
import { OrderType } from './OrderType';
|
|
19
21
|
import { UserLink } from './UserLink';
|
|
@@ -113,6 +115,12 @@ export interface Order {
|
|
|
113
115
|
* @memberof Order
|
|
114
116
|
*/
|
|
115
117
|
shipments: HttpLink;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {Array<OrderStorageType>}
|
|
121
|
+
* @memberof Order
|
|
122
|
+
*/
|
|
123
|
+
storageTypes?: Array<OrderStorageType>;
|
|
116
124
|
/**
|
|
117
125
|
* Number of maximum shipments available
|
|
118
126
|
* @type {number}
|
|
@@ -185,12 +193,24 @@ export interface Order {
|
|
|
185
193
|
* @memberof Order
|
|
186
194
|
*/
|
|
187
195
|
availableItemsOperations: HttpLink;
|
|
196
|
+
/**
|
|
197
|
+
* Date when free shipping was reached
|
|
198
|
+
* @type {Date}
|
|
199
|
+
* @memberof Order
|
|
200
|
+
*/
|
|
201
|
+
freeShippingReachedDate?: Date;
|
|
188
202
|
/**
|
|
189
203
|
* Labels of the order
|
|
190
204
|
* @type {Array<string>}
|
|
191
205
|
* @memberof Order
|
|
192
206
|
*/
|
|
193
207
|
tags: Array<string>;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @type {OrderJournal}
|
|
211
|
+
* @memberof Order
|
|
212
|
+
*/
|
|
213
|
+
journal: OrderJournal;
|
|
194
214
|
}
|
|
195
215
|
export declare function OrderFromJSON(json: any): Order;
|
|
196
216
|
export declare function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Order;
|
|
@@ -18,8 +18,10 @@ var runtime_1 = require("../runtime");
|
|
|
18
18
|
var Address_1 = require("./Address");
|
|
19
19
|
var Anomalies_1 = require("./Anomalies");
|
|
20
20
|
var HttpLink_1 = require("./HttpLink");
|
|
21
|
+
var OrderJournal_1 = require("./OrderJournal");
|
|
21
22
|
var OrderPrices_1 = require("./OrderPrices");
|
|
22
23
|
var OrderStatus_1 = require("./OrderStatus");
|
|
24
|
+
var OrderStorageType_1 = require("./OrderStorageType");
|
|
23
25
|
var OrderThreads_1 = require("./OrderThreads");
|
|
24
26
|
var OrderType_1 = require("./OrderType");
|
|
25
27
|
var UserLink_1 = require("./UserLink");
|
|
@@ -47,6 +49,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
49
|
'shippingAddress': (0, Address_1.AddressFromJSON)(json['shippingAddress']),
|
|
48
50
|
'billingAddress': (0, Address_1.AddressFromJSON)(json['billingAddress']),
|
|
49
51
|
'shipments': (0, HttpLink_1.HttpLinkFromJSON)(json['shipments']),
|
|
52
|
+
'storageTypes': !(0, runtime_1.exists)(json, 'storageTypes') ? undefined : (json['storageTypes'].map(OrderStorageType_1.OrderStorageTypeFromJSON)),
|
|
50
53
|
'maxShipment': json['maxShipment'],
|
|
51
54
|
'maxShippingDate': (new Date(json['maxShippingDate'])),
|
|
52
55
|
'maxParcelPerShipment': json['maxParcelPerShipment'],
|
|
@@ -59,7 +62,9 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
62
|
'anomalies': (0, Anomalies_1.AnomaliesFromJSON)(json['anomalies']),
|
|
60
63
|
'reservations': (0, HttpLink_1.HttpLinkFromJSON)(json['reservations']),
|
|
61
64
|
'availableItemsOperations': (0, HttpLink_1.HttpLinkFromJSON)(json['availableItemsOperations']),
|
|
65
|
+
'freeShippingReachedDate': !(0, runtime_1.exists)(json, 'freeShippingReachedDate') ? undefined : (new Date(json['freeShippingReachedDate'])),
|
|
62
66
|
'tags': json['tags'],
|
|
67
|
+
'journal': (0, OrderJournal_1.OrderJournalFromJSON)(json['journal']),
|
|
63
68
|
};
|
|
64
69
|
}
|
|
65
70
|
exports.OrderFromJSONTyped = OrderFromJSONTyped;
|
|
@@ -86,6 +91,7 @@ function OrderToJSON(value) {
|
|
|
86
91
|
'shippingAddress': (0, Address_1.AddressToJSON)(value.shippingAddress),
|
|
87
92
|
'billingAddress': (0, Address_1.AddressToJSON)(value.billingAddress),
|
|
88
93
|
'shipments': (0, HttpLink_1.HttpLinkToJSON)(value.shipments),
|
|
94
|
+
'storageTypes': value.storageTypes === undefined ? undefined : (value.storageTypes.map(OrderStorageType_1.OrderStorageTypeToJSON)),
|
|
89
95
|
'maxShipment': value.maxShipment,
|
|
90
96
|
'maxShippingDate': ((0, runtime_1.toDateISOString)(value.maxShippingDate)),
|
|
91
97
|
'maxParcelPerShipment': value.maxParcelPerShipment,
|
|
@@ -98,7 +104,9 @@ function OrderToJSON(value) {
|
|
|
98
104
|
'anomalies': (0, Anomalies_1.AnomaliesToJSON)(value.anomalies),
|
|
99
105
|
'reservations': (0, HttpLink_1.HttpLinkToJSON)(value.reservations),
|
|
100
106
|
'availableItemsOperations': (0, HttpLink_1.HttpLinkToJSON)(value.availableItemsOperations),
|
|
107
|
+
'freeShippingReachedDate': value.freeShippingReachedDate === undefined ? undefined : ((0, runtime_1.toDateISOString)(value.freeShippingReachedDate)),
|
|
101
108
|
'tags': value.tags,
|
|
109
|
+
'journal': (0, OrderJournal_1.OrderJournalToJSON)(value.journal),
|
|
102
110
|
};
|
|
103
111
|
}
|
|
104
112
|
exports.OrderToJSON = OrderToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 OrderJournal
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderJournal {
|
|
18
|
+
/**
|
|
19
|
+
* Date when free shipping was reached
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof OrderJournal
|
|
22
|
+
*/
|
|
23
|
+
freeShippingReachedDate: Date | null;
|
|
24
|
+
}
|
|
25
|
+
export declare function OrderJournalFromJSON(json: any): OrderJournal;
|
|
26
|
+
export declare function OrderJournalFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderJournal;
|
|
27
|
+
export declare function OrderJournalToJSON(value?: OrderJournal | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
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.OrderJournalToJSON = exports.OrderJournalFromJSONTyped = exports.OrderJournalFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function OrderJournalFromJSON(json) {
|
|
19
|
+
return OrderJournalFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.OrderJournalFromJSON = OrderJournalFromJSON;
|
|
22
|
+
function OrderJournalFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'freeShippingReachedDate': (json['freeShippingReachedDate'] === null ? null : new Date(json['freeShippingReachedDate'])),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.OrderJournalFromJSONTyped = OrderJournalFromJSONTyped;
|
|
31
|
+
function OrderJournalToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'freeShippingReachedDate': (value.freeShippingReachedDate === null ? null : (0, runtime_1.toDateISOString)(value.freeShippingReachedDate)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.OrderJournalToJSON = OrderJournalToJSON;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum OrderStorageType {
|
|
18
|
+
UNKNOWN = "UNKNOWN",
|
|
19
|
+
FREE = "FREE",
|
|
20
|
+
FRIDGE = "FRIDGE",
|
|
21
|
+
FRESH = "FRESH"
|
|
22
|
+
}
|
|
23
|
+
export declare function OrderStorageTypeFromJSON(json: any): OrderStorageType;
|
|
24
|
+
export declare function OrderStorageTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderStorageType;
|
|
25
|
+
export declare function OrderStorageTypeToJSON(value?: OrderStorageType | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
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.OrderStorageTypeToJSON = exports.OrderStorageTypeFromJSONTyped = exports.OrderStorageTypeFromJSON = exports.OrderStorageType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var OrderStorageType;
|
|
23
|
+
(function (OrderStorageType) {
|
|
24
|
+
OrderStorageType["UNKNOWN"] = "UNKNOWN";
|
|
25
|
+
OrderStorageType["FREE"] = "FREE";
|
|
26
|
+
OrderStorageType["FRIDGE"] = "FRIDGE";
|
|
27
|
+
OrderStorageType["FRESH"] = "FRESH";
|
|
28
|
+
})(OrderStorageType = exports.OrderStorageType || (exports.OrderStorageType = {}));
|
|
29
|
+
function OrderStorageTypeFromJSON(json) {
|
|
30
|
+
return OrderStorageTypeFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.OrderStorageTypeFromJSON = OrderStorageTypeFromJSON;
|
|
33
|
+
function OrderStorageTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
exports.OrderStorageTypeFromJSONTyped = OrderStorageTypeFromJSONTyped;
|
|
37
|
+
function OrderStorageTypeToJSON(value) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
exports.OrderStorageTypeToJSON = OrderStorageTypeToJSON;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Barcodes } from './Barcodes';
|
|
13
13
|
import { HttpLink } from './HttpLink';
|
|
14
|
+
import { ProductStorageType } from './ProductStorageType';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -35,6 +36,12 @@ export interface ProductLink extends HttpLink {
|
|
|
35
36
|
* @memberof ProductLink
|
|
36
37
|
*/
|
|
37
38
|
name?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {ProductStorageType}
|
|
42
|
+
* @memberof ProductLink
|
|
43
|
+
*/
|
|
44
|
+
storageType?: ProductStorageType | null;
|
|
38
45
|
}
|
|
39
46
|
export declare function ProductLinkFromJSON(json: any): ProductLink;
|
|
40
47
|
export declare function ProductLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLink;
|
|
@@ -28,6 +28,7 @@ exports.ProductLinkToJSON = exports.ProductLinkFromJSONTyped = exports.ProductLi
|
|
|
28
28
|
var runtime_1 = require("../runtime");
|
|
29
29
|
var Barcodes_1 = require("./Barcodes");
|
|
30
30
|
var HttpLink_1 = require("./HttpLink");
|
|
31
|
+
var ProductStorageType_1 = require("./ProductStorageType");
|
|
31
32
|
function ProductLinkFromJSON(json) {
|
|
32
33
|
return ProductLinkFromJSONTyped(json, false);
|
|
33
34
|
}
|
|
@@ -36,7 +37,7 @@ function ProductLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
if ((json === undefined) || (json === null)) {
|
|
37
38
|
return json;
|
|
38
39
|
}
|
|
39
|
-
return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']), 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'] });
|
|
40
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']), 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'], 'storageType': !(0, runtime_1.exists)(json, 'storageType') ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']) });
|
|
40
41
|
}
|
|
41
42
|
exports.ProductLinkFromJSONTyped = ProductLinkFromJSONTyped;
|
|
42
43
|
function ProductLinkToJSON(value) {
|
|
@@ -46,6 +47,6 @@ function ProductLinkToJSON(value) {
|
|
|
46
47
|
if (value === null) {
|
|
47
48
|
return null;
|
|
48
49
|
}
|
|
49
|
-
return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes), 'name': value.name });
|
|
50
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes), 'name': value.name, 'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value.storageType) });
|
|
50
51
|
}
|
|
51
52
|
exports.ProductLinkToJSON = ProductLinkToJSON;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Barcodes } from './Barcodes';
|
|
13
|
+
import { ProductStorageType } from './ProductStorageType';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -34,6 +35,12 @@ export interface ProductLinkAllOf {
|
|
|
34
35
|
* @memberof ProductLinkAllOf
|
|
35
36
|
*/
|
|
36
37
|
name?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {ProductStorageType}
|
|
41
|
+
* @memberof ProductLinkAllOf
|
|
42
|
+
*/
|
|
43
|
+
storageType?: ProductStorageType | null;
|
|
37
44
|
}
|
|
38
45
|
export declare function ProductLinkAllOfFromJSON(json: any): ProductLinkAllOf;
|
|
39
46
|
export declare function ProductLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLinkAllOf;
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.ProductLinkAllOfToJSON = exports.ProductLinkAllOfFromJSONTyped = exports.ProductLinkAllOfFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var Barcodes_1 = require("./Barcodes");
|
|
19
|
+
var ProductStorageType_1 = require("./ProductStorageType");
|
|
19
20
|
function ProductLinkAllOfFromJSON(json) {
|
|
20
21
|
return ProductLinkAllOfFromJSONTyped(json, false);
|
|
21
22
|
}
|
|
@@ -28,6 +29,7 @@ function ProductLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
29
|
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
29
30
|
'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
|
|
30
31
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
32
|
+
'storageType': !(0, runtime_1.exists)(json, 'storageType') ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
exports.ProductLinkAllOfFromJSONTyped = ProductLinkAllOfFromJSONTyped;
|
|
@@ -42,6 +44,7 @@ function ProductLinkAllOfToJSON(value) {
|
|
|
42
44
|
'id': value.id,
|
|
43
45
|
'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
|
|
44
46
|
'name': value.name,
|
|
47
|
+
'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value.storageType),
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
50
|
exports.ProductLinkAllOfToJSON = ProductLinkAllOfToJSON;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum ProductStorageType {
|
|
18
|
+
FREE = "FREE",
|
|
19
|
+
FRIDGE = "FRIDGE",
|
|
20
|
+
FREEZER = "FREEZER",
|
|
21
|
+
FRESH = "FRESH"
|
|
22
|
+
}
|
|
23
|
+
export declare function ProductStorageTypeFromJSON(json: any): ProductStorageType;
|
|
24
|
+
export declare function ProductStorageTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStorageType;
|
|
25
|
+
export declare function ProductStorageTypeToJSON(value?: ProductStorageType | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
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.ProductStorageTypeToJSON = exports.ProductStorageTypeFromJSONTyped = exports.ProductStorageTypeFromJSON = exports.ProductStorageType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var ProductStorageType;
|
|
23
|
+
(function (ProductStorageType) {
|
|
24
|
+
ProductStorageType["FREE"] = "FREE";
|
|
25
|
+
ProductStorageType["FRIDGE"] = "FRIDGE";
|
|
26
|
+
ProductStorageType["FREEZER"] = "FREEZER";
|
|
27
|
+
ProductStorageType["FRESH"] = "FRESH";
|
|
28
|
+
})(ProductStorageType = exports.ProductStorageType || (exports.ProductStorageType = {}));
|
|
29
|
+
function ProductStorageTypeFromJSON(json) {
|
|
30
|
+
return ProductStorageTypeFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.ProductStorageTypeFromJSON = ProductStorageTypeFromJSON;
|
|
33
|
+
function ProductStorageTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
exports.ProductStorageTypeFromJSONTyped = ProductStorageTypeFromJSONTyped;
|
|
37
|
+
function ProductStorageTypeToJSON(value) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
exports.ProductStorageTypeToJSON = ProductStorageTypeToJSON;
|
|
@@ -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` -
|
|
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` - Image dimension exceeded * `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 * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users
|
|
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` -
|
|
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` - Image dimension exceeded * `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 * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -72,7 +72,7 @@ export declare enum RestErrorMessageEnum {
|
|
|
72
72
|
MESSAGE007 = "Wrong Address according CHRONOPOST",
|
|
73
73
|
MESSAGE008 = "Invalid Mangopay Mandate",
|
|
74
74
|
MESSAGE009 = "Invalid Status",
|
|
75
|
-
MESSAGE010 = "
|
|
75
|
+
MESSAGE010 = "Image dimension exceeded",
|
|
76
76
|
MESSAGE011 = "Empty User Address",
|
|
77
77
|
MESSAGE012 = "Empty User Legal Name",
|
|
78
78
|
MESSAGE013 = "Invalid quantities",
|
|
@@ -84,7 +84,7 @@ var RestErrorMessageEnum;
|
|
|
84
84
|
RestErrorMessageEnum["MESSAGE007"] = "Wrong Address according CHRONOPOST";
|
|
85
85
|
RestErrorMessageEnum["MESSAGE008"] = "Invalid Mangopay Mandate";
|
|
86
86
|
RestErrorMessageEnum["MESSAGE009"] = "Invalid Status";
|
|
87
|
-
RestErrorMessageEnum["MESSAGE010"] = "
|
|
87
|
+
RestErrorMessageEnum["MESSAGE010"] = "Image dimension exceeded";
|
|
88
88
|
RestErrorMessageEnum["MESSAGE011"] = "Empty User Address";
|
|
89
89
|
RestErrorMessageEnum["MESSAGE012"] = "Empty User Legal Name";
|
|
90
90
|
RestErrorMessageEnum["MESSAGE013"] = "Invalid quantities";
|
|
@@ -18,11 +18,13 @@ export * from './OrderItemUpdateParameters';
|
|
|
18
18
|
export * from './OrderItemWarning';
|
|
19
19
|
export * from './OrderItemWarningAllOf';
|
|
20
20
|
export * from './OrderItemsOperation';
|
|
21
|
+
export * from './OrderJournal';
|
|
21
22
|
export * from './OrderPrices';
|
|
22
23
|
export * from './OrderRefundedItem';
|
|
23
24
|
export * from './OrderRemovedItem';
|
|
24
25
|
export * from './OrderRemovedItemUpdateParameters';
|
|
25
26
|
export * from './OrderStatus';
|
|
27
|
+
export * from './OrderStorageType';
|
|
26
28
|
export * from './OrderThreads';
|
|
27
29
|
export * from './OrderType';
|
|
28
30
|
export * from './OrderUpdateParameters';
|
|
@@ -34,6 +36,7 @@ export * from './PaginatedOrdersAllOf';
|
|
|
34
36
|
export * from './PagingMetadata';
|
|
35
37
|
export * from './ProductLink';
|
|
36
38
|
export * from './ProductLinkAllOf';
|
|
39
|
+
export * from './ProductStorageType';
|
|
37
40
|
export * from './Reservation';
|
|
38
41
|
export * from './ReservationUpdateParameters';
|
|
39
42
|
export * from './RestError';
|
|
@@ -34,11 +34,13 @@ __exportStar(require("./OrderItemUpdateParameters"), exports);
|
|
|
34
34
|
__exportStar(require("./OrderItemWarning"), exports);
|
|
35
35
|
__exportStar(require("./OrderItemWarningAllOf"), exports);
|
|
36
36
|
__exportStar(require("./OrderItemsOperation"), exports);
|
|
37
|
+
__exportStar(require("./OrderJournal"), exports);
|
|
37
38
|
__exportStar(require("./OrderPrices"), exports);
|
|
38
39
|
__exportStar(require("./OrderRefundedItem"), exports);
|
|
39
40
|
__exportStar(require("./OrderRemovedItem"), exports);
|
|
40
41
|
__exportStar(require("./OrderRemovedItemUpdateParameters"), exports);
|
|
41
42
|
__exportStar(require("./OrderStatus"), exports);
|
|
43
|
+
__exportStar(require("./OrderStorageType"), exports);
|
|
42
44
|
__exportStar(require("./OrderThreads"), exports);
|
|
43
45
|
__exportStar(require("./OrderType"), exports);
|
|
44
46
|
__exportStar(require("./OrderUpdateParameters"), exports);
|
|
@@ -50,6 +52,7 @@ __exportStar(require("./PaginatedOrdersAllOf"), exports);
|
|
|
50
52
|
__exportStar(require("./PagingMetadata"), exports);
|
|
51
53
|
__exportStar(require("./ProductLink"), exports);
|
|
52
54
|
__exportStar(require("./ProductLinkAllOf"), exports);
|
|
55
|
+
__exportStar(require("./ProductStorageType"), exports);
|
|
53
56
|
__exportStar(require("./Reservation"), exports);
|
|
54
57
|
__exportStar(require("./ReservationUpdateParameters"), exports);
|
|
55
58
|
__exportStar(require("./RestError"), exports);
|
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ import { ProductMarketStatus } from './ProductMarketStatus';
|
|
|
17
17
|
import { ProductProvider } from './ProductProvider';
|
|
18
18
|
import { ProductSecondaryType } from './ProductSecondaryType';
|
|
19
19
|
import { ProductStatus } from './ProductStatus';
|
|
20
|
+
import { ProductStorageType } from './ProductStorageType';
|
|
20
21
|
import { ProductType } from './ProductType';
|
|
21
22
|
import { Statistics } from './Statistics';
|
|
22
23
|
import { Vat } from './Vat';
|
|
@@ -112,10 +113,10 @@ export interface Product {
|
|
|
112
113
|
narcoticPrescription?: boolean | null;
|
|
113
114
|
/**
|
|
114
115
|
*
|
|
115
|
-
* @type {
|
|
116
|
+
* @type {ProductStorageType}
|
|
116
117
|
* @memberof Product
|
|
117
118
|
*/
|
|
118
|
-
storageType?:
|
|
119
|
+
storageType?: ProductStorageType | null;
|
|
119
120
|
/**
|
|
120
121
|
*
|
|
121
122
|
* @type {ProductStatus}
|
|
@@ -23,6 +23,7 @@ var ProductMarketStatus_1 = require("./ProductMarketStatus");
|
|
|
23
23
|
var ProductProvider_1 = require("./ProductProvider");
|
|
24
24
|
var ProductSecondaryType_1 = require("./ProductSecondaryType");
|
|
25
25
|
var ProductStatus_1 = require("./ProductStatus");
|
|
26
|
+
var ProductStorageType_1 = require("./ProductStorageType");
|
|
26
27
|
var ProductType_1 = require("./ProductType");
|
|
27
28
|
var Statistics_1 = require("./Statistics");
|
|
28
29
|
var Vat_1 = require("./Vat");
|
|
@@ -49,7 +50,7 @@ function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
50
|
'laboratory': !(0, runtime_1.exists)(json, 'laboratory') ? json['laboratory'] : (0, LaboratoryLink_1.LaboratoryLinkFromJSON)(json['laboratory']),
|
|
50
51
|
'vat': !(0, runtime_1.exists)(json, 'vat') ? json['vat'] : (0, Vat_1.VatFromJSON)(json['vat']),
|
|
51
52
|
'narcoticPrescription': !(0, runtime_1.exists)(json, 'narcoticPrescription') ? json['narcoticPrescription'] : json['narcoticPrescription'],
|
|
52
|
-
'storageType': !(0, runtime_1.exists)(json, 'storageType') ? json['storageType'] : json['storageType'],
|
|
53
|
+
'storageType': !(0, runtime_1.exists)(json, 'storageType') ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
|
|
53
54
|
'status': !(0, runtime_1.exists)(json, 'status') ? json['status'] : (0, ProductStatus_1.ProductStatusFromJSON)(json['status']),
|
|
54
55
|
'marketStatus': !(0, runtime_1.exists)(json, 'marketStatus') ? json['marketStatus'] : (0, ProductMarketStatus_1.ProductMarketStatusFromJSON)(json['marketStatus']),
|
|
55
56
|
'dispensationPlace': !(0, runtime_1.exists)(json, 'dispensationPlace') ? json['dispensationPlace'] : (0, ProductDispensationPlace_1.ProductDispensationPlaceFromJSON)(json['dispensationPlace']),
|
|
@@ -86,7 +87,7 @@ function ProductToJSON(value) {
|
|
|
86
87
|
'laboratory': (0, LaboratoryLink_1.LaboratoryLinkToJSON)(value.laboratory),
|
|
87
88
|
'vat': (0, Vat_1.VatToJSON)(value.vat),
|
|
88
89
|
'narcoticPrescription': value.narcoticPrescription,
|
|
89
|
-
'storageType': value.storageType,
|
|
90
|
+
'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value.storageType),
|
|
90
91
|
'status': (0, ProductStatus_1.ProductStatusToJSON)(value.status),
|
|
91
92
|
'marketStatus': (0, ProductMarketStatus_1.ProductMarketStatusToJSON)(value.marketStatus),
|
|
92
93
|
'dispensationPlace': (0, ProductDispensationPlace_1.ProductDispensationPlaceToJSON)(value.dispensationPlace),
|
|
@@ -13,6 +13,7 @@ import { Barcodes } from './Barcodes';
|
|
|
13
13
|
import { ProductDispensationPlace } from './ProductDispensationPlace';
|
|
14
14
|
import { ProductMarketStatus } from './ProductMarketStatus';
|
|
15
15
|
import { ProductStatus } from './ProductStatus';
|
|
16
|
+
import { ProductStorageType } from './ProductStorageType';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
18
19
|
* @export
|
|
@@ -93,10 +94,10 @@ export interface ProductCreationOrUpdateParameters {
|
|
|
93
94
|
narcoticPrescription?: boolean | null;
|
|
94
95
|
/**
|
|
95
96
|
*
|
|
96
|
-
* @type {
|
|
97
|
+
* @type {ProductStorageType}
|
|
97
98
|
* @memberof ProductCreationOrUpdateParameters
|
|
98
99
|
*/
|
|
99
|
-
storageType?:
|
|
100
|
+
storageType?: ProductStorageType | null;
|
|
100
101
|
/**
|
|
101
102
|
*
|
|
102
103
|
* @type {ProductMarketStatus}
|
|
@@ -19,6 +19,7 @@ var Barcodes_1 = require("./Barcodes");
|
|
|
19
19
|
var ProductDispensationPlace_1 = require("./ProductDispensationPlace");
|
|
20
20
|
var ProductMarketStatus_1 = require("./ProductMarketStatus");
|
|
21
21
|
var ProductStatus_1 = require("./ProductStatus");
|
|
22
|
+
var ProductStorageType_1 = require("./ProductStorageType");
|
|
22
23
|
function ProductCreationOrUpdateParametersFromJSON(json) {
|
|
23
24
|
return ProductCreationOrUpdateParametersFromJSONTyped(json, false);
|
|
24
25
|
}
|
|
@@ -40,7 +41,7 @@ function ProductCreationOrUpdateParametersFromJSONTyped(json, ignoreDiscriminato
|
|
|
40
41
|
'laboratoryId': !(0, runtime_1.exists)(json, 'laboratoryId') ? json['laboratoryId'] : json['laboratoryId'],
|
|
41
42
|
'vatId': !(0, runtime_1.exists)(json, 'vatId') ? json['vatId'] : json['vatId'],
|
|
42
43
|
'narcoticPrescription': !(0, runtime_1.exists)(json, 'narcoticPrescription') ? json['narcoticPrescription'] : json['narcoticPrescription'],
|
|
43
|
-
'storageType': !(0, runtime_1.exists)(json, 'storageType') ? json['storageType'] : json['storageType'],
|
|
44
|
+
'storageType': !(0, runtime_1.exists)(json, 'storageType') ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
|
|
44
45
|
'marketStatus': !(0, runtime_1.exists)(json, 'marketStatus') ? json['marketStatus'] : (0, ProductMarketStatus_1.ProductMarketStatusFromJSON)(json['marketStatus']),
|
|
45
46
|
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : (0, ProductStatus_1.ProductStatusFromJSON)(json['status']),
|
|
46
47
|
'dispensationPlace': !(0, runtime_1.exists)(json, 'dispensationPlace') ? json['dispensationPlace'] : (0, ProductDispensationPlace_1.ProductDispensationPlaceFromJSON)(json['dispensationPlace']),
|
|
@@ -70,7 +71,7 @@ function ProductCreationOrUpdateParametersToJSON(value) {
|
|
|
70
71
|
'laboratoryId': value.laboratoryId,
|
|
71
72
|
'vatId': value.vatId,
|
|
72
73
|
'narcoticPrescription': value.narcoticPrescription,
|
|
73
|
-
'storageType': value.storageType,
|
|
74
|
+
'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value.storageType),
|
|
74
75
|
'marketStatus': (0, ProductMarketStatus_1.ProductMarketStatusToJSON)(value.marketStatus),
|
|
75
76
|
'status': (0, ProductStatus_1.ProductStatusToJSON)(value.status),
|
|
76
77
|
'dispensationPlace': (0, ProductDispensationPlace_1.ProductDispensationPlaceToJSON)(value.dispensationPlace),
|