rez_core 7.0.0 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/dist/app.module.js +0 -10
  2. package/dist/app.module.js.map +1 -1
  3. package/dist/core.module.js +0 -15
  4. package/dist/core.module.js.map +1 -1
  5. package/dist/module/auth/auth.module.js +1 -6
  6. package/dist/module/auth/auth.module.js.map +1 -1
  7. package/dist/module/{user/entity/user.entity.d.ts → auth/dto/user.dto.d.ts} +0 -4
  8. package/dist/module/auth/dto/user.dto.js +7 -0
  9. package/dist/module/auth/dto/user.dto.js.map +1 -0
  10. package/dist/module/auth/services/auth.service.d.ts +1 -1
  11. package/dist/module/dashboard/controller/dashboard.controller.d.ts +1 -1
  12. package/dist/module/dashboard/dashboard.module.js +0 -2
  13. package/dist/module/dashboard/dashboard.module.js.map +1 -1
  14. package/dist/module/dashboard/service/dashboard.service.d.ts +2 -4
  15. package/dist/module/dashboard/service/dashboard.service.js +3 -17
  16. package/dist/module/dashboard/service/dashboard.service.js.map +1 -1
  17. package/dist/module/filter/dto/filter-request.dto.d.ts +1 -1
  18. package/dist/module/filter/repository/saved-filter.repository.d.ts +1 -1
  19. package/dist/module/filter/service/saved-filter.service.d.ts +1 -1
  20. package/dist/module/filter/service/saved-filter.service.js.map +1 -1
  21. package/dist/module/layout/controller/layout.controller.js.map +1 -1
  22. package/dist/module/layout/layout.module.js.map +1 -1
  23. package/dist/module/layout_preference/service/layout_preference.service.d.ts +1 -1
  24. package/dist/module/listmaster/service/list-master-item.service.d.ts +1 -1
  25. package/dist/module/listmaster/service/list-master.service.d.ts +1 -1
  26. package/dist/module/mapper/service/field-mapper.service.d.ts +1 -1
  27. package/dist/module/meta/entity.module.js +0 -6
  28. package/dist/module/meta/entity.module.js.map +1 -1
  29. package/dist/module/meta/repository/attribute-master.repository.d.ts +1 -1
  30. package/dist/module/meta/service/attribute-master.service.d.ts +1 -1
  31. package/dist/module/meta/service/entity-dynamic.service.d.ts +1 -1
  32. package/dist/module/meta/service/entity-master.service.d.ts +1 -1
  33. package/dist/module/meta/service/entity-service-impl.service.d.ts +1 -1
  34. package/dist/module/meta/service/entity.service.d.ts +1 -1
  35. package/dist/module/meta/service/field-group.service.d.ts +1 -1
  36. package/dist/module/meta/service/resolver.service.d.ts +1 -1
  37. package/dist/module/meta/service/section-master.service.d.ts +1 -1
  38. package/dist/module/meta/service/view-master.service.d.ts +1 -1
  39. package/dist/module/module/module.module.d.ts +0 -2
  40. package/dist/module/module/module.module.js +0 -54
  41. package/dist/module/module/module.module.js.map +1 -1
  42. package/dist/module/notification/notification.module.js +2 -8
  43. package/dist/module/notification/notification.module.js.map +1 -1
  44. package/dist/module/user/entity/user-role-mapping.entity.d.ts +0 -22
  45. package/dist/module/user/entity/user-role-mapping.entity.js +0 -94
  46. package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
  47. package/dist/module/workflow/repository/action-category.repository.js.map +1 -1
  48. package/dist/module/workflow/repository/action-data.repository.d.ts +1 -1
  49. package/dist/module/workflow/repository/action.repository.d.ts +1 -1
  50. package/dist/module/workflow/repository/form-master.repository.d.ts +1 -1
  51. package/dist/module/workflow/repository/stage-movement.repository.d.ts +1 -1
  52. package/dist/module/workflow/repository/task.repository.d.ts +1 -1
  53. package/dist/module/workflow/service/action-category.service.js.map +1 -1
  54. package/dist/module/workflow/service/action-data.service.d.ts +1 -1
  55. package/dist/module/workflow/service/action-data.service.js.map +1 -1
  56. package/dist/module/workflow/service/action.service.d.ts +1 -1
  57. package/dist/module/workflow/service/activity-log.service.d.ts +1 -1
  58. package/dist/module/workflow/service/activity-log.service.js.map +1 -1
  59. package/dist/module/workflow/service/comm-template.service.d.ts +1 -1
  60. package/dist/module/workflow/service/entity-modification.service.d.ts +1 -1
  61. package/dist/module/workflow/service/form-master.service.d.ts +1 -1
  62. package/dist/module/workflow/service/populate-workflow.service.d.ts +2 -6
  63. package/dist/module/workflow/service/populate-workflow.service.js +6 -12
  64. package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
  65. package/dist/module/workflow/service/stage-group.service.d.ts +1 -1
  66. package/dist/module/workflow/service/stage.service.d.ts +1 -1
  67. package/dist/module/workflow/service/stage.service.js.map +1 -1
  68. package/dist/module/workflow/service/task.service.d.ts +1 -1
  69. package/dist/module/workflow/service/workflow-meta.service.d.ts +1 -1
  70. package/dist/module/workflow/service/workflow.service.d.ts +1 -1
  71. package/dist/module/workflow/service/workflow.service.js.map +1 -1
  72. package/dist/module/workflow/workflow.module.js +0 -2
  73. package/dist/module/workflow/workflow.module.js.map +1 -1
  74. package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +1 -1
  75. package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.d.ts +1 -1
  76. package/dist/module/workflow-schedule/service/workflow-schedule.service.d.ts +1 -1
  77. package/dist/table.config.d.ts +1 -14
  78. package/dist/table.config.js +2 -32
  79. package/dist/table.config.js.map +1 -1
  80. package/dist/tsconfig.build.tsbuildinfo +1 -1
  81. package/package.json +1 -1
  82. package/src/app.module.ts +0 -10
  83. package/src/core.module.ts +0 -15
  84. package/src/module/auth/auth.module.ts +1 -6
  85. package/src/module/auth/dto/user.dto.ts +56 -0
  86. package/src/module/auth/services/auth.service.ts +1 -1
  87. package/src/module/dashboard/dashboard.module.ts +0 -2
  88. package/src/module/dashboard/service/dashboard.service.ts +22 -24
  89. package/src/module/filter/dto/filter-request.dto.ts +2 -1
  90. package/src/module/filter/repository/saved-filter.repository.ts +1 -1
  91. package/src/module/filter/service/saved-filter.service.ts +1 -2
  92. package/src/module/layout/controller/layout.controller.ts +0 -2
  93. package/src/module/layout/layout.module.ts +0 -1
  94. package/src/module/layout_preference/service/layout_preference.service.ts +1 -1
  95. package/src/module/listmaster/service/list-master-item.service.ts +1 -1
  96. package/src/module/listmaster/service/list-master.service.ts +1 -1
  97. package/src/module/mapper/service/field-mapper.service.ts +1 -1
  98. package/src/module/meta/controller/entity.controller.ts +1 -1
  99. package/src/module/meta/entity.module.ts +0 -6
  100. package/src/module/meta/repository/attribute-master.repository.ts +1 -1
  101. package/src/module/meta/service/attribute-master.service.ts +1 -1
  102. package/src/module/meta/service/entity-dynamic.service.ts +1 -1
  103. package/src/module/meta/service/entity-master.service.ts +1 -1
  104. package/src/module/meta/service/entity-service-impl.service.ts +1 -1
  105. package/src/module/meta/service/entity.service.ts +1 -3
  106. package/src/module/meta/service/field-group.service.ts +1 -1
  107. package/src/module/meta/service/resolver.service.ts +1 -1
  108. package/src/module/meta/service/section-master.service.ts +1 -1
  109. package/src/module/meta/service/view-master.service.ts +1 -1
  110. package/src/module/module/module.module.ts +0 -43
  111. package/src/module/notification/notification.module.ts +4 -11
  112. package/src/module/user/entity/user-role-mapping.entity.ts +0 -64
  113. package/src/module/workflow/repository/action-category.repository.ts +0 -1
  114. package/src/module/workflow/repository/action-data.repository.ts +1 -1
  115. package/src/module/workflow/repository/action.repository.ts +1 -1
  116. package/src/module/workflow/repository/form-master.repository.ts +1 -1
  117. package/src/module/workflow/repository/stage-movement.repository.ts +1 -1
  118. package/src/module/workflow/repository/task.repository.ts +1 -1
  119. package/src/module/workflow/service/action-category.service.ts +0 -1
  120. package/src/module/workflow/service/action-data.service.ts +1 -2
  121. package/src/module/workflow/service/action.service.ts +1 -1
  122. package/src/module/workflow/service/activity-log.service.ts +1 -2
  123. package/src/module/workflow/service/comm-template.service.ts +1 -1
  124. package/src/module/workflow/service/entity-modification.service.ts +1 -1
  125. package/src/module/workflow/service/form-master.service.ts +1 -1
  126. package/src/module/workflow/service/populate-workflow.service.ts +1 -8
  127. package/src/module/workflow/service/stage-group.service.ts +1 -1
  128. package/src/module/workflow/service/stage.service.ts +1 -2
  129. package/src/module/workflow/service/task.service.ts +1 -1
  130. package/src/module/workflow/service/workflow-meta.service.ts +1 -1
  131. package/src/module/workflow/service/workflow.service.ts +1 -2
  132. package/src/module/workflow/workflow.module.ts +0 -2
  133. package/src/module/workflow-automation/service/workflow-automation.service.ts +1 -1
  134. package/src/module/workflow-schedule/interfaces/schedule-job-data.interface.ts +1 -2
  135. package/src/module/workflow-schedule/service/workflow-schedule.service.ts +1 -1
  136. package/src/table.config.ts +1 -31
  137. package/dist/module/app_master/app-master.module.d.ts +0 -2
  138. package/dist/module/app_master/app-master.module.js +0 -28
  139. package/dist/module/app_master/app-master.module.js.map +0 -1
  140. package/dist/module/app_master/controller/app-master.controller.d.ts +0 -10
  141. package/dist/module/app_master/controller/app-master.controller.js +0 -70
  142. package/dist/module/app_master/controller/app-master.controller.js.map +0 -1
  143. package/dist/module/app_master/entity/app-master.entity.d.ts +0 -17
  144. package/dist/module/app_master/entity/app-master.entity.js +0 -80
  145. package/dist/module/app_master/entity/app-master.entity.js.map +0 -1
  146. package/dist/module/app_master/repository/app-master.repository.d.ts +0 -9
  147. package/dist/module/app_master/repository/app-master.repository.js +0 -49
  148. package/dist/module/app_master/repository/app-master.repository.js.map +0 -1
  149. package/dist/module/app_master/service/app-master.service.d.ts +0 -12
  150. package/dist/module/app_master/service/app-master.service.js +0 -52
  151. package/dist/module/app_master/service/app-master.service.js.map +0 -1
  152. package/dist/module/auth/guards/role.guard.d.ts +0 -9
  153. package/dist/module/auth/guards/role.guard.js +0 -59
  154. package/dist/module/auth/guards/role.guard.js.map +0 -1
  155. package/dist/module/enterprise/controller/enterprise.controller.d.ts +0 -12
  156. package/dist/module/enterprise/controller/enterprise.controller.js +0 -57
  157. package/dist/module/enterprise/controller/enterprise.controller.js.map +0 -1
  158. package/dist/module/enterprise/controller/meta.controller.d.ts +0 -9
  159. package/dist/module/enterprise/controller/meta.controller.js +0 -43
  160. package/dist/module/enterprise/controller/meta.controller.js.map +0 -1
  161. package/dist/module/enterprise/controller/organization.controller.d.ts +0 -22
  162. package/dist/module/enterprise/controller/organization.controller.js +0 -119
  163. package/dist/module/enterprise/controller/organization.controller.js.map +0 -1
  164. package/dist/module/enterprise/enterprise.module.d.ts +0 -2
  165. package/dist/module/enterprise/enterprise.module.js +0 -52
  166. package/dist/module/enterprise/enterprise.module.js.map +0 -1
  167. package/dist/module/enterprise/entity/enterprise.entity.d.ts +0 -11
  168. package/dist/module/enterprise/entity/enterprise.entity.js +0 -56
  169. package/dist/module/enterprise/entity/enterprise.entity.js.map +0 -1
  170. package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +0 -10
  171. package/dist/module/enterprise/entity/organization-app-mapping.entity.js +0 -49
  172. package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +0 -1
  173. package/dist/module/enterprise/entity/organization.entity.d.ts +0 -16
  174. package/dist/module/enterprise/entity/organization.entity.js +0 -74
  175. package/dist/module/enterprise/entity/organization.entity.js.map +0 -1
  176. package/dist/module/enterprise/repository/enterprise.repository.d.ts +0 -10
  177. package/dist/module/enterprise/repository/enterprise.repository.js +0 -63
  178. package/dist/module/enterprise/repository/enterprise.repository.js.map +0 -1
  179. package/dist/module/enterprise/repository/organization.repository.d.ts +0 -8
  180. package/dist/module/enterprise/repository/organization.repository.js +0 -41
  181. package/dist/module/enterprise/repository/organization.repository.js.map +0 -1
  182. package/dist/module/enterprise/repository/school.repository.d.ts +0 -8
  183. package/dist/module/enterprise/repository/school.repository.js +0 -226
  184. package/dist/module/enterprise/repository/school.repository.js.map +0 -1
  185. package/dist/module/enterprise/service/brand-profile.service.d.ts +0 -0
  186. package/dist/module/enterprise/service/brand-profile.service.js +0 -1
  187. package/dist/module/enterprise/service/brand-profile.service.js.map +0 -1
  188. package/dist/module/enterprise/service/brand.service.d.ts +0 -0
  189. package/dist/module/enterprise/service/brand.service.js +0 -1
  190. package/dist/module/enterprise/service/brand.service.js.map +0 -1
  191. package/dist/module/enterprise/service/enterprise.service.d.ts +0 -8
  192. package/dist/module/enterprise/service/enterprise.service.js +0 -33
  193. package/dist/module/enterprise/service/enterprise.service.js.map +0 -1
  194. package/dist/module/enterprise/service/organization-app-mapping.service.d.ts +0 -2
  195. package/dist/module/enterprise/service/organization-app-mapping.service.js +0 -17
  196. package/dist/module/enterprise/service/organization-app-mapping.service.js.map +0 -1
  197. package/dist/module/enterprise/service/organization.service.d.ts +0 -27
  198. package/dist/module/enterprise/service/organization.service.js +0 -268
  199. package/dist/module/enterprise/service/organization.service.js.map +0 -1
  200. package/dist/module/enterprise/service/populate-meta.service.d.ts +0 -9
  201. package/dist/module/enterprise/service/populate-meta.service.js +0 -187
  202. package/dist/module/enterprise/service/populate-meta.service.js.map +0 -1
  203. package/dist/module/enterprise/service/school.service.d.ts +0 -0
  204. package/dist/module/enterprise/service/school.service.js +0 -1
  205. package/dist/module/enterprise/service/school.service.js.map +0 -1
  206. package/dist/module/lead/controller/lead.controller.d.ts +0 -20
  207. package/dist/module/lead/controller/lead.controller.js +0 -58
  208. package/dist/module/lead/controller/lead.controller.js.map +0 -1
  209. package/dist/module/lead/lead.module.d.ts +0 -2
  210. package/dist/module/lead/lead.module.js +0 -26
  211. package/dist/module/lead/lead.module.js.map +0 -1
  212. package/dist/module/lead/repository/lead.repository.d.ts +0 -10
  213. package/dist/module/lead/repository/lead.repository.js +0 -53
  214. package/dist/module/lead/repository/lead.repository.js.map +0 -1
  215. package/dist/module/lead/service/lead.service.d.ts +0 -20
  216. package/dist/module/lead/service/lead.service.js +0 -55
  217. package/dist/module/lead/service/lead.service.js.map +0 -1
  218. package/dist/module/module/controller/menu.controller.d.ts +0 -13
  219. package/dist/module/module/controller/menu.controller.js +0 -59
  220. package/dist/module/module/controller/menu.controller.js.map +0 -1
  221. package/dist/module/module/controller/module-access.controller.d.ts +0 -34
  222. package/dist/module/module/controller/module-access.controller.js +0 -153
  223. package/dist/module/module/controller/module-access.controller.js.map +0 -1
  224. package/dist/module/module/entity/menu.entity.d.ts +0 -18
  225. package/dist/module/module/entity/menu.entity.js +0 -81
  226. package/dist/module/module/entity/menu.entity.js.map +0 -1
  227. package/dist/module/module/entity/module-access.entity.d.ts +0 -23
  228. package/dist/module/module/entity/module-access.entity.js +0 -94
  229. package/dist/module/module/entity/module-access.entity.js.map +0 -1
  230. package/dist/module/module/entity/module-action.entity.d.ts +0 -8
  231. package/dist/module/module/entity/module-action.entity.js +0 -42
  232. package/dist/module/module/entity/module-action.entity.js.map +0 -1
  233. package/dist/module/module/entity/module.entity.d.ts +0 -16
  234. package/dist/module/module/entity/module.entity.js +0 -74
  235. package/dist/module/module/entity/module.entity.js.map +0 -1
  236. package/dist/module/module/repository/menu.repository.d.ts +0 -15
  237. package/dist/module/module/repository/menu.repository.js +0 -174
  238. package/dist/module/module/repository/menu.repository.js.map +0 -1
  239. package/dist/module/module/repository/module-access.repository.d.ts +0 -52
  240. package/dist/module/module/repository/module-access.repository.js +0 -333
  241. package/dist/module/module/repository/module-access.repository.js.map +0 -1
  242. package/dist/module/module/service/menu.service.d.ts +0 -10
  243. package/dist/module/module/service/menu.service.js +0 -56
  244. package/dist/module/module/service/menu.service.js.map +0 -1
  245. package/dist/module/module/service/module-access.service.d.ts +0 -60
  246. package/dist/module/module/service/module-access.service.js +0 -111
  247. package/dist/module/module/service/module-access.service.js.map +0 -1
  248. package/dist/module/module/service/module-import.service.d.ts +0 -18
  249. package/dist/module/module/service/module-import.service.js +0 -203
  250. package/dist/module/module/service/module-import.service.js.map +0 -1
  251. package/dist/module/notification/controller/otp.controller.d.ts +0 -35
  252. package/dist/module/notification/controller/otp.controller.js +0 -103
  253. package/dist/module/notification/controller/otp.controller.js.map +0 -1
  254. package/dist/module/notification/service/otp.service.d.ts +0 -31
  255. package/dist/module/notification/service/otp.service.js +0 -111
  256. package/dist/module/notification/service/otp.service.js.map +0 -1
  257. package/dist/module/user/controller/login.controller.d.ts +0 -24
  258. package/dist/module/user/controller/login.controller.js +0 -173
  259. package/dist/module/user/controller/login.controller.js.map +0 -1
  260. package/dist/module/user/controller/user.controller.d.ts +0 -7
  261. package/dist/module/user/controller/user.controller.js +0 -46
  262. package/dist/module/user/controller/user.controller.js.map +0 -1
  263. package/dist/module/user/dto/create-user.dto.d.ts +0 -20
  264. package/dist/module/user/dto/create-user.dto.js +0 -70
  265. package/dist/module/user/dto/create-user.dto.js.map +0 -1
  266. package/dist/module/user/dto/update-user.dto.d.ts +0 -5
  267. package/dist/module/user/dto/update-user.dto.js +0 -9
  268. package/dist/module/user/dto/update-user.dto.js.map +0 -1
  269. package/dist/module/user/entity/role.entity.d.ts +0 -23
  270. package/dist/module/user/entity/role.entity.js +0 -101
  271. package/dist/module/user/entity/role.entity.js.map +0 -1
  272. package/dist/module/user/entity/user-session.entity.d.ts +0 -13
  273. package/dist/module/user/entity/user-session.entity.js +0 -84
  274. package/dist/module/user/entity/user-session.entity.js.map +0 -1
  275. package/dist/module/user/entity/user.entity.js +0 -141
  276. package/dist/module/user/entity/user.entity.js.map +0 -1
  277. package/dist/module/user/repository/role.repository.d.ts +0 -23
  278. package/dist/module/user/repository/role.repository.js +0 -102
  279. package/dist/module/user/repository/role.repository.js.map +0 -1
  280. package/dist/module/user/repository/user-role-mapping.repository.d.ts +0 -20
  281. package/dist/module/user/repository/user-role-mapping.repository.js +0 -113
  282. package/dist/module/user/repository/user-role-mapping.repository.js.map +0 -1
  283. package/dist/module/user/repository/user.repository.d.ts +0 -13
  284. package/dist/module/user/repository/user.repository.js +0 -77
  285. package/dist/module/user/repository/user.repository.js.map +0 -1
  286. package/dist/module/user/repository/userSession.repository.d.ts +0 -11
  287. package/dist/module/user/repository/userSession.repository.js +0 -48
  288. package/dist/module/user/repository/userSession.repository.js.map +0 -1
  289. package/dist/module/user/service/login.service.d.ts +0 -39
  290. package/dist/module/user/service/login.service.js +0 -243
  291. package/dist/module/user/service/login.service.js.map +0 -1
  292. package/dist/module/user/service/role.service.d.ts +0 -38
  293. package/dist/module/user/service/role.service.js +0 -167
  294. package/dist/module/user/service/role.service.js.map +0 -1
  295. package/dist/module/user/service/user-role-mapping.service.d.ts +0 -17
  296. package/dist/module/user/service/user-role-mapping.service.js +0 -69
  297. package/dist/module/user/service/user-role-mapping.service.js.map +0 -1
  298. package/dist/module/user/service/user-session.service.d.ts +0 -30
  299. package/dist/module/user/service/user-session.service.js +0 -159
  300. package/dist/module/user/service/user-session.service.js.map +0 -1
  301. package/dist/module/user/service/user.service.d.ts +0 -49
  302. package/dist/module/user/service/user.service.js +0 -251
  303. package/dist/module/user/service/user.service.js.map +0 -1
  304. package/dist/module/user/user.module.d.ts +0 -2
  305. package/dist/module/user/user.module.js +0 -73
  306. package/dist/module/user/user.module.js.map +0 -1
  307. package/src/module/app_master/app-master.module.ts +0 -15
  308. package/src/module/app_master/controller/app-master.controller.ts +0 -56
  309. package/src/module/app_master/entity/app-master.entity.ts +0 -50
  310. package/src/module/app_master/repository/app-master.repository.ts +0 -38
  311. package/src/module/app_master/service/app-master.service.ts +0 -48
  312. package/src/module/auth/guards/role.guard.ts +0 -68
  313. package/src/module/enterprise/controller/enterprise.controller.ts +0 -40
  314. package/src/module/enterprise/controller/meta.controller.ts +0 -23
  315. package/src/module/enterprise/controller/organization.controller.ts +0 -99
  316. package/src/module/enterprise/enterprise.module.ts +0 -43
  317. package/src/module/enterprise/entity/enterprise.entity.ts +0 -31
  318. package/src/module/enterprise/entity/organization-app-mapping.entity.ts +0 -27
  319. package/src/module/enterprise/entity/organization.entity.ts +0 -45
  320. package/src/module/enterprise/repository/enterprise.repository.ts +0 -53
  321. package/src/module/enterprise/repository/organization.repository.ts +0 -26
  322. package/src/module/enterprise/repository/school.repository.ts +0 -272
  323. package/src/module/enterprise/service/brand-profile.service.ts +0 -10
  324. package/src/module/enterprise/service/brand.service.ts +0 -75
  325. package/src/module/enterprise/service/enterprise.service.ts +0 -24
  326. package/src/module/enterprise/service/organization-app-mapping.service.ts +0 -4
  327. package/src/module/enterprise/service/organization.service.ts +0 -374
  328. package/src/module/enterprise/service/populate-meta.service.ts +0 -210
  329. package/src/module/enterprise/service/school.service.ts +0 -5
  330. package/src/module/lead/controller/lead.controller.ts +0 -30
  331. package/src/module/lead/lead.module.ts +0 -14
  332. package/src/module/lead/repository/lead.repository.ts +0 -41
  333. package/src/module/lead/service/lead.service.ts +0 -54
  334. package/src/module/module/controller/menu.controller.ts +0 -41
  335. package/src/module/module/controller/module-access.controller.ts +0 -138
  336. package/src/module/module/entity/menu.entity.ts +0 -51
  337. package/src/module/module/entity/module-access.entity.ts +0 -62
  338. package/src/module/module/entity/module-action.entity.ts +0 -21
  339. package/src/module/module/entity/module.entity.ts +0 -45
  340. package/src/module/module/repository/menu.repository.ts +0 -200
  341. package/src/module/module/repository/module-access.repository.ts +0 -392
  342. package/src/module/module/service/menu.service.ts +0 -80
  343. package/src/module/module/service/module-access.service.ts +0 -177
  344. package/src/module/module/service/module-import.service.ts +0 -294
  345. package/src/module/notification/controller/otp.controller.ts +0 -117
  346. package/src/module/notification/service/otp.service.ts +0 -144
  347. package/src/module/user/controller/login.controller.ts +0 -197
  348. package/src/module/user/controller/user.controller.ts +0 -31
  349. package/src/module/user/dto/create-user.dto.ts +0 -75
  350. package/src/module/user/dto/update-user.dto.ts +0 -4
  351. package/src/module/user/entity/role.entity.ts +0 -76
  352. package/src/module/user/entity/user-session.entity.ts +0 -57
  353. package/src/module/user/entity/user.entity.ts +0 -97
  354. package/src/module/user/repository/role.repository.ts +0 -116
  355. package/src/module/user/repository/user-role-mapping.repository.ts +0 -130
  356. package/src/module/user/repository/user.repository.ts +0 -77
  357. package/src/module/user/repository/userSession.repository.ts +0 -37
  358. package/src/module/user/service/login.service.ts +0 -322
  359. package/src/module/user/service/role.service.ts +0 -197
  360. package/src/module/user/service/user-role-mapping.service.ts +0 -128
  361. package/src/module/user/service/user-session.service.ts +0 -203
  362. package/src/module/user/service/user.service.ts +0 -349
  363. package/src/module/user/user.module.ts +0 -64
