cecon-interfaces 1.1.81 → 1.1.82
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bluesoft/index.d.ts +1 -0
- package/dist/bluesoft/index.js +17 -0
- package/dist/bluesoft/interfaces/i-bluesoft-brand.d.ts +4 -0
- package/dist/bluesoft/interfaces/i-bluesoft-brand.js +2 -0
- package/dist/bluesoft/interfaces/i-bluesoft-gtin-commercial-unit.d.ts +6 -0
- package/dist/bluesoft/interfaces/i-bluesoft-gtin-commercial-unit.js +2 -0
- package/dist/bluesoft/interfaces/i-bluesoft-gtin.d.ts +5 -0
- package/dist/bluesoft/interfaces/i-bluesoft-gtin.js +2 -0
- package/dist/bluesoft/interfaces/i-bluesoft-ncm.d.ts +6 -0
- package/dist/bluesoft/interfaces/i-bluesoft-ncm.js +2 -0
- package/dist/bluesoft/interfaces/i-bluesoft.d.ts +24 -0
- package/dist/bluesoft/interfaces/i-bluesoft.js +2 -0
- package/dist/bluesoft/interfaces/index.d.ts +1 -0
- package/dist/bluesoft/interfaces/index.js +2 -0
- package/dist/esm2022/bluesoft/index.mjs +2 -0
- package/dist/esm2022/bluesoft/interfaces/i-bluesoft-brand.mjs +2 -0
- package/dist/esm2022/bluesoft/interfaces/i-bluesoft-gtin-commercial-unit.mjs +2 -0
- package/dist/esm2022/bluesoft/interfaces/i-bluesoft-gtin.mjs +2 -0
- package/dist/esm2022/bluesoft/interfaces/i-bluesoft-ncm.mjs +2 -0
- package/dist/esm2022/bluesoft/interfaces/i-bluesoft.mjs +2 -0
- package/dist/esm2022/bluesoft/interfaces/index.mjs +2 -0
- package/dist/esm2022/index.mjs +2 -1
- package/dist/esm2022/product-global/entities/product-ncm.entity.mjs +2 -1
- package/dist/esm2022/product-global/entities/product.entity.mjs +45 -6
- package/dist/esm2022/product-global/enums/gtin-type.enum.mjs +9 -9
- package/dist/esm2022/product-global/enums/index.mjs +2 -2
- package/dist/esm2022/product-global/interfaces/i-ncm.mjs +1 -1
- package/dist/esm2022/product-global/interfaces/i-product.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +54 -15
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/package.json +1 -1
- package/dist/product-global/entities/product-ncm.entity.d.ts +1 -0
- package/dist/product-global/entities/product-ncm.entity.js +1 -0
- package/dist/product-global/entities/product.entity.d.ts +4 -3
- package/dist/product-global/entities/product.entity.js +45 -5
- package/dist/product-global/enums/gtin-type.enum.d.ts +1 -1
- package/dist/product-global/enums/gtin-type.enum.js +9 -9
- package/dist/product-global/enums/index.d.ts +1 -1
- package/dist/product-global/enums/index.js +1 -1
- package/dist/product-global/interfaces/i-ncm.d.ts +1 -0
- package/dist/product-global/interfaces/i-product.d.ts +0 -15
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
export * from './interfaces';
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./interfaces"), exports);
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { IBlueSoftBrand } from './i-bluesoft-brand';
|
2
|
+
import { IBlueSoftGtin } from './i-bluesoft-gtin';
|
3
|
+
import { IBlueSoftNcm } from './i-bluesoft-ncm';
|
4
|
+
export interface IBlueSoft {
|
5
|
+
avgPrice: number;
|
6
|
+
barcodeImage: string;
|
7
|
+
description: string;
|
8
|
+
grossWeight: number | null;
|
9
|
+
gtin: number;
|
10
|
+
brand: IBlueSoftBrand;
|
11
|
+
gtins: IBlueSoftGtin[];
|
12
|
+
height: number | null;
|
13
|
+
length: number | null;
|
14
|
+
maxPrice: number;
|
15
|
+
minPrice: number;
|
16
|
+
netWeight: number | null;
|
17
|
+
origin: string;
|
18
|
+
ncm: IBlueSoftNcm;
|
19
|
+
price: string;
|
20
|
+
releaseDate: null;
|
21
|
+
thumbnail: string;
|
22
|
+
updateAt: Date;
|
23
|
+
width: number | null;
|
24
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { IBlueSoft } from './i-bluesoft';
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './interfaces';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYmx1ZXNvZnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2ludGVyZmFjZXMnO1xuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1ibHVlc29mdC1icmFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9ibHVlc29mdC9pbnRlcmZhY2VzL2ktYmx1ZXNvZnQtYnJhbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSUJsdWVTb2Z0QnJhbmQge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMilcclxuXHJcbiAgbmFtZTogc3RyaW5nO1xyXG4gIHBpY3R1cmU6IHN0cmluZztcclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICgyKVxyXG59XHJcbiJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1ibHVlc29mdC1ndGluLWNvbW1lcmNpYWwtdW5pdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9ibHVlc29mdC9pbnRlcmZhY2VzL2ktYmx1ZXNvZnQtZ3Rpbi1jb21tZXJjaWFsLXVuaXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSUJsdWVTb2Z0Q29tbWVyY2lhbFVuaXQge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMTApXHJcbiAgdHlwZVBhY2thZ2luZzogc3RyaW5nO1xyXG4gIHF1YW50aXR5UGFja2FnaW5nOiBudW1iZXI7XHJcbiAgYmFsbGFzdDogc3RyaW5nIHwgbnVsbDtcclxuICBsYXllcjogc3RyaW5nIHwgbnVsbDtcclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICgxMClcclxufVxyXG4iXX0=
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1ibHVlc29mdC1ndGluLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2JsdWVzb2Z0L2ludGVyZmFjZXMvaS1ibHVlc29mdC1ndGluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJQmx1ZVNvZnRDb21tZXJjaWFsVW5pdCB9IGZyb20gJy4vaS1ibHVlc29mdC1ndGluLWNvbW1lcmNpYWwtdW5pdCc7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIElCbHVlU29mdEd0aW4ge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMilcclxuXHJcbiAgY29tbWVyY2lhbFVuaXQ6IElCbHVlU29mdENvbW1lcmNpYWxVbml0O1xyXG4gIGd0aW46IG51bWJlcjtcclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICgyKVxyXG59XHJcbiJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1ibHVlc29mdC1uY20uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYmx1ZXNvZnQvaW50ZXJmYWNlcy9pLWJsdWVzb2Z0LW5jbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJQmx1ZVNvZnROY20ge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoNClcclxuXHJcbiAgY29kZTogc3RyaW5nO1xyXG4gIGRlc2NyaXB0aW9uOiBzdHJpbmc7XHJcbiAgZXg6IHN0cmluZyB8IG51bGw7XHJcbiAgZnVsbERlc2NyaXB0aW9uOiBzdHJpbmc7XHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoNClcclxufVxyXG4iXX0=
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceM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cclxuICB0aHVtYm5haWw6IHN0cmluZztcclxuICB1cGRhdGVBdDogRGF0ZTtcclxuICB3aWR0aDogbnVtYmVyIHwgbnVsbDtcclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICgxNylcclxufVxyXG4iXX0=
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYmx1ZXNvZnQvaW50ZXJmYWNlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgSUJsdWVTb2Z0IH0gZnJvbSAnLi9pLWJsdWVzb2Z0JztcbiJdfQ==
|
package/dist/esm2022/index.mjs
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
export * from './app';
|
2
2
|
export * from './billing';
|
3
3
|
export * from './billing-order';
|
4
|
+
export * from './bluesoft';
|
4
5
|
export * from './campaign';
|
5
6
|
export * from './clients';
|
6
7
|
export * from './company';
|
@@ -33,4 +34,4 @@ export * from './subscription-customer';
|
|
33
34
|
export * from './token';
|
34
35
|
export * from './viacep';
|
35
36
|
export * from './voucher';
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxPQUFPLENBQUM7QUFDdEIsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLFlBQVksQ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3N1YnNjcmlwdGlvbi1iYXNlJztcbmV4cG9ydCAqIGZyb20gJy4vc3Vic2NyaXB0aW9uLWNvbXBhbnknO1xuZXhwb3J0ICogZnJvbSAnLi9zdWJzY3JpcHRpb24tY3VzdG9tZXInO1xuZXhwb3J0ICogZnJvbSAnLi90b2tlbic7XG5leHBvcnQgKiBmcm9tICcuL3ZpYWNlcCc7XG5leHBvcnQgKiBmcm9tICcuL3ZvdWNoZXInO1xuIl19
|
@@ -3,6 +3,7 @@ export class ProductNcmEntity {
|
|
3
3
|
code = '';
|
4
4
|
description = '';
|
5
5
|
fullDescription = '';
|
6
|
+
ex = null;
|
6
7
|
// #endregion Properties (3)
|
7
8
|
// #region Constructors (1)
|
8
9
|
constructor(data) {
|
@@ -15,4 +16,4 @@ export class ProductNcmEntity {
|
|
15
16
|
}
|
16
17
|
}
|
17
18
|
}
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC1uY20uZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3Byb2R1Y3QtZ2xvYmFsL2VudGl0aWVzL3Byb2R1Y3QtbmNtLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8sZ0JBQWdCO0lBQzNCLHlCQUF5QjtJQUVsQixJQUFJLEdBQVcsRUFBRSxDQUFDO0lBQ2xCLFdBQVcsR0FBVyxFQUFFLENBQUM7SUFDekIsZUFBZSxHQUFXLEVBQUUsQ0FBQztJQUM3QixFQUFFLEdBQWtCLElBQUksQ0FBQztJQUVoQyw0QkFBNEI7SUFFNUIsMkJBQTJCO0lBRTNCLFlBQVksSUFBZ0M7UUFDMUMsSUFBSSxJQUFJLEVBQUU7WUFDUixLQUFLLElBQUksR0FBRyxJQUFJLElBQUksRUFBRTtnQkFD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Q29uc3RydWN0b3JzICgxKVxyXG59XHJcbiJdfQ==
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { GTINTypeEnum } from '../enums';
|
2
|
+
import { EGtintype } from '../enums/gtin-type.enum';
|
2
3
|
import { ProductBrandEntity } from './product-brand.entity';
|
3
4
|
import { ProductNcmEntity } from './product-ncm.entity';
|
4
5
|
export class ProductGlobalEntity {
|
5
|
-
// #region Properties (
|
6
|
+
// #region Properties (26)
|
6
7
|
active = true;
|
7
8
|
avgPrice = 0;
|
8
9
|
barcodeImage = null;
|
@@ -11,7 +12,6 @@ export class ProductGlobalEntity {
|
|
11
12
|
createdAt = new Date();
|
12
13
|
description = '';
|
13
14
|
grossWeight = 0;
|
14
|
-
grossWeightUnit = null;
|
15
15
|
gtin = '';
|
16
16
|
gtinType = GTINTypeEnum.THIRTEEN;
|
17
17
|
height = 0;
|
@@ -24,15 +24,41 @@ export class ProductGlobalEntity {
|
|
24
24
|
name = '';
|
25
25
|
ncm = new ProductNcmEntity();
|
26
26
|
netWeight = 0;
|
27
|
-
netWeightUnit = null;
|
28
27
|
price = 0;
|
29
28
|
tags = [];
|
30
29
|
thumbnail = null;
|
31
30
|
updatedAt = new Date();
|
32
31
|
width = 0;
|
33
|
-
// #endregion Properties (
|
32
|
+
// #endregion Properties (26)
|
34
33
|
// #region Constructors (1)
|
35
|
-
constructor(data) {
|
34
|
+
constructor(data, bluesoft, ref) {
|
35
|
+
if (bluesoft) {
|
36
|
+
this.active = true;
|
37
|
+
this.avgPrice = bluesoft.avgPrice;
|
38
|
+
this.barcodeImage = bluesoft.barcodeImage;
|
39
|
+
this.brand = new ProductBrandEntity(bluesoft.brand);
|
40
|
+
this.cest = '';
|
41
|
+
this.createdAt = new Date();
|
42
|
+
this.description = bluesoft.description;
|
43
|
+
this.grossWeight = bluesoft.grossWeight || 0;
|
44
|
+
this.gtin = bluesoft.gtin.toString();
|
45
|
+
this.gtinType = EGtintype.FOURTEEN;
|
46
|
+
this.height = bluesoft.height || 0;
|
47
|
+
this.id = '';
|
48
|
+
this.length = bluesoft.length || 0;
|
49
|
+
this.maxPrice = bluesoft.maxPrice || 0;
|
50
|
+
this.measureQuantity = this.getGtinFromGtins(ref || 0, bluesoft.gtins)?.commercialUnit?.quantityPackaging || 1;
|
51
|
+
this.measureUnit = this.getGtinFromGtins(ref || 0, bluesoft.gtins)?.commercialUnit?.typePackaging || 'Unidade';
|
52
|
+
this.minPrice = bluesoft.minPrice || 0;
|
53
|
+
this.name = bluesoft.description || '';
|
54
|
+
this.ncm = new ProductNcmEntity(bluesoft.ncm);
|
55
|
+
this.netWeight = bluesoft.netWeight || 0;
|
56
|
+
this.price = this.currencyStringToNumber(bluesoft.price);
|
57
|
+
this.tags = [];
|
58
|
+
this.thumbnail = bluesoft.thumbnail || '';
|
59
|
+
this.updatedAt = new Date();
|
60
|
+
this.width = bluesoft.width || 0;
|
61
|
+
}
|
36
62
|
if (data) {
|
37
63
|
for (let key in data) {
|
38
64
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -41,5 +67,18 @@ export class ProductGlobalEntity {
|
|
41
67
|
}
|
42
68
|
}
|
43
69
|
}
|
70
|
+
// #endregion Constructors (1)
|
71
|
+
// #region Private Methods (1)
|
72
|
+
getGtinFromGtins(ref, gtins) {
|
73
|
+
for (let i = 0; i < gtins.length; i++) {
|
74
|
+
if (gtins[i].gtin === ref) {
|
75
|
+
return gtins[i];
|
76
|
+
}
|
77
|
+
}
|
78
|
+
return null;
|
79
|
+
}
|
80
|
+
currencyStringToNumber(value) {
|
81
|
+
return Number(value.replace(/[^0-9.-]+/g, ''));
|
82
|
+
}
|
44
83
|
}
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
84
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcHJvZHVjdC1nbG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6IElCbHVlU29mdEd0aW5bXSk6IElCbHVlU29mdEd0aW4gfCBudWxsIHtcclxuICAgIGZvciAobGV0IGkgPSAwOyBpIDwgZ3RpbnMubGVuZ3RoOyBpKyspIHtcclxuICAgICAgaWYgKGd0aW5zW2ldLmd0aW4gPT09IHJlZikge1xyXG4gICAgICAgIHJldHVybiBndGluc1tpXTtcclxuICAgICAgfVxyXG4gICAgfVxyXG4gICAgcmV0dXJuIG51bGw7XHJcbiAgfVxyXG4gIHByaXZhdGUgY3VycmVuY3lTdHJpbmdUb051bWJlcih2YWx1ZTogc3RyaW5nKTogbnVtYmVyIHtcclxuICAgIHJldHVybiBOdW1iZXIodmFsdWUucmVwbGFjZSgvW14wLTkuLV0rL2csICcnKSk7XHJcbiAgfVxyXG5cclxuICAvLyAjZW5kcmVnaW9uIFByaXZhdGUgTWV0aG9kcyAoMSlcclxufVxyXG4iXX0=
|
@@ -1,9 +1,9 @@
|
|
1
|
-
export var
|
2
|
-
(function (
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
})(
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
export var EGtintype;
|
2
|
+
(function (EGtintype) {
|
3
|
+
EGtintype["ZERO"] = "SEM GTIN";
|
4
|
+
EGtintype["EIGHT"] = "8";
|
5
|
+
EGtintype["TWELVE"] = "12";
|
6
|
+
EGtintype["THIRTEEN"] = "13";
|
7
|
+
EGtintype["FOURTEEN"] = "14";
|
8
|
+
})(EGtintype || (EGtintype = {}));
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3Rpbi10eXBlLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcHJvZHVjdC1nbG9iYWwvZW51bXMvZ3Rpbi10eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksU0FNWDtBQU5ELFdBQVksU0FBUztJQUNuQiw4QkFBaUIsQ0FBQTtJQUNqQix3QkFBVyxDQUFBO0lBQ1gsMEJBQWEsQ0FBQTtJQUNiLDRCQUFlLENBQUE7SUFDZiw0QkFBZSxDQUFBO0FBQ2pCLENBQUMsRUFOVyxTQUFTLEtBQVQsU0FBUyxRQU1wQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEVHdGludHlwZSB7XHJcbiAgWkVSTyA9ICdTRU0gR1RJTicsXHJcbiAgRUlHSFQgPSAnOCcsXHJcbiAgVFdFTFZFID0gJzEyJyxcclxuICBUSElSVEVFTiA9ICcxMycsXHJcbiAgRk9VUlRFRU4gPSAnMTQnLFxyXG59XHJcbiJdfQ==
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { GTINTypeEnum } from
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
export { EGtintype as GTINTypeEnum } from './gtin-type.enum';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcHJvZHVjdC1nbG9iYWwvZW51bXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsSUFBSSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEVHdGludHlwZSBhcyBHVElOVHlwZUVudW0gfSBmcm9tICcuL2d0aW4tdHlwZS5lbnVtJztcclxuIl19
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1uY20uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcHJvZHVjdC1nbG9iYWwvaW50ZXJmYWNlcy9pLW5jbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJUHJvZHVjdE5jbSB7XG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMylcblxuICBjb2RlOiBzdHJpbmc7XG4gIGRlc2NyaXB0aW9uOiBzdHJpbmc7XG4gIGZ1bGxEZXNjcmlwdGlvbjogc3RyaW5nO1xuICBleDogc3RyaW5nIHwgbnVsbDtcblxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDMpXG59XG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1wcm9kdWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3Byb2R1Y3QtZ2xvYmFsL2ludGVyZmFjZXMvaS1wcm9kdWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBHVElOVHlwZUVudW0gfSBmcm9tICcuLi9lbnVtcyc7XG5pbXBvcnQgeyBJUHJvZHVjdEJyYW5kIH0gZnJvbSAnLi9pLWJyYW5kJztcbmltcG9ydCB7IElQcm9kdWN0TmNtIH0gZnJvbSAnLi9pLW5jbSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgSVByb2R1Y3RHbG9iYWwge1xuICAvLyAjcmVnaW9uIFByb3BlcnRpZXMgKDI5KVxuXG4gIC8qKlxuICAgKiBJbmRpY2F0ZXMgd2hldGhlciB0aGUgcHJvZHVjdCBpcyBhY3RpdmUuXG4gICAqIEBkZWZhdWx0IHRyd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ICAgKiBAZGVmYXVsdCBbXVxuICAgKiBAdW5pcXVlSXRlbXMgdHJ1ZVxuICAgKiBAbWluSXRlbXMgMFxuICAgKiBAbWF4SXRlbXMgNTBcbiAgICogQGl0ZW1zXG4gICAqIEBtaW5sZW5ndGggMVxuICAgKiBAbWF4bGVuZ3RoIDYwXG4gICAqL1xuICB0YWdzOiBzdHJpbmdbXTtcbiAgLyoqXG4gICAqIFVSTCBvZiB0aGUgcHJvZHVjdCBpbWFnZS5cbiAgICogQG1pbmxlbmd0aCAxXG4gICAqIEBtYXhsZW5ndGggMTIwXG4gICAqIEBleGFtcGxlIFwiaHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vaW1hZ2UuanBnXCJcbiAgICogQGRlZmF1bHQgXCJcIlxuICAgKi9cbiAgdGh1bWJuYWlsOiBzdHJpbmcgfCBudWxsO1xuICAvKipcbiAgICogRGF0ZSB3aGVuIHRoZSBwcm9kdWN0IHdhcyBsYXN0IHVwZGF0ZWQuXG4gICAqIEBmb3JtYXQgZGF0ZS10aW1lXG4gICAqIEBleGFtcGxlIFwiMjAxOS0wMS0wMVQwMDowMDowMC4wMDBaXCJcbiAgICogQGRlZmF1bHQgRGF0ZS5ub3coKVxuICAgKi9cbiAgdXBkYXRlZEF0OiBEYXRlO1xuICAvKipcbiAgICogV2lkdGggb2YgdGhlIHByb2R1Y3QuXG4gICAqIEBleGFtcGxlIDE1XG4gICAqIEBkZWZhdWx0IDBcbiAgICpcbiAgICovXG4gIHdpZHRoOiBudW1iZXIgfCBudWxsO1xuXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMjkpXG59XG4iXX0=
|
@@ -3063,14 +3063,14 @@ class PlanEntity {
|
|
3063
3063
|
}
|
3064
3064
|
}
|
3065
3065
|
|
3066
|
-
var
|
3067
|
-
(function (
|
3068
|
-
|
3069
|
-
|
3070
|
-
|
3071
|
-
|
3072
|
-
|
3073
|
-
})(
|
3066
|
+
var EGtintype;
|
3067
|
+
(function (EGtintype) {
|
3068
|
+
EGtintype["ZERO"] = "SEM GTIN";
|
3069
|
+
EGtintype["EIGHT"] = "8";
|
3070
|
+
EGtintype["TWELVE"] = "12";
|
3071
|
+
EGtintype["THIRTEEN"] = "13";
|
3072
|
+
EGtintype["FOURTEEN"] = "14";
|
3073
|
+
})(EGtintype || (EGtintype = {}));
|
3074
3074
|
|
3075
3075
|
class ProductBrandEntity {
|
3076
3076
|
// #region Properties (2)
|
@@ -3094,6 +3094,7 @@ class ProductNcmEntity {
|
|
3094
3094
|
code = '';
|
3095
3095
|
description = '';
|
3096
3096
|
fullDescription = '';
|
3097
|
+
ex = null;
|
3097
3098
|
// #endregion Properties (3)
|
3098
3099
|
// #region Constructors (1)
|
3099
3100
|
constructor(data) {
|
@@ -3108,7 +3109,7 @@ class ProductNcmEntity {
|
|
3108
3109
|
}
|
3109
3110
|
|
3110
3111
|
class ProductGlobalEntity {
|
3111
|
-
// #region Properties (
|
3112
|
+
// #region Properties (26)
|
3112
3113
|
active = true;
|
3113
3114
|
avgPrice = 0;
|
3114
3115
|
barcodeImage = null;
|
@@ -3117,9 +3118,8 @@ class ProductGlobalEntity {
|
|
3117
3118
|
createdAt = new Date();
|
3118
3119
|
description = '';
|
3119
3120
|
grossWeight = 0;
|
3120
|
-
grossWeightUnit = null;
|
3121
3121
|
gtin = '';
|
3122
|
-
gtinType =
|
3122
|
+
gtinType = EGtintype.THIRTEEN;
|
3123
3123
|
height = 0;
|
3124
3124
|
id = '';
|
3125
3125
|
length = 0;
|
@@ -3130,15 +3130,41 @@ class ProductGlobalEntity {
|
|
3130
3130
|
name = '';
|
3131
3131
|
ncm = new ProductNcmEntity();
|
3132
3132
|
netWeight = 0;
|
3133
|
-
netWeightUnit = null;
|
3134
3133
|
price = 0;
|
3135
3134
|
tags = [];
|
3136
3135
|
thumbnail = null;
|
3137
3136
|
updatedAt = new Date();
|
3138
3137
|
width = 0;
|
3139
|
-
// #endregion Properties (
|
3138
|
+
// #endregion Properties (26)
|
3140
3139
|
// #region Constructors (1)
|
3141
|
-
constructor(data) {
|
3140
|
+
constructor(data, bluesoft, ref) {
|
3141
|
+
if (bluesoft) {
|
3142
|
+
this.active = true;
|
3143
|
+
this.avgPrice = bluesoft.avgPrice;
|
3144
|
+
this.barcodeImage = bluesoft.barcodeImage;
|
3145
|
+
this.brand = new ProductBrandEntity(bluesoft.brand);
|
3146
|
+
this.cest = '';
|
3147
|
+
this.createdAt = new Date();
|
3148
|
+
this.description = bluesoft.description;
|
3149
|
+
this.grossWeight = bluesoft.grossWeight || 0;
|
3150
|
+
this.gtin = bluesoft.gtin.toString();
|
3151
|
+
this.gtinType = EGtintype.FOURTEEN;
|
3152
|
+
this.height = bluesoft.height || 0;
|
3153
|
+
this.id = '';
|
3154
|
+
this.length = bluesoft.length || 0;
|
3155
|
+
this.maxPrice = bluesoft.maxPrice || 0;
|
3156
|
+
this.measureQuantity = this.getGtinFromGtins(ref || 0, bluesoft.gtins)?.commercialUnit?.quantityPackaging || 1;
|
3157
|
+
this.measureUnit = this.getGtinFromGtins(ref || 0, bluesoft.gtins)?.commercialUnit?.typePackaging || 'Unidade';
|
3158
|
+
this.minPrice = bluesoft.minPrice || 0;
|
3159
|
+
this.name = bluesoft.description || '';
|
3160
|
+
this.ncm = new ProductNcmEntity(bluesoft.ncm);
|
3161
|
+
this.netWeight = bluesoft.netWeight || 0;
|
3162
|
+
this.price = this.currencyStringToNumber(bluesoft.price);
|
3163
|
+
this.tags = [];
|
3164
|
+
this.thumbnail = bluesoft.thumbnail || '';
|
3165
|
+
this.updatedAt = new Date();
|
3166
|
+
this.width = bluesoft.width || 0;
|
3167
|
+
}
|
3142
3168
|
if (data) {
|
3143
3169
|
for (let key in data) {
|
3144
3170
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -3147,6 +3173,19 @@ class ProductGlobalEntity {
|
|
3147
3173
|
}
|
3148
3174
|
}
|
3149
3175
|
}
|
3176
|
+
// #endregion Constructors (1)
|
3177
|
+
// #region Private Methods (1)
|
3178
|
+
getGtinFromGtins(ref, gtins) {
|
3179
|
+
for (let i = 0; i < gtins.length; i++) {
|
3180
|
+
if (gtins[i].gtin === ref) {
|
3181
|
+
return gtins[i];
|
3182
|
+
}
|
3183
|
+
}
|
3184
|
+
return null;
|
3185
|
+
}
|
3186
|
+
currencyStringToNumber(value) {
|
3187
|
+
return Number(value.replace(/[^0-9.-]+/g, ''));
|
3188
|
+
}
|
3150
3189
|
}
|
3151
3190
|
|
3152
3191
|
class ProductContainerEntity extends ProductGlobalEntity {
|
@@ -3563,5 +3602,5 @@ class VoucherEntity {
|
|
3563
3602
|
* Generated bundle index. Do not edit.
|
3564
3603
|
*/
|
3565
3604
|
|
3566
|
-
export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BillingEntity, BillingOrderEntity, BillingPaymentEntity, BillingTotalEntity, CampaignEntity, CarouselImageEntity, ClientAplicationCredentialEntity, ClientAplicationEntity, ClientEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, CustomerEntity, CustomerMemberEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, EAppCategory, EAppHeaderType, EAppMode, EAppType, EBankSlipStatus, EBillingStatus, EBooleanString, ECampaignStatus, ECompanyKeys, ECompanyMessageType, ECustomerInterval, ECustomerStatus, ECustomerType, EDiscountType, EDocType, EFiscalDocModelCode, EInstallationStatus, EIntervalType, EInvoiceStatus, ELeadOrigin, ELegalEntiy, EOs, EPaymentChannel, EPaymentMode, EPaymentProvider, EPaymentStatus, EPaymentType, EPlanFeatureType, EPlanIdentifier, EPlatform, EPubSub, EPubSubTopicType, ESponsorshipValues, ESubscriptionStatus, EVoucherStatus, FeatureEntity, GTINTypeEnum, GlobalSettingEntity, GlobalSettingIuguEntity, GlobalSettingMasterEntity, InstallationEntity, InviteEntity, InviteStatusEnum, InvoiceBankSlipEntity, InvoiceCreditCardEntity, InvoiceEntity, InvoiceItemEntity, InvoiceLogEntity, InvoicePayerEntity, InvoicePixEntity, IuguAccountEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguChargeCreditCardEntity, IuguCustomerEntity, IuguInvoiceBankSlipEntity, IuguInvoiceEntity, IuguInvoiceStatusEnum, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LastVerificationRequestDataEntity, LeadEntity, LeadStatusEnum, MemberEntity, MemberRulesEnum, MemberTypeEnum, MessagerChannelEntity, MetadataEntity, MobyoApiConfigEntity, NatiGoEntity, NotificationActionEntity, NotificationActionTypeEnum, NotificationCategoryEnum, NotificationEntity, NotificationPriorityEnum, NotificationStatusEnum, OrderAdditionalFeeEntity, OrderBenefitsEntity, OrderCancellationEntity, OrderCustomerEntity, OrderEntity, OrderItemCompositionEntity, OrderItemEntity, OrderItemOptionEntity, OrderPaymentCardEntity, OrderPaymentCashEntity, OrderPaymentEntity, OrderPaymentMethodEntity, OrderPaymentPixEntity, OrderPaymentWalletEntity, OrderScaleEntity, OrderScaleItemEntity, OrderStatusEnum, OrderTotalEntity, OrdersCustomerPhoneEntity, OriginEntity, PartnerEntity, PaymentCardEntity, PaymentCashEntity, PaymentEntity, PaymentMethodEntity, PaymentMethodOptionEntity, PaymentPixEntity, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentTokenDataEntity, PaymentTokenEntity, PaymentWalletEntity, PlanEntity, PlanFeatureEntity, ProductBrandEntity, ProductCompanyEntity, ProductContainerEntity, ProductNcmEntity, ProductGlobalEntity as ProductglobalEntity, PubsubSubscriptionChangeStatusEntity, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionBaseEntity, SubscriptionBaseItemEntity, SubscriptionBaseLogEntity, SubscriptionCompanyEntity, SubscriptionCompanyProfileEntity, SubscriptionCustomerEntity, SubscriptionCustomerProfileEntity, TokenEntity, VoucherEntity };
|
3605
|
+
export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BillingEntity, BillingOrderEntity, BillingPaymentEntity, BillingTotalEntity, CampaignEntity, CarouselImageEntity, ClientAplicationCredentialEntity, ClientAplicationEntity, ClientEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, CustomerEntity, CustomerMemberEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, EAppCategory, EAppHeaderType, EAppMode, EAppType, EBankSlipStatus, EBillingStatus, EBooleanString, ECampaignStatus, ECompanyKeys, ECompanyMessageType, ECustomerInterval, ECustomerStatus, ECustomerType, EDiscountType, EDocType, EFiscalDocModelCode, EInstallationStatus, EIntervalType, EInvoiceStatus, ELeadOrigin, ELegalEntiy, EOs, EPaymentChannel, EPaymentMode, EPaymentProvider, EPaymentStatus, EPaymentType, EPlanFeatureType, EPlanIdentifier, EPlatform, EPubSub, EPubSubTopicType, ESponsorshipValues, ESubscriptionStatus, EVoucherStatus, FeatureEntity, EGtintype as GTINTypeEnum, GlobalSettingEntity, GlobalSettingIuguEntity, GlobalSettingMasterEntity, InstallationEntity, InviteEntity, InviteStatusEnum, InvoiceBankSlipEntity, InvoiceCreditCardEntity, InvoiceEntity, InvoiceItemEntity, InvoiceLogEntity, InvoicePayerEntity, InvoicePixEntity, IuguAccountEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguChargeCreditCardEntity, IuguCustomerEntity, IuguInvoiceBankSlipEntity, IuguInvoiceEntity, IuguInvoiceStatusEnum, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LastVerificationRequestDataEntity, LeadEntity, LeadStatusEnum, MemberEntity, MemberRulesEnum, MemberTypeEnum, MessagerChannelEntity, MetadataEntity, MobyoApiConfigEntity, NatiGoEntity, NotificationActionEntity, NotificationActionTypeEnum, NotificationCategoryEnum, NotificationEntity, NotificationPriorityEnum, NotificationStatusEnum, OrderAdditionalFeeEntity, OrderBenefitsEntity, OrderCancellationEntity, OrderCustomerEntity, OrderEntity, OrderItemCompositionEntity, OrderItemEntity, OrderItemOptionEntity, OrderPaymentCardEntity, OrderPaymentCashEntity, OrderPaymentEntity, OrderPaymentMethodEntity, OrderPaymentPixEntity, OrderPaymentWalletEntity, OrderScaleEntity, OrderScaleItemEntity, OrderStatusEnum, OrderTotalEntity, OrdersCustomerPhoneEntity, OriginEntity, PartnerEntity, PaymentCardEntity, PaymentCashEntity, PaymentEntity, PaymentMethodEntity, PaymentMethodOptionEntity, PaymentPixEntity, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentTokenDataEntity, PaymentTokenEntity, PaymentWalletEntity, PlanEntity, PlanFeatureEntity, ProductBrandEntity, ProductCompanyEntity, ProductContainerEntity, ProductNcmEntity, ProductGlobalEntity as ProductglobalEntity, PubsubSubscriptionChangeStatusEntity, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionBaseEntity, SubscriptionBaseItemEntity, SubscriptionBaseLogEntity, SubscriptionCompanyEntity, SubscriptionCompanyProfileEntity, SubscriptionCustomerEntity, SubscriptionCustomerProfileEntity, TokenEntity, VoucherEntity };
|
3567
3606
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|