@tomei/sso 0.38.8 → 0.39.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/components/api-key/api-key.d.ts +39 -0
- package/dist/src/components/api-key/api-key.js +125 -0
- package/dist/src/components/api-key/api-key.js.map +1 -0
- package/dist/src/components/api-key/api-key.repository.d.ts +6 -0
- package/dist/src/components/api-key/api-key.repository.js +26 -0
- package/dist/src/components/api-key/api-key.repository.js.map +1 -0
- package/dist/src/components/api-key/index.d.ts +3 -0
- package/dist/src/components/api-key/index.js +8 -0
- package/dist/src/components/api-key/index.js.map +1 -0
- package/dist/src/components/group/group.d.ts +2 -1
- package/dist/src/components/group/group.js +62 -64
- package/dist/src/components/group/group.js.map +1 -1
- package/dist/src/components/login-user/user.js +4 -4
- package/dist/src/components/login-user/user.js.map +1 -1
- package/dist/src/enum/api-key.enum.d.ts +5 -0
- package/dist/src/enum/api-key.enum.js +10 -0
- package/dist/src/enum/api-key.enum.js.map +1 -0
- package/dist/src/enum/index.d.ts +1 -0
- package/dist/src/enum/index.js +1 -0
- package/dist/src/enum/index.js.map +1 -1
- package/dist/src/interfaces/api-key-attr.interface.d.ts +13 -0
- package/dist/src/interfaces/api-key-attr.interface.js +3 -0
- package/dist/src/interfaces/api-key-attr.interface.js.map +1 -0
- package/dist/src/interfaces/index.d.ts +1 -0
- package/dist/src/interfaces/index.js +1 -0
- package/dist/src/interfaces/index.js.map +1 -1
- package/dist/src/models/api-key-entity.d.ts +17 -0
- package/dist/src/models/api-key-entity.js +105 -0
- package/dist/src/models/api-key-entity.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/migrations/20240528063108-create-api-key-table.js +89 -0
- package/package.json +1 -1
- package/src/components/api-key/api-key.repository.ts +15 -0
- package/src/components/api-key/api-key.ts +196 -0
- package/src/components/api-key/index.ts +4 -0
- package/src/components/group/group.ts +67 -65
- package/src/components/login-user/user.ts +4 -4
- package/src/enum/api-key.enum.ts +5 -0
- package/src/enum/index.ts +1 -0
- package/src/interfaces/api-key-attr.interface.ts +14 -0
- package/src/interfaces/index.ts +1 -0
- package/src/models/api-key-entity.ts +87 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
import { ObjectBase } from '@tomei/general';
|
2
|
+
import { APIKeyStatusEnum } from '../../enum/api-key.enum';
|
3
|
+
import { APIKeyRepository } from './api-key.repository';
|
4
|
+
import { IAPIKeyAttr } from '../../interfaces/api-key-attr.interface';
|
5
|
+
import { LoginUser } from '../login-user/login-user';
|
6
|
+
export declare class APIKey extends ObjectBase {
|
7
|
+
ObjectId: string;
|
8
|
+
ObjectName: string;
|
9
|
+
ObjectType: 'ApiKey';
|
10
|
+
TableName: 'sso_APIKey';
|
11
|
+
ApiKey: string;
|
12
|
+
Name: string;
|
13
|
+
Description: string;
|
14
|
+
Status: APIKeyStatusEnum;
|
15
|
+
ExperationDate: Date;
|
16
|
+
_InvokedById: number;
|
17
|
+
_InvokedAt: Date;
|
18
|
+
_CreatedAt: Date;
|
19
|
+
_CreatedById: number;
|
20
|
+
get APIKeyId(): number;
|
21
|
+
set APIKeyId(value: number);
|
22
|
+
get InvokedById(): number;
|
23
|
+
get InvokedAt(): Date;
|
24
|
+
get CreatedAt(): Date;
|
25
|
+
get CreatedById(): number;
|
26
|
+
protected static _Repo: APIKeyRepository;
|
27
|
+
protected constructor(apiKeyAttr?: IAPIKeyAttr);
|
28
|
+
static init(ApiKeyId?: number, dbTransaction?: any): Promise<APIKey>;
|
29
|
+
generate(loginUser: LoginUser, dbTransaction?: any): Promise<{
|
30
|
+
ApiKey: string;
|
31
|
+
Name: string;
|
32
|
+
Status: APIKeyStatusEnum;
|
33
|
+
ExpirationDate: Date;
|
34
|
+
CreatedAt: Date;
|
35
|
+
CreatedById: number;
|
36
|
+
InvokedAt: Date;
|
37
|
+
InvokedById: number;
|
38
|
+
}>;
|
39
|
+
}
|
@@ -0,0 +1,125 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.APIKey = void 0;
|
13
|
+
const general_1 = require("@tomei/general");
|
14
|
+
const api_key_repository_1 = require("./api-key.repository");
|
15
|
+
const config_1 = require("@tomei/config");
|
16
|
+
const crypto_1 = require("crypto");
|
17
|
+
const activity_history_1 = require("@tomei/activity-history");
|
18
|
+
class APIKey extends general_1.ObjectBase {
|
19
|
+
get APIKeyId() {
|
20
|
+
return parseInt(this.ObjectId);
|
21
|
+
}
|
22
|
+
set APIKeyId(value) {
|
23
|
+
this.ObjectId = value.toString();
|
24
|
+
}
|
25
|
+
get InvokedById() {
|
26
|
+
return this._InvokedById;
|
27
|
+
}
|
28
|
+
get InvokedAt() {
|
29
|
+
return this._InvokedAt;
|
30
|
+
}
|
31
|
+
get CreatedAt() {
|
32
|
+
return this._CreatedAt;
|
33
|
+
}
|
34
|
+
get CreatedById() {
|
35
|
+
return this._CreatedById;
|
36
|
+
}
|
37
|
+
constructor(apiKeyAttr) {
|
38
|
+
super();
|
39
|
+
if (apiKeyAttr) {
|
40
|
+
this.APIKeyId = apiKeyAttr.APIKeyId;
|
41
|
+
this.ApiKey = apiKeyAttr.ApiKey;
|
42
|
+
this.Name = apiKeyAttr.Name;
|
43
|
+
this.Description = apiKeyAttr.Description;
|
44
|
+
this.Status = apiKeyAttr.Status;
|
45
|
+
this.ExperationDate = apiKeyAttr.ExperationDate;
|
46
|
+
this._InvokedById = apiKeyAttr.InvokedById;
|
47
|
+
this._InvokedAt = apiKeyAttr.InvokedAt;
|
48
|
+
this._CreatedAt = apiKeyAttr.CreatedAt;
|
49
|
+
this._CreatedById = apiKeyAttr.CreatedById;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
static init(ApiKeyId, dbTransaction) {
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
54
|
+
try {
|
55
|
+
if (ApiKeyId) {
|
56
|
+
const apiKeyAttr = yield this._Repo.findByPk(ApiKeyId.toString(), dbTransaction);
|
57
|
+
if (apiKeyAttr) {
|
58
|
+
return new APIKey(apiKeyAttr);
|
59
|
+
}
|
60
|
+
else {
|
61
|
+
throw new general_1.ClassError('APIKey', 'APIKeyErrMsgO1', 'APIKey not found', 'init');
|
62
|
+
}
|
63
|
+
}
|
64
|
+
return new APIKey();
|
65
|
+
}
|
66
|
+
catch (error) {
|
67
|
+
throw error;
|
68
|
+
}
|
69
|
+
});
|
70
|
+
}
|
71
|
+
generate(loginUser, dbTransaction) {
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
73
|
+
try {
|
74
|
+
const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
|
75
|
+
const isPrivileged = yield loginUser.checkPrivileges(systemCode, 'API_KEY_CREATE');
|
76
|
+
if (!isPrivileged) {
|
77
|
+
throw new general_1.ClassError('APIKey', 'APIKeyErrMsgO2', 'User does not have privilege to generate API key.', 'generate');
|
78
|
+
}
|
79
|
+
this._CreatedById = loginUser.UserId;
|
80
|
+
this._CreatedAt = new Date();
|
81
|
+
this.ApiKey = (0, crypto_1.randomBytes)(64).toString('hex');
|
82
|
+
const EntityValueAfter = {
|
83
|
+
ApiKey: this.ApiKey,
|
84
|
+
Name: this.Name,
|
85
|
+
Status: this.Status,
|
86
|
+
ExpirationDate: this.ExperationDate,
|
87
|
+
CreatedAt: this.CreatedAt,
|
88
|
+
CreatedById: this.CreatedById,
|
89
|
+
InvokedAt: this.InvokedAt,
|
90
|
+
InvokedById: this.InvokedById,
|
91
|
+
};
|
92
|
+
const data = yield APIKey._Repo.create(EntityValueAfter, {
|
93
|
+
transaction: dbTransaction,
|
94
|
+
});
|
95
|
+
EntityValueAfter.ApiKeyId = data.APIKeyId;
|
96
|
+
const EntityValueBefore = {};
|
97
|
+
const activity = new activity_history_1.Activity();
|
98
|
+
activity.ActivityId = activity.createId();
|
99
|
+
activity.Action = activity_history_1.ActionEnum.CREATE;
|
100
|
+
activity.Description = 'Generate API key.';
|
101
|
+
activity.EntityType = 'APIKey';
|
102
|
+
activity.EntityId = this.ObjectId;
|
103
|
+
activity.EntityValueBefore = JSON.stringify(EntityValueBefore);
|
104
|
+
activity.EntityValueAfter = JSON.stringify(EntityValueAfter);
|
105
|
+
yield activity.create(loginUser.ObjectId, dbTransaction);
|
106
|
+
return {
|
107
|
+
ApiKey: this.ApiKey,
|
108
|
+
Name: this.Name,
|
109
|
+
Status: this.Status,
|
110
|
+
ExpirationDate: this.ExperationDate,
|
111
|
+
CreatedAt: this.CreatedAt,
|
112
|
+
CreatedById: this.CreatedById,
|
113
|
+
InvokedAt: this.InvokedAt,
|
114
|
+
InvokedById: this.InvokedById,
|
115
|
+
};
|
116
|
+
}
|
117
|
+
catch (error) {
|
118
|
+
throw error;
|
119
|
+
}
|
120
|
+
});
|
121
|
+
}
|
122
|
+
}
|
123
|
+
exports.APIKey = APIKey;
|
124
|
+
APIKey._Repo = new api_key_repository_1.APIKeyRepository();
|
125
|
+
//# sourceMappingURL=api-key.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"api-key.js","sourceRoot":"","sources":["../../../../src/components/api-key/api-key.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AAExD,6DAAwD;AAGxD,0CAAkD;AAClD,mCAAiD;AACjD,8DAA+D;AAE/D,MAAa,MAAO,SAAQ,oBAAU;IAgBpC,IAAI,QAAQ;QACV,OAAO,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjC,CA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|
|
1
|
+
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
2
|
+
import APIKeyModel from 'models/api-key-entity';
|
3
|
+
export declare class APIKeyRepository extends RepositoryBase<APIKeyModel> implements IRepositoryBase<APIKeyModel> {
|
4
|
+
constructor();
|
5
|
+
findByPk(id: string, options?: any): Promise<APIKeyModel>;
|
6
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.APIKeyRepository = void 0;
|
13
|
+
const general_1 = require("@tomei/general");
|
14
|
+
const api_key_entity_1 = require("models/api-key-entity");
|
15
|
+
class APIKeyRepository extends general_1.RepositoryBase {
|
16
|
+
constructor() {
|
17
|
+
super(api_key_entity_1.default);
|
18
|
+
}
|
19
|
+
findByPk(id, options) {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
return yield api_key_entity_1.default.findByPk(parseInt(id), options);
|
22
|
+
});
|
23
|
+
}
|
24
|
+
}
|
25
|
+
exports.APIKeyRepository = APIKeyRepository;
|
26
|
+
//# sourceMappingURL=api-key.repository.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"api-key.repository.js","sourceRoot":"","sources":["../../../../src/components/api-key/api-key.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAiE;AACjE,0DAAgD;AAEhD,MAAa,gBACX,SAAQ,wBAA2B;IAGnC;QACE,KAAK,CAAC,wBAAW,CAAC,CAAC;IACrB,CAAC;IAEK,QAAQ,CAAC,EAAU,EAAE,OAAa;;YACtC,OAAO,MAAM,wBAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;QAC3D,CAAC;KAAA;CACF;AAXD,4CAWC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.APIKey = exports.APIKeyRepository = void 0;
|
4
|
+
const api_key_repository_1 = require("./api-key.repository");
|
5
|
+
Object.defineProperty(exports, "APIKeyRepository", { enumerable: true, get: function () { return api_key_repository_1.APIKeyRepository; } });
|
6
|
+
const api_key_1 = require("./api-key");
|
7
|
+
Object.defineProperty(exports, "APIKey", { enumerable: true, get: function () { return api_key_1.APIKey; } });
|
8
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/api-key/index.ts"],"names":[],"mappings":";;;AAAA,6DAAwD;AAG/C,iGAHA,qCAAgB,OAGA;AAFzB,uCAAmC;AAER,uFAFlB,gBAAM,OAEkB"}
|
@@ -35,6 +35,7 @@ export declare class Group extends TreeNodeBase<Group> {
|
|
35
35
|
get CreatedAt(): Date;
|
36
36
|
get UpdatedById(): number;
|
37
37
|
get UpdatedAt(): Date;
|
38
|
+
get Path(): string;
|
38
39
|
set Path(value: string);
|
39
40
|
private constructor();
|
40
41
|
static init(dbTransaction: any, GroupCode?: string): Promise<Group>;
|
@@ -62,7 +63,7 @@ export declare class Group extends TreeNodeBase<Group> {
|
|
62
63
|
InheritParentPrivilegeYN: string;
|
63
64
|
InheritParentSystemAccessYN: string;
|
64
65
|
Status: string;
|
65
|
-
}): Promise<
|
66
|
+
}): Promise<this>;
|
66
67
|
static delete(loginUser: LoginUser, dbTransaction: any, GroupCode: string): Promise<{
|
67
68
|
Message: string;
|
68
69
|
}>;
|
@@ -45,6 +45,9 @@ class Group extends general_1.TreeNodeBase {
|
|
45
45
|
get UpdatedAt() {
|
46
46
|
return this._UpdatedAt;
|
47
47
|
}
|
48
|
+
get Path() {
|
49
|
+
return this._Path;
|
50
|
+
}
|
48
51
|
set Path(value) {
|
49
52
|
this._Path = value;
|
50
53
|
}
|
@@ -307,9 +310,8 @@ class Group extends general_1.TreeNodeBase {
|
|
307
310
|
});
|
308
311
|
childrens.forEach((children) => __awaiter(this, void 0, void 0, function* () {
|
309
312
|
const path = children.Path.split(`${oldGroupCode}/`);
|
310
|
-
const childPath = path[
|
311
|
-
children.Path
|
312
|
-
yield children.update({ Path: path }, { transaction: dbTransaction });
|
313
|
+
const childPath = path[1];
|
314
|
+
yield children.update({ Path: `${this._Path}/${childPath}` }, { transaction: dbTransaction });
|
313
315
|
}));
|
314
316
|
}
|
315
317
|
catch (error) {
|
@@ -325,74 +327,70 @@ class Group extends general_1.TreeNodeBase {
|
|
325
327
|
throw new general_1.ClassError('Group', 'GroupErrMsg06', 'You do not have the privilege to update Group');
|
326
328
|
}
|
327
329
|
try {
|
328
|
-
const currentGroup = yield Group.init(dbTransaction, group.GroupCode);
|
329
330
|
if (group.NewGroupCode) {
|
330
331
|
yield Group.checkDuplicateGroupCode(dbTransaction, group.NewGroupCode);
|
331
332
|
}
|
332
333
|
const entityValueBefore = {
|
333
|
-
GroupCode:
|
334
|
-
Name:
|
335
|
-
Type:
|
336
|
-
Description:
|
337
|
-
ParentGroupCode:
|
338
|
-
InheritParentPrivilegeYN:
|
339
|
-
InheritParentSystemAccessYN:
|
340
|
-
Path:
|
341
|
-
Status:
|
342
|
-
CreatedById:
|
343
|
-
UpdatedById:
|
344
|
-
CreatedAt:
|
345
|
-
UpdatedAt:
|
334
|
+
GroupCode: this.GroupCode,
|
335
|
+
Name: this.Name,
|
336
|
+
Type: this.Type,
|
337
|
+
Description: this.Description,
|
338
|
+
ParentGroupCode: this.ParentGroupCode,
|
339
|
+
InheritParentPrivilegeYN: this.InheritParentPrivilegeYN,
|
340
|
+
InheritParentSystemAccessYN: this.InheritParentSystemAccessYN,
|
341
|
+
Path: this.Path,
|
342
|
+
Status: this.Status,
|
343
|
+
CreatedById: this._CreatedById,
|
344
|
+
UpdatedById: this._UpdatedById,
|
345
|
+
CreatedAt: this._CreatedAt,
|
346
|
+
UpdatedAt: this._UpdatedAt,
|
346
347
|
};
|
347
348
|
let isPathChanged = false;
|
348
|
-
const oldGroupCode =
|
349
|
+
const oldGroupCode = this.GroupCode;
|
349
350
|
if (group.NewGroupCode) {
|
350
|
-
|
351
|
+
this.GroupCode = group.NewGroupCode;
|
351
352
|
isPathChanged = true;
|
352
353
|
}
|
353
354
|
if ((group.ParentGroupCode &&
|
354
|
-
|
355
|
-
(group.ParentGroupCode && !
|
355
|
+
this.ParentGroupCode !== group.ParentGroupCode) ||
|
356
|
+
(group.ParentGroupCode && !this.ParentGroupCode)) {
|
356
357
|
const parentGroup = yield Group.init(dbTransaction, group.ParentGroupCode);
|
357
358
|
if (!parentGroup) {
|
358
359
|
throw new general_1.ClassError('Group', 'GroupErrMsg08', 'Parent Group Code not found');
|
359
360
|
}
|
360
|
-
yield
|
361
|
+
yield this.setParent(parentGroup);
|
361
362
|
isPathChanged = true;
|
362
363
|
}
|
363
|
-
else if (!group.ParentGroupCode &&
|
364
|
-
yield
|
364
|
+
else if (!group.ParentGroupCode && this.ParentGroupCode) {
|
365
|
+
yield this.setParent(null);
|
365
366
|
isPathChanged = true;
|
366
367
|
}
|
367
368
|
if (isPathChanged) {
|
368
|
-
yield
|
369
|
+
yield this.updateChildrenPath(oldGroupCode, dbTransaction);
|
369
370
|
}
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
currentGroup.Status = (group === null || group === void 0 ? void 0 : group.Status) || currentGroup.Status;
|
382
|
-
currentGroup._UpdatedById = loginUser.UserId;
|
383
|
-
currentGroup._UpdatedAt = new Date();
|
371
|
+
this.Name = (group === null || group === void 0 ? void 0 : group.Name) || this.Name;
|
372
|
+
this.Type = (group === null || group === void 0 ? void 0 : group.Type) || this.Type;
|
373
|
+
this.Description = (group === null || group === void 0 ? void 0 : group.Description) || this.Description;
|
374
|
+
this.ParentGroupCode = (group === null || group === void 0 ? void 0 : group.ParentGroupCode) || this.ParentGroupCode;
|
375
|
+
this.InheritParentPrivilegeYN =
|
376
|
+
(group === null || group === void 0 ? void 0 : group.InheritParentPrivilegeYN) || this.InheritParentPrivilegeYN;
|
377
|
+
this.InheritParentSystemAccessYN =
|
378
|
+
(group === null || group === void 0 ? void 0 : group.InheritParentSystemAccessYN) || this.InheritParentSystemAccessYN;
|
379
|
+
this.Status = (group === null || group === void 0 ? void 0 : group.Status) || this.Status;
|
380
|
+
this._UpdatedById = loginUser.UserId;
|
381
|
+
this._UpdatedAt = new Date();
|
384
382
|
yield Group._Repo.update({
|
385
|
-
GroupCode:
|
386
|
-
Name:
|
387
|
-
Type:
|
388
|
-
Description:
|
389
|
-
ParentGroupCode:
|
390
|
-
InheritParentPrivilegeYN:
|
391
|
-
InheritParentSystemAccessYN:
|
392
|
-
Status:
|
393
|
-
Path:
|
394
|
-
UpdatedById:
|
395
|
-
UpdatedAt:
|
383
|
+
GroupCode: this.GroupCode,
|
384
|
+
Name: this.Name,
|
385
|
+
Type: this.Type,
|
386
|
+
Description: this.Description,
|
387
|
+
ParentGroupCode: this.ParentGroupCode,
|
388
|
+
InheritParentPrivilegeYN: this.InheritParentPrivilegeYN,
|
389
|
+
InheritParentSystemAccessYN: this.InheritParentSystemAccessYN,
|
390
|
+
Status: this.Status,
|
391
|
+
Path: this._Path,
|
392
|
+
UpdatedById: this._UpdatedById,
|
393
|
+
UpdatedAt: this._UpdatedAt,
|
396
394
|
}, {
|
397
395
|
where: {
|
398
396
|
GroupCode: group.GroupCode,
|
@@ -400,19 +398,19 @@ class Group extends general_1.TreeNodeBase {
|
|
400
398
|
transaction: dbTransaction,
|
401
399
|
});
|
402
400
|
const entityValueAfter = {
|
403
|
-
GroupCode:
|
404
|
-
Name:
|
405
|
-
Type:
|
406
|
-
Description:
|
407
|
-
ParentGroupCode:
|
408
|
-
InheritParentPrivilegeYN:
|
409
|
-
InheritParentSystemAccessYN:
|
410
|
-
Status:
|
411
|
-
Path:
|
412
|
-
CreatedById:
|
413
|
-
UpdatedById:
|
414
|
-
CreatedAt:
|
415
|
-
UpdatedAt:
|
401
|
+
GroupCode: this.GroupCode,
|
402
|
+
Name: this.Name,
|
403
|
+
Type: this.Type,
|
404
|
+
Description: this.Description,
|
405
|
+
ParentGroupCode: this.ParentGroupCode,
|
406
|
+
InheritParentPrivilegeYN: this.InheritParentPrivilegeYN,
|
407
|
+
InheritParentSystemAccessYN: this.InheritParentSystemAccessYN,
|
408
|
+
Status: this.Status,
|
409
|
+
Path: this._Path,
|
410
|
+
CreatedById: this._CreatedById,
|
411
|
+
UpdatedById: this._UpdatedById,
|
412
|
+
CreatedAt: this._CreatedAt,
|
413
|
+
UpdatedAt: this._UpdatedAt,
|
416
414
|
};
|
417
415
|
const activity = new activity_history_1.Activity();
|
418
416
|
activity.ActivityId = activity.createId();
|
@@ -423,7 +421,7 @@ class Group extends general_1.TreeNodeBase {
|
|
423
421
|
activity.EntityValueBefore = JSON.stringify(entityValueBefore);
|
424
422
|
activity.EntityValueAfter = JSON.stringify(entityValueAfter);
|
425
423
|
yield activity.create(loginUser.ObjectId, dbTransaction);
|
426
|
-
return
|
424
|
+
return this;
|
427
425
|
}
|
428
426
|
catch (error) {
|
429
427
|
throw error;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../../src/components/group/group.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAsE;AACtE,yDAAqD;AAKrD,0CAAkD;AAClD,yCAA+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AQ,EAAE,CAAC;oBAC1C,QAAQ,CAAC,MAAM,GAAG,6BAAU,CAAC,MAAM,CAAC;oBACpC,QAAQ,CAAC,WAAW,GAAG,wBAAwB,CAAC;oBAChD,QAAQ,CAAC,UAAU,GAAG,gBAAgB,CAAC;oBACvC,QAAQ,CAAC,QAAQ,GAAG,cAAc,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC;oBAC/D,QAAQ,CAAC,iBAAiB,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;oBAC/D,QAAQ,CAAC,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;oBAE/C,MAAM,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;iBAC1D;gBACD,OAAO,uBAAuB,CAAC;aAChC;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;;AAhuDH,sBAiuDC;AA3sDgB,WAAK,GAAG,IAAI,kCAAe,EAAE,CAAC;AAC9B,4BAAsB,GAAG,IAAI,4DAA2B,EAAE,CAAC;AAC3D,yBAAmB,GAAG,IAAI,qDAAwB,EAAE,CAAC;AACrD,+BAAyB,GACtC,IAAI,kEAA8B,EAAE,CAAC"}
|
@@ -39,6 +39,7 @@ const login_status_enum_1 = require("../../enum/login-status.enum");
|
|
39
39
|
const redis_service_1 = require("../../redis-client/redis.service");
|
40
40
|
const login_user_1 = require("./login-user");
|
41
41
|
const session_service_1 = require("../../session/session.service");
|
42
|
+
const crypto_1 = require("crypto");
|
42
43
|
class User extends general_1.UserBase {
|
43
44
|
get SessionService() {
|
44
45
|
return this._SessionService;
|
@@ -420,11 +421,10 @@ class User extends general_1.UserBase {
|
|
420
421
|
transaction: dbTransaction,
|
421
422
|
});
|
422
423
|
const userSession = yield this._SessionService.retrieveUserSession(this.ObjectId);
|
423
|
-
|
424
|
-
const
|
425
|
-
const sessionId = randomUUID();
|
424
|
+
const systemLogin = userSession.systemLogins.find((system) => system.code === systemCode);
|
425
|
+
const sessionId = (0, crypto_1.randomUUID)();
|
426
426
|
if (systemLogin) {
|
427
|
-
systemLogin
|
427
|
+
systemLogin.sessionId = sessionId;
|
428
428
|
userSession.systemLogins.map((system) => system.code === systemCode ? systemLogin : system);
|
429
429
|
}
|
430
430
|
else {
|