rez_core 6.6.6 → 7.0.0

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 (1048) 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/.prettierrc +3 -3
  15. package/README.md +99 -99
  16. package/dist/app.controller.js.map +1 -1
  17. package/dist/app.module.js +7 -3
  18. package/dist/app.module.js.map +1 -1
  19. package/dist/constant/attribute.constant.d.ts +8 -0
  20. package/dist/constant/attribute.constant.js +14 -0
  21. package/dist/constant/attribute.constant.js.map +1 -0
  22. package/dist/constant/db-data-type.constant.d.ts +33 -0
  23. package/dist/constant/db-data-type.constant.js +119 -0
  24. package/dist/constant/db-data-type.constant.js.map +1 -0
  25. package/dist/constant/entity.constant.d.ts +4 -0
  26. package/dist/constant/entity.constant.js +9 -0
  27. package/dist/constant/entity.constant.js.map +1 -0
  28. package/dist/constant/status.constant.d.ts +4 -0
  29. package/dist/constant/status.constant.js +9 -0
  30. package/dist/constant/status.constant.js.map +1 -0
  31. package/dist/core.module.js +66 -38
  32. package/dist/core.module.js.map +1 -1
  33. package/dist/module/app_master/app-master.module.d.ts +2 -0
  34. package/dist/module/app_master/app-master.module.js +28 -0
  35. package/dist/module/app_master/app-master.module.js.map +1 -0
  36. package/dist/module/{meta → app_master}/controller/app-master.controller.d.ts +1 -0
  37. package/dist/module/{meta → app_master}/controller/app-master.controller.js +20 -1
  38. package/dist/module/app_master/controller/app-master.controller.js.map +1 -0
  39. package/dist/module/app_master/entity/app-master.entity.d.ts +17 -0
  40. package/dist/module/{meta → app_master}/entity/app-master.entity.js +30 -12
  41. package/dist/module/app_master/entity/app-master.entity.js.map +1 -0
  42. package/dist/module/{meta → app_master}/repository/app-master.repository.d.ts +4 -2
  43. package/dist/module/{meta → app_master}/repository/app-master.repository.js +17 -4
  44. package/dist/module/app_master/repository/app-master.repository.js.map +1 -0
  45. package/dist/module/{meta → app_master}/service/app-master.service.d.ts +7 -3
  46. package/dist/module/{meta → app_master}/service/app-master.service.js +12 -5
  47. package/dist/module/app_master/service/app-master.service.js.map +1 -0
  48. package/dist/module/auth/auth.module.d.ts +6 -1
  49. package/dist/module/auth/auth.module.js +28 -1
  50. package/dist/module/auth/auth.module.js.map +1 -1
  51. package/dist/module/auth/guards/role.guard.js +3 -3
  52. package/dist/module/auth/strategies/jwt.strategy.d.ts +6 -2
  53. package/dist/module/auth/strategies/jwt.strategy.js +18 -4
  54. package/dist/module/auth/strategies/jwt.strategy.js.map +1 -1
  55. package/dist/module/dashboard/controller/dashboard.controller.d.ts +6 -6
  56. package/dist/module/dashboard/dashboard.module.js +1 -1
  57. package/dist/module/dashboard/dashboard.module.js.map +1 -1
  58. package/dist/module/dashboard/entity/dashboard_page_data.entity.d.ts +0 -1
  59. package/dist/module/dashboard/entity/dashboard_page_data.entity.js +1 -6
  60. package/dist/module/dashboard/entity/dashboard_page_data.entity.js.map +1 -1
  61. package/dist/module/dashboard/entity/widget_master.entity.d.ts +0 -1
  62. package/dist/module/dashboard/entity/widget_master.entity.js +1 -6
  63. package/dist/module/dashboard/entity/widget_master.entity.js.map +1 -1
  64. package/dist/module/dashboard/service/dashboard.service.d.ts +6 -6
  65. package/dist/module/dashboard/service/dashboard.service.js +1 -2
  66. package/dist/module/dashboard/service/dashboard.service.js.map +1 -1
  67. package/dist/module/eav/controller/eav.controller.d.ts +21 -0
  68. package/dist/module/eav/controller/eav.controller.js +127 -0
  69. package/dist/module/eav/controller/eav.controller.js.map +1 -0
  70. package/dist/module/eav/dto/eav-operation.dto.d.ts +20 -0
  71. package/dist/module/eav/dto/eav-operation.dto.js +75 -0
  72. package/dist/module/eav/dto/eav-operation.dto.js.map +1 -0
  73. package/dist/module/eav/eav.module.d.ts +2 -0
  74. package/dist/module/eav/eav.module.js +84 -0
  75. package/dist/module/eav/eav.module.js.map +1 -0
  76. package/dist/module/eav/entity/eav-boolean.entity.d.ts +9 -0
  77. package/dist/module/eav/entity/eav-boolean.entity.js +48 -0
  78. package/dist/module/eav/entity/eav-boolean.entity.js.map +1 -0
  79. package/dist/module/eav/entity/eav-date.entity.d.ts +9 -0
  80. package/dist/module/eav/entity/eav-date.entity.js +48 -0
  81. package/dist/module/eav/entity/eav-date.entity.js.map +1 -0
  82. package/dist/module/eav/entity/eav-decimal.entity.d.ts +9 -0
  83. package/dist/module/eav/entity/eav-decimal.entity.js +48 -0
  84. package/dist/module/eav/entity/eav-decimal.entity.js.map +1 -0
  85. package/dist/module/eav/entity/eav-int.entity.d.ts +9 -0
  86. package/dist/module/eav/entity/eav-int.entity.js +48 -0
  87. package/dist/module/eav/entity/eav-int.entity.js.map +1 -0
  88. package/dist/module/eav/entity/eav-json.entity.d.ts +9 -0
  89. package/dist/module/eav/entity/eav-json.entity.js +48 -0
  90. package/dist/module/eav/entity/eav-json.entity.js.map +1 -0
  91. package/dist/module/eav/entity/eav-text.entity.d.ts +9 -0
  92. package/dist/module/eav/entity/eav-text.entity.js +48 -0
  93. package/dist/module/eav/entity/eav-text.entity.js.map +1 -0
  94. package/dist/module/eav/entity/eav-time.entity.d.ts +9 -0
  95. package/dist/module/eav/entity/eav-time.entity.js +48 -0
  96. package/dist/module/eav/entity/eav-time.entity.js.map +1 -0
  97. package/dist/module/eav/entity/eav-timestamp.entity.d.ts +9 -0
  98. package/dist/module/eav/entity/eav-timestamp.entity.js +48 -0
  99. package/dist/module/eav/entity/eav-timestamp.entity.js.map +1 -0
  100. package/dist/module/eav/entity/eav-varchar.entity.d.ts +9 -0
  101. package/dist/module/eav/entity/eav-varchar.entity.js +48 -0
  102. package/dist/module/eav/entity/eav-varchar.entity.js.map +1 -0
  103. package/dist/module/eav/interface/eav-strategy.interface.d.ts +8 -0
  104. package/dist/module/eav/interface/eav-strategy.interface.js +3 -0
  105. package/dist/module/eav/interface/eav-strategy.interface.js.map +1 -0
  106. package/dist/module/eav/repository/eav-boolean.repository.d.ts +13 -0
  107. package/dist/module/eav/repository/eav-boolean.repository.js +57 -0
  108. package/dist/module/eav/repository/eav-boolean.repository.js.map +1 -0
  109. package/dist/module/eav/repository/eav-date.repository.d.ts +13 -0
  110. package/dist/module/eav/repository/eav-date.repository.js +57 -0
  111. package/dist/module/eav/repository/eav-date.repository.js.map +1 -0
  112. package/dist/module/eav/repository/eav-decimal.repository.d.ts +13 -0
  113. package/dist/module/eav/repository/eav-decimal.repository.js +57 -0
  114. package/dist/module/eav/repository/eav-decimal.repository.js.map +1 -0
  115. package/dist/module/eav/repository/eav-int.repository.d.ts +13 -0
  116. package/dist/module/eav/repository/eav-int.repository.js +57 -0
  117. package/dist/module/eav/repository/eav-int.repository.js.map +1 -0
  118. package/dist/module/eav/repository/eav-json.repository.d.ts +13 -0
  119. package/dist/module/eav/repository/eav-json.repository.js +57 -0
  120. package/dist/module/eav/repository/eav-json.repository.js.map +1 -0
  121. package/dist/module/eav/repository/eav-text.repository.d.ts +13 -0
  122. package/dist/module/eav/repository/eav-text.repository.js +57 -0
  123. package/dist/module/eav/repository/eav-text.repository.js.map +1 -0
  124. package/dist/module/eav/repository/eav-time.repository.d.ts +13 -0
  125. package/dist/module/eav/repository/eav-time.repository.js +57 -0
  126. package/dist/module/eav/repository/eav-time.repository.js.map +1 -0
  127. package/dist/module/eav/repository/eav-timestamp.repository.d.ts +13 -0
  128. package/dist/module/eav/repository/eav-timestamp.repository.js +57 -0
  129. package/dist/module/eav/repository/eav-timestamp.repository.js.map +1 -0
  130. package/dist/module/eav/repository/eav-varchar.repository.d.ts +13 -0
  131. package/dist/module/eav/repository/eav-varchar.repository.js +57 -0
  132. package/dist/module/eav/repository/eav-varchar.repository.js.map +1 -0
  133. package/dist/module/eav/service/eav-boolean.service.d.ts +12 -0
  134. package/dist/module/eav/service/eav-boolean.service.js +59 -0
  135. package/dist/module/eav/service/eav-boolean.service.js.map +1 -0
  136. package/dist/module/eav/service/eav-date.service.d.ts +12 -0
  137. package/dist/module/eav/service/eav-date.service.js +59 -0
  138. package/dist/module/eav/service/eav-date.service.js.map +1 -0
  139. package/dist/module/eav/service/eav-decimal.service.d.ts +12 -0
  140. package/dist/module/eav/service/eav-decimal.service.js +59 -0
  141. package/dist/module/eav/service/eav-decimal.service.js.map +1 -0
  142. package/dist/module/eav/service/eav-factory.service.d.ts +26 -0
  143. package/dist/module/eav/service/eav-factory.service.js +81 -0
  144. package/dist/module/eav/service/eav-factory.service.js.map +1 -0
  145. package/dist/module/eav/service/eav-int.service.d.ts +12 -0
  146. package/dist/module/eav/service/eav-int.service.js +59 -0
  147. package/dist/module/eav/service/eav-int.service.js.map +1 -0
  148. package/dist/module/eav/service/eav-json.service.d.ts +12 -0
  149. package/dist/module/eav/service/eav-json.service.js +59 -0
  150. package/dist/module/eav/service/eav-json.service.js.map +1 -0
  151. package/dist/module/eav/service/eav-text.service.d.ts +12 -0
  152. package/dist/module/eav/service/eav-text.service.js +59 -0
  153. package/dist/module/eav/service/eav-text.service.js.map +1 -0
  154. package/dist/module/eav/service/eav-time.service.d.ts +12 -0
  155. package/dist/module/eav/service/eav-time.service.js +59 -0
  156. package/dist/module/eav/service/eav-time.service.js.map +1 -0
  157. package/dist/module/eav/service/eav-timestamp.service.d.ts +12 -0
  158. package/dist/module/eav/service/eav-timestamp.service.js +59 -0
  159. package/dist/module/eav/service/eav-timestamp.service.js.map +1 -0
  160. package/dist/module/eav/service/eav-varchar.service.d.ts +12 -0
  161. package/dist/module/eav/service/eav-varchar.service.js +59 -0
  162. package/dist/module/eav/service/eav-varchar.service.js.map +1 -0
  163. package/dist/module/eav/service/eav.service.d.ts +14 -0
  164. package/dist/module/eav/service/eav.service.js +65 -0
  165. package/dist/module/eav/service/eav.service.js.map +1 -0
  166. package/dist/module/enterprise/controller/enterprise.controller.d.ts +12 -0
  167. package/dist/module/enterprise/controller/enterprise.controller.js +57 -0
  168. package/dist/module/enterprise/controller/enterprise.controller.js.map +1 -0
  169. package/dist/module/enterprise/controller/meta.controller.d.ts +9 -0
  170. package/dist/module/enterprise/controller/meta.controller.js +43 -0
  171. package/dist/module/enterprise/controller/meta.controller.js.map +1 -0
  172. package/dist/module/enterprise/controller/organization.controller.d.ts +12 -4
  173. package/dist/module/enterprise/controller/organization.controller.js +68 -8
  174. package/dist/module/enterprise/controller/organization.controller.js.map +1 -1
  175. package/dist/module/enterprise/enterprise.module.js +10 -15
  176. package/dist/module/enterprise/enterprise.module.js.map +1 -1
  177. package/dist/module/enterprise/entity/enterprise.entity.d.ts +1 -3
  178. package/dist/module/enterprise/entity/enterprise.entity.js +4 -12
  179. package/dist/module/enterprise/entity/enterprise.entity.js.map +1 -1
  180. package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +6 -1
  181. package/dist/module/enterprise/entity/organization-app-mapping.entity.js +21 -4
  182. package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -1
  183. package/dist/module/enterprise/entity/organization.entity.d.ts +3 -17
  184. package/dist/module/enterprise/entity/organization.entity.js +11 -73
  185. package/dist/module/enterprise/entity/organization.entity.js.map +1 -1
  186. package/dist/module/enterprise/repository/enterprise.repository.d.ts +4 -2
  187. package/dist/module/enterprise/repository/enterprise.repository.js +19 -4
  188. package/dist/module/enterprise/repository/enterprise.repository.js.map +1 -1
  189. package/dist/module/enterprise/repository/school.repository.js +8 -8
  190. package/dist/module/enterprise/repository/school.repository.js.map +1 -1
  191. package/dist/module/enterprise/service/brand-profile.service.d.ts +0 -0
  192. package/dist/module/enterprise/service/brand-profile.service.js +1 -0
  193. package/dist/module/enterprise/service/brand-profile.service.js.map +1 -0
  194. package/dist/module/enterprise/service/brand.service.d.ts +0 -3
  195. package/dist/module/enterprise/service/brand.service.js +0 -17
  196. package/dist/module/enterprise/service/brand.service.js.map +1 -1
  197. package/dist/module/enterprise/service/enterprise.service.d.ts +2 -2
  198. package/dist/module/enterprise/service/enterprise.service.js +6 -4
  199. package/dist/module/enterprise/service/enterprise.service.js.map +1 -1
  200. package/dist/module/enterprise/service/organization.service.d.ts +13 -5
  201. package/dist/module/enterprise/service/organization.service.js +177 -29
  202. package/dist/module/enterprise/service/organization.service.js.map +1 -1
  203. package/dist/module/enterprise/service/populate-meta.service.d.ts +9 -0
  204. package/dist/module/{meta → enterprise}/service/populate-meta.service.js +24 -43
  205. package/dist/module/enterprise/service/populate-meta.service.js.map +1 -0
  206. package/dist/module/enterprise/service/school.service.d.ts +0 -0
  207. package/dist/module/enterprise/service/school.service.js +1 -0
  208. package/dist/module/enterprise/service/school.service.js.map +1 -0
  209. package/dist/module/entity_json/controller/entity_json.controller.d.ts +2 -5
  210. package/dist/module/entity_json/controller/entity_json.controller.js +7 -21
  211. package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -1
  212. package/dist/module/entity_json/service/entity_json.service.d.ts +10 -2
  213. package/dist/module/entity_json/service/entity_json.service.js +102 -95
  214. package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
  215. package/dist/module/export/service/export.service.js +5 -0
  216. package/dist/module/export/service/export.service.js.map +1 -1
  217. package/dist/module/filter/controller/filter.controller.d.ts +1 -12
  218. package/dist/module/filter/controller/filter.controller.js +3 -2
  219. package/dist/module/filter/controller/filter.controller.js.map +1 -1
  220. package/dist/module/filter/dto/filter-request.dto.d.ts +1 -0
  221. package/dist/module/filter/entity/saved-filter-detail.entity.d.ts +0 -1
  222. package/dist/module/filter/entity/saved-filter-detail.entity.js +1 -7
  223. package/dist/module/filter/entity/saved-filter-detail.entity.js.map +1 -1
  224. package/dist/module/filter/entity/saved-filter-master.entity.d.ts +0 -1
  225. package/dist/module/filter/entity/saved-filter-master.entity.js +1 -7
  226. package/dist/module/filter/entity/saved-filter-master.entity.js.map +1 -1
  227. package/dist/module/filter/filter.module.js +2 -11
  228. package/dist/module/filter/filter.module.js.map +1 -1
  229. package/dist/module/filter/repository/saved-filter.repository.js +2 -4
  230. package/dist/module/filter/repository/saved-filter.repository.js.map +1 -1
  231. package/dist/module/filter/service/filter.service.d.ts +5 -38
  232. package/dist/module/filter/service/filter.service.js +134 -88
  233. package/dist/module/filter/service/filter.service.js.map +1 -1
  234. package/dist/module/filter/service/saved-filter.service.d.ts +2 -3
  235. package/dist/module/filter/service/saved-filter.service.js +18 -15
  236. package/dist/module/filter/service/saved-filter.service.js.map +1 -1
  237. package/dist/module/integration/examples/usage.example.js +9 -9
  238. package/dist/module/integration/service/integration.service.d.ts +1 -6
  239. package/dist/module/integration/service/integration.service.js +4 -18
  240. package/dist/module/integration/service/integration.service.js.map +1 -1
  241. package/dist/module/integration/service/oauth.service.js +0 -2
  242. package/dist/module/integration/service/oauth.service.js.map +1 -1
  243. package/dist/module/integration/service/wrapper.service.js +0 -1
  244. package/dist/module/integration/service/wrapper.service.js.map +1 -1
  245. package/dist/module/integration/strategies/email/gmail-api.strategy.js +7 -23
  246. package/dist/module/integration/strategies/email/gmail-api.strategy.js.map +1 -1
  247. package/dist/module/integration/strategies/email/sendgrid-api.strategy.js +5 -8
  248. package/dist/module/integration/strategies/email/sendgrid-api.strategy.js.map +1 -1
  249. package/dist/module/layout/controller/layout.controller.d.ts +1 -3
  250. package/dist/module/layout/controller/layout.controller.js +3 -7
  251. package/dist/module/layout/controller/layout.controller.js.map +1 -1
  252. package/dist/module/layout/entity/header-items.entity.js +1 -1
  253. package/dist/module/layout/entity/header-section.entity.d.ts +0 -2
  254. package/dist/module/layout/entity/header-section.entity.js +1 -9
  255. package/dist/module/layout/entity/header-section.entity.js.map +1 -1
  256. package/dist/module/layout/layout.module.js +1 -2
  257. package/dist/module/layout/layout.module.js.map +1 -1
  258. package/dist/module/layout/repository/header-section.repository.d.ts +0 -1
  259. package/dist/module/layout/repository/header-section.repository.js +0 -5
  260. package/dist/module/layout/repository/header-section.repository.js.map +1 -1
  261. package/dist/module/layout/service/header-section.service.d.ts +1 -1
  262. package/dist/module/layout/service/header-section.service.js +1 -1
  263. package/dist/module/layout/service/header-section.service.js.map +1 -1
  264. package/dist/module/linked_attributes/controller/linked_attributes.controller.d.ts +1 -0
  265. package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +2 -2
  266. package/dist/module/linked_attributes/service/linked_attributes.service.js +3 -4
  267. package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -1
  268. package/dist/module/listmaster/controller/list-master.controller.d.ts +0 -1
  269. package/dist/module/listmaster/controller/list-master.controller.js +0 -19
  270. package/dist/module/listmaster/controller/list-master.controller.js.map +1 -1
  271. package/dist/module/listmaster/entity/list-master-items.entity.d.ts +0 -4
  272. package/dist/module/listmaster/entity/list-master-items.entity.js +2 -20
  273. package/dist/module/listmaster/entity/list-master-items.entity.js.map +1 -1
  274. package/dist/module/listmaster/entity/list-master.entity.d.ts +1 -4
  275. package/dist/module/listmaster/entity/list-master.entity.js +5 -19
  276. package/dist/module/listmaster/entity/list-master.entity.js.map +1 -1
  277. package/dist/module/listmaster/repository/list-master-items.repository.d.ts +2 -2
  278. package/dist/module/listmaster/repository/list-master-items.repository.js +68 -25
  279. package/dist/module/listmaster/repository/list-master-items.repository.js.map +1 -1
  280. package/dist/module/listmaster/service/list-master-item.service.js +129 -48
  281. package/dist/module/listmaster/service/list-master-item.service.js.map +1 -1
  282. package/dist/module/listmaster/service/list-master.service.d.ts +16 -12
  283. package/dist/module/listmaster/service/list-master.service.js +228 -135
  284. package/dist/module/listmaster/service/list-master.service.js.map +1 -1
  285. package/dist/module/mapper/entity/field-lovs.entity.d.ts +0 -1
  286. package/dist/module/mapper/entity/field-lovs.entity.js +1 -6
  287. package/dist/module/mapper/entity/field-lovs.entity.js.map +1 -1
  288. package/dist/module/mapper/entity/field-mapper.entity.d.ts +0 -1
  289. package/dist/module/mapper/entity/field-mapper.entity.js +1 -6
  290. package/dist/module/mapper/entity/field-mapper.entity.js.map +1 -1
  291. package/dist/module/mapper/entity/mapper.entity.d.ts +0 -2
  292. package/dist/module/mapper/entity/mapper.entity.js +1 -10
  293. package/dist/module/mapper/entity/mapper.entity.js.map +1 -1
  294. package/dist/module/mapper/service/field-mapper.service.js +0 -1
  295. package/dist/module/mapper/service/field-mapper.service.js.map +1 -1
  296. package/dist/module/master/controller/master.controller.d.ts +1 -3
  297. package/dist/module/master/controller/master.controller.js +4 -6
  298. package/dist/module/master/controller/master.controller.js.map +1 -1
  299. package/dist/module/master/service/master.service.d.ts +1 -1
  300. package/dist/module/master/service/master.service.js +30 -44
  301. package/dist/module/master/service/master.service.js.map +1 -1
  302. package/dist/module/meta/controller/attribute-master.controller.d.ts +3 -8
  303. package/dist/module/meta/controller/attribute-master.controller.js +5 -19
  304. package/dist/module/meta/controller/attribute-master.controller.js.map +1 -1
  305. package/dist/module/meta/controller/entity-dynamic.controller.js +6 -3
  306. package/dist/module/meta/controller/entity-dynamic.controller.js.map +1 -1
  307. package/dist/module/meta/controller/entity-master.controller.js +1 -0
  308. package/dist/module/meta/controller/entity-master.controller.js.map +1 -1
  309. package/dist/module/meta/controller/entity.controller.js +3 -3
  310. package/dist/module/meta/controller/entity.controller.js.map +1 -1
  311. package/dist/module/meta/controller/entity.public.controller.js +1 -0
  312. package/dist/module/meta/controller/entity.public.controller.js.map +1 -1
  313. package/dist/module/meta/controller/media.controller.d.ts +0 -6
  314. package/dist/module/meta/controller/media.controller.js +0 -27
  315. package/dist/module/meta/controller/media.controller.js.map +1 -1
  316. package/dist/module/meta/controller/meta.controller.d.ts +1 -6
  317. package/dist/module/meta/controller/meta.controller.js +2 -19
  318. package/dist/module/meta/controller/meta.controller.js.map +1 -1
  319. package/dist/module/meta/entity/attribute-master.entity.d.ts +12 -14
  320. package/dist/module/meta/entity/attribute-master.entity.js +41 -77
  321. package/dist/module/meta/entity/attribute-master.entity.js.map +1 -1
  322. package/dist/module/meta/entity/base-entity.entity.d.ts +6 -7
  323. package/dist/module/meta/entity/base-entity.entity.js +24 -47
  324. package/dist/module/meta/entity/base-entity.entity.js.map +1 -1
  325. package/dist/module/meta/entity/dynamic.entity.d.ts +3 -0
  326. package/dist/module/meta/entity/dynamic.entity.js +18 -0
  327. package/dist/module/meta/entity/dynamic.entity.js.map +1 -0
  328. package/dist/module/meta/entity/entity-master.entity.d.ts +6 -9
  329. package/dist/module/meta/entity/entity-master.entity.js +21 -66
  330. package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
  331. package/dist/module/meta/entity/entity-relation-data.entity.d.ts +0 -1
  332. package/dist/module/meta/entity/entity-relation-data.entity.js +1 -7
  333. package/dist/module/meta/entity/entity-relation-data.entity.js.map +1 -1
  334. package/dist/module/meta/entity/entity-relation.entity.d.ts +0 -1
  335. package/dist/module/meta/entity/entity-relation.entity.js +1 -7
  336. package/dist/module/meta/entity/entity-relation.entity.js.map +1 -1
  337. package/dist/module/meta/entity/entity-table-column.entity.d.ts +0 -1
  338. package/dist/module/meta/entity/entity-table-column.entity.js +1 -7
  339. package/dist/module/meta/entity/entity-table-column.entity.js.map +1 -1
  340. package/dist/module/meta/entity/entity-table.entity.d.ts +0 -1
  341. package/dist/module/meta/entity/entity-table.entity.js +1 -7
  342. package/dist/module/meta/entity/entity-table.entity.js.map +1 -1
  343. package/dist/module/meta/entity/media-data.entity.d.ts +0 -2
  344. package/dist/module/meta/entity/media-data.entity.js +0 -8
  345. package/dist/module/meta/entity/media-data.entity.js.map +1 -1
  346. package/dist/module/meta/entity/preference.entity.d.ts +0 -1
  347. package/dist/module/meta/entity/preference.entity.js +1 -7
  348. package/dist/module/meta/entity/preference.entity.js.map +1 -1
  349. package/dist/module/meta/entity/view-master.entity.d.ts +0 -1
  350. package/dist/module/meta/entity/view-master.entity.js +1 -7
  351. package/dist/module/meta/entity/view-master.entity.js.map +1 -1
  352. package/dist/module/meta/entity.module.js +11 -19
  353. package/dist/module/meta/entity.module.js.map +1 -1
  354. package/dist/module/meta/repository/attribute-master.repository.d.ts +8 -2
  355. package/dist/module/meta/repository/attribute-master.repository.js +41 -15
  356. package/dist/module/meta/repository/attribute-master.repository.js.map +1 -1
  357. package/dist/module/meta/repository/entity-master.repository.js +1 -1
  358. package/dist/module/meta/repository/entity-master.repository.js.map +1 -1
  359. package/dist/module/meta/repository/entity-relation.repository.d.ts +1 -0
  360. package/dist/module/meta/repository/entity-relation.repository.js +10 -0
  361. package/dist/module/meta/repository/entity-relation.repository.js.map +1 -1
  362. package/dist/module/meta/service/attribute-master.service.d.ts +6 -6
  363. package/dist/module/meta/service/attribute-master.service.js +74 -49
  364. package/dist/module/meta/service/attribute-master.service.js.map +1 -1
  365. package/dist/module/meta/service/entity-dynamic.service.d.ts +12 -13
  366. package/dist/module/meta/service/entity-dynamic.service.js +215 -80
  367. package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
  368. package/dist/module/meta/service/entity-master.service.d.ts +10 -1
  369. package/dist/module/meta/service/entity-master.service.js +80 -3
  370. package/dist/module/meta/service/entity-master.service.js.map +1 -1
  371. package/dist/module/meta/service/entity-relation.service.d.ts +6 -5
  372. package/dist/module/meta/service/entity-relation.service.js +7 -10
  373. package/dist/module/meta/service/entity-relation.service.js.map +1 -1
  374. package/dist/module/meta/service/entity-service-impl.service.d.ts +3 -3
  375. package/dist/module/meta/service/entity-service-impl.service.js +14 -18
  376. package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
  377. package/dist/module/meta/service/entity-table.service.d.ts +4 -5
  378. package/dist/module/meta/service/entity-table.service.js +24 -45
  379. package/dist/module/meta/service/entity-table.service.js.map +1 -1
  380. package/dist/module/meta/service/entity-validation.service.d.ts +1 -3
  381. package/dist/module/meta/service/entity-validation.service.js +5 -34
  382. package/dist/module/meta/service/entity-validation.service.js.map +1 -1
  383. package/dist/module/meta/service/entity.service.d.ts +1 -1
  384. package/dist/module/meta/service/media-data.service.d.ts +0 -4
  385. package/dist/module/meta/service/media-data.service.js +0 -129
  386. package/dist/module/meta/service/media-data.service.js.map +1 -1
  387. package/dist/module/meta/service/resolver.service.d.ts +1 -1
  388. package/dist/module/meta/service/resolver.service.js +55 -95
  389. package/dist/module/meta/service/resolver.service.js.map +1 -1
  390. package/dist/module/module/controller/menu.controller.d.ts +6 -1
  391. package/dist/module/module/controller/menu.controller.js +20 -2
  392. package/dist/module/module/controller/menu.controller.js.map +1 -1
  393. package/dist/module/module/controller/module-access.controller.d.ts +3 -4
  394. package/dist/module/module/controller/module-access.controller.js +13 -8
  395. package/dist/module/module/controller/module-access.controller.js.map +1 -1
  396. package/dist/module/module/entity/menu.entity.d.ts +6 -3
  397. package/dist/module/module/entity/menu.entity.js +19 -10
  398. package/dist/module/module/entity/menu.entity.js.map +1 -1
  399. package/dist/module/module/entity/module-access.entity.d.ts +15 -1
  400. package/dist/module/module/entity/module-access.entity.js +49 -3
  401. package/dist/module/module/entity/module-access.entity.js.map +1 -1
  402. package/dist/module/module/entity/module-action.entity.d.ts +4 -2
  403. package/dist/module/module/entity/module-action.entity.js +11 -6
  404. package/dist/module/module/entity/module-action.entity.js.map +1 -1
  405. package/dist/module/module/entity/module.entity.d.ts +3 -5
  406. package/dist/module/module/entity/module.entity.js +8 -18
  407. package/dist/module/module/entity/module.entity.js.map +1 -1
  408. package/dist/module/module/module.module.d.ts +1 -1
  409. package/dist/module/module/module.module.js +7 -7
  410. package/dist/module/module/module.module.js.map +1 -1
  411. package/dist/module/module/repository/menu.repository.d.ts +3 -3
  412. package/dist/module/module/repository/menu.repository.js +40 -29
  413. package/dist/module/module/repository/menu.repository.js.map +1 -1
  414. package/dist/module/module/repository/module-access.repository.d.ts +6 -6
  415. package/dist/module/module/repository/module-access.repository.js +100 -50
  416. package/dist/module/module/repository/module-access.repository.js.map +1 -1
  417. package/dist/module/module/service/menu.service.d.ts +2 -4
  418. package/dist/module/module/service/menu.service.js +7 -10
  419. package/dist/module/module/service/menu.service.js.map +1 -1
  420. package/dist/module/module/service/module-access.service.d.ts +7 -10
  421. package/dist/module/module/service/module-access.service.js +22 -24
  422. package/dist/module/module/service/module-access.service.js.map +1 -1
  423. package/dist/module/module/service/module-import.service.d.ts +18 -0
  424. package/dist/module/module/service/module-import.service.js +203 -0
  425. package/dist/module/module/service/module-import.service.js.map +1 -0
  426. package/dist/module/notification/entity/notification.entity.d.ts +17 -2
  427. package/dist/module/notification/entity/notification.entity.js +68 -2
  428. package/dist/module/notification/entity/notification.entity.js.map +1 -1
  429. package/dist/module/notification/notification.module.js +3 -6
  430. package/dist/module/notification/notification.module.js.map +1 -1
  431. package/dist/module/notification/service/email.service.d.ts +1 -0
  432. package/dist/module/notification/service/email.service.js +14 -0
  433. package/dist/module/notification/service/email.service.js.map +1 -1
  434. package/dist/module/notification/service/notification.service.d.ts +1 -5
  435. package/dist/module/notification/service/notification.service.js +41 -31
  436. package/dist/module/notification/service/notification.service.js.map +1 -1
  437. package/dist/module/notification/service/otp.service.d.ts +2 -2
  438. package/dist/module/notification/service/otp.service.js +4 -5
  439. package/dist/module/notification/service/otp.service.js.map +1 -1
  440. package/dist/module/preference_master/entity/preference.entity.d.ts +9 -0
  441. package/dist/module/preference_master/entity/preference.entity.js +48 -0
  442. package/dist/module/preference_master/entity/preference.entity.js.map +1 -0
  443. package/dist/module/preference_master/preference.service.d.ts +8 -0
  444. package/dist/module/preference_master/preference.service.js +31 -0
  445. package/dist/module/preference_master/preference.service.js.map +1 -0
  446. package/dist/module/preference_master/repo/preference.repository.d.ts +8 -0
  447. package/dist/module/preference_master/repo/preference.repository.js +48 -0
  448. package/dist/module/preference_master/repo/preference.repository.js.map +1 -0
  449. package/dist/module/user/controller/login.controller.d.ts +1 -3
  450. package/dist/module/user/controller/login.controller.js +20 -24
  451. package/dist/module/user/controller/login.controller.js.map +1 -1
  452. package/dist/module/user/controller/user.controller.d.ts +0 -2
  453. package/dist/module/user/controller/user.controller.js +0 -13
  454. package/dist/module/user/controller/user.controller.js.map +1 -1
  455. package/dist/module/user/dto/create-user.dto.d.ts +6 -3
  456. package/dist/module/user/dto/create-user.dto.js +17 -11
  457. package/dist/module/user/dto/create-user.dto.js.map +1 -1
  458. package/dist/module/user/entity/role.entity.d.ts +18 -6
  459. package/dist/module/user/entity/role.entity.js +64 -19
  460. package/dist/module/user/entity/role.entity.js.map +1 -1
  461. package/dist/module/user/entity/user-role-mapping.entity.d.ts +10 -0
  462. package/dist/module/user/entity/user-role-mapping.entity.js +33 -1
  463. package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
  464. package/dist/module/user/entity/user-session.entity.d.ts +0 -2
  465. package/dist/module/user/entity/user-session.entity.js +2 -20
  466. package/dist/module/user/entity/user-session.entity.js.map +1 -1
  467. package/dist/module/user/entity/user.entity.d.ts +17 -5
  468. package/dist/module/user/entity/user.entity.js +61 -15
  469. package/dist/module/user/entity/user.entity.js.map +1 -1
  470. package/dist/module/user/repository/role.repository.d.ts +7 -2
  471. package/dist/module/user/repository/role.repository.js +23 -8
  472. package/dist/module/user/repository/role.repository.js.map +1 -1
  473. package/dist/module/user/repository/user-role-mapping.repository.d.ts +1 -0
  474. package/dist/module/user/repository/user-role-mapping.repository.js +3 -0
  475. package/dist/module/user/repository/user-role-mapping.repository.js.map +1 -1
  476. package/dist/module/user/repository/user.repository.d.ts +5 -2
  477. package/dist/module/user/repository/user.repository.js +26 -7
  478. package/dist/module/user/repository/user.repository.js.map +1 -1
  479. package/dist/module/user/repository/userSession.repository.d.ts +1 -0
  480. package/dist/module/user/repository/userSession.repository.js +3 -0
  481. package/dist/module/user/repository/userSession.repository.js.map +1 -1
  482. package/dist/module/user/service/login.service.d.ts +3 -5
  483. package/dist/module/user/service/login.service.js +43 -42
  484. package/dist/module/user/service/login.service.js.map +1 -1
  485. package/dist/module/user/service/role.service.d.ts +24 -11
  486. package/dist/module/user/service/role.service.js +54 -41
  487. package/dist/module/user/service/role.service.js.map +1 -1
  488. package/dist/module/user/service/user-role-mapping.service.d.ts +5 -0
  489. package/dist/module/user/service/user-role-mapping.service.js +9 -0
  490. package/dist/module/user/service/user-role-mapping.service.js.map +1 -1
  491. package/dist/module/user/service/user-session.service.d.ts +3 -4
  492. package/dist/module/user/service/user-session.service.js +10 -12
  493. package/dist/module/user/service/user-session.service.js.map +1 -1
  494. package/dist/module/user/service/user.service.d.ts +33 -22
  495. package/dist/module/user/service/user.service.js +66 -58
  496. package/dist/module/user/service/user.service.js.map +1 -1
  497. package/dist/module/user/user.module.js +2 -7
  498. package/dist/module/user/user.module.js.map +1 -1
  499. package/dist/module/workflow/controller/activity-log.controller.d.ts +5 -6
  500. package/dist/module/workflow/entity/action-category.entity.d.ts +0 -1
  501. package/dist/module/workflow/entity/action-category.entity.js +1 -7
  502. package/dist/module/workflow/entity/action-category.entity.js.map +1 -1
  503. package/dist/module/workflow/entity/action-data.entity.d.ts +0 -1
  504. package/dist/module/workflow/entity/action-data.entity.js +1 -6
  505. package/dist/module/workflow/entity/action-data.entity.js.map +1 -1
  506. package/dist/module/workflow/entity/action-resources-mapping.entity.d.ts +0 -1
  507. package/dist/module/workflow/entity/action-resources-mapping.entity.js +1 -7
  508. package/dist/module/workflow/entity/action-resources-mapping.entity.js.map +1 -1
  509. package/dist/module/workflow/entity/action-template-mapping.entity.d.ts +0 -1
  510. package/dist/module/workflow/entity/action-template-mapping.entity.js +1 -7
  511. package/dist/module/workflow/entity/action-template-mapping.entity.js.map +1 -1
  512. package/dist/module/workflow/entity/action.entity.d.ts +0 -1
  513. package/dist/module/workflow/entity/action.entity.js +1 -7
  514. package/dist/module/workflow/entity/action.entity.js.map +1 -1
  515. package/dist/module/workflow/entity/activity-log.entity.d.ts +0 -1
  516. package/dist/module/workflow/entity/activity-log.entity.js +1 -6
  517. package/dist/module/workflow/entity/activity-log.entity.js.map +1 -1
  518. package/dist/module/workflow/entity/comm-template.entity.d.ts +0 -1
  519. package/dist/module/workflow/entity/comm-template.entity.js +1 -7
  520. package/dist/module/workflow/entity/comm-template.entity.js.map +1 -1
  521. package/dist/module/workflow/entity/entity-modification.entity.d.ts +0 -1
  522. package/dist/module/workflow/entity/entity-modification.entity.js +1 -7
  523. package/dist/module/workflow/entity/entity-modification.entity.js.map +1 -1
  524. package/dist/module/workflow/entity/form.entity.d.ts +0 -1
  525. package/dist/module/workflow/entity/form.entity.js +1 -6
  526. package/dist/module/workflow/entity/form.entity.js.map +1 -1
  527. package/dist/module/workflow/entity/stage-action-mapping.entity.d.ts +0 -1
  528. package/dist/module/workflow/entity/stage-action-mapping.entity.js +1 -7
  529. package/dist/module/workflow/entity/stage-action-mapping.entity.js.map +1 -1
  530. package/dist/module/workflow/entity/stage-group.entity.d.ts +0 -1
  531. package/dist/module/workflow/entity/stage-group.entity.js +1 -7
  532. package/dist/module/workflow/entity/stage-group.entity.js.map +1 -1
  533. package/dist/module/workflow/entity/stage-movement-data.entity.d.ts +0 -1
  534. package/dist/module/workflow/entity/stage-movement-data.entity.js +1 -7
  535. package/dist/module/workflow/entity/stage-movement-data.entity.js.map +1 -1
  536. package/dist/module/workflow/entity/stage.entity.d.ts +0 -1
  537. package/dist/module/workflow/entity/stage.entity.js +1 -7
  538. package/dist/module/workflow/entity/stage.entity.js.map +1 -1
  539. package/dist/module/workflow/entity/task-data.entity.d.ts +0 -1
  540. package/dist/module/workflow/entity/task-data.entity.js +1 -6
  541. package/dist/module/workflow/entity/task-data.entity.js.map +1 -1
  542. package/dist/module/workflow/entity/workflow-data.entity.d.ts +0 -1
  543. package/dist/module/workflow/entity/workflow-data.entity.js +1 -10
  544. package/dist/module/workflow/entity/workflow-data.entity.js.map +1 -1
  545. package/dist/module/workflow/entity/workflow.entity.d.ts +0 -1
  546. package/dist/module/workflow/entity/workflow.entity.js +1 -7
  547. package/dist/module/workflow/entity/workflow.entity.js.map +1 -1
  548. package/dist/module/workflow/repository/action-data.repository.d.ts +1 -1
  549. package/dist/module/workflow/repository/action-data.repository.js +9 -17
  550. package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
  551. package/dist/module/workflow/repository/action.repository.d.ts +1 -1
  552. package/dist/module/workflow/repository/action.repository.js +12 -12
  553. package/dist/module/workflow/repository/action.repository.js.map +1 -1
  554. package/dist/module/workflow/repository/activity-log.repository.d.ts +5 -6
  555. package/dist/module/workflow/repository/comm-template.repository.js +2 -2
  556. package/dist/module/workflow/repository/comm-template.repository.js.map +1 -1
  557. package/dist/module/workflow/repository/form-master.repository.d.ts +1 -1
  558. package/dist/module/workflow/repository/form-master.repository.js +2 -2
  559. package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
  560. package/dist/module/workflow/repository/stage-group.repository.d.ts +6 -6
  561. package/dist/module/workflow/repository/stage.repository.d.ts +5 -6
  562. package/dist/module/workflow/repository/stage.repository.js +8 -8
  563. package/dist/module/workflow/repository/task.repository.js +5 -5
  564. package/dist/module/workflow/repository/task.repository.js.map +1 -1
  565. package/dist/module/workflow/repository/workflow.repository.js +1 -1
  566. package/dist/module/workflow/repository/workflow.repository.js.map +1 -1
  567. package/dist/module/workflow/service/action-data.service.js +1 -2
  568. package/dist/module/workflow/service/action-data.service.js.map +1 -1
  569. package/dist/module/workflow/service/action-template-mapping.service.js +2 -2
  570. package/dist/module/workflow/service/action.service.js +15 -17
  571. package/dist/module/workflow/service/action.service.js.map +1 -1
  572. package/dist/module/workflow/service/activity-log.service.d.ts +5 -6
  573. package/dist/module/workflow/service/comm-template.service.js +0 -2
  574. package/dist/module/workflow/service/comm-template.service.js.map +1 -1
  575. package/dist/module/workflow/service/entity-modification.service.js +2 -3
  576. package/dist/module/workflow/service/entity-modification.service.js.map +1 -1
  577. package/dist/module/workflow/service/form-master.service.js +2 -2
  578. package/dist/module/workflow/service/form-master.service.js.map +1 -1
  579. package/dist/module/workflow/service/populate-workflow.service.d.ts +1 -1
  580. package/dist/module/workflow/service/populate-workflow.service.js +1 -6
  581. package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
  582. package/dist/module/workflow/service/task.service.js +10 -13
  583. package/dist/module/workflow/service/task.service.js.map +1 -1
  584. package/dist/module/workflow/service/workflow-meta.service.js +2 -7
  585. package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
  586. package/dist/module/workflow/service/workflow.service.js +2 -2
  587. package/dist/module/workflow/service/workflow.service.js.map +1 -1
  588. package/dist/module/workflow/workflow.module.js +2 -0
  589. package/dist/module/workflow/workflow.module.js.map +1 -1
  590. package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +1 -3
  591. package/dist/module/workflow-automation/entity/workflow-automation.entity.js +1 -9
  592. package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -1
  593. package/dist/module/workflow-automation/service/schedule-handler.service.js +11 -12
  594. package/dist/module/workflow-automation/service/schedule-handler.service.js.map +1 -1
  595. package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +7 -9
  596. package/dist/module/workflow-automation/service/workflow-automation.service.js +18 -15
  597. package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
  598. package/dist/module/workflow-automation/workflow-automation.module.js +3 -1
  599. package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
  600. package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.d.ts +1 -2
  601. package/dist/module/workflow-schedule/processors/schedule.processor.js +5 -9
  602. package/dist/module/workflow-schedule/processors/schedule.processor.js.map +1 -1
  603. package/dist/module/workflow-schedule/service/workflow-schedule.service.js +4 -13
  604. package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -1
  605. package/dist/table.config.d.ts +4 -12
  606. package/dist/table.config.js +21 -3
  607. package/dist/table.config.js.map +1 -1
  608. package/dist/tsconfig.build.tsbuildinfo +1 -1
  609. package/dist/utils/service/reflection-helper.service.js +2 -2
  610. package/docs/modules/event-driven-integration-design.md +91 -91
  611. package/docs/modules/integration.md +250 -250
  612. package/eslint.config.mjs +34 -34
  613. package/nest-cli.json +14 -14
  614. package/package.json +128 -125
  615. package/server.log +850 -0
  616. package/src/app.controller.ts +12 -13
  617. package/src/app.module.ts +72 -68
  618. package/src/app.service.ts +8 -8
  619. package/src/config/bull.config.ts +69 -69
  620. package/src/config/config.module.ts +17 -17
  621. package/src/config/database.config.ts +48 -48
  622. package/src/constant/attribute.constant.ts +9 -0
  623. package/src/constant/db-data-type.constant.ts +160 -0
  624. package/src/constant/entity.constant.ts +4 -0
  625. package/src/constant/global.constant.ts +67 -67
  626. package/src/constant/status.constant.ts +4 -0
  627. package/src/core.module.ts +111 -94
  628. package/src/decorators/roles.decorator.ts +7 -7
  629. package/src/dtos/response.dto.ts +6 -6
  630. package/src/dtos/response.ts +5 -5
  631. package/src/index.ts +1 -1
  632. package/src/module/app_master/app-master.module.ts +15 -0
  633. package/src/module/{meta → app_master}/controller/app-master.controller.ts +56 -38
  634. package/src/module/{meta → app_master}/entity/app-master.entity.ts +50 -37
  635. package/src/module/app_master/repository/app-master.repository.ts +38 -0
  636. package/src/module/{meta → app_master}/service/app-master.service.ts +48 -37
  637. package/src/module/auth/auth.module.ts +77 -49
  638. package/src/module/auth/controller/auth.controller.ts +28 -28
  639. package/src/module/auth/guards/google-auth.guard.ts +9 -9
  640. package/src/module/auth/guards/jwt.guard.ts +22 -22
  641. package/src/module/auth/guards/role.guard.ts +68 -68
  642. package/src/module/auth/services/auth.service.ts +56 -56
  643. package/src/module/auth/services/jwt.service.ts +11 -11
  644. package/src/module/auth/strategies/google.strategy.ts +54 -54
  645. package/src/module/auth/strategies/jwt.strategy.ts +64 -58
  646. package/src/module/auth/strategies/local.strategy.ts +13 -13
  647. package/src/module/dashboard/controller/dashboard.controller.ts +38 -38
  648. package/src/module/dashboard/dashboard.module.ts +21 -21
  649. package/src/module/dashboard/entity/dashboard_page_data.entity.ts +23 -27
  650. package/src/module/dashboard/entity/widget_master.entity.ts +15 -18
  651. package/src/module/dashboard/repository/dashboard.repository.ts +49 -49
  652. package/src/module/dashboard/service/dashboard.service.ts +71 -72
  653. package/src/module/eav/EAV_USAGE_GUIDE.md +351 -0
  654. package/src/module/eav/controller/eav.controller.ts +119 -0
  655. package/src/module/eav/dto/eav-operation.dto.ts +62 -0
  656. package/src/module/eav/eav.module.ts +80 -0
  657. package/src/module/eav/entity/eav-boolean.entity.ts +26 -0
  658. package/src/module/eav/entity/eav-date.entity.ts +25 -0
  659. package/src/module/eav/entity/eav-decimal.entity.ts +25 -0
  660. package/src/module/eav/entity/eav-int.entity.ts +25 -0
  661. package/src/module/eav/entity/eav-json.entity.ts +25 -0
  662. package/src/module/eav/entity/eav-text.entity.ts +25 -0
  663. package/src/module/eav/entity/eav-time.entity.ts +25 -0
  664. package/src/module/eav/entity/eav-timestamp.entity.ts +25 -0
  665. package/src/module/eav/entity/eav-varchar.entity.ts +25 -0
  666. package/src/module/eav/interface/eav-strategy.interface.ts +32 -0
  667. package/src/module/eav/repository/eav-boolean.repository.ts +67 -0
  668. package/src/module/eav/repository/eav-date.repository.ts +67 -0
  669. package/src/module/eav/repository/eav-decimal.repository.ts +67 -0
  670. package/src/module/eav/repository/eav-int.repository.ts +67 -0
  671. package/src/module/eav/repository/eav-json.repository.ts +67 -0
  672. package/src/module/eav/repository/eav-text.repository.ts +67 -0
  673. package/src/module/eav/repository/eav-time.repository.ts +67 -0
  674. package/src/module/eav/repository/eav-timestamp.repository.ts +67 -0
  675. package/src/module/eav/repository/eav-varchar.repository.ts +67 -0
  676. package/src/module/eav/service/eav-boolean.service.ts +64 -0
  677. package/src/module/eav/service/eav-date.service.ts +64 -0
  678. package/src/module/eav/service/eav-decimal.service.ts +64 -0
  679. package/src/module/eav/service/eav-factory.service.ts +93 -0
  680. package/src/module/eav/service/eav-int.service.ts +64 -0
  681. package/src/module/eav/service/eav-json.service.ts +64 -0
  682. package/src/module/eav/service/eav-text.service.ts +64 -0
  683. package/src/module/eav/service/eav-time.service.ts +64 -0
  684. package/src/module/eav/service/eav-timestamp.service.ts +64 -0
  685. package/src/module/eav/service/eav-varchar.service.ts +65 -0
  686. package/src/module/eav/service/eav.service.ts +116 -0
  687. package/src/module/enterprise/controller/enterprise.controller.ts +40 -0
  688. package/src/module/enterprise/controller/meta.controller.ts +23 -0
  689. package/src/module/enterprise/controller/organization.controller.ts +99 -36
  690. package/src/module/enterprise/enterprise.module.ts +43 -45
  691. package/src/module/enterprise/entity/enterprise.entity.ts +31 -37
  692. package/src/module/enterprise/entity/organization-app-mapping.entity.ts +27 -13
  693. package/src/module/enterprise/entity/organization.entity.ts +45 -92
  694. package/src/module/enterprise/repository/enterprise.repository.ts +53 -31
  695. package/src/module/enterprise/repository/organization.repository.ts +26 -26
  696. package/src/module/enterprise/repository/school.repository.ts +272 -289
  697. package/src/module/enterprise/service/brand-profile.service.ts +10 -0
  698. package/src/module/enterprise/service/brand.service.ts +75 -5
  699. package/src/module/enterprise/service/enterprise.service.ts +24 -16
  700. package/src/module/enterprise/service/organization-app-mapping.service.ts +4 -4
  701. package/src/module/enterprise/service/organization.service.ts +374 -146
  702. package/src/module/{meta → enterprise}/service/populate-meta.service.ts +210 -228
  703. package/src/module/enterprise/service/school.service.ts +5 -0
  704. package/src/module/entity_json/controller/entity_json.controller.ts +75 -60
  705. package/src/module/entity_json/docs/FlatJson_Filterin_System.md +2803 -2803
  706. package/src/module/entity_json/entity/entityJson.entity.ts +42 -42
  707. package/src/module/entity_json/entity_json.module.ts +22 -22
  708. package/src/module/entity_json/service/entityJson.repository.ts +37 -37
  709. package/src/module/entity_json/service/entity_json.service.ts +492 -486
  710. package/src/module/export/controller/export.controller.ts +83 -83
  711. package/src/module/export/export.module.ts +14 -14
  712. package/src/module/export/service/export.service.ts +107 -105
  713. package/src/module/filter/controller/filter.controller.ts +89 -87
  714. package/src/module/filter/dto/filter-request.dto.ts +40 -39
  715. package/src/module/filter/entity/saved-filter-detail.entity.ts +37 -41
  716. package/src/module/filter/entity/saved-filter-master.entity.ts +30 -35
  717. package/src/module/filter/filter.module.ts +33 -42
  718. package/src/module/filter/repository/saved-filter.repository.ts +247 -249
  719. package/src/module/filter/repository/saved.filter-detail.repository.ts +19 -19
  720. package/src/module/filter/service/filter-evaluator.service.ts +82 -82
  721. package/src/module/filter/service/filter.service.ts +1389 -1406
  722. package/src/module/filter/service/saved-filter.service.ts +165 -154
  723. package/src/module/ics/controller/ics.controller.ts +21 -21
  724. package/src/module/ics/dto/ics.dto.ts +55 -55
  725. package/src/module/ics/ics.module.ts +13 -13
  726. package/src/module/ics/service/ics.service.ts +57 -57
  727. package/src/module/integration/controller/calender-event.controller.ts +31 -31
  728. package/src/module/integration/controller/integration.controller.ts +662 -662
  729. package/src/module/integration/controller/wrapper.controller.ts +37 -37
  730. package/src/module/integration/dto/create-config.dto.ts +526 -526
  731. package/src/module/integration/entity/integration-config.entity.ts +112 -112
  732. package/src/module/integration/entity/integration-entity-mapper.entity.ts +14 -14
  733. package/src/module/integration/entity/integration-source.entity.ts +17 -17
  734. package/src/module/integration/entity/user-integration.entity.ts +71 -71
  735. package/src/module/integration/examples/usage.example.ts +338 -338
  736. package/src/module/integration/factories/base.factory.ts +7 -7
  737. package/src/module/integration/factories/email.factory.ts +49 -49
  738. package/src/module/integration/factories/integration.factory.ts +121 -121
  739. package/src/module/integration/factories/sms.factory.ts +51 -51
  740. package/src/module/integration/factories/telephone.factory.ts +41 -41
  741. package/src/module/integration/factories/whatsapp.factory.ts +56 -56
  742. package/src/module/integration/integration.module.ts +110 -110
  743. package/src/module/integration/service/calendar-event.service.ts +118 -118
  744. package/src/module/integration/service/integration-entity-mapper.service.ts +17 -17
  745. package/src/module/integration/service/integration-queue.service.ts +229 -229
  746. package/src/module/integration/service/integration.service.ts +2632 -2653
  747. package/src/module/integration/service/oauth.service.ts +224 -226
  748. package/src/module/integration/service/wrapper.service.ts +753 -754
  749. package/src/module/integration/strategies/email/gmail-api.strategy.ts +281 -307
  750. package/src/module/integration/strategies/email/outlook-api.strategy.ts +44 -44
  751. package/src/module/integration/strategies/email/outlook.strategy.ts +64 -64
  752. package/src/module/integration/strategies/email/sendgrid-api.strategy.ts +260 -263
  753. package/src/module/integration/strategies/integration.strategy.ts +97 -97
  754. package/src/module/integration/strategies/sms/gupshup-sms.strategy.ts +146 -146
  755. package/src/module/integration/strategies/sms/msg91-sms.strategy.ts +164 -164
  756. package/src/module/integration/strategies/sms/tubelight-sms.strategy.ts +163 -163
  757. package/src/module/integration/strategies/telephone/ozonetel-voice.strategy.ts +238 -238
  758. package/src/module/integration/strategies/telephone/tubelight-voice.strategy.ts +210 -210
  759. package/src/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.ts +359 -359
  760. package/src/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.ts +372 -372
  761. package/src/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.ts +403 -403
  762. package/src/module/integration/strategies/whatsapp/whatsapp.strategy.ts +57 -57
  763. package/src/module/layout/controller/layout.controller.ts +40 -47
  764. package/src/module/layout/entity/header-items.entity.ts +28 -28
  765. package/src/module/layout/entity/header-section.entity.ts +13 -19
  766. package/src/module/layout/layout.module.ts +21 -21
  767. package/src/module/layout/repository/header-items.repository.ts +18 -18
  768. package/src/module/layout/repository/header-section.repository.ts +16 -22
  769. package/src/module/layout/service/header-section.service.ts +25 -25
  770. package/src/module/layout_preference/controller/layout_preference.controller.ts +76 -76
  771. package/src/module/layout_preference/entity/layout_preference.entity.ts +28 -28
  772. package/src/module/layout_preference/layout_preference.module.ts +22 -22
  773. package/src/module/layout_preference/repository/layout_preference.repository.ts +65 -65
  774. package/src/module/layout_preference/service/layout_preference.service.ts +191 -191
  775. package/src/module/lead/controller/lead.controller.ts +30 -30
  776. package/src/module/lead/lead.module.ts +14 -14
  777. package/src/module/lead/repository/lead.repository.ts +41 -41
  778. package/src/module/lead/service/lead.service.ts +54 -54
  779. package/src/module/linked_attributes/controller/linked_attributes.controller.ts +137 -137
  780. package/src/module/linked_attributes/dto/create-linked-attribute-smart.dto.ts +54 -54
  781. package/src/module/linked_attributes/entity/linked_attribute.entity.ts +51 -51
  782. package/src/module/linked_attributes/linked_attributes.module.ts +23 -23
  783. package/src/module/linked_attributes/repository/linked_attribute.repository.ts +12 -12
  784. package/src/module/linked_attributes/service/linked_attributes.service.ts +648 -648
  785. package/src/module/linked_attributes/test/linked-attributes.service.spec.ts +244 -244
  786. package/src/module/listmaster/controller/list-master.controller.ts +206 -230
  787. package/src/module/listmaster/entity/list-master-items.entity.ts +30 -43
  788. package/src/module/listmaster/entity/list-master.entity.ts +23 -33
  789. package/src/module/listmaster/listmaster.module.ts +46 -46
  790. package/src/module/listmaster/repository/list-master-items.repository.ts +225 -173
  791. package/src/module/listmaster/repository/list-master.repository.ts +56 -56
  792. package/src/module/listmaster/service/list-master-engine.ts +19 -19
  793. package/src/module/listmaster/service/list-master-extension.interface.ts +4 -4
  794. package/src/module/listmaster/service/list-master-item.service.ts +382 -280
  795. package/src/module/listmaster/service/list-master-registry.ts +15 -15
  796. package/src/module/listmaster/service/list-master.service.ts +767 -527
  797. package/src/module/mapper/controller/field-mapper.controller.ts +76 -76
  798. package/src/module/mapper/controller/mapper.controller.ts +20 -20
  799. package/src/module/mapper/dto/field-mapper.dto.ts +14 -14
  800. package/src/module/mapper/entity/field-lovs.entity.ts +15 -19
  801. package/src/module/mapper/entity/field-mapper.entity.ts +49 -53
  802. package/src/module/mapper/entity/mapper.entity.ts +9 -16
  803. package/src/module/mapper/mapper.module.ts +35 -35
  804. package/src/module/mapper/repository/field-lovs.repository.ts +35 -35
  805. package/src/module/mapper/repository/field-mapper.repository.ts +42 -42
  806. package/src/module/mapper/repository/mapper.repository.ts +32 -32
  807. package/src/module/mapper/service/field-mapper.service.ts +268 -269
  808. package/src/module/mapper/service/mapper.service.ts +80 -80
  809. package/src/module/master/controller/master.controller.ts +71 -74
  810. package/src/module/master/service/master.service.ts +460 -484
  811. package/src/module/meta/controller/attribute-master.controller.ts +82 -96
  812. package/src/module/meta/controller/entity-dynamic.controller.ts +123 -125
  813. package/src/module/meta/controller/entity-master.controller.ts +41 -41
  814. package/src/module/meta/controller/entity-relation.controller.ts +36 -36
  815. package/src/module/meta/controller/entity.controller.ts +301 -308
  816. package/src/module/meta/controller/entity.public.controller.ts +76 -75
  817. package/src/module/meta/controller/media.controller.ts +135 -167
  818. package/src/module/meta/controller/meta.controller.ts +80 -101
  819. package/src/module/meta/controller/view-master.controller.ts +79 -79
  820. package/src/module/meta/dto/entity-list-data.dto.ts +6 -6
  821. package/src/module/meta/dto/entity-tab.dto.ts +4 -4
  822. package/src/module/meta/dto/entity-table.dto.ts +12 -12
  823. package/src/module/meta/entity/attribute-master.entity.ts +62 -92
  824. package/src/module/meta/entity/base-entity.entity.ts +52 -75
  825. package/src/module/meta/entity/dynamic.entity.ts +6 -0
  826. package/src/module/meta/entity/entity-master.entity.ts +53 -91
  827. package/src/module/meta/entity/entity-relation-data.entity.ts +24 -29
  828. package/src/module/meta/entity/entity-relation.entity.ts +18 -23
  829. package/src/module/meta/entity/entity-table-column.entity.ts +56 -61
  830. package/src/module/meta/entity/entity-table.entity.ts +45 -50
  831. package/src/module/meta/entity/media-data.entity.ts +32 -38
  832. package/src/module/meta/entity/preference.entity.ts +57 -62
  833. package/src/module/meta/entity/view-master.entity.ts +36 -41
  834. package/src/module/meta/entity.module.ts +154 -165
  835. package/src/module/meta/repository/attribute-master.repository.ts +206 -164
  836. package/src/module/meta/repository/entity-attribute-update.repository.ts +48 -48
  837. package/src/module/meta/repository/entity-master.repository.ts +120 -120
  838. package/src/module/meta/repository/entity-relation.repository.ts +36 -22
  839. package/src/module/meta/repository/entity-table-column.repository.ts +39 -39
  840. package/src/module/meta/repository/entity-table.repository.ts +53 -53
  841. package/src/module/meta/repository/media-data.repository.ts +50 -50
  842. package/src/module/meta/repository/preference.repository.ts +20 -20
  843. package/src/module/meta/repository/user-app-mapping.repository.ts +28 -28
  844. package/src/module/meta/repository/view-master.repository.ts +42 -42
  845. package/src/module/meta/service/attribute-master.service.ts +254 -160
  846. package/src/module/meta/service/common.service.ts +9 -9
  847. package/src/module/meta/service/entity-attribute-update.service.ts +26 -26
  848. package/src/module/meta/service/entity-dynamic.service.ts +993 -835
  849. package/src/module/meta/service/entity-master.service.ts +288 -172
  850. package/src/module/meta/service/entity-realation-data.service.ts +9 -9
  851. package/src/module/meta/service/entity-relation.service.ts +85 -78
  852. package/src/module/meta/service/entity-service-impl.service.ts +394 -389
  853. package/src/module/meta/service/entity-table-column.service.ts +26 -26
  854. package/src/module/meta/service/entity-table.service.ts +157 -171
  855. package/src/module/meta/service/entity-validation.service.ts +187 -188
  856. package/src/module/meta/service/entity.service.ts +50 -48
  857. package/src/module/meta/service/field-group.service.ts +103 -103
  858. package/src/module/meta/service/media-data.service.ts +385 -610
  859. package/src/module/meta/service/preference.service.ts +16 -16
  860. package/src/module/meta/service/resolver.service.ts +260 -347
  861. package/src/module/meta/service/section-master.service.ts +104 -104
  862. package/src/module/meta/service/update-form-json.service.ts +22 -22
  863. package/src/module/meta/service/user-app-mapping.service.ts +17 -17
  864. package/src/module/meta/service/view-master.service.ts +127 -127
  865. package/src/module/microservice-client/microservice-clients.module.ts +13 -13
  866. package/src/module/microservice-client/service/microservice-client-factory.ts +37 -37
  867. package/src/module/microservice-client/service/microservice-clients.ts +4 -4
  868. package/src/module/module/controller/menu.controller.ts +41 -15
  869. package/src/module/module/controller/module-access.controller.ts +138 -133
  870. package/src/module/module/entity/menu.entity.ts +51 -43
  871. package/src/module/module/entity/module-access.entity.ts +62 -25
  872. package/src/module/module/entity/module-action.entity.ts +21 -17
  873. package/src/module/module/entity/module.entity.ts +45 -52
  874. package/src/module/module/module.module.ts +43 -42
  875. package/src/module/module/repository/menu.repository.ts +200 -186
  876. package/src/module/module/repository/module-access.repository.ts +392 -344
  877. package/src/module/module/service/menu.service.ts +80 -82
  878. package/src/module/module/service/module-access.service.ts +177 -189
  879. package/src/module/module/service/module-import.service.ts +294 -0
  880. package/src/module/notification/controller/notification.controller.ts +58 -58
  881. package/src/module/notification/controller/otp.controller.ts +117 -117
  882. package/src/module/notification/entity/notification.entity.ts +76 -26
  883. package/src/module/notification/entity/otp.entity.ts +28 -28
  884. package/src/module/notification/firebase-admin.config.ts +22 -22
  885. package/src/module/notification/notification.module.ts +70 -71
  886. package/src/module/notification/repository/otp.repository.ts +27 -27
  887. package/src/module/notification/service/email.service.ts +142 -127
  888. package/src/module/notification/service/notification.service.ts +163 -146
  889. package/src/module/notification/service/otp.service.ts +144 -133
  890. package/src/module/preference_master/entity/preference.entity.ts +25 -0
  891. package/src/module/preference_master/preference.service.ts +27 -0
  892. package/src/module/preference_master/repo/preference.repository.ts +36 -0
  893. package/src/module/third-party-module/entity/third-party-api-registry.entity.ts +52 -52
  894. package/src/module/third-party-module/repository/third-party-api-registry.repository.ts +20 -20
  895. package/src/module/third-party-module/service/api-registry.service.ts +13 -13
  896. package/src/module/third-party-module/third-party.module.ts +12 -12
  897. package/src/module/user/controller/login.controller.ts +197 -199
  898. package/src/module/user/controller/user.controller.ts +31 -40
  899. package/src/module/user/dto/create-user.dto.ts +75 -62
  900. package/src/module/user/dto/update-user.dto.ts +4 -4
  901. package/src/module/user/entity/role.entity.ts +76 -33
  902. package/src/module/user/entity/user-role-mapping.entity.ts +64 -38
  903. package/src/module/user/entity/user-session.entity.ts +57 -73
  904. package/src/module/user/entity/user.entity.ts +97 -62
  905. package/src/module/user/repository/role.repository.ts +116 -96
  906. package/src/module/user/repository/user-role-mapping.repository.ts +130 -126
  907. package/src/module/user/repository/user.repository.ts +77 -50
  908. package/src/module/user/repository/userSession.repository.ts +37 -33
  909. package/src/module/user/service/login.service.ts +322 -326
  910. package/src/module/user/service/role.service.ts +197 -197
  911. package/src/module/user/service/user-role-mapping.service.ts +128 -98
  912. package/src/module/user/service/user-session.service.ts +203 -201
  913. package/src/module/user/service/user.service.ts +349 -368
  914. package/src/module/user/user.module.ts +64 -65
  915. package/src/module/workflow/controller/action-category.controller.ts +54 -54
  916. package/src/module/workflow/controller/action-resource-mapping.controller.ts +23 -23
  917. package/src/module/workflow/controller/action-template-mapping.controller.ts +35 -35
  918. package/src/module/workflow/controller/action.controller.ts +111 -111
  919. package/src/module/workflow/controller/activity-log.controller.ts +55 -55
  920. package/src/module/workflow/controller/comm-template.controller.ts +43 -43
  921. package/src/module/workflow/controller/entity-modification.controller.ts +35 -35
  922. package/src/module/workflow/controller/form-master.controller.ts +43 -43
  923. package/src/module/workflow/controller/stage-group.controller.ts +49 -49
  924. package/src/module/workflow/controller/stage.controller.ts +51 -51
  925. package/src/module/workflow/controller/task.controller.ts +77 -77
  926. package/src/module/workflow/controller/workflow-list-master.controller.ts +44 -44
  927. package/src/module/workflow/controller/workflow-meta.controller.ts +80 -80
  928. package/src/module/workflow/controller/workflow.controller.ts +67 -67
  929. package/src/module/workflow/entity/action-category.entity.ts +33 -38
  930. package/src/module/workflow/entity/action-data.entity.ts +51 -55
  931. package/src/module/workflow/entity/action-resources-mapping.entity.ts +21 -29
  932. package/src/module/workflow/entity/action-template-mapping.entity.ts +12 -17
  933. package/src/module/workflow/entity/action.entity.ts +48 -53
  934. package/src/module/workflow/entity/activity-log.entity.ts +39 -43
  935. package/src/module/workflow/entity/comm-template.entity.ts +38 -43
  936. package/src/module/workflow/entity/entity-modification.entity.ts +33 -38
  937. package/src/module/workflow/entity/form.entity.ts +21 -25
  938. package/src/module/workflow/entity/stage-action-mapping.entity.ts +12 -17
  939. package/src/module/workflow/entity/stage-group.entity.ts +18 -23
  940. package/src/module/workflow/entity/stage-movement-data.entity.ts +33 -38
  941. package/src/module/workflow/entity/stage.entity.ts +15 -20
  942. package/src/module/workflow/entity/task-data.entity.ts +84 -88
  943. package/src/module/workflow/entity/template-attach-mapper.entity.ts +30 -30
  944. package/src/module/workflow/entity/workflow-data.entity.ts +6 -11
  945. package/src/module/workflow/entity/workflow-level-mapping.entity.ts +18 -18
  946. package/src/module/workflow/entity/workflow.entity.ts +15 -20
  947. package/src/module/workflow/repository/action-category.repository.ts +79 -79
  948. package/src/module/workflow/repository/action-data.repository.ts +345 -354
  949. package/src/module/workflow/repository/action.repository.ts +339 -339
  950. package/src/module/workflow/repository/activity-log.repository.ts +148 -148
  951. package/src/module/workflow/repository/comm-template.repository.ts +157 -157
  952. package/src/module/workflow/repository/form-master.repository.ts +50 -50
  953. package/src/module/workflow/repository/stage-group.repository.ts +186 -186
  954. package/src/module/workflow/repository/stage-movement.repository.ts +217 -217
  955. package/src/module/workflow/repository/stage.repository.ts +160 -160
  956. package/src/module/workflow/repository/task.repository.ts +154 -156
  957. package/src/module/workflow/repository/workflow.repository.ts +42 -42
  958. package/src/module/workflow/service/action-category.service.ts +33 -33
  959. package/src/module/workflow/service/action-data.service.ts +63 -62
  960. package/src/module/workflow/service/action-resources-mapping.service.ts +10 -10
  961. package/src/module/workflow/service/action-template-mapping.service.ts +137 -137
  962. package/src/module/workflow/service/action.service.ts +300 -302
  963. package/src/module/workflow/service/activity-log.service.ts +107 -107
  964. package/src/module/workflow/service/comm-template.service.ts +179 -181
  965. package/src/module/workflow/service/entity-modification.service.ts +55 -61
  966. package/src/module/workflow/service/form-master.service.ts +35 -35
  967. package/src/module/workflow/service/populate-workflow.service.ts +320 -325
  968. package/src/module/workflow/service/stage-action-mapping.service.ts +5 -5
  969. package/src/module/workflow/service/stage-group.service.ts +325 -325
  970. package/src/module/workflow/service/stage.service.ts +197 -197
  971. package/src/module/workflow/service/task.service.ts +547 -551
  972. package/src/module/workflow/service/workflow-list-master.service.ts +68 -68
  973. package/src/module/workflow/service/workflow-meta.service.ts +635 -640
  974. package/src/module/workflow/service/workflow.service.ts +213 -213
  975. package/src/module/workflow/workflow.module.ts +182 -180
  976. package/src/module/workflow-automation/SCHEDULING_GUIDE.md +145 -145
  977. package/src/module/workflow-automation/controller/workflow-automation.controller.ts +43 -43
  978. package/src/module/workflow-automation/entity/workflow-automation-action.entity.ts +26 -26
  979. package/src/module/workflow-automation/entity/workflow-automation.entity.ts +35 -40
  980. package/src/module/workflow-automation/interface/action.decorator.ts +7 -7
  981. package/src/module/workflow-automation/interface/action.interface.ts +5 -5
  982. package/src/module/workflow-automation/service/action-registery.service.ts +35 -35
  983. package/src/module/workflow-automation/service/schedule-handler.service.ts +167 -168
  984. package/src/module/workflow-automation/service/workflow-automation-engine.service.ts +219 -219
  985. package/src/module/workflow-automation/service/workflow-automation.service.ts +486 -474
  986. package/src/module/workflow-automation/workflow-automation.module.ts +55 -54
  987. package/src/module/workflow-schedule/INSTALLATION.md +244 -244
  988. package/src/module/workflow-schedule/MULTI_PROJECT_GUIDE.md +196 -196
  989. package/src/module/workflow-schedule/README.md +422 -422
  990. package/src/module/workflow-schedule/constants/schedule.constants.ts +48 -48
  991. package/src/module/workflow-schedule/controller/workflow-schedule.controller.ts +253 -253
  992. package/src/module/workflow-schedule/docs/CLAUDE_CODE_GUIDE.md +510 -510
  993. package/src/module/workflow-schedule/docs/CLAUDE_CODE_PROMPT.md +362 -362
  994. package/src/module/workflow-schedule/docs/RUN_CLAUDE_CODE.sh +68 -68
  995. package/src/module/workflow-schedule/dto/create-schedule.dto.ts +147 -147
  996. package/src/module/workflow-schedule/dto/get-execution-logs.dto.ts +119 -119
  997. package/src/module/workflow-schedule/dto/update-schedule.dto.ts +96 -96
  998. package/src/module/workflow-schedule/entities/scheduled-workflow.entity.ts +148 -148
  999. package/src/module/workflow-schedule/entities/workflow-execution-log.entity.ts +154 -154
  1000. package/src/module/workflow-schedule/interfaces/schedule-job-data.interface.ts +52 -53
  1001. package/src/module/workflow-schedule/interfaces/workflow-schedule-options.interface.ts +12 -12
  1002. package/src/module/workflow-schedule/processors/schedule.processor.ts +616 -620
  1003. package/src/module/workflow-schedule/service/workflow-schedule.service.ts +588 -597
  1004. package/src/module/workflow-schedule/workflow-schedule.module.ts +67 -67
  1005. package/src/resources/dev.properties.yaml +34 -31
  1006. package/src/resources/local.properties.yaml +27 -27
  1007. package/src/resources/properties.module.ts +12 -12
  1008. package/src/resources/properties.yaml.ts +11 -11
  1009. package/src/resources/uat.properties.yaml +31 -31
  1010. package/src/table.config.ts +153 -135
  1011. package/src/utils/dto/excel-data.dto.ts +14 -14
  1012. package/src/utils/dto/excelsheet-data.dto.ts +5 -5
  1013. package/src/utils/service/base64util.service.ts +18 -18
  1014. package/src/utils/service/clockIDGenUtil.service.ts +21 -21
  1015. package/src/utils/service/codeGenerator.service.ts +22 -22
  1016. package/src/utils/service/dateUtil.service.ts +17 -17
  1017. package/src/utils/service/encryptUtil.service.ts +97 -97
  1018. package/src/utils/service/excel-helper.service.ts +72 -72
  1019. package/src/utils/service/excelUtil.service.ts +15 -15
  1020. package/src/utils/service/file-util.service.ts +11 -11
  1021. package/src/utils/service/json-util.service.ts +23 -23
  1022. package/src/utils/service/loggingUtil.service.ts +88 -88
  1023. package/src/utils/service/reflection-helper.service.ts +62 -62
  1024. package/src/utils/service/wbsCodeGen.service.ts +8 -8
  1025. package/src/utils/utils.module.ts +27 -27
  1026. package/tsconfig.build.json +4 -4
  1027. package/tsconfig.json +24 -24
  1028. package/dist/migrations/1732612800000-AddEntityJsonGinIndex.d.ts +0 -6
  1029. package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js +0 -32
  1030. package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js.map +0 -1
  1031. package/dist/module/filter/service/flatjson-filter.service.d.ts +0 -32
  1032. package/dist/module/filter/service/flatjson-filter.service.js +0 -632
  1033. package/dist/module/filter/service/flatjson-filter.service.js.map +0 -1
  1034. package/dist/module/meta/controller/app-master.controller.js.map +0 -1
  1035. package/dist/module/meta/entity/app-master.entity.d.ts +0 -13
  1036. package/dist/module/meta/entity/app-master.entity.js.map +0 -1
  1037. package/dist/module/meta/repository/app-master.repository.js.map +0 -1
  1038. package/dist/module/meta/service/app-master.service.js.map +0 -1
  1039. package/dist/module/meta/service/populate-meta.service.d.ts +0 -13
  1040. package/dist/module/meta/service/populate-meta.service.js.map +0 -1
  1041. package/dist/module/notification/repository/notification.repository.d.ts +0 -7
  1042. package/dist/module/notification/repository/notification.repository.js +0 -43
  1043. package/dist/module/notification/repository/notification.repository.js.map +0 -1
  1044. package/src/migrations/1732612800000-AddEntityJsonGinIndex.ts +0 -41
  1045. package/src/module/filter/service/flatjson-filter.service.ts +0 -903
  1046. package/src/module/filter/test/flatjson-filter.service.spec.ts +0 -415
  1047. package/src/module/meta/repository/app-master.repository.ts +0 -20
  1048. package/src/module/notification/repository/notification.repository.ts +0 -33
