rez_core 4.0.162 → 4.0.165

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 (597) hide show
  1. package/.idea/250218_nodejs_core.iml +11 -8
  2. package/.idea/codeStyles/Project.xml +58 -58
  3. package/.idea/codeStyles/codeStyleConfig.xml +4 -4
  4. package/.idea/inspectionProfiles/Project_Default.xml +1 -1
  5. package/.idea/modules.xml +7 -7
  6. package/.idea/prettier.xml +5 -5
  7. package/.idea/vcs.xml +5 -5
  8. package/.prettierrc +3 -3
  9. package/README.md +99 -99
  10. package/dist/app.module.js +9 -0
  11. package/dist/app.module.js.map +1 -1
  12. package/dist/config/bull.config.d.ts +10 -0
  13. package/dist/config/bull.config.js +66 -0
  14. package/dist/config/bull.config.js.map +1 -0
  15. package/dist/config/config.module.js +2 -2
  16. package/dist/config/config.module.js.map +1 -1
  17. package/dist/config/database.config.d.ts +1 -1
  18. package/dist/config/database.config.js +12 -16
  19. package/dist/config/database.config.js.map +1 -1
  20. package/dist/module/auth/guards/role.guard.js +3 -3
  21. package/dist/module/auth/services/auth.service.js +3 -3
  22. package/dist/module/auth/services/auth.service.js.map +1 -1
  23. package/dist/module/enterprise/entity/organization.entity.js +1 -1
  24. package/dist/module/enterprise/repository/school.repository.js +3 -3
  25. package/dist/module/enterprise/repository/school.repository.js.map +1 -1
  26. package/dist/module/entity_json/controller/entity_json.controller.d.ts +8 -0
  27. package/dist/module/entity_json/controller/entity_json.controller.js +42 -0
  28. package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -0
  29. package/dist/module/entity_json/entity_json.module.d.ts +2 -0
  30. package/dist/module/entity_json/entity_json.module.js +26 -0
  31. package/dist/module/entity_json/entity_json.module.js.map +1 -0
  32. package/dist/module/entity_json/service/entity_json.service.d.ts +7 -0
  33. package/dist/module/entity_json/service/entity_json.service.js +80 -0
  34. package/dist/module/entity_json/service/entity_json.service.js.map +1 -0
  35. package/dist/module/filter/repository/saved-filter.repository.js +4 -4
  36. package/dist/module/filter/service/filter-evaluator.service.js +3 -3
  37. package/dist/module/filter/service/filter-evaluator.service.js.map +1 -1
  38. package/dist/module/filter/service/filter.service.d.ts +1 -4
  39. package/dist/module/filter/service/filter.service.js +31 -50
  40. package/dist/module/filter/service/filter.service.js.map +1 -1
  41. package/dist/module/integration/entity/integration-config.entity.js +6 -6
  42. package/dist/module/integration/entity/integration-config.entity.js.map +1 -1
  43. package/dist/module/integration/entity/integration-entity-mapper.entity.js +1 -1
  44. package/dist/module/integration/entity/integration-entity-mapper.entity.js.map +1 -1
  45. package/dist/module/integration/entity/integration-source.entity.js +4 -4
  46. package/dist/module/integration/entity/integration-source.entity.js.map +1 -1
  47. package/dist/module/integration/entity/user-integration.entity.js +4 -4
  48. package/dist/module/integration/entity/user-integration.entity.js.map +1 -1
  49. package/dist/module/integration/examples/usage.example.js +9 -9
  50. package/dist/module/integration/service/integration.service.js +1 -1
  51. package/dist/module/integration/service/wrapper.service.d.ts +3 -1
  52. package/dist/module/integration/service/wrapper.service.js +67 -65
  53. package/dist/module/integration/service/wrapper.service.js.map +1 -1
  54. package/dist/module/linked_attributes/controller/linked_attributes.controller.d.ts +5 -0
  55. package/dist/module/linked_attributes/controller/linked_attributes.controller.js +29 -0
  56. package/dist/module/linked_attributes/controller/linked_attributes.controller.js.map +1 -0
  57. package/dist/module/linked_attributes/entity/linked_attribute.entity.d.ts +9 -0
  58. package/dist/module/linked_attributes/entity/linked_attribute.entity.js +70 -0
  59. package/dist/module/linked_attributes/entity/linked_attribute.entity.js.map +1 -0
  60. package/dist/module/linked_attributes/linked_attributes.module.d.ts +2 -0
  61. package/dist/module/linked_attributes/linked_attributes.module.js +29 -0
  62. package/dist/module/linked_attributes/linked_attributes.module.js.map +1 -0
  63. package/dist/module/linked_attributes/repository/linked_attribute.repository.d.ts +6 -0
  64. package/dist/module/linked_attributes/repository/linked_attribute.repository.js +31 -0
  65. package/dist/module/linked_attributes/repository/linked_attribute.repository.js.map +1 -0
  66. package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +5 -0
  67. package/dist/module/linked_attributes/service/linked_attributes.service.js +34 -0
  68. package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -0
  69. package/dist/module/listmaster/entity/list-master-items.entity.js +3 -3
  70. package/dist/module/listmaster/entity/list-master-items.entity.js.map +1 -1
  71. package/dist/module/listmaster/entity/list-master.entity.js +4 -4
  72. package/dist/module/listmaster/entity/list-master.entity.js.map +1 -1
  73. package/dist/module/listmaster/service/list-master-item.service.js +3 -3
  74. package/dist/module/listmaster/service/list-master-item.service.js.map +1 -1
  75. package/dist/module/mapper/entity/field-mapper.entity.js +6 -6
  76. package/dist/module/mapper/entity/field-mapper.entity.js.map +1 -1
  77. package/dist/module/mapper/service/field-mapper.service.js +7 -7
  78. package/dist/module/mapper/service/field-mapper.service.js.map +1 -1
  79. package/dist/module/mapper/service/mapper.service.js +4 -4
  80. package/dist/module/mapper/service/mapper.service.js.map +1 -1
  81. package/dist/module/meta/controller/attribute-master.controller.d.ts +4 -1
  82. package/dist/module/meta/controller/attribute-master.controller.js +15 -2
  83. package/dist/module/meta/controller/attribute-master.controller.js.map +1 -1
  84. package/dist/module/meta/entity/app-master.entity.d.ts +2 -2
  85. package/dist/module/meta/entity/app-master.entity.js +4 -4
  86. package/dist/module/meta/entity/entity-master.entity.js +1 -1
  87. package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
  88. package/dist/module/meta/entity/view-master.entity.js +1 -1
  89. package/dist/module/meta/entity/view-master.entity.js.map +1 -1
  90. package/dist/module/meta/entity.module.js +7 -0
  91. package/dist/module/meta/entity.module.js.map +1 -1
  92. package/dist/module/meta/repository/attribute-master.repository.js +2 -2
  93. package/dist/module/meta/repository/attribute-master.repository.js.map +1 -1
  94. package/dist/module/meta/repository/entity-attribute-update.repository.d.ts +6 -0
  95. package/dist/module/meta/repository/entity-attribute-update.repository.js +44 -0
  96. package/dist/module/meta/repository/entity-attribute-update.repository.js.map +1 -0
  97. package/dist/module/meta/repository/entity-master.repository.js +2 -2
  98. package/dist/module/meta/repository/entity-master.repository.js.map +1 -1
  99. package/dist/module/meta/service/attribute-master.service.js +1 -1
  100. package/dist/module/meta/service/attribute-master.service.js.map +1 -1
  101. package/dist/module/meta/service/entity-attribute-update.service.d.ts +7 -0
  102. package/dist/module/meta/service/entity-attribute-update.service.js +36 -0
  103. package/dist/module/meta/service/entity-attribute-update.service.js.map +1 -0
  104. package/dist/module/meta/service/entity-dynamic.service.js +27 -27
  105. package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
  106. package/dist/module/meta/service/entity-list.service.js +3 -3
  107. package/dist/module/meta/service/entity-master.service.js +4 -4
  108. package/dist/module/meta/service/entity-master.service.js.map +1 -1
  109. package/dist/module/meta/service/entity-relation.service.js +13 -13
  110. package/dist/module/meta/service/entity-relation.service.js.map +1 -1
  111. package/dist/module/meta/service/entity-service-impl.service.js +3 -3
  112. package/dist/module/meta/service/media-data.service.js +9 -9
  113. package/dist/module/meta/service/media-data.service.js.map +1 -1
  114. package/dist/module/meta/service/resolver.service.js +19 -19
  115. package/dist/module/meta/service/resolver.service.js.map +1 -1
  116. package/dist/module/module/repository/menu.repository.js +12 -12
  117. package/dist/module/notification/entity/otp.entity.js +1 -1
  118. package/dist/module/notification/entity/otp.entity.js.map +1 -1
  119. package/dist/module/notification/service/notification.service.js +9 -9
  120. package/dist/module/user/controller/login.controller.js +18 -18
  121. package/dist/module/user/entity/user-role-mapping.entity.js +1 -1
  122. package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
  123. package/dist/module/user/service/login.service.js +1 -1
  124. package/dist/module/user/service/login.service.js.map +1 -1
  125. package/dist/module/user/service/role.service.js +4 -4
  126. package/dist/module/user/service/user-session.service.js +4 -4
  127. package/dist/module/user/service/user-session.service.js.map +1 -1
  128. package/dist/module/workflow/entity/action-category.entity.d.ts +1 -1
  129. package/dist/module/workflow/entity/action-category.entity.js +1 -1
  130. package/dist/module/workflow/entity/action-data.entity.js +1 -1
  131. package/dist/module/workflow/entity/action-data.entity.js.map +1 -1
  132. package/dist/module/workflow/entity/action.entity.d.ts +1 -0
  133. package/dist/module/workflow/entity/action.entity.js +5 -1
  134. package/dist/module/workflow/entity/action.entity.js.map +1 -1
  135. package/dist/module/workflow/entity/comm-template.entity.js +1 -1
  136. package/dist/module/workflow/entity/comm-template.entity.js.map +1 -1
  137. package/dist/module/workflow/entity/template-attach-mapper.entity.js +1 -1
  138. package/dist/module/workflow/entity/template-attach-mapper.entity.js.map +1 -1
  139. package/dist/module/workflow/repository/action-data.repository.js +5 -4
  140. package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
  141. package/dist/module/workflow/repository/action.repository.js +21 -21
  142. package/dist/module/workflow/repository/action.repository.js.map +1 -1
  143. package/dist/module/workflow/repository/comm-template.repository.js +7 -7
  144. package/dist/module/workflow/repository/comm-template.repository.js.map +1 -1
  145. package/dist/module/workflow/repository/form-master.repository.js +3 -3
  146. package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
  147. package/dist/module/workflow/repository/stage-group.repository.js +23 -23
  148. package/dist/module/workflow/repository/stage-movement.repository.js +17 -17
  149. package/dist/module/workflow/repository/stage-movement.repository.js.map +1 -1
  150. package/dist/module/workflow/repository/stage.repository.js +8 -8
  151. package/dist/module/workflow/repository/task.repository.d.ts +3 -1
  152. package/dist/module/workflow/repository/task.repository.js +8 -3
  153. package/dist/module/workflow/repository/task.repository.js.map +1 -1
  154. package/dist/module/workflow/service/action-template-mapping.service.js +22 -22
  155. package/dist/module/workflow/service/action.service.js +13 -13
  156. package/dist/module/workflow/service/action.service.js.map +1 -1
  157. package/dist/module/workflow/service/entity-modification.service.js +6 -6
  158. package/dist/module/workflow/service/populate-workflow.service.js +8 -8
  159. package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
  160. package/dist/module/workflow/service/stage-group.service.js +6 -6
  161. package/dist/module/workflow/service/stage-group.service.js.map +1 -1
  162. package/dist/module/workflow/service/stage.service.js +4 -4
  163. package/dist/module/workflow/service/stage.service.js.map +1 -1
  164. package/dist/module/workflow/service/task.service.js +71 -55
  165. package/dist/module/workflow/service/task.service.js.map +1 -1
  166. package/dist/module/workflow/service/workflow-list-master.service.js +16 -16
  167. package/dist/module/workflow/service/workflow-list-master.service.js.map +1 -1
  168. package/dist/module/workflow/service/workflow-meta.service.js +53 -51
  169. package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
  170. package/dist/module/workflow/service/workflow.service.js +5 -5
  171. package/dist/module/workflow/service/workflow.service.js.map +1 -1
  172. package/dist/module/workflow-automation/controller/workflow-automation.controller.d.ts +6 -0
  173. package/dist/module/workflow-automation/controller/workflow-automation.controller.js +16 -0
  174. package/dist/module/workflow-automation/controller/workflow-automation.controller.js.map +1 -1
  175. package/dist/module/workflow-automation/entity/workflow-automation-action.entity.d.ts +1 -1
  176. package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js +1 -1
  177. package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +2 -0
  178. package/dist/module/workflow-automation/entity/workflow-automation.entity.js +8 -0
  179. package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -1
  180. package/dist/module/workflow-automation/service/schedule-handler.service.d.ts +16 -0
  181. package/dist/module/workflow-automation/service/schedule-handler.service.js +109 -0
  182. package/dist/module/workflow-automation/service/schedule-handler.service.js.map +1 -0
  183. package/dist/module/workflow-automation/service/workflow-automation-engine.service.d.ts +1 -1
  184. package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +1 -1
  185. package/dist/module/workflow-automation/service/workflow-automation-engine.service.js.map +1 -1
  186. package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +13 -1
  187. package/dist/module/workflow-automation/service/workflow-automation.service.js +115 -6
  188. package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
  189. package/dist/module/workflow-automation/workflow-automation.module.js +14 -1
  190. package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
  191. package/dist/module/workflow-schedule/constants/schedule.constants.d.ts +27 -0
  192. package/dist/module/workflow-schedule/constants/schedule.constants.js +31 -0
  193. package/dist/module/workflow-schedule/constants/schedule.constants.js.map +1 -0
  194. package/dist/module/workflow-schedule/controller/workflow-schedule.controller.d.ts +83 -0
  195. package/dist/module/workflow-schedule/controller/workflow-schedule.controller.js +220 -0
  196. package/dist/module/workflow-schedule/controller/workflow-schedule.controller.js.map +1 -0
  197. package/dist/module/workflow-schedule/dto/create-schedule.dto.d.ts +32 -0
  198. package/dist/module/workflow-schedule/dto/create-schedule.dto.js +163 -0
  199. package/dist/module/workflow-schedule/dto/create-schedule.dto.js.map +1 -0
  200. package/dist/module/workflow-schedule/dto/get-execution-logs.dto.d.ts +35 -0
  201. package/dist/module/workflow-schedule/dto/get-execution-logs.dto.js +124 -0
  202. package/dist/module/workflow-schedule/dto/get-execution-logs.dto.js.map +1 -0
  203. package/dist/module/workflow-schedule/dto/update-schedule.dto.d.ts +19 -0
  204. package/dist/module/workflow-schedule/dto/update-schedule.dto.js +106 -0
  205. package/dist/module/workflow-schedule/dto/update-schedule.dto.js.map +1 -0
  206. package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.d.ts +30 -0
  207. package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.js +113 -0
  208. package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.js.map +1 -0
  209. package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.d.ts +34 -0
  210. package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.js +118 -0
  211. package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.js.map +1 -0
  212. package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.d.ts +44 -0
  213. package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.js +3 -0
  214. package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.js.map +1 -0
  215. package/dist/module/workflow-schedule/processors/schedule.processor.d.ts +31 -0
  216. package/dist/module/workflow-schedule/processors/schedule.processor.js +409 -0
  217. package/dist/module/workflow-schedule/processors/schedule.processor.js.map +1 -0
  218. package/dist/module/workflow-schedule/service/workflow-schedule.service.d.ts +44 -0
  219. package/dist/module/workflow-schedule/service/workflow-schedule.service.js +434 -0
  220. package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -0
  221. package/dist/module/workflow-schedule/workflow-schedule.module.d.ts +2 -0
  222. package/dist/module/workflow-schedule/workflow-schedule.module.js +44 -0
  223. package/dist/module/workflow-schedule/workflow-schedule.module.js.map +1 -0
  224. package/dist/tsconfig.build.tsbuildinfo +1 -1
  225. package/dist/utils/service/loggingUtil.service.d.ts +9 -2
  226. package/dist/utils/service/loggingUtil.service.js +65 -14
  227. package/dist/utils/service/loggingUtil.service.js.map +1 -1
  228. package/dist/utils/service/reflection-helper.service.js +3 -3
  229. package/dist/utils/service/reflection-helper.service.js.map +1 -1
  230. package/dist/utils/utils.module.js +2 -0
  231. package/dist/utils/utils.module.js.map +1 -1
  232. package/docs/modules/event-driven-integration-design.md +91 -91
  233. package/docs/modules/integration.md +250 -250
  234. package/eslint.config.mjs +34 -34
  235. package/nest-cli.json +14 -14
  236. package/package.json +124 -120
  237. package/src/app.controller.ts +12 -12
  238. package/src/app.module.ts +62 -52
  239. package/src/app.service.ts +8 -8
  240. package/src/config/bull.config.ts +69 -0
  241. package/src/config/config.module.ts +18 -17
  242. package/src/config/database.config.ts +23 -48
  243. package/src/constant/global.constant.ts +67 -67
  244. package/src/core.module.ts +81 -81
  245. package/src/decorators/roles.decorator.ts +7 -7
  246. package/src/dtos/response.dto.ts +6 -6
  247. package/src/dtos/response.ts +5 -5
  248. package/src/index.ts +1 -1
  249. package/src/module/auth/auth.module.ts +49 -49
  250. package/src/module/auth/controller/auth.controller.ts +28 -28
  251. package/src/module/auth/guards/google-auth.guard.ts +9 -9
  252. package/src/module/auth/guards/jwt.guard.ts +22 -22
  253. package/src/module/auth/guards/role.guard.ts +68 -68
  254. package/src/module/auth/services/auth.service.ts +50 -50
  255. package/src/module/auth/services/jwt.service.ts +11 -11
  256. package/src/module/auth/strategies/google.strategy.ts +54 -54
  257. package/src/module/auth/strategies/jwt.strategy.ts +58 -58
  258. package/src/module/auth/strategies/local.strategy.ts +13 -13
  259. package/src/module/dashboard/controller/dashboard.controller.ts +36 -36
  260. package/src/module/dashboard/dashboard.module.ts +21 -21
  261. package/src/module/dashboard/entity/dashboard_page_data.entity.ts +27 -27
  262. package/src/module/dashboard/entity/widget_master.entity.ts +18 -18
  263. package/src/module/dashboard/repository/dashboard.repository.ts +42 -42
  264. package/src/module/dashboard/service/dashboard.service.ts +73 -73
  265. package/src/module/dev/dev.module.ts +12 -12
  266. package/src/module/dev/service/dev.service.ts +7 -7
  267. package/src/module/enterprise/controller/organization.controller.ts +36 -36
  268. package/src/module/enterprise/enterprise.module.ts +30 -30
  269. package/src/module/enterprise/entity/enterprise.entity.ts +37 -37
  270. package/src/module/enterprise/entity/organization-app-mapping.entity.ts +13 -13
  271. package/src/module/enterprise/entity/organization.entity.ts +92 -92
  272. package/src/module/enterprise/repository/enterprise.repository.ts +31 -31
  273. package/src/module/enterprise/repository/organization.repository.ts +26 -26
  274. package/src/module/enterprise/repository/school.repository.ts +278 -278
  275. package/src/module/enterprise/service/brand.service.ts +5 -5
  276. package/src/module/enterprise/service/enterprise.service.ts +16 -16
  277. package/src/module/enterprise/service/organization-app-mapping.service.ts +4 -4
  278. package/src/module/enterprise/service/organization.service.ts +145 -145
  279. package/src/module/entity_json/controller/entity_json.controller.ts +21 -0
  280. package/src/module/entity_json/entity_json.module.ts +13 -0
  281. package/src/module/entity_json/service/entity_json.service.ts +88 -0
  282. package/src/module/filter/controller/filter.controller.ts +84 -84
  283. package/src/module/filter/dto/filter-request.dto.ts +38 -38
  284. package/src/module/filter/entity/saved-filter-detail.entity.ts +41 -41
  285. package/src/module/filter/entity/saved-filter-master.entity.ts +23 -23
  286. package/src/module/filter/filter.module.ts +31 -31
  287. package/src/module/filter/repository/saved-filter.repository.ts +168 -168
  288. package/src/module/filter/service/filter-evaluator.service.ts +86 -86
  289. package/src/module/filter/service/filter.service.ts +1005 -1034
  290. package/src/module/filter/service/saved-filter.service.ts +170 -170
  291. package/src/module/ics/controller/ics.controller.ts +21 -21
  292. package/src/module/ics/dto/ics.dto.ts +55 -55
  293. package/src/module/ics/ics.module.ts +13 -13
  294. package/src/module/ics/service/ics.service.ts +57 -57
  295. package/src/module/integration/controller/calender-event.controller.ts +31 -31
  296. package/src/module/integration/controller/integration.controller.ts +662 -662
  297. package/src/module/integration/controller/wrapper.controller.ts +37 -37
  298. package/src/module/integration/dto/create-config.dto.ts +526 -526
  299. package/src/module/integration/entity/integration-config.entity.ts +112 -112
  300. package/src/module/integration/entity/integration-entity-mapper.entity.ts +14 -14
  301. package/src/module/integration/entity/integration-source.entity.ts +17 -17
  302. package/src/module/integration/entity/user-integration.entity.ts +71 -71
  303. package/src/module/integration/examples/usage.example.ts +338 -338
  304. package/src/module/integration/factories/base.factory.ts +7 -7
  305. package/src/module/integration/factories/email.factory.ts +49 -49
  306. package/src/module/integration/factories/integration.factory.ts +121 -121
  307. package/src/module/integration/factories/sms.factory.ts +51 -51
  308. package/src/module/integration/factories/telephone.factory.ts +41 -41
  309. package/src/module/integration/factories/whatsapp.factory.ts +56 -56
  310. package/src/module/integration/integration.module.ts +110 -110
  311. package/src/module/integration/service/calendar-event.service.ts +118 -118
  312. package/src/module/integration/service/integration-entity-mapper.service.ts +17 -17
  313. package/src/module/integration/service/integration-queue.service.ts +229 -229
  314. package/src/module/integration/service/integration.service.ts +2633 -2633
  315. package/src/module/integration/service/oauth.service.ts +224 -224
  316. package/src/module/integration/service/wrapper.service.ts +700 -494
  317. package/src/module/integration/strategies/email/gmail-api.strategy.ts +280 -280
  318. package/src/module/integration/strategies/email/outlook-api.strategy.ts +44 -44
  319. package/src/module/integration/strategies/email/outlook.strategy.ts +64 -64
  320. package/src/module/integration/strategies/email/sendgrid-api.strategy.ts +260 -260
  321. package/src/module/integration/strategies/integration.strategy.ts +97 -97
  322. package/src/module/integration/strategies/sms/gupshup-sms.strategy.ts +146 -146
  323. package/src/module/integration/strategies/sms/msg91-sms.strategy.ts +164 -164
  324. package/src/module/integration/strategies/sms/tubelight-sms.strategy.ts +163 -163
  325. package/src/module/integration/strategies/telephone/ozonetel-voice.strategy.ts +238 -238
  326. package/src/module/integration/strategies/telephone/tubelight-voice.strategy.ts +210 -210
  327. package/src/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.ts +359 -359
  328. package/src/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.ts +372 -372
  329. package/src/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.ts +403 -403
  330. package/src/module/integration/strategies/whatsapp/whatsapp.strategy.ts +57 -57
  331. package/src/module/layout/controller/layout.controller.ts +47 -47
  332. package/src/module/layout/entity/header-items.entity.ts +28 -28
  333. package/src/module/layout/entity/header-section.entity.ts +19 -19
  334. package/src/module/layout/layout.module.ts +21 -21
  335. package/src/module/layout/repository/header-items.repository.ts +18 -18
  336. package/src/module/layout/repository/header-section.repository.ts +22 -22
  337. package/src/module/layout/service/header-section.service.ts +25 -25
  338. package/src/module/layout_preference/controller/layout_preference.controller.ts +73 -73
  339. package/src/module/layout_preference/entity/layout_preference.entity.ts +28 -28
  340. package/src/module/layout_preference/layout_preference.module.ts +22 -22
  341. package/src/module/layout_preference/repository/layout_preference.repository.ts +65 -65
  342. package/src/module/layout_preference/service/layout_preference.service.ts +191 -191
  343. package/src/module/lead/controller/lead.controller.ts +30 -30
  344. package/src/module/lead/lead.module.ts +14 -14
  345. package/src/module/lead/repository/lead.repository.ts +41 -41
  346. package/src/module/lead/service/lead.service.ts +54 -54
  347. package/src/module/linked_attributes/controller/linked_attributes.controller.ts +10 -0
  348. package/src/module/linked_attributes/entity/linked_attribute.entity.ts +48 -0
  349. package/src/module/linked_attributes/linked_attributes.module.ts +16 -0
  350. package/src/module/linked_attributes/repository/linked_attribute.repository.ts +12 -0
  351. package/src/module/linked_attributes/service/linked_attributes.service.ts +22 -0
  352. package/src/module/listmaster/controller/list-master.controller.ts +230 -230
  353. package/src/module/listmaster/entity/list-master-items.entity.ts +43 -43
  354. package/src/module/listmaster/entity/list-master.entity.ts +33 -33
  355. package/src/module/listmaster/listmaster.module.ts +46 -46
  356. package/src/module/listmaster/repository/list-master-items.repository.ts +169 -169
  357. package/src/module/listmaster/repository/list-master.repository.ts +46 -46
  358. package/src/module/listmaster/service/list-master-engine.ts +19 -19
  359. package/src/module/listmaster/service/list-master-extension.interface.ts +4 -4
  360. package/src/module/listmaster/service/list-master-item.service.ts +292 -292
  361. package/src/module/listmaster/service/list-master-registry.ts +15 -15
  362. package/src/module/listmaster/service/list-master.service.ts +535 -535
  363. package/src/module/mapper/controller/field-mapper.controller.ts +76 -76
  364. package/src/module/mapper/controller/mapper.controller.ts +20 -20
  365. package/src/module/mapper/dto/field-mapper.dto.ts +14 -14
  366. package/src/module/mapper/entity/field-lovs.entity.ts +19 -19
  367. package/src/module/mapper/entity/field-mapper.entity.ts +53 -53
  368. package/src/module/mapper/entity/mapper.entity.ts +16 -16
  369. package/src/module/mapper/mapper.module.ts +34 -34
  370. package/src/module/mapper/repository/field-lovs.repository.ts +35 -35
  371. package/src/module/mapper/repository/field-mapper.repository.ts +42 -42
  372. package/src/module/mapper/repository/mapper.repository.ts +15 -15
  373. package/src/module/mapper/service/field-mapper.service.ts +271 -266
  374. package/src/module/mapper/service/mapper.service.ts +79 -79
  375. package/src/module/master/controller/master.controller.ts +74 -74
  376. package/src/module/master/service/master.service.ts +483 -483
  377. package/src/module/meta/controller/app-master.controller.ts +38 -38
  378. package/src/module/meta/controller/attribute-master.controller.ts +74 -66
  379. package/src/module/meta/controller/entity-dynamic.controller.ts +125 -125
  380. package/src/module/meta/controller/entity-master.controller.ts +28 -28
  381. package/src/module/meta/controller/entity-relation.controller.ts +36 -36
  382. package/src/module/meta/controller/entity.controller.ts +392 -392
  383. package/src/module/meta/controller/entity.public.controller.ts +75 -75
  384. package/src/module/meta/controller/media.controller.ts +107 -107
  385. package/src/module/meta/controller/meta.controller.ts +96 -96
  386. package/src/module/meta/controller/view-master.controller.ts +86 -86
  387. package/src/module/meta/dto/entity-list-data.dto.ts +6 -6
  388. package/src/module/meta/dto/entity-tab.dto.ts +4 -4
  389. package/src/module/meta/dto/entity-table.dto.ts +9 -9
  390. package/src/module/meta/entity/app-master.entity.ts +34 -34
  391. package/src/module/meta/entity/attribute-master.entity.ts +89 -89
  392. package/src/module/meta/entity/base-entity.entity.ts +75 -75
  393. package/src/module/meta/entity/entity-master.entity.ts +85 -85
  394. package/src/module/meta/entity/entity-relation-data.entity.ts +29 -29
  395. package/src/module/meta/entity/entity-relation.entity.ts +23 -23
  396. package/src/module/meta/entity/entity-table-column.entity.ts +61 -61
  397. package/src/module/meta/entity/entity-table.entity.ts +50 -50
  398. package/src/module/meta/entity/media-data.entity.ts +32 -32
  399. package/src/module/meta/entity/preference.entity.ts +62 -62
  400. package/src/module/meta/entity/view-master.entity.ts +41 -41
  401. package/src/module/meta/entity.module.ts +166 -158
  402. package/src/module/meta/repository/app-master.repository.ts +20 -20
  403. package/src/module/meta/repository/attribute-master.repository.ts +118 -118
  404. package/src/module/meta/repository/entity-attribute-update.repository.ts +44 -0
  405. package/src/module/meta/repository/entity-master.repository.ts +69 -69
  406. package/src/module/meta/repository/entity-table-column.repository.ts +39 -39
  407. package/src/module/meta/repository/entity-table.repository.ts +53 -53
  408. package/src/module/meta/repository/media-data.repository.ts +50 -50
  409. package/src/module/meta/repository/preference.repository.ts +20 -20
  410. package/src/module/meta/repository/user-app-mapping.repository.ts +28 -28
  411. package/src/module/meta/repository/view-master.repository.ts +42 -42
  412. package/src/module/meta/service/app-master.service.ts +37 -37
  413. package/src/module/meta/service/attribute-master.service.ts +126 -126
  414. package/src/module/meta/service/common.service.ts +9 -9
  415. package/src/module/meta/service/entity-attribute-update.service.ts +29 -0
  416. package/src/module/meta/service/entity-dynamic.service.ts +819 -819
  417. package/src/module/meta/service/entity-list.service.ts +205 -205
  418. package/src/module/meta/service/entity-master.service.ts +169 -169
  419. package/src/module/meta/service/entity-realation-data.service.ts +9 -9
  420. package/src/module/meta/service/entity-relation.service.ts +69 -69
  421. package/src/module/meta/service/entity-service-impl.service.ts +525 -525
  422. package/src/module/meta/service/entity-table-column.service.ts +39 -39
  423. package/src/module/meta/service/entity-table.service.ts +150 -150
  424. package/src/module/meta/service/entity-validation.service.ts +187 -187
  425. package/src/module/meta/service/entity.service.ts +67 -67
  426. package/src/module/meta/service/field-group.service.ts +103 -103
  427. package/src/module/meta/service/media-data.service.ts +507 -507
  428. package/src/module/meta/service/populate-meta.service.ts +193 -193
  429. package/src/module/meta/service/preference.service.ts +16 -16
  430. package/src/module/meta/service/resolver.service.ts +267 -267
  431. package/src/module/meta/service/section-master.service.ts +104 -104
  432. package/src/module/meta/service/update-form-json.service.ts +22 -22
  433. package/src/module/meta/service/user-app-mapping.service.ts +17 -17
  434. package/src/module/meta/service/view-master.service.ts +127 -127
  435. package/src/module/microservice-client/microservice-clients.module.ts +13 -13
  436. package/src/module/microservice-client/service/microservice-client-factory.ts +37 -37
  437. package/src/module/microservice-client/service/microservice-clients.ts +4 -4
  438. package/src/module/module/controller/menu.controller.ts +15 -15
  439. package/src/module/module/controller/module-access.controller.ts +134 -134
  440. package/src/module/module/entity/menu.entity.ts +43 -43
  441. package/src/module/module/entity/module-access.entity.ts +25 -25
  442. package/src/module/module/entity/module-action.entity.ts +17 -17
  443. package/src/module/module/entity/module.entity.ts +52 -52
  444. package/src/module/module/module.module.ts +42 -42
  445. package/src/module/module/repository/menu.repository.ts +184 -184
  446. package/src/module/module/repository/module-access.repository.ts +344 -344
  447. package/src/module/module/service/menu.service.ts +82 -82
  448. package/src/module/module/service/module-access.service.ts +209 -209
  449. package/src/module/notification/controller/notification.controller.ts +58 -58
  450. package/src/module/notification/controller/otp.controller.ts +117 -117
  451. package/src/module/notification/entity/notification.entity.ts +26 -26
  452. package/src/module/notification/entity/otp.entity.ts +28 -28
  453. package/src/module/notification/firebase-admin.config.ts +22 -22
  454. package/src/module/notification/notification.module.ts +69 -69
  455. package/src/module/notification/repository/otp.repository.ts +27 -27
  456. package/src/module/notification/service/email.service.ts +127 -127
  457. package/src/module/notification/service/notification.service.ts +163 -163
  458. package/src/module/notification/service/otp.service.ts +132 -132
  459. package/src/module/third-party-module/entity/third-party-api-registry.entity.ts +52 -52
  460. package/src/module/third-party-module/repository/third-party-api-registry.repository.ts +20 -20
  461. package/src/module/third-party-module/service/api-registry.service.ts +13 -13
  462. package/src/module/third-party-module/third-party.module.ts +12 -12
  463. package/src/module/user/controller/login.controller.ts +197 -197
  464. package/src/module/user/controller/user.controller.ts +40 -40
  465. package/src/module/user/dto/create-user.dto.ts +62 -62
  466. package/src/module/user/dto/update-user.dto.ts +4 -4
  467. package/src/module/user/entity/role.entity.ts +33 -33
  468. package/src/module/user/entity/user-role-mapping.entity.ts +38 -38
  469. package/src/module/user/entity/user-session.entity.ts +73 -73
  470. package/src/module/user/entity/user.entity.ts +59 -59
  471. package/src/module/user/repository/role.repository.ts +96 -96
  472. package/src/module/user/repository/user-role-mapping.repository.ts +126 -126
  473. package/src/module/user/repository/user.repository.ts +50 -50
  474. package/src/module/user/repository/userSession.repository.ts +33 -33
  475. package/src/module/user/service/login.service.ts +304 -304
  476. package/src/module/user/service/role.service.ts +189 -189
  477. package/src/module/user/service/user-role-mapping.service.ts +98 -98
  478. package/src/module/user/service/user-session.service.ts +168 -168
  479. package/src/module/user/service/user.service.ts +365 -365
  480. package/src/module/user/user.module.ts +65 -65
  481. package/src/module/workflow/controller/action-category.controller.ts +54 -54
  482. package/src/module/workflow/controller/action-resource-mapping.controller.ts +23 -23
  483. package/src/module/workflow/controller/action-template-mapping.controller.ts +35 -35
  484. package/src/module/workflow/controller/action.controller.ts +111 -111
  485. package/src/module/workflow/controller/activity-log.controller.ts +55 -55
  486. package/src/module/workflow/controller/comm-template.controller.ts +43 -43
  487. package/src/module/workflow/controller/entity-modification.controller.ts +35 -35
  488. package/src/module/workflow/controller/form-master.controller.ts +43 -43
  489. package/src/module/workflow/controller/stage-group.controller.ts +48 -48
  490. package/src/module/workflow/controller/stage.controller.ts +50 -50
  491. package/src/module/workflow/controller/task.controller.ts +77 -77
  492. package/src/module/workflow/controller/workflow-list-master.controller.ts +44 -44
  493. package/src/module/workflow/controller/workflow-meta.controller.ts +80 -80
  494. package/src/module/workflow/controller/workflow.controller.ts +67 -67
  495. package/src/module/workflow/entity/action-category.entity.ts +38 -38
  496. package/src/module/workflow/entity/action-data.entity.ts +55 -55
  497. package/src/module/workflow/entity/action-resources-mapping.entity.ts +29 -29
  498. package/src/module/workflow/entity/action-template-mapping.entity.ts +17 -17
  499. package/src/module/workflow/entity/action.entity.ts +53 -50
  500. package/src/module/workflow/entity/activity-log.entity.ts +43 -43
  501. package/src/module/workflow/entity/comm-template.entity.ts +43 -43
  502. package/src/module/workflow/entity/entity-modification.entity.ts +38 -38
  503. package/src/module/workflow/entity/form.entity.ts +25 -25
  504. package/src/module/workflow/entity/stage-action-mapping.entity.ts +17 -17
  505. package/src/module/workflow/entity/stage-group.entity.ts +23 -23
  506. package/src/module/workflow/entity/stage-movement-data.entity.ts +38 -38
  507. package/src/module/workflow/entity/stage.entity.ts +20 -20
  508. package/src/module/workflow/entity/task-data.entity.ts +88 -88
  509. package/src/module/workflow/entity/template-attach-mapper.entity.ts +30 -30
  510. package/src/module/workflow/entity/workflow-data.entity.ts +11 -11
  511. package/src/module/workflow/entity/workflow-level-mapping.entity.ts +18 -18
  512. package/src/module/workflow/entity/workflow.entity.ts +20 -20
  513. package/src/module/workflow/repository/action-category.repository.ts +79 -79
  514. package/src/module/workflow/repository/action-data.repository.ts +334 -333
  515. package/src/module/workflow/repository/action.repository.ts +323 -323
  516. package/src/module/workflow/repository/activity-log.repository.ts +148 -148
  517. package/src/module/workflow/repository/comm-template.repository.ts +149 -149
  518. package/src/module/workflow/repository/form-master.repository.ts +59 -59
  519. package/src/module/workflow/repository/stage-group.repository.ts +176 -176
  520. package/src/module/workflow/repository/stage-movement.repository.ts +244 -244
  521. package/src/module/workflow/repository/stage.repository.ts +172 -172
  522. package/src/module/workflow/repository/task.repository.ts +134 -127
  523. package/src/module/workflow/repository/workflow.repository.ts +42 -42
  524. package/src/module/workflow/service/action-category.service.ts +33 -33
  525. package/src/module/workflow/service/action-data.service.ts +62 -62
  526. package/src/module/workflow/service/action-resources-mapping.service.ts +10 -10
  527. package/src/module/workflow/service/action-template-mapping.service.ts +106 -106
  528. package/src/module/workflow/service/action.service.ts +279 -279
  529. package/src/module/workflow/service/activity-log.service.ts +107 -107
  530. package/src/module/workflow/service/comm-template.service.ts +180 -180
  531. package/src/module/workflow/service/entity-modification.service.ts +67 -67
  532. package/src/module/workflow/service/form-master.service.ts +35 -35
  533. package/src/module/workflow/service/populate-workflow.service.ts +303 -303
  534. package/src/module/workflow/service/stage-action-mapping.service.ts +5 -5
  535. package/src/module/workflow/service/stage-group.service.ts +319 -319
  536. package/src/module/workflow/service/stage.service.ts +199 -199
  537. package/src/module/workflow/service/task.service.ts +575 -560
  538. package/src/module/workflow/service/workflow-list-master.service.ts +60 -60
  539. package/src/module/workflow/service/workflow-meta.service.ts +654 -640
  540. package/src/module/workflow/service/workflow.service.ts +205 -205
  541. package/src/module/workflow/workflow.module.ts +176 -176
  542. package/src/module/workflow-automation/controller/workflow-automation.controller.ts +43 -21
  543. package/src/module/workflow-automation/entity/workflow-automation-action.entity.ts +26 -26
  544. package/src/module/workflow-automation/entity/workflow-automation.entity.ts +40 -35
  545. package/src/module/workflow-automation/interface/action.decorator.ts +7 -7
  546. package/src/module/workflow-automation/interface/action.interface.ts +5 -5
  547. package/src/module/workflow-automation/service/action-registery.service.ts +35 -35
  548. package/src/module/workflow-automation/service/schedule-handler.service.ts +150 -0
  549. package/src/module/workflow-automation/service/workflow-automation-engine.service.ts +214 -214
  550. package/src/module/workflow-automation/service/workflow-automation.service.ts +508 -347
  551. package/src/module/workflow-automation/workflow-automation.module.ts +47 -34
  552. package/src/module/workflow-schedule/INSTALLATION.md +244 -0
  553. package/src/module/workflow-schedule/README.md +422 -0
  554. package/src/module/workflow-schedule/constants/schedule.constants.ts +48 -0
  555. package/src/module/workflow-schedule/controller/workflow-schedule.controller.ts +255 -0
  556. package/src/module/workflow-schedule/docs/CLAUDE_CODE_GUIDE.md +510 -0
  557. package/src/module/workflow-schedule/docs/CLAUDE_CODE_PROMPT.md +362 -0
  558. package/src/module/workflow-schedule/docs/RUN_CLAUDE_CODE.sh +68 -0
  559. package/src/module/workflow-schedule/dto/create-schedule.dto.ts +147 -0
  560. package/src/module/workflow-schedule/dto/get-execution-logs.dto.ts +119 -0
  561. package/src/module/workflow-schedule/dto/update-schedule.dto.ts +96 -0
  562. package/src/module/workflow-schedule/entities/scheduled-workflow.entity.ts +148 -0
  563. package/src/module/workflow-schedule/entities/workflow-execution-log.entity.ts +154 -0
  564. package/src/module/workflow-schedule/interfaces/schedule-job-data.interface.ts +53 -0
  565. package/src/module/workflow-schedule/processors/schedule.processor.ts +584 -0
  566. package/src/module/workflow-schedule/service/workflow-schedule.service.ts +600 -0
  567. package/src/module/workflow-schedule/workflow-schedule.module.ts +43 -0
  568. package/src/resources/dev.properties.yaml +30 -31
  569. package/src/resources/local.properties.yaml +27 -27
  570. package/src/resources/properties.module.ts +12 -12
  571. package/src/resources/properties.yaml.ts +11 -11
  572. package/src/resources/uat.properties.yaml +31 -31
  573. package/src/table.config.ts +126 -126
  574. package/src/utils/dto/excel-data.dto.ts +14 -14
  575. package/src/utils/dto/excelsheet-data.dto.ts +5 -5
  576. package/src/utils/service/base64util.service.ts +18 -18
  577. package/src/utils/service/clockIDGenUtil.service.ts +21 -21
  578. package/src/utils/service/codeGenerator.service.ts +22 -22
  579. package/src/utils/service/dateUtil.service.ts +17 -17
  580. package/src/utils/service/encryptUtil.service.ts +97 -97
  581. package/src/utils/service/excel-helper.service.ts +72 -72
  582. package/src/utils/service/excelUtil.service.ts +15 -15
  583. package/src/utils/service/file-util.service.ts +11 -11
  584. package/src/utils/service/json-util.service.ts +23 -23
  585. package/src/utils/service/loggingUtil.service.ts +88 -34
  586. package/src/utils/service/reflection-helper.service.ts +62 -62
  587. package/src/utils/service/wbsCodeGen.service.ts +8 -8
  588. package/src/utils/utils.module.ts +27 -25
  589. package/tsconfig.build.json +4 -4
  590. package/tsconfig.json +24 -24
  591. package/.claude/settings.local.json +0 -26
  592. package/.idea/copilot.data.migration.agent.xml +0 -6
  593. package/.idea/copilot.data.migration.ask.xml +0 -6
  594. package/.idea/copilot.data.migration.ask2agent.xml +0 -6
  595. package/.idea/copilot.data.migration.edit.xml +0 -6
  596. package/.idea/misc.xml +0 -6
  597. package/server.log +0 -850