@@ -1,226 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SchoolRepository = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const global_constant_1 = require("../../../constant/global.constant");
15
- const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
16
- let SchoolRepository = class SchoolRepository {
17
- constructor(reflectionHelper) {
18
- this.reflectionHelper = reflectionHelper;
19
- }
20
- async findAllByOrgId(orgId) {
21
- const schoolRepo = this.reflectionHelper.getRepoService('SSOSchool');
22
- return await schoolRepo.find({
23
- where: {
24
- organization_id: orgId,
25
- },
26
- });
27
- }
28
- async findAllByBrandId(brdId) {
29
- const schoolRepo = this.reflectionHelper.getRepoService('SSOSchool');
30
- return await schoolRepo.find({
31
- where: {
32
- brand_id: brdId,
33
- },
34
- });
35
- }
36
- async getUserContextDropdown(userId, appCode, org_id) {
37
- const userRoleRepo = this.reflectionHelper.getRepoService('UserRoleMapping');
38
- const hasOrgAccess = await userRoleRepo
39
- .createQueryBuilder('urm')
40
- .where('urm.user_id = :userId', { userId })
41
- .andWhere('urm.appcode = :appCode', { appCode })
42
- .andWhere('urm.level_type = :levelType', { levelType: 'ORG' })
43
- .getRawMany();
44
- let currentORGLevel_id = hasOrgAccess[0]?.urm_level_id;
45
- if (hasOrgAccess[0]?.urm_level_id == 1) {
46
- currentORGLevel_id = org_id;
47
- }
48
- const listMasterItemsRepo = this.reflectionHelper.getRepoService('ListMasterItems');
49
- const resolvedInactiveStatus = await listMasterItemsRepo.findOne({
50
- where: {
51
- code: global_constant_1.STATUS_INACTIVE,
52
- organization_id: org_id,
53
- },
54
- });
55
- if (hasOrgAccess.length > 0) {
56
- const organizationRepo = this.reflectionHelper.getRepoService('OrganizationData');
57
- const schools = await organizationRepo
58
- .createQueryBuilder('org')
59
- .select([
60
- 'org.id AS org_id',
61
- 'org.name AS org_name',
62
- 'org.address AS org_address',
63
- 'org.status AS org_status',
64
- 'brn.id AS brand_id',
65
- 'brn.name AS brand_name',
66
- 'brn.status AS brand_status',
67
- 'school.id AS school_id',
68
- 'school.name AS school_name',
69
- 'school.location AS school_location',
70
- 'school.status AS school_status',
71
- ])
72
- .innerJoin('sso_organization', 'brn', 'brn.type = \'BRN\' AND brn.parent_id::varchar = org.id::varchar')
73
- .innerJoin('sso_school', 'school', 'school.brand_id::varchar = brn.id::varchar')
74
- .where('org.id = :orgId', { orgId: String(currentORGLevel_id) })
75
- .distinct(true)
76
- .getRawMany();
77
- if (schools.length > 0) {
78
- const result = {};
79
- for (const row of schools) {
80
- const { org_id, org_name, org_address, org_status, brand_id, brand_name, brand_status, school_id, school_name, school_location, school_status, } = row;
81
- const orgStatus = await listMasterItemsRepo.findOne({
82
- where: {
83
- id: org_status,
84
- organization_id: org_id,
85
- },
86
- });
87
- if (!result[org_id]) {
88
- result[org_id] = {
89
- org_id,
90
- org_name,
91
- org_address,
92
- status: orgStatus ? orgStatus.name : org_status,
93
- type: 'Organization',
94
- brands: {},
95
- };
96
- }
97
- const brandStatus = await listMasterItemsRepo.findOne({
98
- where: {
99
- id: brand_status,
100
- organization_id: org_id,
101
- },
102
- });
103
- if (!result[org_id].brands[brand_id]) {
104
- result[org_id].brands[brand_id] = {
105
- brand_id,
106
- brand_name,
107
- status: brandStatus ? brandStatus.name : brand_status,
108
- type: 'Brand',
109
- schools: [],
110
- };
111
- }
112
- const schoolStatus = await listMasterItemsRepo.findOne({
113
- where: {
114
- id: school_status,
115
- organization_id: org_id,
116
- },
117
- });
118
- const finalSchoolName = schoolStatus?.id === resolvedInactiveStatus?.id
119
- ? `${school_name} [INACTIVE]`
120
- : school_name;
121
- result[org_id].brands[brand_id].schools.push({
122
- school_id,
123
- school_name: finalSchoolName,
124
- school_location,
125
- status: schoolStatus ? schoolStatus.name : school_status,
126
- type: 'School',
127
- });
128
- }
129
- return Object.values(result).map((org) => ({
130
- ...org,
131
- brands: Object.values(org.brands),
132
- }));
133
- }
134
- else {
135
- const orgResult = await organizationRepo.findOne({
136
- where: {
137
- id: currentORGLevel_id,
138
- },
139
- });
140
- return [
141
- {
142
- org_id: currentORGLevel_id,
143
- org_name: orgResult.name,
144
- org_address: orgResult.address,
145
- status: orgResult.status,
146
- type: orgResult.type || 'Organization',
147
- brands: [],
148
- },
149
- ];
150
- }
151
- }
152
- else {
153
- const userRoleMappingRepo = this.reflectionHelper.getRepoService('UserRoleMapping');
154
- const brnMappings = await userRoleMappingRepo
155
- .createQueryBuilder('urm')
156
- .select([
157
- 'brand.id AS brand_id',
158
- 'brand.name AS brand_name',
159
- 'brand.status AS brand_status',
160
- 'school.id AS school_id',
161
- 'school.name AS school_name',
162
- 'school.location AS school_location',
163
- 'school.status AS school_status',
164
- ])
165
- .innerJoin('sso_organization', 'brand', 'brand.id = urm.level_id')
166
- .innerJoin('sso_school', 'school', 'school.brand_id = brand.id')
167
- .where('urm.user_id = :userId', { userId })
168
- .andWhere('urm.appcode = :appCode', { appCode })
169
- .andWhere('urm.level_type = :levelType', { levelType: 'BRN' })
170
- .distinct(true)
171
- .getRawMany();
172
- const schMappings = await userRoleMappingRepo
173
- .createQueryBuilder('urm')
174
- .select([
175
- 'brand.id AS brand_id',
176
- 'brand.name AS brand_name',
177
- 'brand.status AS brand_status',
178
- 'school.id AS school_id',
179
- 'school.name AS school_name',
180
- 'school.location AS school_location',
181
- 'school.status AS school_status',
182
- ])
183
- .innerJoin('sso_school', 'school', 'school.id = urm.level_id')
184
- .innerJoin('sso_organization', 'brand', 'brand.id = school.brand_id')
185
- .where('urm.user_id = :userId', { userId })
186
- .andWhere('urm.appcode = :appCode', { appCode })
187
- .andWhere('urm.level_type = :levelType', { levelType: 'SCH' })
188
- .distinct(true)
189
- .getRawMany();
190
- const allMappings = [...brnMappings, ...schMappings];
191
- const result = {};
192
- for (const row of allMappings) {
193
- const { brand_id, brand_name, brand_status, school_id, school_name, school_location, school_status, } = row;
194
- if (!result[brand_id]) {
195
- result[brand_id] = {
196
- brand_id,
197
- brand_name,
198
- status: brand_status,
199
- type: 'Brand',
200
- schools: [],
201
- };
202
- }
203
- const finalSchoolName = school_status === resolvedInactiveStatus?.id
204
- ? `${school_name} [INACTIVE]`
205
- : school_name;
206
- if (school_id &&
207
- !result[brand_id].schools.some((s) => s.school_id === school_id)) {
208
- result[brand_id].schools.push({
209
- school_id,
210
- school_name: finalSchoolName,
211
- school_location,
212
- status: school_status,
213
- type: 'School',
214
- });
215
- }
216
- }
217
- return Object.values(result);
218
- }
219
- }
220
- };
221
- exports.SchoolRepository = SchoolRepository;
222
- exports.SchoolRepository = SchoolRepository = __decorate([
223
- (0, common_1.Injectable)(),
224
- __metadata("design:paramtypes", [reflection_helper_service_1.ReflectionHelper])
225
- ], SchoolRepository);
226
- //# sourceMappingURL=school.repository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"school.repository.js","sourceRoot":"","sources":["../../../../src/module/enterprise/repository/school.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uEAA+D;AAC/D,gGAAoF;AAG7E,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAA6B,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC/D,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,KAAa;QAChC,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACrE,OAAO,MAAM,UAAU,CAAC,IAAI,CAAC;YAC3B,KAAK,EAAE;gBACL,eAAe,EAAE,KAAK;aACvB;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,KAAa;QAClC,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,c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,KAAK,SAAS,CAAC,EAChE,CAAC;oBACD,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;wBAC5B,SAAS;wBACT,WAAW,EAAE,eAAe;wBAC5B,eAAe;wBACf,MAAM,EAAE,aAAa;wBACrB,IAAI,EAAE,QAAQ;qBACf,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YAED,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;CACF,CAAA;AA1QY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAEoC,4CAAgB;GADpD,gBAAgB,CA0Q5B"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=brand-profile.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"brand-profile.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/brand-profile.service.ts"],"names":[],"mappings":""}
File without changes
@@ -1 +0,0 @@
1
- //# sourceMappingURL=brand.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"brand.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/brand.service.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- import { EnterpriseRepository } from '../repository/enterprise.repository';
2
- import { EnterpriseData } from '../entity/enterprise.entity';
3
- export declare class EnterpriseService {
4
- private readonly enterpriseRepository;
5
- constructor(enterpriseRepository: EnterpriseRepository);
6
- create(enterpriseData: EnterpriseData, loggedInUser: any): Promise<EnterpriseData>;
7
- update(enterpriseData: EnterpriseData, loggedInUser: any): Promise<EnterpriseData | null>;
8
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EnterpriseService = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const enterprise_repository_1 = require("../repository/enterprise.repository");
15
- const status_constant_1 = require("../../../constant/status.constant");
16
- let EnterpriseService = class EnterpriseService {
17
- constructor(enterpriseRepository) {
18
- this.enterpriseRepository = enterpriseRepository;
19
- }
20
- async create(enterpriseData, loggedInUser) {
21
- enterpriseData.status = status_constant_1.StatusConstant.ACTIVE;
22
- return await this.enterpriseRepository.save(enterpriseData, loggedInUser);
23
- }
24
- async update(enterpriseData, loggedInUser) {
25
- return await this.enterpriseRepository.update(enterpriseData, loggedInUser);
26
- }
27
- };
28
- exports.EnterpriseService = EnterpriseService;
29
- exports.EnterpriseService = EnterpriseService = __decorate([
30
- (0, common_1.Injectable)(),
31
- __metadata("design:paramtypes", [enterprise_repository_1.EnterpriseRepository])
32
- ], EnterpriseService);
33
- //# sourceMappingURL=enterprise.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enterprise.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/enterprise.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+EAA2E;AAE3E,uEAAmE;AAG5D,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,YAA6B,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;IAAG,CAAC;IAE3E,KAAK,CAAC,MAAM,CACV,cAA8B,EAC9B,YAAiB;QAEjB,cAAc,CAAC,MAAM,GAAG,gCAAc,CAAC,MAAM,CAAC;QAC9C,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,MAAM,CACV,cAA8B,EAC9B,YAAiB;QAEjB,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IAC9E,CAAC;CACF,CAAA;AAjBY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAEwC,4CAAoB;GAD5D,iBAAiB,CAiB7B"}
@@ -1,2 +0,0 @@
1
- export declare class OrganizationAppMappingService {
2
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.OrganizationAppMappingService = void 0;
10
- const common_1 = require("@nestjs/common");
11
- let OrganizationAppMappingService = class OrganizationAppMappingService {
12
- };
13
- exports.OrganizationAppMappingService = OrganizationAppMappingService;
14
- exports.OrganizationAppMappingService = OrganizationAppMappingService = __decorate([
15
- (0, common_1.Injectable)()
16
- ], OrganizationAppMappingService);
17
- //# sourceMappingURL=organization-app-mapping.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"organization-app-mapping.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/organization-app-mapping.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAGrC,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;CAAG,CAAA;AAAhC,sEAA6B;wCAA7B,6BAA6B;IADzC,IAAA,mBAAU,GAAE;GACA,6BAA6B,CAAG"}
@@ -1,27 +0,0 @@
1
- import { EntityManager, Repository } from 'typeorm';
2
- import { OrganizationData } from '../entity/organization.entity';
3
- import { ClockIDGenService } from 'src/utils/service/clockIDGenUtil.service';
4
- import { SchoolRepository } from '../repository/school.repository';
5
- import { WBSCodeGenService } from 'src/utils/service/wbsCodeGen.service';
6
- export type UpdateResult<T> = {
7
- success: true;
8
- data: T;
9
- } | {
10
- success: false;
11
- error: string;
12
- };
13
- export declare class OrganizationService {
14
- private readonly organizationRepository;
15
- private readonly schoolRepository;
16
- private readonly idGen;
17
- private readonly wbcCodeGenService;
18
- constructor(organizationRepository: Repository<OrganizationData>, schoolRepository: SchoolRepository, idGen: ClockIDGenService, wbcCodeGenService: WBSCodeGenService);
19
- create(organizationDto: Partial<OrganizationData>, loggedInUser?: any, manager?: EntityManager): Promise<OrganizationData>;
20
- findAll(manager?: EntityManager): Promise<OrganizationData[]>;
21
- findOne(id: number, manager?: EntityManager): Promise<OrganizationData | null>;
22
- findById(id: number | undefined): Promise<OrganizationData[]>;
23
- update(id: number, organizationDto: Partial<OrganizationData>, loggedInUser?: any, manager?: EntityManager): Promise<UpdateResult<OrganizationData>>;
24
- remove(id: number, manager?: EntityManager): Promise<void>;
25
- private updateDescendantWbsCodes;
26
- getOrganizationHierarchy(userId: number, appCode: string, orgId: number): Promise<any[]>;
27
- }
@@ -1,268 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.OrganizationService = void 0;
16
- const common_1 = require("@nestjs/common");
17
- const typeorm_1 = require("@nestjs/typeorm");
18
- const typeorm_2 = require("typeorm");
19
- const organization_entity_1 = require("../entity/organization.entity");
20
- const clockIDGenUtil_service_1 = require("../../../utils/service/clockIDGenUtil.service");
21
- const school_repository_1 = require("../repository/school.repository");
22
- const wbsCodeGen_service_1 = require("../../../utils/service/wbsCodeGen.service");
23
- const status_constant_1 = require("../../../constant/status.constant");
24
- let OrganizationService = class OrganizationService {
25
- constructor(organizationRepository, schoolRepository, idGen, wbcCodeGenService) {
26
- this.organizationRepository = organizationRepository;
27
- this.schoolRepository = schoolRepository;
28
- this.idGen = idGen;
29
- this.wbcCodeGenService = wbcCodeGenService;
30
- }
31
- async create(organizationDto, loggedInUser, manager) {
32
- const repo = manager
33
- ? manager.getRepository(organization_entity_1.OrganizationData)
34
- : this.organizationRepository;
35
- const parentOrgId = organizationDto.parent_id;
36
- if (parentOrgId) {
37
- const parentOrg = await repo.findOne({
38
- where: { id: parentOrgId },
39
- });
40
- if (!parentOrg) {
41
- throw new Error('Parent organization not found.');
42
- }
43
- if (!parentOrg.wbs_code) {
44
- throw new Error('Parent organization must have a WBS code.');
45
- }
46
- const existingSubOrgs = await repo.find({
47
- where: {
48
- parent_id: parentOrgId,
49
- },
50
- select: ['wbs_code'],
51
- });
52
- const subOrgCodes = existingSubOrgs
53
- .map((subOrg) => {
54
- const parts = subOrg.wbs_code?.split('.');
55
- return parts && parts.length > 1 ? parts[parts.length - 1] : null;
56
- })
57
- .filter(Boolean)
58
- .map(Number);
59
- const nextSubOrgCode = subOrgCodes.length
60
- ? Math.max(...subOrgCodes) + 1
61
- : 1;
62
- const subOrgWbsCode = this.wbcCodeGenService.padCode(nextSubOrgCode);
63
- organizationDto.wbs_code = `${parentOrg.wbs_code}.${subOrgWbsCode}`;
64
- organizationDto.parent_id = parentOrgId;
65
- }
66
- else {
67
- const existingOrgs = await repo.find({
68
- where: {
69
- parent_id: (0, typeorm_2.IsNull)(),
70
- },
71
- select: ['wbs_code'],
72
- });
73
- const orgCodes = existingOrgs
74
- .map((org) => {
75
- if (org.wbs_code?.includes('.')) {
76
- return null;
77
- }
78
- return org.wbs_code ? Number(org.wbs_code) : null;
79
- })
80
- .filter((code) => code !== null);
81
- const nextOrgCode = orgCodes.length ? Math.max(...orgCodes) + 1 : 1;
82
- organizationDto.wbs_code = this.wbcCodeGenService.padCode(nextOrgCode);
83
- }
84
- if (!organizationDto.code) {
85
- organizationDto.code = this.idGen.idGenerator('ORG');
86
- }
87
- organizationDto.status = status_constant_1.StatusConstant.ACTIVE;
88
- if (loggedInUser) {
89
- organizationDto.modified_by = loggedInUser.id;
90
- organizationDto.created_by = loggedInUser.id;
91
- }
92
- const organization = repo.create(organizationDto);
93
- return await repo.save(organization);
94
- }
95
- async findAll(manager) {
96
- const repo = manager
97
- ? manager.getRepository(organization_entity_1.OrganizationData)
98
- : this.organizationRepository;
99
- return await repo.find();
100
- }
101
- async findOne(id, manager) {
102
- const repo = manager
103
- ? manager.getRepository(organization_entity_1.OrganizationData)
104
- : this.organizationRepository;
105
- return await repo.findOne({ where: { id } });
106
- }
107
- async findById(id) {
108
- return await this.organizationRepository.find({ where: { id } });
109
- }
110
- async update(id, organizationDto, loggedInUser, manager) {
111
- const repo = manager
112
- ? manager.getRepository(organization_entity_1.OrganizationData)
113
- : this.organizationRepository;
114
- const existingOrg = await repo.findOne({ where: { id } });
115
- if (!existingOrg) {
116
- return {
117
- success: false,
118
- error: `Organization with id ${id} not found.`,
119
- };
120
- }
121
- if (organizationDto.parent_id === id) {
122
- return {
123
- success: false,
124
- error: 'Organization cannot be its own parent.',
125
- };
126
- }
127
- const parentIdChanged = organizationDto.parent_id !== undefined &&
128
- organizationDto.parent_id !== existingOrg.parent_id;
129
- if (parentIdChanged) {
130
- const wbsCodeLength = existingOrg.wbs_code?.length || 0;
131
- if (wbsCodeLength === 5 || wbsCodeLength === 11) {
132
- return {
133
- success: false,
134
- error: `Cannot change parent of organization with WBS code length ${wbsCodeLength}. ` +
135
- `Organizations at this level (${existingOrg.wbs_code}) are locked and cannot be moved.`,
136
- };
137
- }
138
- const newParentId = organizationDto.parent_id;
139
- const oldWbsCode = existingOrg.wbs_code;
140
- if (newParentId) {
141
- const parentOrg = await repo.findOne({
142
- where: { id: newParentId },
143
- });
144
- if (!parentOrg) {
145
- return {
146
- success: false,
147
- error: 'Parent organization not found.',
148
- };
149
- }
150
- if (!parentOrg.wbs_code) {
151
- return {
152
- success: false,
153
- error: 'Parent organization must have a WBS code.',
154
- };
155
- }
156
- if (existingOrg.wbs_code && parentOrg.wbs_code) {
157
- if (parentOrg.wbs_code.startsWith(existingOrg.wbs_code + '.')) {
158
- return {
159
- success: false,
160
- error: `Cannot set organization ${parentOrg.wbs_code} as parent. ` +
161
- `It is a descendant of ${existingOrg.wbs_code} (circular reference).`,
162
- };
163
- }
164
- if (parentOrg.wbs_code === existingOrg.wbs_code) {
165
- return {
166
- success: false,
167
- error: 'Organization cannot be its own parent (circular reference).',
168
- };
169
- }
170
- }
171
- const existingSubOrgs = await repo.find({
172
- where: {
173
- parent_id: newParentId,
174
- },
175
- select: ['wbs_code', 'id'],
176
- });
177
- const subOrgCodes = existingSubOrgs
178
- .filter((subOrg) => subOrg.id !== id)
179
- .map((subOrg) => {
180
- const parts = subOrg.wbs_code?.split('.');
181
- return parts && parts.length > 1 ? parts[parts.length - 1] : null;
182
- })
183
- .filter(Boolean)
184
- .map(Number);
185
- const nextSubOrgCode = subOrgCodes.length
186
- ? Math.max(...subOrgCodes) + 1
187
- : 1;
188
- const subOrgWbsCode = this.wbcCodeGenService.padCode(nextSubOrgCode);
189
- organizationDto.wbs_code = `${parentOrg.wbs_code}.${subOrgWbsCode}`;
190
- }
191
- else {
192
- const existingOrgs = await repo.find({
193
- where: {
194
- parent_id: (0, typeorm_2.IsNull)(),
195
- },
196
- select: ['wbs_code', 'id'],
197
- });
198
- const orgCodes = existingOrgs
199
- .filter((org) => org.id !== id)
200
- .map((org) => {
201
- if (org.wbs_code?.includes('.')) {
202
- return null;
203
- }
204
- return org.wbs_code ? Number(org.wbs_code) : null;
205
- })
206
- .filter((code) => code !== null);
207
- const nextOrgCode = orgCodes.length ? Math.max(...orgCodes) + 1 : 1;
208
- organizationDto.wbs_code = this.wbcCodeGenService.padCode(nextOrgCode);
209
- }
210
- const newWbsCode = organizationDto.wbs_code;
211
- if (oldWbsCode && newWbsCode && oldWbsCode !== newWbsCode) {
212
- await this.updateDescendantWbsCodes(repo, oldWbsCode, newWbsCode, loggedInUser);
213
- }
214
- }
215
- if (loggedInUser) {
216
- organizationDto.modified_by = loggedInUser.id;
217
- }
218
- await repo.update(id, organizationDto);
219
- const updatedOrg = await repo.findOne({ where: { id } });
220
- if (!updatedOrg) {
221
- return {
222
- success: false,
223
- error: 'Failed to retrieve updated organization.',
224
- };
225
- }
226
- return {
227
- success: true,
228
- data: updatedOrg,
229
- };
230
- }
231
- async remove(id, manager) {
232
- const repo = manager
233
- ? manager.getRepository(organization_entity_1.OrganizationData)
234
- : this.organizationRepository;
235
- await repo.delete(id);
236
- }
237
- async updateDescendantWbsCodes(repo, oldWbsCode, newWbsCode, loggedInUser) {
238
- const descendants = await repo
239
- .createQueryBuilder('org')
240
- .where('org.wbs_code LIKE :pattern', { pattern: `${oldWbsCode}.%` })
241
- .getMany();
242
- for (const descendant of descendants) {
243
- if (descendant.wbs_code) {
244
- const updatedWbsCode = descendant.wbs_code.replace(oldWbsCode, newWbsCode);
245
- const updateData = {
246
- wbs_code: updatedWbsCode,
247
- };
248
- if (loggedInUser) {
249
- updateData.modified_by = loggedInUser.id;
250
- }
251
- await repo.update(descendant.id, updateData);
252
- }
253
- }
254
- }
255
- async getOrganizationHierarchy(userId, appCode, orgId) {
256
- return await this.schoolRepository.getUserContextDropdown(userId, appCode, orgId);
257
- }
258
- };
259
- exports.OrganizationService = OrganizationService;
260
- exports.OrganizationService = OrganizationService = __decorate([
261
- (0, common_1.Injectable)(),
262
- __param(0, (0, typeorm_1.InjectRepository)(organization_entity_1.OrganizationData)),
263
- __metadata("design:paramtypes", [typeorm_2.Repository,
264
- school_repository_1.SchoolRepository,
265
- clockIDGenUtil_service_1.ClockIDGenService,
266
- wbsCodeGen_service_1.WBSCodeGenService])
267
- ], OrganizationService);
268
- //# sourceMappingURL=organization.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"organization.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/organization.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,6CAAmD;AACnD,qCAA4D;AAC5D,uEAAiE;AACjE,0FAA6E;AAI7E,uEAAmE;AACnE,kFAAyE;AACzE,uEAAmE;AAQ5D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAEmB,sBAAoD,EACpD,gBAAkC,EAClC,KAAwB,EACxB,iBAAoC;QAHpC,2BAAsB,GAAtB,sBAAsB,CAA8B;QACpD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,UAAK,GAAL,KAAK,CAAmB;QACxB,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,MAAM,CACV,eAA0C,EAC1C,YAAkB,EAClB,OAAuB;QAEvB,MAAM,IAAI,GAAG,OAAO;YAClB,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,sCAAgB,CAAC;YACzC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC;QAEhC,MAAM,WAAW,GAAG,eAAe,CAAC,SAAS,CAAC;QAE9C,IAAI,WAAW,EAAE,CAAC;YAEhB,MAAM,SAAS,GAAG,MAAM,IAAI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