@tomei/sso 0.61.0 → 0.61.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/dist/__tests__/unit/components/group-privilege/group-privilege.test.d.ts +1 -0
- package/dist/__tests__/unit/components/group-privilege/group-privilege.test.js +71 -0
- package/dist/__tests__/unit/components/group-privilege/group-privilege.test.js.map +1 -0
- package/dist/__tests__/unit/components/login-user/login-user.spec.d.ts +0 -0
- package/dist/__tests__/unit/components/login-user/login-user.spec.js +6 -0
- package/dist/__tests__/unit/components/login-user/login-user.spec.js.map +1 -0
- package/dist/src/components/login-history/login-history.d.ts +23 -0
- package/dist/src/components/login-history/login-history.js +88 -0
- package/dist/src/components/login-history/login-history.js.map +1 -0
- package/dist/src/components/login-user/user.js +3 -2
- package/dist/src/components/login-user/user.js.map +1 -1
- package/dist/src/interfaces/login-history-search-attr.interface.d.ts +8 -0
- package/dist/src/interfaces/login-history-search-attr.interface.js +3 -0
- package/dist/src/interfaces/login-history-search-attr.interface.js.map +1 -0
- package/dist/src/interfaces/login-history.interface.d.ts +11 -0
- package/dist/src/interfaces/login-history.interface.js +3 -0
- package/dist/src/interfaces/login-history.interface.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/api-key/api-key.repository.ts +15 -15
- package/src/components/api-key/api-key.ts +448 -448
- package/src/components/api-key/index.ts +4 -4
- package/src/components/building/building.repository.ts +27 -27
- package/src/components/building/index.ts +2 -2
- package/src/components/group/group.repository.ts +26 -26
- package/src/components/group/group.ts +2284 -2284
- package/src/components/group/index.ts +3 -3
- package/src/components/group-object-privilege/group-object-privilege.repository.ts +25 -25
- package/src/components/group-object-privilege/group-object-privilege.ts +278 -278
- package/src/components/group-object-privilege/index.ts +2 -2
- package/src/components/group-privilege/group-privilege.repository.ts +29 -29
- package/src/components/group-privilege/group-privilege.ts +84 -84
- package/src/components/group-privilege/index.ts +2 -2
- package/src/components/group-reporting-user/group-reporting-user.repository.ts +23 -23
- package/src/components/group-reporting-user/group-reporting-user.ts +506 -506
- package/src/components/group-reporting-user/index.ts +3 -3
- package/src/components/group-system-access/group-system-access.repository.ts +43 -43
- package/src/components/group-system-access/group-system-access.ts +90 -90
- package/src/components/group-system-access/index.ts +2 -2
- package/src/components/index.ts +20 -20
- package/src/components/login-user/index.ts +5 -5
- package/src/components/login-user/interfaces/check-user-info-duplicated.interface.ts +7 -7
- package/src/components/login-user/interfaces/index.ts +1 -1
- package/src/components/login-user/interfaces/system-access.interface.ts +13 -13
- package/src/components/login-user/interfaces/user-info.interface.ts +34 -34
- package/src/components/login-user/login-user.ts +362 -362
- package/src/components/login-user/user.repository.ts +11 -11
- package/src/components/login-user/user.ts +3 -2
- package/src/components/password-hash/index.ts +2 -2
- package/src/components/password-hash/interfaces/index.ts +1 -1
- package/src/components/password-hash/interfaces/password-hash-service.interface.ts +4 -4
- package/src/components/password-hash/password-hash.service.ts +14 -14
- package/src/components/staff/index.ts +2 -2
- package/src/components/staff/staff.repository.ts +27 -27
- package/src/components/system/index.ts +3 -3
- package/src/components/system/system.repository.ts +11 -11
- package/src/components/system/system.ts +456 -456
- package/src/components/system-privilege/index.ts +4 -4
- package/src/components/system-privilege/system-privilege.repository.ts +18 -18
- package/src/components/system-privilege/system-privilege.ts +541 -541
- package/src/components/user-group/index.ts +2 -2
- package/src/components/user-group/user-group.repository.ts +19 -19
- package/src/components/user-group/user-group.ts +764 -764
- package/src/components/user-object-privilege/index.ts +2 -2
- package/src/components/user-object-privilege/user-object-privilege.repository.ts +11 -11
- package/src/components/user-object-privilege/user-object-privilege.ts +79 -79
- package/src/components/user-password-history/index.ts +2 -2
- package/src/components/user-password-history/user-password-history.repository.ts +39 -39
- package/src/components/user-password-history/user-password-history.ts +187 -187
- package/src/components/user-privilege/index.ts +2 -2
- package/src/components/user-privilege/user-privilege.repository.ts +25 -25
- package/src/components/user-privilege/user-privilege.ts +662 -662
- package/src/components/user-reporting-hierarchy/index.ts +2 -2
- package/src/components/user-reporting-hierarchy/user-reporting-hierarchy.repository.ts +30 -30
- package/src/components/user-reporting-hierarchy/user-reporting-hierarchy.ts +505 -505
- package/src/components/user-system-access/index.ts +2 -2
- package/src/components/user-system-access/user-system-access.repository.ts +41 -41
- package/src/database.ts +15 -15
- package/src/enum/api-key.enum.ts +5 -5
- package/src/enum/building-type.enum.ts +6 -6
- package/src/enum/group-type.enum.ts +8 -8
- package/src/enum/index.ts +6 -6
- package/src/enum/login-status.enum.ts +4 -4
- package/src/enum/object-status.enum.ts +4 -4
- package/src/enum/user-status.enum.ts +7 -7
- package/src/enum/yn.enum.ts +4 -4
- package/src/index.ts +8 -8
- package/src/interfaces/api-key-attr.interface.ts +16 -16
- package/src/interfaces/group-object-privilege.interface.ts +14 -14
- package/src/interfaces/group-privilege.interface.ts +10 -10
- package/src/interfaces/group-reporting-user.interface.ts +11 -11
- package/src/interfaces/group-search-attr.interface.ts +9 -9
- package/src/interfaces/group-system-access.interface.ts +10 -10
- package/src/interfaces/group.interface.ts +17 -17
- package/src/interfaces/index.ts +13 -13
- package/src/interfaces/system-login.interface.ts +6 -6
- package/src/interfaces/system-privilege-search.interface.ts +5 -5
- package/src/interfaces/system-privilege.interface.ts +11 -11
- package/src/interfaces/system-search-attr.interface.ts +5 -5
- package/src/interfaces/system.interface.ts +15 -15
- package/src/interfaces/user-group.interface.ts +12 -12
- package/src/interfaces/user-object-privilege.interface.ts +14 -14
- package/src/interfaces/user-password-history.interface.ts +6 -6
- package/src/interfaces/user-privilege.interface.ts +10 -10
- package/src/interfaces/user-reporting-hierarchy.interface.ts +11 -11
- package/src/interfaces/user-session.interface.ts +5 -5
- package/src/interfaces/user-system-access.interface.ts +10 -10
- package/src/models/api-key-entity.ts +101 -101
- package/src/models/building.entity.ts +103 -103
- package/src/models/group-object-privilege.entity.ts +91 -91
- package/src/models/group-privilege.entity.ts +78 -78
- package/src/models/group-reporting-user.entity.ts +95 -95
- package/src/models/group-system-access.entity.ts +81 -81
- package/src/models/group.entity.ts +127 -127
- package/src/models/staff.entity.ts +91 -91
- package/src/models/system-privilege.entity.ts +90 -90
- package/src/models/system.entity.ts +113 -113
- package/src/models/user-group.entity.ts +91 -91
- package/src/models/user-object-privilege.entity.ts +90 -90
- package/src/models/user-password-history.ts +51 -51
- package/src/models/user-privilege.entity.ts +78 -78
- package/src/models/user-reporting-hierarchy.entity.ts +102 -102
- package/src/models/user-system-access.entity.ts +87 -87
- package/src/models/user.entity.ts +193 -193
- package/src/redis-client/__mocks__/jest-initial-setup.ts +2 -2
- package/src/redis-client/__mocks__/redis-mock.ts +28 -28
- package/src/redis-client/index.ts +1 -1
- package/src/redis-client/redis.service.ts +75 -75
- package/src/session/index.ts +2 -2
- package/src/session/interfaces/index.ts +1 -1
- package/src/session/interfaces/session-service.interface.ts +26 -26
- package/src/session/session.service.ts +96 -96
- package/src/types/auth-context.ts +10 -10
- package/src/types/index.ts +1 -1
@@ -1,3 +1,3 @@
|
|
1
|
-
//export all files inside this folder
|
2
|
-
export * from './group-reporting-user';
|
3
|
-
export * from './group-reporting-user.repository';
|
1
|
+
//export all files inside this folder
|
2
|
+
export * from './group-reporting-user';
|
3
|
+
export * from './group-reporting-user.repository';
|
@@ -1,43 +1,43 @@
|
|
1
|
-
import GroupSystemAccessModel from '../../models/group-system-access.entity';
|
2
|
-
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
3
|
-
|
4
|
-
export class GroupSystemAccessRepository
|
5
|
-
extends RepositoryBase<GroupSystemAccessModel>
|
6
|
-
implements IRepositoryBase<GroupSystemAccessModel>
|
7
|
-
{
|
8
|
-
constructor() {
|
9
|
-
super(GroupSystemAccessModel);
|
10
|
-
}
|
11
|
-
|
12
|
-
async findAndCountAll(options?: any) {
|
13
|
-
try {
|
14
|
-
let GroupSystemAccess: any;
|
15
|
-
if (options) {
|
16
|
-
GroupSystemAccess =
|
17
|
-
await GroupSystemAccessModel.findAndCountAll(options);
|
18
|
-
} else {
|
19
|
-
GroupSystemAccess = await GroupSystemAccessModel.findAndCountAll();
|
20
|
-
}
|
21
|
-
return GroupSystemAccess;
|
22
|
-
} catch (error) {
|
23
|
-
throw new Error(
|
24
|
-
`An Error occured when retriving GroupSystemAccess: ${error.message}`,
|
25
|
-
);
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
async delete(GroupCode: string, SystemCode: string, dbTransaction?: any) {
|
30
|
-
try {
|
31
|
-
const options = {
|
32
|
-
where: {
|
33
|
-
GroupCode: GroupCode,
|
34
|
-
SystemCode: SystemCode,
|
35
|
-
},
|
36
|
-
transaction: dbTransaction,
|
37
|
-
};
|
38
|
-
await GroupSystemAccessModel.destroy(options);
|
39
|
-
} catch (error) {
|
40
|
-
throw new Error(`An Error occured when delete : ${error.message}`);
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
1
|
+
import GroupSystemAccessModel from '../../models/group-system-access.entity';
|
2
|
+
import { RepositoryBase, IRepositoryBase } from '@tomei/general';
|
3
|
+
|
4
|
+
export class GroupSystemAccessRepository
|
5
|
+
extends RepositoryBase<GroupSystemAccessModel>
|
6
|
+
implements IRepositoryBase<GroupSystemAccessModel>
|
7
|
+
{
|
8
|
+
constructor() {
|
9
|
+
super(GroupSystemAccessModel);
|
10
|
+
}
|
11
|
+
|
12
|
+
async findAndCountAll(options?: any) {
|
13
|
+
try {
|
14
|
+
let GroupSystemAccess: any;
|
15
|
+
if (options) {
|
16
|
+
GroupSystemAccess =
|
17
|
+
await GroupSystemAccessModel.findAndCountAll(options);
|
18
|
+
} else {
|
19
|
+
GroupSystemAccess = await GroupSystemAccessModel.findAndCountAll();
|
20
|
+
}
|
21
|
+
return GroupSystemAccess;
|
22
|
+
} catch (error) {
|
23
|
+
throw new Error(
|
24
|
+
`An Error occured when retriving GroupSystemAccess: ${error.message}`,
|
25
|
+
);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
async delete(GroupCode: string, SystemCode: string, dbTransaction?: any) {
|
30
|
+
try {
|
31
|
+
const options = {
|
32
|
+
where: {
|
33
|
+
GroupCode: GroupCode,
|
34
|
+
SystemCode: SystemCode,
|
35
|
+
},
|
36
|
+
transaction: dbTransaction,
|
37
|
+
};
|
38
|
+
await GroupSystemAccessModel.destroy(options);
|
39
|
+
} catch (error) {
|
40
|
+
throw new Error(`An Error occured when delete : ${error.message}`);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
@@ -1,90 +1,90 @@
|
|
1
|
-
import { ClassError, ObjectBase } from '@tomei/general';
|
2
|
-
import { GroupSystemAccessRepository } from './group-system-access.repository';
|
3
|
-
import { IGroupSystemAccessAttr } from '../../interfaces/group-system-access.interface';
|
4
|
-
|
5
|
-
export class GroupSystemAccess extends ObjectBase {
|
6
|
-
ObjectType = 'GroupSystemAccess';
|
7
|
-
TableName = 'sso_GroupSystemAccess';
|
8
|
-
ObjectName: string;
|
9
|
-
ObjectId: string;
|
10
|
-
|
11
|
-
GroupSystemAccessId: number;
|
12
|
-
GroupCode: string;
|
13
|
-
SystemCode: string;
|
14
|
-
Status: string;
|
15
|
-
private _CreatedAt: Date;
|
16
|
-
private _UpdatedAt: Date;
|
17
|
-
private _CreatedById: number;
|
18
|
-
private _UpdatedById: number;
|
19
|
-
|
20
|
-
get CreatedAt() {
|
21
|
-
return this._CreatedAt;
|
22
|
-
}
|
23
|
-
set CreatedAt(CreatedAt: Date) {
|
24
|
-
this._CreatedAt = CreatedAt;
|
25
|
-
}
|
26
|
-
|
27
|
-
get UpdatedAt() {
|
28
|
-
return this._UpdatedAt;
|
29
|
-
}
|
30
|
-
|
31
|
-
set UpdatedAt(UpdatedAt: Date) {
|
32
|
-
this._UpdatedAt = UpdatedAt;
|
33
|
-
}
|
34
|
-
|
35
|
-
get CreatedById() {
|
36
|
-
return this._CreatedById;
|
37
|
-
}
|
38
|
-
|
39
|
-
set CreatedById(CreatedById: number) {
|
40
|
-
this._CreatedById = CreatedById;
|
41
|
-
}
|
42
|
-
|
43
|
-
get UpdatedById() {
|
44
|
-
return this._UpdatedById;
|
45
|
-
}
|
46
|
-
|
47
|
-
set UpdatedById(UpdatedById: number) {
|
48
|
-
this._UpdatedById = UpdatedById;
|
49
|
-
}
|
50
|
-
|
51
|
-
private static _Repository = new GroupSystemAccessRepository();
|
52
|
-
|
53
|
-
constructor(groupSystemAccessAttr?: IGroupSystemAccessAttr) {
|
54
|
-
super();
|
55
|
-
if (groupSystemAccessAttr) {
|
56
|
-
this.GroupSystemAccessId = groupSystemAccessAttr.GroupSystemAccessId;
|
57
|
-
this.GroupCode = groupSystemAccessAttr.GroupCode;
|
58
|
-
this.SystemCode = groupSystemAccessAttr.SystemCode;
|
59
|
-
this.Status = groupSystemAccessAttr.Status;
|
60
|
-
this._CreatedById = groupSystemAccessAttr.CreatedById;
|
61
|
-
this._CreatedAt = groupSystemAccessAttr.CreatedAt;
|
62
|
-
this._UpdatedById = groupSystemAccessAttr.UpdatedById;
|
63
|
-
this._UpdatedAt = groupSystemAccessAttr.UpdatedAt;
|
64
|
-
}
|
65
|
-
}
|
66
|
-
|
67
|
-
static async init(dbTransaction: any, GroupSystemAccessId?: number) {
|
68
|
-
try {
|
69
|
-
const groupSystemAccess = new GroupSystemAccess();
|
70
|
-
if (GroupSystemAccessId) {
|
71
|
-
const groupSystemAccess = await this._Repository.findOne({
|
72
|
-
where: { GroupSystemAccessId },
|
73
|
-
transaction: dbTransaction,
|
74
|
-
});
|
75
|
-
if (groupSystemAccess) {
|
76
|
-
return new GroupSystemAccess(groupSystemAccess.get({ plain: true }));
|
77
|
-
} else {
|
78
|
-
throw new ClassError(
|
79
|
-
'groupSystemAccess',
|
80
|
-
'groupSystemAccessErrMsg00',
|
81
|
-
'groupSystemAccess not found',
|
82
|
-
);
|
83
|
-
}
|
84
|
-
}
|
85
|
-
return groupSystemAccess;
|
86
|
-
} catch (error) {
|
87
|
-
throw error;
|
88
|
-
}
|
89
|
-
}
|
90
|
-
}
|
1
|
+
import { ClassError, ObjectBase } from '@tomei/general';
|
2
|
+
import { GroupSystemAccessRepository } from './group-system-access.repository';
|
3
|
+
import { IGroupSystemAccessAttr } from '../../interfaces/group-system-access.interface';
|
4
|
+
|
5
|
+
export class GroupSystemAccess extends ObjectBase {
|
6
|
+
ObjectType = 'GroupSystemAccess';
|
7
|
+
TableName = 'sso_GroupSystemAccess';
|
8
|
+
ObjectName: string;
|
9
|
+
ObjectId: string;
|
10
|
+
|
11
|
+
GroupSystemAccessId: number;
|
12
|
+
GroupCode: string;
|
13
|
+
SystemCode: string;
|
14
|
+
Status: string;
|
15
|
+
private _CreatedAt: Date;
|
16
|
+
private _UpdatedAt: Date;
|
17
|
+
private _CreatedById: number;
|
18
|
+
private _UpdatedById: number;
|
19
|
+
|
20
|
+
get CreatedAt() {
|
21
|
+
return this._CreatedAt;
|
22
|
+
}
|
23
|
+
set CreatedAt(CreatedAt: Date) {
|
24
|
+
this._CreatedAt = CreatedAt;
|
25
|
+
}
|
26
|
+
|
27
|
+
get UpdatedAt() {
|
28
|
+
return this._UpdatedAt;
|
29
|
+
}
|
30
|
+
|
31
|
+
set UpdatedAt(UpdatedAt: Date) {
|
32
|
+
this._UpdatedAt = UpdatedAt;
|
33
|
+
}
|
34
|
+
|
35
|
+
get CreatedById() {
|
36
|
+
return this._CreatedById;
|
37
|
+
}
|
38
|
+
|
39
|
+
set CreatedById(CreatedById: number) {
|
40
|
+
this._CreatedById = CreatedById;
|
41
|
+
}
|
42
|
+
|
43
|
+
get UpdatedById() {
|
44
|
+
return this._UpdatedById;
|
45
|
+
}
|
46
|
+
|
47
|
+
set UpdatedById(UpdatedById: number) {
|
48
|
+
this._UpdatedById = UpdatedById;
|
49
|
+
}
|
50
|
+
|
51
|
+
private static _Repository = new GroupSystemAccessRepository();
|
52
|
+
|
53
|
+
constructor(groupSystemAccessAttr?: IGroupSystemAccessAttr) {
|
54
|
+
super();
|
55
|
+
if (groupSystemAccessAttr) {
|
56
|
+
this.GroupSystemAccessId = groupSystemAccessAttr.GroupSystemAccessId;
|
57
|
+
this.GroupCode = groupSystemAccessAttr.GroupCode;
|
58
|
+
this.SystemCode = groupSystemAccessAttr.SystemCode;
|
59
|
+
this.Status = groupSystemAccessAttr.Status;
|
60
|
+
this._CreatedById = groupSystemAccessAttr.CreatedById;
|
61
|
+
this._CreatedAt = groupSystemAccessAttr.CreatedAt;
|
62
|
+
this._UpdatedById = groupSystemAccessAttr.UpdatedById;
|
63
|
+
this._UpdatedAt = groupSystemAccessAttr.UpdatedAt;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
static async init(dbTransaction: any, GroupSystemAccessId?: number) {
|
68
|
+
try {
|
69
|
+
const groupSystemAccess = new GroupSystemAccess();
|
70
|
+
if (GroupSystemAccessId) {
|
71
|
+
const groupSystemAccess = await this._Repository.findOne({
|
72
|
+
where: { GroupSystemAccessId },
|
73
|
+
transaction: dbTransaction,
|
74
|
+
});
|
75
|
+
if (groupSystemAccess) {
|
76
|
+
return new GroupSystemAccess(groupSystemAccess.get({ plain: true }));
|
77
|
+
} else {
|
78
|
+
throw new ClassError(
|
79
|
+
'groupSystemAccess',
|
80
|
+
'groupSystemAccessErrMsg00',
|
81
|
+
'groupSystemAccess not found',
|
82
|
+
);
|
83
|
+
}
|
84
|
+
}
|
85
|
+
return groupSystemAccess;
|
86
|
+
} catch (error) {
|
87
|
+
throw error;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './group-system-access';
|
2
|
-
export * from './group-system-access.repository';
|
1
|
+
export * from './group-system-access';
|
2
|
+
export * from './group-system-access.repository';
|
package/src/components/index.ts
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
export * from './login-history';
|
2
|
-
export * from './login-user';
|
3
|
-
export * from './password-hash';
|
4
|
-
export * from './system';
|
5
|
-
export * from './user-group';
|
6
|
-
export * from './building';
|
7
|
-
export * from './staff';
|
8
|
-
export * from './user-system-access';
|
9
|
-
export * from './user-privilege';
|
10
|
-
export * from './group-system-access';
|
11
|
-
export * from './user-object-privilege';
|
12
|
-
export * from './group-privilege';
|
13
|
-
export * from './group-object-privilege';
|
14
|
-
export * from './system-privilege';
|
15
|
-
export * from './group';
|
16
|
-
export * from './api-key';
|
17
|
-
export * from './group-reporting-user';
|
18
|
-
export * from './user-reporting-hierarchy';
|
19
|
-
|
20
|
-
//test ci
|
1
|
+
export * from './login-history';
|
2
|
+
export * from './login-user';
|
3
|
+
export * from './password-hash';
|
4
|
+
export * from './system';
|
5
|
+
export * from './user-group';
|
6
|
+
export * from './building';
|
7
|
+
export * from './staff';
|
8
|
+
export * from './user-system-access';
|
9
|
+
export * from './user-privilege';
|
10
|
+
export * from './group-system-access';
|
11
|
+
export * from './user-object-privilege';
|
12
|
+
export * from './group-privilege';
|
13
|
+
export * from './group-object-privilege';
|
14
|
+
export * from './system-privilege';
|
15
|
+
export * from './group';
|
16
|
+
export * from './api-key';
|
17
|
+
export * from './group-reporting-user';
|
18
|
+
export * from './user-reporting-hierarchy';
|
19
|
+
|
20
|
+
//test ci
|
@@ -1,5 +1,5 @@
|
|
1
|
-
//export all files inside this folder
|
2
|
-
export * from './interfaces';
|
3
|
-
export * from './login-user';
|
4
|
-
export * from './user';
|
5
|
-
export * from './user.repository';
|
1
|
+
//export all files inside this folder
|
2
|
+
export * from './interfaces';
|
3
|
+
export * from './login-user';
|
4
|
+
export * from './user';
|
5
|
+
export * from './user.repository';
|
@@ -1,7 +1,7 @@
|
|
1
|
-
export interface ICheckUserInfoDuplicatedQuery {
|
2
|
-
Email?: string;
|
3
|
-
UserName?: string;
|
4
|
-
IdType?: string;
|
5
|
-
IdNo?: string;
|
6
|
-
ContactNo?: string;
|
7
|
-
}
|
1
|
+
export interface ICheckUserInfoDuplicatedQuery {
|
2
|
+
Email?: string;
|
3
|
+
UserName?: string;
|
4
|
+
IdType?: string;
|
5
|
+
IdNo?: string;
|
6
|
+
ContactNo?: string;
|
7
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
export * from './user-info.interface';
|
1
|
+
export * from './user-info.interface';
|
@@ -1,13 +1,13 @@
|
|
1
|
-
export interface ISystemAccess {
|
2
|
-
UserSystemAccessId?: number;
|
3
|
-
GroupSystemAccessId?: number;
|
4
|
-
UserId?: number;
|
5
|
-
SystemCode?: string;
|
6
|
-
GroupCode?: string;
|
7
|
-
Status?: string;
|
8
|
-
CreatedById?: number;
|
9
|
-
UpdatedById?: number;
|
10
|
-
System?: any;
|
11
|
-
CreatedAt?: Date;
|
12
|
-
UpdatedAt?: Date;
|
13
|
-
}
|
1
|
+
export interface ISystemAccess {
|
2
|
+
UserSystemAccessId?: number;
|
3
|
+
GroupSystemAccessId?: number;
|
4
|
+
UserId?: number;
|
5
|
+
SystemCode?: string;
|
6
|
+
GroupCode?: string;
|
7
|
+
Status?: string;
|
8
|
+
CreatedById?: number;
|
9
|
+
UpdatedById?: number;
|
10
|
+
System?: any;
|
11
|
+
CreatedAt?: Date;
|
12
|
+
UpdatedAt?: Date;
|
13
|
+
}
|
@@ -1,34 +1,34 @@
|
|
1
|
-
import { UserStatus } from '../../../enum/user-status.enum';
|
2
|
-
import { YN } from '../../../enum/yn.enum';
|
3
|
-
|
4
|
-
export interface IUserInfo {
|
5
|
-
FullName: string;
|
6
|
-
IDNo: string;
|
7
|
-
IDType: string;
|
8
|
-
Email: string;
|
9
|
-
ContactNo: string;
|
10
|
-
UserName: string;
|
11
|
-
UserId?: number;
|
12
|
-
Password: string;
|
13
|
-
staffs?: any;
|
14
|
-
}
|
15
|
-
|
16
|
-
export interface IUserAttr extends IUserInfo {
|
17
|
-
Status: UserStatus;
|
18
|
-
DefaultPasswordChangedYN: YN;
|
19
|
-
FirstLoginAt: Date;
|
20
|
-
LastLoginAt: Date;
|
21
|
-
MFAEnabled: number;
|
22
|
-
MFAConfig: string;
|
23
|
-
RecoveryEmail: string;
|
24
|
-
FailedLoginAttemptCount: number;
|
25
|
-
LastFailedLoginAt: Date;
|
26
|
-
LastPasswordChangedAt: Date;
|
27
|
-
NeedToChangePasswordYN: YN;
|
28
|
-
PasscodeHash: string;
|
29
|
-
PasscodeUpdatedAt: Date;
|
30
|
-
CreatedById: number;
|
31
|
-
CreatedAt: Date;
|
32
|
-
UpdatedById: number;
|
33
|
-
UpdatedAt: Date;
|
34
|
-
}
|
1
|
+
import { UserStatus } from '../../../enum/user-status.enum';
|
2
|
+
import { YN } from '../../../enum/yn.enum';
|
3
|
+
|
4
|
+
export interface IUserInfo {
|
5
|
+
FullName: string;
|
6
|
+
IDNo: string;
|
7
|
+
IDType: string;
|
8
|
+
Email: string;
|
9
|
+
ContactNo: string;
|
10
|
+
UserName: string;
|
11
|
+
UserId?: number;
|
12
|
+
Password: string;
|
13
|
+
staffs?: any;
|
14
|
+
}
|
15
|
+
|
16
|
+
export interface IUserAttr extends IUserInfo {
|
17
|
+
Status: UserStatus;
|
18
|
+
DefaultPasswordChangedYN: YN;
|
19
|
+
FirstLoginAt: Date;
|
20
|
+
LastLoginAt: Date;
|
21
|
+
MFAEnabled: number;
|
22
|
+
MFAConfig: string;
|
23
|
+
RecoveryEmail: string;
|
24
|
+
FailedLoginAttemptCount: number;
|
25
|
+
LastFailedLoginAt: Date;
|
26
|
+
LastPasswordChangedAt: Date;
|
27
|
+
NeedToChangePasswordYN: YN;
|
28
|
+
PasscodeHash: string;
|
29
|
+
PasscodeUpdatedAt: Date;
|
30
|
+
CreatedById: number;
|
31
|
+
CreatedAt: Date;
|
32
|
+
UpdatedById: number;
|
33
|
+
UpdatedAt: Date;
|
34
|
+
}
|