cecon-interfaces 1.1.81 → 1.1.83

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/dist/bluesoft/index.d.ts +1 -0
  2. package/dist/bluesoft/index.js +17 -0
  3. package/dist/bluesoft/interfaces/i-bluesoft-brand.d.ts +4 -0
  4. package/dist/bluesoft/interfaces/i-bluesoft-brand.js +2 -0
  5. package/dist/bluesoft/interfaces/i-bluesoft-gtin-commercial-unit.d.ts +6 -0
  6. package/dist/bluesoft/interfaces/i-bluesoft-gtin-commercial-unit.js +2 -0
  7. package/dist/bluesoft/interfaces/i-bluesoft-gtin.d.ts +5 -0
  8. package/dist/bluesoft/interfaces/i-bluesoft-gtin.js +2 -0
  9. package/dist/bluesoft/interfaces/i-bluesoft-ncm.d.ts +6 -0
  10. package/dist/bluesoft/interfaces/i-bluesoft-ncm.js +2 -0
  11. package/dist/bluesoft/interfaces/i-bluesoft.d.ts +24 -0
  12. package/dist/bluesoft/interfaces/i-bluesoft.js +2 -0
  13. package/dist/bluesoft/interfaces/index.d.ts +1 -0
  14. package/dist/bluesoft/interfaces/index.js +2 -0
  15. package/dist/esm2022/bluesoft/index.mjs +2 -0
  16. package/dist/esm2022/bluesoft/interfaces/i-bluesoft-brand.mjs +2 -0
  17. package/dist/esm2022/bluesoft/interfaces/i-bluesoft-gtin-commercial-unit.mjs +2 -0
  18. package/dist/esm2022/bluesoft/interfaces/i-bluesoft-gtin.mjs +2 -0
  19. package/dist/esm2022/bluesoft/interfaces/i-bluesoft-ncm.mjs +2 -0
  20. package/dist/esm2022/bluesoft/interfaces/i-bluesoft.mjs +2 -0
  21. package/dist/esm2022/bluesoft/interfaces/index.mjs +2 -0
  22. package/dist/esm2022/index.mjs +2 -1
  23. package/dist/esm2022/product-global/entities/product-ncm.entity.mjs +2 -1
  24. package/dist/esm2022/product-global/entities/product.entity.mjs +45 -6
  25. package/dist/esm2022/product-global/enums/gtin-type.enum.mjs +9 -9
  26. package/dist/esm2022/product-global/enums/index.mjs +2 -2
  27. package/dist/esm2022/product-global/interfaces/i-ncm.mjs +1 -1
  28. package/dist/esm2022/product-global/interfaces/i-product.mjs +1 -1
  29. package/dist/fesm2022/cecon-interfaces.mjs +54 -15
  30. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.js +1 -0
  33. package/dist/package.json +1 -1
  34. package/dist/product-global/entities/product-ncm.entity.d.ts +1 -0
  35. package/dist/product-global/entities/product-ncm.entity.js +1 -0
  36. package/dist/product-global/entities/product.entity.d.ts +4 -3
  37. package/dist/product-global/entities/product.entity.js +45 -5
  38. package/dist/product-global/enums/gtin-type.enum.d.ts +1 -1
  39. package/dist/product-global/enums/gtin-type.enum.js +9 -9
  40. package/dist/product-global/enums/index.d.ts +1 -1
  41. package/dist/product-global/enums/index.js +1 -1
  42. package/dist/product-global/interfaces/i-ncm.d.ts +1 -0
  43. package/dist/product-global/interfaces/i-product.d.ts +0 -15
  44. 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,4 @@