@@ -1 +1 @@
1
- {"version":3,"file":"role.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/role.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,gGAAmF;AAInF,uEAAgF;AAChF,mEAA+D;AAC/D,qCAAoD;AACpD,6CAAmD;AACnD,mFAAwE;AAExE,sFAAsF;AAEtF,iFAAqE;AAG9D,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,+CAAiB;IAChD,YACmB,cAA8B,EAC9B,aAA4B,EAE5B,gBAA0C,EAE1C,iBAAoC,EAEpC,mBAAgD;QAEjE,KAAK,EAAE,CAAC;QATS,mBAAc,GAAd,cAAc,CAAgB;QAC9B,kBAAa,GAAb,aAAa,CAAe;QAE5B,qBAAgB,GAAhB,gBAAgB,CAA0B;QAE1C,sBAAiB,GAAjB,iBAAiB,CAAmB;QAEpC,wBAAmB,GAAnB,mBAAmB,CAA6B;IAGnE,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAAsB;QAEtB,MAAM,IAAI,GAAG,UAAkB,CAAC;QAGhC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,IAAI,YAAY,CAAC,UAAU,CAAC;QACnE,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,IAAI,YAAY,CAAC,QAAQ,CAAC;QAC7D,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC;QAE1D,IACE,MAAM,IAAI,CAAC,cAAc,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,EAAE;YAC7D,eAAe,EAAE,YAAY,EAAE,eAAe,IAA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,IAAI,EAAE;aACtC,CAAC,CAAC;YAEH,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACvD,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC;gBAC3B,SAAS,EAAE,IAAI,CAAC,IAAI;gBACpB,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,UAAU,EAAE,IAAI,CAAC,UAAU;aAC5B,CAAC,CACH,CAAC;YAEF,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,IAIpB;QACC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;CACF,CAAA;AApLY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,0BAAgB,EAAC,mCAAY,CAAC,CAAA;IAE9B,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;IAE3B,WAAA,IAAA,0BAAgB,EAAC,0CAAe,CAAC,CAAA;qCAND,gCAAc;QACf,uBAAa;QAEV,oBAAU;QAET,uCAAiB;QAEf,oBAAU;GATvC,WAAW,CAoLvB"}
1
+ {"version":3,"file":"role.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/role.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAE5C,uDAA6C;AAC7C,mEAA+D;AAC/D,qCAAqC;AACrC,6CAAmD;AACnD,mFAAwE;AACxE,iFAAqE;AACrE,yDAAoD;AACpD,uEAAmE;AAG5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,IAAI,CAAC,WAAW;gBAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,UAAU,EAAE,IAAI,CAAC,UAAU;aAC5B,CAAC,CACH,CAAC;YAEF,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,IAIpB;QACC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,IAAY;QAC3B,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,EAAU;QACvB,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,OAAY;QACrB,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CACF,CAAA;AAxLY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;IAIR,WAAA,IAAA,0BAAgB,EAAC,mCAAY,CAAC,CAAA;IAE9B,WAAA,IAAA,0BAAgB,EAAC,0CAAe,CAAC,CAAA;qCAHD,gCAAc;QAEZ,oBAAU;QAEP,oBAAU;GANvC,WAAW,CAwLvB"}
@@ -9,4 +9,9 @@ export declare class UserRoleMappingService {
9
9
  deleteByUserId(userId: number, levelType?: string, levelId?: any): Promise<void>;
10
10
  getUserByIdAndAppCode(userId: number, appCode: string): Promise<UserRoleMapping | null>;
11
11
  getUserByIdAppCodeAndLevel(userId: number, appCode: string, levelType: string, levelId: string): Promise<UserRoleMapping | null>;
12
+ find(options: any): Promise<UserRoleMapping[]>;
13
+ create(data: any, loggedInUser: any): Promise<UserRoleMapping | null | undefined>;
14
+ findDistinctAppcodeByUserId(userId: number): Promise<{
15
+ appcode: string[];
16
+ }>;
12
17
  }
