cecon-interfaces 1.7.98 → 1.8.1

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.
Files changed (39) hide show
  1. package/dist/esm2022/natipay/orders/enums/sale-channel.enum.mjs +2 -1
  2. package/dist/esm2022/payio/cash-config/entities/config-operation.entity.mjs +2 -2
  3. package/dist/esm2022/payio/cash-config/entities/config.entity.mjs +1 -2
  4. package/dist/esm2022/payio/cash-config/entities/index.mjs +2 -2
  5. package/dist/esm2022/payio/cash-config/interfaces/{i-chef-config-operation.mjs → i-cash-config-operation.mjs} +1 -1
  6. package/dist/esm2022/payio/cash-config/interfaces/i-cash-config.mjs +1 -1
  7. package/dist/esm2022/payio/cash-config/interfaces/index.mjs +1 -1
  8. package/dist/esm2022/payio/chef-config/entities/config.entity.mjs +3 -4
  9. package/dist/esm2022/payio/chef-config/entities/index.mjs +1 -2
  10. package/dist/esm2022/payio/chef-config/interfaces/i-chef-config.mjs +1 -1
  11. package/dist/esm2022/payio/chef-config/interfaces/index.mjs +1 -1
  12. package/dist/fesm2022/cecon-interfaces.mjs +3 -19
  13. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  14. package/dist/natipay/orders/enums/sale-channel.enum.d.ts +1 -0
  15. package/dist/natipay/orders/enums/sale-channel.enum.js +1 -0
  16. package/dist/package.json +1 -1
  17. package/dist/payio/cash-config/entities/config-operation.entity.d.ts +2 -2
  18. package/dist/payio/cash-config/entities/config-operation.entity.js +1 -1
  19. package/dist/payio/cash-config/entities/config.entity.d.ts +2 -3
  20. package/dist/payio/cash-config/entities/config.entity.js +0 -1
  21. package/dist/payio/cash-config/entities/index.d.ts +1 -1
  22. package/dist/payio/cash-config/entities/index.js +2 -1
  23. package/dist/payio/cash-config/interfaces/{i-chef-config-operation.d.ts → i-cash-config-operation.d.ts} +1 -1
  24. package/dist/payio/cash-config/interfaces/i-cash-config.d.ts +2 -3
  25. package/dist/payio/cash-config/interfaces/index.d.ts +2 -1
  26. package/dist/payio/chef-config/entities/config.entity.d.ts +1 -2
  27. package/dist/payio/chef-config/entities/config.entity.js +0 -1
  28. package/dist/payio/chef-config/entities/index.d.ts +0 -1
  29. package/dist/payio/chef-config/entities/index.js +1 -3
  30. package/dist/payio/chef-config/interfaces/i-chef-config.d.ts +0 -2
  31. package/dist/payio/chef-config/interfaces/index.d.ts +0 -1
  32. package/package.json +1 -1
  33. package/dist/esm2022/payio/chef-config/entities/tabs.entity.mjs +0 -15
  34. package/dist/esm2022/payio/chef-config/interfaces/i-tabs.mjs +0 -2
  35. package/dist/payio/chef-config/entities/tabs.entity.d.ts +0 -7
  36. package/dist/payio/chef-config/entities/tabs.entity.js +0 -19
  37. package/dist/payio/chef-config/interfaces/i-tabs.d.ts +0 -5
  38. package/dist/payio/chef-config/interfaces/i-tabs.js +0 -2
  39. /package/dist/payio/cash-config/interfaces/{i-chef-config-operation.js → i-cash-config-operation.js} +0 -0
