@tomei/sso 0.33.7 → 0.34.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. package/.commitlintrc.json +22 -22
  2. package/.eslintrc +16 -16
  3. package/.eslintrc.js +35 -35
  4. package/.gitlab-ci.yml +16 -16
  5. package/.husky/commit-msg +15 -15
  6. package/.husky/pre-commit +7 -7
  7. package/.prettierrc +4 -4
  8. package/Jenkinsfile +57 -57
  9. package/README.md +23 -23
  10. package/__tests__/unit/components/group/group.spec.ts +79 -79
  11. package/__tests__/unit/components/group-object-privilege/group-object-privilege.spec.ts +88 -88
  12. package/__tests__/unit/components/group-privilege/group-privilege.spec.ts +68 -68
  13. package/__tests__/unit/components/group-reporting-user/group-reporting-user.spec.ts +66 -66
  14. package/__tests__/unit/components/group-system-access/group-system-access.spec.ts +83 -83
  15. package/__tests__/unit/components/login-user/l.spec.ts +746 -746
  16. package/__tests__/unit/components/login-user/login.spec.ts +1064 -1064
  17. package/__tests__/unit/components/password-hash/password-hash.service.spec.ts +31 -31
  18. package/__tests__/unit/components/system/system.spec.ts +254 -254
  19. package/__tests__/unit/components/system-privilege/system-privilege.spec.ts +83 -83
  20. package/__tests__/unit/components/user-group/user-group.spec.ts +86 -86
  21. package/__tests__/unit/components/user-object-privilege/user-object-privilege.spec.ts +78 -78
  22. package/__tests__/unit/components/user-privilege/user-privilege.spec.ts +72 -72
  23. package/__tests__/unit/components/user-system-access/user-system-access.spec.ts +89 -89
  24. package/__tests__/unit/redis-client/redis.service.spec.ts +23 -23
  25. package/__tests__/unit/session/session.service.spec.ts +47 -47
  26. package/__tests__/unit/system-privilege/system-privilage.spec.ts +91 -91
  27. package/coverage/clover.xml +1452 -1452
  28. package/coverage/coverage-final.json +47 -47
  29. package/coverage/lcov-report/base.css +224 -224
  30. package/coverage/lcov-report/block-navigation.js +87 -87
  31. package/coverage/lcov-report/components/group/group.repository.ts.html +117 -117
  32. package/coverage/lcov-report/components/group/group.ts.html +327 -327
  33. package/coverage/lcov-report/components/group/index.html +130 -130
  34. package/coverage/lcov-report/components/group-object-privilege/group-object-privilege.repository.ts.html +117 -117
  35. package/coverage/lcov-report/components/group-object-privilege/group-object-privilege.ts.html +321 -321
  36. package/coverage/lcov-report/components/group-object-privilege/index.html +130 -130
  37. package/coverage/lcov-report/components/group-privilege/group-privilege.repository.ts.html +117 -117
  38. package/coverage/lcov-report/components/group-privilege/group-privilege.ts.html +303 -303
  39. package/coverage/lcov-report/components/group-privilege/index.html +130 -130
  40. package/coverage/lcov-report/components/group-reporting-user/group-reporting-user.repository.ts.html +117 -117
  41. package/coverage/lcov-report/components/group-reporting-user/group-reporting-user.ts.html +327 -327
  42. package/coverage/lcov-report/components/group-reporting-user/index.html +130 -130
  43. package/coverage/lcov-report/components/group-system-access/group-system-access.repository.ts.html +117 -117
  44. package/coverage/lcov-report/components/group-system-access/group-system-access.ts.html +309 -309
  45. package/coverage/lcov-report/components/group-system-access/index.html +130 -130
  46. package/coverage/lcov-report/components/login-history/index.html +115 -115
  47. package/coverage/lcov-report/components/login-history/login-history.repository.ts.html +117 -117
  48. package/coverage/lcov-report/components/login-user/index.html +130 -130
  49. package/coverage/lcov-report/components/login-user/login-user.ts.html +5007 -5007
  50. package/coverage/lcov-report/components/login-user/user.repository.ts.html +117 -117
  51. package/coverage/lcov-report/components/password-hash/index.html +115 -115
  52. package/coverage/lcov-report/components/password-hash/password-hash.service.ts.html +126 -126
  53. package/coverage/lcov-report/components/system/index.html +130 -130
  54. package/coverage/lcov-report/components/system/system.repository.ts.html +117 -117
  55. package/coverage/lcov-report/components/system/system.ts.html +909 -909
  56. package/coverage/lcov-report/components/system-privilege/index.html +130 -130
  57. package/coverage/lcov-report/components/system-privilege/system-privilege.repository.ts.html +120 -120
  58. package/coverage/lcov-report/components/system-privilege/system-privilege.ts.html +390 -390
  59. package/coverage/lcov-report/components/user-group/index.html +130 -130
  60. package/coverage/lcov-report/components/user-group/user-group.repository.ts.html +117 -117
  61. package/coverage/lcov-report/components/user-group/user-group.ts.html +354 -354
  62. package/coverage/lcov-report/components/user-object-privilege/index.html +130 -130
  63. package/coverage/lcov-report/components/user-object-privilege/user-object-privilege.repository.ts.html +117 -117
  64. package/coverage/lcov-report/components/user-object-privilege/user-object-privilege.ts.html +312 -312
  65. package/coverage/lcov-report/components/user-privilege/index.html +130 -130
  66. package/coverage/lcov-report/components/user-privilege/user-privilege.repository.ts.html +117 -117
  67. package/coverage/lcov-report/components/user-privilege/user-privilege.ts.html +306 -306
  68. package/coverage/lcov-report/components/user-system-access/index.html +130 -130
  69. package/coverage/lcov-report/components/user-system-access/user-system-access.repository.ts.html +117 -117
  70. package/coverage/lcov-report/components/user-system-access/user-system-access.ts.html +312 -312
  71. package/coverage/lcov-report/enum/group-type.enum.ts.html +108 -108
  72. package/coverage/lcov-report/enum/index.html +160 -160
  73. package/coverage/lcov-report/enum/index.ts.html +93 -93
  74. package/coverage/lcov-report/enum/user-status.enum.ts.html +105 -105
  75. package/coverage/lcov-report/enum/yn.enum.ts.html +96 -96
  76. package/coverage/lcov-report/index.html +370 -370
  77. package/coverage/lcov-report/models/group-object-privilege.entity.ts.html +333 -333
  78. package/coverage/lcov-report/models/group-privilege.entity.ts.html +315 -315
  79. package/coverage/lcov-report/models/group-reporting-user.entity.ts.html +339 -339
  80. package/coverage/lcov-report/models/group-system-access.entity.ts.html +324 -324
  81. package/coverage/lcov-report/models/group.entity.ts.html +435 -435
  82. package/coverage/lcov-report/models/index.html +310 -310
  83. package/coverage/lcov-report/models/login-history.entity.ts.html +252 -252
  84. package/coverage/lcov-report/models/staff.entity.ts.html +411 -411
  85. package/coverage/lcov-report/models/system-privilege.entity.ts.html +354 -354
  86. package/coverage/lcov-report/models/system.entity.ts.html +423 -423
  87. package/coverage/lcov-report/models/user-group.entity.ts.html +354 -354
  88. package/coverage/lcov-report/models/user-object-privilege.entity.ts.html +330 -330
  89. package/coverage/lcov-report/models/user-privilege.entity.ts.html +315 -315
  90. package/coverage/lcov-report/models/user-system-access.entity.ts.html +315 -315
  91. package/coverage/lcov-report/models/user.entity.ts.html +522 -522
  92. package/coverage/lcov-report/prettify.css +1 -1
  93. package/coverage/lcov-report/prettify.js +2 -2
  94. package/coverage/lcov-report/redis-client/index.html +115 -115
  95. package/coverage/lcov-report/redis-client/redis.service.ts.html +240 -240
  96. package/coverage/lcov-report/session/index.html +115 -115
  97. package/coverage/lcov-report/session/session.service.ts.html +246 -246
  98. package/coverage/lcov-report/sorter.js +196 -196
  99. package/coverage/lcov.info +2490 -2490
  100. package/coverage/test-report.xml +128 -128
  101. package/create-sso-user.sql +39 -39
  102. package/dist/__tests__/unit/components/group-privilege/group-privilege.test.d.ts +1 -0
  103. package/dist/__tests__/unit/components/group-privilege/group-privilege.test.js +71 -0
  104. package/dist/__tests__/unit/components/group-privilege/group-privilege.test.js.map +1 -0
  105. package/dist/__tests__/unit/components/login-user/login-user.spec.d.ts +0 -0
  106. package/dist/__tests__/unit/components/login-user/login-user.spec.js +6 -0
  107. package/dist/__tests__/unit/components/login-user/login-user.spec.js.map +1 -0
  108. package/dist/src/components/group/group.d.ts +27 -0
  109. package/dist/src/components/group/group.js +438 -4
  110. package/dist/src/components/group/group.js.map +1 -1
  111. package/dist/src/components/group-object-privilege/group-object-privilege.d.ts +3 -0
  112. package/dist/src/components/group-object-privilege/group-object-privilege.js +108 -0
  113. package/dist/src/components/group-object-privilege/group-object-privilege.js.map +1 -1
  114. package/dist/src/components/group-object-privilege/group-object-privilege.repository.d.ts +1 -0
  115. package/dist/src/components/group-object-privilege/group-object-privilege.repository.js +22 -0
  116. package/dist/src/components/group-object-privilege/group-object-privilege.repository.js.map +1 -1
  117. package/dist/src/components/group-privilege/group-privilege.d.ts +2 -0
  118. package/dist/src/components/group-privilege/group-privilege.js +10 -0
  119. package/dist/src/components/group-privilege/group-privilege.js.map +1 -1
  120. package/dist/src/components/group-privilege/group-privilege.repository.d.ts +1 -0
  121. package/dist/src/components/group-privilege/group-privilege.repository.js +22 -0
  122. package/dist/src/components/group-privilege/group-privilege.repository.js.map +1 -1
  123. package/dist/src/components/login-user/login-user.d.ts +1 -1
  124. package/dist/src/components/system-privilege/system-privilege.d.ts +7 -0
  125. package/dist/src/components/system-privilege/system-privilege.js +54 -1
  126. package/dist/src/components/system-privilege/system-privilege.js.map +1 -1
  127. package/dist/src/interfaces/group-object-privilege.interface.d.ts +1 -1
  128. package/dist/src/interfaces/group-privilege.interface.d.ts +1 -1
  129. package/dist/src/interfaces/system-privilege-search.interface.d.ts +5 -0
  130. package/dist/src/interfaces/system-privilege-search.interface.js +3 -0
  131. package/dist/src/interfaces/system-privilege-search.interface.js.map +1 -0
  132. package/dist/src/models/group-object-privilege.entity.js +1 -0
  133. package/dist/src/models/group-object-privilege.entity.js.map +1 -1
  134. package/dist/src/models/group-privilege.entity.js +1 -0
  135. package/dist/src/models/group-privilege.entity.js.map +1 -1
  136. package/dist/src/models/group-reporting-user.entity.js +1 -0
  137. package/dist/src/models/group-reporting-user.entity.js.map +1 -1
  138. package/dist/src/models/user-object-privilege.entity.js +1 -0
  139. package/dist/src/models/user-object-privilege.entity.js.map +1 -1
  140. package/dist/src/models/user-privilege.entity.js +1 -0
  141. package/dist/src/models/user-privilege.entity.js.map +1 -1
  142. package/dist/src/models/user-system-access.entity.js +1 -0
  143. package/dist/src/models/user-system-access.entity.js.map +1 -1
  144. package/dist/tsconfig.tsbuildinfo +1 -1
  145. package/jest.config.js +14 -14
  146. package/migrations/20240314080602-create-user-table.js +108 -108
  147. package/migrations/20240314080603-create-user-group-table.js +85 -85
  148. package/migrations/20240314080604-create-user-user-group-table.js +55 -55
  149. package/migrations/20240314080605-create-login-history-table.js +53 -53
  150. package/migrations/20240527064925-create-system-table.js +78 -78
  151. package/migrations/20240527064926-create-system-privilege-table.js +67 -67
  152. package/migrations/20240527065342-create-group-table.js +89 -89
  153. package/migrations/20240527065633-create-group-reporting-user-table.js +76 -76
  154. package/migrations/20240528011551-create-group-system-access-table.js +72 -72
  155. package/migrations/20240528023018-user-system-access-table.js +75 -75
  156. package/migrations/20240528032229-user-privilege-table.js +75 -75
  157. package/migrations/20240528063003-create-group-privilege-table.js +75 -75
  158. package/migrations/20240528063051-create-group-object-privilege-table.js +84 -84
  159. package/migrations/20240528063107-create-user-object-privilege-table.js +83 -83
  160. package/package.json +89 -89
  161. package/sampledotenv +7 -7
  162. package/sonar-project.properties +22 -22
  163. package/src/components/group/group.ts +742 -4
  164. package/src/components/group-object-privilege/group-object-privilege.repository.ts +14 -0
  165. package/src/components/group-object-privilege/group-object-privilege.ts +196 -0
  166. package/src/components/group-privilege/group-privilege.repository.ts +11 -0
  167. package/src/components/group-privilege/group-privilege.ts +11 -0
  168. package/src/components/system-privilege/system-privilege.ts +89 -2
  169. package/src/interfaces/group-object-privilege.interface.ts +1 -1
  170. package/src/interfaces/group-privilege.interface.ts +1 -1
  171. package/src/interfaces/system-privilege-search.interface.ts +5 -0
  172. package/src/models/group-object-privilege.entity.ts +1 -0
  173. package/src/models/group-privilege.entity.ts +1 -0
  174. package/src/models/group-reporting-user.entity.ts +1 -0
  175. package/src/models/user-object-privilege.entity.ts +1 -0
  176. package/src/models/user-privilege.entity.ts +1 -0
  177. package/src/models/user-system-access.entity.ts +1 -0
  178. package/tsconfig.build.json +5 -5
  179. package/tsconfig.json +22 -22
