cecon-interfaces 1.5.94 → 1.5.97

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.5.94",
3
+ "version": "1.5.97",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,12 +8,12 @@ import { PayioJwtPayloadUserEntity } from './payload-user.entity';
8
8
  export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
9
9
  app: IPayioJwtPayloadApp | null;
10
10
  aud: string;
11
- currentSessionId: string | null;
12
11
  device: PayioJwtPayloadDeviceEntity | null;
13
12
  exp: number;
14
13
  iat: number;
15
14
  info: IPayioJwtPayloadInfo | null;
16
15
  iss: string;
16
+ jti: string;
17
17
  permissions: PayioPermissionRoleEntity[];
18
18
  sub: string;
19
19
  subscription: PayioJwtPayloadSubscriptionEntity | null;
@@ -8,12 +8,12 @@ var PayioJwtPayloadEntity = /** @class */ (function () {
8
8
  // #region Properties (13)
9
9
  this.app = null;
10
10
  this.aud = '';
11
- this.currentSessionId = null;
12
11
  this.device = null;
13
12
  this.exp = 0;
14
13
  this.iat = 0;
15
14
  this.info = null;
16
15
  this.iss = '';
16
+ this.jti = '';
17
17
  this.permissions = [];
18
18
  this.sub = '';
19
19
  this.subscription = null;
@@ -19,15 +19,15 @@ export interface IPayioJwtPayload {
19
19
  * (Emitido em): Timestamp de quando o JWT foi emitido
20
20
  */
21
21
  iat: number;
22
+ info: IPayioJwtPayloadInfo | null;
22
23
  /**
23
24
  * (Emissor): Identifica quem emitiu o JWT (o domínio da sua aplicação).
24
25
  */
25
26
  iss: string;
27
+ jti: string;
26
28
  permissions: IPayioPermissionRole[];
27
- info: IPayioJwtPayloadInfo | null;
28
29
  sub: string;
29
30
  subscription: IPayioJwtPayloadSubscription | null;
30
31
  type: string | null;
31
- currentSessionId: string | null;
32
32
  user: IPayioJwtPayloadUser | null;
33
33
  }
@@ -3,6 +3,8 @@ import { IUser } from '../interfaces';
3
3
  export declare class UserEntity implements IUser {
4
4
  active: boolean;
5
5
  createdAt: Date;
6
+ currentCompanyId: string | null;
7
+ currentCompanyName: string | null;
6
8
  email: string | null;
7
9
  engaged: boolean;
8
10
  id: string;
@@ -2,12 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserEntity = void 0;
4
4
  var UserEntity = /** @class */ (function () {
5
- // #endregion Properties (13)
5
+ // #endregion Properties (14)
6
6
  // #region Constructors (1)
7
7
  function UserEntity(data) {
8
- // #region Properties (13)
8
+ // #region Properties (14)
9
9
  this.active = true;
10
10
  this.createdAt = new Date();
11
+ this.currentCompanyId = null;
12
+ this.currentCompanyName = null;
11
13
  this.email = null;
12
14
  this.engaged = false;
13
15
  this.id = '';
@@ -12,4 +12,6 @@ export interface IUser {
12
12
  tags: string[];
13
13
  type: MemberTypeEnum | null;
14
14
  updatedAt: Date;
15
+ currentCompanyId: string | null;
16
+ currentCompanyName: string | null;
15
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.94",
3
+ "version": "1.5.97",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",