easywork-common-lib 1.0.463 → 1.0.464

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 (381) hide show
  1. package/dist/common/@types/enums/crm.enum.d.ts +8 -0
  2. package/dist/common/@types/enums/crm.enum.js +14 -0
  3. package/dist/common/@types/enums/crm.enum.js.map +1 -0
  4. package/dist/common/@types/enums/index.d.ts +3 -0
  5. package/dist/common/@types/enums/index.js +20 -0
  6. package/dist/common/@types/enums/index.js.map +1 -0
  7. package/dist/common/@types/enums/misc.enum.d.ts +60 -0
  8. package/dist/common/@types/enums/misc.enum.js +81 -0
  9. package/dist/common/@types/enums/misc.enum.js.map +1 -0
  10. package/dist/common/@types/enums/permission.enum.d.ts +13 -0
  11. package/dist/common/@types/enums/permission.enum.js +19 -0
  12. package/dist/common/@types/enums/permission.enum.js.map +1 -0
  13. package/dist/common/@types/index.d.ts +2 -0
  14. package/dist/common/@types/index.js +19 -0
  15. package/dist/common/@types/index.js.map +1 -0
  16. package/dist/common/@types/interfaces/authentication.interface.d.ts +17 -0
  17. package/dist/common/@types/interfaces/authentication.interface.js +3 -0
  18. package/dist/common/@types/interfaces/authentication.interface.js.map +1 -0
  19. package/dist/common/@types/interfaces/crm.interface.d.ts +131 -0
  20. package/dist/common/@types/interfaces/crm.interface.js +3 -0
  21. package/dist/common/@types/interfaces/crm.interface.js.map +1 -0
  22. package/dist/common/@types/interfaces/file.interface.d.ts +14 -0
  23. package/dist/common/@types/interfaces/file.interface.js +3 -0
  24. package/dist/common/@types/interfaces/file.interface.js.map +1 -0
  25. package/dist/common/@types/interfaces/index.d.ts +5 -0
  26. package/dist/common/@types/interfaces/index.js +22 -0
  27. package/dist/common/@types/interfaces/index.js.map +1 -0
  28. package/dist/common/@types/interfaces/mail.interface.d.ts +9 -0
  29. package/dist/common/@types/interfaces/mail.interface.js +3 -0
  30. package/dist/common/@types/interfaces/mail.interface.js.map +1 -0
  31. package/dist/common/@types/interfaces/validator.interface.d.ts +41 -0
  32. package/dist/common/@types/interfaces/validator.interface.js +3 -0
  33. package/dist/common/@types/interfaces/validator.interface.js.map +1 -0
  34. package/dist/common/constants/app.contants.d.ts +31 -0
  35. package/dist/common/constants/app.contants.js +185 -0
  36. package/dist/common/constants/app.contants.js.map +1 -0
  37. package/dist/common/constants/index.d.ts +2 -0
  38. package/dist/common/constants/index.js +19 -0
  39. package/dist/common/constants/index.js.map +1 -0
  40. package/dist/common/constants/regex.constant.d.ts +6 -0
  41. package/dist/common/constants/regex.constant.js +10 -0
  42. package/dist/common/constants/regex.constant.js.map +1 -0
  43. package/dist/common/database/base.entity.d.ts +15 -0
  44. package/dist/common/database/base.entity.js +76 -0
  45. package/dist/common/database/base.entity.js.map +1 -0
  46. package/dist/common/database/comment.base.entity.d.ts +11 -0
  47. package/dist/common/database/comment.base.entity.js +83 -0
  48. package/dist/common/database/comment.base.entity.js.map +1 -0
  49. package/dist/common/database/index.d.ts +2 -0
  50. package/dist/common/database/index.js +19 -0
  51. package/dist/common/database/index.js.map +1 -0
  52. package/dist/common/dtos/index.d.ts +1 -0
  53. package/dist/common/dtos/index.js +18 -0
  54. package/dist/common/dtos/index.js.map +1 -0
  55. package/dist/common/dtos/send-notification.dto.d.ts +11 -0
  56. package/dist/common/dtos/send-notification.dto.js +60 -0
  57. package/dist/common/dtos/send-notification.dto.js.map +1 -0
  58. package/dist/common/enums/drive.enum.d.ts +20 -0
  59. package/dist/common/enums/drive.enum.js +26 -0
  60. package/dist/common/enums/drive.enum.js.map +1 -0
  61. package/dist/common/enums/index.d.ts +4 -0
  62. package/dist/common/enums/index.js +21 -0
  63. package/dist/common/enums/index.js.map +1 -0
  64. package/dist/common/enums/notification.enum.d.ts +32 -0
  65. package/dist/common/enums/notification.enum.js +39 -0
  66. package/dist/common/enums/notification.enum.js.map +1 -0
  67. package/dist/common/enums/sales.enum.d.ts +41 -0
  68. package/dist/common/enums/sales.enum.js +53 -0
  69. package/dist/common/enums/sales.enum.js.map +1 -0
  70. package/dist/common/enums/tools.enum.d.ts +19 -0
  71. package/dist/common/enums/tools.enum.js +26 -0
  72. package/dist/common/enums/tools.enum.js.map +1 -0
  73. package/dist/common/functions/cripto.d.ts +1 -0
  74. package/dist/common/functions/cripto.js +8 -0
  75. package/dist/common/functions/cripto.js.map +1 -0
  76. package/dist/common/functions/image.d.ts +2 -0
  77. package/dist/common/functions/image.js +14 -0
  78. package/dist/common/functions/image.js.map +1 -0
  79. package/dist/common/functions/index.d.ts +2 -0
  80. package/dist/common/functions/index.js +19 -0
  81. package/dist/common/functions/index.js.map +1 -0
  82. package/dist/common/helpers/app.utils.d.ts +5 -0
  83. package/dist/common/helpers/app.utils.js +32 -0
  84. package/dist/common/helpers/app.utils.js.map +1 -0
  85. package/dist/common/helpers/helpers.utils.d.ts +5 -0
  86. package/dist/common/helpers/helpers.utils.js +26 -0
  87. package/dist/common/helpers/helpers.utils.js.map +1 -0
  88. package/dist/common/helpers/index.d.ts +2 -0
  89. package/dist/common/helpers/index.js +19 -0
  90. package/dist/common/helpers/index.js.map +1 -0
  91. package/dist/common/index.d.ts +8 -0
  92. package/dist/common/index.js +25 -0
  93. package/dist/common/index.js.map +1 -0
  94. package/dist/common/interceptors/index.d.ts +1 -0
  95. package/dist/common/interceptors/index.js +18 -0
  96. package/dist/common/interceptors/index.js.map +1 -0
  97. package/dist/common/interceptors/security.interceptor.d.ts +5 -0
  98. package/dist/common/interceptors/security.interceptor.js +22 -0
  99. package/dist/common/interceptors/security.interceptor.js.map +1 -0
  100. package/dist/entities/app_config/app-config.entity.d.ts +5 -0
  101. package/dist/entities/app_config/app-config.entity.js +33 -0
  102. package/dist/entities/app_config/app-config.entity.js.map +1 -0
  103. package/dist/entities/currency.entity.d.ts +6 -0
  104. package/dist/entities/currency.entity.js +43 -0
  105. package/dist/entities/currency.entity.js.map +1 -0
  106. package/dist/entities/drive/attached_object.entity.d.ts +21 -0
  107. package/dist/entities/drive/attached_object.entity.js +154 -0
  108. package/dist/entities/drive/attached_object.entity.js.map +1 -0
  109. package/dist/entities/drive/file.entity.d.ts +19 -0
  110. package/dist/entities/drive/file.entity.js +130 -0
  111. package/dist/entities/drive/file.entity.js.map +1 -0
  112. package/dist/entities/drive/folder.entity.d.ts +18 -0
  113. package/dist/entities/drive/folder.entity.js +137 -0
  114. package/dist/entities/drive/folder.entity.js.map +1 -0
  115. package/dist/entities/drive/index.d.ts +3 -0
  116. package/dist/entities/drive/index.js +20 -0
  117. package/dist/entities/drive/index.js.map +1 -0
  118. package/dist/entities/easyapp/filter-view.entity.d.ts +7 -0
  119. package/dist/entities/easyapp/filter-view.entity.js +41 -0
  120. package/dist/entities/easyapp/filter-view.entity.js.map +1 -0
  121. package/dist/entities/email.entity.d.ts +5 -0
  122. package/dist/entities/email.entity.js +36 -0
  123. package/dist/entities/email.entity.js.map +1 -0
  124. package/dist/entities/group.entity.d.ts +5 -0
  125. package/dist/entities/group.entity.js +33 -0
  126. package/dist/entities/group.entity.js.map +1 -0
  127. package/dist/entities/helpers/entity_file.entity.d.ts +10 -0
  128. package/dist/entities/helpers/entity_file.entity.js +61 -0
  129. package/dist/entities/helpers/entity_file.entity.js.map +1 -0
  130. package/dist/entities/helpers/entity_folder.entity.d.ts +10 -0
  131. package/dist/entities/helpers/entity_folder.entity.js +61 -0
  132. package/dist/entities/helpers/entity_folder.entity.js.map +1 -0
  133. package/dist/entities/helpers/index.d.ts +4 -0
  134. package/dist/entities/helpers/index.js +21 -0
  135. package/dist/entities/helpers/index.js.map +1 -0
  136. package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +5 -0
  137. package/dist/entities/helpers/sales/common/client_sources.entity.js +36 -0
  138. package/dist/entities/helpers/sales/common/client_sources.entity.js.map +1 -0
  139. package/dist/entities/helpers/sales/common/client_types.entity.d.ts +5 -0
  140. package/dist/entities/helpers/sales/common/client_types.entity.js +36 -0
  141. package/dist/entities/helpers/sales/common/client_types.entity.js.map +1 -0
  142. package/dist/entities/helpers/sales/contact/contact_email.entity.d.ts +11 -0
  143. package/dist/entities/helpers/sales/contact/contact_email.entity.js +68 -0
  144. package/dist/entities/helpers/sales/contact/contact_email.entity.js.map +1 -0
  145. package/dist/entities/helpers/sales/contact/contact_insurance.entity.d.ts +11 -0
  146. package/dist/entities/helpers/sales/contact/contact_insurance.entity.js +68 -0
  147. package/dist/entities/helpers/sales/contact/contact_insurance.entity.js.map +1 -0
  148. package/dist/entities/helpers/sales/contact/contact_phone.entity.d.ts +11 -0
  149. package/dist/entities/helpers/sales/contact/contact_phone.entity.js +68 -0
  150. package/dist/entities/helpers/sales/contact/contact_phone.entity.js.map +1 -0
  151. package/dist/entities/helpers/sales/contact/index.d.ts +5 -0
  152. package/dist/entities/helpers/sales/contact/index.js +22 -0
  153. package/dist/entities/helpers/sales/contact/index.js.map +1 -0
  154. package/dist/entities/helpers/sales/index.d.ts +6 -0
  155. package/dist/entities/helpers/sales/index.js +23 -0
  156. package/dist/entities/helpers/sales/index.js.map +1 -0
  157. package/dist/entities/helpers/sales/lead/h_lead_source.entity.d.ts +4 -0
  158. package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +30 -0
  159. package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +1 -0
  160. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.d.ts +5 -0
  161. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +36 -0
  162. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +1 -0
  163. package/dist/entities/helpers/sales/lead/h_lead_types.entity.d.ts +4 -0
  164. package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +30 -0
  165. package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +1 -0
  166. package/dist/entities/helpers/sales/lead/index.d.ts +6 -0
  167. package/dist/entities/helpers/sales/lead/index.js +23 -0
  168. package/dist/entities/helpers/sales/lead/index.js.map +1 -0
  169. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.d.ts +4 -0
  170. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js +28 -0
  171. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js.map +1 -0
  172. package/dist/entities/helpers/sales/lead/lead_email.entity.d.ts +11 -0
  173. package/dist/entities/helpers/sales/lead/lead_email.entity.js +66 -0
  174. package/dist/entities/helpers/sales/lead/lead_email.entity.js.map +1 -0
  175. package/dist/entities/helpers/sales/lead/lead_phone.entity.d.ts +11 -0
  176. package/dist/entities/helpers/sales/lead/lead_phone.entity.js +66 -0
  177. package/dist/entities/helpers/sales/lead/lead_phone.entity.js.map +1 -0
  178. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.d.ts +5 -0
  179. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js +30 -0
  180. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js.map +1 -0
  181. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.d.ts +5 -0
  182. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js +33 -0
  183. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js.map +1 -0
  184. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.d.ts +6 -0
  185. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +39 -0
  186. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +1 -0
  187. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.d.ts +6 -0
  188. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +39 -0
  189. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +1 -0
  190. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.d.ts +5 -0
  191. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js +30 -0
  192. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js.map +1 -0
  193. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.d.ts +6 -0
  194. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js +36 -0
  195. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js.map +1 -0
  196. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.d.ts +5 -0
  197. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +33 -0
  198. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +1 -0
  199. package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.d.ts +8 -0
  200. package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js +53 -0
  201. package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js.map +1 -0
  202. package/dist/entities/helpers/sales/poliza/index.d.ts +10 -0
  203. package/dist/entities/helpers/sales/poliza/index.js +27 -0
  204. package/dist/entities/helpers/sales/poliza/index.js.map +1 -0
  205. package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +11 -0
  206. package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +68 -0
  207. package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +1 -0
  208. package/dist/entities/helpers/sales/poliza/poliza_insured.entity.d.ts +11 -0
  209. package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js +86 -0
  210. package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js.map +1 -0
  211. package/dist/entities/helpers/tools/index.d.ts +1 -0
  212. package/dist/entities/helpers/tools/index.js +18 -0
  213. package/dist/entities/helpers/tools/index.js.map +1 -0
  214. package/dist/entities/helpers/tools/task_crm.entity.d.ts +19 -0
  215. package/dist/entities/helpers/tools/task_crm.entity.js +136 -0
  216. package/dist/entities/helpers/tools/task_crm.entity.js.map +1 -0
  217. package/dist/entities/helpers/user/access_history.entity.d.ts +9 -0
  218. package/dist/entities/helpers/user/access_history.entity.js +58 -0
  219. package/dist/entities/helpers/user/access_history.entity.js.map +1 -0
  220. package/dist/entities/imap-config.entity.d.ts +11 -0
  221. package/dist/entities/imap-config.entity.js +61 -0
  222. package/dist/entities/imap-config.entity.js.map +1 -0
  223. package/dist/entities/index.d.ts +26 -0
  224. package/dist/entities/index.js +43 -0
  225. package/dist/entities/index.js.map +1 -0
  226. package/dist/entities/menu-permissions.entity.d.ts +7 -0
  227. package/dist/entities/menu-permissions.entity.js +42 -0
  228. package/dist/entities/menu-permissions.entity.js.map +1 -0
  229. package/dist/entities/notifications/index.d.ts +2 -0
  230. package/dist/entities/notifications/index.js +19 -0
  231. package/dist/entities/notifications/index.js.map +1 -0
  232. package/dist/entities/notifications/notification.entity.d.ts +15 -0
  233. package/dist/entities/notifications/notification.entity.js +119 -0
  234. package/dist/entities/notifications/notification.entity.js.map +1 -0
  235. package/dist/entities/notifications/push-token.entity.d.ts +7 -0
  236. package/dist/entities/notifications/push-token.entity.js +45 -0
  237. package/dist/entities/notifications/push-token.entity.js.map +1 -0
  238. package/dist/entities/otp-log.entity.d.ts +8 -0
  239. package/dist/entities/otp-log.entity.js +49 -0
  240. package/dist/entities/otp-log.entity.js.map +1 -0
  241. package/dist/entities/permission.entity.d.ts +7 -0
  242. package/dist/entities/permission.entity.js +46 -0
  243. package/dist/entities/permission.entity.js.map +1 -0
  244. package/dist/entities/phone.entity.d.ts +5 -0
  245. package/dist/entities/phone.entity.js +36 -0
  246. package/dist/entities/phone.entity.js.map +1 -0
  247. package/dist/entities/profile.entity.d.ts +9 -0
  248. package/dist/entities/profile.entity.js +56 -0
  249. package/dist/entities/profile.entity.js.map +1 -0
  250. package/dist/entities/protocol.entity.d.ts +8 -0
  251. package/dist/entities/protocol.entity.js +46 -0
  252. package/dist/entities/protocol.entity.js.map +1 -0
  253. package/dist/entities/refresh-token.entity.d.ts +8 -0
  254. package/dist/entities/refresh-token.entity.js +46 -0
  255. package/dist/entities/refresh-token.entity.js.map +1 -0
  256. package/dist/entities/role.entity.d.ts +6 -0
  257. package/dist/entities/role.entity.js +42 -0
  258. package/dist/entities/role.entity.js.map +1 -0
  259. package/dist/entities/sales/agente-intermediario.entity.d.ts +5 -0
  260. package/dist/entities/sales/agente-intermediario.entity.js +34 -0
  261. package/dist/entities/sales/agente-intermediario.entity.js.map +1 -0
  262. package/dist/entities/sales/beneficiarios/index.d.ts +2 -0
  263. package/dist/entities/sales/beneficiarios/index.js +19 -0
  264. package/dist/entities/sales/beneficiarios/index.js.map +1 -0
  265. package/dist/entities/sales/beneficiarios/person.entity.d.ts +10 -0
  266. package/dist/entities/sales/beneficiarios/person.entity.js +89 -0
  267. package/dist/entities/sales/beneficiarios/person.entity.js.map +1 -0
  268. package/dist/entities/sales/beneficiarios/vehicle.entity.d.ts +16 -0
  269. package/dist/entities/sales/beneficiarios/vehicle.entity.js +106 -0
  270. package/dist/entities/sales/beneficiarios/vehicle.entity.js.map +1 -0
  271. package/dist/entities/sales/contact-comment.entity.d.ts +5 -0
  272. package/dist/entities/sales/contact-comment.entity.js +32 -0
  273. package/dist/entities/sales/contact-comment.entity.js.map +1 -0
  274. package/dist/entities/sales/contact.entity.d.ts +49 -0
  275. package/dist/entities/sales/contact.entity.js +303 -0
  276. package/dist/entities/sales/contact.entity.js.map +1 -0
  277. package/dist/entities/sales/index.d.ts +12 -0
  278. package/dist/entities/sales/index.js +29 -0
  279. package/dist/entities/sales/index.js.map +1 -0
  280. package/dist/entities/sales/lead-comment.entity.d.ts +5 -0
  281. package/dist/entities/sales/lead-comment.entity.js +32 -0
  282. package/dist/entities/sales/lead-comment.entity.js.map +1 -0
  283. package/dist/entities/sales/lead.entity.d.ts +51 -0
  284. package/dist/entities/sales/lead.entity.js +344 -0
  285. package/dist/entities/sales/lead.entity.js.map +1 -0
  286. package/dist/entities/sales/poliza-comment.entity.d.ts +5 -0
  287. package/dist/entities/sales/poliza-comment.entity.js +32 -0
  288. package/dist/entities/sales/poliza-comment.entity.js.map +1 -0
  289. package/dist/entities/sales/poliza.entity.d.ts +112 -0
  290. package/dist/entities/sales/poliza.entity.js +1103 -0
  291. package/dist/entities/sales/poliza.entity.js.map +1 -0
  292. package/dist/entities/sales/poliza_siniestro.entity.d.ts +12 -0
  293. package/dist/entities/sales/poliza_siniestro.entity.js +72 -0
  294. package/dist/entities/sales/poliza_siniestro.entity.js.map +1 -0
  295. package/dist/entities/sales/receipt-comment.entity.d.ts +5 -0
  296. package/dist/entities/sales/receipt-comment.entity.js +32 -0
  297. package/dist/entities/sales/receipt-comment.entity.js.map +1 -0
  298. package/dist/entities/sales/receipt-sub-agente.entity.d.ts +5 -0
  299. package/dist/entities/sales/receipt-sub-agente.entity.js +35 -0
  300. package/dist/entities/sales/receipt-sub-agente.entity.js.map +1 -0
  301. package/dist/entities/sales/receipt.entity.d.ts +31 -0
  302. package/dist/entities/sales/receipt.entity.js +203 -0
  303. package/dist/entities/sales/receipt.entity.js.map +1 -0
  304. package/dist/entities/tag.entity.d.ts +8 -0
  305. package/dist/entities/tag.entity.js +53 -0
  306. package/dist/entities/tag.entity.js.map +1 -0
  307. package/dist/entities/thirdparty/email-config.entity.d.ts +14 -0
  308. package/dist/entities/thirdparty/email-config.entity.js +76 -0
  309. package/dist/entities/thirdparty/email-config.entity.js.map +1 -0
  310. package/dist/entities/thirdparty/email.entity.d.ts +17 -0
  311. package/dist/entities/thirdparty/email.entity.js +79 -0
  312. package/dist/entities/thirdparty/email.entity.js.map +1 -0
  313. package/dist/entities/thirdparty/oauth.entity.d.ts +18 -0
  314. package/dist/entities/thirdparty/oauth.entity.js +93 -0
  315. package/dist/entities/thirdparty/oauth.entity.js.map +1 -0
  316. package/dist/entities/thirdparty/service.entity.d.ts +6 -0
  317. package/dist/entities/thirdparty/service.entity.js +32 -0
  318. package/dist/entities/thirdparty/service.entity.js.map +1 -0
  319. package/dist/entities/thirdparty/user-email-relation.entity.d.ts +7 -0
  320. package/dist/entities/thirdparty/user-email-relation.entity.js +35 -0
  321. package/dist/entities/thirdparty/user-email-relation.entity.js.map +1 -0
  322. package/dist/entities/tools/calendar/event.entity.d.ts +19 -0
  323. package/dist/entities/tools/calendar/event.entity.js +132 -0
  324. package/dist/entities/tools/calendar/event.entity.js.map +1 -0
  325. package/dist/entities/tools/calendar/index.d.ts +1 -0
  326. package/dist/entities/tools/calendar/index.js +18 -0
  327. package/dist/entities/tools/calendar/index.js.map +1 -0
  328. package/dist/entities/tools/index.d.ts +4 -0
  329. package/dist/entities/tools/index.js +21 -0
  330. package/dist/entities/tools/index.js.map +1 -0
  331. package/dist/entities/tools/task-comment.entity.d.ts +6 -0
  332. package/dist/entities/tools/task-comment.entity.js +38 -0
  333. package/dist/entities/tools/task-comment.entity.js.map +1 -0
  334. package/dist/entities/tools/task-list-field.d.ts +5 -0
  335. package/dist/entities/tools/task-list-field.js +39 -0
  336. package/dist/entities/tools/task-list-field.js.map +1 -0
  337. package/dist/entities/tools/task.entity.d.ts +34 -0
  338. package/dist/entities/tools/task.entity.js +221 -0
  339. package/dist/entities/tools/task.entity.js.map +1 -0
  340. package/dist/entities/user.entity.d.ts +29 -0
  341. package/dist/entities/user.entity.js +168 -0
  342. package/dist/entities/user.entity.js.map +1 -0
  343. package/dist/eslint.config.d.ts +2 -0
  344. package/dist/eslint.config.js +46 -0
  345. package/dist/eslint.config.js.map +1 -0
  346. package/dist/grpc/drive/drive.proto +179 -0
  347. package/dist/index.d.ts +3 -0
  348. package/dist/index.js +20 -0
  349. package/dist/index.js.map +1 -0
  350. package/dist/modules/index.d.ts +4 -0
  351. package/dist/modules/index.js +21 -0
  352. package/dist/modules/index.js.map +1 -0
  353. package/dist/modules/queue/event.service.d.ts +9 -0
  354. package/dist/modules/queue/event.service.js +40 -0
  355. package/dist/modules/queue/event.service.js.map +1 -0
  356. package/dist/modules/queue/notifier.service.d.ts +15 -0
  357. package/dist/modules/queue/notifier.service.js +70 -0
  358. package/dist/modules/queue/notifier.service.js.map +1 -0
  359. package/dist/modules/queue/notifiers/calendar.notifier.d.ts +2 -0
  360. package/dist/modules/queue/notifiers/calendar.notifier.js +17 -0
  361. package/dist/modules/queue/notifiers/calendar.notifier.js.map +1 -0
  362. package/dist/modules/queue/notifiers/contact.notifier.d.ts +7 -0
  363. package/dist/modules/queue/notifiers/contact.notifier.js +49 -0
  364. package/dist/modules/queue/notifiers/contact.notifier.js.map +1 -0
  365. package/dist/modules/queue/notifiers/index.d.ts +4 -0
  366. package/dist/modules/queue/notifiers/index.js +21 -0
  367. package/dist/modules/queue/notifiers/index.js.map +1 -0
  368. package/dist/modules/queue/notifiers/lead.notifier.d.ts +7 -0
  369. package/dist/modules/queue/notifiers/lead.notifier.js +49 -0
  370. package/dist/modules/queue/notifiers/lead.notifier.js.map +1 -0
  371. package/dist/modules/queue/notifiers/task.notifier.d.ts +15 -0
  372. package/dist/modules/queue/notifiers/task.notifier.js +130 -0
  373. package/dist/modules/queue/notifiers/task.notifier.js.map +1 -0
  374. package/dist/modules/queue/queue.module.d.ts +4 -0
  375. package/dist/modules/queue/queue.module.js +57 -0
  376. package/dist/modules/queue/queue.module.js.map +1 -0
  377. package/dist/modules/queue/scheduler.service.d.ts +9 -0
  378. package/dist/modules/queue/scheduler.service.js +40 -0
  379. package/dist/modules/queue/scheduler.service.js.map +1 -0
  380. package/package.json +1 -1
  381. package/tsconfig.tsbuildinfo +1 -0
