@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
@@ -12,6 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.GroupObjectPrivilege = void 0;
13
13
  const general_1 = require("@tomei/general");
14
14
  const group_object_privilege_repository_1 = require("./group-object-privilege.repository");
15
+ const object_status_enum_1 = require("../../enum/object-status.enum");
16
+ const config_1 = require("@tomei/config");
17
+ const activity_history_1 = require("@tomei/activity-history");
15
18
  class GroupObjectPrivilege extends general_1.ObjectBase {
16
19
  get CreatedAt() {
17
20
  return this._CreatedAt;
@@ -64,6 +67,111 @@ class GroupObjectPrivilege extends general_1.ObjectBase {
64
67
  }
65
68
  });
66
69
  }
70
+ static create(loginUser, dbTransaction, groupObjectPrivilege) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ try {
73
+ const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
74
+ const isPrivileged = yield loginUser.checkPrivileges(systemCode, 'GROUP_OBJECT_PRIVILEGE_CREATE');
75
+ if (!isPrivileged) {
76
+ throw new general_1.ClassError('GroupObjectPrivilege', 'GroupErrMsg01', 'You do not have the privilege to create Group Object Privilege');
77
+ }
78
+ if (!groupObjectPrivilege.GroupCode) {
79
+ throw new general_1.ClassError('GroupObjectPrivilege', 'GroupObjectPrivilegeErrMsg01', 'GroupCode is missing.');
80
+ }
81
+ if (!groupObjectPrivilege.PrivilegeCode) {
82
+ throw new general_1.ClassError('GroupObjectPrivilege', 'GroupObjectPrivilegeErrMsg02', 'PrivilegeCode is missing.');
83
+ }
84
+ if (!groupObjectPrivilege.ObjectId) {
85
+ throw new general_1.ClassError('GroupObjectPrivilege', 'GroupObjectPrivilegeErrMsg03', 'ObjectId is missing.');
86
+ }
87
+ if (!groupObjectPrivilege.ObjectType) {
88
+ throw new general_1.ClassError('GroupObjectPrivilege', 'GroupObjectPrivilegeErrMsg04', 'ObjectType is missing.');
89
+ }
90
+ const existingGroupObjectPrivilege = yield GroupObjectPrivilege._Repository.findOne({
91
+ where: {
92
+ GroupCode: groupObjectPrivilege.GroupCode,
93
+ PrivilegeCode: groupObjectPrivilege.PrivilegeCode,
94
+ ObjectId: groupObjectPrivilege.ObjectId,
95
+ ObjectType: groupObjectPrivilege.ObjectType,
96
+ },
97
+ transaction: dbTransaction,
98
+ });
99
+ if (existingGroupObjectPrivilege) {
100
+ throw new general_1.ClassError('GroupObjectPrivilege', 'GroupObjectPrivilegeErrMsg05', 'Duplicate GroupObjectPrivilege found.');
101
+ }
102
+ const objectAttr = {
103
+ GroupCode: groupObjectPrivilege.GroupCode,
104
+ PrivilegeCode: groupObjectPrivilege.PrivilegeCode,
105
+ ObjectId: groupObjectPrivilege.ObjectId,
106
+ ObjectType: groupObjectPrivilege.ObjectType,
107
+ Status: object_status_enum_1.ObjectStatus.ACTIVE,
108
+ CreatedById: loginUser.UserId,
109
+ CreatedAt: new Date(),
110
+ UpdatedById: loginUser.UserId,
111
+ UpdatedAt: new Date(),
112
+ };
113
+ const newGroupObjectPrivilege = new GroupObjectPrivilege(objectAttr);
114
+ const createdObject = yield GroupObjectPrivilege._Repository.create(newGroupObjectPrivilege, {
115
+ transaction: dbTransaction,
116
+ });
117
+ newGroupObjectPrivilege.GroupObjectPrivilegeId =
118
+ createdObject.GroupObjectPrivilegeId;
119
+ const EntityValueBefore = {};
120
+ const EntityValueAfter = objectAttr;
121
+ const activity = new activity_history_1.Activity();
122
+ activity.createId();
123
+ activity.Action = activity_history_1.ActionEnum.ADD;
124
+ activity.Description = `Create GroupObjectPrivilege for (${newGroupObjectPrivilege.GroupCode})`;
125
+ activity.EntityType = 'GroupObjectPrivilege';
126
+ activity.EntityId =
127
+ newGroupObjectPrivilege.GroupObjectPrivilegeId.toString();
128
+ activity.EntityValueBefore = JSON.stringify(EntityValueBefore);
129
+ activity.EntityValueAfter = JSON.stringify(EntityValueAfter);
130
+ yield activity.create(dbTransaction, loginUser.UserId);
131
+ return newGroupObjectPrivilege;
132
+ }
133
+ catch (error) {
134
+ throw error;
135
+ }
136
+ });
137
+ }
138
+ delete(loginUser, dbTransaction) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ try {
141
+ const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
142
+ const isPrivileged = yield loginUser.checkPrivileges(systemCode, 'GROUP_OBJECT_PRIVILEGE_DELETE');
143
+ if (!isPrivileged) {
144
+ throw new general_1.ClassError('GroupObjectPrivilege', 'GroupErrMsg01', 'You do not have the privilege to delete Group Object Privilege');
145
+ }
146
+ yield GroupObjectPrivilege._Repository.delete(this.GroupObjectPrivilegeId, {
147
+ transaction: dbTransaction,
148
+ });
149
+ const EntityValueBefore = {
150
+ GroupCode: this.GroupCode,
151
+ PrivilegeCode: this.PrivilegeCode,
152
+ ObjectId: this.ObjectId,
153
+ ObjectType: this.ObjectType,
154
+ Status: this.Status,
155
+ CreatedById: this.CreatedById,
156
+ UpdatedById: this.UpdatedById,
157
+ };
158
+ const EntityValueAfter = {};
159
+ const activity = new activity_history_1.Activity();
160
+ activity.createId();
161
+ activity.Action = activity_history_1.ActionEnum.DELETE;
162
+ activity.Description = `Delete GroupObjectPrivilege ${this.GroupObjectPrivilegeId}`;
163
+ activity.EntityType = 'GroupObjectPrivilege';
164
+ activity.EntityId = this.GroupObjectPrivilegeId.toString();
165
+ activity.EntityValueBefore = JSON.stringify(EntityValueBefore);
166
+ activity.EntityValueAfter = JSON.stringify(EntityValueAfter);
167
+ yield activity.create(dbTransaction, loginUser.UserId);
168
+ return this;
169
+ }
170
+ catch (error) {
171
+ throw error;
172
+ }
173
+ });
174
+ }
67
175
  }
