cecon-interfaces 1.1.82 → 1.1.84
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/product-global/entities/product-brand.entity.mjs +2 -2
- package/dist/esm2022/product-global/entities/product.entity.mjs +4 -4
- package/dist/esm2022/product-global/interfaces/i-brand.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +4 -4
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/product-global/entities/product-brand.entity.d.ts +1 -1
- package/dist/product-global/entities/product-brand.entity.js +1 -1
- package/dist/product-global/entities/product.entity.d.ts +1 -1
- package/dist/product-global/entities/product.entity.js +3 -3
- package/dist/product-global/interfaces/i-brand.d.ts +1 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
@@ -29,7 +29,7 @@ export declare class ProductGlobalEntity implements IProductGlobal {
|
|
29
29
|
thumbnail: string | null;
|
30
30
|
updatedAt: Date;
|
31
31
|
width: number;
|
32
|
-
constructor(data?: Partial<ProductGlobalEntity>, bluesoft?: IBlueSoft
|
32
|
+
constructor(data?: Partial<ProductGlobalEntity>, bluesoft?: IBlueSoft);
|
33
33
|
private getGtinFromGtins;
|
34
34
|
private currencyStringToNumber;
|
35
35
|
}
|
@@ -8,7 +8,7 @@ var product_ncm_entity_1 = require("./product-ncm.entity");
|
|
8
8
|
var ProductGlobalEntity = /** @class */ (function () {
|
9
9
|
// #endregion Properties (26)
|
10
10
|
// #region Constructors (1)
|
11
|
-
function ProductGlobalEntity(data, bluesoft
|
11
|
+
function ProductGlobalEntity(data, bluesoft) {
|
12
12
|
var _a, _b, _c, _d;
|
13
13
|
// #region Properties (26)
|
14
14
|
this.active = true;
|
@@ -51,8 +51,8 @@ var ProductGlobalEntity = /** @class */ (function () {
|
|
51
51
|
this.id = '';
|
52
52
|
this.length = bluesoft.length || 0;
|
53
53
|
this.maxPrice = bluesoft.maxPrice || 0;
|
54
|
-
this.measureQuantity = ((_b = (_a = this.getGtinFromGtins(
|
55
|
-
this.measureUnit = ((_d = (_c = this.getGtinFromGtins(
|
54
|
+
this.measureQuantity = ((_b = (_a = this.getGtinFromGtins(bluesoft.gtin || 0, bluesoft.gtins)) === null || _a === void 0 ? void 0 : _a.commercialUnit) === null || _b === void 0 ? void 0 : _b.quantityPackaging) || 1;
|
55
|
+
this.measureUnit = ((_d = (_c = this.getGtinFromGtins(bluesoft.gtin || 0, bluesoft.gtins)) === null || _c === void 0 ? void 0 : _c.commercialUnit) === null || _d === void 0 ? void 0 : _d.typePackaging) || 'Unidade';
|
56
56
|
this.minPrice = bluesoft.minPrice || 0;
|
57
57
|
this.name = bluesoft.description || '';
|
58
58
|
this.ncm = new product_ncm_entity_1.ProductNcmEntity(bluesoft.ncm);
|