cecon-interfaces 2.0.15 → 2.0.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.
@@ -3,6 +3,7 @@ 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
5
  activationAt: Date | null;
6
+ allowMultipleTrialActivations: boolean;
6
7
  appId: string | null;
7
8
  appSlug: string | null;
8
9
  batchId: string;
@@ -10,7 +11,7 @@ export declare class PayioActivationKeyEntity implements IPayioActivationKey {
10
11
  companyName: string | null;
11
12
  confirmationKey: boolean;
12
13
  createdAt: Date;
13
- deviceId: string | null;
14
+ deviceUid: string | null;
14
15
  distributorId: string;
15
16
  distributorName: string;
16
17
  expiresAt: Date | null;
@@ -8,6 +8,7 @@ var PayioActivationKeyEntity = /** @class */ (function () {
8
8
  // === CAMPOS PREENCHIDOS NA ATIVAÇÃO ===
9
9
  // Data em que a chave foi ativada (null = não ativada)
10
10
  this.activationAt = null;
11
+ this.allowMultipleTrialActivations = false;
11
12
  // === REFERÊNCIAS DO SISTEMA ===
12
13
  // ID do aplicativo (copiado do batch)
13
14
  this.appId = null;
@@ -24,7 +25,7 @@ var PayioActivationKeyEntity = /** @class */ (function () {
24
25
  // Data de criação da chave
25
26
  this.createdAt = new Date();
26
27
  // ID do dispositivo (preenchido na ativação)
27
- this.deviceId = null;
28
+ this.deviceUid = null;
28
29
  // === DADOS DE DISTRIBUIÇÃO (copiados do batch) ===
29
30
  // ID do distribuidor
30
31
  this.distributorId = '';
@@ -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
  activationAt: Date | null;
5
5
  appId: string | null;
@@ -9,7 +9,7 @@ export interface IPayioActivationKey {
9
9
  companyName: string | null;
10
10
  confirmationKey: boolean;
11
11
  createdAt: Date;
12
- deviceId: string | null;
12
+ deviceUid: string | null;
13
13
  distributorId: string;
14
14
  distributorName: string;
15
15
  expiresAt: Date | null;
@@ -26,5 +26,6 @@ export interface IPayioActivationKey {
26
26
  updatedAt: Date;
27
27
  validityPeriodMonths: number;
28
28
  validityTrialPeriodDays: number;
29
+ allowMultipleTrialActivations: boolean;
29
30
  versionConstraint: string[];
30
31
  }
@@ -3,5 +3,6 @@ export declare class PayioJwtPayloadDeviceEntity implements IPayioJwtPayloadDevi
3
3
  id: string;
4
4
  name: string | null;
5
5
  uid: string | null;
6
+ settings?: Record<string, string>;
6
7
  constructor(data?: Partial<PayioJwtPayloadDeviceEntity>);
7
8
  }
@@ -6,6 +6,7 @@ var PayioJwtPayloadDeviceEntity = /** @class */ (function () {
6
6
  this.id = '';
7
7
  this.name = '';
8
8
  this.uid = null;
9
+ this.settings = {};
9
10
  if (data) {
10
11
  for (var key in data) {
11
12
  if (data.hasOwnProperty(key) && key in this) {
@@ -2,4 +2,5 @@ export interface IPayioJwtPayloadDevice {
2
2
  id: string | null;
3
3
  name: string | null;
4
4
  uid: string | null;
5
+ settings?: Record<string, string>;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",