@@ -2,6 +2,7 @@ export declare enum ENatipaySaleChannel {
2
2
  PAYIO_CASH = "PAYIOCASH",
3
3
  PAYIO_CHEF = "PAYIOCHEF",
4
4
  GESTOR_FINANCE = "GESTOR-FINANCE",
5
+ NATIPAY = "NATIPAY",
5
6
  NATIPAY_TAB = "NATIPAY-TAB",
6
7
  NATI_PDV = "NATI-PDV",
7
8
  NATI_SMART_POS = "NATI-SMART-POS",
@@ -7,6 +7,7 @@ var ENatipaySaleChannel;
7
7
  ENatipaySaleChannel["PAYIO_CASH"] = "PAYIOCASH";
8
8
  ENatipaySaleChannel["PAYIO_CHEF"] = "PAYIOCHEF";
9
9
  ENatipaySaleChannel["GESTOR_FINANCE"] = "GESTOR-FINANCE";
10
+ ENatipaySaleChannel["NATIPAY"] = "NATIPAY";
10
11
  ENatipaySaleChannel["NATIPAY_TAB"] = "NATIPAY-TAB";
11
12
  ENatipaySaleChannel["NATI_PDV"] = "NATI-PDV";
12
13
  ENatipaySaleChannel["NATI_SMART_POS"] = "NATI-SMART-POS";
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.98",
3
+ "version": "1.8.1",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  import { EBarcodeFormat } from '../../chef-config';
2
2
  import { ETefProvider } from '../enums';
3
- import { IPayioCashConfigOperation, IPayioCashConfigOperationTef } from '../interfaces/i-chef-config-operation';
3
+ import { IPayioCashConfigOperation, IPayioCashConfigOperationTef } from '../interfaces/i-cash-config-operation';
4
4
  export declare class PayioCashConfigOperationEntity implements IPayioCashConfigOperation {
5
5
  balanceMethod: EBarcodeFormat;
6
6
  tabFormat: string | null;
@@ -8,7 +8,7 @@ export declare class PayioCashConfigOperationEntity implements IPayioCashConfigO
8
8
  constructor(data?: Partial<PayioCashConfigOperationEntity>);
9
9
  }
10
10
  export declare class PayioCashConfigOperationTefEntity implements IPayioCashConfigOperationTef {
11
- companyNumber: number;
11
+ companyNumber: string;
12
12
  provider: ETefProvider;
13
13
  terminal: string;
14
14
  url: string;
@@ -21,7 +21,7 @@ var PayioCashConfigOperationEntity = /** @class */ (function () {
21
21
  exports.PayioCashConfigOperationEntity = PayioCashConfigOperationEntity;
22
22
  var PayioCashConfigOperationTefEntity = /** @class */ (function () {
23
23
  function PayioCashConfigOperationTefEntity() {
24
- this.companyNumber = 0;
24
+ this.companyNumber = '';
25
25
  this.provider = enums_1.ETefProvider.FISERV;
26
26
  this.terminal = '';
27
27
  this.url = '';
@@ -1,12 +1,11 @@
1
- import { IPayioTabs, IPayioWebhook } from '../../chef-config/interfaces';
1
+ import { IPayioWebhook } from '../../chef-config/interfaces';
2
2
  import { IPayioCashConfig } from '../interfaces/i-cash-config';
3
- import { IPayioCashConfigOperation } from '../interfaces/i-chef-config-operation';
3
+ import { IPayioCashConfigOperation } from '../interfaces/i-cash-config-operation';
4
4
  export declare class PayioCashConfigEntity implements IPayioCashConfig {
5
5
  createdAt: Date;
6
6
  id: string;
7
7
  name: string;
8
8
  operation: IPayioCashConfigOperation;
9
- tabs: IPayioTabs[];
10
9
  updatedAt: Date;
11
10
  webhook: IPayioWebhook[];
12
11
  constructor(data?: Partial<PayioCashConfigEntity>);
@@ -8,7 +8,6 @@ var PayioCashConfigEntity = /** @class */ (function () {
8
8
  this.id = '';
9
9
  this.name = '';
10
10
  this.operation = new config_operation_entity_1.PayioCashConfigOperationEntity();
11
- this.tabs = [];
12
11
  this.updatedAt = new Date();
13
12
  this.webhook = [];
14
13
  if (data) {
@@ -1,2 +1,2 @@
1
- export { PayioCashConfigOperationEntity } from './config-operation.entity';
1
+ export { PayioCashConfigOperationEntity, PayioCashConfigOperationTefEntity } from './config-operation.entity';
2
2
  export { PayioCashConfigEntity } from './config.entity';
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioCashConfigEntity = exports.PayioCashConfigOperationEntity = void 0;
3
+ exports.PayioCashConfigEntity = exports.PayioCashConfigOperationTefEntity = exports.PayioCashConfigOperationEntity = void 0;
4
4
  var config_operation_entity_1 = require("./config-operation.entity");
5
5
  Object.defineProperty(exports, "PayioCashConfigOperationEntity", { enumerable: true, get: function () { return config_operation_entity_1.PayioCashConfigOperationEntity; } });
6
+ Object.defineProperty(exports, "PayioCashConfigOperationTefEntity", { enumerable: true, get: function () { return config_operation_entity_1.PayioCashConfigOperationTefEntity; } });
6
7
  var config_entity_1 = require("./config.entity");
7
8
  Object.defineProperty(exports, "PayioCashConfigEntity", { enumerable: true, get: function () { return config_entity_1.PayioCashConfigEntity; } });
@@ -6,7 +6,7 @@ export interface IPayioCashConfigOperation {
6
6
  tef: IPayioCashConfigOperationTef;
7
7
  }
8
8
  export interface IPayioCashConfigOperationTef {
9
- companyNumber: number;
9
+ companyNumber: string;
10
10
  provider: ETefProvider;
11
11
  terminal: string;
12
12
  url: string;
@@ -1,11 +1,10 @@
1
- import { IPayioTabs, IPayioWebhook } from '../../chef-config/interfaces';
2
- import { IPayioCashConfigOperation } from './i-chef-config-operation';
1
+ import { IPayioWebhook } from '../../chef-config/interfaces';
2
+ import { IPayioCashConfigOperation } from './i-cash-config-operation';
3
3
  export interface IPayioCashConfig {
4
4
  createdAt: Date;
5
5
  id: string;
6
6
  name: string;
7
7
  operation: IPayioCashConfigOperation;
8
8
  updatedAt: Date;
9
- tabs: IPayioTabs[];
10
9
  webhook: IPayioWebhook[];
11
10
  }
@@ -1 +1,2 @@
1
- export { IPayioCashConfigOperation, IPayioCashConfigOperationTef } from './i-chef-config-operation';
1
+ export { IPayioCashConfig } from './i-cash-config';
2
+ export { IPayioCashConfigOperation, IPayioCashConfigOperationTef } from './i-cash-config-operation';
@@ -1,4 +1,4 @@
1
- import { IPayioChefConfig, IPayioChefConfigOperation, IPayioChefConfigPrinter, IPayioChefConfigScale, IPayioTabs, IPayioWebhook } from '../interfaces';
1
+ import { IPayioChefConfig, IPayioChefConfigOperation, IPayioChefConfigPrinter, IPayioChefConfigScale, IPayioWebhook } from "../interfaces";
2
2
  export declare class PayioChefConfigEntity implements IPayioChefConfig {
3
3
  createdAt: Date;
4
4
  id: string;
@@ -6,7 +6,6 @@ export declare class PayioChefConfigEntity implements IPayioChefConfig {
6
6
  operation: IPayioChefConfigOperation;
7
7
  printer: IPayioChefConfigPrinter | null;
8
8
  scale: IPayioChefConfigScale;
9
- tabs: IPayioTabs[];
10
9
  updatedAt: Date;
11
10
  webhook: IPayioWebhook[];
12
11
  constructor(data?: Partial<PayioChefConfigEntity>);
@@ -11,7 +11,6 @@ var PayioChefConfigEntity = /** @class */ (function () {
11
11
  this.operation = new config_operation_entity_1.PayioChefConfigOperationEntity();
12
12
  this.printer = null;
13
13
  this.scale = new config_scale_entity_1.PayioChefConfigScaleEntity();
14
- this.tabs = [];
15
14
  this.updatedAt = new Date();
16
15
  this.webhook = [];
17
16
  if (data) {
@@ -2,5 +2,4 @@ export { PayioChefConfigPrinterEntity } from './config-printer.entity';
2
2
  export { PayioChefConfigOperationEntity } from './config-operation.entity';
3
3
  export { PayioChefConfigScaleEntity } from './config-scale.entity';
4
4
  export { PayioChefConfigEntity } from './config.entity';
5
- export { PayioTabsEntity } from './tabs.entity';
6
5
  export { PayioWebhookEntity } from './webhook.entity';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioWebhookEntity = exports.PayioTabsEntity = exports.PayioChefConfigEntity = exports.PayioChefConfigScaleEntity = exports.PayioChefConfigOperationEntity = exports.PayioChefConfigPrinterEntity = void 0;
3
+ exports.PayioWebhookEntity = exports.PayioChefConfigEntity = exports.PayioChefConfigScaleEntity = exports.PayioChefConfigOperationEntity = exports.PayioChefConfigPrinterEntity = void 0;
4
4
  var config_printer_entity_1 = require("./config-printer.entity");
5
5
  Object.defineProperty(exports, "PayioChefConfigPrinterEntity", { enumerable: true, get: function () { return config_printer_entity_1.PayioChefConfigPrinterEntity; } });
6
6
  var config_operation_entity_1 = require("./config-operation.entity");
@@ -9,7 +9,5 @@ var config_scale_entity_1 = require("./config-scale.entity");
9
9
  Object.defineProperty(exports, "PayioChefConfigScaleEntity", { enumerable: true, get: function () { return config_scale_entity_1.PayioChefConfigScaleEntity; } });
10
10
  var config_entity_1 = require("./config.entity");
11
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
12
  var webhook_entity_1 = require("./webhook.entity");
15
13
  Object.defineProperty(exports, "PayioWebhookEntity", { enumerable: true, get: function () { return webhook_entity_1.PayioWebhookEntity; } });
@@ -1,7 +1,6 @@
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 { IPayioTabs } from './i-tabs';
5
4
  import { IPayioWebhook } from './i-webhook';
6
5
  export interface IPayioChefConfig {
7
6
  createdAt: Date;
@@ -11,6 +10,5 @@ export interface IPayioChefConfig {
11
10
  printer: IPayioChefConfigPrinter | null;
12
11
  scale: IPayioChefConfigScale;
13
12
  updatedAt: Date;
14
- tabs: IPayioTabs[];
15
13
  webhook: IPayioWebhook[];
16
14
  }
@@ -2,5 +2,4 @@ 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 { IPayioTabs } from './i-tabs';
6
5
  export { IPayioWebhook, IPayioWebhookHeader } from './i-webhook';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.98",
3
+ "version": "1.8.1",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,15 +0,0 @@
1
- export class PayioTabsEntity {
2
- active = true;
3
- id = '';
4
- name = '';
5
- constructor(data) {
6
- if (data) {
7
- for (let key in data) {
8
- if (data.hasOwnProperty(key) && key in this) {
9
- this[key] = data[key];
10
- }
11
- }
12
- }
13
- }
14
- }
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvcGF5aW8vY2hlZi1jb25maWcvZW50aXRpZXMvdGFicy5lbnRpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxPQUFPLGVBQWU7SUFDbkIsTUFBTSxHQUFZLElBQUksQ0FBQztJQUN2QixFQUFFLEdBQVc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jozLCJmaWxlIjoiaS10YWJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3BheWlvL2NoZWYtY29uZmlnL2ludGVyZmFjZXMvaS10YWJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIElQYXlpb1RhYnMge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMTApXHJcblxyXG4gIGlkOiBzdHJpbmc7XHJcbiAgbmFtZTogc3RyaW5nIHwgbnVsbDtcclxuICBhY3RpdmU6IGJvb2xlYW47XHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMTApXHJcbn1cclxuIl19
@@ -1,7 +0,0 @@
1
- import { IPayioTabs } from '../interfaces';
2
- export declare class PayioTabsEntity implements IPayioTabs {
3
- active: boolean;
4
- id: string;
5
- name: string | null;
6
- constructor(data?: Partial<PayioTabsEntity>);
7
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioTabsEntity = void 0;
4
- var PayioTabsEntity = /** @class */ (function () {
5
- function PayioTabsEntity(data) {
6
- this.active = true;
7
- this.id = '';
8
- this.name = '';
9
- if (data) {
10
- for (var key in data) {
11
- if (data.hasOwnProperty(key) && key in this) {
12
- this[key] = data[key];
13
- }
14
- }
15
- }
16
- }
17
- return PayioTabsEntity;
18
- }());
19
- exports.PayioTabsEntity = PayioTabsEntity;
@@ -1,5 +0,0 @@
1
- export interface IPayioTabs {
2
- id: string;
3
- name: string | null;
4
- active: boolean;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });