cecon-interfaces 1.9.21 → 1.9.23

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,8 +1,8 @@
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
- activationDate: Date | null;
5
+ activationAt: Date | null;
6
6
  appId: string | null;
7
7
  appSlug: string | null;
8
8
  batchId: string;
@@ -15,6 +15,7 @@ export declare class PayioActivationKeyEntity implements IPayioActivationKey {
15
15
  gracePeriodDays: number;
16
16
  hardwareFingerprint: string | null;
17
17
  id: string;
18
+ installationAt: Date | null;
18
19
  key: string | null;
19
20
  licenseType: EPayioLicenseType;
20
21
  logs: string[];
@@ -7,7 +7,7 @@ var PayioActivationKeyEntity = /** @class */ (function () {
7
7
  function PayioActivationKeyEntity(data) {
8
8
  // === CAMPOS PREENCHIDOS NA ATIVAÇÃO ===
9
9
  // Data em que a chave foi ativada (null = não ativada)
10
- this.activationDate = null;
10
+ this.activationAt = null;
11
11
  // === REFERÊNCIAS DO SISTEMA ===
12
12
  // ID do aplicativo (copiado do batch)
13
13
  this.appId = null;
@@ -34,6 +34,8 @@ var PayioActivationKeyEntity = /** @class */ (function () {
34
34
  this.hardwareFingerprint = null;
35
35
  // Identificador único da chave (UUID)
36
36
  this.id = '';
37
+ // data da instalaçao do dispositivo
38
+ this.installationAt = null;
37
39
  // A chave de ativação em si (ex.: "PAYIO-XXXXX-XXXXX-XXXXX")
38
40
  this.key = null;
39
41
  // === DADOS COPIADOS DO LOTE (para performance) ===
@@ -1,27 +1,28 @@
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
- id: string;
5
- key: string | null;
6
- status: EPayioActivationKeyStatus;
7
- batchId: string;
8
- licenseType: EPayioLicenseType;
9
- validityPeriodMonths: number;
10
- validityTrialPeriodDays: number;
11
- gracePeriodDays: number;
12
- versionConstraint: string[];
13
- activationDate: Date | null;
14
- hardwareFingerprint: string | null;
4
+ activationAt: Date | null;
15
5
  appId: string | null;
16
6
  appSlug: string | null;
7
+ batchId: string;
17
8
  companyId: string | null;
18
9
  companyName: string | null;
10
+ createdAt: Date;
19
11
  deviceId: string | null;
20
12
  distributorId: string;
21
13
  distributorName: string;
22
- createdAt: Date;
14
+ gracePeriodDays: number;
15
+ hardwareFingerprint: string | null;
16
+ id: string;
17
+ installationAt: Date | null;
18
+ key: string | null;
19
+ licenseType: EPayioLicenseType;
20
+ logs: string[];
23
21
  notes: string | null;
22
+ status: EPayioActivationKeyStatus;
24
23
  tags: string[];
25
- logs: string[];
26
24
  updatedAt: Date;
25
+ validityPeriodMonths: number;
26
+ validityTrialPeriodDays: number;
27
+ versionConstraint: string[];
27
28
  }
@@ -1,8 +1,11 @@
1
+ import { EPayioActivationKeyStatus } from '../../activation-key';
1
2
  import { EPayioVisionTerminalModel } from '../enum';
2
3
  import { EPayioVisionTerminalOperation } from '../enum/operation.enum';
3
4
  import { IPayioTerminal } from '../interfaces/i-terminal';
4
5
  export declare class PayioTerminalEntity implements IPayioTerminal {
6
+ activationKey: string | null;
5
7
  activationKeyId: string | null;
8
+ activationKeyStatus: EPayioActivationKeyStatus;
6
9
  active: boolean;
7
10
  appId: string;
8
11
  companyId: string;
@@ -1,11 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioTerminalEntity = void 0;
4
+ var activation_key_1 = require("../../activation-key");
4
5
  var enum_1 = require("../enum");
5
6
  var operation_enum_1 = require("../enum/operation.enum");
6
7
  var PayioTerminalEntity = /** @class */ (function () {
7
8
  function PayioTerminalEntity(data) {
9
+ this.activationKey = null;
8
10
  this.activationKeyId = null;
11
+ this.activationKeyStatus = activation_key_1.EPayioActivationKeyStatus.NONE;
9
12
  this.active = false;
10
13
  this.appId = '';
11
14
  this.companyId = '';
@@ -1,8 +1,11 @@
1
+ import { EPayioActivationKeyStatus } from '../../activation-key';
1
2
  import { EPayioVisionTerminalModel } from '../enum';
2
3
  import { EPayioVisionTerminalOperation } from '../enum/operation.enum';
3
4
  export interface IPayioTerminal {
4
5
  active: boolean;
5
6
  activationKeyId: string | null;
7
+ activationKeyStatus: EPayioActivationKeyStatus;
8
+ activationKey: string | null;
6
9
  appId: string;
7
10
  companyId: string;
8
11
  createdAt: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.9.21",
3
+ "version": "1.9.23",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",