easywork-common-lib 1.0.378 → 1.0.380

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 (348) hide show
  1. package/dist/common/index.d.ts +0 -1
  2. package/dist/common/index.js +0 -1
  3. package/dist/common/index.js.map +1 -1
  4. package/dist/entities/app_config/app-config.entity.d.ts +1 -1
  5. package/dist/entities/app_config/app-config.entity.js +2 -2
  6. package/dist/entities/app_config/app-config.entity.js.map +1 -1
  7. package/dist/entities/currency.entity.d.ts +1 -1
  8. package/dist/entities/currency.entity.js +2 -2
  9. package/dist/entities/currency.entity.js.map +1 -1
  10. package/dist/entities/drive/attached_object.entity.d.ts +1 -1
  11. package/dist/entities/drive/attached_object.entity.js +2 -2
  12. package/dist/entities/drive/attached_object.entity.js.map +1 -1
  13. package/dist/entities/drive/file.entity.d.ts +1 -1
  14. package/dist/entities/drive/file.entity.js +2 -2
  15. package/dist/entities/drive/file.entity.js.map +1 -1
  16. package/dist/entities/drive/folder.entity.d.ts +1 -1
  17. package/dist/entities/drive/folder.entity.js +2 -2
  18. package/dist/entities/drive/folder.entity.js.map +1 -1
  19. package/dist/entities/easyapp/filter-view.entity.d.ts +1 -1
  20. package/dist/entities/easyapp/filter-view.entity.js +2 -2
  21. package/dist/entities/easyapp/filter-view.entity.js.map +1 -1
  22. package/dist/entities/email.entity.d.ts +1 -1
  23. package/dist/entities/email.entity.js +2 -2
  24. package/dist/entities/email.entity.js.map +1 -1
  25. package/dist/entities/group.entity.d.ts +1 -1
  26. package/dist/entities/group.entity.js +2 -2
  27. package/dist/entities/group.entity.js.map +1 -1
  28. package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +1 -1
  29. package/dist/entities/helpers/sales/common/client_sources.entity.js +2 -2
  30. package/dist/entities/helpers/sales/common/client_sources.entity.js.map +1 -1
  31. package/dist/entities/helpers/sales/common/client_types.entity.d.ts +1 -1
  32. package/dist/entities/helpers/sales/common/client_types.entity.js +2 -2
  33. package/dist/entities/helpers/sales/common/client_types.entity.js.map +1 -1
  34. package/dist/entities/helpers/sales/lead/h_lead_source.entity.d.ts +1 -1
  35. package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +2 -2
  36. package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +1 -1
  37. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.d.ts +1 -1
  38. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +2 -2
  39. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +1 -1
  40. package/dist/entities/helpers/sales/lead/h_lead_types.entity.d.ts +1 -1
  41. package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +2 -2
  42. package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +1 -1
  43. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.d.ts +1 -1
  44. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js +2 -2
  45. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js.map +1 -1
  46. package/dist/entities/imap-config.entity.d.ts +1 -1
  47. package/dist/entities/imap-config.entity.js +2 -2
  48. package/dist/entities/imap-config.entity.js.map +1 -1
  49. package/dist/entities/menu-permissions.entity.d.ts +1 -1
  50. package/dist/entities/menu-permissions.entity.js +2 -2
  51. package/dist/entities/menu-permissions.entity.js.map +1 -1
  52. package/dist/entities/notifications/notification.entity.d.ts +1 -1
  53. package/dist/entities/notifications/notification.entity.js +2 -2
  54. package/dist/entities/notifications/notification.entity.js.map +1 -1
  55. package/dist/entities/notifications/push-token.entity.d.ts +1 -1
  56. package/dist/entities/notifications/push-token.entity.js +2 -2
  57. package/dist/entities/notifications/push-token.entity.js.map +1 -1
  58. package/dist/entities/otp-log.entity.d.ts +1 -1
  59. package/dist/entities/otp-log.entity.js +2 -2
  60. package/dist/entities/otp-log.entity.js.map +1 -1
  61. package/dist/entities/permission.entity.d.ts +1 -1
  62. package/dist/entities/permission.entity.js +2 -2
  63. package/dist/entities/permission.entity.js.map +1 -1
  64. package/dist/entities/phone.entity.d.ts +1 -1
  65. package/dist/entities/phone.entity.js +2 -2
  66. package/dist/entities/phone.entity.js.map +1 -1
  67. package/dist/entities/protocol.entity.d.ts +1 -1
  68. package/dist/entities/protocol.entity.js +2 -2
  69. package/dist/entities/protocol.entity.js.map +1 -1
  70. package/dist/entities/refresh-token.entity.d.ts +1 -1
  71. package/dist/entities/refresh-token.entity.js +2 -2
  72. package/dist/entities/refresh-token.entity.js.map +1 -1
  73. package/dist/entities/role.entity.d.ts +1 -1
  74. package/dist/entities/role.entity.js +2 -2
  75. package/dist/entities/role.entity.js.map +1 -1
  76. package/dist/entities/sales/agente-intermediario.entity.d.ts +1 -1
  77. package/dist/entities/sales/agente-intermediario.entity.js +2 -2
  78. package/dist/entities/sales/agente-intermediario.entity.js.map +1 -1
  79. package/dist/entities/sales/beneficiarios/person.entity.d.ts +1 -1
  80. package/dist/entities/sales/beneficiarios/person.entity.js +2 -2
  81. package/dist/entities/sales/beneficiarios/person.entity.js.map +1 -1
  82. package/dist/entities/sales/beneficiarios/vehicle.entity.d.ts +1 -1
  83. package/dist/entities/sales/beneficiarios/vehicle.entity.js +2 -2
  84. package/dist/entities/sales/beneficiarios/vehicle.entity.js.map +1 -1
  85. package/dist/entities/sales/contact-comment.entity.d.ts +1 -1
  86. package/dist/entities/sales/contact-comment.entity.js +2 -2
  87. package/dist/entities/sales/contact-comment.entity.js.map +1 -1
  88. package/dist/entities/sales/contact.entity.d.ts +1 -1
  89. package/dist/entities/sales/contact.entity.js +2 -2
  90. package/dist/entities/sales/contact.entity.js.map +1 -1
  91. package/dist/entities/sales/lead-comment.entity.d.ts +1 -1
  92. package/dist/entities/sales/lead-comment.entity.js +2 -2
  93. package/dist/entities/sales/lead-comment.entity.js.map +1 -1
  94. package/dist/entities/sales/lead.entity.d.ts +1 -1
  95. package/dist/entities/sales/lead.entity.js +2 -2
  96. package/dist/entities/sales/lead.entity.js.map +1 -1
  97. package/dist/entities/sales/poliza-comment.entity.d.ts +1 -1
  98. package/dist/entities/sales/poliza-comment.entity.js +2 -2
  99. package/dist/entities/sales/poliza-comment.entity.js.map +1 -1
  100. package/dist/entities/sales/poliza.entity.d.ts +1 -1
  101. package/dist/entities/sales/poliza.entity.js +2 -2
  102. package/dist/entities/sales/poliza.entity.js.map +1 -1
  103. package/dist/entities/sales/poliza_siniestro.entity.d.ts +1 -1
  104. package/dist/entities/sales/poliza_siniestro.entity.js +2 -2
  105. package/dist/entities/sales/poliza_siniestro.entity.js.map +1 -1
  106. package/dist/entities/sales/receipt-sub-agente.entity.d.ts +1 -1
  107. package/dist/entities/sales/receipt-sub-agente.entity.js +2 -2
  108. package/dist/entities/sales/receipt-sub-agente.entity.js.map +1 -1
  109. package/dist/entities/sales/receipt.entity.d.ts +1 -1
  110. package/dist/entities/sales/receipt.entity.js +2 -2
  111. package/dist/entities/sales/receipt.entity.js.map +1 -1
  112. package/dist/entities/tag.entity.d.ts +1 -1
  113. package/dist/entities/tag.entity.js +2 -2
  114. package/dist/entities/tag.entity.js.map +1 -1
  115. package/dist/entities/thirdparty/email-config.entity.d.ts +1 -1
  116. package/dist/entities/thirdparty/email-config.entity.js +2 -2
  117. package/dist/entities/thirdparty/email-config.entity.js.map +1 -1
  118. package/dist/entities/thirdparty/email.entity.d.ts +1 -1
  119. package/dist/entities/thirdparty/email.entity.js +2 -2
  120. package/dist/entities/thirdparty/email.entity.js.map +1 -1
  121. package/dist/entities/thirdparty/oauth.entity.d.ts +1 -1
  122. package/dist/entities/thirdparty/oauth.entity.js +2 -2
  123. package/dist/entities/thirdparty/oauth.entity.js.map +1 -1
  124. package/dist/entities/thirdparty/service.entity.d.ts +1 -1
  125. package/dist/entities/thirdparty/service.entity.js +2 -2
  126. package/dist/entities/thirdparty/service.entity.js.map +1 -1
  127. package/dist/entities/thirdparty/user-email-relation.entity.d.ts +1 -1
  128. package/dist/entities/thirdparty/user-email-relation.entity.js +2 -2
  129. package/dist/entities/thirdparty/user-email-relation.entity.js.map +1 -1
  130. package/dist/entities/tools/calendar/event.entity.d.ts +2 -1
  131. package/dist/entities/tools/calendar/event.entity.js +2 -1
  132. package/dist/entities/tools/calendar/event.entity.js.map +1 -1
  133. package/dist/entities/tools/task-comment.entity.d.ts +1 -1
  134. package/dist/entities/tools/task-comment.entity.js +2 -2
  135. package/dist/entities/tools/task-comment.entity.js.map +1 -1
  136. package/dist/entities/tools/task.entity.d.ts +1 -1
  137. package/dist/entities/tools/task.entity.js +2 -2
  138. package/dist/entities/tools/task.entity.js.map +1 -1
  139. package/package.json +1 -1
  140. package/tsconfig.json +1 -1
  141. package/tsconfig.tsbuildinfo +1 -1
  142. package/dist/common/@types/enums/crm.enum.d.ts +0 -8
  143. package/dist/common/@types/enums/crm.enum.js +0 -14
  144. package/dist/common/@types/enums/crm.enum.js.map +0 -1
  145. package/dist/common/@types/enums/index.d.ts +0 -3
  146. package/dist/common/@types/enums/index.js +0 -20
  147. package/dist/common/@types/enums/index.js.map +0 -1
  148. package/dist/common/@types/enums/misc.enum.d.ts +0 -60
  149. package/dist/common/@types/enums/misc.enum.js +0 -81
  150. package/dist/common/@types/enums/misc.enum.js.map +0 -1
  151. package/dist/common/@types/enums/permission.enum.d.ts +0 -13
  152. package/dist/common/@types/enums/permission.enum.js +0 -19
  153. package/dist/common/@types/enums/permission.enum.js.map +0 -1
  154. package/dist/common/@types/index.d.ts +0 -2
  155. package/dist/common/@types/index.js +0 -19
  156. package/dist/common/@types/index.js.map +0 -1
  157. package/dist/common/@types/interfaces/authentication.interface.d.ts +0 -17
  158. package/dist/common/@types/interfaces/authentication.interface.js +0 -3
  159. package/dist/common/@types/interfaces/authentication.interface.js.map +0 -1
  160. package/dist/common/@types/interfaces/crm.interface.d.ts +0 -131
  161. package/dist/common/@types/interfaces/crm.interface.js +0 -3
  162. package/dist/common/@types/interfaces/crm.interface.js.map +0 -1
  163. package/dist/common/@types/interfaces/file.interface.d.ts +0 -14
  164. package/dist/common/@types/interfaces/file.interface.js +0 -3
  165. package/dist/common/@types/interfaces/file.interface.js.map +0 -1
  166. package/dist/common/@types/interfaces/index.d.ts +0 -5
  167. package/dist/common/@types/interfaces/index.js +0 -22
  168. package/dist/common/@types/interfaces/index.js.map +0 -1
  169. package/dist/common/@types/interfaces/mail.interface.d.ts +0 -9
  170. package/dist/common/@types/interfaces/mail.interface.js +0 -3
  171. package/dist/common/@types/interfaces/mail.interface.js.map +0 -1
  172. package/dist/common/@types/interfaces/validator.interface.d.ts +0 -41
  173. package/dist/common/@types/interfaces/validator.interface.js +0 -3
  174. package/dist/common/@types/interfaces/validator.interface.js.map +0 -1
  175. package/dist/common/constants/app.contants.d.ts +0 -16
  176. package/dist/common/constants/app.contants.js +0 -78
  177. package/dist/common/constants/app.contants.js.map +0 -1
  178. package/dist/common/constants/index.d.ts +0 -2
  179. package/dist/common/constants/index.js +0 -19
  180. package/dist/common/constants/index.js.map +0 -1
  181. package/dist/common/constants/regex.constant.d.ts +0 -6
  182. package/dist/common/constants/regex.constant.js +0 -10
  183. package/dist/common/constants/regex.constant.js.map +0 -1
  184. package/dist/common/database/base.entity.js +0 -142
  185. package/dist/common/database/base.entity.js.map +0 -1
  186. package/dist/common/database/index.d.ts +0 -1
  187. package/dist/common/database/index.js +0 -18
  188. package/dist/common/database/index.js.map +0 -1
  189. package/dist/common/dtos/index.d.ts +0 -1
  190. package/dist/common/dtos/index.js +0 -18
  191. package/dist/common/dtos/index.js.map +0 -1
  192. package/dist/common/dtos/send-notification.dto.d.ts +0 -11
  193. package/dist/common/dtos/send-notification.dto.js +0 -60
  194. package/dist/common/dtos/send-notification.dto.js.map +0 -1
  195. package/dist/common/enums/drive.enum.d.ts +0 -20
  196. package/dist/common/enums/drive.enum.js +0 -26
  197. package/dist/common/enums/drive.enum.js.map +0 -1
  198. package/dist/common/enums/index.d.ts +0 -4
  199. package/dist/common/enums/index.js +0 -21
  200. package/dist/common/enums/index.js.map +0 -1
  201. package/dist/common/enums/notification.enum.d.ts +0 -32
  202. package/dist/common/enums/notification.enum.js +0 -39
  203. package/dist/common/enums/notification.enum.js.map +0 -1
  204. package/dist/common/enums/sales.enum.d.ts +0 -31
  205. package/dist/common/enums/sales.enum.js +0 -41
  206. package/dist/common/enums/sales.enum.js.map +0 -1
  207. package/dist/common/enums/tools.enum.d.ts +0 -19
  208. package/dist/common/enums/tools.enum.js +0 -26
  209. package/dist/common/enums/tools.enum.js.map +0 -1
  210. package/dist/common/functions/cripto.d.ts +0 -1
  211. package/dist/common/functions/cripto.js +0 -8
  212. package/dist/common/functions/cripto.js.map +0 -1
  213. package/dist/common/functions/image.d.ts +0 -2
  214. package/dist/common/functions/image.js +0 -14
  215. package/dist/common/functions/image.js.map +0 -1
  216. package/dist/common/functions/index.d.ts +0 -2
  217. package/dist/common/functions/index.js +0 -19
  218. package/dist/common/functions/index.js.map +0 -1
  219. package/dist/common/helpers/app.utils.d.ts +0 -5
  220. package/dist/common/helpers/app.utils.js +0 -32
  221. package/dist/common/helpers/app.utils.js.map +0 -1
  222. package/dist/common/helpers/helpers.utils.d.ts +0 -5
  223. package/dist/common/helpers/helpers.utils.js +0 -26
  224. package/dist/common/helpers/helpers.utils.js.map +0 -1
  225. package/dist/common/helpers/index.d.ts +0 -2
  226. package/dist/common/helpers/index.js +0 -19
  227. package/dist/common/helpers/index.js.map +0 -1
  228. package/dist/common/interceptors/index.d.ts +0 -1
  229. package/dist/common/interceptors/index.js +0 -18
  230. package/dist/common/interceptors/index.js.map +0 -1
  231. package/dist/common/interceptors/security.interceptor.d.ts +0 -5
  232. package/dist/common/interceptors/security.interceptor.js +0 -22
  233. package/dist/common/interceptors/security.interceptor.js.map +0 -1
  234. package/dist/entities/helpers/index.js +0 -21
  235. package/dist/entities/helpers/index.js.map +0 -1
  236. package/dist/entities/helpers/sales/contact/contact_sources.entity.d.ts +0 -5
  237. package/dist/entities/helpers/sales/contact/contact_sources.entity.js +0 -36
  238. package/dist/entities/helpers/sales/contact/contact_sources.entity.js.map +0 -1
  239. package/dist/entities/helpers/sales/contact/contact_types.entity.d.ts +0 -5
  240. package/dist/entities/helpers/sales/contact/contact_types.entity.js +0 -36
  241. package/dist/entities/helpers/sales/contact/contact_types.entity.js.map +0 -1
  242. package/dist/entities/helpers/sales/index.js +0 -23
  243. package/dist/entities/helpers/sales/index.js.map +0 -1
  244. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.d.ts +0 -5
  245. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js +0 -30
  246. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js.map +0 -1
  247. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.d.ts +0 -5
  248. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js +0 -30
  249. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js.map +0 -1
  250. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.d.ts +0 -5
  251. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js +0 -33
  252. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js.map +0 -1
  253. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.d.ts +0 -6
  254. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +0 -39
  255. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +0 -1
  256. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.d.ts +0 -6
  257. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +0 -39
  258. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +0 -1
  259. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.d.ts +0 -5
  260. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js +0 -30
  261. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js.map +0 -1
  262. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.d.ts +0 -6
  263. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js +0 -36
  264. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js.map +0 -1
  265. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.d.ts +0 -5
  266. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +0 -33
  267. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +0 -1
  268. package/dist/entities/helpers/sales/poliza/index.js +0 -26
  269. package/dist/entities/helpers/sales/poliza/index.js.map +0 -1
  270. package/dist/entities/imap-folder.entity.d.ts +0 -7
  271. package/dist/entities/imap-folder.entity.js +0 -41
  272. package/dist/entities/imap-folder.entity.js.map +0 -1
  273. package/dist/entities/oauth.entity.d.ts +0 -16
  274. package/dist/entities/oauth.entity.js +0 -83
  275. package/dist/entities/oauth.entity.js.map +0 -1
  276. package/dist/entities/profile.entity.js +0 -55
  277. package/dist/entities/profile.entity.js.map +0 -1
  278. package/dist/entities/thirdparty/email-config.d.ts +0 -1
  279. package/dist/entities/thirdparty/email-config.js +0 -3
  280. package/dist/entities/thirdparty/email-config.js.map +0 -1
  281. package/dist/entities/tools/task-list-field.d.ts +0 -5
  282. package/dist/entities/tools/task-list-field.js +0 -39
  283. package/dist/entities/tools/task-list-field.js.map +0 -1
  284. package/dist/entities/user/group.entity.d.ts +0 -5
  285. package/dist/entities/user/group.entity.js +0 -33
  286. package/dist/entities/user/group.entity.js.map +0 -1
  287. package/dist/entities/user/index.d.ts +0 -6
  288. package/dist/entities/user/index.js +0 -23
  289. package/dist/entities/user/index.js.map +0 -1
  290. package/dist/entities/user/menu-permissions.entity.d.ts +0 -7
  291. package/dist/entities/user/menu-permissions.entity.js +0 -42
  292. package/dist/entities/user/menu-permissions.entity.js.map +0 -1
  293. package/dist/entities/user/profile.entity.d.ts +0 -9
  294. package/dist/entities/user/profile.entity.js +0 -56
  295. package/dist/entities/user/profile.entity.js.map +0 -1
  296. package/dist/entities/user/role.entity.d.ts +0 -5
  297. package/dist/entities/user/role.entity.js +0 -36
  298. package/dist/entities/user/role.entity.js.map +0 -1
  299. package/dist/entities/user/user.entity.d.ts +0 -28
  300. package/dist/entities/user/user.entity.js +0 -160
  301. package/dist/entities/user/user.entity.js.map +0 -1
  302. package/dist/entities/user_entity/group.entity.d.ts +0 -5
  303. package/dist/entities/user_entity/group.entity.js +0 -33
  304. package/dist/entities/user_entity/group.entity.js.map +0 -1
  305. package/dist/entities/user_entity/index.d.ts +0 -6
  306. package/dist/entities/user_entity/index.js +0 -23
  307. package/dist/entities/user_entity/index.js.map +0 -1
  308. package/dist/entities/user_entity/menu-permissions.entity.d.ts +0 -7
  309. package/dist/entities/user_entity/menu-permissions.entity.js +0 -42
  310. package/dist/entities/user_entity/menu-permissions.entity.js.map +0 -1
  311. package/dist/entities/user_entity/profile.entity.d.ts +0 -9
  312. package/dist/entities/user_entity/profile.entity.js +0 -56
  313. package/dist/entities/user_entity/profile.entity.js.map +0 -1
  314. package/dist/entities/user_entity/role.entity.d.ts +0 -5
  315. package/dist/entities/user_entity/role.entity.js +0 -36
  316. package/dist/entities/user_entity/role.entity.js.map +0 -1
  317. package/dist/entities/user_entity/user.entity.d.ts +0 -28
  318. package/dist/entities/user_entity/user.entity.js +0 -160
  319. package/dist/entities/user_entity/user.entity.js.map +0 -1
  320. package/dist/eslint.config.d.ts +0 -2
  321. package/dist/eslint.config.js +0 -46
  322. package/dist/eslint.config.js.map +0 -1
  323. package/dist/modules/notifier/notifier.module.d.ts +0 -4
  324. package/dist/modules/notifier/notifier.module.js +0 -52
  325. package/dist/modules/notifier/notifier.module.js.map +0 -1
  326. package/dist/modules/notifier/notifier.service.d.ts +0 -19
  327. package/dist/modules/notifier/notifier.service.js +0 -231
  328. package/dist/modules/notifier/notifier.service.js.map +0 -1
  329. package/dist/modules/notifier/scheduler.service.d.ts +0 -9
  330. package/dist/modules/notifier/scheduler.service.js +0 -40
  331. package/dist/modules/notifier/scheduler.service.js.map +0 -1
  332. package/dist/modules/queue/notifiers/calendar.notifier.d.ts +0 -2
  333. package/dist/modules/queue/notifiers/calendar.notifier.js +0 -17
  334. package/dist/modules/queue/notifiers/calendar.notifier.js.map +0 -1
  335. package/dist/modules/queue/scheduler.service.js +0 -40
  336. package/dist/modules/queue/scheduler.service.js.map +0 -1
  337. package/dist/modules/queue/subservices/calendar.service.d.ts +0 -2
  338. package/dist/modules/queue/subservices/calendar.service.js +0 -17
  339. package/dist/modules/queue/subservices/calendar.service.js.map +0 -1
  340. package/dist/modules/queue/subservices/contact.service.d.ts +0 -7
  341. package/dist/modules/queue/subservices/contact.service.js +0 -49
  342. package/dist/modules/queue/subservices/contact.service.js.map +0 -1
  343. package/dist/modules/queue/subservices/index.d.ts +0 -3
  344. package/dist/modules/queue/subservices/index.js +0 -20
  345. package/dist/modules/queue/subservices/index.js.map +0 -1
  346. package/dist/modules/queue/subservices/task.service.d.ts +0 -12
  347. package/dist/modules/queue/subservices/task.service.js +0 -173
  348. package/dist/modules/queue/subservices/task.service.js.map +0 -1
