cecon-interfaces 2.0.16 → 2.0.20

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 (43) hide show
  1. package/dist/esm2022/payio/activation-key/entities/activation-key.entity.mjs +2 -2
  2. package/dist/esm2022/payio/activation-key/interfaces/i-activation-key.mjs +1 -1
  3. package/dist/esm2022/payio/cards/entities/card.entity.mjs +2 -1
  4. package/dist/esm2022/payio/cards/interfaces/i-card.mjs +1 -1
  5. package/dist/esm2022/payio/device/entities/device-chef.entity.mjs +19 -0
  6. package/dist/esm2022/payio/device/entities/device.entity.mjs +5 -3
  7. package/dist/esm2022/payio/device/interfaces/i-device.mjs +1 -1
  8. package/dist/esm2022/payio/payload/entities/payload-device.entity.mjs +13 -3
  9. package/dist/esm2022/payio/payload/entities/payload-machine.entity.mjs +16 -0
  10. package/dist/esm2022/payio/payload/entities/payload.entity.mjs +4 -1
  11. package/dist/esm2022/payio/payload/interfaces/i-payload-device.mjs +1 -1
  12. package/dist/esm2022/payio/payload/interfaces/i-payload-machine.mjs +2 -0
  13. package/dist/esm2022/payio/payload/interfaces/i-payload.mjs +1 -1
  14. package/dist/esm2022/payio/tokens/entities/token.entity.mjs +3 -1
  15. package/dist/esm2022/payio/tokens/interfaces/i-token.mjs +1 -1
  16. package/dist/fesm2022/cecon-interfaces.mjs +22 -5
  17. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  18. package/dist/payio/activation-key/entities/activation-key.entity.d.ts +1 -1
  19. package/dist/payio/activation-key/entities/activation-key.entity.js +1 -1
  20. package/dist/payio/activation-key/interfaces/i-activation-key.d.ts +1 -1
  21. package/dist/payio/cards/entities/card.entity.d.ts +1 -0
  22. package/dist/payio/cards/entities/card.entity.js +1 -0
  23. package/dist/payio/cards/interfaces/i-card.d.ts +1 -0
  24. package/dist/payio/device/entities/device-chef.entity.d.ts +8 -0
  25. package/dist/payio/device/entities/device-chef.entity.js +23 -0
  26. package/dist/payio/device/entities/device.entity.d.ts +5 -4
  27. package/dist/payio/device/entities/device.entity.js +4 -2
  28. package/dist/payio/device/interfaces/i-device.d.ts +5 -4
  29. package/dist/payio/payload/entities/payload-device.entity.d.ts +12 -2
  30. package/dist/payio/payload/entities/payload-device.entity.js +12 -2
  31. package/dist/payio/payload/entities/payload-machine.entity.d.ts +8 -0
  32. package/dist/payio/payload/entities/payload-machine.entity.js +20 -0
  33. package/dist/payio/payload/entities/payload.entity.d.ts +7 -4
  34. package/dist/payio/payload/entities/payload.entity.js +2 -0
  35. package/dist/payio/payload/interfaces/i-payload-device.d.ts +13 -3
  36. package/dist/payio/payload/interfaces/i-payload-machine.d.ts +6 -0
  37. package/dist/payio/payload/interfaces/i-payload-machine.js +2 -0
  38. package/dist/payio/payload/interfaces/i-payload.d.ts +3 -0
  39. package/dist/payio/tokens/entities/token.entity.d.ts +2 -0
  40. package/dist/payio/tokens/entities/token.entity.js +2 -0
  41. package/dist/payio/tokens/interfaces/i-token.d.ts +2 -0
  42. package/package.json +1 -1
  43. package/readme.md +1 -1
