cecon-interfaces 1.9.14 → 1.9.16

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.
@@ -4,12 +4,16 @@ import { IPayioActivationBatch } from '../interfaces/i-activation-batch';
4
4
  export declare class PayioActivationBatchEntity implements IPayioActivationBatch {
5
5
  /** Prazo em dias para ativar as licenças (a partir da criação do lote) */
6
6
  activationDeadlineDays: number;
7
+ /** Quantidade de licenças ativas */
8
+ activeLicenses: number;
7
9
  /** ID do aplicativo que será ativado */
8
10
  appId: string;
9
11
  /** Nome do aplicativo (para facilitar consultas) */
10
12
  appName: string;
11
13
  /** Slug do aplicativo */
12
14
  appSlug: string;
15
+ /** Quantidade de licenças ativadas */
16
+ availableLicenses: number;
13
17
  /** Número sequencial do lote (ex: "2025/001", "2025/002") */
14
18
  batchNumber: string;
15
19
  /** Data de criação do lote */
@@ -20,17 +24,21 @@ export declare class PayioActivationBatchEntity implements IPayioActivationBatch
20
24
  distributorId: string;
21
25
  /** Nome do distribuidor (para facilitar consultas) */
22
26
  distributorName: string;
27
+ /** Quantidade de licenças expiradas */
28
+ expiredLicenses: number;
23
29
  /** Dias de tolerância após expiração */
24
30
  gracePeriodDays: number;
25
31
  id: string;
26
- /** Período de validade da licença em meses (para definição comercial) */
27
- validityPeriodMonths: number;
28
32
  /** Tipo de licença que será gerada neste lote */
29
33
  licenseType: EPayioLicenseType;
30
34
  /** Logs de operações do lote */
31
35
  logs: string[];
36
+ /** Preço total negociado com o distribuidor */
37
+ negotiatedPrice: number;
32
38
  /** Observações ou notas sobre o lote */
33
39
  notes?: string;
40
+ /** Quantidade de licenças revogadas */
41
+ revokedLicenses: number;
34
42
  /** Indica se é ambiente sandbox */
35
43
  sandbox: boolean;
36
44
  /** Número sequencial dentro do ano */
@@ -41,20 +49,14 @@ export declare class PayioActivationBatchEntity implements IPayioActivationBatch
41
49
  tags: string[];
42
50
  /** Quantidade total de licenças no lote */
43
51
  totalLicenses: number;
44
- /** Quantidade de licenças ativadas */
45
- availableLicenses: number;
46
- /** Quantidade de licenças ativas */
47
- activeLicenses: number;
48
- /** Quantidade de licenças revogadas */
49
- revokedLicenses: number;
50
- /** Quantidade de licenças expiradas */
51
- expiredLicenses: number;
52
52
  /** Preço unitário por licença */
53
53
  unitPrice: number;
54
- /** Preço total negociado com o distribuidor */
55
- negotiatedPrice: number;
56
54
  /** Data da última atualização */
57
55
  updatedAt: Date;
56
+ /** Período de validade da licença em meses (para definição comercial) */
57
+ validityPeriodMonths: number;
58
+ /** Período de validade da licença do tipo trial em dias (para definição comercial) */
59
+ validityTrialPeriodDays: number;
58
60
  /** Versão ou intervalo de versões do software cobertas */
59
61
  versionConstraint: string[];
60
62
  /** Ano de referência do lote */
@@ -7,6 +7,8 @@ var PayioActivationBatchEntity = /** @class */ (function () {
7
7
  function PayioActivationBatchEntity(data) {
8
8
  /** Prazo em dias para ativar as licenças (a partir da criação do lote) */
9
9
  this.activationDeadlineDays = 180; // 6 meses;
10
+ /** Quantidade de licenças ativas */
11
+ this.activeLicenses = 0;
10
12
  // === INFORMAÇÕES DO APLICATIVO ===
11
13
  /** ID do aplicativo que será ativado */
12
14
  this.appId = '';
@@ -14,6 +16,8 @@ var PayioActivationBatchEntity = /** @class */ (function () {
14
16
  this.appName = '';
15
17
  /** Slug do aplicativo */
16
18
  this.appSlug = '';
19
+ /** Quantidade de licenças ativadas */
20
+ this.availableLicenses = 0;
17
21
  /** Número sequencial do lote (ex: "2025/001", "2025/002") */
18
22
  this.batchNumber = '';
19
23
  // === CONTROLE DE TEMPO ===
@@ -27,16 +31,20 @@ var PayioActivationBatchEntity = /** @class */ (function () {
27
31
  this.distributorId = '';
28
32
  /** Nome do distribuidor (para facilitar consultas) */
29
33
  this.distributorName = '';
34
+ /** Quantidade de licenças expiradas */
35
+ this.expiredLicenses = 0;
30
36
  /** Dias de tolerância após expiração */
31
37
  this.gracePeriodDays = 0;
32
38
  this.id = '';
33
- /** Período de validade da licença em meses (para definição comercial) */
34
- this.validityPeriodMonths = 12;
35
39
  // === CONFIGURAÇÕES DE LICENÇA ===
36
40
  /** Tipo de licença que será gerada neste lote */
37
41
  this.licenseType = license_type_enum_1.EPayioLicenseType.SUBSCRIPTION;
38
42
  /** Logs de operações do lote */
39
43
  this.logs = [];
44
+ /** Preço total negociado com o distribuidor */
45
+ this.negotiatedPrice = 0;
46
+ /** Quantidade de licenças revogadas */
47
+ this.revokedLicenses = 0;
40
48
  /** Indica se é ambiente sandbox */
41
49
  this.sandbox = false;
42
50
  /** Número sequencial dentro do ano */
@@ -48,21 +56,15 @@ var PayioActivationBatchEntity = /** @class */ (function () {
48
56
  // === CONTROLE E ESTOQUE DE LICENÇAS ===
49
57
  /** Quantidade total de licenças no lote */
50
58
  this.totalLicenses = 0;
51
- /** Quantidade de licenças ativadas */
52
- this.availableLicenses = 0;
53
- /** Quantidade de licenças ativas */
54
- this.activeLicenses = 0;
55
- /** Quantidade de licenças revogadas */
56
- this.revokedLicenses = 0;
57
- /** Quantidade de licenças expiradas */
58
- this.expiredLicenses = 0;
59
59
  // === INFORMAÇÕES COMERCIAIS ===
60
60
  /** Preço unitário por licença */
61
61
  this.unitPrice = 0;
62
- /** Preço total negociado com o distribuidor */
63
- this.negotiatedPrice = 0;
64
62
  /** Data da última atualização */
65
63
  this.updatedAt = new Date();
64
+ /** Período de validade da licença em meses (para definição comercial) */
65
+ this.validityPeriodMonths = 12;
66
+ /** Período de validade da licença do tipo trial em dias (para definição comercial) */
67
+ this.validityTrialPeriodDays = 0;
66
68
  /** Versão ou intervalo de versões do software cobertas */
67
69
  this.versionConstraint = [];
68
70
  /** Ano de referência do lote */
@@ -15,6 +15,8 @@ export interface IPayioActivationBatch {
15
15
  licenseType: EPayioLicenseType;
16
16
  /** Período de validade da licença em meses (para definição comercial) */
17
17
  validityPeriodMonths: number;
18
+ /** Período de validade da licença do tipo trial em dias (para definição comercial) */
19
+ validityTrialPeriodDays: number;
18
20
  /** Prazo em dias para ativar as licenças (a partir da criação do lote) */
19
21
  activationDeadlineDays: number;
20
22
  /** Dias de tolerância após expiração */
@@ -9,8 +9,8 @@ export declare class PayioActivationKeyEntity implements IPayioActivationKey {
9
9
  companyId: string | null;
10
10
  createdAt: Date;
11
11
  deviceId: string | null;
12
- distributionDate: Date;
13
12
  distributorId: string;
13
+ distributorName: string;
14
14
  gracePeriodDays: number;
15
15
  hardwareFingerprint: string | null;
16
16
  id: string;
@@ -20,7 +20,9 @@ export declare class PayioActivationKeyEntity implements IPayioActivationKey {
20
20
  notes: string | null;
21
21
  status: EPayioActivationKeyStatus;
22
22
  tags: string[];
23
+ updatedAt: Date;
23
24
  validityPeriodMonths: number;
25
+ validityTrialPeriodDays: number;
24
26
  versionConstraint: string[];
25
27
  constructor(data?: Partial<PayioActivationKeyEntity>);
26
28
  }
@@ -23,11 +23,10 @@ var PayioActivationKeyEntity = /** @class */ (function () {
23
23
  this.createdAt = new Date();
24
24
  // ID do dispositivo (preenchido na ativação)
25
25
  this.deviceId = null;
26
- // Data em que o lote foi entregue
27
- this.distributionDate = new Date();
28
26
  // === DADOS DE DISTRIBUIÇÃO (copiados do batch) ===
29
27
  // ID do distribuidor
30
28
  this.distributorId = '';
29
+ this.distributorName = '';
31
30
  // Dias de tolerância (copiado do batch)
32
31
  this.gracePeriodDays = 0;
33
32
  // Hash da máquina que consumiu a licença
@@ -46,8 +45,10 @@ var PayioActivationKeyEntity = /** @class */ (function () {
46
45
  this.status = activation_key_status_enum_1.EPayioActivationKeyStatus.AVAILABLE;
47
46
  // Tags para categorização
48
47
  this.tags = [];
48
+ this.updatedAt = new Date();
49
49
  // Período de validade em meses (copiado do batch)
50
50
  this.validityPeriodMonths = 12; // 1 ano;
51
+ this.validityTrialPeriodDays = 0;
51
52
  // Versão do software (copiado do batch)
52
53
  this.versionConstraint = [];
53
54
  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;
@@ -16,9 +17,10 @@ export interface IPayioActivationKey {
16
17
  companyId: string | null;
17
18
  deviceId: string | null;
18
19
  distributorId: string;
19
- distributionDate: Date;
20
+ distributorName: string;
20
21
  createdAt: Date;
21
22
  notes: string | null;
22
23
  tags: string[];
23
24
  logs: string[];
25
+ updatedAt: Date;
24
26
  }
@@ -6,6 +6,7 @@ export declare class PayioPreparationPlaceEntity implements IPayioPreparationPla
6
6
  mode: EPayioPreparationPlaceMode;
7
7
  name: string;
8
8
  notes: string;
9
+ tags: string[];
9
10
  updatedAt: Date;
10
11
  url: string;
11
12
  constructor(data?: Partial<PayioPreparationPlaceEntity>);
@@ -9,6 +9,7 @@ var PayioPreparationPlaceEntity = /** @class */ (function () {
9
9
  this.mode = mode_enum_1.EPayioPreparationPlaceMode.IP;
10
10
  this.name = '';
11
11
  this.notes = '';
12
+ this.tags = [];
12
13
  this.updatedAt = new Date();
13
14
  this.url = '';
14
15
  if (data) {
@@ -5,6 +5,7 @@ export interface IPayioPreparationPlace {
5
5
  mode: EPayioPreparationPlaceMode;
6
6
  name: string;
7
7
  notes: string;
8
+ tags: string[];
8
9
  updatedAt: Date;
9
10
  url: string;
10
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.9.14",
3
+ "version": "1.9.16",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",