cecon-interfaces 1.1.84 → 1.1.86

Sign up to get free protection for your applications and to get access to all the features.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.84",
3
+ "version": "1.1.86",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,7 +12,7 @@ export declare class ProductGlobalEntity implements IProductGlobal {
12
12
  createdAt: Date;
13
13
  description: string;
14
14
  grossWeight: number;
15
- gtin: string;
15
+ gtin: number | null;
16
16
  gtinType: GTINTypeEnum;
17
17
  height: number;
18
18
  id: string;
@@ -24,6 +24,7 @@ export declare class ProductGlobalEntity implements IProductGlobal {
24
24
  name: string;
25
25
  ncm: ProductNcmEntity;
26
26
  netWeight: number;
27
+ createdBy: string;
27
28
  price: number;
28
29
  tags: string[];
29
30
  thumbnail: string | null;
@@ -19,7 +19,7 @@ var ProductGlobalEntity = /** @class */ (function () {
19
19
  this.createdAt = new Date();
20
20
  this.description = '';
21
21
  this.grossWeight = 0;
22
- this.gtin = '';
22
+ this.gtin = null;
23
23
  this.gtinType = enums_1.GTINTypeEnum.THIRTEEN;
24
24
  this.height = 0;
25
25
  this.id = '';
@@ -31,6 +31,7 @@ var ProductGlobalEntity = /** @class */ (function () {
31
31
  this.name = '';
32
32
  this.ncm = new product_ncm_entity_1.ProductNcmEntity();
33
33
  this.netWeight = 0;
34
+ this.createdBy = '';
34
35
  this.price = 0;
35
36
  this.tags = [];
36
37
  this.thumbnail = null;
@@ -45,7 +46,7 @@ var ProductGlobalEntity = /** @class */ (function () {
45
46
  this.createdAt = new Date();
46
47
  this.description = bluesoft.description;
47
48
  this.grossWeight = bluesoft.grossWeight || 0;
48
- this.gtin = bluesoft.gtin.toString();
49
+ this.gtin = bluesoft.gtin || null;
49
50
  this.gtinType = gtin_type_enum_1.EGtintype.FOURTEEN;
50
51
  this.height = bluesoft.height || 0;
51
52
  this.id = '';
@@ -49,6 +49,13 @@ export interface IProductGlobal {
49
49
  * @example "Product description"
50
50
  */
51
51
  description: string;
52
+ /**
53
+ * Name of the user who created the product.
54
+ * @minlength 1
55
+ * @maxlength 120
56
+ * @example "User name"
57
+ */
58
+ createdBy: string;
52
59
  /**
53
60
  * Gross weight of the product.
54
61
  * @example 1.5
@@ -64,7 +71,7 @@ export interface IProductGlobal {
64
71
  * @maxlength 14
65
72
  * @example "123456789"
66
73
  */
67
- gtin: string;
74
+ gtin: number | null;
68
75
  /**
69
76
  * Type of GTIN.
70
77
  * @default GTINTypeEnum.GTIN_13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.84",
3
+ "version": "1.1.86",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",