@lcdp/api-react-rest-client 2.1.4-develop.5077517101 → 2.1.4-develop.5078116277

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.
Files changed (39) hide show
  1. package/magic-cart/src/models/ProductLink.d.ts +7 -0
  2. package/magic-cart/src/models/ProductLink.js +3 -2
  3. package/magic-cart/src/models/ProductLinkAllOf.d.ts +7 -0
  4. package/magic-cart/src/models/ProductLinkAllOf.js +3 -0
  5. package/magic-cart/src/models/ProductStorageType.d.ts +25 -0
  6. package/magic-cart/src/models/ProductStorageType.js +40 -0
  7. package/magic-cart/src/models/index.d.ts +1 -0
  8. package/magic-cart/src/models/index.js +1 -0
  9. package/order/src/models/Order.d.ts +14 -0
  10. package/order/src/models/Order.js +6 -0
  11. package/order/src/models/OrderJournal.d.ts +27 -0
  12. package/order/src/models/OrderJournal.js +41 -0
  13. package/order/src/models/OrderStorageType.d.ts +25 -0
  14. package/order/src/models/OrderStorageType.js +40 -0
  15. package/order/src/models/ProductLink.d.ts +7 -0
  16. package/order/src/models/ProductLink.js +3 -2
  17. package/order/src/models/ProductLinkAllOf.d.ts +7 -0
  18. package/order/src/models/ProductLinkAllOf.js +3 -0
  19. package/order/src/models/ProductStorageType.d.ts +25 -0
  20. package/order/src/models/ProductStorageType.js +40 -0
  21. package/order/src/models/index.d.ts +3 -0
  22. package/order/src/models/index.js +3 -0
  23. package/package.json +1 -1
  24. package/product/src/models/Product.d.ts +3 -2
  25. package/product/src/models/Product.js +3 -2
  26. package/product/src/models/ProductCreationOrUpdateParameters.d.ts +3 -2
  27. package/product/src/models/ProductCreationOrUpdateParameters.js +3 -2
  28. package/product/src/models/ProductStorageType.d.ts +25 -0
  29. package/product/src/models/ProductStorageType.js +40 -0
  30. package/product/src/models/index.d.ts +1 -0
  31. package/product/src/models/index.js +1 -0
  32. package/shopping-cart/src/models/ProductLink.d.ts +11 -4
  33. package/shopping-cart/src/models/ProductLink.js +3 -3
  34. package/shopping-cart/src/models/ProductLinkAllOf.d.ts +11 -4
  35. package/shopping-cart/src/models/ProductLinkAllOf.js +7 -5
  36. package/shopping-cart/src/models/ProductStorageType.d.ts +25 -0
  37. package/shopping-cart/src/models/ProductStorageType.js +40 -0
  38. package/shopping-cart/src/models/index.d.ts +1 -0
  39. package/shopping-cart/src/models/index.js +1 -0
@@ -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
  barcodes: Barcodes;
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;
@@ -27,6 +27,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.ProductLinkToJSON = exports.ProductLinkFromJSONTyped = exports.ProductLinkFromJSON = void 0;
28
28
  var Barcodes_1 = require("./Barcodes");
29
29
  var HttpLink_1 = require("./HttpLink");
30
+ var ProductStorageType_1 = require("./ProductStorageType");
30
31
  function ProductLinkFromJSON(json) {
31
32
  return ProductLinkFromJSONTyped(json, false);
32
33
  }
@@ -35,7 +36,7 @@ function ProductLinkFromJSONTyped(json, ignoreDiscriminator) {
35
36
  if ((json === undefined) || (json === null)) {
36
37
  return json;
37
38
  }
38
- return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': json['id'], 'name': json['name'], 'barcodes': (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']) });
39
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': json['id'], 'name': json['name'], 'barcodes': (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']), 'storageType': (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']) });
39
40
  }
40
41
  exports.ProductLinkFromJSONTyped = ProductLinkFromJSONTyped;
