cecon-interfaces 1.8.60 → 1.8.62
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/big-chef-config/entities/config-operation.entity.mjs +32 -0
- package/dist/esm2022/payio/big-chef-config/entities/config-printer.entity.mjs +20 -0
- package/dist/esm2022/payio/big-chef-config/entities/config-scale.entity.mjs +18 -0
- package/dist/esm2022/payio/big-chef-config/entities/config.entity.mjs +22 -0
- package/dist/esm2022/payio/big-chef-config/entities/index.mjs +5 -0
- package/dist/esm2022/payio/big-chef-config/index.mjs +3 -0
- package/dist/esm2022/payio/big-chef-config/interfaces/i-chef-config-operation.mjs +2 -0
- package/dist/esm2022/payio/big-chef-config/interfaces/i-chef-config-printer.mjs +2 -0
- package/dist/esm2022/payio/big-chef-config/interfaces/i-chef-config-scale.mjs +2 -0
- package/dist/esm2022/payio/big-chef-config/interfaces/i-chef-config.mjs +2 -0
- package/dist/esm2022/payio/big-chef-config/interfaces/index.mjs +2 -0
- package/dist/esm2022/payio/index.mjs +2 -1
- package/dist/esm2022/payio/orders/entities/order.entity.mjs +4 -6
- package/dist/esm2022/payio/orders/interfaces/i-order.mjs +1 -1
- package/dist/esm2022/resume/entities/general-resume-total.entity.mjs +2 -2
- package/dist/esm2022/resume/interfaces/i-resume-general.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +92 -5
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/payio/big-chef-config/entities/config-operation.entity.d.ts +24 -0
- package/dist/payio/big-chef-config/entities/config-operation.entity.js +36 -0
- package/dist/payio/big-chef-config/entities/config-printer.entity.d.ts +9 -0
- package/dist/payio/big-chef-config/entities/config-printer.entity.js +24 -0
- package/dist/payio/big-chef-config/entities/config-scale.entity.d.ts +7 -0
- package/dist/payio/big-chef-config/entities/config-scale.entity.js +22 -0
- package/dist/payio/big-chef-config/entities/config.entity.d.ts +16 -0
- package/dist/payio/big-chef-config/entities/config.entity.js +26 -0
- package/dist/payio/big-chef-config/entities/index.d.ts +4 -0
- package/dist/payio/big-chef-config/entities/index.js +11 -0
- package/dist/payio/big-chef-config/index.d.ts +2 -0
- package/dist/payio/big-chef-config/index.js +18 -0
- package/dist/payio/big-chef-config/interfaces/i-chef-config-operation.d.ts +22 -0
- package/dist/payio/big-chef-config/interfaces/i-chef-config-operation.js +2 -0
- package/dist/payio/big-chef-config/interfaces/i-chef-config-printer.d.ts +7 -0
- package/dist/payio/big-chef-config/interfaces/i-chef-config-printer.js +2 -0
- package/dist/payio/big-chef-config/interfaces/i-chef-config-scale.d.ts +5 -0
- package/dist/payio/big-chef-config/interfaces/i-chef-config-scale.js +2 -0
- package/dist/payio/big-chef-config/interfaces/i-chef-config.d.ts +14 -0
- package/dist/payio/big-chef-config/interfaces/i-chef-config.js +2 -0
- package/dist/payio/big-chef-config/interfaces/index.d.ts +4 -0
- package/dist/payio/big-chef-config/interfaces/index.js +2 -0
- package/dist/payio/index.d.ts +1 -0
- package/dist/payio/index.js +1 -0
- package/dist/payio/orders/entities/order.entity.d.ts +5 -4
- package/dist/payio/orders/entities/order.entity.js +1 -3
- package/dist/payio/orders/interfaces/i-order.d.ts +3 -2
- package/dist/resume/entities/general-resume-total.entity.d.ts +1 -1
- package/dist/resume/entities/general-resume-total.entity.js +1 -1
- package/dist/resume/interfaces/i-resume-general.d.ts +1 -1
- package/package.json +1 -1
@@ -0,0 +1,24 @@
|
|
1
|
+
import { EBarcodeFormat, EPayioChefOperationMode, EPayioChefTabMode } from '../../chef-config';
|
2
|
+
import { IPayioBigChefConfigOperation } from '../interfaces';
|
3
|
+
export declare class PayioBigChefConfigOperationEntity implements IPayioBigChefConfigOperation {
|
4
|
+
barcodeFormat: EBarcodeFormat;
|
5
|
+
barcodeInitialFlag: string;
|
6
|
+
bipOnPrint: boolean;
|
7
|
+
headerMessages: string[];
|
8
|
+
listItems: string[];
|
9
|
+
multiOrder: boolean;
|
10
|
+
operationMode: EPayioChefOperationMode;
|
11
|
+
printFormat: 'simple' | 'tabular';
|
12
|
+
showBarCode: boolean;
|
13
|
+
showNetWeight: boolean;
|
14
|
+
showOrderNumber: boolean;
|
15
|
+
showPricePerKg: boolean;
|
16
|
+
showTotalPrice: boolean;
|
17
|
+
startOrderIn: number;
|
18
|
+
tabFormat: string | null;
|
19
|
+
tabMode: EPayioChefTabMode;
|
20
|
+
tabRegistered: boolean;
|
21
|
+
urlLogo: string;
|
22
|
+
visionDeviceId: string;
|
23
|
+
constructor(data?: Partial<PayioBigChefConfigOperationEntity>);
|
24
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioBigChefConfigOperationEntity = void 0;
|
4
|
+
var chef_config_1 = require("../../chef-config");
|
5
|
+
var PayioBigChefConfigOperationEntity = /** @class */ (function () {
|
6
|
+
function PayioBigChefConfigOperationEntity(data) {
|
7
|
+
this.barcodeFormat = chef_config_1.EBarcodeFormat.CODE_6_PRICE_6;
|
8
|
+
this.barcodeInitialFlag = '2';
|
9
|
+
this.bipOnPrint = true;
|
10
|
+
this.headerMessages = [];
|
11
|
+
this.listItems = [];
|
12
|
+
this.multiOrder = false;
|
13
|
+
this.operationMode = chef_config_1.EPayioChefOperationMode.SCALE;
|
14
|
+
this.printFormat = 'simple';
|
15
|
+
this.showBarCode = true;
|
16
|
+
this.showNetWeight = true;
|
17
|
+
this.showOrderNumber = true;
|
18
|
+
this.showPricePerKg = true;
|
19
|
+
this.showTotalPrice = true;
|
20
|
+
this.startOrderIn = 1;
|
21
|
+
this.tabFormat = '';
|
22
|
+
this.tabMode = chef_config_1.EPayioChefTabMode.MANUAL;
|
23
|
+
this.tabRegistered = false;
|
24
|
+
this.urlLogo = '';
|
25
|
+
this.visionDeviceId = '';
|
26
|
+
if (data) {
|
27
|
+
for (var key in data) {
|
28
|
+
if (data.hasOwnProperty(key) && key in this) {
|
29
|
+
this[key] = data[key];
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
return PayioBigChefConfigOperationEntity;
|
35
|
+
}());
|
36
|
+
exports.PayioBigChefConfigOperationEntity = PayioBigChefConfigOperationEntity;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { IPayioBigChefConfigPrinter } from '../interfaces';
|
2
|
+
export declare class PayioBigChefConfigPrinterEntity implements IPayioBigChefConfigPrinter {
|
3
|
+
active: boolean;
|
4
|
+
brand: string | null;
|
5
|
+
interface: 'USB' | 'TCP/IP';
|
6
|
+
model: string | null;
|
7
|
+
port: string | null;
|
8
|
+
constructor(data?: Partial<PayioBigChefConfigPrinterEntity>);
|
9
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioBigChefConfigPrinterEntity = void 0;
|
4
|
+
var PayioBigChefConfigPrinterEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (5)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function PayioBigChefConfigPrinterEntity(data) {
|
8
|
+
// #region Properties (5)
|
9
|
+
this.active = true;
|
10
|
+
this.brand = null;
|
11
|
+
this.interface = 'USB';
|
12
|
+
this.model = null;
|
13
|
+
this.port = null;
|
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 PayioBigChefConfigPrinterEntity;
|
23
|
+
}());
|
24
|
+
exports.PayioBigChefConfigPrinterEntity = PayioBigChefConfigPrinterEntity;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { IPayioBigChefConfigScale } from '../interfaces';
|
2
|
+
export declare class PayioBigChefConfigScaleEntity implements IPayioBigChefConfigScale {
|
3
|
+
baudRate: '2400' | '4800' | '9600' | '19200' | '38400' | '57600' | '115200';
|
4
|
+
brand: string | null;
|
5
|
+
model: string | null;
|
6
|
+
constructor(data?: Partial<PayioBigChefConfigScaleEntity>);
|
7
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioBigChefConfigScaleEntity = void 0;
|
4
|
+
var PayioBigChefConfigScaleEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (3)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function PayioBigChefConfigScaleEntity(data) {
|
8
|
+
// #region Properties (3)
|
9
|
+
this.baudRate = '2400';
|
10
|
+
this.brand = null;
|
11
|
+
this.model = null;
|
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 PayioBigChefConfigScaleEntity;
|
21
|
+
}());
|
22
|
+
exports.PayioBigChefConfigScaleEntity = PayioBigChefConfigScaleEntity;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { IPayioWebhook } from '../../chef-config';
|
2
|
+
import { IPayioBigChefConfig } from '../interfaces';
|
3
|
+
import { PayioBigChefConfigOperationEntity } from './config-operation.entity';
|
4
|
+
import { PayioBigChefConfigPrinterEntity } from './config-printer.entity';
|
5
|
+
import { PayioBigChefConfigScaleEntity } from './config-scale.entity';
|
6
|
+
export declare class PayioBigChefConfigEntity implements IPayioBigChefConfig {
|
7
|
+
createdAt: Date;
|
8
|
+
id: string;
|
9
|
+
name: string;
|
10
|
+
operation: PayioBigChefConfigOperationEntity;
|
11
|
+
printer: PayioBigChefConfigPrinterEntity | null;
|
12
|
+
scale: PayioBigChefConfigScaleEntity;
|
13
|
+
updatedAt: Date;
|
14
|
+
webhook: IPayioWebhook[];
|
15
|
+
constructor(data?: Partial<PayioBigChefConfigEntity>);
|
16
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioBigChefConfigEntity = void 0;
|
4
|
+
var config_operation_entity_1 = require("./config-operation.entity");
|
5
|
+
var config_scale_entity_1 = require("./config-scale.entity");
|
6
|
+
var PayioBigChefConfigEntity = /** @class */ (function () {
|
7
|
+
function PayioBigChefConfigEntity(data) {
|
8
|
+
this.createdAt = new Date();
|
9
|
+
this.id = '';
|
10
|
+
this.name = '';
|
11
|
+
this.operation = new config_operation_entity_1.PayioBigChefConfigOperationEntity();
|
12
|
+
this.printer = null;
|
13
|
+
this.scale = new config_scale_entity_1.PayioBigChefConfigScaleEntity();
|
14
|
+
this.updatedAt = new Date();
|
15
|
+
this.webhook = [];
|
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 PayioBigChefConfigEntity;
|
25
|
+
}());
|
26
|
+
exports.PayioBigChefConfigEntity = PayioBigChefConfigEntity;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export { PayioBigChefConfigEntity } from './config.entity';
|
2
|
+
export { PayioBigChefConfigOperationEntity } from './config-operation.entity';
|
3
|
+
export { PayioBigChefConfigPrinterEntity } from './config-printer.entity';
|
4
|
+
export { PayioBigChefConfigScaleEntity } from './config-scale.entity';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioBigChefConfigScaleEntity = exports.PayioBigChefConfigPrinterEntity = exports.PayioBigChefConfigOperationEntity = exports.PayioBigChefConfigEntity = void 0;
|
4
|
+
var config_entity_1 = require("./config.entity");
|
5
|
+
Object.defineProperty(exports, "PayioBigChefConfigEntity", { enumerable: true, get: function () { return config_entity_1.PayioBigChefConfigEntity; } });
|
6
|
+
var config_operation_entity_1 = require("./config-operation.entity");
|
7
|
+
Object.defineProperty(exports, "PayioBigChefConfigOperationEntity", { enumerable: true, get: function () { return config_operation_entity_1.PayioBigChefConfigOperationEntity; } });
|
8
|
+
var config_printer_entity_1 = require("./config-printer.entity");
|
9
|
+
Object.defineProperty(exports, "PayioBigChefConfigPrinterEntity", { enumerable: true, get: function () { return config_printer_entity_1.PayioBigChefConfigPrinterEntity; } });
|
10
|
+
var config_scale_entity_1 = require("./config-scale.entity");
|
11
|
+
Object.defineProperty(exports, "PayioBigChefConfigScaleEntity", { enumerable: true, get: function () { return config_scale_entity_1.PayioBigChefConfigScaleEntity; } });
|
@@ -0,0 +1,18 @@
|
|
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("./interfaces"), exports);
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { EBarcodeFormat, EPayioChefOperationMode, EPayioChefTabMode } from '../../chef-config';
|
2
|
+
export interface IPayioBigChefConfigOperation {
|
3
|
+
barcodeFormat: EBarcodeFormat;
|
4
|
+
barcodeInitialFlag: string;
|
5
|
+
bipOnPrint: boolean;
|
6
|
+
headerMessages: string[];
|
7
|
+
listItems: string[];
|
8
|
+
multiOrder: boolean;
|
9
|
+
operationMode: EPayioChefOperationMode;
|
10
|
+
printFormat: 'simple' | 'tabular';
|
11
|
+
showBarCode: boolean;
|
12
|
+
showNetWeight: boolean;
|
13
|
+
showOrderNumber: boolean;
|
14
|
+
showPricePerKg: boolean;
|
15
|
+
showTotalPrice: boolean;
|
16
|
+
startOrderIn: number;
|
17
|
+
tabFormat: string | null;
|
18
|
+
tabMode: EPayioChefTabMode;
|
19
|
+
tabRegistered: boolean;
|
20
|
+
urlLogo: string;
|
21
|
+
visionDeviceId: string;
|
22
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { IPayioWebhook } from '../../chef-config';
|
2
|
+
import { IPayioBigChefConfigOperation } from './i-chef-config-operation';
|
3
|
+
import { IPayioBigChefConfigPrinter } from './i-chef-config-printer';
|
4
|
+
import { IPayioBigChefConfigScale } from './i-chef-config-scale';
|
5
|
+
export interface IPayioBigChefConfig {
|
6
|
+
createdAt: Date;
|
7
|
+
id: string;
|
8
|
+
name: string;
|
9
|
+
operation: IPayioBigChefConfigOperation;
|
10
|
+
printer: IPayioBigChefConfigPrinter | null;
|
11
|
+
scale: IPayioBigChefConfigScale;
|
12
|
+
updatedAt: Date;
|
13
|
+
webhook: IPayioWebhook[];
|
14
|
+
}
|
package/dist/payio/index.d.ts
CHANGED
package/dist/payio/index.js
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
import { OrderEntity } from
|
2
|
-
import { EPayuioAppSlug } from
|
3
|
-
import { IPayioOrder } from
|
4
|
-
import { PayioOrderIndoorEntity } from
|
1
|
+
import { OrderEntity } from "../../../order";
|
2
|
+
import { EPayuioAppSlug } from "../../app";
|
3
|
+
import { IPayioOrder } from "../interfaces";
|
4
|
+
import { PayioOrderIndoorEntity } from "./indoor.entity";
|
5
5
|
export declare class PayioOrderEntity extends OrderEntity implements IPayioOrder {
|
6
6
|
appId: string | null;
|
7
7
|
appSlug: EPayuioAppSlug;
|
8
8
|
deviceId: string | null;
|
9
9
|
indoor: PayioOrderIndoorEntity | null;
|
10
|
+
resumeVersion: string;
|
10
11
|
constructor(data?: Partial<PayioOrderEntity>);
|
11
12
|
}
|
@@ -20,15 +20,13 @@ var order_1 = require("../../../order");
|
|
20
20
|
var app_1 = require("../../app");
|
21
21
|
var PayioOrderEntity = /** @class */ (function (_super) {
|
22
22
|
__extends(PayioOrderEntity, _super);
|
23
|
-
// #endregion Properties (4)
|
24
|
-
// #region Constructors (1)
|
25
23
|
function PayioOrderEntity(data) {
|
26
24
|
var _this = _super.call(this) || this;
|
27
|
-
// #region Properties (4)
|
28
25
|
_this.appId = null;
|
29
26
|
_this.appSlug = app_1.EPayuioAppSlug.none;
|
30
27
|
_this.deviceId = null;
|
31
28
|
_this.indoor = null;
|
29
|
+
_this.resumeVersion = '';
|
32
30
|
if (data) {
|
33
31
|
for (var key in data) {
|
34
32
|
if (data.hasOwnProperty(key) && key in _this) {
|
@@ -2,8 +2,9 @@ import { IOrder } from '../../../order';
|
|
2
2
|
import { EPayuioAppSlug } from '../../app';
|
3
3
|
import { IPayioOrderIndoor } from './i-order-indoor';
|
4
4
|
export interface IPayioOrder extends IOrder {
|
5
|
-
indoor: IPayioOrderIndoor | null;
|
6
|
-
deviceId: string | null;
|
7
5
|
appId: string | null;
|
8
6
|
appSlug: EPayuioAppSlug;
|
7
|
+
deviceId: string | null;
|
8
|
+
indoor: IPayioOrderIndoor | null;
|
9
|
+
resumeVersion: string;
|
9
10
|
}
|
@@ -2,6 +2,6 @@ import { IGeneralResumeTotal } from '../interfaces';
|
|
2
2
|
export declare class GeneralResumeTotalEntity implements IGeneralResumeTotal {
|
3
3
|
amount: number;
|
4
4
|
count: number;
|
5
|
-
|
5
|
+
averageAmount: number;
|
6
6
|
constructor(data?: Partial<GeneralResumeTotalEntity>);
|
7
7
|
}
|
@@ -5,7 +5,7 @@ var GeneralResumeTotalEntity = /** @class */ (function () {
|
|
5
5
|
function GeneralResumeTotalEntity(data) {
|
6
6
|
this.amount = 0;
|
7
7
|
this.count = 0;
|
8
|
-
this.
|
8
|
+
this.averageAmount = 0;
|
9
9
|
if (data) {
|
10
10
|
for (var key in data) {
|
11
11
|
if (data.hasOwnProperty(key) && key in this) {
|