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.
- package/dist/esm2022/member-access/entities/index.mjs +3 -1
- package/dist/esm2022/member-access/entities/member-access-permission.entity.mjs +17 -0
- package/dist/esm2022/member-access/entities/member-access-role.entity.mjs +18 -0
- package/dist/esm2022/member-access/interfaces/i-member-access-permissions.mjs +2 -0
- package/dist/esm2022/member-access/interfaces/i-member-access-role.mjs +2 -0
- package/dist/esm2022/member-access/interfaces/index.mjs +1 -1
- package/dist/esm2022/payio/payload/interfaces/i-payload.mjs +1 -1
- package/dist/esm2022/users/entities/user.entity.mjs +5 -3
- package/dist/esm2022/users/interfaces/i-user.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +39 -3
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/member-access/entities/index.d.ts +2 -0
- package/dist/member-access/entities/index.js +5 -1
- package/dist/member-access/entities/member-access-permission.entity.d.ts +6 -0
- package/dist/member-access/entities/member-access-permission.entity.js +21 -0
- package/dist/member-access/entities/member-access-role.entity.d.ts +8 -0
- package/dist/member-access/entities/member-access-role.entity.js +22 -0
- package/dist/member-access/interfaces/i-member-access-permissions.d.ts +4 -0
- package/dist/member-access/interfaces/i-member-access-permissions.js +2 -0
- package/dist/member-access/interfaces/i-member-access-role.d.ts +6 -0
- package/dist/member-access/interfaces/i-member-access-role.js +2 -0
- package/dist/member-access/interfaces/index.d.ts +2 -0
- package/dist/package.json +1 -1
- package/dist/payio/payload/interfaces/i-payload.d.ts +1 -1
- package/dist/users/entities/user.entity.d.ts +2 -0
- package/dist/users/entities/user.entity.js +4 -2
- package/dist/users/interfaces/i-user.d.ts +2 -0
- package/package.json +1 -1
@@ -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;
|
package/dist/package.json
CHANGED
@@ -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
|
27
|
+
jti: string;
|
28
28
|
permissions: IPayioPermissionRole[];
|
29
29
|
sub: string;
|
30
30
|
subscription: IPayioJwtPayloadSubscription | null;
|
@@ -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 (
|
5
|
+
// #endregion Properties (14)
|
6
6
|
// #region Constructors (1)
|
7
7
|
function UserEntity(data) {
|
8
|
-
// #region Properties (
|
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 = '';
|