cecon-interfaces 1.5.86 → 1.5.88

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { ERole } from '../../general';
1
+ import { PayioPermissionRoleEntity } from '../../payio/permissions/entities/permission-role.entity';
2
2
  import { IMemberAccess } from '../interfaces/i-member-access';
3
3
  export declare class MemberAccessEntity implements IMemberAccess {
4
4
  accessCount: number | null;
@@ -11,8 +11,7 @@ export declare class MemberAccessEntity implements IMemberAccess {
11
11
  imageUrl: string | null;
12
12
  lastAccessAt: Date | null;
13
13
  name: string;
14
- permissions: string[];
15
- roles: ERole[];
14
+ roles: PayioPermissionRoleEntity[];
16
15
  tags: string[];
17
16
  updated: Date;
18
17
  userId: string;
@@ -16,7 +16,6 @@ var MemberAccessEntity = /** @class */ (function () {
16
16
  this.imageUrl = null;
17
17
  this.lastAccessAt = null;
18
18
  this.name = '';
19
- this.permissions = [];
20
19
  this.roles = [];
21
20
  this.tags = [];
22
21
  this.updated = new Date();
@@ -1,4 +1,4 @@
1
- import { ERole } from '../../general';
1
+ import { IPayioPermissionRole } from '../../payio/permissions/interfaces/i-permission-role';
2
2
  export interface IMemberAccess {
3
3
  accessCount: number | null;
4
4
  active: boolean;
@@ -10,8 +10,7 @@ export interface IMemberAccess {
10
10
  imageUrl: string | null;
11
11
  lastAccessAt: Date | null;
12
12
  name: string;
13
- roles: ERole[];
14
- permissions: string[];
13
+ roles: IPayioPermissionRole[];
15
14
  tags: string[];
16
15
  updated: Date;
17
16
  userId: string;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.85",
3
+ "version": "1.5.88",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1 +1,2 @@
1
+ export { PayioPermissionRoleEntity } from './permission-role.entity';
1
2
  export { PayioPermissionEntity } from './permission.entity';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioPermissionEntity = void 0;
3
+ exports.PayioPermissionEntity = exports.PayioPermissionRoleEntity = void 0;
4
+ var permission_role_entity_1 = require("./permission-role.entity");
5
+ Object.defineProperty(exports, "PayioPermissionRoleEntity", { enumerable: true, get: function () { return permission_role_entity_1.PayioPermissionRoleEntity; } });
4
6
  var permission_entity_1 = require("./permission.entity");
5
7
  Object.defineProperty(exports, "PayioPermissionEntity", { enumerable: true, get: function () { return permission_entity_1.PayioPermissionEntity; } });
@@ -0,0 +1,11 @@
1
+ import { ERole } from '../../../general';
2
+ import { IPayioPermissionRole } from '../interfaces/i-permission-role';
3
+ import { PayioPermissionEntity } from './permission.entity';
4
+ export declare class PayioPermissionRoleEntity implements IPayioPermissionRole {
5
+ createdAt: Date;
6
+ id: string;
7
+ permissions: PayioPermissionEntity[];
8
+ role: ERole;
9
+ updatedAt: Date;
10
+ constructor(data?: Partial<PayioPermissionRoleEntity>);
11
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioPermissionRoleEntity = void 0;
4
+ var general_1 = require("../../../general");
5
+ var PayioPermissionRoleEntity = /** @class */ (function () {
6
+ // #endregion Properties (5)
7
+ // #region Constructors (1)
8
+ function PayioPermissionRoleEntity(data) {
9
+ // #region Properties (5)
10
+ this.createdAt = new Date();
11
+ this.id = '';
12
+ this.permissions = [];
13
+ this.role = general_1.ERole.USER;
14
+ this.updatedAt = new Date();
15
+ if (data) {
16
+ for (var key in data) {
17
+ if (data.hasOwnProperty(key) && key in this) {
18
+ this[key] = data[key];
19
+ }
20
+ }
21
+ }
22
+ }
23
+ return PayioPermissionRoleEntity;
24
+ }());
25
+ exports.PayioPermissionRoleEntity = PayioPermissionRoleEntity;
@@ -0,0 +1,9 @@
1
+ import { ERole } from '../../../general';
2
+ import { IPayioPermission } from './i-permission';
3
+ export interface IPayioPermissionRole {
4
+ createdAt: Date;
5
+ id: string;
6
+ permissions: IPayioPermission[];
7
+ role: ERole;
8
+ updatedAt: Date;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export { IPayioPermission } from './i-permission';
2
+ export { IPayioPermissionRole } from './i-permission-role';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.86",
3
+ "version": "1.5.88",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",