@@ -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.ContactComment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const contact_entity_1 = require("./contact.entity");
15
+ const swagger_1 = require("@nestjs/swagger");
16
+ const common_1 = require("../../common");
17
+ let ContactComment = class ContactComment extends common_1.CommentBase {
18
+ contact;
19
+ };
20
+ exports.ContactComment = ContactComment;
21
+ __decorate([
22
+ (0, swagger_1.ApiProperty)({ type: () => contact_entity_1.Contact, description: 'Contact associated with the comment' }),
23
+ (0, typeorm_1.ManyToOne)(() => contact_entity_1.Contact, {
24
+ onDelete: "CASCADE",
25
+ onUpdate: "CASCADE",
26
+ }),
27
+ __metadata("design:type", contact_entity_1.Contact)
28
+ ], ContactComment.prototype, "contact", void 0);
29
+ exports.ContactComment = ContactComment = __decorate([
30
+ (0, typeorm_1.Entity)()
31
+ ], ContactComment);
32
+ //# sourceMappingURL=contact-comment.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4C;AAC5C,qDAA2C;AAC3C,6CAA8C;AAC9C,yCAA2C;AAGpC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,oBAAW;IAM3C,OAAO,CAAU;CACpB,CAAA;AAPY,wCAAc;AAMvB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,wBAAO,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;IACxF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACO,wBAAO;+CAAC;yBANR,cAAc;IAD1B,IAAA,gBAAM,GAAE;GACI,cAAc,CAO1B"}
@@ -0,0 +1,49 @@
1
+ import { EntityBase } from "../../common/database/base.entity";
2
+ import { ContactEmail } from "../helpers/sales/contact/contact_email.entity";
3
+ import { ContactPhone } from "../helpers/sales/contact/contact_phone.entity";
4
+ import { ClientSource } from "../helpers/sales/common/client_sources.entity";
5
+ import { ClientType } from "../helpers/sales/common/client_types.entity";
6
+ import { User } from "../user.entity";
7
+ import { Poliza } from "./poliza.entity";
8
+ import { Lead } from "./lead.entity";
9
+ import { PersonType } from "../../common";
10
+ import { ContactInsurance } from "../helpers/sales/contact/contact_insurance.entity";
11
+ import { TaskCRM } from "../helpers";
12
+ import { ContactComment } from "./contact-comment.entity";
13
+ export declare class Contact extends EntityBase {
14
+ idBitrix?: number;
15
+ number: number;
16
+ typePerson: PersonType;
17
+ codigo?: string;
18
+ fullName?: string;
19
+ name?: string;
20
+ lastName?: string;
21
+ secondName?: string;
22
+ codigos?: ContactInsurance[];
23
+ rfc?: string;
24
+ address?: string;
25
+ phones?: ContactPhone[];
26
+ emails?: ContactEmail[];
27
+ cargo?: string;
28
+ birthdate?: Date;
29
+ gender?: string;
30
+ type?: ClientType;
31
+ source?: ClientSource;
32
+ assignedBy?: User;
33
+ tasks: TaskCRM[];
34
+ observer?: User;
35
+ lead?: Lead;
36
+ relations?: Contact[];
37
+ curp?: string;
38
+ cua?: string;
39
+ photo?: string;
40
+ post?: string;
41
+ observations?: string;
42
+ company?: string;
43
+ export?: boolean;
44
+ sourceDescription?: string;
45
+ polizas?: Poliza[];
46
+ createdBy?: User;
47
+ modifiedBy?: User;
48
+ comments: ContactComment[];
49
+ }
@@ -0,0 +1,303 @@
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.Contact = void 0;
13
+ const base_entity_1 = require("../../common/database/base.entity");
14
+ const contact_email_entity_1 = require("../helpers/sales/contact/contact_email.entity");
15
+ const contact_phone_entity_1 = require("../helpers/sales/contact/contact_phone.entity");
16
+ const client_sources_entity_1 = require("../helpers/sales/common/client_sources.entity");
17
+ const client_types_entity_1 = require("../helpers/sales/common/client_types.entity");
18
+ const user_entity_1 = require("../user.entity");
19
+ const typeorm_1 = require("typeorm");
20
+ const poliza_entity_1 = require("./poliza.entity");
21
+ const swagger_1 = require("@nestjs/swagger");
22
+ const lead_entity_1 = require("./lead.entity");
23
+ const common_1 = require("../../common");
24
+ const contact_insurance_entity_1 = require("../helpers/sales/contact/contact_insurance.entity");
25
+ const helpers_1 = require("../helpers");
26
+ const contact_comment_entity_1 = require("./contact-comment.entity");
27
+ let Contact = class Contact extends base_entity_1.EntityBase {
28
+ idBitrix;
29
+ number;
30
+ typePerson;
31
+ codigo;
32
+ fullName;
33
+ name;
34
+ lastName;
35
+ secondName;
36
+ codigos;
37
+ rfc;
38
+ address;
39
+ phones;
40
+ emails;
41
+ cargo;
42
+ birthdate;
43
+ gender;
44
+ type;
45
+ source;
46
+ assignedBy;
47
+ tasks;
48
+ observer;
49
+ lead;
50
+ relations;
51
+ curp;
52
+ cua;
53
+ photo;
54
+ post;
55
+ observations;
56
+ company;
57
+ export;
58
+ sourceDescription;
59
+ polizas;
60
+ createdBy;
61
+ modifiedBy;
62
+ comments;
63
+ };
64
+ exports.Contact = Contact;
65
+ __decorate([
66
+ (0, swagger_1.ApiProperty)({ type: Number, description: 'Bitrix ID of the contact', required: false }),
67
+ (0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
68
+ __metadata("design:type", Number)
69
+ ], Contact.prototype, "idBitrix", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)(),
72
+ (0, typeorm_1.Generated)("increment"),
73
+ __metadata("design:type", Number)
74
+ ], Contact.prototype, "number", void 0);
75
+ __decorate([
76
+ (0, swagger_1.ApiProperty)({
77
+ enum: common_1.PersonType,
78
+ description: 'Type of person',
79
+ default: common_1.PersonType.FISICA
80
+ }),
81
+ (0, typeorm_1.Column)({
82
+ type: "enum",
83
+ enum: common_1.PersonType,
84
+ default: common_1.PersonType.FISICA
85
+ }),
86
+ __metadata("design:type", String)
87
+ ], Contact.prototype, "typePerson", void 0);
88
+ __decorate([
89
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Code of the contact', required: false }),
90
+ (0, typeorm_1.Column)({ name: "codigo", length: 100, nullable: true }),
91
+ __metadata("design:type", String)
92
+ ], Contact.prototype, "codigo", void 0);
93
+ __decorate([
94
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Full name of the contact', required: false }),
95
+ (0, typeorm_1.Column)({ name: "full_name", length: 255, nullable: true }),
96
+ __metadata("design:type", String)
97
+ ], Contact.prototype, "fullName", void 0);
98
+ __decorate([
99
+ (0, swagger_1.ApiProperty)({ type: String, description: 'First name of the contact', required: false }),
100
+ (0, typeorm_1.Column)({ name: "name", length: 150, nullable: true }),
101
+ __metadata("design:type", String)
102
+ ], Contact.prototype, "name", void 0);
103
+ __decorate([
104
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Last name of the contact', required: false }),
105
+ (0, typeorm_1.Column)({ name: "last_name", length: 150, nullable: true }),
106
+ __metadata("design:type", String)
107
+ ], Contact.prototype, "lastName", void 0);
108
+ __decorate([
109
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Second name of the contact', required: false }),
110
+ (0, typeorm_1.Column)({ name: "second_name", length: 150, nullable: true }),
111
+ __metadata("design:type", String)
112
+ ], Contact.prototype, "secondName", void 0);
113
+ __decorate([
114
+ (0, swagger_1.ApiProperty)({ type: () => [contact_insurance_entity_1.ContactInsurance], description: 'Codigos de aseguradoras' }),
115
+ (0, typeorm_1.OneToMany)(() => contact_insurance_entity_1.ContactInsurance, (contactEmail) => contactEmail.contact, {
116
+ onDelete: "CASCADE",
117
+ onUpdate: "CASCADE",
118
+ eager: true,
119
+ }),
120
+ __metadata("design:type", Array)
121
+ ], Contact.prototype, "codigos", void 0);
122
+ __decorate([
123
+ (0, swagger_1.ApiProperty)({ type: String, description: 'RFC of the contact', required: false }),
124
+ (0, typeorm_1.Column)({ name: "rfc", length: 100, nullable: true }),
125
+ __metadata("design:type", String)
126
+ ], Contact.prototype, "rfc", void 0);
127
+ __decorate([
128
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Address of the contact', required: false }),
129
+ (0, typeorm_1.Column)({ name: "address", type: "text", nullable: true }),
130
+ __metadata("design:type", String)
131
+ ], Contact.prototype, "address", void 0);
132
+ __decorate([
133
+ (0, swagger_1.ApiProperty)({ type: () => [contact_phone_entity_1.ContactPhone], description: 'Phones associated with the contact' }),
134
+ (0, typeorm_1.OneToMany)(() => contact_phone_entity_1.ContactPhone, (contactPhone) => contactPhone.contact, {
135
+ onDelete: "CASCADE",
136
+ onUpdate: "CASCADE",
137
+ eager: true,
138
+ }),
139
+ __metadata("design:type", Array)
140
+ ], Contact.prototype, "phones", void 0);
141
+ __decorate([
142
+ (0, swagger_1.ApiProperty)({ type: () => [contact_email_entity_1.ContactEmail], description: 'Emails associated with the contact' }),
143
+ (0, typeorm_1.OneToMany)(() => contact_email_entity_1.ContactEmail, (contactEmail) => contactEmail.contact, {
144
+ onDelete: "CASCADE",
145
+ onUpdate: "CASCADE",
146
+ eager: true,
147
+ }),
148
+ __metadata("design:type", Array)
149
+ ], Contact.prototype, "emails", void 0);
150
+ __decorate([
151
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Cargo of the contact', required: false }),
152
+ (0, typeorm_1.Column)({ name: "cargo", length: 150, nullable: true }),
153
+ __metadata("design:type", String)
154
+ ], Contact.prototype, "cargo", void 0);
155
+ __decorate([
156
+ (0, swagger_1.ApiProperty)({ type: Date, description: 'Birthdate of the contact', required: false }),
157
+ (0, typeorm_1.Column)({ name: "birthdate", nullable: true }),
158
+ __metadata("design:type", Date)
159
+ ], Contact.prototype, "birthdate", void 0);
160
+ __decorate([
161
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Gender of the contact', required: false }),
162
+ (0, typeorm_1.Column)({ name: "gender", length: 10, nullable: true }),
163
+ __metadata("design:type", String)
164
+ ], Contact.prototype, "gender", void 0);
165
+ __decorate([
166
+ (0, swagger_1.ApiProperty)({ type: () => client_types_entity_1.ClientType, description: 'Contact type', required: true }),
167
+ (0, typeorm_1.ManyToOne)(() => client_types_entity_1.ClientType, {
168
+ onDelete: "SET NULL",
169
+ onUpdate: "CASCADE",
170
+ nullable: true,
171
+ eager: true,
172
+ }),
173
+ __metadata("design:type", client_types_entity_1.ClientType)
174
+ ], Contact.prototype, "type", void 0);
175
+ __decorate([
176
+ (0, swagger_1.ApiProperty)({ type: () => client_sources_entity_1.ClientSource, description: 'Contact source', required: true }),
177
+ (0, typeorm_1.ManyToOne)(() => client_sources_entity_1.ClientSource, {
178
+ onDelete: "SET NULL",
179
+ onUpdate: "CASCADE",
180
+ nullable: true,
181
+ eager: true,
182
+ }),
183
+ __metadata("design:type", client_sources_entity_1.ClientSource)
184
+ ], Contact.prototype, "source", void 0);
185
+ __decorate([
186
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User assigned to the contact', required: false }),
187
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
188
+ onDelete: "SET NULL",
189
+ onUpdate: "CASCADE",
190
+ nullable: true,
191
+ }),
192
+ __metadata("design:type", user_entity_1.User)
193
+ ], Contact.prototype, "assignedBy", void 0);
194
+ __decorate([
195
+ (0, swagger_1.ApiProperty)({ type: () => [helpers_1.TaskCRM], description: 'Tasks associated with the contact' }),
196
+ (0, typeorm_1.OneToMany)(() => helpers_1.TaskCRM, task => task.contact, { cascade: true, onDelete: 'CASCADE' }),
197
+ __metadata("design:type", Array)
198
+ ], Contact.prototype, "tasks", void 0);
199
+ __decorate([
200
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User observing the contact', required: false }),
201
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
202
+ onDelete: "SET NULL",
203
+ onUpdate: "CASCADE",
204
+ nullable: true,
205
+ }),
206
+ __metadata("design:type", user_entity_1.User)
207
+ ], Contact.prototype, "observer", void 0);
208
+ __decorate([
209
+ (0, swagger_1.ApiProperty)({ type: () => lead_entity_1.Lead, description: 'Lead associated with this contact', required: false }),
210
+ (0, typeorm_1.OneToOne)(() => lead_entity_1.Lead, (lead) => lead.contact, {
211
+ onDelete: "CASCADE",
212
+ onUpdate: "CASCADE",
213
+ }),
214
+ (0, typeorm_1.JoinColumn)(),
215
+ __metadata("design:type", lead_entity_1.Lead)
216
+ ], Contact.prototype, "lead", void 0);
217
+ __decorate([
218
+ (0, swagger_1.ApiProperty)({ type: () => [Contact], description: 'Contacts related' }),
219
+ (0, typeorm_1.ManyToMany)(() => Contact, {
220
+ onDelete: "CASCADE",
221
+ onUpdate: "CASCADE",
222
+ }),
223
+ (0, typeorm_1.JoinTable)(),
224
+ __metadata("design:type", Array)
225
+ ], Contact.prototype, "relations", void 0);
226
+ __decorate([
227
+ (0, swagger_1.ApiProperty)({ type: String, description: 'CURP of the contact', required: false }),
228
+ (0, typeorm_1.Column)({ name: "curp", length: 50, nullable: true }),
229
+ __metadata("design:type", String)
230
+ ], Contact.prototype, "curp", void 0);
231
+ __decorate([
232
+ (0, swagger_1.ApiProperty)({ type: String, description: 'CUA of the contact', required: false }),
233
+ (0, typeorm_1.Column)({ name: "cua", length: 50, nullable: true }),
234
+ __metadata("design:type", String)
235
+ ], Contact.prototype, "cua", void 0);
236
+ __decorate([
237
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Photo URL of the contact', required: false }),
238
+ (0, typeorm_1.Column)({ name: "photo", length: 255, nullable: true }),
239
+ __metadata("design:type", String)
240
+ ], Contact.prototype, "photo", void 0);
241
+ __decorate([
242
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Post of the contact', required: false }),
243
+ (0, typeorm_1.Column)({ name: "post", type: "text", nullable: true }),
244
+ __metadata("design:type", String)
245
+ ], Contact.prototype, "post", void 0);
246
+ __decorate([
247
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Comments about the contact', required: false }),
248
+ (0, typeorm_1.Column)({ name: "observations", type: "text", nullable: true }),
249
+ __metadata("design:type", String)
250
+ ], Contact.prototype, "observations", void 0);
251
+ __decorate([
252
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Company of the contact', required: false }),
253
+ (0, typeorm_1.Column)({ length: 255, nullable: true }),
254
+ __metadata("design:type", String)
255
+ ], Contact.prototype, "company", void 0);
256
+ __decorate([
257
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the contact exported?', default: false }),
258
+ (0, typeorm_1.Column)({ name: "export", default: false }),
259
+ __metadata("design:type", Boolean)
260
+ ], Contact.prototype, "export", void 0);
261
+ __decorate([
262
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Source description of the contact', required: false }),
263
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
264
+ __metadata("design:type", String)
265
+ ], Contact.prototype, "sourceDescription", void 0);
266
+ __decorate([
267
+ (0, swagger_1.ApiProperty)({ type: () => [poliza_entity_1.Poliza], description: 'Polizas associated with the contact' }),
268
+ (0, typeorm_1.OneToMany)(() => poliza_entity_1.Poliza, (poliza) => poliza.contact, {
269
+ onDelete: "CASCADE",
270
+ onUpdate: "CASCADE",
271
+ }),
272
+ __metadata("design:type", Array)
273
+ ], Contact.prototype, "polizas", void 0);
274
+ __decorate([
275
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the contact', required: false }),
276
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
277
+ onDelete: "SET NULL",
278
+ onUpdate: "CASCADE",
279
+ nullable: true,
280
+ }),
281
+ (0, typeorm_1.JoinColumn)(),
282
+ __metadata("design:type", user_entity_1.User)
283
+ ], Contact.prototype, "createdBy", void 0);
284
+ __decorate([
285
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who modified the contact', required: false }),
286
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
287
+ onDelete: "SET NULL",
288
+ onUpdate: "CASCADE",
289
+ nullable: true,
290
+ }),
291
+ (0, typeorm_1.JoinColumn)(),
292
+ __metadata("design:type", user_entity_1.User)
293
+ ], Contact.prototype, "modifiedBy", void 0);
294
+ __decorate([
295
+ (0, swagger_1.ApiProperty)({ type: () => [contact_comment_entity_1.ContactComment], description: 'Comments on the contact' }),
296
+ (0, typeorm_1.OneToMany)(() => contact_comment_entity_1.ContactComment, contactComment => contactComment.contact),
297
+ (0, typeorm_1.JoinColumn)(),
298
+ __metadata("design:type", Array)
299
+ ], Contact.prototype, "comments", void 0);
300
+ exports.Contact = Contact = __decorate([
301
+ (0, typeorm_1.Entity)()
302
+ ], Contact);
303
+ //# sourceMappingURL=contact.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAAgE;AAChE,wFAA6E;AAC7E,wFAA6E;AAC7E,yFAA6E;AAC7E,qFAAyE;AACzE,gDAAsC;AACtC,qCAAuH;AACvH,mDAAyC;AACzC,6CAA8C;AAC9C,+CAAqC;AACrC,yCAA0C;AAC1C,gGAAqF;AACrF,wCAAqC;AACrC,qEAA0D;AAGnD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,wBAAU;IAGrC,QAAQ,CAAU;IAIlB,MAAM,CAAS;IAYf,UAAU,CAAa;IAIvB,MAAM,CAAU;IAKhB,QAAQ,CAAU;IAIlB,IAAI,CAAU;IAId,QAAQ,CAAU;IAIlB,UAAU,CAAU;IASpB,OAAO,CAAsB;IAI7B,GAAG,CAAU;IAIb,OAAO,CAAU;IAQjB,MAAM,CA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M,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE;QACnD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;;wCACiB;AASnB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,8BAA8B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACD,kBAAI;0CAAC;AASjB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,+BAA+B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,kBAAI;2CAAC;AAKlB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,uCAAc,CAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACrF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,cAAc,CAAC,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC;IACzE,IAAA,oBAAU,GAAE;;yCACc;kBAzMhB,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CA0MnB"}
@@ -0,0 +1,12 @@
1
+ export * from './poliza-comment.entity';
2
+ export * from './receipt.entity';
3
+ export * from './agente-intermediario.entity';
4
+ export * from './lead-comment.entity';
5
+ export * from './contact.entity';
6
+ export * from './receipt-sub-agente.entity';
7
+ export * from './poliza_siniestro.entity';
8
+ export * from './lead.entity';
9
+ export * from './receipt-comment.entity';
10
+ export * from './poliza.entity';
11
+ export * from './contact-comment.entity';
12
+ export * from "./beneficiarios";
@@ -0,0 +1,29 @@
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("./poliza-comment.entity"), exports);
18
+ __exportStar(require("./receipt.entity"), exports);
19
+ __exportStar(require("./agente-intermediario.entity"), exports);
20
+ __exportStar(require("./lead-comment.entity"), exports);
21
+ __exportStar(require("./contact.entity"), exports);
22
+ __exportStar(require("./receipt-sub-agente.entity"), exports);
23
+ __exportStar(require("./poliza_siniestro.entity"), exports);
24
+ __exportStar(require("./lead.entity"), exports);
25
+ __exportStar(require("./receipt-comment.entity"), exports);
26
+ __exportStar(require("./poliza.entity"), exports);
27
+ __exportStar(require("./contact-comment.entity"), exports);
28
+ __exportStar(require("./beneficiarios"), exports);
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/sales/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mDAAiC;AACjC,gEAA8C;AAC9C,wDAAsC;AACtC,mDAAiC;AACjC,8DAA4C;AAC5C,4DAA0C;AAC1C,gDAA8B;AAC9B,2DAAyC;AACzC,kDAAgC;AAChC,2DAAyC;AACzC,kDAA+B"}
@@ -0,0 +1,5 @@
1
+ import { Lead } from "./lead.entity";
2
+ import { CommentBase } from "../../common";
3
+ export declare class LeadComment extends CommentBase {
4
+ lead: Lead;
5
+ }
@@ -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.LeadComment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const lead_entity_1 = require("./lead.entity");
15
+ const swagger_1 = require("@nestjs/swagger");
16
+ const common_1 = require("../../common");
17
+ let LeadComment = class LeadComment extends common_1.CommentBase {
18
+ lead;
19
+ };
20
+ exports.LeadComment = LeadComment;
21
+ __decorate([
22
+ (0, swagger_1.ApiProperty)({ type: () => lead_entity_1.Lead, description: 'Lead associated with the comment' }),
23
+ (0, typeorm_1.ManyToOne)(() => lead_entity_1.Lead, {
24
+ onDelete: "CASCADE",
25
+ onUpdate: "CASCADE",
26
+ }),
27
+ __metadata("design:type", lead_entity_1.Lead)
28
+ ], LeadComment.prototype, "lead", void 0);
29
+ exports.LeadComment = LeadComment = __decorate([
30
+ (0, typeorm_1.Entity)()
31
+ ], LeadComment);
32
+ //# sourceMappingURL=lead-comment.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lead-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/lead-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4C;AAC5C,+CAAqC;AACrC,6CAA8C;AAC9C,yCAA2C;AAGpC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,oBAAW;IAMxC,IAAI,CAAO;CACd,CAAA;AAPY,kCAAW;AAMpB;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;sBANF,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CAOvB"}
@@ -0,0 +1,51 @@
1
+ import { EntityBase } from "../../common/database/base.entity";
2
+ import { ClientSource } from "../helpers/sales/common/client_sources.entity";
3
+ import { ClientType } from "../helpers/sales/common/client_types.entity";
4
+ import { User } from "../user.entity";
5
+ import { PersonType } from "../../common";
6
+ import { Contact } from "./contact.entity";
7
+ import { LeadStage, LeadCancelReazon, LeadEmail, LeadPhone } from "../helpers";
8
+ import { LeadComment } from "./lead-comment.entity";
9
+ import { Currency } from "../currency.entity";
10
+ export declare class Lead extends EntityBase {
11
+ idBitrix?: number;
12
+ number: number;
13
+ typePerson: PersonType;
14
+ codigo?: string;
15
+ fullName?: string;
16
+ name?: string;
17
+ lastName?: string;
18
+ secondName?: string;
19
+ rfc?: string;
20
+ address?: string;
21
+ phones?: LeadPhone[];
22
+ emails?: LeadEmail[];
23
+ cargo?: string;
24
+ birthdate?: Date;
25
+ gender?: string;
26
+ type?: ClientType;
27
+ source?: ClientSource;
28
+ assignedBy?: User;
29
+ observer?: User;
30
+ lead?: Lead;
31
+ relations?: Contact[];
32
+ curp?: string;
33
+ cua?: string;
34
+ photo?: string;
35
+ post?: string;
36
+ observations?: string;
37
+ company?: string;
38
+ export?: boolean;
39
+ sourceDescription?: string;
40
+ cancelReazon: LeadCancelReazon;
41
+ stage: LeadStage;
42
+ cancelledBy?: User;
43
+ cancelledAt?: Date;
44
+ cancelled?: boolean;
45
+ contact?: Contact;
46
+ createdBy?: User;
47
+ modifiedBy?: User;
48
+ comments: LeadComment[];
49
+ quoteAmount?: number;
50
+ quoteCurrency: Currency;
51
+ }