@tomei/sso 0.37.3 → 0.38.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. package/__tests__/unit/components/group-object-privilege/group-object-privilege.spec.ts +4 -4
  2. package/__tests__/unit/components/group-privilege/group-privilege.spec.ts +3 -3
  3. package/__tests__/unit/components/user-object-privilege/user-object-privilege.spec.ts +3 -3
  4. package/__tests__/unit/components/user-privilege/user-privilege.spec.ts +3 -3
  5. package/dist/__tests__/unit/components/group-object-privilege/group-object-privilege.spec.js +4 -4
  6. package/dist/__tests__/unit/components/group-object-privilege/group-object-privilege.spec.js.map +1 -1
  7. package/dist/__tests__/unit/components/group-privilege/group-privilege.spec.js +3 -3
  8. package/dist/__tests__/unit/components/group-privilege/group-privilege.spec.js.map +1 -1
  9. package/dist/__tests__/unit/components/user-object-privilege/user-object-privilege.spec.js +3 -3
  10. package/dist/__tests__/unit/components/user-object-privilege/user-object-privilege.spec.js.map +1 -1
  11. package/dist/__tests__/unit/components/user-privilege/user-privilege.spec.js +3 -3
  12. package/dist/__tests__/unit/components/user-privilege/user-privilege.spec.js.map +1 -1
  13. package/dist/src/components/group/group.d.ts +23 -12
  14. package/dist/src/components/group/group.js +188 -42
  15. package/dist/src/components/group/group.js.map +1 -1
  16. package/dist/src/components/group-object-privilege/group-object-privilege.d.ts +1 -1
  17. package/dist/src/components/group-object-privilege/group-object-privilege.js +7 -7
  18. package/dist/src/components/group-object-privilege/group-object-privilege.js.map +1 -1
  19. package/dist/src/components/group-privilege/group-privilege.d.ts +1 -1
  20. package/dist/src/components/group-privilege/group-privilege.js +2 -2
  21. package/dist/src/components/group-privilege/group-privilege.js.map +1 -1
  22. package/dist/src/components/group-privilege/group-privilege.repository.d.ts +1 -1
  23. package/dist/src/components/group-privilege/group-privilege.repository.js +11 -3
  24. package/dist/src/components/group-privilege/group-privilege.repository.js.map +1 -1
  25. package/dist/src/components/login-user/login-user.js.map +1 -1
  26. package/dist/src/components/login-user/user.js +2 -2
  27. package/dist/src/components/login-user/user.js.map +1 -1
  28. package/dist/src/components/system/system.js +1 -1
  29. package/dist/src/components/system/system.js.map +1 -1
  30. package/dist/src/components/system-privilege/system-privilege.d.ts +4 -3
  31. package/dist/src/components/system-privilege/system-privilege.js +18 -11
  32. package/dist/src/components/system-privilege/system-privilege.js.map +1 -1
  33. package/dist/src/components/user-group/user-group.js +2 -1
  34. package/dist/src/components/user-group/user-group.js.map +1 -1
  35. package/dist/src/components/user-object-privilege/user-object-privilege.d.ts +1 -1
  36. package/dist/src/components/user-object-privilege/user-object-privilege.js +1 -1
  37. package/dist/src/components/user-object-privilege/user-object-privilege.js.map +1 -1
  38. package/dist/src/components/user-privilege/user-privilege.d.ts +1 -1
  39. package/dist/src/components/user-privilege/user-privilege.js +1 -1
  40. package/dist/src/components/user-privilege/user-privilege.js.map +1 -1
  41. package/dist/src/interfaces/group-object-privilege.interface.d.ts +1 -1
  42. package/dist/src/interfaces/group-privilege.interface.d.ts +1 -1
  43. package/dist/src/interfaces/group.interface.d.ts +1 -0
  44. package/dist/src/interfaces/system-privilege.interface.d.ts +1 -0
  45. package/dist/src/interfaces/user-object-privilege.interface.d.ts +1 -1
  46. package/dist/src/interfaces/user-privilege.interface.d.ts +1 -1
  47. package/dist/src/models/group-object-privilege.entity.d.ts +1 -1
  48. package/dist/src/models/group-object-privilege.entity.js +1 -1
  49. package/dist/src/models/group-object-privilege.entity.js.map +1 -1
  50. package/dist/src/models/group-privilege.entity.d.ts +1 -1
  51. package/dist/src/models/group-privilege.entity.js +1 -1
  52. package/dist/src/models/group-privilege.entity.js.map +1 -1
  53. package/dist/src/models/group.entity.d.ts +1 -0
  54. package/dist/src/models/group.entity.js +7 -0
  55. package/dist/src/models/group.entity.js.map +1 -1
  56. package/dist/src/models/system-privilege.entity.d.ts +1 -0
  57. package/dist/src/models/system-privilege.entity.js +8 -0
  58. package/dist/src/models/system-privilege.entity.js.map +1 -1
  59. package/dist/src/models/user-object-privilege.entity.d.ts +1 -1
  60. package/dist/src/models/user-object-privilege.entity.js +1 -1
  61. package/dist/src/models/user-object-privilege.entity.js.map +1 -1
  62. package/dist/src/models/user-privilege.entity.d.ts +1 -1
  63. package/dist/src/models/user-privilege.entity.js +1 -1
  64. package/dist/src/models/user-privilege.entity.js.map +1 -1
  65. package/dist/tsconfig.tsbuildinfo +1 -1
  66. package/migrations/20240527064926-create-system-privilege-table.js +66 -62
  67. package/migrations/20240527065342-create-group-table.js +4 -0
  68. package/migrations/20240528032229-user-privilege-table.js +2 -2
  69. package/migrations/20240528063003-create-group-privilege-table.js +12 -2
  70. package/migrations/20240528063051-create-group-object-privilege-table.js +2 -2
  71. package/migrations/20240528063107-create-user-object-privilege-table.js +2 -2
  72. package/package.json +8 -8
  73. package/src/components/group/group.ts +225 -60
  74. package/src/components/group-object-privilege/group-object-privilege.ts +9 -9
  75. package/src/components/group-privilege/group-privilege.repository.ts +16 -3
  76. package/src/components/group-privilege/group-privilege.ts +3 -3
  77. package/src/components/login-user/login-user.ts +0 -58
  78. package/src/components/login-user/user.ts +2 -4
  79. package/src/components/system/system.ts +1 -1
  80. package/src/components/system-privilege/system-privilege.ts +20 -12
  81. package/src/components/user-group/user-group.ts +2 -1
  82. package/src/components/user-object-privilege/user-object-privilege.ts +2 -2
  83. package/src/components/user-privilege/user-privilege.ts +2 -2
  84. package/src/interfaces/group-object-privilege.interface.ts +1 -1
  85. package/src/interfaces/group-privilege.interface.ts +1 -1
  86. package/src/interfaces/group.interface.ts +1 -0
  87. package/src/interfaces/system-privilege.interface.ts +1 -0
  88. package/src/interfaces/user-object-privilege.interface.ts +1 -1
  89. package/src/interfaces/user-privilege.interface.ts +1 -1
  90. package/src/models/group-object-privilege.entity.ts +1 -1
  91. package/src/models/group-privilege.entity.ts +1 -1
  92. package/src/models/group.entity.ts +6 -0
  93. package/src/models/system-privilege.entity.ts +7 -0
  94. package/src/models/user-object-privilege.entity.ts +1 -1
  95. package/src/models/user-privilege.entity.ts +1 -1