41
42
  function ProductLinkToJSON(value) {
@@ -45,6 +46,6 @@ function ProductLinkToJSON(value) {
45
46
  if (value === null) {
46
47
  return null;
47
48
  }
48
- return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'name': value.name, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes) });
49
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'name': value.name, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes), 'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value.storageType) });
49
50
  }
50
51
  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
  barcodes: Barcodes;
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;
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProductLinkAllOfToJSON = exports.ProductLinkAllOfFromJSONTyped = exports.ProductLinkAllOfFromJSON = void 0;
17
17
  var Barcodes_1 = require("./Barcodes");
18
+ var ProductStorageType_1 = require("./ProductStorageType");
18
19
  function ProductLinkAllOfFromJSON(json) {
19
20
  return ProductLinkAllOfFromJSONTyped(json, false);
20
21
  }
@@ -27,6 +28,7 @@ function ProductLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
27
28
  'id': json['id'],
28
29
  'name': json['name'],
29
30
  'barcodes': (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
31
+ 'storageType': (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
30
32
  };
31
33
  }
32
34
  exports.ProductLinkAllOfFromJSONTyped = ProductLinkAllOfFromJSONTyped;
@@ -41,6 +43,7 @@ function ProductLinkAllOfToJSON(value) {
41
43
  'id': value.id,
42
44
  'name': value.name,
43
45
  'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
46
+ 'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value.storageType),
44
47
  };
45
48
  }
46
49
  exports.ProductLinkAllOfToJSON = ProductLinkAllOfToJSON;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * lcdp-magic-cart
3
+ * This is the REST API of Magic cart
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: contact@lecomptoirdespharmacies.fr
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
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-magic-cart
6
+ * This is the REST API of Magic cart
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: contact@lecomptoirdespharmacies.fr
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.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;
@@ -12,6 +12,7 @@ export * from './IdentifiedRangeDistributionMode';
12
12
  export * from './IdentifiedRangeDistributionModeAllOf';
13
13
  export * from './ProductLink';
14
14
  export * from './ProductLinkAllOf';
15
+ export * from './ProductStorageType';
15
16
  export * from './QuotationDistributionMode';
16
17
  export * from './QuotationDistributionModeAllOf';
17
18
  export * from './SaleOfferLink';
@@ -28,6 +28,7 @@ __exportStar(require("./IdentifiedRangeDistributionMode"), exports);
28
28
  __exportStar(require("./IdentifiedRangeDistributionModeAllOf"), exports);
29
29
  __exportStar(require("./ProductLink"), exports);
30
30
  __exportStar(require("./ProductLinkAllOf"), exports);
31
+ __exportStar(require("./ProductStorageType"), exports);
31
32
  __exportStar(require("./QuotationDistributionMode"), exports);
32
33
  __exportStar(require("./QuotationDistributionModeAllOf"), exports);
33
34
  __exportStar(require("./SaleOfferLink"), exports);
@@ -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}
@@ -191,6 +199,12 @@ export interface Order {
191
199
  * @memberof Order
192
200
  */
193
201
  tags: Array<string>;
202
+ /**
203
+ *
204
+ * @type {OrderJournal}
205
+ * @memberof Order
206
+ */
207
+ journal: OrderJournal;
194
208
  }
195
209
  export declare function OrderFromJSON(json: any): Order;
196
210
  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'],
@@ -60,6 +63,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
60
63
  'reservations': (0, HttpLink_1.HttpLinkFromJSON)(json['reservations']),
61
64
  'availableItemsOperations': (0, HttpLink_1.HttpLinkFromJSON)(json['availableItemsOperations']),
62
65
  'tags': json['tags'],
66
+ 'journal': (0, OrderJournal_1.OrderJournalFromJSON)(json['journal']),
63
67
  };
64
68
  }
65
69
  exports.OrderFromJSONTyped = OrderFromJSONTyped;
