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
@@ -4,6 +4,10 @@ import { EntityMasterRepository } from '../repository/entity-master.repository';
4
4
  import { ListMasterService } from 'src/module/listmaster/service/list-master.service';
5
5
  import { SavedFilterRepositoryService } from 'src/module/filter/repository/saved-filter.repository';
6
6
  import { AttributeMasterRepository } from '../repository/attribute-master.repository';
7
+ import { BaseEntity } from '../entity/base-entity.entity';
8
+ import { UserData } from '../../user/entity/user.entity';
9
+ import { ConfigService } from '@nestjs/config';
10
+ import { EntityServiceImpl } from './entity-service-impl.service';
7
11
  export declare class EntityMasterService {
8
12
  private entityMasterRepository;
9
13
  private attributeMasterRepo;
@@ -11,7 +15,12 @@ export declare class EntityMasterService {
11
15
  private readonly dataSource;
12
16
  private readonly listMasterService;
13
17
  private readonly savedFilterRepoService;
14
- constructor(entityMasterRepository: Repository<EntityMaster>, attributeMasterRepo: AttributeMasterRepository, entityMasterRepo: EntityMasterRepository, dataSource: DataSource, listMasterService: ListMasterService, savedFilterRepoService: SavedFilterRepositoryService);
18
+ private readonly configService;
19
+ private readonly entityService;
20
+ schema: string | undefined;
21
+ constructor(entityMasterRepository: Repository<EntityMaster>, attributeMasterRepo: AttributeMasterRepository, entityMasterRepo: EntityMasterRepository, dataSource: DataSource, listMasterService: ListMasterService, savedFilterRepoService: SavedFilterRepositoryService, configService: ConfigService, entityService: EntityServiceImpl);
22
+ createEntity(entityData: BaseEntity, loggedInUser: UserData | null): Promise<any>;
23
+ private createDatabaseTable;
15
24
  getEntityById(id: number): Promise<EntityMaster | null>;
16
25
  getAllEntityDropDown(entity_type: string, loggedInUser: any): Promise<{
17
26
  label: string;
@@ -21,14 +21,90 @@ const entity_master_repository_1 = require("../repository/entity-master.reposito
21
21
  const list_master_service_1 = require("../../listmaster/service/list-master.service");
22
22
  const saved_filter_repository_1 = require("../../filter/repository/saved-filter.repository");
23
23
  const attribute_master_repository_1 = require("../repository/attribute-master.repository");
24
+ const config_1 = require("@nestjs/config");
25
+ const entity_service_impl_service_1 = require("./entity-service-impl.service");
26
+ const entity_constant_1 = require("../../../constant/entity.constant");
24
27
  let EntityMasterService = class EntityMasterService {
25
- constructor(entityMasterRepository, attributeMasterRepo, entityMasterRepo, dataSource, listMasterService, savedFilterRepoService) {
28
+ constructor(entityMasterRepository, attributeMasterRepo, entityMasterRepo, dataSource, listMasterService, savedFilterRepoService, configService, entityService) {
26
29
  this.entityMasterRepository = entityMasterRepository;
27
30
  this.attributeMasterRepo = attributeMasterRepo;
28
31
  this.entityMasterRepo = entityMasterRepo;
29
32
  this.dataSource = dataSource;
30
33
  this.listMasterService = listMasterService;
31
34
  this.savedFilterRepoService = savedFilterRepoService;
35
+ this.configService = configService;
36
+ this.entityService = entityService;
37
+ this.schema = this.configService.get('DB_SCHEMA');
38
+ }
39
+ async createEntity(entityData, loggedInUser) {
40
+ const entityMasterData = entityData;
41
+ const existingByType = await this.entityMasterRepository.findOne({
42
+ where: {
43
+ mapped_entity_type: entityMasterData.mapped_entity_type,
44
+ enterprise_id: loggedInUser?.enterprise_id,
45
+ },
46
+ });
47
+ if (existingByType) {
48
+ throw new common_1.BadRequestException(`Entity with mapped_entity_type "${entityMasterData.mapped_entity_type}" already exists`);
49
+ }
50
+ if (!entityMasterData.mapped_entity_type) {
51
+ throw new common_1.BadRequestException('mapped_entity_type is required');
52
+ }
53
+ if (!entityMasterData.app_id) {
54
+ throw new common_1.BadRequestException('app_id is required');
55
+ }
56
+ if (!entityMasterData.storage_type) {
57
+ throw new common_1.BadRequestException('storage_type is required');
58
+ }
59
+ if (!entityMasterData.db_table_name && entityMasterData.storage_type == entity_constant_1.StorageType.SELF) {
60
+ throw new common_1.BadRequestException('db_table_name is required');
61
+ }
62
+ if (entity_constant_1.StorageType.SELF === entityMasterData.storage_type) {
63
+ const existingByTable = await this.getEntityByTableName(entityMasterData.db_table_name);
64
+ if (existingByTable) {
65
+ throw new common_1.BadRequestException(`Table with name "${entityMasterData.db_table_name}" already exists`);
66
+ }
67
+ await this.createDatabaseTable(entityMasterData.db_table_name);
68
+ }
69
+ return await this.entityService.createEntity(entityData, loggedInUser);
70
+ }
71
+ async createDatabaseTable(tableName) {
72
+ const queryRunner = this.dataSource.createQueryRunner();
73
+ try {
74
+ await queryRunner.connect();
75
+ const tableExists = await queryRunner.hasTable(tableName);
76
+ if (tableExists) {
77
+ throw new common_1.BadRequestException(`Table "${tableName}" already exists in database`);
78
+ }
79
+ const createTableQuery = `
80
+ CREATE TABLE ${this.schema}.${tableName}
81
+ (
82
+ id BIGSERIAL PRIMARY KEY,
83
+ entity_type VARCHAR(50),
84
+ code VARCHAR(100),
85
+ name VARCHAR(255),
86
+ description VARCHAR(1000),
87
+ status VARCHAR(50),
88
+ seq_no BIGINT,
89
+ created_by BIGINT,
90
+ created_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
91
+ modified_by BIGINT,
92
+ modified_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
93
+ enterprise_id INTEGER,
94
+ level_type VARCHAR(25),
95
+ level_id INTEGER,
96
+ parent_type VARCHAR(100),
97
+ parent_id BIGINT
98
+ )
99
+ `;
100
+ await queryRunner.query(createTableQuery);
101
+ }
102
+ catch (error) {
103
+ throw new common_1.BadRequestException(`Failed to create table "${tableName}": ${error.message}`);
104
+ }
105
+ finally {
106
+ await queryRunner.release();
107
+ }
32
108
  }
33
109
  async getEntityById(id) {
34
110
  return this.entityMasterRepo.getEntityById(id);
@@ -109,12 +185,13 @@ exports.EntityMasterService = EntityMasterService = __decorate([
109
185
  (0, common_1.Injectable)(),
110
186
  __param(0, (0, typeorm_2.InjectRepository)(entity_master_entity_1.EntityMaster)),
111
187
  __param(4, (0, common_1.Inject)('ListMasterService')),
112
- __param(5, (0, common_1.Inject)((0, common_1.forwardRef)(() => saved_filter_repository_1.SavedFilterRepositoryService))),
113
188
  __metadata("design:paramtypes", [typeorm_1.Repository,
114
189
  attribute_master_repository_1.AttributeMasterRepository,
115
190
  entity_master_repository_1.EntityMasterRepository,
116
191
  typeorm_1.DataSource,
117
192
  list_master_service_1.ListMasterService,
118
- saved_filter_repository_1.SavedFilterRepositoryService])
193
+ saved_filter_repository_1.SavedFilterRepositoryService,
194
+ config_1.ConfigService,
195
+ entity_service_impl_service_1.EntityServiceImpl])
119
196
  ], EntityMasterService);
120
197
  //# sourceMappingURL=entity-master.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity-master.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-master.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAChE,qCAAiD;AACjD,6CAAmD;AACnD,yEAA8D;AAC9D,qFAAgF;AAChF,sFAAsF;AACtF,6FAAoG;AACpG,2FAAsF;AAG/E,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAEU,sBAAgD,EAChD,mBAA8C,EAC9C,gBAAwC,EAC/B,UAAsB,EAEtB,iBAAoC,EAEpC,sBAAoD;QAP7D,2BAAsB,GAAtB,sBAAsB,CAA0B;QAChD,wBAAmB,GAAnB,mBAAmB,CAA2B;QAC9C,qBAAgB,GAAhB,gBAAgB,CAAwB;QAC/B,eAAU,GAAV,UAAU,CAAY;QAEtB,sBAAiB,GAAjB,iBAAiB,CAAmB;QAEpC,2BAAsB,GAAtB,sBAAsB,CAA8B;IACpE,CAAC;IAEJ,KAAK,CAAC,aAAa,CAAC,EAAU;QAC5B,OAAO,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,WAAkB,EAAC,YAAY;QACxD,OAAO,IAAI,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,WAAW,EAAC,YAAY,CAAC,CAAC;IA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CAAC,gBAAgB,CAAC;YAChC,MAAM,IAAI,CAAC,sBAAsB,CAAC,4BAA4B,CAC5D,UAAU,CACX,CAAC;QAEJ,IAAI,YAAY,CAAC,EAAE,EAAE,CAAC;YACpB,gBAAgB,CAAC,cAAc,CAAC;gBAC9B,MAAM,IAAI,CAAC,sBAAsB,CAAC,oCAAoC,CACpE,YAAY,EACZ,UAAU,CACX,CAAC;QACN,CAAC;QAED,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,YAAiB;QACtC,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACpE,CAAC;IAED,KAAK,CAAC,uBAAuB,CAAC,UAAkB,EAAE,YAAiB;QACjE,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,CACxD,UAAU,EACV,YAAY,CACb,CAAC;IACJ,CAAC;CAGF,CAAA;AAjKY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,mCAAY,CAAC,CAAA;IAK9B,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;IAE3B,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sDAA4B,CAAC,CAAC,CAAA;qCANvB,oBAAU;QACb,uDAAyB;QAC5B,iDAAsB;QACnB,oBAAU;QAEH,uCAAiB;QAEZ,sDAA4B;GAV5D,mBAAmB,CAiK/B"}
1
+ {"version":3,"file":"entity-master.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-master.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,qCAAiD;AACjD,6CAAmD;AACnD,yEAA8D;AAC9D,qFAAgF;AAChF,sFAAsF;AACtF,6FAAoG;AACpG,2FAAsF;AAGtF,2CAA+C;AAC/C,+EAAkE;AAClE,uEAAgE;AAGzD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,uDAAyB;QAC5B,iDAAsB;QACnB,oBAAU;QAEH,uCAAiB;QACZ,sDAA4B;QACrC,sBAAa;QACb,+CAAiB;GAbxC,mBAAmB,CAgR/B"}
@@ -1,12 +1,13 @@
1
+ import { EntityServiceImpl } from './entity-service-impl.service';
1
2
  import { EntityMasterRepository } from '../repository/entity-master.repository';
2
- import { ReflectionHelper } from '../../../utils/service/reflection-helper.service';
3
3
  import { EntityRelationRepository } from '../repository/entity-relation.repository';
4
- export declare class EntityRelationService {
4
+ import { EntityRelation } from '../entity/entity-relation.entity';
5
+ export declare class EntityRelationService extends EntityServiceImpl {
5
6
  private entityMasterRepo;
6
- private readonly reflectionHelper;
7
7
  private entityRelationRepository;
8
- constructor(entityMasterRepo: EntityMasterRepository, reflectionHelper: ReflectionHelper, entityRelationRepository: EntityRelationRepository);
8
+ constructor(entityMasterRepo: EntityMasterRepository, entityRelationRepository: EntityRelationRepository);
9
9
  getEntityRelations(entityType: string, loggedInUser: any, includeSelf?: boolean): Promise<any>;
10
10
  getRelatedEntityIds(sourceEntity: string, targetEntity: string, targetIds: number[], enterpriseId: number): Promise<number[]>;
11
- findBySourceEntityTypeAndTargetEntityType(source_entity_type: string, target_entity_type: string): Promise<import("../entity/entity-relation.entity").EntityRelation | null>;
11
+ findBySourceEntityTypeAndTargetEntityType(source_entity_type: string, target_entity_type: string): Promise<EntityRelation | null>;
12
+ getOneToOneRelations(entityType: string, enterpriseId: number): Promise<EntityRelation[]>;
12
13
  }
@@ -8,19 +8,16 @@ 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.EntityRelationService = void 0;
16
13
  const common_1 = require("@nestjs/common");
14
+ const entity_service_impl_service_1 = require("./entity-service-impl.service");
17
15
  const entity_master_repository_1 = require("../repository/entity-master.repository");
18
- const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
19
16
  const entity_relation_repository_1 = require("../repository/entity-relation.repository");
20
- let EntityRelationService = class EntityRelationService {
21
- constructor(entityMasterRepo, reflectionHelper, entityRelationRepository) {
17
+ let EntityRelationService = class EntityRelationService extends entity_service_impl_service_1.EntityServiceImpl {
18
+ constructor(entityMasterRepo, entityRelationRepository) {
19
+ super();
22
20
  this.entityMasterRepo = entityMasterRepo;
23
- this.reflectionHelper = reflectionHelper;
24
21
  this.entityRelationRepository = entityRelationRepository;
25
22
  }
26
23
  async getEntityRelations(entityType, loggedInUser, includeSelf = false) {
@@ -64,14 +61,14 @@ let EntityRelationService = class EntityRelationService {
64
61
  async findBySourceEntityTypeAndTargetEntityType(source_entity_type, target_entity_type) {
65
62
  return await this.entityRelationRepository.findBySourceEntityTypeAndTargetEntityType(source_entity_type, target_entity_type);
66
63
  }
64
+ async getOneToOneRelations(entityType, enterpriseId) {
65
+ return this.entityRelationRepository.getOneToOneRelations(entityType, enterpriseId);
66
+ }
67
67
  };
68
68
  exports.EntityRelationService = EntityRelationService;
69
69
  exports.EntityRelationService = EntityRelationService = __decorate([
70
70
  (0, common_1.Injectable)(),
71
- __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => entity_master_repository_1.EntityMasterRepository))),
72
- __param(1, (0, common_1.Inject)((0, common_1.forwardRef)(() => reflection_helper_service_1.ReflectionHelper))),
73
71
  __metadata("design:paramtypes", [entity_master_repository_1.EntityMasterRepository,
74
- reflection_helper_service_1.ReflectionHelper,
75
72
  entity_relation_repository_1.EntityRelationRepository])
76
73
  ], EntityRelationService);
77
74
  //# sourceMappingURL=entity-relation.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity-relation.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-relation.service.ts"],"names":[],"mappings":";;;;;;;;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C,MAAM;YAAE,OAAO,EAAE,CAAC;QAEjC,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;QACtF,MAAM,IAAI,GAAG,MAAM,kBAAkB;aAClC,kBAAkB,CAAC,KAAK,CAAC;aACzB,MAAM,CAAC,+BAA+B,EAAE,kBAAkB,CAAC;aAC3D,KAAK,CAAC,wCAAwC,EAAE,EAAE,YAAY,EAAE,CAAC;aACjE,QAAQ,CAAC,wCAAwC,EAAE,EAAE,YAAY,EAAE,CAAC;aACpE,QAAQ,CAAC,yCAAyC,EAAE,EAAE,SAAS,EAAE,CAAC;aAClE,QAAQ,CAAC,mCAAmC,EAAE,EAAE,YAAY,EAAE,CAAC;aAC/D,UAAU,EAAE,CAAC;QAEhB,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,yCAAyC,CAAC,kBAA0B,EAAE,kBAA0B;QACpG,OAAO,MAAM,IAAI,CAAC,wBAAwB,CAAC,yCAAyC,CAClF,kBAAkB,EAClB,kBAAkB,CACnB,CAAC;IACJ,CAAC;CACF,CAAA;AAtEY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iDAAsB,CAAC,CAAC,CAAA;IAEhD,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4CAAgB,CAAC,CAAC,CAAA;qCADjB,iDAAsB;QAEb,4CAAgB;QACd,qDAAwB;GANpD,qBAAqB,CAsEjC"}
1
+ {"version":3,"file":"entity-relation.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-relation.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+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kBAAkB,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;QACtF,MAAM,IAAI,GAAG,MAAM,kBAAkB;aAClC,kBAAkB,CAAC,KAAK,CAAC;aACzB,MAAM,CAAC,+BAA+B,EAAE,kBAAkB,CAAC;aAC3D,KAAK,CAAC,wCAAwC,EAAE,EAAE,YAAY,EAAE,CAAC;aACjE,QAAQ,CAAC,wCAAwC,EAAE,EAAE,YAAY,EAAE,CAAC;aACpE,QAAQ,CAAC,yCAAyC,EAAE,EAAE,SAAS,EAAE,CAAC;aAClE,QAAQ,CAAC,mCAAmC,EAAE,EAAE,YAAY,EAAE,CAAC;aAC/D,UAAU,EAAE,CAAC;QAEhB,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,yCAAyC,CAAC,kBAA0B,EAAE,kBAA0B;QACpG,OAAO,MAAM,IAAI,CAAC,wBAAwB,CAAC,yCAAyC,CAClF,kBAAkB,EAClB,kBAAkB,CACnB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,UAAkB,EAClB,YAAoB;QAEpB,OAAO,IAAI,CAAC,wBAAwB,CAAC,oBAAoB,CACvD,UAAU,EACV,YAAY,CACb,CAAC;IACJ,CAAC;CACF,CAAA;AA7EY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;qCAE2B,iDAAsB;QACxB,qDAAwB;GAFjD,qBAAqB,CA6EjC"}
@@ -17,19 +17,19 @@ export declare class EntityServiceImpl implements EntityService<BaseEntity> {
17
17
  protected readonly loggingService: LoggingService;
18
18
  protected readonly entityValidationService: EntityValidationService;
19
19
  protected readonly resolverService: ResolverService;
20
- createEntity(entityData: BaseEntity, loggedInUser: UserData | null, manager?: EntityManager | null, appcode?: string): Promise<any>;
20
+ createEntity(entityData: BaseEntity, loggedInUser: UserData | null, manager?: EntityManager | null): Promise<any>;
21
21
  deleteEntity(entityType: string, entityId: number, loggedInUser: any): Promise<{
22
22
  success: boolean;
23
23
  message: string;
24
24
  }>;
25
25
  findByCode(entityType: string, code: string, loggedInUser: any): Promise<BaseEntity>;
26
- getEntityData(entityType: string, id: number, loggedInUser: any): Promise<any>;
26
+ getEntityData(entityType: string, id: number, loggedInUser: any, resolved?: boolean): Promise<any>;
27
27
  getEntityDataAll(entityType: string, type: {}, loggedInUser: UserData): Promise<BaseEntity[] | null>;
28
28
  getEntityDataByCode(entityType: string, code: string, loggedInUser: UserData): Promise<BaseEntity | null>;
29
29
  getEntityList(entityType: string, filters: Record<string, any> | undefined, loggedInUser: UserData): Promise<BaseEntity[]>;
30
30
  updateEntity(entityData: BaseEntity, loggedInUser: UserData, appcode?: string): Promise<any>;
31
31
  private getMaxSequenceNumber;
32
32
  getSingleResolvedData(loggedInUser: UserData, entityData: any, entityType: string): Promise<any>;
33
- getResolvedEntityData(entityType: string, entityId: number, loggedInUser: UserData, format_disable?: boolean): Promise<any>;
33
+ getResolvedEntityData(entityType: string, entityId: number, loggedInUser: UserData): Promise<any>;
34
34
  getResolvedEntityDataByDataSource(entityType: string, entityId: number, loggedInUser: UserData): Promise<any>;
35
35
  }
@@ -20,7 +20,7 @@ const global_constant_1 = require("../../../constant/global.constant");
20
20
  const entity_validation_service_1 = require("./entity-validation.service");
21
21
  const resolver_service_1 = require("./resolver.service");
22
22
  let EntityServiceImpl = class EntityServiceImpl {
23
- async createEntity(entityData, loggedInUser, manager, appcode) {
23
+ async createEntity(entityData, loggedInUser, manager) {
24
24
  if (!entityData.entity_type) {
25
25
  throw new common_1.BadRequestException(`EntityType is missing`);
26
26
  }
@@ -49,23 +49,21 @@ let EntityServiceImpl = class EntityServiceImpl {
49
49
  const statusList = await listMasterItemsRepo.findOne({
50
50
  where: {
51
51
  code: global_constant_1.STATUS_ACTIVE,
52
- organization_id: loggedInUser?.organization_id || 0,
52
+ enterprise_id: loggedInUser?.enterprise_id || 0,
53
53
  },
54
54
  select: ['id'],
55
55
  });
56
56
  console.log('Status List:', statusList);
57
- console.log(`status_code,${global_constant_1.STATUS_ACTIVE},statusList, ${loggedInUser?.organization_id}`);
57
+ console.log(`status_code,${global_constant_1.STATUS_ACTIVE},statusList, ${loggedInUser?.enterprise_id}`);
58
58
  entityData.created_date = new Date();
59
59
  if (loggedInUser) {
60
60
  entityData.created_by = loggedInUser.id;
61
- if (!entityData.organization_id)
62
- entityData.organization_id = loggedInUser.organization_id;
63
61
  if (!entityData.enterprise_id)
64
62
  entityData.enterprise_id = loggedInUser.enterprise_id;
65
63
  if (!entityData.level_type)
66
64
  entityData.level_type = loggedInUser.level_type;
67
65
  if (!entityData.level_id)
68
- entityData.level_id = loggedInUser.level_id;
66
+ entityData.level_id = Number(loggedInUser.level_id);
69
67
  if (!entityData.status)
70
68
  entityData.status = statusList.id;
71
69
  }
@@ -100,7 +98,7 @@ let EntityServiceImpl = class EntityServiceImpl {
100
98
  }
101
99
  return result;
102
100
  }
103
- async getEntityData(entityType, id, loggedInUser) {
101
+ async getEntityData(entityType, id, loggedInUser, resolved) {
104
102
  const entityData = await this.entityMasterService.getEntityData(entityType, loggedInUser);
105
103
  const repoService = this.reflectionHelper.getRepoService(entityData.entity_data_class);
106
104
  if (!repoService) {
@@ -152,13 +150,11 @@ let EntityServiceImpl = class EntityServiceImpl {
152
150
  }
153
151
  const repoService = this.reflectionHelper.getRepoService(entityMaster.entity_data_class);
154
152
  if (!repoService) {
155
- throw new Error(`Repository service not found for entityType: ${entityData.entity_type}`);
153
+ throw new Error(`Repository service not found`);
156
154
  }
157
155
  entityData.modified_date = new Date();
158
156
  if (loggedInUser) {
159
157
  entityData.modified_by = loggedInUser.id;
160
- if (!entityData.organization_id && entityData.entity_type !== 'ORG')
161
- entityData.organization_id = loggedInUser.organization_id;
162
158
  if (!entityData.enterprise_id)
163
159
  entityData.enterprise_id = loggedInUser.enterprise_id;
164
160
  }
@@ -184,14 +180,14 @@ let EntityServiceImpl = class EntityServiceImpl {
184
180
  async getSingleResolvedData(loggedInUser, entityData, entityType) {
185
181
  return this.resolverService.getResolvedData(loggedInUser, entityData, entityType);
186
182
  }
187
- async getResolvedEntityData(entityType, entityId, loggedInUser, format_disable) {
183
+ async getResolvedEntityData(entityType, entityId, loggedInUser) {
188
184
  const entityData = await this.entityMasterService.getEntityData(entityType, loggedInUser);
189
185
  const repoService = this.reflectionHelper.getRepoService(entityData.entity_data_class);
190
186
  if (!repoService) {
191
187
  throw new Error(`Repository service not found for entityType: ${entityType}`);
192
188
  }
193
189
  const data = await repoService.findOne({ where: { id: entityId } });
194
- return this.resolverService.getResolvedData(loggedInUser, data, entityType, format_disable);
190
+ return this.resolverService.getResolvedData(loggedInUser, data, entityType);
195
191
  }
196
192
  async getResolvedEntityDataByDataSource(entityType, entityId, loggedInUser) {
197
193
  const entityData = await this.entityMasterService.getEntityData(entityType, loggedInUser);
@@ -204,27 +200,27 @@ let EntityServiceImpl = class EntityServiceImpl {
204
200
  };
205
201
  exports.EntityServiceImpl = EntityServiceImpl;
206
202
  __decorate([
207
- (0, common_1.Inject)(),
203
+ (0, common_1.Inject)((0, common_1.forwardRef)(() => 'EntityMasterService')),
208
204
  __metadata("design:type", entity_master_service_1.EntityMasterService)
209
205
  ], EntityServiceImpl.prototype, "entityMasterService", void 0);
210
206
  __decorate([
211
- (0, common_1.Inject)(),
207
+ (0, common_1.Inject)((0, common_1.forwardRef)(() => entity_table_column_service_1.EntityTableColumnService)),
212
208
  __metadata("design:type", entity_table_column_service_1.EntityTableColumnService)
213
209
  ], EntityServiceImpl.prototype, "entityTableColumnService", void 0);
214
210
  __decorate([
215
- (0, common_1.Inject)(),
211
+ (0, common_1.Inject)((0, common_1.forwardRef)(() => entity_table_service_1.EntityTableService)),
216
212
  __metadata("design:type", entity_table_service_1.EntityTableService)
217
213
  ], EntityServiceImpl.prototype, "entityTableService", void 0);
218
214
  __decorate([
219
- (0, common_1.Inject)(),
215
+ (0, common_1.Inject)((0, common_1.forwardRef)(() => reflection_helper_service_1.ReflectionHelper)),
220
216
  __metadata("design:type", reflection_helper_service_1.ReflectionHelper)
221
217
  ], EntityServiceImpl.prototype, "reflectionHelper", void 0);
222
218
  __decorate([
223
- (0, common_1.Inject)(),
219
+ (0, common_1.Inject)((0, common_1.forwardRef)(() => loggingUtil_service_1.LoggingService)),
224
220
  __metadata("design:type", loggingUtil_service_1.LoggingService)
225
221
  ], EntityServiceImpl.prototype, "loggingService", void 0);
226
222
  __decorate([
227
- (0, common_1.Inject)(),
223
+ (0, common_1.Inject)((0, common_1.forwardRef)(() => entity_validation_service_1.EntityValidationService)),
228
224
  __metadata("design:type", entity_validation_service_1.EntityValidationService)
229
225
  ], EntityServiceImpl.prototype, "entityValidationService", void 0);
230
226
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"entity-service-impl.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-service-impl.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAAwG;AAExG,mEAA8D;AAC9D,gGAAoF;AAEpF,oFAA4E;AAE5E,iEAA4D;AAC5D,+EAAyE;AACzE,uEAA2F;AAC3F,2EAAsE;AACtE,yDAAqD;AAG9C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAY5B,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAA6B,EAC7B,OAA8B,EAC9B,OAAgB;QAEhB,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;YAC5B,MAAM,IAAI,4BAAmB,CAAC,uBAAuB,CAAC,CAAC;QACzD,CAAC;QACD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAC/D,UAAU,CAAC,WAAW,EACtB,YAAY,CACb,CAAC;QAEF,MAAM,gBAAgB,GACpB,MAAM,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,CACnD,UAAU,EACV,YAAY,EACZ,YAAY,CACb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CACvB,CAAC;QAEF,OAAO,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;IAC9E,CAAC;CACF,CAAA;AArXY,8CAAiB;AACC;IAA5B,IAAA,eAAM,GAAE;8BAAyC,2CAAmB;8DAAC;AAEnD;IADlB,IAAA,eAAM,GAAE;8BACoC,sDAAwB;mEAAC;AACzC;IAA5B,IAAA,eAAM,GAAE;8BAAwC,yCAAkB;6DAAC;AACvC;IAA5B,IAAA,eAAM,GAAE;8BAAsC,4CAAgB;2DAAC;AACnC;IAA5B,IAAA,eAAM,GAAE;8BAAoC,oCAAc;yDAAC;AAEzC;IADlB,IAAA,eAAM,GAAE;8BACmC,mDAAuB;kEAAC;AAEjD;IADlB,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kCAAe,CAAC,CAAC;8BACN,kCAAe;0DAAC;4BAVzC,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;GACA,iBAAiB,CAqX7B"}
1
+ {"version":3,"file":"entity-service-impl.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-service-impl.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAAwG;AAExG,mEAA8D;AAC9D,gGAAoF;AAEpF,oFAA4E;AAE5E,iEAA4D;AAC5D,+EAAyE;AACzE,uEAA2F;AAC3F,2EAAsE;AACtE,yDAAqD;AAG9C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAsB5B,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAA6B,EAC7B,OAA8B;QAE9B,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;YAC5B,MAAM,IAAI,4BAAmB,CAAC,uBAAuB,CAAC,CAAC;QACzD,CAAC;QACD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAC/D,UAAU,CAAC,WAAW,EACtB,YAAY,CACb,CAAC;QAEF,MAAM,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AET;IADlB,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC;8BACR,2CAAmB;8DAAC;AAGzC;IADlB,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sDAAwB,CAAC,CAAC;8BACN,sDAAwB;mEAAC;AAGnD;IADlB,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yCAAkB,CAAC,CAAC;8BACN,yCAAkB;6DAAC;AAGvC;IADlB,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4CAAgB,CAAC,CAAC;8BACN,4CAAgB;2DAAC;AAGnC;IADlB,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,oCAAc,CAAC,CAAC;8BACN,oCAAc;yDAAC;AAG/B;IADlB,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mDAAuB,CAAC,CAAC;8BACN,mDAAuB;kEAAC;AAGjD;IADlB,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kCAAe,CAAC,CAAC;8BACN,kCAAe;0DAAC;4BApBzC,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;GACA,iBAAiB,CA0X7B"}
@@ -1,18 +1,17 @@
1
1
  import { EntityTableRepository } from '../repository/entity-table.repository';
2
2
  import { EntityTableColumnRepository } from '../repository/entity-table-column.repository';
3
+ import { EntityTableDto } from '../dto/entity-table.dto';
3
4
  import { ListMasterService } from 'src/module/listmaster/service/list-master.service';
4
5
  import { SavedFilterRepositoryService } from 'src/module/filter/repository/saved-filter.repository';
5
- import { AttributeMasterService } from './attribute-master.service';
6
6
  export declare class EntityTableService {
7
7
  private entityTableRepository;
8
8
  private readonly entityTableColumnRepository;
9
9
  private readonly listMasterService;
10
10
  private readonly savedFilterRepoService;
11
- private readonly attributeMasterService;
12
- constructor(entityTableRepository: EntityTableRepository, entityTableColumnRepository: EntityTableColumnRepository, listMasterService: ListMasterService, savedFilterRepoService: SavedFilterRepositoryService, attributeMasterService: AttributeMasterService);
11
+ constructor(entityTableRepository: EntityTableRepository, entityTableColumnRepository: EntityTableColumnRepository, listMasterService: ListMasterService, savedFilterRepoService: SavedFilterRepositoryService);
13
12
  getEntityData(mappedEntityType: string | null, loggedInUser: any): Promise<import("../entity/entity-table.entity").EntityTable>;
14
13
  findByEntityTypeAndListType(entityType: string, listType: string): Promise<import("../entity/entity-table.entity").EntityTable | null>;
15
14
  findByEntityTypeAndListTypeAndDisplayType(entityType: string, listType: string, displayType: string, enterprise_id: number): Promise<import("../entity/entity-table.entity").EntityTable | null>;
16
- getTableMetaDataForListing(entityType: string, listType: string, loggedInUser: any): Promise<any>;
17
- getTableMetaData(entityType: string, listType: string, displayType: string, loggedInUser: any): Promise<any>;
15
+ getTableMetaDataForListing(entityType: string, listType: string, loggedInUser: any): Promise<EntityTableDto>;
16
+ getTableMetaData(entityType: string, listType: string, displayType: string, loggedInUser: any): Promise<EntityTableDto>;
18
17
  }
@@ -19,14 +19,12 @@ const entity_table_column_repository_1 = require("../repository/entity-table-col
19
19
  const global_constant_1 = require("../../../constant/global.constant");
20
20
  const list_master_service_1 = require("../../listmaster/service/list-master.service");
21
21
  const saved_filter_repository_1 = require("../../filter/repository/saved-filter.repository");
22
- const attribute_master_service_1 = require("./attribute-master.service");
23
22
  let EntityTableService = class EntityTableService {
24
- constructor(entityTableRepository, entityTableColumnRepository, listMasterService, savedFilterRepoService, attributeMasterService) {
23
+ constructor(entityTableRepository, entityTableColumnRepository, listMasterService, savedFilterRepoService) {
25
24
  this.entityTableRepository = entityTableRepository;
26
25
  this.entityTableColumnRepository = entityTableColumnRepository;
27
26
  this.listMasterService = listMasterService;
28
27
  this.savedFilterRepoService = savedFilterRepoService;
29
- this.attributeMasterService = attributeMasterService;
30
28
  }
31
29
  async getEntityData(mappedEntityType, loggedInUser) {
32
30
  if (mappedEntityType) {
@@ -50,46 +48,29 @@ let EntityTableService = class EntityTableService {
50
48
  return await this.getTableMetaData(entityType, listType, global_constant_1.DISPLAY_LIST, loggedInUser);
51
49
  }
52
50
  async getTableMetaData(entityType, listType, displayType, loggedInUser) {
53
- let entityTableDto = {};
54
- entityTableDto.column_list = [
55
- {
56
- name: 'Code',
57
- attribute_key: 'code',
58
- data_type: 'text'
59
- },
60
- {
61
- name: 'name',
62
- attribute_key: 'name',
63
- data_type: 'text'
64
- },
65
- {
66
- name: 'status',
67
- attribute_key: 'status',
68
- data_type: 'select'
69
- },
70
- {
71
- name: 'description',
72
- attribute_key: 'description',
73
- data_type: 'text'
51
+ const entityTable = await this.findByEntityTypeAndListTypeAndDisplayType(entityType, listType, displayType, loggedInUser?.enterprise_id);
52
+ const entityTableDto = entityTable;
53
+ if (entityTable) {
54
+ entityTableDto.column_list =
55
+ await this.entityTableColumnRepository.findByParentIdAndParentType(entityTable.id, entityTable.entity_type, loggedInUser.enterprise_id);
56
+ entityTableDto.operation_list = {
57
+ text: await this.listMasterService.getDropdownOptions('OPT', {}, [], loggedInUser),
58
+ number: await this.listMasterService.getDropdownOptions('OPN', {}, [], loggedInUser),
59
+ date: await this.listMasterService.getDropdownOptions('OPD', {}, [], loggedInUser),
60
+ select: await this.listMasterService.getDropdownOptions('OPS', {}, [], loggedInUser),
61
+ multiselect: await this.listMasterService.getDropdownOptions('OPM', {}, [], loggedInUser),
62
+ year: await this.listMasterService.getDropdownOptions('OPY', {}, [], loggedInUser),
63
+ };
64
+ entityTableDto.default_filter =
65
+ await this.savedFilterRepoService.getDefaultFilterByEntityType(entityTable.list_type);
66
+ if (loggedInUser.id) {
67
+ entityTableDto.saved_filter =
68
+ await this.savedFilterRepoService.getSavedFiltersByUserIdAndEntityType(loggedInUser, entityTable.list_type);
69
+ }
70
+ if (loggedInUser.id) {
71
+ entityTableDto.shared_filter =
72
+ await this.savedFilterRepoService.getSharedFiltersByLevelTypeAndLevelId(loggedInUser, entityTable.list_type);
74
73
  }
75
- ];
76
- entityTableDto.operation_list = {
77
- text: await this.listMasterService.getDropdownOptions('OPT', {}, [], loggedInUser),
78
- number: await this.listMasterService.getDropdownOptions('OPN', {}, [], loggedInUser),
79
- date: await this.listMasterService.getDropdownOptions('OPD', {}, [], loggedInUser),
80
- select: await this.listMasterService.getDropdownOptions('OPS', {}, [], loggedInUser),
81
- multiselect: await this.listMasterService.getDropdownOptions('OPM', {}, [], loggedInUser),
82
- year: await this.listMasterService.getDropdownOptions('OPY', {}, [], loggedInUser),
83
- };
84
- entityTableDto.default_filter =
85
- await this.savedFilterRepoService.getDefaultFilterByEntityType(entityType);
86
- if (loggedInUser.id) {
87
- entityTableDto.saved_filter =
88
- await this.savedFilterRepoService.getSavedFiltersByUserIdAndEntityType(loggedInUser.id, entityType);
89
- }
90
- if (loggedInUser.id) {
91
- entityTableDto.shared_filter =
92
- await this.savedFilterRepoService.getSharedFiltersByLevelTypeAndLevelId(loggedInUser, entityType);
93
74
  }
94
75
  return entityTableDto;
95
76
  }
@@ -99,11 +80,9 @@ exports.EntityTableService = EntityTableService = __decorate([
99
80
  (0, common_1.Injectable)(),
100
81
  __param(2, (0, common_1.Inject)((0, common_1.forwardRef)(() => 'ListMasterService'))),
101
82
  __param(2, (0, common_1.Inject)('ListMasterService')),
102
- __param(3, (0, common_1.Inject)((0, common_1.forwardRef)(() => saved_filter_repository_1.SavedFilterRepositoryService))),
103
83
  __metadata("design:paramtypes", [entity_table_repository_1.EntityTableRepository,
104
84
  entity_table_column_repository_1.EntityTableColumnRepository,
105
85
  list_master_service_1.ListMasterService,
106
- saved_filter_repository_1.SavedFilterRepositoryService,
107
- attribute_master_service_1.AttributeMasterService])
86
+ saved_filter_repository_1.SavedFilterRepositoryService])
108
87
  ], EntityTableService);
109
88
  //# sourceMappingURL=entity-table.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity-table.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-table.service.ts"],"names":[],"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,YAAY,CACb;YACD,IAAI,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CACnD,KAAK,EACL,EAAE,EACF,EAAE,EACF,YAAY,CACb;SAEF,CAAC;QACF,cAAc,CAAC,cAAc;YAC3B,MAAM,IAAI,CAAC,sBAAsB,CAAC,4BAA4B,CAC5D,UAAU,CACX,CAAC;QACJ,IAAI,YAAY,CAAC,EAAE,EAAE,CAAC;YACpB,cAAc,CAAC,YAAY;gBACzB,MAAM,IAAI,CAAC,sBAAsB,CAAC,oCAAoC,CACpE,YAAY,CAAC,EAAE,EACf,UAAU,CACX,CAAC;QACN,CAAC;QACD,IAAI,YAAY,CAAC,EAAE,EAAE,CAAC;YACpB,cAAc,CAAC,aAAa;gBAC1B,MAAM,IAAI,CAAC,sBAAsB,CAAC,qCAAqC,CACrE,YAAY,EACZ,UAAU,CACX,CAAC;QACN,CAAC;QAED,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAA;AAhKY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAOR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAA;IAC7C,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;IAG3B,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sDAA4B,CAAC,CAAC,CAAA;qCARxB,+CAAqB;QACN,4DAA2B;QAKrC,uCAAiB;QAGZ,sDAA4B;QAC5B,iDAAsB;GAZtD,kBAAkB,CAgK9B"}
1
+ {"version":3,"file":"entity-table.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-table.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAChE,mFAA8E;AAC9E,iGAA2F;AAE3F,uEAAiE;AACjE,sFAAsF;AACtF,6FAAoG;AAG7F,IAAM,kBAAkB,GAAxB,MAAM,k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,cAAc,CAAC,YAAY;oBACzB,MAAM,IAAI,CAAC,sBAAsB,CAAC,oCAAoC,CACpE,YAAY,EACZ,WAAW,CAAC,SAAS,CACtB,CAAC;YACN,CAAC;YACD,IAAI,YAAY,CAAC,EAAE,EAAE,CAAC;gBACpB,cAAc,CAAC,aAAa;oBAC1B,MAAM,IAAI,CAAC,sBAAsB,CAAC,qCAAqC,CACrE,YAAY,EACZ,WAAW,CAAC,SAAS,CACtB,CAAC;YACN,CAAC;QACH,CAAC;QAED,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAA;AAnJY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAMR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAA;IAC7C,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCAJG,+CAAqB;QACN,4DAA2B;QAIrC,uCAAiB;QAEZ,sDAA4B;GAT5D,kBAAkB,CAmJ9B"}
@@ -1,6 +1,5 @@
1
1
  import { AttributeMasterService } from 'src/module/meta/service/attribute-master.service';
2
2
  import { AttributeMaster } from '../entity/attribute-master.entity';
3
- import { EntityManager } from 'typeorm';
4
3
  import { ConfigService } from '@nestjs/config';
5
4
  interface ValidationError {
6
5
  field: string;
@@ -8,9 +7,8 @@ interface ValidationError {
8
7
  }
9
8
  export declare class EntityValidationService {
10
9
  private readonly attributeMasterService;
11
- private entityManager;
12
10
  private configService;
13
- constructor(attributeMasterService: AttributeMasterService, entityManager: EntityManager, configService: ConfigService);
11
+ constructor(attributeMasterService: AttributeMasterService, configService: ConfigService);
14
12
  schema: any;
15
13
  validateRequiredFields(entityData: Record<string, any>, attributeData: AttributeMaster[]): ValidationError[];
16
14
  validateUniqueFields(entityData: Record<string, any>, attributeData: AttributeMaster[], entityType: string, db_table_name: string, loggedInUser: any): Promise<ValidationError[]>;