cecon-interfaces 1.9.4 → 1.9.5

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 (31) hide show
  1. package/dist/esm2022/payio/app/entities/app.entity.mjs +4 -3
  2. package/dist/esm2022/payio/app/enums/activation-mode.enum.mjs +6 -0
  3. package/dist/esm2022/payio/app/enums/index.mjs +2 -1
  4. package/dist/esm2022/payio/app/interfaces/i-app.mjs +1 -1
  5. package/dist/esm2022/payio/vision-terminal/entities/vision-terminal.entity.mjs +11 -8
  6. package/dist/esm2022/payio/vision-terminal/enum/index.mjs +2 -0
  7. package/dist/esm2022/payio/vision-terminal/enum/model.enum.mjs +6 -0
  8. package/dist/esm2022/payio/vision-terminal/enum/operation.enum.mjs +8 -0
  9. package/dist/esm2022/payio/vision-terminal/index.mjs +2 -1
  10. package/dist/esm2022/payio/vision-terminal/interfaces/i-vision-terminal.mjs +1 -1
  11. package/dist/fesm2022/cecon-interfaces.mjs +31 -9
  12. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  13. package/dist/payio/app/entities/app.entity.d.ts +3 -2
  14. package/dist/payio/app/entities/app.entity.js +2 -1
  15. package/dist/payio/app/enums/activation-mode.enum.d.ts +4 -0
  16. package/dist/payio/app/enums/activation-mode.enum.js +8 -0
  17. package/dist/payio/app/enums/index.d.ts +1 -0
  18. package/dist/payio/app/enums/index.js +3 -1
  19. package/dist/payio/app/interfaces/i-app.d.ts +2 -1
  20. package/dist/payio/vision-terminal/entities/vision-terminal.entity.d.ts +10 -7
  21. package/dist/payio/vision-terminal/entities/vision-terminal.entity.js +10 -7
  22. package/dist/payio/vision-terminal/enum/index.d.ts +1 -0
  23. package/dist/payio/vision-terminal/enum/index.js +5 -0
  24. package/dist/payio/vision-terminal/enum/model.enum.d.ts +4 -0
  25. package/dist/payio/vision-terminal/enum/model.enum.js +8 -0
  26. package/dist/payio/vision-terminal/enum/operation.enum.d.ts +6 -0
  27. package/dist/payio/vision-terminal/enum/operation.enum.js +10 -0
  28. package/dist/payio/vision-terminal/index.d.ts +1 -0
  29. package/dist/payio/vision-terminal/index.js +1 -0
  30. package/dist/payio/vision-terminal/interfaces/i-vision-terminal.d.ts +10 -7
  31. package/package.json +1 -1
@@ -1,6 +1,8 @@
1
- import { EPayioAppSlug } from '../enums';
1
+ import { EAppActivationMode, EPayioAppSlug } from '../enums';
2
2
  import { IPayioApp } from '../interfaces/i-app';
