cecon-interfaces 1.9.13 → 1.9.14

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.
@@ -2,24 +2,25 @@ import { EPayioActivationKeyStatus } from '../enums/activation-key-status.enum';
2
2
  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
- id: string;
6
- key: string | null;
7
- status: EPayioActivationKeyStatus;
8
- batchId: string;
9
- licenseType: EPayioLicenseType;
10
- validityPeriodMonths: number;
11
- gracePeriodDays: number;
12
- versionConstraint: string[];
13
5
  activationDate: Date | null;
14
- hardwareFingerprint: string | null;
15
6
  appId: string | null;
16
7
  appSlug: string | null;
8
+ batchId: string;
17
9
  companyId: string | null;
10
+ createdAt: Date;
18
11
  deviceId: string | null;
19
- distributorId: string;
20
12
  distributionDate: Date;
21
- createdAt: Date;
13
+ distributorId: string;
14
+ gracePeriodDays: number;
15
+ hardwareFingerprint: string | null;
16
+ id: string;
17
+ key: string | null;
18
+ licenseType: EPayioLicenseType;
19
+ logs: string[];
22
20
  notes: string | null;
21
+ status: EPayioActivationKeyStatus;
23
22
  tags: string[];
23
+ validityPeriodMonths: number;
24
+ versionConstraint: string[];
24
25
  constructor(data?: Partial<PayioActivationKeyEntity>);
25
26
  }
@@ -5,50 +5,51 @@ var activation_key_status_enum_1 = require("../enums/activation-key-status.enum"
5
5
  var license_type_enum_1 = require("../enums/license-type.enum");
6
6
  var PayioActivationKeyEntity = /** @class */ (function () {
7
7
  function PayioActivationKeyEntity(data) {
8
- // Identificador único da chave (UUID)
9
- this.id = '';
10
- // A chave de ativação em si (ex.: "PAYIO-XXXXX-XXXXX-XXXXX")
11
- this.key = null;
12
- // Status da chave
13
- this.status = activation_key_status_enum_1.EPayioActivationKeyStatus.AVAILABLE;
14
- // === REFERÊNCIA AO LOTE (fonte das configurações) ===
15
- // ID do lote que gerou esta licença
16
- this.batchId = '';
17
- // === DADOS COPIADOS DO LOTE (para performance) ===
18
- // Tipo de licença (copiado do batch)
19
- this.licenseType = license_type_enum_1.EPayioLicenseType.TRIAL;
20
- // Período de validade em meses (copiado do batch)
21
- this.validityPeriodMonths = 12; // 1 ano;
22
- // Dias de tolerância (copiado do batch)
23
- this.gracePeriodDays = 0;
24
- // Versão do software (copiado do batch)
25
- this.versionConstraint = [];
26
8
  // === CAMPOS PREENCHIDOS NA ATIVAÇÃO ===
27
9
  // Data em que a chave foi ativada (null = não ativada)
28
10
  this.activationDate = null;
29
- // Hash da máquina que consumiu a licença
30
- this.hardwareFingerprint = null;
31
11
  // === REFERÊNCIAS DO SISTEMA ===
32
12
  // ID do aplicativo (copiado do batch)
33
13
  this.appId = null;
34
14
  // Slug do aplicativo (copiado do batch)
35
15
  this.appSlug = null;
16
+ // === REFERÊNCIA AO LOTE (fonte das configurações) ===
17
+ // ID do lote que gerou esta licença
18
+ this.batchId = '';
36
19
  // ID da empresa (preenchido na ativação)
37
20
  this.companyId = null;
21
+ // === AUDITORIA ===
22
+ // Data de criação da chave
23
+ this.createdAt = new Date();
38
24
  // ID do dispositivo (preenchido na ativação)
39
25
  this.deviceId = null;
26
+ // Data em que o lote foi entregue
27
+ this.distributionDate = new Date();
40
28
  // === DADOS DE DISTRIBUIÇÃO (copiados do batch) ===
41
29
  // ID do distribuidor
42
30
  this.distributorId = '';
43
- // Data em que o lote foi entregue
44
- this.distributionDate = new Date();
45
- // === AUDITORIA ===
46
- // Data de criação da chave
47
- this.createdAt = new Date();
31
+ // Dias de tolerância (copiado do batch)
32
+ this.gracePeriodDays = 0;
33
+ // Hash da máquina que consumiu a licença
34
+ this.hardwareFingerprint = null;
35
+ // Identificador único da chave (UUID)
36
+ this.id = '';
37
+ // A chave de ativação em si (ex.: "PAYIO-XXXXX-XXXXX-XXXXX")
38
+ this.key = null;
39
+ // === DADOS COPIADOS DO LOTE (para performance) ===
40
+ // Tipo de licença (copiado do batch)
41
+ this.licenseType = license_type_enum_1.EPayioLicenseType.TRIAL;
42
+ this.logs = [];
48
43
  // Metadados livres para suporte
49
44
  this.notes = null;
45
+ // Status da chave
46
+ this.status = activation_key_status_enum_1.EPayioActivationKeyStatus.AVAILABLE;
50
47
  // Tags para categorização
51
48
  this.tags = [];
49
+ // Período de validade em meses (copiado do batch)
50
+ this.validityPeriodMonths = 12; // 1 ano;
51
+ // Versão do software (copiado do batch)
52
+ this.versionConstraint = [];
52
53
  if (data) {
53
54
  for (var key in data) {
54
55
  if (data.hasOwnProperty(key) && key in this) {
@@ -20,4 +20,5 @@ export interface IPayioActivationKey {
20
20
  createdAt: Date;
21
21
  notes: string | null;
22
22
  tags: string[];
23
+ logs: string[];
23
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.9.13",
3
+ "version": "1.9.14",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",