cecon-interfaces 1.6.63 → 1.6.65

Sign up to get free protection for your applications and to get access to all the features.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.63",
3
+ "version": "1.6.65",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,6 +2,8 @@ import { EPayuioActivationStatus } from '../enums/activation-key-status.enum';
2
2
  import { IPayioActivationKey } from '../interfaces/i-activation-key';
3
3
  export declare class PayioActivationKeyEntity implements IPayioActivationKey {
4
4
  activationDate: Date | null;
5
+ appId: string | null;
6
+ appSlug: string | null;
5
7
  clientKey: string | null;
6
8
  companyId: string | null;
7
9
  companyName: string | null;
@@ -13,6 +15,7 @@ export declare class PayioActivationKeyEntity implements IPayioActivationKey {
13
15
  distributorName: string | null;
14
16
  expirationDate: Date | null;
15
17
  id: string;
18
+ keyGeneratorId: string | null;
16
19
  logs: string[];
17
20
  status: EPayuioActivationStatus;
18
21
  usageLimit: number;
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioActivationKeyEntity = void 0;
4
4
  var activation_key_status_enum_1 = require("../enums/activation-key-status.enum");
5
5
  var PayioActivationKeyEntity = /** @class */ (function () {
6
- // #endregion Properties (16)
6
+ // #endregion Properties (19)
7
7
  // #region Constructors (1)
8
8
  function PayioActivationKeyEntity(data) {
9
- // #region Properties (16)
9
+ // #region Properties (19)
10
10
  this.activationDate = null;
11
+ this.appId = null;
12
+ this.appSlug = null;
11
13
  this.clientKey = null;
12
14
  this.companyId = null;
13
15
  this.companyName = null;
@@ -19,6 +21,7 @@ var PayioActivationKeyEntity = /** @class */ (function () {
19
21
  this.distributorName = null;
20
22
  this.expirationDate = null;
21
23
  this.id = '';
24
+ this.keyGeneratorId = null;
22
25
  this.logs = [];
23
26
  this.status = activation_key_status_enum_1.EPayuioActivationStatus.PENDING;
24
27
  this.usageLimit = 0;
@@ -1,4 +1,5 @@
1
1
  export declare enum EPayuioActivationStatus {
2
+ NONE = "NONE",
2
3
  PENDING = "PENDING",
3
4
  ACTIVE = "ACTIVE",
4
5
  EXPIRED = "EXPIRED",
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EPayuioActivationStatus = void 0;
4
4
  var EPayuioActivationStatus;
5
5
  (function (EPayuioActivationStatus) {
6
+ EPayuioActivationStatus["NONE"] = "NONE";
6
7
  EPayuioActivationStatus["PENDING"] = "PENDING";
7
8
  EPayuioActivationStatus["ACTIVE"] = "ACTIVE";
8
9
  EPayuioActivationStatus["EXPIRED"] = "EXPIRED";
@@ -1,10 +1,13 @@
1
1
  import { EPayuioActivationStatus } from '../enums/activation-key-status.enum';
2
2
  export interface IPayioActivationKey {
3
3
  activationDate: Date | null;
4
+ appId: string | null;
5
+ appSlug: string | null;
4
6
  clientKey: string | null;
5
7
  companyId: string | null;
6
8
  companyName: string | null;
7
9
  createdAt: Date;
10
+ keyGeneratorId: string | null;
8
11
  createdBy: string | null;
9
12
  deviceId: string | null;
10
13
  distributorId: string | null;
@@ -1,3 +1,4 @@
1
+ import { EPayuioActivationStatus } from '../../activation-key/enums/activation-key-status.enum';
1
2
  import { PayioPermissionRoleEntity } from '../../permissions';
2
3
  import { IPayioJwtPayload } from '../interfaces/i-payload';
3
4
  import { IPayioJwtPayloadApp } from '../interfaces/i-payload-app';
@@ -6,6 +7,7 @@ import { PayioJwtPayloadDeviceEntity } from './payload-device.entity';
6
7
  import { PayioJwtPayloadScheduleEntity } from './payload-schedule.entity';
7
8
  import { PayioJwtPayloadUserEntity } from './payload-user.entity';
8
9
  export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
10
+ activationStatus: EPayuioActivationStatus;
9
11
  app: IPayioJwtPayloadApp | null;
10
12
  aud: string;
11
13
  device: PayioJwtPayloadDeviceEntity | null;
@@ -13,7 +15,6 @@ export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
13
15
  exp: number;
14
16
  iat: number;
15
17
  info: IPayioJwtPayloadInfo | null;
16
- isActivated: boolean;
17
18
  iss: string;
18
19
  jti: string;
19
20
  permissions: PayioPermissionRoleEntity[];
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioJwtPayloadEntity = void 0;
4
+ var activation_key_status_enum_1 = require("../../activation-key/enums/activation-key-status.enum");
4
5
  var PayioJwtPayloadEntity = /** @class */ (function () {
5
- // #endregion Properties (15)
6
+ // #endregion Properties (16)
6
7
  // #region Constructors (1)
7
8
  function PayioJwtPayloadEntity(data) {
8
- // #region Properties (15)
9
+ // #region Properties (16)
10
+ this.activationStatus = activation_key_status_enum_1.EPayuioActivationStatus.NONE;
9
11
  this.app = null;
10
12
  this.aud = '';
11
13
  this.device = null;
@@ -13,7 +15,6 @@ var PayioJwtPayloadEntity = /** @class */ (function () {
13
15
  this.exp = 0;
14
16
  this.iat = 0;
15
17
  this.info = null;
16
- this.isActivated = false;
17
18
  this.iss = '';
18
19
  this.jti = '';
19
20
  this.permissions = [];
@@ -1,3 +1,4 @@
1
+ import { EPayuioActivationStatus } from '../../activation-key/enums/activation-key-status.enum';
1
2
  import { IPayioPermissionRole } from '../../permissions/interfaces/i-permission-role';
2
3
  import { IPayioJwtPayloadApp } from './i-payload-app';
3
4
  import { IPayioJwtPayloadDevice } from './i-payload-device';
@@ -11,6 +12,7 @@ export interface IPayioJwtPayload {
11
12
  */
12
13
  aud: string;
13
14
  device: IPayioJwtPayloadDevice | null;
15
+ distributorId: string | null;
14
16
  /**
15
17
  * (Expiração): Timestamp de quando o JWT expira
16
18
  */
@@ -20,15 +22,14 @@ export interface IPayioJwtPayload {
20
22
  */
21
23
  iat: number;
22
24
  info: IPayioJwtPayloadInfo | null;
25
+ activationStatus: EPayuioActivationStatus;
23
26
  /**
24
27
  * (Emissor): Identifica quem emitiu o JWT (o domínio da sua aplicação).
25
28
  */
26
29
  iss: string;
27
30
  jti: string;
28
31
  permissions: IPayioPermissionRole[];
29
- distributorId: string | null;
30
32
  schedule: IPayioJwtPayloadSchedule | null;
31
- isActivated: boolean;
32
33
  sub: string;
33
34
  type: string | null;
34
35
  user: IPayioJwtPayloadUser | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.63",
3
+ "version": "1.6.65",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",