rez_core 6.5.58 → 6.5.61

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 (436) hide show
  1. package/dist/app.module.js +3 -5
  2. package/dist/app.module.js.map +1 -1
  3. package/dist/core.module.js +38 -63
  4. package/dist/core.module.js.map +1 -1
  5. package/dist/migrations/1732612800000-AddEntityJsonGinIndex.d.ts +6 -0
  6. package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js +32 -0
  7. package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js.map +1 -0
  8. package/dist/module/auth/strategies/jwt.strategy.d.ts +1 -2
  9. package/dist/module/auth/strategies/jwt.strategy.js +2 -3
  10. package/dist/module/auth/strategies/jwt.strategy.js.map +1 -1
  11. package/dist/module/dashboard/dashboard.module.js +1 -1
  12. package/dist/module/dashboard/dashboard.module.js.map +1 -1
  13. package/dist/module/dashboard/service/dashboard.service.js +2 -1
  14. package/dist/module/dashboard/service/dashboard.service.js.map +1 -1
  15. package/dist/module/enterprise/controller/organization.controller.d.ts +4 -12
  16. package/dist/module/enterprise/controller/organization.controller.js +8 -64
  17. package/dist/module/enterprise/controller/organization.controller.js.map +1 -1
  18. package/dist/module/enterprise/enterprise.module.js +15 -10
  19. package/dist/module/enterprise/enterprise.module.js.map +1 -1
  20. package/dist/module/enterprise/entity/enterprise.entity.d.ts +3 -1
  21. package/dist/module/enterprise/entity/enterprise.entity.js +12 -4
  22. package/dist/module/enterprise/entity/enterprise.entity.js.map +1 -1
  23. package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +1 -6
  24. package/dist/module/enterprise/entity/organization-app-mapping.entity.js +4 -21
  25. package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -1
  26. package/dist/module/enterprise/entity/organization.entity.d.ts +17 -3
  27. package/dist/module/enterprise/entity/organization.entity.js +73 -11
  28. package/dist/module/enterprise/entity/organization.entity.js.map +1 -1
  29. package/dist/module/enterprise/repository/enterprise.repository.d.ts +2 -4
  30. package/dist/module/enterprise/repository/enterprise.repository.js +4 -19
  31. package/dist/module/enterprise/repository/enterprise.repository.js.map +1 -1
  32. package/dist/module/enterprise/service/brand.service.d.ts +3 -0
  33. package/dist/module/enterprise/service/brand.service.js +17 -0
  34. package/dist/module/enterprise/service/brand.service.js.map +1 -1
  35. package/dist/module/enterprise/service/enterprise.service.d.ts +2 -2
  36. package/dist/module/enterprise/service/enterprise.service.js +4 -6
  37. package/dist/module/enterprise/service/enterprise.service.js.map +1 -1
  38. package/dist/module/enterprise/service/organization.service.d.ts +6 -6
  39. package/dist/module/enterprise/service/organization.service.js +27 -109
  40. package/dist/module/enterprise/service/organization.service.js.map +1 -1
  41. package/dist/module/entity_json/controller/entity_json.controller.d.ts +2 -9
  42. package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -1
  43. package/dist/module/entity_json/entity/entityJson.entity.d.ts +2 -1
  44. package/dist/module/entity_json/entity/entityJson.entity.js +5 -1
  45. package/dist/module/entity_json/entity/entityJson.entity.js.map +1 -1
  46. package/dist/module/entity_json/entity_json.module.js +7 -2
  47. package/dist/module/entity_json/entity_json.module.js.map +1 -1
  48. package/dist/module/entity_json/service/entity_json.service.d.ts +2 -10
  49. package/dist/module/entity_json/service/entity_json.service.js +101 -25
  50. package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
  51. package/dist/module/filter/controller/filter.controller.d.ts +12 -0
  52. package/dist/module/filter/controller/filter.controller.js +1 -1
  53. package/dist/module/filter/controller/filter.controller.js.map +1 -1
  54. package/dist/module/filter/filter.module.js +11 -2
  55. package/dist/module/filter/filter.module.js.map +1 -1
  56. package/dist/module/filter/service/filter.service.d.ts +38 -2
  57. package/dist/module/filter/service/filter.service.js +43 -50
  58. package/dist/module/filter/service/filter.service.js.map +1 -1
  59. package/dist/module/filter/service/flatjson-filter.service.d.ts +32 -0
  60. package/dist/module/filter/service/flatjson-filter.service.js +632 -0
  61. package/dist/module/filter/service/flatjson-filter.service.js.map +1 -0
  62. package/dist/module/filter/service/saved-filter.service.d.ts +3 -2
  63. package/dist/module/filter/service/saved-filter.service.js +14 -18
  64. package/dist/module/filter/service/saved-filter.service.js.map +1 -1
  65. package/dist/module/integration/service/integration.service.d.ts +1 -0
  66. package/dist/module/integration/service/integration.service.js +2 -1
  67. package/dist/module/integration/service/integration.service.js.map +1 -1
  68. package/dist/module/integration/service/wrapper.service.js +1 -0
  69. package/dist/module/integration/service/wrapper.service.js.map +1 -1
  70. package/dist/module/layout/controller/layout.controller.d.ts +3 -1
  71. package/dist/module/layout/controller/layout.controller.js +7 -3
  72. package/dist/module/layout/controller/layout.controller.js.map +1 -1
  73. package/dist/module/layout/entity/header-section.entity.d.ts +2 -0
  74. package/dist/module/layout/entity/header-section.entity.js +8 -0
  75. package/dist/module/layout/entity/header-section.entity.js.map +1 -1
  76. package/dist/module/layout/layout.module.js +2 -1
  77. package/dist/module/layout/layout.module.js.map +1 -1
  78. package/dist/module/layout/repository/header-section.repository.d.ts +1 -0
  79. package/dist/module/layout/repository/header-section.repository.js +5 -0
  80. package/dist/module/layout/repository/header-section.repository.js.map +1 -1
  81. package/dist/module/layout/service/header-section.service.d.ts +1 -1
  82. package/dist/module/layout/service/header-section.service.js +1 -1
  83. package/dist/module/layout/service/header-section.service.js.map +1 -1
  84. package/dist/module/linked_attributes/controller/linked_attributes.controller.d.ts +41 -0
  85. package/dist/module/linked_attributes/controller/linked_attributes.controller.js +90 -0
  86. package/dist/module/linked_attributes/controller/linked_attributes.controller.js.map +1 -1
  87. package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.d.ts +13 -0
  88. package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js +64 -0
  89. package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js.map +1 -0
  90. package/dist/module/linked_attributes/linked_attributes.module.js +8 -1
  91. package/dist/module/linked_attributes/linked_attributes.module.js.map +1 -1
  92. package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +65 -1
  93. package/dist/module/linked_attributes/service/linked_attributes.service.js +287 -2
  94. package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -1
  95. package/dist/module/listmaster/service/list-master.service.js +8 -1
  96. package/dist/module/listmaster/service/list-master.service.js.map +1 -1
  97. package/dist/module/meta/controller/app-master.controller.js.map +1 -0
  98. package/dist/module/meta/controller/attribute-master.controller.d.ts +3 -0
  99. package/dist/module/meta/controller/attribute-master.controller.js +12 -0
  100. package/dist/module/meta/controller/attribute-master.controller.js.map +1 -1
  101. package/dist/module/meta/controller/meta.controller.d.ts +6 -1
  102. package/dist/module/meta/controller/meta.controller.js +19 -1
  103. package/dist/module/meta/controller/meta.controller.js.map +1 -1
  104. package/dist/module/meta/entity/app-master.entity.d.ts +13 -0
  105. package/dist/module/{app_master → meta}/entity/app-master.entity.js +12 -30
  106. package/dist/module/meta/entity/app-master.entity.js.map +1 -0
  107. package/dist/module/meta/entity/entity-master.entity.d.ts +1 -0
  108. package/dist/module/meta/entity/entity-master.entity.js +8 -1
  109. package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
  110. package/dist/module/meta/entity.module.js +14 -3
  111. package/dist/module/meta/entity.module.js.map +1 -1
  112. package/dist/module/{app_master → meta}/repository/app-master.repository.d.ts +2 -2
  113. package/dist/module/{app_master → meta}/repository/app-master.repository.js +4 -4
  114. package/dist/module/meta/repository/app-master.repository.js.map +1 -0
  115. package/dist/module/meta/service/app-master.service.js.map +1 -0
  116. package/dist/module/meta/service/attribute-master.service.d.ts +6 -1
  117. package/dist/module/meta/service/attribute-master.service.js +22 -2
  118. package/dist/module/meta/service/attribute-master.service.js.map +1 -1
  119. package/dist/module/meta/service/entity-master.service.js +1 -0
  120. package/dist/module/meta/service/entity-master.service.js.map +1 -1
  121. package/dist/module/meta/service/entity-relation.service.d.ts +4 -3
  122. package/dist/module/meta/service/entity-relation.service.js +10 -4
  123. package/dist/module/meta/service/entity-relation.service.js.map +1 -1
  124. package/dist/module/meta/service/entity-service-impl.service.d.ts +1 -1
  125. package/dist/module/meta/service/entity-service-impl.service.js +14 -10
  126. package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
  127. package/dist/module/meta/service/entity-table.service.d.ts +5 -4
  128. package/dist/module/meta/service/entity-table.service.js +45 -24
  129. package/dist/module/meta/service/entity-table.service.js.map +1 -1
  130. package/dist/module/meta/service/populate-meta.service.d.ts +13 -0
  131. package/dist/module/{enterprise → meta}/service/populate-meta.service.js +8 -2
  132. package/dist/module/meta/service/populate-meta.service.js.map +1 -0
  133. package/dist/module/meta/service/resolver.service.d.ts +1 -1
  134. package/dist/module/meta/service/resolver.service.js +6 -3
  135. package/dist/module/meta/service/resolver.service.js.map +1 -1
  136. package/dist/module/module/controller/module-access.controller.d.ts +4 -3
  137. package/dist/module/module/controller/module-access.controller.js +8 -13
  138. package/dist/module/module/controller/module-access.controller.js.map +1 -1
  139. package/dist/module/module/entity/menu.entity.d.ts +3 -6
  140. package/dist/module/module/entity/menu.entity.js +10 -19
  141. package/dist/module/module/entity/menu.entity.js.map +1 -1
  142. package/dist/module/module/entity/module-access.entity.d.ts +1 -15
  143. package/dist/module/module/entity/module-access.entity.js +3 -49
  144. package/dist/module/module/entity/module-access.entity.js.map +1 -1
  145. package/dist/module/module/entity/module-action.entity.d.ts +2 -4
  146. package/dist/module/module/entity/module-action.entity.js +6 -11
  147. package/dist/module/module/entity/module-action.entity.js.map +1 -1
  148. package/dist/module/module/entity/module.entity.d.ts +5 -3
  149. package/dist/module/module/entity/module.entity.js +18 -8
  150. package/dist/module/module/entity/module.entity.js.map +1 -1
  151. package/dist/module/module/module.module.d.ts +1 -1
  152. package/dist/module/module/module.module.js +7 -5
  153. package/dist/module/module/module.module.js.map +1 -1
  154. package/dist/module/module/repository/menu.repository.d.ts +3 -3
  155. package/dist/module/module/repository/menu.repository.js +27 -38
  156. package/dist/module/module/repository/menu.repository.js.map +1 -1
  157. package/dist/module/module/repository/module-access.repository.d.ts +6 -6
  158. package/dist/module/module/repository/module-access.repository.js +50 -100
  159. package/dist/module/module/repository/module-access.repository.js.map +1 -1
  160. package/dist/module/module/service/menu.service.d.ts +4 -2
  161. package/dist/module/module/service/menu.service.js +10 -7
  162. package/dist/module/module/service/menu.service.js.map +1 -1
  163. package/dist/module/module/service/module-access.service.d.ts +10 -7
  164. package/dist/module/module/service/module-access.service.js +24 -22
  165. package/dist/module/module/service/module-access.service.js.map +1 -1
  166. package/dist/module/notification/entity/notification.entity.d.ts +2 -17
  167. package/dist/module/notification/entity/notification.entity.js +2 -68
  168. package/dist/module/notification/entity/notification.entity.js.map +1 -1
  169. package/dist/module/notification/notification.module.js +4 -3
  170. package/dist/module/notification/notification.module.js.map +1 -1
  171. package/dist/module/notification/service/email.service.d.ts +0 -1
  172. package/dist/module/notification/service/email.service.js +0 -14
  173. package/dist/module/notification/service/email.service.js.map +1 -1
  174. package/dist/module/notification/service/notification.service.d.ts +3 -1
  175. package/dist/module/notification/service/notification.service.js +5 -2
  176. package/dist/module/notification/service/notification.service.js.map +1 -1
  177. package/dist/module/notification/service/otp.service.d.ts +2 -2
  178. package/dist/module/notification/service/otp.service.js +5 -4
  179. package/dist/module/notification/service/otp.service.js.map +1 -1
  180. package/dist/module/user/controller/login.controller.d.ts +3 -1
  181. package/dist/module/user/controller/login.controller.js +6 -2
  182. package/dist/module/user/controller/login.controller.js.map +1 -1
  183. package/dist/module/user/controller/user.controller.d.ts +2 -0
  184. package/dist/module/user/controller/user.controller.js +13 -0
  185. package/dist/module/user/controller/user.controller.js.map +1 -1
  186. package/dist/module/user/dto/create-user.dto.d.ts +3 -6
  187. package/dist/module/user/dto/create-user.dto.js +11 -17
  188. package/dist/module/user/dto/create-user.dto.js.map +1 -1
  189. package/dist/module/user/entity/role.entity.d.ts +6 -18
  190. package/dist/module/user/entity/role.entity.js +19 -64
  191. package/dist/module/user/entity/role.entity.js.map +1 -1
  192. package/dist/module/user/entity/user-role-mapping.entity.d.ts +0 -10
  193. package/dist/module/user/entity/user-role-mapping.entity.js +1 -33
  194. package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
  195. package/dist/module/user/entity/user-session.entity.d.ts +2 -0
  196. package/dist/module/user/entity/user-session.entity.js +20 -2
  197. package/dist/module/user/entity/user-session.entity.js.map +1 -1
  198. package/dist/module/user/entity/user.entity.d.ts +5 -17
  199. package/dist/module/user/entity/user.entity.js +15 -61
  200. package/dist/module/user/entity/user.entity.js.map +1 -1
  201. package/dist/module/user/repository/role.repository.d.ts +2 -7
  202. package/dist/module/user/repository/role.repository.js +8 -23
  203. package/dist/module/user/repository/role.repository.js.map +1 -1
  204. package/dist/module/user/repository/user-role-mapping.repository.d.ts +0 -1
  205. package/dist/module/user/repository/user-role-mapping.repository.js +0 -3
  206. package/dist/module/user/repository/user-role-mapping.repository.js.map +1 -1
  207. package/dist/module/user/repository/user.repository.d.ts +2 -5
  208. package/dist/module/user/repository/user.repository.js +7 -26
  209. package/dist/module/user/repository/user.repository.js.map +1 -1
  210. package/dist/module/user/repository/userSession.repository.d.ts +0 -1
  211. package/dist/module/user/repository/userSession.repository.js +0 -3
  212. package/dist/module/user/repository/userSession.repository.js.map +1 -1
  213. package/dist/module/user/service/login.service.d.ts +5 -3
  214. package/dist/module/user/service/login.service.js +42 -43
  215. package/dist/module/user/service/login.service.js.map +1 -1
  216. package/dist/module/user/service/role.service.d.ts +11 -24
  217. package/dist/module/user/service/role.service.js +40 -54
  218. package/dist/module/user/service/role.service.js.map +1 -1
  219. package/dist/module/user/service/user-role-mapping.service.d.ts +0 -2
  220. package/dist/module/user/service/user-role-mapping.service.js +0 -6
  221. package/dist/module/user/service/user-role-mapping.service.js.map +1 -1
  222. package/dist/module/user/service/user-session.service.d.ts +4 -3
  223. package/dist/module/user/service/user-session.service.js +11 -10
  224. package/dist/module/user/service/user-session.service.js.map +1 -1
  225. package/dist/module/user/service/user.service.d.ts +22 -33
  226. package/dist/module/user/service/user.service.js +58 -66
  227. package/dist/module/user/service/user.service.js.map +1 -1
  228. package/dist/module/user/user.module.js +7 -2
  229. package/dist/module/user/user.module.js.map +1 -1
  230. package/dist/module/workflow/repository/action-data.repository.d.ts +1 -1
  231. package/dist/module/workflow/repository/action-data.repository.js +8 -6
  232. package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
  233. package/dist/module/workflow/repository/action.repository.d.ts +1 -1
  234. package/dist/module/workflow/repository/action.repository.js +10 -10
  235. package/dist/module/workflow/repository/action.repository.js.map +1 -1
  236. package/dist/module/workflow/repository/form-master.repository.d.ts +1 -1
  237. package/dist/module/workflow/repository/form-master.repository.js +2 -2
  238. package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
  239. package/dist/module/workflow/service/action-data.service.js +2 -1
  240. package/dist/module/workflow/service/action-data.service.js.map +1 -1
  241. package/dist/module/workflow/service/action.service.js +2 -2
  242. package/dist/module/workflow/service/action.service.js.map +1 -1
  243. package/dist/module/workflow/service/comm-template.service.js +2 -0
  244. package/dist/module/workflow/service/comm-template.service.js.map +1 -1
  245. package/dist/module/workflow/service/entity-modification.service.js +1 -0
  246. package/dist/module/workflow/service/entity-modification.service.js.map +1 -1
  247. package/dist/module/workflow/service/form-master.service.js +2 -2
  248. package/dist/module/workflow/service/form-master.service.js.map +1 -1
  249. package/dist/module/workflow/service/populate-workflow.service.d.ts +1 -1
  250. package/dist/module/workflow/service/populate-workflow.service.js +1 -1
  251. package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
  252. package/dist/module/workflow/service/task.service.js +3 -0
  253. package/dist/module/workflow/service/task.service.js.map +1 -1
  254. package/dist/module/workflow/service/workflow-meta.service.js +7 -2
  255. package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
  256. package/dist/module/workflow/service/workflow.service.js +2 -2
  257. package/dist/module/workflow/service/workflow.service.js.map +1 -1
  258. package/dist/module/workflow/workflow.module.js +0 -2
  259. package/dist/module/workflow/workflow.module.js.map +1 -1
  260. package/dist/module/workflow-automation/service/workflow-automation.service.js +6 -11
  261. package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
  262. package/dist/module/workflow-automation/workflow-automation.module.js +1 -3
  263. package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
  264. package/dist/module/workflow-schedule/service/workflow-schedule.service.js +2 -0
  265. package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -1
  266. package/dist/table.config.d.ts +5 -3
  267. package/dist/table.config.js +3 -3
  268. package/dist/table.config.js.map +1 -1
  269. package/dist/tsconfig.build.tsbuildinfo +1 -1
  270. package/package.json +2 -2
  271. package/src/app.module.ts +5 -7
  272. package/src/core.module.ts +44 -58
  273. package/src/migrations/1732612800000-AddEntityJsonGinIndex.ts +41 -0
  274. package/src/module/auth/strategies/jwt.strategy.ts +2 -4
  275. package/src/module/dashboard/dashboard.module.ts +3 -3
  276. package/src/module/dashboard/service/dashboard.service.ts +2 -1
  277. package/src/module/enterprise/controller/organization.controller.ts +4 -60
  278. package/src/module/enterprise/enterprise.module.ts +18 -16
  279. package/src/module/enterprise/entity/enterprise.entity.ts +11 -5
  280. package/src/module/enterprise/entity/organization-app-mapping.entity.ts +4 -18
  281. package/src/module/enterprise/entity/organization.entity.ts +58 -11
  282. package/src/module/enterprise/repository/enterprise.repository.ts +4 -26
  283. package/src/module/enterprise/service/brand.service.ts +5 -75
  284. package/src/module/enterprise/service/enterprise.service.ts +4 -12
  285. package/src/module/enterprise/service/organization.service.ts +28 -151
  286. package/src/module/entity_json/controller/entity_json.controller.ts +13 -0
  287. package/src/module/entity_json/docs/FlatJson_Filterin_System.md +2804 -0
  288. package/src/module/entity_json/entity/entityJson.entity.ts +4 -1
  289. package/src/module/entity_json/entity_json.module.ts +9 -5
  290. package/src/module/entity_json/service/entity_json.service.ts +237 -51
  291. package/src/module/filter/controller/filter.controller.ts +1 -3
  292. package/src/module/filter/filter.module.ts +12 -3
  293. package/src/module/filter/service/filter.service.ts +130 -73
  294. package/src/module/filter/service/flatjson-filter.service.ts +903 -0
  295. package/src/module/filter/service/saved-filter.service.ts +16 -26
  296. package/src/module/filter/test/flatjson-filter.service.spec.ts +415 -0
  297. package/src/module/integration/service/integration.service.ts +6 -2
  298. package/src/module/integration/service/wrapper.service.ts +1 -0
  299. package/src/module/layout/controller/layout.controller.ts +8 -1
  300. package/src/module/layout/entity/header-section.entity.ts +6 -0
  301. package/src/module/layout/layout.module.ts +1 -1
  302. package/src/module/layout/repository/header-section.repository.ts +6 -0
  303. package/src/module/layout/service/header-section.service.ts +1 -1
  304. package/src/module/linked_attributes/controller/linked_attributes.controller.ts +100 -0
  305. package/src/module/linked_attributes/dto/create-linked-attribute-smart.dto.ts +54 -0
  306. package/src/module/linked_attributes/linked_attributes.module.ts +9 -2
  307. package/src/module/linked_attributes/service/linked_attributes.service.ts +578 -3
  308. package/src/module/linked_attributes/test/linked-attributes.service.spec.ts +244 -0
  309. package/src/module/listmaster/service/list-master.service.ts +9 -1
  310. package/src/module/meta/controller/attribute-master.controller.ts +12 -0
  311. package/src/module/meta/controller/meta.controller.ts +25 -3
  312. package/src/module/{app_master → meta}/entity/app-master.entity.ts +9 -22
  313. package/src/module/meta/entity/entity-master.entity.ts +9 -3
  314. package/src/module/meta/entity.module.ts +20 -6
  315. package/src/module/{app_master → meta}/repository/app-master.repository.ts +3 -3
  316. package/src/module/meta/service/attribute-master.service.ts +31 -1
  317. package/src/module/meta/service/entity-master.service.ts +1 -0
  318. package/src/module/meta/service/entity-relation.service.ts +10 -6
  319. package/src/module/meta/service/entity-service-impl.service.ts +14 -19
  320. package/src/module/meta/service/entity-table.service.ts +82 -68
  321. package/src/module/meta/service/entity.service.ts +0 -1
  322. package/src/module/{enterprise → meta}/service/populate-meta.service.ts +5 -2
  323. package/src/module/meta/service/resolver.service.ts +4 -0
  324. package/src/module/module/controller/module-access.controller.ts +9 -14
  325. package/src/module/module/entity/menu.entity.ts +10 -18
  326. package/src/module/module/entity/module-access.entity.ts +3 -40
  327. package/src/module/module/entity/module-action.entity.ts +6 -10
  328. package/src/module/module/entity/module.entity.ts +14 -7
  329. package/src/module/module/module.module.ts +3 -2
  330. package/src/module/module/repository/menu.repository.ts +29 -43
  331. package/src/module/module/repository/module-access.repository.ts +62 -110
  332. package/src/module/module/service/menu.service.ts +9 -7
  333. package/src/module/module/service/module-access.service.ts +34 -22
  334. package/src/module/notification/entity/notification.entity.ts +3 -53
  335. package/src/module/notification/notification.module.ts +5 -6
  336. package/src/module/notification/service/email.service.ts +1 -16
  337. package/src/module/notification/service/notification.service.ts +1 -0
  338. package/src/module/notification/service/otp.service.ts +5 -16
  339. package/src/module/user/controller/login.controller.ts +8 -7
  340. package/src/module/user/controller/user.controller.ts +9 -0
  341. package/src/module/user/dto/create-user.dto.ts +6 -19
  342. package/src/module/user/entity/role.entity.ts +16 -59
  343. package/src/module/user/entity/user-role-mapping.entity.ts +3 -29
  344. package/src/module/user/entity/user-session.entity.ts +19 -3
  345. package/src/module/user/entity/user.entity.ts +13 -48
  346. package/src/module/user/repository/role.repository.ts +12 -32
  347. package/src/module/user/repository/user-role-mapping.repository.ts +1 -5
  348. package/src/module/user/repository/user.repository.ts +9 -36
  349. package/src/module/user/repository/userSession.repository.ts +1 -5
  350. package/src/module/user/service/login.service.ts +51 -47
  351. package/src/module/user/service/role.service.ts +63 -64
  352. package/src/module/user/service/user-role-mapping.service.ts +1 -23
  353. package/src/module/user/service/user-session.service.ts +11 -14
  354. package/src/module/user/service/user.service.ts +95 -76
  355. package/src/module/user/user.module.ts +5 -4
  356. package/src/module/workflow/repository/action-data.repository.ts +8 -6
  357. package/src/module/workflow/repository/action.repository.ts +11 -11
  358. package/src/module/workflow/repository/form-master.repository.ts +2 -2
  359. package/src/module/workflow/service/action-data.service.ts +2 -3
  360. package/src/module/workflow/service/action.service.ts +2 -2
  361. package/src/module/workflow/service/comm-template.service.ts +2 -0
  362. package/src/module/workflow/service/entity-modification.service.ts +1 -0
  363. package/src/module/workflow/service/form-master.service.ts +2 -2
  364. package/src/module/workflow/service/populate-workflow.service.ts +1 -1
  365. package/src/module/workflow/service/task.service.ts +3 -0
  366. package/src/module/workflow/service/workflow-meta.service.ts +7 -2
  367. package/src/module/workflow/service/workflow.service.ts +2 -2
  368. package/src/module/workflow/workflow.module.ts +0 -2
  369. package/src/module/workflow-automation/service/workflow-automation.service.ts +7 -19
  370. package/src/module/workflow-automation/workflow-automation.module.ts +3 -4
  371. package/src/module/workflow-schedule/service/workflow-schedule.service.ts +2 -0
  372. package/src/resources/dev.properties.yaml +2 -2
  373. package/src/table.config.ts +3 -3
  374. package/.claude/settings.local.json +0 -26
  375. package/.idea/250218_nodejs_core.iml +0 -9
  376. package/.idea/codeStyles/Project.xml +0 -59
  377. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  378. package/.idea/copilot.data.migration.agent.xml +0 -6
  379. package/.idea/copilot.data.migration.ask.xml +0 -6
  380. package/.idea/copilot.data.migration.ask2agent.xml +0 -6
  381. package/.idea/copilot.data.migration.edit.xml +0 -6
  382. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  383. package/.idea/misc.xml +0 -6
  384. package/.idea/modules.xml +0 -8
  385. package/.idea/prettier.xml +0 -6
  386. package/.idea/vcs.xml +0 -6
  387. package/dist/constant/status.constant.d.ts +0 -4
  388. package/dist/constant/status.constant.js +0 -9
  389. package/dist/constant/status.constant.js.map +0 -1
  390. package/dist/module/app_master/app-master.module.d.ts +0 -2
  391. package/dist/module/app_master/app-master.module.js +0 -28
  392. package/dist/module/app_master/app-master.module.js.map +0 -1
  393. package/dist/module/app_master/controller/app-master.controller.js.map +0 -1
  394. package/dist/module/app_master/entity/app-master.entity.d.ts +0 -17
  395. package/dist/module/app_master/entity/app-master.entity.js.map +0 -1
  396. package/dist/module/app_master/repository/app-master.repository.js.map +0 -1
  397. package/dist/module/app_master/service/app-master.service.js.map +0 -1
  398. package/dist/module/enterprise/controller/enterprise.controller.d.ts +0 -12
  399. package/dist/module/enterprise/controller/enterprise.controller.js +0 -57
  400. package/dist/module/enterprise/controller/enterprise.controller.js.map +0 -1
  401. package/dist/module/enterprise/controller/meta.controller.d.ts +0 -9
  402. package/dist/module/enterprise/controller/meta.controller.js +0 -43
  403. package/dist/module/enterprise/controller/meta.controller.js.map +0 -1
  404. package/dist/module/enterprise/service/brand-profile.service.d.ts +0 -0
  405. package/dist/module/enterprise/service/brand-profile.service.js +0 -1
  406. package/dist/module/enterprise/service/brand-profile.service.js.map +0 -1
  407. package/dist/module/enterprise/service/populate-meta.service.d.ts +0 -9
  408. package/dist/module/enterprise/service/populate-meta.service.js.map +0 -1
  409. package/dist/module/enterprise/service/school.service.d.ts +0 -0
  410. package/dist/module/enterprise/service/school.service.js +0 -1
  411. package/dist/module/enterprise/service/school.service.js.map +0 -1
  412. package/dist/module/preference_master/entity/preference.entity.d.ts +0 -9
  413. package/dist/module/preference_master/entity/preference.entity.js +0 -48
  414. package/dist/module/preference_master/entity/preference.entity.js.map +0 -1
  415. package/dist/module/preference_master/preference.service.d.ts +0 -8
  416. package/dist/module/preference_master/preference.service.js +0 -31
  417. package/dist/module/preference_master/preference.service.js.map +0 -1
  418. package/dist/module/preference_master/repo/preference.repository.d.ts +0 -8
  419. package/dist/module/preference_master/repo/preference.repository.js +0 -48
  420. package/dist/module/preference_master/repo/preference.repository.js.map +0 -1
  421. package/server.log +0 -850
  422. package/src/constant/status.constant.ts +0 -4
  423. package/src/module/app_master/app-master.module.ts +0 -15
  424. package/src/module/enterprise/controller/enterprise.controller.ts +0 -40
  425. package/src/module/enterprise/controller/meta.controller.ts +0 -23
  426. package/src/module/enterprise/service/brand-profile.service.ts +0 -10
  427. package/src/module/enterprise/service/school.service.ts +0 -5
  428. package/src/module/preference_master/entity/preference.entity.ts +0 -25
  429. package/src/module/preference_master/preference.service.ts +0 -27
  430. package/src/module/preference_master/repo/preference.repository.ts +0 -36
  431. /package/dist/module/{app_master → meta}/controller/app-master.controller.d.ts +0 -0
  432. /package/dist/module/{app_master → meta}/controller/app-master.controller.js +0 -0
  433. /package/dist/module/{app_master → meta}/service/app-master.service.d.ts +0 -0
  434. /package/dist/module/{app_master → meta}/service/app-master.service.js +0 -0
  435. /package/src/module/{app_master → meta}/controller/app-master.controller.ts +0 -0
  436. /package/src/module/{app_master → meta}/service/app-master.service.ts +0 -0
