cecon-interfaces 1.8.65 → 1.8.67
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.
- package/dist/esm2022/payio/catalogs/entities/catalog-category.entity.mjs +3 -1
- package/dist/esm2022/payio/catalogs/entities/catalog-item.entity.mjs +3 -1
- package/dist/esm2022/payio/catalogs/entities/catalog-option-group.entity.mjs +3 -1
- package/dist/esm2022/payio/catalogs/entities/catalog-pizza.entity.mjs +2 -1
- package/dist/esm2022/payio/catalogs/entities/catalog.entity.mjs +3 -3
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-category.mjs +1 -1
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-item.mjs +1 -1
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-option-group.mjs +1 -1
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-pizza.mjs +1 -1
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog.mjs +1 -1
- package/dist/esm2022/payio/schedules/entities/schedule-product.entity.mjs +3 -4
- package/dist/esm2022/payio/schedules/entities/schedule-slot.entity.mjs +3 -4
- package/dist/esm2022/payio/schedules/enums/index.mjs +2 -0
- package/dist/esm2022/payio/schedules/enums/skill.enum.mjs +7 -0
- package/dist/esm2022/payio/schedules/index.mjs +2 -1
- package/dist/esm2022/payio/schedules/interfaces/i-schedule-product.mjs +1 -1
- package/dist/esm2022/payio/schedules/interfaces/i-schedule-slots.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +20 -9
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/payio/catalogs/entities/catalog-category.entity.d.ts +2 -0
- package/dist/payio/catalogs/entities/catalog-category.entity.js +2 -0
- package/dist/payio/catalogs/entities/catalog-item.entity.d.ts +2 -0
- package/dist/payio/catalogs/entities/catalog-item.entity.js +2 -0
- package/dist/payio/catalogs/entities/catalog-option-group.entity.d.ts +2 -0
- package/dist/payio/catalogs/entities/catalog-option-group.entity.js +2 -0
- package/dist/payio/catalogs/entities/catalog-pizza.entity.d.ts +1 -0
- package/dist/payio/catalogs/entities/catalog-pizza.entity.js +1 -0
- package/dist/payio/catalogs/entities/catalog.entity.d.ts +2 -2
- package/dist/payio/catalogs/entities/catalog.entity.js +2 -1
- package/dist/payio/catalogs/interfaces/i-catalog-category.d.ts +2 -0
- package/dist/payio/catalogs/interfaces/i-catalog-item.d.ts +2 -0
- package/dist/payio/catalogs/interfaces/i-catalog-option-group.d.ts +3 -1
- package/dist/payio/catalogs/interfaces/i-catalog-pizza.d.ts +4 -3
- package/dist/payio/catalogs/interfaces/i-catalog.d.ts +2 -2
- package/dist/payio/schedules/entities/schedule-product.entity.d.ts +2 -0
- package/dist/payio/schedules/entities/schedule-product.entity.js +2 -3
- package/dist/payio/schedules/entities/schedule-slot.entity.d.ts +2 -0
- package/dist/payio/schedules/entities/schedule-slot.entity.js +1 -3
- package/dist/payio/schedules/enums/index.d.ts +1 -0
- package/dist/payio/schedules/enums/index.js +5 -0
- package/dist/payio/schedules/enums/skill.enum.d.ts +5 -0
- package/dist/payio/schedules/enums/skill.enum.js +9 -0
- package/dist/payio/schedules/index.d.ts +1 -0
- package/dist/payio/schedules/index.js +1 -0
- package/dist/payio/schedules/interfaces/i-schedule-product.d.ts +27 -0
- package/dist/payio/schedules/interfaces/i-schedule-slots.d.ts +1 -0
- package/package.json +1 -1
@@ -2,12 +2,14 @@ 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
|
+
ifoodId: string | null;
|
5
6
|
index: number;
|
6
7
|
items?: IPayioCatalogItem[];
|
7
8
|
name: string;
|
8
9
|
pizza?: IPayioCatalogPizza;
|
9
10
|
sequence: number;
|
10
11
|
status: EPayioCatalogStatus;
|
12
|
+
tags: string[];
|
11
13
|
template: EPayioCategoryTemplate;
|
12
14
|
constructor(data?: Partial<PayioCatalogCategoryEntity>);
|
13
15
|
}
|
@@ -6,12 +6,14 @@ var catalog_pizza_entity_1 = require("./catalog-pizza.entity");
|
|
6
6
|
var PayioCatalogCategoryEntity = /** @class */ (function () {
|
7
7
|
function PayioCatalogCategoryEntity(data) {
|
8
8
|
this.id = '';
|
9
|
+
this.ifoodId = null;
|
9
10
|
this.index = 0;
|
10
11
|
this.items = [];
|
11
12
|
this.name = '';
|
12
13
|
this.pizza = new catalog_pizza_entity_1.PayioCatalogPizzaEntity();
|
13
14
|
this.sequence = 0;
|
14
15
|
this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
|
16
|
+
this.tags = [];
|
15
17
|
this.template = enums_1.EPayioCategoryTemplate.DEFAULT;
|
16
18
|
if (data) {
|
17
19
|
for (var key in data) {
|
@@ -10,6 +10,7 @@ export declare class PayioCatalogItemEntity implements IPayioCatalogItem {
|
|
10
10
|
externalCode: string;
|
11
11
|
hasOptionGroups: boolean;
|
12
12
|
id: string;
|
13
|
+
ifoodId: string | null;
|
13
14
|
imagePath: string;
|
14
15
|
index: number;
|
15
16
|
name: string;
|
@@ -23,5 +24,6 @@ export declare class PayioCatalogItemEntity implements IPayioCatalogItem {
|
|
23
24
|
serving: string;
|
24
25
|
shifts: PayioCatalogShiftEntity[];
|
25
26
|
status: EPayioCatalogStatus;
|
27
|
+
tags: string[];
|
26
28
|
constructor(data?: Partial<PayioCatalogItemEntity>);
|
27
29
|
}
|
@@ -11,6 +11,7 @@ var PayioCatalogItemEntity = /** @class */ (function () {
|
|
11
11
|
this.externalCode = '';
|
12
12
|
this.hasOptionGroups = false;
|
13
13
|
this.id = '';
|
14
|
+
this.ifoodId = null;
|
14
15
|
this.imagePath = '';
|
15
16
|
this.index = 0;
|
16
17
|
this.name = '';
|
@@ -21,6 +22,7 @@ var PayioCatalogItemEntity = /** @class */ (function () {
|
|
21
22
|
this.serving = '';
|
22
23
|
this.shifts = [];
|
23
24
|
this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
|
25
|
+
this.tags = [];
|
24
26
|
if (data) {
|
25
27
|
for (var key in data) {
|
26
28
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -3,6 +3,7 @@ import { IPayioCatalogOptionGroup } from '../interfaces';
|
|
3
3
|
import { PayioCatalogOptionEntity } from './catalog-option.entity';
|
4
4
|
export declare class PayioCatalogOptionGroupEntity implements IPayioCatalogOptionGroup {
|
5
5
|
id: string;
|
6
|
+
ifoodId: string | null;
|
6
7
|
index: number;
|
7
8
|
max: number;
|
8
9
|
min: number;
|
@@ -10,5 +11,6 @@ export declare class PayioCatalogOptionGroupEntity implements IPayioCatalogOptio
|
|
10
11
|
options: PayioCatalogOptionEntity[];
|
11
12
|
sequence: number;
|
12
13
|
status: EPayioCatalogStatus;
|
14
|
+
tags: string[];
|
13
15
|
constructor(data?: Partial<PayioCatalogOptionGroupEntity>);
|
14
16
|
}
|
@@ -5,6 +5,7 @@ var enums_1 = require("../enums");
|
|
5
5
|
var PayioCatalogOptionGroupEntity = /** @class */ (function () {
|
6
6
|
function PayioCatalogOptionGroupEntity(data) {
|
7
7
|
this.id = '';
|
8
|
+
this.ifoodId = null;
|
8
9
|
this.index = 0;
|
9
10
|
this.max = 0;
|
10
11
|
this.min = 0;
|
@@ -12,6 +13,7 @@ var PayioCatalogOptionGroupEntity = /** @class */ (function () {
|
|
12
13
|
this.options = [];
|
13
14
|
this.sequence = 0;
|
14
15
|
this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
|
16
|
+
this.tags = [];
|
15
17
|
if (data) {
|
16
18
|
for (var key in data) {
|
17
19
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -8,6 +8,7 @@ export declare class PayioCatalogPizzaEntity implements IPayioCatalogPizza {
|
|
8
8
|
crusts: PayioCatalogPizzaCrustEntity[];
|
9
9
|
edges: PayioCatalogPizzaEdgeEntity[];
|
10
10
|
id: string;
|
11
|
+
ifoodId: string | null;
|
11
12
|
shifts: PayioCatalogShiftEntity[];
|
12
13
|
sizes: PayioCatalogPizzaSizeEntity[];
|
13
14
|
toppings: PayioCatalogPizzaToppingEntity[];
|
@@ -3,13 +3,13 @@ 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
|
6
|
+
categories: PayioCatalogCategoryEntity[];
|
7
7
|
companyId: string;
|
8
8
|
containerId: string | null;
|
9
9
|
context: EPayioCatalogContext[];
|
10
10
|
createdAt: Date;
|
11
11
|
id: string;
|
12
|
-
|
12
|
+
ifoodId: string | null;
|
13
13
|
name: string;
|
14
14
|
sandbox: boolean;
|
15
15
|
status: EPayioCatalogStatus;
|
@@ -5,12 +5,13 @@ 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];
|
11
12
|
this.createdAt = new Date();
|
12
13
|
this.id = '';
|
13
|
-
this.
|
14
|
+
this.ifoodId = null;
|
14
15
|
this.name = '';
|
15
16
|
this.sandbox = false;
|
16
17
|
this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
|
@@ -9,6 +9,7 @@ export interface IPayioCatalogItem {
|
|
9
9
|
externalCode: string;
|
10
10
|
hasOptionGroups: boolean;
|
11
11
|
id: string;
|
12
|
+
ifoodId: string | null;
|
12
13
|
imagePath: string;
|
13
14
|
index: number;
|
14
15
|
name: string;
|
@@ -22,4 +23,5 @@ export interface IPayioCatalogItem {
|
|
22
23
|
serving: string;
|
23
24
|
shifts: IPayioCatalogShift[];
|
24
25
|
status: EPayioCatalogStatus;
|
26
|
+
tags: string[];
|
25
27
|
}
|
@@ -2,11 +2,13 @@ import { EPayioCatalogStatus } from '../enums';
|
|
2
2
|
import { IPayioCatalogOption } from './i-catalog-option';
|
3
3
|
export interface IPayioCatalogOptionGroup {
|
4
4
|
id: string;
|
5
|
+
ifoodId: string | null;
|
5
6
|
index: number;
|
6
7
|
max: number;
|
7
8
|
min: number;
|
8
9
|
name: string;
|
10
|
+
options: IPayioCatalogOption[];
|
9
11
|
sequence: number;
|
10
12
|
status: EPayioCatalogStatus;
|
11
|
-
|
13
|
+
tags: string[];
|
12
14
|
}
|
@@ -4,10 +4,11 @@ import { IPayioCatalogPizzaSize } from './i-catalog-pizza-size';
|
|
4
4
|
import { IPayioCatalogPizzaTopping } from './i-catalog-pizza-topping';
|
5
5
|
import { IPayioCatalogShift } from './i-catalog-shift';
|
6
6
|
export interface IPayioCatalogPizza {
|
7
|
-
id: string;
|
8
|
-
toppings: IPayioCatalogPizzaTopping[];
|
9
7
|
crusts: IPayioCatalogPizzaCrust[];
|
10
8
|
edges: IPayioCatalogPizzaEdge[];
|
11
|
-
|
9
|
+
id: string;
|
10
|
+
ifoodId: string | null;
|
12
11
|
shifts: IPayioCatalogShift[];
|
12
|
+
sizes: IPayioCatalogPizzaSize[];
|
13
|
+
toppings: IPayioCatalogPizzaTopping[];
|
13
14
|
}
|
@@ -9,9 +9,9 @@ export interface IPayioCatalog {
|
|
9
9
|
name: string;
|
10
10
|
sandbox: boolean;
|
11
11
|
tags: string[];
|
12
|
-
|
12
|
+
ifoodId: string | null;
|
13
13
|
updatedAt: Date;
|
14
14
|
status: EPayioCatalogStatus;
|
15
15
|
context: EPayioCatalogContext[];
|
16
|
-
categories
|
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
|
-
|
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,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 = {}));
|
@@ -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
|
}
|