rez_core 6.5.2 → 6.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/dist/app.module.js +1 -1
  2. package/dist/app.module.js.map +1 -1
  3. package/dist/config/database.config.js +1 -1
  4. package/dist/config/database.config.js.map +1 -1
  5. package/dist/constant/status.constant.d.ts +4 -0
  6. package/dist/constant/status.constant.js +9 -0
  7. package/dist/constant/status.constant.js.map +1 -0
  8. package/dist/core.module.js +60 -38
  9. package/dist/core.module.js.map +1 -1
  10. package/dist/module/auth/strategies/jwt.strategy.d.ts +1 -1
  11. package/dist/module/auth/strategies/jwt.strategy.js +2 -2
  12. package/dist/module/auth/strategies/jwt.strategy.js.map +1 -1
  13. package/dist/module/dashboard/dashboard.module.js +1 -1
  14. package/dist/module/dashboard/dashboard.module.js.map +1 -1
  15. package/dist/module/dashboard/service/dashboard.service.js +2 -3
  16. package/dist/module/dashboard/service/dashboard.service.js.map +1 -1
  17. package/dist/module/enterprise/controller/organization.controller.d.ts +1 -3
  18. package/dist/module/enterprise/controller/organization.controller.js +2 -6
  19. package/dist/module/enterprise/controller/organization.controller.js.map +1 -1
  20. package/dist/module/enterprise/enterprise.module.js +1 -3
  21. package/dist/module/enterprise/enterprise.module.js.map +1 -1
  22. package/dist/module/enterprise/entity/organization.entity.d.ts +2 -1
  23. package/dist/module/enterprise/entity/organization.entity.js +4 -2
  24. package/dist/module/enterprise/entity/organization.entity.js.map +1 -1
  25. package/dist/module/enterprise/repository/enterprise.repository.d.ts +2 -0
  26. package/dist/module/enterprise/repository/enterprise.repository.js +10 -0
  27. package/dist/module/enterprise/repository/enterprise.repository.js.map +1 -1
  28. package/dist/module/enterprise/service/organization.service.d.ts +2 -2
  29. package/dist/module/enterprise/service/organization.service.js +4 -4
  30. package/dist/module/enterprise/service/organization.service.js.map +1 -1
  31. package/dist/module/filter/service/filter.service.js +2 -2
  32. package/dist/module/filter/service/filter.service.js.map +1 -1
  33. package/dist/module/layout/controller/layout.controller.d.ts +1 -3
  34. package/dist/module/layout/controller/layout.controller.js +3 -7
  35. package/dist/module/layout/controller/layout.controller.js.map +1 -1
  36. package/dist/module/layout/entity/header-section.entity.d.ts +0 -2
  37. package/dist/module/layout/entity/header-section.entity.js +0 -8
  38. package/dist/module/layout/entity/header-section.entity.js.map +1 -1
  39. package/dist/module/layout/layout.module.js +1 -2
  40. package/dist/module/layout/layout.module.js.map +1 -1
  41. package/dist/module/layout/repository/header-section.repository.d.ts +0 -1
  42. package/dist/module/layout/repository/header-section.repository.js +0 -5
  43. package/dist/module/layout/repository/header-section.repository.js.map +1 -1
  44. package/dist/module/layout/service/header-section.service.d.ts +1 -1
  45. package/dist/module/layout/service/header-section.service.js +1 -1
  46. package/dist/module/layout/service/header-section.service.js.map +1 -1
  47. package/dist/module/listmaster/service/list-master.service.js +1 -8
  48. package/dist/module/listmaster/service/list-master.service.js.map +1 -1
  49. package/dist/module/meta/entity/app-master.entity.d.ts +8 -4
  50. package/dist/module/meta/entity/app-master.entity.js +30 -12
  51. package/dist/module/meta/entity/app-master.entity.js.map +1 -1
  52. package/dist/module/meta/repository/app-master.repository.js +1 -1
  53. package/dist/module/meta/repository/app-master.repository.js.map +1 -1
  54. package/dist/module/meta/service/attribute-master.service.js +0 -2
  55. package/dist/module/meta/service/attribute-master.service.js.map +1 -1
  56. package/dist/module/meta/service/entity-service-impl.service.js +2 -6
  57. package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
  58. package/dist/module/module/controller/menu.controller.js +2 -2
  59. package/dist/module/module/controller/menu.controller.js.map +1 -1
  60. package/dist/module/module/controller/module-access.controller.d.ts +5 -6
  61. package/dist/module/module/controller/module-access.controller.js +33 -28
  62. package/dist/module/module/controller/module-access.controller.js.map +1 -1
  63. package/dist/module/module/entity/menu.entity.d.ts +6 -2
  64. package/dist/module/module/entity/menu.entity.js +19 -7
  65. package/dist/module/module/entity/menu.entity.js.map +1 -1
  66. package/dist/module/module/entity/module-access.entity.d.ts +15 -0
  67. package/dist/module/module/entity/module-access.entity.js +50 -0
  68. package/dist/module/module/entity/module-access.entity.js.map +1 -1
  69. package/dist/module/module/entity/module-action.entity.d.ts +4 -1
  70. package/dist/module/module/entity/module-action.entity.js +12 -3
  71. package/dist/module/module/entity/module-action.entity.js.map +1 -1
  72. package/dist/module/module/entity/module.entity.d.ts +3 -5
  73. package/dist/module/module/entity/module.entity.js +8 -18
  74. package/dist/module/module/entity/module.entity.js.map +1 -1
  75. package/dist/module/module/module.module.d.ts +1 -1
  76. package/dist/module/module/module.module.js +7 -9
  77. package/dist/module/module/module.module.js.map +1 -1
  78. package/dist/module/module/repository/menu.repository.d.ts +4 -4
  79. package/dist/module/module/repository/menu.repository.js +17 -27
  80. package/dist/module/module/repository/menu.repository.js.map +1 -1
  81. package/dist/module/module/repository/module-access.repository.d.ts +11 -12
  82. package/dist/module/module/repository/module-access.repository.js +37 -40
  83. package/dist/module/module/repository/module-access.repository.js.map +1 -1
  84. package/dist/module/module/service/menu.service.d.ts +3 -5
  85. package/dist/module/module/service/menu.service.js +9 -12
  86. package/dist/module/module/service/menu.service.js.map +1 -1
  87. package/dist/module/module/service/module-access.service.d.ts +13 -17
  88. package/dist/module/module/service/module-access.service.js +17 -25
  89. package/dist/module/module/service/module-access.service.js.map +1 -1
  90. package/dist/module/notification/service/otp.service.js.map +1 -1
  91. package/dist/module/user/controller/user.controller.d.ts +0 -2
  92. package/dist/module/user/controller/user.controller.js +0 -13
  93. package/dist/module/user/controller/user.controller.js.map +1 -1
  94. package/dist/module/user/dto/create-user.dto.d.ts +6 -3
  95. package/dist/module/user/dto/create-user.dto.js +17 -11
  96. package/dist/module/user/dto/create-user.dto.js.map +1 -1
  97. package/dist/module/user/entity/role.entity.d.ts +19 -6
  98. package/dist/module/user/entity/role.entity.js +68 -19
  99. package/dist/module/user/entity/role.entity.js.map +1 -1
  100. package/dist/module/user/entity/user-role-mapping.entity.d.ts +10 -0
  101. package/dist/module/user/entity/user-role-mapping.entity.js +33 -1
  102. package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
  103. package/dist/module/user/entity/user.entity.d.ts +19 -5
  104. package/dist/module/user/entity/user.entity.js +69 -15
  105. package/dist/module/user/entity/user.entity.js.map +1 -1
  106. package/dist/module/user/repository/role.repository.d.ts +5 -2
  107. package/dist/module/user/repository/role.repository.js +13 -8
  108. package/dist/module/user/repository/role.repository.js.map +1 -1
  109. package/dist/module/user/repository/user.repository.d.ts +3 -2
  110. package/dist/module/user/repository/user.repository.js +9 -6
  111. package/dist/module/user/repository/user.repository.js.map +1 -1
  112. package/dist/module/user/service/login.service.d.ts +3 -5
  113. package/dist/module/user/service/login.service.js +37 -42
  114. package/dist/module/user/service/login.service.js.map +1 -1
  115. package/dist/module/user/service/role.service.d.ts +21 -11
  116. package/dist/module/user/service/role.service.js +32 -38
  117. package/dist/module/user/service/role.service.js.map +1 -1
  118. package/dist/module/user/service/user-session.service.d.ts +1 -1
  119. package/dist/module/user/service/user-session.service.js +4 -4
  120. package/dist/module/user/service/user-session.service.js.map +1 -1
  121. package/dist/module/user/service/user.service.d.ts +28 -20
  122. package/dist/module/user/service/user.service.js +41 -56
  123. package/dist/module/user/service/user.service.js.map +1 -1
  124. package/dist/module/user/user.module.js +1 -5
  125. package/dist/module/user/user.module.js.map +1 -1
  126. package/dist/module/workflow/repository/action-data.repository.d.ts +1 -1
  127. package/dist/module/workflow/repository/action-data.repository.js +6 -8
  128. package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
  129. package/dist/module/workflow/repository/action.repository.d.ts +1 -1
  130. package/dist/module/workflow/repository/action.repository.js +10 -10
  131. package/dist/module/workflow/repository/action.repository.js.map +1 -1
  132. package/dist/module/workflow/repository/form-master.repository.d.ts +1 -1
  133. package/dist/module/workflow/repository/form-master.repository.js +2 -2
  134. package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
  135. package/dist/module/workflow/service/action-data.service.js +1 -2
  136. package/dist/module/workflow/service/action-data.service.js.map +1 -1
  137. package/dist/module/workflow/service/action.service.js +2 -2
  138. package/dist/module/workflow/service/action.service.js.map +1 -1
  139. package/dist/module/workflow/service/comm-template.service.js +0 -2
  140. package/dist/module/workflow/service/comm-template.service.js.map +1 -1
  141. package/dist/module/workflow/service/entity-modification.service.js +0 -1
  142. package/dist/module/workflow/service/entity-modification.service.js.map +1 -1
  143. package/dist/module/workflow/service/form-master.service.js +2 -2
  144. package/dist/module/workflow/service/form-master.service.js.map +1 -1
  145. package/dist/module/workflow/service/task.service.js +0 -3
  146. package/dist/module/workflow/service/task.service.js.map +1 -1
  147. package/dist/module/workflow/service/workflow-meta.service.js +2 -7
  148. package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
  149. package/dist/module/workflow/service/workflow.service.js +2 -2
  150. package/dist/module/workflow/service/workflow.service.js.map +1 -1
  151. package/dist/module/workflow-automation/service/workflow-automation.service.js +1 -4
  152. package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
  153. package/dist/module/workflow-schedule/service/workflow-schedule.service.js +0 -2
  154. package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -1
  155. package/dist/table.config.d.ts +2 -2
  156. package/dist/tsconfig.build.tsbuildinfo +1 -1
  157. package/package.json +1 -1
  158. package/src/app.module.ts +3 -3
  159. package/src/config/database.config.ts +1 -1
  160. package/src/constant/status.constant.ts +4 -0
  161. package/src/core.module.ts +55 -44
  162. package/src/module/auth/strategies/jwt.strategy.ts +2 -2
  163. package/src/module/dashboard/dashboard.module.ts +3 -3
  164. package/src/module/dashboard/service/dashboard.service.ts +2 -3
  165. package/src/module/enterprise/controller/organization.controller.ts +0 -1
  166. package/src/module/enterprise/enterprise.module.ts +1 -2
  167. package/src/module/enterprise/entity/organization.entity.ts +5 -3
  168. package/src/module/enterprise/repository/enterprise.repository.ts +14 -0
  169. package/src/module/enterprise/service/organization.service.ts +1 -1
  170. package/src/module/filter/service/filter.service.ts +2 -3
  171. package/src/module/layout/controller/layout.controller.ts +1 -8
  172. package/src/module/layout/entity/header-section.entity.ts +0 -6
  173. package/src/module/layout/layout.module.ts +1 -1
  174. package/src/module/layout/repository/header-section.repository.ts +0 -6
  175. package/src/module/layout/service/header-section.service.ts +1 -1
  176. package/src/module/listmaster/service/list-master.service.ts +1 -9
  177. package/src/module/meta/entity/app-master.entity.ts +22 -9
  178. package/src/module/meta/repository/app-master.repository.ts +1 -1
  179. package/src/module/meta/service/attribute-master.service.ts +0 -2
  180. package/src/module/meta/service/entity-service-impl.service.ts +2 -6
  181. package/src/module/module/controller/menu.controller.ts +2 -2
  182. package/src/module/module/controller/module-access.controller.ts +25 -20
  183. package/src/module/module/entity/menu.entity.ts +17 -7
  184. package/src/module/module/entity/module-access.entity.ts +41 -1
  185. package/src/module/module/entity/module-action.entity.ts +11 -4
  186. package/src/module/module/entity/module.entity.ts +7 -14
  187. package/src/module/module/module.module.ts +3 -4
  188. package/src/module/module/repository/menu.repository.ts +19 -31
  189. package/src/module/module/repository/module-access.repository.ts +43 -47
  190. package/src/module/module/service/menu.service.ts +11 -13
  191. package/src/module/module/service/module-access.service.ts +24 -40
  192. package/src/module/notification/service/otp.service.ts +3 -2
  193. package/src/module/user/controller/user.controller.ts +0 -9
  194. package/src/module/user/dto/create-user.dto.ts +19 -6
  195. package/src/module/user/entity/role.entity.ts +62 -16
  196. package/src/module/user/entity/user-role-mapping.entity.ts +29 -3
  197. package/src/module/user/entity/user.entity.ts +54 -13
  198. package/src/module/user/repository/role.repository.ts +19 -11
  199. package/src/module/user/repository/user.repository.ts +10 -6
  200. package/src/module/user/service/login.service.ts +38 -50
  201. package/src/module/user/service/role.service.ts +40 -60
  202. package/src/module/user/service/user-session.service.ts +4 -4
  203. package/src/module/user/service/user.service.ts +59 -91
  204. package/src/module/user/user.module.ts +3 -4
  205. package/src/module/workflow/repository/action-data.repository.ts +6 -8
  206. package/src/module/workflow/repository/action.repository.ts +11 -11
  207. package/src/module/workflow/repository/form-master.repository.ts +2 -2
  208. package/src/module/workflow/service/action-data.service.ts +3 -2
  209. package/src/module/workflow/service/action.service.ts +2 -2
  210. package/src/module/workflow/service/comm-template.service.ts +0 -2
  211. package/src/module/workflow/service/entity-modification.service.ts +0 -1
  212. package/src/module/workflow/service/form-master.service.ts +2 -2
  213. package/src/module/workflow/service/task.service.ts +0 -3
  214. package/src/module/workflow/service/workflow-meta.service.ts +2 -7
  215. package/src/module/workflow/service/workflow.service.ts +2 -2
  216. package/src/module/workflow-automation/service/workflow-automation.service.ts +1 -4
  217. package/src/module/workflow-schedule/service/workflow-schedule.service.ts +0 -2
  218. package/src/resources/dev.properties.yaml +2 -2
  219. package/.claude/settings.local.json +0 -26
  220. package/.idea/250218_nodejs_core.iml +0 -9
  221. package/.idea/codeStyles/Project.xml +0 -59
  222. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  223. package/.idea/copilot.data.migration.agent.xml +0 -6
  224. package/.idea/copilot.data.migration.ask.xml +0 -6
  225. package/.idea/copilot.data.migration.ask2agent.xml +0 -6
  226. package/.idea/copilot.data.migration.edit.xml +0 -6
  227. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  228. package/.idea/misc.xml +0 -6
  229. package/.idea/modules.xml +0 -8
  230. package/.idea/prettier.xml +0 -6
  231. package/.idea/vcs.xml +0 -6
  232. package/server.log +0 -850