@@ -51,6 +51,15 @@ let UserRoleMappingService = class UserRoleMappingService {
51
51
  async getUserByIdAppCodeAndLevel(userId, appCode, levelType, levelId) {
52
52
  return await this.userRoleMappingRepository.findByUserIdAndAppCodeAndLevel(userId, appCode, levelType, levelId);
53
53
  }
54
+ async find(options) {
55
+ return await this.userRoleMappingRepository.find(options);
56
+ }
57
+ async create(data, loggedInUser) {
58
+ return await this.assignUserRole(data);
59
+ }
60
+ async findDistinctAppcodeByUserId(userId) {
61
+ return await this.userRoleMappingRepository.findDistinctAppcodeByUserId(userId);
62
+ }
54
63
  };
55
64
  exports.UserRoleMappingService = UserRoleMappingService;
56
65
  exports.UserRoleMappingService = UserRoleMappingService = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"user-role-mapping.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/user-role-mapping.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAA4C;AAC5C,6FAAuF;AAIhF,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YACmB,yBAAoD;QAApD,8BAAyB,GAAzB,yBAAyB,CAA2B;IACpE,CAAC;IAEJ,KAAK,CAAC,cAAc,CAAC,eAAgC;QACnD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,qBAAqB,CACzE,eAAe,CAAC,OAAO,EACvB,eAAe,CAAC,OAAO,EACvB,eAAe,CAAC,OAAO,EACvB,eAAe,CAAC,QAAQ,EACxB,eAAe,CAAC,UAAU,CAC3B,CAAC;QAEF,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACpE,CAAC;I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Ae;QAEf,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,sBAAsB,CAChE,MAAM,EACN,OAAO,CACR,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,0BAA0B,CAC9B,MAAc,EACd,OAAe,EACf,SAAiB,EACjB,OAAe;QAEf,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,8BAA8B,CACxE,MAAM,EACN,OAAO,EACP,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;CACF,CAAA;AA3FY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAGmC,wDAAyB;GAF5D,sBAAsB,CA2FlC"}
