rez_core 6.6.6 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1067) 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 +4 -10
  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 +55 -42
  32. package/dist/core.module.js.map +1 -1
  33. package/dist/module/auth/auth.module.d.ts +6 -1
  34. package/dist/module/auth/auth.module.js +29 -7
  35. package/dist/module/auth/auth.module.js.map +1 -1
  36. package/dist/module/{user/entity/user.entity.d.ts → auth/dto/user.dto.d.ts} +13 -5
  37. package/dist/module/auth/dto/user.dto.js +7 -0
  38. package/dist/module/auth/dto/user.dto.js.map +1 -0
  39. package/dist/module/auth/services/auth.service.d.ts +1 -1
  40. package/dist/module/auth/strategies/jwt.strategy.d.ts +6 -2
  41. package/dist/module/auth/strategies/jwt.strategy.js +18 -4
  42. package/dist/module/auth/strategies/jwt.strategy.js.map +1 -1
  43. package/dist/module/dashboard/controller/dashboard.controller.d.ts +7 -7
  44. package/dist/module/dashboard/dashboard.module.js +0 -2
  45. package/dist/module/dashboard/dashboard.module.js.map +1 -1
  46. package/dist/module/dashboard/entity/dashboard_page_data.entity.d.ts +0 -1
  47. package/dist/module/dashboard/entity/dashboard_page_data.entity.js +1 -6
  48. package/dist/module/dashboard/entity/dashboard_page_data.entity.js.map +1 -1
  49. package/dist/module/dashboard/entity/widget_master.entity.d.ts +0 -1
  50. package/dist/module/dashboard/entity/widget_master.entity.js +1 -6
  51. package/dist/module/dashboard/entity/widget_master.entity.js.map +1 -1
  52. package/dist/module/dashboard/service/dashboard.service.d.ts +8 -10
  53. package/dist/module/dashboard/service/dashboard.service.js +3 -18
  54. package/dist/module/dashboard/service/dashboard.service.js.map +1 -1
  55. package/dist/module/eav/controller/eav.controller.d.ts +21 -0
  56. package/dist/module/eav/controller/eav.controller.js +127 -0
  57. package/dist/module/eav/controller/eav.controller.js.map +1 -0
  58. package/dist/module/eav/dto/eav-operation.dto.d.ts +20 -0
  59. package/dist/module/eav/dto/eav-operation.dto.js +75 -0
  60. package/dist/module/eav/dto/eav-operation.dto.js.map +1 -0
  61. package/dist/module/eav/eav.module.d.ts +2 -0
  62. package/dist/module/eav/eav.module.js +84 -0
  63. package/dist/module/eav/eav.module.js.map +1 -0
  64. package/dist/module/eav/entity/eav-boolean.entity.d.ts +9 -0
  65. package/dist/module/eav/entity/eav-boolean.entity.js +48 -0
  66. package/dist/module/eav/entity/eav-boolean.entity.js.map +1 -0
  67. package/dist/module/eav/entity/eav-date.entity.d.ts +9 -0
  68. package/dist/module/eav/entity/eav-date.entity.js +48 -0
  69. package/dist/module/eav/entity/eav-date.entity.js.map +1 -0
  70. package/dist/module/eav/entity/eav-decimal.entity.d.ts +9 -0
  71. package/dist/module/eav/entity/eav-decimal.entity.js +48 -0
  72. package/dist/module/eav/entity/eav-decimal.entity.js.map +1 -0
  73. package/dist/module/eav/entity/eav-int.entity.d.ts +9 -0
  74. package/dist/module/eav/entity/eav-int.entity.js +48 -0
  75. package/dist/module/eav/entity/eav-int.entity.js.map +1 -0
  76. package/dist/module/eav/entity/eav-json.entity.d.ts +9 -0
  77. package/dist/module/eav/entity/eav-json.entity.js +48 -0
  78. package/dist/module/eav/entity/eav-json.entity.js.map +1 -0
  79. package/dist/module/eav/entity/eav-text.entity.d.ts +9 -0
  80. package/dist/module/eav/entity/eav-text.entity.js +48 -0
  81. package/dist/module/eav/entity/eav-text.entity.js.map +1 -0
  82. package/dist/module/eav/entity/eav-time.entity.d.ts +9 -0
  83. package/dist/module/eav/entity/eav-time.entity.js +48 -0
  84. package/dist/module/eav/entity/eav-time.entity.js.map +1 -0
  85. package/dist/module/eav/entity/eav-timestamp.entity.d.ts +9 -0
  86. package/dist/module/eav/entity/eav-timestamp.entity.js +48 -0
  87. package/dist/module/eav/entity/eav-timestamp.entity.js.map +1 -0
  88. package/dist/module/eav/entity/eav-varchar.entity.d.ts +9 -0
  89. package/dist/module/eav/entity/eav-varchar.entity.js +48 -0
  90. package/dist/module/eav/entity/eav-varchar.entity.js.map +1 -0
  91. package/dist/module/eav/interface/eav-strategy.interface.d.ts +8 -0
  92. package/dist/module/eav/interface/eav-strategy.interface.js +3 -0
  93. package/dist/module/eav/interface/eav-strategy.interface.js.map +1 -0
  94. package/dist/module/eav/repository/eav-boolean.repository.d.ts +13 -0
  95. package/dist/module/eav/repository/eav-boolean.repository.js +57 -0
  96. package/dist/module/eav/repository/eav-boolean.repository.js.map +1 -0
  97. package/dist/module/eav/repository/eav-date.repository.d.ts +13 -0
  98. package/dist/module/eav/repository/eav-date.repository.js +57 -0
  99. package/dist/module/eav/repository/eav-date.repository.js.map +1 -0
  100. package/dist/module/eav/repository/eav-decimal.repository.d.ts +13 -0
  101. package/dist/module/eav/repository/eav-decimal.repository.js +57 -0
  102. package/dist/module/eav/repository/eav-decimal.repository.js.map +1 -0
  103. package/dist/module/eav/repository/eav-int.repository.d.ts +13 -0
  104. package/dist/module/eav/repository/eav-int.repository.js +57 -0
  105. package/dist/module/eav/repository/eav-int.repository.js.map +1 -0
  106. package/dist/module/eav/repository/eav-json.repository.d.ts +13 -0
  107. package/dist/module/eav/repository/eav-json.repository.js +57 -0
  108. package/dist/module/eav/repository/eav-json.repository.js.map +1 -0
  109. package/dist/module/eav/repository/eav-text.repository.d.ts +13 -0
  110. package/dist/module/eav/repository/eav-text.repository.js +57 -0
  111. package/dist/module/eav/repository/eav-text.repository.js.map +1 -0
  112. package/dist/module/eav/repository/eav-time.repository.d.ts +13 -0
  113. package/dist/module/eav/repository/eav-time.repository.js +57 -0
  114. package/dist/module/eav/repository/eav-time.repository.js.map +1 -0
  115. package/dist/module/eav/repository/eav-timestamp.repository.d.ts +13 -0
  116. package/dist/module/eav/repository/eav-timestamp.repository.js +57 -0
  117. package/dist/module/eav/repository/eav-timestamp.repository.js.map +1 -0
  118. package/dist/module/eav/repository/eav-varchar.repository.d.ts +13 -0
  119. package/dist/module/eav/repository/eav-varchar.repository.js +57 -0
  120. package/dist/module/eav/repository/eav-varchar.repository.js.map +1 -0
  121. package/dist/module/eav/service/eav-boolean.service.d.ts +12 -0
  122. package/dist/module/eav/service/eav-boolean.service.js +59 -0
  123. package/dist/module/eav/service/eav-boolean.service.js.map +1 -0
  124. package/dist/module/eav/service/eav-date.service.d.ts +12 -0
  125. package/dist/module/eav/service/eav-date.service.js +59 -0
  126. package/dist/module/eav/service/eav-date.service.js.map +1 -0
  127. package/dist/module/eav/service/eav-decimal.service.d.ts +12 -0
  128. package/dist/module/eav/service/eav-decimal.service.js +59 -0
  129. package/dist/module/eav/service/eav-decimal.service.js.map +1 -0
  130. package/dist/module/eav/service/eav-factory.service.d.ts +26 -0
  131. package/dist/module/eav/service/eav-factory.service.js +81 -0
  132. package/dist/module/eav/service/eav-factory.service.js.map +1 -0
  133. package/dist/module/eav/service/eav-int.service.d.ts +12 -0
  134. package/dist/module/eav/service/eav-int.service.js +59 -0
  135. package/dist/module/eav/service/eav-int.service.js.map +1 -0
  136. package/dist/module/eav/service/eav-json.service.d.ts +12 -0
  137. package/dist/module/eav/service/eav-json.service.js +59 -0
  138. package/dist/module/eav/service/eav-json.service.js.map +1 -0
  139. package/dist/module/eav/service/eav-text.service.d.ts +12 -0
  140. package/dist/module/eav/service/eav-text.service.js +59 -0
  141. package/dist/module/eav/service/eav-text.service.js.map +1 -0
  142. package/dist/module/eav/service/eav-time.service.d.ts +12 -0
  143. package/dist/module/eav/service/eav-time.service.js +59 -0
  144. package/dist/module/eav/service/eav-time.service.js.map +1 -0
  145. package/dist/module/eav/service/eav-timestamp.service.d.ts +12 -0
  146. package/dist/module/eav/service/eav-timestamp.service.js +59 -0
  147. package/dist/module/eav/service/eav-timestamp.service.js.map +1 -0
  148. package/dist/module/eav/service/eav-varchar.service.d.ts +12 -0
  149. package/dist/module/eav/service/eav-varchar.service.js +59 -0
  150. package/dist/module/eav/service/eav-varchar.service.js.map +1 -0
  151. package/dist/module/eav/service/eav.service.d.ts +14 -0
  152. package/dist/module/eav/service/eav.service.js +65 -0
  153. package/dist/module/eav/service/eav.service.js.map +1 -0
  154. package/dist/module/entity_json/controller/entity_json.controller.d.ts +2 -5
  155. package/dist/module/entity_json/controller/entity_json.controller.js +7 -21
  156. package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -1
  157. package/dist/module/entity_json/service/entity_json.service.d.ts +10 -2
  158. package/dist/module/entity_json/service/entity_json.service.js +102 -95
  159. package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
  160. package/dist/module/export/service/export.service.js +5 -0
  161. package/dist/module/export/service/export.service.js.map +1 -1
  162. package/dist/module/filter/controller/filter.controller.d.ts +1 -12
  163. package/dist/module/filter/controller/filter.controller.js +3 -2
  164. package/dist/module/filter/controller/filter.controller.js.map +1 -1
  165. package/dist/module/filter/dto/filter-request.dto.d.ts +2 -1
  166. package/dist/module/filter/entity/saved-filter-detail.entity.d.ts +0 -1
  167. package/dist/module/filter/entity/saved-filter-detail.entity.js +1 -7
  168. package/dist/module/filter/entity/saved-filter-detail.entity.js.map +1 -1
  169. package/dist/module/filter/entity/saved-filter-master.entity.d.ts +0 -1
  170. package/dist/module/filter/entity/saved-filter-master.entity.js +1 -7
  171. package/dist/module/filter/entity/saved-filter-master.entity.js.map +1 -1
  172. package/dist/module/filter/filter.module.js +2 -11
  173. package/dist/module/filter/filter.module.js.map +1 -1
  174. package/dist/module/filter/repository/saved-filter.repository.d.ts +1 -1
  175. package/dist/module/filter/repository/saved-filter.repository.js +2 -4
  176. package/dist/module/filter/repository/saved-filter.repository.js.map +1 -1
  177. package/dist/module/filter/service/filter.service.d.ts +5 -38
  178. package/dist/module/filter/service/filter.service.js +134 -88
  179. package/dist/module/filter/service/filter.service.js.map +1 -1
  180. package/dist/module/filter/service/saved-filter.service.d.ts +3 -4
  181. package/dist/module/filter/service/saved-filter.service.js +18 -15
  182. package/dist/module/filter/service/saved-filter.service.js.map +1 -1
  183. package/dist/module/integration/examples/usage.example.js +9 -9
  184. package/dist/module/integration/service/integration.service.d.ts +1 -6
  185. package/dist/module/integration/service/integration.service.js +4 -18
  186. package/dist/module/integration/service/integration.service.js.map +1 -1
  187. package/dist/module/integration/service/oauth.service.js +0 -2
  188. package/dist/module/integration/service/oauth.service.js.map +1 -1
  189. package/dist/module/integration/service/wrapper.service.js +0 -1
  190. package/dist/module/integration/service/wrapper.service.js.map +1 -1
  191. package/dist/module/integration/strategies/email/gmail-api.strategy.js +7 -23
  192. package/dist/module/integration/strategies/email/gmail-api.strategy.js.map +1 -1
  193. package/dist/module/integration/strategies/email/sendgrid-api.strategy.js +5 -8
  194. package/dist/module/integration/strategies/email/sendgrid-api.strategy.js.map +1 -1
  195. package/dist/module/layout/controller/layout.controller.d.ts +1 -3
  196. package/dist/module/layout/controller/layout.controller.js +3 -7
  197. package/dist/module/layout/controller/layout.controller.js.map +1 -1
  198. package/dist/module/layout/entity/header-items.entity.js +1 -1
  199. package/dist/module/layout/entity/header-section.entity.d.ts +0 -2
  200. package/dist/module/layout/entity/header-section.entity.js +1 -9
  201. package/dist/module/layout/entity/header-section.entity.js.map +1 -1
  202. package/dist/module/layout/layout.module.js +1 -2
  203. package/dist/module/layout/layout.module.js.map +1 -1
  204. package/dist/module/layout/repository/header-section.repository.d.ts +0 -1
  205. package/dist/module/layout/repository/header-section.repository.js +0 -5
  206. package/dist/module/layout/repository/header-section.repository.js.map +1 -1
  207. package/dist/module/layout/service/header-section.service.d.ts +1 -1
  208. package/dist/module/layout/service/header-section.service.js +1 -1
  209. package/dist/module/layout/service/header-section.service.js.map +1 -1
  210. package/dist/module/layout_preference/service/layout_preference.service.d.ts +1 -1
  211. package/dist/module/linked_attributes/controller/linked_attributes.controller.d.ts +1 -0
  212. package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +2 -2
  213. package/dist/module/linked_attributes/service/linked_attributes.service.js +3 -4
  214. package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -1
  215. package/dist/module/listmaster/controller/list-master.controller.d.ts +0 -1
  216. package/dist/module/listmaster/controller/list-master.controller.js +0 -19
  217. package/dist/module/listmaster/controller/list-master.controller.js.map +1 -1
  218. package/dist/module/listmaster/entity/list-master-items.entity.d.ts +0 -4
  219. package/dist/module/listmaster/entity/list-master-items.entity.js +2 -20
  220. package/dist/module/listmaster/entity/list-master-items.entity.js.map +1 -1
  221. package/dist/module/listmaster/entity/list-master.entity.d.ts +1 -4
  222. package/dist/module/listmaster/entity/list-master.entity.js +5 -19
  223. package/dist/module/listmaster/entity/list-master.entity.js.map +1 -1
  224. package/dist/module/listmaster/repository/list-master-items.repository.d.ts +2 -2
  225. package/dist/module/listmaster/repository/list-master-items.repository.js +68 -25
  226. package/dist/module/listmaster/repository/list-master-items.repository.js.map +1 -1
  227. package/dist/module/listmaster/service/list-master-item.service.d.ts +1 -1
  228. package/dist/module/listmaster/service/list-master-item.service.js +129 -48
  229. package/dist/module/listmaster/service/list-master-item.service.js.map +1 -1
  230. package/dist/module/listmaster/service/list-master.service.d.ts +17 -13
  231. package/dist/module/listmaster/service/list-master.service.js +228 -135
  232. package/dist/module/listmaster/service/list-master.service.js.map +1 -1
  233. package/dist/module/mapper/entity/field-lovs.entity.d.ts +0 -1
  234. package/dist/module/mapper/entity/field-lovs.entity.js +1 -6
  235. package/dist/module/mapper/entity/field-lovs.entity.js.map +1 -1
  236. package/dist/module/mapper/entity/field-mapper.entity.d.ts +0 -1
  237. package/dist/module/mapper/entity/field-mapper.entity.js +1 -6
  238. package/dist/module/mapper/entity/field-mapper.entity.js.map +1 -1
  239. package/dist/module/mapper/entity/mapper.entity.d.ts +0 -2
  240. package/dist/module/mapper/entity/mapper.entity.js +1 -10
  241. package/dist/module/mapper/entity/mapper.entity.js.map +1 -1
  242. package/dist/module/mapper/service/field-mapper.service.d.ts +1 -1
  243. package/dist/module/mapper/service/field-mapper.service.js +0 -1
  244. package/dist/module/mapper/service/field-mapper.service.js.map +1 -1
  245. package/dist/module/master/controller/master.controller.d.ts +1 -3
  246. package/dist/module/master/controller/master.controller.js +4 -6
  247. package/dist/module/master/controller/master.controller.js.map +1 -1
  248. package/dist/module/master/service/master.service.d.ts +1 -1
  249. package/dist/module/master/service/master.service.js +30 -44
  250. package/dist/module/master/service/master.service.js.map +1 -1
  251. package/dist/module/meta/controller/attribute-master.controller.d.ts +3 -8
  252. package/dist/module/meta/controller/attribute-master.controller.js +5 -19
  253. package/dist/module/meta/controller/attribute-master.controller.js.map +1 -1
  254. package/dist/module/meta/controller/entity-dynamic.controller.js +6 -3
  255. package/dist/module/meta/controller/entity-dynamic.controller.js.map +1 -1
  256. package/dist/module/meta/controller/entity-master.controller.js +1 -0
  257. package/dist/module/meta/controller/entity-master.controller.js.map +1 -1
  258. package/dist/module/meta/controller/entity.controller.js +3 -3
  259. package/dist/module/meta/controller/entity.controller.js.map +1 -1
  260. package/dist/module/meta/controller/entity.public.controller.js +1 -0
  261. package/dist/module/meta/controller/entity.public.controller.js.map +1 -1
  262. package/dist/module/meta/controller/media.controller.d.ts +0 -6
  263. package/dist/module/meta/controller/media.controller.js +0 -27
  264. package/dist/module/meta/controller/media.controller.js.map +1 -1
  265. package/dist/module/meta/controller/meta.controller.d.ts +1 -6
  266. package/dist/module/meta/controller/meta.controller.js +2 -19
  267. package/dist/module/meta/controller/meta.controller.js.map +1 -1
  268. package/dist/module/meta/entity/attribute-master.entity.d.ts +12 -14
  269. package/dist/module/meta/entity/attribute-master.entity.js +41 -77
  270. package/dist/module/meta/entity/attribute-master.entity.js.map +1 -1
  271. package/dist/module/meta/entity/base-entity.entity.d.ts +6 -7
  272. package/dist/module/meta/entity/base-entity.entity.js +24 -47
  273. package/dist/module/meta/entity/base-entity.entity.js.map +1 -1
  274. package/dist/module/meta/entity/dynamic.entity.d.ts +3 -0
  275. package/dist/module/{enterprise/service/brand.service.js → meta/entity/dynamic.entity.js} +9 -9
  276. package/dist/module/meta/entity/dynamic.entity.js.map +1 -0
  277. package/dist/module/meta/entity/entity-master.entity.d.ts +6 -9
  278. package/dist/module/meta/entity/entity-master.entity.js +21 -66
  279. package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
  280. package/dist/module/meta/entity/entity-relation-data.entity.d.ts +0 -1
  281. package/dist/module/meta/entity/entity-relation-data.entity.js +1 -7
  282. package/dist/module/meta/entity/entity-relation-data.entity.js.map +1 -1
  283. package/dist/module/meta/entity/entity-relation.entity.d.ts +0 -1
  284. package/dist/module/meta/entity/entity-relation.entity.js +1 -7
  285. package/dist/module/meta/entity/entity-relation.entity.js.map +1 -1
  286. package/dist/module/meta/entity/entity-table-column.entity.d.ts +0 -1
  287. package/dist/module/meta/entity/entity-table-column.entity.js +1 -7
  288. package/dist/module/meta/entity/entity-table-column.entity.js.map +1 -1
  289. package/dist/module/meta/entity/entity-table.entity.d.ts +0 -1
  290. package/dist/module/meta/entity/entity-table.entity.js +1 -7
  291. package/dist/module/meta/entity/entity-table.entity.js.map +1 -1
  292. package/dist/module/meta/entity/media-data.entity.d.ts +0 -2
  293. package/dist/module/meta/entity/media-data.entity.js +0 -8
  294. package/dist/module/meta/entity/media-data.entity.js.map +1 -1
  295. package/dist/module/meta/entity/preference.entity.d.ts +0 -1
  296. package/dist/module/meta/entity/preference.entity.js +1 -7
  297. package/dist/module/meta/entity/preference.entity.js.map +1 -1
  298. package/dist/module/meta/entity/view-master.entity.d.ts +0 -1
  299. package/dist/module/meta/entity/view-master.entity.js +1 -7
  300. package/dist/module/meta/entity/view-master.entity.js.map +1 -1
  301. package/dist/module/meta/entity.module.js +9 -23
  302. package/dist/module/meta/entity.module.js.map +1 -1
  303. package/dist/module/meta/repository/attribute-master.repository.d.ts +9 -3
  304. package/dist/module/meta/repository/attribute-master.repository.js +41 -15
  305. package/dist/module/meta/repository/attribute-master.repository.js.map +1 -1
  306. package/dist/module/meta/repository/entity-master.repository.js +1 -1
  307. package/dist/module/meta/repository/entity-master.repository.js.map +1 -1
  308. package/dist/module/meta/repository/entity-relation.repository.d.ts +1 -0
  309. package/dist/module/meta/repository/entity-relation.repository.js +10 -0
  310. package/dist/module/meta/repository/entity-relation.repository.js.map +1 -1
  311. package/dist/module/meta/service/attribute-master.service.d.ts +7 -7
  312. package/dist/module/meta/service/attribute-master.service.js +74 -49
  313. package/dist/module/meta/service/attribute-master.service.js.map +1 -1
  314. package/dist/module/meta/service/entity-dynamic.service.d.ts +13 -14
  315. package/dist/module/meta/service/entity-dynamic.service.js +215 -80
  316. package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
  317. package/dist/module/meta/service/entity-master.service.d.ts +10 -1
  318. package/dist/module/meta/service/entity-master.service.js +80 -3
  319. package/dist/module/meta/service/entity-master.service.js.map +1 -1
  320. package/dist/module/meta/service/entity-relation.service.d.ts +6 -5
  321. package/dist/module/meta/service/entity-relation.service.js +7 -10
  322. package/dist/module/meta/service/entity-relation.service.js.map +1 -1
  323. package/dist/module/meta/service/entity-service-impl.service.d.ts +4 -4
  324. package/dist/module/meta/service/entity-service-impl.service.js +14 -18
  325. package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
  326. package/dist/module/meta/service/entity-table.service.d.ts +4 -5
  327. package/dist/module/meta/service/entity-table.service.js +24 -45
  328. package/dist/module/meta/service/entity-table.service.js.map +1 -1
  329. package/dist/module/meta/service/entity-validation.service.d.ts +1 -3
  330. package/dist/module/meta/service/entity-validation.service.js +5 -34
  331. package/dist/module/meta/service/entity-validation.service.js.map +1 -1
  332. package/dist/module/meta/service/entity.service.d.ts +2 -2
  333. package/dist/module/meta/service/field-group.service.d.ts +1 -1
  334. package/dist/module/meta/service/media-data.service.d.ts +0 -4
  335. package/dist/module/meta/service/media-data.service.js +0 -129
  336. package/dist/module/meta/service/media-data.service.js.map +1 -1
  337. package/dist/module/meta/service/resolver.service.d.ts +2 -2
  338. package/dist/module/meta/service/resolver.service.js +55 -95
  339. package/dist/module/meta/service/resolver.service.js.map +1 -1
  340. package/dist/module/meta/service/section-master.service.d.ts +1 -1
  341. package/dist/module/meta/service/view-master.service.d.ts +1 -1
  342. package/dist/module/module/module.module.d.ts +0 -2
  343. package/dist/module/module/module.module.js +0 -54
  344. package/dist/module/module/module.module.js.map +1 -1
  345. package/dist/module/notification/entity/notification.entity.d.ts +17 -2
  346. package/dist/module/notification/entity/notification.entity.js +68 -2
  347. package/dist/module/notification/entity/notification.entity.js.map +1 -1
  348. package/dist/module/notification/notification.module.js +3 -12
  349. package/dist/module/notification/notification.module.js.map +1 -1
  350. package/dist/module/notification/service/email.service.d.ts +1 -0
  351. package/dist/module/notification/service/email.service.js +14 -0
  352. package/dist/module/notification/service/email.service.js.map +1 -1
  353. package/dist/module/notification/service/notification.service.d.ts +1 -5
  354. package/dist/module/notification/service/notification.service.js +41 -31
  355. package/dist/module/notification/service/notification.service.js.map +1 -1
  356. package/dist/module/preference_master/entity/preference.entity.d.ts +9 -0
  357. package/dist/module/{module/entity/module-access.entity.js → preference_master/entity/preference.entity.js} +24 -24
  358. package/dist/module/preference_master/entity/preference.entity.js.map +1 -0
  359. package/dist/module/preference_master/preference.service.d.ts +8 -0
  360. package/dist/module/{enterprise/service/enterprise.service.js → preference_master/preference.service.js} +14 -14
  361. package/dist/module/preference_master/preference.service.js.map +1 -0
  362. package/dist/module/preference_master/repo/preference.repository.d.ts +8 -0
  363. package/dist/module/{user/repository/userSession.repository.js → preference_master/repo/preference.repository.js} +25 -22
  364. package/dist/module/preference_master/repo/preference.repository.js.map +1 -0
  365. package/dist/module/user/entity/user-role-mapping.entity.d.ts +0 -12
  366. package/dist/module/user/entity/user-role-mapping.entity.js +0 -62
  367. package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
  368. package/dist/module/workflow/controller/activity-log.controller.d.ts +5 -6
  369. package/dist/module/workflow/entity/action-category.entity.d.ts +0 -1
  370. package/dist/module/workflow/entity/action-category.entity.js +1 -7
  371. package/dist/module/workflow/entity/action-category.entity.js.map +1 -1
  372. package/dist/module/workflow/entity/action-data.entity.d.ts +0 -1
  373. package/dist/module/workflow/entity/action-data.entity.js +1 -6
  374. package/dist/module/workflow/entity/action-data.entity.js.map +1 -1
  375. package/dist/module/workflow/entity/action-resources-mapping.entity.d.ts +0 -1
  376. package/dist/module/workflow/entity/action-resources-mapping.entity.js +1 -7
  377. package/dist/module/workflow/entity/action-resources-mapping.entity.js.map +1 -1
  378. package/dist/module/workflow/entity/action-template-mapping.entity.d.ts +0 -1
  379. package/dist/module/workflow/entity/action-template-mapping.entity.js +1 -7
  380. package/dist/module/workflow/entity/action-template-mapping.entity.js.map +1 -1
  381. package/dist/module/workflow/entity/action.entity.d.ts +0 -1
  382. package/dist/module/workflow/entity/action.entity.js +1 -7
  383. package/dist/module/workflow/entity/action.entity.js.map +1 -1
  384. package/dist/module/workflow/entity/activity-log.entity.d.ts +0 -1
  385. package/dist/module/workflow/entity/activity-log.entity.js +1 -6
  386. package/dist/module/workflow/entity/activity-log.entity.js.map +1 -1
  387. package/dist/module/workflow/entity/comm-template.entity.d.ts +0 -1
  388. package/dist/module/workflow/entity/comm-template.entity.js +1 -7
  389. package/dist/module/workflow/entity/comm-template.entity.js.map +1 -1
  390. package/dist/module/workflow/entity/entity-modification.entity.d.ts +0 -1
  391. package/dist/module/workflow/entity/entity-modification.entity.js +1 -7
  392. package/dist/module/workflow/entity/entity-modification.entity.js.map +1 -1
  393. package/dist/module/workflow/entity/form.entity.d.ts +0 -1
  394. package/dist/module/workflow/entity/form.entity.js +1 -6
  395. package/dist/module/workflow/entity/form.entity.js.map +1 -1
  396. package/dist/module/workflow/entity/stage-action-mapping.entity.d.ts +0 -1
  397. package/dist/module/workflow/entity/stage-action-mapping.entity.js +1 -7
  398. package/dist/module/workflow/entity/stage-action-mapping.entity.js.map +1 -1
  399. package/dist/module/workflow/entity/stage-group.entity.d.ts +0 -1
  400. package/dist/module/workflow/entity/stage-group.entity.js +1 -7
  401. package/dist/module/workflow/entity/stage-group.entity.js.map +1 -1
  402. package/dist/module/workflow/entity/stage-movement-data.entity.d.ts +0 -1
  403. package/dist/module/workflow/entity/stage-movement-data.entity.js +1 -7
  404. package/dist/module/workflow/entity/stage-movement-data.entity.js.map +1 -1
  405. package/dist/module/workflow/entity/stage.entity.d.ts +0 -1
  406. package/dist/module/workflow/entity/stage.entity.js +1 -7
  407. package/dist/module/workflow/entity/stage.entity.js.map +1 -1
  408. package/dist/module/workflow/entity/task-data.entity.d.ts +0 -1
  409. package/dist/module/workflow/entity/task-data.entity.js +1 -6
  410. package/dist/module/workflow/entity/task-data.entity.js.map +1 -1
  411. package/dist/module/workflow/entity/workflow-data.entity.d.ts +0 -1
  412. package/dist/module/workflow/entity/workflow-data.entity.js +1 -10
  413. package/dist/module/workflow/entity/workflow-data.entity.js.map +1 -1
  414. package/dist/module/workflow/entity/workflow.entity.d.ts +0 -1
  415. package/dist/module/workflow/entity/workflow.entity.js +1 -7
  416. package/dist/module/workflow/entity/workflow.entity.js.map +1 -1
  417. package/dist/module/workflow/repository/action-category.repository.js.map +1 -1
  418. package/dist/module/workflow/repository/action-data.repository.d.ts +2 -2
  419. package/dist/module/workflow/repository/action-data.repository.js +9 -17
  420. package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
  421. package/dist/module/workflow/repository/action.repository.d.ts +2 -2
  422. package/dist/module/workflow/repository/action.repository.js +12 -12
  423. package/dist/module/workflow/repository/action.repository.js.map +1 -1
  424. package/dist/module/workflow/repository/activity-log.repository.d.ts +5 -6
  425. package/dist/module/workflow/repository/comm-template.repository.js +2 -2
  426. package/dist/module/workflow/repository/comm-template.repository.js.map +1 -1
  427. package/dist/module/workflow/repository/form-master.repository.d.ts +2 -2
  428. package/dist/module/workflow/repository/form-master.repository.js +2 -2
  429. package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
  430. package/dist/module/workflow/repository/stage-group.repository.d.ts +6 -6
  431. package/dist/module/workflow/repository/stage-movement.repository.d.ts +1 -1
  432. package/dist/module/workflow/repository/stage.repository.d.ts +5 -6
  433. package/dist/module/workflow/repository/stage.repository.js +8 -8
  434. package/dist/module/workflow/repository/task.repository.d.ts +1 -1
  435. package/dist/module/workflow/repository/task.repository.js +5 -5
  436. package/dist/module/workflow/repository/task.repository.js.map +1 -1
  437. package/dist/module/workflow/repository/workflow.repository.js +1 -1
  438. package/dist/module/workflow/repository/workflow.repository.js.map +1 -1
  439. package/dist/module/workflow/service/action-category.service.js.map +1 -1
  440. package/dist/module/workflow/service/action-data.service.d.ts +1 -1
  441. package/dist/module/workflow/service/action-data.service.js +1 -2
  442. package/dist/module/workflow/service/action-data.service.js.map +1 -1
  443. package/dist/module/workflow/service/action-template-mapping.service.js +2 -2
  444. package/dist/module/workflow/service/action.service.d.ts +1 -1
  445. package/dist/module/workflow/service/action.service.js +15 -17
  446. package/dist/module/workflow/service/action.service.js.map +1 -1
  447. package/dist/module/workflow/service/activity-log.service.d.ts +6 -7
  448. package/dist/module/workflow/service/activity-log.service.js.map +1 -1
  449. package/dist/module/workflow/service/comm-template.service.d.ts +1 -1
  450. package/dist/module/workflow/service/comm-template.service.js +0 -2
  451. package/dist/module/workflow/service/comm-template.service.js.map +1 -1
  452. package/dist/module/workflow/service/entity-modification.service.d.ts +1 -1
  453. package/dist/module/workflow/service/entity-modification.service.js +2 -3
  454. package/dist/module/workflow/service/entity-modification.service.js.map +1 -1
  455. package/dist/module/workflow/service/form-master.service.d.ts +1 -1
  456. package/dist/module/workflow/service/form-master.service.js +2 -2
  457. package/dist/module/workflow/service/form-master.service.js.map +1 -1
  458. package/dist/module/workflow/service/populate-workflow.service.d.ts +2 -6
  459. package/dist/module/workflow/service/populate-workflow.service.js +6 -17
  460. package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
  461. package/dist/module/workflow/service/stage-group.service.d.ts +1 -1
  462. package/dist/module/workflow/service/stage.service.d.ts +1 -1
  463. package/dist/module/workflow/service/stage.service.js.map +1 -1
  464. package/dist/module/workflow/service/task.service.d.ts +1 -1
  465. package/dist/module/workflow/service/task.service.js +10 -13
  466. package/dist/module/workflow/service/task.service.js.map +1 -1
  467. package/dist/module/workflow/service/workflow-meta.service.d.ts +1 -1
  468. package/dist/module/workflow/service/workflow-meta.service.js +2 -7
  469. package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
  470. package/dist/module/workflow/service/workflow.service.d.ts +1 -1
  471. package/dist/module/workflow/service/workflow.service.js +2 -2
  472. package/dist/module/workflow/service/workflow.service.js.map +1 -1
  473. package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +1 -3
  474. package/dist/module/workflow-automation/entity/workflow-automation.entity.js +1 -9
  475. package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -1
  476. package/dist/module/workflow-automation/service/schedule-handler.service.js +11 -12
  477. package/dist/module/workflow-automation/service/schedule-handler.service.js.map +1 -1
  478. package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +8 -10
  479. package/dist/module/workflow-automation/service/workflow-automation.service.js +18 -15
  480. package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
  481. package/dist/module/workflow-automation/workflow-automation.module.js +3 -1
  482. package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
  483. package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.d.ts +2 -3
  484. package/dist/module/workflow-schedule/processors/schedule.processor.js +5 -9
  485. package/dist/module/workflow-schedule/processors/schedule.processor.js.map +1 -1
  486. package/dist/module/workflow-schedule/service/workflow-schedule.service.d.ts +1 -1
  487. package/dist/module/workflow-schedule/service/workflow-schedule.service.js +4 -13
  488. package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -1
  489. package/dist/table.config.d.ts +2 -23
  490. package/dist/table.config.js +21 -33
  491. package/dist/table.config.js.map +1 -1
  492. package/dist/tsconfig.build.tsbuildinfo +1 -1
  493. package/dist/utils/service/reflection-helper.service.js +2 -2
  494. package/docs/modules/event-driven-integration-design.md +91 -91
  495. package/docs/modules/integration.md +250 -250
  496. package/eslint.config.mjs +34 -34
  497. package/nest-cli.json +14 -14
  498. package/package.json +128 -125
  499. package/server.log +850 -0
  500. package/src/app.controller.ts +12 -13
  501. package/src/app.module.ts +62 -68
  502. package/src/app.service.ts +8 -8
  503. package/src/config/bull.config.ts +69 -69
  504. package/src/config/config.module.ts +17 -17
  505. package/src/config/database.config.ts +48 -48
  506. package/src/constant/attribute.constant.ts +9 -0
  507. package/src/constant/db-data-type.constant.ts +160 -0
  508. package/src/constant/entity.constant.ts +4 -0
  509. package/src/constant/global.constant.ts +67 -67
  510. package/src/constant/status.constant.ts +4 -0
  511. package/src/core.module.ts +96 -94
  512. package/src/decorators/roles.decorator.ts +7 -7
  513. package/src/dtos/response.dto.ts +6 -6
  514. package/src/dtos/response.ts +5 -5
  515. package/src/index.ts +1 -1
  516. package/src/module/auth/auth.module.ts +72 -49
  517. package/src/module/auth/controller/auth.controller.ts +28 -28
  518. package/src/module/auth/dto/user.dto.ts +56 -0
  519. package/src/module/auth/guards/google-auth.guard.ts +9 -9
  520. package/src/module/auth/guards/jwt.guard.ts +22 -22
  521. package/src/module/auth/services/auth.service.ts +56 -56
  522. package/src/module/auth/services/jwt.service.ts +11 -11
  523. package/src/module/auth/strategies/google.strategy.ts +54 -54
  524. package/src/module/auth/strategies/jwt.strategy.ts +64 -58
  525. package/src/module/auth/strategies/local.strategy.ts +13 -13
  526. package/src/module/dashboard/controller/dashboard.controller.ts +38 -38
  527. package/src/module/dashboard/dashboard.module.ts +19 -21
  528. package/src/module/dashboard/entity/dashboard_page_data.entity.ts +23 -27
  529. package/src/module/dashboard/entity/widget_master.entity.ts +15 -18
  530. package/src/module/dashboard/repository/dashboard.repository.ts +49 -49
  531. package/src/module/dashboard/service/dashboard.service.ts +69 -72
  532. package/src/module/eav/EAV_USAGE_GUIDE.md +351 -0
  533. package/src/module/eav/controller/eav.controller.ts +119 -0
  534. package/src/module/eav/dto/eav-operation.dto.ts +62 -0
  535. package/src/module/eav/eav.module.ts +80 -0
  536. package/src/module/eav/entity/eav-boolean.entity.ts +26 -0
  537. package/src/module/eav/entity/eav-date.entity.ts +25 -0
  538. package/src/module/eav/entity/eav-decimal.entity.ts +25 -0
  539. package/src/module/eav/entity/eav-int.entity.ts +25 -0
  540. package/src/module/eav/entity/eav-json.entity.ts +25 -0
  541. package/src/module/eav/entity/eav-text.entity.ts +25 -0
  542. package/src/module/eav/entity/eav-time.entity.ts +25 -0
  543. package/src/module/eav/entity/eav-timestamp.entity.ts +25 -0
  544. package/src/module/eav/entity/eav-varchar.entity.ts +25 -0
  545. package/src/module/eav/interface/eav-strategy.interface.ts +32 -0
  546. package/src/module/eav/repository/eav-boolean.repository.ts +67 -0
  547. package/src/module/eav/repository/eav-date.repository.ts +67 -0
  548. package/src/module/eav/repository/eav-decimal.repository.ts +67 -0
  549. package/src/module/eav/repository/eav-int.repository.ts +67 -0
  550. package/src/module/eav/repository/eav-json.repository.ts +67 -0
  551. package/src/module/eav/repository/eav-text.repository.ts +67 -0
  552. package/src/module/eav/repository/eav-time.repository.ts +67 -0
  553. package/src/module/eav/repository/eav-timestamp.repository.ts +67 -0
  554. package/src/module/eav/repository/eav-varchar.repository.ts +67 -0
  555. package/src/module/eav/service/eav-boolean.service.ts +64 -0
  556. package/src/module/eav/service/eav-date.service.ts +64 -0
  557. package/src/module/eav/service/eav-decimal.service.ts +64 -0
  558. package/src/module/eav/service/eav-factory.service.ts +93 -0
  559. package/src/module/eav/service/eav-int.service.ts +64 -0
  560. package/src/module/eav/service/eav-json.service.ts +64 -0
  561. package/src/module/eav/service/eav-text.service.ts +64 -0
  562. package/src/module/eav/service/eav-time.service.ts +64 -0
  563. package/src/module/eav/service/eav-timestamp.service.ts +64 -0
  564. package/src/module/eav/service/eav-varchar.service.ts +65 -0
  565. package/src/module/eav/service/eav.service.ts +116 -0
  566. package/src/module/entity_json/controller/entity_json.controller.ts +75 -60
  567. package/src/module/entity_json/docs/FlatJson_Filterin_System.md +2803 -2803
  568. package/src/module/entity_json/entity/entityJson.entity.ts +42 -42
  569. package/src/module/entity_json/entity_json.module.ts +22 -22
  570. package/src/module/entity_json/service/entityJson.repository.ts +37 -37
  571. package/src/module/entity_json/service/entity_json.service.ts +492 -486
  572. package/src/module/export/controller/export.controller.ts +83 -83
  573. package/src/module/export/export.module.ts +14 -14
  574. package/src/module/export/service/export.service.ts +107 -105
  575. package/src/module/filter/controller/filter.controller.ts +89 -87
  576. package/src/module/filter/dto/filter-request.dto.ts +41 -39
  577. package/src/module/filter/entity/saved-filter-detail.entity.ts +37 -41
  578. package/src/module/filter/entity/saved-filter-master.entity.ts +30 -35
  579. package/src/module/filter/filter.module.ts +33 -42
  580. package/src/module/filter/repository/saved-filter.repository.ts +247 -249
  581. package/src/module/filter/repository/saved.filter-detail.repository.ts +19 -19
  582. package/src/module/filter/service/filter-evaluator.service.ts +82 -82
  583. package/src/module/filter/service/filter.service.ts +1389 -1406
  584. package/src/module/filter/service/saved-filter.service.ts +164 -154
  585. package/src/module/ics/controller/ics.controller.ts +21 -21
  586. package/src/module/ics/dto/ics.dto.ts +55 -55
  587. package/src/module/ics/ics.module.ts +13 -13
  588. package/src/module/ics/service/ics.service.ts +57 -57
  589. package/src/module/integration/controller/calender-event.controller.ts +31 -31
  590. package/src/module/integration/controller/integration.controller.ts +662 -662
  591. package/src/module/integration/controller/wrapper.controller.ts +37 -37
  592. package/src/module/integration/dto/create-config.dto.ts +526 -526
  593. package/src/module/integration/entity/integration-config.entity.ts +112 -112
  594. package/src/module/integration/entity/integration-entity-mapper.entity.ts +14 -14
  595. package/src/module/integration/entity/integration-source.entity.ts +17 -17
  596. package/src/module/integration/entity/user-integration.entity.ts +71 -71
  597. package/src/module/integration/examples/usage.example.ts +338 -338
  598. package/src/module/integration/factories/base.factory.ts +7 -7
  599. package/src/module/integration/factories/email.factory.ts +49 -49
  600. package/src/module/integration/factories/integration.factory.ts +121 -121
  601. package/src/module/integration/factories/sms.factory.ts +51 -51
  602. package/src/module/integration/factories/telephone.factory.ts +41 -41
  603. package/src/module/integration/factories/whatsapp.factory.ts +56 -56
  604. package/src/module/integration/integration.module.ts +110 -110
  605. package/src/module/integration/service/calendar-event.service.ts +118 -118
  606. package/src/module/integration/service/integration-entity-mapper.service.ts +17 -17
  607. package/src/module/integration/service/integration-queue.service.ts +229 -229
  608. package/src/module/integration/service/integration.service.ts +2632 -2653
  609. package/src/module/integration/service/oauth.service.ts +224 -226
  610. package/src/module/integration/service/wrapper.service.ts +753 -754
  611. package/src/module/integration/strategies/email/gmail-api.strategy.ts +281 -307
  612. package/src/module/integration/strategies/email/outlook-api.strategy.ts +44 -44
  613. package/src/module/integration/strategies/email/outlook.strategy.ts +64 -64
  614. package/src/module/integration/strategies/email/sendgrid-api.strategy.ts +260 -263
  615. package/src/module/integration/strategies/integration.strategy.ts +97 -97
  616. package/src/module/integration/strategies/sms/gupshup-sms.strategy.ts +146 -146
  617. package/src/module/integration/strategies/sms/msg91-sms.strategy.ts +164 -164
  618. package/src/module/integration/strategies/sms/tubelight-sms.strategy.ts +163 -163
  619. package/src/module/integration/strategies/telephone/ozonetel-voice.strategy.ts +238 -238
  620. package/src/module/integration/strategies/telephone/tubelight-voice.strategy.ts +210 -210
  621. package/src/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.ts +359 -359
  622. package/src/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.ts +372 -372
  623. package/src/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.ts +403 -403
  624. package/src/module/integration/strategies/whatsapp/whatsapp.strategy.ts +57 -57
  625. package/src/module/layout/controller/layout.controller.ts +38 -47
  626. package/src/module/layout/entity/header-items.entity.ts +28 -28
  627. package/src/module/layout/entity/header-section.entity.ts +13 -19
  628. package/src/module/layout/layout.module.ts +20 -21
  629. package/src/module/layout/repository/header-items.repository.ts +18 -18
  630. package/src/module/layout/repository/header-section.repository.ts +16 -22
  631. package/src/module/layout/service/header-section.service.ts +25 -25
  632. package/src/module/layout_preference/controller/layout_preference.controller.ts +76 -76
  633. package/src/module/layout_preference/entity/layout_preference.entity.ts +28 -28
  634. package/src/module/layout_preference/layout_preference.module.ts +22 -22
  635. package/src/module/layout_preference/repository/layout_preference.repository.ts +65 -65
  636. package/src/module/layout_preference/service/layout_preference.service.ts +191 -191
  637. package/src/module/linked_attributes/controller/linked_attributes.controller.ts +137 -137
  638. package/src/module/linked_attributes/dto/create-linked-attribute-smart.dto.ts +54 -54
  639. package/src/module/linked_attributes/entity/linked_attribute.entity.ts +51 -51
  640. package/src/module/linked_attributes/linked_attributes.module.ts +23 -23
  641. package/src/module/linked_attributes/repository/linked_attribute.repository.ts +12 -12
  642. package/src/module/linked_attributes/service/linked_attributes.service.ts +648 -648
  643. package/src/module/linked_attributes/test/linked-attributes.service.spec.ts +244 -244
  644. package/src/module/listmaster/controller/list-master.controller.ts +206 -230
  645. package/src/module/listmaster/entity/list-master-items.entity.ts +30 -43
  646. package/src/module/listmaster/entity/list-master.entity.ts +23 -33
  647. package/src/module/listmaster/listmaster.module.ts +46 -46
  648. package/src/module/listmaster/repository/list-master-items.repository.ts +225 -173
  649. package/src/module/listmaster/repository/list-master.repository.ts +56 -56
  650. package/src/module/listmaster/service/list-master-engine.ts +19 -19
  651. package/src/module/listmaster/service/list-master-extension.interface.ts +4 -4
  652. package/src/module/listmaster/service/list-master-item.service.ts +382 -280
  653. package/src/module/listmaster/service/list-master-registry.ts +15 -15
  654. package/src/module/listmaster/service/list-master.service.ts +767 -527
  655. package/src/module/mapper/controller/field-mapper.controller.ts +76 -76
  656. package/src/module/mapper/controller/mapper.controller.ts +20 -20
  657. package/src/module/mapper/dto/field-mapper.dto.ts +14 -14
  658. package/src/module/mapper/entity/field-lovs.entity.ts +15 -19
  659. package/src/module/mapper/entity/field-mapper.entity.ts +49 -53
  660. package/src/module/mapper/entity/mapper.entity.ts +9 -16
  661. package/src/module/mapper/mapper.module.ts +35 -35
  662. package/src/module/mapper/repository/field-lovs.repository.ts +35 -35
  663. package/src/module/mapper/repository/field-mapper.repository.ts +42 -42
  664. package/src/module/mapper/repository/mapper.repository.ts +32 -32
  665. package/src/module/mapper/service/field-mapper.service.ts +268 -269
  666. package/src/module/mapper/service/mapper.service.ts +80 -80
  667. package/src/module/master/controller/master.controller.ts +71 -74
  668. package/src/module/master/service/master.service.ts +460 -484
  669. package/src/module/meta/controller/attribute-master.controller.ts +82 -96
  670. package/src/module/meta/controller/entity-dynamic.controller.ts +123 -125
  671. package/src/module/meta/controller/entity-master.controller.ts +41 -41
  672. package/src/module/meta/controller/entity-relation.controller.ts +36 -36
  673. package/src/module/meta/controller/entity.controller.ts +301 -308
  674. package/src/module/meta/controller/entity.public.controller.ts +76 -75
  675. package/src/module/meta/controller/media.controller.ts +135 -167
  676. package/src/module/meta/controller/meta.controller.ts +80 -101
  677. package/src/module/meta/controller/view-master.controller.ts +79 -79
  678. package/src/module/meta/dto/entity-list-data.dto.ts +6 -6
  679. package/src/module/meta/dto/entity-tab.dto.ts +4 -4
  680. package/src/module/meta/dto/entity-table.dto.ts +12 -12
  681. package/src/module/meta/entity/attribute-master.entity.ts +62 -92
  682. package/src/module/meta/entity/base-entity.entity.ts +52 -75
  683. package/src/module/meta/entity/dynamic.entity.ts +6 -0
  684. package/src/module/meta/entity/entity-master.entity.ts +53 -91
  685. package/src/module/meta/entity/entity-relation-data.entity.ts +24 -29
  686. package/src/module/meta/entity/entity-relation.entity.ts +18 -23
  687. package/src/module/meta/entity/entity-table-column.entity.ts +56 -61
  688. package/src/module/meta/entity/entity-table.entity.ts +45 -50
  689. package/src/module/meta/entity/media-data.entity.ts +32 -38
  690. package/src/module/meta/entity/preference.entity.ts +57 -62
  691. package/src/module/meta/entity/view-master.entity.ts +36 -41
  692. package/src/module/meta/entity.module.ts +148 -165
  693. package/src/module/meta/repository/attribute-master.repository.ts +206 -164
  694. package/src/module/meta/repository/entity-attribute-update.repository.ts +48 -48
  695. package/src/module/meta/repository/entity-master.repository.ts +120 -120
  696. package/src/module/meta/repository/entity-relation.repository.ts +36 -22
  697. package/src/module/meta/repository/entity-table-column.repository.ts +39 -39
  698. package/src/module/meta/repository/entity-table.repository.ts +53 -53
  699. package/src/module/meta/repository/media-data.repository.ts +50 -50
  700. package/src/module/meta/repository/preference.repository.ts +20 -20
  701. package/src/module/meta/repository/user-app-mapping.repository.ts +28 -28
  702. package/src/module/meta/repository/view-master.repository.ts +42 -42
  703. package/src/module/meta/service/attribute-master.service.ts +254 -160
  704. package/src/module/meta/service/common.service.ts +9 -9
  705. package/src/module/meta/service/entity-attribute-update.service.ts +26 -26
  706. package/src/module/meta/service/entity-dynamic.service.ts +993 -835
  707. package/src/module/meta/service/entity-master.service.ts +288 -172
  708. package/src/module/meta/service/entity-realation-data.service.ts +9 -9
  709. package/src/module/meta/service/entity-relation.service.ts +85 -78
  710. package/src/module/meta/service/entity-service-impl.service.ts +394 -389
  711. package/src/module/meta/service/entity-table-column.service.ts +26 -26
  712. package/src/module/meta/service/entity-table.service.ts +157 -171
  713. package/src/module/meta/service/entity-validation.service.ts +187 -188
  714. package/src/module/meta/service/entity.service.ts +48 -48
  715. package/src/module/meta/service/field-group.service.ts +103 -103
  716. package/src/module/meta/service/media-data.service.ts +385 -610
  717. package/src/module/meta/service/preference.service.ts +16 -16
  718. package/src/module/meta/service/resolver.service.ts +260 -347
  719. package/src/module/meta/service/section-master.service.ts +104 -104
  720. package/src/module/meta/service/update-form-json.service.ts +22 -22
  721. package/src/module/meta/service/user-app-mapping.service.ts +17 -17
  722. package/src/module/meta/service/view-master.service.ts +127 -127
  723. package/src/module/microservice-client/microservice-clients.module.ts +13 -13
  724. package/src/module/microservice-client/service/microservice-client-factory.ts +37 -37
  725. package/src/module/microservice-client/service/microservice-clients.ts +4 -4
  726. package/src/module/module/module.module.ts +0 -42
  727. package/src/module/notification/controller/notification.controller.ts +58 -58
  728. package/src/module/notification/entity/notification.entity.ts +76 -26
  729. package/src/module/notification/entity/otp.entity.ts +28 -28
  730. package/src/module/notification/firebase-admin.config.ts +22 -22
  731. package/src/module/notification/notification.module.ts +63 -71
  732. package/src/module/notification/repository/otp.repository.ts +27 -27
  733. package/src/module/notification/service/email.service.ts +142 -127
  734. package/src/module/notification/service/notification.service.ts +163 -146
  735. package/src/module/preference_master/entity/preference.entity.ts +25 -0
  736. package/src/module/preference_master/preference.service.ts +27 -0
  737. package/src/module/preference_master/repo/preference.repository.ts +36 -0
  738. package/src/module/third-party-module/entity/third-party-api-registry.entity.ts +52 -52
  739. package/src/module/third-party-module/repository/third-party-api-registry.repository.ts +20 -20
  740. package/src/module/third-party-module/service/api-registry.service.ts +13 -13
  741. package/src/module/third-party-module/third-party.module.ts +12 -12
  742. package/src/module/user/entity/user-role-mapping.entity.ts +0 -38
  743. package/src/module/workflow/controller/action-category.controller.ts +54 -54
  744. package/src/module/workflow/controller/action-resource-mapping.controller.ts +23 -23
  745. package/src/module/workflow/controller/action-template-mapping.controller.ts +35 -35
  746. package/src/module/workflow/controller/action.controller.ts +111 -111
  747. package/src/module/workflow/controller/activity-log.controller.ts +55 -55
  748. package/src/module/workflow/controller/comm-template.controller.ts +43 -43
  749. package/src/module/workflow/controller/entity-modification.controller.ts +35 -35
  750. package/src/module/workflow/controller/form-master.controller.ts +43 -43
  751. package/src/module/workflow/controller/stage-group.controller.ts +49 -49
  752. package/src/module/workflow/controller/stage.controller.ts +51 -51
  753. package/src/module/workflow/controller/task.controller.ts +77 -77
  754. package/src/module/workflow/controller/workflow-list-master.controller.ts +44 -44
  755. package/src/module/workflow/controller/workflow-meta.controller.ts +80 -80
  756. package/src/module/workflow/controller/workflow.controller.ts +67 -67
  757. package/src/module/workflow/entity/action-category.entity.ts +33 -38
  758. package/src/module/workflow/entity/action-data.entity.ts +51 -55
  759. package/src/module/workflow/entity/action-resources-mapping.entity.ts +21 -29
  760. package/src/module/workflow/entity/action-template-mapping.entity.ts +12 -17
  761. package/src/module/workflow/entity/action.entity.ts +48 -53
  762. package/src/module/workflow/entity/activity-log.entity.ts +39 -43
  763. package/src/module/workflow/entity/comm-template.entity.ts +38 -43
  764. package/src/module/workflow/entity/entity-modification.entity.ts +33 -38
  765. package/src/module/workflow/entity/form.entity.ts +21 -25
  766. package/src/module/workflow/entity/stage-action-mapping.entity.ts +12 -17
  767. package/src/module/workflow/entity/stage-group.entity.ts +18 -23
  768. package/src/module/workflow/entity/stage-movement-data.entity.ts +33 -38
  769. package/src/module/workflow/entity/stage.entity.ts +15 -20
  770. package/src/module/workflow/entity/task-data.entity.ts +84 -88
  771. package/src/module/workflow/entity/template-attach-mapper.entity.ts +30 -30
  772. package/src/module/workflow/entity/workflow-data.entity.ts +6 -11
  773. package/src/module/workflow/entity/workflow-level-mapping.entity.ts +18 -18
  774. package/src/module/workflow/entity/workflow.entity.ts +15 -20
  775. package/src/module/workflow/repository/action-category.repository.ts +78 -79
  776. package/src/module/workflow/repository/action-data.repository.ts +345 -354
  777. package/src/module/workflow/repository/action.repository.ts +339 -339
  778. package/src/module/workflow/repository/activity-log.repository.ts +148 -148
  779. package/src/module/workflow/repository/comm-template.repository.ts +157 -157
  780. package/src/module/workflow/repository/form-master.repository.ts +50 -50
  781. package/src/module/workflow/repository/stage-group.repository.ts +186 -186
  782. package/src/module/workflow/repository/stage-movement.repository.ts +217 -217
  783. package/src/module/workflow/repository/stage.repository.ts +160 -160
  784. package/src/module/workflow/repository/task.repository.ts +154 -156
  785. package/src/module/workflow/repository/workflow.repository.ts +42 -42
  786. package/src/module/workflow/service/action-category.service.ts +32 -33
  787. package/src/module/workflow/service/action-data.service.ts +62 -62
  788. package/src/module/workflow/service/action-resources-mapping.service.ts +10 -10
  789. package/src/module/workflow/service/action-template-mapping.service.ts +137 -137
  790. package/src/module/workflow/service/action.service.ts +300 -302
  791. package/src/module/workflow/service/activity-log.service.ts +106 -107
  792. package/src/module/workflow/service/comm-template.service.ts +179 -181
  793. package/src/module/workflow/service/entity-modification.service.ts +55 -61
  794. package/src/module/workflow/service/form-master.service.ts +35 -35
  795. package/src/module/workflow/service/populate-workflow.service.ts +313 -325
  796. package/src/module/workflow/service/stage-action-mapping.service.ts +5 -5
  797. package/src/module/workflow/service/stage-group.service.ts +325 -325
  798. package/src/module/workflow/service/stage.service.ts +196 -197
  799. package/src/module/workflow/service/task.service.ts +547 -551
  800. package/src/module/workflow/service/workflow-list-master.service.ts +68 -68
  801. package/src/module/workflow/service/workflow-meta.service.ts +635 -640
  802. package/src/module/workflow/service/workflow.service.ts +212 -213
  803. package/src/module/workflow/workflow.module.ts +180 -180
  804. package/src/module/workflow-automation/SCHEDULING_GUIDE.md +145 -145
  805. package/src/module/workflow-automation/controller/workflow-automation.controller.ts +43 -43
  806. package/src/module/workflow-automation/entity/workflow-automation-action.entity.ts +26 -26
  807. package/src/module/workflow-automation/entity/workflow-automation.entity.ts +35 -40
  808. package/src/module/workflow-automation/interface/action.decorator.ts +7 -7
  809. package/src/module/workflow-automation/interface/action.interface.ts +5 -5
  810. package/src/module/workflow-automation/service/action-registery.service.ts +35 -35
  811. package/src/module/workflow-automation/service/schedule-handler.service.ts +167 -168
  812. package/src/module/workflow-automation/service/workflow-automation-engine.service.ts +219 -219
  813. package/src/module/workflow-automation/service/workflow-automation.service.ts +486 -474
  814. package/src/module/workflow-automation/workflow-automation.module.ts +55 -54
  815. package/src/module/workflow-schedule/INSTALLATION.md +244 -244
  816. package/src/module/workflow-schedule/MULTI_PROJECT_GUIDE.md +196 -196
  817. package/src/module/workflow-schedule/README.md +422 -422
  818. package/src/module/workflow-schedule/constants/schedule.constants.ts +48 -48
  819. package/src/module/workflow-schedule/controller/workflow-schedule.controller.ts +253 -253
  820. package/src/module/workflow-schedule/docs/CLAUDE_CODE_GUIDE.md +510 -510
  821. package/src/module/workflow-schedule/docs/CLAUDE_CODE_PROMPT.md +362 -362
  822. package/src/module/workflow-schedule/docs/RUN_CLAUDE_CODE.sh +68 -68
  823. package/src/module/workflow-schedule/dto/create-schedule.dto.ts +147 -147
  824. package/src/module/workflow-schedule/dto/get-execution-logs.dto.ts +119 -119
  825. package/src/module/workflow-schedule/dto/update-schedule.dto.ts +96 -96
  826. package/src/module/workflow-schedule/entities/scheduled-workflow.entity.ts +148 -148
  827. package/src/module/workflow-schedule/entities/workflow-execution-log.entity.ts +154 -154
  828. package/src/module/workflow-schedule/interfaces/schedule-job-data.interface.ts +51 -53
  829. package/src/module/workflow-schedule/interfaces/workflow-schedule-options.interface.ts +12 -12
  830. package/src/module/workflow-schedule/processors/schedule.processor.ts +616 -620
  831. package/src/module/workflow-schedule/service/workflow-schedule.service.ts +588 -597
  832. package/src/module/workflow-schedule/workflow-schedule.module.ts +67 -67
  833. package/src/resources/dev.properties.yaml +34 -31
  834. package/src/resources/local.properties.yaml +27 -27
  835. package/src/resources/properties.module.ts +12 -12
  836. package/src/resources/properties.yaml.ts +11 -11
  837. package/src/resources/uat.properties.yaml +31 -31
  838. package/src/table.config.ts +123 -135
  839. package/src/utils/dto/excel-data.dto.ts +14 -14
  840. package/src/utils/dto/excelsheet-data.dto.ts +5 -5
  841. package/src/utils/service/base64util.service.ts +18 -18
  842. package/src/utils/service/clockIDGenUtil.service.ts +21 -21
  843. package/src/utils/service/codeGenerator.service.ts +22 -22
  844. package/src/utils/service/dateUtil.service.ts +17 -17
  845. package/src/utils/service/encryptUtil.service.ts +97 -97
  846. package/src/utils/service/excel-helper.service.ts +72 -72
  847. package/src/utils/service/excelUtil.service.ts +15 -15
  848. package/src/utils/service/file-util.service.ts +11 -11
  849. package/src/utils/service/json-util.service.ts +23 -23
  850. package/src/utils/service/loggingUtil.service.ts +88 -88
  851. package/src/utils/service/reflection-helper.service.ts +62 -62
  852. package/src/utils/service/wbsCodeGen.service.ts +8 -8
  853. package/src/utils/utils.module.ts +27 -27
  854. package/tsconfig.build.json +4 -4
  855. package/tsconfig.json +24 -24
  856. package/dist/migrations/1732612800000-AddEntityJsonGinIndex.d.ts +0 -6
  857. package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js +0 -32
  858. package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js.map +0 -1
  859. package/dist/module/auth/guards/role.guard.d.ts +0 -9
  860. package/dist/module/auth/guards/role.guard.js +0 -59
  861. package/dist/module/auth/guards/role.guard.js.map +0 -1
  862. package/dist/module/enterprise/controller/organization.controller.d.ts +0 -14
  863. package/dist/module/enterprise/controller/organization.controller.js +0 -59
  864. package/dist/module/enterprise/controller/organization.controller.js.map +0 -1
  865. package/dist/module/enterprise/enterprise.module.d.ts +0 -2
  866. package/dist/module/enterprise/enterprise.module.js +0 -57
  867. package/dist/module/enterprise/enterprise.module.js.map +0 -1
  868. package/dist/module/enterprise/entity/enterprise.entity.d.ts +0 -13
  869. package/dist/module/enterprise/entity/enterprise.entity.js +0 -64
  870. package/dist/module/enterprise/entity/enterprise.entity.js.map +0 -1
  871. package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +0 -5
  872. package/dist/module/enterprise/entity/organization-app-mapping.entity.js +0 -32
  873. package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +0 -1
  874. package/dist/module/enterprise/entity/organization.entity.d.ts +0 -30
  875. package/dist/module/enterprise/entity/organization.entity.js +0 -136
  876. package/dist/module/enterprise/entity/organization.entity.js.map +0 -1
  877. package/dist/module/enterprise/repository/enterprise.repository.d.ts +0 -8
  878. package/dist/module/enterprise/repository/enterprise.repository.js +0 -48
  879. package/dist/module/enterprise/repository/enterprise.repository.js.map +0 -1
  880. package/dist/module/enterprise/repository/organization.repository.d.ts +0 -8
  881. package/dist/module/enterprise/repository/organization.repository.js +0 -41
  882. package/dist/module/enterprise/repository/organization.repository.js.map +0 -1
  883. package/dist/module/enterprise/repository/school.repository.d.ts +0 -8
  884. package/dist/module/enterprise/repository/school.repository.js +0 -226
  885. package/dist/module/enterprise/repository/school.repository.js.map +0 -1
  886. package/dist/module/enterprise/service/brand.service.d.ts +0 -3
  887. package/dist/module/enterprise/service/brand.service.js.map +0 -1
  888. package/dist/module/enterprise/service/enterprise.service.d.ts +0 -8
  889. package/dist/module/enterprise/service/enterprise.service.js.map +0 -1
  890. package/dist/module/enterprise/service/organization-app-mapping.service.d.ts +0 -2
  891. package/dist/module/enterprise/service/organization-app-mapping.service.js +0 -17
  892. package/dist/module/enterprise/service/organization-app-mapping.service.js.map +0 -1
  893. package/dist/module/enterprise/service/organization.service.d.ts +0 -19
  894. package/dist/module/enterprise/service/organization.service.js +0 -120
  895. package/dist/module/enterprise/service/organization.service.js.map +0 -1
  896. package/dist/module/filter/service/flatjson-filter.service.d.ts +0 -32
  897. package/dist/module/filter/service/flatjson-filter.service.js +0 -632
  898. package/dist/module/filter/service/flatjson-filter.service.js.map +0 -1
  899. package/dist/module/lead/controller/lead.controller.d.ts +0 -20
  900. package/dist/module/lead/controller/lead.controller.js +0 -58
  901. package/dist/module/lead/controller/lead.controller.js.map +0 -1
  902. package/dist/module/lead/lead.module.d.ts +0 -2
  903. package/dist/module/lead/lead.module.js +0 -26
  904. package/dist/module/lead/lead.module.js.map +0 -1
  905. package/dist/module/lead/repository/lead.repository.d.ts +0 -10
  906. package/dist/module/lead/repository/lead.repository.js +0 -53
  907. package/dist/module/lead/repository/lead.repository.js.map +0 -1
  908. package/dist/module/lead/service/lead.service.d.ts +0 -20
  909. package/dist/module/lead/service/lead.service.js +0 -55
  910. package/dist/module/lead/service/lead.service.js.map +0 -1
  911. package/dist/module/meta/controller/app-master.controller.d.ts +0 -9
  912. package/dist/module/meta/controller/app-master.controller.js +0 -51
  913. package/dist/module/meta/controller/app-master.controller.js.map +0 -1
  914. package/dist/module/meta/entity/app-master.entity.d.ts +0 -13
  915. package/dist/module/meta/entity/app-master.entity.js +0 -62
  916. package/dist/module/meta/entity/app-master.entity.js.map +0 -1
  917. package/dist/module/meta/repository/app-master.repository.d.ts +0 -7
  918. package/dist/module/meta/repository/app-master.repository.js +0 -36
  919. package/dist/module/meta/repository/app-master.repository.js.map +0 -1
  920. package/dist/module/meta/service/app-master.service.d.ts +0 -8
  921. package/dist/module/meta/service/app-master.service.js +0 -45
  922. package/dist/module/meta/service/app-master.service.js.map +0 -1
  923. package/dist/module/meta/service/populate-meta.service.d.ts +0 -13
  924. package/dist/module/meta/service/populate-meta.service.js +0 -206
  925. package/dist/module/meta/service/populate-meta.service.js.map +0 -1
  926. package/dist/module/module/controller/menu.controller.d.ts +0 -8
  927. package/dist/module/module/controller/menu.controller.js +0 -41
  928. package/dist/module/module/controller/menu.controller.js.map +0 -1
  929. package/dist/module/module/controller/module-access.controller.d.ts +0 -35
  930. package/dist/module/module/controller/module-access.controller.js +0 -148
  931. package/dist/module/module/controller/module-access.controller.js.map +0 -1
  932. package/dist/module/module/entity/menu.entity.d.ts +0 -15
  933. package/dist/module/module/entity/menu.entity.js +0 -72
  934. package/dist/module/module/entity/menu.entity.js.map +0 -1
  935. package/dist/module/module/entity/module-access.entity.d.ts +0 -9
  936. package/dist/module/module/entity/module-access.entity.js.map +0 -1
  937. package/dist/module/module/entity/module-action.entity.d.ts +0 -6
  938. package/dist/module/module/entity/module-action.entity.js +0 -37
  939. package/dist/module/module/entity/module-action.entity.js.map +0 -1
  940. package/dist/module/module/entity/module.entity.d.ts +0 -18
  941. package/dist/module/module/entity/module.entity.js +0 -84
  942. package/dist/module/module/entity/module.entity.js.map +0 -1
  943. package/dist/module/module/repository/menu.repository.d.ts +0 -15
  944. package/dist/module/module/repository/menu.repository.js +0 -163
  945. package/dist/module/module/repository/menu.repository.js.map +0 -1
  946. package/dist/module/module/repository/module-access.repository.d.ts +0 -52
  947. package/dist/module/module/repository/module-access.repository.js +0 -283
  948. package/dist/module/module/repository/module-access.repository.js.map +0 -1
  949. package/dist/module/module/service/menu.service.d.ts +0 -12
  950. package/dist/module/module/service/menu.service.js +0 -59
  951. package/dist/module/module/service/menu.service.js.map +0 -1
  952. package/dist/module/module/service/module-access.service.d.ts +0 -63
  953. package/dist/module/module/service/module-access.service.js +0 -113
  954. package/dist/module/module/service/module-access.service.js.map +0 -1
  955. package/dist/module/notification/controller/otp.controller.d.ts +0 -35
  956. package/dist/module/notification/controller/otp.controller.js +0 -103
  957. package/dist/module/notification/controller/otp.controller.js.map +0 -1
  958. package/dist/module/notification/repository/notification.repository.d.ts +0 -7
  959. package/dist/module/notification/repository/notification.repository.js +0 -43
  960. package/dist/module/notification/repository/notification.repository.js.map +0 -1
  961. package/dist/module/notification/service/otp.service.d.ts +0 -31
  962. package/dist/module/notification/service/otp.service.js +0 -112
  963. package/dist/module/notification/service/otp.service.js.map +0 -1
  964. package/dist/module/user/controller/login.controller.d.ts +0 -26
  965. package/dist/module/user/controller/login.controller.js +0 -177
  966. package/dist/module/user/controller/login.controller.js.map +0 -1
  967. package/dist/module/user/controller/user.controller.d.ts +0 -9
  968. package/dist/module/user/controller/user.controller.js +0 -59
  969. package/dist/module/user/controller/user.controller.js.map +0 -1
  970. package/dist/module/user/dto/create-user.dto.d.ts +0 -17
  971. package/dist/module/user/dto/create-user.dto.js +0 -64
  972. package/dist/module/user/dto/create-user.dto.js.map +0 -1
  973. package/dist/module/user/dto/update-user.dto.d.ts +0 -5
  974. package/dist/module/user/dto/update-user.dto.js +0 -9
  975. package/dist/module/user/dto/update-user.dto.js.map +0 -1
  976. package/dist/module/user/entity/role.entity.d.ts +0 -11
  977. package/dist/module/user/entity/role.entity.js +0 -56
  978. package/dist/module/user/entity/role.entity.js.map +0 -1
  979. package/dist/module/user/entity/user-session.entity.d.ts +0 -15
  980. package/dist/module/user/entity/user-session.entity.js +0 -102
  981. package/dist/module/user/entity/user-session.entity.js.map +0 -1
  982. package/dist/module/user/entity/user.entity.js +0 -95
  983. package/dist/module/user/entity/user.entity.js.map +0 -1
  984. package/dist/module/user/repository/role.repository.d.ts +0 -18
  985. package/dist/module/user/repository/role.repository.js +0 -87
  986. package/dist/module/user/repository/role.repository.js.map +0 -1
  987. package/dist/module/user/repository/user-role-mapping.repository.d.ts +0 -19
  988. package/dist/module/user/repository/user-role-mapping.repository.js +0 -110
  989. package/dist/module/user/repository/user-role-mapping.repository.js.map +0 -1
  990. package/dist/module/user/repository/user.repository.d.ts +0 -10
  991. package/dist/module/user/repository/user.repository.js +0 -58
  992. package/dist/module/user/repository/user.repository.js.map +0 -1
  993. package/dist/module/user/repository/userSession.repository.d.ts +0 -10
  994. package/dist/module/user/repository/userSession.repository.js.map +0 -1
  995. package/dist/module/user/service/login.service.d.ts +0 -41
  996. package/dist/module/user/service/login.service.js +0 -242
  997. package/dist/module/user/service/login.service.js.map +0 -1
  998. package/dist/module/user/service/role.service.d.ts +0 -25
  999. package/dist/module/user/service/role.service.js +0 -154
  1000. package/dist/module/user/service/role.service.js.map +0 -1
  1001. package/dist/module/user/service/user-role-mapping.service.d.ts +0 -12
  1002. package/dist/module/user/service/user-role-mapping.service.js +0 -60
  1003. package/dist/module/user/service/user-role-mapping.service.js.map +0 -1
  1004. package/dist/module/user/service/user-session.service.d.ts +0 -31
  1005. package/dist/module/user/service/user-session.service.js +0 -161
  1006. package/dist/module/user/service/user-session.service.js.map +0 -1
  1007. package/dist/module/user/service/user.service.d.ts +0 -38
  1008. package/dist/module/user/service/user.service.js +0 -243
  1009. package/dist/module/user/service/user.service.js.map +0 -1
  1010. package/dist/module/user/user.module.d.ts +0 -2
  1011. package/dist/module/user/user.module.js +0 -78
  1012. package/dist/module/user/user.module.js.map +0 -1
  1013. package/src/migrations/1732612800000-AddEntityJsonGinIndex.ts +0 -41
  1014. package/src/module/auth/guards/role.guard.ts +0 -68
  1015. package/src/module/enterprise/controller/organization.controller.ts +0 -36
  1016. package/src/module/enterprise/enterprise.module.ts +0 -45
  1017. package/src/module/enterprise/entity/enterprise.entity.ts +0 -37
  1018. package/src/module/enterprise/entity/organization-app-mapping.entity.ts +0 -13
  1019. package/src/module/enterprise/entity/organization.entity.ts +0 -92
  1020. package/src/module/enterprise/repository/enterprise.repository.ts +0 -31
  1021. package/src/module/enterprise/repository/organization.repository.ts +0 -26
  1022. package/src/module/enterprise/repository/school.repository.ts +0 -289
  1023. package/src/module/enterprise/service/brand.service.ts +0 -5
  1024. package/src/module/enterprise/service/enterprise.service.ts +0 -16
  1025. package/src/module/enterprise/service/organization-app-mapping.service.ts +0 -4
  1026. package/src/module/enterprise/service/organization.service.ts +0 -146
  1027. package/src/module/filter/service/flatjson-filter.service.ts +0 -903
  1028. package/src/module/filter/test/flatjson-filter.service.spec.ts +0 -415
  1029. package/src/module/lead/controller/lead.controller.ts +0 -30
  1030. package/src/module/lead/lead.module.ts +0 -14
  1031. package/src/module/lead/repository/lead.repository.ts +0 -41
  1032. package/src/module/lead/service/lead.service.ts +0 -54
  1033. package/src/module/meta/controller/app-master.controller.ts +0 -38
  1034. package/src/module/meta/entity/app-master.entity.ts +0 -37
  1035. package/src/module/meta/repository/app-master.repository.ts +0 -20
  1036. package/src/module/meta/service/app-master.service.ts +0 -37
  1037. package/src/module/meta/service/populate-meta.service.ts +0 -228
  1038. package/src/module/module/controller/menu.controller.ts +0 -15
  1039. package/src/module/module/controller/module-access.controller.ts +0 -133
  1040. package/src/module/module/entity/menu.entity.ts +0 -43
  1041. package/src/module/module/entity/module-access.entity.ts +0 -25
  1042. package/src/module/module/entity/module-action.entity.ts +0 -17
  1043. package/src/module/module/entity/module.entity.ts +0 -52
  1044. package/src/module/module/repository/menu.repository.ts +0 -186
  1045. package/src/module/module/repository/module-access.repository.ts +0 -344
  1046. package/src/module/module/service/menu.service.ts +0 -82
  1047. package/src/module/module/service/module-access.service.ts +0 -189
  1048. package/src/module/notification/controller/otp.controller.ts +0 -117
  1049. package/src/module/notification/repository/notification.repository.ts +0 -33
  1050. package/src/module/notification/service/otp.service.ts +0 -133
  1051. package/src/module/user/controller/login.controller.ts +0 -199
  1052. package/src/module/user/controller/user.controller.ts +0 -40
  1053. package/src/module/user/dto/create-user.dto.ts +0 -62
  1054. package/src/module/user/dto/update-user.dto.ts +0 -4
  1055. package/src/module/user/entity/role.entity.ts +0 -33
  1056. package/src/module/user/entity/user-session.entity.ts +0 -73
  1057. package/src/module/user/entity/user.entity.ts +0 -62
  1058. package/src/module/user/repository/role.repository.ts +0 -96
  1059. package/src/module/user/repository/user-role-mapping.repository.ts +0 -126
  1060. package/src/module/user/repository/user.repository.ts +0 -50
  1061. package/src/module/user/repository/userSession.repository.ts +0 -33
  1062. package/src/module/user/service/login.service.ts +0 -326
  1063. package/src/module/user/service/role.service.ts +0 -197
  1064. package/src/module/user/service/user-role-mapping.service.ts +0 -98
  1065. package/src/module/user/service/user-session.service.ts +0 -201
  1066. package/src/module/user/service/user.service.ts +0 -368
  1067. package/src/module/user/user.module.ts +0 -65