@@ -4,6 +4,7 @@ import { UserSessionRepository } from '../repository/userSession.repository';
4
4
  import { JwtAuthService } from 'src/module/auth/services/jwt.service';
5
5
  import { ConfigService } from '@nestjs/config';
6
6
  import { Repository } from 'typeorm';
7
+ import { UserRoleMapping } from '../entity/user-role-mapping.entity';
7
8
  import { UserData } from '../entity/user.entity';
8
9
  import { ReflectionHelper } from '../../../utils/service/reflection-helper.service';
9
10
  export declare class UserSessionService {
@@ -12,12 +13,12 @@ export declare class UserSessionService {
12
13
  private readonly clockIDGenService;
13
14
  private configService;
14
15
  private readonly userDataRepository;
16
+ private readonly userRoleMappingRepository;
15
17
  private readonly reflectionHelper;
16
- constructor(userSessionRepository: UserSessionRepository, jwtAuthService: JwtAuthService, clockIDGenService: ClockIDGenService, configService: ConfigService, userDataRepository: Repository<UserData>, reflectionHelper: ReflectionHelper);
17
- createSession(user: any, app_id?: number, accessInfo?: any, appcode?: string): Promise<string>;
18
+ constructor(userSessionRepository: UserSessionRepository, jwtAuthService: JwtAuthService, clockIDGenService: ClockIDGenService, configService: ConfigService, userDataRepository: Repository<UserData>, userRoleMappingRepository: Repository<UserRoleMapping>, reflectionHelper: ReflectionHelper);
19
+ createSession(user: any, appcode?: string, accessInfo?: any): Promise<string>;
18
20
  findBySessionKey(sessionKey: string): Promise<UserSession | null>;
19
21
  updateSession(userSession: UserSession): Promise<void>;
20
- fetchUserFcmToken(user_id: number): Promise<UserSession | null>;
21
22
  switchCurrentLevelService(currentUser: any, data: any): Promise<{
22
23
  success: boolean;
23
24
  accessToken: string;
@@ -20,41 +20,44 @@ const userSession_repository_1 = require("../repository/userSession.repository")
20
20
  const jwt_service_1 = require("../../auth/services/jwt.service");
21
21
  const config_1 = require("@nestjs/config");
22
22
  const typeorm_1 = require("typeorm");
23
+ const user_role_mapping_entity_1 = require("../entity/user-role-mapping.entity");
23
24
  const user_entity_1 = require("../entity/user.entity");
24
25
  const typeorm_2 = require("@nestjs/typeorm");
25
26
  const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
26
27
  let UserSessionService = class UserSessionService {
27
- constructor(userSessionRepository, jwtAuthService, clockIDGenService, configService, userDataRepository, reflectionHelper) {
28
+ constructor(userSessionRepository, jwtAuthService, clockIDGenService, configService, userDataRepository, userRoleMappingRepository, reflectionHelper) {
28
29
  this.userSessionRepository = userSessionRepository;
29
30
  this.jwtAuthService = jwtAuthService;
30
31
  this.clockIDGenService = clockIDGenService;
31
32
  this.configService = configService;
32
33
  this.userDataRepository = userDataRepository;
34
+ this.userRoleMappingRepository = userRoleMappingRepository;
33
35
  this.reflectionHelper = reflectionHelper;
34
36
  }
35
- async createSession(user, app_id, accessInfo, appcode) {
37
+ async createSession(user, appcode, accessInfo) {
36
38
  const sessionToken = this.clockIDGenService.idGenerator('SES');
37
39
  const userSession = new user_session_entity_1.UserSession();
38
40
  userSession.user_id = user.id;
39
41
  userSession.session_key = sessionToken;
40
42
  userSession.is_session_loggedout = 0;
43
+ userSession.login_time = new Date();
41
44
  const expiryTokenInHours = this.configService.get('TOKEN_EXPIRY') || 1;
42
45
  userSession.expiry_date = new Date(Date.now() + expiryTokenInHours * 60 * 60 * 1000);
43
46
  await this.userSessionRepository.saveSession(userSession);
44
47
  const payload = {
45
48
  id: user.id,
46
49
  sessionToken,
47
- app_id,
50
+ appcode,
48
51
  email_id: user.email_id,
49
52
  organization_id: user.organization_id,
50
53
  enterprise_id: user.enterprise_id,
51
- appcode,
52
54
  };
53
55
  if (accessInfo) {
54
56
  payload.level_type = accessInfo.level_type;
55
57
  payload.level_id = accessInfo.level_id;
56
58
  }
57
59
  const accessToken = this.jwtAuthService.generateJwt(payload);
60
+ userSession.access_token = accessToken;
58
61
  await this.userSessionRepository.saveSession(userSession);
59
62
  return accessToken;
60
63
  }
@@ -64,10 +67,6 @@ let UserSessionService = class UserSessionService {
64
67
  async updateSession(userSession) {
65
68
  await this.userSessionRepository.saveSession(userSession);
66
69
  }
67
- async fetchUserFcmToken(user_id) {
68
- return await this.userSessionRepository.fetchUserFcmToken(user_id);
69
- }
70
- ;
71
70
  async switchCurrentLevelService(currentUser, data) {
72
71
  let payload;
73
72
  payload = {
@@ -84,11 +83,11 @@ let UserSessionService = class UserSessionService {
84
83
  },
85
84
  });
86
85
  }
87
- if (getUserDetails?.enterprise_id == 1 && payload.level_type == 'ORG') {
86
+ if (getUserDetails?.organization_id == 1 && payload.level_type == 'ORG') {
88
87
  payload.organization_id = payload.level_id;
89
88
  }
90
89
  await this.userDataRepository.update(currentUser.id, {
91
- last_app_access_id: data.app_id,
90
+ last_app_access: data.appcode,
92
91
  last_level_type: data.level_type,
93
92
  last_level_id: data.level_id,
94
93
  });
@@ -149,11 +148,13 @@ exports.UserSessionService = UserSessionService;
149
148
  exports.UserSessionService = UserSessionService = __decorate([
150
149
  (0, common_1.Injectable)(),
151
150
  __param(4, (0, typeorm_2.InjectRepository)(user_entity_1.UserData)),
151
+ __param(5, (0, typeorm_2.InjectRepository)(user_role_mapping_entity_1.UserRoleMapping)),
152
152
  __metadata("design:paramtypes", [userSession_repository_1.UserSessionRepository,
153
153
  jwt_service_1.JwtAuthService,
154
154
  clockIDGenUtil_service_1.ClockIDGenService,
155
155
  config_1.ConfigService,
156
156
  typeorm_1.Repository,
157
+ typeorm_1.Repository,
157
158
  reflection_helper_service_1.ReflectionHelper])
158
159
  ], UserSessionService);
159
160
  //# sourceMappingURL=user-session.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-session.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/user-session.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uEAA4D;AAC5D,0FAAkF;AAClF,2CAAiE;AACjE,iFAA6E;AAC7E,iEAAsE;AACtE,2CAA+C;AAC/C,qCAAqC;AAErC,uDAAiD;AACjD,6CAAmD;AACnD,gGAAoF;AAG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ACjB,QAAQ,EAAE,MAAM,CAAC,EAAE;SACpB,CAAC;IACJ,CAAC;CACF,CAAA;AA7LY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAOR,WAAA,IAAA,0BAAgB,EAAC,sBAAQ,CAAC,CAAA;qCAJa,8CAAqB;QAC5B,4BAAc;QACX,0CAAiB;QAC9B,sBAAa;QAEC,oBAAU;QACZ,4CAAgB;GAR1C,kBAAkB,CA6L9B"}
1
+ {"version":3,"file":"user-session.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/user-session.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uEAA4D;AAC5D,0FAAkF;AAClF,2CAAiE;AACjE,iFAA6E;AAC7E,iEAAsE;AACtE,2CAA+C;AAE/C,qCAAiD;AACjD,iFAAqE;AACrE,uDAAiD;AACjD,6CAAmD;AACnD,gGAAoF;AAG7E,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YACmB,qBAA4C,EAC5C,cAA8B,EAC9B,iBAAoC,EAC7C,aAA4B,EAEnB,kBAAwC,EAExC,yBAAsD,EACtD,gBAAkC;QARlC,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,mBAAc,GAAd,cAAc,CAAgB;QAC9B,sBAAiB,GAAjB,iBAAiB,CAAmB;QAC7C,kBAAa,GAAb,aAAa,CAAe;QAEnB,uBAAkB,GAAlB,kBAAkB,CAAsB;QAExC,8BAAyB,GAAzB,yBAAyB,CAA6B;QACtD,qBAAgB,GAAhB,gBAAgB,CAAkB;IAClD,CAAC;IACJ,KAAK,CAAC,aAAa,CAAC,IAAI,EAAE,OAAgB,EAAE,UAAgB;QAC1D,MAAM,YAAY,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAE/D,MAAM,WAAW,GAAQ,IAAI,iCAAW,EAAE,CAAC;QAC3C,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC;QAC9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;QACJ,CAAC;QAED,IAAI,OAAO,CAAC,UAAU,KAAK,KAAK,EAAE,CAAC;YACjC,OAAO,OAAO,CAAC;QACjB,CAAC;QAGD,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YACtC,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE;YACrC,KAAK,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE;SACrB,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,4BAAmB,CAC3B,gCAAgC,OAAO,CAAC,QAAQ,EAAE,CACnD,CAAC;QACJ,CAAC;QAED,OAAO;YACL,GAAG,OAAO;YACV,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE,MAAM,CAAC,EAAE;SACpB,CAAC;IACJ,CAAC;CACF,CAAA;AAzLY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAOR,WAAA,IAAA,0BAAgB,EAAC,sBAAQ,CAAC,CAAA;IAE1B,WAAA,IAAA,0BAAgB,EAAC,0CAAe,CAAC,CAAA;qCANM,8CAAqB;QAC5B,4BAAc;QACX,0CAAiB;QAC9B,sBAAa;QAEC,oBAAU;QAEH,oBAAU;QACnB,4CAAgB;GAV1C,kBAAkB,CAyL9B"}
@@ -1,49 +1,38 @@
1
+ import { RoleService } from './role.service';
2
+ import { EntityServiceImpl } from '../../meta/service/entity-service-impl.service';
1
3
  import { UserData } from '../entity/user.entity';
4
+ import { BaseEntity } from '../../meta/entity/base-entity.entity';
2
5
  import { UserRepository } from '../repository/user.repository';
3
- import { CreateUserDto } from '../dto/create-user.dto';
6
+ import { ClockIDGenService } from '../../../utils/service/clockIDGenUtil.service';
4
7
  import { UserRoleMappingService } from './user-role-mapping.service';
8
+ import { EntityManager } from 'typeorm';
5
9
  import { ConfigService } from '@nestjs/config';
6
- import { UpdateUserDto } from '../dto/update-user.dto';
7
- import { EnterpriseRepository } from 'src/module/enterprise/repository/enterprise.repository';
8
- import { RoleRepository } from '../repository/role.repository';
9
- import { ReflectionHelper } from '../../../utils/service/reflection-helper.service';
10
- export declare class UserService {
10
+ import { ServiceResult } from 'src/dtos/response.dto';
11
+ import { ListMasterService } from 'src/module/listmaster/service/list-master.service';
12
+ import { OrganizationRepository } from 'src/module/enterprise/repository/organization.repository';
13
+ import { Action } from 'src/module/workflow-automation/interface/action.interface';
14
+ export declare class UserService extends EntityServiceImpl implements Action {
11
15
  private userRepository;
12
16
  private userRoleMappingService;
13
- private roleRepo;
17
+ private readonly clockIDGenService;
14
18
  private configService;
15
- private readonly enterpriseRepository;
16
- private readonly reflectionHelper;
17
- constructor(userRepository: UserRepository, userRoleMappingService: UserRoleMappingService, roleRepo: RoleRepository, configService: ConfigService, enterpriseRepository: EnterpriseRepository, reflectionHelper: ReflectionHelper);
19
+ private readonly organizationRepository;
20
+ private readonly roleService;
21
+ private readonly listMasterService;
22
+ constructor(userRepository: UserRepository, userRoleMappingService: UserRoleMappingService, clockIDGenService: ClockIDGenService, configService: ConfigService, organizationRepository: OrganizationRepository, roleService: RoleService, listMasterService: ListMasterService);
18
23
  masterKey: any;
19
24
  masterIv: any;
20
- createUser(entityData: CreateUserDto, loggedInUser: UserData): Promise<{
21
- success: boolean;
22
- error: string;
23
- data?: undefined;
24
- } | {
25
- success: boolean;
26
- data: UserData;
27
- error?: undefined;
28
- }>;
25
+ createEntity(entityData: BaseEntity, loggedInUser: UserData | null, manager?: EntityManager): Promise<ServiceResult<BaseEntity>>;
29
26
  name: string;
30
- getUserData(id: number): Promise<UserData | null>;
31
- updateUser(id: number, userDto: UpdateUserDto, loggedInUserData: UserData): Promise<{
32
- success: boolean;
33
- error: string;
34
- data?: undefined;
35
- } | {
36
- success: boolean;
37
- data: import("typeorm").UpdateResult;
38
- error?: undefined;
39
- }>;
40
- findByEmailId(email_id: string, enterprise_id?: number, getLastApp?: boolean): Promise<UserData | null>;
27
+ execute(payload: any): Promise<any>;
28
+ getEntityData(entityType: string, id: number, loggedInUser?: UserData): Promise<BaseEntity | null>;
29
+ updateEntity(entityData: BaseEntity, loggedInUserData: UserData): Promise<ServiceResult<BaseEntity>>;
30
+ findByEmailId(email_id: string, organization_id?: number): Promise<UserData | null>;
41
31
  findByMobile(mobile: string, organization_id?: number, appCode?: string): Promise<UserData | null>;
42
- setDefaultLastAccess(userId: number, app_id: number): Promise<void>;
43
- setLastLevelTypeAndId(userId: number, levelType: string, levelId: string, app_id: number): Promise<void>;
32
+ setDefaultLastAccess(userId: number, appcode: string): Promise<void>;
33
+ setLastLevelTypeAndId(userId: number, levelType: string, levelId: string, appcode: string): Promise<void>;
44
34
  checkEmailExists(data: {
45
35
  email_id: string;
46
36
  subdomain: string;
47
37
  }): Promise<any>;
48
- find(options: any): Promise<UserData[]>;
49
38
  }
@@ -8,64 +8,58 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.UserService = void 0;
16
+ const role_service_1 = require("./role.service");
13
17
  const common_1 = require("@nestjs/common");
14
- const user_entity_1 = require("../entity/user.entity");
18
+ const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
15
19
  const user_repository_1 = require("../repository/user.repository");
20
+ const encryptUtil_service_1 = require("../../../utils/service/encryptUtil.service");
21
+ const clockIDGenUtil_service_1 = require("../../../utils/service/clockIDGenUtil.service");
16
22
  const global_constant_1 = require("../../../constant/global.constant");
17
23
  const user_role_mapping_service_1 = require("./user-role-mapping.service");
18
24
  const user_role_mapping_entity_1 = require("../entity/user-role-mapping.entity");
19
25
  const config_1 = require("@nestjs/config");
26
+ const list_master_service_1 = require("../../listmaster/service/list-master.service");
27
+ const organization_repository_1 = require("../../enterprise/repository/organization.repository");
20
28
  const action_decorator_1 = require("../../workflow-automation/interface/action.decorator");
21
- const encryptUtil_service_1 = require("../../../utils/service/encryptUtil.service");
22
- const class_transformer_1 = require("class-transformer");
23
- const enterprise_repository_1 = require("../../enterprise/repository/enterprise.repository");
24
- const status_constant_1 = require("../../../constant/status.constant");
25
- const role_repository_1 = require("../repository/role.repository");
26
- const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
27
- let UserService = class UserService {
28
- constructor(userRepository, userRoleMappingService, roleRepo, configService, enterpriseRepository, reflectionHelper) {
29
+ let UserService = class UserService extends entity_service_impl_service_1.EntityServiceImpl {
30
+ constructor(userRepository, userRoleMappingService, clockIDGenService, configService, organizationRepository, roleService, listMasterService) {
31
+ super();
29
32
  this.userRepository = userRepository;
30
33
  this.userRoleMappingService = userRoleMappingService;
31
- this.roleRepo = roleRepo;
34
+ this.clockIDGenService = clockIDGenService;
32
35
  this.configService = configService;
33
- this.enterpriseRepository = enterpriseRepository;
34
- this.reflectionHelper = reflectionHelper;
36
+ this.organizationRepository = organizationRepository;
37
+ this.roleService = roleService;
38
+ this.listMasterService = listMasterService;
35
39
  this.masterKey = this.configService.get('MASTER_KEY') || '';
36
40
  this.masterIv = this.configService.get('MASTER_IV') || '';
37
41
  this.name = 'UserService';
38
42
  }
39
- async createUser(entityData, loggedInUser) {
43
+ async createEntity(entityData, loggedInUser, manager) {
40
44
  const userData = entityData;
41
- let existingUser = await this.userRepository.findByEmailId(userData.email_id, loggedInUser?.enterprise_id);
45
+ let existingUser = await this.userRepository.findByEmailId(userData.email_id, loggedInUser?.organization_id);
42
46
  if (existingUser) {
43
47
  return { success: false, error: 'User with this email already exists' };
44
48
  }
45
- existingUser = await this.userRepository.findByMobile(userData.mobile, loggedInUser?.enterprise_id);
49
+ existingUser = await this.userRepository.findByMobile(userData.mobile, loggedInUser?.organization_id);
46
50
  if (existingUser) {
47
51
  return { success: false, error: 'User with this mobile already exists' };
48
52
  }
49
- if (!userData.code) {
50
- const maxId = await this.userRepository.findMaxIdRecord();
51
- if (maxId && maxId.id) {
52
- userData.code = `USR${maxId.id + 1}`;
53
- }
54
- else {
55
- userData.code = `USR1`;
56
- }
57
- }
53
+ const resolveStatus = await this.listMasterService.getResolvedListCode(global_constant_1.STATUS_ACTIVE, loggedInUser?.organization_id || 0);
54
+ const resolvedInvitationStatus = await this.listMasterService.getResolvedListCode(global_constant_1.INVITATION_STATUS_SENT, loggedInUser?.organization_id || 0);
55
+ userData.name =
56
+ (userData.first_name || '') + ' ' + (userData.last_name || '');
58
57
  userData.password = encryptUtil_service_1.EncryptUtilService.encryptGCM(userData.password || 'Admin@123', this.masterKey, this.masterIv);
59
- userData.enterprise_id = loggedInUser.enterprise_id;
60
- userData.level_type = loggedInUser.level_type;
61
- userData.level_id = loggedInUser.level_id;
62
58
  userData.is_firstlogin = 1;
63
59
  userData.roles = [];
64
- userData.invitation_status = global_constant_1.INVITATION_STATUS_SENT;
65
- userData.status = status_constant_1.StatusConstant.ACTIVE;
66
- const entity = (0, class_transformer_1.plainToInstance)(user_entity_1.UserData, userData);
67
- entity.created_by = loggedInUser.created_by;
68
- const savedData = await this.userRepository.saveUser(entity);
60
+ userData.invitation_status = resolvedInvitationStatus.id;
61
+ userData.status = resolveStatus.id || 'ACTIVE';
62
+ const savedData = await super.createEntity(userData, loggedInUser);
69
63
  const insertPromises = [];
70
64
  for (const entry of userData.access || []) {
71
65
  const { level_type, level_ids, app_code, role_id } = entry;
@@ -76,19 +70,12 @@ let UserService = class UserService {
76
70
  !role_id) {
77
71
  return { success: false, error: 'Invalid access level entry' };
78
72
  }
79
- const appMasterRepo = this.reflectionHelper.getRepoService('AppMaster');
80
- const appMaster = await appMasterRepo.findOne({
81
- where: {
82
- code: app_code
83
- }
84
- });
85
73
  for (const levelId of level_ids) {
86
74
  const userRoleMapping = new user_role_mapping_entity_1.UserRoleMapping(savedData.id, role_id);
87
75
  userRoleMapping.level_type = level_type;
88
76
  userRoleMapping.level_id = String(levelId);
89
77
  userRoleMapping.appcode = app_code;
90
- userRoleMapping.app_id = appMaster.id;
91
- userRoleMapping.enterprise_id = loggedInUser?.enterprise_id || 0;
78
+ userRoleMapping.organization_id = loggedInUser?.organization_id || 0;
92
79
  insertPromises.push(this.userRoleMappingService.assignUserRole(userRoleMapping));
93
80
  }
94
81
  }
@@ -103,7 +90,10 @@ let UserService = class UserService {
103
90
  }
104
91
  return { success: true, data: savedData };
105
92
  }
106
- async getUserData(id) {
93
+ async execute(payload) {
94
+ console.log('payload', payload);
95
+ }
96
+ async getEntityData(entityType, id, loggedInUser) {
107
97
  const user = await this.userRepository.findById(id);
108
98
  if (user) {
109
99
  const userRoleMappings = await this.userRoleMappingService.findByUserId(id);
@@ -113,7 +103,7 @@ let UserService = class UserService {
113
103
  for (const i in userRoleMappings) {
114
104
  const userRoleMapping = userRoleMappings[i];
115
105
  const roleId = userRoleMapping.role_id;
116
- const role = await this.roleRepo.findById(roleId);
106
+ const role = await super.getEntityData(global_constant_1.ENTITYTYPE_ROLE, roleId, loggedInUser);
117
107
  roles.push(role);
118
108
  }
119
109
  userDto.roles = roles;
@@ -122,8 +112,9 @@ let UserService = class UserService {
122
112
  }
123
113
  return null;
124
114
  }
125
- async updateUser(id, userDto, loggedInUserData) {
126
- const existingUser = await this.userRepository.findById(id);
115
+ async updateEntity(entityData, loggedInUserData) {
116
+ const userDto = entityData;
117
+ const existingUser = await this.userRepository.findById(entityData.id);
127
118
  if (!existingUser) {
128
119
  return { success: false, error: 'User not found' };
129
120
  }
@@ -139,7 +130,7 @@ let UserService = class UserService {
139
130
  }
140
131
  const updatedUserData = { ...userDto };
141
132
  delete updatedUserData.access;
142
- const savedData = await this.userRepository.updateUser(id, updatedUserData);
133
+ const savedData = await super.updateEntity(updatedUserData, loggedInUserData);
143
134
  if (userDto.access && userDto.access.length > 0) {
144
135
  if (loggedInUserData.level_type == 'ORG') {
145
136
  await this.userRoleMappingService.deleteByUserId(existingUser.id);
@@ -154,11 +145,12 @@ let UserService = class UserService {
154
145
  return { success: false, error: 'Invalid access level entry' };
155
146
  }
156
147
  for (const levelId of level_ids) {
157
- const userRoleMapping = new user_role_mapping_entity_1.UserRoleMapping(id, role_id);
148
+ const userRoleMapping = new user_role_mapping_entity_1.UserRoleMapping(savedData.id, role_id);
158
149
  userRoleMapping.level_type = level_type;
159
150
  userRoleMapping.level_id = String(levelId);
160
151
  userRoleMapping.appcode = app_code;
161
- userRoleMapping.enterprise_id = loggedInUserData.enterprise_id;
152
+ userRoleMapping.organization_id =
153
+ loggedInUserData?.organization_id || 0;
162
154
  insertPromises.push(this.userRoleMappingService.assignUserRole(userRoleMapping));
163
155
  }
164
156
  }
@@ -172,28 +164,28 @@ let UserService = class UserService {
172
164
  }
173
165
  return { success: true, data: savedData };
174
166
  }
175
- async findByEmailId(email_id, enterprise_id, getLastApp) {
176
- return await this.userRepository.findByEmailId(email_id, enterprise_id, getLastApp);
167
+ async findByEmailId(email_id, organization_id) {
168
+ return await this.userRepository.findByEmailId(email_id, organization_id);
177
169
  }
178
170
  async findByMobile(mobile, organization_id, appCode) {
179
171
  return await this.userRepository.findByMobile(mobile, organization_id, appCode);
180
172
  }
181
- async setDefaultLastAccess(userId, app_id) {
173
+ async setDefaultLastAccess(userId, appcode) {
182
174
  const user = await this.userRepository.findById(userId);
183
175
  if (!user) {
184
176
  throw new common_1.BadRequestException('User not found');
185
177
  }
186
- user.last_app_access_id = app_id;
178
+ user.last_app_access = appcode;
187
179
  await this.userRepository.saveUser(user);
188
180
  }
189
- async setLastLevelTypeAndId(userId, levelType, levelId, app_id) {
181
+ async setLastLevelTypeAndId(userId, levelType, levelId, appcode) {
190
182
  const user = await this.userRepository.findById(userId);
191
183
  if (!user) {
192
184
  throw new common_1.BadRequestException('User not found');
193
185
  }
194
186
  user.last_level_type = levelType;
195
187
  user.last_level_id = levelId;
196
- user.last_app_access_id = app_id;
188
+ user.last_app_access = appcode;
197
189
  await this.userRepository.saveUser(user);
198
190
  }
199
191
  async checkEmailExists(data) {
@@ -201,22 +193,22 @@ let UserService = class UserService {
201
193
  if (!email_id || !subdomain) {
202
194
  return { success: false, message: 'Email and Subdomain is required' };
203
195
  }
204
- let enterprise;
196
+ let organization;
205
197
  if (subdomain) {
206
- enterprise =
207
- await this.enterpriseRepository.findEnterpriseBySubdomain(subdomain);
208
- if (!enterprise) {
198
+ organization =
199
+ await this.organizationRepository.findOrganizationBySubdomain(subdomain);
200
+ if (!organization) {
209
201
  return {
210
202
  success: false,
211
203
  message: 'Organization not found.',
212
204
  };
213
205
  }
214
206
  }
215
- const user = await this.userRepository.findByEmailId(email_id, enterprise?.id);
216
- if (!user || (enterprise && user.enterprise_id !== enterprise.id)) {
207
+ const user = await this.userRepository.findByEmailId(email_id, organization?.id);
208
+ if (!user || (organization && user.organization_id !== organization.id)) {
217
209
  return {
218
210
  success: false,
219
- message: 'User not found in enterprise.',
211
+ message: 'User not found in organization.',
220
212
  };
221
213
  }
222
214
  if (user) {
@@ -233,19 +225,19 @@ let UserService = class UserService {
233
225
  };
234
226
  }
235
227
  }
236
- async find(options) {
237
- return await this.userRepository.find(options);
238
- }
239
228
  };
240
229
  exports.UserService = UserService;
241
230
  exports.UserService = UserService = __decorate([
242
231
  (0, common_1.Injectable)(),
243
232
  (0, action_decorator_1.ActionHandler)('User'),
233
+ __param(5, (0, common_1.Inject)('RoleService')),
234
+ __param(6, (0, common_1.Inject)('ListMasterService')),
244
235
  __metadata("design:paramtypes", [user_repository_1.UserRepository,
245
236
  user_role_mapping_service_1.UserRoleMappingService,
246
- role_repository_1.RoleRepository,
237
+ clockIDGenUtil_service_1.ClockIDGenService,
247
238
  config_1.ConfigService,
248
- enterprise_repository_1.EnterpriseRepository,
249
- reflection_helper_service_1.ReflectionHelper])
239
+ organization_repository_1.OrganizationRepository,
240
+ role_service_1.RoleService,
241
+ list_master_service_1.ListMasterService])
250
242
  ], UserService);
251
243
  //# sourceMappingURL=user.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/user.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiE;AACjE,uDAAiD;AACjD,mEAA+D;AAC/D,uEAA2E;AAE3E,2EAAqE;AACrE,iFAAqE;AACrE,2CAA+C;AAC/C,2FAA0F;AAC1F,oFAAgF;AAChF,yDAAoD;AAEpD,6FAA8F;AAC9F,uEAAmE;AACnE,mEAA+D;AAC/D,gGAAoF;AAI7E,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YACU,cAA8B,EAC9B,sBAA8C,EAC9C,QAAwB,EACxB,aAA4B,EACnB,oBAA0C,EAC1C,gBAAkC;QAL3C,mBAAc,GAAd,cAAc,CAAgB;QAC9B,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,aAAQ,GAAR,QAAQ,CAAgB;QACxB,kBAAa,GAAb,aAAa,CAAe;QACnB,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,qBAAgB,GAAhB,gBAAgB,CAAkB;QAIrD,cAAS,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QACvD,aAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;QAkGrD,SAAI,GAAW,aAAa,CAAC;IArG7B,CAAC;IAKD,KAAK,CAAC,UAAU,CACd,UAAyB,EACzB,YAAsB;QAEtB,MAAM,QAAQ,GAAG,UAAU,CAAC;QAE5B,IAAI,YAAY,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,aAAa,CACxD,QAAQ,CAAC,QAAQ,EACjB,YAAY,EAAE,aAAa,CAC5B,CAAC;QACF,IAAI,YAAY,EAAE,CAAC;YACjB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,K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UY,kCAAW;sBAAX,WAAW;IAFvB,IAAA,mBAAU,GAAE;IACZ,IAAA,gCAAa,EAAC,MAAM,CAAC;qCAGM,gCAAc;QACN,kDAAsB;QACpC,gCAAc;QACT,sBAAa;QACG,4CAAoB;QACxB,4CAAgB;GAP1C,WAAW,CAyUvB"}
1
+ {"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/user.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAA6C;AAC7C,2CAKwB;AACxB,gGAAmF;AAGnF,mEAA+D;AAC/D,oFAAgF;AAChF,0FAAkF;AAClF,uEAI2C;AAE3C,2EAAqE;AACrE,iFAAqE;AAGrE,2CAA+C;AAG/C,sFAAsF;AACtF,iGAAkG;AAGlG,2FAA0F;AAInF,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,+CAAiB;IAChD,YACU,cAA8B,EAC9B,sBAA8C,EACrC,iBAAoC,EAC7C,aAA4B,EACnB,sBAA8C,EAExC,WAAyC,EAEhE,iBAAqD;QAErD,KAAK,EAAE,CAAC;QAVA,mBAAc,GAAd,cAAc,CAAgB;QAC9B,2BAAsB,GAAtB,sBAAsB,CAAwB;QACrC,sBAAiB,GAAjB,iBAAiB,CAAmB;QAC7C,kBAAa,GAAb,aAAa,CAAe;QACnB,2BAAsB,GAAtB,sBAAsB,CAAwB;QAEvB,gBAAW,GAAX,WAAW,CAAa;QAE/C,sBAAiB,GAAjB,iBAAiB,CAAmB;QAKvD,cAAS,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QACvD,aAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;QA0FrD,SAAI,GAAW,aAAa,CAAC;IA7F7B,CAAC;IAKD,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAA6B,EAC7B,OAAuB;QAEvB,MAAM,QAAQ,GAAG,UAA2B,C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AC9B,sBAAa;QACK,gDAAsB;QAEV,0BAAW;QAE5B,uCAAiB;GAV5C,WAAW,CA6UvB"}
@@ -12,6 +12,7 @@ const typeorm_1 = require("@nestjs/typeorm");
12
12
  const user_entity_1 = require("./entity/user.entity");
13
13
  const user_service_1 = require("./service/user.service");
14
14
  const utils_module_1 = require("../../utils/utils.module");
15
+ const entity_module_1 = require("../meta/entity.module");
15
16
  const user_repository_1 = require("./repository/user.repository");
16
17
  const user_session_service_1 = require("./service/user-session.service");
17
18
  const user_session_entity_1 = require("./entity/user-session.entity");
@@ -29,6 +30,8 @@ const user_role_mapping_service_1 = require("./service/user-role-mapping.service
29
30
  const role_repository_1 = require("./repository/role.repository");
30
31
  const module_access_entity_1 = require("../module/entity/module-access.entity");
31
32
  const enterprise_module_1 = require("../enterprise/enterprise.module");
33
+ const listmaster_module_1 = require("../listmaster/listmaster.module");
34
+ const integration_module_1 = require("../integration/integration.module");
32
35
  let UserModule = class UserModule {
33
36
  };
34
37
  exports.UserModule = UserModule;
@@ -43,8 +46,11 @@ exports.UserModule = UserModule = __decorate([
43
46
  module_access_entity_1.ModuleAccess,
44
47
  ]),
45
48
  (0, common_1.forwardRef)(() => auth_module_1.AuthModule),
49
+ entity_module_1.EntityModule,
46
50
  utils_module_1.UtilsModule,
47
- (0, common_1.forwardRef)(() => enterprise_module_1.EnterpriseModule)
51
+ listmaster_module_1.ListMasterModule,
52
+ integration_module_1.IntegrationModule,
53
+ (0, common_1.forwardRef)(() => enterprise_module_1.EnterpriseModule),
48
54
  ],
49
55
  providers: [
50
56
  { provide: 'UserService', useClass: user_service_1.UserService },
@@ -65,7 +71,6 @@ exports.UserModule = UserModule = __decorate([
65
71
  user_role_mapping_service_1.UserRoleMappingService,
66
72
  role_repository_1.RoleRepository,
67
73
  login_service_1.LoginService,
68
- user_role_mapping_repository_1.UserRoleMappingRepository
69
74
  ],
70
75
  controllers: [login_controller_1.LoginController, user_controller_1.UserController],
71
76
  })
@@ -1 +1 @@
1
- {"version":3,"file":"user.module.js","sourceRoot":"","sources":["../../../src/module/user/user.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,sDAAgD;AAChD,yDAAqD;AACrD,2DAAuD;AAEvD,kEAA8D;AAC9D,yEAAoE;AACpE,sEAA2D;AAC3D,oEAAgE;AAChE,2DAAuD;AACvD,gFAA4E;AAC5E,qCAAyC;AACzC,qDAAiD;AACjD,kEAA8D;AAC9D,sDAA4C;AAC5C,yDAAqD;AACrD,gFAAoE;AACpE,4FAAsF;AACtF,mFAA6E;AAC7E,kEAA8D;AAC9D,gFAAqE;AACrE,uEAAmE;AAyC5D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAI,CAAA;AAAd,gCAAU;qBAAV,UAAU;IApCtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,sBAAQ;gBACR,iCAAW;gBACX,kBAAI;gBACJ,0CAAe;gBACf,mCAAY;aACb,CAAC;YACF,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,0BAAW;YACX,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;SACnC;QACD,SAAS,EAAE;YACT,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,0BAAW,EAAE;YACjD,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,0BAAW,EAAE;YACjD,gCAAc;YACd,yCAAkB;YAClB,4BAAY;YACZ,8CAAqB;YACrB,gBAAU;YACV,wDAAyB;YACzB,kDAAsB;YACtB,gCAAc;SACf;QACD,OAAO,EAAE;YACP,aAAa;YACb,yCAAkB;YAClB,aAAa;YACb,kDAAsB;YACtB,gCAAc;YACd,4BAAY;YACZ,wDAAyB;SAC1B;QACD,WAAW,EAAE,CAAC,kCAAe,EAAE,gCAAc,CAAC;KAC/C,CAAC;GACW,UAAU,CAAI"}
1
+ {"version":3,"file":"user.module.js","sourceRoot":"","sources":["../../../src/module/user/user.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,sDAAgD;AAChD,yDAAqD;AACrD,2DAAuD;AACvD,yDAAqD;AACrD,kEAA8D;AAC9D,yEAAoE;AACpE,sEAA2D;AAC3D,oEAAgE;AAChE,2DAAuD;AACvD,gFAA4E;AAC5E,qCAAyC;AACzC,qDAAiD;AACjD,kEAA8D;AAC9D,sDAA4C;AAC5C,yDAAqD;AACrD,gFAAoE;AACpE,4FAAsF;AACtF,mFAA6E;AAC7E,kEAA8D;AAC9D,gFAAqE;AACrE,uEAAmE;AACnE,uEAAmE;AACnE,0EAAsE;AAwC/D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAtCtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,sBAAQ;gBACR,iCAAW;gBACX,kBAAI;gBACJ,0CAAe;gBACf,mCAAY;aACb,CAAC;YACF,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,4BAAY;YACZ,0BAAW;YACX,oCAAgB;YAChB,sCAAiB;YACjB,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;SACnC;QACD,SAAS,EAAE;YACT,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,0BAAW,EAAE;YACjD,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,0BAAW,EAAE;YACjD,gCAAc;YACd,yCAAkB;YAClB,4BAAY;YACZ,8CAAqB;YACrB,gBAAU;YACV,wDAAyB;YACzB,kDAAsB;YACtB,gCAAc;SACf;QACD,OAAO,EAAE;YACP,aAAa;YACb,yCAAkB;YAClB,aAAa;YACb,kDAAsB;YACtB,gCAAc;YACd,4BAAY;SACb;QACD,WAAW,EAAE,CAAC,kCAAe,EAAE,gCAAc,CAAC;KAC/C,CAAC;GACW,UAAU,CAAG"}
@@ -13,7 +13,7 @@ export declare class ActionDataRepository extends EntityServiceImpl {
13
13
  constructor(actionDataRepo: Repository<ActionDataEntity>, TaskRepository: Repository<TaskDataEntity>, configService: ConfigService, workflowAutomationEngineService: WorkflowAutomationEngineService);
14
14
  saveActionData(action: any, loggedInUser: UserData, mapped_entity_id: any, mapped_entity_type: any): Promise<any>;
15
15
  updateActionStatus(loggedInUser: UserData, mapped_entity_type: string, mapped_entity_id: number, stage_id: number, action_id: number): Promise<any>;
16
- resubmitAction(loggedInUser: UserData, mapped_entity_type: string, mapped_entity_id: number, stage_id: number, action_id: number): Promise<{
16
+ resubmitAction(organization_id: number, mapped_entity_type: string, mapped_entity_id: number, stage_id: number, action_id: number): Promise<{
17
17
  message: string;
18
18
  revertedTo: ActionDataEntity;
19
19
  updated: ActionDataEntity;