cecon-interfaces 1.1.79 → 1.1.81

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/dist/esm2022/index.mjs +4 -1
  2. package/dist/esm2022/product-company/entities/index.mjs +2 -0
  3. package/dist/esm2022/product-company/entities/product.entity.mjs +18 -0
  4. package/dist/esm2022/product-company/index.mjs +3 -0
  5. package/dist/esm2022/product-company/interfaces/i-product.mjs +2 -0
  6. package/dist/esm2022/product-company/interfaces/index.mjs +2 -0
  7. package/dist/esm2022/product-container/entities/index.mjs +2 -0
  8. package/dist/esm2022/product-container/entities/product.entity.mjs +21 -0
  9. package/dist/esm2022/product-container/index.mjs +3 -0
  10. package/dist/esm2022/product-container/interfaces/i-product.mjs +2 -0
  11. package/dist/esm2022/product-container/interfaces/index.mjs +2 -0
  12. package/dist/esm2022/product-global/entities/index.mjs +4 -0
  13. package/dist/esm2022/product-global/entities/product-brand.entity.mjs +17 -0
  14. package/dist/esm2022/product-global/entities/product-ncm.entity.mjs +18 -0
  15. package/dist/esm2022/product-global/entities/product.entity.mjs +45 -0
  16. package/dist/esm2022/product-global/enums/gtin-type.enum.mjs +9 -0
  17. package/dist/esm2022/product-global/enums/index.mjs +2 -0
  18. package/dist/esm2022/product-global/index.mjs +4 -0
  19. package/dist/esm2022/product-global/interfaces/i-brand.mjs +2 -0
  20. package/dist/esm2022/product-global/interfaces/i-ncm.mjs +2 -0
  21. package/dist/esm2022/product-global/interfaces/i-product.mjs +2 -0
  22. package/dist/esm2022/product-global/interfaces/index.mjs +2 -0
  23. package/dist/fesm2022/cecon-interfaces.mjs +124 -1
  24. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  25. package/dist/index.d.ts +3 -0
  26. package/dist/index.js +3 -0
  27. package/dist/package.json +1 -1
  28. package/dist/product-company/entities/index.d.ts +1 -0
  29. package/dist/product-company/entities/index.js +5 -0
  30. package/dist/product-company/entities/product.entity.d.ts +6 -0
  31. package/dist/product-company/entities/product.entity.js +39 -0
  32. package/dist/product-company/index.d.ts +2 -0
  33. package/dist/product-company/index.js +18 -0
  34. package/dist/product-company/interfaces/i-product.d.ts +11 -0
  35. package/dist/product-company/interfaces/i-product.js +2 -0
  36. package/dist/product-company/interfaces/index.d.ts +1 -0
  37. package/dist/product-company/interfaces/index.js +2 -0
  38. package/dist/product-container/entities/index.d.ts +1 -0
  39. package/dist/product-container/entities/index.js +5 -0
  40. package/dist/product-container/entities/product.entity.d.ts +9 -0
  41. package/dist/product-container/entities/product.entity.js +42 -0
  42. package/dist/product-container/index.d.ts +2 -0
  43. package/dist/product-container/index.js +18 -0
  44. package/dist/product-container/interfaces/i-product.d.ts +31 -0
  45. package/dist/product-container/interfaces/i-product.js +2 -0
  46. package/dist/product-container/interfaces/index.d.ts +1 -0
  47. package/dist/product-container/interfaces/index.js +2 -0
  48. package/dist/product-global/entities/index.d.ts +3 -0
  49. package/dist/product-global/entities/index.js +9 -0
  50. package/dist/product-global/entities/product-brand.entity.d.ts +6 -0
  51. package/dist/product-global/entities/product-brand.entity.js +21 -0
  52. package/dist/product-global/entities/product-ncm.entity.d.ts +7 -0
  53. package/dist/product-global/entities/product-ncm.entity.js +22 -0
  54. package/dist/product-global/entities/product.entity.d.ts +34 -0
  55. package/dist/product-global/entities/product.entity.js +49 -0
  56. package/dist/product-global/enums/gtin-type.enum.d.ts +7 -0
  57. package/dist/product-global/enums/gtin-type.enum.js +11 -0
  58. package/dist/product-global/enums/index.d.ts +1 -0
  59. package/dist/product-global/enums/index.js +5 -0
  60. package/dist/product-global/index.d.ts +3 -0
  61. package/dist/product-global/index.js +19 -0
  62. package/dist/product-global/interfaces/i-brand.d.ts +14 -0
  63. package/dist/product-global/interfaces/i-brand.js +2 -0
  64. package/dist/product-global/interfaces/i-ncm.d.ts +5 -0
  65. package/dist/product-global/interfaces/i-ncm.js +2 -0
  66. package/dist/product-global/interfaces/i-product.d.ts +203 -0
  67. package/dist/product-global/interfaces/i-product.js +2 -0
  68. package/dist/product-global/interfaces/index.d.ts +3 -0
  69. package/dist/product-global/interfaces/index.js +2 -0
  70. package/package.json +1 -1
