cecon-interfaces 1.7.96 → 1.7.98
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/natipay/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/payio/cash-config/entities/config-operation.entity.mjs +23 -0
- package/dist/esm2022/payio/cash-config/entities/config.entity.mjs +20 -0
- package/dist/esm2022/payio/cash-config/entities/index.mjs +3 -0
- package/dist/esm2022/payio/cash-config/enums/index.mjs +2 -0
- package/dist/esm2022/payio/cash-config/enums/tef-provider.enum.mjs +8 -0
- package/dist/esm2022/payio/cash-config/index.mjs +4 -0
- package/dist/esm2022/payio/cash-config/interfaces/i-cash-config.mjs +2 -0
- package/dist/esm2022/payio/cash-config/interfaces/i-chef-config-operation.mjs +2 -0
- package/dist/esm2022/payio/cash-config/interfaces/index.mjs +2 -0
- package/dist/esm2022/payio/chef-config/entities/{chef-config-operation.entity.mjs → config-operation.entity.mjs} +2 -2
- package/dist/esm2022/payio/chef-config/entities/config-printer.entity.mjs +20 -0
- package/dist/esm2022/payio/chef-config/entities/config-scale.entity.mjs +18 -0
- package/dist/esm2022/payio/chef-config/entities/config.entity.mjs +23 -0
- package/dist/esm2022/payio/chef-config/entities/index.mjs +7 -8
- package/dist/esm2022/payio/chef-config/entities/tabs.entity.mjs +15 -0
- package/dist/esm2022/payio/chef-config/entities/webhook.entity.mjs +25 -0
- package/dist/esm2022/payio/chef-config/enums/index.mjs +3 -1
- package/dist/esm2022/payio/chef-config/enums/webhook-method.enum.mjs +8 -0
- package/dist/esm2022/payio/chef-config/enums/webhook-type.enum.mjs +16 -0
- package/dist/esm2022/payio/chef-config/interfaces/i-chef-config.mjs +1 -1
- package/dist/esm2022/payio/chef-config/interfaces/i-tabs.mjs +2 -0
- package/dist/esm2022/payio/chef-config/interfaces/i-webhook.mjs +2 -0
- package/dist/esm2022/payio/chef-config/interfaces/index.mjs +1 -1
- package/dist/esm2022/payio/index.mjs +2 -1
- package/dist/fesm2022/cecon-interfaces.mjs +112 -50
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/natipay/company/interfaces/i-company.d.ts +9 -9
- package/dist/package.json +1 -1
- package/dist/payio/cash-config/entities/config-operation.entity.d.ts +15 -0
- package/dist/payio/cash-config/entities/config-operation.entity.js +31 -0
- package/dist/payio/cash-config/entities/config.entity.d.ts +13 -0
- package/dist/payio/cash-config/entities/config.entity.js +24 -0
- package/dist/payio/cash-config/entities/index.d.ts +2 -0
- package/dist/payio/cash-config/entities/index.js +7 -0
- package/dist/payio/cash-config/enums/index.d.ts +1 -0
- package/dist/payio/cash-config/enums/index.js +5 -0
- package/dist/payio/cash-config/enums/tef-provider.enum.d.ts +6 -0
- package/dist/payio/cash-config/enums/tef-provider.enum.js +10 -0
- package/dist/payio/cash-config/index.d.ts +3 -0
- package/dist/payio/cash-config/index.js +19 -0
- package/dist/payio/cash-config/interfaces/i-cash-config.d.ts +11 -0
- package/dist/payio/cash-config/interfaces/i-chef-config-operation.d.ts +13 -0
- package/dist/payio/cash-config/interfaces/index.d.ts +1 -0
- package/dist/payio/chef-config/entities/{chef-config-operation.entity.js → config-operation.entity.js} +1 -0
- package/dist/payio/chef-config/entities/{chef-config.entity.d.ts → config.entity.d.ts} +3 -3
- package/dist/payio/chef-config/entities/{chef-config.entity.js → config.entity.js} +4 -4
- package/dist/payio/chef-config/entities/index.d.ts +6 -7
- package/dist/payio/chef-config/entities/index.js +13 -15
- package/dist/payio/chef-config/entities/tabs.entity.d.ts +7 -0
- package/dist/payio/chef-config/entities/{chef-config-tabs.entity.js → tabs.entity.js} +5 -5
- package/dist/payio/chef-config/entities/webhook.entity.d.ts +16 -0
- package/dist/payio/chef-config/entities/webhook.entity.js +31 -0
- package/dist/payio/chef-config/enums/index.d.ts +2 -0
- package/dist/payio/chef-config/enums/index.js +5 -1
- package/dist/payio/chef-config/enums/webhook-method.enum.d.ts +6 -0
- package/dist/payio/chef-config/enums/webhook-method.enum.js +10 -0
- package/dist/payio/chef-config/enums/webhook-type.enum.d.ts +14 -0
- package/dist/payio/chef-config/enums/webhook-type.enum.js +18 -0
- package/dist/payio/chef-config/interfaces/i-chef-config.d.ts +4 -4
- package/dist/payio/chef-config/interfaces/{i-chef-config-tabs.d.ts → i-tabs.d.ts} +1 -1
- package/dist/payio/chef-config/interfaces/i-tabs.js +2 -0
- package/dist/payio/chef-config/interfaces/i-webhook.d.ts +14 -0
- package/dist/payio/chef-config/interfaces/i-webhook.js +2 -0
- package/dist/payio/chef-config/interfaces/index.d.ts +2 -3
- package/dist/payio/index.d.ts +1 -0
- package/dist/payio/index.js +1 -0
- package/package.json +1 -1
- package/dist/esm2022/payio/chef-config/entities/chef-config-printer.entity.mjs +0 -20
- package/dist/esm2022/payio/chef-config/entities/chef-config-scale.entity.mjs +0 -18
- package/dist/esm2022/payio/chef-config/entities/chef-config-tabs.entity.mjs +0 -15
- package/dist/esm2022/payio/chef-config/entities/chef-config-webhook-header.entity.mjs +0 -14
- package/dist/esm2022/payio/chef-config/entities/chef-config-webhook.entity.mjs +0 -20
- package/dist/esm2022/payio/chef-config/entities/chef-config.entity.mjs +0 -23
- package/dist/esm2022/payio/chef-config/interfaces/i-chef-config-tabs.mjs +0 -2
- package/dist/esm2022/payio/chef-config/interfaces/i-chef-config-webhook-header.mjs +0 -2
- package/dist/esm2022/payio/chef-config/interfaces/i-chef-config-webhook.mjs +0 -2
- package/dist/payio/chef-config/entities/chef-config-tabs.entity.d.ts +0 -7
- package/dist/payio/chef-config/entities/chef-config-webhook-header.entity.d.ts +0 -6
- package/dist/payio/chef-config/entities/chef-config-webhook-header.entity.js +0 -18
- package/dist/payio/chef-config/entities/chef-config-webhook.entity.d.ts +0 -12
- package/dist/payio/chef-config/entities/chef-config-webhook.entity.js +0 -22
- package/dist/payio/chef-config/interfaces/i-chef-config-webhook-header.d.ts +0 -4
- package/dist/payio/chef-config/interfaces/i-chef-config-webhook.d.ts +0 -10
- package/dist/payio/{chef-config/interfaces/i-chef-config-tabs.js → cash-config/interfaces/i-cash-config.js} +0 -0
- package/dist/payio/{chef-config/interfaces/i-chef-config-webhook-header.js → cash-config/interfaces/i-chef-config-operation.js} +0 -0
- package/dist/payio/{chef-config/interfaces/i-chef-config-webhook.js → cash-config/interfaces/index.js} +0 -0
- package/dist/payio/chef-config/entities/{chef-config-operation.entity.d.ts → config-operation.entity.d.ts} +1 -1
- /package/dist/payio/chef-config/entities/{chef-config-printer.entity.d.ts → config-printer.entity.d.ts} +0 -0
- /package/dist/payio/chef-config/entities/{chef-config-printer.entity.js → config-printer.entity.js} +0 -0
- /package/dist/payio/chef-config/entities/{chef-config-scale.entity.d.ts → config-scale.entity.d.ts} +0 -0
- /package/dist/payio/chef-config/entities/{chef-config-scale.entity.js → config-scale.entity.js} +0 -0
@@ -1,11 +1,11 @@
|
|
1
|
-
import { EDocType } from
|
2
|
-
import { IPixKey } from
|
3
|
-
import { ETransactionProvider } from
|
4
|
-
import { INatipayAddress } from
|
5
|
-
import { INatipayCompanyExternalFee } from
|
6
|
-
import { INatipayFee } from
|
7
|
-
import { INatipay } from
|
8
|
-
import { INatipaySponsorFee } from
|
1
|
+
import { EDocType } from "../../../general";
|
2
|
+
import { IPixKey } from "../../../general/interfaces/i-pix-key";
|
3
|
+
import { ETransactionProvider } from "../../../transaction";
|
4
|
+
import { INatipayAddress } from "./i-address";
|
5
|
+
import { INatipayCompanyExternalFee } from "./i-company-external-fee";
|
6
|
+
import { INatipayFee } from "./i-fee";
|
7
|
+
import { INatipay } from "./i-natipay";
|
8
|
+
import { INatipaySponsorFee } from "./i-sponsor-fee";
|
9
9
|
export interface INatipayCompany {
|
10
10
|
active: boolean;
|
11
11
|
address: INatipayAddress;
|
@@ -17,6 +17,7 @@ export interface INatipayCompany {
|
|
17
17
|
doc: string;
|
18
18
|
docType: EDocType;
|
19
19
|
email: string;
|
20
|
+
externalFees: INatipayCompanyExternalFee[];
|
20
21
|
fees: INatipayFee;
|
21
22
|
id: string;
|
22
23
|
imageUrl: string | null;
|
@@ -30,7 +31,6 @@ export interface INatipayCompany {
|
|
30
31
|
natipay: INatipay | null;
|
31
32
|
paymentProvider: ETransactionProvider | null;
|
32
33
|
phoneNumber: string;
|
33
|
-
externalFees: INatipayCompanyExternalFee[];
|
34
34
|
pixKeys: IPixKey[];
|
35
35
|
sandbox: boolean;
|
36
36
|
shortName: string;
|
package/dist/package.json
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
import { EBarcodeFormat } from '../../chef-config';
|
2
|
+
import { ETefProvider } from '../enums';
|
3
|
+
import { IPayioCashConfigOperation, IPayioCashConfigOperationTef } from '../interfaces/i-chef-config-operation';
|
4
|
+
export declare class PayioCashConfigOperationEntity implements IPayioCashConfigOperation {
|
5
|
+
balanceMethod: EBarcodeFormat;
|
6
|
+
tabFormat: string | null;
|
7
|
+
tef: IPayioCashConfigOperationTef;
|
8
|
+
constructor(data?: Partial<PayioCashConfigOperationEntity>);
|
9
|
+
}
|
10
|
+
export declare class PayioCashConfigOperationTefEntity implements IPayioCashConfigOperationTef {
|
11
|
+
companyNumber: number;
|
12
|
+
provider: ETefProvider;
|
13
|
+
terminal: string;
|
14
|
+
url: string;
|
15
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCashConfigOperationTefEntity = exports.PayioCashConfigOperationEntity = void 0;
|
4
|
+
var chef_config_1 = require("../../chef-config");
|
5
|
+
var enums_1 = require("../enums");
|
6
|
+
var PayioCashConfigOperationEntity = /** @class */ (function () {
|
7
|
+
function PayioCashConfigOperationEntity(data) {
|
8
|
+
this.balanceMethod = chef_config_1.EBarcodeFormat.CODE_6_PRICE_6;
|
9
|
+
this.tabFormat = null;
|
10
|
+
this.tef = new PayioCashConfigOperationTefEntity();
|
11
|
+
if (data) {
|
12
|
+
for (var key in data) {
|
13
|
+
if (data.hasOwnProperty(key) && key in this) {
|
14
|
+
this[key] = data[key];
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
return PayioCashConfigOperationEntity;
|
20
|
+
}());
|
21
|
+
exports.PayioCashConfigOperationEntity = PayioCashConfigOperationEntity;
|
22
|
+
var PayioCashConfigOperationTefEntity = /** @class */ (function () {
|
23
|
+
function PayioCashConfigOperationTefEntity() {
|
24
|
+
this.companyNumber = 0;
|
25
|
+
this.provider = enums_1.ETefProvider.FISERV;
|
26
|
+
this.terminal = '';
|
27
|
+
this.url = '';
|
28
|
+
}
|
29
|
+
return PayioCashConfigOperationTefEntity;
|
30
|
+
}());
|
31
|
+
exports.PayioCashConfigOperationTefEntity = PayioCashConfigOperationTefEntity;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { IPayioTabs, IPayioWebhook } from '../../chef-config/interfaces';
|
2
|
+
import { IPayioCashConfig } from '../interfaces/i-cash-config';
|
3
|
+
import { IPayioCashConfigOperation } from '../interfaces/i-chef-config-operation';
|
4
|
+
export declare class PayioCashConfigEntity implements IPayioCashConfig {
|
5
|
+
createdAt: Date;
|
6
|
+
id: string;
|
7
|
+
name: string;
|
8
|
+
operation: IPayioCashConfigOperation;
|
9
|
+
tabs: IPayioTabs[];
|
10
|
+
updatedAt: Date;
|
11
|
+
webhook: IPayioWebhook[];
|
12
|
+
constructor(data?: Partial<PayioCashConfigEntity>);
|
13
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCashConfigEntity = void 0;
|
4
|
+
var config_operation_entity_1 = require("./config-operation.entity");
|
5
|
+
var PayioCashConfigEntity = /** @class */ (function () {
|
6
|
+
function PayioCashConfigEntity(data) {
|
7
|
+
this.createdAt = new Date();
|
8
|
+
this.id = '';
|
9
|
+
this.name = '';
|
10
|
+
this.operation = new config_operation_entity_1.PayioCashConfigOperationEntity();
|
11
|
+
this.tabs = [];
|
12
|
+
this.updatedAt = new Date();
|
13
|
+
this.webhook = [];
|
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 PayioCashConfigEntity;
|
23
|
+
}());
|
24
|
+
exports.PayioCashConfigEntity = PayioCashConfigEntity;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioCashConfigEntity = exports.PayioCashConfigOperationEntity = void 0;
|
4
|
+
var config_operation_entity_1 = require("./config-operation.entity");
|
5
|
+
Object.defineProperty(exports, "PayioCashConfigOperationEntity", { enumerable: true, get: function () { return config_operation_entity_1.PayioCashConfigOperationEntity; } });
|
6
|
+
var config_entity_1 = require("./config.entity");
|
7
|
+
Object.defineProperty(exports, "PayioCashConfigEntity", { enumerable: true, get: function () { return config_entity_1.PayioCashConfigEntity; } });
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ETefProvider } from './tef-provider.enum';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ETefProvider = void 0;
|
4
|
+
var tef_provider_enum_1 = require("./tef-provider.enum");
|
5
|
+
Object.defineProperty(exports, "ETefProvider", { enumerable: true, get: function () { return tef_provider_enum_1.ETefProvider; } });
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ETefProvider = void 0;
|
4
|
+
var ETefProvider;
|
5
|
+
(function (ETefProvider) {
|
6
|
+
ETefProvider["FISERV"] = "FISERV";
|
7
|
+
ETefProvider["PAYER"] = "PAYER";
|
8
|
+
ETefProvider["FIREBANK"] = "FIREBANK";
|
9
|
+
ETefProvider["FORPAY"] = "FORPAY";
|
10
|
+
})(ETefProvider || (exports.ETefProvider = ETefProvider = {}));
|
@@ -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,11 @@
|
|
1
|
+
import { IPayioTabs, IPayioWebhook } from '../../chef-config/interfaces';
|
2
|
+
import { IPayioCashConfigOperation } from './i-chef-config-operation';
|
3
|
+
export interface IPayioCashConfig {
|
4
|
+
createdAt: Date;
|
5
|
+
id: string;
|
6
|
+
name: string;
|
7
|
+
operation: IPayioCashConfigOperation;
|
8
|
+
updatedAt: Date;
|
9
|
+
tabs: IPayioTabs[];
|
10
|
+
webhook: IPayioWebhook[];
|
11
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { EBarcodeFormat } from '../../chef-config';
|
2
|
+
import { ETefProvider } from '../enums';
|
3
|
+
export interface IPayioCashConfigOperation {
|
4
|
+
balanceMethod: EBarcodeFormat | null;
|
5
|
+
tabFormat: string | null;
|
6
|
+
tef: IPayioCashConfigOperationTef;
|
7
|
+
}
|
8
|
+
export interface IPayioCashConfigOperationTef {
|
9
|
+
companyNumber: number;
|
10
|
+
provider: ETefProvider;
|
11
|
+
terminal: string;
|
12
|
+
url: string;
|
13
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { IPayioCashConfigOperation, IPayioCashConfigOperationTef } from './i-chef-config-operation';
|
@@ -22,6 +22,7 @@ var PayioChefConfigOperationEntity = /** @class */ (function () {
|
|
22
22
|
this.tabMode = enums_1.EPayioChefTabMode.MANUAL;
|
23
23
|
this.tabRegistered = false;
|
24
24
|
this.urlLogo = '';
|
25
|
+
this.tabRegistred = false;
|
25
26
|
if (data) {
|
26
27
|
for (var key in data) {
|
27
28
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IPayioChefConfig, IPayioChefConfigOperation, IPayioChefConfigPrinter, IPayioChefConfigScale,
|
1
|
+
import { IPayioChefConfig, IPayioChefConfigOperation, IPayioChefConfigPrinter, IPayioChefConfigScale, IPayioTabs, IPayioWebhook } from '../interfaces';
|
2
2
|
export declare class PayioChefConfigEntity implements IPayioChefConfig {
|
3
3
|
createdAt: Date;
|
4
4
|
id: string;
|
@@ -6,8 +6,8 @@ export declare class PayioChefConfigEntity implements IPayioChefConfig {
|
|
6
6
|
operation: IPayioChefConfigOperation;
|
7
7
|
printer: IPayioChefConfigPrinter | null;
|
8
8
|
scale: IPayioChefConfigScale;
|
9
|
-
tabs:
|
9
|
+
tabs: IPayioTabs[];
|
10
10
|
updatedAt: Date;
|
11
|
-
webhook:
|
11
|
+
webhook: IPayioWebhook[];
|
12
12
|
constructor(data?: Partial<PayioChefConfigEntity>);
|
13
13
|
}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PayioChefConfigEntity = void 0;
|
4
|
-
var
|
5
|
-
var
|
4
|
+
var config_operation_entity_1 = require("./config-operation.entity");
|
5
|
+
var config_scale_entity_1 = require("./config-scale.entity");
|
6
6
|
var PayioChefConfigEntity = /** @class */ (function () {
|
7
7
|
function PayioChefConfigEntity(data) {
|
8
8
|
this.createdAt = new Date();
|
9
9
|
this.id = '';
|
10
10
|
this.name = '';
|
11
|
-
this.operation = new
|
11
|
+
this.operation = new config_operation_entity_1.PayioChefConfigOperationEntity();
|
12
12
|
this.printer = null;
|
13
|
-
this.scale = new
|
13
|
+
this.scale = new config_scale_entity_1.PayioChefConfigScaleEntity();
|
14
14
|
this.tabs = [];
|
15
15
|
this.updatedAt = new Date();
|
16
16
|
this.webhook = [];
|
@@ -1,7 +1,6 @@
|
|
1
|
-
export {
|
2
|
-
export {
|
3
|
-
export { PayioChefConfigScaleEntity } from './
|
4
|
-
export {
|
5
|
-
export {
|
6
|
-
export {
|
7
|
-
export { PayioChefConfigEntity } from './chef-config.entity';
|
1
|
+
export { PayioChefConfigPrinterEntity } from './config-printer.entity';
|
2
|
+
export { PayioChefConfigOperationEntity } from './config-operation.entity';
|
3
|
+
export { PayioChefConfigScaleEntity } from './config-scale.entity';
|
4
|
+
export { PayioChefConfigEntity } from './config.entity';
|
5
|
+
export { PayioTabsEntity } from './tabs.entity';
|
6
|
+
export { PayioWebhookEntity } from './webhook.entity';
|
@@ -1,17 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var
|
5
|
-
Object.defineProperty(exports, "
|
6
|
-
var
|
7
|
-
Object.defineProperty(exports, "
|
8
|
-
var
|
9
|
-
Object.defineProperty(exports, "PayioChefConfigScaleEntity", { enumerable: true, get: function () { return
|
10
|
-
var
|
11
|
-
Object.defineProperty(exports, "
|
12
|
-
var
|
13
|
-
Object.defineProperty(exports, "
|
14
|
-
var
|
15
|
-
Object.defineProperty(exports, "
|
16
|
-
var chef_config_entity_1 = require("./chef-config.entity");
|
17
|
-
Object.defineProperty(exports, "PayioChefConfigEntity", { enumerable: true, get: function () { return chef_config_entity_1.PayioChefConfigEntity; } });
|
3
|
+
exports.PayioWebhookEntity = exports.PayioTabsEntity = exports.PayioChefConfigEntity = exports.PayioChefConfigScaleEntity = exports.PayioChefConfigOperationEntity = exports.PayioChefConfigPrinterEntity = void 0;
|
4
|
+
var config_printer_entity_1 = require("./config-printer.entity");
|
5
|
+
Object.defineProperty(exports, "PayioChefConfigPrinterEntity", { enumerable: true, get: function () { return config_printer_entity_1.PayioChefConfigPrinterEntity; } });
|
6
|
+
var config_operation_entity_1 = require("./config-operation.entity");
|
7
|
+
Object.defineProperty(exports, "PayioChefConfigOperationEntity", { enumerable: true, get: function () { return config_operation_entity_1.PayioChefConfigOperationEntity; } });
|
8
|
+
var config_scale_entity_1 = require("./config-scale.entity");
|
9
|
+
Object.defineProperty(exports, "PayioChefConfigScaleEntity", { enumerable: true, get: function () { return config_scale_entity_1.PayioChefConfigScaleEntity; } });
|
10
|
+
var config_entity_1 = require("./config.entity");
|
11
|
+
Object.defineProperty(exports, "PayioChefConfigEntity", { enumerable: true, get: function () { return config_entity_1.PayioChefConfigEntity; } });
|
12
|
+
var tabs_entity_1 = require("./tabs.entity");
|
13
|
+
Object.defineProperty(exports, "PayioTabsEntity", { enumerable: true, get: function () { return tabs_entity_1.PayioTabsEntity; } });
|
14
|
+
var webhook_entity_1 = require("./webhook.entity");
|
15
|
+
Object.defineProperty(exports, "PayioWebhookEntity", { enumerable: true, get: function () { return webhook_entity_1.PayioWebhookEntity; } });
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var
|
5
|
-
function
|
3
|
+
exports.PayioTabsEntity = void 0;
|
4
|
+
var PayioTabsEntity = /** @class */ (function () {
|
5
|
+
function PayioTabsEntity(data) {
|
6
6
|
this.active = true;
|
7
7
|
this.id = '';
|
8
8
|
this.name = '';
|
@@ -14,6 +14,6 @@ var PayioChefConfigTabsEntity = /** @class */ (function () {
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
}
|
17
|
-
return
|
17
|
+
return PayioTabsEntity;
|
18
18
|
}());
|
19
|
-
exports.
|
19
|
+
exports.PayioTabsEntity = PayioTabsEntity;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { EWebhookMethod, EWebhookType } from '../../..';
|
2
|
+
import { IPayioWebhook, IPayioWebhookHeader } from '../interfaces';
|
3
|
+
export declare class PayioWebhookEntity implements IPayioWebhook {
|
4
|
+
active: boolean;
|
5
|
+
headers: PayioWebhookHeaderEntity[];
|
6
|
+
locked: boolean;
|
7
|
+
method: EWebhookMethod;
|
8
|
+
response: any;
|
9
|
+
type: EWebhookType;
|
10
|
+
url: string;
|
11
|
+
constructor(data?: Partial<PayioWebhookEntity>);
|
12
|
+
}
|
13
|
+
export declare class PayioWebhookHeaderEntity implements IPayioWebhookHeader {
|
14
|
+
key: string;
|
15
|
+
value: string;
|
16
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioWebhookHeaderEntity = exports.PayioWebhookEntity = void 0;
|
4
|
+
var __1 = require("../../..");
|
5
|
+
var PayioWebhookEntity = /** @class */ (function () {
|
6
|
+
function PayioWebhookEntity(data) {
|
7
|
+
this.active = true;
|
8
|
+
this.headers = [];
|
9
|
+
this.locked = false;
|
10
|
+
this.method = __1.EWebhookMethod.POST;
|
11
|
+
this.type = __1.EWebhookType.SEND_ORDER;
|
12
|
+
this.url = '';
|
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 PayioWebhookEntity;
|
22
|
+
}());
|
23
|
+
exports.PayioWebhookEntity = PayioWebhookEntity;
|
24
|
+
var PayioWebhookHeaderEntity = /** @class */ (function () {
|
25
|
+
function PayioWebhookHeaderEntity() {
|
26
|
+
this.key = '';
|
27
|
+
this.value = '';
|
28
|
+
}
|
29
|
+
return PayioWebhookHeaderEntity;
|
30
|
+
}());
|
31
|
+
exports.PayioWebhookHeaderEntity = PayioWebhookHeaderEntity;
|
@@ -1,3 +1,5 @@
|
|
1
1
|
export { EBarcodeFormat } from './barcode-format.enum';
|
2
2
|
export { EPayioChefOperationMode } from './operation-mode.enum';
|
3
3
|
export { EPayioChefTabMode } from './tab-mode.enum';
|
4
|
+
export { EWebhookMethod } from './webhook-method.enum';
|
5
|
+
export { EWebhookType } from './webhook-type.enum';
|
@@ -1,9 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EPayioChefTabMode = exports.EPayioChefOperationMode = exports.EBarcodeFormat = void 0;
|
3
|
+
exports.EWebhookType = exports.EWebhookMethod = exports.EPayioChefTabMode = exports.EPayioChefOperationMode = exports.EBarcodeFormat = void 0;
|
4
4
|
var barcode_format_enum_1 = require("./barcode-format.enum");
|
5
5
|
Object.defineProperty(exports, "EBarcodeFormat", { enumerable: true, get: function () { return barcode_format_enum_1.EBarcodeFormat; } });
|
6
6
|
var operation_mode_enum_1 = require("./operation-mode.enum");
|
7
7
|
Object.defineProperty(exports, "EPayioChefOperationMode", { enumerable: true, get: function () { return operation_mode_enum_1.EPayioChefOperationMode; } });
|
8
8
|
var tab_mode_enum_1 = require("./tab-mode.enum");
|
9
9
|
Object.defineProperty(exports, "EPayioChefTabMode", { enumerable: true, get: function () { return tab_mode_enum_1.EPayioChefTabMode; } });
|
10
|
+
var webhook_method_enum_1 = require("./webhook-method.enum");
|
11
|
+
Object.defineProperty(exports, "EWebhookMethod", { enumerable: true, get: function () { return webhook_method_enum_1.EWebhookMethod; } });
|
12
|
+
var webhook_type_enum_1 = require("./webhook-type.enum");
|
13
|
+
Object.defineProperty(exports, "EWebhookType", { enumerable: true, get: function () { return webhook_type_enum_1.EWebhookType; } });
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EWebhookMethod = void 0;
|
4
|
+
var EWebhookMethod;
|
5
|
+
(function (EWebhookMethod) {
|
6
|
+
EWebhookMethod["GET"] = "GET";
|
7
|
+
EWebhookMethod["POST"] = "POST";
|
8
|
+
EWebhookMethod["PUT"] = "PUT";
|
9
|
+
EWebhookMethod["DELETE"] = "DELETE";
|
10
|
+
})(EWebhookMethod || (exports.EWebhookMethod = EWebhookMethod = {}));
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export declare enum EWebhookType {
|
2
|
+
PING = "PING",
|
3
|
+
GET_PRODUCT = "GET_PRODUCT",
|
4
|
+
SEND_ORDER = "SEND_ORDER",
|
5
|
+
GET_ORDER = "GET_ORDER",
|
6
|
+
CANCEL_ORDER = "CANCEL_ORDER",
|
7
|
+
GET_ORDER_STATUS = "GET_ORDER_STATUS",
|
8
|
+
VISION_SEND_IMG = "VISION_SEND_IMG",
|
9
|
+
VISION_ASSIGN_POSITION = "VISION_ASSIGN_POSITION",
|
10
|
+
VISION_UNASSIGN_POSITION = "VISION_UNASSIGN_POSITION",
|
11
|
+
VISION_GET_POSITION = "VISION_GET_POSITION",
|
12
|
+
NFCE_GET_XML = "NFCE_GET_XML",
|
13
|
+
GET_TAB = "GET_TAB"
|
14
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EWebhookType = void 0;
|
4
|
+
var EWebhookType;
|
5
|
+
(function (EWebhookType) {
|
6
|
+
EWebhookType["PING"] = "PING";
|
7
|
+
EWebhookType["GET_PRODUCT"] = "GET_PRODUCT";
|
8
|
+
EWebhookType["SEND_ORDER"] = "SEND_ORDER";
|
9
|
+
EWebhookType["GET_ORDER"] = "GET_ORDER";
|
10
|
+
EWebhookType["CANCEL_ORDER"] = "CANCEL_ORDER";
|
11
|
+
EWebhookType["GET_ORDER_STATUS"] = "GET_ORDER_STATUS";
|
12
|
+
EWebhookType["VISION_SEND_IMG"] = "VISION_SEND_IMG";
|
13
|
+
EWebhookType["VISION_ASSIGN_POSITION"] = "VISION_ASSIGN_POSITION";
|
14
|
+
EWebhookType["VISION_UNASSIGN_POSITION"] = "VISION_UNASSIGN_POSITION";
|
15
|
+
EWebhookType["VISION_GET_POSITION"] = "VISION_GET_POSITION";
|
16
|
+
EWebhookType["NFCE_GET_XML"] = "NFCE_GET_XML";
|
17
|
+
EWebhookType["GET_TAB"] = "GET_TAB";
|
18
|
+
})(EWebhookType || (exports.EWebhookType = EWebhookType = {}));
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { IPayioChefConfigOperation } from './i-chef-config-operation';
|
2
2
|
import { IPayioChefConfigPrinter } from './i-chef-config-printer';
|
3
3
|
import { IPayioChefConfigScale } from './i-chef-config-scale';
|
4
|
-
import {
|
5
|
-
import {
|
4
|
+
import { IPayioTabs } from './i-tabs';
|
5
|
+
import { IPayioWebhook } from './i-webhook';
|
6
6
|
export interface IPayioChefConfig {
|
7
7
|
createdAt: Date;
|
8
8
|
id: string;
|
@@ -11,6 +11,6 @@ export interface IPayioChefConfig {
|
|
11
11
|
printer: IPayioChefConfigPrinter | null;
|
12
12
|
scale: IPayioChefConfigScale;
|
13
13
|
updatedAt: Date;
|
14
|
-
tabs:
|
15
|
-
webhook:
|
14
|
+
tabs: IPayioTabs[];
|
15
|
+
webhook: IPayioWebhook[];
|
16
16
|
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { EWebhookMethod, EWebhookType } from '../../..';
|
2
|
+
export interface IPayioWebhook {
|
3
|
+
active: boolean;
|
4
|
+
method: EWebhookMethod;
|
5
|
+
headers: IPayioWebhookHeader[];
|
6
|
+
url: string;
|
7
|
+
type: EWebhookType;
|
8
|
+
response: any;
|
9
|
+
locked: boolean;
|
10
|
+
}
|
11
|
+
export interface IPayioWebhookHeader {
|
12
|
+
key: string;
|
13
|
+
value: string;
|
14
|
+
}
|
@@ -2,6 +2,5 @@ export { IPayioChefConfig } from './i-chef-config';
|
|
2
2
|
export { IPayioChefConfigOperation } from './i-chef-config-operation';
|
3
3
|
export { IPayioChefConfigPrinter } from './i-chef-config-printer';
|
4
4
|
export { IPayioChefConfigScale } from './i-chef-config-scale';
|
5
|
-
export {
|
6
|
-
export {
|
7
|
-
export { IPayioChefConfigWebhookHeader } from './i-chef-config-webhook-header';
|
5
|
+
export { IPayioTabs } from './i-tabs';
|
6
|
+
export { IPayioWebhook, IPayioWebhookHeader } from './i-webhook';
|
package/dist/payio/index.d.ts
CHANGED
package/dist/payio/index.js
CHANGED
package/package.json
CHANGED
@@ -1,20 +0,0 @@
|
|
1
|
-
export class PayioChefConfigPrinterEntity {
|
2
|
-
// #region Properties (5)
|
3
|
-
active = true;
|
4
|
-
brand = null;
|
5
|
-
interface = 'USB';
|
6
|
-
model = null;
|
7
|
-
port = null;
|
8
|
-
// #endregion Properties (5)
|
9
|
-
// #region Constructors (1)
|
10
|
-
constructor(data) {
|
11
|
-
if (data) {
|
12
|
-
for (let key in data) {
|
13
|
-
if (data.hasOwnProperty(key) && key in this) {
|
14
|
-
this[key] = data[key];
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlZi1jb25maWctcHJpbnRlci5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvcGF5aW8vY2hlZi1jb25maWcvZW50aXRpZXMvY2hlZi1jb25maWctcHJpbnRlci5lbnRpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxPQUFPLDRCQUE0QjtJQUN2Qyx5QkFBeUI7SUFFbEIsTUFBTSxHQUFZLElBQUksQ0FBQztJQUN2QixLQUFLLEdBQ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uc3RydWN0b3JzICgxKVxyXG5cclxuICBjb25zdHJ1Y3RvcihkYXRhPzogUGFydGlhbDxQYXlpb0NoZWZDb25maWdQcmludGVyRW50aXR5Pikge1xyXG4gICAgaWYgKGRhdGEpIHtcclxuICAgICAgZm9yIChsZXQga2V5IGluIGRhdGEpIHtcclxuICAgICAgICBpZiAoZGF0YS5oYXNPd25Qcm9wZXJ0eShrZXkpICYmIGtleSBpbiB0aGlzKSB7XHJcbiAgICAgICAgICAodGhpcyBhcyBhbnkpW2tleV0gPSAoZGF0YSBhcyBhbnkpW2tleV07XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICAvLyAjZW5kcmVnaW9uIENvbnN0cnVjdG9ycyAoMSlcclxufVxyXG4iXX0=
|
@@ -1,18 +0,0 @@
|
|
1
|
-
export class PayioChefConfigScaleEntity {
|
2
|
-
// #region Properties (3)
|
3
|
-
baudRate = '2400';
|
4
|
-
brand = null;
|
5
|
-
model = null;
|
6
|
-
// #endregion Properties (3)
|
7
|
-
// #region Constructors (1)
|
8
|
-
constructor(data) {
|
9
|
-
if (data) {
|
10
|
-
for (let key in data) {
|
11
|
-
if (data.hasOwnProperty(key) && key in this) {
|
12
|
-
this[key] = data[key];
|
13
|
-
}
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlZi1jb25maWctc2NhbGUuZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3BheWlvL2NoZWYtY29uZmlnL2VudGl0aWVzL2NoZWYtY29uZmlnLXNjYWxlLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8sMEJBQTBCO0lBQ3JDLHlCQUF5QjtJQUVsQixRQUFRLEdBQXNFL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