cecon-interfaces 2.0.15 → 2.0.19

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 (40) hide show
  1. package/dist/esm2022/payio/activation-key/entities/activation-key.entity.mjs +3 -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 -2
  9. package/dist/esm2022/payio/payload/entities/payload.entity.mjs +4 -1
  10. package/dist/esm2022/payio/payload/interfaces/i-payload-device.mjs +1 -1
  11. package/dist/esm2022/payio/payload/interfaces/i-payload-machine.mjs +2 -0
  12. package/dist/esm2022/payio/payload/interfaces/i-payload.mjs +1 -1
  13. package/dist/esm2022/payio/tokens/entities/token.entity.mjs +3 -1
  14. package/dist/esm2022/payio/tokens/interfaces/i-token.mjs +1 -1
  15. package/dist/fesm2022/cecon-interfaces.mjs +23 -4
  16. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  17. package/dist/payio/activation-key/entities/activation-key.entity.d.ts +2 -1
  18. package/dist/payio/activation-key/entities/activation-key.entity.js +2 -1
  19. package/dist/payio/activation-key/interfaces/i-activation-key.d.ts +4 -3
  20. package/dist/payio/cards/entities/card.entity.d.ts +1 -0
  21. package/dist/payio/cards/entities/card.entity.js +1 -0
  22. package/dist/payio/cards/interfaces/i-card.d.ts +1 -0
  23. package/dist/payio/device/entities/device-chef.entity.d.ts +8 -0
  24. package/dist/payio/device/entities/device-chef.entity.js +23 -0
  25. package/dist/payio/device/entities/device.entity.d.ts +5 -4
  26. package/dist/payio/device/entities/device.entity.js +4 -2
  27. package/dist/payio/device/interfaces/i-device.d.ts +5 -4
  28. package/dist/payio/payload/entities/payload-device.entity.d.ts +12 -1
  29. package/dist/payio/payload/entities/payload-device.entity.js +12 -1
  30. package/dist/payio/payload/entities/payload.entity.d.ts +5 -0
  31. package/dist/payio/payload/entities/payload.entity.js +2 -0
  32. package/dist/payio/payload/interfaces/i-payload-device.d.ts +13 -2
  33. package/dist/payio/payload/interfaces/i-payload-machine.d.ts +6 -0
  34. package/dist/payio/payload/interfaces/i-payload-machine.js +2 -0
  35. package/dist/payio/payload/interfaces/i-payload.d.ts +3 -0
  36. package/dist/payio/tokens/entities/token.entity.d.ts +2 -0
  37. package/dist/payio/tokens/entities/token.entity.js +2 -0
  38. package/dist/payio/tokens/interfaces/i-token.d.ts +2 -0
  39. package/package.json +1 -1
  40. package/readme.md +1 -1
@@ -3,6 +3,7 @@ import { EPayioLicenseType } from '../enums/license-type.enum';
3
3
  import { IPayioActivationKey } from '../interfaces/i-activation-key';