@@ -0,0 +1,203 @@
1
+ import { GTINTypeEnum } from '../enums';
2
+ import { IProductBrand } from './i-brand';
3
+ import { IProductNcm } from './i-ncm';
4
+ export interface IProductGlobal {
5
+ /**
6
+ * Indicates whether the product is active.
7
+ * @default true
8
+ * @example true
9
+ */
10
+ active: boolean;
11
+ /**
12
+ * Average price of the product.
13
+ * @example 1.5
14
+ * @default 0
15
+ * @minimum 0
16
+ * @maximum 9999999999999.99
17
+ */
18
+ avgPrice: number;
19
+ /**
20
+ * Barcode of the product.
21
+ * @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAgAElEQ…"
22
+ * @default ""
23
+ */
24
+ barcodeImage: string | null;
25
+ /**
26
+ * Contains brand information of the product.
27
+ * @example { "id": "5e4f1b1b1b1b1b1b1b1b1b1b", "name": "Brand name" }
28
+ *
29
+ */
30
+ brand: IProductBrand;
31
+ /**
32
+ * CEST Code.
33
+ * @minlength 7
34
+ * @maxlength 7
35
+ */
36
+ cest: string | null;
37
+ /**
38
+ * Date of product creation.
39
+ * @format date-time
40
+ * @example "2019-01-01T00:00:00.000Z"
41
+ * @default Date.now()
42
+ * @readonly
43
+ */
44
+ createdAt: Date;
45
+ /**
46
+ * Description of the product or service.
47
+ * @minlength 1
48
+ * @maxlength 120
49
+ * @example "Product description"
50
+ */
51
+ description: string;
52
+ /**
53
+ * Gross weight of the product.
54
+ * @example 1.5
55
+ * @default 0
56
+ */
57
+ grossWeight: number | null;
58
+ /**
59
+ * Unit of measurement of gross weight.
60
+ * @minlength 1
61
+ * @maxlength 6
62
+ */
63
+ grossWeightUnit: string | null;
64
+ /**
65
+ * To be filled with the GTIN-8, GTIN-12, GTIN-13 or GTIN-14 code
66
+ * (old EAN, UPC and DUN-14 codes).
67
+ * For products that do not have a bar code with GTIN,
68
+ * the literal "WITHOUT GTIN" must be informed.
69
+ * @minlength 1
70
+ * @maxlength 14
71
+ * @example "123456789"
72
+ */
73
+ gtin: string;
74
+ /**
75
+ * Type of GTIN.
76
+ * @default GTINTypeEnum.GTIN_13
77
+ * @minlength 1
78
+ * @maxlength 8
79
+ */
80
+ gtinType: GTINTypeEnum;
81
+ /**
82
+ * Height of the product.
83
+ * @example 15
84
+ * @default 0
85
+ */
86
+ height: number | null;
87
+ /**
88
+ * Identifier of the product.
89
+ * @minlength 24
90
+ * @maxlength 24
91
+ * @example "5e4f1b1b1b1b1b1b1b1b1b1b"
92
+ */
93
+ id: string;
94
+ /**
95
+ * Length of the product.
96
+ * @example 15
97
+ * @default 0
98
+ */
99
+ length: number | null;
100
+ /**
101
+ * Max cost of the product.
102
+ * @example 1.5
103
+ * @default 0
104
+ * @minimum 0
105
+ * @maximum 9999999999999.99
106
+ */
107
+ maxPrice: number;
108
+ /**
109
+ * Quantity of the product.
110
+ * @example 1.5
111
+ * @default 0
112
+ */
113
+ measureQuantity: number;
114
+ /**
115
+ * Height of the product.
116
+ * @example "UN"
117
+ * @default "UN"
118
+ */
119
+ measureUnit: string;
120
+ /**
121
+ * Min cost of the product.
122
+ * @example 1.5
123
+ * @default 0
124
+ * @minimum 0
125
+ * @maximum 9999999999999.99
126
+ */
127
+ minPrice: number;
128
+ /**
129
+ * Name of the product.
130
+ * @minlength 1
131
+ * @maxlength 120
132
+ * @example "Product name"
133
+ */
134
+ name: string;
135
+ /**
136
+ * Fill in with the full NCM Code (position and sub-item) or, if you do not have it,
137
+ * with the NCM code "00" (two zeros). Format: "99999999" or "00"
138
+ * @minlength 2
139
+ * @maxlength 8
140
+ */
141
+ ncm: IProductNcm;
142
+ /**
143
+ * Net weight of the product.
144
+ * @example 1.5
145
+ * @default 0
146
+ * @minimum 0
147
+ * @maximum 9999999999999.999
148
+ * @multipleOf 0.001
149
+ */
150
+ netWeight: number | null;
151
+ /**
152
+ * Unit of measurement of net weight.
153
+ * @minlength 1
154
+ * @maxlength 6
155
+ * @example "KG"
156
+ * @default "UN"
157
+ * @pattern ^[A-Z]+$
158
+ */
159
+ netWeightUnit: string | null;
160
+ /**
161
+ * Price of the product.
162
+ * @example 1.5
163
+ * @default 0
164
+ * @minimum 0
165
+ * @maximum 9999999999999.99
166
+ * @multipleOf 0.01
167
+ */
168
+ price: number;
169
+ /**
170
+ * Tags associated with the product.
171
+ * @example ["tag1", "tag2"]
172
+ * @default []
173
+ * @uniqueItems true
174
+ * @minItems 0
175
+ * @maxItems 50
176
+ * @items
177
+ * @minlength 1
178
+ * @maxlength 60
179
+ */
180
+ tags: string[];
181
+ /**
182
+ * URL of the product image.
183
+ * @minlength 1
184
+ * @maxlength 120
185
+ * @example "https://www.example.com/image.jpg"
186
+ * @default ""
187
+ */
188
+ thumbnail: string | null;
189
+ /**
190
+ * Date when the product was last updated.
191
+ * @format date-time
192
+ * @example "2019-01-01T00:00:00.000Z"
193
+ * @default Date.now()
194
+ */
195
+ updatedAt: Date;
196
+ /**
197
+ * Width of the product.
198
+ * @example 15
199
+ * @default 0
200
+ *
201
+ */
202
+ width: number | null;
203
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export { IProductBrand } from './i-brand';
2
+ export { IProductNcm } from './i-ncm';
3
+ export { IProductGlobal } from './i-product';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.79",
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",