easywork-common-lib 1.0.463 → 1.0.466

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 (389) hide show
  1. package/.gitattributes +2 -2
  2. package/.github/workflows/npm-publish.yml +33 -33
  3. package/.vscode/settings.json +12 -12
  4. package/dist/common/@types/enums/crm.enum.d.ts +8 -0
  5. package/dist/common/@types/enums/crm.enum.js +14 -0
  6. package/dist/common/@types/enums/crm.enum.js.map +1 -0
  7. package/dist/common/@types/enums/index.d.ts +3 -0
  8. package/dist/common/@types/enums/index.js +20 -0
  9. package/dist/common/@types/enums/index.js.map +1 -0
  10. package/dist/common/@types/enums/misc.enum.d.ts +60 -0
  11. package/dist/common/@types/enums/misc.enum.js +81 -0
  12. package/dist/common/@types/enums/misc.enum.js.map +1 -0
  13. package/dist/common/@types/enums/permission.enum.d.ts +13 -0
  14. package/dist/common/@types/enums/permission.enum.js +19 -0
  15. package/dist/common/@types/enums/permission.enum.js.map +1 -0
  16. package/dist/common/@types/index.d.ts +2 -0
  17. package/dist/common/@types/index.js +19 -0
  18. package/dist/common/@types/index.js.map +1 -0
  19. package/dist/common/@types/interfaces/authentication.interface.d.ts +17 -0
  20. package/dist/common/@types/interfaces/authentication.interface.js +3 -0
  21. package/dist/common/@types/interfaces/authentication.interface.js.map +1 -0
  22. package/dist/common/@types/interfaces/crm.interface.d.ts +131 -0
  23. package/dist/common/@types/interfaces/crm.interface.js +3 -0
  24. package/dist/common/@types/interfaces/crm.interface.js.map +1 -0
  25. package/dist/common/@types/interfaces/file.interface.d.ts +14 -0
  26. package/dist/common/@types/interfaces/file.interface.js +3 -0
  27. package/dist/common/@types/interfaces/file.interface.js.map +1 -0
  28. package/dist/common/@types/interfaces/index.d.ts +5 -0
  29. package/dist/common/@types/interfaces/index.js +22 -0
  30. package/dist/common/@types/interfaces/index.js.map +1 -0
  31. package/dist/common/@types/interfaces/mail.interface.d.ts +9 -0
  32. package/dist/common/@types/interfaces/mail.interface.js +3 -0
  33. package/dist/common/@types/interfaces/mail.interface.js.map +1 -0
  34. package/dist/common/@types/interfaces/validator.interface.d.ts +41 -0
  35. package/dist/common/@types/interfaces/validator.interface.js +3 -0
  36. package/dist/common/@types/interfaces/validator.interface.js.map +1 -0
  37. package/dist/common/constants/app.contants.d.ts +31 -0
  38. package/dist/common/constants/app.contants.js +185 -0
  39. package/dist/common/constants/app.contants.js.map +1 -0
  40. package/dist/common/constants/index.d.ts +2 -0
  41. package/dist/common/constants/index.js +19 -0
  42. package/dist/common/constants/index.js.map +1 -0
  43. package/dist/common/constants/regex.constant.d.ts +6 -0
  44. package/dist/common/constants/regex.constant.js +10 -0
  45. package/dist/common/constants/regex.constant.js.map +1 -0
  46. package/dist/common/database/base.entity.d.ts +15 -0
  47. package/dist/common/database/base.entity.js +76 -0
  48. package/dist/common/database/base.entity.js.map +1 -0
  49. package/dist/common/database/comment.base.entity.d.ts +11 -0
  50. package/dist/common/database/comment.base.entity.js +83 -0
  51. package/dist/common/database/comment.base.entity.js.map +1 -0
  52. package/dist/common/database/index.d.ts +2 -0
  53. package/dist/common/database/index.js +19 -0
  54. package/dist/common/database/index.js.map +1 -0
  55. package/dist/common/dtos/index.d.ts +1 -0
  56. package/dist/common/dtos/index.js +18 -0
  57. package/dist/common/dtos/index.js.map +1 -0
  58. package/dist/common/dtos/send-notification.dto.d.ts +11 -0
  59. package/dist/common/dtos/send-notification.dto.js +60 -0
  60. package/dist/common/dtos/send-notification.dto.js.map +1 -0
  61. package/dist/common/enums/drive.enum.d.ts +20 -0
  62. package/dist/common/enums/drive.enum.js +26 -0
  63. package/dist/common/enums/drive.enum.js.map +1 -0
  64. package/dist/common/enums/index.d.ts +4 -0
  65. package/dist/common/enums/index.js +21 -0
  66. package/dist/common/enums/index.js.map +1 -0
  67. package/dist/common/enums/notification.enum.d.ts +32 -0
  68. package/dist/common/enums/notification.enum.js +39 -0
  69. package/dist/common/enums/notification.enum.js.map +1 -0
  70. package/dist/common/enums/sales.enum.d.ts +41 -0
  71. package/dist/common/enums/sales.enum.js +53 -0
  72. package/dist/common/enums/sales.enum.js.map +1 -0
  73. package/dist/common/enums/tools.enum.d.ts +19 -0
  74. package/dist/common/enums/tools.enum.js +26 -0
  75. package/dist/common/enums/tools.enum.js.map +1 -0
  76. package/dist/common/functions/cripto.d.ts +1 -0
  77. package/dist/common/functions/cripto.js +8 -0
  78. package/dist/common/functions/cripto.js.map +1 -0
  79. package/dist/common/functions/image.d.ts +2 -0
  80. package/dist/common/functions/image.js +14 -0
  81. package/dist/common/functions/image.js.map +1 -0
  82. package/dist/common/functions/index.d.ts +2 -0
  83. package/dist/common/functions/index.js +19 -0
  84. package/dist/common/functions/index.js.map +1 -0
  85. package/dist/common/helpers/app.utils.d.ts +5 -0
  86. package/dist/common/helpers/app.utils.js +32 -0
  87. package/dist/common/helpers/app.utils.js.map +1 -0
  88. package/dist/common/helpers/helpers.utils.d.ts +5 -0
  89. package/dist/common/helpers/helpers.utils.js +26 -0
  90. package/dist/common/helpers/helpers.utils.js.map +1 -0
  91. package/dist/common/helpers/index.d.ts +2 -0
  92. package/dist/common/helpers/index.js +19 -0
  93. package/dist/common/helpers/index.js.map +1 -0
  94. package/dist/common/index.d.ts +8 -0
  95. package/dist/common/index.js +25 -0
  96. package/dist/common/index.js.map +1 -0
  97. package/dist/common/interceptors/index.d.ts +1 -0
  98. package/dist/common/interceptors/index.js +18 -0
  99. package/dist/common/interceptors/index.js.map +1 -0
  100. package/dist/common/interceptors/security.interceptor.d.ts +5 -0
  101. package/dist/common/interceptors/security.interceptor.js +22 -0
  102. package/dist/common/interceptors/security.interceptor.js.map +1 -0
  103. package/dist/entities/app_config/app-config.entity.d.ts +5 -0
  104. package/dist/entities/app_config/app-config.entity.js +33 -0
  105. package/dist/entities/app_config/app-config.entity.js.map +1 -0
  106. package/dist/entities/currency.entity.d.ts +6 -0
  107. package/dist/entities/currency.entity.js +43 -0
  108. package/dist/entities/currency.entity.js.map +1 -0
  109. package/dist/entities/drive/attached_object.entity.d.ts +21 -0
  110. package/dist/entities/drive/attached_object.entity.js +154 -0
  111. package/dist/entities/drive/attached_object.entity.js.map +1 -0
  112. package/dist/entities/drive/file.entity.d.ts +19 -0
  113. package/dist/entities/drive/file.entity.js +130 -0
  114. package/dist/entities/drive/file.entity.js.map +1 -0
  115. package/dist/entities/drive/folder.entity.d.ts +18 -0
  116. package/dist/entities/drive/folder.entity.js +137 -0
  117. package/dist/entities/drive/folder.entity.js.map +1 -0
  118. package/dist/entities/drive/index.d.ts +3 -0
  119. package/dist/entities/drive/index.js +20 -0
  120. package/dist/entities/drive/index.js.map +1 -0
  121. package/dist/entities/easyapp/filter-view.entity.d.ts +7 -0
  122. package/dist/entities/easyapp/filter-view.entity.js +41 -0
  123. package/dist/entities/easyapp/filter-view.entity.js.map +1 -0
  124. package/dist/entities/email.entity.d.ts +5 -0
  125. package/dist/entities/email.entity.js +36 -0
  126. package/dist/entities/email.entity.js.map +1 -0
  127. package/dist/entities/group.entity.d.ts +5 -0
  128. package/dist/entities/group.entity.js +33 -0
  129. package/dist/entities/group.entity.js.map +1 -0
  130. package/dist/entities/helpers/entity_file.entity.d.ts +10 -0
  131. package/dist/entities/helpers/entity_file.entity.js +61 -0
  132. package/dist/entities/helpers/entity_file.entity.js.map +1 -0
  133. package/dist/entities/helpers/entity_folder.entity.d.ts +10 -0
  134. package/dist/entities/helpers/entity_folder.entity.js +61 -0
  135. package/dist/entities/helpers/entity_folder.entity.js.map +1 -0
  136. package/dist/entities/helpers/index.d.ts +4 -0
  137. package/dist/entities/helpers/index.js +21 -0
  138. package/dist/entities/helpers/index.js.map +1 -0
  139. package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +5 -0
  140. package/dist/entities/helpers/sales/common/client_sources.entity.js +36 -0
  141. package/dist/entities/helpers/sales/common/client_sources.entity.js.map +1 -0
  142. package/dist/entities/helpers/sales/common/client_types.entity.d.ts +5 -0
  143. package/dist/entities/helpers/sales/common/client_types.entity.js +36 -0
  144. package/dist/entities/helpers/sales/common/client_types.entity.js.map +1 -0
  145. package/dist/entities/helpers/sales/contact/contact_email.entity.d.ts +11 -0
  146. package/dist/entities/helpers/sales/contact/contact_email.entity.js +68 -0
  147. package/dist/entities/helpers/sales/contact/contact_email.entity.js.map +1 -0
  148. package/dist/entities/helpers/sales/contact/contact_insurance.entity.d.ts +11 -0
  149. package/dist/entities/helpers/sales/contact/contact_insurance.entity.js +68 -0
  150. package/dist/entities/helpers/sales/contact/contact_insurance.entity.js.map +1 -0
  151. package/dist/entities/helpers/sales/contact/contact_phone.entity.d.ts +11 -0
  152. package/dist/entities/helpers/sales/contact/contact_phone.entity.js +68 -0
  153. package/dist/entities/helpers/sales/contact/contact_phone.entity.js.map +1 -0
  154. package/dist/entities/helpers/sales/contact/index.d.ts +5 -0
  155. package/dist/entities/helpers/sales/contact/index.js +22 -0
  156. package/dist/entities/helpers/sales/contact/index.js.map +1 -0
  157. package/dist/entities/helpers/sales/index.d.ts +6 -0
  158. package/dist/entities/helpers/sales/index.js +23 -0
  159. package/dist/entities/helpers/sales/index.js.map +1 -0
  160. package/dist/entities/helpers/sales/lead/h_lead_source.entity.d.ts +4 -0
  161. package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +30 -0
  162. package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +1 -0
  163. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.d.ts +5 -0
  164. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +36 -0
  165. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +1 -0
  166. package/dist/entities/helpers/sales/lead/h_lead_types.entity.d.ts +4 -0
  167. package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +30 -0
  168. package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +1 -0
  169. package/dist/entities/helpers/sales/lead/index.d.ts +6 -0
  170. package/dist/entities/helpers/sales/lead/index.js +23 -0
  171. package/dist/entities/helpers/sales/lead/index.js.map +1 -0
  172. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.d.ts +4 -0
  173. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js +28 -0
  174. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js.map +1 -0
  175. package/dist/entities/helpers/sales/lead/lead_email.entity.d.ts +11 -0
  176. package/dist/entities/helpers/sales/lead/lead_email.entity.js +66 -0
  177. package/dist/entities/helpers/sales/lead/lead_email.entity.js.map +1 -0
  178. package/dist/entities/helpers/sales/lead/lead_phone.entity.d.ts +11 -0
  179. package/dist/entities/helpers/sales/lead/lead_phone.entity.js +66 -0
  180. package/dist/entities/helpers/sales/lead/lead_phone.entity.js.map +1 -0
  181. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.d.ts +5 -0
  182. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js +30 -0
  183. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js.map +1 -0
  184. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.d.ts +5 -0
  185. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js +33 -0
  186. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js.map +1 -0
  187. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.d.ts +6 -0
  188. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +39 -0
  189. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +1 -0
  190. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.d.ts +6 -0
  191. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +39 -0
  192. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +1 -0
  193. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.d.ts +5 -0
  194. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js +30 -0
  195. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js.map +1 -0
  196. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.d.ts +6 -0
  197. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js +36 -0
  198. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js.map +1 -0
  199. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.d.ts +5 -0
  200. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +33 -0
  201. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +1 -0
  202. package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.d.ts +8 -0
  203. package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js +53 -0
  204. package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js.map +1 -0
  205. package/dist/entities/helpers/sales/poliza/index.d.ts +10 -0
  206. package/dist/entities/helpers/sales/poliza/index.js +27 -0
  207. package/dist/entities/helpers/sales/poliza/index.js.map +1 -0
  208. package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +11 -0
  209. package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +68 -0
  210. package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +1 -0
  211. package/dist/entities/helpers/sales/poliza/poliza_insured.entity.d.ts +11 -0
  212. package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js +86 -0
  213. package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js.map +1 -0
  214. package/dist/entities/helpers/tools/index.d.ts +1 -0
  215. package/dist/entities/helpers/tools/index.js +18 -0
  216. package/dist/entities/helpers/tools/index.js.map +1 -0
  217. package/dist/entities/helpers/tools/task_crm.entity.d.ts +19 -0
  218. package/dist/entities/helpers/tools/task_crm.entity.js +136 -0
  219. package/dist/entities/helpers/tools/task_crm.entity.js.map +1 -0
  220. package/dist/entities/helpers/user/access_history.entity.d.ts +9 -0
  221. package/dist/entities/helpers/user/access_history.entity.js +58 -0
  222. package/dist/entities/helpers/user/access_history.entity.js.map +1 -0
  223. package/dist/entities/imap-config.entity.d.ts +11 -0
  224. package/dist/entities/imap-config.entity.js +61 -0
  225. package/dist/entities/imap-config.entity.js.map +1 -0
  226. package/dist/entities/index.d.ts +26 -0
  227. package/dist/entities/index.js +43 -0
  228. package/dist/entities/index.js.map +1 -0
  229. package/dist/entities/menu-permissions.entity.d.ts +7 -0
  230. package/dist/entities/menu-permissions.entity.js +42 -0
  231. package/dist/entities/menu-permissions.entity.js.map +1 -0
  232. package/dist/entities/notifications/index.d.ts +2 -0
  233. package/dist/entities/notifications/index.js +19 -0
  234. package/dist/entities/notifications/index.js.map +1 -0
  235. package/dist/entities/notifications/notification.entity.d.ts +15 -0
  236. package/dist/entities/notifications/notification.entity.js +119 -0
  237. package/dist/entities/notifications/notification.entity.js.map +1 -0
  238. package/dist/entities/notifications/push-token.entity.d.ts +7 -0
  239. package/dist/entities/notifications/push-token.entity.js +45 -0
  240. package/dist/entities/notifications/push-token.entity.js.map +1 -0
  241. package/dist/entities/otp-log.entity.d.ts +8 -0
  242. package/dist/entities/otp-log.entity.js +49 -0
  243. package/dist/entities/otp-log.entity.js.map +1 -0
  244. package/dist/entities/permission.entity.d.ts +7 -0
  245. package/dist/entities/permission.entity.js +46 -0
  246. package/dist/entities/permission.entity.js.map +1 -0
  247. package/dist/entities/phone.entity.d.ts +5 -0
  248. package/dist/entities/phone.entity.js +36 -0
  249. package/dist/entities/phone.entity.js.map +1 -0
  250. package/dist/entities/profile.entity.d.ts +9 -0
  251. package/dist/entities/profile.entity.js +56 -0
  252. package/dist/entities/profile.entity.js.map +1 -0
  253. package/dist/entities/protocol.entity.d.ts +8 -0
  254. package/dist/entities/protocol.entity.js +46 -0
  255. package/dist/entities/protocol.entity.js.map +1 -0
  256. package/dist/entities/refresh-token.entity.d.ts +8 -0
  257. package/dist/entities/refresh-token.entity.js +46 -0
  258. package/dist/entities/refresh-token.entity.js.map +1 -0
  259. package/dist/entities/role.entity.d.ts +6 -0
  260. package/dist/entities/role.entity.js +42 -0
  261. package/dist/entities/role.entity.js.map +1 -0
  262. package/dist/entities/sales/agente-intermediario.entity.d.ts +5 -0
  263. package/dist/entities/sales/agente-intermediario.entity.js +34 -0
  264. package/dist/entities/sales/agente-intermediario.entity.js.map +1 -0
  265. package/dist/entities/sales/beneficiarios/index.d.ts +2 -0
  266. package/dist/entities/sales/beneficiarios/index.js +19 -0
  267. package/dist/entities/sales/beneficiarios/index.js.map +1 -0
  268. package/dist/entities/sales/beneficiarios/person.entity.d.ts +10 -0
  269. package/dist/entities/sales/beneficiarios/person.entity.js +89 -0
  270. package/dist/entities/sales/beneficiarios/person.entity.js.map +1 -0
  271. package/dist/entities/sales/beneficiarios/vehicle.entity.d.ts +16 -0
  272. package/dist/entities/sales/beneficiarios/vehicle.entity.js +106 -0
  273. package/dist/entities/sales/beneficiarios/vehicle.entity.js.map +1 -0
  274. package/dist/entities/sales/contact-comment.entity.d.ts +5 -0
  275. package/dist/entities/sales/contact-comment.entity.js +32 -0
  276. package/dist/entities/sales/contact-comment.entity.js.map +1 -0
  277. package/dist/entities/sales/contact.entity.d.ts +49 -0
  278. package/dist/entities/sales/contact.entity.js +303 -0
  279. package/dist/entities/sales/contact.entity.js.map +1 -0
  280. package/dist/entities/sales/index.d.ts +12 -0
  281. package/dist/entities/sales/index.js +29 -0
  282. package/dist/entities/sales/index.js.map +1 -0
  283. package/dist/entities/sales/lead-comment.entity.d.ts +5 -0
  284. package/dist/entities/sales/lead-comment.entity.js +32 -0
  285. package/dist/entities/sales/lead-comment.entity.js.map +1 -0
  286. package/dist/entities/sales/lead.entity.d.ts +51 -0
  287. package/dist/entities/sales/lead.entity.js +344 -0
  288. package/dist/entities/sales/lead.entity.js.map +1 -0
  289. package/dist/entities/sales/poliza-comment.entity.d.ts +5 -0
  290. package/dist/entities/sales/poliza-comment.entity.js +32 -0
  291. package/dist/entities/sales/poliza-comment.entity.js.map +1 -0
  292. package/dist/entities/sales/poliza.entity.d.ts +112 -0
  293. package/dist/entities/sales/poliza.entity.js +1103 -0
  294. package/dist/entities/sales/poliza.entity.js.map +1 -0
  295. package/dist/entities/sales/poliza_siniestro.entity.d.ts +12 -0
  296. package/dist/entities/sales/poliza_siniestro.entity.js +72 -0
  297. package/dist/entities/sales/poliza_siniestro.entity.js.map +1 -0
  298. package/dist/entities/sales/receipt-comment.entity.d.ts +5 -0
  299. package/dist/entities/sales/receipt-comment.entity.js +32 -0
  300. package/dist/entities/sales/receipt-comment.entity.js.map +1 -0
  301. package/dist/entities/sales/receipt-sub-agente.entity.d.ts +5 -0
  302. package/dist/entities/sales/receipt-sub-agente.entity.js +35 -0
  303. package/dist/entities/sales/receipt-sub-agente.entity.js.map +1 -0
  304. package/dist/entities/sales/receipt.entity.d.ts +31 -0
  305. package/dist/entities/sales/receipt.entity.js +203 -0
  306. package/dist/entities/sales/receipt.entity.js.map +1 -0
  307. package/dist/entities/tag.entity.d.ts +8 -0
  308. package/dist/entities/tag.entity.js +53 -0
  309. package/dist/entities/tag.entity.js.map +1 -0
  310. package/dist/entities/thirdparty/email-config.entity.d.ts +14 -0
  311. package/dist/entities/thirdparty/email-config.entity.js +76 -0
  312. package/dist/entities/thirdparty/email-config.entity.js.map +1 -0
  313. package/dist/entities/thirdparty/email.entity.d.ts +17 -0
  314. package/dist/entities/thirdparty/email.entity.js +79 -0
  315. package/dist/entities/thirdparty/email.entity.js.map +1 -0
  316. package/dist/entities/thirdparty/oauth.entity.d.ts +18 -0
  317. package/dist/entities/thirdparty/oauth.entity.js +93 -0
  318. package/dist/entities/thirdparty/oauth.entity.js.map +1 -0
  319. package/dist/entities/thirdparty/service.entity.d.ts +6 -0
  320. package/dist/entities/thirdparty/service.entity.js +32 -0
  321. package/dist/entities/thirdparty/service.entity.js.map +1 -0
  322. package/dist/entities/thirdparty/user-email-relation.entity.d.ts +7 -0
  323. package/dist/entities/thirdparty/user-email-relation.entity.js +35 -0
  324. package/dist/entities/thirdparty/user-email-relation.entity.js.map +1 -0
  325. package/dist/entities/tools/calendar/event.entity.d.ts +19 -0
  326. package/dist/entities/tools/calendar/event.entity.js +132 -0
  327. package/dist/entities/tools/calendar/event.entity.js.map +1 -0
  328. package/dist/entities/tools/calendar/index.d.ts +1 -0
  329. package/dist/entities/tools/calendar/index.js +18 -0
  330. package/dist/entities/tools/calendar/index.js.map +1 -0
  331. package/dist/entities/tools/index.d.ts +4 -0
  332. package/dist/entities/tools/index.js +21 -0
  333. package/dist/entities/tools/index.js.map +1 -0
  334. package/dist/entities/tools/task-comment.entity.d.ts +6 -0
  335. package/dist/entities/tools/task-comment.entity.js +38 -0
  336. package/dist/entities/tools/task-comment.entity.js.map +1 -0
  337. package/dist/entities/tools/task-list-field.d.ts +5 -0
  338. package/dist/entities/tools/task-list-field.js +39 -0
  339. package/dist/entities/tools/task-list-field.js.map +1 -0
  340. package/dist/entities/tools/task.entity.d.ts +34 -0
  341. package/dist/entities/tools/task.entity.js +221 -0
  342. package/dist/entities/tools/task.entity.js.map +1 -0
  343. package/dist/entities/user.entity.d.ts +29 -0
  344. package/dist/entities/user.entity.js +168 -0
  345. package/dist/entities/user.entity.js.map +1 -0
  346. package/dist/eslint.config.d.ts +2 -0
  347. package/dist/eslint.config.js +46 -0
  348. package/dist/eslint.config.js.map +1 -0
  349. package/dist/grpc/drive/drive.proto +179 -0
  350. package/dist/index.d.ts +3 -0
  351. package/dist/index.js +20 -0
  352. package/dist/index.js.map +1 -0
  353. package/dist/modules/index.d.ts +4 -0
  354. package/dist/modules/index.js +21 -0
  355. package/dist/modules/index.js.map +1 -0
  356. package/dist/modules/queue/event.service.d.ts +9 -0
  357. package/dist/modules/queue/event.service.js +40 -0
  358. package/dist/modules/queue/event.service.js.map +1 -0
  359. package/dist/modules/queue/notifier.service.d.ts +15 -0
  360. package/dist/modules/queue/notifier.service.js +70 -0
  361. package/dist/modules/queue/notifier.service.js.map +1 -0
  362. package/dist/modules/queue/notifiers/calendar.notifier.d.ts +2 -0
  363. package/dist/modules/queue/notifiers/calendar.notifier.js +17 -0
  364. package/dist/modules/queue/notifiers/calendar.notifier.js.map +1 -0
  365. package/dist/modules/queue/notifiers/contact.notifier.d.ts +7 -0
  366. package/dist/modules/queue/notifiers/contact.notifier.js +49 -0
  367. package/dist/modules/queue/notifiers/contact.notifier.js.map +1 -0
  368. package/dist/modules/queue/notifiers/index.d.ts +4 -0
  369. package/dist/modules/queue/notifiers/index.js +21 -0
  370. package/dist/modules/queue/notifiers/index.js.map +1 -0
  371. package/dist/modules/queue/notifiers/lead.notifier.d.ts +7 -0
  372. package/dist/modules/queue/notifiers/lead.notifier.js +49 -0
  373. package/dist/modules/queue/notifiers/lead.notifier.js.map +1 -0
  374. package/dist/modules/queue/notifiers/task.notifier.d.ts +15 -0
  375. package/dist/modules/queue/notifiers/task.notifier.js +130 -0
  376. package/dist/modules/queue/notifiers/task.notifier.js.map +1 -0
  377. package/dist/modules/queue/queue.module.d.ts +4 -0
  378. package/dist/modules/queue/queue.module.js +57 -0
  379. package/dist/modules/queue/queue.module.js.map +1 -0
  380. package/dist/modules/queue/scheduler.service.d.ts +9 -0
  381. package/dist/modules/queue/scheduler.service.js +40 -0
  382. package/dist/modules/queue/scheduler.service.js.map +1 -0
  383. package/justfile +8 -8
  384. package/package.json +1 -1
  385. package/scripts/bump.sh +5 -5
  386. package/test.bat +15 -15
  387. package/tsconfig.build.json +4 -4
  388. package/tsconfig.json +25 -25
  389. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-config.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/email-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAyC;AAGlC,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,wBAAU;IAEnD,wBAAwB,CAAS;IAGjC,WAAW,CAAS;IAGpB,UAAU,CAAS;IAGnB,wBAAwB,CAAS;IAGjC,sCAAsC,CAAU;IAGhD,sBAAsB,CAAS;IAG/B,yBAAyB,CAAS;I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;AAGxB;IADC,IAAA,gBAAM,GAAE;;oDACK;gCAhCH,qBAAqB;IADjC,IAAA,gBAAM,GAAE;GACI,qBAAqB,CAiCjC"}
