cecon-interfaces 1.8.41 → 1.8.43

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 (24) hide show
  1. package/dist/esm2022/payio/catalogs/entities/catalog-category.entity.mjs +4 -4
  2. package/dist/esm2022/payio/catalogs/entities/catalog.entity.mjs +3 -3
  3. package/dist/esm2022/payio/catalogs/enums/catalog-context.enum.mjs +6 -0
  4. package/dist/esm2022/payio/catalogs/enums/category-template.enum.mjs +8 -0
  5. package/dist/esm2022/payio/catalogs/enums/index.mjs +3 -2
  6. package/dist/esm2022/payio/catalogs/interfaces/i-catalog-category.mjs +1 -1
  7. package/dist/esm2022/payio/catalogs/interfaces/i-catalog.mjs +1 -1
  8. package/dist/fesm2022/cecon-interfaces.mjs +15 -9
  9. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  10. package/dist/payio/catalogs/entities/catalog-category.entity.d.ts +4 -4
  11. package/dist/payio/catalogs/entities/catalog-category.entity.js +2 -2
  12. package/dist/payio/catalogs/entities/catalog.entity.d.ts +2 -2
  13. package/dist/payio/catalogs/entities/catalog.entity.js +1 -1
  14. package/dist/payio/catalogs/enums/catalog-context.enum.d.ts +4 -0
  15. package/dist/payio/catalogs/enums/catalog-context.enum.js +8 -0
  16. package/dist/payio/catalogs/enums/{catalog-template.enum.d.ts → category-template.enum.d.ts} +1 -1
  17. package/dist/payio/catalogs/enums/category-template.enum.js +10 -0
  18. package/dist/payio/catalogs/enums/index.d.ts +2 -1
  19. package/dist/payio/catalogs/enums/index.js +5 -3
  20. package/dist/payio/catalogs/interfaces/i-catalog-category.d.ts +4 -4
  21. package/dist/payio/catalogs/interfaces/i-catalog.d.ts +2 -2
  22. package/package.json +1 -1
  23. package/dist/esm2022/payio/catalogs/enums/catalog-template.enum.mjs +0 -8
  24. package/dist/payio/catalogs/enums/catalog-template.enum.js +0 -10
@@ -1,13 +1,13 @@
1
- import { EPayioCatalogStatus, EPayioCatalogTemplate } from '../enums';
1
+ import { EPayioCatalogStatus, EPayioCategoryTemplate } from '../enums';
2
2
  import { IPayioCatalogCategory, IPayioCatalogItem, IPayioCatalogPizza } from '../interfaces';
3
3
  export declare class PayioCatalogCategoryEntity implements IPayioCatalogCategory {
4
4
  id: string;
5
5
  index: number;
6
- items: IPayioCatalogItem[];
6
+ items?: IPayioCatalogItem[];
7
7
  name: string;
8
- pizzas: IPayioCatalogPizza;
8
+ pizza?: IPayioCatalogPizza;
9
9
  sequence: number;
10
10
  status: EPayioCatalogStatus;
11
- template: EPayioCatalogTemplate;
11
+ template: EPayioCategoryTemplate;
12
12
  constructor(data?: Partial<PayioCatalogCategoryEntity>);
13
13
  }