@@ -2,25 +2,23 @@ import { ModuleAccessRepository } from '../repository/module-access.repository';
2
2
  import { DataSource } from 'typeorm';
3
3
  import { UserData } from 'src/module/user/entity/user.entity';
4
4
  import { MenuRepository } from '../repository/menu.repository';
5
- import { ListMasterService } from 'src/module/listmaster/service/list-master.service';
6
5
  import { ReflectionHelper } from '../../../utils/service/reflection-helper.service';
7
6
  export declare class ModuleAccessService {
8
7
  private readonly moduleAccessRepository;
9
8
  private readonly menuRepository;
10
9
  private readonly dataSource;
11
- private readonly listMasterService;
12
10
  private readonly reflectionHelper;
13
- constructor(moduleAccessRepository: ModuleAccessRepository, menuRepository: MenuRepository, dataSource: DataSource, listMasterService: ListMasterService, reflectionHelper: ReflectionHelper);
14
- getModules({ appcode, loggedInUser }: {
15
- appcode: string;
11
+ constructor(moduleAccessRepository: ModuleAccessRepository, menuRepository: MenuRepository, dataSource: DataSource, reflectionHelper: ReflectionHelper);
12
+ getModules({ app_id, loggedInUser }: {
13
+ app_id: number;
16
14
  loggedInUser: UserData;
17
15
  }): Promise<{
18
16
  label: any;
19
17
  value: any;
20
18
  group: any;
21
19
  }[]>;
22
- getRoles({ appcode, level_type, level_id, include, }: {
23
- appcode: string;
20
+ getRoles({ appId, level_type, level_id, include, }: {
21
+ appId: number;
24
22
  level_type?: string;
25
23
  level_id?: number;
26
24
  include?: boolean;
@@ -28,31 +26,29 @@ export declare class ModuleAccessService {
28
26
  label: any;
29
27
  value: any;
30
28
  }[]>;
31
- getAccessListing(roleIds: number[], appcode: string, levelType: string, level_id?: number): Promise<any>;
32
- getMenuListing(mainModIds: string[], appcode: string, levelType: string): Promise<Record<string, any[]>>;
29
+ getAccessListing(roleIds: number[], appId: number, levelType: string, level_id?: number): Promise<any>;
30
+ getMenuListing(mainModIds: string[], appId: number, levelType: string): Promise<Record<string, any[]>>;
33
31
  updateModuleAccess(moduleAccessData: {
34
- role_code: string;
35
- module_code: string;
32
+ role_id: number;
33
+ module_id: number;
36
34
  action_type: string;
37
35
  access_flag: number;
38
- appcode: string;
36
+ app_id: number;
39
37
  level_type: string;
40
38
  }[]): Promise<{
41
39
  success: boolean;
42
40
  msg: string;
43
41
  }>;
44
- getModuleUIConfig(moduleCode: string, roleIds: number[]): Promise<{
42
+ getModuleUIConfig(moduleId: number, roleIds: number[]): Promise<{
45
43
  entity_type: string;
46
44
  title: string;
47
- ui_config: JSON;
48
45
  action: string[];
49
46
  }>;
50
- getUserPermissions({ userId, appcode, level_type, level_id, enterprise_id, }: {
47
+ getUserPermissions({ userId, app_id, level_type, level_id, }: {
51
48
  userId: number;
52
- appcode: string;
49
+ app_id: number;
53
50
  level_type: string;
54
51
  level_id: number;
55
- enterprise_id: number;
56
52
  }): Promise<{
57
53
  action: any;
58
54
  access: any;
@@ -8,9 +8,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  exports.ModuleAccessService = void 0;
16
13
  const common_1 = require("@nestjs/common");
@@ -18,27 +15,25 @@ const module_access_repository_1 = require("../repository/module-access.reposito
18
15
  const global_constant_1 = require("../../../constant/global.constant");
19
16
  const typeorm_1 = require("typeorm");
20
17
  const menu_repository_1 = require("../repository/menu.repository");
21
- const list_master_service_1 = require("../../listmaster/service/list-master.service");
22
18
  const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
23
19
  let ModuleAccessService = class ModuleAccessService {
24
- constructor(moduleAccessRepository, menuRepository, dataSource, listMasterService, reflectionHelper) {
20
+ constructor(moduleAccessRepository, menuRepository, dataSource, reflectionHelper) {
25
21
  this.moduleAccessRepository = moduleAccessRepository;
26
22
  this.menuRepository = menuRepository;
27
23
  this.dataSource = dataSource;
28
- this.listMasterService = listMasterService;
29
24
  this.reflectionHelper = reflectionHelper;
30
25
  }
31
- async getModules({ appcode, loggedInUser }) {
26
+ async getModules({ app_id, loggedInUser }) {
32
27
  return this.moduleAccessRepository.getModules({
33
- appcode, loggedInUser,
28
+ app_id, loggedInUser,
34
29
  });
35
30
  }
36
- async getRoles({ appcode, level_type, level_id, include, }) {
31
+ async getRoles({ appId, level_type, level_id, include, }) {
37
32
  const query = this.dataSource
38
33
  .createQueryBuilder()
39
34
  .select('*')
40
35
  .from('sso_role', 'role')
41
- .where('role.appcode = :appcode', { appcode });
36
+ .where('role.app_id = :appId', { appId });
42
37
  if (!include) {
43
38
  query.andWhere('(role.is_factory IS NULL OR role.is_factory != 1)');
44
39
  }
@@ -54,14 +49,14 @@ let ModuleAccessService = class ModuleAccessService {
54
49
  value: role.id,
55
50
  }));
56
51
  }
57
- async getAccessListing(roleIds, appcode, levelType, level_id) {
58
- return this.moduleAccessRepository.getAccessListing(roleIds, appcode, levelType, level_id);
52
+ async getAccessListing(roleIds, appId, levelType, level_id) {
53
+ return this.moduleAccessRepository.getAccessListing(roleIds, appId, levelType, level_id);
59
54
  }
60
- async getMenuListing(mainModIds, appcode, levelType) {
61
- if (!appcode) {
62
- throw new common_1.BadRequestException('Appcode is required');
55
+ async getMenuListing(mainModIds, appId, levelType) {
56
+ if (!appId) {
57
+ throw new common_1.BadRequestException('AppId is required');
63
58
  }
64
- return this.moduleAccessRepository.getAllModulesByLevel(mainModIds, appcode, levelType);
59
+ return this.moduleAccessRepository.getAllModulesByLevel(mainModIds, appId, levelType);
65
60
  }
66
61
  async updateModuleAccess(moduleAccessData) {
67
62
  if (!moduleAccessData || moduleAccessData.length === 0) {
@@ -75,16 +70,16 @@ let ModuleAccessService = class ModuleAccessService {
75
70
  return { success: false, msg: 'Failed to update module access' };
76
71
  }
77
72
  }
78
- async getModuleUIConfig(moduleCode, roleIds) {
79
- return this.moduleAccessRepository.getModuleUIConfig(moduleCode, roleIds);
73
+ async getModuleUIConfig(moduleId, roleIds) {
74
+ return this.moduleAccessRepository.getModuleUIConfig(moduleId, roleIds);
80
75
  }
81
- async getUserPermissions({ userId, appcode, level_type, level_id, enterprise_id, }) {
82
- const roleCodes = await this.menuRepository.resolveUserRoles(userId, appcode, level_type, level_id);
76
+ async getUserPermissions({ userId, app_id, level_type, level_id, }) {
77
+ const roleCodes = await this.menuRepository.resolveUserRoles(userId, app_id, level_type, level_id);
83
78
  if (!roleCodes || roleCodes.length === 0) {
84
79
  return [];
85
80
  }
86
81
  const roleIds = roleCodes.map(Number);
87
- const allPermissions = await this.moduleAccessRepository.getModuleAccessByRoles(roleIds, appcode);
82
+ const allPermissions = await this.moduleAccessRepository.getModuleAccessByRoles(roleIds, app_id);
88
83
  if (level_type === 'SCH') {
89
84
  const schoolRepo = this.reflectionHelper.getRepoService('SSOSchool');
90
85
  const school = await schoolRepo.findOne({
@@ -92,8 +87,7 @@ let ModuleAccessService = class ModuleAccessService {
92
87
  id: level_id,
93
88
  },
94
89
  });
95
- const resolveStatus = await this.listMasterService.getResolvedListCode(global_constant_1.STATUS_INACTIVE, enterprise_id || 0);
96
- if (!school || school.status === resolveStatus.id) {
90
+ if (!school || school.status === global_constant_1.STATUS_INACTIVE) {
97
91
  return allPermissions.filter((perm) => perm.action === 'VIEW');
98
92
  }
99
93
  }
@@ -103,11 +97,9 @@ let ModuleAccessService = class ModuleAccessService {
103
97
  exports.ModuleAccessService = ModuleAccessService;
104
98
  exports.ModuleAccessService = ModuleAccessService = __decorate([
105
99
  (0, common_1.Injectable)(),
106
- __param(3, (0, common_1.Inject)('ListMasterService')),
107
100
  __metadata("design:paramtypes", [module_access_repository_1.ModuleAccessRepository,
108
101
  menu_repository_1.MenuRepository,
109
102
  typeorm_1.DataSource,
110
- list_master_service_1.ListMasterService,
111
103
  reflection_helper_service_1.ReflectionHelper])
112
104
  ], ModuleAccessService);
113
105
  //# sourceMappingURL=module-access.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-access.service.js","sourceRoot":"","sources":["../../../../src/module/module/service/module-access.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,qFAAgF;AAGhF,uEAG2C;AAE3C,qCAAoD;AAEpD,mEAA+D;AAC/D,sFAAsF;AACtF,gGAAoF;AAG7E,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YACmB,sBAA8C,EAC9C,cAA8B,EAC9B,UAAsB,EAEtB,iBAAoC,EACpC,gBAAkC;QALlC,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,mBAAc,GAAd,cAAc,CAAgB;QAC9B,eAAU,GAAV,UAAU,CAAY;QAEtB,sBAAiB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AAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzC,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,OAAO,GAAG,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAGtC,MAAM,cAAc,GAClB,MAAM,IAAI,CAAC,sBAAsB,CAAC,sBAAsB,CACtD,OAAO,EACP,OAAO,CACR,CAAC;QAGJ,IAAI,UAAU,KAAK,KAAK,EAAE,CAAC;YACzB,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;YAErE,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;gBACtC,KAAK,EAAE;oBACL,EAAE,EAAE,QAAQ;iBACb;aACF,CAAC,CAAC;YAEH,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,CACpE,iCAAe,EACf,aAAa,IAAI,CAAC,CACnB,CAAC;YAEF,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,aAAa,CAAC,EAAE,EAAE,CAAC;gBAElD,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC;YACjE,CAAC;QACH,CAAC;QAGD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAA;AA5KY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAMR,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCAHa,iDAAsB;QAC9B,gCAAc;QAClB,oBAAU;QAEH,uCAAiB;QAClB,4CAAgB;GAP1C,mBAAmB,CA4K/B"}
1
+ {"version":3,"file":"module-access.service.js","sourceRoot":"","sources":["../../../../src/module/module/service/module-access.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiE;AACjE,qFAAgF;AAChF,uEAAoE;AACpE,qCAAqC;AAErC,m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,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,GAMlC;QAEC,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAC1D,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,CACT,CAAC;QAEF,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzC,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,OAAO,GAAG,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAGtC,MAAM,cAAc,GAClB,MAAM,IAAI,CAAC,sBAAsB,CAAC,sBAAsB,CACtD,OAAO,EACP,MAAM,CACP,CAAC;QAGJ,IAAI,UAAU,KAAK,KAAK,EAAE,CAAC;YACzB,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;YAErE,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;gBACtC,KAAK,EAAE;oBACL,EAAE,EAAE,QAAQ;iBACb;aACF,CAAC,CAAC;YAEH,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,iCAAe,EAAE,CAAC;gBAEjD,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC;YACjE,CAAC;QACH,CAAC;QAGD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAA;AAnKY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAGgC,iDAAsB;QAC9B,gCAAc;QAClB,oBAAU;QACJ,4CAAgB;GAL1C,mBAAmB,CAmK/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"otp.service.js","sourceRoot":"","sources":["../../../../src/module/notification/service/otp.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqC;AACrC,2CAAiE;AACjE,2CAA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AGuB,8BAAa;QACrB,0CAAiB;QAClB,sBAAa;QACL,4BAAY;QACZ,4BAAY;QACd,oBAAU;GAP9B,UAAU,CA2HtB"}
@@ -1,9 +1,7 @@
1
1
  import { UserService } from '../service/user.service';
2
- import { CreateUserDto } from '../dto/create-user.dto';
3
2
  import { Response } from 'express';
4
3
  export declare class UserController {
5
4
  private readonly userService;
6
5
  constructor(userService: UserService);
7
- signup(createUserDto: CreateUserDto, res: Response): Promise<void>;
8
6
  checkEmail(body: any, res: Response): Promise<Response<any, Record<string, any>>>;
9
7
  }
@@ -15,15 +15,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.UserController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const user_service_1 = require("../service/user.service");
18
- const create_user_dto_1 = require("../dto/create-user.dto");
19
18
  let UserController = class UserController {
20
19
  constructor(userService) {
21
20
  this.userService = userService;
22
21
  }
23
- async signup(createUserDto, res) {
24
- const result = await this.userService.createEntity(createUserDto, null);
25
- res.status(common_1.HttpStatus.OK).json(result);
26
- }
27
22
  async checkEmail(body, res) {
28
23
  const { email_id, subdomain } = body;
29
24
  const result = await this.userService.checkEmailExists({
@@ -34,14 +29,6 @@ let UserController = class UserController {
34
29
  }
35
30
  };
36
31
  exports.UserController = UserController;
37
- __decorate([
38
- (0, common_1.Post)('user/signup'),
39
- __param(0, (0, common_1.Body)(new common_1.ValidationPipe())),
40
- __param(1, (0, common_1.Res)()),
41
- __metadata("design:type", Function),
42
- __metadata("design:paramtypes", [create_user_dto_1.CreateUserDto, Object]),
43
- __metadata("design:returntype", Promise)
44
- ], UserController.prototype, "signup", null);
45
32
  __decorate([
46
33
  (0, common_1.Post)('check-email'),
47
34
  (0, common_1.HttpCode)(common_1.HttpStatus.OK),
@@ -1 +1 @@
1
- {"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../../../src/module/user/controller/user.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,0DAAsD;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sourceRoot":"","sources":["../../../../src/module/user/controller/user.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,0DAAsD;AAK/C,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAC0C,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAC/D,CAAC;IAIE,AAAN,KAAK,CAAC,UAAU,CAAS,IAAI,EAAS,GAAa;QACjD,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC;YACrD,QAAQ;YACR,SAAS;SACV,CAAC,CAAC;QACH,OAAO,GAAG,CAAC,MAAM,CAAC,mBAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;CACF,CAAA;AAfY,wCAAc;AAOnB;IAFL,IAAA,aAAI,EAAC,aAAa,CAAC;IACnB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACN,WAAA,IAAA,aAAI,GAAE,CAAA;IAAQ,WAAA,IAAA,YAAG,GAAE,CAAA;;;;gDAOpC;yBAdU,cAAc;IAD1B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,aAAa,CAAC,CAAA;qCAA+B,0BAAW;GAFvD,cAAc,CAe1B"}
@@ -1,6 +1,9 @@
1
- import { BaseEntity } from '../../meta/entity/base-entity.entity';
2
- export declare class CreateUserDto extends BaseEntity {
3
- constructor();
1
+ export declare class CreateUserDto {
2
+ status: string;
3
+ code: string;
4
+ enterprise_id: number | undefined;
5
+ level_id: string;
6
+ level_type: string;
4
7
  first_name: string;
5
8
  last_name: string;
6
9
  email_id: string;
@@ -11,16 +11,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateUserDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- const base_entity_entity_1 = require("../../meta/entity/base-entity.entity");
15
- const global_constant_1 = require("../../../constant/global.constant");
16
14
  const class_transformer_1 = require("class-transformer");
17
- class CreateUserDto extends base_entity_entity_1.BaseEntity {
18
- constructor() {
19
- super();
20
- this.entity_type = global_constant_1.ENTITYTYPE_USER;
21
- }
15
+ const typeorm_1 = require("typeorm");
16
+ class CreateUserDto {
22
17
  }
23
18
  exports.CreateUserDto = CreateUserDto;
19
+ __decorate([
20
+ (0, typeorm_1.Column)({ name: 'enterprise_id', type: 'int', nullable: true }),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", Object)
23
+ ], CreateUserDto.prototype, "enterprise_id", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ name: 'level_id', type: 'varchar', length: 100, nullable: true }),
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], CreateUserDto.prototype, "level_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ name: 'level_type', type: 'varchar', length: 100, nullable: true }),
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", String)
33
+ ], CreateUserDto.prototype, "level_type", void 0);
24
34
  __decorate([
25
35
  (0, class_validator_1.IsString)(),
26
36
  (0, class_validator_1.IsNotEmpty)(),
@@ -57,8 +67,4 @@ __decorate([
57
67
  (0, class_transformer_1.Expose)(),
58
68
  __metadata("design:type", String)
59
69
  ], CreateUserDto.prototype, "mobile", void 0);
60
- __decorate([
61
- (0, class_transformer_1.Expose)(),
62
- __metadata("design:type", Array)
63
- ], CreateUserDto.prototype, "roles", void 0);
64
70
  //# sourceMappingURL=create-user.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.dto.js","sourceRoot":"","sources":["../../../../src/module/user/dto/create-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAChE,6EAAkE;AAClE,uEAAoE;AACpE,yDAA2C;AAE3C,MAAa,aAAc,SAAQ,+BAAU;I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-1,11 +1,24 @@
1
- import { BaseEntity } from '../../meta/entity/base-entity.entity';
2
- export declare class Role extends BaseEntity {
3
- constructor();
1
+ import { EnterpriseData } from '../../enterprise/entity/enterprise.entity';
2
+ import { AppMaster } from '../../meta/entity/app-master.entity';
3
+ export declare class Role {
4
+ id: number;
5
+ name: string;
6
+ status: string;
7
+ code: string;
8
+ created_by: number;
9
+ created_date: Date;
10
+ modified_by: number;
11
+ modified_date: Date;
12
+ enterprise_id: number;
13
+ enterprise: EnterpriseData;
14
+ organization_id: number;
15
+ appcode: string;
16
+ app_id: number;
17
+ app: AppMaster;
18
+ level_id: string;
19
+ level_type: string;
4
20
  is_system: number;
5
21
  description: string;
6
- organization_id: number;
7
22
  copy_from_role_id: number;
8
23
  is_factory: number;
9
- parent_type: string;
10
- parent_id: number;
11
24
  }
@@ -10,47 +10,96 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Role = void 0;
13
- const base_entity_entity_1 = require("../../meta/entity/base-entity.entity");
14
- const global_constant_1 = require("../../../constant/global.constant");
15
13
  const typeorm_1 = require("typeorm");
16
14
  const class_transformer_1 = require("class-transformer");
17
- let Role = class Role extends base_entity_entity_1.BaseEntity {
18
- constructor() {
19
- super();
20
- this.entity_type = global_constant_1.ENTITYTYPE_ROLE;
21
- }
15
+ const enterprise_entity_1 = require("../../enterprise/entity/enterprise.entity");
16
+ const app_master_entity_1 = require("../../meta/entity/app-master.entity");
17
+ let Role = class Role {
22
18
  };
23
19
  exports.Role = Role;
24
20
  __decorate([
25
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
21
+ (0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
26
22
  __metadata("design:type", Number)
27
- ], Role.prototype, "is_system", void 0);
23
+ ], Role.prototype, "id", void 0);
28
24
  __decorate([
29
- (0, typeorm_1.Column)({ type: 'varchar', length: 250, nullable: true }),
25
+ (0, typeorm_1.Column)({ name: 'name', type: 'varchar', length: 100, nullable: true }),
30
26
  __metadata("design:type", String)
31
- ], Role.prototype, "description", void 0);
27
+ ], Role.prototype, "name", void 0);
32
28
  __decorate([
33
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
29
+ (0, typeorm_1.Column)({ name: 'status', type: 'varchar', nullable: true, length: 100 }),
30
+ __metadata("design:type", String)
31
+ ], Role.prototype, "status", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ name: 'code', type: 'varchar', length: 100, nullable: true }),
34
+ __metadata("design:type", String)
35
+ ], Role.prototype, "code", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ name: 'created_by', type: 'bigint', nullable: true }),
38
+ __metadata("design:type", Number)
39
+ ], Role.prototype, "created_by", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.CreateDateColumn)(),
42
+ __metadata("design:type", Date)
43
+ ], Role.prototype, "created_date", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ name: 'modified_by', type: 'bigint', nullable: true }),
46
+ __metadata("design:type", Number)
47
+ ], Role.prototype, "modified_by", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.UpdateDateColumn)(),
50
+ __metadata("design:type", Date)
51
+ ], Role.prototype, "modified_date", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ name: 'enterprise_id', type: 'int', nullable: true }),
54
+ __metadata("design:type", Number)
55
+ ], Role.prototype, "enterprise_id", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.ManyToOne)(() => enterprise_entity_1.EnterpriseData, { nullable: true, onDelete: 'SET NULL' }),
58
+ (0, typeorm_1.JoinColumn)({ name: 'enterprise_id', referencedColumnName: 'id' }),
59
+ __metadata("design:type", enterprise_entity_1.EnterpriseData)
60
+ ], Role.prototype, "enterprise", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ name: 'organization_id', type: 'int', nullable: true }),
34
63
  __metadata("design:type", Number)
35
64
  ], Role.prototype, "organization_id", void 0);
36
65
  __decorate([
37
- (0, class_transformer_1.Exclude)(),
66
+ (0, typeorm_1.Column)({ name: 'appcode', type: 'varchar', length: 100, nullable: true }),
67
+ __metadata("design:type", String)
68
+ ], Role.prototype, "appcode", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ name: 'app_id', type: 'int', nullable: true }),
38
71
  __metadata("design:type", Number)
39
- ], Role.prototype, "copy_from_role_id", void 0);
72
+ ], Role.prototype, "app_id", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.ManyToOne)(() => app_master_entity_1.AppMaster, { nullable: true, onDelete: 'SET NULL' }),
75
+ (0, typeorm_1.JoinColumn)({ name: 'app_id', referencedColumnName: 'id' }),
76
+ __metadata("design:type", app_master_entity_1.AppMaster)
77
+ ], Role.prototype, "app", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ name: 'level_id', type: 'varchar', length: 100, nullable: true }),
80
+ __metadata("design:type", String)
81
+ ], Role.prototype, "level_id", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ name: 'level_type', type: 'varchar', length: 100, nullable: true }),
84
+ __metadata("design:type", String)
85
+ ], Role.prototype, "level_type", void 0);
40
86
  __decorate([
41
87
  (0, typeorm_1.Column)({ type: 'int', nullable: true }),
42
88
  __metadata("design:type", Number)
43
- ], Role.prototype, "is_factory", void 0);
89
+ ], Role.prototype, "is_system", void 0);
44
90
  __decorate([
45
91
  (0, typeorm_1.Column)({ type: 'varchar', length: 250, nullable: true }),
46
92
  __metadata("design:type", String)
47
- ], Role.prototype, "parent_type", void 0);
93
+ ], Role.prototype, "description", void 0);
94
+ __decorate([
95
+ (0, class_transformer_1.Exclude)(),
96
+ __metadata("design:type", Number)
97
+ ], Role.prototype, "copy_from_role_id", void 0);
48
98
  __decorate([
49
99
  (0, typeorm_1.Column)({ type: 'int', nullable: true }),
50
100
  __metadata("design:type", Number)
51
- ], Role.prototype, "parent_id", void 0);
101
+ ], Role.prototype, "is_factory", void 0);
52
102
  exports.Role = Role = __decorate([
53
- (0, typeorm_1.Entity)({ name: 'sso_role' }),
54
- __metadata("design:paramtypes", [])
103
+ (0, typeorm_1.Entity)({ name: 'sso_role' })
55
104
  ], Role);