1
+ {"version":3,"file":"user-role-mapping.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/user-role-mapping.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAA4C;AAC5C,6FAAuF;AAIhF,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YACmB,yBAAoD;QAApD,8BAAyB,GAAzB,yBAAyB,CAA2B;IACnE,CAAC;IAEL,KAAK,CAAC,cAAc,CAAC,eAAgC;QACnD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,qBAAqB,CACzE,eAAe,CAAC,OAAO,EACvB,eAAe,CAAC,OAAO,EACvB,eAAe,CAAC,OAAO,EACvB,eAAe,CAAC,QAAQ,EACxB,eAAe,CAAC,UAAU,CAC3B,CAAC;QAEF,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,eAAgC;QAEvD,IAAI,eAAe,CAAC,EAAE,EAAE,CAAC;YACvB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,WAAW,CAC/D,eAAe,CAAC,EAAE,CACnB,CAAC;YACF,IAAI,QAAQ,EAAE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AAC,8BAA8B,CACxE,MAAM,EACN,OAAO,EACP,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,OAAY;QACrB,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAS,EAAE,YAAiB;QAevC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,2BAA2B,CAC/B,MAAc;QAEd,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,2BAA2B,CACrE,MAAM,CACP,CAAC;IACJ,CAAC;CACF,CAAA;AAzHY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAGmC,wDAAyB;GAF5D,sBAAsB,CAyHlC"}
@@ -4,7 +4,6 @@ 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';
8
7
  import { UserData } from '../entity/user.entity';
