rerobe-js-orm 2.5.2 → 2.5.5
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/lib/factories/Product/ProductFromFormState.js +2 -1
- package/lib/form-states/Product/options.d.ts +1 -1
- package/lib/form-states/Product/options.js +17 -1261
- package/lib/helpers/ReRobeProductHelpers.js +11 -8
- package/lib/models/Product.js +5 -3
- package/lib/models/ProductStateManager.d.ts +1 -0
- package/lib/models/ProductStateManager.js +1 -0
- package/lib/types/rerobe-order-types.d.ts +1 -1
- package/lib/types/rerobe-product-types.d.ts +2 -0
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ const ProductFactory_1 = require("./ProductFactory");
|
|
|
4
4
|
const Product_1 = require("../../models/Product");
|
|
5
5
|
class ProductFromFormState extends ProductFactory_1.default {
|
|
6
6
|
createProduct(props) {
|
|
7
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14;
|
|
7
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15;
|
|
8
8
|
const productAttributes = {
|
|
9
9
|
availableForSale: props.fields.availableForSale.selectedValue,
|
|
10
10
|
description: props.fields.description.inputValue,
|
|
@@ -102,6 +102,7 @@ class ProductFromFormState extends ProductFactory_1.default {
|
|
|
102
102
|
liquidationRequestedTimestamp: (_12 = props.props) === null || _12 === void 0 ? void 0 : _12.liquidationRequestedTimestamp,
|
|
103
103
|
sellerLiquidatedTimestamp: (_13 = props.props) === null || _13 === void 0 ? void 0 : _13.sellerLiquidatedTimestamp,
|
|
104
104
|
archivedTimestamp: (_14 = props.props) === null || _14 === void 0 ? void 0 : _14.archivedTimestamp,
|
|
105
|
+
liquidationReadyTimestamp: (_15 = props.props) === null || _15 === void 0 ? void 0 : _15.liquidationReadyTimestamp,
|
|
105
106
|
};
|
|
106
107
|
return new Product_1.default(Object.assign(Object.assign(Object.assign(Object.assign({}, productAttributes), productFilterAttributes), consignmentAttributes), timestampAttributes));
|
|
107
108
|
}
|