56
105
  //# sourceMappingURL=role.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../../../src/module/user/entity/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAkE;AAClE,uEAAoE;AACpE,qCAAyC;AACzC,yDAA4C;AAGrC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,+BAAU;IAClC;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,iCAAe,CAAC;IACrC,CAAC;CAsBF,CAAA;AA1BY,oBAAI;AAOf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACtB;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACrC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAChB;AAGxB;IADC,IAAA,2BAAO,GAAE;;+CACgB;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACrB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACrC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACtB;eAzBP,IAAI;IADhB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAA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AC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACtB;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACrC;AAGpB;IADC,IAAA,2BAAO,GAAE;;+CACgB;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACrB;eA9DR,IAAI;IADhB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;GAChB,IAAI,CAgEhB"}
@@ -1,12 +1,22 @@
1
+ import { EnterpriseData } from 'src/module/enterprise/entity/enterprise.entity';
2
+ import { AppMaster } from 'src/module/meta/entity/app-master.entity';
3
+ import { UserData } from './user.entity';
4
+ import { Role } from './role.entity';
1
5
  export declare class UserRoleMapping {
2
6
  constructor(user_id: number, role_id: number);
3
7
  id: number;
4
8
  entity_type: string;
5
9
  user_id: number;
10
+ user: UserData;
6
11
  role_id: number;
12
+ role: Role;
7
13
  organization_id: number;
14
+ enterprise_id: number;
15
+ enterpriseData: EnterpriseData;
8
16
  is_default: number;
9
17
  appcode: string;
18
+ app_id: number;
19
+ app: AppMaster;
10
20
  level_id: string;
11
21
  level_type: string;
12
22
  }
