cecon-interfaces 2.0.29 → 2.0.31

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.
@@ -9,17 +9,12 @@ export declare class PayioActivationKeyEntity implements IPayioActivationKey {
9
9
  amount: number;
10
10
  appId: string;
11
11
  appSlug: string | null;
12
- batchId: string;
13
12
  companyId: string | null;
14
13
  companyName: string | null;
15
14
  createdAt: Date;
16
- distributorId: string;
17
- distributorName: string;
18
- expiresAt: Date | null;
15
+ expiredAt: Date | null;
19
16
  gracePeriodDays: number;
20
- hardwareFingerprint: string | null;
21
17
  id: string;
22
- installationAt: Date | null;
23
18
  key: string | null;
24
19
  licenseType: EPayioLicenseType;
25
20
  logs: string[];
@@ -28,11 +23,10 @@ export declare class PayioActivationKeyEntity implements IPayioActivationKey {
28
23
  paidAt: Date | null;
29
24
  paymentId: string | null;
30
25
  paymentMethod: string | null;
26
+ periodDays: number;
31
27
  revokedAt: Date | null;
32
28
  status: EPayioActivationKeyStatus;
33
29
  tags: string[];
34
30
  updatedAt: Date;
35
- validityTrialPeriodDays: number;
36
- versionConstraint: string[];
37
31
  constructor(data?: Partial<PayioActivationKeyEntity>);
38
32
  }
@@ -17,28 +17,17 @@ var PayioActivationKeyEntity = /** @class */ (function () {
17
17
  this.appId = '';
18
18
  // Slug do aplicativo (copiado do batch)
19
19
  this.appSlug = null;
20
- // === REFERÊNCIA AO LOTE (fonte das configurações) ===
21
- // ID do lote que gerou esta licença
22
- this.batchId = '';
23
20
  // ID da empresa (preenchido na ativação)
24
21
  this.companyId = null;
25
22
  this.companyName = null;
26
23
  // === AUDITORIA ===
27
24
  // Data de criação da chave
28
25
  this.createdAt = new Date();
29
- // === DADOS DE DISTRIBUIÇÃO (copiados do batch) ===
30
- // ID do distribuidor
31
- this.distributorId = '';
32
- this.distributorName = '';
33
- this.expiresAt = null;
26
+ this.expiredAt = null;
34
27
  // Dias de tolerância (copiado do batch)
35
28
  this.gracePeriodDays = 0;
36
- // Hash da máquina que consumiu a licença
37
- this.hardwareFingerprint = null;
38
29
  // Identificador único da chave (UUID)
39
30
  this.id = '';
40
- // data da instalaçao do dispositivo
41
- this.installationAt = null;
42
31
  // A chave de ativação em si (ex.: "PAYIO-XXXXX-XXXXX-XXXXX")
43
32
  this.key = null;
44
33
  // === DADOS COPIADOS DO LOTE (para performance) ===
@@ -52,15 +41,13 @@ var PayioActivationKeyEntity = /** @class */ (function () {
52
41
  this.paidAt = null;
53
42
  this.paymentId = null;
54
43
  this.paymentMethod = null;
44
+ this.periodDays = 15; // 15 dias;
55
45
  this.revokedAt = null;
56
46
  // Status da chave
57
47
  this.status = activation_key_status_enum_1.EPayioActivationKeyStatus.AVAILABLE;
58
48
  // Tags para categorização
59
49
  this.tags = [];
60
50
  this.updatedAt = new Date();
61
- this.validityTrialPeriodDays = 15; // 15 dias;
62
- // Versão do software (copiado do batch)
63
- this.versionConstraint = [];
64
51
  if (data) {
65
52
  for (var key in data) {
66
53
  if (data.hasOwnProperty(key) && key in this) {
@@ -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
  activatedAt: Date | null;
5
5
  allowMultipleTrialActivations: boolean;
@@ -8,15 +8,11 @@ export interface IPayioActivationKey {
8
8
  amount: number;
9
9
  appId: string;
10
10
  appSlug: string | null;
11
- batchId: string;
12
11
  companyId: string | null;
13
12
  companyName: string | null;
14
13
  createdAt: Date;
15
- distributorId: string;
16
- distributorName: string;
17
- expiresAt: Date | null;
14
+ expiredAt: Date | null;
18
15
  gracePeriodDays: number;
19
- hardwareFingerprint: string | null;
20
16
  id: string;
21
17
  key: string | null;
22
18
  licenseType: EPayioLicenseType;
@@ -30,6 +26,5 @@ export interface IPayioActivationKey {
30
26
  status: EPayioActivationKeyStatus;
31
27
  tags: string[];
32
28
  updatedAt: Date;
33
- validityTrialPeriodDays: number;
34
- versionConstraint: string[];
29
+ periodDays: number;
35
30
  }
@@ -4,6 +4,7 @@ import { IPayioJwtPayload } from '../interfaces/i-payload';
4
4
  import { PayioJwtPayloadDeviceEntity } from './payload-device.entity';
5
5
  import { PayioJwtPayloadMachineEntity } from './payload-machine.entity';
6
6
  import { PayioJwtPayloadUserEntity } from './payload-user.entity';
7
+ /** @deprecated use PayioJwtPayloadEntity from @arcnet-payio-interfaces instead */
7
8
  export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
8
9
  activation?: PayioJwtPayloadActivationEntity | null | undefined;
9
10
  app: PayioJwtPayloadAppEntity | null;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioJwtPayloadEntity = void 0;
4
+ /** @deprecated use PayioJwtPayloadEntity from @arcnet-payio-interfaces instead */
4
5
  var PayioJwtPayloadEntity = /** @class */ (function () {
5
6
  function PayioJwtPayloadEntity(data) {
6
7
  this.app = null;
@@ -5,6 +5,7 @@ import { IPayioJwtPayloadDevice } from './i-payload-device';
5
5
  import { IPayioJwtPayloadInfo } from './i-payload-info';
6
6
  import { IPayioJwtPayloadMachine } from './i-payload-machine';
7
7
  import { IPayioJwtPayloadUser } from './i-payload-user';
8
+ /** @deprecated use IPayioJwtPayload from @arcnet-payio-interfaces instead */
8
9
  export interface IPayioJwtPayload {
9
10
  app: IPayioJwtPayloadApp | null;
10
11
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "2.0.29",
3
+ "version": "2.0.31",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",