9
8
  import { ReflectionHelper } from '../../../utils/service/reflection-helper.service';
10
9
  export declare class UserSessionService {
@@ -13,12 +12,12 @@ export declare class UserSessionService {
13
12
  private readonly clockIDGenService;
14
13
  private configService;
15
14
  private readonly userDataRepository;
16
- private readonly userRoleMappingRepository;
17
15
  private readonly reflectionHelper;
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>;
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>;
20
18
  findBySessionKey(sessionKey: string): Promise<UserSession | null>;
21
19
  updateSession(userSession: UserSession): Promise<void>;
20
+ fetchUserFcmToken(user_id: number): Promise<UserSession | null>;
22
21
  switchCurrentLevelService(currentUser: any, data: any): Promise<{
23
22
  success: boolean;
24
23
  accessToken: string;
@@ -20,44 +20,41 @@ 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");
24
23
  const user_entity_1 = require("../entity/user.entity");
25
24
  const typeorm_2 = require("@nestjs/typeorm");
26
25
  const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
27
26
  let UserSessionService = class UserSessionService {
28
- constructor(userSessionRepository, jwtAuthService, clockIDGenService, configService, userDataRepository, userRoleMappingRepository, reflectionHelper) {
27
+ constructor(userSessionRepository, jwtAuthService, clockIDGenService, configService, userDataRepository, reflectionHelper) {
29
28
  this.userSessionRepository = userSessionRepository;
30
29
  this.jwtAuthService = jwtAuthService;
31
30
  this.clockIDGenService = clockIDGenService;
32
31
  this.configService = configService;
33
32
  this.userDataRepository = userDataRepository;
34
- this.userRoleMappingRepository = userRoleMappingRepository;
35
33
  this.reflectionHelper = reflectionHelper;
36
34
  }
37
- async createSession(user, appcode, accessInfo) {
35
+ async createSession(user, app_id, accessInfo, appcode) {
38
36
  const sessionToken = this.clockIDGenService.idGenerator('SES');
39
37
  const userSession = new user_session_entity_1.UserSession();
40
38
  userSession.user_id = user.id;
41
39
  userSession.session_key = sessionToken;
42
40
  userSession.is_session_loggedout = 0;
43
- userSession.login_time = new Date();
44
41
  const expiryTokenInHours = this.configService.get('TOKEN_EXPIRY') || 1;
45
42
  userSession.expiry_date = new Date(Date.now() + expiryTokenInHours * 60 * 60 * 1000);
46
43
  await this.userSessionRepository.saveSession(userSession);
47
44
  const payload = {
48
45
  id: user.id,
49
46
  sessionToken,
50
- appcode,
47
+ app_id,
51
48
  email_id: user.email_id,
52
49
  organization_id: user.organization_id,
53
50
  enterprise_id: user.enterprise_id,
51
+ appcode,
54
52
  };
55
53
  if (accessInfo) {
56
54
  payload.level_type = accessInfo.level_type;
57
55
  payload.level_id = accessInfo.level_id;
58
56
  }
59
57
  const accessToken = this.jwtAuthService.generateJwt(payload);
60
- userSession.access_token = accessToken;
61
58
  await this.userSessionRepository.saveSession(userSession);
62
59
  return accessToken;
63
60
  }
@@ -67,6 +64,10 @@ let UserSessionService = class UserSessionService {
67
64
  async updateSession(userSession) {
68
65
  await this.userSessionRepository.saveSession(userSession);
69
66
  }
67
+ async fetchUserFcmToken(user_id) {
68
+ return await this.userSessionRepository.fetchUserFcmToken(user_id);
69
+ }
70
+ ;
70
71
  async switchCurrentLevelService(currentUser, data) {
71
72
  let payload;
72
73
  payload = {
@@ -83,12 +84,11 @@ let UserSessionService = class UserSessionService {
83
84
  },
84
85
  });
85
86
  }
86
- if (getUserDetails?.organization_id == 1 && payload.level_type == 'ORG') {
87
+ if (getUserDetails?.enterprise_id == 1 && payload.level_type == 'ORG') {
87
88
  payload.organization_id = payload.level_id;
88
- payload.enterprise_id = payload.level_id;
89
89
  }
90
90
  await this.userDataRepository.update(currentUser.id, {
91
- last_app_access: data.appcode,
91
+ last_app_access_id: data.app_id,
92
92
  last_level_type: data.level_type,
93
93
  last_level_id: data.level_id,
94
94
  });
@@ -149,13 +149,11 @@ exports.UserSessionService = UserSessionService;
149
149
  exports.UserSessionService = UserSessionService = __decorate([
150
150
  (0, common_1.Injectable)(),
151
151
  __param(4, (0, typeorm_2.InjectRepository)(user_entity_1.UserData)),
152
- __param(5, (0, typeorm_2.InjectRepository)(user_role_mapping_entity_1.UserRoleMapping)),
153
152
  __metadata("design:paramtypes", [userSession_repository_1.UserSessionRepository,
154
153
  jwt_service_1.JwtAuthService,
155
154
  clockIDGenUtil_service_1.ClockIDGenService,
156
155
  config_1.ConfigService,
157
156
  typeorm_1.Repository,
158
- typeorm_1.Repository,
159
157
  reflection_helper_service_1.ReflectionHelper])
160
158
  ], UserSessionService);
161
159
  //# 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;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;QAC9B,WAAW,CAAC,WAAW,GAAG,YAAY,CAAC;QACvC,WAAW,CAAC,oBAAoB,GAAG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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;AA1LY,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,CA0L9B"}
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;AAG7E,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YACmB,qBAA4C,EAC5C,cAA8B,EAC9B,iBAAoC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AlB,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,38 +1,49 @@
1
- import { RoleService } from './role.service';
2
- import { EntityServiceImpl } from '../../meta/service/entity-service-impl.service';
3
1
  import { UserData } from '../entity/user.entity';
4
- import { BaseEntity } from '../../meta/entity/base-entity.entity';
5
2
  import { UserRepository } from '../repository/user.repository';
6
- import { ClockIDGenService } from '../../../utils/service/clockIDGenUtil.service';
3
+ import { CreateUserDto } from '../dto/create-user.dto';
7
4
  import { UserRoleMappingService } from './user-role-mapping.service';
8
- import { EntityManager } from 'typeorm';
9
5
  import { ConfigService } from '@nestjs/config';
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 {
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 {
15
11
  private userRepository;
16
12
  private userRoleMappingService;
17
- private readonly clockIDGenService;
13
+ private roleRepo;
18
14
  private configService;
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);
15
+ private readonly enterpriseRepository;
16
+ private readonly reflectionHelper;
17
+ constructor(userRepository: UserRepository, userRoleMappingService: UserRoleMappingService, roleRepo: RoleRepository, configService: ConfigService, enterpriseRepository: EnterpriseRepository, reflectionHelper: ReflectionHelper);
23
18
  masterKey: any;
24
19
  masterIv: any;
25
- createEntity(entityData: BaseEntity, loggedInUser: UserData | null, manager?: EntityManager): Promise<ServiceResult<BaseEntity>>;
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
+ }>;
26
29
  name: string;
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>;
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>;
31
41
  findByMobile(mobile: string, organization_id?: number, appCode?: string): Promise<UserData | null>;
32
- setDefaultLastAccess(userId: number, appcode: string): Promise<void>;
33
- setLastLevelTypeAndId(userId: number, levelType: string, levelId: string, appcode: string): Promise<void>;
42
+ setDefaultLastAccess(userId: number, app_id: number): Promise<void>;
43
+ setLastLevelTypeAndId(userId: number, levelType: string, levelId: string, app_id: number): Promise<void>;
34
44
  checkEmailExists(data: {
35
45
  email_id: string;
36
46
  subdomain: string;
37
47
  }): Promise<any>;
48
+ find(options: any): Promise<UserData[]>;
38
49
  }
@@ -8,58 +8,64 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  exports.UserService = void 0;
16
- const role_service_1 = require("./role.service");
17
13
  const common_1 = require("@nestjs/common");
18
- const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
14
+ const user_entity_1 = require("../entity/user.entity");
19
15
  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");
22
16
  const global_constant_1 = require("../../../constant/global.constant");
23
17
  const user_role_mapping_service_1 = require("./user-role-mapping.service");
24
18
  const user_role_mapping_entity_1 = require("../entity/user-role-mapping.entity");
25
19
  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");
28
20
  const action_decorator_1 = require("../../workflow-automation/interface/action.decorator");
29
- let UserService = class UserService extends entity_service_impl_service_1.EntityServiceImpl {
30
- constructor(userRepository, userRoleMappingService, clockIDGenService, configService, organizationRepository, roleService, listMasterService) {
31
- super();
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) {
32
29
  this.userRepository = userRepository;
33
30
  this.userRoleMappingService = userRoleMappingService;
34
- this.clockIDGenService = clockIDGenService;
31
+ this.roleRepo = roleRepo;
35
32
  this.configService = configService;
36
- this.organizationRepository = organizationRepository;
37
- this.roleService = roleService;
38
- this.listMasterService = listMasterService;
33
+ this.enterpriseRepository = enterpriseRepository;
34
+ this.reflectionHelper = reflectionHelper;
39
35
  this.masterKey = this.configService.get('MASTER_KEY') || '';
40
36
  this.masterIv = this.configService.get('MASTER_IV') || '';
41
37
  this.name = 'UserService';
42
38
  }
43
- async createEntity(entityData, loggedInUser, manager) {
39
+ async createUser(entityData, loggedInUser) {
44
40
  const userData = entityData;
45
- let existingUser = await this.userRepository.findByEmailId(userData.email_id, loggedInUser?.organization_id);
41
+ let existingUser = await this.userRepository.findByEmailId(userData.email_id, loggedInUser?.enterprise_id);
46
42
  if (existingUser) {
47
43
  return { success: false, error: 'User with this email already exists' };
48
44
  }
49
- existingUser = await this.userRepository.findByMobile(userData.mobile, loggedInUser?.organization_id);
45
+ existingUser = await this.userRepository.findByMobile(userData.mobile, loggedInUser?.enterprise_id);
50
46
  if (existingUser) {
51
47
  return { success: false, error: 'User with this mobile already exists' };
52
48
  }
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 || '');
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
+ }
57
58
  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;
58
62
  userData.is_firstlogin = 1;
59
63
  userData.roles = [];
60
- userData.invitation_status = resolvedInvitationStatus.id;
61
- userData.status = resolveStatus.id || 'ACTIVE';
62
- const savedData = await super.createEntity(userData, loggedInUser);
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);
63
69
  const insertPromises = [];
64
70
  for (const entry of userData.access || []) {
65
71
  const { level_type, level_ids, app_code, role_id } = entry;
@@ -70,12 +76,19 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
70
76
  !role_id) {
71
77
  return { success: false, error: 'Invalid access level entry' };
72
78
  }
79
+ const appMasterRepo = this.reflectionHelper.getRepoService('AppMaster');
80
+ const appMaster = await appMasterRepo.findOne({
81
+ where: {
82
+ code: app_code
83
+ }
84
+ });
73
85
  for (const levelId of level_ids) {
74
86
  const userRoleMapping = new user_role_mapping_entity_1.UserRoleMapping(savedData.id, role_id);
75
87
  userRoleMapping.level_type = level_type;
76
88
  userRoleMapping.level_id = String(levelId);
77
89
  userRoleMapping.appcode = app_code;
78
- userRoleMapping.organization_id = loggedInUser?.organization_id || 0;
90
+ userRoleMapping.app_id = appMaster.id;
91
+ userRoleMapping.enterprise_id = loggedInUser?.enterprise_id || 0;
79
92
  insertPromises.push(this.userRoleMappingService.assignUserRole(userRoleMapping));
80
93
  }
81
94
  }
@@ -90,10 +103,7 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
90
103
  }
91
104
  return { success: true, data: savedData };
92
105
  }
93
- async execute(payload) {
94
- console.log('payload', payload);
95
- }
96
- async getEntityData(entityType, id, loggedInUser) {
106
+ async getUserData(id) {
97
107
  const user = await this.userRepository.findById(id);
98
108
  if (user) {
99
109
  const userRoleMappings = await this.userRoleMappingService.findByUserId(id);
@@ -103,7 +113,7 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
103
113
  for (const i in userRoleMappings) {
104
114
  const userRoleMapping = userRoleMappings[i];
105
115
  const roleId = userRoleMapping.role_id;
106
- const role = await super.getEntityData(global_constant_1.ENTITYTYPE_ROLE, roleId, loggedInUser);
116
+ const role = await this.roleRepo.findById(roleId);
107
117
  roles.push(role);
108
118
  }
109
119
  userDto.roles = roles;
@@ -112,9 +122,8 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
112
122
  }
113
123
  return null;
114
124
  }
115
- async updateEntity(entityData, loggedInUserData) {
116
- const userDto = entityData;
117
- const existingUser = await this.userRepository.findById(entityData.id);
125
+ async updateUser(id, userDto, loggedInUserData) {
126
+ const existingUser = await this.userRepository.findById(id);
118
127
  if (!existingUser) {
119
128
  return { success: false, error: 'User not found' };
120
129
  }
@@ -130,7 +139,7 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
130
139
  }
131
140
  const updatedUserData = { ...userDto };
132
141
  delete updatedUserData.access;
133
- const savedData = await super.updateEntity(updatedUserData, loggedInUserData);
142
+ const savedData = await this.userRepository.updateUser(id, updatedUserData);
134
143
  if (userDto.access && userDto.access.length > 0) {
135
144
  if (loggedInUserData.level_type == 'ORG') {
136
145
  await this.userRoleMappingService.deleteByUserId(existingUser.id);
@@ -145,12 +154,11 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
145
154
  return { success: false, error: 'Invalid access level entry' };
146
155
  }
147
156
  for (const levelId of level_ids) {
148
- const userRoleMapping = new user_role_mapping_entity_1.UserRoleMapping(savedData.id, role_id);
157
+ const userRoleMapping = new user_role_mapping_entity_1.UserRoleMapping(id, role_id);
149
158
  userRoleMapping.level_type = level_type;
150
159
  userRoleMapping.level_id = String(levelId);
151
160
  userRoleMapping.appcode = app_code;
152
- userRoleMapping.organization_id =
153
- loggedInUserData?.organization_id || 0;
161
+ userRoleMapping.enterprise_id = loggedInUserData.enterprise_id;
154
162
  insertPromises.push(this.userRoleMappingService.assignUserRole(userRoleMapping));
155
163
  }
156
164
  }
@@ -164,28 +172,28 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
164
172
  }
165
173
  return { success: true, data: savedData };
166
174
  }
167
- async findByEmailId(email_id, organization_id) {
168
- return await this.userRepository.findByEmailId(email_id, organization_id);
175
+ async findByEmailId(email_id, enterprise_id, getLastApp) {
176
+ return await this.userRepository.findByEmailId(email_id, enterprise_id, getLastApp);
169
177
  }
170
178
  async findByMobile(mobile, organization_id, appCode) {
171
179
  return await this.userRepository.findByMobile(mobile, organization_id, appCode);
172
180
  }
173
- async setDefaultLastAccess(userId, appcode) {
181
+ async setDefaultLastAccess(userId, app_id) {
174
182
  const user = await this.userRepository.findById(userId);
175
183
  if (!user) {
176
184
  throw new common_1.BadRequestException('User not found');
177
185
  }
178
- user.last_app_access = appcode;
186
+ user.last_app_access_id = app_id;
179
187
  await this.userRepository.saveUser(user);
180
188
  }
181
- async setLastLevelTypeAndId(userId, levelType, levelId, appcode) {
189
+ async setLastLevelTypeAndId(userId, levelType, levelId, app_id) {
182
190
  const user = await this.userRepository.findById(userId);
183
191
  if (!user) {
184
192
  throw new common_1.BadRequestException('User not found');
185
193
  }
186
194
  user.last_level_type = levelType;
187
195
  user.last_level_id = levelId;
188
- user.last_app_access = appcode;
196
+ user.last_app_access_id = app_id;
189
197
  await this.userRepository.saveUser(user);
190
198
  }
191
199
  async checkEmailExists(data) {
@@ -193,22 +201,22 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
193
201
  if (!email_id || !subdomain) {
194
202
  return { success: false, message: 'Email and Subdomain is required' };
195
203
  }
196
- let organization;
204
+ let enterprise;
197
205
  if (subdomain) {
198
- organization =
199
- await this.organizationRepository.findOrganizationBySubdomain(subdomain);
200
- if (!organization) {
206
+ enterprise =
207
+ await this.enterpriseRepository.findEnterpriseBySubdomain(subdomain);
208
+ if (!enterprise) {
201
209
  return {
202
210
  success: false,
203
211
  message: 'Organization not found.',
204
212
  };
205
213
  }
206
214
  }
207
- const user = await this.userRepository.findByEmailId(email_id, organization?.id);
208
- if (!user || (organization && user.organization_id !== organization.id)) {
215
+ const user = await this.userRepository.findByEmailId(email_id, enterprise?.id);
216
+ if (!user || (enterprise && user.enterprise_id !== enterprise.id)) {
209
217
  return {
210
218
  success: false,
211
- message: 'User not found in organization.',
219
+ message: 'User not found in enterprise.',
212
220
  };
213
221
  }
214
222
  if (user) {
@@ -225,19 +233,19 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
225
233
  };
226
234
  }
227
235
  }
236
+ async find(options) {
237
+ return await this.userRepository.find(options);
238
+ }
228
239
  };
229
240
  exports.UserService = UserService;
230
241
  exports.UserService = UserService = __decorate([
231
242
  (0, common_1.Injectable)(),
232
243
  (0, action_decorator_1.ActionHandler)('User'),
233
- __param(5, (0, common_1.Inject)('RoleService')),
234
- __param(6, (0, common_1.Inject)('ListMasterService')),
235
244
  __metadata("design:paramtypes", [user_repository_1.UserRepository,
236
245
  user_role_mapping_service_1.UserRoleMappingService,
237
- clockIDGenUtil_service_1.ClockIDGenService,
246
+ role_repository_1.RoleRepository,
238
247
  config_1.ConfigService,
239
- organization_repository_1.OrganizationRepository,
240
- role_service_1.RoleService,
241
- list_master_service_1.ListMasterService])
248
+ enterprise_repository_1.EnterpriseRepository,
249
+ reflection_helper_service_1.ReflectionHelper])
242
250
  ], UserService);
243
251
  //# 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,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,sBAA8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AAC,EAAE,CAAC,EAAE,CAAC;YAExE,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,iCAAiC;aAC3C,CAAC;QACJ,CAAC;QAED,IAAI,IAAI,EAAE,CAAC;YACT,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,OAAO,EACL,sGAAsG;gBACxG,MAAM,EAAE,IAAI,CAAC,EAAE;aAChB,CAAC;QACJ,CAAC;aAAM,CAAC;YAEN,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,2CAA2C;aACrD,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AA7UY,kCAAW;sBAAX,WAAW;IAFvB,IAAA,mBAAU,GAAE;IACZ,IAAA,gCAAa,EAAC,MAAM,CAAC;IASjB,WAAA,IAAA,eAAM,EAAC,aAAa,CAAC,CAAA;IACrB,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCAPJ,gCAAc;QACN,kDAAsB;QAClB,0CAAiB;QAC9B,sBAAa;QACK,gDAAsB;QAEV,0BAAW;QAE5B,uCAAiB;GAV5C,WAAW,CA6UvB"}
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,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