rez_core 6.5.50 → 6.5.51

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 (415) hide show
  1. package/.claude/settings.local.json +26 -0
  2. package/.idea/250218_nodejs_core.iml +9 -0
  3. package/.idea/codeStyles/Project.xml +59 -0
  4. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  5. package/.idea/copilot.data.migration.agent.xml +6 -0
  6. package/.idea/copilot.data.migration.ask.xml +6 -0
  7. package/.idea/copilot.data.migration.ask2agent.xml +6 -0
  8. package/.idea/copilot.data.migration.edit.xml +6 -0
  9. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  10. package/.idea/misc.xml +6 -0
  11. package/.idea/modules.xml +8 -0
  12. package/.idea/prettier.xml +6 -0
  13. package/.idea/vcs.xml +6 -0
  14. package/dist/app.module.js +5 -3
  15. package/dist/app.module.js.map +1 -1
  16. package/dist/constant/status.constant.d.ts +4 -0
  17. package/dist/constant/status.constant.js +9 -0
  18. package/dist/constant/status.constant.js.map +1 -0
  19. package/dist/core.module.js +63 -38
  20. package/dist/core.module.js.map +1 -1
  21. package/dist/module/app_master/app-master.module.d.ts +2 -0
  22. package/dist/module/app_master/app-master.module.js +28 -0
  23. package/dist/module/app_master/app-master.module.js.map +1 -0
  24. package/dist/module/app_master/controller/app-master.controller.js.map +1 -0
  25. package/dist/module/app_master/entity/app-master.entity.d.ts +17 -0
  26. package/dist/module/{meta → app_master}/entity/app-master.entity.js +30 -12
  27. package/dist/module/app_master/entity/app-master.entity.js.map +1 -0
  28. package/dist/module/{meta → app_master}/repository/app-master.repository.d.ts +2 -2
  29. package/dist/module/{meta → app_master}/repository/app-master.repository.js +4 -4
  30. package/dist/module/app_master/repository/app-master.repository.js.map +1 -0
  31. package/dist/module/app_master/service/app-master.service.js.map +1 -0
  32. package/dist/module/auth/strategies/jwt.strategy.d.ts +2 -1
  33. package/dist/module/auth/strategies/jwt.strategy.js +3 -2
  34. package/dist/module/auth/strategies/jwt.strategy.js.map +1 -1
  35. package/dist/module/dashboard/dashboard.module.js +1 -1
  36. package/dist/module/dashboard/dashboard.module.js.map +1 -1
  37. package/dist/module/dashboard/service/dashboard.service.js +1 -2
  38. package/dist/module/dashboard/service/dashboard.service.js.map +1 -1
  39. package/dist/module/enterprise/controller/enterprise.controller.d.ts +12 -0
  40. package/dist/module/enterprise/controller/enterprise.controller.js +57 -0
  41. package/dist/module/enterprise/controller/enterprise.controller.js.map +1 -0
  42. package/dist/module/enterprise/controller/meta.controller.d.ts +9 -0
  43. package/dist/module/enterprise/controller/meta.controller.js +43 -0
  44. package/dist/module/enterprise/controller/meta.controller.js.map +1 -0
  45. package/dist/module/enterprise/controller/organization.controller.d.ts +12 -4
  46. package/dist/module/enterprise/controller/organization.controller.js +64 -8
  47. package/dist/module/enterprise/controller/organization.controller.js.map +1 -1
  48. package/dist/module/enterprise/enterprise.module.js +10 -15
  49. package/dist/module/enterprise/enterprise.module.js.map +1 -1
  50. package/dist/module/enterprise/entity/enterprise.entity.d.ts +1 -3
  51. package/dist/module/enterprise/entity/enterprise.entity.js +4 -12
  52. package/dist/module/enterprise/entity/enterprise.entity.js.map +1 -1
  53. package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +6 -1
  54. package/dist/module/enterprise/entity/organization-app-mapping.entity.js +21 -4
  55. package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -1
  56. package/dist/module/enterprise/entity/organization.entity.d.ts +3 -18
  57. package/dist/module/enterprise/entity/organization.entity.js +8 -74
  58. package/dist/module/enterprise/entity/organization.entity.js.map +1 -1
  59. package/dist/module/enterprise/repository/enterprise.repository.d.ts +4 -2
  60. package/dist/module/enterprise/repository/enterprise.repository.js +19 -4
  61. package/dist/module/enterprise/repository/enterprise.repository.js.map +1 -1
  62. package/dist/module/enterprise/service/brand-profile.service.d.ts +0 -0
  63. package/dist/module/enterprise/service/brand-profile.service.js +1 -0
  64. package/dist/module/enterprise/service/brand-profile.service.js.map +1 -0
  65. package/dist/module/enterprise/service/brand.service.d.ts +0 -3
  66. package/dist/module/enterprise/service/brand.service.js +0 -17
  67. package/dist/module/enterprise/service/brand.service.js.map +1 -1
  68. package/dist/module/enterprise/service/enterprise.service.d.ts +2 -2
  69. package/dist/module/enterprise/service/enterprise.service.js +4 -4
  70. package/dist/module/enterprise/service/enterprise.service.js.map +1 -1
  71. package/dist/module/enterprise/service/organization.service.d.ts +4 -4
  72. package/dist/module/enterprise/service/organization.service.js +101 -24
  73. package/dist/module/enterprise/service/organization.service.js.map +1 -1
  74. package/dist/module/enterprise/service/populate-meta.service.d.ts +9 -0
  75. package/dist/module/{meta → enterprise}/service/populate-meta.service.js +2 -8
  76. package/dist/module/enterprise/service/populate-meta.service.js.map +1 -0
  77. package/dist/module/enterprise/service/school.service.d.ts +0 -0
  78. package/dist/module/enterprise/service/school.service.js +1 -0
  79. package/dist/module/enterprise/service/school.service.js.map +1 -0
  80. package/dist/module/entity_json/controller/entity_json.controller.d.ts +9 -2
  81. package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -1
  82. package/dist/module/entity_json/entity/entityJson.entity.d.ts +1 -2
  83. package/dist/module/entity_json/entity/entityJson.entity.js +1 -5
  84. package/dist/module/entity_json/entity/entityJson.entity.js.map +1 -1
  85. package/dist/module/entity_json/entity_json.module.js +2 -7
  86. package/dist/module/entity_json/entity_json.module.js.map +1 -1
  87. package/dist/module/entity_json/service/entity_json.service.d.ts +10 -2
  88. package/dist/module/entity_json/service/entity_json.service.js +25 -101
  89. package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
  90. package/dist/module/filter/controller/filter.controller.d.ts +0 -12
  91. package/dist/module/filter/controller/filter.controller.js +1 -1
  92. package/dist/module/filter/controller/filter.controller.js.map +1 -1
  93. package/dist/module/filter/filter.module.js +2 -11
  94. package/dist/module/filter/filter.module.js.map +1 -1
  95. package/dist/module/filter/service/filter.service.d.ts +2 -38
  96. package/dist/module/filter/service/filter.service.js +50 -43
  97. package/dist/module/filter/service/filter.service.js.map +1 -1
  98. package/dist/module/filter/service/saved-filter.service.d.ts +2 -3
  99. package/dist/module/filter/service/saved-filter.service.js +18 -14
  100. package/dist/module/filter/service/saved-filter.service.js.map +1 -1
  101. package/dist/module/integration/service/integration.service.d.ts +0 -1
  102. package/dist/module/integration/service/integration.service.js +1 -2
  103. package/dist/module/integration/service/integration.service.js.map +1 -1
  104. package/dist/module/integration/service/wrapper.service.js +0 -1
  105. package/dist/module/integration/service/wrapper.service.js.map +1 -1
  106. package/dist/module/layout/controller/layout.controller.d.ts +1 -3
  107. package/dist/module/layout/controller/layout.controller.js +3 -7
  108. package/dist/module/layout/controller/layout.controller.js.map +1 -1
  109. package/dist/module/layout/entity/header-section.entity.d.ts +0 -2
  110. package/dist/module/layout/entity/header-section.entity.js +0 -8
  111. package/dist/module/layout/entity/header-section.entity.js.map +1 -1
  112. package/dist/module/layout/layout.module.js +1 -2
  113. package/dist/module/layout/layout.module.js.map +1 -1
  114. package/dist/module/layout/repository/header-section.repository.d.ts +0 -1
  115. package/dist/module/layout/repository/header-section.repository.js +0 -5
  116. package/dist/module/layout/repository/header-section.repository.js.map +1 -1
  117. package/dist/module/layout/service/header-section.service.d.ts +1 -1
  118. package/dist/module/layout/service/header-section.service.js +1 -1
  119. package/dist/module/layout/service/header-section.service.js.map +1 -1
  120. package/dist/module/linked_attributes/controller/linked_attributes.controller.d.ts +0 -41
  121. package/dist/module/linked_attributes/controller/linked_attributes.controller.js +0 -90
  122. package/dist/module/linked_attributes/controller/linked_attributes.controller.js.map +1 -1
  123. package/dist/module/linked_attributes/linked_attributes.module.js +1 -8
  124. package/dist/module/linked_attributes/linked_attributes.module.js.map +1 -1
  125. package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +1 -65
  126. package/dist/module/linked_attributes/service/linked_attributes.service.js +2 -287
  127. package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -1
  128. package/dist/module/listmaster/service/list-master.service.js +1 -8
  129. package/dist/module/listmaster/service/list-master.service.js.map +1 -1
  130. package/dist/module/meta/controller/meta.controller.d.ts +1 -6
  131. package/dist/module/meta/controller/meta.controller.js +1 -19
  132. package/dist/module/meta/controller/meta.controller.js.map +1 -1
  133. package/dist/module/meta/entity/entity-master.entity.d.ts +0 -1
  134. package/dist/module/meta/entity/entity-master.entity.js +1 -8
  135. package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
  136. package/dist/module/meta/entity.module.js +3 -14
  137. package/dist/module/meta/entity.module.js.map +1 -1
  138. package/dist/module/meta/service/attribute-master.service.d.ts +1 -6
  139. package/dist/module/meta/service/attribute-master.service.js +2 -22
  140. package/dist/module/meta/service/attribute-master.service.js.map +1 -1
  141. package/dist/module/meta/service/entity-master.service.js +0 -1
  142. package/dist/module/meta/service/entity-master.service.js.map +1 -1
  143. package/dist/module/meta/service/entity-relation.service.d.ts +3 -4
  144. package/dist/module/meta/service/entity-relation.service.js +4 -10
  145. package/dist/module/meta/service/entity-relation.service.js.map +1 -1
  146. package/dist/module/meta/service/entity-service-impl.service.d.ts +1 -1
  147. package/dist/module/meta/service/entity-service-impl.service.js +10 -14
  148. package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
  149. package/dist/module/meta/service/entity-table.service.d.ts +4 -5
  150. package/dist/module/meta/service/entity-table.service.js +24 -45
  151. package/dist/module/meta/service/entity-table.service.js.map +1 -1
  152. package/dist/module/meta/service/resolver.service.d.ts +1 -1
  153. package/dist/module/meta/service/resolver.service.js +3 -6
  154. package/dist/module/meta/service/resolver.service.js.map +1 -1
  155. package/dist/module/module/controller/module-access.controller.d.ts +3 -4
  156. package/dist/module/module/controller/module-access.controller.js +13 -8
  157. package/dist/module/module/controller/module-access.controller.js.map +1 -1
  158. package/dist/module/module/entity/menu.entity.d.ts +6 -3
  159. package/dist/module/module/entity/menu.entity.js +19 -10
  160. package/dist/module/module/entity/menu.entity.js.map +1 -1
  161. package/dist/module/module/entity/module-access.entity.d.ts +15 -1
  162. package/dist/module/module/entity/module-access.entity.js +49 -3
  163. package/dist/module/module/entity/module-access.entity.js.map +1 -1
  164. package/dist/module/module/entity/module-action.entity.d.ts +4 -2
  165. package/dist/module/module/entity/module-action.entity.js +11 -6
  166. package/dist/module/module/entity/module-action.entity.js.map +1 -1
  167. package/dist/module/module/entity/module.entity.d.ts +3 -5
  168. package/dist/module/module/entity/module.entity.js +8 -18
  169. package/dist/module/module/entity/module.entity.js.map +1 -1
  170. package/dist/module/module/module.module.d.ts +1 -1
  171. package/dist/module/module/module.module.js +5 -7
  172. package/dist/module/module/module.module.js.map +1 -1
  173. package/dist/module/module/repository/menu.repository.d.ts +3 -3
  174. package/dist/module/module/repository/menu.repository.js +38 -27
  175. package/dist/module/module/repository/menu.repository.js.map +1 -1
  176. package/dist/module/module/repository/module-access.repository.d.ts +6 -6
  177. package/dist/module/module/repository/module-access.repository.js +96 -48
  178. package/dist/module/module/repository/module-access.repository.js.map +1 -1
  179. package/dist/module/module/service/menu.service.d.ts +2 -4
  180. package/dist/module/module/service/menu.service.js +7 -10
  181. package/dist/module/module/service/menu.service.js.map +1 -1
  182. package/dist/module/module/service/module-access.service.d.ts +7 -10
  183. package/dist/module/module/service/module-access.service.js +22 -24
  184. package/dist/module/module/service/module-access.service.js.map +1 -1
  185. package/dist/module/notification/entity/notification.entity.d.ts +17 -2
  186. package/dist/module/notification/entity/notification.entity.js +68 -2
  187. package/dist/module/notification/entity/notification.entity.js.map +1 -1
  188. package/dist/module/notification/notification.module.js +0 -2
  189. package/dist/module/notification/notification.module.js.map +1 -1
  190. package/dist/module/notification/service/notification.service.d.ts +1 -3
  191. package/dist/module/notification/service/notification.service.js +2 -5
  192. package/dist/module/notification/service/notification.service.js.map +1 -1
  193. package/dist/module/notification/service/otp.service.js +0 -1
  194. package/dist/module/notification/service/otp.service.js.map +1 -1
  195. package/dist/module/user/controller/login.controller.d.ts +1 -3
  196. package/dist/module/user/controller/login.controller.js +2 -6
  197. package/dist/module/user/controller/login.controller.js.map +1 -1
  198. package/dist/module/user/controller/user.controller.d.ts +0 -2
  199. package/dist/module/user/controller/user.controller.js +0 -13
  200. package/dist/module/user/controller/user.controller.js.map +1 -1
  201. package/dist/module/user/dto/create-user.dto.d.ts +6 -3
  202. package/dist/module/user/dto/create-user.dto.js +17 -11
  203. package/dist/module/user/dto/create-user.dto.js.map +1 -1
  204. package/dist/module/user/entity/role.entity.d.ts +18 -6
  205. package/dist/module/user/entity/role.entity.js +64 -19
  206. package/dist/module/user/entity/role.entity.js.map +1 -1
  207. package/dist/module/user/entity/user-role-mapping.entity.d.ts +10 -0
  208. package/dist/module/user/entity/user-role-mapping.entity.js +33 -1
  209. package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
  210. package/dist/module/user/entity/user-session.entity.d.ts +0 -2
  211. package/dist/module/user/entity/user-session.entity.js +2 -20
  212. package/dist/module/user/entity/user-session.entity.js.map +1 -1
  213. package/dist/module/user/entity/user.entity.d.ts +17 -5
  214. package/dist/module/user/entity/user.entity.js +61 -15
  215. package/dist/module/user/entity/user.entity.js.map +1 -1
  216. package/dist/module/user/repository/role.repository.d.ts +7 -2
  217. package/dist/module/user/repository/role.repository.js +23 -8
  218. package/dist/module/user/repository/role.repository.js.map +1 -1
  219. package/dist/module/user/repository/user-role-mapping.repository.d.ts +1 -0
  220. package/dist/module/user/repository/user-role-mapping.repository.js +3 -0
  221. package/dist/module/user/repository/user-role-mapping.repository.js.map +1 -1
  222. package/dist/module/user/repository/user.repository.d.ts +5 -2
  223. package/dist/module/user/repository/user.repository.js +26 -7
  224. package/dist/module/user/repository/user.repository.js.map +1 -1
  225. package/dist/module/user/repository/userSession.repository.d.ts +1 -0
  226. package/dist/module/user/repository/userSession.repository.js +3 -0
  227. package/dist/module/user/repository/userSession.repository.js.map +1 -1
  228. package/dist/module/user/service/login.service.d.ts +3 -5
  229. package/dist/module/user/service/login.service.js +43 -42
  230. package/dist/module/user/service/login.service.js.map +1 -1
  231. package/dist/module/user/service/role.service.d.ts +24 -11
  232. package/dist/module/user/service/role.service.js +54 -40
  233. package/dist/module/user/service/role.service.js.map +1 -1
  234. package/dist/module/user/service/user-role-mapping.service.d.ts +2 -0
  235. package/dist/module/user/service/user-role-mapping.service.js +6 -0
  236. package/dist/module/user/service/user-role-mapping.service.js.map +1 -1
  237. package/dist/module/user/service/user-session.service.d.ts +3 -4
  238. package/dist/module/user/service/user-session.service.js +10 -11
  239. package/dist/module/user/service/user-session.service.js.map +1 -1
  240. package/dist/module/user/service/user.service.d.ts +33 -22
  241. package/dist/module/user/service/user.service.js +66 -58
  242. package/dist/module/user/service/user.service.js.map +1 -1
  243. package/dist/module/user/user.module.js +2 -7
  244. package/dist/module/user/user.module.js.map +1 -1
  245. package/dist/module/workflow/repository/action-data.repository.d.ts +1 -1
  246. package/dist/module/workflow/repository/action-data.repository.js +6 -8
  247. package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
  248. package/dist/module/workflow/repository/action.repository.d.ts +1 -1
  249. package/dist/module/workflow/repository/action.repository.js +10 -10
  250. package/dist/module/workflow/repository/action.repository.js.map +1 -1
  251. package/dist/module/workflow/repository/form-master.repository.d.ts +1 -1
  252. package/dist/module/workflow/repository/form-master.repository.js +2 -2
  253. package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
  254. package/dist/module/workflow/service/action-data.service.js +1 -2
  255. package/dist/module/workflow/service/action-data.service.js.map +1 -1
  256. package/dist/module/workflow/service/action.service.js +2 -2
  257. package/dist/module/workflow/service/action.service.js.map +1 -1
  258. package/dist/module/workflow/service/comm-template.service.js +0 -2
  259. package/dist/module/workflow/service/comm-template.service.js.map +1 -1
  260. package/dist/module/workflow/service/entity-modification.service.js +0 -1
  261. package/dist/module/workflow/service/entity-modification.service.js.map +1 -1
  262. package/dist/module/workflow/service/form-master.service.js +2 -2
  263. package/dist/module/workflow/service/form-master.service.js.map +1 -1
  264. package/dist/module/workflow/service/populate-workflow.service.d.ts +1 -1
  265. package/dist/module/workflow/service/populate-workflow.service.js +1 -1
  266. package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
  267. package/dist/module/workflow/service/task.service.js +0 -3
  268. package/dist/module/workflow/service/task.service.js.map +1 -1
  269. package/dist/module/workflow/service/workflow-meta.service.js +2 -7
  270. package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
  271. package/dist/module/workflow/service/workflow.service.js +2 -2
  272. package/dist/module/workflow/service/workflow.service.js.map +1 -1
  273. package/dist/module/workflow/workflow.module.js +2 -0
  274. package/dist/module/workflow/workflow.module.js.map +1 -1
  275. package/dist/module/workflow-automation/service/workflow-automation.service.js +11 -6
  276. package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
  277. package/dist/module/workflow-automation/workflow-automation.module.js +3 -1
  278. package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
  279. package/dist/module/workflow-schedule/service/workflow-schedule.service.js +0 -2
  280. package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -1
  281. package/dist/table.config.d.ts +3 -5
  282. package/dist/table.config.js +3 -3
  283. package/dist/table.config.js.map +1 -1
  284. package/dist/tsconfig.build.tsbuildinfo +1 -1
  285. package/package.json +2 -2
  286. package/server.log +850 -0
  287. package/src/app.module.ts +7 -5
  288. package/src/constant/status.constant.ts +4 -0
  289. package/src/core.module.ts +58 -44
  290. package/src/module/app_master/app-master.module.ts +15 -0
  291. package/src/module/{meta → app_master}/entity/app-master.entity.ts +22 -9
  292. package/src/module/{meta → app_master}/repository/app-master.repository.ts +3 -3
  293. package/src/module/auth/strategies/jwt.strategy.ts +4 -2
  294. package/src/module/dashboard/dashboard.module.ts +3 -3
  295. package/src/module/dashboard/service/dashboard.service.ts +1 -2
  296. package/src/module/enterprise/controller/enterprise.controller.ts +40 -0
  297. package/src/module/enterprise/controller/meta.controller.ts +23 -0
  298. package/src/module/enterprise/controller/organization.controller.ts +60 -4
  299. package/src/module/enterprise/enterprise.module.ts +16 -18
  300. package/src/module/enterprise/entity/enterprise.entity.ts +5 -11
  301. package/src/module/enterprise/entity/organization-app-mapping.entity.ts +18 -4
  302. package/src/module/enterprise/entity/organization.entity.ts +9 -59
  303. package/src/module/enterprise/repository/enterprise.repository.ts +26 -4
  304. package/src/module/enterprise/service/brand-profile.service.ts +10 -0
  305. package/src/module/enterprise/service/brand.service.ts +75 -5
  306. package/src/module/enterprise/service/enterprise.service.ts +10 -4
  307. package/src/module/enterprise/service/organization.service.ts +140 -23
  308. package/src/module/{meta → enterprise}/service/populate-meta.service.ts +2 -5
  309. package/src/module/enterprise/service/school.service.ts +5 -0
  310. package/src/module/entity_json/controller/entity_json.controller.ts +0 -13
  311. package/src/module/entity_json/entity/entityJson.entity.ts +1 -4
  312. package/src/module/entity_json/entity_json.module.ts +5 -9
  313. package/src/module/entity_json/service/entity_json.service.ts +51 -237
  314. package/src/module/filter/controller/filter.controller.ts +3 -1
  315. package/src/module/filter/filter.module.ts +3 -12
  316. package/src/module/filter/service/filter.service.ts +73 -130
  317. package/src/module/filter/service/saved-filter.service.ts +26 -16
  318. package/src/module/integration/service/integration.service.ts +2 -6
  319. package/src/module/integration/service/wrapper.service.ts +0 -1
  320. package/src/module/layout/controller/layout.controller.ts +1 -8
  321. package/src/module/layout/entity/header-section.entity.ts +0 -6
  322. package/src/module/layout/layout.module.ts +1 -1
  323. package/src/module/layout/repository/header-section.repository.ts +0 -6
  324. package/src/module/layout/service/header-section.service.ts +1 -1
  325. package/src/module/linked_attributes/controller/linked_attributes.controller.ts +0 -100
  326. package/src/module/linked_attributes/linked_attributes.module.ts +2 -9
  327. package/src/module/linked_attributes/service/linked_attributes.service.ts +3 -578
  328. package/src/module/listmaster/service/list-master.service.ts +1 -9
  329. package/src/module/meta/controller/meta.controller.ts +3 -25
  330. package/src/module/meta/entity/entity-master.entity.ts +3 -9
  331. package/src/module/meta/entity.module.ts +6 -20
  332. package/src/module/meta/service/attribute-master.service.ts +1 -31
  333. package/src/module/meta/service/entity-master.service.ts +0 -1
  334. package/src/module/meta/service/entity-relation.service.ts +6 -10
  335. package/src/module/meta/service/entity-service-impl.service.ts +19 -14
  336. package/src/module/meta/service/entity-table.service.ts +68 -82
  337. package/src/module/meta/service/entity.service.ts +1 -0
  338. package/src/module/meta/service/resolver.service.ts +0 -4
  339. package/src/module/module/controller/module-access.controller.ts +14 -9
  340. package/src/module/module/entity/menu.entity.ts +18 -10
  341. package/src/module/module/entity/module-access.entity.ts +40 -3
  342. package/src/module/module/entity/module-action.entity.ts +10 -6
  343. package/src/module/module/entity/module.entity.ts +7 -14
  344. package/src/module/module/module.module.ts +2 -3
  345. package/src/module/module/repository/menu.repository.ts +43 -29
  346. package/src/module/module/repository/module-access.repository.ts +111 -63
  347. package/src/module/module/service/menu.service.ts +7 -9
  348. package/src/module/module/service/module-access.service.ts +22 -34
  349. package/src/module/notification/entity/notification.entity.ts +53 -3
  350. package/src/module/notification/notification.module.ts +0 -2
  351. package/src/module/notification/service/notification.service.ts +0 -1
  352. package/src/module/notification/service/otp.service.ts +4 -3
  353. package/src/module/user/controller/login.controller.ts +7 -8
  354. package/src/module/user/controller/user.controller.ts +0 -9
  355. package/src/module/user/dto/create-user.dto.ts +19 -6
  356. package/src/module/user/entity/role.entity.ts +59 -16
  357. package/src/module/user/entity/user-role-mapping.entity.ts +29 -3
  358. package/src/module/user/entity/user-session.entity.ts +3 -19
  359. package/src/module/user/entity/user.entity.ts +48 -13
  360. package/src/module/user/repository/role.repository.ts +32 -12
  361. package/src/module/user/repository/user-role-mapping.repository.ts +5 -1
  362. package/src/module/user/repository/user.repository.ts +36 -9
  363. package/src/module/user/repository/userSession.repository.ts +5 -1
  364. package/src/module/user/service/login.service.ts +47 -51
  365. package/src/module/user/service/role.service.ts +64 -63
  366. package/src/module/user/service/user-role-mapping.service.ts +23 -1
  367. package/src/module/user/service/user-session.service.ts +14 -11
  368. package/src/module/user/service/user.service.ts +76 -95
  369. package/src/module/user/user.module.ts +4 -5
  370. package/src/module/workflow/repository/action-data.repository.ts +6 -8
  371. package/src/module/workflow/repository/action.repository.ts +11 -11
  372. package/src/module/workflow/repository/form-master.repository.ts +2 -2
  373. package/src/module/workflow/service/action-data.service.ts +3 -2
  374. package/src/module/workflow/service/action.service.ts +2 -2
  375. package/src/module/workflow/service/comm-template.service.ts +0 -2
  376. package/src/module/workflow/service/entity-modification.service.ts +0 -1
  377. package/src/module/workflow/service/form-master.service.ts +2 -2
  378. package/src/module/workflow/service/populate-workflow.service.ts +1 -1
  379. package/src/module/workflow/service/task.service.ts +0 -3
  380. package/src/module/workflow/service/workflow-meta.service.ts +2 -7
  381. package/src/module/workflow/service/workflow.service.ts +2 -2
  382. package/src/module/workflow/workflow.module.ts +2 -0
  383. package/src/module/workflow-automation/service/workflow-automation.service.ts +19 -7
  384. package/src/module/workflow-automation/workflow-automation.module.ts +4 -3
  385. package/src/module/workflow-schedule/service/workflow-schedule.service.ts +0 -2
  386. package/src/resources/dev.properties.yaml +2 -2
  387. package/src/table.config.ts +3 -3
  388. package/dist/migrations/1732612800000-AddEntityJsonGinIndex.d.ts +0 -6
  389. package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js +0 -32
  390. package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js.map +0 -1
  391. package/dist/module/filter/service/flatjson-filter.service.d.ts +0 -32
  392. package/dist/module/filter/service/flatjson-filter.service.js +0 -632
  393. package/dist/module/filter/service/flatjson-filter.service.js.map +0 -1
  394. package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.d.ts +0 -13
  395. package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js +0 -64
  396. package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js.map +0 -1
  397. package/dist/module/meta/controller/app-master.controller.js.map +0 -1
  398. package/dist/module/meta/entity/app-master.entity.d.ts +0 -13
  399. package/dist/module/meta/entity/app-master.entity.js.map +0 -1
  400. package/dist/module/meta/repository/app-master.repository.js.map +0 -1
  401. package/dist/module/meta/service/app-master.service.js.map +0 -1
  402. package/dist/module/meta/service/populate-meta.service.d.ts +0 -13
  403. package/dist/module/meta/service/populate-meta.service.js.map +0 -1
  404. package/src/migrations/1732612800000-AddEntityJsonGinIndex.ts +0 -41
  405. package/src/module/entity_json/docs/FlatJson_Filterin_System.md +0 -2804
  406. package/src/module/filter/service/flatjson-filter.service.ts +0 -903
  407. package/src/module/filter/test/flatjson-filter.service.spec.ts +0 -415
  408. package/src/module/linked_attributes/dto/create-linked-attribute-smart.dto.ts +0 -54
  409. package/src/module/linked_attributes/test/linked-attributes.service.spec.ts +0 -244
  410. /package/dist/module/{meta → app_master}/controller/app-master.controller.d.ts +0 -0
  411. /package/dist/module/{meta → app_master}/controller/app-master.controller.js +0 -0
  412. /package/dist/module/{meta → app_master}/service/app-master.service.d.ts +0 -0
  413. /package/dist/module/{meta → app_master}/service/app-master.service.js +0 -0
  414. /package/src/module/{meta → app_master}/controller/app-master.controller.ts +0 -0
  415. /package/src/module/{meta → app_master}/service/app-master.service.ts +0 -0
