rez_core 6.5.55 → 6.5.57

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 (1089) hide show
  1. package/dist/app.controller.d.ts +6 -0
  2. package/dist/app.controller.js +34 -0
  3. package/dist/app.controller.js.map +1 -0
  4. package/dist/app.module.d.ts +2 -0
  5. package/dist/app.module.js +79 -0
  6. package/dist/app.module.js.map +1 -0
  7. package/dist/app.service.d.ts +3 -0
  8. package/dist/app.service.js +20 -0
  9. package/dist/app.service.js.map +1 -0
  10. package/dist/config/bull.config.d.ts +10 -0
  11. package/dist/config/bull.config.js +66 -0
  12. package/dist/config/bull.config.js.map +1 -0
  13. package/dist/config/config.module.d.ts +2 -0
  14. package/dist/config/config.module.js +29 -0
  15. package/dist/config/config.module.js.map +1 -0
  16. package/dist/config/database.config.d.ts +7 -0
  17. package/dist/config/database.config.js +43 -0
  18. package/dist/config/database.config.js.map +1 -0
  19. package/dist/constant/global.constant.d.ts +50 -0
  20. package/dist/constant/global.constant.js +54 -0
  21. package/dist/constant/global.constant.js.map +1 -0
  22. package/dist/constant/status.constant.d.ts +4 -0
  23. package/dist/constant/status.constant.js +9 -0
  24. package/dist/constant/status.constant.js.map +1 -0
  25. package/dist/core.module.d.ts +4 -0
  26. package/dist/core.module.js +113 -0
  27. package/dist/core.module.js.map +1 -0
  28. package/dist/decorators/roles.decorator.d.ts +1 -0
  29. package/dist/decorators/roles.decorator.js +7 -0
  30. package/dist/decorators/roles.decorator.js.map +1 -0
  31. package/dist/dtos/response.d.ts +5 -0
  32. package/dist/dtos/response.dto.d.ts +5 -0
  33. package/dist/dtos/response.dto.js +3 -0
  34. package/dist/dtos/response.dto.js.map +1 -0
  35. package/dist/dtos/response.js +3 -0
  36. package/dist/dtos/response.js.map +1 -0
  37. package/dist/index.d.ts +1 -0
  38. package/dist/index.js +18 -0
  39. package/dist/index.js.map +1 -0
  40. package/dist/main.d.ts +1 -0
  41. package/dist/main.js +25 -0
  42. package/dist/main.js.map +1 -0
  43. package/dist/module/app_master/app-master.module.d.ts +2 -0
  44. package/dist/module/app_master/app-master.module.js +28 -0
  45. package/dist/module/app_master/app-master.module.js.map +1 -0
  46. package/dist/module/app_master/controller/app-master.controller.d.ts +9 -0
  47. package/dist/module/app_master/controller/app-master.controller.js +51 -0
  48. package/dist/module/app_master/controller/app-master.controller.js.map +1 -0
  49. package/dist/module/app_master/entity/app-master.entity.d.ts +17 -0
  50. package/dist/module/app_master/entity/app-master.entity.js +80 -0
  51. package/dist/module/app_master/entity/app-master.entity.js.map +1 -0
  52. package/dist/module/app_master/repository/app-master.repository.d.ts +7 -0
  53. package/dist/module/app_master/repository/app-master.repository.js +36 -0
  54. package/dist/module/app_master/repository/app-master.repository.js.map +1 -0
  55. package/dist/module/app_master/service/app-master.service.d.ts +8 -0
  56. package/dist/module/app_master/service/app-master.service.js +45 -0
  57. package/dist/module/app_master/service/app-master.service.js.map +1 -0
  58. package/dist/module/auth/auth.module.d.ts +2 -0
  59. package/dist/module/auth/auth.module.js +57 -0
  60. package/dist/module/auth/auth.module.js.map +1 -0
  61. package/dist/module/auth/controller/auth.controller.d.ts +5 -0
  62. package/dist/module/auth/controller/auth.controller.js +25 -0
  63. package/dist/module/auth/controller/auth.controller.js.map +1 -0
  64. package/dist/module/auth/guards/google-auth.guard.d.ts +6 -0
  65. package/dist/module/auth/guards/google-auth.guard.js +21 -0
  66. package/dist/module/auth/guards/google-auth.guard.js.map +1 -0
  67. package/dist/module/auth/guards/jwt.guard.d.ts +10 -0
  68. package/dist/module/auth/guards/jwt.guard.js +36 -0
  69. package/dist/module/auth/guards/jwt.guard.js.map +1 -0
  70. package/dist/module/auth/guards/role.guard.d.ts +9 -0
  71. package/dist/module/auth/guards/role.guard.js +59 -0
  72. package/dist/module/auth/guards/role.guard.js.map +1 -0
  73. package/dist/module/auth/services/auth.service.d.ts +14 -0
  74. package/dist/module/auth/services/auth.service.js +50 -0
  75. package/dist/module/auth/services/auth.service.js.map +1 -0
  76. package/dist/module/auth/services/jwt.service.d.ts +6 -0
  77. package/dist/module/auth/services/jwt.service.js +28 -0
  78. package/dist/module/auth/services/jwt.service.js.map +1 -0
  79. package/dist/module/auth/strategies/google.strategy.d.ts +10 -0
  80. package/dist/module/auth/strategies/google.strategy.js +59 -0
  81. package/dist/module/auth/strategies/google.strategy.js.map +1 -0
  82. package/dist/module/auth/strategies/jwt.strategy.d.ts +20 -0
  83. package/dist/module/auth/strategies/jwt.strategy.js +47 -0
  84. package/dist/module/auth/strategies/jwt.strategy.js.map +1 -0
  85. package/dist/module/auth/strategies/local.strategy.d.ts +7 -0
  86. package/dist/module/auth/strategies/local.strategy.js +30 -0
  87. package/dist/module/auth/strategies/local.strategy.js.map +1 -0
  88. package/dist/module/dashboard/controller/dashboard.controller.d.ts +33 -0
  89. package/dist/module/dashboard/controller/dashboard.controller.js +57 -0
  90. package/dist/module/dashboard/controller/dashboard.controller.js.map +1 -0
  91. package/dist/module/dashboard/dashboard.module.d.ts +2 -0
  92. package/dist/module/dashboard/dashboard.module.js +34 -0
  93. package/dist/module/dashboard/dashboard.module.js.map +1 -0
  94. package/dist/module/dashboard/entity/dashboard_page_data.entity.d.ts +10 -0
  95. package/dist/module/dashboard/entity/dashboard_page_data.entity.js +50 -0
  96. package/dist/module/dashboard/entity/dashboard_page_data.entity.js.map +1 -0
  97. package/dist/module/dashboard/entity/widget_master.entity.d.ts +7 -0
  98. package/dist/module/dashboard/entity/widget_master.entity.js +38 -0
  99. package/dist/module/dashboard/entity/widget_master.entity.js.map +1 -0
  100. package/dist/module/dashboard/repository/dashboard.repository.d.ts +11 -0
  101. package/dist/module/dashboard/repository/dashboard.repository.js +62 -0
  102. package/dist/module/dashboard/repository/dashboard.repository.js.map +1 -0
  103. package/dist/module/dashboard/service/dashboard.service.d.ts +35 -0
  104. package/dist/module/dashboard/service/dashboard.service.js +61 -0
  105. package/dist/module/dashboard/service/dashboard.service.js.map +1 -0
  106. package/dist/module/enterprise/controller/enterprise.controller.d.ts +12 -0
  107. package/dist/module/enterprise/controller/enterprise.controller.js +57 -0
  108. package/dist/module/enterprise/controller/enterprise.controller.js.map +1 -0
  109. package/dist/module/enterprise/controller/meta.controller.d.ts +9 -0
  110. package/dist/module/enterprise/controller/meta.controller.js +43 -0
  111. package/dist/module/enterprise/controller/meta.controller.js.map +1 -0
  112. package/dist/module/enterprise/controller/organization.controller.d.ts +22 -0
  113. package/dist/module/enterprise/controller/organization.controller.js +115 -0
  114. package/dist/module/enterprise/controller/organization.controller.js.map +1 -0
  115. package/dist/module/enterprise/enterprise.module.d.ts +2 -0
  116. package/dist/module/enterprise/enterprise.module.js +52 -0
  117. package/dist/module/enterprise/enterprise.module.js.map +1 -0
  118. package/dist/module/enterprise/entity/enterprise.entity.d.ts +11 -0
  119. package/dist/module/enterprise/entity/enterprise.entity.js +56 -0
  120. package/dist/module/enterprise/entity/enterprise.entity.js.map +1 -0
  121. package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +10 -0
  122. package/dist/module/enterprise/entity/organization-app-mapping.entity.js +49 -0
  123. package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -0
  124. package/dist/module/enterprise/entity/organization.entity.d.ts +16 -0
  125. package/dist/module/enterprise/entity/organization.entity.js +74 -0
  126. package/dist/module/enterprise/entity/organization.entity.js.map +1 -0
  127. package/dist/module/enterprise/repository/enterprise.repository.d.ts +10 -0
  128. package/dist/module/enterprise/repository/enterprise.repository.js +63 -0
  129. package/dist/module/enterprise/repository/enterprise.repository.js.map +1 -0
  130. package/dist/module/enterprise/repository/organization.repository.d.ts +8 -0
  131. package/dist/module/enterprise/repository/organization.repository.js +41 -0
  132. package/dist/module/enterprise/repository/organization.repository.js.map +1 -0
  133. package/dist/module/enterprise/repository/school.repository.d.ts +8 -0
  134. package/dist/module/enterprise/repository/school.repository.js +226 -0
  135. package/dist/module/enterprise/repository/school.repository.js.map +1 -0
  136. package/dist/module/enterprise/service/brand-profile.service.d.ts +0 -0
  137. package/dist/module/enterprise/service/brand-profile.service.js +1 -0
  138. package/dist/module/enterprise/service/brand-profile.service.js.map +1 -0
  139. package/dist/module/enterprise/service/brand.service.d.ts +0 -0
  140. package/dist/module/enterprise/service/brand.service.js +1 -0
  141. package/dist/module/enterprise/service/brand.service.js.map +1 -0
  142. package/dist/module/enterprise/service/enterprise.service.d.ts +8 -0
  143. package/dist/module/enterprise/service/enterprise.service.js +33 -0
  144. package/dist/module/enterprise/service/enterprise.service.js.map +1 -0
  145. package/dist/module/enterprise/service/organization-app-mapping.service.d.ts +2 -0
  146. package/dist/module/enterprise/service/organization-app-mapping.service.js +17 -0
  147. package/dist/module/enterprise/service/organization-app-mapping.service.js.map +1 -0
  148. package/dist/module/enterprise/service/organization.service.d.ts +19 -0
  149. package/dist/module/enterprise/service/organization.service.js +203 -0
  150. package/dist/module/enterprise/service/organization.service.js.map +1 -0
  151. package/dist/module/enterprise/service/populate-meta.service.d.ts +9 -0
  152. package/dist/module/enterprise/service/populate-meta.service.js +194 -0
  153. package/dist/module/enterprise/service/populate-meta.service.js.map +1 -0
  154. package/dist/module/enterprise/service/school.service.d.ts +0 -0
  155. package/dist/module/enterprise/service/school.service.js +1 -0
  156. package/dist/module/enterprise/service/school.service.js.map +1 -0
  157. package/dist/module/entity_json/controller/entity_json.controller.d.ts +18 -0
  158. package/dist/module/entity_json/controller/entity_json.controller.js +57 -0
  159. package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -0
  160. package/dist/module/entity_json/entity/entityJson.entity.d.ts +10 -0
  161. package/dist/module/entity_json/entity/entityJson.entity.js +55 -0
  162. package/dist/module/entity_json/entity/entityJson.entity.js.map +1 -0
  163. package/dist/module/entity_json/entity_json.module.d.ts +2 -0
  164. package/dist/module/entity_json/entity_json.module.js +30 -0
  165. package/dist/module/entity_json/entity_json.module.js.map +1 -0
  166. package/dist/module/entity_json/service/entityJson.repository.d.ts +7 -0
  167. package/dist/module/entity_json/service/entityJson.repository.js +45 -0
  168. package/dist/module/entity_json/service/entityJson.repository.js.map +1 -0
  169. package/dist/module/entity_json/service/entity_json.service.d.ts +25 -0
  170. package/dist/module/entity_json/service/entity_json.service.js +209 -0
  171. package/dist/module/entity_json/service/entity_json.service.js.map +1 -0
  172. package/dist/module/export/controller/export.controller.d.ts +9 -0
  173. package/dist/module/export/controller/export.controller.js +83 -0
  174. package/dist/module/export/controller/export.controller.js.map +1 -0
  175. package/dist/module/export/export.module.d.ts +2 -0
  176. package/dist/module/export/export.module.js +27 -0
  177. package/dist/module/export/export.module.js.map +1 -0
  178. package/dist/module/export/service/export.service.d.ts +14 -0
  179. package/dist/module/export/service/export.service.js +85 -0
  180. package/dist/module/export/service/export.service.js.map +1 -0
  181. package/dist/module/filter/controller/filter.controller.d.ts +39 -0
  182. package/dist/module/filter/controller/filter.controller.js +94 -0
  183. package/dist/module/filter/controller/filter.controller.js.map +1 -0
  184. package/dist/module/filter/dto/filter-request.dto.d.ts +36 -0
  185. package/dist/module/filter/dto/filter-request.dto.js +3 -0
  186. package/dist/module/filter/dto/filter-request.dto.js.map +1 -0
  187. package/dist/module/filter/entity/saved-filter-detail.entity.d.ts +14 -0
  188. package/dist/module/filter/entity/saved-filter-detail.entity.js +67 -0
  189. package/dist/module/filter/entity/saved-filter-detail.entity.js.map +1 -0
  190. package/dist/module/filter/entity/saved-filter-master.entity.d.ts +12 -0
  191. package/dist/module/filter/entity/saved-filter-master.entity.js +59 -0
  192. package/dist/module/filter/entity/saved-filter-master.entity.js.map +1 -0
  193. package/dist/module/filter/filter.module.d.ts +2 -0
  194. package/dist/module/filter/filter.module.js +46 -0
  195. package/dist/module/filter/filter.module.js.map +1 -0
  196. package/dist/module/filter/repository/saved-filter.repository.d.ts +40 -0
  197. package/dist/module/filter/repository/saved-filter.repository.js +203 -0
  198. package/dist/module/filter/repository/saved-filter.repository.js.map +1 -0
  199. package/dist/module/filter/repository/saved.filter-detail.repository.d.ts +7 -0
  200. package/dist/module/filter/repository/saved.filter-detail.repository.js +38 -0
  201. package/dist/module/filter/repository/saved.filter-detail.repository.js.map +1 -0
  202. package/dist/module/filter/service/filter-evaluator.service.d.ts +9 -0
  203. package/dist/module/filter/service/filter-evaluator.service.js +59 -0
  204. package/dist/module/filter/service/filter-evaluator.service.js.map +1 -0
  205. package/dist/module/filter/service/filter.service.d.ts +74 -0
  206. package/dist/module/filter/service/filter.service.js +921 -0
  207. package/dist/module/filter/service/filter.service.js.map +1 -0
  208. package/dist/module/filter/service/saved-filter.service.d.ts +30 -0
  209. package/dist/module/filter/service/saved-filter.service.js +125 -0
  210. package/dist/module/filter/service/saved-filter.service.js.map +1 -0
  211. package/dist/module/ics/controller/ics.controller.d.ts +8 -0
  212. package/dist/module/ics/controller/ics.controller.js +45 -0
  213. package/dist/module/ics/controller/ics.controller.js.map +1 -0
  214. package/dist/module/ics/dto/ics.dto.d.ts +17 -0
  215. package/dist/module/ics/dto/ics.dto.js +73 -0
  216. package/dist/module/ics/dto/ics.dto.js.map +1 -0
  217. package/dist/module/ics/ics.module.d.ts +2 -0
  218. package/dist/module/ics/ics.module.js +26 -0
  219. package/dist/module/ics/ics.module.js.map +1 -0
  220. package/dist/module/ics/service/ics.service.d.ts +4 -0
  221. package/dist/module/ics/service/ics.service.js +61 -0
  222. package/dist/module/ics/service/ics.service.js.map +1 -0
  223. package/dist/module/integration/controller/calender-event.controller.d.ts +7 -0
  224. package/dist/module/integration/controller/calender-event.controller.js +51 -0
  225. package/dist/module/integration/controller/calender-event.controller.js.map +1 -0
  226. package/dist/module/integration/controller/integration.controller.d.ts +165 -0
  227. package/dist/module/integration/controller/integration.controller.js +697 -0
  228. package/dist/module/integration/controller/integration.controller.js.map +1 -0
  229. package/dist/module/integration/controller/wrapper.controller.d.ts +23 -0
  230. package/dist/module/integration/controller/wrapper.controller.js +52 -0
  231. package/dist/module/integration/controller/wrapper.controller.js.map +1 -0
  232. package/dist/module/integration/dto/create-config.dto.d.ts +217 -0
  233. package/dist/module/integration/dto/create-config.dto.js +495 -0
  234. package/dist/module/integration/dto/create-config.dto.js.map +1 -0
  235. package/dist/module/integration/entity/integration-config.entity.d.ts +54 -0
  236. package/dist/module/integration/entity/integration-config.entity.js +78 -0
  237. package/dist/module/integration/entity/integration-config.entity.js.map +1 -0
  238. package/dist/module/integration/entity/integration-entity-mapper.entity.d.ts +6 -0
  239. package/dist/module/integration/entity/integration-entity-mapper.entity.js +33 -0
  240. package/dist/module/integration/entity/integration-entity-mapper.entity.js.map +1 -0
  241. package/dist/module/integration/entity/integration-source.entity.d.ts +7 -0
  242. package/dist/module/integration/entity/integration-source.entity.js +37 -0
  243. package/dist/module/integration/entity/integration-source.entity.js.map +1 -0
  244. package/dist/module/integration/entity/user-integration.entity.d.ts +23 -0
  245. package/dist/module/integration/entity/user-integration.entity.js +70 -0
  246. package/dist/module/integration/entity/user-integration.entity.js.map +1 -0
  247. package/dist/module/integration/examples/usage.example.d.ts +16 -0
  248. package/dist/module/integration/examples/usage.example.js +217 -0
  249. package/dist/module/integration/examples/usage.example.js.map +1 -0
  250. package/dist/module/integration/factories/base.factory.d.ts +9 -0
  251. package/dist/module/integration/factories/base.factory.js +3 -0
  252. package/dist/module/integration/factories/base.factory.js.map +1 -0
  253. package/dist/module/integration/factories/email.factory.d.ts +17 -0
  254. package/dist/module/integration/factories/email.factory.js +55 -0
  255. package/dist/module/integration/factories/email.factory.js.map +1 -0
  256. package/dist/module/integration/factories/integration.factory.d.ts +33 -0
  257. package/dist/module/integration/factories/integration.factory.js +104 -0
  258. package/dist/module/integration/factories/integration.factory.js.map +1 -0
  259. package/dist/module/integration/factories/sms.factory.d.ts +17 -0
  260. package/dist/module/integration/factories/sms.factory.js +58 -0
  261. package/dist/module/integration/factories/sms.factory.js.map +1 -0
  262. package/dist/module/integration/factories/telephone.factory.d.ts +15 -0
  263. package/dist/module/integration/factories/telephone.factory.js +49 -0
  264. package/dist/module/integration/factories/telephone.factory.js.map +1 -0
  265. package/dist/module/integration/factories/whatsapp.factory.d.ts +19 -0
  266. package/dist/module/integration/factories/whatsapp.factory.js +63 -0
  267. package/dist/module/integration/factories/whatsapp.factory.js.map +1 -0
  268. package/dist/module/integration/integration.module.d.ts +2 -0
  269. package/dist/module/integration/integration.module.js +96 -0
  270. package/dist/module/integration/integration.module.js.map +1 -0
  271. package/dist/module/integration/service/calendar-event.service.d.ts +8 -0
  272. package/dist/module/integration/service/calendar-event.service.js +101 -0
  273. package/dist/module/integration/service/calendar-event.service.js.map +1 -0
  274. package/dist/module/integration/service/integration-entity-mapper.service.d.ts +7 -0
  275. package/dist/module/integration/service/integration-entity-mapper.service.js +36 -0
  276. package/dist/module/integration/service/integration-entity-mapper.service.js.map +1 -0
  277. package/dist/module/integration/service/integration-queue.service.d.ts +40 -0
  278. package/dist/module/integration/service/integration-queue.service.js +147 -0
  279. package/dist/module/integration/service/integration-queue.service.js.map +1 -0
  280. package/dist/module/integration/service/integration.service.d.ts +207 -0
  281. package/dist/module/integration/service/integration.service.js +1590 -0
  282. package/dist/module/integration/service/integration.service.js.map +1 -0
  283. package/dist/module/integration/service/oauth.service.d.ts +18 -0
  284. package/dist/module/integration/service/oauth.service.js +190 -0
  285. package/dist/module/integration/service/oauth.service.js.map +1 -0
  286. package/dist/module/integration/service/wrapper.service.d.ts +38 -0
  287. package/dist/module/integration/service/wrapper.service.js +348 -0
  288. package/dist/module/integration/service/wrapper.service.js.map +1 -0
  289. package/dist/module/integration/strategies/email/gmail-api.strategy.d.ts +13 -0
  290. package/dist/module/integration/strategies/email/gmail-api.strategy.js +195 -0
  291. package/dist/module/integration/strategies/email/gmail-api.strategy.js.map +1 -0
  292. package/dist/module/integration/strategies/email/outlook-api.strategy.d.ts +5 -0
  293. package/dist/module/integration/strategies/email/outlook-api.strategy.js +44 -0
  294. package/dist/module/integration/strategies/email/outlook-api.strategy.js.map +1 -0
  295. package/dist/module/integration/strategies/email/outlook.strategy.d.ts +5 -0
  296. package/dist/module/integration/strategies/email/outlook.strategy.js +64 -0
  297. package/dist/module/integration/strategies/email/outlook.strategy.js.map +1 -0
  298. package/dist/module/integration/strategies/email/sendgrid-api.strategy.d.ts +22 -0
  299. package/dist/module/integration/strategies/email/sendgrid-api.strategy.js +203 -0
  300. package/dist/module/integration/strategies/email/sendgrid-api.strategy.js.map +1 -0
  301. package/dist/module/integration/strategies/integration.strategy.d.ts +31 -0
  302. package/dist/module/integration/strategies/integration.strategy.js +40 -0
  303. package/dist/module/integration/strategies/integration.strategy.js.map +1 -0
  304. package/dist/module/integration/strategies/sms/gupshup-sms.strategy.d.ts +9 -0
  305. package/dist/module/integration/strategies/sms/gupshup-sms.strategy.js +104 -0
  306. package/dist/module/integration/strategies/sms/gupshup-sms.strategy.js.map +1 -0
  307. package/dist/module/integration/strategies/sms/msg91-sms.strategy.d.ts +9 -0
  308. package/dist/module/integration/strategies/sms/msg91-sms.strategy.js +113 -0
  309. package/dist/module/integration/strategies/sms/msg91-sms.strategy.js.map +1 -0
  310. package/dist/module/integration/strategies/sms/tubelight-sms.strategy.d.ts +9 -0
  311. package/dist/module/integration/strategies/sms/tubelight-sms.strategy.js +109 -0
  312. package/dist/module/integration/strategies/sms/tubelight-sms.strategy.js.map +1 -0
  313. package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.d.ts +22 -0
  314. package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.js +170 -0
  315. package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.js.map +1 -0
  316. package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.d.ts +24 -0
  317. package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.js +152 -0
  318. package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.js.map +1 -0
  319. package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.d.ts +19 -0
  320. package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.js +257 -0
  321. package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.js.map +1 -0
  322. package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.d.ts +33 -0
  323. package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js +256 -0
  324. package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js.map +1 -0
  325. package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.d.ts +20 -0
  326. package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.js +264 -0
  327. package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.js.map +1 -0
  328. package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.d.ts +5 -0
  329. package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.js +57 -0
  330. package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.js.map +1 -0
  331. package/dist/module/layout/controller/layout.controller.d.ts +9 -0
  332. package/dist/module/layout/controller/layout.controller.js +55 -0
  333. package/dist/module/layout/controller/layout.controller.js.map +1 -0
  334. package/dist/module/layout/dto/header.dto.d.ts +0 -0
  335. package/dist/module/layout/dto/header.dto.js +1 -0
  336. package/dist/module/layout/dto/header.dto.js.map +1 -0
  337. package/dist/module/layout/entity/header-items.entity.d.ts +10 -0
  338. package/dist/module/layout/entity/header-items.entity.js +52 -0
  339. package/dist/module/layout/entity/header-items.entity.js.map +1 -0
  340. package/dist/module/layout/entity/header-section.entity.d.ts +5 -0
  341. package/dist/module/layout/entity/header-section.entity.js +32 -0
  342. package/dist/module/layout/entity/header-section.entity.js.map +1 -0
  343. package/dist/module/layout/layout.module.d.ts +2 -0
  344. package/dist/module/layout/layout.module.js +33 -0
  345. package/dist/module/layout/layout.module.js.map +1 -0
  346. package/dist/module/layout/repository/header-items.repository.d.ts +7 -0
  347. package/dist/module/layout/repository/header-items.repository.js +36 -0
  348. package/dist/module/layout/repository/header-items.repository.js.map +1 -0
  349. package/dist/module/layout/repository/header-section.repository.d.ts +7 -0
  350. package/dist/module/layout/repository/header-section.repository.js +34 -0
  351. package/dist/module/layout/repository/header-section.repository.js.map +1 -0
  352. package/dist/module/layout/service/header-section.service.d.ts +8 -0
  353. package/dist/module/layout/service/header-section.service.js +37 -0
  354. package/dist/module/layout/service/header-section.service.js.map +1 -0
  355. package/dist/module/layout_preference/controller/layout_preference.controller.d.ts +19 -0
  356. package/dist/module/layout_preference/controller/layout_preference.controller.js +78 -0
  357. package/dist/module/layout_preference/controller/layout_preference.controller.js.map +1 -0
  358. package/dist/module/layout_preference/dto/layout_preference.dto.d.ts +0 -0
  359. package/dist/module/layout_preference/dto/layout_preference.dto.js +1 -0
  360. package/dist/module/layout_preference/dto/layout_preference.dto.js.map +1 -0
  361. package/dist/module/layout_preference/entity/layout_preference.entity.d.ts +9 -0
  362. package/dist/module/layout_preference/entity/layout_preference.entity.js +50 -0
  363. package/dist/module/layout_preference/entity/layout_preference.entity.js.map +1 -0
  364. package/dist/module/layout_preference/layout_preference.module.d.ts +2 -0
  365. package/dist/module/layout_preference/layout_preference.module.js +35 -0
  366. package/dist/module/layout_preference/layout_preference.module.js.map +1 -0
  367. package/dist/module/layout_preference/repository/layout_preference.repository.d.ts +13 -0
  368. package/dist/module/layout_preference/repository/layout_preference.repository.js +68 -0
  369. package/dist/module/layout_preference/repository/layout_preference.repository.js.map +1 -0
  370. package/dist/module/layout_preference/service/layout_preference.service.d.ts +20 -0
  371. package/dist/module/layout_preference/service/layout_preference.service.js +128 -0
  372. package/dist/module/layout_preference/service/layout_preference.service.js.map +1 -0
  373. package/dist/module/lead/controller/lead.controller.d.ts +20 -0
  374. package/dist/module/lead/controller/lead.controller.js +58 -0
  375. package/dist/module/lead/controller/lead.controller.js.map +1 -0
  376. package/dist/module/lead/lead.module.d.ts +2 -0
  377. package/dist/module/lead/lead.module.js +26 -0
  378. package/dist/module/lead/lead.module.js.map +1 -0
  379. package/dist/module/lead/repository/lead.repository.d.ts +10 -0
  380. package/dist/module/lead/repository/lead.repository.js +53 -0
  381. package/dist/module/lead/repository/lead.repository.js.map +1 -0
  382. package/dist/module/lead/service/lead.service.d.ts +20 -0
  383. package/dist/module/lead/service/lead.service.js +55 -0
  384. package/dist/module/lead/service/lead.service.js.map +1 -0
  385. package/dist/module/linked_attributes/controller/linked_attributes.controller.d.ts +7 -0
  386. package/dist/module/linked_attributes/controller/linked_attributes.controller.js +55 -0
  387. package/dist/module/linked_attributes/controller/linked_attributes.controller.js.map +1 -0
  388. package/dist/module/linked_attributes/entity/linked_attribute.entity.d.ts +10 -0
  389. package/dist/module/linked_attributes/entity/linked_attribute.entity.js +74 -0
  390. package/dist/module/linked_attributes/entity/linked_attribute.entity.js.map +1 -0
  391. package/dist/module/linked_attributes/linked_attributes.module.d.ts +2 -0
  392. package/dist/module/linked_attributes/linked_attributes.module.js +29 -0
  393. package/dist/module/linked_attributes/linked_attributes.module.js.map +1 -0
  394. package/dist/module/linked_attributes/repository/linked_attribute.repository.d.ts +6 -0
  395. package/dist/module/linked_attributes/repository/linked_attribute.repository.js +31 -0
  396. package/dist/module/linked_attributes/repository/linked_attribute.repository.js.map +1 -0
  397. package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +10 -0
  398. package/dist/module/linked_attributes/service/linked_attributes.service.js +74 -0
  399. package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -0
  400. package/dist/module/listmaster/controller/list-master.controller.d.ts +29 -0
  401. package/dist/module/listmaster/controller/list-master.controller.js +186 -0
  402. package/dist/module/listmaster/controller/list-master.controller.js.map +1 -0
  403. package/dist/module/listmaster/entity/list-master-items.entity.d.ts +14 -0
  404. package/dist/module/listmaster/entity/list-master-items.entity.js +69 -0
  405. package/dist/module/listmaster/entity/list-master-items.entity.js.map +1 -0
  406. package/dist/module/listmaster/entity/list-master.entity.d.ts +11 -0
  407. package/dist/module/listmaster/entity/list-master.entity.js +56 -0
  408. package/dist/module/listmaster/entity/list-master.entity.js.map +1 -0
  409. package/dist/module/listmaster/listmaster.module.d.ts +2 -0
  410. package/dist/module/listmaster/listmaster.module.js +55 -0
  411. package/dist/module/listmaster/listmaster.module.js.map +1 -0
  412. package/dist/module/listmaster/repository/list-master-items.repository.d.ts +21 -0
  413. package/dist/module/listmaster/repository/list-master-items.repository.js +143 -0
  414. package/dist/module/listmaster/repository/list-master-items.repository.js.map +1 -0
  415. package/dist/module/listmaster/repository/list-master.repository.d.ts +10 -0
  416. package/dist/module/listmaster/repository/list-master.repository.js +62 -0
  417. package/dist/module/listmaster/repository/list-master.repository.js.map +1 -0
  418. package/dist/module/listmaster/service/list-master-engine.d.ts +6 -0
  419. package/dist/module/listmaster/service/list-master-engine.js +35 -0
  420. package/dist/module/listmaster/service/list-master-engine.js.map +1 -0
  421. package/dist/module/listmaster/service/list-master-extension.interface.d.ts +4 -0
  422. package/dist/module/listmaster/service/list-master-extension.interface.js +3 -0
  423. package/dist/module/listmaster/service/list-master-extension.interface.js.map +1 -0
  424. package/dist/module/listmaster/service/list-master-item.service.d.ts +20 -0
  425. package/dist/module/listmaster/service/list-master-item.service.js +148 -0
  426. package/dist/module/listmaster/service/list-master-item.service.js.map +1 -0
  427. package/dist/module/listmaster/service/list-master-registry.d.ts +6 -0
  428. package/dist/module/listmaster/service/list-master-registry.js +26 -0
  429. package/dist/module/listmaster/service/list-master-registry.js.map +1 -0
  430. package/dist/module/listmaster/service/list-master.service.d.ts +40 -0
  431. package/dist/module/listmaster/service/list-master.service.js +323 -0
  432. package/dist/module/listmaster/service/list-master.service.js.map +1 -0
  433. package/dist/module/mapper/controller/field-mapper.controller.d.ts +11 -0
  434. package/dist/module/mapper/controller/field-mapper.controller.js +94 -0
  435. package/dist/module/mapper/controller/field-mapper.controller.js.map +1 -0
  436. package/dist/module/mapper/controller/mapper.controller.d.ts +14 -0
  437. package/dist/module/mapper/controller/mapper.controller.js +45 -0
  438. package/dist/module/mapper/controller/mapper.controller.js.map +1 -0
  439. package/dist/module/mapper/dto/field-mapper.dto.d.ts +12 -0
  440. package/dist/module/mapper/dto/field-mapper.dto.js +8 -0
  441. package/dist/module/mapper/dto/field-mapper.dto.js.map +1 -0
  442. package/dist/module/mapper/entity/field-lovs.entity.d.ts +7 -0
  443. package/dist/module/mapper/entity/field-lovs.entity.js +38 -0
  444. package/dist/module/mapper/entity/field-lovs.entity.js.map +1 -0
  445. package/dist/module/mapper/entity/field-mapper.entity.d.ts +13 -0
  446. package/dist/module/mapper/entity/field-mapper.entity.js +78 -0
  447. package/dist/module/mapper/entity/field-mapper.entity.js.map +1 -0
  448. package/dist/module/mapper/entity/mapper.entity.d.ts +6 -0
  449. package/dist/module/mapper/entity/mapper.entity.js +34 -0
  450. package/dist/module/mapper/entity/mapper.entity.js.map +1 -0
  451. package/dist/module/mapper/mapper.module.d.ts +2 -0
  452. package/dist/module/mapper/mapper.module.js +48 -0
  453. package/dist/module/mapper/mapper.module.js.map +1 -0
  454. package/dist/module/mapper/repository/field-lovs.repository.d.ts +11 -0
  455. package/dist/module/mapper/repository/field-lovs.repository.js +52 -0
  456. package/dist/module/mapper/repository/field-lovs.repository.js.map +1 -0
  457. package/dist/module/mapper/repository/field-mapper.repository.d.ts +11 -0
  458. package/dist/module/mapper/repository/field-mapper.repository.js +54 -0
  459. package/dist/module/mapper/repository/field-mapper.repository.js.map +1 -0
  460. package/dist/module/mapper/repository/mapper.repository.d.ts +7 -0
  461. package/dist/module/mapper/repository/mapper.repository.js +46 -0
  462. package/dist/module/mapper/repository/mapper.repository.js.map +1 -0
  463. package/dist/module/mapper/service/field-mapper.service.d.ts +22 -0
  464. package/dist/module/mapper/service/field-mapper.service.js +200 -0
  465. package/dist/module/mapper/service/field-mapper.service.js.map +1 -0
  466. package/dist/module/mapper/service/mapper.service.d.ts +24 -0
  467. package/dist/module/mapper/service/mapper.service.js +84 -0
  468. package/dist/module/mapper/service/mapper.service.js.map +1 -0
  469. package/dist/module/master/controller/master.controller.d.ts +20 -0
  470. package/dist/module/master/controller/master.controller.js +82 -0
  471. package/dist/module/master/controller/master.controller.js.map +1 -0
  472. package/dist/module/master/service/master.service.d.ts +30 -0
  473. package/dist/module/master/service/master.service.js +364 -0
  474. package/dist/module/master/service/master.service.js.map +1 -0
  475. package/dist/module/meta/controller/attribute-master.controller.d.ts +29 -0
  476. package/dist/module/meta/controller/attribute-master.controller.js +93 -0
  477. package/dist/module/meta/controller/attribute-master.controller.js.map +1 -0
  478. package/dist/module/meta/controller/entity-dynamic.controller.d.ts +21 -0
  479. package/dist/module/meta/controller/entity-dynamic.controller.js +115 -0
  480. package/dist/module/meta/controller/entity-dynamic.controller.js.map +1 -0
  481. package/dist/module/meta/controller/entity-master.controller.d.ts +14 -0
  482. package/dist/module/meta/controller/entity-master.controller.js +57 -0
  483. package/dist/module/meta/controller/entity-master.controller.js.map +1 -0
  484. package/dist/module/meta/controller/entity-relation.controller.d.ts +6 -0
  485. package/dist/module/meta/controller/entity-relation.controller.js +45 -0
  486. package/dist/module/meta/controller/entity-relation.controller.js.map +1 -0
  487. package/dist/module/meta/controller/entity.controller.d.ts +33 -0
  488. package/dist/module/meta/controller/entity.controller.js +185 -0
  489. package/dist/module/meta/controller/entity.controller.js.map +1 -0
  490. package/dist/module/meta/controller/entity.public.controller.d.ts +12 -0
  491. package/dist/module/meta/controller/entity.public.controller.js +75 -0
  492. package/dist/module/meta/controller/entity.public.controller.js.map +1 -0
  493. package/dist/module/meta/controller/media.controller.d.ts +30 -0
  494. package/dist/module/meta/controller/media.controller.js +119 -0
  495. package/dist/module/meta/controller/media.controller.js.map +1 -0
  496. package/dist/module/meta/controller/meta.controller.d.ts +30 -0
  497. package/dist/module/meta/controller/meta.controller.js +99 -0
  498. package/dist/module/meta/controller/meta.controller.js.map +1 -0
  499. package/dist/module/meta/controller/view-master.controller.d.ts +12 -0
  500. package/dist/module/meta/controller/view-master.controller.js +90 -0
  501. package/dist/module/meta/controller/view-master.controller.js.map +1 -0
  502. package/dist/module/meta/dto/entity-list-data.dto.d.ts +5 -0
  503. package/dist/module/meta/dto/entity-list-data.dto.js +7 -0
  504. package/dist/module/meta/dto/entity-list-data.dto.js.map +1 -0
  505. package/dist/module/meta/dto/entity-tab.dto.d.ts +4 -0
  506. package/dist/module/meta/dto/entity-tab.dto.js +7 -0
  507. package/dist/module/meta/dto/entity-tab.dto.js.map +1 -0
  508. package/dist/module/meta/dto/entity-table.dto.d.ts +9 -0
  509. package/dist/module/meta/dto/entity-table.dto.js +8 -0
  510. package/dist/module/meta/dto/entity-table.dto.js.map +1 -0
  511. package/dist/module/meta/entity/attribute-master.entity.d.ts +23 -0
  512. package/dist/module/meta/entity/attribute-master.entity.js +128 -0
  513. package/dist/module/meta/entity/attribute-master.entity.js.map +1 -0
  514. package/dist/module/meta/entity/base-entity.entity.d.ts +19 -0
  515. package/dist/module/meta/entity/base-entity.entity.js +104 -0
  516. package/dist/module/meta/entity/base-entity.entity.js.map +1 -0
  517. package/dist/module/meta/entity/entity-master.entity.d.ts +20 -0
  518. package/dist/module/meta/entity/entity-master.entity.js +117 -0
  519. package/dist/module/meta/entity/entity-master.entity.js.map +1 -0
  520. package/dist/module/meta/entity/entity-relation-data.entity.d.ts +10 -0
  521. package/dist/module/meta/entity/entity-relation-data.entity.js +51 -0
  522. package/dist/module/meta/entity/entity-relation-data.entity.js.map +1 -0
  523. package/dist/module/meta/entity/entity-relation.entity.d.ts +8 -0
  524. package/dist/module/meta/entity/entity-relation.entity.js +43 -0
  525. package/dist/module/meta/entity/entity-relation.entity.js.map +1 -0
  526. package/dist/module/meta/entity/entity-table-column.entity.d.ts +19 -0
  527. package/dist/module/meta/entity/entity-table-column.entity.js +92 -0
  528. package/dist/module/meta/entity/entity-table-column.entity.js.map +1 -0
  529. package/dist/module/meta/entity/entity-table.entity.d.ts +17 -0
  530. package/dist/module/meta/entity/entity-table.entity.js +79 -0
  531. package/dist/module/meta/entity/entity-table.entity.js.map +1 -0
  532. package/dist/module/meta/entity/media-data.entity.d.ts +11 -0
  533. package/dist/module/meta/entity/media-data.entity.js +55 -0
  534. package/dist/module/meta/entity/media-data.entity.js.map +1 -0
  535. package/dist/module/meta/entity/preference.entity.d.ts +11 -0
  536. package/dist/module/meta/entity/preference.entity.js +85 -0
  537. package/dist/module/meta/entity/preference.entity.js.map +1 -0
  538. package/dist/module/meta/entity/view-master.entity.d.ts +14 -0
  539. package/dist/module/meta/entity/view-master.entity.js +67 -0
  540. package/dist/module/meta/entity/view-master.entity.js.map +1 -0
  541. package/dist/module/meta/entity.module.d.ts +2 -0
  542. package/dist/module/meta/entity.module.js +150 -0
  543. package/dist/module/meta/entity.module.js.map +1 -0
  544. package/dist/module/meta/repository/attribute-master.repository.d.ts +30 -0
  545. package/dist/module/meta/repository/attribute-master.repository.js +136 -0
  546. package/dist/module/meta/repository/attribute-master.repository.js.map +1 -0
  547. package/dist/module/meta/repository/entity-attribute-update.repository.d.ts +8 -0
  548. package/dist/module/meta/repository/entity-attribute-update.repository.js +50 -0
  549. package/dist/module/meta/repository/entity-attribute-update.repository.js.map +1 -0
  550. package/dist/module/meta/repository/entity-master.repository.d.ts +33 -0
  551. package/dist/module/meta/repository/entity-master.repository.js +121 -0
  552. package/dist/module/meta/repository/entity-master.repository.js.map +1 -0
  553. package/dist/module/meta/repository/entity-relation.repository.d.ts +7 -0
  554. package/dist/module/meta/repository/entity-relation.repository.js +39 -0
  555. package/dist/module/meta/repository/entity-relation.repository.js.map +1 -0
  556. package/dist/module/meta/repository/entity-table-column.repository.d.ts +7 -0
  557. package/dist/module/meta/repository/entity-table-column.repository.js +52 -0
  558. package/dist/module/meta/repository/entity-table-column.repository.js.map +1 -0
  559. package/dist/module/meta/repository/entity-table.repository.d.ts +9 -0
  560. package/dist/module/meta/repository/entity-table.repository.js +59 -0
  561. package/dist/module/meta/repository/entity-table.repository.js.map +1 -0
  562. package/dist/module/meta/repository/media-data.repository.d.ts +9 -0
  563. package/dist/module/meta/repository/media-data.repository.js +55 -0
  564. package/dist/module/meta/repository/media-data.repository.js.map +1 -0
  565. package/dist/module/meta/repository/preference.repository.d.ts +7 -0
  566. package/dist/module/meta/repository/preference.repository.js +36 -0
  567. package/dist/module/meta/repository/preference.repository.js.map +1 -0
  568. package/dist/module/meta/repository/user-app-mapping.repository.d.ts +0 -0
  569. package/dist/module/meta/repository/user-app-mapping.repository.js +1 -0
  570. package/dist/module/meta/repository/user-app-mapping.repository.js.map +1 -0
  571. package/dist/module/meta/repository/view-master.repository.d.ts +11 -0
  572. package/dist/module/meta/repository/view-master.repository.js +52 -0
  573. package/dist/module/meta/repository/view-master.repository.js.map +1 -0
  574. package/dist/module/meta/service/attribute-master.service.d.ts +21 -0
  575. package/dist/module/meta/service/attribute-master.service.js +81 -0
  576. package/dist/module/meta/service/attribute-master.service.js.map +1 -0
  577. package/dist/module/meta/service/common.service.d.ts +4 -0
  578. package/dist/module/meta/service/common.service.js +25 -0
  579. package/dist/module/meta/service/common.service.js.map +1 -0
  580. package/dist/module/meta/service/entity-attribute-update.service.d.ts +7 -0
  581. package/dist/module/meta/service/entity-attribute-update.service.js +34 -0
  582. package/dist/module/meta/service/entity-attribute-update.service.js.map +1 -0
  583. package/dist/module/meta/service/entity-dynamic.service.d.ts +32 -0
  584. package/dist/module/meta/service/entity-dynamic.service.js +496 -0
  585. package/dist/module/meta/service/entity-dynamic.service.js.map +1 -0
  586. package/dist/module/meta/service/entity-master.service.d.ts +38 -0
  587. package/dist/module/meta/service/entity-master.service.js +119 -0
  588. package/dist/module/meta/service/entity-master.service.js.map +1 -0
  589. package/dist/module/meta/service/entity-realation-data.service.d.ts +4 -0
  590. package/dist/module/meta/service/entity-realation-data.service.js +25 -0
  591. package/dist/module/meta/service/entity-realation-data.service.js.map +1 -0
  592. package/dist/module/meta/service/entity-relation.service.d.ts +11 -0
  593. package/dist/module/meta/service/entity-relation.service.js +71 -0
  594. package/dist/module/meta/service/entity-relation.service.js.map +1 -0
  595. package/dist/module/meta/service/entity-service-impl.service.d.ts +35 -0
  596. package/dist/module/meta/service/entity-service-impl.service.js +233 -0
  597. package/dist/module/meta/service/entity-service-impl.service.js.map +1 -0
  598. package/dist/module/meta/service/entity-table-column.service.d.ts +6 -0
  599. package/dist/module/meta/service/entity-table-column.service.js +29 -0
  600. package/dist/module/meta/service/entity-table-column.service.js.map +1 -0
  601. package/dist/module/meta/service/entity-table.service.d.ts +17 -0
  602. package/dist/module/meta/service/entity-table.service.js +88 -0
  603. package/dist/module/meta/service/entity-table.service.js.map +1 -0
  604. package/dist/module/meta/service/entity-validation.service.d.ts +22 -0
  605. package/dist/module/meta/service/entity-validation.service.js +118 -0
  606. package/dist/module/meta/service/entity-validation.service.js.map +1 -0
  607. package/dist/module/meta/service/entity.service.d.ts +12 -0
  608. package/dist/module/meta/service/entity.service.js +3 -0
  609. package/dist/module/meta/service/entity.service.js.map +1 -0
  610. package/dist/module/meta/service/field-group.service.d.ts +26 -0
  611. package/dist/module/meta/service/field-group.service.js +76 -0
  612. package/dist/module/meta/service/field-group.service.js.map +1 -0
  613. package/dist/module/meta/service/media-data.service.d.ts +43 -0
  614. package/dist/module/meta/service/media-data.service.js +372 -0
  615. package/dist/module/meta/service/media-data.service.js.map +1 -0
  616. package/dist/module/meta/service/preference.service.d.ts +7 -0
  617. package/dist/module/meta/service/preference.service.js +31 -0
  618. package/dist/module/meta/service/preference.service.js.map +1 -0
  619. package/dist/module/meta/service/resolver.service.d.ts +21 -0
  620. package/dist/module/meta/service/resolver.service.js +215 -0
  621. package/dist/module/meta/service/resolver.service.js.map +1 -0
  622. package/dist/module/meta/service/section-master.service.d.ts +26 -0
  623. package/dist/module/meta/service/section-master.service.js +77 -0
  624. package/dist/module/meta/service/section-master.service.js.map +1 -0
  625. package/dist/module/meta/service/update-form-json.service.d.ts +9 -0
  626. package/dist/module/meta/service/update-form-json.service.js +39 -0
  627. package/dist/module/meta/service/update-form-json.service.js.map +1 -0
  628. package/dist/module/meta/service/user-app-mapping.service.d.ts +0 -0
  629. package/dist/module/meta/service/user-app-mapping.service.js +1 -0
  630. package/dist/module/meta/service/user-app-mapping.service.js.map +1 -0
  631. package/dist/module/meta/service/view-master.service.d.ts +29 -0
  632. package/dist/module/meta/service/view-master.service.js +82 -0
  633. package/dist/module/meta/service/view-master.service.js.map +1 -0
  634. package/dist/module/microservice-client/microservice-clients.module.d.ts +2 -0
  635. package/dist/module/microservice-client/microservice-clients.module.js +27 -0
  636. package/dist/module/microservice-client/microservice-clients.module.js.map +1 -0
  637. package/dist/module/microservice-client/service/microservice-client-factory.d.ts +10 -0
  638. package/dist/module/microservice-client/service/microservice-client-factory.js +46 -0
  639. package/dist/module/microservice-client/service/microservice-client-factory.js.map +1 -0
  640. package/dist/module/microservice-client/service/microservice-clients.d.ts +4 -0
  641. package/dist/module/microservice-client/service/microservice-clients.js +3 -0
  642. package/dist/module/microservice-client/service/microservice-clients.js.map +1 -0
  643. package/dist/module/module/controller/menu.controller.d.ts +8 -0
  644. package/dist/module/module/controller/menu.controller.js +41 -0
  645. package/dist/module/module/controller/menu.controller.js.map +1 -0
  646. package/dist/module/module/controller/module-access.controller.d.ts +34 -0
  647. package/dist/module/module/controller/module-access.controller.js +153 -0
  648. package/dist/module/module/controller/module-access.controller.js.map +1 -0
  649. package/dist/module/module/entity/menu.entity.d.ts +18 -0
  650. package/dist/module/module/entity/menu.entity.js +81 -0
  651. package/dist/module/module/entity/menu.entity.js.map +1 -0
  652. package/dist/module/module/entity/module-access.entity.d.ts +23 -0
  653. package/dist/module/module/entity/module-access.entity.js +94 -0
  654. package/dist/module/module/entity/module-access.entity.js.map +1 -0
  655. package/dist/module/module/entity/module-action.entity.d.ts +8 -0
  656. package/dist/module/module/entity/module-action.entity.js +42 -0
  657. package/dist/module/module/entity/module-action.entity.js.map +1 -0
  658. package/dist/module/module/entity/module.entity.d.ts +16 -0
  659. package/dist/module/module/entity/module.entity.js +74 -0
  660. package/dist/module/module/entity/module.entity.js.map +1 -0
  661. package/dist/module/module/module.module.d.ts +2 -0
  662. package/dist/module/module/module.module.js +53 -0
  663. package/dist/module/module/module.module.js.map +1 -0
  664. package/dist/module/module/repository/menu.repository.d.ts +15 -0
  665. package/dist/module/module/repository/menu.repository.js +174 -0
  666. package/dist/module/module/repository/menu.repository.js.map +1 -0
  667. package/dist/module/module/repository/module-access.repository.d.ts +52 -0
  668. package/dist/module/module/repository/module-access.repository.js +333 -0
  669. package/dist/module/module/repository/module-access.repository.js.map +1 -0
  670. package/dist/module/module/service/menu.service.d.ts +10 -0
  671. package/dist/module/module/service/menu.service.js +56 -0
  672. package/dist/module/module/service/menu.service.js.map +1 -0
  673. package/dist/module/module/service/module-access.service.d.ts +60 -0
  674. package/dist/module/module/service/module-access.service.js +111 -0
  675. package/dist/module/module/service/module-access.service.js.map +1 -0
  676. package/dist/module/notification/controller/notification.controller.d.ts +23 -0
  677. package/dist/module/notification/controller/notification.controller.js +74 -0
  678. package/dist/module/notification/controller/notification.controller.js.map +1 -0
  679. package/dist/module/notification/controller/otp.controller.d.ts +35 -0
  680. package/dist/module/notification/controller/otp.controller.js +103 -0
  681. package/dist/module/notification/controller/otp.controller.js.map +1 -0
  682. package/dist/module/notification/entity/notification.entity.d.ts +25 -0
  683. package/dist/module/notification/entity/notification.entity.js +115 -0
  684. package/dist/module/notification/entity/notification.entity.js.map +1 -0
  685. package/dist/module/notification/entity/otp.entity.d.ts +10 -0
  686. package/dist/module/notification/entity/otp.entity.js +52 -0
  687. package/dist/module/notification/entity/otp.entity.js.map +1 -0
  688. package/dist/module/notification/firebase-admin.config.d.ts +7 -0
  689. package/dist/module/notification/firebase-admin.config.js +24 -0
  690. package/dist/module/notification/firebase-admin.config.js.map +1 -0
  691. package/dist/module/notification/notification.module.d.ts +2 -0
  692. package/dist/module/notification/notification.module.js +81 -0
  693. package/dist/module/notification/notification.module.js.map +1 -0
  694. package/dist/module/notification/repository/otp.repository.d.ts +9 -0
  695. package/dist/module/notification/repository/otp.repository.js +44 -0
  696. package/dist/module/notification/repository/otp.repository.js.map +1 -0
  697. package/dist/module/notification/service/email.service.d.ts +15 -0
  698. package/dist/module/notification/service/email.service.js +124 -0
  699. package/dist/module/notification/service/email.service.js.map +1 -0
  700. package/dist/module/notification/service/notification.service.d.ts +27 -0
  701. package/dist/module/notification/service/notification.service.js +127 -0
  702. package/dist/module/notification/service/notification.service.js.map +1 -0
  703. package/dist/module/notification/service/otp.service.d.ts +31 -0
  704. package/dist/module/notification/service/otp.service.js +111 -0
  705. package/dist/module/notification/service/otp.service.js.map +1 -0
  706. package/dist/module/preference_master/entity/preference.entity.d.ts +9 -0
  707. package/dist/module/preference_master/entity/preference.entity.js +48 -0
  708. package/dist/module/preference_master/entity/preference.entity.js.map +1 -0
  709. package/dist/module/preference_master/preference.service.d.ts +8 -0
  710. package/dist/module/preference_master/preference.service.js +31 -0
  711. package/dist/module/preference_master/preference.service.js.map +1 -0
  712. package/dist/module/preference_master/repo/preference.repository.d.ts +8 -0
  713. package/dist/module/preference_master/repo/preference.repository.js +48 -0
  714. package/dist/module/preference_master/repo/preference.repository.js.map +1 -0
  715. package/dist/module/third-party-module/entity/third-party-api-registry.entity.d.ts +18 -0
  716. package/dist/module/third-party-module/entity/third-party-api-registry.entity.js +84 -0
  717. package/dist/module/third-party-module/entity/third-party-api-registry.entity.js.map +1 -0
  718. package/dist/module/third-party-module/repository/third-party-api-registry.repository.d.ts +7 -0
  719. package/dist/module/third-party-module/repository/third-party-api-registry.repository.js +38 -0
  720. package/dist/module/third-party-module/repository/third-party-api-registry.repository.js.map +1 -0
  721. package/dist/module/third-party-module/service/api-registry.service.d.ts +6 -0
  722. package/dist/module/third-party-module/service/api-registry.service.js +28 -0
  723. package/dist/module/third-party-module/service/api-registry.service.js.map +1 -0
  724. package/dist/module/third-party-module/third-party.module.d.ts +2 -0
  725. package/dist/module/third-party-module/third-party.module.js +25 -0
  726. package/dist/module/third-party-module/third-party.module.js.map +1 -0
  727. package/dist/module/user/controller/login.controller.d.ts +24 -0
  728. package/dist/module/user/controller/login.controller.js +173 -0
  729. package/dist/module/user/controller/login.controller.js.map +1 -0
  730. package/dist/module/user/controller/user.controller.d.ts +7 -0
  731. package/dist/module/user/controller/user.controller.js +46 -0
  732. package/dist/module/user/controller/user.controller.js.map +1 -0
  733. package/dist/module/user/dto/create-user.dto.d.ts +20 -0
  734. package/dist/module/user/dto/create-user.dto.js +70 -0
  735. package/dist/module/user/dto/create-user.dto.js.map +1 -0
  736. package/dist/module/user/dto/update-user.dto.d.ts +5 -0
  737. package/dist/module/user/dto/update-user.dto.js +9 -0
  738. package/dist/module/user/dto/update-user.dto.js.map +1 -0
  739. package/dist/module/user/entity/role.entity.d.ts +23 -0
  740. package/dist/module/user/entity/role.entity.js +101 -0
  741. package/dist/module/user/entity/role.entity.js.map +1 -0
  742. package/dist/module/user/entity/user-role-mapping.entity.d.ts +22 -0
  743. package/dist/module/user/entity/user-role-mapping.entity.js +95 -0
  744. package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -0
  745. package/dist/module/user/entity/user-session.entity.d.ts +13 -0
  746. package/dist/module/user/entity/user-session.entity.js +84 -0
  747. package/dist/module/user/entity/user-session.entity.js.map +1 -0
  748. package/dist/module/user/entity/user.entity.d.ts +33 -0
  749. package/dist/module/user/entity/user.entity.js +141 -0
  750. package/dist/module/user/entity/user.entity.js.map +1 -0
  751. package/dist/module/user/repository/role.repository.d.ts +23 -0
  752. package/dist/module/user/repository/role.repository.js +102 -0
  753. package/dist/module/user/repository/role.repository.js.map +1 -0
  754. package/dist/module/user/repository/user-role-mapping.repository.d.ts +20 -0
  755. package/dist/module/user/repository/user-role-mapping.repository.js +113 -0
  756. package/dist/module/user/repository/user-role-mapping.repository.js.map +1 -0
  757. package/dist/module/user/repository/user.repository.d.ts +13 -0
  758. package/dist/module/user/repository/user.repository.js +77 -0
  759. package/dist/module/user/repository/user.repository.js.map +1 -0
  760. package/dist/module/user/repository/userSession.repository.d.ts +11 -0
  761. package/dist/module/user/repository/userSession.repository.js +48 -0
  762. package/dist/module/user/repository/userSession.repository.js.map +1 -0
  763. package/dist/module/user/service/login.service.d.ts +39 -0
  764. package/dist/module/user/service/login.service.js +243 -0
  765. package/dist/module/user/service/login.service.js.map +1 -0
  766. package/dist/module/user/service/role.service.d.ts +38 -0
  767. package/dist/module/user/service/role.service.js +168 -0
  768. package/dist/module/user/service/role.service.js.map +1 -0
  769. package/dist/module/user/service/user-role-mapping.service.d.ts +14 -0
  770. package/dist/module/user/service/user-role-mapping.service.js +66 -0
  771. package/dist/module/user/service/user-role-mapping.service.js.map +1 -0
  772. package/dist/module/user/service/user-session.service.d.ts +30 -0
  773. package/dist/module/user/service/user-session.service.js +159 -0
  774. package/dist/module/user/service/user-session.service.js.map +1 -0
  775. package/dist/module/user/service/user.service.d.ts +49 -0
  776. package/dist/module/user/service/user.service.js +251 -0
  777. package/dist/module/user/service/user.service.js.map +1 -0
  778. package/dist/module/user/user.module.d.ts +2 -0
  779. package/dist/module/user/user.module.js +73 -0
  780. package/dist/module/user/user.module.js.map +1 -0
  781. package/dist/module/workflow/controller/action-category.controller.d.ts +18 -0
  782. package/dist/module/workflow/controller/action-category.controller.js +79 -0
  783. package/dist/module/workflow/controller/action-category.controller.js.map +1 -0
  784. package/dist/module/workflow/controller/action-resource-mapping.controller.d.ts +5 -0
  785. package/dist/module/workflow/controller/action-resource-mapping.controller.js +31 -0
  786. package/dist/module/workflow/controller/action-resource-mapping.controller.js.map +1 -0
  787. package/dist/module/workflow/controller/action-template-mapping.controller.d.ts +12 -0
  788. package/dist/module/workflow/controller/action-template-mapping.controller.js +44 -0
  789. package/dist/module/workflow/controller/action-template-mapping.controller.js.map +1 -0
  790. package/dist/module/workflow/controller/action.controller.d.ts +54 -0
  791. package/dist/module/workflow/controller/action.controller.js +122 -0
  792. package/dist/module/workflow/controller/action.controller.js.map +1 -0
  793. package/dist/module/workflow/controller/activity-log.controller.d.ts +42 -0
  794. package/dist/module/workflow/controller/activity-log.controller.js +62 -0
  795. package/dist/module/workflow/controller/activity-log.controller.js.map +1 -0
  796. package/dist/module/workflow/controller/comm-template.controller.d.ts +19 -0
  797. package/dist/module/workflow/controller/comm-template.controller.js +58 -0
  798. package/dist/module/workflow/controller/comm-template.controller.js.map +1 -0
  799. package/dist/module/workflow/controller/entity-modification.controller.d.ts +8 -0
  800. package/dist/module/workflow/controller/entity-modification.controller.js +44 -0
  801. package/dist/module/workflow/controller/entity-modification.controller.js.map +1 -0
  802. package/dist/module/workflow/controller/form-master.controller.d.ts +14 -0
  803. package/dist/module/workflow/controller/form-master.controller.js +59 -0
  804. package/dist/module/workflow/controller/form-master.controller.js.map +1 -0
  805. package/dist/module/workflow/controller/stage-group.controller.d.ts +19 -0
  806. package/dist/module/workflow/controller/stage-group.controller.js +57 -0
  807. package/dist/module/workflow/controller/stage-group.controller.js.map +1 -0
  808. package/dist/module/workflow/controller/stage.controller.d.ts +16 -0
  809. package/dist/module/workflow/controller/stage.controller.js +58 -0
  810. package/dist/module/workflow/controller/stage.controller.js.map +1 -0
  811. package/dist/module/workflow/controller/task.controller.d.ts +32 -0
  812. package/dist/module/workflow/controller/task.controller.js +72 -0
  813. package/dist/module/workflow/controller/task.controller.js.map +1 -0
  814. package/dist/module/workflow/controller/workflow-list-master.controller.d.ts +14 -0
  815. package/dist/module/workflow/controller/workflow-list-master.controller.js +67 -0
  816. package/dist/module/workflow/controller/workflow-list-master.controller.js.map +1 -0
  817. package/dist/module/workflow/controller/workflow-meta.controller.d.ts +15 -0
  818. package/dist/module/workflow/controller/workflow-meta.controller.js +72 -0
  819. package/dist/module/workflow/controller/workflow-meta.controller.js.map +1 -0
  820. package/dist/module/workflow/controller/workflow.controller.d.ts +31 -0
  821. package/dist/module/workflow/controller/workflow.controller.js +83 -0
  822. package/dist/module/workflow/controller/workflow.controller.js.map +1 -0
  823. package/dist/module/workflow/entity/action-category.entity.d.ts +13 -0
  824. package/dist/module/workflow/entity/action-category.entity.js +63 -0
  825. package/dist/module/workflow/entity/action-category.entity.js.map +1 -0
  826. package/dist/module/workflow/entity/action-data.entity.d.ts +19 -0
  827. package/dist/module/workflow/entity/action-data.entity.js +86 -0
  828. package/dist/module/workflow/entity/action-data.entity.js.map +1 -0
  829. package/dist/module/workflow/entity/action-resources-mapping.entity.d.ts +9 -0
  830. package/dist/module/workflow/entity/action-resources-mapping.entity.js +47 -0
  831. package/dist/module/workflow/entity/action-resources-mapping.entity.js.map +1 -0
  832. package/dist/module/workflow/entity/action-template-mapping.entity.d.ts +6 -0
  833. package/dist/module/workflow/entity/action-template-mapping.entity.js +35 -0
  834. package/dist/module/workflow/entity/action-template-mapping.entity.js.map +1 -0
  835. package/dist/module/workflow/entity/action.entity.d.ts +18 -0
  836. package/dist/module/workflow/entity/action.entity.js +83 -0
  837. package/dist/module/workflow/entity/action.entity.js.map +1 -0
  838. package/dist/module/workflow/entity/activity-log.entity.d.ts +15 -0
  839. package/dist/module/workflow/entity/activity-log.entity.js +70 -0
  840. package/dist/module/workflow/entity/activity-log.entity.js.map +1 -0
  841. package/dist/module/workflow/entity/comm-template.entity.d.ts +14 -0
  842. package/dist/module/workflow/entity/comm-template.entity.js +67 -0
  843. package/dist/module/workflow/entity/comm-template.entity.js.map +1 -0
  844. package/dist/module/workflow/entity/entity-modification.entity.d.ts +13 -0
  845. package/dist/module/workflow/entity/entity-modification.entity.js +63 -0
  846. package/dist/module/workflow/entity/entity-modification.entity.js.map +1 -0
  847. package/dist/module/workflow/entity/form.entity.d.ts +9 -0
  848. package/dist/module/workflow/entity/form.entity.js +46 -0
  849. package/dist/module/workflow/entity/form.entity.js.map +1 -0
  850. package/dist/module/workflow/entity/stage-action-mapping.entity.d.ts +6 -0
  851. package/dist/module/workflow/entity/stage-action-mapping.entity.js +35 -0
  852. package/dist/module/workflow/entity/stage-action-mapping.entity.js.map +1 -0
  853. package/dist/module/workflow/entity/stage-group.entity.d.ts +8 -0
  854. package/dist/module/workflow/entity/stage-group.entity.js +43 -0
  855. package/dist/module/workflow/entity/stage-group.entity.js.map +1 -0
  856. package/dist/module/workflow/entity/stage-movement-data.entity.d.ts +13 -0
  857. package/dist/module/workflow/entity/stage-movement-data.entity.js +63 -0
  858. package/dist/module/workflow/entity/stage-movement-data.entity.js.map +1 -0
  859. package/dist/module/workflow/entity/stage.entity.d.ts +7 -0
  860. package/dist/module/workflow/entity/stage.entity.js +39 -0
  861. package/dist/module/workflow/entity/stage.entity.js.map +1 -0
  862. package/dist/module/workflow/entity/task-data.entity.d.ts +30 -0
  863. package/dist/module/workflow/entity/task-data.entity.js +130 -0
  864. package/dist/module/workflow/entity/task-data.entity.js.map +1 -0
  865. package/dist/module/workflow/entity/template-attach-mapper.entity.d.ts +11 -0
  866. package/dist/module/workflow/entity/template-attach-mapper.entity.js +54 -0
  867. package/dist/module/workflow/entity/template-attach-mapper.entity.js.map +1 -0
  868. package/dist/module/workflow/entity/workflow-data.entity.d.ts +4 -0
  869. package/dist/module/workflow/entity/workflow-data.entity.js +27 -0
  870. package/dist/module/workflow/entity/workflow-data.entity.js.map +1 -0
  871. package/dist/module/workflow/entity/workflow-level-mapping.entity.d.ts +7 -0
  872. package/dist/module/workflow/entity/workflow-level-mapping.entity.js +38 -0
  873. package/dist/module/workflow/entity/workflow-level-mapping.entity.js.map +1 -0
  874. package/dist/module/workflow/entity/workflow.entity.d.ts +7 -0
  875. package/dist/module/workflow/entity/workflow.entity.js +39 -0
  876. package/dist/module/workflow/entity/workflow.entity.js.map +1 -0
  877. package/dist/module/workflow/repository/action-category.repository.d.ts +19 -0
  878. package/dist/module/workflow/repository/action-category.repository.js +84 -0
  879. package/dist/module/workflow/repository/action-category.repository.js.map +1 -0
  880. package/dist/module/workflow/repository/action-data.repository.d.ts +22 -0
  881. package/dist/module/workflow/repository/action-data.repository.js +252 -0
  882. package/dist/module/workflow/repository/action-data.repository.js.map +1 -0
  883. package/dist/module/workflow/repository/action.repository.d.ts +31 -0
  884. package/dist/module/workflow/repository/action.repository.js +258 -0
  885. package/dist/module/workflow/repository/action.repository.js.map +1 -0
  886. package/dist/module/workflow/repository/activity-log.repository.d.ts +57 -0
  887. package/dist/module/workflow/repository/activity-log.repository.js +129 -0
  888. package/dist/module/workflow/repository/activity-log.repository.js.map +1 -0
  889. package/dist/module/workflow/repository/comm-template.repository.d.ts +17 -0
  890. package/dist/module/workflow/repository/comm-template.repository.js +126 -0
  891. package/dist/module/workflow/repository/comm-template.repository.js.map +1 -0
  892. package/dist/module/workflow/repository/form-master.repository.d.ts +11 -0
  893. package/dist/module/workflow/repository/form-master.repository.js +41 -0
  894. package/dist/module/workflow/repository/form-master.repository.js.map +1 -0
  895. package/dist/module/workflow/repository/form.repository.d.ts +0 -0
  896. package/dist/module/workflow/repository/form.repository.js +1 -0
  897. package/dist/module/workflow/repository/form.repository.js.map +1 -0
  898. package/dist/module/workflow/repository/stage-group.repository.d.ts +37 -0
  899. package/dist/module/workflow/repository/stage-group.repository.js +145 -0
  900. package/dist/module/workflow/repository/stage-group.repository.js.map +1 -0
  901. package/dist/module/workflow/repository/stage-movement.repository.d.ts +28 -0
  902. package/dist/module/workflow/repository/stage-movement.repository.js +180 -0
  903. package/dist/module/workflow/repository/stage-movement.repository.js.map +1 -0
  904. package/dist/module/workflow/repository/stage.repository.d.ts +31 -0
  905. package/dist/module/workflow/repository/stage.repository.js +117 -0
  906. package/dist/module/workflow/repository/stage.repository.js.map +1 -0
  907. package/dist/module/workflow/repository/task.repository.d.ts +18 -0
  908. package/dist/module/workflow/repository/task.repository.js +134 -0
  909. package/dist/module/workflow/repository/task.repository.js.map +1 -0
  910. package/dist/module/workflow/repository/workflow.repository.d.ts +10 -0
  911. package/dist/module/workflow/repository/workflow.repository.js +49 -0
  912. package/dist/module/workflow/repository/workflow.repository.js.map +1 -0
  913. package/dist/module/workflow/service/action-category.service.d.ts +21 -0
  914. package/dist/module/workflow/service/action-category.service.js +42 -0
  915. package/dist/module/workflow/service/action-category.service.js.map +1 -0
  916. package/dist/module/workflow/service/action-data.service.d.ts +16 -0
  917. package/dist/module/workflow/service/action-data.service.js +39 -0
  918. package/dist/module/workflow/service/action-data.service.js.map +1 -0
  919. package/dist/module/workflow/service/action-resources-mapping.service.d.ts +6 -0
  920. package/dist/module/workflow/service/action-resources-mapping.service.js +27 -0
  921. package/dist/module/workflow/service/action-resources-mapping.service.js.map +1 -0
  922. package/dist/module/workflow/service/action-template-mapping.service.d.ts +10 -0
  923. package/dist/module/workflow/service/action-template-mapping.service.js +133 -0
  924. package/dist/module/workflow/service/action-template-mapping.service.js.map +1 -0
  925. package/dist/module/workflow/service/action.service.d.ts +44 -0
  926. package/dist/module/workflow/service/action.service.js +211 -0
  927. package/dist/module/workflow/service/action.service.js.map +1 -0
  928. package/dist/module/workflow/service/activity-log.service.d.ts +42 -0
  929. package/dist/module/workflow/service/activity-log.service.js +92 -0
  930. package/dist/module/workflow/service/activity-log.service.js.map +1 -0
  931. package/dist/module/workflow/service/comm-template.service.d.ts +24 -0
  932. package/dist/module/workflow/service/comm-template.service.js +132 -0
  933. package/dist/module/workflow/service/comm-template.service.js.map +1 -0
  934. package/dist/module/workflow/service/entity-modification.service.d.ts +8 -0
  935. package/dist/module/workflow/service/entity-modification.service.js +47 -0
  936. package/dist/module/workflow/service/entity-modification.service.js.map +1 -0
  937. package/dist/module/workflow/service/form-master.service.d.ts +17 -0
  938. package/dist/module/workflow/service/form-master.service.js +38 -0
  939. package/dist/module/workflow/service/form-master.service.js.map +1 -0
  940. package/dist/module/workflow/service/populate-workflow.service.d.ts +21 -0
  941. package/dist/module/workflow/service/populate-workflow.service.js +245 -0
  942. package/dist/module/workflow/service/populate-workflow.service.js.map +1 -0
  943. package/dist/module/workflow/service/stage-action-mapping.service.d.ts +3 -0
  944. package/dist/module/workflow/service/stage-action-mapping.service.js +18 -0
  945. package/dist/module/workflow/service/stage-action-mapping.service.js.map +1 -0
  946. package/dist/module/workflow/service/stage-group.service.d.ts +30 -0
  947. package/dist/module/workflow/service/stage-group.service.js +238 -0
  948. package/dist/module/workflow/service/stage-group.service.js.map +1 -0
  949. package/dist/module/workflow/service/stage.service.d.ts +21 -0
  950. package/dist/module/workflow/service/stage.service.js +136 -0
  951. package/dist/module/workflow/service/stage.service.js.map +1 -0
  952. package/dist/module/workflow/service/task.service.d.ts +46 -0
  953. package/dist/module/workflow/service/task.service.js +368 -0
  954. package/dist/module/workflow/service/task.service.js.map +1 -0
  955. package/dist/module/workflow/service/workflow-list-master.service.d.ts +7 -0
  956. package/dist/module/workflow/service/workflow-list-master.service.js +73 -0
  957. package/dist/module/workflow/service/workflow-list-master.service.js.map +1 -0
  958. package/dist/module/workflow/service/workflow-meta.service.d.ts +37 -0
  959. package/dist/module/workflow/service/workflow-meta.service.js +424 -0
  960. package/dist/module/workflow/service/workflow-meta.service.js.map +1 -0
  961. package/dist/module/workflow/service/workflow.service.d.ts +31 -0
  962. package/dist/module/workflow/service/workflow.service.js +153 -0
  963. package/dist/module/workflow/service/workflow.service.js.map +1 -0
  964. package/dist/module/workflow/workflow.module.d.ts +2 -0
  965. package/dist/module/workflow/workflow.module.js +194 -0
  966. package/dist/module/workflow/workflow.module.js.map +1 -0
  967. package/dist/module/workflow-automation/controller/workflow-automation.controller.d.ts +11 -0
  968. package/dist/module/workflow-automation/controller/workflow-automation.controller.js +47 -0
  969. package/dist/module/workflow-automation/controller/workflow-automation.controller.js.map +1 -0
  970. package/dist/module/workflow-automation/entity/workflow-automation-action.entity.d.ts +9 -0
  971. package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js +47 -0
  972. package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js.map +1 -0
  973. package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +14 -0
  974. package/dist/module/workflow-automation/entity/workflow-automation.entity.js +67 -0
  975. package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -0
  976. package/dist/module/workflow-automation/interface/action.decorator.d.ts +2 -0
  977. package/dist/module/workflow-automation/interface/action.decorator.js +8 -0
  978. package/dist/module/workflow-automation/interface/action.decorator.js.map +1 -0
  979. package/dist/module/workflow-automation/interface/action.interface.d.ts +4 -0
  980. package/dist/module/workflow-automation/interface/action.interface.js +3 -0
  981. package/dist/module/workflow-automation/interface/action.interface.js.map +1 -0
  982. package/dist/module/workflow-automation/service/action-registery.service.d.ts +11 -0
  983. package/dist/module/workflow-automation/service/action-registery.service.js +46 -0
  984. package/dist/module/workflow-automation/service/action-registery.service.js.map +1 -0
  985. package/dist/module/workflow-automation/service/schedule-handler.service.d.ts +22 -0
  986. package/dist/module/workflow-automation/service/schedule-handler.service.js +141 -0
  987. package/dist/module/workflow-automation/service/schedule-handler.service.js.map +1 -0
  988. package/dist/module/workflow-automation/service/workflow-automation-engine.service.d.ts +15 -0
  989. package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +124 -0
  990. package/dist/module/workflow-automation/service/workflow-automation-engine.service.js.map +1 -0
  991. package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +68 -0
  992. package/dist/module/workflow-automation/service/workflow-automation.service.js +339 -0
  993. package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -0
  994. package/dist/module/workflow-automation/workflow-automation.module.d.ts +2 -0
  995. package/dist/module/workflow-automation/workflow-automation.module.js +68 -0
  996. package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -0
  997. package/dist/module/workflow-schedule/constants/schedule.constants.d.ts +27 -0
  998. package/dist/module/workflow-schedule/constants/schedule.constants.js +31 -0
  999. package/dist/module/workflow-schedule/constants/schedule.constants.js.map +1 -0
  1000. package/dist/module/workflow-schedule/controller/workflow-schedule.controller.d.ts +81 -0
  1001. package/dist/module/workflow-schedule/controller/workflow-schedule.controller.js +218 -0
  1002. package/dist/module/workflow-schedule/controller/workflow-schedule.controller.js.map +1 -0
  1003. package/dist/module/workflow-schedule/dto/create-schedule.dto.d.ts +32 -0
  1004. package/dist/module/workflow-schedule/dto/create-schedule.dto.js +163 -0
  1005. package/dist/module/workflow-schedule/dto/create-schedule.dto.js.map +1 -0
  1006. package/dist/module/workflow-schedule/dto/get-execution-logs.dto.d.ts +35 -0
  1007. package/dist/module/workflow-schedule/dto/get-execution-logs.dto.js +124 -0
  1008. package/dist/module/workflow-schedule/dto/get-execution-logs.dto.js.map +1 -0
  1009. package/dist/module/workflow-schedule/dto/update-schedule.dto.d.ts +19 -0
  1010. package/dist/module/workflow-schedule/dto/update-schedule.dto.js +106 -0
  1011. package/dist/module/workflow-schedule/dto/update-schedule.dto.js.map +1 -0
  1012. package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.d.ts +30 -0
  1013. package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.js +113 -0
  1014. package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.js.map +1 -0
  1015. package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.d.ts +34 -0
  1016. package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.js +118 -0
  1017. package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.js.map +1 -0
  1018. package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.d.ts +44 -0
  1019. package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.js +3 -0
  1020. package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.js.map +1 -0
  1021. package/dist/module/workflow-schedule/interfaces/workflow-schedule-options.interface.d.ts +3 -0
  1022. package/dist/module/workflow-schedule/interfaces/workflow-schedule-options.interface.js +3 -0
  1023. package/dist/module/workflow-schedule/interfaces/workflow-schedule-options.interface.js.map +1 -0
  1024. package/dist/module/workflow-schedule/processors/schedule.processor.d.ts +33 -0
  1025. package/dist/module/workflow-schedule/processors/schedule.processor.js +422 -0
  1026. package/dist/module/workflow-schedule/processors/schedule.processor.js.map +1 -0
  1027. package/dist/module/workflow-schedule/service/workflow-schedule.service.d.ts +43 -0
  1028. package/dist/module/workflow-schedule/service/workflow-schedule.service.js +432 -0
  1029. package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -0
  1030. package/dist/module/workflow-schedule/workflow-schedule.module.d.ts +5 -0
  1031. package/dist/module/workflow-schedule/workflow-schedule.module.js +52 -0
  1032. package/dist/module/workflow-schedule/workflow-schedule.module.js.map +1 -0
  1033. package/dist/resources/properties.module.d.ts +2 -0
  1034. package/dist/resources/properties.module.js +25 -0
  1035. package/dist/resources/properties.module.js.map +1 -0
  1036. package/dist/resources/properties.yaml.d.ts +2 -0
  1037. package/dist/resources/properties.yaml.js +10 -0
  1038. package/dist/resources/properties.yaml.js.map +1 -0
  1039. package/dist/table.config.d.ts +39 -0
  1040. package/dist/table.config.js +136 -0
  1041. package/dist/table.config.js.map +1 -0
  1042. package/dist/tsconfig.build.tsbuildinfo +1 -0
  1043. package/dist/utils/dto/excel-data.dto.d.ts +7 -0
  1044. package/dist/utils/dto/excel-data.dto.js +16 -0
  1045. package/dist/utils/dto/excel-data.dto.js.map +1 -0
  1046. package/dist/utils/dto/excelsheet-data.dto.d.ts +5 -0
  1047. package/dist/utils/dto/excelsheet-data.dto.js +3 -0
  1048. package/dist/utils/dto/excelsheet-data.dto.js.map +1 -0
  1049. package/dist/utils/service/base64util.service.d.ts +4 -0
  1050. package/dist/utils/service/base64util.service.js +21 -0
  1051. package/dist/utils/service/base64util.service.js.map +1 -0
  1052. package/dist/utils/service/clockIDGenUtil.service.d.ts +8 -0
  1053. package/dist/utils/service/clockIDGenUtil.service.js +32 -0
  1054. package/dist/utils/service/clockIDGenUtil.service.js.map +1 -0
  1055. package/dist/utils/service/codeGenerator.service.d.ts +3 -0
  1056. package/dist/utils/service/codeGenerator.service.js +19 -0
  1057. package/dist/utils/service/codeGenerator.service.js.map +1 -0
  1058. package/dist/utils/service/dateUtil.service.d.ts +3 -0
  1059. package/dist/utils/service/dateUtil.service.js +28 -0
  1060. package/dist/utils/service/dateUtil.service.js.map +1 -0
  1061. package/dist/utils/service/encryptUtil.service.d.ts +9 -0
  1062. package/dist/utils/service/encryptUtil.service.js +112 -0
  1063. package/dist/utils/service/encryptUtil.service.js.map +1 -0
  1064. package/dist/utils/service/excel-helper.service.d.ts +9 -0
  1065. package/dist/utils/service/excel-helper.service.js +56 -0
  1066. package/dist/utils/service/excel-helper.service.js.map +1 -0
  1067. package/dist/utils/service/excelUtil.service.d.ts +3 -0
  1068. package/dist/utils/service/excelUtil.service.js +17 -0
  1069. package/dist/utils/service/excelUtil.service.js.map +1 -0
  1070. package/dist/utils/service/file-util.service.d.ts +3 -0
  1071. package/dist/utils/service/file-util.service.js +15 -0
  1072. package/dist/utils/service/file-util.service.js.map +1 -0
  1073. package/dist/utils/service/json-util.service.d.ts +3 -0
  1074. package/dist/utils/service/json-util.service.js +24 -0
  1075. package/dist/utils/service/json-util.service.js.map +1 -0
  1076. package/dist/utils/service/loggingUtil.service.d.ts +11 -0
  1077. package/dist/utils/service/loggingUtil.service.js +87 -0
  1078. package/dist/utils/service/loggingUtil.service.js.map +1 -0
  1079. package/dist/utils/service/reflection-helper.service.d.ts +10 -0
  1080. package/dist/utils/service/reflection-helper.service.js +66 -0
  1081. package/dist/utils/service/reflection-helper.service.js.map +1 -0
  1082. package/dist/utils/service/wbsCodeGen.service.d.ts +3 -0
  1083. package/dist/utils/service/wbsCodeGen.service.js +20 -0
  1084. package/dist/utils/service/wbsCodeGen.service.js.map +1 -0
  1085. package/dist/utils/utils.module.d.ts +2 -0
  1086. package/dist/utils/utils.module.js +40 -0
  1087. package/dist/utils/utils.module.js.map +1 -0
  1088. package/package.json +1 -1
  1089. package/src/module/module/repository/module-access.repository.ts +9 -9