@@ -11,7 +11,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UserRoleMapping = void 0;
13
13
  const global_constant_1 = require("../../../constant/global.constant");
14
+ const enterprise_entity_1 = require("../../enterprise/entity/enterprise.entity");
15
+ const app_master_entity_1 = require("../../meta/entity/app-master.entity");
14
16
  const typeorm_1 = require("typeorm");
17
+ const user_entity_1 = require("./user.entity");
18
+ const role_entity_1 = require("./role.entity");
15
19
  let UserRoleMapping = class UserRoleMapping {
16
20
  constructor(user_id, role_id) {
17
21
  this.user_id = user_id;
@@ -29,17 +33,36 @@ __decorate([
29
33
  __metadata("design:type", String)
30
34
  ], UserRoleMapping.prototype, "entity_type", void 0);
31
35
  __decorate([
32
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
36
+ (0, typeorm_1.Column)({ type: 'bigint' }),
33
37
  __metadata("design:type", Number)
34
38
  ], UserRoleMapping.prototype, "user_id", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.UserData, { nullable: true, onDelete: 'SET NULL' }),
41
+ (0, typeorm_1.JoinColumn)({ name: 'user_id', referencedColumnName: 'id' }),
42
+ __metadata("design:type", user_entity_1.UserData)
43
+ ], UserRoleMapping.prototype, "user", void 0);
35
44
  __decorate([
36
45
  (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
37
46
  __metadata("design:type", Number)
38
47
  ], UserRoleMapping.prototype, "role_id", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.ManyToOne)(() => role_entity_1.Role, { nullable: true, onDelete: 'SET NULL' }),
50
+ (0, typeorm_1.JoinColumn)({ name: 'role_id', referencedColumnName: 'id' }),
51
+ __metadata("design:type", role_entity_1.Role)
52
+ ], UserRoleMapping.prototype, "role", void 0);
39
53
  __decorate([
40
54
  (0, typeorm_1.Column)({ type: 'int', nullable: true }),
41
55
  __metadata("design:type", Number)
42
56
  ], UserRoleMapping.prototype, "organization_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ name: 'enterprise_id', nullable: true }),
59
+ __metadata("design:type", Number)
60
+ ], UserRoleMapping.prototype, "enterprise_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.ManyToOne)(() => enterprise_entity_1.EnterpriseData, { nullable: true, onDelete: 'SET NULL' }),
63
+ (0, typeorm_1.JoinColumn)({ name: 'enterprise_id', referencedColumnName: 'id' }),
64
+ __metadata("design:type", enterprise_entity_1.EnterpriseData)
65
+ ], UserRoleMapping.prototype, "enterpriseData", void 0);
43
66
  __decorate([
44
67
  (0, typeorm_1.Column)({ type: 'int', nullable: true }),
45
68
  __metadata("design:type", Number)
@@ -48,6 +71,15 @@ __decorate([
48
71
  (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
49
72
  __metadata("design:type", String)
50
73
  ], UserRoleMapping.prototype, "appcode", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
76
+ __metadata("design:type", Number)
77
+ ], UserRoleMapping.prototype, "app_id", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.ManyToOne)(() => app_master_entity_1.AppMaster, { nullable: true, onDelete: 'SET NULL' }),
80
+ (0, typeorm_1.JoinColumn)({ name: 'app_id', referencedColumnName: 'id' }),
81
+ __metadata("design:type", app_master_entity_1.AppMaster)
82
+ ], UserRoleMapping.prototype, "app", void 0);
51
83
  __decorate([
52
84
  (0, typeorm_1.Column)({ name: 'level_id', type: 'varchar', length: 100, nullable: true }),
53
85
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"user-role-mapping.entity.js","sourceRoot":"","sources":["../../../../src/module/user/entity/user-role-mapping.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAoE;AACpE,qCAAiE;AAG1D,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAAY,OAAe,EAAE,OAAe;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,sCAAoB,CAAC;IAC1C,CAAC;CA4BF,CAAA;AAjCY,0CAAe;AAQ1B;IADC,IAAA,gCAAsB,GAAE;;2CACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACxB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC3B;AAG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c;uDAAC;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACrB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC5B;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACzB;AAIf;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6BAAS,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAC,CAAC;IAClE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,6BAAS;4CAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC1D;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAC1D;0BAtDR,eAAe;IAD3B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;;GAC7B,eAAe,CAuD3B"}
@@ -1,6 +1,17 @@
1
- import { BaseEntity } from '../../meta/entity/base-entity.entity';
2
- export declare class UserData extends BaseEntity {
3
- constructor();
1
+ import { EnterpriseData } from 'src/module/enterprise/entity/enterprise.entity';
2
+ import { AppMaster } from 'src/module/meta/entity/app-master.entity';
3
+ export declare class UserData {
4
+ id: number;
5
+ status: string;
6
+ code: string;
7
+ created_by: number;
8
+ created_date: Date;
9
+ modified_by: number;
10
+ modified_date: Date;
11
+ enterprise_id: number;
12
+ enterprise: EnterpriseData;
13
+ level_id: string;
14
+ level_type: string;
4
15
  first_name: string;
5
16
  last_name: string;
6
17
  password: string;
@@ -11,11 +22,14 @@ export declare class UserData extends BaseEntity {
11
22
  is_defaultadmin: number;
12
23
  invitation_status: string;
13
24
  is_customer: number;
14
- organization_id: number;
15
25
  is_factory: number;
16
- last_app_access: string;
26
+ last_app_access_id: number;
27
+ last_app: AppMaster;
17
28
  last_level_type: string;
18
29
  last_level_id: string;
19
30
  date: Date;
20
31
  profile_image: string;
32
+ appcode: string;
33
+ app_id: number;
34
+ app: AppMaster;
21
35
  }