cecon-interfaces 1.5.97 → 1.5.99

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.97",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.97",
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",