cecon-interfaces 1.8.65 → 1.8.66

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 (42) hide show
  1. package/dist/esm2022/payio/catalogs/entities/catalog-category.entity.mjs +2 -1
  2. package/dist/esm2022/payio/catalogs/entities/catalog-item.entity.mjs +2 -1
  3. package/dist/esm2022/payio/catalogs/entities/catalog-option-group.entity.mjs +2 -1
  4. package/dist/esm2022/payio/catalogs/entities/catalog.entity.mjs +2 -2
  5. package/dist/esm2022/payio/catalogs/interfaces/i-catalog-category.mjs +1 -1
  6. package/dist/esm2022/payio/catalogs/interfaces/i-catalog-item.mjs +1 -1
  7. package/dist/esm2022/payio/catalogs/interfaces/i-catalog-option-group.mjs +1 -1
  8. package/dist/esm2022/payio/catalogs/interfaces/i-catalog.mjs +1 -1
  9. package/dist/esm2022/payio/schedules/entities/schedule-product.entity.mjs +3 -4
  10. package/dist/esm2022/payio/schedules/entities/schedule-slot.entity.mjs +3 -4
  11. package/dist/esm2022/payio/schedules/enums/index.mjs +2 -0
  12. package/dist/esm2022/payio/schedules/enums/skill.enum.mjs +7 -0
  13. package/dist/esm2022/payio/schedules/index.mjs +2 -1
  14. package/dist/esm2022/payio/schedules/interfaces/i-schedule-product.mjs +1 -1
  15. package/dist/esm2022/payio/schedules/interfaces/i-schedule-slots.mjs +1 -1
  16. package/dist/fesm2022/cecon-interfaces.mjs +15 -8
  17. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  18. package/dist/payio/catalogs/entities/catalog-category.entity.d.ts +1 -0
  19. package/dist/payio/catalogs/entities/catalog-category.entity.js +1 -0
  20. package/dist/payio/catalogs/entities/catalog-item.entity.d.ts +1 -0
  21. package/dist/payio/catalogs/entities/catalog-item.entity.js +1 -0
  22. package/dist/payio/catalogs/entities/catalog-option-group.entity.d.ts +1 -0
  23. package/dist/payio/catalogs/entities/catalog-option-group.entity.js +1 -0
  24. package/dist/payio/catalogs/entities/catalog.entity.d.ts +1 -1
  25. package/dist/payio/catalogs/entities/catalog.entity.js +1 -0
  26. package/dist/payio/catalogs/interfaces/i-catalog-category.d.ts +1 -0
  27. package/dist/payio/catalogs/interfaces/i-catalog-item.d.ts +1 -0
  28. package/dist/payio/catalogs/interfaces/i-catalog-option-group.d.ts +2 -1
  29. package/dist/payio/catalogs/interfaces/i-catalog.d.ts +1 -1
  30. package/dist/payio/schedules/entities/schedule-product.entity.d.ts +2 -0
  31. package/dist/payio/schedules/entities/schedule-product.entity.js +2 -3
  32. package/dist/payio/schedules/entities/schedule-slot.entity.d.ts +2 -0
  33. package/dist/payio/schedules/entities/schedule-slot.entity.js +1 -3
  34. package/dist/payio/schedules/enums/index.d.ts +1 -0
  35. package/dist/payio/schedules/enums/index.js +5 -0
  36. package/dist/payio/schedules/enums/skill.enum.d.ts +5 -0
  37. package/dist/payio/schedules/enums/skill.enum.js +9 -0
  38. package/dist/payio/schedules/index.d.ts +1 -0
  39. package/dist/payio/schedules/index.js +1 -0
  40. package/dist/payio/schedules/interfaces/i-schedule-product.d.ts +27 -0
  41. package/dist/payio/schedules/interfaces/i-schedule-slots.d.ts +1 -0
  42. package/package.json +1 -1
@@ -9,5 +9,6 @@ export declare class PayioCatalogCategoryEntity implements IPayioCatalogCategory
9
9
  sequence: number;
10
10
  status: EPayioCatalogStatus;
11
11
  template: EPayioCategoryTemplate;
12
+ tags: string[];
12
13
  constructor(data?: Partial<PayioCatalogCategoryEntity>);
13
14
  }
