cecon-interfaces 1.9.73 → 1.9.75

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.
Files changed (27) hide show
  1. package/dist/esm2022/payio/index.mjs +2 -1
  2. package/dist/esm2022/payio/option-group/entities/catalog-option-group.entity.mjs +25 -0
  3. package/dist/esm2022/payio/option-group/entities/catalog-option.entity.mjs +19 -0
  4. package/dist/esm2022/payio/option-group/entities/index.mjs +3 -0
  5. package/dist/esm2022/payio/option-group/index.mjs +3 -0
  6. package/dist/esm2022/payio/option-group/interfaces/i-catalog-option-group.mjs +2 -0
  7. package/dist/esm2022/payio/option-group/interfaces/i-catalog-option.mjs +2 -0
  8. package/dist/esm2022/payio/option-group/interfaces/index.mjs +2 -0
  9. package/dist/fesm2022/cecon-interfaces.mjs +45 -1
  10. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  11. package/dist/payio/index.d.ts +1 -0
  12. package/dist/payio/index.js +1 -0
  13. package/dist/payio/option-group/entities/catalog-option-group.entity.d.ts +18 -0
  14. package/dist/payio/option-group/entities/catalog-option-group.entity.js +29 -0
  15. package/dist/payio/option-group/entities/catalog-option.entity.d.ts +13 -0
  16. package/dist/payio/option-group/entities/catalog-option.entity.js +23 -0
  17. package/dist/payio/option-group/entities/index.d.ts +2 -0
  18. package/dist/payio/option-group/entities/index.js +7 -0
  19. package/dist/payio/option-group/index.d.ts +2 -0
  20. package/dist/payio/option-group/index.js +18 -0
  21. package/dist/payio/option-group/interfaces/i-catalog-option-group.d.ts +16 -0
  22. package/dist/payio/option-group/interfaces/i-catalog-option-group.js +2 -0
  23. package/dist/payio/option-group/interfaces/i-catalog-option.d.ts +11 -0
  24. package/dist/payio/option-group/interfaces/i-catalog-option.js +2 -0
  25. package/dist/payio/option-group/interfaces/index.d.ts +2 -0
  26. package/dist/payio/option-group/interfaces/index.js +2 -0
  27. package/package.json +1 -1
@@ -27,4 +27,5 @@ export * from './big-chef-config';
27
27
  export * from './activation-batch';
28
28
  export * from './preparation-place';
29
29
  export * from './cards';
30
+ export * from './option-group';
30
31
  export * from './vision-config';
@@ -43,4 +43,5 @@ __exportStar(require("./big-chef-config"), exports);
43
43
  __exportStar(require("./activation-batch"), exports);
44
44
  __exportStar(require("./preparation-place"), exports);
45
45
  __exportStar(require("./cards"), exports);
46
+ __exportStar(require("./option-group"), exports);
46
47
  __exportStar(require("./vision-config"), exports);