@@ -19,6 +19,13 @@ const group_system_access_repository_1 = require("../group-system-access/group-s
19
19
  const system_entity_1 = require("../../models/system.entity");
20
20
  const group_system_access_1 = require("../group-system-access");
21
21
  const redis_service_1 = require("../../redis-client/redis.service");
22
+ const system_privilege_entity_1 = require("../../models/system-privilege.entity");
23
+ const group_privilege_repository_1 = require("../group-privilege/group-privilege.repository");
24
+ const system_privilege_1 = require("../system-privilege/system-privilege");
25
+ const group_privilege_entity_1 = require("../../models/group-privilege.entity");
26
+ const group_object_privilege_repository_1 = require("../group-object-privilege/group-object-privilege.repository");
27
+ const group_object_privilege_1 = require("../group-object-privilege/group-object-privilege");
28
+ const group_privilege_1 = require("../group-privilege/group-privilege");
22
29
  class Group extends general_1.ObjectBase {
23
30
  get GroupCode() {
24
31
  return this.ObjectId;
@@ -355,7 +362,7 @@ class Group extends general_1.ObjectBase {
355
362
  }
356
363
  try {
357
364
  const group = yield Group.init(dbTransaction, GroupCode);
358
- if (group.InheritParentSystemAccessYN !== 'Y' && !group.ParentGroupCode) {
365
+ if (group.InheritParentSystemAccessYN !== 'Y' || !group.ParentGroupCode) {
359
366
  return [];
360
367
  }
361
368
  else {
@@ -379,15 +386,15 @@ class Group extends general_1.ObjectBase {
379
386
  }
380
387
  try {
381
388
  if (SystemCodes.length > 0) {
382
- for (let i = 0; i < SystemCodes.length; i++) {
383
- const CurrentGroupSystemAccess = yield Group.getSystemAccesses(loginUser, dbTransaction, GroupCode, 1, Number.MAX_SAFE_INTEGER, { SystemCode: SystemCodes[i] });
389
+ for (const element of SystemCodes) {
390
+ const CurrentGroupSystemAccess = yield Group.getSystemAccesses(loginUser, dbTransaction, GroupCode, 1, Number.MAX_SAFE_INTEGER, { SystemCode: element });
384
391
  if ((CurrentGroupSystemAccess === null || CurrentGroupSystemAccess === void 0 ? void 0 : CurrentGroupSystemAccess.count) > 0) {
385
392
  throw new general_1.ClassError('Group', 'GroupErrMsg08', 'System access already exists');
386
393
  }
387
394
  const groupSystemAccess = yield group_system_access_1.GroupSystemAccess.init(dbTransaction);
388
395
  groupSystemAccess.createId();
389
396
  groupSystemAccess.GroupCode = GroupCode;
390
- groupSystemAccess.SystemCode = SystemCodes[i];
397
+ groupSystemAccess.SystemCode = element;
391
398
  groupSystemAccess.Status = 'Active';
392
399
  groupSystemAccess.CreatedById = +loginUser.ObjectId;
393
400
  groupSystemAccess.CreatedAt = new Date();
@@ -463,8 +470,435 @@ class Group extends general_1.ObjectBase {
463
470
  }
464
471
  });
465
472
  }
473
+ static getSystemPrivileges(loginUser, dbTransaction, GroupCode, search) {
474
+ return __awaiter(this, void 0, void 0, function* () {
475
+ try {
476
+ const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
477
+ const isPrivileged = yield loginUser.checkPrivileges(systemCode, 'GROUP_PRIVILEGE_VIEW');
478
+ if (!isPrivileged) {
479
+ throw new general_1.ClassError('Group', 'GroupErrMsg11', 'You do not have the privilege to view group privileges');
480
+ }
481
+ yield Group.init(dbTransaction, GroupCode);
482
+ let where = {
483
+ GroupCode,
484
+ };
485
+ let systemWhere = {};
486
+ if (search) {
487
+ if (search.Status) {
488
+ where = Object.assign(Object.assign({}, where), { Status: search.Status });
489
+ }
490
+ if (search.SystemCode) {
491
+ systemWhere = {
492
+ SystemCode: {
493
+ [sequelize_1.Op.substring]: search.SystemCode,
494
+ },
495
+ };
496
+ }
497
+ }
498
+ const groupOwnPrivileges = yield Group._GroupPrivilegeRepo.findAll({
499
+ where,
500
+ include: [
501
+ {
502
+ model: system_privilege_entity_1.default,
503
+ where: systemWhere,
504
+ },
505
+ ],
506
+ transaction: dbTransaction,
507
+ });
508
+ const privileges = [];
509
+ for (const groupPrivilege of groupOwnPrivileges) {
510
+ const systemPrivilege = yield system_privilege_1.SystemPrivilege.init(dbTransaction);
511
+ systemPrivilege.setAttributes(groupPrivilege.Privilege.get({ plain: true }));
512
+ privileges.push(systemPrivilege);
513
+ }
514
+ return privileges;
515
+ }
516
+ catch (error) {
517
+ throw error;
518
+ }
519
+ });
520
+ }
521
+ static getInheritedSystemPrivileges(dbTransaction, GroupCode, search) {
522
+ return __awaiter(this, void 0, void 0, function* () {
523
+ try {
524
+ const where = {
525
+ GroupCode,
526
+ };
527
+ let groupPrivilegeWhere = {};
528
+ let systemPrivilegeWhere = {};
529
+ if (search) {
530
+ if (search.Status) {
531
+ groupPrivilegeWhere = {
532
+ Status: search.Status,
533
+ };
534
+ }
535
+ if (search.SystemCode) {
536
+ systemPrivilegeWhere = {
537
+ SystemCode: {
538
+ [sequelize_1.Op.substring]: search.SystemCode,
539
+ },
540
+ };
541
+ }
542
+ }
543
+ const group = yield Group._Repo.findOne({
544
+ where: where,
545
+ include: [
546
+ {
547
+ model: group_privilege_entity_1.default,
548
+ where: groupPrivilegeWhere,
549
+ separate: true,
550
+ include: [
551
+ {
552
+ model: system_privilege_entity_1.default,
553
+ where: systemPrivilegeWhere,
554
+ },
555
+ ],
556
+ },
557
+ ],
558
+ transaction: dbTransaction,
559
+ });
560
+ const objectWhere = {
561
+ GroupCode,
562
+ };
563
+ const systemWhere = {};
564
+ if (search) {
565
+ Object.entries(search).forEach(([key, value]) => {
566
+ if (key === 'SystemCode') {
567
+ systemWhere[key] = {
568
+ [sequelize_1.Op.substring]: value,
569
+ };
570
+ }
571
+ else {
572
+ objectWhere[key] = {
573
+ [sequelize_1.Op.substring]: value,
574
+ };
575
+ }
576
+ });
577
+ }
578
+ const groupObjectPrivileges = yield Group._GroupObjectPrivilegeRepo.findAll({
579
+ where: objectWhere,
580
+ include: [
581
+ {
582
+ model: system_privilege_entity_1.default,
583
+ where: systemWhere,
584
+ },
585
+ ],
586
+ transaction: dbTransaction,
587
+ });
588
+ let privileges = [];
589
+ for (const groupPrivilege of group.GroupPrivileges) {
590
+ const systemPrivilege = yield system_privilege_1.SystemPrivilege.init(dbTransaction);
591
+ systemPrivilege.setAttributes(groupPrivilege.Privilege.get({ plain: true }));
592
+ privileges.push(systemPrivilege);
593
+ }
594
+ for (const groupObjectPrivilege of groupObjectPrivileges) {
595
+ const systemPrivilege = yield system_privilege_1.SystemPrivilege.init(dbTransaction);
596
+ systemPrivilege.setAttributes(groupObjectPrivilege.Privilege.get({ plain: true }));
597
+ privileges.push(systemPrivilege);
598
+ }
599
+ if (group.InheritParentPrivilegeYN === 'Y' && group.ParentGroupCode) {
600
+ const inheritedPrivileges = yield Group.getInheritedSystemPrivileges(dbTransaction, group.ParentGroupCode, search);
601
+ privileges = privileges.concat(inheritedPrivileges);
602
+ }
603
+ const uniquePrivileges = Array.from(new Set(privileges.map((a) => a.PrivilegeCode))).map((PrivilegeCode) => {
604
+ return privileges.find((a) => a.PrivilegeCode === PrivilegeCode);
605
+ });
606
+ return uniquePrivileges;
607
+ }
608
+ catch (error) {
609
+ throw error;
610
+ }
611
+ });
612
+ }
613
+ static getParentSystemPrivileges(loginUser, dbTransaction, GroupCode, search) {
614
+ return __awaiter(this, void 0, void 0, function* () {
615
+ try {
616
+ const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
617
+ const isPrivileged = yield loginUser.checkPrivileges(systemCode, 'GROUP_PRIVILEGE_VIEW');
618
+ if (!isPrivileged) {
619
+ throw new general_1.ClassError('Group', 'GroupErrMsg11', 'You do not have the privilege to view group privileges');
620
+ }
621
+ const group = yield Group.init(dbTransaction, GroupCode);
622
+ if (group.InheritParentPrivilegeYN !== 'Y' || !group.ParentGroupCode) {
623
+ return [];
624
+ }
625
+ const privileges = yield Group.getInheritedSystemPrivileges(dbTransaction, group.ParentGroupCode, search);
626
+ return privileges;
627
+ }
628
+ catch (error) {
629
+ throw error;
630
+ }
631
+ });
632
+ }
633
+ static assignGroupObjectPrivilege(loginUser, dbTransaction, GroupCode, GroupObjectPrivileges) {
634
+ return __awaiter(this, void 0, void 0, function* () {
635
+ try {
636
+ const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
637
+ const isPrivileged = yield loginUser.checkPrivileges(systemCode, 'GROUP_OBJECT_PRIVILEGE_ASSIGN');
638
+ if (!isPrivileged) {
639
+ throw new general_1.ClassError('Group', 'GroupErrMsg12', 'You do not have the privilege to assign group object privilege');
640
+ }
641
+ const group = yield Group.init(dbTransaction, GroupCode);
642
+ const groupSystemAccesses = yield Group.getSystemAccesses(loginUser, dbTransaction, GroupCode, 1, Number.MAX_SAFE_INTEGER, {});
643
+ let parentGroupSystemAccesses = {};
644
+ if (group.InheritParentSystemAccessYN === 'Y' && group.ParentGroupCode) {
645
+ parentGroupSystemAccesses = yield Group.getSystemAccesses(loginUser, dbTransaction, group.ParentGroupCode, 1, Number.MAX_SAFE_INTEGER, {});
646
+ }
647
+ for (const groupObjectPrivilege of GroupObjectPrivileges) {
648
+ const systemPrivilege = yield system_privilege_1.SystemPrivilege.init(dbTransaction, groupObjectPrivilege.PrivilegeCode);
649
+ const combinedSystemAccesses = Object.assign(Object.assign({}, groupSystemAccesses.rows), parentGroupSystemAccesses.rows);
650
+ const systemAccess = combinedSystemAccesses.find((systemAccess) => systemAccess.SystemCode === systemPrivilege.SystemCode);
651
+ if (!systemAccess) {
652
+ throw new general_1.ClassError('Group', 'GroupErrMsg13', 'Failed to assign privilege ' +
653
+ groupObjectPrivilege.PrivilegeCode +
654
+ ' due to non-existent system access.');
655
+ }
656
+ const groupObjectPrivilegeData = yield Group._GroupObjectPrivilegeRepo.findOne({
657
+ where: {
658
+ GroupCode,
659
+ PrivilegeCode: groupObjectPrivilege.PrivilegeCode,
660
+ ObjectId: groupObjectPrivilege.ObjectId,
661
+ ObjectType: groupObjectPrivilege.ObjectType,
662
+ },
663
+ transaction: dbTransaction,
664
+ });
665
+ if (groupObjectPrivilegeData) {
666
+ continue;
667
+ }
668
+ else {
669
+ yield group_object_privilege_1.GroupObjectPrivilege.create(loginUser, dbTransaction, groupObjectPrivilege);
670
+ }
671
+ }
672
+ return 'Successfully added.';
673
+ }
674
+ catch (error) {
675
+ throw error;
676
+ }
677
+ });
678
+ }
679
+ static getGroubObjectPrivileges(loginUser, dbTransaction, GroupCode, search) {
680
+ return __awaiter(this, void 0, void 0, function* () {
681
+ try {
682
+ const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
683
+ const isPrivileged = yield loginUser.checkPrivileges(systemCode, 'GROUP_PRIVILEGE_VIEW');
684
+ if (!isPrivileged) {
685
+ throw new general_1.ClassError('Group', 'GroupErrMsg11', 'You do not have the privilege to view group privileges');
686
+ }
687
+ yield Group.init(dbTransaction, GroupCode);
688
+ const where = {
689
+ GroupCode,
690
+ };
691
+ const systemWhere = {};
692
+ if (search) {
693
+ Object.entries(search).forEach(([key, value]) => {
694
+ if (key === 'SystemCode') {
695
+ systemWhere[key] = {
696
+ [sequelize_1.Op.substring]: value,
697
+ };
698
+ }
699
+ else {
700
+ where[key] = {
701
+ [sequelize_1.Op.substring]: value,
702
+ };
703
+ }
704
+ });
705
+ }
706
+ const groupObjectPrivileges = yield Group._GroupObjectPrivilegeRepo.findAll({
707
+ where,
708
+ include: [
709
+ {
710
+ model: system_privilege_entity_1.default,
711
+ where: systemWhere,
712
+ },
713
+ ],
714
+ transaction: dbTransaction,
715
+ });
716
+ const privileges = [];
717
+ for (const groupObjectPrivilege of groupObjectPrivileges) {
718
+ const systemPrivilege = yield system_privilege_1.SystemPrivilege.init(dbTransaction);
719
+ systemPrivilege.setAttributes(groupObjectPrivilege.Privilege.get({ plain: true }));
720
+ privileges.push(systemPrivilege);
721
+ }
722
+ const uniquePrivileges = Array.from(new Set(privileges.map((a) => a.PrivilegeCode))).map((PrivilegeCode) => {
723
+ return privileges.find((a) => a.PrivilegeCode === PrivilegeCode);
724
+ });
725
+ return uniquePrivileges;
726
+ }
727
+ catch (error) {
728
+ throw error;
729
+ }
730
+ });
731
+ }
732
+ static assignGroupPrivileges(loginUser, dbTransaction, GroupCode, PrivilegeCodes) {
733
+ return __awaiter(this, void 0, void 0, function* () {
734
+ try {
735
+ const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
736
+ const isPrivileged = yield loginUser.checkPrivileges(systemCode, 'GROUP_PRIVILEGE_ASSIGN');
737
+ if (!isPrivileged) {
738
+ throw new general_1.ClassError('Group', 'GroupErrMsg06', 'You do not have the privilege to assign group privileges');
739
+ }
740
+ const group = yield Group.init(dbTransaction, GroupCode);
741
+ const groupSystemAccesses = yield Group.getSystemAccesses(loginUser, dbTransaction, GroupCode, 1, Number.MAX_SAFE_INTEGER, {});
742
+ let parentGroupSystemAccesses = {};
743
+ if (group.InheritParentSystemAccessYN === 'Y' && group.ParentGroupCode) {
744
+ parentGroupSystemAccesses = yield Group.getSystemAccesses(loginUser, dbTransaction, group.ParentGroupCode, 1, Number.MAX_SAFE_INTEGER, {});
745
+ }
746
+ for (const PrivilegeCode of PrivilegeCodes) {
747
+ const systemPrivilege = yield system_privilege_1.SystemPrivilege.init(dbTransaction, PrivilegeCode);
748
+ const combinedSystemAccesses = [
749
+ ...groupSystemAccesses.rows,
750
+ ...parentGroupSystemAccesses.rows,
751
+ ];
752
+ const systemAccess = combinedSystemAccesses.find((systemAccess) => systemAccess.SystemCode === systemPrivilege.SystemCode);
753
+ if (!systemAccess) {
754
+ throw new general_1.ClassError('Group', 'GroupErrMsg13', 'Failed to assign privilege ' +
755
+ PrivilegeCode +
756
+ ' due to non-existent system access.');
757
+ }
758
+ const groupPrivilege = yield Group._GroupPrivilegeRepo.findOne({
759
+ where: {
760
+ GroupCode,
761
+ PrivilegeCode,
762
+ },
763
+ transaction: dbTransaction,
764
+ });
765
+ if (groupPrivilege && groupPrivilege.Status === 'Active') {
766
+ continue;
767
+ }
768
+ let entityValueBefore = {};
769
+ let entityValueAfter = {};
770
+ let action = activity_history_1.ActionEnum.ADD;
771
+ let description = 'Create Group Privilege';
772
+ let entityId = null;
773
+ if (groupPrivilege && groupPrivilege.Status !== 'Active') {
774
+ entityValueBefore = {
775
+ GroupCode: groupPrivilege.GroupCode,
776
+ PrivilegeCode: groupPrivilege.PrivilegeCode,
777
+ Status: groupPrivilege.Status,
778
+ CreatedById: groupPrivilege.CreatedById,
779
+ CreatedAt: groupPrivilege.CreatedAt,
780
+ UpdatedById: groupPrivilege.UpdatedById,
781
+ UpdatedAt: groupPrivilege.UpdatedAt,
782
+ };
783
+ const updatedPayload = {
784
+ Status: 'Active',
785
+ UpdatedById: loginUser.UserId,
786
+ UpdatedAt: new Date(),
787
+ };
788
+ yield Group._GroupPrivilegeRepo.update(updatedPayload, {
789
+ where: {
790
+ GroupCode,
791
+ PrivilegeCode,
792
+ },
793
+ transaction: dbTransaction,
794
+ });
795
+ entityValueAfter = {
796
+ GroupCode: groupPrivilege.GroupCode,
797
+ PrivilegeCode: groupPrivilege.PrivilegeCode,
798
+ Status: updatedPayload.Status,
799
+ CreatedById: groupPrivilege.CreatedById,
800
+ CreatedAt: groupPrivilege.CreatedAt,
801
+ UpdatedById: updatedPayload.UpdatedById,
802
+ UpdatedAt: updatedPayload.UpdatedAt,
803
+ };
804
+ action = activity_history_1.ActionEnum.UPDATE;
805
+ description = 'Update Group Privilege';
806
+ entityId = groupPrivilege.GroupPrivilegeId;
807
+ }
808
+ else {
809
+ const newGroupPrivilege = yield group_privilege_1.GroupPrivilege.init(dbTransaction);
810
+ newGroupPrivilege.setAttributes({
811
+ GroupCode,
812
+ PrivilegeCode,
813
+ Status: 'Active',
814
+ CreatedById: loginUser.UserId,
815
+ CreatedAt: new Date(),
816
+ UpdatedById: loginUser.UserId,
817
+ UpdatedAt: new Date(),
818
+ });
819
+ entityValueAfter = {
820
+ GroupCode: newGroupPrivilege.GroupCode,
821
+ PrivilegeCode: newGroupPrivilege.PrivilegeCode,
822
+ Status: newGroupPrivilege.Status,
823
+ CreatedById: newGroupPrivilege.CreatedById,
824
+ CreatedAt: newGroupPrivilege.CreatedAt,
825
+ UpdatedById: newGroupPrivilege.UpdatedById,
826
+ UpdatedAt: newGroupPrivilege.UpdatedAt,
827
+ };
828
+ const groupPrivilege = yield Group._GroupPrivilegeRepo.create(entityValueAfter, {
829
+ transaction: dbTransaction,
830
+ });
831
+ action = activity_history_1.ActionEnum.ADD;
832
+ description = 'Create Group Privilege';
833
+ entityId = groupPrivilege.GroupPrivilegeId;
834
+ }
835
+ const activity = new activity_history_1.Activity();
836
+ activity.ActivityId = activity.createId();
837
+ activity.Action = action;
838
+ activity.Description = description;
839
+ activity.EntityType = 'GroupPrivilege';
840
+ activity.EntityId = entityId;
841
+ activity.EntityValueBefore = JSON.stringify(entityValueBefore);
842
+ activity.EntityValueAfter = JSON.stringify(entityValueAfter);
843
+ yield activity.create(loginUser.ObjectId, dbTransaction);
844
+ }
845
+ return 'Successfully added.';
846
+ }
847
+ catch (error) {
848
+ throw error;
849
+ }
850
+ });
851
+ }
852
+ static deleteGroupPrivilege(loginUser, dbTransaction, GroupCode, PrivilegeCodes) {
853
+ return __awaiter(this, void 0, void 0, function* () {
854
+ try {
855
+ const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
856
+ const isPrivileged = yield loginUser.checkPrivileges(systemCode, 'GROUP_PRIVILEGE_DELETE');
857
+ if (!isPrivileged) {
858
+ throw new general_1.ClassError('Group', 'GroupErrMsg06', 'You do not have the privilege to delete group privileges');
859
+ }
860
+ for (const PrivilegeCode of PrivilegeCodes) {
861
+ const groupPrivilege = yield Group._GroupPrivilegeRepo.findOne({
862
+ where: {
863
+ GroupCode,
864
+ PrivilegeCode,
865
+ },
866
+ transaction: dbTransaction,
867
+ });
868
+ if (!groupPrivilege) {
869
+ throw new general_1.ClassError('Group', 'GroupErrMsg14', 'GroupPrivilege not found.');
870
+ }
871
+ const entityValueBefore = {
872
+ GroupCode: groupPrivilege.GroupCode,
873
+ PrivilegeCode: groupPrivilege.PrivilegeCode,
874
+ Status: groupPrivilege.Status,
875
+ CreatedById: groupPrivilege.CreatedById,
876
+ CreatedAt: groupPrivilege.CreatedAt,
877
+ UpdatedById: groupPrivilege.UpdatedById,
878
+ UpdatedAt: groupPrivilege.UpdatedAt,
879
+ };
880
+ yield Group._GroupPrivilegeRepo.delete(GroupCode, PrivilegeCode, dbTransaction);
881
+ const activity = new activity_history_1.Activity();
882
+ activity.ActivityId = activity.createId();
883
+ activity.Action = activity_history_1.ActionEnum.DELETE;
884
+ activity.Description = 'DELETE Group Privilege';
885
+ activity.EntityType = 'GroupPrivilege';
886
+ activity.EntityId = groupPrivilege.GroupPrivilegeId.toString();
887
+ activity.EntityValueBefore = JSON.stringify(entityValueBefore);
888
+ activity.EntityValueAfter = JSON.stringify({});
889
+ yield activity.create(loginUser.ObjectId, dbTransaction);
890
+ }
891
+ return 'Successfully deleted.';
892
+ }
893
+ catch (error) {
894
+ throw error;
895
+ }
896
+ });
897
+ }
466
898
  }
467
899
  exports.Group = Group;
468
900
  Group._Repo = new group_repository_1.GroupRepository();
469
901
  Group._GroupSystemAccessRepo = new group_system_access_repository_1.GroupSystemAccessRepository();
902
+ Group._GroupPrivilegeRepo = new group_privilege_repository_1.GroupPrivilegeRepository();
903
+ Group._GroupObjectPrivilegeRepo = new group_object_privilege_repository_1.GroupObjectPrivilegeRepository();
470
904
  //# sourceMappingURL=group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"group.js","sourceRoot":"","sources":["../../../../src/components/group/group.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,yDAAqD;AAKrD,0CAAkD;AAClD,yCAA+B;AAC/B,8DAA+D;AAC/D,0GAAoG;AACpG,8DAAqD;AACrD,gEAA2D;AAC3D,oEAAgE;AAEhE,MAAa,KAAM,SAAQ,oBAAU;IAqBnC,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAI,SAAS,CAAC,KAAa;QACzB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,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,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,YAAoB,SAAsB;QACxC,KAAK,EAAE,CAAC;QA1CV,eAAU,GAAG,OAAO,CAAC;QA2CnB,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;YACrC,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;YAC3B,IAAI,CAAC,WAAW,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,CAAC;YAC1C,IAAI,CAAC,IAAI,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,CAAC;YAC5B,IAAI,CAAC,eAAe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
3
3
  import { ObjectStatus } from '../../enum/object-status.enum';
4
+ import { LoginUser } from '../login-user/login-user';
4
5
  export declare class GroupObjectPrivilege extends ObjectBase {
5
6
  TableName: string;
6
7
  ObjectName: string;
@@ -21,4 +22,6 @@ export declare class GroupObjectPrivilege extends ObjectBase {
21
22
  private static _Repository;
22
23
  constructor(GroupObjectPrivilegeAttr?: IGroupObjectPrivilegeAttr);
23
24
  static init(dbTransaction?: any, GroupObjectPrivilegeId?: number): Promise<GroupObjectPrivilege>;
25
+ static create(loginUser: LoginUser, dbTransaction: any, groupObjectPrivilege: GroupObjectPrivilege): Promise<GroupObjectPrivilege>;
26
+ delete(loginUser: LoginUser, dbTransaction: any): Promise<this>;
24
27
  }