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,34 @@
1
+ import { User } from "../user.entity";
2
+ import { TaskComment } from "./task-comment.entity";
3
+ import { Tag } from "../tag.entity";
4
+ import { EntityBase } from "../../common/database/base.entity";
5
+ import { TaskStatus } from "../../common/enums";
6
+ import { TaskListField } from "./task-list-field";
7
+ import { TaskCRM } from "../../entities/helpers";
8
+ export declare class Task extends EntityBase {
9
+ idBitrix: number;
10
+ name: string;
11
+ number: number;
12
+ description: string;
13
+ deadline: Date;
14
+ startTime: Date;
15
+ completedTime: Date;
16
+ requireRevision: boolean;
17
+ requireSummary: boolean;
18
+ responsibleCanChangeDate: boolean;
19
+ important: boolean;
20
+ status: TaskStatus;
21
+ isCompleted: boolean;
22
+ reviewed: boolean;
23
+ createdBy: User;
24
+ reviewedBy: User;
25
+ participants?: User[];
26
+ responsible?: User[];
27
+ observers?: User[];
28
+ tags: Tag[];
29
+ listField: TaskListField[];
30
+ comments: TaskComment[];
31
+ crm?: TaskCRM[];
32
+ parentTask?: Task;
33
+ subTasks?: Task[];
34
+ }
@@ -0,0 +1,221 @@
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.Task = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const user_entity_1 = require("../user.entity");
15
+ const typeorm_1 = require("typeorm");
16
+ const task_comment_entity_1 = require("./task-comment.entity");
17
+ const tag_entity_1 = require("../tag.entity");
18
+ const base_entity_1 = require("../../common/database/base.entity");
19
+ const enums_1 = require("../../common/enums");
20
+ const task_list_field_1 = require("./task-list-field");
21
+ const helpers_1 = require("../../entities/helpers");
22
+ const swagger_1 = require("@nestjs/swagger");
23
+ let Task = class Task extends base_entity_1.EntityBase {
24
+ idBitrix;
25
+ name;
26
+ number;
27
+ description;
28
+ deadline;
29
+ startTime;
30
+ completedTime;
31
+ requireRevision;
32
+ requireSummary;
33
+ responsibleCanChangeDate;
34
+ important;
35
+ status;
36
+ isCompleted;
37
+ reviewed;
38
+ createdBy;
39
+ reviewedBy;
40
+ participants;
41
+ responsible;
42
+ observers;
43
+ tags;
44
+ listField;
45
+ comments;
46
+ crm;
47
+ parentTask;
48
+ subTasks;
49
+ };
50
+ exports.Task = Task;
51
+ __decorate([
52
+ (0, swagger_1.ApiProperty)({ type: Number, description: 'Bitrix ID of the policy', required: false }),
53
+ (0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
54
+ __metadata("design:type", Number)
55
+ ], Task.prototype, "idBitrix", void 0);
56
+ __decorate([
57
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Name of the task', minLength: 3 }),
58
+ (0, class_validator_1.MinLength)(3),
59
+ (0, typeorm_1.Column)({ unique: false, nullable: false }),
60
+ __metadata("design:type", String)
61
+ ], Task.prototype, "name", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)(),
64
+ (0, typeorm_1.Generated)("increment"),
65
+ __metadata("design:type", Number)
66
+ ], Task.prototype, "number", void 0);
67
+ __decorate([
68
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Description of the task', required: false }),
69
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
70
+ __metadata("design:type", String)
71
+ ], Task.prototype, "description", void 0);
72
+ __decorate([
73
+ (0, swagger_1.ApiProperty)({ type: Date, description: 'Deadline of the task', required: false }),
74
+ (0, typeorm_1.Column)({ nullable: true }),
75
+ __metadata("design:type", Date)
76
+ ], Task.prototype, "deadline", void 0);
77
+ __decorate([
78
+ (0, swagger_1.ApiProperty)({ type: Date, description: 'Start time of the task', required: false }),
79
+ (0, typeorm_1.Column)({ nullable: true }),
80
+ __metadata("design:type", Date)
81
+ ], Task.prototype, "startTime", void 0);
82
+ __decorate([
83
+ (0, swagger_1.ApiProperty)({ type: Date, description: 'Completion time of the task', required: false }),
84
+ (0, typeorm_1.Column)({ nullable: true }),
85
+ __metadata("design:type", Date)
86
+ ], Task.prototype, "completedTime", void 0);
87
+ __decorate([
88
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the task require revision?', default: false }),
89
+ (0, typeorm_1.Column)({ default: false }),
90
+ __metadata("design:type", Boolean)
91
+ ], Task.prototype, "requireRevision", void 0);
92
+ __decorate([
93
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the task require a summary?', default: false }),
94
+ (0, typeorm_1.Column)({ default: false }),
95
+ __metadata("design:type", Boolean)
96
+ ], Task.prototype, "requireSummary", void 0);
97
+ __decorate([
98
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Can the responsible user change the date?', default: false }),
99
+ (0, typeorm_1.Column)({ default: false }),
100
+ __metadata("design:type", Boolean)
101
+ ], Task.prototype, "responsibleCanChangeDate", void 0);
102
+ __decorate([
103
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'La tarea es importante?', default: false }),
104
+ (0, typeorm_1.Column)({ default: false }),
105
+ __metadata("design:type", Boolean)
106
+ ], Task.prototype, "important", void 0);
107
+ __decorate([
108
+ (0, swagger_1.ApiProperty)({
109
+ enum: enums_1.TaskStatus,
110
+ description: 'Status of the task',
111
+ default: enums_1.TaskStatus.PENDING
112
+ }),
113
+ (0, typeorm_1.Column)({
114
+ type: "enum",
115
+ enum: enums_1.TaskStatus,
116
+ default: enums_1.TaskStatus.PENDING
117
+ }),
118
+ __metadata("design:type", String)
119
+ ], Task.prototype, "status", void 0);
120
+ __decorate([
121
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the task completed?', default: false }),
122
+ (0, typeorm_1.Column)({ default: false }),
123
+ __metadata("design:type", Boolean)
124
+ ], Task.prototype, "isCompleted", void 0);
125
+ __decorate([
126
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Has the task been reviewed?', default: false }),
127
+ (0, typeorm_1.Column)({ default: false }),
128
+ __metadata("design:type", Boolean)
129
+ ], Task.prototype, "reviewed", void 0);
130
+ __decorate([
131
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the task', required: false }),
132
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
133
+ onDelete: "SET NULL",
134
+ onUpdate: "CASCADE",
135
+ nullable: true,
136
+ }),
137
+ __metadata("design:type", user_entity_1.User)
138
+ ], Task.prototype, "createdBy", void 0);
139
+ __decorate([
140
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who reviewed the task', required: false }),
141
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
142
+ onDelete: "SET NULL",
143
+ onUpdate: "CASCADE",
144
+ nullable: true,
145
+ }),
146
+ __metadata("design:type", user_entity_1.User)
147
+ ], Task.prototype, "reviewedBy", void 0);
148
+ __decorate([
149
+ (0, swagger_1.ApiProperty)({ type: () => [user_entity_1.User], description: 'Participants in the task', required: false }),
150
+ (0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
151
+ onDelete: "CASCADE",
152
+ onUpdate: "CASCADE",
153
+ }),
154
+ (0, typeorm_1.JoinTable)(),
155
+ __metadata("design:type", Array)
156
+ ], Task.prototype, "participants", void 0);
157
+ __decorate([
158
+ (0, swagger_1.ApiProperty)({ type: () => [user_entity_1.User], description: 'Users responsible for the task', required: false }),
159
+ (0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
160
+ onDelete: "CASCADE",
161
+ onUpdate: "CASCADE",
162
+ }),
163
+ (0, typeorm_1.JoinTable)(),
164
+ __metadata("design:type", Array)
165
+ ], Task.prototype, "responsible", void 0);
166
+ __decorate([
167
+ (0, swagger_1.ApiProperty)({ type: () => [user_entity_1.User], description: 'Observers of the task', required: false }),
168
+ (0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
169
+ onDelete: "CASCADE",
170
+ onUpdate: "CASCADE",
171
+ }),
172
+ (0, typeorm_1.JoinTable)(),
173
+ __metadata("design:type", Array)
174
+ ], Task.prototype, "observers", void 0);
175
+ __decorate([
176
+ (0, swagger_1.ApiProperty)({ type: () => [tag_entity_1.Tag], description: 'Tags associated with the task' }),
177
+ (0, typeorm_1.ManyToMany)(() => tag_entity_1.Tag, tag => tag.tasks, {
178
+ onDelete: "CASCADE",
179
+ onUpdate: "CASCADE",
180
+ }),
181
+ (0, typeorm_1.JoinTable)(),
182
+ __metadata("design:type", Array)
183
+ ], Task.prototype, "tags", void 0);
184
+ __decorate([
185
+ (0, swagger_1.ApiProperty)({ type: () => [task_list_field_1.TaskListField], description: 'List fields associated with the task', required: false }),
186
+ (0, typeorm_1.Column)("json", { nullable: true }),
187
+ __metadata("design:type", Array)
188
+ ], Task.prototype, "listField", void 0);
189
+ __decorate([
190
+ (0, swagger_1.ApiProperty)({ type: () => [task_comment_entity_1.TaskComment], description: 'Comments on the task' }),
191
+ (0, typeorm_1.OneToMany)(() => task_comment_entity_1.TaskComment, taskComment => taskComment.task),
192
+ (0, typeorm_1.JoinColumn)(),
193
+ __metadata("design:type", Array)
194
+ ], Task.prototype, "comments", void 0);
195
+ __decorate([
196
+ (0, swagger_1.ApiProperty)({ type: () => [helpers_1.TaskCRM], description: 'CRM entries associated with the task', required: false }),
197
+ (0, typeorm_1.OneToMany)(() => helpers_1.TaskCRM, (taskCRM) => taskCRM.task, {
198
+ onDelete: "CASCADE",
199
+ onUpdate: "CASCADE",
200
+ }),
201
+ __metadata("design:type", Array)
202
+ ], Task.prototype, "crm", void 0);
203
+ __decorate([
204
+ (0, swagger_1.ApiProperty)({ type: () => Task, description: 'Parent task', required: false }),
205
+ (0, typeorm_1.ManyToOne)(() => Task, {
206
+ onDelete: "CASCADE",
207
+ onUpdate: "CASCADE",
208
+ nullable: true,
209
+ }),
210
+ (0, typeorm_1.JoinColumn)(),
211
+ __metadata("design:type", Task)
212
+ ], Task.prototype, "parentTask", void 0);
213
+ __decorate([
214
+ (0, swagger_1.ApiProperty)({ type: () => [Task], description: 'Child tasks', required: false }),
215
+ (0, typeorm_1.OneToMany)(() => Task, task => task.parentTask),
216
+ __metadata("design:type", Array)
217
+ ], Task.prototype, "subTasks", void 0);
218
+ exports.Task = Task = __decorate([
219
+ (0, typeorm_1.Entity)()
220
+ ], Task);
221
+ //# sourceMappingURL=task.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.entity.js","sourceRoot":"","sources":["../../../src/entities/tools/task.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4C;AAC5C,gDAAsC;AACtC,qCAA6G;AAC7G,+DAAoD;AACpD,8CAAoC;AACpC,mEAA+D;AAC/D,8CAAgD;AAChD,uDAAkD;AAClD,oDAAiD;AACjD,6CAA8C;AAGvC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAGhC,QAAQ,CAAS;IAKjB,IAAI,CAAS;IAIb,MAAM,CAAS;IAIf,WAAW,CAAS;IAIpB,QAAQ,CAAO;IAIf,SAAS,CAAO;IAIhB,aAAa,CAAO;IAIpB,eAAe,CAAU;IAIzB,cAAc,CAAU;IAIxB,wBAAwB,CAAU;IAIlC,SAAS,CAAU;IAYnB,MAAM,CAAa;IAInB,WAAW,CAAU;IAIrB,QAAQ,CAAU;IAQlB,SAAS,CAAO;IAQhB,UAAU,CAAO;IAQjB,YAAY,CAAU;IAQtB,WAAW,CAAU;IAQrB,SAAS,CAAU;IAQnB,IAAI,CAAQ;IAIZ,SAAS,CAAkB;IAK3B,QAAQ,CAAgB;IAOxB,GAAG,CAAa;IAShB,UAAU,CAAQ;IAIlB,QAAQ,CAAU;CACrB,CAAA;AA9IY,oBAAI;AAGb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,yBAAyB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACtF,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC7B;AAKjB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;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BAAS,EAAC,GAAG,EAAE,CAAC,iBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE;QACjD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;;iCACc;AAShB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,IAAI,EAAE;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,IAAI;wCAAC;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC;;sCAC7B;eA7IT,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA8IhB"}
@@ -0,0 +1,29 @@
1
+ import { EntityBase } 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 EntityBase {
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
+ cua: string;
28
+ get name(): string;
29
+ }
@@ -0,0 +1,168 @@
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.EntityBase {
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
+ cua;
43
+ get name() {
44
+ return `${this.profile?.firstName ?? ''} ${this.profile?.lastName ?? ''}`.trim();
45
+ }
46
+ };
47
+ exports.User = User;
48
+ __decorate([
49
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Unique username' }),
50
+ (0, typeorm_1.Column)({ unique: true }),
51
+ __metadata("design:type", String)
52
+ ], User.prototype, "username", void 0);
53
+ __decorate([
54
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Unique email address' }),
55
+ (0, typeorm_1.Column)({ unique: true }),
56
+ __metadata("design:type", String)
57
+ ], User.prototype, "email", void 0);
58
+ __decorate([
59
+ (0, swagger_1.ApiProperty)({ type: String, description: 'User bio' }),
60
+ (0, typeorm_1.Column)({ type: "text" }),
61
+ __metadata("design:type", String)
62
+ ], User.prototype, "bio", void 0);
63
+ __decorate([
64
+ (0, swagger_1.ApiProperty)({ type: String, description: 'User avatar URL' }),
65
+ (0, typeorm_1.Column)({ type: "text" }),
66
+ __metadata("design:type", String)
67
+ ], User.prototype, "avatar", void 0);
68
+ __decorate([
69
+ (0, class_transformer_1.Exclude)(),
70
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Password hash', writeOnly: true }),
71
+ (0, typeorm_1.Column)({ type: "text" }),
72
+ __metadata("design:type", String)
73
+ ], User.prototype, "hash", void 0);
74
+ __decorate([
75
+ (0, class_transformer_1.Exclude)(),
76
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Two-factor authentication secret', required: false, writeOnly: true }),
77
+ (0, typeorm_1.Column)({ nullable: true }),
78
+ __metadata("design:type", String)
79
+ ], User.prototype, "twoFactorSecret", void 0);
80
+ __decorate([
81
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is two-factor authentication enabled', default: false }),
82
+ (0, typeorm_1.Column)({ default: false }),
83
+ __metadata("design:type", Boolean)
84
+ ], User.prototype, "isTwoFactorEnabled", void 0);
85
+ __decorate([
86
+ (0, swagger_1.ApiProperty)({ type: String, description: 'User phone number', required: false }),
87
+ (0, typeorm_1.Column)({ unique: true }),
88
+ __metadata("design:type", String)
89
+ ], User.prototype, "phone", void 0);
90
+ __decorate([
91
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is user verified', default: false }),
92
+ (0, typeorm_1.Column)({ default: false }),
93
+ __metadata("design:type", Boolean)
94
+ ], User.prototype, "isVerified", void 0);
95
+ __decorate([
96
+ (0, swagger_1.ApiProperty)({ type: Date, description: 'Last login timestamp', required: false }),
97
+ (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
98
+ __metadata("design:type", Date)
99
+ ], User.prototype, "lastLogin", void 0);
100
+ __decorate([
101
+ (0, swagger_1.ApiProperty)({ type: () => profile_entity_1.Profile, description: 'User profile' }),
102
+ (0, typeorm_1.OneToOne)(() => profile_entity_1.Profile, {
103
+ onDelete: "CASCADE",
104
+ onUpdate: "CASCADE",
105
+ eager: true
106
+ }),
107
+ (0, typeorm_1.JoinColumn)(),
108
+ __metadata("design:type", profile_entity_1.Profile)
109
+ ], User.prototype, "profile", void 0);
110
+ __decorate([
111
+ (0, swagger_1.ApiProperty)({ type: () => [role_entity_1.Role], description: 'Roles assigned to the user' }),
112
+ (0, typeorm_1.ManyToMany)(() => role_entity_1.Role, {
113
+ onDelete: "CASCADE",
114
+ onUpdate: "CASCADE",
115
+ }),
116
+ (0, typeorm_1.JoinTable)(),
117
+ __metadata("design:type", Array)
118
+ ], User.prototype, "roles", void 0);
119
+ __decorate([
120
+ (0, swagger_1.ApiProperty)({ type: () => [tag_entity_1.Tag], description: 'Tags associated with the user' }),
121
+ (0, typeorm_1.OneToMany)(() => tag_entity_1.Tag, (tag) => tag.user),
122
+ __metadata("design:type", Array)
123
+ ], User.prototype, "tags", void 0);
124
+ __decorate([
125
+ (0, swagger_1.ApiProperty)({ type: () => [push_token_entity_1.PushToken], description: 'Push tokens associated with the user' }),
126
+ (0, typeorm_1.OneToMany)(() => push_token_entity_1.PushToken, (pushToken) => pushToken.user),
127
+ __metadata("design:type", Array)
128
+ ], User.prototype, "pushTokens", void 0);
129
+ __decorate([
130
+ (0, swagger_1.ApiProperty)({ type: () => [user_email_relation_entity_1.UserEmailRelation], description: 'Email relations associated with the user' }),
131
+ (0, typeorm_1.OneToMany)(() => user_email_relation_entity_1.UserEmailRelation, (relation) => relation.user),
132
+ __metadata("design:type", Array)
133
+ ], User.prototype, "emailRelations", void 0);
134
+ __decorate([
135
+ (0, swagger_1.ApiProperty)({ type: () => [group_entity_1.Group], description: 'Groups assigned to the user' }),
136
+ (0, typeorm_1.ManyToMany)(() => group_entity_1.Group, {
137
+ onDelete: "CASCADE",
138
+ onUpdate: "CASCADE",
139
+ }),
140
+ (0, typeorm_1.JoinTable)(),
141
+ __metadata("design:type", Array)
142
+ ], User.prototype, "groups", void 0);
143
+ __decorate([
144
+ (0, swagger_1.ApiProperty)({ type: () => menu_permissions_entity_1.MenuPermissions, description: 'Menu Permissions' }),
145
+ (0, typeorm_1.OneToOne)(() => menu_permissions_entity_1.MenuPermissions, {
146
+ onDelete: "CASCADE",
147
+ onUpdate: "CASCADE",
148
+ eager: true
149
+ }),
150
+ (0, typeorm_1.JoinColumn)(),
151
+ __metadata("design:type", menu_permissions_entity_1.MenuPermissions)
152
+ ], User.prototype, "menuPermissions", void 0);
153
+ __decorate([
154
+ (0, swagger_1.ApiProperty)({ type: String, description: 'CUA', required: false }),
155
+ (0, typeorm_1.Column)({
156
+ nullable: true
157
+ }),
158
+ __metadata("design:type", String)
159
+ ], User.prototype, "cua", void 0);
160
+ __decorate([
161
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Full name of the user' }),
162
+ __metadata("design:type", String),
163
+ __metadata("design:paramtypes", [])
164
+ ], User.prototype, "name", null);
165
+ exports.User = User = __decorate([
166
+ (0, typeorm_1.Entity)()
167
+ ], User);
168
+ //# sourceMappingURL=user.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],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0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,46 @@
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
@@ -0,0 +1 @@
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"}