@@ -0,0 +1,18 @@
1
+ import { IPayioCatalogOptionGroup } from "../interfaces";
2
+ import { PayioCatalogOptionEntity } from "./catalog-option.entity";
3
+ export declare class PayioCatalogOptionGroupEntity implements IPayioCatalogOptionGroup {
4
+ catalogId: string;
5
+ categoryId: string;
6
+ companyId: string;
7
+ containerId: string | null;
8
+ createdAt: Date;
9
+ id: string;
10
+ index: number;
11
+ max: number;
12
+ min: number;
13
+ name: string;
14
+ options: PayioCatalogOptionEntity[];
15
+ tags: string[];
16
+ updatedAt: Date;
17
+ constructor(data?: Partial<PayioCatalogOptionGroupEntity>);
18
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCatalogOptionGroupEntity = void 0;
4
+ var PayioCatalogOptionGroupEntity = /** @class */ (function () {
5
+ function PayioCatalogOptionGroupEntity(data) {
6
+ this.catalogId = '';
7
+ this.categoryId = '';
8
+ this.companyId = '';
9
+ this.containerId = null;
10
+ this.createdAt = new Date();
11
+ this.id = '';
12
+ this.index = 0;
13
+ this.max = 0;
14
+ this.min = 0;
15
+ this.name = '';
16
+ this.options = [];
17
+ this.tags = [];
18
+ this.updatedAt = new Date();
19
+ if (data) {
20
+ for (var key in data) {
21
+ if (data.hasOwnProperty(key) && key in this) {
22
+ this[key] = data[key];
23
+ }
24
+ }
25
+ }
26
+ }
27
+ return PayioCatalogOptionGroupEntity;
28
+ }());
29
+ exports.PayioCatalogOptionGroupEntity = PayioCatalogOptionGroupEntity;
@@ -0,0 +1,13 @@
1
+ import { IPayioCatalogOption } from '../interfaces/i-catalog-option';
2
+ export declare class PayioCatalogOptionEntity implements IPayioCatalogOption {
3
+ description: string;
4
+ externalCode: string;
5
+ id: string;
6
+ imageUrl: string;
7
+ index: number;
8
+ name: string;
9
+ price: {
10
+ value: number;
11
+ };
12
+ constructor(data?: Partial<PayioCatalogOptionEntity>);
13
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCatalogOptionEntity = void 0;
4
+ var PayioCatalogOptionEntity = /** @class */ (function () {
5
+ function PayioCatalogOptionEntity(data) {
6
+ this.description = '';
7
+ this.externalCode = '';
8
+ this.id = '';
9
+ this.imageUrl = '';
10
+ this.index = 0;
11
+ this.name = '';
12
+ this.price = { value: 0 };
13
+ if (data) {
14
+ for (var key in data) {
15
+ if (data.hasOwnProperty(key) && key in this) {
16
+ this[key] = data[key];
17
+ }
18
+ }
19
+ }
20
+ }
21
+ return PayioCatalogOptionEntity;
22
+ }());
23
+ exports.PayioCatalogOptionEntity = PayioCatalogOptionEntity;
@@ -0,0 +1,2 @@
1
+ export { PayioCatalogOptionGroupEntity } from './catalog-option-group.entity';
2
+ export { PayioCatalogOptionEntity } from './catalog-option.entity';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCatalogOptionEntity = exports.PayioCatalogOptionGroupEntity = void 0;
4
+ var catalog_option_group_entity_1 = require("./catalog-option-group.entity");
5
+ Object.defineProperty(exports, "PayioCatalogOptionGroupEntity", { enumerable: true, get: function () { return catalog_option_group_entity_1.PayioCatalogOptionGroupEntity; } });
6
+ var catalog_option_entity_1 = require("./catalog-option.entity");
7
+ Object.defineProperty(exports, "PayioCatalogOptionEntity", { enumerable: true, get: function () { return catalog_option_entity_1.PayioCatalogOptionEntity; } });
@@ -0,0 +1,2 @@
1
+ export * from './entities';
2
+ export * from './interfaces';
@@ -0,0 +1,18 @@
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("./entities"), exports);
18
+ __exportStar(require("./interfaces"), exports);
@@ -0,0 +1,16 @@
1
+ import { IPayioCatalogOption } from "./i-catalog-option";
2
+ export interface IPayioCatalogOptionGroup {
3
+ catalogId: string;
4
+ categoryId: string;
5
+ companyId: string;
6
+ containerId: string | null;
7
+ createdAt: Date;
8
+ id: string;
9
+ index: number;
10
+ max: number;
11
+ min: number;
12
+ name: string;
13
+ options: IPayioCatalogOption[];
14
+ tags: string[];
15
+ updatedAt: Date;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export interface IPayioCatalogOption {
2
+ description: string;
3
+ externalCode: string;
4
+ id: string;
5
+ imageUrl: string;
6
+ index: number;
7
+ name: string;
8
+ price: {
9
+ value: number;
10
+ };
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { IPayioCatalogOption } from './i-catalog-option';
2
+ export { IPayioCatalogOptionGroup } from './i-catalog-option-group';
@@ -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.9.73",
3
+ "version": "1.9.75",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",