cecon-interfaces 1.5.87 → 1.5.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/payload/entities/payload-user.entity.mjs +4 -3
- package/dist/esm2022/payio/payload/entities/payload.entity.mjs +1 -1
- package/dist/esm2022/payio/payload/interfaces/i-payload-user.mjs +1 -1
- package/dist/esm2022/payio/payload/interfaces/i-payload.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/esm2022/users/entities/index.mjs +1 -2
- package/dist/esm2022/users/entities/user.entity.mjs +1 -3
- package/dist/esm2022/users/interfaces/i-user.mjs +1 -1
- package/dist/esm2022/users/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +24 -26
- 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/payload/entities/payload-user.entity.d.ts +1 -0
- package/dist/payio/payload/entities/payload-user.entity.js +3 -2
- package/dist/payio/payload/entities/payload.entity.d.ts +2 -1
- package/dist/payio/payload/interfaces/i-payload-user.d.ts +1 -0
- package/dist/payio/payload/interfaces/i-payload.d.ts +2 -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/index.d.ts +1 -0
- package/dist/users/entities/index.d.ts +0 -1
- package/dist/users/entities/index.js +1 -3
- package/dist/users/entities/user.entity.d.ts +0 -2
- package/dist/users/entities/user.entity.js +0 -2
- package/dist/users/interfaces/i-user.d.ts +0 -2
- package/dist/users/interfaces/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/esm2022/users/entities/user-session.entity.mjs +0 -21
- package/dist/esm2022/users/interfaces/i-user-session.mjs +0 -2
- package/dist/users/entities/user-session.entity.d.ts +0 -10
- package/dist/users/entities/user-session.entity.js +0 -25
- package/dist/users/interfaces/i-user-session.d.ts +0 -8
- /package/dist/{users/interfaces/i-user-session.js → payio/permissions/interfaces/i-permission-role.js} +0 -0
|
@@ -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
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PayioJwtPayloadUserEntity = void 0;
|
|
4
4
|
var PayioJwtPayloadUserEntity = /** @class */ (function () {
|
|
5
|
-
// #endregion Properties (
|
|
5
|
+
// #endregion Properties (6)
|
|
6
6
|
// #region Constructors (1)
|
|
7
7
|
function PayioJwtPayloadUserEntity(data) {
|
|
8
|
-
// #region Properties (
|
|
8
|
+
// #region Properties (6)
|
|
9
9
|
this.email = null;
|
|
10
10
|
this.id = '';
|
|
11
11
|
this.internationalCode = '';
|
|
12
|
+
this.name = '';
|
|
12
13
|
this.phoneNumber = '';
|
|
13
14
|
this.roles = [];
|
|
14
15
|
if (data) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PayioPermissionRoleEntity } from '../../permissions';
|
|
1
2
|
import { IPayioJwtPayload } from '../interfaces/i-payload';
|
|
2
3
|
import { IPayioJwtPayloadApp } from '../interfaces/i-payload-app';
|
|
3
4
|
import { IPayioJwtPayloadInfo } from '../interfaces/i-payload-info';
|
|
@@ -12,7 +13,7 @@ export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
|
|
|
12
13
|
iat: number;
|
|
13
14
|
info: IPayioJwtPayloadInfo | null;
|
|
14
15
|
iss: string;
|
|
15
|
-
permissions:
|
|
16
|
+
permissions: PayioPermissionRoleEntity[];
|
|
16
17
|
sub: string;
|
|
17
18
|
subscription: PayioJwtPayloadSubscriptionEntity | null;
|
|
18
19
|
type: string | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IPayioPermissionRole } from '../../permissions/interfaces/i-permission-role';
|
|
1
2
|
import { IPayioJwtPayloadApp } from './i-payload-app';
|
|
2
3
|
import { IPayioJwtPayloadDevice } from './i-payload-device';
|
|
3
4
|
import { IPayioJwtPayloadInfo } from './i-payload-info';
|
|
@@ -22,7 +23,7 @@ export interface IPayioJwtPayload {
|
|
|
22
23
|
* (Emissor): Identifica quem emitiu o JWT (o domínio da sua aplicação).
|
|
23
24
|
*/
|
|
24
25
|
iss: string;
|
|
25
|
-
permissions:
|
|
26
|
+
permissions: IPayioPermissionRole[];
|
|
26
27
|
info: IPayioJwtPayloadInfo | null;
|
|
27
28
|
sub: string;
|
|
28
29
|
subscription: IPayioJwtPayloadSubscription | null;
|
|
@@ -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;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserEntity =
|
|
4
|
-
var user_session_entity_1 = require("./user-session.entity");
|
|
5
|
-
Object.defineProperty(exports, "UserSessionEntity", { enumerable: true, get: function () { return user_session_entity_1.UserSessionEntity; } });
|
|
3
|
+
exports.UserEntity = void 0;
|
|
6
4
|
var user_entity_1 = require("./user.entity");
|
|
7
5
|
Object.defineProperty(exports, "UserEntity", { enumerable: true, get: function () { return user_entity_1.UserEntity; } });
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MemberTypeEnum } from '../../member/enums';
|
|
2
2
|
import { IUser } from '../interfaces';
|
|
3
|
-
import { UserSessionEntity } from './user-session.entity';
|
|
4
3
|
export declare class UserEntity implements IUser {
|
|
5
4
|
active: boolean;
|
|
6
5
|
createdAt: Date;
|
|
@@ -11,7 +10,6 @@ export declare class UserEntity implements IUser {
|
|
|
11
10
|
internationalCode: string;
|
|
12
11
|
name: string;
|
|
13
12
|
phoneNumber: string;
|
|
14
|
-
session: UserSessionEntity;
|
|
15
13
|
tags: string[];
|
|
16
14
|
type: MemberTypeEnum | null;
|
|
17
15
|
updatedAt: Date;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserEntity = void 0;
|
|
4
|
-
var user_session_entity_1 = require("./user-session.entity");
|
|
5
4
|
var UserEntity = /** @class */ (function () {
|
|
6
5
|
// #endregion Properties (13)
|
|
7
6
|
// #region Constructors (1)
|
|
@@ -16,7 +15,6 @@ var UserEntity = /** @class */ (function () {
|
|
|
16
15
|
this.internationalCode = '55';
|
|
17
16
|
this.name = '';
|
|
18
17
|
this.phoneNumber = '';
|
|
19
|
-
this.session = new user_session_entity_1.UserSessionEntity();
|
|
20
18
|
this.tags = [];
|
|
21
19
|
this.type = null;
|
|
22
20
|
this.updatedAt = new Date();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MemberTypeEnum } from '../../member/enums';
|
|
2
|
-
import { IUserSession } from './i-user-session';
|
|
3
2
|
export interface IUser {
|
|
4
3
|
active: boolean;
|
|
5
4
|
createdAt: Date;
|
|
@@ -10,7 +9,6 @@ export interface IUser {
|
|
|
10
9
|
internationalCode: string;
|
|
11
10
|
name: string;
|
|
12
11
|
phoneNumber: string;
|
|
13
|
-
session: IUserSession;
|
|
14
12
|
tags: string[];
|
|
15
13
|
type: MemberTypeEnum | null;
|
|
16
14
|
updatedAt: Date;
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export class UserSessionEntity {
|
|
2
|
-
// #region Properties (6)
|
|
3
|
-
currentSessionId = null;
|
|
4
|
-
deviceInfo = null;
|
|
5
|
-
isLocked = false;
|
|
6
|
-
lastLoginAt = null;
|
|
7
|
-
lastSessionIp = null;
|
|
8
|
-
sessionExpiresAt = null;
|
|
9
|
-
// #endregion Properties (6)
|
|
10
|
-
// #region Constructors (1)
|
|
11
|
-
constructor(data) {
|
|
12
|
-
if (data) {
|
|
13
|
-
for (let key in data) {
|
|
14
|
-
if (data.hasOwnProperty(key) && key in this) {
|
|
15
|
-
this[key] = data[key];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1zZXNzaW9uLmVudGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy91c2Vycy9lbnRpdGllcy91c2VyLXNlc3Npb24uZW50aXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sT0FBTyxpQkFBaUI7SUFDNUIseUJBQXlCO0lBRWxCLGdCQUFnQixHQUFrQixJQUFJLENBQUM7SUFDdkMsVUFBVSxHQUFrQixJQUFJLENBQUM7SUFDakMsUUFBUSxHQUFZLEtBQUssQ0FBQztJQUMxQixXQUFXLEdBQWdCLElBQUksQ0FBQztJQUNoQyxhQUFhLEdBQWtCLElBQUksQ0FBQztJQUNwQyxnQkFBZ0IsR0FBZ0IsSUFBSSxDQUFDO0lBRTVDLDRCQUE0QjtJQUU1QiwyQkFBMkI7SUFFM0IsWUFBWSxJQUFpQztRQUMzQyxJQUFJLElBQUksRUFBRTtZQUNSLEtBQUssSUFBSSxHQUFHLElBQUksSUFBSSxFQUFFO2dCQUNwQixJQUFJLElBQUksQ0FBQyxjQUFjLENBQUMsR0FBRyxDQUFDLElBQUksR0FBRyxJQUFJLElBQUksRUFBRTtvQkFDMUMsSUFBWSxDQUFDLEdBQUcsQ0FBQyxHQUFJLElBQVksQ0FBQyxHQUFHLENBQUMsQ0FBQztpQkFDekM7YUFDRjtTQUNGO0lBQ0gsQ0FBQztD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0b3JzICgxKVxyXG59XHJcbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS11c2VyLXNlc3Npb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdXNlcnMvaW50ZXJmYWNlcy9pLXVzZXItc2Vzc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJVXNlclNlc3Npb24ge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoNilcclxuXHJcbiAgY3VycmVudFNlc3Npb25JZDogc3RyaW5nIHwgbnVsbDtcclxuICBkZXZpY2VJbmZvOiBzdHJpbmcgfCBudWxsO1xyXG4gIGlzTG9ja2VkOiBib29sZWFuO1xyXG4gIGxhc3RMb2dpbkF0OiBEYXRlIHwgbnVsbDtcclxuICBsYXN0U2Vzc2lvbklwOiBzdHJpbmcgfCBudWxsO1xyXG4gIHNlc3Npb25FeHBpcmVzQXQ6IERhdGUgfCBudWxsO1xyXG5cclxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDYpXHJcbn1cclxuIl19
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IUserSession } from '../interfaces/i-user-session';
|
|
2
|
-
export declare class UserSessionEntity implements IUserSession {
|
|
3
|
-
currentSessionId: string | null;
|
|
4
|
-
deviceInfo: string | null;
|
|
5
|
-
isLocked: boolean;
|
|
6
|
-
lastLoginAt: Date | null;
|
|
7
|
-
lastSessionIp: string | null;
|
|
8
|
-
sessionExpiresAt: Date | null;
|
|
9
|
-
constructor(data?: Partial<UserSessionEntity>);
|
|
10
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserSessionEntity = void 0;
|
|
4
|
-
var UserSessionEntity = /** @class */ (function () {
|
|
5
|
-
// #endregion Properties (6)
|
|
6
|
-
// #region Constructors (1)
|
|
7
|
-
function UserSessionEntity(data) {
|
|
8
|
-
// #region Properties (6)
|
|
9
|
-
this.currentSessionId = null;
|
|
10
|
-
this.deviceInfo = null;
|
|
11
|
-
this.isLocked = false;
|
|
12
|
-
this.lastLoginAt = null;
|
|
13
|
-
this.lastSessionIp = null;
|
|
14
|
-
this.sessionExpiresAt = null;
|
|
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 UserSessionEntity;
|
|
24
|
-
}());
|
|
25
|
-
exports.UserSessionEntity = UserSessionEntity;
|
|
File without changes
|