@venturialstd/user 0.0.1
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/README.md +1357 -0
- package/dist/constants/user.constant.d.ts +8 -0
- package/dist/constants/user.constant.d.ts.map +1 -0
- package/dist/constants/user.constant.js +12 -0
- package/dist/constants/user.constant.js.map +1 -0
- package/dist/constants/user.settings.constant.d.ts +8 -0
- package/dist/constants/user.settings.constant.d.ts.map +1 -0
- package/dist/constants/user.settings.constant.js +5 -0
- package/dist/constants/user.settings.constant.js.map +1 -0
- package/dist/decorators/acl.decorator.d.ts +5 -0
- package/dist/decorators/acl.decorator.d.ts.map +1 -0
- package/dist/decorators/acl.decorator.js +11 -0
- package/dist/decorators/acl.decorator.js.map +1 -0
- package/dist/decorators/roles.decorator.d.ts +3 -0
- package/dist/decorators/roles.decorator.d.ts.map +1 -0
- package/dist/decorators/roles.decorator.js +7 -0
- package/dist/decorators/roles.decorator.js.map +1 -0
- package/dist/decorators/user.decorator.d.ts +3 -0
- package/dist/decorators/user.decorator.d.ts.map +1 -0
- package/dist/decorators/user.decorator.js +13 -0
- package/dist/decorators/user.decorator.js.map +1 -0
- package/dist/entities/permission.entity.d.ts +12 -0
- package/dist/entities/permission.entity.d.ts.map +1 -0
- package/dist/entities/permission.entity.js +80 -0
- package/dist/entities/permission.entity.js.map +1 -0
- package/dist/entities/role-permission.entity.d.ts +13 -0
- package/dist/entities/role-permission.entity.d.ts.map +1 -0
- package/dist/entities/role-permission.entity.js +79 -0
- package/dist/entities/role-permission.entity.js.map +1 -0
- package/dist/entities/role.entity.d.ts +15 -0
- package/dist/entities/role.entity.d.ts.map +1 -0
- package/dist/entities/role.entity.js +91 -0
- package/dist/entities/role.entity.js.map +1 -0
- package/dist/entities/user-role.entity.d.ts +14 -0
- package/dist/entities/user-role.entity.d.ts.map +1 -0
- package/dist/entities/user-role.entity.js +82 -0
- package/dist/entities/user-role.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +18 -0
- package/dist/entities/user.entity.d.ts.map +1 -0
- package/dist/entities/user.entity.js +129 -0
- package/dist/entities/user.entity.js.map +1 -0
- package/dist/guards/acl.guard.d.ts +16 -0
- package/dist/guards/acl.guard.d.ts.map +1 -0
- package/dist/guards/acl.guard.js +85 -0
- package/dist/guards/acl.guard.js.map +1 -0
- package/dist/guards/user.guard.d.ts +8 -0
- package/dist/guards/user.guard.d.ts.map +1 -0
- package/dist/guards/user.guard.js +39 -0
- package/dist/guards/user.guard.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/services/acl.service.d.ts +39 -0
- package/dist/services/acl.service.d.ts.map +1 -0
- package/dist/services/acl.service.js +307 -0
- package/dist/services/acl.service.js.map +1 -0
- package/dist/services/user.service.d.ts +28 -0
- package/dist/services/user.service.d.ts.map +1 -0
- package/dist/services/user.service.js +173 -0
- package/dist/services/user.service.js.map +1 -0
- package/dist/settings/user.settings.d.ts +8 -0
- package/dist/settings/user.settings.d.ts.map +1 -0
- package/dist/settings/user.settings.js +3 -0
- package/dist/settings/user.settings.js.map +1 -0
- package/dist/user.module.d.ts +12 -0
- package/dist/user.module.d.ts.map +1 -0
- package/dist/user.module.js +48 -0
- package/dist/user.module.js.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.User = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
let User = class User {
|
|
16
|
+
id;
|
|
17
|
+
firstname;
|
|
18
|
+
lastname;
|
|
19
|
+
email;
|
|
20
|
+
phone;
|
|
21
|
+
avatar;
|
|
22
|
+
timezone;
|
|
23
|
+
locale;
|
|
24
|
+
isActive;
|
|
25
|
+
isEmailVerified;
|
|
26
|
+
status;
|
|
27
|
+
settings;
|
|
28
|
+
metadata;
|
|
29
|
+
createdAt;
|
|
30
|
+
updatedAt;
|
|
31
|
+
};
|
|
32
|
+
exports.User = User;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], User.prototype, "id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
(0, typeorm_1.Column)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], User.prototype, "firstname", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
+
(0, typeorm_1.Column)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], User.prototype, "lastname", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsEmail)(),
|
|
51
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
52
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], User.prototype, "email", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], User.prototype, "phone", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], User.prototype, "avatar", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsString)(),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], User.prototype, "timezone", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_validator_1.IsString)(),
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], User.prototype, "locale", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsBoolean)(),
|
|
81
|
+
(0, typeorm_1.Column)({ default: true }),
|
|
82
|
+
__metadata("design:type", Boolean)
|
|
83
|
+
], User.prototype, "isActive", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_validator_1.IsBoolean)(),
|
|
86
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
87
|
+
__metadata("design:type", Boolean)
|
|
88
|
+
], User.prototype, "isEmailVerified", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_validator_1.IsString)(),
|
|
91
|
+
(0, class_validator_1.IsOptional)(),
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
93
|
+
(0, typeorm_1.Index)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], User.prototype, "status", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.IsString)(),
|
|
98
|
+
(0, class_validator_1.IsOptional)(),
|
|
99
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], User.prototype, "settings", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, class_validator_1.IsString)(),
|
|
104
|
+
(0, class_validator_1.IsOptional)(),
|
|
105
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
106
|
+
__metadata("design:type", Object)
|
|
107
|
+
], User.prototype, "metadata", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.CreateDateColumn)({
|
|
110
|
+
name: 'createdAt',
|
|
111
|
+
nullable: false,
|
|
112
|
+
type: 'timestamptz',
|
|
113
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
114
|
+
}),
|
|
115
|
+
__metadata("design:type", Date)
|
|
116
|
+
], User.prototype, "createdAt", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.UpdateDateColumn)({
|
|
119
|
+
name: 'updatedAt',
|
|
120
|
+
nullable: false,
|
|
121
|
+
type: 'timestamptz',
|
|
122
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
123
|
+
}),
|
|
124
|
+
__metadata("design:type", Date)
|
|
125
|
+
], User.prototype, "updatedAt", void 0);
|
|
126
|
+
exports.User = User = __decorate([
|
|
127
|
+
(0, typeorm_1.Entity)('user')
|
|
128
|
+
], User);
|
|
129
|
+
//# sourceMappingURL=user.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuF;AACvF,qC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|
3
|
+
import { AclService } from '../services/acl.service';
|
|
4
|
+
export declare class PermissionGuard implements CanActivate {
|
|
5
|
+
private readonly aclService;
|
|
6
|
+
private readonly reflector;
|
|
7
|
+
constructor(aclService: AclService, reflector: Reflector);
|
|
8
|
+
canActivate(context: ExecutionContext): Promise<boolean>;
|
|
9
|
+
}
|
|
10
|
+
export declare class AclRoleGuard implements CanActivate {
|
|
11
|
+
private readonly aclService;
|
|
12
|
+
private readonly reflector;
|
|
13
|
+
constructor(aclService: AclService, reflector: Reflector);
|
|
14
|
+
canActivate(context: ExecutionContext): Promise<boolean>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=acl.guard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acl.guard.d.ts","sourceRoot":"","sources":["../../src/guards/acl.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAIjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAYrD,qBACa,eAAgB,YAAW,WAAW;IAE/C,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS;gBADT,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS;IAGjC,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;CAkC/D;AAYD,qBACa,YAAa,YAAW,WAAW;IAE5C,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS;gBADT,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS;IAGjC,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;CA4B/D"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AclRoleGuard = exports.PermissionGuard = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const core_1 = require("@nestjs/core");
|
|
15
|
+
const acl_decorator_1 = require("../decorators/acl.decorator");
|
|
16
|
+
const acl_service_1 = require("../services/acl.service");
|
|
17
|
+
let PermissionGuard = class PermissionGuard {
|
|
18
|
+
aclService;
|
|
19
|
+
reflector;
|
|
20
|
+
constructor(aclService, reflector) {
|
|
21
|
+
this.aclService = aclService;
|
|
22
|
+
this.reflector = reflector;
|
|
23
|
+
}
|
|
24
|
+
async canActivate(context) {
|
|
25
|
+
const requiredPermissions = this.reflector.getAllAndOverride(acl_decorator_1.PERMISSIONS_KEY, [
|
|
26
|
+
context.getHandler(),
|
|
27
|
+
context.getClass(),
|
|
28
|
+
]);
|
|
29
|
+
if (!requiredPermissions || requiredPermissions.length === 0) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
const request = context.switchToHttp().getRequest();
|
|
33
|
+
const userId = request.user?.id || request.userId;
|
|
34
|
+
if (!userId) {
|
|
35
|
+
throw new common_1.UnauthorizedException('User authentication is required');
|
|
36
|
+
}
|
|
37
|
+
const userPermissions = await this.aclService.getUserPermissions(userId);
|
|
38
|
+
const userPermissionSlugs = userPermissions.map((p) => p.slug);
|
|
39
|
+
const hasPermission = requiredPermissions.some((permission) => userPermissionSlugs.includes(permission));
|
|
40
|
+
if (!hasPermission) {
|
|
41
|
+
throw new common_1.ForbiddenException(`Insufficient permissions. Required: ${requiredPermissions.join(' or ')}`);
|
|
42
|
+
}
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
exports.PermissionGuard = PermissionGuard;
|
|
47
|
+
exports.PermissionGuard = PermissionGuard = __decorate([
|
|
48
|
+
(0, common_1.Injectable)(),
|
|
49
|
+
__metadata("design:paramtypes", [acl_service_1.AclService,
|
|
50
|
+
core_1.Reflector])
|
|
51
|
+
], PermissionGuard);
|
|
52
|
+
let AclRoleGuard = class AclRoleGuard {
|
|
53
|
+
aclService;
|
|
54
|
+
reflector;
|
|
55
|
+
constructor(aclService, reflector) {
|
|
56
|
+
this.aclService = aclService;
|
|
57
|
+
this.reflector = reflector;
|
|
58
|
+
}
|
|
59
|
+
async canActivate(context) {
|
|
60
|
+
const requiredRoles = this.reflector.getAllAndOverride(acl_decorator_1.ROLES_KEY, [
|
|
61
|
+
context.getHandler(),
|
|
62
|
+
context.getClass(),
|
|
63
|
+
]);
|
|
64
|
+
if (!requiredRoles || requiredRoles.length === 0) {
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
const request = context.switchToHttp().getRequest();
|
|
68
|
+
const userId = request.user?.id || request.userId;
|
|
69
|
+
if (!userId) {
|
|
70
|
+
throw new common_1.UnauthorizedException('User authentication is required');
|
|
71
|
+
}
|
|
72
|
+
const hasRole = await this.aclService.userHasAnyRole(userId, requiredRoles);
|
|
73
|
+
if (!hasRole) {
|
|
74
|
+
throw new common_1.ForbiddenException(`Insufficient permissions. Required roles: ${requiredRoles.join(' or ')}`);
|
|
75
|
+
}
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
exports.AclRoleGuard = AclRoleGuard;
|
|
80
|
+
exports.AclRoleGuard = AclRoleGuard = __decorate([
|
|
81
|
+
(0, common_1.Injectable)(),
|
|
82
|
+
__metadata("design:paramtypes", [acl_service_1.AclService,
|
|
83
|
+
core_1.Reflector])
|
|
84
|
+
], AclRoleGuard);
|
|
85
|
+
//# sourceMappingURL=acl.guard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acl.guard.js","sourceRoot":"","sources":["../../src/guards/acl.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAMwB;AACxB,uCAAyC;AAEzC,+DAAyE;AACzE,yDAAqD;AAa9C,IAAM,eAAe,GAArB,MAAM,eAAe;IAEP;IACA;IAFnB,YACmB,UAAsB,EACtB,SAAoB;QADpB,eAAU,GAAV,UAAU,CAAY;QACtB,cAAS,GAAT,SAAS,CAAW;IACpC,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,OAAyB;QACzC,MAAM,mBAAmB,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAW,+BAAe,EAAE;YACtF,OAAO,CAAC,UAAU,EAAE;YACpB,OAAO,CAAC,QAAQ,EAAE;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,mBAAmB,IAAI,mBAAmB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC7D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;QACpD,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,EAAE,EAAE,IAAI,OAAO,CAAC,MAAM,CAAC;QAElD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,8BAAqB,CAAC,iCAAiC,CAAC,CAAC;QACrE,CAAC;QAGD,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC,MA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CAAC,iCAAiC,CAAC,CAAC;QACrE,CAAC;QAGD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;QAE5E,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,2BAAkB,CAC1B,6CAA6C,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAC1E,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AAlCY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;qCAGoB,wBAAU;QACX,gBAAS;GAH5B,YAAY,CAkCxB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
2
|
+
import { UserService } from '../services/user.service';
|
|
3
|
+
export declare class UserGuard implements CanActivate {
|
|
4
|
+
private readonly userService;
|
|
5
|
+
constructor(userService: UserService);
|
|
6
|
+
canActivate(context: ExecutionContext): Promise<boolean>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=user.guard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.guard.d.ts","sourceRoot":"","sources":["../../src/guards/user.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAIjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAavD,qBACa,SAAU,YAAW,WAAW;IAC/B,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAE/C,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;CAsB/D"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UserGuard = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const user_service_1 = require("../services/user.service");
|
|
15
|
+
let UserGuard = class UserGuard {
|
|
16
|
+
userService;
|
|
17
|
+
constructor(userService) {
|
|
18
|
+
this.userService = userService;
|
|
19
|
+
}
|
|
20
|
+
async canActivate(context) {
|
|
21
|
+
const request = context.switchToHttp().getRequest();
|
|
22
|
+
const userId = request.user?.id || request.userId;
|
|
23
|
+
if (!userId) {
|
|
24
|
+
throw new common_1.UnauthorizedException('User authentication is required');
|
|
25
|
+
}
|
|
26
|
+
const user = await this.userService.getUserById(userId);
|
|
27
|
+
if (!user.isActive) {
|
|
28
|
+
throw new common_1.ForbiddenException('User account is not active');
|
|
29
|
+
}
|
|
30
|
+
request.user = user;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.UserGuard = UserGuard;
|
|
35
|
+
exports.UserGuard = UserGuard = __decorate([
|
|
36
|
+
(0, common_1.Injectable)(),
|
|
37
|
+
__metadata("design:paramtypes", [user_service_1.UserService])
|
|
38
|
+
], UserGuard);
|
|
39
|
+
//# sourceMappingURL=user.guard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.guard.js","sourceRoot":"","sources":["../../src/guards/user.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAMwB;AAExB,2DAAuD;AAchD,IAAM,SAAS,GAAf,MAAM,SAAS;IACS;IAA7B,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAEzD,KAAK,CAAC,WAAW,CAAC,OAAyB;QACzC,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;QAGpD,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,EAAE,EAAE,IAAI,OAAO,CAAC,MAAM,CAAC;QAElD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,8BAAqB,CAAC,iCAAiC,CAAC,CAAC;QACrE,CAAC;QAGD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAExD,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,MAAM,IAAI,2BAAkB,CAAC,4BAA4B,CAAC,CAAC;QAC7D,CAAC;QAGD,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;QAEpB,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AAzBY,8BAAS;oBAAT,SAAS;IADrB,IAAA,mBAAU,GAAE;qCAE+B,0BAAW;GAD1C,SAAS,CAyBrB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './constants/user.constant';
|
|
2
|
+
export * from './constants/user.settings.constant';
|
|
3
|
+
export * from './decorators/acl.decorator';
|
|
4
|
+
export * from './decorators/user.decorator';
|
|
5
|
+
export * from './entities/permission.entity';
|
|
6
|
+
export * from './entities/role.entity';
|
|
7
|
+
export * from './entities/role-permission.entity';
|
|
8
|
+
export * from './entities/user.entity';
|
|
9
|
+
export * from './entities/user-role.entity';
|
|
10
|
+
export * from './guards/acl.guard';
|
|
11
|
+
export * from './guards/user.guard';
|
|
12
|
+
export * from './services/acl.service';
|
|
13
|
+
export * from './services/user.service';
|
|
14
|
+
export * from './settings/user.settings';
|
|
15
|
+
export * from './user.module';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./constants/user.constant"), exports);
|
|
18
|
+
__exportStar(require("./constants/user.settings.constant"), exports);
|
|
19
|
+
__exportStar(require("./decorators/acl.decorator"), exports);
|
|
20
|
+
__exportStar(require("./decorators/user.decorator"), exports);
|
|
21
|
+
__exportStar(require("./entities/permission.entity"), exports);
|
|
22
|
+
__exportStar(require("./entities/role.entity"), exports);
|
|
23
|
+
__exportStar(require("./entities/role-permission.entity"), exports);
|
|
24
|
+
__exportStar(require("./entities/user.entity"), exports);
|
|
25
|
+
__exportStar(require("./entities/user-role.entity"), exports);
|
|
26
|
+
__exportStar(require("./guards/acl.guard"), exports);
|
|
27
|
+
__exportStar(require("./guards/user.guard"), exports);
|
|
28
|
+
__exportStar(require("./services/acl.service"), exports);
|
|
29
|
+
__exportStar(require("./services/user.service"), exports);
|
|
30
|
+
__exportStar(require("./settings/user.settings"), exports);
|
|
31
|
+
__exportStar(require("./user.module"), exports);
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,qEAAmD;AACnD,6DAA2C;AAC3C,8DAA4C;AAC5C,+DAA6C;AAC7C,yDAAuC;AACvC,oEAAkD;AAClD,yDAAuC;AACvC,8DAA4C;AAC5C,qDAAmC;AACnC,sDAAoC;AACpC,yDAAuC;AACvC,0DAAwC;AACxC,2DAAyC;AACzC,gDAA8B"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AppLogger } from '@venturialstd/core';
|
|
2
|
+
import { Repository } from 'typeorm';
|
|
3
|
+
import { Permission } from '../entities/permission.entity';
|
|
4
|
+
import { Role } from '../entities/role.entity';
|
|
5
|
+
import { RolePermission } from '../entities/role-permission.entity';
|
|
6
|
+
import { UserRole } from '../entities/user-role.entity';
|
|
7
|
+
export declare class AclService {
|
|
8
|
+
private roleRepo;
|
|
9
|
+
private permissionRepo;
|
|
10
|
+
private rolePermissionRepo;
|
|
11
|
+
private userRoleRepo;
|
|
12
|
+
private readonly logger;
|
|
13
|
+
constructor(roleRepo: Repository<Role>, permissionRepo: Repository<Permission>, rolePermissionRepo: Repository<RolePermission>, userRoleRepo: Repository<UserRole>, logger: AppLogger);
|
|
14
|
+
createRole(name: string, description?: string, priority?: number, isSystem?: boolean): Promise<Role>;
|
|
15
|
+
getRole(roleId: string): Promise<Role>;
|
|
16
|
+
getRoleByName(name: string): Promise<Role>;
|
|
17
|
+
getRoles(activeOnly?: boolean): Promise<Role[]>;
|
|
18
|
+
updateRole(roleId: string, updates: Partial<Pick<Role, 'name' | 'description' | 'priority' | 'isActive'>>): Promise<Role>;
|
|
19
|
+
deleteRole(roleId: string, force?: boolean): Promise<void>;
|
|
20
|
+
createPermission(resource: string, action: string, description?: string): Promise<Permission>;
|
|
21
|
+
getPermission(permissionId: string): Promise<Permission>;
|
|
22
|
+
getPermissionBySlug(slug: string): Promise<Permission>;
|
|
23
|
+
getPermissions(): Promise<Permission[]>;
|
|
24
|
+
getPermissionsByResource(resource: string): Promise<Permission[]>;
|
|
25
|
+
deletePermission(permissionId: string): Promise<void>;
|
|
26
|
+
assignPermissionToRole(roleId: string, permissionId: string, conditions?: Record<string, unknown>): Promise<RolePermission>;
|
|
27
|
+
removePermissionFromRole(roleId: string, permissionId: string): Promise<void>;
|
|
28
|
+
getRolePermissions(roleId: string): Promise<Permission[]>;
|
|
29
|
+
syncRolePermissions(roleId: string, permissionIds: string[]): Promise<void>;
|
|
30
|
+
assignRoleToUser(userId: string, roleId: string, expiresAt?: Date, scope?: Record<string, unknown>): Promise<UserRole>;
|
|
31
|
+
removeRoleFromUser(userId: string, roleId: string): Promise<void>;
|
|
32
|
+
getUserRoles(userId: string, includeExpired?: boolean): Promise<Role[]>;
|
|
33
|
+
getUserPermissions(userId: string): Promise<Permission[]>;
|
|
34
|
+
userHasPermission(userId: string, permissionSlug: string): Promise<boolean>;
|
|
35
|
+
userHasRole(userId: string, roleName: string): Promise<boolean>;
|
|
36
|
+
userHasAnyRole(userId: string, roleNames: string[]): Promise<boolean>;
|
|
37
|
+
syncUserRoles(userId: string, roleIds: string[]): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=acl.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acl.service.d.ts","sourceRoot":"","sources":["../../src/services/acl.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAM,UAAU,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,qBACa,UAAU;IAGnB,OAAO,CAAC,QAAQ;IAEhB,OAAO,CAAC,cAAc;IAEtB,OAAO,CAAC,kBAAkB;IAE1B,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAPf,QAAQ,EAAE,UAAU,CAAC,IAAI,CAAC,EAE1B,cAAc,EAAE,UAAU,CAAC,UAAU,CAAC,EAEtC,kBAAkB,EAAE,UAAU,CAAC,cAAc,CAAC,EAE9C,YAAY,EAAE,UAAU,CAAC,QAAQ,CAAC,EACzB,MAAM,EAAE,SAAS;IAU9B,UAAU,CACd,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,GAAE,MAAU,EACpB,QAAQ,GAAE,OAAe,GACxB,OAAO,CAAC,IAAI,CAAC;IAsBV,OAAO,CAAC,MAAM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