cecon-interfaces 2.0.29 → 2.0.30
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.
- package/dist/esm2022/payio/activation-key/entities/activation-key.entity.mjs +3 -16
- package/dist/esm2022/payio/activation-key/interfaces/i-activation-key.mjs +1 -1
- package/dist/esm2022/payio/payload/entities/payload.entity.mjs +2 -1
- package/dist/esm2022/payio/payload/interfaces/i-payload.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +1 -13
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/payio/activation-key/entities/activation-key.entity.d.ts +3 -9
- package/dist/payio/activation-key/entities/activation-key.entity.js +0 -13
- package/dist/payio/activation-key/interfaces/i-activation-key.d.ts +2 -7
- package/dist/payio/payload/entities/payload.entity.d.ts +1 -0
- package/dist/payio/payload/entities/payload.entity.js +1 -0
- package/dist/payio/payload/interfaces/i-payload.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EPayioActivationKeyStatus } from
|
|
2
|
-
import { EPayioLicenseType } from
|
|
3
|
-
import { IPayioActivationKey } from
|
|
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
|
activatedAt: Date | null;
|
|
6
6
|
allowMultipleTrialActivations: boolean;
|
|
@@ -9,17 +9,12 @@ export declare class PayioActivationKeyEntity implements IPayioActivationKey {
|
|
|
9
9
|
amount: number;
|
|
10
10
|
appId: string;
|
|
11
11
|
appSlug: string | null;
|
|
12
|
-
batchId: string;
|
|
13
12
|
companyId: string | null;
|
|
14
13
|
companyName: string | null;
|
|
15
14
|
createdAt: Date;
|
|
16
|
-
distributorId: string;
|
|
17
|
-
distributorName: string;
|
|
18
15
|
expiresAt: Date | null;
|
|
19
16
|
gracePeriodDays: number;
|
|
20
|
-
hardwareFingerprint: string | null;
|
|
21
17
|
id: string;
|
|
22
|
-
installationAt: Date | null;
|
|
23
18
|
key: string | null;
|
|
24
19
|
licenseType: EPayioLicenseType;
|
|
25
20
|
logs: string[];
|
|
@@ -33,6 +28,5 @@ export declare class PayioActivationKeyEntity implements IPayioActivationKey {
|
|
|
33
28
|
tags: string[];
|
|
34
29
|
updatedAt: Date;
|
|
35
30
|
validityTrialPeriodDays: number;
|
|
36
|
-
versionConstraint: string[];
|
|
37
31
|
constructor(data?: Partial<PayioActivationKeyEntity>);
|
|
38
32
|
}
|
|
@@ -17,28 +17,17 @@ var PayioActivationKeyEntity = /** @class */ (function () {
|
|
|
17
17
|
this.appId = '';
|
|
18
18
|
// Slug do aplicativo (copiado do batch)
|
|
19
19
|
this.appSlug = null;
|
|
20
|
-
// === REFERÊNCIA AO LOTE (fonte das configurações) ===
|
|
21
|
-
// ID do lote que gerou esta licença
|
|
22
|
-
this.batchId = '';
|
|
23
20
|
// ID da empresa (preenchido na ativação)
|
|
24
21
|
this.companyId = null;
|
|
25
22
|
this.companyName = null;
|
|
26
23
|
// === AUDITORIA ===
|
|
27
24
|
// Data de criação da chave
|
|
28
25
|
this.createdAt = new Date();
|
|
29
|
-
// === DADOS DE DISTRIBUIÇÃO (copiados do batch) ===
|
|
30
|
-
// ID do distribuidor
|
|
31
|
-
this.distributorId = '';
|
|
32
|
-
this.distributorName = '';
|
|
33
26
|
this.expiresAt = null;
|
|
34
27
|
// Dias de tolerância (copiado do batch)
|
|
35
28
|
this.gracePeriodDays = 0;
|
|
36
|
-
// Hash da máquina que consumiu a licença
|
|
37
|
-
this.hardwareFingerprint = null;
|
|
38
29
|
// Identificador único da chave (UUID)
|
|
39
30
|
this.id = '';
|
|
40
|
-
// data da instalaçao do dispositivo
|
|
41
|
-
this.installationAt = null;
|
|
42
31
|
// A chave de ativação em si (ex.: "PAYIO-XXXXX-XXXXX-XXXXX")
|
|
43
32
|
this.key = null;
|
|
44
33
|
// === DADOS COPIADOS DO LOTE (para performance) ===
|
|
@@ -59,8 +48,6 @@ var PayioActivationKeyEntity = /** @class */ (function () {
|
|
|
59
48
|
this.tags = [];
|
|
60
49
|
this.updatedAt = new Date();
|
|
61
50
|
this.validityTrialPeriodDays = 15; // 15 dias;
|
|
62
|
-
// Versão do software (copiado do batch)
|
|
63
|
-
this.versionConstraint = [];
|
|
64
51
|
if (data) {
|
|
65
52
|
for (var key in data) {
|
|
66
53
|
if (data.hasOwnProperty(key) && key in this) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EPayioActivationKeyStatus } from
|
|
2
|
-
import { EPayioLicenseType } from
|
|
1
|
+
import { EPayioActivationKeyStatus } from '../enums/activation-key-status.enum';
|
|
2
|
+
import { EPayioLicenseType } from '../enums/license-type.enum';
|
|
3
3
|
export interface IPayioActivationKey {
|
|
4
4
|
activatedAt: Date | null;
|
|
5
5
|
allowMultipleTrialActivations: boolean;
|
|
@@ -8,15 +8,11 @@ export interface IPayioActivationKey {
|
|
|
8
8
|
amount: number;
|
|
9
9
|
appId: string;
|
|
10
10
|
appSlug: string | null;
|
|
11
|
-
batchId: string;
|
|
12
11
|
companyId: string | null;
|
|
13
12
|
companyName: string | null;
|
|
14
13
|
createdAt: Date;
|
|
15
|
-
distributorId: string;
|
|
16
|
-
distributorName: string;
|
|
17
14
|
expiresAt: Date | null;
|
|
18
15
|
gracePeriodDays: number;
|
|
19
|
-
hardwareFingerprint: string | null;
|
|
20
16
|
id: string;
|
|
21
17
|
key: string | null;
|
|
22
18
|
licenseType: EPayioLicenseType;
|
|
@@ -31,5 +27,4 @@ export interface IPayioActivationKey {
|
|
|
31
27
|
tags: string[];
|
|
32
28
|
updatedAt: Date;
|
|
33
29
|
validityTrialPeriodDays: number;
|
|
34
|
-
versionConstraint: string[];
|
|
35
30
|
}
|
|
@@ -4,6 +4,7 @@ import { IPayioJwtPayload } from '../interfaces/i-payload';
|
|
|
4
4
|
import { PayioJwtPayloadDeviceEntity } from './payload-device.entity';
|
|
5
5
|
import { PayioJwtPayloadMachineEntity } from './payload-machine.entity';
|
|
6
6
|
import { PayioJwtPayloadUserEntity } from './payload-user.entity';
|
|
7
|
+
/** @deprecated use PayioJwtPayloadEntity from @arcnet-payio-interfaces instead */
|
|
7
8
|
export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
|
|
8
9
|
activation?: PayioJwtPayloadActivationEntity | null | undefined;
|
|
9
10
|
app: PayioJwtPayloadAppEntity | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PayioJwtPayloadEntity = void 0;
|
|
4
|
+
/** @deprecated use PayioJwtPayloadEntity from @arcnet-payio-interfaces instead */
|
|
4
5
|
var PayioJwtPayloadEntity = /** @class */ (function () {
|
|
5
6
|
function PayioJwtPayloadEntity(data) {
|
|
6
7
|
this.app = null;
|
|
@@ -5,6 +5,7 @@ import { IPayioJwtPayloadDevice } from './i-payload-device';
|
|
|
5
5
|
import { IPayioJwtPayloadInfo } from './i-payload-info';
|
|
6
6
|
import { IPayioJwtPayloadMachine } from './i-payload-machine';
|
|
7
7
|
import { IPayioJwtPayloadUser } from './i-payload-user';
|
|
8
|
+
/** @deprecated use IPayioJwtPayload from @arcnet-payio-interfaces instead */
|
|
8
9
|
export interface IPayioJwtPayload {
|
|
9
10
|
app: IPayioJwtPayloadApp | null;
|
|
10
11
|
/**
|