cecon-interfaces 1.8.40 → 1.8.41
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 +22 -0
- package/dist/esm2022/payio/catalogs/entities/catalog-item.entity.mjs +30 -0
- package/dist/esm2022/payio/catalogs/entities/catalog-option-group.entity.mjs +21 -0
- package/dist/esm2022/payio/catalogs/entities/catalog-option.entity.mjs +23 -0
- package/dist/esm2022/payio/catalogs/entities/catalog-pizza-crust.entity.mjs +20 -0
- package/dist/esm2022/payio/catalogs/entities/catalog-pizza-edge.entity.mjs +19 -0
- package/dist/esm2022/payio/catalogs/entities/catalog-pizza-size.entity.mjs +21 -0
- package/dist/esm2022/payio/catalogs/entities/catalog-pizza-topping.entity.mjs +24 -0
- package/dist/esm2022/payio/catalogs/entities/catalog-pizza.entity.mjs +18 -0
- package/dist/esm2022/payio/catalogs/entities/catalog-shift.entity.mjs +21 -0
- package/dist/esm2022/payio/catalogs/entities/catalog.entity.mjs +24 -0
- package/dist/esm2022/payio/catalogs/entities/index.mjs +12 -0
- package/dist/esm2022/payio/catalogs/enums/catalog-status.enum.mjs +10 -0
- package/dist/esm2022/payio/catalogs/enums/catalog-template.enum.mjs +8 -0
- package/dist/esm2022/payio/catalogs/enums/index.mjs +3 -0
- package/dist/esm2022/payio/catalogs/index.mjs +4 -0
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-category.mjs +2 -0
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-item.mjs +2 -0
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-option-group.mjs +2 -0
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-option.mjs +2 -0
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-pizza-crust.mjs +2 -0
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-pizza-edge.mjs +2 -0
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-pizza-size.mjs +2 -0
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-pizza-topping.mjs +2 -0
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-pizza.mjs +2 -0
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog-shift.mjs +2 -0
- package/dist/esm2022/payio/catalogs/interfaces/i-catalog.mjs +2 -0
- package/dist/esm2022/payio/catalogs/interfaces/index.mjs +2 -0
- package/dist/esm2022/payio/index.mjs +2 -1
- package/dist/fesm2022/cecon-interfaces.mjs +252 -1
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/payio/catalogs/entities/catalog-category.entity.d.ts +13 -0
- package/dist/payio/catalogs/entities/catalog-category.entity.js +26 -0
- package/dist/payio/catalogs/entities/catalog-item.entity.d.ts +27 -0
- package/dist/payio/catalogs/entities/catalog-item.entity.js +34 -0
- package/dist/payio/catalogs/entities/catalog-option-group.entity.d.ts +14 -0
- package/dist/payio/catalogs/entities/catalog-option-group.entity.js +25 -0
- package/dist/payio/catalogs/entities/catalog-option.entity.d.ts +17 -0
- package/dist/payio/catalogs/entities/catalog-option.entity.js +27 -0
- package/dist/payio/catalogs/entities/catalog-pizza-crust.entity.d.ts +14 -0
- package/dist/payio/catalogs/entities/catalog-pizza-crust.entity.js +24 -0
- package/dist/payio/catalogs/entities/catalog-pizza-edge.entity.d.ts +13 -0
- package/dist/payio/catalogs/entities/catalog-pizza-edge.entity.js +23 -0
- package/dist/payio/catalogs/entities/catalog-pizza-size.entity.d.ts +13 -0
- package/dist/payio/catalogs/entities/catalog-pizza-size.entity.js +25 -0
- package/dist/payio/catalogs/entities/catalog-pizza-topping.entity.d.ts +20 -0
- package/dist/payio/catalogs/entities/catalog-pizza-topping.entity.js +28 -0
- package/dist/payio/catalogs/entities/catalog-pizza.entity.d.ts +15 -0
- package/dist/payio/catalogs/entities/catalog-pizza.entity.js +22 -0
- package/dist/payio/catalogs/entities/catalog-shift.entity.d.ts +13 -0
- package/dist/payio/catalogs/entities/catalog-shift.entity.js +25 -0
- package/dist/payio/catalogs/entities/catalog.entity.d.ts +17 -0
- package/dist/payio/catalogs/entities/catalog.entity.js +27 -0
- package/dist/payio/catalogs/entities/index.d.ts +11 -0
- package/dist/payio/catalogs/entities/index.js +25 -0
- package/dist/payio/catalogs/enums/catalog-status.enum.d.ts +5 -0
- package/dist/payio/catalogs/enums/catalog-status.enum.js +12 -0
- package/dist/payio/catalogs/enums/catalog-template.enum.d.ts +4 -0
- package/dist/payio/catalogs/enums/catalog-template.enum.js +10 -0
- package/dist/payio/catalogs/enums/index.d.ts +2 -0
- package/dist/payio/catalogs/enums/index.js +7 -0
- package/dist/payio/catalogs/index.d.ts +3 -0
- package/dist/payio/catalogs/index.js +19 -0
- package/dist/payio/catalogs/interfaces/i-catalog-category.d.ts +13 -0
- package/dist/payio/catalogs/interfaces/i-catalog-category.js +2 -0
- package/dist/payio/catalogs/interfaces/i-catalog-item.d.ts +25 -0
- package/dist/payio/catalogs/interfaces/i-catalog-item.js +2 -0
- package/dist/payio/catalogs/interfaces/i-catalog-option-group.d.ts +12 -0
- package/dist/payio/catalogs/interfaces/i-catalog-option-group.js +2 -0
- package/dist/payio/catalogs/interfaces/i-catalog-option.d.ts +15 -0
- package/dist/payio/catalogs/interfaces/i-catalog-option.js +2 -0
- package/dist/payio/catalogs/interfaces/i-catalog-pizza-crust.d.ts +12 -0
- package/dist/payio/catalogs/interfaces/i-catalog-pizza-crust.js +2 -0
- package/dist/payio/catalogs/interfaces/i-catalog-pizza-edge.d.ts +11 -0
- package/dist/payio/catalogs/interfaces/i-catalog-pizza-edge.js +2 -0
- package/dist/payio/catalogs/interfaces/i-catalog-pizza-size.d.ts +11 -0
- package/dist/payio/catalogs/interfaces/i-catalog-pizza-size.js +2 -0
- package/dist/payio/catalogs/interfaces/i-catalog-pizza-topping.d.ts +18 -0
- package/dist/payio/catalogs/interfaces/i-catalog-pizza-topping.js +2 -0
- package/dist/payio/catalogs/interfaces/i-catalog-pizza.d.ts +13 -0
- package/dist/payio/catalogs/interfaces/i-catalog-pizza.js +2 -0
- package/dist/payio/catalogs/interfaces/i-catalog-shift.d.ts +11 -0
- package/dist/payio/catalogs/interfaces/i-catalog-shift.js +2 -0
- package/dist/payio/catalogs/interfaces/i-catalog.d.ts +15 -0
- package/dist/payio/catalogs/interfaces/i-catalog.js +2 -0
- package/dist/payio/catalogs/interfaces/index.d.ts +11 -0
- package/dist/payio/catalogs/interfaces/index.js +2 -0
- package/dist/payio/index.d.ts +1 -0
- package/dist/payio/index.js +1 -0
- package/package.json +1 -1
@@ -0,0 +1,13 @@
|
|
1
|
+
import { EPayioCatalogStatus, EPayioCatalogTemplate } from '../enums';
|
2
|
+
import { IPayioCatalogCategory, IPayioCatalogItem, IPayioCatalogPizza } from '../interfaces';
|
3
|
+
export declare class PayioCatalogCategoryEntity implements IPayioCatalogCategory {
|
4
|
+
id: string;
|
5
|
+
index: number;
|
6
|
+
items: IPayioCatalogItem[];
|
7
|
+
name: string;
|
8
|
+
pizzas: IPayioCatalogPizza;
|
9
|
+
sequence: number;
|
10
|
+
status: EPayioCatalogStatus;
|
11
|
+
template: EPayioCatalogTemplate;
|
12
|
+
constructor(data?: Partial<PayioCatalogCategoryEntity>);
|
13
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCatalogCategoryEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var catalog_pizza_entity_1 = require("./catalog-pizza.entity");
|
6
|
+
var PayioCatalogCategoryEntity = /** @class */ (function () {
|
7
|
+
function PayioCatalogCategoryEntity(data) {
|
8
|
+
this.id = '';
|
9
|
+
this.index = 0;
|
10
|
+
this.items = [];
|
11
|
+
this.name = '';
|
12
|
+
this.pizzas = new catalog_pizza_entity_1.PayioCatalogPizzaEntity();
|
13
|
+
this.sequence = 0;
|
14
|
+
this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
|
15
|
+
this.template = enums_1.EPayioCatalogTemplate.DEFAULT;
|
16
|
+
if (data) {
|
17
|
+
for (var key in data) {
|
18
|
+
if (data.hasOwnProperty(key) && key in this) {
|
19
|
+
this[key] = data[key];
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
return PayioCatalogCategoryEntity;
|
25
|
+
}());
|
26
|
+
exports.PayioCatalogCategoryEntity = PayioCatalogCategoryEntity;
|
@@ -0,0 +1,27 @@
|
|
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
|
+
export declare class PayioCatalogItemEntity implements IPayioCatalogItem {
|
6
|
+
contextModifiers: string[];
|
7
|
+
customizationModifiers: string[];
|
8
|
+
description: string;
|
9
|
+
dietaryRestrictions: string[];
|
10
|
+
externalCode: string;
|
11
|
+
hasOptionGroups: boolean;
|
12
|
+
id: string;
|
13
|
+
imagePath: string;
|
14
|
+
index: number;
|
15
|
+
name: string;
|
16
|
+
optionGroups: PayioCatalogOptionGroupEntity[];
|
17
|
+
price: {
|
18
|
+
value: number;
|
19
|
+
originalValue: number;
|
20
|
+
};
|
21
|
+
productId: string;
|
22
|
+
sequence: number;
|
23
|
+
serving: string;
|
24
|
+
shifts: PayioCatalogShiftEntity[];
|
25
|
+
status: EPayioCatalogStatus;
|
26
|
+
constructor(data?: Partial<PayioCatalogItemEntity>);
|
27
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCatalogItemEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var PayioCatalogItemEntity = /** @class */ (function () {
|
6
|
+
function PayioCatalogItemEntity(data) {
|
7
|
+
this.contextModifiers = [];
|
8
|
+
this.customizationModifiers = [];
|
9
|
+
this.description = '';
|
10
|
+
this.dietaryRestrictions = [];
|
11
|
+
this.externalCode = '';
|
12
|
+
this.hasOptionGroups = false;
|
13
|
+
this.id = '';
|
14
|
+
this.imagePath = '';
|
15
|
+
this.index = 0;
|
16
|
+
this.name = '';
|
17
|
+
this.optionGroups = [];
|
18
|
+
this.price = { value: 0, originalValue: 0 };
|
19
|
+
this.productId = '';
|
20
|
+
this.sequence = 0;
|
21
|
+
this.serving = '';
|
22
|
+
this.shifts = [];
|
23
|
+
this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
|
24
|
+
if (data) {
|
25
|
+
for (var key in data) {
|
26
|
+
if (data.hasOwnProperty(key) && key in this) {
|
27
|
+
this[key] = data[key];
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
return PayioCatalogItemEntity;
|
33
|
+
}());
|
34
|
+
exports.PayioCatalogItemEntity = PayioCatalogItemEntity;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { EPayioCatalogStatus } from '../enums';
|
2
|
+
import { IPayioCatalogOptionGroup } from '../interfaces';
|
3
|
+
import { PayioCatalogOptionEntity } from './catalog-option.entity';
|
4
|
+
export declare class PayioCatalogOptionGroupEntity implements IPayioCatalogOptionGroup {
|
5
|
+
id: string;
|
6
|
+
index: number;
|
7
|
+
max: number;
|
8
|
+
min: number;
|
9
|
+
name: string;
|
10
|
+
options: PayioCatalogOptionEntity[];
|
11
|
+
sequence: number;
|
12
|
+
status: EPayioCatalogStatus;
|
13
|
+
constructor(data?: Partial<PayioCatalogOptionGroupEntity>);
|
14
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCatalogOptionGroupEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var PayioCatalogOptionGroupEntity = /** @class */ (function () {
|
6
|
+
function PayioCatalogOptionGroupEntity(data) {
|
7
|
+
this.id = '';
|
8
|
+
this.index = 0;
|
9
|
+
this.max = 0;
|
10
|
+
this.min = 0;
|
11
|
+
this.name = '';
|
12
|
+
this.options = [];
|
13
|
+
this.sequence = 0;
|
14
|
+
this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
|
15
|
+
if (data) {
|
16
|
+
for (var key in data) {
|
17
|
+
if (data.hasOwnProperty(key) && key in this) {
|
18
|
+
this[key] = data[key];
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
return PayioCatalogOptionGroupEntity;
|
24
|
+
}());
|
25
|
+
exports.PayioCatalogOptionGroupEntity = PayioCatalogOptionGroupEntity;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { EPayioCatalogStatus } from '../enums';
|
2
|
+
import { IPayioCatalogOption } from '../interfaces/i-catalog-option';
|
3
|
+
export declare class PayioCatalogOptionEntity implements IPayioCatalogOption {
|
4
|
+
description: string;
|
5
|
+
externalCode: string;
|
6
|
+
id: string;
|
7
|
+
imagePath: string;
|
8
|
+
index: number;
|
9
|
+
name: string;
|
10
|
+
price: {
|
11
|
+
value: number;
|
12
|
+
};
|
13
|
+
productId: string;
|
14
|
+
sequence: number;
|
15
|
+
status: EPayioCatalogStatus;
|
16
|
+
constructor(data?: Partial<PayioCatalogOptionEntity>);
|
17
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCatalogOptionEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var PayioCatalogOptionEntity = /** @class */ (function () {
|
6
|
+
function PayioCatalogOptionEntity(data) {
|
7
|
+
this.description = '';
|
8
|
+
this.externalCode = '';
|
9
|
+
this.id = '';
|
10
|
+
this.imagePath = '';
|
11
|
+
this.index = 0;
|
12
|
+
this.name = '';
|
13
|
+
this.price = { value: 0 };
|
14
|
+
this.productId = '';
|
15
|
+
this.sequence = 0;
|
16
|
+
this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
|
17
|
+
if (data) {
|
18
|
+
for (var key in data) {
|
19
|
+
if (data.hasOwnProperty(key) && key in this) {
|
20
|
+
this[key] = data[key];
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
return PayioCatalogOptionEntity;
|
26
|
+
}());
|
27
|
+
exports.PayioCatalogOptionEntity = PayioCatalogOptionEntity;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { EPayioCatalogStatus } from '../enums';
|
2
|
+
import { IPayioCatalogPizzaCrust } from '../interfaces';
|
3
|
+
export declare class PayioCatalogPizzaCrustEntity implements IPayioCatalogPizzaCrust {
|
4
|
+
externalCode: string;
|
5
|
+
id: string;
|
6
|
+
index: number;
|
7
|
+
name: string;
|
8
|
+
price: {
|
9
|
+
value: number;
|
10
|
+
};
|
11
|
+
sequence: number;
|
12
|
+
status: EPayioCatalogStatus;
|
13
|
+
constructor(data?: Partial<PayioCatalogPizzaCrustEntity>);
|
14
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCatalogPizzaCrustEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var PayioCatalogPizzaCrustEntity = /** @class */ (function () {
|
6
|
+
function PayioCatalogPizzaCrustEntity(data) {
|
7
|
+
this.externalCode = '';
|
8
|
+
this.id = '';
|
9
|
+
this.index = 0;
|
10
|
+
this.name = '';
|
11
|
+
this.price = { value: 0 };
|
12
|
+
this.sequence = 0;
|
13
|
+
this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
|
14
|
+
if (data) {
|
15
|
+
for (var key in data) {
|
16
|
+
if (data.hasOwnProperty(key) && key in this) {
|
17
|
+
this[key] = data[key];
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
return PayioCatalogPizzaCrustEntity;
|
23
|
+
}());
|
24
|
+
exports.PayioCatalogPizzaCrustEntity = PayioCatalogPizzaCrustEntity;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { EPayioCatalogStatus } from '../enums';
|
2
|
+
import { IPayioCatalogPizzaEdge } from '../interfaces';
|
3
|
+
export declare class PayioCatalogPizzaEdgeEntity implements IPayioCatalogPizzaEdge {
|
4
|
+
id: string;
|
5
|
+
index: number;
|
6
|
+
name: string;
|
7
|
+
price: {
|
8
|
+
value: number;
|
9
|
+
};
|
10
|
+
sequence: number;
|
11
|
+
status: EPayioCatalogStatus;
|
12
|
+
constructor(data?: Partial<PayioCatalogPizzaEdgeEntity>);
|
13
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCatalogPizzaEdgeEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var PayioCatalogPizzaEdgeEntity = /** @class */ (function () {
|
6
|
+
function PayioCatalogPizzaEdgeEntity(data) {
|
7
|
+
this.id = '';
|
8
|
+
this.index = 0;
|
9
|
+
this.name = '';
|
10
|
+
this.price = { value: 0 };
|
11
|
+
this.sequence = 0;
|
12
|
+
this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
|
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 PayioCatalogPizzaEdgeEntity;
|
22
|
+
}());
|
23
|
+
exports.PayioCatalogPizzaEdgeEntity = PayioCatalogPizzaEdgeEntity;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { EPayioCatalogStatus } from '../enums';
|
2
|
+
import { IPayioCatalogPizzaSize } from '../interfaces';
|
3
|
+
export declare class PayioCatalogPizzaSizeEntity implements IPayioCatalogPizzaSize {
|
4
|
+
acceptedFractions: number[];
|
5
|
+
externalCode: string;
|
6
|
+
id: string;
|
7
|
+
index: number;
|
8
|
+
name: string;
|
9
|
+
sequence: number;
|
10
|
+
slices: number;
|
11
|
+
status: EPayioCatalogStatus;
|
12
|
+
constructor(data?: Partial<PayioCatalogPizzaSizeEntity>);
|
13
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCatalogPizzaSizeEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var PayioCatalogPizzaSizeEntity = /** @class */ (function () {
|
6
|
+
function PayioCatalogPizzaSizeEntity(data) {
|
7
|
+
this.acceptedFractions = [];
|
8
|
+
this.externalCode = '';
|
9
|
+
this.id = '';
|
10
|
+
this.index = 0;
|
11
|
+
this.name = '';
|
12
|
+
this.sequence = 0;
|
13
|
+
this.slices = 0;
|
14
|
+
this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
|
15
|
+
if (data) {
|
16
|
+
for (var key in data) {
|
17
|
+
if (data.hasOwnProperty(key) && key in this) {
|
18
|
+
this[key] = data[key];
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
return PayioCatalogPizzaSizeEntity;
|
24
|
+
}());
|
25
|
+
exports.PayioCatalogPizzaSizeEntity = PayioCatalogPizzaSizeEntity;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { EPayioCatalogStatus } from '../enums';
|
2
|
+
import { IPayioCatalogPizzaTopping } from '../interfaces';
|
3
|
+
export declare class PayioCatalogPizzaToppingEntity implements IPayioCatalogPizzaTopping {
|
4
|
+
description: string;
|
5
|
+
dietaryRestrictions: string[];
|
6
|
+
externalCode: string;
|
7
|
+
id: string;
|
8
|
+
image: string;
|
9
|
+
imagePath: string;
|
10
|
+
index: number;
|
11
|
+
name: string;
|
12
|
+
prices: {
|
13
|
+
[key: string]: {
|
14
|
+
value: number;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
sequence: number;
|
18
|
+
status: EPayioCatalogStatus;
|
19
|
+
constructor(data?: Partial<PayioCatalogPizzaToppingEntity>);
|
20
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCatalogPizzaToppingEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var PayioCatalogPizzaToppingEntity = /** @class */ (function () {
|
6
|
+
function PayioCatalogPizzaToppingEntity(data) {
|
7
|
+
this.description = '';
|
8
|
+
this.dietaryRestrictions = [];
|
9
|
+
this.externalCode = '';
|
10
|
+
this.id = '';
|
11
|
+
this.image = '';
|
12
|
+
this.imagePath = '';
|
13
|
+
this.index = 0;
|
14
|
+
this.name = '';
|
15
|
+
this.prices = {};
|
16
|
+
this.sequence = 0;
|
17
|
+
this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
|
18
|
+
if (data) {
|
19
|
+
for (var key in data) {
|
20
|
+
if (data.hasOwnProperty(key) && key in this) {
|
21
|
+
this[key] = data[key];
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
return PayioCatalogPizzaToppingEntity;
|
27
|
+
}());
|
28
|
+
exports.PayioCatalogPizzaToppingEntity = PayioCatalogPizzaToppingEntity;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { IPayioCatalogPizza } from '../interfaces';
|
2
|
+
import { PayioCatalogPizzaCrustEntity } from './catalog-pizza-crust.entity';
|
3
|
+
import { PayioCatalogPizzaEdgeEntity } from './catalog-pizza-edge.entity';
|
4
|
+
import { PayioCatalogPizzaSizeEntity } from './catalog-pizza-size.entity';
|
5
|
+
import { PayioCatalogPizzaToppingEntity } from './catalog-pizza-topping.entity';
|
6
|
+
import { PayioCatalogShiftEntity } from './catalog-shift.entity';
|
7
|
+
export declare class PayioCatalogPizzaEntity implements IPayioCatalogPizza {
|
8
|
+
crusts: PayioCatalogPizzaCrustEntity[];
|
9
|
+
edges: PayioCatalogPizzaEdgeEntity[];
|
10
|
+
id: string;
|
11
|
+
shifts: PayioCatalogShiftEntity[];
|
12
|
+
sizes: PayioCatalogPizzaSizeEntity[];
|
13
|
+
toppings: PayioCatalogPizzaToppingEntity[];
|
14
|
+
constructor(data?: Partial<PayioCatalogPizzaEntity>);
|
15
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCatalogPizzaEntity = void 0;
|
4
|
+
var PayioCatalogPizzaEntity = /** @class */ (function () {
|
5
|
+
function PayioCatalogPizzaEntity(data) {
|
6
|
+
this.crusts = [];
|
7
|
+
this.edges = [];
|
8
|
+
this.id = '';
|
9
|
+
this.shifts = [];
|
10
|
+
this.sizes = [];
|
11
|
+
this.toppings = [];
|
12
|
+
if (data) {
|
13
|
+
for (var key in data) {
|
14
|
+
if (data.hasOwnProperty(key) && key in this) {
|
15
|
+
this[key] = data[key];
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
return PayioCatalogPizzaEntity;
|
21
|
+
}());
|
22
|
+
exports.PayioCatalogPizzaEntity = PayioCatalogPizzaEntity;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { IPayioCatalogShift } from '../interfaces';
|
2
|
+
export declare class PayioCatalogShiftEntity implements IPayioCatalogShift {
|
3
|
+
endTime: string;
|
4
|
+
friday: boolean;
|
5
|
+
monday: boolean;
|
6
|
+
saturday: boolean;
|
7
|
+
startTime: string;
|
8
|
+
sunday: boolean;
|
9
|
+
thursday: boolean;
|
10
|
+
tuesday: boolean;
|
11
|
+
wednesday: boolean;
|
12
|
+
constructor(data?: Partial<PayioCatalogShiftEntity>);
|
13
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCatalogShiftEntity = void 0;
|
4
|
+
var PayioCatalogShiftEntity = /** @class */ (function () {
|
5
|
+
function PayioCatalogShiftEntity(data) {
|
6
|
+
this.endTime = '23:59';
|
7
|
+
this.friday = true;
|
8
|
+
this.monday = true;
|
9
|
+
this.saturday = true;
|
10
|
+
this.startTime = '00:00';
|
11
|
+
this.sunday = true;
|
12
|
+
this.thursday = true;
|
13
|
+
this.tuesday = true;
|
14
|
+
this.wednesday = true;
|
15
|
+
if (data) {
|
16
|
+
for (var key in data) {
|
17
|
+
if (data.hasOwnProperty(key) && key in this) {
|
18
|
+
this[key] = data[key];
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
return PayioCatalogShiftEntity;
|
24
|
+
}());
|
25
|
+
exports.PayioCatalogShiftEntity = PayioCatalogShiftEntity;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { EPayioCatalogStatus } from '../enums';
|
2
|
+
import { IPayioCatalog } from '../interfaces';
|
3
|
+
import { PayioCatalogCategoryEntity } from './catalog-category.entity';
|
4
|
+
export declare class PayioCatalogEntity implements IPayioCatalog {
|
5
|
+
active: boolean;
|
6
|
+
categories?: PayioCatalogCategoryEntity[] | undefined;
|
7
|
+
companyId: string;
|
8
|
+
containerId: string | null;
|
9
|
+
context: 'INDOOR' | 'DEFAULT'[];
|
10
|
+
createdAt: Date;
|
11
|
+
id: string;
|
12
|
+
name: string;
|
13
|
+
sandbox: boolean;
|
14
|
+
status: EPayioCatalogStatus;
|
15
|
+
updatedAt: Date;
|
16
|
+
constructor(data?: Partial<PayioCatalogEntity>);
|
17
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCatalogEntity = void 0;
|
4
|
+
var enums_1 = require("../enums");
|
5
|
+
var PayioCatalogEntity = /** @class */ (function () {
|
6
|
+
function PayioCatalogEntity(data) {
|
7
|
+
this.active = true;
|
8
|
+
this.companyId = '';
|
9
|
+
this.containerId = null;
|
10
|
+
this.context = ['DEFAULT'];
|
11
|
+
this.createdAt = new Date();
|
12
|
+
this.id = '';
|
13
|
+
this.name = '';
|
14
|
+
this.sandbox = false;
|
15
|
+
this.status = enums_1.EPayioCatalogStatus.AVAILABLE;
|
16
|
+
this.updatedAt = new Date();
|
17
|
+
if (data) {
|
18
|
+
for (var key in data) {
|
19
|
+
if (data.hasOwnProperty(key) && key in this) {
|
20
|
+
this[key] = data[key];
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
return PayioCatalogEntity;
|
26
|
+
}());
|
27
|
+
exports.PayioCatalogEntity = PayioCatalogEntity;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export { PayioCatalogCategoryEntity } from './catalog-category.entity';
|
2
|
+
export { PayioCatalogItemEntity } from './catalog-item.entity';
|
3
|
+
export { PayioCatalogOptionGroupEntity } from './catalog-option-group.entity';
|
4
|
+
export { PayioCatalogOptionEntity } from './catalog-option.entity';
|
5
|
+
export { PayioCatalogPizzaCrustEntity } from './catalog-pizza-crust.entity';
|
6
|
+
export { PayioCatalogPizzaEdgeEntity } from './catalog-pizza-edge.entity';
|
7
|
+
export { PayioCatalogPizzaSizeEntity } from './catalog-pizza-size.entity';
|
8
|
+
export { PayioCatalogPizzaToppingEntity } from './catalog-pizza-topping.entity';
|
9
|
+
export { PayioCatalogPizzaEntity } from './catalog-pizza.entity';
|
10
|
+
export { PayioCatalogShiftEntity } from './catalog-shift.entity';
|
11
|
+
export { PayioCatalogEntity } from './catalog.entity';
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCatalogEntity = exports.PayioCatalogShiftEntity = exports.PayioCatalogPizzaEntity = exports.PayioCatalogPizzaToppingEntity = exports.PayioCatalogPizzaSizeEntity = exports.PayioCatalogPizzaEdgeEntity = exports.PayioCatalogPizzaCrustEntity = exports.PayioCatalogOptionEntity = exports.PayioCatalogOptionGroupEntity = exports.PayioCatalogItemEntity = exports.PayioCatalogCategoryEntity = void 0;
|
4
|
+
var catalog_category_entity_1 = require("./catalog-category.entity");
|
5
|
+
Object.defineProperty(exports, "PayioCatalogCategoryEntity", { enumerable: true, get: function () { return catalog_category_entity_1.PayioCatalogCategoryEntity; } });
|
6
|
+
var catalog_item_entity_1 = require("./catalog-item.entity");
|
7
|
+
Object.defineProperty(exports, "PayioCatalogItemEntity", { enumerable: true, get: function () { return catalog_item_entity_1.PayioCatalogItemEntity; } });
|
8
|
+
var catalog_option_group_entity_1 = require("./catalog-option-group.entity");
|
9
|
+
Object.defineProperty(exports, "PayioCatalogOptionGroupEntity", { enumerable: true, get: function () { return catalog_option_group_entity_1.PayioCatalogOptionGroupEntity; } });
|
10
|
+
var catalog_option_entity_1 = require("./catalog-option.entity");
|
11
|
+
Object.defineProperty(exports, "PayioCatalogOptionEntity", { enumerable: true, get: function () { return catalog_option_entity_1.PayioCatalogOptionEntity; } });
|
12
|
+
var catalog_pizza_crust_entity_1 = require("./catalog-pizza-crust.entity");
|
13
|
+
Object.defineProperty(exports, "PayioCatalogPizzaCrustEntity", { enumerable: true, get: function () { return catalog_pizza_crust_entity_1.PayioCatalogPizzaCrustEntity; } });
|
14
|
+
var catalog_pizza_edge_entity_1 = require("./catalog-pizza-edge.entity");
|
15
|
+
Object.defineProperty(exports, "PayioCatalogPizzaEdgeEntity", { enumerable: true, get: function () { return catalog_pizza_edge_entity_1.PayioCatalogPizzaEdgeEntity; } });
|
16
|
+
var catalog_pizza_size_entity_1 = require("./catalog-pizza-size.entity");
|
17
|
+
Object.defineProperty(exports, "PayioCatalogPizzaSizeEntity", { enumerable: true, get: function () { return catalog_pizza_size_entity_1.PayioCatalogPizzaSizeEntity; } });
|
18
|
+
var catalog_pizza_topping_entity_1 = require("./catalog-pizza-topping.entity");
|
19
|
+
Object.defineProperty(exports, "PayioCatalogPizzaToppingEntity", { enumerable: true, get: function () { return catalog_pizza_topping_entity_1.PayioCatalogPizzaToppingEntity; } });
|
20
|
+
var catalog_pizza_entity_1 = require("./catalog-pizza.entity");
|
21
|
+
Object.defineProperty(exports, "PayioCatalogPizzaEntity", { enumerable: true, get: function () { return catalog_pizza_entity_1.PayioCatalogPizzaEntity; } });
|
22
|
+
var catalog_shift_entity_1 = require("./catalog-shift.entity");
|
23
|
+
Object.defineProperty(exports, "PayioCatalogShiftEntity", { enumerable: true, get: function () { return catalog_shift_entity_1.PayioCatalogShiftEntity; } });
|
24
|
+
var catalog_entity_1 = require("./catalog.entity");
|
25
|
+
Object.defineProperty(exports, "PayioCatalogEntity", { enumerable: true, get: function () { return catalog_entity_1.PayioCatalogEntity; } });
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EPayioCatalogStatus = void 0;
|
4
|
+
var EPayioCatalogStatus;
|
5
|
+
(function (EPayioCatalogStatus) {
|
6
|
+
// #region Properties (1)
|
7
|
+
// Usuário ou sistema que gerou a chave
|
8
|
+
EPayioCatalogStatus["AVAILABLE"] = "AVAILABLE";
|
9
|
+
EPayioCatalogStatus["INACTIVE"] = "INACTIVE";
|
10
|
+
EPayioCatalogStatus["UNAVAILABLE"] = "UNAVAILABLE";
|
11
|
+
// #endregion Properties (1)
|
12
|
+
})(EPayioCatalogStatus || (exports.EPayioCatalogStatus = EPayioCatalogStatus = {}));
|
@@ -0,0 +1,10 @@
|
|
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 = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EPayioCatalogTemplate = exports.EPayioCatalogStatus = void 0;
|
4
|
+
var catalog_status_enum_1 = require("./catalog-status.enum");
|
5
|
+
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; } });
|
@@ -0,0 +1,19 @@
|
|
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("./enums"), exports);
|
19
|
+
__exportStar(require("./interfaces"), exports);
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { EPayioCatalogStatus, EPayioCatalogTemplate } from '../enums';
|
2
|
+
import { IPayioCatalogItem } from './i-catalog-item';
|
3
|
+
import { IPayioCatalogPizza } from './i-catalog-pizza';
|
4
|
+
export interface IPayioCatalogCategory {
|
5
|
+
id: string;
|
6
|
+
name: string;
|
7
|
+
status: EPayioCatalogStatus;
|
8
|
+
sequence: number;
|
9
|
+
index: number;
|
10
|
+
template: EPayioCatalogTemplate;
|
11
|
+
pizzas: IPayioCatalogPizza;
|
12
|
+
items: IPayioCatalogItem[];
|
13
|
+
}
|