cecon-interfaces 1.1.80 → 1.1.81
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/dist/esm2022/product-container/entities/product.entity.mjs +4 -5
- package/dist/esm2022/product-container/interfaces/i-product.mjs +1 -1
- package/dist/esm2022/product-global/entities/index.mjs +2 -2
- package/dist/esm2022/product-global/entities/product.entity.mjs +2 -3
- package/dist/esm2022/product-global/interfaces/i-product.mjs +1 -1
- package/dist/esm2022/product-global/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +13 -15
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/product-container/entities/product.entity.d.ts +2 -3
- package/dist/product-container/entities/product.entity.js +3 -4
- package/dist/product-container/interfaces/i-product.d.ts +2 -10
- package/dist/product-global/entities/index.d.ts +1 -1
- package/dist/product-global/entities/index.js +2 -2
- package/dist/product-global/entities/product.entity.d.ts +3 -4
- package/dist/product-global/entities/product.entity.js +5 -6
- package/dist/product-global/interfaces/i-product.d.ts +1 -9
- package/dist/product-global/interfaces/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import { ProductGlobalEntity } from '../../product-global/entities/product.entity';
|
2
2
|
import { IProductContainer } from '../interfaces';
|
3
|
-
export declare class ProductContainerEntity extends
|
3
|
+
export declare class ProductContainerEntity extends ProductGlobalEntity implements IProductContainer {
|
4
4
|
cest: string | null;
|
5
5
|
containerId: string;
|
6
6
|
customEAN: string;
|
7
7
|
exTipi: string;
|
8
|
-
sku: string;
|
9
8
|
constructor(data?: Partial<ProductContainerEntity>);
|
10
9
|
}
|
@@ -16,7 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
16
16
|
})();
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
18
|
exports.ProductContainerEntity = void 0;
|
19
|
-
var
|
19
|
+
var product_entity_1 = require("../../product-global/entities/product.entity");
|
20
20
|
var ProductContainerEntity = /** @class */ (function (_super) {
|
21
21
|
__extends(ProductContainerEntity, _super);
|
22
22
|
// #endregion Properties (5)
|
@@ -28,7 +28,6 @@ var ProductContainerEntity = /** @class */ (function (_super) {
|
|
28
28
|
_this.containerId = '';
|
29
29
|
_this.customEAN = '';
|
30
30
|
_this.exTipi = '';
|
31
|
-
_this.sku = '';
|
32
31
|
if (data) {
|
33
32
|
for (var key in data) {
|
34
33
|
if (data.hasOwnProperty(key) && key in _this) {
|
@@ -37,7 +36,7 @@ var ProductContainerEntity = /** @class */ (function (_super) {
|
|
37
36
|
}
|
38
37
|
}
|
39
38
|
return _this;
|
40
|
-
}
|
39
|
+
} // #endregion Constructors (1)
|
41
40
|
return ProductContainerEntity;
|
42
|
-
}(
|
41
|
+
}(product_entity_1.ProductGlobalEntity));
|
43
42
|
exports.ProductContainerEntity = ProductContainerEntity;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export interface IProductContainer extends
|
1
|
+
import { IProductGlobal } from '../../product-global';
|
2
|
+
export interface IProductContainer extends IProductGlobal {
|
3
3
|
/**
|
4
4
|
* Container CEST. Optional if the product is from root.
|
5
5
|
* @minlength 7
|
@@ -28,12 +28,4 @@ export interface IProductContainer extends IProductBase {
|
|
28
28
|
* @example "01"
|
29
29
|
*/
|
30
30
|
exTipi: string;
|
31
|
-
/**
|
32
|
-
* Code of the product.
|
33
|
-
* @minlength 1
|
34
|
-
* @maxlength 60
|
35
|
-
* @pattern ^[a-zA-Z0-9]+$
|
36
|
-
* @example "123456789"
|
37
|
-
*/
|
38
|
-
sku: string;
|
39
31
|
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.ProductglobalEntity = exports.ProductNcmEntity = exports.ProductBrandEntity = void 0;
|
4
4
|
var product_brand_entity_1 = require("./product-brand.entity");
|
5
5
|
Object.defineProperty(exports, "ProductBrandEntity", { enumerable: true, get: function () { return product_brand_entity_1.ProductBrandEntity; } });
|
6
6
|
var product_ncm_entity_1 = require("./product-ncm.entity");
|
7
7
|
Object.defineProperty(exports, "ProductNcmEntity", { enumerable: true, get: function () { return product_ncm_entity_1.ProductNcmEntity; } });
|
8
8
|
var product_entity_1 = require("./product.entity");
|
9
|
-
Object.defineProperty(exports, "
|
9
|
+
Object.defineProperty(exports, "ProductglobalEntity", { enumerable: true, get: function () { return product_entity_1.ProductGlobalEntity; } });
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { GTINTypeEnum } from '../enums';
|
2
|
-
import {
|
2
|
+
import { IProductGlobal } from '../interfaces';
|
3
3
|
import { ProductBrandEntity } from './product-brand.entity';
|
4
4
|
import { ProductNcmEntity } from './product-ncm.entity';
|
5
|
-
export declare class
|
5
|
+
export declare class ProductGlobalEntity implements IProductGlobal {
|
6
6
|
active: boolean;
|
7
7
|
avgPrice: number;
|
8
8
|
barcodeImage: string | null;
|
@@ -26,10 +26,9 @@ export declare class ProductBaseEntity implements IProductBase {
|
|
26
26
|
netWeight: number;
|
27
27
|
netWeightUnit: string | null;
|
28
28
|
price: number;
|
29
|
-
sku: string;
|
30
29
|
tags: string[];
|
31
30
|
thumbnail: string | null;
|
32
31
|
updatedAt: Date;
|
33
32
|
width: number;
|
34
|
-
constructor(data?: Partial<
|
33
|
+
constructor(data?: Partial<ProductGlobalEntity>);
|
35
34
|
}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.ProductGlobalEntity = void 0;
|
4
4
|
var enums_1 = require("../enums");
|
5
5
|
var product_brand_entity_1 = require("./product-brand.entity");
|
6
6
|
var product_ncm_entity_1 = require("./product-ncm.entity");
|
7
|
-
var
|
7
|
+
var ProductGlobalEntity = /** @class */ (function () {
|
8
8
|
// #endregion Properties (29)
|
9
9
|
// #region Constructors (1)
|
10
|
-
function
|
10
|
+
function ProductGlobalEntity(data) {
|
11
11
|
// #region Properties (29)
|
12
12
|
this.active = true;
|
13
13
|
this.avgPrice = 0;
|
@@ -32,7 +32,6 @@ var ProductBaseEntity = /** @class */ (function () {
|
|
32
32
|
this.netWeight = 0;
|
33
33
|
this.netWeightUnit = null;
|
34
34
|
this.price = 0;
|
35
|
-
this.sku = '';
|
36
35
|
this.tags = [];
|
37
36
|
this.thumbnail = null;
|
38
37
|
this.updatedAt = new Date();
|
@@ -45,6 +44,6 @@ var ProductBaseEntity = /** @class */ (function () {
|
|
45
44
|
}
|
46
45
|
}
|
47
46
|
}
|
48
|
-
return
|
47
|
+
return ProductGlobalEntity;
|
49
48
|
}());
|
50
|
-
exports.
|
49
|
+
exports.ProductGlobalEntity = ProductGlobalEntity;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { GTINTypeEnum } from '../enums';
|
2
2
|
import { IProductBrand } from './i-brand';
|
3
3
|
import { IProductNcm } from './i-ncm';
|
4
|
-
export interface
|
4
|
+
export interface IProductGlobal {
|
5
5
|
/**
|
6
6
|
* Indicates whether the product is active.
|
7
7
|
* @default true
|
@@ -166,14 +166,6 @@ export interface IProductBase {
|
|
166
166
|
* @multipleOf 0.01
|
167
167
|
*/
|
168
168
|
price: number;
|
169
|
-
/**
|
170
|
-
* Code of the product.
|
171
|
-
* @minlength 1
|
172
|
-
* @maxlength 60
|
173
|
-
* @pattern ^[a-zA-Z0-9]+$
|
174
|
-
* @example "123456789"
|
175
|
-
*/
|
176
|
-
sku: string;
|
177
169
|
/**
|
178
170
|
* Tags associated with the product.
|
179
171
|
* @example ["tag1", "tag2"]
|