68
176
  exports.GroupObjectPrivilege = GroupObjectPrivilege;
69
177
  GroupObjectPrivilege._Repository = new group_object_privilege_repository_1.GroupObjectPrivilegeRepository();
@@ -1 +1 @@
1
- {"version":3,"file":"group-object-privilege.js","sourceRoot":"","sources":["../../../../src/components/group-object-privilege/group-object-privilege.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,2FAAqF;AAIrF,MAAa,oBAAqB,SAAQ,oBAAU;IAclD,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAID,YAAY,wBAAoD;QAC9D,KAAK,EAAE,CAAC;QAhCV,cAAS,GAAG,0BAA0B,CAAC;QAiCrC,IAAI,wBAAwB,EAAE;YAC5B,IAAI,CAAC,sBAAsB;gBACzB,wBAAwB,CAAC,sBAAsB,CAAC;YAClD,IAAI,CAAC,SAAS,GAA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AAC;gBAIF,MAAM,iBAAiB,GAAG;oBACxB,SAAS,EAAE,IAAI,CAAC,SAAS;oBACzB,aAAa,EAAE,IAAI,CAAC,aAAa;oBACjC,QAAQ,EAAE,IAAI,CAAC,QAAQ;oBACvB,UAAU,EAAE,IAAI,CAAC,UAAU;oBAC3B,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,WAAW,EAAE,IAAI,CAAC,WAAW;oBAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;iBAC9B,CAAC;gBAGF,MAAM,gBAAgB,GAAG,EAAE,CAAC;gBAG5B,MAAM,QAAQ,GAAG,IAAI,2BAAQ,EAAE,CAAC;gBAChC,QAAQ,CAAC,QAAQ,EAAE,CAAC;gBACpB,QAAQ,CAAC,MAAM,GAAG,6BAAU,CAAC,MAAM,CAAC;gBACpC,QAAQ,CAAC,WAAW,GAAG,+BAA+B,IAAI,CAAC,sBAAsB,EAAE,CAAC;gBACpF,QAAQ,CAAC,UAAU,GAAG,sBAAsB,CAAC;gBAC7C,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC,sBAAsB,CAAC,QAAQ,EAAE,CAAC;gBAC3D,QAAQ,CAAC,iBAAiB,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;gBAC/D,QAAQ,CAAC,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;gBAG7D,MAAM,QAAQ,CAAC,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;gBAGvD,OAAO,IAAI,CAAC;aACb;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;;AA5QH,oDA6QC;AA/OgB,gCAAW,GAAG,IAAI,kEAA8B,EAAE,CAAC"}
@@ -2,4 +2,5 @@ import GroupObjectPrivilegeModel from '../../models/group-object-privilege.entit
2
2
  import { RepositoryBase, IRepositoryBase } from '@tomei/general';
3
3
  export declare class GroupObjectPrivilegeRepository extends RepositoryBase<GroupObjectPrivilegeModel> implements IRepositoryBase<GroupObjectPrivilegeModel> {
4
4
  constructor();
5
+ delete(where: any, transaction?: any): Promise<number | undefined>;
5
6
  }
@@ -1,4 +1,13 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.GroupObjectPrivilegeRepository = void 0;
4
13
  const group_object_privilege_entity_1 = require("../../models/group-object-privilege.entity");
@@ -7,6 +16,19 @@ class GroupObjectPrivilegeRepository extends general_1.RepositoryBase {
7
16
  constructor() {
8
17
  super(group_object_privilege_entity_1.default);
9
18
  }
19
+ delete(where, transaction) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ try {
22
+ return yield group_object_privilege_entity_1.default.destroy({
23
+ where,
24
+ transaction,
25
+ });
26
+ }
27
+ catch (error) {
28
+ throw error;
29
+ }
30
+ });
31
+ }
10
32
  }
