@lcdp/api-react-rest-client 2.6.6-develop.8468346713 → 2.6.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.6.6-develop.8468346713",
3
+ "version": "2.6.6",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -46,7 +46,7 @@ export interface SaleOffer {
46
46
  * @type {Stock}
47
47
  * @memberof SaleOffer
48
48
  */
49
- stock?: Stock;
49
+ stock: Stock;
50
50
  /**
51
51
  * Description of the sale offer
52
52
  * @type {string}
@@ -14,7 +14,6 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.SaleOfferToJSON = exports.SaleOfferFromJSONTyped = exports.SaleOfferFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  var AnyIdentifiedDistributionMode_1 = require("./AnyIdentifiedDistributionMode");
19
18
  var Images_1 = require("./Images");
20
19
  var OwnerLink_1 = require("./OwnerLink");
@@ -35,7 +34,7 @@ function SaleOfferFromJSONTyped(json, ignoreDiscriminator) {
35
34
  'reference': json['reference'],
36
35
  'status': (0, SaleOfferStatus_1.SaleOfferStatusFromJSON)(json['status']),
37
36
  'product': (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
38
- 'stock': !(0, runtime_1.exists)(json, 'stock') ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
37
+ 'stock': (0, Stock_1.StockFromJSON)(json['stock']),
39
38
  'description': json['description'],
40
39
  'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']),
41
40
  'minimalUnitPrice': json['minimalUnitPrice'],