@@ -1,28 +0,0 @@
1
- import { BaseEntity } from "../../common/database/base.entity";
2
- import { Profile } from "../profile.entity";
3
- import { Role } from "../role.entity";
4
- import { Tag } from "./../tag.entity";
5
- import { UserEmailRelation } from "./../thirdparty/user-email-relation.entity";
6
- import { PushToken } from "./../notifications/push-token.entity";
7
- import { Group } from "../group.entity";
8
- import { MenuPermissions } from "../menu-permissions.entity";
9
- export declare class User extends BaseEntity {
10
- username: string;
11
- email: string;
12
- bio: string;
13
- avatar: string;
14
- hash: string;
15
- twoFactorSecret?: string;
16
- isTwoFactorEnabled?: boolean;
17
- phone?: string;
18
- isVerified?: boolean;
19
- lastLogin?: Date;
20
- profile: Profile;
21
- roles?: Role[];
22
- tags: Tag[];
23
- pushTokens: PushToken[];
24
- emailRelations: UserEmailRelation[];
25
- groups?: Group[];
26
- menuPermissions: MenuPermissions;
27
- get name(): string;
28
- }
@@ -1,160 +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.User = void 0;
13
- const base_entity_1 = require("../../common/database/base.entity");
14
- const typeorm_1 = require("typeorm");
15
- const class_transformer_1 = require("class-transformer");
16
- const profile_entity_1 = require("../profile.entity");
17
- const role_entity_1 = require("../role.entity");
18
- const tag_entity_1 = require("./../tag.entity");
19
- const user_email_relation_entity_1 = require("./../thirdparty/user-email-relation.entity");
20
- const push_token_entity_1 = require("./../notifications/push-token.entity");
21
- const swagger_1 = require("@nestjs/swagger");
22
- const group_entity_1 = require("../group.entity");
23
- const menu_permissions_entity_1 = require("../menu-permissions.entity");
24
- let User = class User extends base_entity_1.BaseEntity {
25
- username;
26
- email;
27
- bio;
28
- avatar;
29
- hash;
30
- twoFactorSecret;
31
- isTwoFactorEnabled;
32
- phone;
33
- isVerified;
34
- lastLogin;
35
- profile;
36
- roles;
37
- tags;
38
- pushTokens;
39
- emailRelations;
40
- groups;
41
- menuPermissions;
42
- get name() {
43
- return `${this.profile?.firstName ?? ''} ${this.profile?.lastName ?? ''}`.trim();
44
- }
45
- };
46
- exports.User = User;
47
- __decorate([
48
- (0, swagger_1.ApiProperty)({ type: String, description: 'Unique username' }),
49
- (0, typeorm_1.Column)({ unique: true }),
50
- __metadata("design:type", String)
51
- ], User.prototype, "username", void 0);
52
- __decorate([
53
- (0, swagger_1.ApiProperty)({ type: String, description: 'Unique email address' }),
54
- (0, typeorm_1.Column)({ unique: true }),
55
- __metadata("design:type", String)
56
- ], User.prototype, "email", void 0);
57
- __decorate([
58
- (0, swagger_1.ApiProperty)({ type: String, description: 'User bio' }),
59
- (0, typeorm_1.Column)({ type: "text" }),
60
- __metadata("design:type", String)
61
- ], User.prototype, "bio", void 0);
62
- __decorate([
63
- (0, swagger_1.ApiProperty)({ type: String, description: 'User avatar URL' }),
64
- (0, typeorm_1.Column)({ type: "text" }),
65
- __metadata("design:type", String)
66
- ], User.prototype, "avatar", void 0);
67
- __decorate([
68
- (0, class_transformer_1.Exclude)(),
69
- (0, swagger_1.ApiProperty)({ type: String, description: 'Password hash', writeOnly: true }),
70
- (0, typeorm_1.Column)({ type: "text" }),
71
- __metadata("design:type", String)
72
- ], User.prototype, "hash", void 0);
73
- __decorate([
74
- (0, class_transformer_1.Exclude)(),
75
- (0, swagger_1.ApiProperty)({ type: String, description: 'Two-factor authentication secret', required: false, writeOnly: true }),
76
- (0, typeorm_1.Column)({ nullable: true }),
77
- __metadata("design:type", String)
78
- ], User.prototype, "twoFactorSecret", void 0);
79
- __decorate([
80
- (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is two-factor authentication enabled', default: false }),
81
- (0, typeorm_1.Column)({ default: false }),
82
- __metadata("design:type", Boolean)
83
- ], User.prototype, "isTwoFactorEnabled", void 0);
84
- __decorate([
85
- (0, swagger_1.ApiProperty)({ type: String, description: 'User phone number', required: false }),
86
- (0, typeorm_1.Column)({ unique: true }),
87
- __metadata("design:type", String)
88
- ], User.prototype, "phone", void 0);
89
- __decorate([
90
- (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is user verified', default: false }),
91
- (0, typeorm_1.Column)({ default: false }),
92
- __metadata("design:type", Boolean)
93
- ], User.prototype, "isVerified", void 0);
94
- __decorate([
95
- (0, swagger_1.ApiProperty)({ type: Date, description: 'Last login timestamp', required: false }),
96
- (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
97
- __metadata("design:type", Date)
98
- ], User.prototype, "lastLogin", void 0);
99
- __decorate([
100
- (0, swagger_1.ApiProperty)({ type: () => profile_entity_1.Profile, description: 'User profile' }),
101
- (0, typeorm_1.OneToOne)(() => profile_entity_1.Profile, {
102
- onDelete: "CASCADE",
103
- onUpdate: "CASCADE",
104
- eager: true
105
- }),
106
- (0, typeorm_1.JoinColumn)(),
107
- __metadata("design:type", profile_entity_1.Profile)
108
- ], User.prototype, "profile", void 0);
109
- __decorate([
110
- (0, swagger_1.ApiProperty)({ type: () => [role_entity_1.Role], description: 'Roles assigned to the user' }),
111
- (0, typeorm_1.ManyToMany)(() => role_entity_1.Role, {
112
- onDelete: "CASCADE",
113
- onUpdate: "CASCADE",
114
- }),
115
- (0, typeorm_1.JoinTable)(),
116
- __metadata("design:type", Array)
117
- ], User.prototype, "roles", void 0);
118
- __decorate([
119
- (0, swagger_1.ApiProperty)({ type: () => [tag_entity_1.Tag], description: 'Tags associated with the user' }),
120
- (0, typeorm_1.OneToMany)(() => tag_entity_1.Tag, (tag) => tag.user),
121
- __metadata("design:type", Array)
122
- ], User.prototype, "tags", void 0);
123
- __decorate([
124
- (0, swagger_1.ApiProperty)({ type: () => [push_token_entity_1.PushToken], description: 'Push tokens associated with the user' }),
125
- (0, typeorm_1.OneToMany)(() => push_token_entity_1.PushToken, (pushToken) => pushToken.user),
126
- __metadata("design:type", Array)
127
- ], User.prototype, "pushTokens", void 0);
128
- __decorate([
129
- (0, swagger_1.ApiProperty)({ type: () => [user_email_relation_entity_1.UserEmailRelation], description: 'Email relations associated with the user' }),
130
- (0, typeorm_1.OneToMany)(() => user_email_relation_entity_1.UserEmailRelation, (relation) => relation.user),
131
- __metadata("design:type", Array)
132
- ], User.prototype, "emailRelations", void 0);
133
- __decorate([
134
- (0, swagger_1.ApiProperty)({ type: () => [group_entity_1.Group], description: 'Groups assigned to the user' }),
135
- (0, typeorm_1.ManyToMany)(() => group_entity_1.Group, {
136
- onDelete: "CASCADE",
137
- onUpdate: "CASCADE",
138
- }),
139
- (0, typeorm_1.JoinTable)(),
140
- __metadata("design:type", Array)
141
- ], User.prototype, "groups", void 0);
142
- __decorate([
143
- (0, swagger_1.ApiProperty)({ type: () => menu_permissions_entity_1.MenuPermissions, description: 'Menu Permissions' }),
144
- (0, typeorm_1.OneToOne)(() => menu_permissions_entity_1.MenuPermissions, {
145
- onDelete: "CASCADE",
146
- onUpdate: "CASCADE",
147
- eager: true
148
- }),
149
- (0, typeorm_1.JoinColumn)(),
150
- __metadata("design:type", menu_permissions_entity_1.MenuPermissions)
151
- ], User.prototype, "menuPermissions", void 0);
152
- __decorate([
153
- (0, swagger_1.ApiProperty)({ type: String, description: 'Full name of the user' }),
154
- __metadata("design:type", String),
155
- __metadata("design:paramtypes", [])
156
- ], User.prototype, "name", null);
157
- exports.User = User = __decorate([
158
- (0, typeorm_1.Entity)()
159
- ], User);
160
- //# sourceMappingURL=user.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/entities/user_entity/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAiG;AACjG,yDAA4C;AAC5C,sDAA4C;AAC5C,gDAAsC;AACtC,gDAAsC;AACtC,2FAA+E;AAC/E,4EAAiE;AACjE,6CAA8C;AAC9C,kDAAwC;AACxC,wEAA6D;AAGtD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAGlC,QAAQ,CAAU;IAIlB,KAAK,CAAU;IAIf,GAAG,CAAU;IAIb,MAAM,CAAU;IAKhB,IAAI,CAAU;IAKd,eAAe,CAAU;IAIzB,kBAAkB,CAAW;IAI7B,KAAK,CAAU;IAIf,UAAU,CAAW;IAIrB,SAAS,CAAQ;IASjB,OAAO,CAAU;IAQjB,KAAK,CAAU;IAIf,IAAI,CAAQ;IAIZ,UAAU,CAAc;IAIxB,cAAc,CAAsB;IAQpC,MAAM,CAAW;IASjB,eAAe,CAAkB;IAGj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BAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,yCAAe,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IAC7E,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,yCAAe,EAAE;QAC/B,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;IACD,IAAA,oBAAU,GAAE;8BACI,yCAAe;6CAAC;AAGjC;IAAC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;;;gCAGnE;eA7FU,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA8FhB"}
@@ -1,2 +0,0 @@
1
- declare const _exports: any;
2
- export = _exports;
@@ -1,46 +0,0 @@
1
- "use strict";
2
- const rubiin = require("@antfu/eslint-config").default;
3
- module.exports = rubiin({
4
- stylistic: {
5
- semi: true,
6
- quotes: "double",
7
- },
8
- yaml: true,
9
- jsonc: true,
10
- markdown: false,
11
- gitignore: true,
12
- typescript: {
13
- tsconfigPath: "tsconfig.json",
14
- },
15
- overrides: {
16
- test: {
17
- "ts/unbound-method": "off",
18
- },
19
- typescript: {
20
- "ts/no-misused-promises": [
21
- "error",
22
- {
23
- checksVoidReturn: false,
24
- },
25
- ],
26
- "ts/no-floating-promises": [
27
- "error",
28
- {
29
- ignoreIIFE: true,
30
- },
31
- ],
32
- "unicorn/prefer-top-level-await": "off",
33
- "unicorn/prevent-abbreviations": [
34
- "error",
35
- {
36
- ignore: ["\\.e2e*", "\\.spec*", "\\.decorator*", "\\*idx*"],
37
- allowList: {
38
- ProcessEnv: true,
39
- UUIDParam: true,
40
- },
41
- },
42
- ],
43
- },
44
- },
45
- });
46
- //# sourceMappingURL=eslint.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eslint.config.js","sourceRoot":"","sources":["../src/eslint.config.js"],"names":[],"mappings":";AAAA,MAAM,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC;AAEvD,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;IACtB,SAAS,EAAE;QACT,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,QAAQ;KACjB;IACD,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,YAAY,EAAE,eAAe;KAC9B;IACD,SAAS,EAAE;QACT,IAAI,EAAE;YACJ,mBAAmB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE;YACV,wBAAwB,EAAE;gBACxB,OAAO;gBACP;oBACE,gBAAgB,EAAE,KAAK;iBACxB;aACF;YACD,yBAAyB,EAAE;gBACzB,OAAO;gBACP;oBACE,UAAU,EAAE,IAAI;iBACjB;aACF;YACD,gCAAgC,EAAE,KAAK;YACvC,+BAA+B,EAAE;gBAC/B,OAAO;gBACP;oBACE,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,CAAC;oBAC3D,SAAS,EAAE;wBACT,UAAU,EAAE,IAAI;wBAChB,SAAS,EAAE,IAAI;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import { DynamicModule } from '@nestjs/common';
2
- export declare class EasyNotifierModule {
3
- static register(exchangeName: string, routingKey: string, rabbitMQUri: string): DynamicModule;
4
- }
@@ -1,52 +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 EasyNotifierModule_1;
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.EasyNotifierModule = void 0;
11
- const common_1 = require("@nestjs/common");
12
- const notifier_service_1 = require("./notifier.service");
13
- const nestjs_rabbitmq_1 = require("@golevelup/nestjs-rabbitmq");
14
- const scheduler_service_1 = require("./scheduler.service");
15
- let EasyNotifierModule = EasyNotifierModule_1 = class EasyNotifierModule {
16
- static register(exchangeName, routingKey, rabbitMQUri) {
17
- console.log(`EasyNotifierModule.register: exchangeName=${exchangeName}, routingKey=${routingKey}, rabbitMQUri=${rabbitMQUri}`);
18
- return {
19
- module: EasyNotifierModule_1,
20
- imports: [
21
- nestjs_rabbitmq_1.RabbitMQModule.forRoot(nestjs_rabbitmq_1.RabbitMQModule, {
22
- exchanges: [
23
- {
24
- name: exchangeName,
25
- type: 'topic',
26
- },
27
- ],
28
- uri: rabbitMQUri,
29
- }),
30
- ],
31
- providers: [
32
- {
33
- provide: 'EXCHANGE_NAME',
34
- useValue: exchangeName,
35
- },
36
- {
37
- provide: 'ROUTING_KEY',
38
- useValue: routingKey,
39
- },
40
- notifier_service_1.EasyNotifierService,
41
- scheduler_service_1.EasySchedulerService,
42
- ],
43
- exports: [notifier_service_1.EasyNotifierService, scheduler_service_1.EasySchedulerService],
44
- };
45
- }
46
- };
47
- exports.EasyNotifierModule = EasyNotifierModule;
48
- exports.EasyNotifierModule = EasyNotifierModule = EasyNotifierModule_1 = __decorate([
49
- (0, common_1.Global)(),
50
- (0, common_1.Module)({})
51
- ], EasyNotifierModule);
52
- //# sourceMappingURL=notifier.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifier.module.js","sourceRoot":"","sources":["../../../src/modules/notifier/notifier.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,yDAAyD;AACzD,gEAA4D;AAC5D,2DAA2D;AAIpD,IAAM,kBAAkB,0BAAxB,MAAM,kBAAkB;IAC3B,MAAM,CAAC,QAAQ,CAAC,YAAoB,EAAE,UAAkB,EAAE,WAAmB;QAEzE,OAAO,CAAC,GAAG,CAAC,6CAA6C,YAAY,gBAAgB,UAAU,iBAAiB,WAAW,EAAE,CAAC,CAAC;QAC/H,OAAO;YACH,MAAM,EAAE,oBAAkB;YAC1B,OAAO,EAAE;gBACL,gCAAc,CAAC,OAAO,CAAC,gCAAc,EAAE;oBACnC,SAAS,EAAE;wBACP;4BACI,IAAI,EAAE,YAAY;4BAClB,IAAI,EAAE,OAAO;yBAChB;qBACJ;oBACD,GAAG,EAAE,WAAW;iBACnB,CAAC;aACL;YACD,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,eAAe;oBACxB,QAAQ,EAAE,YAAY;iBACzB;gBACD;oBACI,OAAO,EAAE,aAAa;oBACtB,QAAQ,EAAE,UAAU;iBACvB;gBACD,sCAAmB;gBACnB,wCAAoB;aACvB;YACD,OAAO,EAAE,CAAC,sCAAmB,EAAE,wCAAoB,CAAC;SACvD,CAAC;IACN,CAAC;CACJ,CAAA;AAhCY,gDAAkB;6BAAlB,kBAAkB;IAF9B,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,kBAAkB,CAgC9B"}
@@ -1,19 +0,0 @@
1
- import { AmqpConnection } from "@golevelup/nestjs-rabbitmq";
2
- import { SendNotificationDto } from "../../common";
3
- import { Contact, ContactComment, Task, TaskComment } from "../../entities";
4
- export declare class EasyNotifierService {
5
- private readonly amqpConnection;
6
- private readonly exchangeName;
7
- private readonly routingKey;
8
- constructor(amqpConnection: AmqpConnection, exchangeName: string, routingKey: string);
9
- sendNotification(data: SendNotificationDto): Promise<void>;
10
- notifyTaskCompletion(task: Task, recipientsId: string[]): Promise<void>;
11
- notifyTaskOverdue(task: Task, recipientsId: string[]): Promise<void>;
12
- notifyTaskContinue(task: Task, recipientsId: string[]): Promise<void>;
13
- notifyNewTask(task: Task, recipientsId: string[]): Promise<void>;
14
- notifyTaskUpdate(task: Task, recipientsId: string[], changedFields: string[]): Promise<void>;
15
- notifyNewComment(task: Task, comment: TaskComment, recipientsId: string[]): Promise<void>;
16
- notifyNewCommentContact(contact: Contact, comment: ContactComment, recipientsId: string[]): Promise<void>;
17
- sendOTPPhone(code: string, recipientsId: string[]): Promise<void>;
18
- sendOTPEmail(code: string, recipientsId: string[]): Promise<void>;
19
- }
@@ -1,231 +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 __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.EasyNotifierService = void 0;
16
- const nestjs_rabbitmq_1 = require("@golevelup/nestjs-rabbitmq");
17
- const common_1 = require("@nestjs/common");
18
- const common_2 = require("../../common");
19
- const logger = new common_1.Logger("EasyNotifierService");
20
- let EasyNotifierService = class EasyNotifierService {
21
- amqpConnection;
22
- exchangeName;
23
- routingKey;
24
- constructor(amqpConnection, exchangeName, routingKey) {
25
- this.amqpConnection = amqpConnection;
26
- this.exchangeName = exchangeName;
27
- this.routingKey = routingKey;
28
- }
29
- async sendNotification(data) {
30
- logger.debug(`Sending notification: ${JSON.stringify(data)}`);
31
- await this.amqpConnection.publish(this.exchangeName, this.routingKey, data);
32
- }
33
- async notifyTaskCompletion(task, recipientsId) {
34
- const metadata = {
35
- taskId: task.id,
36
- taskOwnerId: task.createdBy.id,
37
- taskResponsibleId: task.responsible[0].id,
38
- };
39
- const notificationDto = {
40
- title: "Task Completed",
41
- content: `The task ${task.name} has been completed`,
42
- recipientsId,
43
- entityId: task.id,
44
- channels: [common_2.NotificationChannel.APP],
45
- category: common_2.NotificationCategory.TASK,
46
- subCategory: common_2.NotificationSubcategory.TASK_COMPLETED,
47
- metadata,
48
- };
49
- await this.sendNotification(notificationDto);
50
- }
51
- async notifyTaskOverdue(task, recipientsId) {
52
- const metadata = {
53
- taskId: task.id,
54
- taskOwnerId: task.createdBy.id,
55
- taskResponsibleId: task.responsible[0].id,
56
- };
57
- const notificationDto = {
58
- title: "Task Overdue",
59
- content: `La tarea [#${task.number}] - ${task.name} está atrasada`,
60
- recipientsId,
61
- entityId: task.id,
62
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
63
- category: common_2.NotificationCategory.TASK,
64
- subCategory: common_2.NotificationSubcategory.TASK_OVERDUE,
65
- metadata,
66
- };
67
- await this.sendNotification(notificationDto);
68
- }
69
- async notifyTaskContinue(task, recipientsId) {
70
- const metadata = {
71
- taskId: task.id,
72
- taskOwnerId: task.createdBy.id,
73
- taskResponsibleId: task.responsible[0].id,
74
- };
75
- const notificationDto = {
76
- title: "Task Continue",
77
- content: `La tarea #${task.number} - ${task.name}, ha sido reanudada`,
78
- recipientsId,
79
- entityId: task.id,
80
- channels: [common_2.NotificationChannel.APP],
81
- category: common_2.NotificationCategory.TASK,
82
- subCategory: common_2.NotificationSubcategory.TASK_UPDATED,
83
- metadata,
84
- };
85
- await this.sendNotification(notificationDto);
86
- }
87
- async notifyNewTask(task, recipientsId) {
88
- const fechaLimite = task.deadline ? `<br/>Fecha Limite:${new Date(task.deadline)}` : ``;
89
- const observadores = task.observers.length > 0 ? `<br/>Observadores: ${task.observers.map(observer => observer.username).join(", ")}` : ``;
90
- const responsible = task.responsible.length > 0 ? `<br/>Persona Responsable: ${task.responsible.map(responsible => responsible.username).join(", ")}` : ``;
91
- const participants = task.participants.length > 0 ? `<br/>Participantes: ${task.participants.map(participant => participant.username).join(", ")}` : ``;
92
- const content = `Nueva Tarea agregada: <a href="/tools/tasks/task/${task.id}?show=true" style="color:blue">[${task.name}]</a>${responsible}${observadores}${participants}${fechaLimite}`;
93
- const metadata = {
94
- taskId: task.id,
95
- taskOwnerId: task.createdBy.id,
96
- taskResponsibleId: task.responsible[0].id,
97
- };
98
- const notificationDto = {
99
- title: "New Task",
100
- content,
101
- recipientsId,
102
- entityId: task.id,
103
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
104
- category: common_2.NotificationCategory.TASK,
105
- subCategory: common_2.NotificationSubcategory.NEW_TASK,
106
- metadata,
107
- };
108
- await this.sendNotification(notificationDto);
109
- }
110
- async notifyTaskUpdate(task, recipientsId, changedFields) {
111
- const metadata = {
112
- taskId: task.id,
113
- taskOwnerId: task.createdBy.id,
114
- taskResponsibleId: task.responsible[0].id,
115
- };
116
- const createNotificationDto = (content, recipients) => ({
117
- title: "Task Update",
118
- content,
119
- recipientsId: recipients,
120
- entityId: task.id,
121
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
122
- category: common_2.NotificationCategory.TASK,
123
- subCategory: common_2.NotificationSubcategory.TASK_UPDATED,
124
- metadata,
125
- });
126
- const taskLink = `<a href="/tools/tasks/task/${task.id}?show=true" style="color:blue">[${task.name}]</a>`;
127
- let content = `Tarea #${task.number} - ${taskLink}`;
128
- if (changedFields.length === 0) {
129
- content += " - ha sido actualizada";
130
- await this.sendNotification(createNotificationDto(content, recipientsId));
131
- return;
132
- }
133
- content += " - se actualizó:";
134
- if (changedFields.includes("deadline")) {
135
- if (task.deadline) {
136
- const deadLine = new Date(task.deadline);
137
- content += `<br/>Fecha Limite cambiada: ${deadLine.getDate()}/${deadLine.getMonth() + 1}/${deadLine.getFullYear()}`;
138
- }
139
- else {
140
- content += `<br/>Fecha Limite cambiada: Ninguna`;
141
- }
142
- }
143
- if (changedFields.includes("responsible")) {
144
- content = `Se le asignó la tarea #${task.number} - ${taskLink}`;
145
- await this.sendNotification(createNotificationDto(content, [task.responsible[0].id]));
146
- }
147
- else {
148
- if (changedFields.includes("name"))
149
- content += `<br/>Nombre: ${task.name}`;
150
- if (changedFields.includes("description"))
151
- content += `<br/>Descripción: ${task.description}`;
152
- if (changedFields.includes("status"))
153
- content += `<br/>Estado: ${task.status}`;
154
- await this.sendNotification(createNotificationDto(content, recipientsId));
155
- }
156
- }
157
- async notifyNewComment(task, comment, recipientsId) {
158
- const commentText = comment.comment.slice(0, 20);
159
- const content = `${comment.createdBy.name} comentó en la tarea: <a href="/tools/tasks/task/${task.id}?show=true" style="color:#170f6b">[${task.name}]</a>. Texto del comentario: ${commentText}`;
160
- const metadata = {
161
- taskId: task.id,
162
- commentId: comment.id,
163
- taskOwnerId: task.createdBy.id,
164
- commentOwnerId: comment.createdBy.id,
165
- taskResponsibleId: task.responsible[0].id,
166
- };
167
- const notificationDto = {
168
- title: "New Comment",
169
- content,
170
- recipientsId,
171
- entityId: task.id,
172
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
173
- category: common_2.NotificationCategory.TASK,
174
- subCategory: common_2.NotificationSubcategory.TASK_NEW_COMMNET,
175
- metadata,
176
- };
177
- await this.sendNotification(notificationDto);
178
- }
179
- async notifyNewCommentContact(contact, comment, recipientsId) {
180
- const commentText = comment.comment.slice(0, 20);
181
- const content = `${comment.createdBy.name} comentó en el contacto: <a href="/sales/contacts/contact/${contact.id}?show=true" style="color:#170f6b">[${contact.name}]</a>. Texto del comentario: ${commentText}`;
182
- const metadata = {
183
- contactId: contact.id,
184
- commentId: comment.id,
185
- contactOwnerId: contact.createdBy?.id,
186
- commentOwnerId: comment.createdBy?.id,
187
- contactAssignedId: contact?.assignedBy?.id,
188
- };
189
- const notificationDto = {
190
- title: "New Comment",
191
- content,
192
- recipientsId,
193
- entityId: contact.id,
194
- channels: [common_2.NotificationChannel.APP, common_2.NotificationChannel.SMS, common_2.NotificationChannel.PUSH],
195
- category: common_2.NotificationCategory.CRM,
196
- subCategory: common_2.NotificationSubcategory.CONTACT_NEW_COMMENT,
197
- metadata,
198
- };
199
- await this.sendNotification(notificationDto);
200
- }
201
- async sendOTPPhone(code, recipientsId) {
202
- const notificationDto = {
203
- title: "OTP Code",
204
- content: `Easywork: Your OTP code is ${code}`,
205
- recipientsId,
206
- channels: [common_2.NotificationChannel.SMS],
207
- category: common_2.NotificationCategory.OTP,
208
- subCategory: common_2.NotificationSubcategory.OTP,
209
- };
210
- await this.sendNotification(notificationDto);
211
- }
212
- async sendOTPEmail(code, recipientsId) {
213
- const notificationDto = {
214
- title: "OTP Code",
215
- content: code,
216
- recipientsId,
217
- channels: [common_2.NotificationChannel.EMAIL],
218
- category: common_2.NotificationCategory.OTP,
219
- subCategory: common_2.NotificationSubcategory.OTP,
220
- };
221
- await this.sendNotification(notificationDto);
222
- }
223
- };
224
- exports.EasyNotifierService = EasyNotifierService;
225
- exports.EasyNotifierService = EasyNotifierService = __decorate([
226
- (0, common_1.Injectable)(),
227
- __param(1, (0, common_1.Inject)('EXCHANGE_NAME')),
228
- __param(2, (0, common_1.Inject)('ROUTING_KEY')),
229
- __metadata("design:paramtypes", [nestjs_rabbitmq_1.AmqpConnection, String, String])
230
- ], EasyNotifierService);
231
- //# sourceMappingURL=notifier.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifier.service.js","sourceRoot":"","sources":["../../../src/modules/notifier/notifier.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAA4D;AAC5D,2CAA4D;AAC5D,yCAAuH;AAGvH,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,qBAAqB,CAAC,CAAC;AAG1C,IAAM,mBAAmB,GAAzB,MAAM,mBAAm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AAmB,CAAC,KAAK,CAAC;YACrC,QAAQ,EAAE,6BAAoB,CAAC,GAAG;YAClC,WAAW,EAAE,gCAAuB,CAAC,GAAG;SAC3C,CAAC;QAEF,MAAM,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;IACjD,CAAC;CACJ,CAAA;AAzOY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,eAAM,EAAC,eAAe,CAAC,CAAA;IACvB,WAAA,IAAA,eAAM,EAAC,aAAa,CAAC,CAAA;qCAFW,gCAAc;GAF1C,mBAAmB,CAyO/B"}
@@ -1,9 +0,0 @@
1
- import { AmqpConnection } from "@golevelup/nestjs-rabbitmq";
2
- import { Task } from "../../entities";
3
- export declare class EasySchedulerService {
4
- private readonly amqpConnection;
5
- private readonly exchangeName;
6
- private readonly routingKey;
7
- constructor(amqpConnection: AmqpConnection, exchangeName: string, routingKey: string);
8
- scheduleTaskAlerts(task: Task): Promise<void>;
9
- }
@@ -1,40 +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 __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.EasySchedulerService = void 0;
16
- const nestjs_rabbitmq_1 = require("@golevelup/nestjs-rabbitmq");
17
- const common_1 = require("@nestjs/common");
18
- const logger = new common_1.Logger("EasySchedulerService");
19
- let EasySchedulerService = class EasySchedulerService {
20
- amqpConnection;
21
- exchangeName;
22
- routingKey;
23
- constructor(amqpConnection, exchangeName, routingKey) {
24
- this.amqpConnection = amqpConnection;
25
- this.exchangeName = exchangeName;
26
- this.routingKey = routingKey;
27
- }
28
- async scheduleTaskAlerts(task) {
29
- logger.debug(`Add Task schedule Service...`);
30
- await this.amqpConnection.publish(this.exchangeName, this.routingKey, task);
31
- }
32
- };
33
- exports.EasySchedulerService = EasySchedulerService;
34
- exports.EasySchedulerService = EasySchedulerService = __decorate([
35
- (0, common_1.Injectable)(),
36
- __param(1, (0, common_1.Inject)('EXCHANGE_NAME')),
37
- __param(2, (0, common_1.Inject)('ROUTING_KEY')),
38
- __metadata("design:paramtypes", [nestjs_rabbitmq_1.AmqpConnection, String, String])
39
- ], EasySchedulerService);
40
- //# sourceMappingURL=scheduler.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scheduler.service.js","sourceRoot":"","sources":["../../../src/modules/notifier/scheduler.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAA4D;AAC5D,2CAA4D;AAG5D,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,sBAAsB,CAAC,CAAC;AAG3C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAER;IACyB;IACF;IAH5C,YACqB,cAA8B,EACL,YAAoB,EACtB,UAAkB;QAFzC,mBAAc,GAAd,cAAc,CAAgB;QACL,iBAAY,GAAZ,YAAY,CAAQ;QACtB,eAAU,GAAV,UAAU,CAAQ;IAC1D,CAAC;IAEL,KAAK,CAAC,kBAAkB,CAAC,IAAU;QACjC,MAAM,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAC7C,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;CAEJ,CAAA;AAZY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,eAAM,EAAC,eAAe,CAAC,CAAA;IACvB,WAAA,IAAA,eAAM,EAAC,aAAa,CAAC,CAAA;qCAFW,gCAAc;GAF1C,oBAAoB,CAYhC"}
@@ -1,2 +0,0 @@
1
- export declare class CalendarService {
2
- }