1
+ export interface IBlueSoftBrand {
2
+ name: string;
3
+ picture: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface IBlueSoftCommercialUnit {
2
+ typePackaging: string;
3
+ quantityPackaging: number;
4
+ ballast: string | null;
5
+ layer: string | null;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { IBlueSoftCommercialUnit } from './i-bluesoft-gtin-commercial-unit';
2
+ export interface IBlueSoftGtin {
3
+ commercialUnit: IBlueSoftCommercialUnit;
4
+ gtin: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface IBlueSoftNcm {
2
+ code: string;
3
+ description: string;
4
+ ex: string | null;
5
+ fullDescription: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { IBlueSoft } from './i-bluesoft';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1ibHVlc29mdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9ibHVlc29mdC9pbnRlcmZhY2VzL2ktYmx1ZXNvZnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IElCbHVlU29mdEJyYW5kIH0gZnJvbSAnLi9pLWJsdWVzb2Z0LWJyYW5kJztcclxuaW1wb3J0IHsgSUJsdWVTb2Z0R3RpbiB9IGZyb20gJy4vaS1ibHVlc29mdC1ndGluJztcclxuaW1wb3J0IHsgSUJsdWVTb2Z0TmNtIH0gZnJvbSAnLi9pLWJsdWVzb2Z0LW5jbSc7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIElCbHVlU29mdCB7XHJcbiAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICgxNylcclxuXHJcbiAgYXZnUHJpY2U6IG51bWJlcjtcclxuICBiYXJjb2RlSW1hZ2U6IHN0cmluZztcclxuICBkZXNjcmlwdGlvbjogc3RyaW5nO1xyXG4gIGdyb3NzV2VpZ2h0OiBudW1iZXIgfCBudWxsO1xyXG4gIGd0aW46IG51bWJlcjtcclxuICBicmFuZDogSUJsdWVTb2Z0QnJhbmQ7XHJcbiAgZ3RpbnM6IElCbHVlU29mdEd0aW5bXTtcclxuICBoZWlnaHQ6IG51bWJlciB8IG51bGw7XHJcbiAgbGVuZ3RoOiBudW1iZXIgfCBudWxsO1xyXG4gIG1heFByaWNlOiBudW1iZXI7XHJcbiAgbWluUHJpY2U6IG51bWJlcjtcclxuICBuZXRXZWlnaHQ6IG51bWJlciB8IG51bGw7XHJcbiAgb3JpZ2luOiBzdHJpbmc7XHJcbiAgbmNtOiBJQmx1ZVNvZnROY207XHJcbiAgcHJpY2U6IHN0cmluZztcclxuICByZWxlYXNlRGF0ZTogbnVsbDtcclxuICB0aHVtYm5haWw6IHN0cmluZztcclxuICB1cGRhdGVBdDogRGF0ZTtcclxuICB3aWR0aDogbnVtYmVyIHwgbnVsbDtcclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICgxNylcclxufVxyXG4iXX0=
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYmx1ZXNvZnQvaW50ZXJmYWNlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgSUJsdWVTb2Z0IH0gZnJvbSAnLi9pLWJsdWVzb2Z0JztcbiJdfQ==
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxPQUFPLENBQUM7QUFDdEIsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsV0FBVyxDQUFDO0FBQzFCLGNBQWMsV0FBVyxDQUFDO0FBQzFCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsU0FBUyxDQUFDO0FBQ3hCLGNBQWMsV0FBVyxDQUFDO0FBQzFCLGNBQWMsUUFBUSxDQUFDO0FBQ3ZCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLGtCQUFrQixDQUFDO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ICogZnJvbSAnLi90b2tlbic7XG5leHBvcnQgKiBmcm9tICcuL3ZpYWNlcCc7XG5leHBvcnQgKiBmcm9tICcuL3ZvdWNoZXInO1xuIl19
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC1uY20uZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3Byb2R1Y3QtZ2xvYmFsL2VudGl0aWVzL3Byb2R1Y3QtbmNtLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8sZ0JBQWdCO0lBQzNCLHlCQUF5QjtJQUVsQixJQUFJLEdBQVcsRUFBRSxDQUFDO0lBQ2xCLFdBQVcsR0FBVyxFQUFFLENBQUM7SUFDekIsZUFBZSxHQUFXLEVBQUUsQ0FBQztJQUVwQyw0QkFBNEI7SUFFNUIsMkJBQTJCO0lBRTNCLFlBQVksSUFBZ0M7UUFDMUMsSUFBSSxJQUFJLEVBQUU7WUFDUixLQUFLLElBQUksR0FBRyxJQUFJLElBQUksRUFBRTtnQkFDcEIsSUFBSSxJQUFJLENBQUMsY0FBYyxDQUFDLEdBQUcsQ0FBQyxJQUFJLEdBQUcsSUFBSSxJQUFJLEVBQUU7b0JBQzFDLElBQVksQ0FBQyxHQUFHLENBQUMsR0FBSSxJQUFZLENBQUMsR0FBRyxDQUFDLENBQUM7aUJBQ3pDO2FBQ0Y7U0FDRjtJQUNILENBQUM7Q0FHRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IElQcm9kdWN0TmNt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R1Y3ROY21FbnRpdHk+KSB7XHJcbiAgICBpZiAoZGF0YSkge1xyXG4gICAgICBmb3IgKGxldCBrZXkgaW4gZGF0YSkge1xyXG4gICAgICAgIGlmIChkYXRhLmhhc093blByb3BlcnR5KGtleSkgJiYga2V5IGluIHRoaXMpIHtcclxuICAgICAgICAgICh0aGlzIGFzIGFueSlba2V5XSA9IChkYXRhIGFzIGFueSlba2V5XTtcclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgIH1cclxuICB9XHJcblxyXG4gIC8vICNlbmRyZWdpb24gQ29uc3RydWN0b3JzICgxKVxyXG59XHJcbiJdfQ==
@@ -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 (29)
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 (29)
32
+ // #endregion Properties (26)
34
33
  // #region Constructors (1)
35
- constructor(data) {
34
+ constructor(data, bluesoft) {
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(bluesoft.gtin || 0, bluesoft.gtins)?.commercialUnit?.quantityPackaging || 1;
51
+ this.measureUnit = this.getGtinFromGtins(bluesoft.gtin || 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcHJvZHVjdC1nbG9iYWwvZW50aXRpZXMvcHJvZHVjdC5lbnRpdH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9IDA7XHJcbiAgcHVibGljIG5ldFdlaWdodFVuaXQ6IHN0cmluZyB8IG51bGwgPSBudWxsO1xyXG4gIHB1YmxpYyBwcmljZTogbnVtYmVyID0gMDtcclxuICBwdWJsaWMgdGFnczogc3RyaW5nW10gPSBbXTtcclxuICBwdWJsaWMgdGh1bWJuYWlsOiBzdHJpbmcgfCBudWxsID0gbnVsbDtcclxuICBwdWJsaWMgdXBkYXRlZEF0OiBEYXRlID0gbmV3IERhdGUoKTtcclxuICBwdWJsaWMgd2lkdGg6IG51bWJlciA9IDA7XHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMjkpXHJcblxyXG4gIC8vICNyZWdpb24gQ29uc3RydWN0b3JzICgxKVxyXG5cclxuICBjb25zdHJ1Y3RvcihkYXRhPzogUGFydGlhbDxQcm9kdWN0R2xvYmFsRW50aXR5Pikge1xyXG4gICAgaWYgKGRhdGEpIHtcclxuICAgICAgZm9yIChsZXQga2V5IGluIGRhdGEpIHtcclxuICAgICAgICBpZiAoZGF0YS5oYXNPd25Qcm9wZXJ0eShrZXkpICYmIGtleSBpbiB0aGlzKSB7XHJcbiAgICAgICAgICAodGhpcyBhcyBhbnkpW2tleV0gPSAoZGF0YSBhcyBhbnkpW2tleV07XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICAvLyAjZW5kcmVnaW9uIENvbnN0cnVjdG9ycyAoMSlcclxufVxyXG4iXX0=
84
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcHJvZHVjdC1nbG9iYWwvZW50aXRpZXMvcHJvZHVjdC5lbnRpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLFVB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biAgICBmb3IgKGxldCBpID0gMDsgaSA8IGd0aW5zLmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgIGlmIChndGluc1tpXS5ndGluID09PSByZWYpIHtcclxuICAgICAgICByZXR1cm4gZ3RpbnNbaV07XHJcbiAgICAgIH1cclxuICAgIH1cclxuICAgIHJldHVybiBudWxsO1xyXG4gIH1cclxuICBwcml2YXRlIGN1cnJlbmN5U3RyaW5nVG9OdW1iZXIodmFsdWU6IHN0cmluZyk6IG51bWJlciB7XHJcbiAgICByZXR1cm4gTnVtYmVyKHZhbHVlLnJlcGxhY2UoL1teMC05Li1dKy9nLCAnJykpO1xyXG4gIH1cclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBQcml2YXRlIE1ldGhvZHMgKDEpXHJcbn1cclxuIl19
@@ -1,9 +1,9 @@
1
- export var GTINTypeEnum;
2
- (function (GTINTypeEnum) {
3
- GTINTypeEnum["ZERO"] = "SEM GTIN";
4
- GTINTypeEnum["EIGHT"] = "8";
5
- GTINTypeEnum["TWELVE"] = "12";
6
- GTINTypeEnum["THIRTEEN"] = "13";
7
- GTINTypeEnum["FOURTEEN"] = "14";
8
- })(GTINTypeEnum || (GTINTypeEnum = {}));
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3Rpbi10eXBlLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcHJvZHVjdC1nbG9iYWwvZW51bXMvZ3Rpbi10eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksWUFNWDtBQU5ELFdBQVksWUFBWTtJQUN0QixpQ0FBaUIsQ0FBQTtJQUNqQiwyQkFBVyxDQUFBO0lBQ1gsNkJBQWEsQ0FBQTtJQUNiLCtCQUFlLENBQUE7SUFDZiwrQkFBZSxDQUFBO0FBQ2pCLENBQUMsRUFOVyxZQUFZLEtBQVosWUFBWSxRQU12QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEdUSU5UeXBlRW51bSB7XHJcbiAgWkVSTyA9IFwiU0VNIEdUSU5cIixcclxuICBFSUdIVCA9IFwiOFwiLFxyXG4gIFRXRUxWRSA9IFwiMTJcIixcclxuICBUSElSVEVFTiA9IFwiMTNcIixcclxuICBGT1VSVEVFTiA9IFwiMTRcIixcclxufVxyXG4iXX0=
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 "./gtin-type.enum";
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcHJvZHVjdC1nbG9iYWwvZW51bXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgR1RJTlR5cGVFbnVtIH0gZnJvbSBcIi4vZ3Rpbi10eXBlLmVudW1cIjtcclxuXHJcbiJdfQ==
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1uY20uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcHJvZHVjdC1nbG9iYWwvaW50ZXJmYWNlcy9pLW5jbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJUHJvZHVjdE5jbSB7XG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMylcblxuICBjb2RlOiBzdHJpbmc7XG4gIGRlc2NyaXB0aW9uOiBzdHJpbmc7XG4gIGZ1bGxEZXNjcmlwdGlvbjogc3RyaW5nO1xuXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMylcbn1cbiJdfQ==
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1uY20uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcHJvZHVjdC1nbG9iYWwvaW50ZXJmYWNlcy9pLW5jbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJUHJvZHVjdE5jbSB7XG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMylcblxuICBjb2RlOiBzdHJpbmc7XG4gIGRlc2NyaXB0aW9uOiBzdHJpbmc7XG4gIGZ1bGxEZXNjcmlwdGlvbjogc3RyaW5nO1xuICBleDogc3RyaW5nIHwgbnVsbDtcblxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDMpXG59XG4iXX0=
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1wcm9kdWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3Byb2R1Y3QtZ2xvYmFsL2ludGVyZmFjZXMvaS1wcm9kdWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBHVElOVHlwZUVudW0gfSBmcm9tICcuLi9lbnVtcyc7XG5p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B3aXRoIHRoZSBwcm9kdWN0LlxuICAgKiBAZXhhbXBsZSBbXCJ0YWcxXCIsIFwidGFnMlwiXVxuICAgKiBAZGVmYXVsdCBbXVxuICAgKiBAdW5pcXVlSXRlbXMgdHJ1ZVxuICAgKiBAbWluSXRlbXMgMFxuICAgKiBAbWF4SXRlbXMgNTBcbiAgICogQGl0ZW1zXG4gICAqIEBtaW5sZW5ndGggMVxuICAgKiBAbWF4bGVuZ3RoIDYwXG4gICAqL1xuICB0YWdzOiBzdHJpbmdbXTtcbiAgLyoqXG4gICAqIFVSTCBvZiB0aGUgcHJvZHVjdCBpbWFnZS5cbiAgICogQG1pbmxlbmd0aCAxXG4gICAqIEBtYXhsZW5ndGggMTIwXG4gICAqIEBleGFtcGxlIFwiaHR0cHM6Ly93d3cuZXhhbXBsZS5jb20vaW1hZ2UuanBnXCJcbiAgICogQGRlZmF1bHQgXCJcIlxuICAgKi9cbiAgdGh1bWJuYWlsOiBzdHJpbmcgfCBudWxsO1xuICAvKipcbiAgICogRGF0ZSB3aGVuIHRoZSBwcm9kdWN0IHdhcyBsYXN0IHVwZGF0ZWQuXG4gICAqIEBmb3JtYXQgZGF0ZS10aW1lXG4gICAqIEBleGFtcGxlIFwiMjAxOS0wMS0wMVQwMDowMDowMC4wMDBaXCJcbiAgICogQGRlZmF1bHQgRGF0ZS5ub3coKVxuICAgKi9cbiAgdXBkYXRlZEF0OiBEYXRlO1xuICAvKipcbiAgICogV2lkdGggb2YgdGhlIHByb2R1Y3QuXG4gICAqIEBleGFtcGxlIDE1XG4gICAqIEBkZWZhdWx0IDBcbiAgICpcbiAgICovXG4gIHdpZHRoOiBudW1iZXIgfCBudWxsO1xuXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMjkpXG59XG4iXX0=
@@ -3063,14 +3063,14 @@ class PlanEntity {
3063
3063
  }
3064
3064
  }
3065
3065
 
3066
- var GTINTypeEnum;
3067
- (function (GTINTypeEnum) {
3068
- GTINTypeEnum["ZERO"] = "SEM GTIN";
3069
- GTINTypeEnum["EIGHT"] = "8";
3070
- GTINTypeEnum["TWELVE"] = "12";
3071
- GTINTypeEnum["THIRTEEN"] = "13";
3072
- GTINTypeEnum["FOURTEEN"] = "14";
3073
- })(GTINTypeEnum || (GTINTypeEnum = {}));
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 (29)
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 = GTINTypeEnum.THIRTEEN;
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 (29)
3138
+ // #endregion Properties (26)
3140
3139
  // #region Constructors (1)
3141
- constructor(data) {
3140
+ constructor(data, bluesoft) {
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(bluesoft.gtin || 0, bluesoft.gtins)?.commercialUnit?.quantityPackaging || 1;
3157
+ this.measureUnit = this.getGtinFromGtins(bluesoft.gtin || 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