@@ -16,14 +16,19 @@ exports.AttributeMasterController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const attribute_master_service_1 = require("../service/attribute-master.service");
18
18
  const jwt_guard_1 = require("../../auth/guards/jwt.guard");
19
+ const entity_attribute_update_service_1 = require("../service/entity-attribute-update.service");
19
20
  let AttributeMasterController = class AttributeMasterController {
20
- constructor(attributeMasterService) {
21
+ constructor(attributeMasterService, entityUpdateService) {
21
22
  this.attributeMasterService = attributeMasterService;
23
+ this.entityUpdateService = entityUpdateService;
22
24
  }
23
25
  async createAttribute(attributeData, req) {
24
26
  const loggedInUser = req.user.userData;
25
27
  return await this.attributeMasterService.createAttribute(attributeData, loggedInUser);
26
28
  }
29
+ async entityAttributeUpdate(payload) {
30
+ return this.entityUpdateService.execute(payload);
31
+ }
27
32
  async updateAttribute(attributeData, id, req) {
28
33
  const loggedInUser = req.user.userData;
29
34
  return await this.attributeMasterService.updateAttribute(attributeData, id, loggedInUser);
@@ -45,6 +50,13 @@ __decorate([
45
50
  __metadata("design:paramtypes", [Object, Object]),
46
51
  __metadata("design:returntype", Promise)
47
52
  ], AttributeMasterController.prototype, "createAttribute", null);
53
+ __decorate([
54
+ (0, common_1.Post)('/updateAttributeValue'),
55
+ __param(0, (0, common_1.Body)()),
56
+ __metadata("design:type", Function),
57
+ __metadata("design:paramtypes", [Object]),
58
+ __metadata("design:returntype", Promise)
59
+ ], AttributeMasterController.prototype, "entityAttributeUpdate", null);
48
60
  __decorate([
49
61
  (0, common_1.Post)('update/:id'),
50
62
  __param(0, (0, common_1.Body)()),
@@ -73,6 +85,7 @@ __decorate([
73
85
  exports.AttributeMasterController = AttributeMasterController = __decorate([
74
86
  (0, common_1.Controller)('attribute-master'),
75
87
  (0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
76
- __metadata("design:paramtypes", [attribute_master_service_1.AttributeMasterService])
88
+ __metadata("design:paramtypes", [attribute_master_service_1.AttributeMasterService,
89
+ entity_attribute_update_service_1.EntityUpdateService])
77
90
  ], AttributeMasterController);
78
91
  //# sourceMappingURL=attribute-master.controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"attribute-master.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/attribute-master.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AAExB,kFAA6E;AAC7E,2DAA2D;AAIpD,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACpC,YACmB,sBAA8C;QAA9C,2BAAsB,GAAtB,sBAAsB,CAAwB;IAC9D,CAAC;IAGE,AAAN,KAAK,CAAC,eAAe,CACX,aAAkB,EACnB,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,OAAO,MAAM,IAAI,CAAC,sBAAsB,CAAC,eAAe,CACtD,aAAa,EACb,YAAY,CACb,CAAC;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,eAAe,CACX,aAAkB,EACb,EAAU,EAChB,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,OAAO,MAAM,IAAI,CAAC,sBAAsB,CAAC,eAAe,CACtD,aAAa,EACb,EAAE,EACF,YAAY,CACb,CAAC;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CACP,EAAU,EAChB,GAA4B;QAEnC,OAAO,MAAM,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAChE,CAAC;IAGK,AAAN,KAAK,CAAC,yBAAyB,CACR,UAAkB,EAChC,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,OAAO,MAAM,IAAI,CAAC,sBAAsB,CAAC,yBAAyB,CAChE,UAAU,EACV,YAAY,CACb,CAAC;IACJ,CAAC;CACF,CAAA;AAlDY,8DAAyB;AAM9B;IADL,IAAA,aAAI,EAAC,SAAS,CAAC;IAEb,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,YAAG,GAAE,CAAA;;;;gEAOP;AAGK;IADL,IAAA,aAAI,EAAC,YAAY,CAAC;IAEhB,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IACX,WAAA,IAAA,YAAG,GAAE,CAAA;;;;gEAQP;AAGK;IADL,IAAA,YAAG,EAAC,aAAa,CAAC;IAEhB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IACX,WAAA,IAAA,YAAG,GAAE,CAAA;;;;iEAGP;AAGK;IADL,IAAA,YAAG,EAAC,6BAA6B,CAAC;IAEhC,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;0EAOP;oCAjDU,yBAAyB;IAFrC,IAAA,mBAAU,EAAC,kBAAkB,CAAC;IAC9B,IAAA,kBAAS,EAAC,wBAAY,CAAC;qCAGqB,iDAAsB;GAFtD,yBAAyB,CAkDrC"}
1
+ {"version":3,"file":"attribute-master.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/attribute-master.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AAExB,kFAA6E;AAC7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E,CAAA;IACN,WAAA,IAAA,YAAG,GAAE,CAAA;;;;gEAOP;AAGI;IADN,IAAA,aAAI,EAAC,uBAAuB,CAAC;IACC,WAAA,IAAA,aAAI,GAAE,CAAA;;;;sEAGnC;AAGM;IADL,IAAA,aAAI,EAAC,YAAY,CAAC;IAEhB,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IACX,WAAA,IAAA,YAAG,GAAE,CAAA;;;;gEAQP;AAGK;IADL,IAAA,YAAG,EAAC,aAAa,CAAC;IAEhB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IACX,WAAA,IAAA,YAAG,GAAE,CAAA;;;;iEAGP;AAGK;IADL,IAAA,YAAG,EAAC,6BAA6B,CAAC;IAEhC,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;0EAOP;oCAxDU,yBAAyB;IAFrC,IAAA,mBAAU,EAAC,kBAAkB,CAAC;IAC9B,IAAA,kBAAS,EAAC,wBAAY,CAAC;qCAGqB,iDAAsB;QACzB,qDAAmB;GAHhD,yBAAyB,CAyDrC"}
@@ -6,7 +6,7 @@ export declare class AppMaster extends BaseEntity {
6
6
  color: string;
7
7
  route: string;
8
8
  description: string;
9
- backgroudcolor: string;
10
- iconname: string;
9
+ backgroudColor: string;
10
+ iconName: string;
11
11
  version: string;
12
12
  }
@@ -40,13 +40,13 @@ __decorate([
40
40
  __metadata("design:type", String)
41
41
  ], AppMaster.prototype, "description", void 0);
42
42
  __decorate([
43
- (0, typeorm_1.Column)({ name: 'backgroudcolor', type: 'varchar', nullable: true }),
43
+ (0, typeorm_1.Column)({ name: 'backgroudColor', type: 'varchar', nullable: true }),
44
44
  __metadata("design:type", String)
45
- ], AppMaster.prototype, "backgroudcolor", void 0);
45
+ ], AppMaster.prototype, "backgroudColor", void 0);
46
46
  __decorate([
47
- (0, typeorm_1.Column)({ name: 'iconname', type: 'varchar', nullable: true }),
47
+ (0, typeorm_1.Column)({ name: 'iconName', type: 'varchar', nullable: true }),
48
48
  __metadata("design:type", String)
49
- ], AppMaster.prototype, "iconname", void 0);
49
+ ], AppMaster.prototype, "iconName", void 0);
50
50
  __decorate([
51
51
  (0, typeorm_1.Column)({ name: 'version', type: 'varchar', nullable: true }),
52
52
  __metadata("design:type", String)
@@ -106,7 +106,7 @@ __decorate([
106
106
  __metadata("design:type", String)
107
107
  ], EntityMaster.prototype, "doc_upload_path", void 0);
108
108
  __decorate([
109
- (0, typeorm_1.Column)({ name: 'overwrite_path', type: 'int', nullable: true }),
109
+ (0, typeorm_1.Column)({ name: 'overwrite_path', type: 'tinyint', nullable: true }),
110
110
  __metadata("design:type", Number)
111
111
  ], EntityMaster.prototype, "overwrite_path", void 0);
112
112
  exports.EntityMaster = EntityMaster = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"entity-master.entity.js","sourceRoot":"","sources":["../../../../src/module/meta/entity/entity-master.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAkD;AAClD,uEAA4E;AAC5E,qCAAgD;AAIzC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,+BAAU;IAC1C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,yCAAuB,CAAC;IAC7C,CAAC;CA0EF,CAAA;AA9EY,oCAAY;AAYvB;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,KAAK;KAChB,CAAC;;wDACyB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACzD;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,I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,EAAE,CAAC;;yDACxC;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;gDACxC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDACxC;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC5B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC3B;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAC,EAAE,EAAE,CAAC;;qDACvC;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;;oDAC3C;uBA7EZ,YAAY;IAFxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;IACrC,IAAA,eAAK,EAAC,mCAAmC,EAAE,CAAC,oBAAoB,EAAE,iBAAiB,CAAC,CAAC;;GACzE,YAAY,CA8ExB"}
@@ -57,7 +57,7 @@ __decorate([
57
57
  __metadata("design:type", String)
58
58
  ], ViewMaster.prototype, "type", void 0);
59
59
  __decorate([
60
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
60
+ (0, typeorm_1.Column)({ type: 'int' }),
61
61
  __metadata("design:type", Number)
62
62
  ], ViewMaster.prototype, "is_default", void 0);
63
63
  exports.ViewMaster = ViewMaster = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"view-master.entity.js","sourceRoot":"","sources":["../../../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,EAAE,CAAC;;wCACd;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;8CACL;qBAlCR,UAAU;IADtB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;;GACvB,UAAU,CAmCtB"}
@@ -62,6 +62,8 @@ const entity_master_repository_1 = require("./repository/entity-master.repositor
62
62
  const entity_master_controller_1 = require("./controller/entity-master.controller");
63
63
  const workflow_automation_module_1 = require("../workflow-automation/workflow-automation.module");
64
64
  const entity_public_controller_1 = require("./controller/entity.public.controller");
65
+ const entity_attribute_update_service_1 = require("./service/entity-attribute-update.service");
66
+ const entity_attribute_update_repository_1 = require("./repository/entity-attribute-update.repository");
65
67
  let EntityModule = class EntityModule {
66
68
  };
67
69
  exports.EntityModule = EntityModule;
@@ -80,6 +82,7 @@ exports.EntityModule = EntityModule = __decorate([
80
82
  app_master_entity_1.AppMaster,
81
83
  entity_relation_entity_1.EntityRelation,
82
84
  entity_relation_data_entity_1.EntityRelationData,
85
+ entity_attribute_update_service_1.EntityUpdateService
83
86
  ]),
84
87
  (0, common_1.forwardRef)(() => listmaster_module_1.ListMasterModule),
85
88
  (0, common_1.forwardRef)(() => filter_module_1.FilterModule),
@@ -92,6 +95,7 @@ exports.EntityModule = EntityModule = __decorate([
92
95
  entity_dynamic_service_1.EntityDynamicService,
93
96
  { provide: 'CommonService', useClass: common_service_1.CommonService },
94
97
  attribute_master_repository_1.AttributeMasterRepository,
98
+ entity_attribute_update_repository_1.EntityUpdateRepository,
95
99
  preference_service_1.PreferenceService,
96
100
  preference_repository_1.PreferenceRepository,
97
101
  master_service_1.MasterService,
@@ -104,6 +108,7 @@ exports.EntityModule = EntityModule = __decorate([
104
108
  media_data_repository_1.MediaDataRepository,
105
109
  media_data_service_1.MediaDataService,
106
110
  attribute_master_service_1.AttributeMasterService,
111
+ entity_attribute_update_service_1.EntityUpdateService,
107
112
  view_master_repository_1.ViewMaterRespository,
108
113
  entity_validation_service_1.EntityValidationService,
109
114
  { provide: 'ViewMasterService', useClass: view_master_service_1.ViewMasterService },
@@ -128,6 +133,8 @@ exports.EntityModule = EntityModule = __decorate([
128
133
  populate_meta_service_1.PopulateMetaService,
129
134
  entity_table_column_service_1.EntityTableColumnService,
130
135
  media_data_service_1.MediaDataService,
136
+ entity_attribute_update_service_1.EntityUpdateService,
137
+ entity_attribute_update_repository_1.EntityUpdateRepository,
131
138
  'ViewMasterService',
132
139
  attribute_master_service_1.AttributeMasterService,
133
140
  app_master_service_1.AppMasterService,
@@ -1 +1 @@
1
- {"version":3,"file":"entity.module.js","sourceRoot":"","sources":["../../../src/module/meta/entity.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,2EAAsE;AACtE,uFAA0E;AAC1E,sEAAkE;AAClE,6CAAgD;AAChD,2DAAuD;AACvD,wEAA6D;AAC7D,8EAAmE;AACnE,0FAAqF;AACrF,qEAAiE;AACjE,8EAA0E;AAC1E,kEAA8D;AAC9D,8EAA0E;AAC1E,qEAAiE;AACjE,sEAA2D;AAC3D,oFAAwE;AACxE,kFAA6E;AAC7E,yEAAoE;AACpE,gGAA0F;AAC1F,uFAAiF;AACjF,uEAAkE;AAClE,kEAAuD;AACvD,qEAAgE;AAChE,8EAAyE;AACzE,oEAAgE;AAChE,oEAAyD;AACzD,iFAA4E;AAK5E,uEAAkE;AAClE,gFAA2E;AAC3E,gFAA2E;AAC3E,kEAA8D;AAC9D,mFAA8E;AAC9E,uEAAmE;AACnE,2DAAuD;AAIvD,8EAAyE;AACzE,kGAA4F;AAC5F,sFAA0E;AAC1E,qEAAgE;AAChE,8EAA0E;AAC1E,kEAAuD;AACvD,2EAAsE;AACtE,0FAAqF;AACrF,sFAAiF;AACjF,6EAAwE;AACxE,iEAA6D;AAC7D,4EAAiE;AACjE,sFAA0E;AAC1E,+EAA0E;AAC1E,2FAAoF;AACpF,wFAAmF;AACnF,6DAAyD;AACzD,oFAA+E;AAC/E,o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B;YACnB,sDAAwB;YACxB,qCAAgB;YAGhB,mBAAmB;YACnB,iDAAsB;YAGtB,qCAAgB;YAChB,8BAAa;YACb,kCAAe;YACf,6CAAoB;YACpB,eAAe;YACf,uBAAuB;SACxB;QACD,WAAW,EAAE;YACX,oCAAgB;YAChB,oCAAgB;YAChB,kCAAe;YACf,6CAAoB;YACpB,gCAAc;YACd,2CAAmB;YACnB,uDAAyB;YACzB,mDAAuB;YACvB,qDAAwB;YACxB,iDAAsB;YACtB,iDAAsB;SACvB;KACF,CAAC;GACW,YAAY,CAAG"}
1
+ {"version":3,"file":"entity.module.js","sourceRoot":"","sources":["../../../src/module/meta/entity.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,2EAAsE;AACtE,uFAA0E;AAC1E,sEAAkE;AAClE,6CAAgD;AAChD,2DAAuD;AACvD,wEAA6D;AAC7D,8EAAmE;AACnE,0FAAqF;AACrF,qEAAiE;AACjE,8EAA0E;AAC1E,kEAA8D;AAC9D,8EAA0E;AAC1E,qEAAiE;AACjE,sEAA2D;AAC3D,oFAAwE;AACxE,kFAA6E;AAC7E,yEAAoE;AACpE,gGAA0F;AAC1F,uFAAiF;AACjF,uEAAkE;AAClE,kEAAuD;AACvD,qEAAgE;AAChE,8EAAyE;AACzE,oEAAgE;AAChE,oEAAyD;AACzD,iFAA4E;AAK5E,uEAAkE;AAClE,gFAA2E;AAC3E,gFAA2E;AAC3E,kEAA8D;AAC9D,mFAA8E;AAC9E,uEAAmE;AACnE,2DAAuD;AAIvD,8EAAyE;AACzE,kGAA4F;AAC5F,sFAA0E;AAC1E,qEAAgE;AAChE,8EAA0E;AAC1E,kEAAuD;AACvD,2EAAsE;AACtE,0FAAqF;AACrF,sFAAiF;AACjF,6EAAwE;AACxE,iEAA6D;AAC7D,4EAAiE;AACjE,sFAA0E;AAC1E,+EAA0E;AAC1E,2FAAoF;AACpF,wFAAmF;AACnF,6DAAyD;AACzD,oFAA+E;AAC/E,oFAA+E;AA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,sCAAiB;YACjB,uCAAiB;YACjB,mDAAuB;YACvB,yCAAkB;YAClB,2CAAmB;YACnB,sDAAwB;YACxB,qCAAgB;YAChB,qDAAmB;YACnB,2DAAsB;YAGtB,mBAAmB;YACnB,iDAAsB;YAGtB,qCAAgB;YAChB,8BAAa;YACb,kCAAe;YACf,6CAAoB;YACpB,eAAe;YACf,uBAAuB;SACxB;QACD,WAAW,EAAE;YACX,oCAAgB;YAChB,oCAAgB;YAChB,kCAAe;YACf,6CAAoB;YACpB,gCAAc;YACd,2CAAmB;YACnB,uDAAyB;YACzB,mDAAuB;YACvB,qDAAwB;YACxB,iDAAsB;YACtB,iDAAsB;SACvB;KACF,CAAC;GACW,YAAY,CAAG"}
@@ -63,11 +63,11 @@ let AttributeMasterRepository = class AttributeMasterRepository {
63
63
  }));
64
64
  }
65
65
  async getTableNameByEntityType(entityType, loggedInUser) {
66
- const result = await this.dataSource.query(`SELECT db_table_name FROM frm_entity_master WHERE mapped_entity_type = $1 AND organization_id = $2`, [entityType, loggedInUser.organization_id]);
66
+ const result = await this.dataSource.query(`SELECT db_table_name FROM frm_entity_master WHERE mapped_entity_type = ? AND organization_id = ?`, [entityType, loggedInUser.organization_id]);
67
67
  return result.length ? result[0].db_table_name : null;
68
68
  }
69
69
  async checkIfColumnExists(tableName, columnName) {
70
- const result = await this.dataSource.query(`SHOW COLUMNS FROM \`${tableName}\` LIKE $1`, [columnName]);
70
+ const result = await this.dataSource.query(`SHOW COLUMNS FROM \`${tableName}\` LIKE ?`, [columnName]);
71
71
  return result.length > 0;
72
72
  }
73
73
  async addColumnToTable(tableName, columnName, columnType) {
@@ -1 +1 @@
1
- {"version":3,"file":"attribute-master.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/attribute-master.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,+EAAoE;AACpE,qCAAqD;AAI9C,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAC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B;QACrI,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC;YAClD,KAAK,EAAE;gBACL,kBAAkB,EAAE,aAAa,EAAE,eAAe;aACnD;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AA9GY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,yCAAe,CAAC,CAAA;qCACU,oBAAU;QACzB,oBAAU;GAJ9B,yBAAyB,CA8GrC"}
1
+ {"version":3,"file":"attribute-master.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/attribute-master.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,+EAAoE;AACpE,qCAAqD;AAI9C,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACpC,YAEmB,yBAAsD,EACtD,UAAsB;QADtB,8BAAyB,GAAzB,yBAAyB,CAA6B;QACtD,eAAU,GAAV,UAAU,CAAY;IACtC,CAAC;IAGJ,KAAK,CAAC,uEAAuE,CAC3E,cAAsB,EACtB,gBAAwB,EACxB,YAAoB,EACpB,cAAsB;QAEtB,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC;YAClD,KAAK,EAAE;gBACL,gBAAgB,EAAE,cAAc;gBAChC,kBAAkB,EAAE,gBAAgB;gBACpC,aAAa,EAAE,YAAY;gBAC3B,eAAe,EAAE,cAAc;aAChC;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,gCAAgC,CACpC,UAAkB,EAClB,YAAsB;QAEtB,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC;YAC/C,KAAK,EAAE;gBACL,kBAAkB,EAAE,IAAA,YAAE,EAAC,CAAC,UAAU,CAAC,CAAC;gBACpC,eAAe,EAAE,YAAY,CAAC,eAAe;aAC9C;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,e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CAAC;IACxD,CAAC;IAED,KAAK,CAAC,mBAAmB,CACvB,SAAiB,EACjB,UAAkB;QAElB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACxC,uBAAuB,SAAS,WAAW,EAC3C,CAAC,UAAU,CAAC,CACb,CAAC;QACF,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,SAAiB,EACjB,UAAkB,EAClB,UAAkB;QAElB,MAAM,UAAU,GAAG,iBAAiB,SAAS,mBAAmB,UAAU,MAAM,UAAU,OAAO,CAAC;QAClG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC;IAED,KAAK,CAAC,sDAAsD,CAAC,kBAA0B,EAAE,aAAqB,EAAE,eAAuB;QACrI,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC;YAClD,KAAK,EAAE;gBACL,kBAAkB,EAAE,aAAa,EAAE,eAAe;aACnD;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AA9GY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,yCAAe,CAAC,CAAA;qCACU,oBAAU;QACzB,oBAAU;GAJ9B,yBAAyB,CA8GrC"}
@@ -0,0 +1,6 @@
1
+ import { DataSource } from 'typeorm';
2
+ export declare class EntityUpdateRepository {
3
+ private readonly dataSource;
4
+ constructor(dataSource: DataSource);
5
+ updateEntityAttribute(entity: any, config: any): Promise<import("typeorm").UpdateResult>;
6
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EntityUpdateRepository = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const typeorm_1 = require("typeorm");
15
+ let EntityUpdateRepository = class EntityUpdateRepository {
16
+ constructor(dataSource) {
17
+ this.dataSource = dataSource;
18
+ }
19
+ async updateEntityAttribute(entity, config) {
20
+ const { entityType, organization_id } = entity;
21
+ const result = await this.dataSource.query(`SELECT data_source
22
+ FROM frm_entity_master
23
+ WHERE mapped_entity_type = ?
24
+ and organization_id = ?`, [config.entity_type, organization_id]);
25
+ if (!result.length) {
26
+ throw new Error("Entity table not found");
27
+ }
28
+ const entityTableName = result[0].data_source;
29
+ const isLead = config.entity_type === "LEAD";
30
+ const idColumn = isLead ? "id" : "parent_id";
31
+ return await this.dataSource
32
+ .createQueryBuilder()
33
+ .update(entityTableName)
34
+ .set({ [config.attribute_key]: config.attribute_value })
35
+ .where(`${idColumn} = :id`, { id: entity.id })
36
+ .execute();
37
+ }
38
+ };
39
+ exports.EntityUpdateRepository = EntityUpdateRepository;
40
+ exports.EntityUpdateRepository = EntityUpdateRepository = __decorate([
41
+ (0, common_1.Injectable)(),
42
+ __metadata("design:paramtypes", [typeorm_1.DataSource])
43
+ ], EntityUpdateRepository);
44
+ //# sourceMappingURL=entity-attribute-update.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-attribute-update.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/entity-attribute-update.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAqC;AAG9B,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAGxD,KAAK,CAAC,qBAAqB,CAAC,MAAM,EAAE,MAAM;QACzC,MAAM,EAAC,UAAU,EAAE,eAAe,EAAC,GAAG,MAAM,CAAC;QAI7C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACxC;;;6BAGyB,EACzB,CAAC,MAAM,CAAC,WAAW,EAAE,eAAe,CAAC,CACtC,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAC5C,CAAC;QAED,MAAM,eAAe,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;QAIhD,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,KAAK,MAAM,CAAC;QAC7C,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC;QAI7C,OAAO,MAAM,IAAI,CAAC,UAAU;aACzB,kBAAkB,EAAE;aACpB,MAAM,CAAC,eAAe,CAAC;aACvB,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,eAAe,EAAE,CAAC;aACvD,KAAK,CAAC,GAAG,QAAQ,QAAQ,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;aAC7C,OAAO,EAAE,CAAC;IAEb,CAAC;CAEA,CAAA;AAvCY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAE8B,oBAAU;GADxC,sBAAsB,CAuClC"}
@@ -27,7 +27,7 @@ let EntityMasterRepository = class EntityMasterRepository {
27
27
  async getEntityById(id) {
28
28
  let data = await this.entityMasterRepository.findOne({ where: { id } });
29
29
  if (data) {
30
- let listMasterData = await this.entityMasterRepository.query(`SELECT * FROM frm_list_master_items where id = $1`, [data?.status]);
30
+ let listMasterData = await this.entityMasterRepository.query(`SELECT * FROM frm_list_master_items where id = ?`, [data?.status]);
31
31
  data.status = listMasterData?.[0].name;
32
32
  }
33
33
  return data;
@@ -53,7 +53,7 @@ let EntityMasterRepository = class EntityMasterRepository {
53
53
  }
54
54
  async getAttributesOfTypeDate(entity_type, loggedInUser) {
55
55
  const organization_id = loggedInUser.organization_id;
56
- const attributes = await this.dataSource.query(`SELECT * FROM frm_entity_attribute WHERE mapped_entity_type = $1 AND data_type = 'DATE' AND organization_id = $2`, [entity_type, organization_id]);
56
+ const attributes = await this.dataSource.query(`SELECT * FROM frm_entity_attribute WHERE mapped_entity_type = ? AND data_type = 'DATE' AND organization_id = ?`, [entity_type, organization_id]);
57
57
  const attributeList = attributes.map((attr) => ({
58
58
  label: attr.name,
59
59
  value: attr.attribute_key,
@@ -1 +1 @@
1
- {"version":3,"file":"entity-master.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/entity-master.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,yEAA8D;AAC9D,6CAAmD;AACnD,qCAAiD;AACjD,sFAAsF;AAG/E,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAEmB,sBAAgD,EAChD,UAAsB,EAEtB,iBAAoC;QAHpC,2BAAsB,GAAtB,sBAAsB,CAA0B;QAChD,eAAU,GAAV,UAAU,CAAY;QAEtB,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,aAAa,CAAC,EAAU;QAC5B,IAAI,IAAI,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QACxE,IAAI,IAAI,EAAE,CAAC;YACT,IAAI,cAAc,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAC1D,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I,EAAE,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,uBAAuB,CAAC,WAAW,EAAE,YAAY;QACrD,MAAM,eAAe,GAAG,YAAY,CAAC,eAAe,CAAC;QAErD,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAC5C,kHAAkH,EAClH,CAAC,WAAW,EAAE,eAAe,CAAC,CAC/B,CAAC;QAEF,MAAM,aAAa,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAC9C,KAAK,EAAE,IAAI,CAAC,IAAI;YAChB,KAAK,EAAE,IAAI,CAAC,aAAa;SAC1B,CAAC,CAAC,CAAC;QAEJ,OAAO,aAAa,CAAC;IACvB,CAAC;CACF,CAAA;AA7DY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,mCAAY,CAAC,CAAA;IAG9B,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCAFa,oBAAU;QACtB,oBAAU;QAEH,uCAAiB;GAN5C,sBAAsB,CA6DlC"}
1
+ {"version":3,"file":"entity-master.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/entity-master.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,yEAA8D;AAC9D,6CAAmD;AACnD,qCAAiD;AACjD,sFAAsF;AAG/E,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAEmB,sBAAgD,EAChD,UAAsB,EAEtB,iBAAoC;QAHpC,2BAAsB,GAAtB,sBAAsB,CAA0B;QAChD,eAAU,GAAV,UAAU,CAAY;QAEtB,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,aAAa,CAAC,EAAU;QAC5B,IAAI,IAAI,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAA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,EAAE,EAAE,EAAE,YAAY,CAAC;SACvE,CAAC,CAAC;QAEH,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,uBAAuB,CAAC,WAAW,EAAE,YAAY;QACrD,MAAM,eAAe,GAAG,YAAY,CAAC,eAAe,CAAC;QAErD,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAC5C,gHAAgH,EAChH,CAAC,WAAW,EAAE,eAAe,CAAC,CAC/B,CAAC;QAEF,MAAM,aAAa,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAC9C,KAAK,EAAE,IAAI,CAAC,IAAI;YAChB,KAAK,EAAE,IAAI,CAAC,aAAa;SAC1B,CAAC,CAAC,CAAC;QAEJ,OAAO,aAAa,CAAC;IACvB,CAAC;CACF,CAAA;AA7DY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,mCAAY,CAAC,CAAA;IAG9B,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCAFa,oBAAU;QACtB,oBAAU;QAEH,uCAAiB;GAN5C,sBAAsB,CA6DlC"}
@@ -40,7 +40,7 @@ let AttributeMasterService = class AttributeMasterService {
40
40
  columnType = 'DATE';
41
41
  break;
42
42
  case 'boolean':
43
- columnType = 'int(1)';
43
+ columnType = 'TINYINT(1)';
44
44
  break;
45
45
  default:
46
46
  columnType = 'VARCHAR(255)';
@@ -1 +1 @@
1
- {"version":3,"file":"attribute-master.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/attribute-master.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2FAAsF;AAK/E,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YACmB,yBAAoD;QAApD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-master.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/attribute-master.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2FAAsF;AAK/E,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YACmB,yBAAoD;QAApD,8BAAyB,GAAzB,yBAAyB,CAA2B;IAEvE,CAAC;IAED,KAAK,CAAC,gCAAgC,CACpC,WAAmB,EACnB,YAAsB;QAEtB,OAAO,IAAI,CAAC,yBAAyB,CAAC,gCAAgC,CACpE,WAAW,EACX,YAAY,CACb,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,aAA8B,EAC9B,YAAsB;QAEtB,aAAa,CAAC,eAAe,GAAG,YAAY,CAAC,eAAe,CAAC;QAC7D,aAAa,CAAC,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;QACnD,aAAa,CAAC,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAC;QAG/C,MAAM,WAAW,GACf,MAAM,IAAI,CAAC,yBAAyB,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;QAGtE,MAAM,SAAS,GACb,MAAM,IAAI,CAAC,yBAAyB,CAAC,wBAAwB,CAC3D,aAAa,CAAC,kBAAkB,EAChC,YAAY,CACb,CAAC;QACJ,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CACb,kCAAkC,aAAa,CAAC,kBAAkB,EAAE,CACrE,CAAC;QACJ,CAAC;QAGD,IAAI,UAAkB,CAAC;QACvB,QAAQ,aAAa,CAAC,YAAY,EAAE,CAAC;YACnC,KAAK,MAAM;gBACT,UAAU,GAAG,cAAc,CAAC;gBAC5B,MAAM;YACR,KAAK,QAAQ;gBACX,UAAU,GAAG,KAAK,CAAC;gBACnB,MAAM;YACR,KAAK,MAAM;gBACT,UAAU,GAAG,MAAM,CAAC;gBACpB,MAAM;YACR,KAAK,SAAS;gBACZ,UAAU,GAAG,YAAY,CAAC;gBAC1B,MAAM;YACR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ACb,YAAY,CAAC,eAAe,CAC7B,CAAC;IACJ,CAAC;CACF,CAAA;AAvHY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAGmC,uDAAyB;GAF5D,sBAAsB,CAuHlC"}
@@ -0,0 +1,7 @@
1
+ import { EntityServiceImpl } from "./entity-service-impl.service";
2
+ import { EntityUpdateRepository } from "../repository/entity-attribute-update.repository";
3
+ export declare class EntityUpdateService extends EntityServiceImpl {
4
+ private readonly entityUpdateRepository;
5
+ constructor(entityUpdateRepository: EntityUpdateRepository);
6
+ execute(payload: any): Promise<any>;
7
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EntityUpdateService = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const entity_service_impl_service_1 = require("./entity-service-impl.service");
15
+ const entity_attribute_update_repository_1 = require("../repository/entity-attribute-update.repository");
16
+ let EntityUpdateService = class EntityUpdateService extends entity_service_impl_service_1.EntityServiceImpl {
17
+ constructor(entityUpdateRepository) {
18
+ super();
19
+ this.entityUpdateRepository = entityUpdateRepository;
20
+ }
21
+ async execute(payload) {
22
+ let { entity, user, config } = payload;
23
+ console.log(entity);
24
+ if (entity.entity_type !== 'LEAD') {
25
+ entity = await this.getEntityData('LEAD', entity.parent_id, user);
26
+ }
27
+ console.log(entity, "---------------------------------------");
28
+ return this.entityUpdateRepository.updateEntityAttribute(entity, config);
29
+ }
30
+ };
31
+ exports.EntityUpdateService = EntityUpdateService;
32
+ exports.EntityUpdateService = EntityUpdateService = __decorate([
33
+ (0, common_1.Injectable)(),
34
+ __metadata("design:paramtypes", [entity_attribute_update_repository_1.EntityUpdateRepository])
35
+ ], EntityUpdateService);
36
+ //# sourceMappingURL=entity-attribute-update.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-attribute-update.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-attribute-update.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+EAAkE;AAClE,yGAA0F;AAGnF,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,+CAAiB;IAE1D,YACqB,sBAA6C;QAE9D,KAAK,EAAE,CAAC;QAFS,2BAAsB,GAAtB,sBAAsB,CAAuB;IAGlE,CAAC;IAEC,KAAK,CAAC,OAAO,CAAC,OAAY;QAExB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QACvC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QAGnB,IAAI,MAAM,CAAC,WAAW,KAAK,MAAM,EAAE,CAAC;YAClC,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAC,IAAI,CAAE,CAAC;QACpE,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,MAAM,EAAC,yCAAyC,CAAC,CAAC;QAE9D,OAAO,IAAI,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,MAAM,EAAC,MAAM,CAAC,CAAC;IAG1E,CAAC;CACF,CAAA;AAvBY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAI+B,2DAAsB;GAHrD,mBAAmB,CAuB/B"}
@@ -25,7 +25,7 @@ let EntityDynamicService = class EntityDynamicService {
25
25
  const organizationId = loggedInUser.organization_id;
26
26
  const tableName = await this.getTableName(entityType, organizationId);
27
27
  const validAttributes = await this.getAttributeCodes(entityType, organizationId);
28
- const statusList = await this.dataSource.query(`SELECT id FROM frm_list_master_items WHERE code = $1 AND organization_id = $2`, [global_constant_1.STATUS_ACTIVE, loggedInUser?.organization_id || 0]);
28
+ const statusList = await this.dataSource.query(`SELECT id FROM frm_list_master_items WHERE code = ? AND organization_id = ?`, [global_constant_1.STATUS_ACTIVE, loggedInUser?.organization_id || 0]);
29
29
  entityData.created_date = new Date();
30
30
  if (loggedInUser) {
31
31
  entityData.created_by = loggedInUser.id;
@@ -43,9 +43,9 @@ let EntityDynamicService = class EntityDynamicService {
43
43
  entityData.entity_type = entityType;
44
44
  }
45
45
  if (!entityData.code && loggedInUser) {
46
- const result = await this.dataSource.query(`SELECT MAX(CAST(SUBSTRING(code, LENGTH(entity_type) + 1) AS UNSIGNED)) AS max_seq_no
47
- FROM ${tableName}
48
- WHERE entity_type = $1`, [entityData.entity_type]);
46
+ const result = await this.dataSource.query(`SELECT MAX(CAST(SUBSTRING(code, LENGTH(entity_type) + 1) AS UNSIGNED)) AS max_seq_no
47
+ FROM ${tableName}
48
+ WHERE entity_type = ?`, [entityData.entity_type]);
49
49
  let maxSeqNo = result?.[0]?.max_seq_no ? Number(result[0].max_seq_no) : 0;
50
50
  maxSeqNo += 1;
51
51
  entityData.code = `${entityData.entity_type}${maxSeqNo}`;
@@ -108,7 +108,7 @@ let EntityDynamicService = class EntityDynamicService {
108
108
  }
109
109
  async createEntityWithRelation(entityType, data, loggedInUser) {
110
110
  const organizationId = loggedInUser.organization_id;
111
- const getRelation = await this.dataSource.query(`SELECT * FROM frm_entity_relation WHERE organization_id = $1 AND source_entity_type = $2`, [organizationId, entityType]);
111
+ const getRelation = await this.dataSource.query(`SELECT * FROM frm_entity_relation WHERE organization_id = ? AND source_entity_type = ?`, [organizationId, entityType]);
112
112
  const { mappedEntities, ...mainData } = data;
113
113
  const createdEntityData = await this.createEntity(entityType, mainData, loggedInUser);
114
114
  const mainID = createdEntityData.insertId || createdEntityData.id;
@@ -128,7 +128,7 @@ let EntityDynamicService = class EntityDynamicService {
128
128
  entity_type: targetEntityType,
129
129
  };
130
130
  const createdRelatedEntity = await this.createEntity(targetEntityType, itemWithRef, loggedInUser, mainID);
131
- await this.dataSource.query(`INSERT INTO frm_entity_relation_data (organization_id, source_entity_id, source_entity_type, target_entity_id, target_entity_type, relation_type) VALUES ($1, $2, $3, $4, $5, $6)`, [
131
+ await this.dataSource.query(`INSERT INTO frm_entity_relation_data (organization_id, source_entity_id, source_entity_type, target_entity_id, target_entity_type, relation_type) VALUES (?, ?, ?, ?, ?,?)`, [
132
132
  organizationId,
133
133
  mainID,
134
134
  entityType,
@@ -149,8 +149,8 @@ let EntityDynamicService = class EntityDynamicService {
149
149
  }
150
150
  async getEntityWithRelation(entityType, id, loggedInUser) {
151
151
  const mainEntity = await this.getEntityByDataSource(entityType, id, loggedInUser);
152
- const relatedEntities = await this.dataSource.query(`SELECT * FROM frm_entity_relation_data WHERE source_entity_id = $1 AND target_entity_type IN (
153
- SELECT target_entity_type FROM frm_entity_relation WHERE source_entity_type = $2)`, [id, entityType]);
152
+ const relatedEntities = await this.dataSource.query(`SELECT * FROM frm_entity_relation_data WHERE source_entity_id = ? AND target_entity_type IN (
153
+ SELECT target_entity_type FROM frm_entity_relation WHERE source_entity_type = ?)`, [id, entityType]);
154
154
  const response = {
155
155
  entity_type: entityType,
156
156
  ...mainEntity,
@@ -179,7 +179,7 @@ let EntityDynamicService = class EntityDynamicService {
179
179
  const updatedMainEntity = await this.updateEntity(entityType, id, mainData, loggedInUser);
180
180
  const updatedRelations = {};
181
181
  if (mappedEntities) {
182
- const getRelationDefs = await this.dataSource.query(`SELECT * FROM frm_entity_relation WHERE organization_id = $1 AND source_entity_type = $2`, [organizationId, entityType]);
182
+ const getRelationDefs = await this.dataSource.query(`SELECT * FROM frm_entity_relation WHERE organization_id = ? AND source_entity_type = ?`, [organizationId, entityType]);
183
183
  for (const [targetEntityType, rawEntityData] of Object.entries(mappedEntities)) {
184
184
  const relationDef = getRelationDefs.find((r) => r.target_entity_type === targetEntityType);
185
185
  if (!relationDef)
@@ -188,7 +188,7 @@ let EntityDynamicService = class EntityDynamicService {
188
188
  const entityArray = Array.isArray(rawEntityData)
189
189
  ? rawEntityData
190
190
  : [rawEntityData];
191
- const existingRelationsForType = await this.dataSource.query(`SELECT * FROM frm_entity_relation_data WHERE source_entity_type = $1 AND source_entity_id = $2 AND target_entity_type = $3`, [entityType, id, targetEntityType]);
191
+ const existingRelationsForType = await this.dataSource.query(`SELECT * FROM frm_entity_relation_data WHERE source_entity_type = ? AND source_entity_id = ? AND target_entity_type = ?`, [entityType, id, targetEntityType]);
192
192
  const updatedEntities = [];
193
193
  for (const item of entityArray) {
194
194
  let targetEntityId;
@@ -202,9 +202,9 @@ let EntityDynamicService = class EntityDynamicService {
202
202
  const createdEntity = await this.createEntity(targetEntityType, item, loggedInUser, Number(id));
203
203
  targetEntityId = createdEntity.insertId || createdEntity.id;
204
204
  entityData = await this.getEntity(targetEntityType, targetEntityId, loggedInUser);
205
- await this.dataSource.query(`INSERT INTO frm_entity_relation_data
206
- (organization_id, source_entity_id, source_entity_type, target_entity_id, target_entity_type, relation_type)
207
- VALUES ($1, $2, $3, $4, $5, $6)`, [
205
+ await this.dataSource.query(`INSERT INTO frm_entity_relation_data
206
+ (organization_id, source_entity_id, source_entity_type, target_entity_id, target_entity_type, relation_type)
207
+ VALUES (?, ?, ?, ?, ?,?)`, [
208
208
  organizationId,
209
209
  id,
210
210
  entityType,
@@ -313,7 +313,7 @@ let EntityDynamicService = class EntityDynamicService {
313
313
  if (updates.length === 0) {
314
314
  throw new Error('No valid attributes to update.');
315
315
  }
316
- const updateQuery = `UPDATE \`${tableName}\` SET ${updates.join(', ')} WHERE id = $1`;
316
+ const updateQuery = `UPDATE \`${tableName}\` SET ${updates.join(', ')} WHERE id = ?`;
317
317
  values.push(id);
318
318
  const result = await this.dataSource.query(updateQuery, values);
319
319
  return result;
@@ -325,7 +325,7 @@ let EntityDynamicService = class EntityDynamicService {
325
325
  const columns = validAttributes
326
326
  .map((attr) => `\`${attr.attribute_key}\``)
327
327
  .join(', ');
328
- const selectQuery = `SELECT ${columns} FROM \`${dataSource}\` WHERE id = $1`;
328
+ const selectQuery = `SELECT ${columns} FROM \`${dataSource}\` WHERE id = ?`;
329
329
  const result = await this.dataSource.query(selectQuery, [id]);
330
330
  if (!result.length)
331
331
  return null;
@@ -353,7 +353,7 @@ let EntityDynamicService = class EntityDynamicService {
353
353
  const columns = validAttributes
354
354
  .map((attr) => `\`${attr.attribute_key}\``)
355
355
  .join(', ');
356
- const selectQuery = `SELECT ${columns} FROM \`${tableName}\` WHERE id = $1`;
356
+ const selectQuery = `SELECT ${columns} FROM \`${tableName}\` WHERE id = ?`;
357
357
  const result = await this.dataSource.query(selectQuery, [id]);
358
358
  if (!result.length)
359
359
  return null;
@@ -374,14 +374,14 @@ let EntityDynamicService = class EntityDynamicService {
374
374
  return row;
375
375
  }
376
376
  async getEntitySourceTableName(entityType, organizationId) {
377
- const result = await this.dataSource.query(`SELECT data_source, db_table_name FROM frm_entity_master WHERE organization_id = $1 AND mapped_entity_type = $2`, [organizationId, entityType]);
377
+ const result = await this.dataSource.query(`SELECT data_source, db_table_name FROM frm_entity_master WHERE organization_id = ? AND mapped_entity_type = ?`, [organizationId, entityType]);
378
378
  if (!result.length) {
379
379
  console.log(`Entity type '${entityType}' not found in frm_entity_master`);
380
380
  }
381
381
  return result[0].data_source;
382
382
  }
383
383
  async getTableName(entityType, organizationId) {
384
- const result = await this.dataSource.query(`SELECT db_table_name FROM frm_entity_master WHERE organization_id = $1 AND mapped_entity_type = $2`, [organizationId, entityType]);
384
+ const result = await this.dataSource.query(`SELECT db_table_name FROM frm_entity_master WHERE organization_id = ? AND mapped_entity_type = ?`, [organizationId, entityType]);
385
385
  if (!result.length) {
386
386
  console.log(`Entity type '${entityType}' not found in frm_entity_master`);
387
387
  }
@@ -415,16 +415,16 @@ let EntityDynamicService = class EntityDynamicService {
415
415
  async deleteEntity(entityType, id, loggedInUser) {
416
416
  const organizationId = loggedInUser.organization_id;
417
417
  const tableName = await this.getTableName(entityType, organizationId);
418
- const deleteQuery = `DELETE FROM \`${tableName}\` WHERE id = $1`;
418
+ const deleteQuery = `DELETE FROM \`${tableName}\` WHERE id = ?`;
419
419
  const result = await this.dataSource.query(deleteQuery, [id]);
420
420
  return result;
421
421
  }
422
422
  async getEntitiesDropdownList(loggedInUser, appcode) {
423
423
  const organizationId = loggedInUser.organization_id;
424
- let query = `SELECT name as label,mapped_entity_type as value FROM frm_entity_master WHERE organization_id = $1`;
424
+ let query = `SELECT name as label,mapped_entity_type as value FROM frm_entity_master WHERE organization_id = ?`;
425
425
  const params = [organizationId];
426
426
  if (appcode) {
427
- query += ` AND appcode = $2`;
427
+ query += ` AND appcode = ?`;
428
428
  params.push(appcode);
429
429
  }
430
430
  const dropdown = await this.dataSource.query(query, params);
@@ -432,16 +432,16 @@ let EntityDynamicService = class EntityDynamicService {
432
432
  }
433
433
  async getCode(entityType, loggedInUser) {
434
434
  const organizationId = loggedInUser.organization_id;
435
- const result = await this.dataSource.query(`SELECT db_table_name
436
- FROM frm_entity_master
437
- WHERE mapped_entity_type = $1 AND organization_id = $2`, [entityType, organizationId]);
435
+ const result = await this.dataSource.query(`SELECT db_table_name
436
+ FROM frm_entity_master
437
+ WHERE mapped_entity_type = ? AND organization_id = ?`, [entityType, organizationId]);
438
438
  if (!result.length) {
439
439
  throw new Error(`Entity type '${entityType}' not found in frm_entity_master for org '${organizationId}'`);
440
440
  }
441
441
  const tableName = result[0].db_table_name;
442
- const seqResult = await this.dataSource.query(`SELECT MAX(CAST(SUBSTRING(code, LENGTH(entity_type) + 1) AS UNSIGNED)) AS max_seq_no
443
- FROM \`${tableName}\`
444
- WHERE entity_type = $1`, [entityType]);
442
+ const seqResult = await this.dataSource.query(`SELECT MAX(CAST(SUBSTRING(code, LENGTH(entity_type) + 1) AS UNSIGNED)) AS max_seq_no
443
+ FROM \`${tableName}\`
444
+ WHERE entity_type = ?`, [entityType]);
445
445
  let maxSeqNo = seqResult?.[0]?.max_seq_no
446
446
  ? Number(seqResult[0].max_seq_no)
447
447
  : 0;