@@ -0,0 +1,17 @@
1
+ import { EntityBase } from "../../common/database/base.entity";
2
+ import { UserEmailRelation } from "./user-email-relation.entity";
3
+ import { ServiceThirdparty } from "./service.entity";
4
+ import { Oauth } from "./oauth.entity";
5
+ export declare class EmailThirdparty extends EntityBase {
6
+ googleId: string;
7
+ subject: string;
8
+ from: string;
9
+ date: Date;
10
+ to: string[];
11
+ body: string;
12
+ folder: string[];
13
+ attachment: string[];
14
+ service: ServiceThirdparty;
15
+ userRelations: UserEmailRelation[];
16
+ oAuth: Oauth;
17
+ }
@@ -0,0 +1,79 @@
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.EmailThirdparty = void 0;
13
+ const base_entity_1 = require("../../common/database/base.entity");
14
+ const typeorm_1 = require("typeorm");
15
+ const user_email_relation_entity_1 = require("./user-email-relation.entity");
16
+ const service_entity_1 = require("./service.entity");
17
+ const oauth_entity_1 = require("./oauth.entity");
18
+ let EmailThirdparty = class EmailThirdparty extends base_entity_1.EntityBase {
19
+ googleId;
20
+ subject;
21
+ from;
22
+ date;
23
+ to;
24
+ body;
25
+ folder;
26
+ attachment;
27
+ service;
28
+ userRelations;
29
+ oAuth;
30
+ };
31
+ exports.EmailThirdparty = EmailThirdparty;
32
+ __decorate([
33
+ (0, typeorm_1.Column)(),
34
+ __metadata("design:type", String)
35
+ ], EmailThirdparty.prototype, "googleId", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)(),
38
+ __metadata("design:type", String)
39
+ ], EmailThirdparty.prototype, "subject", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)(),
42
+ __metadata("design:type", String)
43
+ ], EmailThirdparty.prototype, "from", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)(),
46
+ __metadata("design:type", Date)
47
+ ], EmailThirdparty.prototype, "date", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)("text", { array: true }),
50
+ __metadata("design:type", Array)
51
+ ], EmailThirdparty.prototype, "to", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)(),
54
+ __metadata("design:type", String)
55
+ ], EmailThirdparty.prototype, "body", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)("text", { array: true }),
58
+ __metadata("design:type", Array)
59
+ ], EmailThirdparty.prototype, "folder", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)("text", { array: true, nullable: true }),
62
+ __metadata("design:type", Array)
63
+ ], EmailThirdparty.prototype, "attachment", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.ManyToOne)(() => service_entity_1.ServiceThirdparty, (service) => service.emails),
66
+ __metadata("design:type", service_entity_1.ServiceThirdparty)
67
+ ], EmailThirdparty.prototype, "service", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.OneToMany)(() => user_email_relation_entity_1.UserEmailRelation, (relation) => relation.email),
70
+ __metadata("design:type", Array)
71
+ ], EmailThirdparty.prototype, "userRelations", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.ManyToOne)(() => oauth_entity_1.Oauth, (oauth) => oauth.id),
74
+ __metadata("design:type", oauth_entity_1.Oauth)
75
+ ], EmailThirdparty.prototype, "oAuth", void 0);
76
+ exports.EmailThirdparty = EmailThirdparty = __decorate([
77
+ (0, typeorm_1.Entity)()
78
+ ], EmailThirdparty);
79
+ //# sourceMappingURL=email.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/email.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAA+D;AAC/D,6EAAiE;AACjE,qDAAqD;AACrD,iDAAuC;AAGhC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,wBAAU;IAE7C,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,IAAI,CAAS;IAGb,IAAI,CAAO;IAGX,EAAE,CAAW;IAGb,IAAI,CAAS;IAGb,MAAM,CAAW;IAGjB,UAAU,CAAW;IAGrB,OAAO,CAAoB;IAG3B,aAAa,CAAsB;IAGnC,KAAK,CAAQ;CACd,CAAA;AAjCY,0CAAe;AAE1B;IADC,IAAA,gBAAM,GAAE;;iDACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;gDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;6CACI;AAGb;IADC,IAAA,gBAAM,GAAE;8BACH,IAAI;6CAAC;AAGX;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;2CACnB;AAGb;IADC,IAAA,gBAAM,GAAE;;6CACI;AAGb;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;+CACf;AAGjB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAC3B;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAiB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;8BACvD,kCAAiB;gDAAC;AAG3B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAiB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;;sDAC9B;AAGnC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;8BACrC,oBAAK;8CAAC;0BAhCF,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CAiC3B"}
@@ -0,0 +1,18 @@
1
+ import { EntityBase } from "../../common/database/base.entity";
2
+ import { EmailThirdparty } from "./email.entity";
3
+ export declare class Oauth extends EntityBase {
4
+ service: number;
5
+ refresh_token: string;
6
+ access_token: string;
7
+ expires_in: number;
8
+ userId: string;
9
+ usergoogle_id: string;
10
+ family_name: string;
11
+ given_name: string;
12
+ email: string;
13
+ picture: string;
14
+ id_token: string;
15
+ labelId: object[];
16
+ labelIdRules: object;
17
+ emails: EmailThirdparty[];
18
+ }
@@ -0,0 +1,93 @@
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.Oauth = void 0;
13
+ const base_entity_1 = require("../../common/database/base.entity");
14
+ const typeorm_1 = require("typeorm");
15
+ const email_entity_1 = require("./email.entity");
16
+ let Oauth = class Oauth extends base_entity_1.EntityBase {
17
+ service;
18
+ refresh_token;
19
+ access_token;
20
+ expires_in;
21
+ userId;
22
+ usergoogle_id;
23
+ family_name;
24
+ given_name;
25
+ email;
26
+ picture;
27
+ id_token;
28
+ labelId;
29
+ labelIdRules;
30
+ emails;
31
+ };
32
+ exports.Oauth = Oauth;
33
+ __decorate([
34
+ (0, typeorm_1.Column)("int"),
35
+ __metadata("design:type", Number)
36
+ ], Oauth.prototype, "service", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)(),
39
+ __metadata("design:type", String)
40
+ ], Oauth.prototype, "refresh_token", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)(),
43
+ __metadata("design:type", String)
44
+ ], Oauth.prototype, "access_token", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)("int"),
47
+ __metadata("design:type", Number)
48
+ ], Oauth.prototype, "expires_in", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)(),
51
+ __metadata("design:type", String)
52
+ ], Oauth.prototype, "userId", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ nullable: true }),
55
+ __metadata("design:type", String)
56
+ ], Oauth.prototype, "usergoogle_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ nullable: true }),
59
+ __metadata("design:type", String)
60
+ ], Oauth.prototype, "family_name", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ nullable: true }),
63
+ __metadata("design:type", String)
64
+ ], Oauth.prototype, "given_name", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ nullable: true }),
67
+ __metadata("design:type", String)
68
+ ], Oauth.prototype, "email", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ nullable: true }),
71
+ __metadata("design:type", String)
72
+ ], Oauth.prototype, "picture", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ nullable: true }),
75
+ __metadata("design:type", String)
76
+ ], Oauth.prototype, "id_token", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)("text", { array: true, nullable: true }),
79
+ __metadata("design:type", Array)
80
+ ], Oauth.prototype, "labelId", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
83
+ __metadata("design:type", Object)
84
+ ], Oauth.prototype, "labelIdRules", void 0);
85
+ __decorate([
86
+ (0, typeorm_1.OneToMany)(() => email_entity_1.EmailThirdparty, email => email.id),
87
+ __metadata("design:type", Array)
88
+ ], Oauth.prototype, "emails", void 0);
89
+ exports.Oauth = Oauth = __decorate([
90
+ (0, typeorm_1.Entity)(),
91
+ (0, typeorm_1.Index)(["email"], { unique: true })
92
+ ], Oauth);
93
+ //# sourceMappingURL=oauth.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/oauth.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAA2D;AAC3D,iDAAgD;AAIzC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,wBAAU;IAEnC,OAAO,CAAS;IAGhB,aAAa,CAAS;IAGtB,YAAY,CAAS;IAGrB,UAAU,CAAS;IAGnB,MAAM,CAAS;IAGf,aAAa,CAAS;IAGtB,WAAW,CAAS;IAGpB,UAAU,CAAS;IAGnB,KAAK,CAAS;IAGd,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAGjB,OAAO,CAAW;IAGlB,YAAY,CAAS;IAGrB,MAAM,CAAoB;CAC3B,CAAA;AA1CY,sBAAK;AAEhB;IADC,IAAA,gBAAM,EAAC,KAAK,CAAC;;sCACE;AAGhB;IADC,IAAA,gBAAM,GAAE;;4CACa;AAGtB;IADC,IAAA,gBAAM,GAAE;;2CACY;AAGrB;IADC,IAAA,gBAAM,EAAC,KAAK,CAAC;;yCACK;AAGnB;IADC,IAAA,gBAAM,GAAE;;qCACM;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACL;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACb;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACX;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACV;AAGjB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC9B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACrB;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;;qCAC1B;gBAzCf,KAAK;IAFjB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACtB,KAAK,CA0CjB"}
@@ -0,0 +1,6 @@
1
+ import { EntityBase } from "../../common/database/base.entity";
2
+ import { EmailThirdparty } from "./email.entity";
3
+ export declare class ServiceThirdparty extends EntityBase {
4
+ name: string;
5
+ emails: EmailThirdparty[];
6
+ }
@@ -0,0 +1,32 @@
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.ServiceThirdparty = void 0;
13
+ const base_entity_1 = require("../../common/database/base.entity");
14
+ const typeorm_1 = require("typeorm");
15
+ const email_entity_1 = require("./email.entity");
16
+ let ServiceThirdparty = class ServiceThirdparty extends base_entity_1.EntityBase {
17
+ name;
18
+ emails;
19
+ };
20
+ exports.ServiceThirdparty = ServiceThirdparty;
21
+ __decorate([
22
+ (0, typeorm_1.Column)(),
23
+ __metadata("design:type", String)
24
+ ], ServiceThirdparty.prototype, "name", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.OneToMany)(() => email_entity_1.EmailThirdparty, email => email.service),
27
+ __metadata("design:type", Array)
28
+ ], ServiceThirdparty.prototype, "emails", void 0);
29
+ exports.ServiceThirdparty = ServiceThirdparty = __decorate([
30
+ (0, typeorm_1.Entity)()
31
+ ], ServiceThirdparty);
32
+ //# sourceMappingURL=service.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/service.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAoD;AACpD,iDAAgD;AAGzC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,wBAAU;IAE/C,IAAI,CAAS;IAGb,MAAM,CAAoB;CAC3B,CAAA;AANY,8CAAiB;AAE5B;IADC,IAAA,gBAAM,GAAE;;+CACI;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;;iDAC/B;4BALf,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAM7B"}
@@ -0,0 +1,7 @@
1
+ import { EntityBase } from "../../common/database/base.entity";
2
+ import { User } from "../user.entity";
3
+ import { EmailThirdparty } from "./email.entity";
4
+ export declare class UserEmailRelation extends EntityBase {
5
+ user: User;
6
+ email: EmailThirdparty;
7
+ }
@@ -0,0 +1,35 @@
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.UserEmailRelation = void 0;
13
+ const base_entity_1 = require("../../common/database/base.entity");
14
+ const typeorm_1 = require("typeorm");
15
+ const user_entity_1 = require("../user.entity");
16
+ const email_entity_1 = require("./email.entity");
17
+ let UserEmailRelation = class UserEmailRelation extends base_entity_1.EntityBase {
18
+ user;
19
+ email;
20
+ };
21
+ exports.UserEmailRelation = UserEmailRelation;
22
+ __decorate([
23
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.emailRelations, { onDelete: "CASCADE", onUpdate: "CASCADE" }),
24
+ (0, typeorm_1.JoinColumn)(),
25
+ __metadata("design:type", user_entity_1.User)
26
+ ], UserEmailRelation.prototype, "user", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.ManyToOne)(() => email_entity_1.EmailThirdparty, (email) => email.userRelations, { onDelete: "CASCADE", onUpdate: "CASCADE" }),
29
+ (0, typeorm_1.JoinColumn)(),
30
+ __metadata("design:type", email_entity_1.EmailThirdparty)
31
+ ], UserEmailRelation.prototype, "email", void 0);
32
+ exports.UserEmailRelation = UserEmailRelation = __decorate([
33
+ (0, typeorm_1.Entity)()
34
+ ], UserEmailRelation);
35
+ //# sourceMappingURL=user-email-relation.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-email-relation.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/user-email-relation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAwD;AACxD,gDAAsC;AACtC,iDAAiD;AAG1C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,wBAAU;IAG/C,IAAI,CAAO;IAIX,KAAK,CAAkB;CACxB,CAAA;AARY,8CAAiB;AAG5B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAClG,IAAA,oBAAU,GAAE;8BACP,kBAAI;+CAAC;AAIX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9G,IAAA,oBAAU,GAAE;8BACN,8BAAe;gDAAC;4BAPZ,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAQ7B"}
@@ -0,0 +1,19 @@
1
+ import { EntityBase } from "../../../common/database/base.entity";
2
+ import { EventRepeatMode } from "../../../common";
3
+ import { User } from "../../user.entity";
4
+ export declare class Event extends EntityBase {
5
+ name: string;
6
+ description: string;
7
+ startTime: Date;
8
+ endTime: Date;
9
+ repeat: EventRepeatMode;
10
+ participants?: User[];
11
+ reminder: Date;
12
+ color: string;
13
+ availability: string;
14
+ private: boolean;
15
+ important: boolean;
16
+ allDay: boolean;
17
+ createdBy?: User;
18
+ modifiedBy?: User;
19
+ }
@@ -0,0 +1,132 @@
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.Event = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const typeorm_1 = require("typeorm");
15
+ const swagger_1 = require("@nestjs/swagger");
16
+ const base_entity_1 = require("../../../common/database/base.entity");
17
+ const common_1 = require("../../../common");
18
+ const user_entity_1 = require("../../user.entity");
19
+ let Event = class Event extends base_entity_1.EntityBase {
20
+ name;
21
+ description;
22
+ startTime;
23
+ endTime;
24
+ repeat;
25
+ participants;
26
+ reminder;
27
+ color;
28
+ availability;
29
+ private;
30
+ important;
31
+ allDay;
32
+ createdBy;
33
+ modifiedBy;
34
+ };
35
+ exports.Event = Event;
36
+ __decorate([
37
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Name of the event', minLength: 3 }),
38
+ (0, class_validator_1.MinLength)(3),
39
+ (0, typeorm_1.Column)({ unique: false, nullable: false }),
40
+ __metadata("design:type", String)
41
+ ], Event.prototype, "name", void 0);
42
+ __decorate([
43
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Description of the event' }),
44
+ (0, typeorm_1.Column)({ type: "text" }),
45
+ __metadata("design:type", String)
46
+ ], Event.prototype, "description", void 0);
47
+ __decorate([
48
+ (0, swagger_1.ApiProperty)({ type: Date, description: 'Start time of the event', required: false }),
49
+ (0, typeorm_1.Column)({ nullable: true }),
50
+ __metadata("design:type", Date)
51
+ ], Event.prototype, "startTime", void 0);
52
+ __decorate([
53
+ (0, swagger_1.ApiProperty)({ type: Date, description: 'End time of the event', required: false }),
54
+ (0, typeorm_1.Column)({ nullable: true }),
55
+ __metadata("design:type", Date)
56
+ ], Event.prototype, "endTime", void 0);
57
+ __decorate([
58
+ (0, swagger_1.ApiProperty)({
59
+ enum: common_1.EventRepeatMode,
60
+ description: 'Retición',
61
+ default: common_1.EventRepeatMode.NONE
62
+ }),
63
+ (0, typeorm_1.Column)({
64
+ type: "enum",
65
+ enum: common_1.EventRepeatMode,
66
+ default: common_1.EventRepeatMode.NONE
67
+ }),
68
+ __metadata("design:type", String)
69
+ ], Event.prototype, "repeat", void 0);
70
+ __decorate([
71
+ (0, swagger_1.ApiProperty)({ type: () => [user_entity_1.User], description: 'Participants in the event', required: false }),
72
+ (0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
73
+ onDelete: "CASCADE",
74
+ onUpdate: "CASCADE",
75
+ }),
76
+ (0, typeorm_1.JoinTable)(),
77
+ __metadata("design:type", Array)
78
+ ], Event.prototype, "participants", void 0);
79
+ __decorate([
80
+ (0, swagger_1.ApiProperty)({ type: Date, description: 'Reminder time', required: false }),
81
+ (0, typeorm_1.Column)({ nullable: true }),
82
+ __metadata("design:type", Date)
83
+ ], Event.prototype, "reminder", void 0);
84
+ __decorate([
85
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Color of the event' }),
86
+ (0, typeorm_1.Column)({ type: String }),
87
+ __metadata("design:type", String)
88
+ ], Event.prototype, "color", void 0);
89
+ __decorate([
90
+ (0, swagger_1.ApiProperty)({ type: String, description: 'User availability during the event' }),
91
+ (0, typeorm_1.Column)({ type: String }),
92
+ __metadata("design:type", String)
93
+ ], Event.prototype, "availability", void 0);
94
+ __decorate([
95
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: '¿Private?', default: false }),
96
+ (0, typeorm_1.Column)({ default: false }),
97
+ __metadata("design:type", Boolean)
98
+ ], Event.prototype, "private", void 0);
99
+ __decorate([
100
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Important?', default: false }),
101
+ (0, typeorm_1.Column)({ default: false }),
102
+ __metadata("design:type", Boolean)
103
+ ], Event.prototype, "important", void 0);
104
+ __decorate([
105
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Event all Day?', default: false }),
106
+ (0, typeorm_1.Column)({ default: false }),
107
+ __metadata("design:type", Boolean)
108
+ ], Event.prototype, "allDay", void 0);
109
+ __decorate([
110
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the comment', required: false }),
111
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
112
+ onDelete: "SET NULL",
113
+ onUpdate: "CASCADE",
114
+ nullable: true,
115
+ }),
116
+ (0, typeorm_1.JoinColumn)(),
117
+ __metadata("design:type", user_entity_1.User)
118
+ ], Event.prototype, "createdBy", void 0);
119
+ __decorate([
120
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who modified the comment', required: false }),
121
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
122
+ onDelete: "SET NULL",
123
+ onUpdate: "CASCADE",
124
+ nullable: true,
125
+ }),
126
+ (0, typeorm_1.JoinColumn)(),
127
+ __metadata("design:type", user_entity_1.User)
128
+ ], Event.prototype, "modifiedBy", void 0);
129
+ exports.Event = Event = __decorate([
130
+ (0, typeorm_1.Entity)()
131
+ ], Event);
132
+ //# sourceMappingURL=event.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.entity.js","s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 @@
1
+ export * from './event.entity';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./event.entity"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -0,0 +1,4 @@
1
+ export * from "./task-comment.entity";
2
+ export * from "./task.entity";
3
+ export * from "./task-list-field";
4
+ export * from "./calendar";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./task-comment.entity"), exports);
18
+ __exportStar(require("./task.entity"), exports);
19
+ __exportStar(require("./task-list-field"), exports);
20
+ __exportStar(require("./calendar"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gDAA8B;AAC9B,oDAAiC;AACjC,6CAA0B"}
@@ -0,0 +1,6 @@
1
+ import { Task } from "./task.entity";
2
+ import { CommentBase } from "../../common";
3
+ export declare class TaskComment extends CommentBase {
4
+ isSummary: boolean;
5
+ task: Task;
6
+ }
@@ -0,0 +1,38 @@
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.TaskComment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const task_entity_1 = require("./task.entity");
15
+ const swagger_1 = require("@nestjs/swagger");
16
+ const common_1 = require("../../common");
17
+ let TaskComment = class TaskComment extends common_1.CommentBase {
18
+ isSummary;
19
+ task;
20
+ };
21
+ exports.TaskComment = TaskComment;
22
+ __decorate([
23
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is this comment a summary?', default: false }),
24
+ (0, typeorm_1.Column)({ default: false }),
25
+ __metadata("design:type", Boolean)
26
+ ], TaskComment.prototype, "isSummary", void 0);
27
+ __decorate([
28
+ (0, swagger_1.ApiProperty)({ type: () => task_entity_1.Task, description: 'Task associated with the comment' }),
29
+ (0, typeorm_1.ManyToOne)(() => task_entity_1.Task, {
30
+ onDelete: "CASCADE",
31
+ onUpdate: "CASCADE",
32
+ }),
33
+ __metadata("design:type", task_entity_1.Task)
34
+ ], TaskComment.prototype, "task", void 0);
35
+ exports.TaskComment = TaskComment = __decorate([
36
+ (0, typeorm_1.Entity)()
37
+ ], TaskComment);
38
+ //# sourceMappingURL=task-comment.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/tools/task-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,+CAAqC;AACrC,6CAA8C;AAC9C,yCAA2C;AAGpC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,oBAAW;IAGxC,SAAS,CAAU;IAOnB,IAAI,CAAO;CACd,CAAA;AAXY,kCAAW;AAGpB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IACzF,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8CACR;AAOnB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IAClF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACI,kBAAI;yCAAC;sBAVF,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CAWvB"}
@@ -0,0 +1,5 @@
1
+ export declare class TaskListField {
2
+ text: string;
3
+ completed: boolean;
4
+ child: TaskListField[];
5
+ }
@@ -0,0 +1,39 @@
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.TaskListField = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const swagger_1 = require("@nestjs/swagger");
16
+ class TaskListField {
17
+ text;
18
+ completed;
19
+ child;
20
+ }
21
+ exports.TaskListField = TaskListField;
22
+ __decorate([
23
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Text of the task list field' }),
24
+ (0, class_validator_1.IsString)(),
25
+ __metadata("design:type", String)
26
+ ], TaskListField.prototype, "text", void 0);
27
+ __decorate([
28
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Completion status of the task list field' }),
29
+ (0, class_validator_1.IsBoolean)(),
30
+ __metadata("design:type", Boolean)
31
+ ], TaskListField.prototype, "completed", void 0);
32
+ __decorate([
33
+ (0, swagger_1.ApiProperty)({ type: () => [TaskListField], description: 'Child task list fields', required: false }),
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.ValidateNested)(),
36
+ (0, class_transformer_1.Type)(() => TaskListField),
37
+ __metadata("design:type", Array)
38
+ ], TaskListField.prototype, "child", void 0);
39
+ //# sourceMappingURL=task-list-field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-list-field.js","sourceRoot":"","sources":["../../../src/entities/tools/task-list-field.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAkF;AAClF,6CAA8C;AAE9C,MAAa,aAAa;IAGtB,IAAI,CAAS;IAIb,SAAS,CAAU;IAMnB,KAAK,CAAiB;CACzB;AAdD,sCAcC;AAXG;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IACzE,IAAA,0BAAQ,GAAE;;2CACE;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,0CAA0C,EAAE,CAAC;IACvF,IAAA,2BAAS,GAAE;;gDACO;AAMnB;IAJC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,aAAa,CAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACpG,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAa,CAAC;;4CACJ"}