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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.80",
3
+ "version": "1.1.81",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,10 +1,9 @@
1
- import { ProductBaseEntity } from '../../product-global';
1
+ import { ProductGlobalEntity } from '../../product-global/entities/product.entity';
2
2
  import { IProductContainer } from '../interfaces';
3
- export declare class ProductContainerEntity extends ProductBaseEntity implements IProductContainer {
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 product_global_1 = require("../../product-global");
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
- }(product_global_1.ProductBaseEntity));
41
+ }(product_entity_1.ProductGlobalEntity));
43
42
  exports.ProductContainerEntity = ProductContainerEntity;
@@ -1,5 +1,5 @@
1
- import { IProductBase } from '../../product-global';
2
- export interface IProductContainer extends IProductBase {
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,3 +1,3 @@
1
1
  export { ProductBrandEntity } from './product-brand.entity';
2
2
  export { ProductNcmEntity } from './product-ncm.entity';
3
- export { ProductBaseEntity } from './product.entity';
3
+ export { ProductGlobalEntity as ProductglobalEntity } from './product.entity';
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProductBaseEntity = exports.ProductNcmEntity = exports.ProductBrandEntity = void 0;
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, "ProductBaseEntity", { enumerable: true, get: function () { return product_entity_1.ProductBaseEntity; } });
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 { IProductBase } from '../interfaces';
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 ProductBaseEntity implements IProductBase {
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<ProductBaseEntity>);
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.ProductBaseEntity = void 0;
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 ProductBaseEntity = /** @class */ (function () {
7
+ var ProductGlobalEntity = /** @class */ (function () {
8
8
  // #endregion Properties (29)
9
9
  // #region Constructors (1)
10
- function ProductBaseEntity(data) {
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 ProductBaseEntity;
47
+ return ProductGlobalEntity;
49
48
  }());
50
- exports.ProductBaseEntity = ProductBaseEntity;
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 IProductBase {
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"]
@@ -1,3 +1,3 @@
1
1
  export { IProductBrand } from './i-brand';
2
2
  export { IProductNcm } from './i-ncm';
3
- export { IProductBase } from './i-product';
3
+ export { IProductGlobal } from './i-product';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.80",
3
+ "version": "1.1.81",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",