@lcdp/api-react-rest-client 2.1.3 → 2.1.4-LDS-2965-api---ajouter-type-de-transport.4629735793

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.
@@ -14,6 +14,7 @@ import { Anomalies } from './Anomalies';
14
14
  import { HttpLink } from './HttpLink';
15
15
  import { OrderPrices } from './OrderPrices';
16
16
  import { OrderStatus } from './OrderStatus';
17
+ import { OrderStorageType } from './OrderStorageType';
17
18
  import { OrderThreads } from './OrderThreads';
18
19
  import { OrderType } from './OrderType';
19
20
  import { UserLink } from './UserLink';
@@ -113,6 +114,12 @@ export interface Order {
113
114
  * @memberof Order
114
115
  */
115
116
  shipments: HttpLink;
117
+ /**
118
+ *
119
+ * @type {Array<OrderStorageType>}
120
+ * @memberof Order
121
+ */
122
+ storageTypes?: Array<OrderStorageType>;
116
123
  /**
117
124
  * Number of maximum shipments available
118
125
  * @type {number}
@@ -20,6 +20,7 @@ var Anomalies_1 = require("./Anomalies");
20
20
  var HttpLink_1 = require("./HttpLink");
21
21
  var OrderPrices_1 = require("./OrderPrices");
22
22
  var OrderStatus_1 = require("./OrderStatus");
23
+ var OrderStorageType_1 = require("./OrderStorageType");
23
24
  var OrderThreads_1 = require("./OrderThreads");
24
25
  var OrderType_1 = require("./OrderType");
25
26
  var UserLink_1 = require("./UserLink");
@@ -47,6 +48,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
47
48
  'shippingAddress': (0, Address_1.AddressFromJSON)(json['shippingAddress']),
48
49
  'billingAddress': (0, Address_1.AddressFromJSON)(json['billingAddress']),
49
50
  'shipments': (0, HttpLink_1.HttpLinkFromJSON)(json['shipments']),
51
+ 'storageTypes': !(0, runtime_1.exists)(json, 'storageTypes') ? undefined : (json['storageTypes'].map(OrderStorageType_1.OrderStorageTypeFromJSON)),
50
52
  'maxShipment': json['maxShipment'],
51
53
  'maxShippingDate': (new Date(json['maxShippingDate'])),
52
54
  'maxParcelPerShipment': json['maxParcelPerShipment'],
@@ -86,6 +88,7 @@ function OrderToJSON(value) {
86
88
  'shippingAddress': (0, Address_1.AddressToJSON)(value.shippingAddress),
87
89
  'billingAddress': (0, Address_1.AddressToJSON)(value.billingAddress),
88
90
  'shipments': (0, HttpLink_1.HttpLinkToJSON)(value.shipments),
91
+ 'storageTypes': value.storageTypes === undefined ? undefined : (value.storageTypes.map(OrderStorageType_1.OrderStorageTypeToJSON)),
89
92
  'maxShipment': value.maxShipment,
90
93
  'maxShippingDate': ((0, runtime_1.toDateISOString)(value.maxShippingDate)),
91
94
  'maxParcelPerShipment': value.maxParcelPerShipment,
@@ -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;
@@ -20,6 +20,7 @@ export * from './OrderRefundedItem';
20
20
  export * from './OrderRemovedItem';
21
21
  export * from './OrderRemovedItemUpdateParameters';
22
22
  export * from './OrderStatus';
23
+ export * from './OrderStorageType';
23
24
  export * from './OrderThreads';
24
25
  export * from './OrderType';
25
26
  export * from './OrderUpdateParameters';
@@ -29,6 +30,7 @@ export * from './PaginatedOrdersAllOf';
29
30
  export * from './PagingMetadata';
30
31
  export * from './ProductLink';
31
32
  export * from './ProductLinkAllOf';
33
+ export * from './ProductStorageType';
32
34
  export * from './Reservation';
33
35
  export * from './ReservationUpdateParameters';
34
36
  export * from './RestError';
@@ -36,6 +36,7 @@ __exportStar(require("./OrderRefundedItem"), exports);
36
36
  __exportStar(require("./OrderRemovedItem"), exports);
37
37
  __exportStar(require("./OrderRemovedItemUpdateParameters"), exports);
38
38
  __exportStar(require("./OrderStatus"), exports);
39
+ __exportStar(require("./OrderStorageType"), exports);
39
40
  __exportStar(require("./OrderThreads"), exports);
40
41
  __exportStar(require("./OrderType"), exports);
41
42
  __exportStar(require("./OrderUpdateParameters"), exports);
@@ -45,6 +46,7 @@ __exportStar(require("./PaginatedOrdersAllOf"), exports);
45
46
  __exportStar(require("./PagingMetadata"), exports);
46
47
  __exportStar(require("./ProductLink"), exports);
47
48
  __exportStar(require("./ProductLinkAllOf"), exports);
49
+ __exportStar(require("./ProductStorageType"), exports);
48
50
  __exportStar(require("./Reservation"), exports);
49
51
  __exportStar(require("./ReservationUpdateParameters"), exports);
50
52
  __exportStar(require("./RestError"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.1.3",
3
+ "version": "2.1.4-LDS-2965-api---ajouter-type-de-transport.4629735793",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -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 {string}
116
+ * @type {ProductStorageType}
116
117
  * @memberof Product
117
118
  */
118
- storageType?: string | null;
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 {string}
97
+ * @type {ProductStorageType}
97
98
  * @memberof ProductCreationOrUpdateParameters
98
99
  */
99
- storageType?: string | null;
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),
@@ -0,0 +1,25 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP products
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: contact@lecomptoirdespharmacies.fr
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @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 products
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: contact@lecomptoirdespharmacies.fr
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.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;
@@ -20,6 +20,7 @@ export * from './ProductProscriptionCreationParameters';
20
20
  export * from './ProductProvider';
21
21
  export * from './ProductSecondaryType';
22
22
  export * from './ProductStatus';
23
+ export * from './ProductStorageType';
23
24
  export * from './ProductType';
24
25
  export * from './RestError';
25
26
  export * from './Statistics';
@@ -36,6 +36,7 @@ __exportStar(require("./ProductProscriptionCreationParameters"), exports);
36
36
  __exportStar(require("./ProductProvider"), exports);
37
37
  __exportStar(require("./ProductSecondaryType"), exports);
38
38
  __exportStar(require("./ProductStatus"), exports);
39
+ __exportStar(require("./ProductStorageType"), exports);
39
40
  __exportStar(require("./ProductType"), exports);
40
41
  __exportStar(require("./RestError"), exports);
41
42
  __exportStar(require("./Statistics"), exports);