@@ -20,7 +20,7 @@ describe('GroupObjectPrivilege', () => {
20
20
  expect(groupObjectPrivilege.ObjectName).toBeUndefined();
21
21
  expect(groupObjectPrivilege.GroupObjectPrivilegeId).toBeUndefined();
22
22
  expect(groupObjectPrivilege.GroupCode).toBeUndefined();
23
- expect(groupObjectPrivilege.PrivilegeCode).toBeUndefined();
23
+ expect(groupObjectPrivilege.SystemPrivilegeId).toBeUndefined();
24
24
  expect(groupObjectPrivilege.ObjectId).toBeUndefined();
25
25
  expect(groupObjectPrivilege.ObjectType).toBeUndefined();
26
26
  expect(groupObjectPrivilege.CreatedAt).toBeUndefined();
@@ -35,7 +35,7 @@ describe('GroupObjectPrivilege', () => {
35
35
  const mockGroupObjectPrivilegeAttr = {
36
36
  GroupObjectPrivilegeId,
37
37
  GroupCode: 'groupCode',
38
- PrivilegeCode: 'privilegeCode',
38
+ SystemPrivilegeId: 'SystemPrivilegeId',
39
39
  ObjectId: 'objectId',
40
40
  ObjectType: 'objectType',
41
41
  CreatedAt: new Date(),
@@ -53,7 +53,7 @@ describe('GroupObjectPrivilege', () => {
53
53
  expect(result).toBeInstanceOf(GroupObjectPrivilege);
54
54
  expect(result.GroupObjectPrivilegeId).toBe(GroupObjectPrivilegeId);
55
55
  expect(result.GroupCode).toBe(mockGroupObjectPrivilegeAttr.GroupCode);
56
- expect(result.PrivilegeCode).toBe(mockGroupObjectPrivilegeAttr.PrivilegeCode);
56
+ expect(result.SystemPrivilegeId).toBe(mockGroupObjectPrivilegeAttr.SystemPrivilegeId);
57
57
  expect(result.ObjectId).toBe(mockGroupObjectPrivilegeAttr.ObjectId);
58
58
  expect(result.ObjectType).toBe(mockGroupObjectPrivilegeAttr.ObjectType);
59
59
  expect(result.CreatedAt).toBe(mockGroupObjectPrivilegeAttr.CreatedAt);
@@ -77,7 +77,7 @@ describe('GroupObjectPrivilege', () => {
77
77
  expect(result).toBeInstanceOf(GroupObjectPrivilege);
78
78
  expect(result.GroupObjectPrivilegeId).toBeUndefined();
79
79
  expect(result.GroupCode).toBeUndefined();
80
- expect(result.PrivilegeCode).toBeUndefined();
80
+ expect(result.SystemPrivilegeId).toBeUndefined();
81
81
  expect(result.ObjectId).toBeUndefined();
82
82
  expect(result.ObjectType).toBeUndefined();
83
83
  expect(result.CreatedAt).toBeUndefined();
@@ -11,7 +11,7 @@ describe('GroupPrivilege', () => {
11
11
  const mockGroupPrivilegeAttr = {
12
12
  GroupPrivilegeId: 1,
13
13
  GroupCode: 'group1',
14
- PrivilegeCode: 'privilege1',
14
+ SystemPrivilegeId: 'privilege1',
15
15
  Status: 'active',
16
16
  CreatedAt: new Date(),
17
17
  UpdatedAt: new Date(),
@@ -32,7 +32,7 @@ describe('GroupPrivilege', () => {
32
32
  expect(groupPrivilege).toBeInstanceOf(GroupPrivilege);
33
33
  expect(groupPrivilege.GroupPrivilegeId).toEqual(mockGroupPrivilegeAttr.GroupPrivilegeId);
34
34
  expect(groupPrivilege.GroupCode).toEqual(mockGroupPrivilegeAttr.GroupCode);
35
- expect(groupPrivilege.PrivilegeCode).toEqual(mockGroupPrivilegeAttr.PrivilegeCode);
35
+ expect(groupPrivilege.SystemPrivilegeId).toEqual(mockGroupPrivilegeAttr.SystemPrivilegeId);
36
36
  expect(groupPrivilege.Status).toEqual(mockGroupPrivilegeAttr.Status);
37
37
  expect(groupPrivilege.CreatedAt).toEqual(mockGroupPrivilegeAttr.CreatedAt);
38
38
  expect(groupPrivilege.UpdatedAt).toEqual(mockGroupPrivilegeAttr.UpdatedAt);
@@ -59,7 +59,7 @@ describe('GroupPrivilege', () => {
59
59
  expect(groupPrivilege).toBeInstanceOf(GroupPrivilege);
60
60
  expect(groupPrivilege.GroupPrivilegeId).toBeUndefined();
61
61
  expect(groupPrivilege.GroupCode).toBeUndefined();
62
- expect(groupPrivilege.PrivilegeCode).toBeUndefined();
62
+ expect(groupPrivilege.SystemPrivilegeId).toBeUndefined();
63
63
  expect(groupPrivilege.Status).toBeUndefined();
64
64
  expect(groupPrivilege.CreatedAt).toBeUndefined();
65
65
  expect(groupPrivilege.UpdatedAt).toBeUndefined();
@@ -7,7 +7,7 @@ describe('UserObjectPrivilege', () => {
7
7
  const userObjectPrivilegeAttr = {
8
8
  ObjectPrivilegeId: 1,
9
9
  UserId: 1,
10
- PrivilegeCode: 'code1',
10
+ SystemPrivilegeId: 'code1',
11
11
  ObjectId: 'object1',
12
12
  ObjectType: 'type1',
13
13
  CreatedAt: new Date(),
@@ -30,7 +30,7 @@ describe('UserObjectPrivilege', () => {
30
30
  expect(userObjectPrivilege).toBeInstanceOf(UserObjectPrivilege);
31
31
  expect(userObjectPrivilege.ObjectPrivilegeId).toBe(userObjectPrivilegeAttr.ObjectPrivilegeId);
32
32
  expect(userObjectPrivilege.UserId).toBe(userObjectPrivilegeAttr.UserId);
33
- expect(userObjectPrivilege.PrivilegeCode).toBe(userObjectPrivilegeAttr.PrivilegeCode);
33
+ expect(userObjectPrivilege.SystemPrivilegeId).toBe(userObjectPrivilegeAttr.SystemPrivilegeId);
34
34
  expect(userObjectPrivilege.ObjectId).toBe(userObjectPrivilegeAttr.ObjectId);
35
35
  expect(userObjectPrivilege.ObjectType).toBe(userObjectPrivilegeAttr.ObjectType);
36
36
  expect(userObjectPrivilege.CreatedAt).toBe(userObjectPrivilegeAttr.CreatedAt);
@@ -59,7 +59,7 @@ describe('UserObjectPrivilege', () => {
59
59
  expect(result).toBeInstanceOf(UserObjectPrivilege);
60
60
  expect(result.ObjectPrivilegeId).toBe(userObjectPrivilegeAttr.ObjectPrivilegeId);
61
61
  expect(result.UserId).toBe(userObjectPrivilegeAttr.UserId);
62
- expect(result.PrivilegeCode).toBe(userObjectPrivilegeAttr.PrivilegeCode);
62
+ expect(result.SystemPrivilegeId).toBe(userObjectPrivilegeAttr.SystemPrivilegeId);
63
63
  expect(result.ObjectId).toBe(userObjectPrivilegeAttr.ObjectId);
64
64
  expect(result.ObjectType).toBe(userObjectPrivilegeAttr.ObjectType);
65
65
  expect(result.CreatedAt).toBe(userObjectPrivilegeAttr.CreatedAt);
@@ -7,7 +7,7 @@ describe('UserPrivilege', () => {
7
7
  const userPrivilegeAttr = {
8
8
  UserPrivilegeId: 1,
9
9
  UserId: 1,
10
- PrivilegeCode: 'privilege1',
10
+ SystemPrivilegeId: 'privilege1',
11
11
  Status: 'active',
12
12
  CreatedById: 1,
13
13
  CreatedAt: new Date(),
@@ -29,7 +29,7 @@ describe('UserPrivilege', () => {
29
29
  expect(userPrivilege).toBeInstanceOf(UserPrivilege);
30
30
  expect(userPrivilege.UserPrivilegeId).toBe(userPrivilegeAttr.UserPrivilegeId);
31
31
  expect(userPrivilege.UserId).toBe(userPrivilegeAttr.UserId);
32
- expect(userPrivilege.PrivilegeCode).toBe(userPrivilegeAttr.PrivilegeCode);
32
+ expect(userPrivilege.SystemPrivilegeId).toBe(userPrivilegeAttr.SystemPrivilegeId);
33
33
  expect(userPrivilege.Status).toBe(userPrivilegeAttr.Status);
34
34
  expect(userPrivilege.CreatedById).toBe(userPrivilegeAttr.CreatedById);
35
35
  expect(userPrivilege.CreatedAt).toBe(userPrivilegeAttr.CreatedAt);
@@ -54,7 +54,7 @@ describe('UserPrivilege', () => {
54
54
  expect(result).toBeInstanceOf(UserPrivilege);
55
55
  expect(result.UserPrivilegeId).toBe(userPrivilegeAttr.UserPrivilegeId);
56
56
  expect(result.UserId).toBe(userPrivilegeAttr.UserId);
57
- expect(result.PrivilegeCode).toBe(userPrivilegeAttr.PrivilegeCode);
57
+ expect(result.SystemPrivilegeId).toBe(userPrivilegeAttr.SystemPrivilegeId);
58
58
  expect(result.Status).toBe(userPrivilegeAttr.Status);
59
59
  expect(result.CreatedById).toBe(userPrivilegeAttr.CreatedById);
60
60
  expect(result.CreatedAt).toBe(userPrivilegeAttr.CreatedAt);
@@ -26,7 +26,7 @@ describe('GroupObjectPrivilege', () => {
26
26
  expect(groupObjectPrivilege.ObjectName).toBeUndefined();
27
27
  expect(groupObjectPrivilege.GroupObjectPrivilegeId).toBeUndefined();
28
28
  expect(groupObjectPrivilege.GroupCode).toBeUndefined();
29
- expect(groupObjectPrivilege.PrivilegeCode).toBeUndefined();
29
+ expect(groupObjectPrivilege.SystemPrivilegeId).toBeUndefined();
30
30
  expect(groupObjectPrivilege.ObjectId).toBeUndefined();
31
31
  expect(groupObjectPrivilege.ObjectType).toBeUndefined();
32
32
  expect(groupObjectPrivilege.CreatedAt).toBeUndefined();
@@ -40,7 +40,7 @@ describe('GroupObjectPrivilege', () => {
40
40
  const mockGroupObjectPrivilegeAttr = {
41
41
  GroupObjectPrivilegeId,
42
42
  GroupCode: 'groupCode',
43
- PrivilegeCode: 'privilegeCode',
43
+ SystemPrivilegeId: 'SystemPrivilegeId',
44
44
  ObjectId: 'objectId',
45
45
  ObjectType: 'objectType',
46
46
  CreatedAt: new Date(),
@@ -55,7 +55,7 @@ describe('GroupObjectPrivilege', () => {
55
55
  expect(result).toBeInstanceOf(group_object_privilege_1.GroupObjectPrivilege);
56
56
  expect(result.GroupObjectPrivilegeId).toBe(GroupObjectPrivilegeId);
57
57
  expect(result.GroupCode).toBe(mockGroupObjectPrivilegeAttr.GroupCode);
58
- expect(result.PrivilegeCode).toBe(mockGroupObjectPrivilegeAttr.PrivilegeCode);
58
+ expect(result.SystemPrivilegeId).toBe(mockGroupObjectPrivilegeAttr.SystemPrivilegeId);
59
59
  expect(result.ObjectId).toBe(mockGroupObjectPrivilegeAttr.ObjectId);
60
60
  expect(result.ObjectType).toBe(mockGroupObjectPrivilegeAttr.ObjectType);
61
61
  expect(result.CreatedAt).toBe(mockGroupObjectPrivilegeAttr.CreatedAt);
@@ -73,7 +73,7 @@ describe('GroupObjectPrivilege', () => {
73
73
  expect(result).toBeInstanceOf(group_object_privilege_1.GroupObjectPrivilege);
74
74
  expect(result.GroupObjectPrivilegeId).toBeUndefined();
75
75
  expect(result.GroupCode).toBeUndefined();
76
- expect(result.PrivilegeCode).toBeUndefined();
76
+ expect(result.SystemPrivilegeId).toBeUndefined();
77
77
  expect(result.ObjectId).toBeUndefined();
78
78
  expect(result.ObjectType).toBeUndefined();
79
79
  expect(result.CreatedAt).toBeUndefined();
@@ -1 +1 @@
1
- {"version":3,"file":"group-object-privilege.spec.js","sourceRoot":"","sources":["../../../../../__tests__/unit/components/group-object-privilege/group-object-privilege.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2IAAqI;AACrI,qHAAgH;AAEhH,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,IAAI,oBAA0C,CAAC;IAE/C,UAAU,CAAC,GAAG,EAAE;QACd,oBAAoB,GAAG,IAAI,6CAAoB,EAAE,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;QAC3D,MAAM,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,6CAAoB,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;QAC3C,MAAM,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,MAAM,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,aAAa,EAAE,CAAC;QACxD,MAAM,CAAC,oBAAoB,CAAC,sBAAsB,CAAC,CAAC,aAAa,EAAE,CAAC;QACpE,MAAM,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,aAAa,EAAE,CAAC;QACvD,MAAM,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAC,aAAa,EAAE,CAAC;QAC3D,MAAM,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,aAAa,EAAE,CAAC;QACtD,MAAM,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,aAAa,EAAE,CAAC;QACxD,MAAM,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,aAAa,EAAE,CAAC;QACvD,MAAM,CAAC,oBAAoB,CAAC,SAAS,C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C,aAAa,CAAC,CAAC,aAAa,EAAE,CAAC;YAC7C,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,aAAa,EAAE,CAAC;YACxC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,aAAa,EAAE,CAAC;YAC1C,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,aAAa,EAAE,CAAC;YACzC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,aAAa,EAAE,CAAC;YACzC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,aAAa,EAAE,CAAC;YAC3C,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,aAAa,EAAE,CAAC;QAC7C,CAAC,CAAA,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"group-object-privilege.spec.js","sourceRoot":"","sources":["../../../../../__tests__/unit/components/group-object-privilege/group-object-privilege.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2IAAqI;AACrI,qHAAgH;AAEhH,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,IAAI,oBAA0C,CAAC;IAE/C,UAAU,CAAC,GAAG,EAAE;QACd,oBAAoB,GAAG,IAAI,6CAAoB,EAAE,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;QAC3D,MAAM,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,6CAAoB,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;QAC3C,MAAM,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,MAAM,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC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CAAC,6CAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CACxF,gCAAgC,CACjC,CAAC;QACJ,CAAC,CAAA,CAAC,CAAC;QAEH,EAAE,CAAC,kGAAkG,EAAE,GAAS,EAAE;YAChH,MAAM,MAAM,GAAG,MAAM,6CAAoB,CAAC,IAAI,EAAE,CAAC;YAEjD,MAAM,CAAC,MAAM,CAAC,CAAC,cAAc,CAAC,6CAAoB,CAAC,CAAC;YACpD,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,aAAa,EAAE,CAAC;YACtD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,aAAa,EAAE,CAAC;YACzC,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,aAAa,EAAE,CAAC;YACjD,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,aAAa,EAAE,CAAC;YACxC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,aAAa,EAAE,CAAC;YAC1C,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,aAAa,EAAE,CAAC;YACzC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,aAAa,EAAE,CAAC;YACzC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,aAAa,EAAE,CAAC;YAC3C,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,aAAa,EAAE,CAAC;QAC7C,CAAC,CAAA,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -20,7 +20,7 @@ describe('GroupPrivilege', () => {
20
20
  const mockGroupPrivilegeAttr = {
21
21
  GroupPrivilegeId: 1,
22
22
  GroupCode: 'group1',
23
- PrivilegeCode: 'privilege1',
23
+ SystemPrivilegeId: 'privilege1',
24
24
  Status: 'active',
25
25
  CreatedAt: new Date(),
26
26
  UpdatedAt: new Date(),
@@ -38,7 +38,7 @@ describe('GroupPrivilege', () => {
38
38
  expect(groupPrivilege).toBeInstanceOf(group_privilege_1.GroupPrivilege);
39
39
  expect(groupPrivilege.GroupPrivilegeId).toEqual(mockGroupPrivilegeAttr.GroupPrivilegeId);
40
40
  expect(groupPrivilege.GroupCode).toEqual(mockGroupPrivilegeAttr.GroupCode);
41
- expect(groupPrivilege.PrivilegeCode).toEqual(mockGroupPrivilegeAttr.PrivilegeCode);
41
+ expect(groupPrivilege.SystemPrivilegeId).toEqual(mockGroupPrivilegeAttr.SystemPrivilegeId);
42
42
  expect(groupPrivilege.Status).toEqual(mockGroupPrivilegeAttr.Status);
43
43
  expect(groupPrivilege.CreatedAt).toEqual(mockGroupPrivilegeAttr.CreatedAt);
44
44
  expect(groupPrivilege.UpdatedAt).toEqual(mockGroupPrivilegeAttr.UpdatedAt);
@@ -60,7 +60,7 @@ describe('GroupPrivilege', () => {
60
60
  expect(groupPrivilege).toBeInstanceOf(group_privilege_1.GroupPrivilege);
61
61
  expect(groupPrivilege.GroupPrivilegeId).toBeUndefined();
62
62
  expect(groupPrivilege.GroupCode).toBeUndefined();
63
- expect(groupPrivilege.PrivilegeCode).toBeUndefined();
63
+ expect(groupPrivilege.SystemPrivilegeId).toBeUndefined();
64
64
  expect(groupPrivilege.Status).toBeUndefined();
65
65
  expect(groupPrivilege.CreatedAt).toBeUndefined();
66
66
  expect(groupPrivilege.UpdatedAt).toBeUndefined();
@@ -1 +1 @@
1
- {"version":3,"file":"group-privilege.spec.js","sourceRoot":"","sources":["../../../../../__tests__/unit/components/group-privilege/group-privilege.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,gGAA4F;AAC5F,sHAAiH;AACjH,4CAA4C;AAE5C,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2CAA2C,EAAE,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AC9C,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,aAAa,EAAE,CAAC;QACjD,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,aAAa,EAAE,CAAC;QACjD,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,aAAa,EAAE,CAAC;QACnD,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,aAAa,EAAE,CAAC;IACrD,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"group-privilege.spec.js","sourceRoot":"","sources":["../../../../../__tests__/unit/components/group-privilege/group-privilege.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,gGAA4F;AAC5F,sHAAiH;AACjH,4CAA4C;AAE5C,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2CAA2C,EAAE,GAAS,EAAE;QACzD,MAAM,sBAAsB,GAAG;YAC7B,gBAAgB,EAAE,CAAC;YACnB,SAAS,EAAE,QAAQ;YACnB,iBAAiB,EAAE,YAAY;YAC/B,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,SAAS,EAAE,IAAI,IAAI,EAAE;YACrB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,CAAC;SACf,CAAC;QAEF,MAAM,WAAW,GAAG,IAAI;aACrB,KAAK,CAAC,qDAAwB,CAAC,SAAS,EAAE,SAAS,CAAC;aACpD,qBAAqB,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,sBAAsB,CAAC,EAAS,CAAC,CAAC;QAE5F,MAAM,cAAc,GAAG,MAAM,gCAAc,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAE1D,MAAM,CAAC,WAAW,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O,CAAC,OAAO,CAAC,oBAAU,CAAC,CAAC;QAEvE,MAAM,CAAC,WAAW,CAAC,CAAC,cAAc,CAAC;YACjC,KAAK,EAAE,EAAE,gBAAgB,EAAE,CAAC,EAAE;YAC9B,WAAW,EAAE,IAAI;SAClB,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,uCAAuC,EAAE,GAAS,EAAE;QACrD,MAAM,cAAc,GAAG,MAAM,gCAAc,CAAC,IAAI,EAAE,CAAC;QAEnD,MAAM,CAAC,cAAc,CAAC,CAAC,cAAc,CAAC,gCAAc,CAAC,CAAC;QACtD,MAAM,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,aAAa,EAAE,CAAC;QACxD,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,aAAa,EAAE,CAAC;QACjD,MAAM,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,aAAa,EAAE,CAAC;QACzD,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,CAAC;QAC9C,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,aAAa,EAAE,CAAC;QACjD,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,aAAa,EAAE,CAAC;QACjD,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,aAAa,EAAE,CAAC;QACnD,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,aAAa,EAAE,CAAC;IACrD,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -17,7 +17,7 @@ describe('UserObjectPrivilege', () => {
17
17
  const userObjectPrivilegeAttr = {
18
18
  ObjectPrivilegeId: 1,
19
19
  UserId: 1,
20
- PrivilegeCode: 'code1',
20
+ SystemPrivilegeId: 'code1',
21
21
  ObjectId: 'object1',
22
22
  ObjectType: 'type1',
23
23
  CreatedAt: new Date(),
@@ -37,7 +37,7 @@ describe('UserObjectPrivilege', () => {
37
37
  expect(userObjectPrivilege).toBeInstanceOf(user_object_privilege_1.UserObjectPrivilege);
38
38
  expect(userObjectPrivilege.ObjectPrivilegeId).toBe(userObjectPrivilegeAttr.ObjectPrivilegeId);
39
39
  expect(userObjectPrivilege.UserId).toBe(userObjectPrivilegeAttr.UserId);
40
- expect(userObjectPrivilege.PrivilegeCode).toBe(userObjectPrivilegeAttr.PrivilegeCode);
40
+ expect(userObjectPrivilege.SystemPrivilegeId).toBe(userObjectPrivilegeAttr.SystemPrivilegeId);
41
41
  expect(userObjectPrivilege.ObjectId).toBe(userObjectPrivilegeAttr.ObjectId);
42
42
  expect(userObjectPrivilege.ObjectType).toBe(userObjectPrivilegeAttr.ObjectType);
43
43
  expect(userObjectPrivilege.CreatedAt).toBe(userObjectPrivilegeAttr.CreatedAt);
@@ -60,7 +60,7 @@ describe('UserObjectPrivilege', () => {
60
60
  expect(result).toBeInstanceOf(user_object_privilege_1.UserObjectPrivilege);
61
61
  expect(result.ObjectPrivilegeId).toBe(userObjectPrivilegeAttr.ObjectPrivilegeId);
62
62
  expect(result.UserId).toBe(userObjectPrivilegeAttr.UserId);
63
- expect(result.PrivilegeCode).toBe(userObjectPrivilegeAttr.PrivilegeCode);
63
+ expect(result.SystemPrivilegeId).toBe(userObjectPrivilegeAttr.SystemPrivilegeId);
64
64
  expect(result.ObjectId).toBe(userObjectPrivilegeAttr.ObjectId);
65
65
  expect(result.ObjectType).toBe(userObjectPrivilegeAttr.ObjectType);
66
66
  expect(result.CreatedAt).toBe(userObjectPrivilegeAttr.CreatedAt);
@@ -1 +1 @@
1
- {"version":3,"file":"user-object-privilege.spec.js","sourceRoot":"","sources":["../../../../../__tests__/unit/components/user-object-privilege/user-object-privilege.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,kHAA6G;AAC7G,wIAAkI;AAClI,4CAA4C;AAE5C,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,mBAAwC,CAAC;IAC7C,MAAM,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,MAAM,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC;YACzE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC;YAC/D,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;YACnE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;YACjE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;YACjE,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC;YACrE,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC;QACvE,CAAC,CAAA,CAAC,CAAC;QAEH,EAAE,CAAC,6DAA6D,EAAE,GAAS,EAAE;YAC3E,IAAI;iBACD,KAAK,CAAC,gEAA6B,CAAC,SAAS,EAAE,SAAS,CAAC;iBACzD,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAE/B,MAAM,MAAM,CAAC,2CAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,oBAAU,CAAC,CAAC;QAC9E,CAAC,CAAA,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"user-object-privilege.spec.js","sourceRoot":"","sources":["../../../../../__tests__/unit/components/user-object-privilege/user-object-privilege.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,kHAA6G;AAC7G,wIAAkI;AAClI,4CAA4C;AAE5C,QAAQ,CAAC,qBAAqB,EAAE,GAA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: 'privilege1',
21
21
  Status: 'active',
22
22
  CreatedById: 1,
23
23
  CreatedAt: new Date(),
@@ -36,7 +36,7 @@ describe('UserPrivilege', () => {
36
36
  expect(userPrivilege).toBeInstanceOf(user_privilege_1.UserPrivilege);
37
37
  expect(userPrivilege.UserPrivilegeId).toBe(userPrivilegeAttr.UserPrivilegeId);
38
38
  expect(userPrivilege.UserId).toBe(userPrivilegeAttr.UserId);
39
- expect(userPrivilege.PrivilegeCode).toBe(userPrivilegeAttr.PrivilegeCode);
39
+ expect(userPrivilege.SystemPrivilegeId).toBe(userPrivilegeAttr.SystemPrivilegeId);
40
40
  expect(userPrivilege.Status).toBe(userPrivilegeAttr.Status);
41
41
  expect(userPrivilege.CreatedById).toBe(userPrivilegeAttr.CreatedById);
42
42
  expect(userPrivilege.CreatedAt).toBe(userPrivilegeAttr.CreatedAt);
@@ -58,7 +58,7 @@ describe('UserPrivilege', () => {
58
58
  expect(result).toBeInstanceOf(user_privilege_1.UserPrivilege);
59
59
  expect(result.UserPrivilegeId).toBe(userPrivilegeAttr.UserPrivilegeId);
60
60
  expect(result.UserId).toBe(userPrivilegeAttr.UserId);
61
- expect(result.PrivilegeCode).toBe(userPrivilegeAttr.PrivilegeCode);
61
+ expect(result.SystemPrivilegeId).toBe(userPrivilegeAttr.SystemPrivilegeId);
62
62
  expect(result.Status).toBe(userPrivilegeAttr.Status);
63
63
  expect(result.CreatedById).toBe(userPrivilegeAttr.CreatedById);
64
64
  expect(result.CreatedAt).toBe(userPrivilegeAttr.CreatedAt);
@@ -1 +1 @@
1
- {"version":3,"file":"user-privilege.spec.js","sourceRoot":"","sources":["../../../../../__tests__/unit/components/user-privilege/user-privilege.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6FAAyF;AACzF,mHAA8G;AAC9G,4CAA4C;AAE5C,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,aAA4B,CAAC;IACjC,MAAM,iBAAiB,GAAG;QACxB,eAAe,EAA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AC;YAC/D,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;YAC3D,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;YAC/D,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;QAC7D,CAAC,CAAA,CAAC,CAAC;QAEH,EAAE,CAAC,2DAA2D,EAAE,GAAS,EAAE;YACzE,IAAI;iBACD,KAAK,CAAC,mDAAuB,CAAC,SAAS,EAAE,SAAS,CAAC;iBACnD,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAE/B,MAAM,MAAM,CAAC,8BAAa,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,oBAAU,CAAC,CAAC;QACxE,CAAC,CAAA,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"user-privilege.spec.js","sourceRoot":"","sources":["../../../../../__tests__/unit/components/user-privilege/user-privilege.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6FAAyF;AACzF,mHAA8G;AAC9G,4CAA4C;AAE5C,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,aAA4B,CAAC;IACjC,MAAM,iBAAiB,GAAG;QACxB,eAAe,EAAE,CAAC;QAClB,MAAM,EAAE,CAAC;QACT,iBAAiB,EAAE,YAAY;QAC/B,MAAM,EAAE,QAAQ;QAChB,WAAW,EAAE,CAAC;QACd,SAAS,EAAE,IAAI,IAAI,EAAE;QACrB,WAAW,EAAE,CAAC;QACd,SAAS,EAAE,IAAI,IAAI,EAAE;KACtB,CAAC;IAEF,UAAU,CAAC,GAAG,EAAE;QACd,aAAa,GAAG,IAAK,8BAAqB,CAAC,iBA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CAAC,CAAC;QAC7D,CAAC,CAAA,CAAC,CAAC;QAEH,EAAE,CAAC,2DAA2D,EAAE,GAAS,EAAE;YACzE,IAAI;iBACD,KAAK,CAAC,mDAAuB,CAAC,SAAS,EAAE,SAAS,CAAC;iBACnD,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAE/B,MAAM,MAAM,CAAC,8BAAa,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,oBAAU,CAAC,CAAC;QACxE,CAAC,CAAA,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,10 +1,10 @@
1
- import { ObjectBase } from '@tomei/general';
1
+ import { TreeNodeBase } from '@tomei/general';
2
2
  import { GroupTypeEnum } from 'enum';
3
3
  import { LoginUser } from '../login-user/login-user';
4
4
  import { IGroupSearchAttr } from '../../interfaces/group-search-attr.interface';
5
5
  import { SystemPrivilege } from '../system-privilege/system-privilege';
6
6
  import { GroupObjectPrivilege } from '../group-object-privilege/group-object-privilege';
7
- export declare class Group extends ObjectBase {
7
+ export declare class Group extends TreeNodeBase<Group> {
8
8
  ObjectId: string;
9
9
  ObjectName: string;
10
10
  TableName: 'sso_Group';
@@ -17,6 +17,9 @@ export declare class Group extends ObjectBase {
17
17
  InheritParentSystemAccessYN: string;
18
18
  Status: string;
19
19
  ParentGroup?: any;
20
+ _Path: string;
21
+ isChildrenLoaded: boolean;
22
+ isParentLoaded: boolean;
20
23
  private _CreatedById;
21
24
  private _CreatedAt;
22
25
  private _UpdatedById;
@@ -34,22 +37,30 @@ export declare class Group extends ObjectBase {
34
37
  get UpdatedAt(): Date;
35
38
  private constructor();
36
39
  static init(dbTransaction: any, GroupCode?: string): Promise<Group>;
40
+ loadChildren(dbTransaction?: any): Promise<void>;
41
+ loadParent(dbTransaction?: any): Promise<void>;
42
+ isLeaf(dbTransaction?: any): Promise<boolean>;
43
+ getPath(dbTransaction?: any): Promise<string>;
44
+ protected updatePath(dbTransaction?: any): Promise<void>;
45
+ setParent(parent: Group, dbTransaction?: any): Promise<void>;
46
+ getPathDetail(dbTransaction?: any): Promise<Group[]>;
37
47
  static findAll(page: number, row: number, dbTransaction: any, loginUser: LoginUser, search?: IGroupSearchAttr): Promise<{
38
48
  Count: number;
39
49
  Groups: Group[];
40
50
  }>;
41
51
  static create(loginUser: LoginUser, dbTransaction: any, group: Group): Promise<Group>;
42
52
  protected static checkDuplicateGroupCode(dbTransaction: any, GroupCode: any): Promise<void>;
53
+ private updateChildrenPath;
43
54
  update(loginUser: LoginUser, dbTransaction: any, group: {
44
55
  GroupCode: string;
45
56
  NewGroupCode?: string;
46
- Name?: string;
47
- Description?: string;
48
- Type?: GroupTypeEnum;
49
- ParentGroupCode?: string;
50
- InheritParentPrivilegeYN?: string;
51
- InheritParentSystemAccessYN?: string;
52
- Status?: string;
57
+ Name: string;
58
+ Description: string;
59
+ Type: GroupTypeEnum;
60
+ ParentGroupCode: string;
61
+ InheritParentPrivilegeYN: string;
62
+ InheritParentSystemAccessYN: string;
63
+ Status: string;
53
64
  }): Promise<Group>;
54
65
  static delete(loginUser: LoginUser, dbTransaction: any, GroupCode: string): Promise<{
55
66
  Message: string;
@@ -82,13 +93,13 @@ export declare class Group extends ObjectBase {
82
93
  Status?: string;
83
94
  PrivilegeCode?: string;
84
95
  }): Promise<SystemPrivilege[]>;
85
- static assignGroupObjectPrivilege(loginUser: LoginUser, dbTransaction: any, GroupCode: string, GroupObjectPrivileges: GroupObjectPrivilege[]): Promise<string>;
96
+ static assignGroupObjectPrivilege(loginUser: LoginUser, dbTransaction: any, GroupCode: string, GroupObjectPrivileges: GroupObjectPrivilege[], SystemCode: string): Promise<string>;
86
97
  static getGroubObjectPrivileges(loginUser: LoginUser, dbTransaction: any, GroupCode: string, search?: {
87
98
  PrivilegeCode?: string;
88
99
  ObjectType?: string;
89
100
  ObjectId?: string;
90
101
  SystemCode?: string;
91
102
  }): Promise<SystemPrivilege[]>;
92
- static assignGroupPrivileges(loginUser: LoginUser, dbTransaction: any, GroupCode: string, PrivilegeCodes: string[]): Promise<string>;
93
- static deleteGroupPrivilege(loginUser: LoginUser, dbTransaction: any, GroupCode: string, PrivilegeCodes: string[]): Promise<string>;
103
+ static assignGroupPrivileges(loginUser: LoginUser, dbTransaction: any, GroupCode: string, SystemPrivilegeIds: string[]): Promise<string>;
104
+ static deleteGroupPrivilege(loginUser: LoginUser, dbTransaction: any, GroupCode: string, SystemPrivilegeIds: string[]): Promise<string>;
94
105
  }