cecon-interfaces 1.8.73 → 1.8.75
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 +5 -3
- package/dist/esm2022/payio/catalogs/entities/catalog-item.entity.mjs +5 -2
- package/dist/esm2022/payio/catalogs/entities/catalog-option-group.entity.mjs +6 -2
- package/dist/esm2022/payio/catalogs/entities/catalog-pizza.entity.mjs +3 -1
- package/dist/esm2022/payio/catalogs/entities/catalog.entity.mjs +4 -2
- package/dist/esm2022/payio/catalogs/enums/import-status.enum.mjs +9 -0
- package/dist/esm2022/payio/catalogs/enums/index.mjs +2 -1
- 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 +22 -1
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/payio/catalogs/entities/catalog-category.entity.d.ts +4 -2
- package/dist/payio/catalogs/entities/catalog-category.entity.js +2 -0
- 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 +5 -1
- package/dist/payio/catalogs/entities/catalog-option-group.entity.js +4 -0
- package/dist/payio/catalogs/entities/catalog-pizza.entity.d.ts +8 -6
- package/dist/payio/catalogs/entities/catalog-pizza.entity.js +2 -0
- package/dist/payio/catalogs/entities/catalog.entity.d.ts +5 -3
- package/dist/payio/catalogs/entities/catalog.entity.js +2 -0
- package/dist/payio/catalogs/enums/import-status.enum.d.ts +7 -0
- package/dist/payio/catalogs/enums/import-status.enum.js +11 -0
- package/dist/payio/catalogs/enums/index.d.ts +1 -0
- package/dist/payio/catalogs/enums/index.js +3 -1
- package/dist/payio/catalogs/interfaces/i-catalog-category.d.ts +3 -1
- package/dist/payio/catalogs/interfaces/i-catalog-item.d.ts +6 -3
- package/dist/payio/catalogs/interfaces/i-catalog-option-group.d.ts +5 -1
- package/dist/payio/catalogs/interfaces/i-catalog-pizza.d.ts +2 -0
- package/dist/payio/catalogs/interfaces/i-catalog.d.ts +8 -6
- package/package.json +1 -1
@@ -1,6 +1,8 @@
|
|
1
|
-
import { EPayioCatalogStatus, EPayioCategoryTemplate } from
|
2
|
-
import { IPayioCatalogCategory, IPayioCatalogItem, IPayioCatalogPizza } from
|
1
|
+
import { EPayioCatalogStatus, EPayioCategoryTemplate, EPayioImportStatus } from '../enums';
|
2
|
+
import { IPayioCatalogCategory, IPayioCatalogItem, IPayioCatalogPizza } from '../interfaces';
|
3
3
|
export declare class PayioCatalogCategoryEntity implements IPayioCatalogCategory {
|
4
|
+
autoImportStatus: EPayioImportStatus;
|
5
|
+
catalogId: string;
|
4
6
|
createdAt: Date;
|
5
7
|
id: string;
|
6
8
|
ifoodId: string | null;
|
@@ -5,6 +5,8 @@ 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.autoImportStatus = enums_1.EPayioImportStatus.DISABLED;
|
9
|
+
this.catalogId = '';
|
8
10
|
this.createdAt = new Date();
|
9
11
|
this.id = '';
|
10
12
|
this.ifoodId = null;
|
@@ -1,8 +1,11 @@
|
|
1
|
-
import { EPayioCatalogStatus } from
|
2
|
-
import { IPayioCatalogItem } from
|
3
|
-
import { PayioCatalogOptionGroupEntity } from
|
4
|
-
import { PayioCatalogShiftEntity } from
|
1
|
+
import { EPayioCatalogStatus, EPayioImportStatus } 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
|
+
autoImportStatus: EPayioImportStatus;
|
7
|
+
catalogId: string;
|
8
|
+
categoryId: string;
|
6
9
|
contextModifiers: string[];
|
7
10
|
createdAt: Date;
|
8
11
|
customizationModifiers: string[];
|
@@ -4,6 +4,9 @@ exports.PayioCatalogItemEntity = void 0;
|
|
4
4
|
var enums_1 = require("../enums");
|
5
5
|
var PayioCatalogItemEntity = /** @class */ (function () {
|
6
6
|
function PayioCatalogItemEntity(data) {
|
7
|
+
this.autoImportStatus = enums_1.EPayioImportStatus.DISABLED;
|
8
|
+
this.catalogId = '';
|
9
|
+
this.categoryId = '';
|
7
10
|
this.contextModifiers = [];
|
8
11
|
this.createdAt = new Date();
|
9
12
|
this.customizationModifiers = [];
|
@@ -1,11 +1,15 @@
|
|
1
|
-
import { EPayioCatalogStatus } from '../enums';
|
1
|
+
import { EPayioCatalogStatus, EPayioImportStatus } 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
|
+
autoImportStatus: EPayioImportStatus;
|
6
|
+
catalogId: string;
|
7
|
+
categoryId: string;
|
5
8
|
createdAt: Date;
|
6
9
|
id: string;
|
7
10
|
ifoodId: string | null;
|
8
11
|
index: number;
|
12
|
+
itemId: string;
|
9
13
|
max: number;
|
10
14
|
min: number;
|
11
15
|
name: string;
|
@@ -4,10 +4,14 @@ exports.PayioCatalogOptionGroupEntity = void 0;
|
|
4
4
|
var enums_1 = require("../enums");
|
5
5
|
var PayioCatalogOptionGroupEntity = /** @class */ (function () {
|
6
6
|
function PayioCatalogOptionGroupEntity(data) {
|
7
|
+
this.autoImportStatus = enums_1.EPayioImportStatus.DISABLED;
|
8
|
+
this.catalogId = '';
|
9
|
+
this.categoryId = '';
|
7
10
|
this.createdAt = new Date();
|
8
11
|
this.id = '';
|
9
12
|
this.ifoodId = null;
|
10
13
|
this.index = 0;
|
14
|
+
this.itemId = '';
|
11
15
|
this.max = 0;
|
12
16
|
this.min = 0;
|
13
17
|
this.name = '';
|
@@ -1,10 +1,12 @@
|
|
1
|
-
import { IPayioCatalogPizza } from
|
2
|
-
import { PayioCatalogPizzaCrustEntity } from
|
3
|
-
import { PayioCatalogPizzaEdgeEntity } from
|
4
|
-
import { PayioCatalogPizzaSizeEntity } from
|
5
|
-
import { PayioCatalogPizzaToppingEntity } from
|
6
|
-
import { PayioCatalogShiftEntity } from
|
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
7
|
export declare class PayioCatalogPizzaEntity implements IPayioCatalogPizza {
|
8
|
+
catalogId: string;
|
9
|
+
categoryId: string;
|
8
10
|
createdAt: Date;
|
9
11
|
crusts: PayioCatalogPizzaCrustEntity[];
|
10
12
|
edges: PayioCatalogPizzaEdgeEntity[];
|
@@ -3,6 +3,8 @@ 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.catalogId = '';
|
7
|
+
this.categoryId = '';
|
6
8
|
this.createdAt = new Date();
|
7
9
|
this.crusts = [];
|
8
10
|
this.edges = [];
|
@@ -1,8 +1,10 @@
|
|
1
|
-
import { EPayioCatalogContext, EPayioCatalogStatus } from
|
2
|
-
import {
|
3
|
-
import {
|
1
|
+
import { EPayioCatalogContext, EPayioCatalogStatus } from "../enums";
|
2
|
+
import { EPayioImportStatus } from "../enums/import-status.enum";
|
3
|
+
import { IPayioCatalog } from "../interfaces";
|
4
|
+
import { PayioCatalogCategoryEntity } from "./catalog-category.entity";
|
4
5
|
export declare class PayioCatalogEntity implements IPayioCatalog {
|
5
6
|
active: boolean;
|
7
|
+
autoImportStatus: EPayioImportStatus;
|
6
8
|
categories: PayioCatalogCategoryEntity[];
|
7
9
|
companyId: string;
|
8
10
|
containerId: string | null;
|
@@ -2,9 +2,11 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PayioCatalogEntity = void 0;
|
4
4
|
var enums_1 = require("../enums");
|
5
|
+
var import_status_enum_1 = require("../enums/import-status.enum");
|
5
6
|
var PayioCatalogEntity = /** @class */ (function () {
|
6
7
|
function PayioCatalogEntity(data) {
|
7
8
|
this.active = true;
|
9
|
+
this.autoImportStatus = import_status_enum_1.EPayioImportStatus.DISABLED;
|
8
10
|
this.categories = [];
|
9
11
|
this.companyId = '';
|
10
12
|
this.containerId = null;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EPayioImportStatus = void 0;
|
4
|
+
var EPayioImportStatus;
|
5
|
+
(function (EPayioImportStatus) {
|
6
|
+
EPayioImportStatus["DISABLED"] = "disabled";
|
7
|
+
EPayioImportStatus["ENABLED"] = "enabled";
|
8
|
+
EPayioImportStatus["PROCESSING"] = "processing";
|
9
|
+
EPayioImportStatus["COMPLETED"] = "completed";
|
10
|
+
EPayioImportStatus["FAILED"] = "failed";
|
11
|
+
})(EPayioImportStatus || (exports.EPayioImportStatus = EPayioImportStatus = {}));
|
@@ -1,9 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EPayioCategoryTemplate = exports.EPayioCatalogStatus = exports.EPayioCatalogContext = void 0;
|
3
|
+
exports.EPayioImportStatus = exports.EPayioCategoryTemplate = exports.EPayioCatalogStatus = exports.EPayioCatalogContext = void 0;
|
4
4
|
var catalog_context_enum_1 = require("./catalog-context.enum");
|
5
5
|
Object.defineProperty(exports, "EPayioCatalogContext", { enumerable: true, get: function () { return catalog_context_enum_1.EPayioCatalogContext; } });
|
6
6
|
var catalog_status_enum_1 = require("./catalog-status.enum");
|
7
7
|
Object.defineProperty(exports, "EPayioCatalogStatus", { enumerable: true, get: function () { return catalog_status_enum_1.EPayioCatalogStatus; } });
|
8
8
|
var category_template_enum_1 = require("./category-template.enum");
|
9
9
|
Object.defineProperty(exports, "EPayioCategoryTemplate", { enumerable: true, get: function () { return category_template_enum_1.EPayioCategoryTemplate; } });
|
10
|
+
var import_status_enum_1 = require("./import-status.enum");
|
11
|
+
Object.defineProperty(exports, "EPayioImportStatus", { enumerable: true, get: function () { return import_status_enum_1.EPayioImportStatus; } });
|
@@ -1,10 +1,12 @@
|
|
1
|
-
import { EPayioCatalogStatus, EPayioCategoryTemplate } from '../enums';
|
1
|
+
import { EPayioCatalogStatus, EPayioCategoryTemplate, EPayioImportStatus } from '../enums';
|
2
2
|
import { IPayioCatalogItem } from './i-catalog-item';
|
3
3
|
import { IPayioCatalogPizza } from './i-catalog-pizza';
|
4
4
|
export interface IPayioCatalogCategory {
|
5
|
+
autoImportStatus: EPayioImportStatus;
|
5
6
|
createdAt: Date;
|
6
7
|
id: string;
|
7
8
|
ifoodId: string | null;
|
9
|
+
catalogId: string;
|
8
10
|
index: number;
|
9
11
|
items?: IPayioCatalogItem[];
|
10
12
|
name: string;
|
@@ -1,7 +1,10 @@
|
|
1
|
-
import { EPayioCatalogStatus } from
|
2
|
-
import { IPayioCatalogOptionGroup } from
|
3
|
-
import { IPayioCatalogShift } from
|
1
|
+
import { EPayioCatalogStatus, EPayioImportStatus } from '../enums';
|
2
|
+
import { IPayioCatalogOptionGroup } from './i-catalog-option-group';
|
3
|
+
import { IPayioCatalogShift } from './i-catalog-shift';
|
4
4
|
export interface IPayioCatalogItem {
|
5
|
+
autoImportStatus: EPayioImportStatus;
|
6
|
+
catalogId: string;
|
7
|
+
categoryId: string;
|
5
8
|
contextModifiers: string[];
|
6
9
|
createdAt: Date;
|
7
10
|
customizationModifiers: string[];
|
@@ -1,9 +1,13 @@
|
|
1
|
-
import { EPayioCatalogStatus } from '../enums';
|
1
|
+
import { EPayioCatalogStatus, EPayioImportStatus } from '../enums';
|
2
2
|
import { IPayioCatalogOption } from './i-catalog-option';
|
3
3
|
export interface IPayioCatalogOptionGroup {
|
4
|
+
autoImportStatus: EPayioImportStatus;
|
4
5
|
createdAt: Date;
|
5
6
|
id: string;
|
6
7
|
ifoodId: string | null;
|
8
|
+
catalogId: string;
|
9
|
+
categoryId: string;
|
10
|
+
itemId: string;
|
7
11
|
index: number;
|
8
12
|
max: number;
|
9
13
|
min: number;
|
@@ -9,6 +9,8 @@ export interface IPayioCatalogPizza {
|
|
9
9
|
edges: IPayioCatalogPizzaEdge[];
|
10
10
|
id: string;
|
11
11
|
ifoodId: string | null;
|
12
|
+
catalogId: string;
|
13
|
+
categoryId: string;
|
12
14
|
shifts: IPayioCatalogShift[];
|
13
15
|
sizes: IPayioCatalogPizzaSize[];
|
14
16
|
toppings: IPayioCatalogPizzaTopping[];
|
@@ -1,17 +1,19 @@
|
|
1
|
-
import { EPayioCatalogContext, EPayioCatalogStatus } from
|
2
|
-
import {
|
1
|
+
import { EPayioCatalogContext, EPayioCatalogStatus } from "../enums";
|
2
|
+
import { EPayioImportStatus } from "../enums/import-status.enum";
|
3
|
+
import { IPayioCatalogCategory } from "./i-catalog-category";
|
3
4
|
export interface IPayioCatalog {
|
4
5
|
active: boolean;
|
6
|
+
autoImportStatus: EPayioImportStatus;
|
7
|
+
categories: IPayioCatalogCategory[];
|
5
8
|
companyId: string;
|
6
9
|
containerId: string | null;
|
10
|
+
context: EPayioCatalogContext[];
|
7
11
|
createdAt: Date;
|
8
12
|
id: string;
|
13
|
+
ifoodId: string | null;
|
9
14
|
name: string;
|
10
15
|
sandbox: boolean;
|
16
|
+
status: EPayioCatalogStatus;
|
11
17
|
tags: string[];
|
12
|
-
ifoodId: string | null;
|
13
18
|
updatedAt: Date;
|
14
|
-
status: EPayioCatalogStatus;
|
15
|
-
context: EPayioCatalogContext[];
|
16
|
-
categories: IPayioCatalogCategory[];
|
17
19
|
}
|