3
3
  export declare class PayioAppEntity implements IPayioApp {
4
+ accessToken: string | null;
5
+ activationMode: EAppActivationMode;
4
6
  active: boolean;
5
7
  clientKey: string | null;
6
8
  clientSecret: string | null;
@@ -16,7 +18,6 @@ export declare class PayioAppEntity implements IPayioApp {
16
18
  secret: string;
17
19
  slug: EPayioAppSlug;
18
20
  tags: string[];
19
- accessToken: string | null;
20
21
  updatedAt: Date;
21
22
  version: string;
22
23
  constructor(data?: Partial<PayioAppEntity>);
@@ -4,6 +4,8 @@ exports.PayioAppEntity = void 0;
4
4
  var enums_1 = require("../enums");
5
5
  var PayioAppEntity = /** @class */ (function () {
6
6
  function PayioAppEntity(data) {
7
+ this.accessToken = null;
8
+ this.activationMode = enums_1.EAppActivationMode.DIRECT_1_TO_1;
7
9
  this.active = false;
8
10
  this.clientKey = null;
9
11
  this.clientSecret = null;
@@ -19,7 +21,6 @@ var PayioAppEntity = /** @class */ (function () {
19
21
  this.secret = '';
20
22
  this.slug = enums_1.EPayioAppSlug.none;
21
23
  this.tags = [];
22
- this.accessToken = null;
23
24
  this.updatedAt = new Date();
24
25
  this.version = '0.0.1';
25
26
  if (data) {
@@ -0,0 +1,4 @@
1
+ export declare enum EAppActivationMode {
2
+ DIRECT_1_TO_1 = "DIRECT",
3
+ MANAGED_1_TO_N = "MANAGED"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EAppActivationMode = void 0;
4
+ var EAppActivationMode;
5
+ (function (EAppActivationMode) {
6
+ EAppActivationMode["DIRECT_1_TO_1"] = "DIRECT";
7
+ EAppActivationMode["MANAGED_1_TO_N"] = "MANAGED";
8
+ })(EAppActivationMode || (exports.EAppActivationMode = EAppActivationMode = {}));
@@ -1 +1,2 @@
1
+ export { EAppActivationMode } from './activation-mode.enum';
1
2
  export { EPayioAppSlug } from './app-slug.enum';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EPayioAppSlug = void 0;
3
+ exports.EPayioAppSlug = exports.EAppActivationMode = void 0;
4
+ var activation_mode_enum_1 = require("./activation-mode.enum");
5
+ Object.defineProperty(exports, "EAppActivationMode", { enumerable: true, get: function () { return activation_mode_enum_1.EAppActivationMode; } });
4
6
  var app_slug_enum_1 = require("./app-slug.enum");
5
7
  Object.defineProperty(exports, "EPayioAppSlug", { enumerable: true, get: function () { return app_slug_enum_1.EPayioAppSlug; } });
@@ -1,6 +1,7 @@
1
- import { EPayioAppSlug } from '../enums';
1
+ import { EAppActivationMode, EPayioAppSlug } from '../enums';
2
2
  export interface IPayioApp {
3
3
  active: boolean;
4
+ activationMode: EAppActivationMode;
4
5
  clientKey: string | null;
5
6
  clientSecret: string | null;
6
7
  createdAt: Date;
@@ -1,17 +1,20 @@
1
+ import { EPayioVisionTerminalModel } from '../enum';
2
+ import { EPayioVisionTerminalOperation } from '../enum/operation.enum';
1
3
  import { IPayioVisionTerminal } from '../interfaces/i-vision-terminal';
2
4
  export declare class PayioVisionTerminalEntity implements IPayioVisionTerminal {
5
+ activationKeyId: string | null;
6
+ active: boolean;
7
+ appId: string;
8
+ companyId: string;
3
9
  createdAt: Date;
4
10
  deviceId: string;
5
- function: string;
6
- hook: string | null;
7
- hookAuthorization: string | null;
8
11
  id: number;
9
12
  ipAddress: string;
13
+ ipServerAddress: string | null;
14
+ model: EPayioVisionTerminalModel;
10
15
  name: string;
11
- password: string;
12
- session: string | null;
13
- type: string;
16
+ operation: EPayioVisionTerminalOperation;
14
17
  updatedAt: Date;
15
- username: string;
18
+ webhookUrl: string | null;
16
19
  constructor(data?: Partial<PayioVisionTerminalEntity>);
17
20
  }
@@ -1,21 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioVisionTerminalEntity = void 0;
4
+ var enum_1 = require("../enum");
5
+ var operation_enum_1 = require("../enum/operation.enum");
4
6
  var PayioVisionTerminalEntity = /** @class */ (function () {
5
7
  function PayioVisionTerminalEntity(data) {
8
+ this.activationKeyId = null;
9
+ this.active = false;
10
+ this.appId = '';
11
+ this.companyId = '';
6
12
  this.createdAt = new Date();
7
13
  this.deviceId = '';
8
- this.function = '';
9
- this.hook = null;
10
- this.hookAuthorization = null;
11
14
  this.id = 0;
12
15
  this.ipAddress = '';
16
+ this.ipServerAddress = null;
17
+ this.model = enum_1.EPayioVisionTerminalModel.CONTROL_ID;
13
18
  this.name = '';
14
- this.password = '';
15
- this.session = null;
16
- this.type = '';
19
+ this.operation = operation_enum_1.EPayioVisionTerminalOperation.CHECKIN;
17
20
  this.updatedAt = new Date();
18
- this.username = '';
21
+ this.webhookUrl = null;
19
22
  if (data) {
20
23
  for (var key in data) {
21
24
  if (data.hasOwnProperty(key) && key in this) {
@@ -0,0 +1 @@
1
+ export { EPayioVisionTerminalModel } from './model.enum';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayioVisionTerminalModel = void 0;
4
+ var model_enum_1 = require("./model.enum");
5
+ Object.defineProperty(exports, "EPayioVisionTerminalModel", { enumerable: true, get: function () { return model_enum_1.EPayioVisionTerminalModel; } });
@@ -0,0 +1,4 @@
1
+ export declare enum EPayioVisionTerminalModel {
2
+ CONTROL_ID = "control-id",
3
+ INTELBRAS = "intellbras"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayioVisionTerminalModel = void 0;
4
+ var EPayioVisionTerminalModel;
5
+ (function (EPayioVisionTerminalModel) {
6
+ EPayioVisionTerminalModel["CONTROL_ID"] = "control-id";
7
+ EPayioVisionTerminalModel["INTELBRAS"] = "intellbras";
8
+ })(EPayioVisionTerminalModel || (exports.EPayioVisionTerminalModel = EPayioVisionTerminalModel = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum EPayioVisionTerminalOperation {
2
+ CHECKIN = "checkin",
3
+ PAYER = "payer",
4
+ CONSUMER = "consumer",
5
+ CHECKOUT = "checkout"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayioVisionTerminalOperation = void 0;
4
+ var EPayioVisionTerminalOperation;
5
+ (function (EPayioVisionTerminalOperation) {
6
+ EPayioVisionTerminalOperation["CHECKIN"] = "checkin";
7
+ EPayioVisionTerminalOperation["PAYER"] = "payer";
8
+ EPayioVisionTerminalOperation["CONSUMER"] = "consumer";
9
+ EPayioVisionTerminalOperation["CHECKOUT"] = "checkout";
10
+ })(EPayioVisionTerminalOperation || (exports.EPayioVisionTerminalOperation = EPayioVisionTerminalOperation = {}));
@@ -1,2 +1,3 @@
1
1
  export * from './entities';
2
+ export * from './enum';
2
3
  export * from './interfaces';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./enum"), exports);
18
19
  __exportStar(require("./interfaces"), exports);
@@ -1,15 +1,18 @@
1
+ import { EPayioVisionTerminalModel } from '../enum';
2
+ import { EPayioVisionTerminalOperation } from '../enum/operation.enum';
1
3
  export interface IPayioVisionTerminal {
4
+ active: boolean;
5
+ activationKeyId: string | null;
6
+ appId: string;
7
+ companyId: string;
2
8
  createdAt: Date;
3
9
  deviceId: string;
4
- function: string;
5
- hook: string | null;
6
- hookAuthorization: string | null;
7
10
  id: number;
8
11
  ipAddress: string;
12
+ ipServerAddress: string | null;
13
+ model: EPayioVisionTerminalModel;
9
14
  name: string;
10
- password: string;
11
- session: string | null;
12
- type: string;
15
+ operation: EPayioVisionTerminalOperation;
13
16
  updatedAt: Date;
14
- username: string;
17
+ webhookUrl: string | null;
15
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",