4
4
  export declare class PayioActivationKeyEntity implements IPayioActivationKey {
5
5
  activationAt: Date | null;
6
+ allowMultipleTrialActivations: boolean;
6
7
  appId: string | null;
7
8
  appSlug: string | null;
8
9
  batchId: string;
@@ -10,7 +11,7 @@ export declare class PayioActivationKeyEntity implements IPayioActivationKey {
10
11
  companyName: string | null;
11
12
  confirmationKey: boolean;
12
13
  createdAt: Date;
13
- deviceId: string | null;
14
+ machineUid: string | null;
14
15
  distributorId: string;
15
16
  distributorName: string;
16
17
  expiresAt: Date | null;
@@ -8,6 +8,7 @@ var PayioActivationKeyEntity = /** @class */ (function () {
8
8
  // === CAMPOS PREENCHIDOS NA ATIVAÇÃO ===
9
9
  // Data em que a chave foi ativada (null = não ativada)
10
10
  this.activationAt = null;
11
+ this.allowMultipleTrialActivations = false;
11
12
  // === REFERÊNCIAS DO SISTEMA ===
12
13
  // ID do aplicativo (copiado do batch)
13
14
  this.appId = null;
@@ -24,7 +25,7 @@ var PayioActivationKeyEntity = /** @class */ (function () {
24
25
  // Data de criação da chave
25
26
  this.createdAt = new Date();
26
27
  // ID do dispositivo (preenchido na ativação)
27
- this.deviceId = null;
28
+ this.machineUid = null;
28
29
  // === DADOS DE DISTRIBUIÇÃO (copiados do batch) ===
29
30
  // ID do distribuidor
30
31
  this.distributorId = '';
@@ -1,5 +1,5 @@
1
- import { EPayioActivationKeyStatus } from "../enums/activation-key-status.enum";
2
- import { EPayioLicenseType } from "../enums/license-type.enum";
1
+ import { EPayioActivationKeyStatus } from '../enums/activation-key-status.enum';
2
+ import { EPayioLicenseType } from '../enums/license-type.enum';
3
3
  export interface IPayioActivationKey {
4
4
  activationAt: Date | null;
5
5
  appId: string | null;
@@ -9,7 +9,7 @@ export interface IPayioActivationKey {
9
9
  companyName: string | null;
10
10
  confirmationKey: boolean;
11
11
  createdAt: Date;
12
- deviceId: string | null;
12
+ machineUid: string | null;
13
13
  distributorId: string;
14
14
  distributorName: string;
15
15
  expiresAt: Date | null;
@@ -26,5 +26,6 @@ export interface IPayioActivationKey {
26
26
  updatedAt: Date;
27
27
  validityPeriodMonths: number;
28
28
  validityTrialPeriodDays: number;
29
+ allowMultipleTrialActivations: boolean;
29
30
  versionConstraint: string[];
30
31
  }
@@ -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,7 +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;
15
+ scheduleId: string | null;
16
+ smartConfigId: string | null;
6
17
  constructor(data?: Partial<PayioJwtPayloadDeviceEntity>);
7
18
  }
@@ -1,11 +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;
18
+ this.scheduleId = '';
19
+ this.smartConfigId = '';
9
20
  if (data) {
10
21
  for (var key in data) {
11
22
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,12 +1,16 @@
1
1
  import { EPayioJwtTokenType } from '../enums';
2
+ import { IPayioJwtPayloadActivation } from '../interfaces';
2
3
  import { IPayioJwtPayload } from '../interfaces/i-payload';
3
4
  import { IPayioJwtPayloadApp } from '../interfaces/i-payload-app';
4
5
  import { IPayioJwtPayloadInfo } from '../interfaces/i-payload-info';
6
+ import { IPayioJwtPayloadMachine } from '../interfaces/i-payload-machine';
5
7
  import { PayioJwtPayloadDeviceEntity } from './payload-device.entity';
6
8
  import { PayioJwtPayloadUserEntity } from './payload-user.entity';
7
9
  export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
10
+ activation?: IPayioJwtPayloadActivation | null | undefined;
8
11
  app: IPayioJwtPayloadApp | null;
9
12
  aud: string | string[];
13
+ /** @deprecated use machine instead */
10
14
  device: PayioJwtPayloadDeviceEntity | null;
11
15
  distributorId: string | null;
12
16
  exp?: number;
@@ -14,6 +18,7 @@ export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
14
18
  info: IPayioJwtPayloadInfo | null;
15
19
  iss: string;
16
20
  jti: string;
21
+ machine: IPayioJwtPayloadMachine | null;
17
22
  permissions: string[];
18
23
  sub: string;
19
24
  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,5 +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;
14
+ scheduleId: string | null;
15
+ smartConfigId: string | null;
5
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.15",
3
+ "version": "2.0.19",
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