@@ -1,13 +0,0 @@
1
- export declare class FilterConditionDto {
2
- filter_attribute: string;
3
- filter_operator: string;
4
- filter_value: any;
5
- }
6
- export declare class CreateLinkedAttributeSmartDto {
7
- field_name: string;
8
- mapped_entity_type: string;
9
- applicable_entity_type: string;
10
- applicable_attribute_key: string;
11
- saved_filter_code: string;
12
- backfill?: boolean;
13
- }
@@ -1,64 +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.CreateLinkedAttributeSmartDto = exports.FilterConditionDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class FilterConditionDto {
15
- }
16
- exports.FilterConditionDto = FilterConditionDto;
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.IsNotEmpty)(),
20
- __metadata("design:type", String)
21
- ], FilterConditionDto.prototype, "filter_attribute", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsNotEmpty)(),
25
- __metadata("design:type", String)
26
- ], FilterConditionDto.prototype, "filter_operator", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsNotEmpty)(),
29
- __metadata("design:type", Object)
30
- ], FilterConditionDto.prototype, "filter_value", void 0);
31
- class CreateLinkedAttributeSmartDto {
32
- }
33
- exports.CreateLinkedAttributeSmartDto = CreateLinkedAttributeSmartDto;
34
- __decorate([
35
- (0, class_validator_1.IsString)(),
36
- (0, class_validator_1.IsNotEmpty)(),
37
- __metadata("design:type", String)
38
- ], CreateLinkedAttributeSmartDto.prototype, "field_name", void 0);
39
- __decorate([
40
- (0, class_validator_1.IsString)(),
41
- (0, class_validator_1.IsNotEmpty)(),
42
- __metadata("design:type", String)
43
- ], CreateLinkedAttributeSmartDto.prototype, "mapped_entity_type", void 0);
44
- __decorate([
45
- (0, class_validator_1.IsString)(),
46
- (0, class_validator_1.IsNotEmpty)(),
47
- __metadata("design:type", String)
48
- ], CreateLinkedAttributeSmartDto.prototype, "applicable_entity_type", void 0);
49
- __decorate([
50
- (0, class_validator_1.IsString)(),
51
- (0, class_validator_1.IsNotEmpty)(),
52
- __metadata("design:type", String)
53
- ], CreateLinkedAttributeSmartDto.prototype, "applicable_attribute_key", void 0);
54
- __decorate([
55
- (0, class_validator_1.IsString)(),
56
- (0, class_validator_1.IsNotEmpty)(),
57
- __metadata("design:type", String)
58
- ], CreateLinkedAttributeSmartDto.prototype, "saved_filter_code", void 0);
59
- __decorate([
60
- (0, class_validator_1.IsBoolean)(),
61
- (0, class_validator_1.IsOptional)(),
62
- __metadata("design:type", Boolean)
63
- ], CreateLinkedAttributeSmartDto.prototype, "backfill", void 0);
64
- //# sourceMappingURL=create-linked-attribute-smart.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-linked-attribute-smart.dto.js","sourceRoot":"","sources":["../../../../src/module/linked_attributes/dto/create-linked-attribute-smart.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AAGzB,MAAa,kBAAkB;CAW9B;AAXD,gDAWC;AARC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACW;AAGxB;IADC,IAAA,4BAAU,GAAE;;wDACK;AAGpB,MAAa,6BAA6B;CA8BzC;AA9BD,sEA8BC;AA3BC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACM;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yEACc;AAI3B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6EACkB;AAI/B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+EACoB;AAIjC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wEACa;AAU1B;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;+DACM"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-master.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/app-master.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,2DAA2D;AAE3D,sEAAiE;AAI1D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAAoB,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAGpD,AAAN,KAAK,CAAC,eAAe,CACZ,GAA4B,EAC5B,GAAa;QAEpB,IAAI,CAAC;YACH,MAAM,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAEhC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,EAAE,CAAC,CAAC;YAEvE,OAAO,GAAG,CAAC,MAAM,CAAC,mBAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,GAAG,CAAC,MAAM,CAAC,mBAAU,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC;gBACvD,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,4BAA4B;aACvD,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF,CAAA;AArBY,kDAAmB;AAIxB;IADL,IAAA,YAAG,EAAC,EAAE,CAAC;IAEL,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;;;;0DAcP;8BApBU,mBAAmB;IAF/B,IAAA,mBAAU,EAAC,MAAM,CAAC;IAClB,IAAA,kBAAS,EAAC,wBAAY,CAAC;qCAEgB,qCAAgB;GAD3C,mBAAmB,CAqB/B"}
@@ -1,13 +0,0 @@
1
- import { BaseEntity } from './base-entity.entity';
2
- export declare class AppMaster extends BaseEntity {
3
- constructor();
4
- id: number;
5
- type: string;
6
- color: string;
7
- route: string;
8
- description: string;
9
- backgroudcolor: string;
10
- iconname: string;
11
- version: string;
12
- show_in_ui: string;
13
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-master.entity.js","sourceRoot":"","sources":["../../../../src/module/meta/entity/app-master.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiE;AACjE,6DAAkD;AAG3C,IAAM,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AAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;GACtB,SAAS,CAgCrB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-master.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/app-master.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAiD;AACjD,mEAAwD;AAGjD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,oBAA2C;QAA3C,yBAAoB,GAApB,oBAAoB,CAAuB;IAC3D,CAAC;IAEJ,KAAK,CAAC,yBAAyB,CAC7B,OAAe;QAEf,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC;YAC1C,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;SAC5B,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAbY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,6BAAS,CAAC,CAAA;qCACW,oBAAU;GAHxC,oBAAoB,CAahC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-master.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/app-master.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qGAAoG;AACpG,+EAA2E;AAGpE,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YACmB,mBAAyC,EACzC,yBAAoD;QADpD,wBAAmB,GAAnB,mBAAmB,CAAsB;QACzC,8BAAyB,GAAzB,yBAAyB,CAA2B;IACpE,CAAC;IAEJ,KAAK,CAAC,yBAAyB,CAAC,MAAc;QAC5C,MAAM,QAAQ,GACZ,MAAM,IAAI,CAAC,yBAAyB,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC;QAE3E,MAAM,WAAW,GAAU,EAAE,CAAC;QAE9B,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAChC,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CACpC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;gBACrC,MAAM,IAAI,GACR,MAAM,IAAI,CAAC,mBAAmB,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;gBACpE,OAAO,IAAI,IAAI,EAAE,CAAC;YACpB,CAAC,CAAC,CACH,CAAC;YAEF,YAAY,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBACnC,WAAW,CAAC,IAAI,CAAC;oBACf,GAAG,EAAE,IAAI,CAAC,IAAI;oBACd,OAAO,EAAE,IAAI;iBACd,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO,WAAW,CAAC;IACrB,CAAC;CACF,CAAA;AA/BY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAG6B,4CAAoB;QACd,wDAAyB;GAH5D,gBAAgB,CA+B5B"}
@@ -1,13 +0,0 @@
1
- import { DataSource } from 'typeorm';
2
- import { EntityServiceImpl } from './entity-service-impl.service';
3
- import { ReflectionHelper } from 'src/utils/service/reflection-helper.service';
4
- export declare class PopulateMetaService {
5
- private readonly dataSource;
6
- private readonly entityServiceImpl;
7
- private readonly reflectionHelper;
8
- constructor(dataSource: DataSource, entityServiceImpl: EntityServiceImpl, reflectionHelper: ReflectionHelper);
9
- populateMetaData(organization_id: number): Promise<{
10
- message: string;
11
- status: string;
12
- } | undefined>;
13
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"populate-meta.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/populate-meta.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAqC;AACrC,+EAAkE;AAClE,gGAA+E;AAGxE,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YACmB,U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1732612800000 implements MigrationInterface {
4
- name = 'AddEntityJsonGinIndex1732612800000';
5
-
6
- public async up(queryRunner: QueryRunner): Promise<void> {
7
- // GIN index for JSONB operations (containment, existence checks)
8
- // Using jsonb_path_ops for better performance on containment queries
9
- await queryRunner.query(`
10
- CREATE INDEX IF NOT EXISTS idx_entity_json_data_gin
11
- ON frm_entity_json
12
- USING GIN (json_data jsonb_path_ops);
13
- `);
14
-
15
- // Standard B-tree index for entity_type lookups
16
- await queryRunner.query(`
17
- CREATE INDEX IF NOT EXISTS idx_entity_json_entity_type
18
- ON frm_entity_json (entity_type);
19
- `);
20
-
21
- // Composite index for entity_type + entity_id lookups
22
- await queryRunner.query(`
23
- CREATE INDEX IF NOT EXISTS idx_entity_json_composite
24
- ON frm_entity_json (entity_type, entity_id);
25
- `);
26
-
27
- console.log('✅ GIN indexes created successfully');
28
- }
29
-
30
- public async down(queryRunner: QueryRunner): Promise<void> {
31
- await queryRunner.query(`DROP INDEX IF EXISTS idx_entity_json_data_gin;`);
32
- await queryRunner.query(
33
- `DROP INDEX IF EXISTS idx_entity_json_entity_type;`,
34
- );
35
- await queryRunner.query(
36
- `DROP INDEX IF EXISTS idx_entity_json_composite;`,
37
- );
38
-
39
- console.log('✅ GIN indexes dropped successfully');
40
- }
41
- }