11
33
  exports.GroupObjectPrivilegeRepository = GroupObjectPrivilegeRepository;
12
34
  //# sourceMappingURL=group-object-privilege.repository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"group-object-privilege.repository.js","sourceRoot":"","sources":["../../../../src/components/group-object-privilege/group-object-privilege.repository.ts"],"names":[],"mappings":";;;AAAA,8FAAmF;AACnF,4CAAiE;AAEjE,MAAa,8BACX,SAAQ,wBAAyC;IAGjD;QACE,KAAK,CAAC,uCAAyB,CAAC,CAAC;IACnC,CAAC;CACF;AAPD,wEAOC"}
1
+ {"version":3,"file":"group-object-privilege.repository.js","sourceRoot":"","sources":["../../../../src/components/group-object-privilege/group-object-privilege.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8FAAmF;AACnF,4CAAiE;AAEjE,MAAa,8BACX,SAAQ,wBAAyC;IAGjD;QACE,KAAK,CAAC,uCAAyB,CAAC,CAAC;IACnC,CAAC;IAEY,MAAM,CACjB,KAAU,EACV,WAAiB;;YAEjB,IAAI;gBACF,OAAO,MAAM,uCAAyB,CAAC,OAAO,CAAC;oBAC7C,KAAK;oBACL,WAAW;iBACZ,CAAC,CAAC;aACJ;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;CACF;AArBD,wEAqBC"}
@@ -1,4 +1,5 @@
1
1
  import { ObjectBase } from '@tomei/general';
2
+ import { IGroupPrivilegeAttr } from '../../interfaces/group-privilege.interface';
2
3
  export declare class GroupPrivilege extends ObjectBase {
3
4
  TableName: string;
4
5
  ObjectName: string;
@@ -18,5 +19,6 @@ export declare class GroupPrivilege extends ObjectBase {
18
19
  get UpdatedById(): number;
19
20
  private static _Repository;
20
21
  private constructor();
22
+ setAttributes(GroupPrivilegeAttr: IGroupPrivilegeAttr): void;
21
23
  static init(dbTransaction?: any, GroupPrivilegeId?: number): Promise<GroupPrivilege>;
22
24
  }
@@ -40,6 +40,16 @@ class GroupPrivilege extends general_1.ObjectBase {
40
40
  this._UpdatedById = GroupPrivilegeAttr.UpdatedById;
41
41
  }
42
42
  }
43
+ setAttributes(GroupPrivilegeAttr) {
44
+ this.GroupPrivilegeId = GroupPrivilegeAttr.GroupPrivilegeId;
45
+ this.GroupCode = GroupPrivilegeAttr.GroupCode;
46
+ this.PrivilegeCode = GroupPrivilegeAttr.PrivilegeCode;
47
+ this.Status = GroupPrivilegeAttr.Status;
48
+ this._CreatedAt = GroupPrivilegeAttr.CreatedAt;
49
+ this._UpdatedAt = GroupPrivilegeAttr.UpdatedAt;
50
+ this._CreatedById = GroupPrivilegeAttr.CreatedById;
51
+ this._UpdatedById = GroupPrivilegeAttr.UpdatedById;
52
+ }
43
53
  static init(dbTransaction, GroupPrivilegeId) {
44
54
  return __awaiter(this, void 0, void 0, function* () {
45
55
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"group-privilege.js","sourceRoot":"","sources":["../../../../src/components/group-privilege/group-privilege.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,6EAAwE;AAGxE,MAAa,cAAe,SAAQ,oBAAU;IAc5C,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAID,YAAoB,kBAAwC;QAC1D,KAAK,EAAE,CAAC;QAhCV,cAAS,GAAG,oBAAoB,CAAC;QAGjC,eAAU,GAAG,gBAAgB,CAAC;QA8B5B,IAAI,kBAAkB,EAAE;YACtB,IAAI,CAAC,gBAAgB,GAAG,kBAAkB,CAAC,gBAAgB,CAAC;YAC5D,IAAI,CAAC,SAAS,GAAG,kBAAkB,CAAC,SAAS,CAAC;YAC9C,IAAI,CAAC,aAAa,GAAG,kBAAkB,CAAC,aAAa,CAAC;YACtD,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAC,MAAM,CAAC;YACxC,IAAI,CAAC,UAAU,GAAG,kBAAkB,CAAC,SAAS,CAAC;YAC/C,IAAI,CAAC,UAAU,GAAG,kBAAkB,CAAC,SAAS,CAAC;YAC/C,IAAI,CAAC,YAAY,GAAG,kBAAkB,CAAC,WAAW,CAAC;YACnD,IAAI,CAAC,YAAY,GAAG,kBAAkB,CAAC,WAAW,CAAC;SACpD;IACH,CAAC;IAEM,MAAM,CAAO,IAAI,CAAC,aAAmB,EAAE,gBAAyB;;YACrE,IAAI;gBACF,IAAI,gBAAgB,EAAE;oBACpB,MAAM,kBAAkB,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;wBACxD,KAAK,EAAE,EAAE,gBAAgB,EAAE;wBAC3B,WAAW,EAAE,aAAa;qBAC3B,CAAC,CAAC;oBACH,IAAI,kBAAkB,EAAE;wBACtB,OAAO,IAAI,cAAc,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;qBACpE;yBAAM;wBACL,MAAM,IAAI,oBAAU,CAClB,gBAAgB,EAChB,wBAAwB,EACxB,0BAA0B,CAC3B,CAAC;qBACH;iBACF;gBACD,OAAO,IAAI,cAAc,EAAE,CAAC;aAC7B;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;;AAnEH,wCAoEC;AAtCgB,0BAAW,GAAG,IAAI,qDAAwB,EAAE,CAAC"}
1
+ {"version":3,"file":"group-privilege.js","sourceRoot":"","sources":["../../../../src/components/group-privilege/group-privilege.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,6EAAwE;AAGxE,MAAa,cAAe,SAAQ,oBAAU;IAc5C,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAID,YAAoB,kBAAwC;QAC1D,KAAK,EAAE,CAAC;QAhCV,cAAS,GAAG,oBAAoB,CAAC;QAGjC,eAAU,GAAG,gBAAgB,CAAC;QA8B5B,IAAI,kBAAkB,EAAE;YACtB,IAA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AkB,EAAE;wBACtB,OAAO,IAAI,cAAc,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;qBACpE;yBAAM;wBACL,MAAM,IAAI,oBAAU,CAClB,gBAAgB,EAChB,wBAAwB,EACxB,0BAA0B,CAC3B,CAAC;qBACH;iBACF;gBACD,OAAO,IAAI,cAAc,EAAE,CAAC;aAC7B;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;;AA9EH,wCA+EC;AAjDgB,0BAAW,GAAG,IAAI,qDAAwB,EAAE,CAAC"}
@@ -2,4 +2,5 @@ import GroupPrivilegeModel from '../../models/group-privilege.entity';
2
2
  import { RepositoryBase, IRepositoryBase } from '@tomei/general';
3
3
  export declare class GroupPrivilegeRepository extends RepositoryBase<GroupPrivilegeModel> implements IRepositoryBase<GroupPrivilegeModel> {
4
4
  constructor();
5
+ delete(GroupCode: string, PrivilegeCode: string, dbTransaction?: any): Promise<number>;
5
6
  }
@@ -1,4 +1,13 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.GroupPrivilegeRepository = void 0;
4
13
  const group_privilege_entity_1 = require("../../models/group-privilege.entity");
@@ -7,6 +16,19 @@ class GroupPrivilegeRepository extends general_1.RepositoryBase {
7
16
  constructor() {
8
17
  super(group_privilege_entity_1.default);
9
18
  }
19
+ delete(GroupCode, PrivilegeCode, dbTransaction) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ try {
22
+ return yield group_privilege_entity_1.default.destroy({
23
+ where: { GroupCode, PrivilegeCode },
24
+ transaction: dbTransaction,
25
+ });
26
+ }
27
+ catch (error) {
28
+ throw error;
29
+ }
30
+ });
31
+ }
10
32
  }
11
33
  exports.GroupPrivilegeRepository = GroupPrivilegeRepository;
12
34
  //# sourceMappingURL=group-privilege.repository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"group-privilege.repository.js","sourceRoot":"","sources":["../../../../src/components/group-privilege/group-privilege.repository.ts"],"names":[],"mappings":";;;AAAA,gFAAsE;AACtE,4CAAiE;AAEjE,MAAa,wBACX,SAAQ,wBAAmC;IAG3C;QACE,KAAK,CAAC,gCAAmB,CAAC,CAAC;IAC7B,CAAC;CACF;AAPD,4DAOC"}
1
+ {"version":3,"file":"group-privilege.repository.js","sourceRoot":"","sources":["../../../../src/components/group-privilege/group-privilege.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gFAAsE;AACtE,4CAAiE;AAEjE,MAAa,wBACX,SAAQ,wBAAmC;IAG3C;QACE,KAAK,CAAC,gCAAmB,CAAC,CAAC;IAC7B,CAAC;IAEK,MAAM,CAAC,SAAiB,EAAE,aAAqB,EAAE,aAAmB;;YACxE,IAAI;gBACF,OAAO,MAAM,gCAAmB,CAAC,OAAO,CAAC;oBACvC,KAAK,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE;oBACnC,WAAW,EAAE,aAAa;iBAC3B,CAAC,CAAC;aACJ;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;CACF;AAlBD,4DAkBC"}
@@ -111,7 +111,7 @@ export declare class LoginUser extends LoginUserBase {
111
111
  private static combineSystemAccess;
112
112
  static getSystems(loginUser: LoginUser, dbTransaction: any): Promise<any[]>;
113
113
  private static check2FA;
114
- static setup2FA(userId: number, dbTransaction: any): Promise<string>;
114
+ static setup2FA(userId: number, dbTransaction: any): Promise<any>;
115
115
  verify2FASetup(userId: number, mfaToken: string, dbTransaction: any): Promise<string | false>;
116
116
  verify2FACode(userId: number, mfaToken: string, dbTransaction: any): Promise<string | false>;
117
117
  addUserGroup(GroupCode: string, loginUser: LoginUser, dbTransaction: any): Promise<void>;
@@ -1,5 +1,7 @@
1
1
  import { ObjectBase } from '@tomei/general';
2
+ import { ISystemPrivilegeAttr } from '../../interfaces/system-privilege.interface';
2
3
  import { LoginUser } from '../login-user/login-user';
4
+ import { ISystemPrivilegeSearch } from '../../interfaces/system-privilege-search.interface';
3
5
  export declare class SystemPrivilege extends ObjectBase {
4
6
  ObjectType: string;
5
7
  TableName: string;
@@ -21,6 +23,11 @@ export declare class SystemPrivilege extends ObjectBase {
21
23
  private static _Repository;
22
24
  private static _SystemRepository;
23
25
  private constructor();
26
+ setAttributes(systemPrivilegeAttr: ISystemPrivilegeAttr): void;
24
27
  static init(dbTransaction: any, PrivilegeCode?: string): Promise<SystemPrivilege>;
25
28
  static create(loginUser: LoginUser, dbTransaction: any, systemPrivilege: SystemPrivilege): Promise<SystemPrivilege>;
29
+ static findAll(loginUser: LoginUser, dbTransaction: any, page?: number, row?: number, search?: ISystemPrivilegeSearch): Promise<{
30
+ count: number;
31
+ SystemPrivileges: SystemPrivilege[];
32
+ }>;
26
33
  }
@@ -16,6 +16,7 @@ const system_privilege_repository_1 = require("./system-privilege.repository");
16
16
  const config_1 = require("@tomei/config");
17
17
  const system_1 = require("../system/system");
18
18
  const activity_history_1 = require("@tomei/activity-history");
19
+ const sequelize_1 = require("sequelize");
19
20
  class SystemPrivilege extends general_1.ObjectBase {
20
21
  get PrivilegeCode() {
21
22
  return this.ObjectId;
@@ -50,6 +51,16 @@ class SystemPrivilege extends general_1.ObjectBase {
50
51
  this._UpdatedAt = systemPrivilegeAttr.UpdatedAt;
51
52
  }
52
53
  }
54
+ setAttributes(systemPrivilegeAttr) {
55
+ this.ObjectId = systemPrivilegeAttr.PrivilegeCode;
56
+ this.SystemCode = systemPrivilegeAttr.SystemCode;
57
+ this.Description = systemPrivilegeAttr.Description;
58
+ this.Status = systemPrivilegeAttr.Status;
59
+ this._CreatedAt = systemPrivilegeAttr.CreatedAt;
60
+ this._UpdatedAt = systemPrivilegeAttr.UpdatedAt;
61
+ this._CreatedById = systemPrivilegeAttr.CreatedById;
62
+ this._UpdatedById = systemPrivilegeAttr.UpdatedById;
63
+ }
53
64
  static init(dbTransaction, PrivilegeCode) {
54
65
  return __awaiter(this, void 0, void 0, function* () {
55
66
  try {
@@ -85,7 +96,7 @@ class SystemPrivilege extends general_1.ObjectBase {
85
96
  const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
86
97
  const isPrivileged = yield loginUser.checkPrivileges(systemCode, 'PRIVILEGE_CREATE');
87
98
  if (!isPrivileged) {
88
- throw new Error('You do not have permission to create system privilege');
99
+ throw new general_1.ClassError('SystemPrivilege', 'SystemPrivilegeErrMsg01', 'You do not have permission to create system privileges');
89
100
  }
90
101
  if (!systemPrivilege.SystemCode) {
91
102
  throw new general_1.ClassError('SystemPrivilege', 'SystemPrivilegeErrMsg02', 'System Code is required');
@@ -137,6 +148,48 @@ class SystemPrivilege extends general_1.ObjectBase {
137
148
  }
138
149
  });
139
150
  }
151
+ static findAll(loginUser, dbTransaction, page, row, search) {
152
+ return __awaiter(this, void 0, void 0, function* () {
153
+ try {
154
+ const systemCode = config_1.ApplicationConfig.getComponentConfigValue('system-code');
155
+ const isPrivileged = yield loginUser.checkPrivileges(systemCode, 'PRIVILEGE_LIST');
156
+ if (!isPrivileged) {
157
+ throw new general_1.ClassError('SystemPrivilege', 'SystemPrivilegeErrMsg01', 'You do not have permission to list system privileges');
158
+ }
159
+ const options = {
160
+ order: [['createdAt', 'DESC']],
161
+ transaction: dbTransaction,
162
+ };
163
+ if (page && row) {
164
+ const offset = row * (page - 1);
165
+ const limit = row;
166
+ options.offset = offset;
167
+ options.limit = limit;
168
+ }
169
+ if (search) {
170
+ const queryObj = {};
171
+ Object.entries(search).forEach(([key, value]) => {
172
+ queryObj[key] = {
173
+ [sequelize_1.Op.substring]: value,
174
+ };
175
+ });
176
+ options.where = queryObj;
177
+ }
178
+ const result = yield SystemPrivilege._Repository.findAllWithPagination(options);
179
+ const systemPrivileges = [];
180
+ for (const systemPrivilegeAttr of result.rows) {
181
+ systemPrivileges.push(new SystemPrivilege(systemPrivilegeAttr.get({ plain: true })));
182
+ }
183
+ return {
184
+ count: result.count,
185
+ SystemPrivileges: systemPrivileges,
186
+ };
187
+ }
188
+ catch (error) {
189
+ throw error;
190
+ }
191
+ });
192
+ }
140
193
  }
141
194
  exports.SystemPrivilege = SystemPrivilege;
142
195
  SystemPrivilege._Repository = new system_privilege_repository_1.SystemPrivilegeRepository();
@@ -1 +1 @@
1
- {"version":3,"file":"system-privilege.js","sourceRoot":"","sources":["../../../../src/components/system-privilege/system-privilege.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,mEAA+D;AAC/D,+EAA0E;AAG1E,0CAAkD;AAClD,6CAA0C;AAC1C,8DAA+D;AAE/D,MAAa,eAAgB,SAAQ,oBAAU;IAa7C,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAI,aAAa,CAAC,KAAa;QAC7B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAKD,YAAoB,mBAA0C;QAC5D,KAAK,EAAE,CAAC;QAxCV,eAAU,GAAG,iBAAiB,CAAC;QA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,QAAQ,CAAC,QAAQ,GAAG,kBAAkB,CAAC,UAAU,CAAC;gBAClD,QAAQ,CAAC,iBAAiB,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;gBAC/D,QAAQ,CAAC,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;gBAG7D,MAAM,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;gBAEzD,OAAO,kBAAkB,CAAC;aAC3B;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;;AAlMH,0CAmMC;AA9JgB,2BAAW,GAAG,IAAI,uDAAyB,EAAE,CAAC;AAC9C,iCAAiB,GAAG,IAAI,oCAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"system-privilege.js","sourceRoot":"","sources":["../../../../src/components/system-privilege/system-privilege.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,mEAA+D;AAC/D,+EAA0E;AAG1E,0CAAkD;AAClD,6CAA0C;AAC1C,8DAA+D;AAE/D,yCAA+B;AAE/B,MAAa,eAAgB,SAAQ,oBAAU;IAa7C,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAI,aAAa,CAAC,KAAa;QAC7B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAKD,YAAoB,mBAA0C;QAC5D,KAAK,EAAE,CAAC;QAxCV,eAAU,GAAG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H;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;;AAvRH,0CAwRC;AAnPgB,2BAAW,GAAG,IAAI,uDAAyB,EAAE,CAAC;AAC9C,iCAAiB,GAAG,IAAI,oCAAgB,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { ObjectStatus } from '../enum/object-status.enum';
2
2
  export interface IGroupObjectPrivilegeAttr {
3
- GroupObjectPrivilegeId: number;
3
+ GroupObjectPrivilegeId?: number;
4
4
  GroupCode: string;
5
5
  PrivilegeCode: string;
6
6
  ObjectId: string;
@@ -1,5 +1,5 @@
1
1
  export interface IGroupPrivilegeAttr {
2
- GroupPrivilegeId: number;
2
+ GroupPrivilegeId?: number;
3
3
  GroupCode: string;
4
4
  PrivilegeCode: string;
5
5
  Status: string;
@@ -0,0 +1,5 @@
1
+ export interface ISystemPrivilegeSearch {
2
+ PrivilegeCode?: string;
3
+ SystemCode?: string;
4
+ Status?: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=system-privilege-search.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-privilege-search.interface.js","sourceRoot":"","sources":["../../../src/interfaces/system-privilege-search.interface.ts"],"names":[],"mappings":""}
@@ -21,6 +21,7 @@ __decorate([
21
21
  primaryKey: true,
22
22
  type: sequelize_typescript_1.DataType.INTEGER,
23
23
  allowNull: false,
24
+ autoIncrement: true,
24
25
  }),
25
26
  __metadata("design:type", Number)
26
27
  ], GroupObjectPrivilegeModel.prototype, "GroupObjectPrivilegeId", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"group-object-privilege.entity.js","sourceRoot":"","sources":["../../../src/models/group-object-privilege.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,iDAAwC;AACxC,uEAA6D;AAC7D,mEAA0D;AAQ3C,IAAM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C,IAAI;4DAAC;AAEhB;IAAC,gCAAS;8BACC,IAAI;4DAAC;AAEhB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,iCAAoB,CAAC;8BAC3B,iCAAoB;4DAAC;AAEhC;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,sBAAU,CAAC;8BACrB,sBAAU;wDAAC;AAElB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,aAAa,CAAC;8BACtB,qBAAI;gEAAC;AAEpB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,aAAa,CAAC;8BACtB,qBAAI;gEAAC;AAnED,yBAAyB;IAN7C,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,0BAA0B;QACrC,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;KACvB,CAAC;GACmB,yBAAyB,CAoE7C;kBApEoB,yBAAyB"}
1
+ {"version":3,"file":"group-object-privilege.entity.js","sourceRoot":"","sources":["../../../src/models/group-object-privilege.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,iDAAwC;AACxC,uEAA6D;AAC7D,mEAA0D;AAQ3C,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,4BAAK;CAqE3D,CAAA;AApEC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;QAChB,aAAa,EAAE,IAAI;KACpB,CAAC;;yEAC6B;AAE/B;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sBAAU,CAAC;IAC5B,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;4DACgB;AAElB;IAAC,IAAA,iCAAU,EAAC,GAAG,E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tB,qBAAI;gEAAC;AApED,yBAAyB;IAN7C,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,0BAA0B;QACrC,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;KACvB,CAAC;GACmB,yBAAyB,CAqE7C;kBArEoB,yBAAyB"}
@@ -20,6 +20,7 @@ __decorate([
20
20
  primaryKey: true,
21
21
  type: sequelize_typescript_1.DataType.INTEGER,
22
22
  allowNull: false,
23
+ autoIncrement: true,
23
24
  }),
24
25
  __metadata("design:type", Number)
25
26
  ], GroupPrivilegeModel.prototype, "GroupPrivilegeId", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"group-privilege.entity.js","sourceRoot":"","sources":["../../../src/models/group-privilege.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,iDAAwC;AACxC,uEAA6D;AAQ9C,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,4BAAK;CAwDrD,CAAA;AAvDC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;KACjB,CAAC;;6DACuB;AAEzB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sBAAU,CAAC;IAC5B,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;sDACgB;AAElB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,iCAAoB,CAAC;IACtC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,SAAS,EAAE,KAAK;KACjB,CAAC;;0DACoB;AAEtB;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,YAAY,EAAE,QAAQ;KACvB,CAAC;;mDACa;AAEf;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;wDACkB;AAEpB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;wDACkB;AAEpB;IAAC,gCAAS;8BACC,IAAI;sDAAC;AAEhB;IAAC,gCAAS;8BACC,IAAI;sDAAC;AAEhB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,iCAAoB,CAAC;8BAC3B,iCAAoB;sDAAC;AAEhC;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,sBAAU,CAAC;8BACrB,sBAAU;kDAAC;AAElB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,aAAa,CAAC;8BACtB,qBAAI;0DAAC;AAEpB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,aAAa,CAAC;8BACtB,qBAAI;0DAAC;AAvDD,mBAAmB;IANvC,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,oBAAoB;QAC/B,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;KACvB,CAAC;GACmB,mBAAmB,CAwDvC;kBAxDoB,mBAAmB"}
1
+ {"version":3,"file":"group-privilege.entity.js","sourceRoot":"","sources":["../../../src/models/group-privilege.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,iDAAwC;AACxC,uEAA6D;AAQ9C,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,4BAAK;CAyDrD,CAAA;AAxDC;IAAC,IAAA,6BAAM,EAAC;QAC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AAC;8BACtB,qBAAI;0DAAC;AAEpB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,aAAa,CAAC;8BACtB,qBAAI;0DAAC;AAxDD,mBAAmB;IANvC,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,oBAAoB;QAC/B,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;KACvB,CAAC;GACmB,mBAAmB,CAyDvC;kBAzDoB,mBAAmB"}
@@ -19,6 +19,7 @@ __decorate([
19
19
  primaryKey: true,
20
20
  allowNull: false,
21
21
  type: sequelize_typescript_1.DataType.INTEGER,
22
+ autoIncrement: true,
22
23
  }),
23
24
  __metadata("design:type", Number)
24
25
  ], GroupReportingUserModel.prototype, "GroupReportingUserId", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"group-reporting-user.entity.js","sourceRoot":"","sources":["../../../src/models/group-reporting-user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,iDAAwC;AAQzB,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,4BAAK;CAiEzD,CAAA;AAhEC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;qEAC2B;AAE7B;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sBAAU,CAAC;IAC5B,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;0DACgB;AAElB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;uD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BAjEoB,uBAAuB"}
1
+ {"version":3,"file":"group-reporting-user.entity.js","sourceRoot":"","sources":["../../../src/models/group-reporting-user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,iDAAwC;AAQzB,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,4BAAK;CAkEzD,CAAA;AAjEC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,aAAa,EAAE,IAAI;KACpB,CAAC;;qEAC2B;AAE7B;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,sBAAU,CAAC;IAC5B,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;KAC1B,CAAC;;0DACgB;AAElB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;uDACa;AAEf;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;qDACW;AAEb;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;KACxB,CAAC;;uDACa;AAEf;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;4DACkB;AAEpB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;4DACkB;AAEpB;IAAC,gCAAS;8BACC,IAAI;0DAAC;AAEhB;IAAC,gCAAS;8BACC,IAAI;0DAAC;AAEhB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,aAAa,CAAC;8BACtB,qBAAI;8DAAC;AAEpB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,aAAa,CAAC;8BACtB,qBAAI;8DAAC;AAEpB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,QAAQ,CAAC;8BAC1B,qBAAI;qDAAC;AAEX;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,sBAAU,EAAE,WAAW,CAAC;8BAClC,qBAAI;sDAAC;AAjEO,uBAAuB;IAN3C,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,wBAAwB;QACnC,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;KACvB,CAAC;GACmB,uBAAuB,CAkE3C;kBAlEoB,uBAAuB"}
@@ -20,6 +20,7 @@ __decorate([
20
20
  primaryKey: true,
21
21
  type: sequelize_typescript_1.DataType.INTEGER,
22
22
  allowNull: false,
23
+ autoIncrement: true,
23
24
  }),
24
25
  __metadata("design:type", Number)
25
26
  ], UserObjectPrivilegeModel.prototype, "ObjectPrivilegeId", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"user-object-privilege.entity.js","sourceRoot":"","sources":["../../../src/models/user-object-privilege.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,uEAA6D;AAC7D,mEAA0D;AAQ3C,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,4BAAK;CAoE1D,CAAA;AAnEC;IAAC,IAA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CAAC,qBAAI,EAAE,QAAQ,CAAC;8BAC1B,qBAAI;sDAAC;AAEX;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,iCAAoB,CAAC;8BAC3B,iCAAoB;2DAAC;AAEhC;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,aAAa,CAAC;8BACtB,qBAAI;+DAAC;AAEpB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,aAAa,CAAC;8BACtB,qBAAI;+DAAC;AAnED,wBAAwB;IAN5C,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,yBAAyB;QACpC,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;KACvB,CAAC;GACmB,wBAAwB,CAoE5C;kBApEoB,wBAAwB"}
1
+ {"version":3,"file":"user-object-privilege.entity.js","sourceRoot":"","sources":["../../../src/models/user-object-privilege.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,uEAA6D;AAC7D,mEAA0D;AAQ3C,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,4BAAK;CAqE1D,CAAA;AApEC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;QAChB,aAAa,EAAE,IAAI;KACpB,CAAC;;mEACwB;AAE1B;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;wDACa;AAEf;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,iCAAoB,CAAC;IACtC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,SAAS,EAAE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AChB,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;KACvB,CAAC;GACmB,wBAAwB,CAqE5C;kBArEoB,wBAAwB"}
@@ -19,6 +19,7 @@ __decorate([
19
19
  primaryKey: true,
20
20
  type: sequelize_typescript_1.DataType.INTEGER,
21
21
  allowNull: false,
22
+ autoIncrement: true,
22
23
  }),
23
24
  __metadata("design:type", Number)
24
25
  ], UserPrivilegeModel.prototype, "UserPrivilegeId", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"user-privilege.entity.js","sourceRoot":"","sources":["../../../src/models/user-privilege.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,uEAA6D;AAQ9C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4BAAK;CAyDpD,CAAA;AAxDC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;KACjB,CAAC;;2DACsB;AAExB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,KAAK,EAAE,QAAQ;KAChB,CAAC;;kDACa;AAEf;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,iCAAoB,CAAC;IACtC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,SAAS,EAAE,KAAK;KACjB,CAAC;;yDACoB;AAEtB;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE,QAAQ;KACvB,CAAC;;kDACa;AAEf;IAAC,IAAA,6BAAM,EAAC;QACN,IAA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AW;QACtB,SAAS,EAAE,WAAW;KACvB,CAAC;GACmB,kBAAkB,CA0DtC;kBA1DoB,kBAAkB"}
@@ -19,6 +19,7 @@ __decorate([
19
19
  primaryKey: true,
20
20
  type: sequelize_typescript_1.DataType.INTEGER,
21
21
  allowNull: false,
22
+ autoIncrement: true,
22
23
  }),
23
24
  __metadata("design:type", Number)
24
25
  ], UserSystemAccessModel.prototype, "UserSystemAccessId", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"user-system-access.entity.js","sourceRoot":"","sources":["../../../src/models/user-system-access.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,mDAA0C;AAQ3B,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,4BAAK;CAyDvD,CAAA;AAxDC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;KACjB,CAAC;;iEACyB;AAE3B;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,KAAK,EAAE,QAAQ;KAChB,CAAC;;qDACa;AAEf;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,uBAAW,CAAC;IAC7B,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,SAAS,EAAE,KAAK;KACjB,CAAC;;yDACiB;AAEnB;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,YAAY,EAAE,QAAQ;KACvB,CAAC;;qDACa;AAEf;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;0DACkB;AAEpB;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;0DACkB;AAEpB;IAAC,gCAAS;8BACC,IAAI;wDAAC;AAEhB;IAAC,gCAAS;8BACC,IAAI;wDAAC;AAEhB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,QAAQ,CAAC;8BAC1B,qBAAI;mDAAC;AAEX;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,uBAAW,EAAE,QAAQ,CAAC;8BAC/B,uBAAW;qDAAC;AAEpB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,aAAa,CAAC;8BACtB,qBAAI;4DAAC;AAEpB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,EAAE,aAAa,CAAC;8BACtB,qBAAI;4DAAC;AAxDD,qBAAqB;IANzC,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,sBAAsB;QACjC,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;KACvB,CAAC;GACmB,qBAAqB,CAyDzC;kBAzDoB,qBAAqB"}
1
+ {"version":3,"file":"user-system-access.entity.js","sourceRoot":"","sources":["../../../src/models/user-system-access.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,mDAA0C;AAQ3B,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,4BAAK;CA0DvD,CAAA;AAzDC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;QAChB,aAAa,EAAE,IAAI;KACpB,CAAC;;iEACyB;AA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