@@ -9,10 +9,10 @@ var PayioCatalogCategoryEntity = /** @class */ (function () {
9
9
  this.index = 0;
10
10
  this.items = [];
11
11
  this.name = '';
12
- this.pizzas = new catalog_pizza_entity_1.PayioCatalogPizzaEntity();
12
+ this.pizza = new catalog_pizza_entity_1.PayioCatalogPizzaEntity();
13
13
  this.sequence = 0;
14
14
  this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
15
- this.template = enums_1.EPayioCatalogTemplate.DEFAULT;
15
+ this.template = enums_1.EPayioCategoryTemplate.DEFAULT;
16
16
  if (data) {
17
17
  for (var key in data) {
18
18
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,4 +1,4 @@
1
- import { EPayioCatalogStatus } from '../enums';
1
+ import { EPayioCatalogContext, EPayioCatalogStatus } from '../enums';
2
2
  import { IPayioCatalog } from '../interfaces';
3
3
  import { PayioCatalogCategoryEntity } from './catalog-category.entity';
4
4
  export declare class PayioCatalogEntity implements IPayioCatalog {
@@ -6,7 +6,7 @@ export declare class PayioCatalogEntity implements IPayioCatalog {
6
6
  categories?: PayioCatalogCategoryEntity[] | undefined;
7
7
  companyId: string;
8
8
  containerId: string | null;
9
- context: 'INDOOR' | 'DEFAULT'[];
9
+ context: EPayioCatalogContext[];
10
10
  createdAt: Date;
11
11
  id: string;
12
12
  name: string;
@@ -7,7 +7,7 @@ var PayioCatalogEntity = /** @class */ (function () {
7
7
  this.active = true;
8
8
  this.companyId = '';
9
9
  this.containerId = null;
10
- this.context = ['DEFAULT'];
10
+ this.context = [enums_1.EPayioCatalogContext.DEFAULT];
11
11
  this.createdAt = new Date();
12
12
  this.id = '';
13
13
  this.name = '';
@@ -0,0 +1,4 @@
1
+ export declare enum EPayioCatalogContext {
2
+ DEFAULT = "DEFAULT",
3
+ INDOOR = "INDOOR"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayioCatalogContext = void 0;
4
+ var EPayioCatalogContext;
5
+ (function (EPayioCatalogContext) {
6
+ EPayioCatalogContext["DEFAULT"] = "DEFAULT";
7
+ EPayioCatalogContext["INDOOR"] = "INDOOR";
8
+ })(EPayioCatalogContext || (exports.EPayioCatalogContext = EPayioCatalogContext = {}));
@@ -1,4 +1,4 @@
1
- export declare enum EPayioCatalogTemplate {
1
+ export declare enum EPayioCategoryTemplate {
2
2
  DEFAULT = "DEFAULT",
3
3
  PIZZA = "PIZZA"
4
4
  }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayioCategoryTemplate = void 0;
4
+ var EPayioCategoryTemplate;
5
+ (function (EPayioCategoryTemplate) {
6
+ // #region Properties (1)
7
+ EPayioCategoryTemplate["DEFAULT"] = "DEFAULT";
8
+ EPayioCategoryTemplate["PIZZA"] = "PIZZA";
9
+ // #endregion Properties (1)
10
+ })(EPayioCategoryTemplate || (exports.EPayioCategoryTemplate = EPayioCategoryTemplate = {}));
@@ -1,2 +1,3 @@
1
+ export { EPayioCatalogContext } from './catalog-context.enum';
1
2
  export { EPayioCatalogStatus } from './catalog-status.enum';
2
- export { EPayioCatalogTemplate } from './catalog-template.enum';
3
+ export { EPayioCategoryTemplate } from './category-template.enum';
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EPayioCatalogTemplate = exports.EPayioCatalogStatus = void 0;
3
+ exports.EPayioCategoryTemplate = exports.EPayioCatalogStatus = exports.EPayioCatalogContext = void 0;
4
+ var catalog_context_enum_1 = require("./catalog-context.enum");
5
+ Object.defineProperty(exports, "EPayioCatalogContext", { enumerable: true, get: function () { return catalog_context_enum_1.EPayioCatalogContext; } });
4
6
  var catalog_status_enum_1 = require("./catalog-status.enum");
5
7
  Object.defineProperty(exports, "EPayioCatalogStatus", { enumerable: true, get: function () { return catalog_status_enum_1.EPayioCatalogStatus; } });
6
- var catalog_template_enum_1 = require("./catalog-template.enum");
7
- Object.defineProperty(exports, "EPayioCatalogTemplate", { enumerable: true, get: function () { return catalog_template_enum_1.EPayioCatalogTemplate; } });
8
+ var category_template_enum_1 = require("./category-template.enum");
9
+ Object.defineProperty(exports, "EPayioCategoryTemplate", { enumerable: true, get: function () { return category_template_enum_1.EPayioCategoryTemplate; } });
@@ -1,4 +1,4 @@
1
- import { EPayioCatalogStatus, EPayioCatalogTemplate } from '../enums';
1
+ import { EPayioCatalogStatus, EPayioCategoryTemplate } from '../enums';
2
2
  import { IPayioCatalogItem } from './i-catalog-item';
3
3
  import { IPayioCatalogPizza } from './i-catalog-pizza';
4
4
  export interface IPayioCatalogCategory {
@@ -7,7 +7,7 @@ export interface IPayioCatalogCategory {
7
7
  status: EPayioCatalogStatus;
8
8
  sequence: number;
9
9
  index: number;
10
- template: EPayioCatalogTemplate;
11
- pizzas: IPayioCatalogPizza;
12
- items: IPayioCatalogItem[];
10
+ template: EPayioCategoryTemplate;
11
+ pizza?: IPayioCatalogPizza;
12
+ items?: IPayioCatalogItem[];
13
13
  }
@@ -1,4 +1,4 @@
1
- import { EPayioCatalogStatus } from '../enums';
1
+ import { EPayioCatalogContext, EPayioCatalogStatus } from '../enums';
2
2
  import { IPayioCatalogCategory } from './i-catalog-category';
3
3
  export interface IPayioCatalog {
4
4
  active: boolean;
@@ -10,6 +10,6 @@ export interface IPayioCatalog {
10
10
  sandbox: boolean;
11
11
  updatedAt: Date;
12
12
  status: EPayioCatalogStatus;
13
- context: 'INDOOR' | 'DEFAULT'[];
13
+ context: EPayioCatalogContext[];
14
14
  categories?: IPayioCatalogCategory[];
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.41",
3
+ "version": "1.8.43",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,8 +0,0 @@
1
- export var EPayioCatalogTemplate;
2
- (function (EPayioCatalogTemplate) {
3
- // #region Properties (1)
4
- EPayioCatalogTemplate["DEFAULT"] = "DEFAULT";
5
- EPayioCatalogTemplate["PIZZA"] = "PIZZA";
6
- // #endregion Properties (1)
7
- })(EPayioCatalogTemplate || (EPayioCatalogTemplate = {}));
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0YWxvZy10ZW1wbGF0ZS5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3BheWlvL2NhdGFsb2dzL2VudW1zL2NhdGFsb2ctdGVtcGxhdGUuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxxQkFNWDtBQU5ELFdBQVkscUJBQXFCO0lBQy9CLHlCQUF5QjtJQUN6Qiw0Q0FBbUIsQ0FBQTtJQUNuQix3Q0FBZSxDQUFBO0lBRWYsNEJBQTRCO0FBQzlCLENBQUMsRUFOVyxxQkFBcUIsS0FBckIscUJBQXFCLFFBTWhDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gRVBheWlvQ2F0YWxvZ1RlbXBsYXRlIHtcclxuICAvLyAjcmVnaW9uIFByb3BlcnRpZXMgKDEpXHJcbiAgREVGQVVMVCA9ICdERUZBVUxUJyxcclxuICBQSVpaQSA9ICdQSVpaQScsXHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMSlcclxufVxyXG4iXX0=
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EPayioCatalogTemplate = void 0;
4
- var EPayioCatalogTemplate;
5
- (function (EPayioCatalogTemplate) {
6
- // #region Properties (1)
7
- EPayioCatalogTemplate["DEFAULT"] = "DEFAULT";
8
- EPayioCatalogTemplate["PIZZA"] = "PIZZA";
9
- // #endregion Properties (1)
10
- })(EPayioCatalogTemplate || (exports.EPayioCatalogTemplate = EPayioCatalogTemplate = {}));