@@ -11,7 +11,7 @@ export declare class PayioActivationKeyEntity implements IPayioActivationKey {
11
11
  companyName: string | null;
12
12
  confirmationKey: boolean;
13
13
  createdAt: Date;
14
- deviceUid: string | null;
14
+ machineUid: string | null;
15
15
  distributorId: string;
16
16
  distributorName: string;
17
17
  expiresAt: Date | null;
@@ -25,7 +25,7 @@ var PayioActivationKeyEntity = /** @class */ (function () {
25
25
  // Data de criação da chave
26
26
  this.createdAt = new Date();
27
27
  // ID do dispositivo (preenchido na ativação)
28
- this.deviceUid = null;
28
+ this.machineUid = null;
29
29
  // === DADOS DE DISTRIBUIÇÃO (copiados do batch) ===
30
30
  // ID do distribuidor
31
31
  this.distributorId = '';
@@ -9,7 +9,7 @@ export interface IPayioActivationKey {
9
9
  companyName: string | null;
10
10
  confirmationKey: boolean;
11
11
  createdAt: Date;
12
- deviceUid: string | null;
12
+ machineUid: string | null;
13
13
  distributorId: string;
14
14
  distributorName: string;
15
15
  expiresAt: Date | null;
@@ -1,6 +1,7 @@
1
1
  import { ECardMode, EPayioCardStatus } from '../enums';
2
2
  import { IPayioCardConfig } from '../interfaces';
3
3
  import { IPayioCard } from '../interfaces/i-card';
4
+ /** @deprecated use CardEntity from @arcnetdev/arcnet-payio-interfaces instead */
4
5
  export declare class PayioCardEntity implements IPayioCard {
5
6
  active: boolean;
6
7
  companyId: string;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioCardEntity = void 0;
4
4
  var enums_1 = require("../enums");
5
5
  var card_config_entity_1 = require("./card-config.entity");
6
+ /** @deprecated use CardEntity from @arcnetdev/arcnet-payio-interfaces instead */
6
7
  var PayioCardEntity = /** @class */ (function () {
7
8
  function PayioCardEntity(data) {
8
9
  this.active = false;
@@ -1,5 +1,6 @@
1
1
  import { ECardMode, EPayioCardStatus } from "../enums";
2
2
  import { IPayioCardConfig } from "./i-card-config";
3
+ /** @deprecated use ICard from @arcnetdev/arcnet-payio-interfaces instead */
3
4
  export interface IPayioCard {
4
5
  active: boolean;
5
6
  companyId: string;
@@ -0,0 +1,8 @@
1
+ import { IPayioDeviceChef } from '../interfaces/i-device-chef';
2
+ export declare class PayioDeviceChefEntity implements IPayioDeviceChef {
3
+ chefConfigId: string | null;
4
+ chefConfigName: string | null;
5
+ scheduleId: string | null;
6
+ scheduleName: string | null;
7
+ constructor(data?: Partial<PayioDeviceChefEntity>);
8
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioDeviceChefEntity = void 0;
4
+ var PayioDeviceChefEntity = /** @class */ (function () {
5
+ // #endregion Properties (4)
6
+ // #region Constructors (1)
7
+ function PayioDeviceChefEntity(data) {
8
+ // #region Properties (4)
9
+ this.chefConfigId = null;
10
+ this.chefConfigName = null;
11
+ this.scheduleId = null;
12
+ this.scheduleName = null;
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 PayioDeviceChefEntity;
22
+ }());
23
+ exports.PayioDeviceChefEntity = PayioDeviceChefEntity;
@@ -1,10 +1,11 @@
1
1
  import { IPayioDevice } from '../interfaces/i-device';
2
- import { IPayioDeviceActivation } from '../interfaces/i-device-activation';
3
- import { IPayioDeviceConfig } from '../interfaces/i-device-config';
2
+ import { PayioDeviceChefEntity } from './device-chef.entity';
3
+ /** @deprecated use MachineEntity from @arcnetdev/arcnet-payio-interfaces instead */
4
4
  export declare class PayioDeviceEntity implements IPayioDevice {
5
- activations: IPayioDeviceActivation[];
5
+ activationKeyId: string | null;
6
+ activationKey: string | null;
6
7
  active: boolean;
7
- configs: IPayioDeviceConfig[];
8
+ chef: PayioDeviceChefEntity | null;
8
9
  companyId: string;
9
10
  containerId: string;
10
11
  createdAt: Date;
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioDeviceEntity = void 0;
4
+ /** @deprecated use MachineEntity from @arcnetdev/arcnet-payio-interfaces instead */
4
5
  var PayioDeviceEntity = /** @class */ (function () {
5
6
  function PayioDeviceEntity(data) {
6
- this.activations = [];
7
+ this.activationKeyId = null;
8
+ this.activationKey = null;
7
9
  this.active = false;
8
- this.configs = [];
10
+ this.chef = null;
9
11
  this.companyId = '';
10
12
  this.containerId = '';
11
13
  this.createdAt = new Date();
@@ -1,14 +1,15 @@
1
- import { IPayioDeviceActivation } from './i-device-activation';
2
- import { IPayioDeviceConfig } from './i-device-config';
1
+ import { IPayioDeviceChef } from './i-device-chef';
2
+ /** @deprecated use IMachine from @arcnetdev/arcnet-payio-interfaces instead */
3
3
  export interface IPayioDevice {
4
- activations: IPayioDeviceActivation[];
4
+ activationKey: string | null;
5
+ activationKeyId: string | null;
5
6
  active: boolean;
7
+ chef: IPayioDeviceChef | null;
6
8
  companyId: string;
7
9
  containerId: string;
8
10
  createdAt: Date;
9
11
  deviceId: string;
10
12
  id: string;
11
- configs: IPayioDeviceConfig[];
12
13
  lastAccess: Date;
13
14
  name: string;
14
15
  sandbox: boolean;
@@ -1,8 +1,18 @@
1
+ import { EPayioActivationKeyStatus } from '../..';
1
2
  import { IPayioJwtPayloadDevice } from '../interfaces/i-payload-device';
3
+ /**
4
+ * @deprecated Use PayioJwtPayloadMachineEntity instead
5
+ */
2
6
  export declare class PayioJwtPayloadDeviceEntity implements IPayioJwtPayloadDevice {
7
+ activationId: string | null;
8
+ activationKey: string | null;
9
+ activationStatus: EPayioActivationKeyStatus;
10
+ bigChefConfigId: string | null;
11
+ cashConfigId: string | null;
12
+ chefConfigId: string | null;
3
13
  id: string;
4
14
  name: string | null;
5
- uid: string | null;
6
- settings?: Record<string, string>;
15
+ scheduleId: string | null;
16
+ smartConfigId: string | null;
7
17
  constructor(data?: Partial<PayioJwtPayloadDeviceEntity>);
8
18
  }
@@ -1,12 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioJwtPayloadDeviceEntity = void 0;
4
+ var __1 = require("../..");
5
+ /**
6
+ * @deprecated Use PayioJwtPayloadMachineEntity instead
7
+ */
4
8
  var PayioJwtPayloadDeviceEntity = /** @class */ (function () {
5
9
  function PayioJwtPayloadDeviceEntity(data) {
10
+ this.activationId = '';
11
+ this.activationKey = '';
12
+ this.activationStatus = __1.EPayioActivationKeyStatus.NONE;
13
+ this.bigChefConfigId = '';
14
+ this.cashConfigId = '';
15
+ this.chefConfigId = '';
6
16
  this.id = '';
7
17
  this.name = '';
8
- this.uid = null;
9
- this.settings = {};
18
+ this.scheduleId = '';
19
+ this.smartConfigId = '';
10
20
  if (data) {
11
21
  for (var key in data) {
12
22
  if (data.hasOwnProperty(key) && key in this) {
@@ -0,0 +1,8 @@
1
+ import { IPayioJwtPayloadMachine } from '../interfaces/i-payload-machine';
2
+ export declare class PayioJwtPayloadMachineEntity implements IPayioJwtPayloadMachine {
3
+ id: string;
4
+ name: string | null;
5
+ uid: string | null;
6
+ settings?: Record<string, string>;
7
+ constructor(data?: Partial<PayioJwtPayloadMachineEntity>);
8
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioJwtPayloadMachineEntity = void 0;
4
+ var PayioJwtPayloadMachineEntity = /** @class */ (function () {
5
+ function PayioJwtPayloadMachineEntity(data) {
6
+ this.id = '';
7
+ this.name = '';
8
+ this.uid = null;
9
+ this.settings = {};
10
+ if (data) {
11
+ for (var key in data) {
12
+ if (data.hasOwnProperty(key) && key in this) {
13
+ this[key] = data[key];
14
+ }
15
+ }
16
+ }
17
+ }
18
+ return PayioJwtPayloadMachineEntity;
19
+ }());
20
+ exports.PayioJwtPayloadMachineEntity = PayioJwtPayloadMachineEntity;
@@ -1,19 +1,22 @@
1
+ import { PayioJwtPayloadActivationEntity, PayioJwtPayloadAppEntity, PayioJwtPayloadInfoEntity } from '../..';
1
2
  import { EPayioJwtTokenType } from '../enums';
2
3
  import { IPayioJwtPayload } from '../interfaces/i-payload';
3
- import { IPayioJwtPayloadApp } from '../interfaces/i-payload-app';
4
- import { IPayioJwtPayloadInfo } from '../interfaces/i-payload-info';
5
4
  import { PayioJwtPayloadDeviceEntity } from './payload-device.entity';
5
+ import { PayioJwtPayloadMachineEntity } from './payload-machine.entity';
6
6
  import { PayioJwtPayloadUserEntity } from './payload-user.entity';
7
7
  export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
8
- app: IPayioJwtPayloadApp | null;
8
+ activation?: PayioJwtPayloadActivationEntity | null | undefined;
9
+ app: PayioJwtPayloadAppEntity | null;
9
10
  aud: string | string[];
11
+ /** @deprecated use machine instead */
10
12
  device: PayioJwtPayloadDeviceEntity | null;
11
13
  distributorId: string | null;
12
14
  exp?: number;
13
15
  iat: number;
14
- info: IPayioJwtPayloadInfo | null;
16
+ info: PayioJwtPayloadInfoEntity | null;
15
17
  iss: string;
16
18
  jti: string;
19
+ machine: PayioJwtPayloadMachineEntity | null;
17
20
  permissions: string[];
18
21
  sub: string;
19
22
  type: EPayioJwtTokenType | null;
@@ -5,6 +5,7 @@ var PayioJwtPayloadEntity = /** @class */ (function () {
5
5
  function PayioJwtPayloadEntity(data) {
6
6
  this.app = null;
7
7
  this.aud = '';
8
+ /** @deprecated use machine instead */
8
9
  this.device = null;
9
10
  this.distributorId = null;
10
11
  this.exp = 0;
@@ -12,6 +13,7 @@ var PayioJwtPayloadEntity = /** @class */ (function () {
12
13
  this.info = null;
13
14
  this.iss = '';
14
15
  this.jti = '';
16
+ this.machine = null;
15
17
  this.permissions = [];
16
18
  this.sub = '';
17
19
  this.type = null;
@@ -1,6 +1,16 @@
1
+ import { EPayioActivationKeyStatus } from '../../activation-key';
2
+ /**
3
+ * @deprecated Use IPayioJwtPayloadMachine instead
4
+ */
1
5
  export interface IPayioJwtPayloadDevice {
2
- id: string | null;
6
+ activationId: string | null;
7
+ activationKey: string | null;
8
+ activationStatus: EPayioActivationKeyStatus;
9
+ bigChefConfigId: string | null;
10
+ cashConfigId: string | null;
11
+ chefConfigId: string | null;
12
+ id: string;
3
13
  name: string | null;
4
- uid: string | null;
5
- settings?: Record<string, string>;
14
+ scheduleId: string | null;
15
+ smartConfigId: string | null;
6
16
  }
@@ -0,0 +1,6 @@
1
+ export interface IPayioJwtPayloadMachine {
2
+ id: string | null;
3
+ name: string | null;
4
+ uid: string | null;
5
+ settings?: Record<string, string>;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,7 @@ import { EPayioJwtTokenType } from '../enums';
3
3
  import { IPayioJwtPayloadApp } from './i-payload-app';
4
4
  import { IPayioJwtPayloadDevice } from './i-payload-device';
5
5
  import { IPayioJwtPayloadInfo } from './i-payload-info';
6
+ import { IPayioJwtPayloadMachine } from './i-payload-machine';
6
7
  import { IPayioJwtPayloadUser } from './i-payload-user';
7
8
  export interface IPayioJwtPayload {
8
9
  app: IPayioJwtPayloadApp | null;
@@ -12,6 +13,7 @@ export interface IPayioJwtPayload {
12
13
  */
13
14
  aud: string | string[];
14
15
  activation?: IPayioJwtPayloadActivation | null;
16
+ /** @deprecated use machine instead */
15
17
  device: IPayioJwtPayloadDevice | null;
16
18
  distributorId: string | null;
17
19
  /**
@@ -28,6 +30,7 @@ export interface IPayioJwtPayload {
28
30
  */
29
31
  iss: string;
30
32
  jti: string;
33
+ machine: IPayioJwtPayloadMachine | null;
31
34
  permissions: string[];
32
35
  sub: string;
33
36
  type: EPayioJwtTokenType | null;
@@ -3,11 +3,13 @@ export declare class PayioTokenEntity implements IPayioToken {
3
3
  appId: string;
4
4
  companyId: string | null;
5
5
  createdAt: Date;
6
+ /** @deprecated use machineUid instead */
6
7
  deviceId: string | null;
7
8
  expiresAt: Date;
8
9
  id: string;
9
10
  ipAddress: string | null;
10
11
  isRevoked: boolean;
12
+ machineUid: string | null;
11
13
  refreshToken: string;
12
14
  revokedAt: Date | null;
13
15
  sandbox: boolean;
@@ -6,11 +6,13 @@ var PayioTokenEntity = /** @class */ (function () {
6
6
  this.appId = '';
7
7
  this.companyId = null;
8
8
  this.createdAt = new Date();
9
+ /** @deprecated use machineUid instead */
9
10
  this.deviceId = null;
10
11
  this.expiresAt = new Date();
11
12
  this.id = '';
12
13
  this.ipAddress = null;
13
14
  this.isRevoked = false;
15
+ this.machineUid = null;
14
16
  this.refreshToken = '';
15
17
  this.revokedAt = null;
16
18
  this.sandbox = false;
@@ -2,7 +2,9 @@ export interface IPayioToken {
2
2
  appId: string;
3
3
  companyId: string | null;
4
4
  createdAt: Date;
5
+ /** @deprecated use machineUid instead */
5
6
  deviceId: string | null;
7
+ machineUid: string | null;
6
8
  expiresAt: Date;
7
9
  id: string;
8
10
  ipAddress: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "2.0.16",
3
+ "version": "2.0.20",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -81,7 +81,7 @@ Este pacote contém interfaces organizadas por domínios:
81
81
 
82
82
  ### 🔧 **Infraestrutura e Utilitários**
83
83
  - `app` - Configurações de aplicação
84
- - `device` - Dispositivos e instalações
84
+ - `machine` - Dispositivos e instalações
85
85
  - `storage-files` - Arquivos e armazenamento
86
86
  - `monitor` - Monitoramento e logs
87
87
  - `pubsub` - Sistema de mensageria