cecon-interfaces 1.5.95 → 1.5.99

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/dist/esm2022/member-access/entities/index.mjs +3 -1
  2. package/dist/esm2022/member-access/entities/member-access-permission.entity.mjs +17 -0
  3. package/dist/esm2022/member-access/entities/member-access-role.entity.mjs +18 -0
  4. package/dist/esm2022/member-access/interfaces/i-member-access-permissions.mjs +2 -0
  5. package/dist/esm2022/member-access/interfaces/i-member-access-role.mjs +2 -0
  6. package/dist/esm2022/member-access/interfaces/index.mjs +1 -1
  7. package/dist/esm2022/payio/payload/interfaces/i-payload.mjs +1 -1
  8. package/dist/esm2022/users/entities/user.entity.mjs +5 -3
  9. package/dist/esm2022/users/interfaces/i-user.mjs +1 -1
  10. package/dist/fesm2022/cecon-interfaces.mjs +39 -3
  11. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  12. package/dist/member-access/entities/index.d.ts +2 -0
  13. package/dist/member-access/entities/index.js +5 -1
  14. package/dist/member-access/entities/member-access-permission.entity.d.ts +6 -0
  15. package/dist/member-access/entities/member-access-permission.entity.js +21 -0
  16. package/dist/member-access/entities/member-access-role.entity.d.ts +8 -0
  17. package/dist/member-access/entities/member-access-role.entity.js +22 -0
  18. package/dist/member-access/interfaces/i-member-access-permissions.d.ts +4 -0
  19. package/dist/member-access/interfaces/i-member-access-permissions.js +2 -0
  20. package/dist/member-access/interfaces/i-member-access-role.d.ts +6 -0
  21. package/dist/member-access/interfaces/i-member-access-role.js +2 -0
  22. package/dist/member-access/interfaces/index.d.ts +2 -0
  23. package/dist/package.json +1 -1
  24. package/dist/payio/payload/interfaces/i-payload.d.ts +1 -1
  25. package/dist/users/entities/user.entity.d.ts +2 -0
  26. package/dist/users/entities/user.entity.js +4 -2
  27. package/dist/users/interfaces/i-user.d.ts +2 -0
  28. package/package.json +1 -1
@@ -1 +1,3 @@
1
+ export { MemberAccessRolePermissionEntity } from './member-access-permission.entity';
2
+ export { MemberAccessRoleEntity } from './member-access-role.entity';
1
3
  export { MemberAccessEntity } from './member-access.entity';
@@ -1,5 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MemberAccessEntity = void 0;
3
+ exports.MemberAccessEntity = exports.MemberAccessRoleEntity = exports.MemberAccessRolePermissionEntity = void 0;
4
+ var member_access_permission_entity_1 = require("./member-access-permission.entity");
5
+ Object.defineProperty(exports, "MemberAccessRolePermissionEntity", { enumerable: true, get: function () { return member_access_permission_entity_1.MemberAccessRolePermissionEntity; } });
6
+ var member_access_role_entity_1 = require("./member-access-role.entity");
7
+ Object.defineProperty(exports, "MemberAccessRoleEntity", { enumerable: true, get: function () { return member_access_role_entity_1.MemberAccessRoleEntity; } });
4
8
  var member_access_entity_1 = require("./member-access.entity");
5
9
  Object.defineProperty(exports, "MemberAccessEntity", { enumerable: true, get: function () { return member_access_entity_1.MemberAccessEntity; } });
@@ -0,0 +1,6 @@
1
+ import { IMemberAccessRolePermission } from '../interfaces/i-member-access-permissions';
2
+ export declare class MemberAccessRolePermissionEntity implements IMemberAccessRolePermission {
3
+ id: string;
4
+ name: string;
5
+ constructor(data?: Partial<MemberAccessRolePermissionEntity>);
6
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MemberAccessRolePermissionEntity = void 0;
4
+ var MemberAccessRolePermissionEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function MemberAccessRolePermissionEntity(data) {
8
+ // #region Properties (2)
9
+ this.id = '';
10
+ this.name = '';
11
+ if (data) {
12
+ for (var key in data) {
13
+ if (data.hasOwnProperty(key) && key in this) {
14
+ this[key] = data[key];
15
+ }
16
+ }
17
+ }
18
+ }
19
+ return MemberAccessRolePermissionEntity;
20
+ }());
21
+ exports.MemberAccessRolePermissionEntity = MemberAccessRolePermissionEntity;
@@ -0,0 +1,8 @@
1
+ import { ERole } from '../../general';
2
+ import { IMemberAccessRole } from '../interfaces/i-member-access-role';
3
+ import { MemberAccessRolePermissionEntity } from './member-access-permission.entity';
4
+ export declare class MemberAccessRoleEntity implements IMemberAccessRole {
5
+ permissions: MemberAccessRolePermissionEntity[];
6
+ role: ERole;
7
+ constructor(data?: Partial<MemberAccessRoleEntity>);
8
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MemberAccessRoleEntity = void 0;
4
+ var general_1 = require("../../general");
5
+ var MemberAccessRoleEntity = /** @class */ (function () {
6
+ // #endregion Properties (2)
7
+ // #region Constructors (1)
8
+ function MemberAccessRoleEntity(data) {
9
+ // #region Properties (2)
10
+ this.permissions = [];
11
+ this.role = general_1.ERole.USER;
12
+ if (data) {
13
+ for (var key in data) {
14
+ if (data.hasOwnProperty(key) && key in this) {
15
+ this[key] = data[key];
16
+ }
17
+ }
18
+ }
19
+ }
20
+ return MemberAccessRoleEntity;
21
+ }());
22
+ exports.MemberAccessRoleEntity = MemberAccessRoleEntity;
@@ -0,0 +1,4 @@
1
+ export interface IMemberAccessRolePermission {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { ERole } from '../../general/enums/role.enum';
2
+ import { IMemberAccessRolePermission } from './i-member-access-permissions';
3
+ export interface IMemberAccessRole {
4
+ permissions: IMemberAccessRolePermission[];
5
+ role: ERole;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,3 @@
1
1
  export { IMemberAccess } from './i-member-access';
2
+ export { IMemberAccessRolePermission } from './i-member-access-permissions';
3
+ export { IMemberAccessRole } from './i-member-access-role';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.95",
3
+ "version": "1.5.99",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@ export interface IPayioJwtPayload {
24
24
  * (Emissor): Identifica quem emitiu o JWT (o domínio da sua aplicação).
25
25
  */
26
26
  iss: string;
27
- jti: string | null;
27
+ jti: string;
28
28
  permissions: IPayioPermissionRole[];
29
29
  sub: string;
30
30
  subscription: IPayioJwtPayloadSubscription | null;
@@ -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.95",
3
+ "version": "1.5.99",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",