@@ -86,6 +90,7 @@ function OrderToJSON(value) {
86
90
  'shippingAddress': (0, Address_1.AddressToJSON)(value.shippingAddress),
87
91
  'billingAddress': (0, Address_1.AddressToJSON)(value.billingAddress),
88
92
  'shipments': (0, HttpLink_1.HttpLinkToJSON)(value.shipments),
93
+ 'storageTypes': value.storageTypes === undefined ? undefined : (value.storageTypes.map(OrderStorageType_1.OrderStorageTypeToJSON)),
89
94
  'maxShipment': value.maxShipment,
90
95
  'maxShippingDate': ((0, runtime_1.toDateISOString)(value.maxShippingDate)),
91
96
  'maxParcelPerShipment': value.maxParcelPerShipment,
@@ -99,6 +104,7 @@ function OrderToJSON(value) {
99
104
  'reservations': (0, HttpLink_1.HttpLinkToJSON)(value.reservations),
100
105
  'availableItemsOperations': (0, HttpLink_1.HttpLinkToJSON)(value.availableItemsOperations),
101
106
  'tags': value.tags,
107
+ 'journal': (0, OrderJournal_1.OrderJournalToJSON)(value.journal),
102
108
  };
103
109
  }
104
110
  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,41 @@
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
+ function OrderJournalFromJSON(json) {
18
+ return OrderJournalFromJSONTyped(json, false);
19
+ }
20
+ exports.OrderJournalFromJSON = OrderJournalFromJSON;
21
+ function OrderJournalFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'freeShippingReachedDate': (json['freeShippingReachedDate'] === null ? null : new Date(json['freeShippingReachedDate'])),
27
+ };
28
+ }
29
+ exports.OrderJournalFromJSONTyped = OrderJournalFromJSONTyped;
30
+ function OrderJournalToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'freeShippingReachedDate': (value.freeShippingReachedDate === null ? null : value.freeShippingReachedDate.toISOString()),
39
+ };
40
+ }
41
+ 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;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.1.4-develop.5077517101",
3
+ "version": "2.1.4-develop.5078116277",
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);
@@ -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
@@ -22,25 +23,31 @@ export interface ProductLink extends HttpLink {
22
23
  * @type {number}
23
24
  * @memberof ProductLink
24
25
  */
25
- id?: number;
26
+ id: number;
26
27
  /**
27
28
  *
28
29
  * @type {Barcodes}
29
30
  * @memberof ProductLink
30
31
  */
31
- barcodes?: Barcodes;
32
+ barcodes: Barcodes;
32
33
  /**
33
34
  * Name of the product
34
35
  * @type {string}
35
36
  * @memberof ProductLink
36
37
  */
37
- name?: string;
38
+ name: string;
38
39
  /**
39
40
  * Shorted name of the product
40
41
  * @type {string}
41
42
  * @memberof ProductLink
42
43
  */
43
- shortName?: string;
44
+ shortName: string;
45
+ /**
46
+ *
47
+ * @type {ProductStorageType}
48
+ * @memberof ProductLink
49
+ */
50
+ storageType: ProductStorageType | null;
44
51
  }
45
52
  export declare function ProductLinkFromJSON(json: any): ProductLink;
46
53
  export declare function ProductLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLink;
@@ -25,9 +25,9 @@ var __assign = (this && this.__assign) || function () {
25
25
  };
26
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.ProductLinkToJSON = exports.ProductLinkFromJSONTyped = exports.ProductLinkFromJSON = void 0;
28
- var runtime_1 = require("../runtime");
29
28
  var Barcodes_1 = require("./Barcodes");
30
29
  var HttpLink_1 = require("./HttpLink");
30
+ var ProductStorageType_1 = require("./ProductStorageType");
31
31
  function ProductLinkFromJSON(json) {
32
32
  return ProductLinkFromJSONTyped(json, false);
33
33
  }
@@ -36,7 +36,7 @@ function ProductLinkFromJSONTyped(json, ignoreDiscriminator) {
36
36
  if ((json === undefined) || (json === null)) {
37
37
  return json;
38
38
  }
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'], 'shortName': !(0, runtime_1.exists)(json, 'shortName') ? undefined : json['shortName'] });
39
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': json['id'], 'barcodes': (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']), 'name': json['name'], 'shortName': json['shortName'], 'storageType': (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']) });
40
40
  }
41
41
  exports.ProductLinkFromJSONTyped = ProductLinkFromJSONTyped;
