@tomei/sso 0.45.3 → 0.46.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/components/user-group/user-group.d.ts +14 -1
- package/dist/src/components/user-group/user-group.js +69 -0
- package/dist/src/components/user-group/user-group.js.map +1 -1
- package/dist/src/components/user-system-access/user-system-access.d.ts +22 -0
- package/dist/src/components/user-system-access/user-system-access.js +61 -0
- package/dist/src/components/user-system-access/user-system-access.js.map +1 -1
- package/dist/src/models/user-system-access.entity.js +13 -4
- package/dist/src/models/user-system-access.entity.js.map +1 -1
- package/dist/src/models/user.entity.js +8 -2
- package/dist/src/models/user.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/user-group/user-group.ts +156 -2
- package/src/components/user-system-access/user-system-access.ts +105 -0
- package/src/models/user-system-access.entity.ts +13 -4
- package/src/models/user.entity.ts +8 -2
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ObjectBase } from '@tomei/general';
|
2
|
+
import { UserGroupRepository } from './user-group.repository';
|
2
3
|
import { LoginUser, User } from '../../components/login-user';
|
3
4
|
import { Group } from '../../components/group';
|
4
5
|
export declare class UserGroup extends ObjectBase {
|
@@ -16,13 +17,25 @@ export declare class UserGroup extends ObjectBase {
|
|
16
17
|
private _UpdatedAt;
|
17
18
|
private _CreatedById;
|
18
19
|
private _UpdatedById;
|
20
|
+
protected static _Repository: UserGroupRepository;
|
19
21
|
get CreatedAt(): Date;
|
20
22
|
get UpdatedAt(): Date;
|
21
23
|
get CreatedById(): number;
|
22
24
|
get UpdatedById(): number;
|
23
|
-
private static _Repository;
|
24
25
|
private constructor();
|
25
26
|
static init(dbTransaction: any, UserGroupId?: number): Promise<UserGroup>;
|
26
27
|
create(loginUser: LoginUser, dbTransaction: any, group: Group, user: User): Promise<UserGroup>;
|
27
28
|
static findOne(dbTransaction: any, loginUser: LoginUser, GroupCode: string, UserId: number): Promise<UserGroup>;
|
29
|
+
static findAllInheritedSystemAccesses(UserId: number, loginUser: User, dbTransaction: any): Promise<{
|
30
|
+
GroupCode: string;
|
31
|
+
GroupName: string;
|
32
|
+
InheritGroupSystemAccessYN: string;
|
33
|
+
Systems: {
|
34
|
+
SystemCode: string;
|
35
|
+
SystemName: string;
|
36
|
+
AccessStatus: string;
|
37
|
+
CreatedAt: Date;
|
38
|
+
UpdatedAt: Date;
|
39
|
+
}[];
|
40
|
+
}[]>;
|
28
41
|
}
|
@@ -14,6 +14,9 @@ const general_1 = require("@tomei/general");
|
|
14
14
|
const user_group_repository_1 = require("./user-group.repository");
|
15
15
|
const config_1 = require("@tomei/config");
|
16
16
|
const activity_history_1 = require("@tomei/activity-history");
|
17
|
+
const group_system_access_entity_1 = require("../../models/group-system-access.entity");
|
18
|
+
const group_entity_1 = require("../../models/group.entity");
|
19
|
+
const system_entity_1 = require("models/system.entity");
|
17
20
|
class UserGroup extends general_1.ObjectBase {
|
18
21
|
get CreatedAt() {
|
19
22
|
return this._CreatedAt;
|
@@ -173,6 +176,72 @@ class UserGroup extends general_1.ObjectBase {
|
|
173
176
|
}
|
174
177
|
});
|
175
178
|
}
|
179
|
+
static findAllInheritedSystemAccesses(UserId, loginUser, dbTransaction) {
|
180
|
+
return __awaiter(this, void 0, void 0, function* () {
|
181
|
+
try {
|
182
|
+
const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
|
183
|
+
const isPrivileged = yield loginUser.checkPrivileges(systemCode, 'USER_SYSTEM_ACCESS_LIST');
|
184
|
+
if (!isPrivileged) {
|
185
|
+
throw new general_1.ClassError('UserGroup', 'UserGroupErrMsg0X', 'User does not have privilege to view user system access.', 'findAllInheritedSystemAccesses', 403);
|
186
|
+
}
|
187
|
+
const userGroups = yield UserGroup._Repository.findAll({
|
188
|
+
where: {
|
189
|
+
UserId,
|
190
|
+
InheritGroupSystemAccessYN: 'Y',
|
191
|
+
Status: 'Active',
|
192
|
+
},
|
193
|
+
include: [
|
194
|
+
{
|
195
|
+
model: group_entity_1.default,
|
196
|
+
required: true,
|
197
|
+
where: {
|
198
|
+
Status: 'Active',
|
199
|
+
},
|
200
|
+
include: [
|
201
|
+
{
|
202
|
+
model: group_system_access_entity_1.default,
|
203
|
+
where: {
|
204
|
+
Status: 'Active',
|
205
|
+
},
|
206
|
+
include: [
|
207
|
+
{
|
208
|
+
model: system_entity_1.default,
|
209
|
+
},
|
210
|
+
],
|
211
|
+
},
|
212
|
+
],
|
213
|
+
},
|
214
|
+
],
|
215
|
+
transaction: dbTransaction,
|
216
|
+
});
|
217
|
+
const result = [];
|
218
|
+
for (const userGroup of userGroups) {
|
219
|
+
const groupData = {
|
220
|
+
GroupCode: userGroup.GroupCode,
|
221
|
+
GroupName: userGroup.Group.Name,
|
222
|
+
InheritGroupSystemAccessYN: userGroup.InheritGroupSystemAccessYN,
|
223
|
+
Systems: [],
|
224
|
+
};
|
225
|
+
if (userGroup.InheritGroupSystemAccessYN === 'Y') {
|
226
|
+
groupData.Systems = userGroup.Group.GroupSystemAccesses.map((groupSystemAccess) => {
|
227
|
+
return {
|
228
|
+
SystemCode: groupSystemAccess.System.SystemCode,
|
229
|
+
SystemName: groupSystemAccess.System.Name,
|
230
|
+
AccessStatus: groupSystemAccess.Status,
|
231
|
+
CreatedAt: groupSystemAccess.CreatedAt,
|
232
|
+
UpdatedAt: groupSystemAccess.UpdatedAt,
|
233
|
+
};
|
234
|
+
});
|
235
|
+
}
|
236
|
+
result.push(groupData);
|
237
|
+
}
|
238
|
+
return result;
|
239
|
+
}
|
240
|
+
catch (error) {
|
241
|
+
throw error;
|
242
|
+
}
|
243
|
+
});
|
244
|
+
}
|
176
245
|
}
|
177
246
|
exports.UserGroup = UserGroup;
|
178
247
|
UserGroup._Repository = new user_group_repository_1.UserGroupRepository();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user-group.js","sourceRoot":"","sources":["../../../../src/components/user-group/user-group.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,mEAA8D;AAI9D,0CAAkD;AAClD,8DAA+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YAAY,EAAE,iBAAiB,CAAC,MAAM;gCACtC,SAAS,EAAE,iBAAiB,CAAC,SAAS;gCACtC,SAAS,EAAE,iBAAiB,CAAC,SAAS;6BACvC,CAAC;wBACJ,CAAC,CACF,CAAC;qBACH;oBAED,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;iBACxB;gBAID,OAAO,MAAM,CAAC;aACf;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;;AAxbH,8BAybC;AAzakB,qBAAW,GAAG,IAAI,2CAAmB,EAAE,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ObjectBase } from '@tomei/general';
|
2
|
+
import { User } from '../login-user/user';
|
2
3
|
export declare class UserSystemAccess extends ObjectBase {
|
3
4
|
ObjectType: string;
|
4
5
|
TableName: string;
|
@@ -19,4 +20,25 @@ export declare class UserSystemAccess extends ObjectBase {
|
|
19
20
|
private static _Repository;
|
20
21
|
private constructor();
|
21
22
|
static init(dbTransaction: any, UserSystemAccessId?: number): Promise<UserSystemAccess>;
|
23
|
+
static findAll(loginUser: User, dbTransaction: any, whereOption: {
|
24
|
+
UserId: number;
|
25
|
+
}, pagination: {
|
26
|
+
page: number;
|
27
|
+
limit: number;
|
28
|
+
}): Promise<{
|
29
|
+
records: {
|
30
|
+
SystemName: string;
|
31
|
+
SystemCode: string;
|
32
|
+
Status: string;
|
33
|
+
CreatedBy: string;
|
34
|
+
CreatedAt: Date;
|
35
|
+
UpdatedBy: string;
|
36
|
+
UpdatedAt: Date;
|
37
|
+
}[];
|
38
|
+
pagination: {
|
39
|
+
currentPage: number;
|
40
|
+
pageSize: number;
|
41
|
+
totalRecords: number;
|
42
|
+
};
|
43
|
+
}>;
|
22
44
|
}
|
@@ -12,6 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UserSystemAccess = void 0;
|
13
13
|
const general_1 = require("@tomei/general");
|
14
14
|
const user_system_access_repository_1 = require("./user-system-access.repository");
|
15
|
+
const config_1 = require("@tomei/config");
|
16
|
+
const system_entity_1 = require("../../models/system.entity");
|
17
|
+
const user_entity_1 = require("../../models/user.entity");
|
15
18
|
class UserSystemAccess extends general_1.ObjectBase {
|
16
19
|
get CreatedAt() {
|
17
20
|
return this._CreatedAt;
|
@@ -63,6 +66,64 @@ class UserSystemAccess extends general_1.ObjectBase {
|
|
63
66
|
}
|
64
67
|
});
|
65
68
|
}
|
69
|
+
static findAll(loginUser, dbTransaction, whereOption, pagination) {
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
71
|
+
try {
|
72
|
+
const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
|
73
|
+
const privilegeCode = 'USER_SYSTEM_ACCESS_LIST';
|
74
|
+
const isPrivileged = yield loginUser.checkPrivileges(systemCode, privilegeCode);
|
75
|
+
if (!isPrivileged) {
|
76
|
+
throw new general_1.ClassError('UserSystemAccess', 'UserSystemAccessErrMsg01', 'You do not have permission to access this resource.');
|
77
|
+
}
|
78
|
+
const options = {
|
79
|
+
where: {
|
80
|
+
UserId: whereOption.UserId,
|
81
|
+
},
|
82
|
+
offset: (pagination.page - 1) * pagination.limit,
|
83
|
+
limit: pagination.limit,
|
84
|
+
transaction: dbTransaction,
|
85
|
+
include: [
|
86
|
+
{
|
87
|
+
model: system_entity_1.default,
|
88
|
+
attributes: ['SystemName', 'SystemCode'],
|
89
|
+
},
|
90
|
+
{
|
91
|
+
model: user_entity_1.default,
|
92
|
+
as: 'CreatedByUser',
|
93
|
+
attributes: ['FullName'],
|
94
|
+
},
|
95
|
+
{
|
96
|
+
model: user_entity_1.default,
|
97
|
+
as: 'UpdatedByUser',
|
98
|
+
attributes: ['FullName'],
|
99
|
+
},
|
100
|
+
],
|
101
|
+
};
|
102
|
+
const userSystemAccesses = yield this._Repository.findAllWithPagination(options);
|
103
|
+
return {
|
104
|
+
records: userSystemAccesses.rows.map((userSystemAccess) => {
|
105
|
+
return {
|
106
|
+
SystemName: userSystemAccess.System.Name,
|
107
|
+
SystemCode: userSystemAccess.System.SystemCode,
|
108
|
+
Status: userSystemAccess.Status,
|
109
|
+
CreatedBy: userSystemAccess.CreatedByUser.FullName,
|
110
|
+
CreatedAt: userSystemAccess.CreatedAt,
|
111
|
+
UpdatedBy: userSystemAccess.UpdatedByUser.FullName,
|
112
|
+
UpdatedAt: userSystemAccess.UpdatedAt,
|
113
|
+
};
|
114
|
+
}),
|
115
|
+
pagination: {
|
116
|
+
currentPage: pagination.page,
|
117
|
+
pageSize: pagination.limit,
|
118
|
+
totalRecords: userSystemAccesses.count,
|
119
|
+
},
|
120
|
+
};
|
121
|
+
}
|
122
|
+
catch (error) {
|
123
|
+
throw error;
|
124
|
+
}
|
125
|
+
});
|
126
|
+
}
|
66
127
|
}
|
67
128
|
exports.UserSystemAccess = UserSystemAccess;
|
68
129
|
UserSystemAccess._Repository = new user_system_access_repository_1.UserSystemAccessRepository();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user-system-access.js","sourceRoot":"","sources":["../../../../src/components/user-system-access/user-system-access.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,mFAA6E;
|
1
|
+
{"version":3,"file":"user-system-access.js","sourceRoot":"","sources":["../../../../src/components/user-system-access/user-system-access.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,mFAA6E;AAI7E,0CAAkD;AAClD,8DAAqD;AACrD,0DAAiD;AAEjD,MAAa,gBAAiB,SAAQ,oBAAU;IAc9C,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAID,YAAoB,oBAAwC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,UAAU,EAAE,gBAAgB,CAAC,MAAM,CAAC,UAAU;4BAC9C,MAAM,EAAE,gBAAgB,CAAC,MAAM;4BAC/B,SAAS,EAAE,gBAAgB,CAAC,aAAa,CAAC,QAAQ;4BAClD,SAAS,EAAE,gBAAgB,CAAC,SAAS;4BACrC,SAAS,EAAE,gBAAgB,CAAC,aAAa,CAAC,QAAQ;4BAClD,SAAS,EAAE,gBAAgB,CAAC,SAAS;yBACtC,CAAC;oBACJ,CAAC,CAAC;oBACF,UAAU,EAAE;wBACV,WAAW,EAAE,UAAU,CAAC,IAAI;wBAC5B,QAAQ,EAAE,UAAU,CAAC,KAAK;wBAC1B,YAAY,EAAE,kBAAkB,CAAC,KAAK;qBACvC;iBACF,CAAC;aACH;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;;AA1KH,4CA2KC;AA7IgB,4BAAW,GAAG,IAAI,0DAA0B,EAAE,CAAC"}
|
@@ -69,19 +69,28 @@ __decorate([
|
|
69
69
|
__metadata("design:type", Date)
|
70
70
|
], UserSystemAccessModel.prototype, "UpdatedAt", void 0);
|
71
71
|
__decorate([
|
72
|
-
(0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.default,
|
72
|
+
(0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.default, {
|
73
|
+
foreignKey: 'UserId',
|
74
|
+
as: 'User',
|
75
|
+
}),
|
73
76
|
__metadata("design:type", user_entity_1.default)
|
74
77
|
], UserSystemAccessModel.prototype, "User", void 0);
|
75
78
|
__decorate([
|
76
|
-
(0, sequelize_typescript_1.BelongsTo)(() => system_entity_1.default
|
79
|
+
(0, sequelize_typescript_1.BelongsTo)(() => system_entity_1.default),
|
77
80
|
__metadata("design:type", system_entity_1.default)
|
78
81
|
], UserSystemAccessModel.prototype, "System", void 0);
|
79
82
|
__decorate([
|
80
|
-
(0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.default,
|
83
|
+
(0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.default, {
|
84
|
+
foreignKey: 'CreatedById',
|
85
|
+
as: 'CreatedByUser',
|
86
|
+
}),
|
81
87
|
__metadata("design:type", user_entity_1.default)
|
82
88
|
], UserSystemAccessModel.prototype, "CreatedByUser", void 0);
|
83
89
|
__decorate([
|
84
|
-
(0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.default,
|
90
|
+
(0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.default, {
|
91
|
+
foreignKey: 'UpdatedById',
|
92
|
+
as: 'UpdatedByUser',
|
93
|
+
}),
|
85
94
|
__metadata("design:type", user_entity_1.default)
|
86
95
|
], UserSystemAccessModel.prototype, "UpdatedByUser", void 0);
|
87
96
|
UserSystemAccessModel = __decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user-system-access.entity.js","sourceRoot":"","sources":["../../../src/models/user-system-access.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,mDAA0C;AAQ3B,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,4BAAK;
|
1
|
+
{"version":3,"file":"user-system-access.entity.js","sourceRoot":"","sources":["../../../src/models/user-system-access.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,mDAA0C;AAQ3B,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,4BAAK;CAmEvD,CAAA;AAlEC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;QAChB,aAAa,EAAE,IAAI;KACpB,CAAC;;iEACyB;AAE3B;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,KAAK,EAAE,QAAQ;KAChB,CAA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B;IANzC,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,sBAAsB;QACjC,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;KACvB,CAAC;GACmB,qBAAqB,CAmEzC;kBAnEoB,qBAAqB"}
|
@@ -191,11 +191,17 @@ __decorate([
|
|
191
191
|
__metadata("design:type", Array)
|
192
192
|
], User.prototype, "UserObjectPrivileges", void 0);
|
193
193
|
__decorate([
|
194
|
-
(0, sequelize_typescript_1.BelongsTo)(() => User_1,
|
194
|
+
(0, sequelize_typescript_1.BelongsTo)(() => User_1, {
|
195
|
+
as: 'CreatedBy',
|
196
|
+
foreignKey: 'CreatedById',
|
197
|
+
}),
|
195
198
|
__metadata("design:type", User)
|
196
199
|
], User.prototype, "CreatedBy", void 0);
|
197
200
|
__decorate([
|
198
|
-
(0, sequelize_typescript_1.BelongsTo)(() => User_1,
|
201
|
+
(0, sequelize_typescript_1.BelongsTo)(() => User_1, {
|
202
|
+
as: 'UpdatedBy',
|
203
|
+
foreignKey: 'UpdatedById',
|
204
|
+
}),
|
199
205
|
__metadata("design:type", User)
|
200
206
|
], User.prototype, "UpdatedBy", void 0);
|
201
207
|
User = User_1 = __decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/models/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAY8B;AAC9B,iDAAmC;AACnC,6CAAqC;AACrC,+DAAsD;AACtD,2EAAgE;AAChE,mEAAyD;AACzD,2DAAiD;AACjD,iFAAsE;AAQvD,IAAM,IAAI,YAAV,MAAM,IAAK,SAAQ,4BAAK;
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/models/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAY8B;AAC9B,iDAAmC;AACnC,6CAAqC;AACrC,+DAAsD;AACtD,2EAAgE;AAChE,mEAAyD;AACzD,2D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