rez_core 4.0.106 → 4.0.107

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 (969) hide show
  1. package/package.json +1 -1
  2. package/src/module/filter/service/filter.service.ts +36 -13
  3. package/dist/app.controller.d.ts +0 -6
  4. package/dist/app.controller.js +0 -34
  5. package/dist/app.controller.js.map +0 -1
  6. package/dist/app.module.d.ts +0 -2
  7. package/dist/app.module.js +0 -62
  8. package/dist/app.module.js.map +0 -1
  9. package/dist/app.service.d.ts +0 -3
  10. package/dist/app.service.js +0 -20
  11. package/dist/app.service.js.map +0 -1
  12. package/dist/config/config.module.d.ts +0 -2
  13. package/dist/config/config.module.js +0 -29
  14. package/dist/config/config.module.js.map +0 -1
  15. package/dist/config/database.config.d.ts +0 -7
  16. package/dist/config/database.config.js +0 -39
  17. package/dist/config/database.config.js.map +0 -1
  18. package/dist/constant/global.constant.d.ts +0 -50
  19. package/dist/constant/global.constant.js +0 -54
  20. package/dist/constant/global.constant.js.map +0 -1
  21. package/dist/core.module.d.ts +0 -4
  22. package/dist/core.module.js +0 -79
  23. package/dist/core.module.js.map +0 -1
  24. package/dist/decorators/roles.decorator.d.ts +0 -1
  25. package/dist/decorators/roles.decorator.js +0 -7
  26. package/dist/decorators/roles.decorator.js.map +0 -1
  27. package/dist/dtos/response.d.ts +0 -5
  28. package/dist/dtos/response.dto.d.ts +0 -5
  29. package/dist/dtos/response.dto.js +0 -3
  30. package/dist/dtos/response.dto.js.map +0 -1
  31. package/dist/dtos/response.js +0 -3
  32. package/dist/dtos/response.js.map +0 -1
  33. package/dist/index.d.ts +0 -1
  34. package/dist/index.js +0 -18
  35. package/dist/index.js.map +0 -1
  36. package/dist/main.d.ts +0 -1
  37. package/dist/main.js +0 -25
  38. package/dist/main.js.map +0 -1
  39. package/dist/module/auth/auth.module.d.ts +0 -2
  40. package/dist/module/auth/auth.module.js +0 -57
  41. package/dist/module/auth/auth.module.js.map +0 -1
  42. package/dist/module/auth/controller/auth.controller.d.ts +0 -5
  43. package/dist/module/auth/controller/auth.controller.js +0 -25
  44. package/dist/module/auth/controller/auth.controller.js.map +0 -1
  45. package/dist/module/auth/guards/google-auth.guard.d.ts +0 -6
  46. package/dist/module/auth/guards/google-auth.guard.js +0 -21
  47. package/dist/module/auth/guards/google-auth.guard.js.map +0 -1
  48. package/dist/module/auth/guards/jwt.guard.d.ts +0 -10
  49. package/dist/module/auth/guards/jwt.guard.js +0 -36
  50. package/dist/module/auth/guards/jwt.guard.js.map +0 -1
  51. package/dist/module/auth/guards/role.guard.d.ts +0 -9
  52. package/dist/module/auth/guards/role.guard.js +0 -59
  53. package/dist/module/auth/guards/role.guard.js.map +0 -1
  54. package/dist/module/auth/services/auth.service.d.ts +0 -14
  55. package/dist/module/auth/services/auth.service.js +0 -39
  56. package/dist/module/auth/services/auth.service.js.map +0 -1
  57. package/dist/module/auth/services/jwt.service.d.ts +0 -6
  58. package/dist/module/auth/services/jwt.service.js +0 -28
  59. package/dist/module/auth/services/jwt.service.js.map +0 -1
  60. package/dist/module/auth/strategies/google.strategy.d.ts +0 -10
  61. package/dist/module/auth/strategies/google.strategy.js +0 -59
  62. package/dist/module/auth/strategies/google.strategy.js.map +0 -1
  63. package/dist/module/auth/strategies/jwt.strategy.d.ts +0 -19
  64. package/dist/module/auth/strategies/jwt.strategy.js +0 -46
  65. package/dist/module/auth/strategies/jwt.strategy.js.map +0 -1
  66. package/dist/module/auth/strategies/local.strategy.d.ts +0 -7
  67. package/dist/module/auth/strategies/local.strategy.js +0 -30
  68. package/dist/module/auth/strategies/local.strategy.js.map +0 -1
  69. package/dist/module/dashboard/controller/dashboard.controller.d.ts +0 -33
  70. package/dist/module/dashboard/controller/dashboard.controller.js +0 -55
  71. package/dist/module/dashboard/controller/dashboard.controller.js.map +0 -1
  72. package/dist/module/dashboard/dashboard.module.d.ts +0 -2
  73. package/dist/module/dashboard/dashboard.module.js +0 -34
  74. package/dist/module/dashboard/dashboard.module.js.map +0 -1
  75. package/dist/module/dashboard/entity/dashboard_page_data.entity.d.ts +0 -10
  76. package/dist/module/dashboard/entity/dashboard_page_data.entity.js +0 -50
  77. package/dist/module/dashboard/entity/dashboard_page_data.entity.js.map +0 -1
  78. package/dist/module/dashboard/entity/widget_master.entity.d.ts +0 -7
  79. package/dist/module/dashboard/entity/widget_master.entity.js +0 -38
  80. package/dist/module/dashboard/entity/widget_master.entity.js.map +0 -1
  81. package/dist/module/dashboard/repository/dashboard.repository.d.ts +0 -10
  82. package/dist/module/dashboard/repository/dashboard.repository.js +0 -50
  83. package/dist/module/dashboard/repository/dashboard.repository.js.map +0 -1
  84. package/dist/module/dashboard/service/dashboard.service.d.ts +0 -35
  85. package/dist/module/dashboard/service/dashboard.service.js +0 -62
  86. package/dist/module/dashboard/service/dashboard.service.js.map +0 -1
  87. package/dist/module/dev/dev.module.d.ts +0 -2
  88. package/dist/module/dev/dev.module.js +0 -25
  89. package/dist/module/dev/dev.module.js.map +0 -1
  90. package/dist/module/dev/service/dev.service.d.ts +0 -5
  91. package/dist/module/dev/service/dev.service.js +0 -25
  92. package/dist/module/dev/service/dev.service.js.map +0 -1
  93. package/dist/module/enterprise/controller/organization.controller.d.ts +0 -14
  94. package/dist/module/enterprise/controller/organization.controller.js +0 -59
  95. package/dist/module/enterprise/controller/organization.controller.js.map +0 -1
  96. package/dist/module/enterprise/enterprise.module.d.ts +0 -2
  97. package/dist/module/enterprise/enterprise.module.js +0 -43
  98. package/dist/module/enterprise/enterprise.module.js.map +0 -1
  99. package/dist/module/enterprise/entity/enterprise.entity.d.ts +0 -13
  100. package/dist/module/enterprise/entity/enterprise.entity.js +0 -64
  101. package/dist/module/enterprise/entity/enterprise.entity.js.map +0 -1
  102. package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +0 -5
  103. package/dist/module/enterprise/entity/organization-app-mapping.entity.js +0 -32
  104. package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +0 -1
  105. package/dist/module/enterprise/entity/organization.entity.d.ts +0 -30
  106. package/dist/module/enterprise/entity/organization.entity.js +0 -136
  107. package/dist/module/enterprise/entity/organization.entity.js.map +0 -1
  108. package/dist/module/enterprise/repository/enterprise.repository.d.ts +0 -8
  109. package/dist/module/enterprise/repository/enterprise.repository.js +0 -48
  110. package/dist/module/enterprise/repository/enterprise.repository.js.map +0 -1
  111. package/dist/module/enterprise/repository/organization.repository.d.ts +0 -8
  112. package/dist/module/enterprise/repository/organization.repository.js +0 -41
  113. package/dist/module/enterprise/repository/organization.repository.js.map +0 -1
  114. package/dist/module/enterprise/repository/school.repository.d.ts +0 -8
  115. package/dist/module/enterprise/repository/school.repository.js +0 -240
  116. package/dist/module/enterprise/repository/school.repository.js.map +0 -1
  117. package/dist/module/enterprise/service/brand.service.d.ts +0 -3
  118. package/dist/module/enterprise/service/brand.service.js +0 -18
  119. package/dist/module/enterprise/service/brand.service.js.map +0 -1
  120. package/dist/module/enterprise/service/enterprise.service.d.ts +0 -8
  121. package/dist/module/enterprise/service/enterprise.service.js +0 -31
  122. package/dist/module/enterprise/service/enterprise.service.js.map +0 -1
  123. package/dist/module/enterprise/service/organization-app-mapping.service.d.ts +0 -2
  124. package/dist/module/enterprise/service/organization-app-mapping.service.js +0 -17
  125. package/dist/module/enterprise/service/organization-app-mapping.service.js.map +0 -1
  126. package/dist/module/enterprise/service/organization.service.d.ts +0 -19
  127. package/dist/module/enterprise/service/organization.service.js +0 -121
  128. package/dist/module/enterprise/service/organization.service.js.map +0 -1
  129. package/dist/module/filter/controller/filter.controller.d.ts +0 -39
  130. package/dist/module/filter/controller/filter.controller.js +0 -91
  131. package/dist/module/filter/controller/filter.controller.js.map +0 -1
  132. package/dist/module/filter/dto/filter-request.dto.d.ts +0 -35
  133. package/dist/module/filter/dto/filter-request.dto.js +0 -3
  134. package/dist/module/filter/dto/filter-request.dto.js.map +0 -1
  135. package/dist/module/filter/entity/saved-filter-detail.entity.d.ts +0 -14
  136. package/dist/module/filter/entity/saved-filter-detail.entity.js +0 -67
  137. package/dist/module/filter/entity/saved-filter-detail.entity.js.map +0 -1
  138. package/dist/module/filter/entity/saved-filter-master.entity.d.ts +0 -8
  139. package/dist/module/filter/entity/saved-filter-master.entity.js +0 -43
  140. package/dist/module/filter/entity/saved-filter-master.entity.js.map +0 -1
  141. package/dist/module/filter/filter.module.d.ts +0 -2
  142. package/dist/module/filter/filter.module.js +0 -44
  143. package/dist/module/filter/filter.module.js.map +0 -1
  144. package/dist/module/filter/repository/saved-filter.repository.d.ts +0 -40
  145. package/dist/module/filter/repository/saved-filter.repository.js +0 -144
  146. package/dist/module/filter/repository/saved-filter.repository.js.map +0 -1
  147. package/dist/module/filter/service/filter-evaluator.service.d.ts +0 -9
  148. package/dist/module/filter/service/filter-evaluator.service.js +0 -62
  149. package/dist/module/filter/service/filter-evaluator.service.js.map +0 -1
  150. package/dist/module/filter/service/filter.service.d.ts +0 -70
  151. package/dist/module/filter/service/filter.service.js +0 -686
  152. package/dist/module/filter/service/filter.service.js.map +0 -1
  153. package/dist/module/filter/service/saved-filter.service.d.ts +0 -30
  154. package/dist/module/filter/service/saved-filter.service.js +0 -125
  155. package/dist/module/filter/service/saved-filter.service.js.map +0 -1
  156. package/dist/module/ics/controller/ics.controller.d.ts +0 -8
  157. package/dist/module/ics/controller/ics.controller.js +0 -45
  158. package/dist/module/ics/controller/ics.controller.js.map +0 -1
  159. package/dist/module/ics/dto/ics.dto.d.ts +0 -17
  160. package/dist/module/ics/dto/ics.dto.js +0 -73
  161. package/dist/module/ics/dto/ics.dto.js.map +0 -1
  162. package/dist/module/ics/ics.module.d.ts +0 -2
  163. package/dist/module/ics/ics.module.js +0 -26
  164. package/dist/module/ics/ics.module.js.map +0 -1
  165. package/dist/module/ics/service/ics.service.d.ts +0 -4
  166. package/dist/module/ics/service/ics.service.js +0 -61
  167. package/dist/module/ics/service/ics.service.js.map +0 -1
  168. package/dist/module/integration/controller/calender-event.controller.d.ts +0 -7
  169. package/dist/module/integration/controller/calender-event.controller.js +0 -51
  170. package/dist/module/integration/controller/calender-event.controller.js.map +0 -1
  171. package/dist/module/integration/controller/integration.controller.d.ts +0 -165
  172. package/dist/module/integration/controller/integration.controller.js +0 -697
  173. package/dist/module/integration/controller/integration.controller.js.map +0 -1
  174. package/dist/module/integration/controller/wrapper.controller.d.ts +0 -23
  175. package/dist/module/integration/controller/wrapper.controller.js +0 -52
  176. package/dist/module/integration/controller/wrapper.controller.js.map +0 -1
  177. package/dist/module/integration/dto/create-config.dto.d.ts +0 -217
  178. package/dist/module/integration/dto/create-config.dto.js +0 -495
  179. package/dist/module/integration/dto/create-config.dto.js.map +0 -1
  180. package/dist/module/integration/entity/integration-config.entity.d.ts +0 -54
  181. package/dist/module/integration/entity/integration-config.entity.js +0 -78
  182. package/dist/module/integration/entity/integration-config.entity.js.map +0 -1
  183. package/dist/module/integration/entity/integration-entity-mapper.entity.d.ts +0 -6
  184. package/dist/module/integration/entity/integration-entity-mapper.entity.js +0 -33
  185. package/dist/module/integration/entity/integration-entity-mapper.entity.js.map +0 -1
  186. package/dist/module/integration/entity/integration-source.entity.d.ts +0 -7
  187. package/dist/module/integration/entity/integration-source.entity.js +0 -37
  188. package/dist/module/integration/entity/integration-source.entity.js.map +0 -1
  189. package/dist/module/integration/entity/user-integration.entity.d.ts +0 -23
  190. package/dist/module/integration/entity/user-integration.entity.js +0 -70
  191. package/dist/module/integration/entity/user-integration.entity.js.map +0 -1
  192. package/dist/module/integration/examples/usage.example.d.ts +0 -16
  193. package/dist/module/integration/examples/usage.example.js +0 -217
  194. package/dist/module/integration/examples/usage.example.js.map +0 -1
  195. package/dist/module/integration/factories/base.factory.d.ts +0 -9
  196. package/dist/module/integration/factories/base.factory.js +0 -3
  197. package/dist/module/integration/factories/base.factory.js.map +0 -1
  198. package/dist/module/integration/factories/email.factory.d.ts +0 -17
  199. package/dist/module/integration/factories/email.factory.js +0 -55
  200. package/dist/module/integration/factories/email.factory.js.map +0 -1
  201. package/dist/module/integration/factories/integration.factory.d.ts +0 -33
  202. package/dist/module/integration/factories/integration.factory.js +0 -104
  203. package/dist/module/integration/factories/integration.factory.js.map +0 -1
  204. package/dist/module/integration/factories/sms.factory.d.ts +0 -17
  205. package/dist/module/integration/factories/sms.factory.js +0 -58
  206. package/dist/module/integration/factories/sms.factory.js.map +0 -1
  207. package/dist/module/integration/factories/telephone.factory.d.ts +0 -15
  208. package/dist/module/integration/factories/telephone.factory.js +0 -49
  209. package/dist/module/integration/factories/telephone.factory.js.map +0 -1
  210. package/dist/module/integration/factories/whatsapp.factory.d.ts +0 -19
  211. package/dist/module/integration/factories/whatsapp.factory.js +0 -63
  212. package/dist/module/integration/factories/whatsapp.factory.js.map +0 -1
  213. package/dist/module/integration/integration.module.d.ts +0 -2
  214. package/dist/module/integration/integration.module.js +0 -96
  215. package/dist/module/integration/integration.module.js.map +0 -1
  216. package/dist/module/integration/service/calendar-event.service.d.ts +0 -8
  217. package/dist/module/integration/service/calendar-event.service.js +0 -101
  218. package/dist/module/integration/service/calendar-event.service.js.map +0 -1
  219. package/dist/module/integration/service/integration-entity-mapper.service.d.ts +0 -7
  220. package/dist/module/integration/service/integration-entity-mapper.service.js +0 -36
  221. package/dist/module/integration/service/integration-entity-mapper.service.js.map +0 -1
  222. package/dist/module/integration/service/integration-queue.service.d.ts +0 -40
  223. package/dist/module/integration/service/integration-queue.service.js +0 -147
  224. package/dist/module/integration/service/integration-queue.service.js.map +0 -1
  225. package/dist/module/integration/service/integration.service.d.ts +0 -205
  226. package/dist/module/integration/service/integration.service.js +0 -1587
  227. package/dist/module/integration/service/integration.service.js.map +0 -1
  228. package/dist/module/integration/service/oauth.service.d.ts +0 -18
  229. package/dist/module/integration/service/oauth.service.js +0 -190
  230. package/dist/module/integration/service/oauth.service.js.map +0 -1
  231. package/dist/module/integration/service/wrapper.service.d.ts +0 -36
  232. package/dist/module/integration/service/wrapper.service.js +0 -298
  233. package/dist/module/integration/service/wrapper.service.js.map +0 -1
  234. package/dist/module/integration/strategies/email/gmail-api.strategy.d.ts +0 -13
  235. package/dist/module/integration/strategies/email/gmail-api.strategy.js +0 -195
  236. package/dist/module/integration/strategies/email/gmail-api.strategy.js.map +0 -1
  237. package/dist/module/integration/strategies/email/outlook-api.strategy.d.ts +0 -5
  238. package/dist/module/integration/strategies/email/outlook-api.strategy.js +0 -44
  239. package/dist/module/integration/strategies/email/outlook-api.strategy.js.map +0 -1
  240. package/dist/module/integration/strategies/email/outlook.strategy.d.ts +0 -5
  241. package/dist/module/integration/strategies/email/outlook.strategy.js +0 -64
  242. package/dist/module/integration/strategies/email/outlook.strategy.js.map +0 -1
  243. package/dist/module/integration/strategies/email/sendgrid-api.strategy.d.ts +0 -22
  244. package/dist/module/integration/strategies/email/sendgrid-api.strategy.js +0 -203
  245. package/dist/module/integration/strategies/email/sendgrid-api.strategy.js.map +0 -1
  246. package/dist/module/integration/strategies/integration.strategy.d.ts +0 -31
  247. package/dist/module/integration/strategies/integration.strategy.js +0 -40
  248. package/dist/module/integration/strategies/integration.strategy.js.map +0 -1
  249. package/dist/module/integration/strategies/sms/gupshup-sms.strategy.d.ts +0 -9
  250. package/dist/module/integration/strategies/sms/gupshup-sms.strategy.js +0 -104
  251. package/dist/module/integration/strategies/sms/gupshup-sms.strategy.js.map +0 -1
  252. package/dist/module/integration/strategies/sms/msg91-sms.strategy.d.ts +0 -9
  253. package/dist/module/integration/strategies/sms/msg91-sms.strategy.js +0 -113
  254. package/dist/module/integration/strategies/sms/msg91-sms.strategy.js.map +0 -1
  255. package/dist/module/integration/strategies/sms/tubelight-sms.strategy.d.ts +0 -9
  256. package/dist/module/integration/strategies/sms/tubelight-sms.strategy.js +0 -109
  257. package/dist/module/integration/strategies/sms/tubelight-sms.strategy.js.map +0 -1
  258. package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.d.ts +0 -22
  259. package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.js +0 -170
  260. package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.js.map +0 -1
  261. package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.d.ts +0 -24
  262. package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.js +0 -152
  263. package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.js.map +0 -1
  264. package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.d.ts +0 -19
  265. package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.js +0 -257
  266. package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.js.map +0 -1
  267. package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.d.ts +0 -33
  268. package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js +0 -256
  269. package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js.map +0 -1
  270. package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.d.ts +0 -20
  271. package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.js +0 -264
  272. package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.js.map +0 -1
  273. package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.d.ts +0 -5
  274. package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.js +0 -57
  275. package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.js.map +0 -1
  276. package/dist/module/layout/controller/layout.controller.d.ts +0 -11
  277. package/dist/module/layout/controller/layout.controller.js +0 -59
  278. package/dist/module/layout/controller/layout.controller.js.map +0 -1
  279. package/dist/module/layout/dto/header.dto.d.ts +0 -0
  280. package/dist/module/layout/dto/header.dto.js +0 -1
  281. package/dist/module/layout/dto/header.dto.js.map +0 -1
  282. package/dist/module/layout/entity/header-items.entity.d.ts +0 -10
  283. package/dist/module/layout/entity/header-items.entity.js +0 -52
  284. package/dist/module/layout/entity/header-items.entity.js.map +0 -1
  285. package/dist/module/layout/entity/header-section.entity.d.ts +0 -7
  286. package/dist/module/layout/entity/header-section.entity.js +0 -40
  287. package/dist/module/layout/entity/header-section.entity.js.map +0 -1
  288. package/dist/module/layout/layout.module.d.ts +0 -2
  289. package/dist/module/layout/layout.module.js +0 -34
  290. package/dist/module/layout/layout.module.js.map +0 -1
  291. package/dist/module/layout/repository/header-items.repository.d.ts +0 -7
  292. package/dist/module/layout/repository/header-items.repository.js +0 -36
  293. package/dist/module/layout/repository/header-items.repository.js.map +0 -1
  294. package/dist/module/layout/repository/header-section.repository.d.ts +0 -8
  295. package/dist/module/layout/repository/header-section.repository.js +0 -39
  296. package/dist/module/layout/repository/header-section.repository.js.map +0 -1
  297. package/dist/module/layout/service/header-section.service.d.ts +0 -8
  298. package/dist/module/layout/service/header-section.service.js +0 -37
  299. package/dist/module/layout/service/header-section.service.js.map +0 -1
  300. package/dist/module/layout_preference/controller/layout_preference.controller.d.ts +0 -19
  301. package/dist/module/layout_preference/controller/layout_preference.controller.js +0 -75
  302. package/dist/module/layout_preference/controller/layout_preference.controller.js.map +0 -1
  303. package/dist/module/layout_preference/dto/layout_preference.dto.d.ts +0 -0
  304. package/dist/module/layout_preference/dto/layout_preference.dto.js +0 -1
  305. package/dist/module/layout_preference/dto/layout_preference.dto.js.map +0 -1
  306. package/dist/module/layout_preference/entity/layout_preference.entity.d.ts +0 -9
  307. package/dist/module/layout_preference/entity/layout_preference.entity.js +0 -50
  308. package/dist/module/layout_preference/entity/layout_preference.entity.js.map +0 -1
  309. package/dist/module/layout_preference/layout_preference.module.d.ts +0 -2
  310. package/dist/module/layout_preference/layout_preference.module.js +0 -35
  311. package/dist/module/layout_preference/layout_preference.module.js.map +0 -1
  312. package/dist/module/layout_preference/repository/layout_preference.repository.d.ts +0 -13
  313. package/dist/module/layout_preference/repository/layout_preference.repository.js +0 -68
  314. package/dist/module/layout_preference/repository/layout_preference.repository.js.map +0 -1
  315. package/dist/module/layout_preference/service/layout_preference.service.d.ts +0 -20
  316. package/dist/module/layout_preference/service/layout_preference.service.js +0 -128
  317. package/dist/module/layout_preference/service/layout_preference.service.js.map +0 -1
  318. package/dist/module/lead/controller/lead.controller.d.ts +0 -20
  319. package/dist/module/lead/controller/lead.controller.js +0 -58
  320. package/dist/module/lead/controller/lead.controller.js.map +0 -1
  321. package/dist/module/lead/lead.module.d.ts +0 -2
  322. package/dist/module/lead/lead.module.js +0 -26
  323. package/dist/module/lead/lead.module.js.map +0 -1
  324. package/dist/module/lead/repository/lead.repository.d.ts +0 -10
  325. package/dist/module/lead/repository/lead.repository.js +0 -53
  326. package/dist/module/lead/repository/lead.repository.js.map +0 -1
  327. package/dist/module/lead/service/lead.service.d.ts +0 -20
  328. package/dist/module/lead/service/lead.service.js +0 -55
  329. package/dist/module/lead/service/lead.service.js.map +0 -1
  330. package/dist/module/listmaster/controller/list-master.controller.d.ts +0 -23
  331. package/dist/module/listmaster/controller/list-master.controller.js +0 -174
  332. package/dist/module/listmaster/controller/list-master.controller.js.map +0 -1
  333. package/dist/module/listmaster/entity/list-master-items.entity.d.ts +0 -14
  334. package/dist/module/listmaster/entity/list-master-items.entity.js +0 -69
  335. package/dist/module/listmaster/entity/list-master-items.entity.js.map +0 -1
  336. package/dist/module/listmaster/entity/list-master.entity.d.ts +0 -11
  337. package/dist/module/listmaster/entity/list-master.entity.js +0 -56
  338. package/dist/module/listmaster/entity/list-master.entity.js.map +0 -1
  339. package/dist/module/listmaster/listmaster.module.d.ts +0 -2
  340. package/dist/module/listmaster/listmaster.module.js +0 -53
  341. package/dist/module/listmaster/listmaster.module.js.map +0 -1
  342. package/dist/module/listmaster/repository/list-master-items.repository.d.ts +0 -21
  343. package/dist/module/listmaster/repository/list-master-items.repository.js +0 -142
  344. package/dist/module/listmaster/repository/list-master-items.repository.js.map +0 -1
  345. package/dist/module/listmaster/repository/list-master.repository.d.ts +0 -9
  346. package/dist/module/listmaster/repository/list-master.repository.js +0 -53
  347. package/dist/module/listmaster/repository/list-master.repository.js.map +0 -1
  348. package/dist/module/listmaster/service/list-master-engine.d.ts +0 -6
  349. package/dist/module/listmaster/service/list-master-engine.js +0 -35
  350. package/dist/module/listmaster/service/list-master-engine.js.map +0 -1
  351. package/dist/module/listmaster/service/list-master-extension.interface.d.ts +0 -4
  352. package/dist/module/listmaster/service/list-master-extension.interface.js +0 -3
  353. package/dist/module/listmaster/service/list-master-extension.interface.js.map +0 -1
  354. package/dist/module/listmaster/service/list-master-item.service.d.ts +0 -19
  355. package/dist/module/listmaster/service/list-master-item.service.js +0 -151
  356. package/dist/module/listmaster/service/list-master-item.service.js.map +0 -1
  357. package/dist/module/listmaster/service/list-master-registry.d.ts +0 -6
  358. package/dist/module/listmaster/service/list-master-registry.js +0 -26
  359. package/dist/module/listmaster/service/list-master-registry.js.map +0 -1
  360. package/dist/module/listmaster/service/list-master.service.d.ts +0 -39
  361. package/dist/module/listmaster/service/list-master.service.js +0 -335
  362. package/dist/module/listmaster/service/list-master.service.js.map +0 -1
  363. package/dist/module/mapper/controller/field-mapper.controller.d.ts +0 -11
  364. package/dist/module/mapper/controller/field-mapper.controller.js +0 -94
  365. package/dist/module/mapper/controller/field-mapper.controller.js.map +0 -1
  366. package/dist/module/mapper/controller/mapper.controller.d.ts +0 -8
  367. package/dist/module/mapper/controller/mapper.controller.js +0 -45
  368. package/dist/module/mapper/controller/mapper.controller.js.map +0 -1
  369. package/dist/module/mapper/dto/field-mapper.dto.d.ts +0 -12
  370. package/dist/module/mapper/dto/field-mapper.dto.js +0 -8
  371. package/dist/module/mapper/dto/field-mapper.dto.js.map +0 -1
  372. package/dist/module/mapper/entity/field-lovs.entity.d.ts +0 -7
  373. package/dist/module/mapper/entity/field-lovs.entity.js +0 -38
  374. package/dist/module/mapper/entity/field-lovs.entity.js.map +0 -1
  375. package/dist/module/mapper/entity/field-mapper.entity.d.ts +0 -13
  376. package/dist/module/mapper/entity/field-mapper.entity.js +0 -78
  377. package/dist/module/mapper/entity/field-mapper.entity.js.map +0 -1
  378. package/dist/module/mapper/entity/mapper.entity.d.ts +0 -6
  379. package/dist/module/mapper/entity/mapper.entity.js +0 -34
  380. package/dist/module/mapper/entity/mapper.entity.js.map +0 -1
  381. package/dist/module/mapper/mapper.module.d.ts +0 -2
  382. package/dist/module/mapper/mapper.module.js +0 -47
  383. package/dist/module/mapper/mapper.module.js.map +0 -1
  384. package/dist/module/mapper/repository/field-lovs.repository.d.ts +0 -11
  385. package/dist/module/mapper/repository/field-lovs.repository.js +0 -52
  386. package/dist/module/mapper/repository/field-lovs.repository.js.map +0 -1
  387. package/dist/module/mapper/repository/field-mapper.repository.d.ts +0 -11
  388. package/dist/module/mapper/repository/field-mapper.repository.js +0 -54
  389. package/dist/module/mapper/repository/field-mapper.repository.js.map +0 -1
  390. package/dist/module/mapper/repository/mapper.repository.d.ts +0 -7
  391. package/dist/module/mapper/repository/mapper.repository.js +0 -34
  392. package/dist/module/mapper/repository/mapper.repository.js.map +0 -1
  393. package/dist/module/mapper/service/field-mapper.service.d.ts +0 -24
  394. package/dist/module/mapper/service/field-mapper.service.js +0 -200
  395. package/dist/module/mapper/service/field-mapper.service.js.map +0 -1
  396. package/dist/module/mapper/service/mapper.service.d.ts +0 -17
  397. package/dist/module/mapper/service/mapper.service.js +0 -76
  398. package/dist/module/mapper/service/mapper.service.js.map +0 -1
  399. package/dist/module/master/controller/master.controller.d.ts +0 -20
  400. package/dist/module/master/controller/master.controller.js +0 -82
  401. package/dist/module/master/controller/master.controller.js.map +0 -1
  402. package/dist/module/master/service/master.service.d.ts +0 -31
  403. package/dist/module/master/service/master.service.js +0 -364
  404. package/dist/module/master/service/master.service.js.map +0 -1
  405. package/dist/module/meta/controller/app-master.controller.d.ts +0 -9
  406. package/dist/module/meta/controller/app-master.controller.js +0 -51
  407. package/dist/module/meta/controller/app-master.controller.js.map +0 -1
  408. package/dist/module/meta/controller/attribute-master.controller.d.ts +0 -21
  409. package/dist/module/meta/controller/attribute-master.controller.js +0 -78
  410. package/dist/module/meta/controller/attribute-master.controller.js.map +0 -1
  411. package/dist/module/meta/controller/entity-dynamic.controller.d.ts +0 -21
  412. package/dist/module/meta/controller/entity-dynamic.controller.js +0 -115
  413. package/dist/module/meta/controller/entity-dynamic.controller.js.map +0 -1
  414. package/dist/module/meta/controller/entity-master.controller.d.ts +0 -8
  415. package/dist/module/meta/controller/entity-master.controller.js +0 -44
  416. package/dist/module/meta/controller/entity-master.controller.js.map +0 -1
  417. package/dist/module/meta/controller/entity-relation.controller.d.ts +0 -6
  418. package/dist/module/meta/controller/entity-relation.controller.js +0 -45
  419. package/dist/module/meta/controller/entity-relation.controller.js.map +0 -1
  420. package/dist/module/meta/controller/entity.controller.d.ts +0 -38
  421. package/dist/module/meta/controller/entity.controller.js +0 -245
  422. package/dist/module/meta/controller/entity.controller.js.map +0 -1
  423. package/dist/module/meta/controller/entity.public.controller.d.ts +0 -12
  424. package/dist/module/meta/controller/entity.public.controller.js +0 -75
  425. package/dist/module/meta/controller/entity.public.controller.js.map +0 -1
  426. package/dist/module/meta/controller/media.controller.d.ts +0 -27
  427. package/dist/module/meta/controller/media.controller.js +0 -92
  428. package/dist/module/meta/controller/media.controller.js.map +0 -1
  429. package/dist/module/meta/controller/meta.controller.d.ts +0 -32
  430. package/dist/module/meta/controller/meta.controller.js +0 -112
  431. package/dist/module/meta/controller/meta.controller.js.map +0 -1
  432. package/dist/module/meta/controller/view-master.controller.d.ts +0 -12
  433. package/dist/module/meta/controller/view-master.controller.js +0 -88
  434. package/dist/module/meta/controller/view-master.controller.js.map +0 -1
  435. package/dist/module/meta/dto/entity-list-data.dto.d.ts +0 -5
  436. package/dist/module/meta/dto/entity-list-data.dto.js +0 -7
  437. package/dist/module/meta/dto/entity-list-data.dto.js.map +0 -1
  438. package/dist/module/meta/dto/entity-tab.dto.d.ts +0 -4
  439. package/dist/module/meta/dto/entity-tab.dto.js +0 -7
  440. package/dist/module/meta/dto/entity-tab.dto.js.map +0 -1
  441. package/dist/module/meta/dto/entity-table.dto.d.ts +0 -11
  442. package/dist/module/meta/dto/entity-table.dto.js +0 -8
  443. package/dist/module/meta/dto/entity-table.dto.js.map +0 -1
  444. package/dist/module/meta/entity/app-master.entity.d.ts +0 -12
  445. package/dist/module/meta/entity/app-master.entity.js +0 -58
  446. package/dist/module/meta/entity/app-master.entity.js.map +0 -1
  447. package/dist/module/meta/entity/attribute-master.entity.d.ts +0 -22
  448. package/dist/module/meta/entity/attribute-master.entity.js +0 -124
  449. package/dist/module/meta/entity/attribute-master.entity.js.map +0 -1
  450. package/dist/module/meta/entity/base-entity.entity.d.ts +0 -19
  451. package/dist/module/meta/entity/base-entity.entity.js +0 -104
  452. package/dist/module/meta/entity/base-entity.entity.js.map +0 -1
  453. package/dist/module/meta/entity/entity-master.entity.d.ts +0 -20
  454. package/dist/module/meta/entity/entity-master.entity.js +0 -117
  455. package/dist/module/meta/entity/entity-master.entity.js.map +0 -1
  456. package/dist/module/meta/entity/entity-relation-data.entity.d.ts +0 -10
  457. package/dist/module/meta/entity/entity-relation-data.entity.js +0 -51
  458. package/dist/module/meta/entity/entity-relation-data.entity.js.map +0 -1
  459. package/dist/module/meta/entity/entity-relation.entity.d.ts +0 -8
  460. package/dist/module/meta/entity/entity-relation.entity.js +0 -43
  461. package/dist/module/meta/entity/entity-relation.entity.js.map +0 -1
  462. package/dist/module/meta/entity/entity-table-column.entity.d.ts +0 -19
  463. package/dist/module/meta/entity/entity-table-column.entity.js +0 -92
  464. package/dist/module/meta/entity/entity-table-column.entity.js.map +0 -1
  465. package/dist/module/meta/entity/entity-table.entity.d.ts +0 -17
  466. package/dist/module/meta/entity/entity-table.entity.js +0 -79
  467. package/dist/module/meta/entity/entity-table.entity.js.map +0 -1
  468. package/dist/module/meta/entity/media-data.entity.d.ts +0 -11
  469. package/dist/module/meta/entity/media-data.entity.js +0 -55
  470. package/dist/module/meta/entity/media-data.entity.js.map +0 -1
  471. package/dist/module/meta/entity/preference.entity.d.ts +0 -11
  472. package/dist/module/meta/entity/preference.entity.js +0 -85
  473. package/dist/module/meta/entity/preference.entity.js.map +0 -1
  474. package/dist/module/meta/entity/view-master.entity.d.ts +0 -14
  475. package/dist/module/meta/entity/view-master.entity.js +0 -67
  476. package/dist/module/meta/entity/view-master.entity.js.map +0 -1
  477. package/dist/module/meta/entity.module.d.ts +0 -2
  478. package/dist/module/meta/entity.module.js +0 -155
  479. package/dist/module/meta/entity.module.js.map +0 -1
  480. package/dist/module/meta/repository/app-master.repository.d.ts +0 -7
  481. package/dist/module/meta/repository/app-master.repository.js +0 -36
  482. package/dist/module/meta/repository/app-master.repository.js.map +0 -1
  483. package/dist/module/meta/repository/attribute-master.repository.d.ts +0 -21
  484. package/dist/module/meta/repository/attribute-master.repository.js +0 -92
  485. package/dist/module/meta/repository/attribute-master.repository.js.map +0 -1
  486. package/dist/module/meta/repository/entity-master.repository.d.ts +0 -20
  487. package/dist/module/meta/repository/entity-master.repository.js +0 -73
  488. package/dist/module/meta/repository/entity-master.repository.js.map +0 -1
  489. package/dist/module/meta/repository/entity-table-column.repository.d.ts +0 -7
  490. package/dist/module/meta/repository/entity-table-column.repository.js +0 -52
  491. package/dist/module/meta/repository/entity-table-column.repository.js.map +0 -1
  492. package/dist/module/meta/repository/entity-table.repository.d.ts +0 -9
  493. package/dist/module/meta/repository/entity-table.repository.js +0 -59
  494. package/dist/module/meta/repository/entity-table.repository.js.map +0 -1
  495. package/dist/module/meta/repository/media-data.repository.d.ts +0 -9
  496. package/dist/module/meta/repository/media-data.repository.js +0 -55
  497. package/dist/module/meta/repository/media-data.repository.js.map +0 -1
  498. package/dist/module/meta/repository/preference.repository.d.ts +0 -7
  499. package/dist/module/meta/repository/preference.repository.js +0 -36
  500. package/dist/module/meta/repository/preference.repository.js.map +0 -1
  501. package/dist/module/meta/repository/user-app-mapping.repository.d.ts +0 -0
  502. package/dist/module/meta/repository/user-app-mapping.repository.js +0 -1
  503. package/dist/module/meta/repository/user-app-mapping.repository.js.map +0 -1
  504. package/dist/module/meta/repository/view-master.repository.d.ts +0 -11
  505. package/dist/module/meta/repository/view-master.repository.js +0 -52
  506. package/dist/module/meta/repository/view-master.repository.js.map +0 -1
  507. package/dist/module/meta/service/app-master.service.d.ts +0 -8
  508. package/dist/module/meta/service/app-master.service.js +0 -45
  509. package/dist/module/meta/service/app-master.service.js.map +0 -1
  510. package/dist/module/meta/service/attribute-master.service.d.ts +0 -17
  511. package/dist/module/meta/service/attribute-master.service.js +0 -78
  512. package/dist/module/meta/service/attribute-master.service.js.map +0 -1
  513. package/dist/module/meta/service/common.service.d.ts +0 -4
  514. package/dist/module/meta/service/common.service.js +0 -25
  515. package/dist/module/meta/service/common.service.js.map +0 -1
  516. package/dist/module/meta/service/entity-dynamic.service.d.ts +0 -25
  517. package/dist/module/meta/service/entity-dynamic.service.js +0 -481
  518. package/dist/module/meta/service/entity-dynamic.service.js.map +0 -1
  519. package/dist/module/meta/service/entity-list.service.d.ts +0 -17
  520. package/dist/module/meta/service/entity-list.service.js +0 -141
  521. package/dist/module/meta/service/entity-list.service.js.map +0 -1
  522. package/dist/module/meta/service/entity-master.service.d.ts +0 -29
  523. package/dist/module/meta/service/entity-master.service.js +0 -116
  524. package/dist/module/meta/service/entity-master.service.js.map +0 -1
  525. package/dist/module/meta/service/entity-realation-data.service.d.ts +0 -4
  526. package/dist/module/meta/service/entity-realation-data.service.js +0 -25
  527. package/dist/module/meta/service/entity-realation-data.service.js.map +0 -1
  528. package/dist/module/meta/service/entity-relation.service.d.ts +0 -8
  529. package/dist/module/meta/service/entity-relation.service.js +0 -58
  530. package/dist/module/meta/service/entity-relation.service.js.map +0 -1
  531. package/dist/module/meta/service/entity-service-impl.service.d.ts +0 -43
  532. package/dist/module/meta/service/entity-service-impl.service.js +0 -278
  533. package/dist/module/meta/service/entity-service-impl.service.js.map +0 -1
  534. package/dist/module/meta/service/entity-table-column.service.d.ts +0 -7
  535. package/dist/module/meta/service/entity-table-column.service.js +0 -37
  536. package/dist/module/meta/service/entity-table-column.service.js.map +0 -1
  537. package/dist/module/meta/service/entity-table.service.d.ts +0 -17
  538. package/dist/module/meta/service/entity-table.service.js +0 -84
  539. package/dist/module/meta/service/entity-table.service.js.map +0 -1
  540. package/dist/module/meta/service/entity-validation.service.d.ts +0 -21
  541. package/dist/module/meta/service/entity-validation.service.js +0 -119
  542. package/dist/module/meta/service/entity-validation.service.js.map +0 -1
  543. package/dist/module/meta/service/entity.service.d.ts +0 -15
  544. package/dist/module/meta/service/entity.service.js +0 -3
  545. package/dist/module/meta/service/entity.service.js.map +0 -1
  546. package/dist/module/meta/service/field-group.service.d.ts +0 -26
  547. package/dist/module/meta/service/field-group.service.js +0 -76
  548. package/dist/module/meta/service/field-group.service.js.map +0 -1
  549. package/dist/module/meta/service/media-data.service.d.ts +0 -36
  550. package/dist/module/meta/service/media-data.service.js +0 -300
  551. package/dist/module/meta/service/media-data.service.js.map +0 -1
  552. package/dist/module/meta/service/populate-meta.service.d.ts +0 -11
  553. package/dist/module/meta/service/populate-meta.service.js +0 -136
  554. package/dist/module/meta/service/populate-meta.service.js.map +0 -1
  555. package/dist/module/meta/service/preference.service.d.ts +0 -7
  556. package/dist/module/meta/service/preference.service.js +0 -31
  557. package/dist/module/meta/service/preference.service.js.map +0 -1
  558. package/dist/module/meta/service/resolver.service.d.ts +0 -15
  559. package/dist/module/meta/service/resolver.service.js +0 -180
  560. package/dist/module/meta/service/resolver.service.js.map +0 -1
  561. package/dist/module/meta/service/section-master.service.d.ts +0 -26
  562. package/dist/module/meta/service/section-master.service.js +0 -77
  563. package/dist/module/meta/service/section-master.service.js.map +0 -1
  564. package/dist/module/meta/service/update-form-json.service.d.ts +0 -9
  565. package/dist/module/meta/service/update-form-json.service.js +0 -39
  566. package/dist/module/meta/service/update-form-json.service.js.map +0 -1
  567. package/dist/module/meta/service/user-app-mapping.service.d.ts +0 -0
  568. package/dist/module/meta/service/user-app-mapping.service.js +0 -1
  569. package/dist/module/meta/service/user-app-mapping.service.js.map +0 -1
  570. package/dist/module/meta/service/view-master.service.d.ts +0 -29
  571. package/dist/module/meta/service/view-master.service.js +0 -82
  572. package/dist/module/meta/service/view-master.service.js.map +0 -1
  573. package/dist/module/module/controller/menu.controller.d.ts +0 -8
  574. package/dist/module/module/controller/menu.controller.js +0 -41
  575. package/dist/module/module/controller/menu.controller.js.map +0 -1
  576. package/dist/module/module/controller/module-access.controller.d.ts +0 -35
  577. package/dist/module/module/controller/module-access.controller.js +0 -150
  578. package/dist/module/module/controller/module-access.controller.js.map +0 -1
  579. package/dist/module/module/entity/menu.entity.d.ts +0 -15
  580. package/dist/module/module/entity/menu.entity.js +0 -72
  581. package/dist/module/module/entity/menu.entity.js.map +0 -1
  582. package/dist/module/module/entity/module-access.entity.d.ts +0 -9
  583. package/dist/module/module/entity/module-access.entity.js +0 -48
  584. package/dist/module/module/entity/module-access.entity.js.map +0 -1
  585. package/dist/module/module/entity/module-action.entity.d.ts +0 -6
  586. package/dist/module/module/entity/module-action.entity.js +0 -37
  587. package/dist/module/module/entity/module-action.entity.js.map +0 -1
  588. package/dist/module/module/entity/module.entity.d.ts +0 -18
  589. package/dist/module/module/entity/module.entity.js +0 -84
  590. package/dist/module/module/entity/module.entity.js.map +0 -1
  591. package/dist/module/module/module.module.d.ts +0 -2
  592. package/dist/module/module/module.module.js +0 -55
  593. package/dist/module/module/module.module.js.map +0 -1
  594. package/dist/module/module/repository/menu.repository.d.ts +0 -11
  595. package/dist/module/module/repository/menu.repository.js +0 -152
  596. package/dist/module/module/repository/menu.repository.js.map +0 -1
  597. package/dist/module/module/repository/module-access.repository.d.ts +0 -52
  598. package/dist/module/module/repository/module-access.repository.js +0 -283
  599. package/dist/module/module/repository/module-access.repository.js.map +0 -1
  600. package/dist/module/module/service/menu.service.d.ts +0 -12
  601. package/dist/module/module/service/menu.service.js +0 -59
  602. package/dist/module/module/service/menu.service.js.map +0 -1
  603. package/dist/module/module/service/module-access.service.d.ts +0 -62
  604. package/dist/module/module/service/module-access.service.js +0 -119
  605. package/dist/module/module/service/module-access.service.js.map +0 -1
  606. package/dist/module/notification/controller/notification.controller.d.ts +0 -23
  607. package/dist/module/notification/controller/notification.controller.js +0 -74
  608. package/dist/module/notification/controller/notification.controller.js.map +0 -1
  609. package/dist/module/notification/controller/otp.controller.d.ts +0 -65
  610. package/dist/module/notification/controller/otp.controller.js +0 -103
  611. package/dist/module/notification/controller/otp.controller.js.map +0 -1
  612. package/dist/module/notification/entity/notification.entity.d.ts +0 -10
  613. package/dist/module/notification/entity/notification.entity.js +0 -49
  614. package/dist/module/notification/entity/notification.entity.js.map +0 -1
  615. package/dist/module/notification/entity/otp.entity.d.ts +0 -10
  616. package/dist/module/notification/entity/otp.entity.js +0 -52
  617. package/dist/module/notification/entity/otp.entity.js.map +0 -1
  618. package/dist/module/notification/firebase-admin.config.d.ts +0 -7
  619. package/dist/module/notification/firebase-admin.config.js +0 -24
  620. package/dist/module/notification/firebase-admin.config.js.map +0 -1
  621. package/dist/module/notification/notification.module.d.ts +0 -2
  622. package/dist/module/notification/notification.module.js +0 -82
  623. package/dist/module/notification/notification.module.js.map +0 -1
  624. package/dist/module/notification/repository/otp.repository.d.ts +0 -9
  625. package/dist/module/notification/repository/otp.repository.js +0 -44
  626. package/dist/module/notification/repository/otp.repository.js.map +0 -1
  627. package/dist/module/notification/service/email.service.d.ts +0 -14
  628. package/dist/module/notification/service/email.service.js +0 -110
  629. package/dist/module/notification/service/email.service.js.map +0 -1
  630. package/dist/module/notification/service/notification.service.d.ts +0 -27
  631. package/dist/module/notification/service/notification.service.js +0 -124
  632. package/dist/module/notification/service/notification.service.js.map +0 -1
  633. package/dist/module/notification/service/otp.service.d.ts +0 -61
  634. package/dist/module/notification/service/otp.service.js +0 -111
  635. package/dist/module/notification/service/otp.service.js.map +0 -1
  636. package/dist/module/third-party-module/entity/third-party-api-registry.entity.d.ts +0 -18
  637. package/dist/module/third-party-module/entity/third-party-api-registry.entity.js +0 -84
  638. package/dist/module/third-party-module/entity/third-party-api-registry.entity.js.map +0 -1
  639. package/dist/module/third-party-module/repository/third-party-api-registry.repository.d.ts +0 -7
  640. package/dist/module/third-party-module/repository/third-party-api-registry.repository.js +0 -38
  641. package/dist/module/third-party-module/repository/third-party-api-registry.repository.js.map +0 -1
  642. package/dist/module/third-party-module/service/api-registry.service.d.ts +0 -6
  643. package/dist/module/third-party-module/service/api-registry.service.js +0 -28
  644. package/dist/module/third-party-module/service/api-registry.service.js.map +0 -1
  645. package/dist/module/third-party-module/third-party.module.d.ts +0 -2
  646. package/dist/module/third-party-module/third-party.module.js +0 -25
  647. package/dist/module/third-party-module/third-party.module.js.map +0 -1
  648. package/dist/module/user/controller/login.controller.d.ts +0 -26
  649. package/dist/module/user/controller/login.controller.js +0 -176
  650. package/dist/module/user/controller/login.controller.js.map +0 -1
  651. package/dist/module/user/controller/user.controller.d.ts +0 -9
  652. package/dist/module/user/controller/user.controller.js +0 -59
  653. package/dist/module/user/controller/user.controller.js.map +0 -1
  654. package/dist/module/user/dto/create-user.dto.d.ts +0 -17
  655. package/dist/module/user/dto/create-user.dto.js +0 -64
  656. package/dist/module/user/dto/create-user.dto.js.map +0 -1
  657. package/dist/module/user/dto/update-user.dto.d.ts +0 -5
  658. package/dist/module/user/dto/update-user.dto.js +0 -9
  659. package/dist/module/user/dto/update-user.dto.js.map +0 -1
  660. package/dist/module/user/entity/role.entity.d.ts +0 -11
  661. package/dist/module/user/entity/role.entity.js +0 -56
  662. package/dist/module/user/entity/role.entity.js.map +0 -1
  663. package/dist/module/user/entity/user-role-mapping.entity.d.ts +0 -12
  664. package/dist/module/user/entity/user-role-mapping.entity.js +0 -63
  665. package/dist/module/user/entity/user-role-mapping.entity.js.map +0 -1
  666. package/dist/module/user/entity/user-session.entity.d.ts +0 -15
  667. package/dist/module/user/entity/user-session.entity.js +0 -102
  668. package/dist/module/user/entity/user-session.entity.js.map +0 -1
  669. package/dist/module/user/entity/user.entity.d.ts +0 -20
  670. package/dist/module/user/entity/user.entity.js +0 -91
  671. package/dist/module/user/entity/user.entity.js.map +0 -1
  672. package/dist/module/user/repository/role.repository.d.ts +0 -18
  673. package/dist/module/user/repository/role.repository.js +0 -87
  674. package/dist/module/user/repository/role.repository.js.map +0 -1
  675. package/dist/module/user/repository/user-role-mapping.repository.d.ts +0 -19
  676. package/dist/module/user/repository/user-role-mapping.repository.js +0 -110
  677. package/dist/module/user/repository/user-role-mapping.repository.js.map +0 -1
  678. package/dist/module/user/repository/user.repository.d.ts +0 -10
  679. package/dist/module/user/repository/user.repository.js +0 -58
  680. package/dist/module/user/repository/user.repository.js.map +0 -1
  681. package/dist/module/user/repository/userSession.repository.d.ts +0 -10
  682. package/dist/module/user/repository/userSession.repository.js +0 -45
  683. package/dist/module/user/repository/userSession.repository.js.map +0 -1
  684. package/dist/module/user/service/login.service.d.ts +0 -98
  685. package/dist/module/user/service/login.service.js +0 -220
  686. package/dist/module/user/service/login.service.js.map +0 -1
  687. package/dist/module/user/service/role.service.d.ts +0 -23
  688. package/dist/module/user/service/role.service.js +0 -146
  689. package/dist/module/user/service/role.service.js.map +0 -1
  690. package/dist/module/user/service/user-role-mapping.service.d.ts +0 -12
  691. package/dist/module/user/service/user-role-mapping.service.js +0 -60
  692. package/dist/module/user/service/user-role-mapping.service.js.map +0 -1
  693. package/dist/module/user/service/user-session.service.d.ts +0 -38
  694. package/dist/module/user/service/user-session.service.js +0 -132
  695. package/dist/module/user/service/user-session.service.js.map +0 -1
  696. package/dist/module/user/service/user.service.d.ts +0 -38
  697. package/dist/module/user/service/user.service.js +0 -243
  698. package/dist/module/user/service/user.service.js.map +0 -1
  699. package/dist/module/user/user.module.d.ts +0 -2
  700. package/dist/module/user/user.module.js +0 -78
  701. package/dist/module/user/user.module.js.map +0 -1
  702. package/dist/module/workflow/controller/action-category.controller.d.ts +0 -18
  703. package/dist/module/workflow/controller/action-category.controller.js +0 -79
  704. package/dist/module/workflow/controller/action-category.controller.js.map +0 -1
  705. package/dist/module/workflow/controller/action-resource-mapping.controller.d.ts +0 -5
  706. package/dist/module/workflow/controller/action-resource-mapping.controller.js +0 -31
  707. package/dist/module/workflow/controller/action-resource-mapping.controller.js.map +0 -1
  708. package/dist/module/workflow/controller/action-template-mapping.controller.d.ts +0 -12
  709. package/dist/module/workflow/controller/action-template-mapping.controller.js +0 -44
  710. package/dist/module/workflow/controller/action-template-mapping.controller.js.map +0 -1
  711. package/dist/module/workflow/controller/action.controller.d.ts +0 -51
  712. package/dist/module/workflow/controller/action.controller.js +0 -122
  713. package/dist/module/workflow/controller/action.controller.js.map +0 -1
  714. package/dist/module/workflow/controller/activity-log.controller.d.ts +0 -42
  715. package/dist/module/workflow/controller/activity-log.controller.js +0 -62
  716. package/dist/module/workflow/controller/activity-log.controller.js.map +0 -1
  717. package/dist/module/workflow/controller/comm-template.controller.d.ts +0 -19
  718. package/dist/module/workflow/controller/comm-template.controller.js +0 -58
  719. package/dist/module/workflow/controller/comm-template.controller.js.map +0 -1
  720. package/dist/module/workflow/controller/entity-modification.controller.d.ts +0 -8
  721. package/dist/module/workflow/controller/entity-modification.controller.js +0 -44
  722. package/dist/module/workflow/controller/entity-modification.controller.js.map +0 -1
  723. package/dist/module/workflow/controller/form-master.controller.d.ts +0 -11
  724. package/dist/module/workflow/controller/form-master.controller.js +0 -59
  725. package/dist/module/workflow/controller/form-master.controller.js.map +0 -1
  726. package/dist/module/workflow/controller/stage-group.controller.d.ts +0 -19
  727. package/dist/module/workflow/controller/stage-group.controller.js +0 -56
  728. package/dist/module/workflow/controller/stage-group.controller.js.map +0 -1
  729. package/dist/module/workflow/controller/stage.controller.d.ts +0 -16
  730. package/dist/module/workflow/controller/stage.controller.js +0 -57
  731. package/dist/module/workflow/controller/stage.controller.js.map +0 -1
  732. package/dist/module/workflow/controller/task.controller.d.ts +0 -32
  733. package/dist/module/workflow/controller/task.controller.js +0 -72
  734. package/dist/module/workflow/controller/task.controller.js.map +0 -1
  735. package/dist/module/workflow/controller/workflow-list-master.controller.d.ts +0 -14
  736. package/dist/module/workflow/controller/workflow-list-master.controller.js +0 -67
  737. package/dist/module/workflow/controller/workflow-list-master.controller.js.map +0 -1
  738. package/dist/module/workflow/controller/workflow-meta.controller.d.ts +0 -15
  739. package/dist/module/workflow/controller/workflow-meta.controller.js +0 -72
  740. package/dist/module/workflow/controller/workflow-meta.controller.js.map +0 -1
  741. package/dist/module/workflow/controller/workflow.controller.d.ts +0 -31
  742. package/dist/module/workflow/controller/workflow.controller.js +0 -83
  743. package/dist/module/workflow/controller/workflow.controller.js.map +0 -1
  744. package/dist/module/workflow/entity/action-category.entity.d.ts +0 -13
  745. package/dist/module/workflow/entity/action-category.entity.js +0 -63
  746. package/dist/module/workflow/entity/action-category.entity.js.map +0 -1
  747. package/dist/module/workflow/entity/action-data.entity.d.ts +0 -19
  748. package/dist/module/workflow/entity/action-data.entity.js +0 -86
  749. package/dist/module/workflow/entity/action-data.entity.js.map +0 -1
  750. package/dist/module/workflow/entity/action-resources-mapping.entity.d.ts +0 -9
  751. package/dist/module/workflow/entity/action-resources-mapping.entity.js +0 -47
  752. package/dist/module/workflow/entity/action-resources-mapping.entity.js.map +0 -1
  753. package/dist/module/workflow/entity/action-template-mapping.entity.d.ts +0 -6
  754. package/dist/module/workflow/entity/action-template-mapping.entity.js +0 -35
  755. package/dist/module/workflow/entity/action-template-mapping.entity.js.map +0 -1
  756. package/dist/module/workflow/entity/action.entity.d.ts +0 -17
  757. package/dist/module/workflow/entity/action.entity.js +0 -79
  758. package/dist/module/workflow/entity/action.entity.js.map +0 -1
  759. package/dist/module/workflow/entity/activity-log.entity.d.ts +0 -15
  760. package/dist/module/workflow/entity/activity-log.entity.js +0 -70
  761. package/dist/module/workflow/entity/activity-log.entity.js.map +0 -1
  762. package/dist/module/workflow/entity/comm-template.entity.d.ts +0 -14
  763. package/dist/module/workflow/entity/comm-template.entity.js +0 -67
  764. package/dist/module/workflow/entity/comm-template.entity.js.map +0 -1
  765. package/dist/module/workflow/entity/entity-modification.entity.d.ts +0 -13
  766. package/dist/module/workflow/entity/entity-modification.entity.js +0 -63
  767. package/dist/module/workflow/entity/entity-modification.entity.js.map +0 -1
  768. package/dist/module/workflow/entity/form.entity.d.ts +0 -9
  769. package/dist/module/workflow/entity/form.entity.js +0 -46
  770. package/dist/module/workflow/entity/form.entity.js.map +0 -1
  771. package/dist/module/workflow/entity/stage-action-mapping.entity.d.ts +0 -6
  772. package/dist/module/workflow/entity/stage-action-mapping.entity.js +0 -35
  773. package/dist/module/workflow/entity/stage-action-mapping.entity.js.map +0 -1
  774. package/dist/module/workflow/entity/stage-group.entity.d.ts +0 -8
  775. package/dist/module/workflow/entity/stage-group.entity.js +0 -43
  776. package/dist/module/workflow/entity/stage-group.entity.js.map +0 -1
  777. package/dist/module/workflow/entity/stage-movement-data.entity.d.ts +0 -13
  778. package/dist/module/workflow/entity/stage-movement-data.entity.js +0 -63
  779. package/dist/module/workflow/entity/stage-movement-data.entity.js.map +0 -1
  780. package/dist/module/workflow/entity/stage.entity.d.ts +0 -7
  781. package/dist/module/workflow/entity/stage.entity.js +0 -39
  782. package/dist/module/workflow/entity/stage.entity.js.map +0 -1
  783. package/dist/module/workflow/entity/task-data.entity.d.ts +0 -30
  784. package/dist/module/workflow/entity/task-data.entity.js +0 -130
  785. package/dist/module/workflow/entity/task-data.entity.js.map +0 -1
  786. package/dist/module/workflow/entity/template-attach-mapper.entity.d.ts +0 -11
  787. package/dist/module/workflow/entity/template-attach-mapper.entity.js +0 -54
  788. package/dist/module/workflow/entity/template-attach-mapper.entity.js.map +0 -1
  789. package/dist/module/workflow/entity/workflow-data.entity.d.ts +0 -4
  790. package/dist/module/workflow/entity/workflow-data.entity.js +0 -27
  791. package/dist/module/workflow/entity/workflow-data.entity.js.map +0 -1
  792. package/dist/module/workflow/entity/workflow-level-mapping.entity.d.ts +0 -7
  793. package/dist/module/workflow/entity/workflow-level-mapping.entity.js +0 -38
  794. package/dist/module/workflow/entity/workflow-level-mapping.entity.js.map +0 -1
  795. package/dist/module/workflow/entity/workflow.entity.d.ts +0 -7
  796. package/dist/module/workflow/entity/workflow.entity.js +0 -39
  797. package/dist/module/workflow/entity/workflow.entity.js.map +0 -1
  798. package/dist/module/workflow/repository/action-category.repository.d.ts +0 -19
  799. package/dist/module/workflow/repository/action-category.repository.js +0 -84
  800. package/dist/module/workflow/repository/action-category.repository.js.map +0 -1
  801. package/dist/module/workflow/repository/action-data.repository.d.ts +0 -23
  802. package/dist/module/workflow/repository/action-data.repository.js +0 -234
  803. package/dist/module/workflow/repository/action-data.repository.js.map +0 -1
  804. package/dist/module/workflow/repository/action.repository.d.ts +0 -30
  805. package/dist/module/workflow/repository/action.repository.js +0 -248
  806. package/dist/module/workflow/repository/action.repository.js.map +0 -1
  807. package/dist/module/workflow/repository/activity-log.repository.d.ts +0 -57
  808. package/dist/module/workflow/repository/activity-log.repository.js +0 -129
  809. package/dist/module/workflow/repository/activity-log.repository.js.map +0 -1
  810. package/dist/module/workflow/repository/comm-template.repository.d.ts +0 -16
  811. package/dist/module/workflow/repository/comm-template.repository.js +0 -114
  812. package/dist/module/workflow/repository/comm-template.repository.js.map +0 -1
  813. package/dist/module/workflow/repository/form-master.repository.d.ts +0 -8
  814. package/dist/module/workflow/repository/form-master.repository.js +0 -38
  815. package/dist/module/workflow/repository/form-master.repository.js.map +0 -1
  816. package/dist/module/workflow/repository/form.repository.d.ts +0 -0
  817. package/dist/module/workflow/repository/form.repository.js +0 -1
  818. package/dist/module/workflow/repository/form.repository.js.map +0 -1
  819. package/dist/module/workflow/repository/stage-group.repository.d.ts +0 -34
  820. package/dist/module/workflow/repository/stage-group.repository.js +0 -135
  821. package/dist/module/workflow/repository/stage-group.repository.js.map +0 -1
  822. package/dist/module/workflow/repository/stage-movement.repository.d.ts +0 -23
  823. package/dist/module/workflow/repository/stage-movement.repository.js +0 -160
  824. package/dist/module/workflow/repository/stage-movement.repository.js.map +0 -1
  825. package/dist/module/workflow/repository/stage.repository.d.ts +0 -31
  826. package/dist/module/workflow/repository/stage.repository.js +0 -117
  827. package/dist/module/workflow/repository/stage.repository.js.map +0 -1
  828. package/dist/module/workflow/repository/task.repository.d.ts +0 -10
  829. package/dist/module/workflow/repository/task.repository.js +0 -103
  830. package/dist/module/workflow/repository/task.repository.js.map +0 -1
  831. package/dist/module/workflow/repository/workflow.repository.d.ts +0 -10
  832. package/dist/module/workflow/repository/workflow.repository.js +0 -49
  833. package/dist/module/workflow/repository/workflow.repository.js.map +0 -1
  834. package/dist/module/workflow/service/action-category.service.d.ts +0 -21
  835. package/dist/module/workflow/service/action-category.service.js +0 -42
  836. package/dist/module/workflow/service/action-category.service.js.map +0 -1
  837. package/dist/module/workflow/service/action-data.service.d.ts +0 -16
  838. package/dist/module/workflow/service/action-data.service.js +0 -40
  839. package/dist/module/workflow/service/action-data.service.js.map +0 -1
  840. package/dist/module/workflow/service/action-resources-mapping.service.d.ts +0 -6
  841. package/dist/module/workflow/service/action-resources-mapping.service.js +0 -27
  842. package/dist/module/workflow/service/action-resources-mapping.service.js.map +0 -1
  843. package/dist/module/workflow/service/action-template-mapping.service.d.ts +0 -7
  844. package/dist/module/workflow/service/action-template-mapping.service.js +0 -90
  845. package/dist/module/workflow/service/action-template-mapping.service.js.map +0 -1
  846. package/dist/module/workflow/service/action.service.d.ts +0 -36
  847. package/dist/module/workflow/service/action.service.js +0 -168
  848. package/dist/module/workflow/service/action.service.js.map +0 -1
  849. package/dist/module/workflow/service/activity-log.service.d.ts +0 -42
  850. package/dist/module/workflow/service/activity-log.service.js +0 -92
  851. package/dist/module/workflow/service/activity-log.service.js.map +0 -1
  852. package/dist/module/workflow/service/comm-template.service.d.ts +0 -24
  853. package/dist/module/workflow/service/comm-template.service.js +0 -133
  854. package/dist/module/workflow/service/comm-template.service.js.map +0 -1
  855. package/dist/module/workflow/service/entity-modification.service.d.ts +0 -8
  856. package/dist/module/workflow/service/entity-modification.service.js +0 -52
  857. package/dist/module/workflow/service/entity-modification.service.js.map +0 -1
  858. package/dist/module/workflow/service/form-master.service.d.ts +0 -14
  859. package/dist/module/workflow/service/form-master.service.js +0 -38
  860. package/dist/module/workflow/service/form-master.service.js.map +0 -1
  861. package/dist/module/workflow/service/populate-workflow.service.d.ts +0 -21
  862. package/dist/module/workflow/service/populate-workflow.service.js +0 -167
  863. package/dist/module/workflow/service/populate-workflow.service.js.map +0 -1
  864. package/dist/module/workflow/service/stage-action-mapping.service.d.ts +0 -3
  865. package/dist/module/workflow/service/stage-action-mapping.service.js +0 -18
  866. package/dist/module/workflow/service/stage-action-mapping.service.js.map +0 -1
  867. package/dist/module/workflow/service/stage-group.service.d.ts +0 -31
  868. package/dist/module/workflow/service/stage-group.service.js +0 -212
  869. package/dist/module/workflow/service/stage-group.service.js.map +0 -1
  870. package/dist/module/workflow/service/stage.service.d.ts +0 -25
  871. package/dist/module/workflow/service/stage.service.js +0 -129
  872. package/dist/module/workflow/service/stage.service.js.map +0 -1
  873. package/dist/module/workflow/service/task.service.d.ts +0 -49
  874. package/dist/module/workflow/service/task.service.js +0 -357
  875. package/dist/module/workflow/service/task.service.js.map +0 -1
  876. package/dist/module/workflow/service/workflow-list-master.service.d.ts +0 -9
  877. package/dist/module/workflow/service/workflow-list-master.service.js +0 -61
  878. package/dist/module/workflow/service/workflow-list-master.service.js.map +0 -1
  879. package/dist/module/workflow/service/workflow-meta.service.d.ts +0 -30
  880. package/dist/module/workflow/service/workflow-meta.service.js +0 -368
  881. package/dist/module/workflow/service/workflow-meta.service.js.map +0 -1
  882. package/dist/module/workflow/service/workflow.service.d.ts +0 -33
  883. package/dist/module/workflow/service/workflow.service.js +0 -140
  884. package/dist/module/workflow/service/workflow.service.js.map +0 -1
  885. package/dist/module/workflow/workflow.module.d.ts +0 -2
  886. package/dist/module/workflow/workflow.module.js +0 -188
  887. package/dist/module/workflow/workflow.module.js.map +0 -1
  888. package/dist/module/workflow-automation/controller/workflow-automation.controller.d.ts +0 -5
  889. package/dist/module/workflow-automation/controller/workflow-automation.controller.js +0 -31
  890. package/dist/module/workflow-automation/controller/workflow-automation.controller.js.map +0 -1
  891. package/dist/module/workflow-automation/entity/workflow-automation-action.entity.d.ts +0 -9
  892. package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js +0 -47
  893. package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js.map +0 -1
  894. package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +0 -12
  895. package/dist/module/workflow-automation/entity/workflow-automation.entity.js +0 -59
  896. package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +0 -1
  897. package/dist/module/workflow-automation/interface/action.decorator.d.ts +0 -2
  898. package/dist/module/workflow-automation/interface/action.decorator.js +0 -8
  899. package/dist/module/workflow-automation/interface/action.decorator.js.map +0 -1
  900. package/dist/module/workflow-automation/interface/action.interface.d.ts +0 -4
  901. package/dist/module/workflow-automation/interface/action.interface.js +0 -3
  902. package/dist/module/workflow-automation/interface/action.interface.js.map +0 -1
  903. package/dist/module/workflow-automation/service/action-registery.service.d.ts +0 -11
  904. package/dist/module/workflow-automation/service/action-registery.service.js +0 -46
  905. package/dist/module/workflow-automation/service/action-registery.service.js.map +0 -1
  906. package/dist/module/workflow-automation/service/workflow-automation-engine.service.d.ts +0 -14
  907. package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +0 -116
  908. package/dist/module/workflow-automation/service/workflow-automation-engine.service.js.map +0 -1
  909. package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +0 -56
  910. package/dist/module/workflow-automation/service/workflow-automation.service.js +0 -224
  911. package/dist/module/workflow-automation/service/workflow-automation.service.js.map +0 -1
  912. package/dist/module/workflow-automation/workflow-automation.module.d.ts +0 -2
  913. package/dist/module/workflow-automation/workflow-automation.module.js +0 -47
  914. package/dist/module/workflow-automation/workflow-automation.module.js.map +0 -1
  915. package/dist/resources/properties.module.d.ts +0 -2
  916. package/dist/resources/properties.module.js +0 -25
  917. package/dist/resources/properties.module.js.map +0 -1
  918. package/dist/resources/properties.yaml.d.ts +0 -2
  919. package/dist/resources/properties.yaml.js +0 -10
  920. package/dist/resources/properties.yaml.js.map +0 -1
  921. package/dist/table.config.d.ts +0 -40
  922. package/dist/table.config.js +0 -128
  923. package/dist/table.config.js.map +0 -1
  924. package/dist/tsconfig.build.tsbuildinfo +0 -1
  925. package/dist/utils/dto/excel-data.dto.d.ts +0 -7
  926. package/dist/utils/dto/excel-data.dto.js +0 -16
  927. package/dist/utils/dto/excel-data.dto.js.map +0 -1
  928. package/dist/utils/dto/excelsheet-data.dto.d.ts +0 -5
  929. package/dist/utils/dto/excelsheet-data.dto.js +0 -3
  930. package/dist/utils/dto/excelsheet-data.dto.js.map +0 -1
  931. package/dist/utils/service/base64util.service.d.ts +0 -4
  932. package/dist/utils/service/base64util.service.js +0 -21
  933. package/dist/utils/service/base64util.service.js.map +0 -1
  934. package/dist/utils/service/clockIDGenUtil.service.d.ts +0 -8
  935. package/dist/utils/service/clockIDGenUtil.service.js +0 -32
  936. package/dist/utils/service/clockIDGenUtil.service.js.map +0 -1
  937. package/dist/utils/service/codeGenerator.service.d.ts +0 -3
  938. package/dist/utils/service/codeGenerator.service.js +0 -19
  939. package/dist/utils/service/codeGenerator.service.js.map +0 -1
  940. package/dist/utils/service/dateUtil.service.d.ts +0 -3
  941. package/dist/utils/service/dateUtil.service.js +0 -28
  942. package/dist/utils/service/dateUtil.service.js.map +0 -1
  943. package/dist/utils/service/encryptUtil.service.d.ts +0 -9
  944. package/dist/utils/service/encryptUtil.service.js +0 -112
  945. package/dist/utils/service/encryptUtil.service.js.map +0 -1
  946. package/dist/utils/service/excel-helper.service.d.ts +0 -9
  947. package/dist/utils/service/excel-helper.service.js +0 -56
  948. package/dist/utils/service/excel-helper.service.js.map +0 -1
  949. package/dist/utils/service/excelUtil.service.d.ts +0 -3
  950. package/dist/utils/service/excelUtil.service.js +0 -17
  951. package/dist/utils/service/excelUtil.service.js.map +0 -1
  952. package/dist/utils/service/file-util.service.d.ts +0 -3
  953. package/dist/utils/service/file-util.service.js +0 -15
  954. package/dist/utils/service/file-util.service.js.map +0 -1
  955. package/dist/utils/service/json-util.service.d.ts +0 -3
  956. package/dist/utils/service/json-util.service.js +0 -24
  957. package/dist/utils/service/json-util.service.js.map +0 -1
  958. package/dist/utils/service/loggingUtil.service.d.ts +0 -4
  959. package/dist/utils/service/loggingUtil.service.js +0 -36
  960. package/dist/utils/service/loggingUtil.service.js.map +0 -1
  961. package/dist/utils/service/reflection-helper.service.d.ts +0 -10
  962. package/dist/utils/service/reflection-helper.service.js +0 -66
  963. package/dist/utils/service/reflection-helper.service.js.map +0 -1
  964. package/dist/utils/service/wbsCodeGen.service.d.ts +0 -3
  965. package/dist/utils/service/wbsCodeGen.service.js +0 -20
  966. package/dist/utils/service/wbsCodeGen.service.js.map +0 -1
  967. package/dist/utils/utils.module.d.ts +0 -2
  968. package/dist/utils/utils.module.js +0 -38
  969. package/dist/utils/utils.module.js.map +0 -1