@@ -0,0 +1,339 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var WorkflowAutomationService_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.WorkflowAutomationService = void 0;
17
+ const common_1 = require("@nestjs/common");
18
+ const typeorm_1 = require("@nestjs/typeorm");
19
+ const typeorm_2 = require("typeorm");
20
+ const workflow_automation_entity_1 = require("../entity/workflow-automation.entity");
21
+ const workflow_automation_action_entity_1 = require("../entity/workflow-automation-action.entity");
22
+ const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
23
+ const saved_filter_service_1 = require("../../filter/service/saved-filter.service");
24
+ const global_constant_1 = require("../../../constant/global.constant");
25
+ const scheduled_workflow_entity_1 = require("../../workflow-schedule/entities/scheduled-workflow.entity");
26
+ const workflow_schedule_service_1 = require("../../workflow-schedule/service/workflow-schedule.service");
27
+ const moment = require("moment");
28
+ let WorkflowAutomationService = WorkflowAutomationService_1 = class WorkflowAutomationService extends entity_service_impl_service_1.EntityServiceImpl {
29
+ constructor(wfRepo, actionRepo, savedFilterService, dataSource, scheduledWorkflowRepository, workflowScheduleService) {
30
+ super();
31
+ this.wfRepo = wfRepo;
32
+ this.actionRepo = actionRepo;
33
+ this.savedFilterService = savedFilterService;
34
+ this.dataSource = dataSource;
35
+ this.scheduledWorkflowRepository = scheduledWorkflowRepository;
36
+ this.workflowScheduleService = workflowScheduleService;
37
+ this.logger = new common_1.Logger(WorkflowAutomationService_1.name);
38
+ }
39
+ async createRule(data) {
40
+ const rule = this.wfRepo.create(data);
41
+ return this.wfRepo.save(rule);
42
+ }
43
+ async updateRule(id, data) {
44
+ await this.wfRepo.update(id, data);
45
+ return this.wfRepo.findOneBy({ id });
46
+ }
47
+ async deleteRule(id) {
48
+ await this.wfRepo.delete(id);
49
+ }
50
+ async getRule(id) {
51
+ return this.wfRepo.findOneBy({ id });
52
+ }
53
+ async getActiveRules(entityType, event, loggedInUser) {
54
+ return this.wfRepo.find({
55
+ where: {
56
+ applicable_entity_type: entityType,
57
+ trigger_event: event,
58
+ enterprise_id: loggedInUser.enterprise_id,
59
+ },
60
+ });
61
+ }
62
+ async getActionsForRule(workflow_automation_id) {
63
+ return this.actionRepo.find({
64
+ where: { workflow_automation_id },
65
+ });
66
+ }
67
+ async updateEntity(entityData, loggedInUser) {
68
+ this.logger.debug(`Updating WorkflowAutomation with data: ${JSON.stringify(entityData)}`);
69
+ const { event, filter, action, ...workflowData } = entityData;
70
+ this.logger.log(`Updating core workflow fields for workflow...`);
71
+ let workflow = await super.updateEntity(workflowData, loggedInUser);
72
+ this.logger.debug(`Workflow updated (id=${workflow.id})`);
73
+ if (event?.triggerType) {
74
+ this.logger.log(`Processing EVENT filter for workflow ${workflow.id}`);
75
+ if (event.triggerType === 'on_event') {
76
+ const eventFilterMaster = {
77
+ entity_type: 'SFM',
78
+ name: `Event_Filter_${workflow.id}`,
79
+ filterDetails: event?.eventFilterJson ?? [],
80
+ filter_scope: 'RULE',
81
+ enterprise_id: loggedInUser.enterprise_id,
82
+ };
83
+ if (workflow.condition_filter_code) {
84
+ this.logger.debug(`Existing event filter found: ${workflow.condition_filter_code}`);
85
+ const existing = await this.savedFilterService.getEntityDataByCode(global_constant_1.ENTITYTYPE_SAVEDFILTERMASTER, workflow.condition_filter_code, loggedInUser);
86
+ if (existing) {
87
+ eventFilterMaster['id'] = existing.id;
88
+ const updatedEvent = await this.savedFilterService.updateEntity(eventFilterMaster, loggedInUser);
89
+ workflow.condition_filter_code = updatedEvent.code;
90
+ this.logger.log(`Updated existing event filter: ${updatedEvent.code}`);
91
+ }
92
+ }
93
+ else {
94
+ const savedEvent = await this.savedFilterService.createEntity(eventFilterMaster, loggedInUser);
95
+ workflow.condition_filter_code = savedEvent.code;
96
+ this.logger.log(`Created new event filter: ${savedEvent.code}`);
97
+ }
98
+ workflow.trigger_event = event?.event ?? null;
99
+ }
100
+ if (event.triggerType === 'on_schedule') {
101
+ workflow.schedule = event?.scheduleJson ?? null;
102
+ workflow.trigger_type = 'on_schedule';
103
+ this.logger.log(`Stored schedule JSON for workflow ${workflow.id}: ${JSON.stringify(workflow.schedule)}`);
104
+ await this.registerScheduleAutomation(workflow, loggedInUser);
105
+ }
106
+ workflow.trigger_type = event.triggerType;
107
+ }
108
+ if (filter) {
109
+ this.logger.log(`Processing CRITERIA filter for workflow ${workflow.id}`);
110
+ workflow.criteria_filter_code = filter.filter_code ?? null;
111
+ }
112
+ if (Array.isArray(action) && action.length) {
113
+ this.logger.log(`Processing ${action.length} actions for workflow ${workflow.id}`);
114
+ const existingActions = await this.dataSource
115
+ .getRepository(workflow_automation_action_entity_1.WorkflowAutomationActionEntity)
116
+ .find({
117
+ where: { workflow_automation_id: workflow.id },
118
+ });
119
+ const existingMap = new Map(existingActions.map((a) => [a.action_category_id, a]));
120
+ for (const a of action) {
121
+ if (!a?.actionCategory) {
122
+ this.logger.warn(`Skipping action without category: ${JSON.stringify(a)}`);
123
+ continue;
124
+ }
125
+ const existing = existingMap.get(a.actionCategory);
126
+ if (existing) {
127
+ existing.payload = a.actionPayload ?? {};
128
+ existing.actioncategoryname =
129
+ a.actionCategoryName ?? existing.actioncategoryname;
130
+ existing.status = a.status ?? existing.status;
131
+ await this.dataSource
132
+ .getRepository(workflow_automation_action_entity_1.WorkflowAutomationActionEntity)
133
+ .save(existing);
134
+ this.logger.log(`Updated action: ${a.actionCategory}`);
135
+ }
136
+ else {
137
+ const actionEntity = new workflow_automation_action_entity_1.WorkflowAutomationActionEntity();
138
+ actionEntity.entity_type = 'WFAA';
139
+ actionEntity.workflow_automation_id = workflow.id;
140
+ actionEntity.action_category_id = a.actionCategory;
141
+ actionEntity.actioncategoryname = a.actionCategoryName;
142
+ actionEntity.payload = a.actionPayload ?? {};
143
+ actionEntity.name = a.name;
144
+ actionEntity.status = a.status;
145
+ await this.dataSource
146
+ .getRepository(workflow_automation_action_entity_1.WorkflowAutomationActionEntity)
147
+ .save(actionEntity);
148
+ this.logger.log(`Created new action: ${a.actionCategory}`);
149
+ }
150
+ }
151
+ const incomingCategories = action.map((a) => a.actionCategory);
152
+ const toDelete = existingActions.filter((a) => !incomingCategories.includes(a.action_category_id));
153
+ if (toDelete.length) {
154
+ await this.dataSource
155
+ .getRepository(workflow_automation_action_entity_1.WorkflowAutomationActionEntity)
156
+ .remove(toDelete);
157
+ this.logger.log(`Deleted ${toDelete.length} actions not present in request.`);
158
+ }
159
+ }
160
+ workflow = await super.updateEntity(workflow, loggedInUser);
161
+ this.logger.debug(`Final workflow updated (id=${workflow.id})`);
162
+ return workflow;
163
+ }
164
+ async getEntityData(entity_type, id, loggedInUser) {
165
+ this.logger.log(`Fetching WorkflowAutomation by id=${id}`);
166
+ const workflowAutomation = await this.dataSource
167
+ .getRepository(workflow_automation_entity_1.WorkflowAutomation)
168
+ .findOne({
169
+ where: { id },
170
+ });
171
+ if (!workflowAutomation) {
172
+ throw new common_1.NotFoundException(`WorkflowAutomation not found with id=${id}`);
173
+ }
174
+ let event = null;
175
+ if (workflowAutomation.trigger_type === 'on_event') {
176
+ if (workflowAutomation.condition_filter_code) {
177
+ const eventFilterMaster = await this.savedFilterService.getEntityDataByCode(global_constant_1.ENTITYTYPE_SAVEDFILTERMASTER, workflowAutomation.condition_filter_code, loggedInUser);
178
+ if (eventFilterMaster) {
179
+ const eventFilterDetails = await this.savedFilterService.getDetailsByCode(eventFilterMaster.code);
180
+ event = {
181
+ eventFilterJson: eventFilterDetails ?? [],
182
+ triggerType: workflowAutomation.trigger_type,
183
+ event: workflowAutomation.trigger_event,
184
+ };
185
+ }
186
+ }
187
+ }
188
+ if (workflowAutomation.trigger_type === 'on_schedule') {
189
+ event = {
190
+ triggerType: workflowAutomation.trigger_type,
191
+ scheduleJson: workflowAutomation.schedule,
192
+ };
193
+ }
194
+ let filter = null;
195
+ filter = {
196
+ filter_code: workflowAutomation.criteria_filter_code,
197
+ };
198
+ const actions = await this.dataSource
199
+ .getRepository(workflow_automation_action_entity_1.WorkflowAutomationActionEntity)
200
+ .find({
201
+ where: { workflow_automation_id: workflowAutomation.id },
202
+ });
203
+ const action = actions.map((a) => ({
204
+ actionCategory: a.action_category_id,
205
+ actionCategoryName: a.actioncategoryname,
206
+ actionPayload: a.payload,
207
+ name: a.name,
208
+ status: a.status,
209
+ }));
210
+ const response = {
211
+ ...workflowAutomation,
212
+ event,
213
+ filter,
214
+ action,
215
+ };
216
+ this.logger.debug(`Fetched WorkflowAutomation (id=${id}) with relations`);
217
+ return response;
218
+ }
219
+ async registerScheduleAutomation(workflow, loggedInUser) {
220
+ this.logger.log(`Registering schedule automation for workflow ${workflow.id}`);
221
+ if (!this.workflowScheduleService) {
222
+ this.logger.warn(`WorkflowScheduleService not available. Skipping schedule registration for workflow ${workflow.id}. ` +
223
+ `Make sure WorkflowScheduleModule is imported if you need scheduling functionality.`);
224
+ return;
225
+ }
226
+ const scheduleJson = workflow.schedule;
227
+ if (!scheduleJson) {
228
+ this.logger.warn(`No schedule JSON provided for workflow ${workflow.id}`);
229
+ return;
230
+ }
231
+ const existingSchedule = await this.scheduledWorkflowRepository.findOne({
232
+ where: { workflow_id: workflow.id },
233
+ });
234
+ const cronExpression = await this.generateDailyCron(scheduleJson.fixedTime);
235
+ const payload = {
236
+ id: Number(existingSchedule?.id ?? null),
237
+ workflow_id: workflow.id,
238
+ workflow_name: workflow.name,
239
+ name: scheduleJson.name ?? `Schedule_${workflow.id}`,
240
+ description: scheduleJson.description ?? '',
241
+ cron_expression: cronExpression,
242
+ timezone: scheduleJson.timezone ?? 'Asia/Kolkata',
243
+ start_date: scheduleJson.start_date ?? null,
244
+ end_date: scheduleJson.end_date ?? null,
245
+ max_executions: scheduleJson.max_executions ?? null,
246
+ retry_config: scheduleJson.retry_config ?? {},
247
+ actions: scheduleJson.actions ?? [],
248
+ metadata: scheduleJson.metadata ?? {},
249
+ is_enabled: scheduleJson.is_enabled ?? true,
250
+ enterprise_id: loggedInUser.enterprise_id,
251
+ level_id: loggedInUser.level_id,
252
+ level_type: loggedInUser.level_type
253
+ };
254
+ if (existingSchedule) {
255
+ this.logger.log(`Existing schedule found (id=${existingSchedule.id}), updating...`);
256
+ return await this.workflowScheduleService.updateSchedule(payload, loggedInUser);
257
+ }
258
+ else {
259
+ this.logger.log(`No existing schedule found, creating new one...`);
260
+ return await this.workflowScheduleService.createSchedule(payload, loggedInUser);
261
+ }
262
+ }
263
+ async generateDailyCron(executionTime) {
264
+ const time = moment(executionTime, 'HH:mm');
265
+ if (!time.isValid()) {
266
+ throw new Error('Invalid executionTime format (expected HH:mm)');
267
+ }
268
+ const minute = time.minute();
269
+ const hour = time.hour();
270
+ const cron = `${minute} ${hour} * * *`;
271
+ const cronRegex = /^(\*|([0-5]?\d)) (\*|([01]?\d|2[0-3])) (\*|([01]?\d|2\d|3[01])) (\*|([1-9]|1[0-2])) (\*|([0-6]))$/;
272
+ if (!cronRegex.test(cron)) {
273
+ throw new Error(`Generated cron expression "${cron}" does not match expected format`);
274
+ }
275
+ return cron;
276
+ }
277
+ async updateSequence(body, loggedInUser) {
278
+ if (!Array.isArray(body) || body.length === 0) {
279
+ throw new common_1.BadRequestException('Invalid input. Expected a non-empty array.');
280
+ }
281
+ const results = [];
282
+ for (const item of body) {
283
+ const { id, sequence } = item;
284
+ if (!id || sequence === undefined || sequence === null) {
285
+ results.push({
286
+ id: id || null,
287
+ success: false,
288
+ error: 'Missing id or sequence',
289
+ });
290
+ continue;
291
+ }
292
+ try {
293
+ const existing = await this.wfRepo.findOne({ where: { id } });
294
+ if (!existing) {
295
+ results.push({
296
+ id,
297
+ success: false,
298
+ error: `Workflow with id ${id} not found`,
299
+ });
300
+ continue;
301
+ }
302
+ existing.sequence = Number(sequence);
303
+ existing.modified_by =
304
+ loggedInUser?.id || loggedInUser?.user_id || null;
305
+ existing.modified_date = new Date();
306
+ const saved = await this.wfRepo.save(existing);
307
+ results.push({ id, success: true, result: saved });
308
+ }
309
+ catch (err) {
310
+ results.push({
311
+ id,
312
+ success: false,
313
+ error: err.message || 'Unknown error occurred',
314
+ });
315
+ }
316
+ }
317
+ return {
318
+ updated: results.filter((r) => r.success).length,
319
+ results,
320
+ };
321
+ }
322
+ };
323
+ exports.WorkflowAutomationService = WorkflowAutomationService;
324
+ exports.WorkflowAutomationService = WorkflowAutomationService = WorkflowAutomationService_1 = __decorate([
325
+ (0, common_1.Injectable)(),
326
+ __param(0, (0, typeorm_1.InjectRepository)(workflow_automation_entity_1.WorkflowAutomation)),
327
+ __param(1, (0, typeorm_1.InjectRepository)(workflow_automation_action_entity_1.WorkflowAutomationActionEntity)),
328
+ __param(2, (0, common_1.Inject)('SavedFilterService')),
329
+ __param(4, (0, typeorm_1.InjectRepository)(scheduled_workflow_entity_1.ScheduledWorkflow)),
330
+ __param(5, (0, common_1.Optional)()),
331
+ __param(5, (0, common_1.Inject)((0, common_1.forwardRef)(() => workflow_schedule_service_1.WorkflowScheduleService))),
332
+ __metadata("design:paramtypes", [typeorm_2.Repository,
333
+ typeorm_2.Repository,
334
+ saved_filter_service_1.SavedFilterService,
335
+ typeorm_2.DataSource,
336
+ typeorm_2.Repository,
337
+ workflow_schedule_service_1.WorkflowScheduleService])
338
+ ], WorkflowAutomationService);
339
+ //# sourceMappingURL=workflow-automation.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-automation.service.js","sourceRoot":"","sources":["../../../../src/module/workflow-automation/service/workflow-automation.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,6CAAmD;AACnD,qCAAiD;AACjD,qFAA0E;AAC1E,mGAA6F;AAC7F,gGAAwF;AAExF,oFAAoF;AACpF,uEAA4E;AAC5E,0GAAoG;AACpG,yGAAyG;AACzG,iCAAiC;AAK1B,IAAM,yBAAyB,iCAA/B,MAAM,yBAA0B,SAAQ,+CAAiB;IAE9D,YAEE,MAAuD,EAEvD,UAAuE,EAEvE,kBAAuD,EACtC,UAAsB,EAEvC,2BAA2E,EAG3E,uBAAiE;QAEjE,KAAK,EAAE,CAAC;QAZS,WAAM,GAAN,MAAM,CAAgC;QAEtC,eAAU,GAAV,UAAU,CAA4C;QAEtD,uBAAkB,GAAlB,kBAAkB,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M,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC/C,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;YACrD,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,CAAC,IAAI,CAAC;oBACX,EAAE;oBACF,OAAO,EAAE,KAAK;oBACd,KAAK,EAAE,GAAG,CAAC,OAAO,IAAI,wBAAwB;iBAC/C,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO;YACL,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM;YAChD,OAAO;SACR,CAAC;IACJ,CAAC;CACF,CAAA;AA7cY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;IAIR,WAAA,IAAA,0BAAgB,EAAC,+CAAkB,CAAC,CAAA;IAEpC,WAAA,IAAA,0BAAgB,EAAC,kEAA8B,CAAC,CAAA;IAEhD,WAAA,IAAA,eAAM,EAAC,oBAAoB,CAAC,CAAA;IAG5B,WAAA,IAAA,0BAAgB,EAAC,6CAAiB,CAAC,CAAA;IAEnC,WAAA,IAAA,iBAAQ,GAAE,CAAA;IACV,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mDAAuB,CAAC,CAAC,CAAA;qCATzB,oBAAU;QAEN,oBAAU;QAEF,yCAAkB;QAC1B,oBAAU;QAEO,oBAAU;QAGd,mDAAuB;GAdxD,yBAAyB,CA6crC"}
@@ -0,0 +1,2 @@
1
+ export declare class WorkflowAutomationModule {
2
+ }
@@ -0,0 +1,68 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.WorkflowAutomationModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const typeorm_1 = require("@nestjs/typeorm");
12
+ const core_1 = require("@nestjs/core");
13
+ const workflow_automation_entity_1 = require("./entity/workflow-automation.entity");
14
+ const workflow_automation_controller_1 = require("./controller/workflow-automation.controller");
15
+ const workflow_automation_engine_service_1 = require("./service/workflow-automation-engine.service");
16
+ const filter_module_1 = require("../filter/filter.module");
17
+ const workflow_automation_service_1 = require("./service/workflow-automation.service");
18
+ const workflow_automation_action_entity_1 = require("./entity/workflow-automation-action.entity");
19
+ const entity_module_1 = require("../meta/entity.module");
20
+ const action_registery_service_1 = require("./service/action-registery.service");
21
+ const schedule_handler_service_1 = require("./service/schedule-handler.service");
22
+ const scheduled_workflow_entity_1 = require("../workflow-schedule/entities/scheduled-workflow.entity");
23
+ const workflow_execution_log_entity_1 = require("../workflow-schedule/entities/workflow-execution-log.entity");
24
+ const entity_master_entity_1 = require("../meta/entity/entity-master.entity");
25
+ const list_master_entity_1 = require("../listmaster/entity/list-master.entity");
26
+ const action_category_entity_1 = require("../workflow/entity/action-category.entity");
27
+ const workflow_schedule_module_1 = require("../workflow-schedule/workflow-schedule.module");
28
+ let WorkflowAutomationModule = class WorkflowAutomationModule {
29
+ };
30
+ exports.WorkflowAutomationModule = WorkflowAutomationModule;
31
+ exports.WorkflowAutomationModule = WorkflowAutomationModule = __decorate([
32
+ (0, common_1.Module)({
33
+ imports: [
34
+ typeorm_1.TypeOrmModule.forFeature([
35
+ workflow_automation_entity_1.WorkflowAutomation,
36
+ workflow_automation_action_entity_1.WorkflowAutomationActionEntity,
37
+ scheduled_workflow_entity_1.ScheduledWorkflow,
38
+ workflow_execution_log_entity_1.WorkflowExecutionLog,
39
+ entity_master_entity_1.EntityMaster,
40
+ list_master_entity_1.ListMasterData,
41
+ action_category_entity_1.ActionCategory
42
+ ]),
43
+ (0, common_1.forwardRef)(() => filter_module_1.FilterModule),
44
+ (0, common_1.forwardRef)(() => entity_module_1.EntityModule),
45
+ (0, common_1.forwardRef)(() => workflow_schedule_module_1.WorkflowScheduleModule),
46
+ core_1.DiscoveryModule,
47
+ ],
48
+ providers: [
49
+ workflow_automation_engine_service_1.WorkflowAutomationEngineService,
50
+ {
51
+ provide: 'WorkflowAutomationService',
52
+ useClass: workflow_automation_service_1.WorkflowAutomationService,
53
+ },
54
+ {
55
+ provide: 'ScheduleHandlerService',
56
+ useClass: schedule_handler_service_1.ScheduleHandlerService,
57
+ },
58
+ action_registery_service_1.ActionRegistryService,
59
+ ],
60
+ exports: [
61
+ workflow_automation_engine_service_1.WorkflowAutomationEngineService,
62
+ 'WorkflowAutomationService',
63
+ 'ScheduleHandlerService',
64
+ ],
65
+ controllers: [workflow_automation_controller_1.WorkflowAutomationController],
66
+ })
67
+ ], WorkflowAutomationModule);
68
+ //# sourceMappingURL=workflow-automation.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-automation.module.js","sourceRoot":"","sources":["../../../src/module/workflow-automation/workflow-automation.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,uCAA+C;AAC/C,oFAAyE;AACzE,gGAA2F;AAC3F,qGAA+F;AAC/F,2DAAuD;AACvD,uFAAkF;AAClF,kGAA4F;AAC5F,yDAAqD;AACrD,iFAA2E;AAC3E,iFAA4E;AAC5E,uGAA4F;AAC5F,+GAAmG;AACnG,8EAAmE;AACnE,gFAAyE;AACzE,sFAA2E;AAC3E,4FAAuF;AAqChF,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAI,CAAA;AAA5B,4DAAwB;mCAAxB,wBAAwB;IAnCpC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,+CAAkB;gBAClB,kEAA8B;gBAC9B,6CAAiB;gBACjB,oDAAoB;gBACpB,mCAAY;gBACZ,mCAAc;gBACd,uCAAc;aACf,CAAC;YACF,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iDAAsB,CAAC;YACxC,sBAAe;SAChB;QACD,SAAS,EAAE;YACT,oEAA+B;YAC/B;gBACE,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,uDAAyB;aACpC;YACD;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,iDAAsB;aACjC;YACD,gDAAqB;SACtB;QACD,OAAO,EAAE;YACP,oEAA+B;YAC/B,2BAA2B;YAC3B,wBAAwB;SACzB;QACD,WAAW,EAAE,CAAC,6DAA4B,CAAC;KAC5C,CAAC;GACW,wBAAwB,CAAI"}
@@ -0,0 +1,27 @@
1
+ export declare const SCHEDULED_WORKFLOW = "WFSC";
2
+ export declare const WORKFLOW_EXECUTION_LOG = "WFEL";
3
+ export declare const WORKFLOW_SCHEDULE_QUEUE = "workflow-schedule";
4
+ export declare const EXECUTE_SCHEDULED_WORKFLOW_JOB = "execute-scheduled-workflow";
5
+ export declare const SCHEDULE_STATUS_ACTIVE = "ACTIVE";
6
+ export declare const SCHEDULE_STATUS_PAUSED = "PAUSED";
7
+ export declare const SCHEDULE_STATUS_INACTIVE = "INACTIVE";
8
+ export declare const SCHEDULE_STATUS_EXPIRED = "EXPIRED";
9
+ export declare const EXECUTION_STATUS_PENDING = "PENDING";
10
+ export declare const EXECUTION_STATUS_RUNNING = "RUNNING";
11
+ export declare const EXECUTION_STATUS_COMPLETED = "COMPLETED";
12
+ export declare const EXECUTION_STATUS_FAILED = "FAILED";
13
+ export declare const EXECUTION_STATUS_PARTIAL = "PARTIAL";
14
+ export declare const WORKFLOW_TYPE_AUTOMATED = "AUTOMATED";
15
+ export declare const WORKFLOW_TYPE_MANUAL = "MANUAL";
16
+ export declare const WORKFLOW_TYPE_SCHEDULED = "SCHEDULED";
17
+ export declare const ACTION_TYPE_SEND_EMAIL = "SEND_EMAIL";
18
+ export declare const ACTION_TYPE_UPDATE_RECORDS = "UPDATE_RECORDS";
19
+ export declare const ACTION_TYPE_CREATE_TASK = "CREATE_TASK";
20
+ export declare const ACTION_TYPE_SEND_NOTIFICATION = "SEND_NOTIFICATION";
21
+ export declare const DEFAULT_BATCH_SIZE = 100;
22
+ export declare const DEFAULT_MAX_RETRIES = 3;
23
+ export declare const DEFAULT_RETRY_DELAY = 5000;
24
+ export declare const DEFAULT_BACKOFF_MULTIPLIER = 2;
25
+ export declare const DEFAULT_TIMEZONE = "Asia/Kolkata";
26
+ export declare const SECONDS_IN_MINUTE = 60;
27
+ export declare const MILLISECONDS_IN_SECOND = 1000;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MILLISECONDS_IN_SECOND = exports.SECONDS_IN_MINUTE = exports.DEFAULT_TIMEZONE = exports.DEFAULT_BACKOFF_MULTIPLIER = exports.DEFAULT_RETRY_DELAY = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_BATCH_SIZE = exports.ACTION_TYPE_SEND_NOTIFICATION = exports.ACTION_TYPE_CREATE_TASK = exports.ACTION_TYPE_UPDATE_RECORDS = exports.ACTION_TYPE_SEND_EMAIL = exports.WORKFLOW_TYPE_SCHEDULED = exports.WORKFLOW_TYPE_MANUAL = exports.WORKFLOW_TYPE_AUTOMATED = exports.EXECUTION_STATUS_PARTIAL = exports.EXECUTION_STATUS_FAILED = exports.EXECUTION_STATUS_COMPLETED = exports.EXECUTION_STATUS_RUNNING = exports.EXECUTION_STATUS_PENDING = exports.SCHEDULE_STATUS_EXPIRED = exports.SCHEDULE_STATUS_INACTIVE = exports.SCHEDULE_STATUS_PAUSED = exports.SCHEDULE_STATUS_ACTIVE = exports.EXECUTE_SCHEDULED_WORKFLOW_JOB = exports.WORKFLOW_SCHEDULE_QUEUE = exports.WORKFLOW_EXECUTION_LOG = exports.SCHEDULED_WORKFLOW = void 0;
4
+ exports.SCHEDULED_WORKFLOW = 'WFSC';
5
+ exports.WORKFLOW_EXECUTION_LOG = 'WFEL';
6
+ exports.WORKFLOW_SCHEDULE_QUEUE = 'workflow-schedule';
7
+ exports.EXECUTE_SCHEDULED_WORKFLOW_JOB = 'execute-scheduled-workflow';
8
+ exports.SCHEDULE_STATUS_ACTIVE = 'ACTIVE';
9
+ exports.SCHEDULE_STATUS_PAUSED = 'PAUSED';
10
+ exports.SCHEDULE_STATUS_INACTIVE = 'INACTIVE';
11
+ exports.SCHEDULE_STATUS_EXPIRED = 'EXPIRED';
12
+ exports.EXECUTION_STATUS_PENDING = 'PENDING';
13
+ exports.EXECUTION_STATUS_RUNNING = 'RUNNING';
14
+ exports.EXECUTION_STATUS_COMPLETED = 'COMPLETED';
15
+ exports.EXECUTION_STATUS_FAILED = 'FAILED';
16
+ exports.EXECUTION_STATUS_PARTIAL = 'PARTIAL';
17
+ exports.WORKFLOW_TYPE_AUTOMATED = 'AUTOMATED';
18
+ exports.WORKFLOW_TYPE_MANUAL = 'MANUAL';
19
+ exports.WORKFLOW_TYPE_SCHEDULED = 'SCHEDULED';
20
+ exports.ACTION_TYPE_SEND_EMAIL = 'SEND_EMAIL';
21
+ exports.ACTION_TYPE_UPDATE_RECORDS = 'UPDATE_RECORDS';
22
+ exports.ACTION_TYPE_CREATE_TASK = 'CREATE_TASK';
23
+ exports.ACTION_TYPE_SEND_NOTIFICATION = 'SEND_NOTIFICATION';
24
+ exports.DEFAULT_BATCH_SIZE = 100;
25
+ exports.DEFAULT_MAX_RETRIES = 3;
26
+ exports.DEFAULT_RETRY_DELAY = 5000;
27
+ exports.DEFAULT_BACKOFF_MULTIPLIER = 2;
28
+ exports.DEFAULT_TIMEZONE = 'Asia/Kolkata';
29
+ exports.SECONDS_IN_MINUTE = 60;
30
+ exports.MILLISECONDS_IN_SECOND = 1000;
31
+ //# sourceMappingURL=schedule.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedule.constants.js","sourceRoot":"","sources":["../../../../src/module/workflow-schedule/constants/schedule.constants.ts"],"names":[],"mappings":";;;AAKa,QAAA,kBAAkB,GAAG,MAAM,CAAC;AAC5B,QAAA,sBAAsB,GAAG,MAAM,CAAC;AAGhC,QAAA,uBAAuB,GAAG,mBAAmB,CAAC;AAG9C,QAAA,8BAA8B,GAAG,4BAA4B,CAAC;AAG9D,QAAA,sBAAsB,GAAG,QAAQ,CAAC;AAClC,QAAA,sBAAsB,GAAG,QAAQ,CAAC;AAClC,QAAA,wBAAwB,GAAG,UAAU,CAAC;AACtC,QAAA,uBAAuB,GAAG,SAAS,CAAC;AAGpC,QAAA,wBAAwB,GAAG,SAAS,CAAC;AACrC,QAAA,wBAAwB,GAAG,SAAS,CAAC;AACrC,QAAA,0BAA0B,GAAG,WAAW,CAAC;AACzC,QAAA,uBAAuB,GAAG,QAAQ,CAAC;AACnC,QAAA,wBAAwB,GAAG,SAAS,CAAC;AAGrC,QAAA,uBAAuB,GAAG,WAAW,CAAC;AACtC,QAAA,oBAAoB,GAAG,QAAQ,CAAC;AAChC,QAAA,uBAAuB,GAAG,WAAW,CAAC;AAGtC,QAAA,sBAAsB,GAAG,YAAY,CAAC;AACtC,QAAA,0BAA0B,GAAG,gBAAgB,CAAC;AAC9C,QAAA,uBAAuB,GAAG,aAAa,CAAC;AACxC,QAAA,6BAA6B,GAAG,mBAAmB,CAAC;AAGpD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,CAAC,CAAC;AACxB,QAAA,mBAAmB,GAAG,IAAI,CAAC;AAC3B,QAAA,0BAA0B,GAAG,CAAC,CAAC;AAC/B,QAAA,gBAAgB,GAAG,cAAc,CAAC;AAGlC,QAAA,iBAAiB,GAAG,EAAE,CAAC;AACvB,QAAA,sBAAsB,GAAG,IAAI,CAAC"}
@@ -0,0 +1,81 @@
1
+ import { Request } from 'express';
2
+ import { WorkflowScheduleService } from '../service/workflow-schedule.service';
3
+ import { CreateScheduleDto } from '../dto/create-schedule.dto';
4
+ import { UpdateScheduleDto } from '../dto/update-schedule.dto';
5
+ import { GetExecutionLogsDto } from '../dto/get-execution-logs.dto';
6
+ export declare class WorkflowScheduleController {
7
+ private readonly workflowScheduleService;
8
+ constructor(workflowScheduleService: WorkflowScheduleService);
9
+ createSchedule(createScheduleDto: CreateScheduleDto, req: Request & {
10
+ user: any;
11
+ }): Promise<{
12
+ success: boolean;
13
+ message: string;
14
+ data: import("../entities/scheduled-workflow.entity").ScheduledWorkflow;
15
+ }>;
16
+ updateSchedule(updateScheduleDto: UpdateScheduleDto, req: Request & {
17
+ user: any;
18
+ }): Promise<{
19
+ success: boolean;
20
+ message: string;
21
+ data: import("../entities/scheduled-workflow.entity").ScheduledWorkflow;
22
+ }>;
23
+ getScheduleById(id: number, req: Request & {
24
+ user: any;
25
+ }): Promise<{
26
+ success: boolean;
27
+ data: import("../entities/scheduled-workflow.entity").ScheduledWorkflow;
28
+ }>;
29
+ getAllSchedules(workflow_id: string | undefined, schedule_status: string | undefined, is_enabled: string | undefined, page: string | undefined, size: string | undefined, req: Request & {
30
+ user: any;
31
+ }): Promise<{
32
+ data: import("../entities/scheduled-workflow.entity").ScheduledWorkflow[];
33
+ total: number;
34
+ page: number;
35
+ size: number;
36
+ success: boolean;
37
+ }>;
38
+ pauseSchedule(id: number, req: Request & {
39
+ user: any;
40
+ }): Promise<{
41
+ success: boolean;
42
+ message: string;
43
+ data: import("../entities/scheduled-workflow.entity").ScheduledWorkflow;
44
+ }>;
45
+ resumeSchedule(id: number, req: Request & {
46
+ user: any;
47
+ }): Promise<{
48
+ success: boolean;
49
+ message: string;
50
+ data: import("../entities/scheduled-workflow.entity").ScheduledWorkflow;
51
+ }>;
52
+ deleteSchedule(id: number, req: Request & {
53
+ user: any;
54
+ }): Promise<{
55
+ success: boolean;
56
+ message: string;
57
+ }>;
58
+ triggerManualExecution(id: number, metadata: Record<string, any>, req: Request & {
59
+ user: any;
60
+ }): Promise<{
61
+ success: boolean;
62
+ message: string;
63
+ data: {
64
+ executionLogId: number;
65
+ jobId: string;
66
+ };
67
+ }>;
68
+ getExecutionLogs(getExecutionLogsDto: GetExecutionLogsDto, req: Request & {
69
+ user: any;
70
+ }): Promise<{
71
+ data: import("../entities/workflow-execution-log.entity").WorkflowExecutionLog[];
72
+ total: number;
73
+ page: number;
74
+ size: number;
75
+ success: boolean;
76
+ }>;
77
+ getExecutionStats(id: number): Promise<{
78
+ success: boolean;
79
+ data: any;
80
+ }>;
81
+ }