@ubs-platform/crud-base 6.7.0 → 6.8.2
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/base-crud-controller.d.ts +19 -0
- package/base-crud-controller.js +157 -26
- package/base-crud-controller.js.map +1 -1
- package/package.json +1 -1
|
@@ -13,6 +13,25 @@ export interface ControllerConfiguration {
|
|
|
13
13
|
[key in RoleAuthorizationConfigKey]?: RoleAuthorization;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
+
export declare function CrudControllerConfig(r: ControllerConfiguration): (target: Function) => void;
|
|
17
|
+
export declare class BaseCrudController<MODEL, ID, INPUT, OUTPUT, SEARCH> {
|
|
18
|
+
servicex: BaseCrudService<MODEL, ID, INPUT, OUTPUT, SEARCH>;
|
|
19
|
+
constructor(servicex: BaseCrudService<MODEL, ID, INPUT, OUTPUT, SEARCH>);
|
|
20
|
+
fetchAll(s?: SEARCH, user?: UserAuthBackendDTO): Promise<OUTPUT[]>;
|
|
21
|
+
search(s: SEARCH & SearchRequest, user?: UserAuthBackendDTO): Promise<import("@ubs-platform/crud-base-common").SearchResult<OUTPUT>>;
|
|
22
|
+
fetchOne({ id }: {
|
|
23
|
+
id: any;
|
|
24
|
+
}, user?: UserAuthBackendDTO): Promise<OUTPUT>;
|
|
25
|
+
add(body: INPUT, user?: UserAuthBackendDTO): Promise<OUTPUT>;
|
|
26
|
+
edit(body: INPUT, user?: UserAuthBackendDTO): Promise<OUTPUT>;
|
|
27
|
+
remove({ id }: {
|
|
28
|
+
id: any;
|
|
29
|
+
}, user?: UserAuthBackendDTO): Promise<OUTPUT>;
|
|
30
|
+
checkUser(operation: 'ADD' | 'EDIT' | 'REMOVE' | 'GETALL' | 'GETID', user: Optional<UserAuthBackendDTO>, queriesAndPaths: Optional<{
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>, body: Optional<INPUT>): Promise<void>;
|
|
33
|
+
manipulateSearch(user: Optional<UserAuthBackendDTO>, queriesAndPaths: Optional<SEARCH>): Promise<any>;
|
|
34
|
+
}
|
|
16
35
|
export declare const BaseCrudControllerGenerator: <MODEL, ID, INPUT, OUTPUT, SEARCH>(r: ControllerConfiguration) => {
|
|
17
36
|
new (servicex: BaseCrudService<MODEL, ID, INPUT, OUTPUT, SEARCH>): {
|
|
18
37
|
servicex: BaseCrudService<MODEL, ID, INPUT, OUTPUT, SEARCH>;
|
package/base-crud-controller.js
CHANGED
|
@@ -12,39 +12,171 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.BaseCrudControllerGenerator = void 0;
|
|
15
|
+
exports.BaseCrudControllerGenerator = exports.BaseCrudController = void 0;
|
|
16
|
+
exports.CrudControllerConfig = CrudControllerConfig;
|
|
16
17
|
const common_1 = require("@nestjs/common");
|
|
17
18
|
const users_microservice_helper_1 = require("@ubs-platform/users-microservice-helper");
|
|
18
19
|
const users_roles_1 = require("@ubs-platform/users-roles");
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
const findExistAuth = (field, r) => {
|
|
21
|
+
let a = r.authorization[field] || r.authorization.ALL;
|
|
22
|
+
if (a === true) {
|
|
23
|
+
return { needsAuthenticated: true, roles: [] };
|
|
24
|
+
}
|
|
25
|
+
else if (!a) {
|
|
26
|
+
return { needsAuthenticated: false, roles: [] };
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
const detailed = a;
|
|
30
|
+
if (detailed.needsAuthenticated == null) {
|
|
31
|
+
detailed.needsAuthenticated = !!(detailed.roles?.length);
|
|
27
32
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
return detailed;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
function CrudControllerConfig(r) {
|
|
37
|
+
return function (target) {
|
|
38
|
+
const proto = target.prototype;
|
|
39
|
+
const baseProto = Object.getPrototypeOf(proto);
|
|
40
|
+
const baseClass = baseProto.constructor;
|
|
41
|
+
const methodRoles = [
|
|
42
|
+
['fetchAll', 'GETALL'],
|
|
43
|
+
['search', 'GETALL'],
|
|
44
|
+
['fetchOne', 'GETID'],
|
|
45
|
+
['add', 'ADD'],
|
|
46
|
+
['edit', 'EDIT'],
|
|
47
|
+
['remove', 'REMOVE'],
|
|
48
|
+
];
|
|
49
|
+
for (const [methodName, role] of methodRoles) {
|
|
50
|
+
let searchProto = baseProto;
|
|
51
|
+
let descriptor;
|
|
52
|
+
while (searchProto && searchProto !== Object.prototype) {
|
|
53
|
+
descriptor = Object.getOwnPropertyDescriptor(searchProto, methodName);
|
|
54
|
+
if (descriptor)
|
|
55
|
+
break;
|
|
56
|
+
searchProto = Object.getPrototypeOf(searchProto);
|
|
57
|
+
}
|
|
58
|
+
if (!descriptor || typeof descriptor.value !== 'function')
|
|
59
|
+
continue;
|
|
60
|
+
const originalFn = descriptor.value;
|
|
61
|
+
const wrappedFn = async function (...args) {
|
|
62
|
+
return originalFn.apply(this, args);
|
|
32
63
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
else {
|
|
40
|
-
a.needsAuthenticated = false;
|
|
41
|
-
}
|
|
64
|
+
for (const key of Reflect.getMetadataKeys(originalFn)) {
|
|
65
|
+
Reflect.defineMetadata(key, Reflect.getMetadata(key, originalFn), wrappedFn);
|
|
66
|
+
}
|
|
67
|
+
Object.defineProperty(proto, methodName, { ...descriptor, value: wrappedFn });
|
|
68
|
+
for (const key of Reflect.getMetadataKeys(baseClass, methodName)) {
|
|
69
|
+
Reflect.defineMetadata(key, Reflect.getMetadata(key, baseClass, methodName), target, methodName);
|
|
42
70
|
}
|
|
43
|
-
|
|
71
|
+
const authorization = findExistAuth(role, r);
|
|
72
|
+
const guards = [
|
|
73
|
+
authorization.needsAuthenticated ? users_microservice_helper_1.JwtAuthGuard : null,
|
|
74
|
+
authorization.needsAuthenticated && authorization.roles?.length ? users_roles_1.RolesGuard : null,
|
|
75
|
+
].filter(Boolean);
|
|
76
|
+
const newDescriptor = Object.getOwnPropertyDescriptor(proto, methodName);
|
|
77
|
+
if (guards.length) {
|
|
78
|
+
(0, common_1.UseGuards)(...guards)(proto, methodName, newDescriptor);
|
|
79
|
+
}
|
|
80
|
+
(0, users_roles_1.Roles)(authorization.roles || [])(proto, methodName, newDescriptor);
|
|
44
81
|
}
|
|
45
82
|
};
|
|
83
|
+
}
|
|
84
|
+
class BaseCrudController {
|
|
85
|
+
constructor(servicex) {
|
|
86
|
+
this.servicex = servicex;
|
|
87
|
+
}
|
|
88
|
+
async fetchAll(s, user) {
|
|
89
|
+
await this.checkUser('GETALL', user, s, null);
|
|
90
|
+
const manipulatedSearch = await this.manipulateSearch(user, s);
|
|
91
|
+
return await this.servicex.fetchAll(manipulatedSearch, user);
|
|
92
|
+
}
|
|
93
|
+
async search(s, user) {
|
|
94
|
+
await this.checkUser('GETALL', user, s, null);
|
|
95
|
+
const manipulatedSearch = await this.manipulateSearch(user, s);
|
|
96
|
+
return await this.servicex.searchPagination(manipulatedSearch, user);
|
|
97
|
+
}
|
|
98
|
+
async fetchOne({ id }, user) {
|
|
99
|
+
await this.checkUser('GETID', user, { id }, null);
|
|
100
|
+
return await this.servicex.fetchOne(id, user);
|
|
101
|
+
}
|
|
102
|
+
async add(body, user) {
|
|
103
|
+
await this.checkUser('ADD', user, null, body);
|
|
104
|
+
return await this.servicex.create(body, user);
|
|
105
|
+
}
|
|
106
|
+
async edit(body, user) {
|
|
107
|
+
if (this.servicex.getIdFieldNameFromInput(body) == null) {
|
|
108
|
+
throw new common_1.NotFoundException();
|
|
109
|
+
}
|
|
110
|
+
await this.checkUser('EDIT', user, null, body);
|
|
111
|
+
return await this.servicex.edit(body, user);
|
|
112
|
+
}
|
|
113
|
+
async remove({ id }, user) {
|
|
114
|
+
await this.checkUser('REMOVE', user, { id }, null);
|
|
115
|
+
return await this.servicex.remove(id, user);
|
|
116
|
+
}
|
|
117
|
+
async checkUser(operation, user, queriesAndPaths, body) { }
|
|
118
|
+
async manipulateSearch(user, queriesAndPaths) {
|
|
119
|
+
return queriesAndPaths;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.BaseCrudController = BaseCrudController;
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, common_1.Get)(),
|
|
125
|
+
(0, common_1.UseGuards)(users_microservice_helper_1.UserIntercept),
|
|
126
|
+
__param(0, (0, common_1.Query)()),
|
|
127
|
+
__param(1, (0, users_microservice_helper_1.CurrentUser)()),
|
|
128
|
+
__metadata("design:type", Function),
|
|
129
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
130
|
+
__metadata("design:returntype", Promise)
|
|
131
|
+
], BaseCrudController.prototype, "fetchAll", null);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, common_1.Get)('_search'),
|
|
134
|
+
(0, common_1.UseGuards)(users_microservice_helper_1.UserIntercept),
|
|
135
|
+
__param(0, (0, common_1.Query)()),
|
|
136
|
+
__param(1, (0, users_microservice_helper_1.CurrentUser)()),
|
|
137
|
+
__metadata("design:type", Function),
|
|
138
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
139
|
+
__metadata("design:returntype", Promise)
|
|
140
|
+
], BaseCrudController.prototype, "search", null);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, common_1.Get)('/:id'),
|
|
143
|
+
(0, common_1.UseGuards)(users_microservice_helper_1.UserIntercept),
|
|
144
|
+
__param(0, (0, common_1.Param)()),
|
|
145
|
+
__param(1, (0, users_microservice_helper_1.CurrentUser)()),
|
|
146
|
+
__metadata("design:type", Function),
|
|
147
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
148
|
+
__metadata("design:returntype", Promise)
|
|
149
|
+
], BaseCrudController.prototype, "fetchOne", null);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, common_1.Post)(),
|
|
152
|
+
(0, common_1.UseGuards)(users_microservice_helper_1.UserIntercept),
|
|
153
|
+
__param(0, (0, common_1.Body)()),
|
|
154
|
+
__param(1, (0, users_microservice_helper_1.CurrentUser)()),
|
|
155
|
+
__metadata("design:type", Function),
|
|
156
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
157
|
+
__metadata("design:returntype", Promise)
|
|
158
|
+
], BaseCrudController.prototype, "add", null);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, common_1.Put)(),
|
|
161
|
+
(0, common_1.UseGuards)(users_microservice_helper_1.UserIntercept),
|
|
162
|
+
__param(0, (0, common_1.Body)()),
|
|
163
|
+
__param(1, (0, users_microservice_helper_1.CurrentUser)()),
|
|
164
|
+
__metadata("design:type", Function),
|
|
165
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
166
|
+
__metadata("design:returntype", Promise)
|
|
167
|
+
], BaseCrudController.prototype, "edit", null);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, common_1.Delete)(':id'),
|
|
170
|
+
(0, common_1.UseGuards)(users_microservice_helper_1.UserIntercept),
|
|
171
|
+
__param(0, (0, common_1.Param)()),
|
|
172
|
+
__param(1, (0, users_microservice_helper_1.CurrentUser)()),
|
|
173
|
+
__metadata("design:type", Function),
|
|
174
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
175
|
+
__metadata("design:returntype", Promise)
|
|
176
|
+
], BaseCrudController.prototype, "remove", null);
|
|
177
|
+
const BaseCrudControllerGenerator = (r) => {
|
|
46
178
|
const RoleConfig = (field) => {
|
|
47
|
-
|
|
179
|
+
const authorization = findExistAuth(field, r);
|
|
48
180
|
const guard = (0, common_1.UseGuards)(...[
|
|
49
181
|
authorization.needsAuthenticated ? users_microservice_helper_1.JwtAuthGuard : null,
|
|
50
182
|
authorization.needsAuthenticated && authorization.roles
|
|
@@ -92,8 +224,7 @@ const BaseCrudControllerGenerator = (r) => {
|
|
|
92
224
|
await this.checkUser('REMOVE', user, { id }, null);
|
|
93
225
|
return await service.remove(id, user);
|
|
94
226
|
}
|
|
95
|
-
async checkUser(operation, user, queriesAndPaths, body) {
|
|
96
|
-
}
|
|
227
|
+
async checkUser(operation, user, queriesAndPaths, body) { }
|
|
97
228
|
async manipulateSearch(user, queriesAndPaths) {
|
|
98
229
|
return queriesAndPaths;
|
|
99
230
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-crud-controller.js","sourceRoot":"","sources":["../../../../../libs/crud-base/src/base-crud-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"base-crud-controller.js","sourceRoot":"","sources":["../../../../../libs/crud-base/src/base-crud-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAkFA,oDAoEC;AAtJD,2CAUwB;AAExB,uFAIiD;AAEjD,2DAA8D;AA8B9D,MAAM,aAAa,GAAG,CAClB,KAAiC,EACjC,CAA0B,EACD,EAAE;IAC3B,IAAI,CAAC,GAAG,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC;IACtD,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACb,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IACnD,CAAC;SAAM,IAAI,CAAC,CAAC,EAAE,CAAC;QACZ,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IACpD,CAAC;SAAM,CAAC;QACJ,MAAM,QAAQ,GAAG,CAA8B,CAAC;QAChD,IAAI,QAAQ,CAAC,kBAAkB,IAAI,IAAI,EAAE,CAAC;YACtC,QAAQ,CAAC,kBAAkB,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC7D,CAA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YAAG,EAAC,SAAS,CAAC;QACd,IAAA,kBAAS,EAAC,yCAAa,CAAC;QAEpB,WAAA,IAAA,cAAK,GAAE,CAAA;QACP,WAAA,IAAA,uCAAW,GAAE,CAAA;;;;iDAKjB;IAKK;QAHL,IAAA,YAAG,EAAC,MAAM,CAAC;QACX,UAAU,CAAC,OAAO,CAAC;QACnB,IAAA,kBAAS,EAAC,yCAAa,CAAC;QAEpB,WAAA,IAAA,cAAK,GAAE,CAAA;QACP,WAAA,IAAA,uCAAW,GAAE,CAAA;;;;mDAIjB;IAKK;QAHL,UAAU,CAAC,KAAK,CAAC;QACjB,IAAA,aAAI,GAAE;QACN,IAAA,kBAAS,EAAC,yCAAa,CAAC;QAEpB,WAAA,IAAA,aAAI,GAAE,CAAA;QACN,WAAA,IAAA,uCAAW,GAAE,CAAA;;;;8CAIjB;IAKK;QAHL,UAAU,CAAC,MAAM,CAAC;QAClB,IAAA,YAAG,GAAE;QACL,IAAA,kBAAS,EAAC,yCAAa,CAAC;QAEpB,WAAA,IAAA,aAAI,GAAE,CAAA;QACN,WAAA,IAAA,uCAAW,GAAE,CAAA;;;;+CAOjB;IAKK;QAHL,IAAA,eAAM,EAAC,KAAK,CAAC;QACb,UAAU,CAAC,QAAQ,CAAC;QACpB,IAAA,kBAAS,EAAC,yCAAa,CAAC;QAEpB,WAAA,IAAA,cAAK,GAAE,CAAA;QACP,WAAA,IAAA,uCAAW,GAAE,CAAA;;;;iDAIjB;IAiBL,OAAO,eAAe,CAAC;AAC3B,CAAC,CAAC;AAnHW,QAAA,2BAA2B,+BAmHtC"}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@ubs-platform/crud-base","repository":{"url":"https://github.com/ubs-platform/ubs-mona-mr"},"homepage":"https://github.com/ubs-platform/ubs-mona-mr","version":"6.
|
|
1
|
+
{"name":"@ubs-platform/crud-base","repository":{"url":"https://github.com/ubs-platform/ubs-mona-mr"},"homepage":"https://github.com/ubs-platform/ubs-mona-mr","version":"6.8.2","iksir":{"type":"LIBRARY","libraryMode":"PEER","buildSubFolder":""},"peerDependencies":{"@nestjs/common":"^11.1.19","@ubs-platform/users-microservice-helper":"6.8.2","@ubs-platform/users-roles":"6.8.2","@ubs-platform/crud-base-common":"6.8.2"}}
|