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.
- package/dist/esm2022/member-access/entities/member-access.entity.mjs +1 -2
- package/dist/esm2022/member-access/interfaces/i-member-access.mjs +1 -1
- package/dist/esm2022/payio/permissions/entities/index.mjs +2 -1
- package/dist/esm2022/payio/permissions/entities/permission-role.entity.mjs +21 -0
- package/dist/esm2022/payio/permissions/interfaces/i-permission-role.mjs +2 -0
- package/dist/esm2022/payio/permissions/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +21 -2
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/member-access/entities/member-access.entity.d.ts +2 -3
- package/dist/member-access/entities/member-access.entity.js +0 -1
- package/dist/member-access/interfaces/i-member-access.d.ts +2 -3
- package/dist/package.json +1 -1
- package/dist/payio/permissions/entities/index.d.ts +1 -0
- package/dist/payio/permissions/entities/index.js +3 -1
- package/dist/payio/permissions/entities/permission-role.entity.d.ts +11 -0
- package/dist/payio/permissions/entities/permission-role.entity.js +25 -0
- package/dist/payio/permissions/interfaces/i-permission-role.d.ts +9 -0
- package/dist/payio/permissions/interfaces/i-permission-role.js +2 -0
- package/dist/payio/permissions/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
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
|
-
|
15
|
-
roles: ERole[];
|
14
|
+
roles: PayioPermissionRoleEntity[];
|
16
15
|
tags: string[];
|
17
16
|
updated: Date;
|
18
17
|
userId: string;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
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:
|
14
|
-
permissions: string[];
|
13
|
+
roles: IPayioPermissionRole[];
|
15
14
|
tags: string[];
|
16
15
|
updated: Date;
|
17
16
|
userId: string;
|
package/dist/package.json
CHANGED
@@ -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;
|