42
42
  function ProductLinkToJSON(value) {
@@ -46,6 +46,6 @@ function ProductLinkToJSON(value) {
46
46
  if (value === null) {
47
47
  return null;
48
48
  }
49
- return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes), 'name': value.name, 'shortName': value.shortName });
49
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes), 'name': value.name, 'shortName': value.shortName, 'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value.storageType) });
50
50
  }
51
51
  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
@@ -21,25 +22,31 @@ export interface ProductLinkAllOf {
21
22
  * @type {number}
22
23
  * @memberof ProductLinkAllOf
23
24
  */
24
- id?: number;
25
+ id: number;
25
26
  /**
26
27
  *
27
28
  * @type {Barcodes}
28
29
  * @memberof ProductLinkAllOf
29
30
  */
30
- barcodes?: Barcodes;
31
+ barcodes: Barcodes;
31
32
  /**
32
33
  * Name of the product
33
34
  * @type {string}
34
35
  * @memberof ProductLinkAllOf
35
36
  */
36
- name?: string;
37
+ name: string;
37
38
  /**
38
39
  * Shorted name of the product
39
40
  * @type {string}
40
41
  * @memberof ProductLinkAllOf
41
42
  */
42
- shortName?: string;
43
+ shortName: string;
44
+ /**
45
+ *
46
+ * @type {ProductStorageType}
47
+ * @memberof ProductLinkAllOf
48
+ */
49
+ storageType: ProductStorageType | null;
43
50
  }
44
51
  export declare function ProductLinkAllOfFromJSON(json: any): ProductLinkAllOf;
45
52
  export declare function ProductLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLinkAllOf;
@@ -14,8 +14,8 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProductLinkAllOfToJSON = exports.ProductLinkAllOfFromJSONTyped = exports.ProductLinkAllOfFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  var Barcodes_1 = require("./Barcodes");
18
+ var ProductStorageType_1 = require("./ProductStorageType");
19
19
  function ProductLinkAllOfFromJSON(json) {
20
20
  return ProductLinkAllOfFromJSONTyped(json, false);
21
21
  }
@@ -25,10 +25,11 @@ function ProductLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return json;
26
26
  }
27
27
  return {
28
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
29
- 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
30
- 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
31
- 'shortName': !(0, runtime_1.exists)(json, 'shortName') ? undefined : json['shortName'],
28
+ 'id': json['id'],
29
+ 'barcodes': (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
30
+ 'name': json['name'],
31
+ 'shortName': json['shortName'],
32
+ 'storageType': (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
32
33
  };
33
34
  }
34
35
  exports.ProductLinkAllOfFromJSONTyped = ProductLinkAllOfFromJSONTyped;
@@ -44,6 +45,7 @@ function ProductLinkAllOfToJSON(value) {
44
45
  'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
45
46
  'name': value.name,
46
47
  'shortName': value.shortName,
48
+ 'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value.storageType),
47
49
  };
48
50
  }
49
51
  exports.ProductLinkAllOfToJSON = ProductLinkAllOfToJSON;
@@ -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;
@@ -14,6 +14,7 @@ export * from './IdentifiedRangeDistributionMode';
14
14
  export * from './IdentifiedRangeDistributionModeAllOf';
15
15
  export * from './ProductLink';
16
16
  export * from './ProductLinkAllOf';
17
+ export * from './ProductStorageType';
17
18
  export * from './QuotationDistributionMode';
18
19
  export * from './QuotationDistributionModeAllOf';
19
20
  export * from './RestError';
@@ -30,6 +30,7 @@ __exportStar(require("./IdentifiedRangeDistributionMode"), exports);
30
30
  __exportStar(require("./IdentifiedRangeDistributionModeAllOf"), exports);
31
31
  __exportStar(require("./ProductLink"), exports);
32
32
  __exportStar(require("./ProductLinkAllOf"), exports);
33
+ __exportStar(require("./ProductStorageType"), exports);
33
34
  __exportStar(require("./QuotationDistributionMode"), exports);
34
35
  __exportStar(require("./QuotationDistributionModeAllOf"), exports);
35
36
  __exportStar(require("./RestError"), exports);