@@ -8,16 +8,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.EntityValidationService = void 0;
13
16
  const common_1 = require("@nestjs/common");
14
17
  const attribute_master_service_1 = require("./attribute-master.service");
15
- const typeorm_1 = require("typeorm");
16
18
  const config_1 = require("@nestjs/config");
17
19
  let EntityValidationService = class EntityValidationService {
18
- constructor(attributeMasterService, entityManager, configService) {
20
+ constructor(attributeMasterService, configService) {
19
21
  this.attributeMasterService = attributeMasterService;
20
- this.entityManager = entityManager;
21
22
  this.configService = configService;
22
23
  this.schema = this.configService.get('DB_SCHEMA');
23
24
  }
@@ -39,36 +40,6 @@ let EntityValidationService = class EntityValidationService {
39
40
  async validateUniqueFields(entityData, attributeData, entityType, db_table_name, loggedInUser) {
40
41
  const errors = [];
41
42
  const currentId = entityData.id;
42
- for (const attr of attributeData.filter((a) => a.is_unique)) {
43
- const value = entityData[attr.attribute_key];
44
- if (this.hasValidValue(value)) {
45
- let qb = this.entityManager
46
- .createQueryBuilder()
47
- .select('*')
48
- .from(`${this.schema}.${db_table_name}`, db_table_name)
49
- .where(`${db_table_name}.${attr.attribute_key} = :value`, { value });
50
- if (entityType !== 'ORG' && entityType !== 'ORGP') {
51
- const level_type = loggedInUser.level_type;
52
- const level_id = loggedInUser.level_id;
53
- if (level_type !== undefined && level_type !== null) {
54
- qb = qb.andWhere(`${db_table_name}.level_type = :level_type AND ${db_table_name}.level_id = :level_id`, {
55
- level_type,
56
- level_id,
57
- });
58
- }
59
- }
60
- if (currentId) {
61
- qb = qb.andWhere(`${db_table_name}.id != :id`, { id: currentId });
62
- }
63
- const existing = await qb.limit(1).getRawOne();
64
- if (existing) {
65
- errors.push({
66
- field: attr.name,
67
- message: `Field ${attr.name} must be unique. Value ${value} already exists.`,
68
- });
69
- }
70
- }
71
- }
72
43
  return errors;
73
44
  }
74
45
  async validateRegexFields(entityData, attributeData) {
@@ -111,8 +82,8 @@ let EntityValidationService = class EntityValidationService {
111
82
  exports.EntityValidationService = EntityValidationService;
112
83
  exports.EntityValidationService = EntityValidationService = __decorate([
113
84
  (0, common_1.Injectable)(),
85
+ __param(0, (0, common_1.Inject)('AttributeMasterService')),
114
86
  __metadata("design:paramtypes", [attribute_master_service_1.AttributeMasterService,
115
- typeorm_1.EntityManager,
116
87
  config_1.ConfigService])
117
88
  ], EntityValidationService);
118
89
  //# sourceMappingURL=entity-validation.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity-validation.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-validation.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yEAA0F;AAE1F,qCAAwC;AACxC,2CAA+C;AAQxC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YACmB,sBAA8C,EACvD,aAA4B,EAC5B,aAA4B;QAFnB,2BAAsB,GAAtB,sBAAsB,CAAwB;QACvD,kBAAa,GAAb,aAAa,CAAe;QAC5B,kBAAa,GAAb,aAAa,CAAe;QAItC,WAAM,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAF7C,CAAC;IAOD,sBAAsB,CACpB,UAA+B,EAC/B,aAAgC;QAEhC,MAAM,MAAM,GAAsB,EAAE,CAAC;QAErC,aAAa;aACV,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;aAC/B,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAChB,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAC7C,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC/B,MAAM,CAAC,IAAI,CAAC;oBACV,KAAK,EAAE,IAAI,CAAC,IAAI;oBAChB,OAAO,EAAE,SAAS,IAAI,CAAC,IAAI,eAAe;iBAC3C,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC,CAAC;QAEL,OAAO,MAAM,CAAC;IAChB,CAAC;IAKD,KAAK,CAAC,oBAAo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,GACd,MAAM,IAAI,CAAC,sBAAsB,CAAC,gCAAgC,CAChE,YAAY,CAAC,kBAAkB,EAC/B,YAAY,CACb,CAAC;QACJ,MAAM,cAAc,GAAG,IAAI,CAAC,sBAAsB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC3E,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC1E,OAAO,CAAC,GAAG,cAAc,EAAE,GAAG,UAAU,CAAC,CAAC;IAC5C,CAAC;IAEO,aAAa,CAAC,KAAU;QAC9B,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QACxD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE;YAAE,OAAO,KAAK,CAAC;QACnE,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AA/KY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,wBAAwB,CAAC,CAAA;qCACQ,iDAAsB;QACxC,sBAAa;GAJ3B,uBAAuB,CA+KnC"}
@@ -1,9 +1,9 @@
1
- import { UserData } from '../../user/entity/user.entity';
1
+ import { UserData } from 'src/module/auth/dto/user.dto';
2
2
  import { BaseEntity } from '../entity/base-entity.entity';
3
3
  import { EntityManager } from 'typeorm';
4
4
  export interface EntityService<T extends BaseEntity> {
5
5
  createEntity(entityData: T, loggedInUser: UserData, manager?: EntityManager): Promise<BaseEntity>;
6
- getEntityData(entityType: string, entityId: number, loggedInUser: UserData): Promise<BaseEntity | null>;
6
+ getEntityData(entityType: string, entityId: number, loggedInUser: UserData, resolved?: boolean): Promise<BaseEntity | null>;
7
7
  getResolvedEntityData(entityType: string, entityId: number, loggedInUser: UserData): Promise<BaseEntity | null>;
8
8
  getEntityList(entityType: string, loggedInUser: UserData, filters?: Record<string, any>): Promise<BaseEntity[]>;
9
9
  updateEntity(entityData: T, loggedInUserData: UserData, app_code?: string): Promise<BaseEntity>;
@@ -1,6 +1,6 @@
1
1
  import { EntityServiceImpl } from './entity-service-impl.service';
2
2
  import { BaseEntity } from '../entity/base-entity.entity';
3
- import { UserData } from '../../user/entity/user.entity';
3
+ import { UserData } from 'src/module/auth/dto/user.dto';
4
4
  import { EntityManager } from 'typeorm';
5
5
  import { ViewMaster } from '../entity/view-master.entity';
6
6
  export declare class FieldGroupService extends EntityServiceImpl {
@@ -28,8 +28,6 @@ export declare class MediaDataService extends EntityServiceImpl {
28
28
  fileName: string;
29
29
  id: number;
30
30
  size: number | undefined;
31
- review_status: string;
32
- remark: string;
33
31
  }>;
34
32
  getMediaInlineUrl(id: number, loggedInUser: any, expiresIn?: number): Promise<{
35
33
  signedUrl: string;
@@ -38,9 +36,7 @@ export declare class MediaDataService extends EntityServiceImpl {
38
36
  size: number | undefined;
39
37
  uploadedDate: Date;
40
38
  }>;
41
- buildUploadPathGenericdd(mappedEntityType: string, loggedInUser: any, mappedEntityId?: number, parentId?: number, parentType?: string): Promise<string | null>;
42
39
  buildUploadPathGeneric(mappedEntityType: string, loggedInUser: any, mappedEntityId?: number, parentId?: number, parentType?: string): Promise<string | null>;
43
40
  private resolveUploadPath;
44
41
  buildUploadPath(mappedEntityType: string, loggedInUser: any, mappedEntityId?: number, parentId?: number, parentType?: string): Promise<string | null>;
45
- updateMediaReviewStatus(id: number, review_status: string, remark: string, loggedInUser: any): Promise<void>;
46
42
  }
@@ -122,8 +122,6 @@ let MediaDataService = class MediaDataService extends entity_service_impl_servic
122
122
  fileName: mediaData.file_name,
123
123
  id: mediaData.id,
124
124
  size: fileSize,
125
- review_status: mediaData.review_status,
126
- remark: mediaData.remark,
127
125
  };
128
126
  }
129
127
  catch (error) {
@@ -170,125 +168,6 @@ let MediaDataService = class MediaDataService extends entity_service_impl_servic
170
168
  throw new Error('Failed to generate inline URL');
171
169
  }
172
170
  }
173
- async buildUploadPathGenericdd(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType) {
174
- const entityMaster = await this.entityMasterService.getEntityData(mappedEntityType, loggedInUser);
175
- if (!entityMaster) {
176
- throw new Error(`Entity master not found for ${mappedEntityType}`);
177
- }
178
- let pathTemplate = entityMaster.doc_upload_path ?? '';
179
- const entityOverwrite = entityMaster.overwrite_path ?? 0;
180
- if (!pathTemplate) {
181
- throw new Error(`doc_upload_path not defined for ${mappedEntityType}`);
182
- }
183
- const replacements = {};
184
- const organizationRepo = this.reflectionHelper.getRepoService('OrganizationData');
185
- let organizationData = await organizationRepo.findOne({
186
- where: {
187
- id: loggedInUser.organization_id,
188
- },
189
- });
190
- replacements['org_code'] = organizationData.code;
191
- let levelEntityId;
192
- let levelEntityType;
193
- if (parentId && parentType) {
194
- levelEntityId = parentId;
195
- levelEntityType = parentType;
196
- }
197
- else {
198
- levelEntityId = entityOverwrite ? mappedEntityId : loggedInUser.level_id;
199
- levelEntityType = entityOverwrite
200
- ? mappedEntityType
201
- : loggedInUser.level_type;
202
- }
203
- const getEntityData = await this.entityMasterService.getEntityData(levelEntityType, loggedInUser);
204
- if (!getEntityData)
205
- return null;
206
- const levelEntityDataResult = await this.entityManager.query(`SELECT *
207
- FROM ${getEntityData?.db_table_name}
208
- WHERE id = $1`, [levelEntityId]);
209
- const levelEntityData = levelEntityDataResult[0] || null;
210
- if (levelEntityData?.code) {
211
- replacements['level_code'] = levelEntityData.code;
212
- }
213
- if (parentId && parentType && mappedEntityId && mappedEntityType) {
214
- const mappedEntityKey = `${mappedEntityType.toLowerCase()}_code`;
215
- const mappedEntityData = await super.getEntityData(mappedEntityType, mappedEntityId, loggedInUser);
216
- if (mappedEntityData?.code) {
217
- replacements[mappedEntityKey] = mappedEntityData.code;
218
- const mappedVariable = `\${${mappedEntityKey}}`;
219
- if (!pathTemplate.includes(mappedVariable)) {
220
- pathTemplate = pathTemplate + `/${mappedVariable}`;
221
- }
222
- }
223
- }
224
- if (parentId && parentType) {
225
- const getEntityData = await this.entityMasterService.getEntityData(mappedEntityType, loggedInUser);
226
- if (!getEntityData)
227
- return null;
228
- const levelEntityDataResult = await this.entityManager.query(`SELECT *
229
- FROM ${getEntityData?.db_table_name}
230
- WHERE id = $1`, [mappedEntityId]);
231
- if (levelEntityDataResult?.[0].code &&
232
- parentType != 'SCH' &&
233
- loggedInUser.level_type != 'SCH') {
234
- replacements['template_code'] = levelEntityDataResult[0].code;
235
- pathTemplate = '${org_code}/template/${template_code}';
236
- }
237
- else {
238
- const getEntityData = await this.entityMasterService.getEntityData(mappedEntityType, loggedInUser);
239
- if (!getEntityData)
240
- return null;
241
- const levelEntityDataResult = await this.entityManager.query(`SELECT *
242
- FROM ${getEntityData?.db_table_name}
243
- WHERE id = $1`, [mappedEntityId]);
244
- replacements['template_code'] = levelEntityDataResult?.[0].code;
245
- pathTemplate = '${org_code}/${level_code}/template/${template_code}';
246
- }
247
- }
248
- const matches = pathTemplate.match(/\$\{(\w+)\}/g) || [];
249
- for (const variable of matches) {
250
- const key = variable.replace(/\$\{|\}/g, '');
251
- if (replacements[key])
252
- continue;
253
- if (key === 'org_code')
254
- continue;
255
- if (key === 'level_code')
256
- continue;
257
- if (key === 'template_code')
258
- continue;
259
- if (key.endsWith('_code')) {
260
- const entityType = key.replace('_code', '').toUpperCase();
261
- let entityId;
262
- if (key === 'template_code') {
263
- if (parentType?.toUpperCase() === 'TEMPLATE' && parentId) {
264
- entityId = parentId;
265
- }
266
- else if (mappedEntityType === 'TEMPLATE') {
267
- entityId = mappedEntityId;
268
- }
269
- }
270
- else {
271
- if (parentType?.toUpperCase() === entityType && parentId) {
272
- entityId = parentId;
273
- }
274
- else if (mappedEntityType === entityType) {
275
- entityId = mappedEntityId;
276
- }
277
- }
278
- if (entityId) {
279
- const entityData = await super.getEntityData(entityType, entityId, loggedInUser);
280
- replacements[key] = entityData?.code ?? null;
281
- }
282
- }
283
- }
284
- if (loggedInUser.level_type === 'ORG' && entityOverwrite === 0) {
285
- }
286
- if (pathTemplate) {
287
- const finalPath = this.resolveUploadPath(pathTemplate, replacements);
288
- return finalPath;
289
- }
290
- return null;
291
- }
292
171
  async buildUploadPathGeneric(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType) {
293
172
  let appCode = '';
294
173
  let org_id = loggedInUser.organization_id;
@@ -363,14 +242,6 @@ let MediaDataService = class MediaDataService extends entity_service_impl_servic
363
242
  async buildUploadPath(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType) {
364
243
  return this.buildUploadPathGeneric(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType);
365
244
  }
366
- async updateMediaReviewStatus(id, review_status, remark, loggedInUser) {
367
- await super.updateEntity({
368
- id,
369
- entity_type: 'MDA',
370
- review_status,
371
- remark,
372
- }, loggedInUser);
373
- }
374
245
  };
375
246
  exports.MediaDataService = MediaDataService;
376
247
  exports.MediaDataService = MediaDataService = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"media-data.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/media-data.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,qCAA6B;AAC7B,iCAA0B;AAC1B,qCAAwC;AACxC,+BAAoC;AACpC,uEAG2C;AAC3C,mEAAwD;AACxD,+EAA0E;AAC1E,+EAAkE;AAG3D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,+CAAiB;IACrD,YACmB,aAA4B,EAC5B,eAAoC,EAC7C,aAA4B;QAEpC,KAAK,EAAE,CAAC;QAJS,kBAAa,GAAb,aAAa,CAAe;QAC5B,oBAAe,GAAf,eAAe,CAAqB;QAC7C,kBAAa,GAAb,aAAa,CAAe;QAKtC,kBAAa,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;QACnE,sBAAiB,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACpE,aAAQ,GAAG,IAA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CAAC;IACtD,CAAC;IAgBD,KAAK,CAAC,eAAe,CACnB,gBAAwB,EACxB,YAAiB,EACjB,cAAuB,EACvB,QAAiB,EACjB,UAAmB;QAEnB,OAAO,IAAI,CAAC,sBAAsB,CAChC,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,UAAU,CACX,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,uBAAuB,CAC3B,EAAU,EACV,aAAqB,EACrB,MAAc,EACd,YAAY;QAEZ,MAAM,KAAK,CAAC,YAAY,CACtB;YACE,EAAE;YACF,WAAW,EAAE,KAAK;YAClB,aAAa;YACb,MAAM;SACA,EACR,YAAY,CACb,CAAC;IACJ,CAAC;CACF,CAAA;AAllBY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAGuB,sBAAa;QACX,2CAAmB;QAC9B,uBAAa;GAJ3B,gBAAgB,CAklB5B"}
1
+ {"version":3,"file":"media-data.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/media-data.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,qCAA6B;AAC7B,iCAA0B;AAC1B,qCAAwC;AACxC,+BAAoC;AACpC,uEAG2C;AAC3C,mEAAwD;AACxD,+EAA0E;AAC1E,+EAAkE;AAG3D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,+CAAiB;IACrD,YACmB,aAA4B,EAC5B,eAAoC,EAC7C,aAA4B;QAEpC,KAAK,EAAE,CAAC;QAJS,kBAAa,GAAb,aAAa,CAAe;QAC5B,oBAAe,GAAf,eAAe,CAAqB;QAC7C,kBAAa,GAAb,aAAa,CAAe;QAKtC,kBAAa,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;QACnE,sBAAiB,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACpE,aAAQ,GAAG,IAAI,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B,EACxB,YAAiB,EACjB,cAAuB,EACvB,QAAiB,EACjB,UAAmB;QAEnB,OAAO,IAAI,CAAC,sBAAsB,CAChC,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,UAAU,CACX,CAAC;IACJ,CAAC;CACF,CAAA;AAjXY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAGuB,sBAAa;QACX,2CAAmB;QAC9B,uBAAa;GAJ3B,gBAAgB,CAiX5B"}
@@ -1,4 +1,4 @@
1
- import { UserData } from '../../user/entity/user.entity';
1
+ import { UserData } from 'src/module/auth/dto/user.dto';
2
2
  import { ListMasterService } from 'src/module/listmaster/service/list-master.service';
3
3
  import { ModuleRef } from '@nestjs/core';
4
4
  import { AttributeMasterRepository } from '../repository/attribute-master.repository';
@@ -15,7 +15,7 @@ export declare class ResolverService {
15
15
  private mediaDataService;
16
16
  constructor(listMasterService: ListMasterService, moduleRef: ModuleRef, attributeMasterRepo: AttributeMasterRepository, reflectionHelper: ReflectionHelper, entityMasterRepo: EntityMasterRepository, entityManger: EntityManager);
17
17
  private getMediaDataService;
18
- getResolvedData(loggedInUser: any, entityData: any, entityType: string, format_disable?: boolean): Promise<any>;
18
+ getResolvedData(loggedInUser: any, entityData: any, entityType: string): Promise<any>;
19
19
  getResolvedValue(loggedInUser: UserData, attrKey: string, rawValue: any, entityType: string): Promise<any>;
20
20
  getResolvedId(loggedInUser: UserData, attrKey: string, displayValue: any, entityType: string): Promise<any>;
21
21
  }
@@ -39,7 +39,7 @@ let ResolverService = class ResolverService {
39
39
  }
40
40
  return this.mediaDataService;
41
41
  }
42
- async getResolvedData(loggedInUser, entityData, entityType, format_disable) {
42
+ async getResolvedData(loggedInUser, entityData, entityType) {
43
43
  const attributeItems = await this.attributeMasterRepo.findAttributesByMappedEntityType(entityType, loggedInUser);
44
44
  const resolvedEntityData = { ...entityData };
45
45
  for (const attr of attributeItems) {
@@ -47,46 +47,40 @@ let ResolverService = class ResolverService {
47
47
  const codeValue = entityData[field];
48
48
  if (!codeValue)
49
49
  continue;
50
- if (attr.data_source_type === 'entity' ||
51
- (attr.data_source_type === 'master' && attr.category != 'Internal')) {
52
- const type = attr.data_source_type === 'entity'
53
- ? attr.datasource_list
54
- : attr.datasource_list;
50
+ if (attr.ds_category) {
55
51
  const params = {};
56
52
  if (Array.isArray(codeValue)) {
57
53
  const resolvedValues = [];
58
54
  for (const code of codeValue) {
59
- const options = await this.listMasterService.getDropdownOptions(type, params, undefined, loggedInUser);
55
+ let options = [];
56
+ try {
57
+ options = await this.listMasterService.getDropDownData(attr.mapped_entity_type, attr.attribute_key, loggedInUser, params);
58
+ }
59
+ catch (e) {
60
+ options.push(entityData[attr.attribute_key]);
61
+ }
60
62
  const item = options.find((opt) => opt.value == code || opt.code == code);
61
- resolvedValues.push(item?.[attr.data_source_attribute] ?? code);
63
+ resolvedValues.push(item?.["label"] ?? code);
62
64
  }
63
- resolvedEntityData[field] = resolvedValues.join(', ');
65
+ resolvedEntityData[field] = resolvedValues;
64
66
  }
65
67
  else {
66
- if (attr.data_source_type === 'master' &&
67
- Number.isInteger(Number(codeValue))) {
68
- const listMasterItemsRepo = this.reflectionHelper.getRepoService('ListMasterItems');
69
- const item = await listMasterItemsRepo.findOne({
70
- where: {
71
- id: codeValue,
72
- },
73
- select: ['name'],
74
- });
75
- resolvedEntityData[field] = item?.name ?? codeValue;
68
+ let options = [];
69
+ try {
70
+ options = await this.listMasterService.getDropDownData(attr.mapped_entity_type, attr.attribute_key, loggedInUser, params);
76
71
  }
77
- else {
78
- const options = await this.listMasterService.getDropdownOptions(type, params, undefined, loggedInUser);
79
- const item = options.find((opt) => opt.value == codeValue || opt.code == codeValue);
80
- resolvedEntityData[field] = Array.isArray(item)
81
- ? (item?.[attr.data_source_attribute] ?? codeValue)
82
- : (item?.label ?? codeValue);
72
+ catch (e) {
73
+ options.push(entityData[attr.attribute_key]);
83
74
  }
75
+ const item = options.find((opt) => opt.value == codeValue || opt.code == codeValue);
76
+ resolvedEntityData[field] = Array.isArray(item)
77
+ ? (item?.[attr.name] ?? codeValue)
78
+ : (item?.label ?? codeValue);
84
79
  }
85
80
  }
86
- else if (attr.element_type === 'date' ||
87
- (attr.element_type === 'datetime' && !format_disable)) {
88
- const dateFormat = attr.element_type === 'date' ? 'DD-MM-YYYY' : 'DD-MM-YYYY HH:mm:ss';
89
- const dateValue = moment(codeValue, dateFormat).utcOffset('+05:30');
81
+ if (attr.element_type === 'date' ||
82
+ attr.element_type === 'datetime') {
83
+ const dateValue = moment(codeValue, "DD-MM-YYYY", true).utcOffset('+05:30');
90
84
  if (dateValue.isValid()) {
91
85
  resolvedEntityData[field] =
92
86
  attr.element_type === 'date'
@@ -97,22 +91,10 @@ let ResolverService = class ResolverService {
97
91
  resolvedEntityData[field] = codeValue;
98
92
  }
99
93
  }
100
- else if (attr.element_type === 'upload' ||
101
- attr.element_type === 'image') {
94
+ else if ((attr.element_type === 'upload' || attr.element_type === 'image') &&
95
+ typeof resolvedEntityData[field] !== 'object') {
102
96
  const mediaService = await this.getMediaDataService();
103
- let uploadData;
104
- if (typeof resolvedEntityData[field] !== 'object') {
105
- uploadData = await mediaService.getMediaDownloadUrl(resolvedEntityData[field], loggedInUser);
106
- }
107
- else {
108
- uploadData = resolvedEntityData[field];
109
- }
110
- const options = await this.listMasterService.getDropdownOptions('RSTS', {}, undefined, loggedInUser);
111
- if (uploadData && uploadData.review_status) {
112
- const statusItem = options.find((opt) => opt.value == uploadData.review_status);
113
- uploadData.review_status =
114
- statusItem?.label || uploadData.review_status;
115
- }
97
+ const uploadData = await mediaService.getMediaDownloadUrl(resolvedEntityData[field], loggedInUser);
116
98
  resolvedEntityData[field] = uploadData;
117
99
  }
118
100
  }
@@ -125,55 +107,34 @@ let ResolverService = class ResolverService {
125
107
  const attr = await this.attributeMasterRepo.findByMappedEntityTypeAndAttributeKeyAndOrganizationId(entityType, attrKey, loggedInUser.enterprise_id);
126
108
  if (!attr)
127
109
  return rawValue;
128
- if (attr.data_source_type === 'entity') {
129
- const entityDef = await this.entityMasterRepo.getEntityByMappedEntityType(attr.datasource_list, loggedInUser.enterprise_id);
130
- if (!entityDef)
131
- return rawValue;
132
- const tableName = entityDef.db_table_name;
110
+ if (attr.ds_category) {
111
+ const params = {};
133
112
  if (Array.isArray(rawValue)) {
134
113
  const resolvedValues = [];
135
- for (const value of rawValue) {
136
- const query = tableName === 'sso_organization'
137
- ? `SELECT * FROM ${tableName} WHERE code = $1`
138
- : `SELECT * FROM ${tableName} WHERE id = $1`;
139
- const [item] = await this.entityManger.query(query, [value]);
140
- resolvedValues.push(item?.[attr.data_source_attribute] ?? value);
114
+ for (const code of rawValue) {
115
+ let options = [];
116
+ try {
117
+ options = await this.listMasterService.getDropDownData(attr.mapped_entity_type, attr.attribute_key, loggedInUser, params, [code]);
118
+ }
119
+ catch (e) {
120
+ options.push(code);
121
+ }
122
+ const item = options.find((opt) => opt.value == code || opt.code == code);
123
+ resolvedValues.push(item?.label ?? code);
141
124
  }
142
125
  return resolvedValues;
143
126
  }
144
- const query = `SELECT * FROM ${tableName} WHERE id = $1`;
145
- const [item] = await this.entityManger.query(query, [rawValue]);
146
- return item?.[attr.data_source_attribute] ?? rawValue;
147
- }
148
- if (attr.data_source_type === 'master') {
149
- const repo = this.reflectionHelper.getRepoService('ListMasterItems');
150
- let value = rawValue;
151
- if (typeof rawValue === 'string') {
127
+ else {
128
+ let options = [];
152
129
  try {
153
- const parsed = JSON.parse(rawValue);
154
- if (Array.isArray(parsed))
155
- value = parsed;
130
+ options = await this.listMasterService.getDropDownData(attr.mapped_entity_type, attr.attribute_key, loggedInUser, params, [rawValue]);
156
131
  }
157
132
  catch (e) {
133
+ options.push(rawValue);
158
134
  }
135
+ const item = options.find((opt) => opt.value == rawValue || opt.code == rawValue);
136
+ return item?.label ?? rawValue;
159
137
  }
160
- if (Array.isArray(value)) {
161
- const resolvedValues = [];
162
- for (const id of value) {
163
- const item = await repo.findOne({
164
- where: { id: Number(id) },
165
- });
166
- resolvedValues.push(item?.[attr.data_source_attribute] ?? id);
167
- }
168
- return resolvedValues;
169
- }
170
- if (!isNaN(rawValue)) {
171
- const item = await repo.findOne({
172
- where: { id: Number(rawValue) },
173
- });
174
- return item?.[attr.data_source_attribute] ?? rawValue;
175
- }
176
- return rawValue;
177
138
  }
178
139
  return rawValue;
179
140
  }
@@ -186,18 +147,18 @@ let ResolverService = class ResolverService {
186
147
  const attr = await this.attributeMasterRepo.findByMappedEntityTypeAndAttributeKeyAndOrganizationId(entityType, attrKey, loggedInUser.enterprise_id);
187
148
  if (!attr)
188
149
  return displayValue;
189
- if (attr.data_source_type === 'entity') {
190
- const entityDef = await this.entityMasterRepo.getEntityByMappedEntityType(attr.datasource_list, loggedInUser.enterprise_id);
150
+ if (attr.ds_category === 'ENTITY') {
151
+ const entityDef = await this.entityMasterRepo.getEntityByMappedEntityType(attr.ds_entitytype, loggedInUser.enterprise_id);
191
152
  if (!entityDef)
192
153
  return displayValue;
193
154
  const tableName = entityDef.db_table_name;
194
155
  const query = tableName === 'sso_organization'
195
- ? `SELECT id
196
- FROM ${tableName}
197
- WHERE ${attr.data_source_attribute} = $1`
198
- : `SELECT id
199
- FROM ${tableName}
200
- WHERE ${attr.data_source_attribute} = $1
156
+ ? `SELECT id
157
+ FROM ${tableName}
158
+ WHERE ${attr.name} = $1`
159
+ : `SELECT id
160
+ FROM ${tableName}
161
+ WHERE ${attr.name} = $1
201
162
  AND enterprise_id = $2`;
202
163
  const params = tableName === 'sso_organization'
203
164
  ? [displayValue]
@@ -205,13 +166,13 @@ let ResolverService = class ResolverService {
205
166
  const [item] = await this.entityManger.query(query, params);
206
167
  return item?.id ?? displayValue;
207
168
  }
208
- else if (attr.data_source_type === 'master') {
169
+ else if (attr.ds_category === 'LIST_MASTER') {
209
170
  const listMasterItemsRepo = this.reflectionHelper.getRepoService('ListMasterItems');
210
171
  const item = await listMasterItemsRepo.findOne({
211
172
  where: {
212
- [attr.data_source_attribute]: displayValue,
173
+ [attr.name]: displayValue,
213
174
  enterprise_id: loggedInUser.enterprise_id,
214
- listtype: attr.datasource_list,
175
+ listtype: attr.ds_entitytype,
215
176
  },
216
177
  });
217
178
  return item?.id ?? displayValue;
@@ -223,7 +184,6 @@ exports.ResolverService = ResolverService;
223
184
  exports.ResolverService = ResolverService = __decorate([
224
185
  (0, common_1.Injectable)(),
225
186
  __param(0, (0, common_1.Inject)('ListMasterService')),
226
- __param(3, (0, common_1.Inject)((0, common_1.forwardRef)(() => reflection_helper_service_1.ReflectionHelper))),
227
187
  __param(4, (0, common_1.Inject)((0, common_1.forwardRef)(() => entity_master_repository_1.EntityMasterRepository))),
228
188
  __metadata("design:paramtypes", [list_master_service_1.ListMasterService,
229
189
  core_1.ModuleRef,
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/resolver.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAEhE,iCAAiC;AACjC,sFAAsF;AACtF,uCAAyC;AACzC,2FAAsF;AACtF,gGAA+E;AAC/E,qFAAgF;AAChF,qCAAwC;AAGjC,IAAM,eAAe,GAArB,MAAM,eAAe;IAG1B,YAEmB,iBAAoC,EACpC,SAAoB,EACpB,mBAA8C,EAE9C,gBAAkC,EAElC,gBAAwC,EACxC,YAA2B;QAP3B,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,cAAS,GAAT,SAAS,CAAW;QACpB,wBAAmB,GAAnB,mBAAmB,CAA2B;QAE9C,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,qBAAgB,GAAhB,gBAAgB,CAAwB;QACxC,iBAAY,GAAZ,YAAY,CAAe;IAC3C,CAAC;IAEI,KAAK,CAAC,mBAAmB;QAC/B,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC3B,MAAM,EAAE,gBAAgB,EAAE,GAAG,2CAAa,sBAAsB,EAAC,CAAC;YAClE,IAAI,CAAC,gBAA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CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;IAI3B,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4CAAgB,CAAC,CAAC,CAAA;IAE1C,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iDAAsB,CAAC,CAAC,CAAA;qCALb,uCAAiB;QACzB,gBAAS;QACC,uDAAyB;QAE5B,4CAAgB;QAEhB,iDAAsB;QAC1B,uBAAa;GAZnC,eAAe,CA+U3B"}
1
+ {"version":3,"file":"resolver.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/resolver.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAEhE,iCAAiC;AACjC,sFAAsF;AACtF,uCAAyC;AACzC,2FAAsF;AACtF,gGAA+E;AAC/E,qFAAgF;AAChF,qCAAwC;AAGjC,IAAM,eAAe,GAArB,MAAM,eAAe;IAG1B,YAEmB,iBAAoC,EACpC,SAAoB,EACpB,mBAA8C,EAC9C,gBAAkC,EAElC,gBAAwC,EACxC,YAA2B;QAN3B,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,cAAS,GAAT,SAAS,CAAW;QACpB,wBAAmB,GAAnB,mBAAmB,CAA2B;QAC9C,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,qBAAgB,GAAhB,gBAAgB,CAAwB;QACxC,iBAAY,GAAZ,YAAY,CAAe;IAE9C,CAAC;IAEO,KAAK,CAAC,mBAAmB;QAC/B,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC3B,MAAM,EAAE,gBAAgB,EAAE,GAAG,2CAAa,sBAAsB,EAAC,CAAC;YAClE,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,gBAAgB,EAAE;gBAC3D,MAAM,EAAE,KAAK;aACd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AAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;YAEpF,MAAM,IAAI,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC;gBAC7C,KAAK,EAAE;oBACL,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,YAAY;oBACzB,aAAa,EAAE,YAAY,CAAC,aAAa;oBACzC,QAAQ,EAAE,IAAI,CAAC,aAAa;iBAC7B;aACF,CAAC,CAAC;YAEH,OAAO,IAAI,EAAE,EAAE,IAAI,YAAY,CAAC;QAClC,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;CACF,CAAA;AAxPY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;IAK3B,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iDAAsB,CAAC,CAAC,CAAA;qCAJb,uCAAiB;QACzB,gBAAS;QACC,uDAAyB;QAC5B,4CAAgB;QAEhB,iDAAsB;QAC1B,uBAAa;GAXnC,eAAe,CAwP3B"}
@@ -1,6 +1,6 @@
1
1
  import { EntityServiceImpl } from './entity-service-impl.service';
2
2
  import { BaseEntity } from '../entity/base-entity.entity';
3
- import { UserData } from '../../user/entity/user.entity';
3
+ import { UserData } from 'src/module/auth/dto/user.dto';
4
4
  import { EntityManager } from 'typeorm';
5
5
  import { ViewMaster } from '../entity/view-master.entity';
6
6
  export declare class SectionMasterService extends EntityServiceImpl {