@@ -13,6 +13,7 @@ var PayioCatalogCategoryEntity = /** @class */ (function () {
13
13
  this.sequence = 0;
14
14
  this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
15
15
  this.template = enums_1.EPayioCategoryTemplate.DEFAULT;
16
+ this.tags = [];
16
17
  if (data) {
17
18
  for (var key in data) {
18
19
  if (data.hasOwnProperty(key) && key in this) {
@@ -23,5 +23,6 @@ export declare class PayioCatalogItemEntity implements IPayioCatalogItem {
23
23
  serving: string;
24
24
  shifts: PayioCatalogShiftEntity[];
25
25
  status: EPayioCatalogStatus;
26
+ tags: string[];
26
27
  constructor(data?: Partial<PayioCatalogItemEntity>);
27
28
  }
@@ -21,6 +21,7 @@ var PayioCatalogItemEntity = /** @class */ (function () {
21
21
  this.serving = '';
22
22
  this.shifts = [];
23
23
  this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
24
+ this.tags = [];
24
25
  if (data) {
25
26
  for (var key in data) {
26
27
  if (data.hasOwnProperty(key) && key in this) {
@@ -10,5 +10,6 @@ export declare class PayioCatalogOptionGroupEntity implements IPayioCatalogOptio
10
10
  options: PayioCatalogOptionEntity[];
11
11
  sequence: number;
12
12
  status: EPayioCatalogStatus;
13
+ tags: string[];
13
14
  constructor(data?: Partial<PayioCatalogOptionGroupEntity>);
14
15
  }
@@ -12,6 +12,7 @@ var PayioCatalogOptionGroupEntity = /** @class */ (function () {
12
12
  this.options = [];
13
13
  this.sequence = 0;
14
14
  this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
15
+ this.tags = [];
15
16
  if (data) {
16
17
  for (var key in data) {
17
18
  if (data.hasOwnProperty(key) && key in this) {
@@ -3,7 +3,7 @@ import { IPayioCatalog } from '../interfaces';
3
3
  import { PayioCatalogCategoryEntity } from './catalog-category.entity';
4
4
  export declare class PayioCatalogEntity implements IPayioCatalog {
5
5
  active: boolean;
6
- categories?: PayioCatalogCategoryEntity[] | undefined;
6
+ categories: PayioCatalogCategoryEntity[];
7
7
  companyId: string;
8
8
  containerId: string | null;
9
9
  context: EPayioCatalogContext[];
@@ -5,6 +5,7 @@ var enums_1 = require("../enums");
5
5
  var PayioCatalogEntity = /** @class */ (function () {
6
6
  function PayioCatalogEntity(data) {
7
7
  this.active = true;
8
+ this.categories = [];
8
9
  this.companyId = '';
9
10
  this.containerId = null;
10
11
  this.context = [enums_1.EPayioCatalogContext.DEFAULT];
@@ -10,4 +10,5 @@ export interface IPayioCatalogCategory {
10
10
  template: EPayioCategoryTemplate;
11
11
  pizza?: IPayioCatalogPizza;
12
12
  items?: IPayioCatalogItem[];
13
+ tags: string[];
13
14
  }
@@ -22,4 +22,5 @@ export interface IPayioCatalogItem {
22
22
  serving: string;
23
23
  shifts: IPayioCatalogShift[];
24
24
  status: EPayioCatalogStatus;
25
+ tags: string[];
25
26
  }
@@ -6,7 +6,8 @@ export interface IPayioCatalogOptionGroup {
6
6
  max: number;
7
7
  min: number;
8
8
  name: string;
9
+ options: IPayioCatalogOption[];
9
10
  sequence: number;
10
11
  status: EPayioCatalogStatus;
11
- options: IPayioCatalogOption[];
12
+ tags: string[];
12
13
  }
@@ -13,5 +13,5 @@ export interface IPayioCatalog {
13
13
  updatedAt: Date;
14
14
  status: EPayioCatalogStatus;
15
15
  context: EPayioCatalogContext[];
16
- categories?: IPayioCatalogCategory[];
16
+ categories: IPayioCatalogCategory[];
17
17
  }
@@ -1,3 +1,4 @@
1
+ import { EPayioScheduleSkill } from '../enums';
1
2
  import { IPayioScheduleProduct } from '../interfaces/i-schedule-product';
2
3
  export declare class PayioScheduleProductEntity implements IPayioScheduleProduct {
3
4
  code: string;
@@ -7,6 +8,7 @@ export declare class PayioScheduleProductEntity implements IPayioScheduleProduct
7
8
  helpYourSelf: boolean;
8
9
  id: string;
9
10
  price: number;
11
+ skill: EPayioScheduleSkill;
10
12
  unit: string;
11
13
  weightLimitMessage: number;
12
14
  weightLimitPrice: number;
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioScheduleProductEntity = void 0;
4
+ var enums_1 = require("../enums");
4
5
  var PayioScheduleProductEntity = /** @class */ (function () {
5
- // #endregion Properties (11)
6
- // #region Constructors (1)
7
6
  function PayioScheduleProductEntity(data) {
8
- // #region Properties (11)
9
7
  this.code = '';
10
8
  this.description = '';
11
9
  this.exceededWeightMessageText = '';
@@ -13,6 +11,7 @@ var PayioScheduleProductEntity = /** @class */ (function () {
13
11
  this.helpYourSelf = false;
14
12
  this.id = '';
15
13
  this.price = 0;
14
+ this.skill = enums_1.EPayioScheduleSkill.PRODUCT_BY_WEIGHT;
16
15
  this.unit = 'KG';
17
16
  this.weightLimitMessage = 0;
18
17
  this.weightLimitPrice = 0;
@@ -1,6 +1,8 @@
1
1
  import { IPayioScheduleSlot } from '../interfaces';
2
2
  export declare class PayioScheduleSlotEntity implements IPayioScheduleSlot {
3
+ catalogId: string;
3
4
  productCode: string;
5
+ productId?: string | undefined;
4
6
  time: string;
5
7
  constructor(data?: Partial<PayioScheduleSlotEntity>);
6
8
  }
@@ -2,10 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioScheduleSlotEntity = void 0;
4
4
  var PayioScheduleSlotEntity = /** @class */ (function () {
5
- // #endregion Properties (2)
6
- // #region Constructors (1)
7
5
  function PayioScheduleSlotEntity(data) {
8
- // #region Properties (2)
6
+ this.catalogId = '';
9
7
  this.productCode = '';
10
8
  this.time = '';
11
9
  if (data) {
@@ -0,0 +1 @@
1
+ export { EPayioScheduleSkill } from './skill.enum';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayioScheduleSkill = void 0;
4
+ var skill_enum_1 = require("./skill.enum");
5
+ Object.defineProperty(exports, "EPayioScheduleSkill", { enumerable: true, get: function () { return skill_enum_1.EPayioScheduleSkill; } });
@@ -0,0 +1,5 @@
1
+ export declare enum EPayioScheduleSkill {
2
+ ALL_YOU_CAN_EAT = "all_you_can_eat",
3
+ PRODUCT_BY_WEIGHT = "product_by_weight",
4
+ PRODUCT = "product"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayioScheduleSkill = void 0;
4
+ var EPayioScheduleSkill;
5
+ (function (EPayioScheduleSkill) {
6
+ EPayioScheduleSkill["ALL_YOU_CAN_EAT"] = "all_you_can_eat";
7
+ EPayioScheduleSkill["PRODUCT_BY_WEIGHT"] = "product_by_weight";
8
+ EPayioScheduleSkill["PRODUCT"] = "product";
9
+ })(EPayioScheduleSkill || (exports.EPayioScheduleSkill = EPayioScheduleSkill = {}));
@@ -1,2 +1,3 @@
1
1
  export * from './entities';
2
+ export * from './enums';
2
3
  export * from './interfaces';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./enums"), exports);
18
19
  __exportStar(require("./interfaces"), exports);
@@ -1,12 +1,39 @@
1
+ import { EPayioScheduleSkill } from '../enums';
1
2
  export interface IPayioScheduleProduct {
2
3
  code: string;
3
4
  description: string;
5
+ /**
6
+ * @deprecated
7
+ * Preço fixo aplicado ao exceder o limite de peso
8
+ */
4
9
  exceededWeightMessageText: string | null;
10
+ /**
11
+ * @deprecated
12
+ * Limite de peso para enviar mensagem
13
+ */
5
14
  exceededWeightPrice: number;
15
+ skill: EPayioScheduleSkill;
16
+ /**
17
+ * @deprecated
18
+ */
6
19
  helpYourSelf: boolean;
20
+ /**
21
+ * @deprecated
22
+ */
7
23
  id: string;
24
+ /**
25
+ * Texto associado à mensagem sonora
26
+ */
8
27
  price: number;
9
28
  unit: string;
29
+ /**
30
+ * @deprecated
31
+ * Limite máximo de peso para aplicar regras
32
+ */
10
33
  weightLimitMessage: number;
34
+ /**
35
+ * @deprecated
36
+ * Preço fixo aplicado ao exceder o limite de peso
37
+ */
11
38
  weightLimitPrice: number;
12
39
  }
@@ -1,5 +1,6 @@
1
1
  export interface IPayioScheduleSlot {
2
2
  productId?: string;
3
3
  productCode?: string;
4
+ catalogId: string;
4
5
  time: string;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.65",
3
+ "version": "1.8.66",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",