cecon-interfaces 1.6.64 → 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.64",
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",
@@ -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,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.64",
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",