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