cecon-interfaces 1.9.15 → 1.9.17

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.
@@ -1,16 +1,17 @@
1
- import { EPayioActivationKeyStatus } from '../enums/activation-key-status.enum';
2
- import { EPayioLicenseType } from '../enums/license-type.enum';
3
- import { IPayioActivationKey } from '../interfaces/i-activation-key';
1
+ import { EPayioActivationKeyStatus } from "../enums/activation-key-status.enum";
2
+ import { EPayioLicenseType } from "../enums/license-type.enum";
3
+ import { IPayioActivationKey } from "../interfaces/i-activation-key";
4
4
  export declare class PayioActivationKeyEntity implements IPayioActivationKey {
5
5
  activationDate: Date | null;
6
6
  appId: string | null;
7
7
  appSlug: string | null;
8
8
  batchId: string;
9
9
  companyId: string | null;
10
+ companyName: string | null;
10
11
  createdAt: Date;
11
12
  deviceId: string | null;
12
- distributorName: string;
13
13
  distributorId: string;
14
+ distributorName: string;
14
15
  gracePeriodDays: number;
15
16
  hardwareFingerprint: string | null;
16
17
  id: string;
@@ -20,7 +21,9 @@ export declare class PayioActivationKeyEntity implements IPayioActivationKey {
20
21
  notes: string | null;
21
22
  status: EPayioActivationKeyStatus;
22
23
  tags: string[];
24
+ updatedAt: Date;
23
25
  validityPeriodMonths: number;
26
+ validityTrialPeriodDays: number;
24
27
  versionConstraint: string[];
25
28
  constructor(data?: Partial<PayioActivationKeyEntity>);
26
29
  }
@@ -18,15 +18,16 @@ var PayioActivationKeyEntity = /** @class */ (function () {
18
18
  this.batchId = '';
19
19
  // ID da empresa (preenchido na ativação)
20
20
  this.companyId = null;
21
+ this.companyName = null;
21
22
  // === AUDITORIA ===
22
23
  // Data de criação da chave
23
24
  this.createdAt = new Date();
24
25
  // ID do dispositivo (preenchido na ativação)
25
26
  this.deviceId = null;
26
- this.distributorName = '';
27
27
  // === DADOS DE DISTRIBUIÇÃO (copiados do batch) ===
28
28
  // ID do distribuidor
29
29
  this.distributorId = '';
30
+ this.distributorName = '';
30
31
  // Dias de tolerância (copiado do batch)
31
32
  this.gracePeriodDays = 0;
32
33
  // Hash da máquina que consumiu a licença
@@ -45,8 +46,10 @@ var PayioActivationKeyEntity = /** @class */ (function () {
45
46
  this.status = activation_key_status_enum_1.EPayioActivationKeyStatus.AVAILABLE;
46
47
  // Tags para categorização
47
48
  this.tags = [];
49
+ this.updatedAt = new Date();
48
50
  // Período de validade em meses (copiado do batch)
49
51
  this.validityPeriodMonths = 12; // 1 ano;
52
+ this.validityTrialPeriodDays = 0;
50
53
  // Versão do software (copiado do batch)
51
54
  this.versionConstraint = [];
52
55
  if (data) {
@@ -7,6 +7,7 @@ export interface IPayioActivationKey {
7
7
  batchId: string;
8
8
  licenseType: EPayioLicenseType;
9
9
  validityPeriodMonths: number;
10
+ validityTrialPeriodDays: number;
10
11
  gracePeriodDays: number;
11
12
  versionConstraint: string[];
12
13
  activationDate: Date | null;
@@ -14,6 +15,7 @@ export interface IPayioActivationKey {
14
15
  appId: string | null;
15
16
  appSlug: string | null;
16
17
  companyId: string | null;
18
+ companyName: string | null;
17
19
  deviceId: string | null;
18
20
  distributorId: string;
19
21
  distributorName: string;
@@ -21,4 +23,5 @@ export interface IPayioActivationKey {
21
23
  notes: string | null;
22
24
  tags: string[];
23
25
  logs: string[];
26
+ updatedAt: Date;
24
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.9.15",
3
+ "version": "1.9.17",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",