@@ -1,298 +0,0 @@
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 WrapperService_1;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.WrapperService = void 0;
14
- const common_1 = require("@nestjs/common");
15
- const typeorm_1 = require("typeorm");
16
- const integration_service_1 = require("./integration.service");
17
- const calendar_event_service_1 = require("./calendar-event.service");
18
- const ics_service_1 = require("../../ics/service/ics.service");
19
- let WrapperService = WrapperService_1 = class WrapperService {
20
- constructor(datasource, integrationService, googleService, icsService) {
21
- this.datasource = datasource;
22
- this.integrationService = integrationService;
23
- this.googleService = googleService;
24
- this.icsService = icsService;
25
- this.logger = new common_1.Logger(WrapperService_1.name);
26
- }
27
- async sendMailWrapper(payload, loggedInUser) {
28
- try {
29
- this.logger.log(`sendMailWrapper called. User: ${JSON.stringify(loggedInUser)}, Payload: ${JSON.stringify(payload)}`);
30
- const { level_id, level_type, organization_id } = loggedInUser;
31
- this.logger.debug(`Fetching configs for level_id=${level_id}, level_type=${level_type}`);
32
- const configs = await this.datasource.query(`SELECT * FROM frm_integration_config
33
- WHERE level_id = ?
34
- AND level_type = ?
35
- AND status = 1
36
- AND integration_type = 'EMAIL'`, [level_id, level_type]);
37
- this.logger.debug(`Configs found: ${JSON.stringify(configs)}`);
38
- let templateCode;
39
- if (payload.templateCode) {
40
- this.logger.debug(`Looking up templateCode=${payload.templateCode} for current level`);
41
- const template = await this.datasource.query(`SELECT rich_text FROM frm_wf_comm_template WHERE code = ? AND level_id = ? AND level_type = ? LIMIT 1`, [payload.templateCode, level_id, level_type]);
42
- this.logger.debug(`Template lookup result: ${JSON.stringify(template)}`);
43
- if (template && template.length > 0) {
44
- templateCode = template[0]?.rich_text;
45
- }
46
- else {
47
- this.logger.warn(`No template found for templateCode=${payload.templateCode} and current level`);
48
- }
49
- }
50
- let payloadSendMail;
51
- if (configs && configs.length > 0) {
52
- this.logger.debug(`Using user-level configs`);
53
- payloadSendMail = {
54
- levelId: level_id,
55
- levelType: level_type,
56
- app_code: 'DEFAULT',
57
- to: payload.to,
58
- message: payload.message,
59
- subject: payload.subject,
60
- type: 'EMAIL',
61
- cc: payload.cc,
62
- bcc: payload.bcc,
63
- html: payload.html,
64
- templateId: payload.templateId,
65
- variables: payload.variables,
66
- organization_id: loggedInUser.organization_id,
67
- };
68
- }
69
- else {
70
- this.logger.warn(`No user-level configs found. Falling back to ORG-level`);
71
- const fallbackConfigs = await this.datasource.query(`SELECT * FROM frm_integration_config
72
- WHERE level_type = 'ORG'
73
- AND integration_type = 'EMAIL'
74
- AND status = 1`);
75
- this.logger.debug(`ORG-level configs: ${JSON.stringify(fallbackConfigs)}`);
76
- if (!fallbackConfigs || fallbackConfigs.length === 0) {
77
- this.logger.warn('No active email communication config found');
78
- }
79
- payloadSendMail = {
80
- levelId: 1,
81
- levelType: 'ORG',
82
- app_code: 'DEFAULT',
83
- to: payload.to,
84
- message: payload.message,
85
- subject: payload.subject,
86
- type: 'EMAIL',
87
- cc: payload.cc,
88
- bcc: payload.bcc,
89
- html: payload.html,
90
- variables: payload.variables,
91
- organization_id: loggedInUser.organization_id,
92
- };
93
- }
94
- this.logger.debug(`Final payload for IntegrationService: ${JSON.stringify(payloadSendMail)}`);
95
- const result = await this.integrationService.sendGenericMessage(payloadSendMail);
96
- this.logger.log(`sendMailWrapper SUCCESS. Result: ${JSON.stringify(result)}`);
97
- return {
98
- success: true,
99
- data: result,
100
- };
101
- }
102
- catch (error) {
103
- this.logger.error(`sendMailWrapper ERROR: ${error.message}`, error.stack);
104
- return {
105
- success: false,
106
- error: error.message,
107
- };
108
- }
109
- }
110
- async sendCommunicationWrapperService(entity, loggedInUser) {
111
- try {
112
- this.logger.log(`sendCommunicationWrapper called. User: ${JSON.stringify(loggedInUser)}, Payload: ${JSON.stringify(entity)}`);
113
- const { level_id, level_type, appcode, organization_id } = loggedInUser;
114
- this.logger.debug(`Checking active ${entity.type || 'EMAIL'} configs for level_id=${level_id}, level_type=${level_type}, app_code=${appcode}`);
115
- let configs = await this.integrationService.getActiveConfigs(level_id, level_type, appcode, entity.type || 'EMAIL');
116
- let effectiveLevelId = level_id;
117
- let effectiveLevelType = level_type;
118
- if (!configs || configs.length === 0) {
119
- this.logger.warn(`No active configs found for ${level_type}:${level_id}, falling back to ORG-level`);
120
- configs = await this.integrationService.getActiveConfigs(1, 'ORG', appcode, entity.type || 'EMAIL');
121
- effectiveLevelId = 1;
122
- effectiveLevelType = 'ORG';
123
- }
124
- if (!configs || configs.length === 0) {
125
- this.logger.error('No active configurations found at any level.');
126
- throw new Error('No active configurations found.');
127
- }
128
- let resolvedTemplateId = entity?.templateId;
129
- if (entity.template_code) {
130
- this.logger.debug(`Looking up template for code=${entity.template_code}, level_id=${level_id}, level_type=${level_type}`);
131
- let templates = await this.datasource.query(`SELECT id FROM frm_wf_comm_template
132
- WHERE code = ?
133
- AND level_id = ?
134
- AND level_type = ?
135
- LIMIT 1`, [entity.template_code, level_id, level_type]);
136
- if (!templates || templates.length === 0) {
137
- this.logger.warn(`No template found for ${entity.template_code} at provided level. Falling back to ORG-level.`);
138
- templates = await this.datasource.query(`SELECT id FROM frm_wf_comm_template
139
- WHERE code = ?
140
- AND level_type = 'ORG'
141
- AND organization_id = ?
142
- LIMIT 1`, [entity.template_code, organization_id]);
143
- }
144
- if (templates && templates.length > 0) {
145
- resolvedTemplateId = templates[0]?.id;
146
- this.logger.debug(`Template resolved for code=${entity.template_code}, id=${resolvedTemplateId}`);
147
- }
148
- else {
149
- this.logger.warn(`No template found for code=${entity.template_code} at any level.`);
150
- }
151
- }
152
- const mailPayload = {
153
- to: entity.to,
154
- subject: entity.subject,
155
- html: entity.message,
156
- cc: entity?.cc,
157
- bcc: entity?.bcc,
158
- templateId: resolvedTemplateId,
159
- message: entity.message,
160
- type: entity.type || 'EMAIL',
161
- levelId: effectiveLevelId,
162
- levelType: effectiveLevelType,
163
- app_code: appcode,
164
- user_id: loggedInUser.id,
165
- entity_type: entity.entity_type,
166
- entity_id: entity.entity_id,
167
- attachments: entity.attachments,
168
- mediaUrl: entity.mediaUrl,
169
- organization_id: organization_id,
170
- };
171
- this.logger.debug(`Final payload for sendGenericMessage: ${JSON.stringify(mailPayload)}`);
172
- const result = await this.integrationService.sendGenericMessage(mailPayload);
173
- this.logger.log(`sendCommunicationWrapper SUCCESS. Result: ${JSON.stringify(result)}`);
174
- return result;
175
- }
176
- catch (error) {
177
- this.logger.error(`sendCommunicationWrapper ERROR: ${error.message}`, error.stack);
178
- return {
179
- success: false,
180
- error: error.message,
181
- };
182
- }
183
- }
184
- async scheduleMeetingWrapper(payload, loggedInUser, mapped_entities) {
185
- try {
186
- this.logger.log(`scheduleMeetingWrapper called by user=${loggedInUser?.id || 'unknown'} Payload=${JSON.stringify(payload)}`);
187
- const cleanEmails = (arr = []) => arr.filter((e) => e && e.trim() !== '').map((e) => e.trim());
188
- const toList = Array.isArray(payload.to) ? cleanEmails(payload.to) : [];
189
- payload.attendees = [
190
- ...toList.map((e) => ({ email: e })),
191
- ...(payload.attendees || []).flatMap((a) => typeof a === 'string'
192
- ? [{ email: a }]
193
- : Array.isArray(a?.email)
194
- ? a.email.map((e) => ({ email: e }))
195
- : a?.email
196
- ? [{ email: a.email }]
197
- : []),
198
- ];
199
- let integrationConfig = await this.integrationService.getSingleActiveConfig(payload.level_id, payload.level_type, payload.app_code, 'EMAIL');
200
- if (integrationConfig) {
201
- return {
202
- success: true,
203
- data: await this.sendIcsInvite(payload, payload.level_id, payload.level_type, payload.app_code, loggedInUser.organization_id, mapped_entities),
204
- };
205
- }
206
- this.logger.log(`No user-level config found, checking ORG-level...`);
207
- const orgConfigs = await this.datasource.query(`SELECT * FROM frm_integration_config
208
- WHERE level_id = 1
209
- AND level_type = 'ORG'
210
- AND integration_type = 'EMAIL'
211
- AND app_code ='DEFAULT'
212
- AND status = 1`, []);
213
- integrationConfig = await this.integrationService.getSingleActiveConfig(1, 'ORG', 'DEFAULT', 'EMAIL');
214
- this.logger.debug(`ORG configs found: ${JSON.stringify(orgConfigs)}`);
215
- if (integrationConfig) {
216
- return {
217
- success: true,
218
- data: await this.sendIcsInvite(payload, 1, 'ORG', 'DEFAULT', loggedInUser.organization_id, mapped_entities),
219
- };
220
- }
221
- }
222
- catch (error) {
223
- this.logger.error(`scheduleMeetingWrapper ERROR: ${error.message}`, error.stack);
224
- return { success: false, error: error.message };
225
- }
226
- }
227
- async getConfigCred(configId) {
228
- this.logger.debug(`Fetching config JSON for configId=${configId}`);
229
- const configRes = await this.datasource.query(`SELECT config_json
230
- FROM frm_integration_config
231
- WHERE id = ?`, [configId]);
232
- this.logger.debug(`Config fetch result: ${JSON.stringify(configRes)}`);
233
- return configRes?.[0]?.config_json || null;
234
- }
235
- async sendIcsInvite(payload, levelId, levelType, appCode, organizationId, mapped_entities) {
236
- this.logger.log(`Generating ICS file. Payload: ${JSON.stringify(payload)}`);
237
- if (payload.template_code) {
238
- let templates = await this.datasource.query(`SELECT id FROM frm_wf_comm_template
239
- WHERE code = ?
240
- ORDER BY 1 DESC
241
- LIMIT 1`, [payload.template_code]);
242
- this.logger.log(`template by code ${JSON.stringify(payload)}`);
243
- if (templates && templates.length > 0) {
244
- payload['templateId'] = templates[0].id;
245
- }
246
- }
247
- let activeConfig = await this.integrationService.getSingleActiveConfig(levelId, levelType, appCode, 'EMAIL');
248
- const base64String = await this.icsService.generateIcs(payload, activeConfig?.config_json);
249
- this.logger.debug(`ICS generated (base64 length: ${base64String?.length})`);
250
- const attendeeEmails = payload.attendees?.flatMap((a) => Array.isArray(a.email) ? a.email : [a.email]) || [];
251
- const toList = Array.from(new Set([
252
- ...(Array.isArray(payload.to)
253
- ? payload.to
254
- : payload.to
255
- ? [payload.to]
256
- : []),
257
- ...attendeeEmails,
258
- ].map((email) => email.toLowerCase().trim())));
259
- const payloadSendMail = {
260
- levelId,
261
- levelType,
262
- app_code: appCode,
263
- to: toList,
264
- message: payload.message,
265
- subject: payload.subject,
266
- type: 'EMAIL',
267
- cc: payload.cc,
268
- bcc: payload.bcc,
269
- html: payload.html,
270
- attachments: [
271
- {
272
- content: base64String,
273
- type: 'text/calendar',
274
- filename: 'invite.ics',
275
- disposition: 'attachment',
276
- },
277
- ],
278
- templateId: payload.templateId,
279
- entity_id: payload.entity_id,
280
- entity_type: payload.entity_type,
281
- organization_id: organizationId,
282
- mapped_entities,
283
- };
284
- this.logger.debug(`Final payload for ICS send: ${JSON.stringify(payloadSendMail)}`);
285
- const result = await this.integrationService.sendGenericMessage(payloadSendMail);
286
- this.logger.log(`ICS mail send result: ${JSON.stringify(result)}`);
287
- return result;
288
- }
289
- };
290
- exports.WrapperService = WrapperService;
291
- exports.WrapperService = WrapperService = WrapperService_1 = __decorate([
292
- (0, common_1.Injectable)(),
293
- __metadata("design:paramtypes", [typeorm_1.DataSource,
294
- integration_service_1.IntegrationService,
295
- calendar_event_service_1.GoogleService,
296
- ics_service_1.IcsMeetingService])
297
- ], WrapperService);
298
- //# sourceMappingURL=wrapper.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wrapper.service.js","sourceRoot":"","sources":["../../../../src/module/integration/service/wrapper.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,qCAAqC;AACrC,+DAA8E;AAC9E,qEAAyD;AACzD,+DAAuE;AAGhE,IAAM,cAAc,sBAApB,MAAM,cAAc;IAGzB,YACmB,UAAsB,EACtB,kBAAsC,EACtC,aAA4B,EAC5B,UAA6B;QAH7B,eAAU,GAAV,UAAU,CAAY;QACtB,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,kBAAa,GAAb,aAAa,CAAe;QAC5B,eAAU,GAAV,UAAU,CAAmB;QAN/B,WAAM,GAAG,IAAI,eAAM,CAAC,gBAAc,CAAC,IAAI,CAAC,CAAC;IAOvD,CAAC;IAKJ,KAAK,CAAC,eAAe,CAAC,OAAY,EAAE,YAAiB;QACnD,IAAI,CAAC;YACH,IAAI,CAAC,MAAM,CAAC,GAAG,CACb,iCAAiC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,cAAc,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CACrG,CAAC;YAEF,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,GAAG,YAAY,CAAC;YAG/D,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,iCAAiC,QAAQ,gBAAgB,UAAU,EAAE,CACtE,CAAC;YACF,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACzC;;;;0CAIkC,EAClC,CAAC,QAAQ,EAAE,UAAU,CAAC,CACvB,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CA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AAO,EAAE,OAAO,CAAC,OAAO;YACxB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,IAAI,EAAE,OAAO;YACb,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,YAAY;oBACrB,IAAI,EAAE,eAAe;oBACrB,QAAQ,EAAE,YAAY;oBACtB,WAAW,EAAE,YAAY;iBAC1B;aACF;YACD,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,eAAe,EAAE,cAAc;YAC/B,eAAe;SAChB,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,+BAA+B,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,CACjE,CAAC;QACF,MAAM,MAAM,GACV,MAAM,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;QACpE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,yBAAyB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACnE,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAreY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAKoB,oBAAU;QACF,wCAAkB;QACvB,sCAAa;QAChB,+BAAiB;GAPrC,cAAc,CAqe1B"}
@@ -1,13 +0,0 @@
1
- import { ConfigService } from '@nestjs/config';
2
- import { IntegrationStrategy, IntegrationResult } from '../integration.strategy';
3
- export declare class GmailApiStrategy implements IntegrationStrategy {
4
- private readonly configService;
5
- constructor(configService: ConfigService);
6
- sendMessage(to: string | string[], message: string, config: any): Promise<IntegrationResult>;
7
- validateConfig(config: any): boolean;
8
- private setupOAuth2Client;
9
- refreshAccessToken(config: any): Promise<string>;
10
- validateConnection(config: any): Promise<boolean>;
11
- private buildSimpleEmail;
12
- private buildMultipartEmail;
13
- }
@@ -1,195 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GmailApiStrategy = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const config_1 = require("@nestjs/config");
15
- const googleapis_1 = require("googleapis");
16
- let GmailApiStrategy = class GmailApiStrategy {
17
- constructor(configService) {
18
- this.configService = configService;
19
- }
20
- async sendMessage(to, message, config) {
21
- try {
22
- if (!config || !config.refreshToken) {
23
- throw new Error('Invalid Gmail API configuration - missing refresh token');
24
- }
25
- const { subject, cc, bcc, attachments } = config;
26
- console.log('---- Using Google SDK Gmail API ----');
27
- const oauth2Client = await this.setupOAuth2Client(config);
28
- const gmail = googleapis_1.google.gmail({ version: 'v1', auth: oauth2Client });
29
- const toRecipients = Array.isArray(to) ? to.join(', ') : to;
30
- const ccRecipients = cc
31
- ? Array.isArray(cc)
32
- ? cc.join(', ')
33
- : cc
34
- : undefined;
35
- const bccRecipients = bcc
36
- ? Array.isArray(bcc)
37
- ? bcc.join(', ')
38
- : bcc
39
- : undefined;
40
- const emailContent = attachments && attachments.length > 0
41
- ? this.buildMultipartEmail(toRecipients, ccRecipients, bccRecipients, subject, config.richText || message, attachments)
42
- : this.buildSimpleEmail(toRecipients, ccRecipients, bccRecipients, subject, config.richText || message);
43
- const encodedMessage = Buffer.from(emailContent)
44
- .toString('base64')
45
- .replace(/\+/g, '-')
46
- .replace(/\//g, '_')
47
- .replace(/=+$/, '');
48
- const result = await gmail.users.messages.send({
49
- userId: 'me',
50
- requestBody: {
51
- raw: encodedMessage,
52
- },
53
- });
54
- const credentials = oauth2Client.credentials;
55
- const freshAccessToken = credentials.access_token;
56
- return {
57
- success: true,
58
- messageId: result.data.id || undefined,
59
- provider: 'gmail',
60
- service: 'API',
61
- timestamp: new Date(),
62
- message: "Email sent successfully"
63
- };
64
- }
65
- catch (error) {
66
- console.error('---- Gmail SDK API Error ----');
67
- console.error('Error message:', error.message);
68
- console.error('Error details:', error.response?.data || error.errors);
69
- return {
70
- success: false,
71
- provider: 'gmail',
72
- service: 'API',
73
- error: error.response?.data?.error?.message ||
74
- error.message ||
75
- 'Gmail API error',
76
- timestamp: new Date(),
77
- };
78
- }
79
- }
80
- validateConfig(config) {
81
- if (!config)
82
- return false;
83
- return config.refreshToken && typeof config.refreshToken === 'string';
84
- }
85
- async setupOAuth2Client(config) {
86
- try {
87
- const { refreshToken } = config;
88
- if (!refreshToken) {
89
- throw new Error('Missing refresh token for OAuth2 setup');
90
- }
91
- const clientId = this.configService.get('CLIENT_ID');
92
- const clientSecret = this.configService.get('CLIENT_SECRET');
93
- const callbackurl = this.configService.get('CALLBACK_URL');
94
- if (!clientId || !clientSecret) {
95
- throw new Error('Gmail OAuth system credentials not configured');
96
- }
97
- console.log('---- Setting up OAuth2 client with Google SDK ----');
98
- const oauth2Client = new googleapis_1.google.auth.OAuth2(clientId, clientSecret, callbackurl);
99
- oauth2Client.setCredentials({
100
- refresh_token: refreshToken,
101
- });
102
- await oauth2Client.getAccessToken();
103
- console.log('---- OAuth2 client setup completed ----');
104
- return oauth2Client;
105
- }
106
- catch (error) {
107
- console.error('Failed to setup OAuth2 client:', error.message);
108
- throw new Error(`Failed to setup Gmail OAuth2 client: ${error.message}`);
109
- }
110
- }
111
- async refreshAccessToken(config) {
112
- try {
113
- const oauth2Client = await this.setupOAuth2Client(config);
114
- const { token } = await oauth2Client.getAccessToken();
115
- if (!token) {
116
- throw new Error('No access token received from OAuth2 client');
117
- }
118
- console.log('---- Token refreshed successfully via Google SDK ----');
119
- return token;
120
- }
121
- catch (error) {
122
- console.error('Failed to refresh access token via Google SDK:', error.message);
123
- throw new Error(`Failed to refresh Gmail access token: ${error.message}`);
124
- }
125
- }
126
- async validateConnection(config) {
127
- try {
128
- if (!this.validateConfig(config)) {
129
- return false;
130
- }
131
- const oauth2Client = await this.setupOAuth2Client(config);
132
- const gmail = googleapis_1.google.gmail({ version: 'v1', auth: oauth2Client });
133
- const profile = await gmail.users.getProfile({
134
- userId: 'me',
135
- });
136
- return !!(profile.data && profile.data.emailAddress);
137
- }
138
- catch (error) {
139
- console.error('Gmail connection validation failed:', error.message);
140
- return false;
141
- }
142
- }
143
- buildSimpleEmail(to, cc, bcc, subject, message) {
144
- const emailLines = [`To: ${to}`, `Subject: ${subject || 'Notification'}`];
145
- if (cc) {
146
- emailLines.push(`Cc: ${cc}`);
147
- }
148
- if (bcc) {
149
- emailLines.push(`Bcc: ${bcc}`);
150
- }
151
- emailLines.push('Content-Type: text/html; charset=utf-8');
152
- emailLines.push('');
153
- emailLines.push(message || '');
154
- return emailLines.join('\n');
155
- }
156
- buildMultipartEmail(to, cc, bcc, subject, message, attachments) {
157
- const boundary = `----GmailBoundary${Date.now()}${Math.random().toString(36).substr(2, 9)}`;
158
- const emailLines = [`To: ${to}`, `Subject: ${subject || 'Notification'}`];
159
- if (cc) {
160
- emailLines.push(`Cc: ${cc}`);
161
- }
162
- if (bcc) {
163
- emailLines.push(`Bcc: ${bcc}`);
164
- }
165
- emailLines.push(`Content-Type: multipart/mixed; boundary="${boundary}"`);
166
- emailLines.push('');
167
- emailLines.push(`--${boundary}`);
168
- emailLines.push('Content-Type: text/html; charset=utf-8');
169
- emailLines.push('');
170
- emailLines.push(message || '');
171
- if (attachments) {
172
- for (const attachment of attachments) {
173
- emailLines.push(`--${boundary}`);
174
- emailLines.push(`Content-Type: ${attachment.contentType}`);
175
- emailLines.push(`Content-Disposition: ${attachment.disposition || 'attachment'}; filename="${attachment.filename}"`);
176
- emailLines.push('Content-Transfer-Encoding: base64');
177
- if (attachment.contentId) {
178
- emailLines.push(`Content-ID: <${attachment.contentId}>`);
179
- }
180
- emailLines.push('');
181
- const base64Content = attachment.content;
182
- const chunks = base64Content.match(/.{1,76}/g) || [];
183
- emailLines.push(...chunks);
184
- }
185
- }
186
- emailLines.push(`--${boundary}--`);
187
- return emailLines.join('\n');
188
- }
189
- };
190
- exports.GmailApiStrategy = GmailApiStrategy;
191
- exports.GmailApiStrategy = GmailApiStrategy = __decorate([
192
- (0, common_1.Injectable)(),
193
- __metadata("design:paramtypes", [config_1.ConfigService])
194
- ], GmailApiStrategy);
195
- //# sourceMappingURL=gmail-api.strategy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gmail-api.strategy.js","sourceRoot":"","sources":["../../../../../src/module/integration/strategies/email/gmail-api.strategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,2CAAoC;AAS7B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IACzD,CAAC;IAED,KAAK,CAAC,WAAW,CACf,EAAqB,EACrB,OAAe,EACf,MAAW;QAEX,IAAI,CAAC;YACH,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;gBACpC,MAAM,IAAI,KAAK,CACb,yDAAyD,CAC1D,CAAC;YACJ,CAAC;YAED,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;YAEjD,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;YAEpD,MAAM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,IAAA,mBAAU,GAAE;qCAEiC,sBAAa;GAD9C,gBAAgB,CA6Q5B"}
@@ -1,5 +0,0 @@
1
- import { IntegrationStrategy, IntegrationResult } from '../integration.strategy';
2
- export declare class OutlookApiStrategy implements IntegrationStrategy {
3
- sendMessage(to: string, message: string, config: any): Promise<IntegrationResult>;
4
- validateConfig(config: any): boolean;
5
- }
@@ -1,44 +0,0 @@
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.OutlookApiStrategy = void 0;
10
- const common_1 = require("@nestjs/common");
11
- let OutlookApiStrategy = class OutlookApiStrategy {
12
- async sendMessage(to, message, config) {
13
- try {
14
- if (!this.validateConfig(config)) {
15
- throw new Error('Invalid Outlook API configuration');
16
- }
17
- console.log('Sending email via Outlook API to:', to);
18
- return {
19
- success: true,
20
- messageId: `outlook-${Date.now()}`,
21
- provider: 'outlook',
22
- service: 'API',
23
- timestamp: new Date(),
24
- };
25
- }
26
- catch (error) {
27
- return {
28
- success: false,
29
- provider: 'outlook',
30
- service: 'API',
31
- error: error.message,
32
- timestamp: new Date(),
33
- };
34
- }
35
- }
36
- validateConfig(config) {
37
- return config && config.clientId && config.clientSecret && config.tenantId;
38
- }
39
- };
40
- exports.OutlookApiStrategy = OutlookApiStrategy;
41
- exports.OutlookApiStrategy = OutlookApiStrategy = __decorate([
42
- (0, common_1.Injectable)()
43
- ], OutlookApiStrategy);
44
- //# sourceMappingURL=outlook-api.strategy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"outlook-api.strategy.js","sourceRoot":"","sources":["../../../../../src/module/integration/strategies/email/outlook-api.strategy.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAOrC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,KAAK,CAAC,WAAW,CACf,EAAU,EACV,OAAe,EACf,MAAW;QAEX,IAAI,CAAC;YACH,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;gBACjC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;YACvD,CAAC;YAID,OAAO,CAAC,GAAG,CAAC,mCAAmC,EAAE,EAAE,CAAC,CAAC;YAErD,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,SAAS,EAAE,WAAW,IAAI,CAAC,GAAG,EAAE,EAAE;gBAClC,QAAQ,EAAE,SAAS;gBACnB,OAAO,EAAE,KAAK;gBACd,SAAS,EAAE,IAAI,IAAI,EAAE;aACtB,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,QAAQ,EAAE,SAAS;gBACnB,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,KAAK,CAAC,OAAO;gBACpB,SAAS,EAAE,IAAI,IAAI,EAAE;aACtB,CAAC;QACJ,CAAC;IACH,CAAC;IAED,cAAc,CAAC,MAAW;QACxB,OAAO,MAAM,IAAI,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,YAAY,IAAI,MAAM,CAAC,QAAQ,CAAC;IAC7E,CAAC;CACF,CAAA;AApCY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;GACA,kBAAkB,CAoC9B"}
@@ -1,5 +0,0 @@
1
- import { IntegrationStrategy, IntegrationResult } from '../integration.strategy';
2
- export declare class OutlookStrategy implements IntegrationStrategy {
3
- sendMessage(to: string, message: string, config: any): Promise<IntegrationResult>;
4
- validateConfig(config: any): boolean;
5
- }