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,344 @@
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.Lead = void 0;
13
+ const base_entity_1 = require("../../common/database/base.entity");
14
+ const client_sources_entity_1 = require("../helpers/sales/common/client_sources.entity");
15
+ const client_types_entity_1 = require("../helpers/sales/common/client_types.entity");
16
+ const user_entity_1 = require("../user.entity");
17
+ const typeorm_1 = require("typeorm");
18
+ const swagger_1 = require("@nestjs/swagger");
19
+ const common_1 = require("../../common");
20
+ const contact_entity_1 = require("./contact.entity");
21
+ const helpers_1 = require("../helpers");
22
+ const lead_comment_entity_1 = require("./lead-comment.entity");
23
+ const currency_entity_1 = require("../currency.entity");
24
+ let Lead = class Lead extends base_entity_1.EntityBase {
25
+ idBitrix;
26
+ number;
27
+ typePerson;
28
+ codigo;
29
+ fullName;
30
+ name;
31
+ lastName;
32
+ secondName;
33
+ rfc;
34
+ address;
35
+ phones;
36
+ emails;
37
+ cargo;
38
+ birthdate;
39
+ gender;
40
+ type;
41
+ source;
42
+ assignedBy;
43
+ observer;
44
+ lead;
45
+ relations;
46
+ curp;
47
+ cua;
48
+ photo;
49
+ post;
50
+ observations;
51
+ company;
52
+ export;
53
+ sourceDescription;
54
+ cancelReazon;
55
+ stage;
56
+ cancelledBy;
57
+ cancelledAt;
58
+ cancelled;
59
+ contact;
60
+ createdBy;
61
+ modifiedBy;
62
+ comments;
63
+ quoteAmount;
64
+ quoteCurrency;
65
+ };
66
+ exports.Lead = Lead;
67
+ __decorate([
68
+ (0, swagger_1.ApiProperty)({ type: Number, description: 'Bitrix ID of the lead', required: false }),
69
+ (0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
70
+ __metadata("design:type", Number)
71
+ ], Lead.prototype, "idBitrix", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.Column)(),
74
+ (0, typeorm_1.Generated)("increment"),
75
+ __metadata("design:type", Number)
76
+ ], Lead.prototype, "number", void 0);
77
+ __decorate([
78
+ (0, swagger_1.ApiProperty)({
79
+ enum: common_1.PersonType,
80
+ description: 'Type of person',
81
+ default: common_1.PersonType.FISICA
82
+ }),
83
+ (0, typeorm_1.Column)({
84
+ type: "enum",
85
+ enum: common_1.PersonType,
86
+ default: common_1.PersonType.FISICA
87
+ }),
88
+ __metadata("design:type", String)
89
+ ], Lead.prototype, "typePerson", void 0);
90
+ __decorate([
91
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Code of the lead', required: false }),
92
+ (0, typeorm_1.Column)({ name: "codigo", length: 100, nullable: true }),
93
+ __metadata("design:type", String)
94
+ ], Lead.prototype, "codigo", void 0);
95
+ __decorate([
96
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Full name of the lead', required: false }),
97
+ (0, typeorm_1.Column)({ name: "full_name", length: 255, nullable: true }),
98
+ __metadata("design:type", String)
99
+ ], Lead.prototype, "fullName", void 0);
100
+ __decorate([
101
+ (0, swagger_1.ApiProperty)({ type: String, description: 'First name of the lead', required: false }),
102
+ (0, typeorm_1.Column)({ name: "name", length: 150, nullable: true }),
103
+ __metadata("design:type", String)
104
+ ], Lead.prototype, "name", void 0);
105
+ __decorate([
106
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Last name of the lead', required: false }),
107
+ (0, typeorm_1.Column)({ name: "last_name", length: 150, nullable: true }),
108
+ __metadata("design:type", String)
109
+ ], Lead.prototype, "lastName", void 0);
110
+ __decorate([
111
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Second name of the lead', required: false }),
112
+ (0, typeorm_1.Column)({ name: "second_name", length: 150, nullable: true }),
113
+ __metadata("design:type", String)
114
+ ], Lead.prototype, "secondName", void 0);
115
+ __decorate([
116
+ (0, swagger_1.ApiProperty)({ type: String, description: 'RFC of the lead', required: false }),
117
+ (0, typeorm_1.Column)({ name: "rfc", length: 100, nullable: true }),
118
+ __metadata("design:type", String)
119
+ ], Lead.prototype, "rfc", void 0);
120
+ __decorate([
121
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Address of the lead', required: false }),
122
+ (0, typeorm_1.Column)({ name: "address", type: "text", nullable: true }),
123
+ __metadata("design:type", String)
124
+ ], Lead.prototype, "address", void 0);
125
+ __decorate([
126
+ (0, swagger_1.ApiProperty)({ type: () => [helpers_1.LeadPhone], description: 'Phones associated with the lead' }),
127
+ (0, typeorm_1.OneToMany)(() => helpers_1.LeadPhone, (leadPhone) => leadPhone.lead, {
128
+ onDelete: "CASCADE",
129
+ onUpdate: "CASCADE",
130
+ eager: true,
131
+ }),
132
+ __metadata("design:type", Array)
133
+ ], Lead.prototype, "phones", void 0);
134
+ __decorate([
135
+ (0, swagger_1.ApiProperty)({ type: () => [helpers_1.LeadEmail], description: 'Emails associated with the lead' }),
136
+ (0, typeorm_1.OneToMany)(() => helpers_1.LeadEmail, (leadEmail) => leadEmail.lead, {
137
+ onDelete: "CASCADE",
138
+ onUpdate: "CASCADE",
139
+ eager: true,
140
+ }),
141
+ __metadata("design:type", Array)
142
+ ], Lead.prototype, "emails", void 0);
143
+ __decorate([
144
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Cargo of the lead', required: false }),
145
+ (0, typeorm_1.Column)({ name: "cargo", length: 150, nullable: true }),
146
+ __metadata("design:type", String)
147
+ ], Lead.prototype, "cargo", void 0);
148
+ __decorate([
149
+ (0, swagger_1.ApiProperty)({ type: Date, description: 'Birthdate of the lead', required: false }),
150
+ (0, typeorm_1.Column)({ name: "birthdate", nullable: true }),
151
+ __metadata("design:type", Date)
152
+ ], Lead.prototype, "birthdate", void 0);
153
+ __decorate([
154
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Gender of the lead', required: false }),
155
+ (0, typeorm_1.Column)({ name: "gender", length: 10, nullable: true }),
156
+ __metadata("design:type", String)
157
+ ], Lead.prototype, "gender", void 0);
158
+ __decorate([
159
+ (0, swagger_1.ApiProperty)({ type: () => client_types_entity_1.ClientType, description: 'Lead type', required: true }),
160
+ (0, typeorm_1.ManyToOne)(() => client_types_entity_1.ClientType, {
161
+ onDelete: "SET NULL",
162
+ onUpdate: "CASCADE",
163
+ nullable: true,
164
+ eager: true,
165
+ }),
166
+ __metadata("design:type", client_types_entity_1.ClientType)
167
+ ], Lead.prototype, "type", void 0);
168
+ __decorate([
169
+ (0, swagger_1.ApiProperty)({ type: () => client_sources_entity_1.ClientSource, description: 'Lead source', required: true }),
170
+ (0, typeorm_1.ManyToOne)(() => client_sources_entity_1.ClientSource, {
171
+ onDelete: "SET NULL",
172
+ onUpdate: "CASCADE",
173
+ nullable: true,
174
+ eager: true,
175
+ }),
176
+ __metadata("design:type", client_sources_entity_1.ClientSource)
177
+ ], Lead.prototype, "source", void 0);
178
+ __decorate([
179
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User assigned to the lead', required: false }),
180
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
181
+ onDelete: "SET NULL",
182
+ onUpdate: "CASCADE",
183
+ nullable: true,
184
+ }),
185
+ __metadata("design:type", user_entity_1.User)
186
+ ], Lead.prototype, "assignedBy", void 0);
187
+ __decorate([
188
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User observing the lead', required: false }),
189
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
190
+ onDelete: "SET NULL",
191
+ onUpdate: "CASCADE",
192
+ nullable: true,
193
+ }),
194
+ __metadata("design:type", user_entity_1.User)
195
+ ], Lead.prototype, "observer", void 0);
196
+ __decorate([
197
+ (0, swagger_1.ApiProperty)({ type: () => Lead, description: 'Lead', required: false }),
198
+ (0, typeorm_1.ManyToOne)(() => Lead, {
199
+ onDelete: "SET NULL",
200
+ onUpdate: "CASCADE",
201
+ nullable: true,
202
+ }),
203
+ __metadata("design:type", Lead)
204
+ ], Lead.prototype, "lead", void 0);
205
+ __decorate([
206
+ (0, swagger_1.ApiProperty)({ type: () => [contact_entity_1.Contact], description: 'Contacts related' }),
207
+ (0, typeorm_1.ManyToMany)(() => contact_entity_1.Contact, {
208
+ onDelete: "CASCADE",
209
+ onUpdate: "CASCADE",
210
+ }),
211
+ (0, typeorm_1.JoinTable)(),
212
+ __metadata("design:type", Array)
213
+ ], Lead.prototype, "relations", void 0);
214
+ __decorate([
215
+ (0, swagger_1.ApiProperty)({ type: String, description: 'CURP of the lead', required: false }),
216
+ (0, typeorm_1.Column)({ name: "curp", length: 50, nullable: true }),
217
+ __metadata("design:type", String)
218
+ ], Lead.prototype, "curp", void 0);
219
+ __decorate([
220
+ (0, swagger_1.ApiProperty)({ type: String, description: 'CUA of the lead', required: false }),
221
+ (0, typeorm_1.Column)({ name: "cua", length: 50, nullable: true }),
222
+ __metadata("design:type", String)
223
+ ], Lead.prototype, "cua", void 0);
224
+ __decorate([
225
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Photo URL of the lead', required: false }),
226
+ (0, typeorm_1.Column)({ name: "photo", length: 255, nullable: true }),
227
+ __metadata("design:type", String)
228
+ ], Lead.prototype, "photo", void 0);
229
+ __decorate([
230
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Post of the lead', required: false }),
231
+ (0, typeorm_1.Column)({ name: "post", type: "text", nullable: true }),
232
+ __metadata("design:type", String)
233
+ ], Lead.prototype, "post", void 0);
234
+ __decorate([
235
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Comments about the lead', required: false }),
236
+ (0, typeorm_1.Column)({ name: "observations", type: "text", nullable: true }),
237
+ __metadata("design:type", String)
238
+ ], Lead.prototype, "observations", void 0);
239
+ __decorate([
240
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Company of the lead', required: false }),
241
+ (0, typeorm_1.Column)({ length: 255, nullable: true }),
242
+ __metadata("design:type", String)
243
+ ], Lead.prototype, "company", void 0);
244
+ __decorate([
245
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the lead exported?', default: false }),
246
+ (0, typeorm_1.Column)({ name: "export", default: false }),
247
+ __metadata("design:type", Boolean)
248
+ ], Lead.prototype, "export", void 0);
249
+ __decorate([
250
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Source description of the lead', required: false }),
251
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
252
+ __metadata("design:type", String)
253
+ ], Lead.prototype, "sourceDescription", void 0);
254
+ __decorate([
255
+ (0, swagger_1.ApiProperty)({ type: () => helpers_1.LeadCancelReazon, description: 'Cancel Reazon', required: false }),
256
+ (0, typeorm_1.ManyToOne)(() => helpers_1.LeadCancelReazon, {
257
+ onDelete: "SET NULL",
258
+ onUpdate: "CASCADE",
259
+ }),
260
+ __metadata("design:type", helpers_1.LeadCancelReazon)
261
+ ], Lead.prototype, "cancelReazon", void 0);
262
+ __decorate([
263
+ (0, swagger_1.ApiProperty)({ type: () => helpers_1.LeadStage, description: 'Stage of the lead', required: true }),
264
+ (0, typeorm_1.ManyToOne)(() => helpers_1.LeadStage, {
265
+ onDelete: "SET NULL",
266
+ onUpdate: "CASCADE",
267
+ nullable: true,
268
+ eager: true,
269
+ }),
270
+ __metadata("design:type", helpers_1.LeadStage)
271
+ ], Lead.prototype, "stage", void 0);
272
+ __decorate([
273
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User assigned to the lead', required: false }),
274
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
275
+ onDelete: "SET NULL",
276
+ onUpdate: "CASCADE",
277
+ nullable: true,
278
+ }),
279
+ __metadata("design:type", user_entity_1.User)
280
+ ], Lead.prototype, "cancelledBy", void 0);
281
+ __decorate([
282
+ (0, swagger_1.ApiProperty)({ type: Date, description: 'Cancelled at', required: false }),
283
+ (0, typeorm_1.Column)({ nullable: true }),
284
+ __metadata("design:type", Date)
285
+ ], Lead.prototype, "cancelledAt", void 0);
286
+ __decorate([
287
+ (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the lead cancelled?', default: false }),
288
+ (0, typeorm_1.Column)({ default: false }),
289
+ __metadata("design:type", Boolean)
290
+ ], Lead.prototype, "cancelled", void 0);
291
+ __decorate([
292
+ (0, swagger_1.ApiProperty)({ type: () => contact_entity_1.Contact, description: 'Contact associated with this lead', required: false }),
293
+ (0, typeorm_1.OneToOne)(() => contact_entity_1.Contact, (contact) => contact.lead, {
294
+ cascade: true,
295
+ onDelete: "CASCADE",
296
+ onUpdate: "CASCADE",
297
+ }),
298
+ (0, typeorm_1.JoinColumn)(),
299
+ __metadata("design:type", contact_entity_1.Contact)
300
+ ], Lead.prototype, "contact", void 0);
301
+ __decorate([
302
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the comment', required: false }),
303
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
304
+ onDelete: "SET NULL",
305
+ onUpdate: "CASCADE",
306
+ nullable: true,
307
+ }),
308
+ (0, typeorm_1.JoinColumn)(),
309
+ __metadata("design:type", user_entity_1.User)
310
+ ], Lead.prototype, "createdBy", void 0);
311
+ __decorate([
312
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who modified the comment', required: false }),
313
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
314
+ onDelete: "SET NULL",
315
+ onUpdate: "CASCADE",
316
+ nullable: true,
317
+ }),
318
+ (0, typeorm_1.JoinColumn)(),
319
+ __metadata("design:type", user_entity_1.User)
320
+ ], Lead.prototype, "modifiedBy", void 0);
321
+ __decorate([
322
+ (0, swagger_1.ApiProperty)({ type: () => [lead_comment_entity_1.LeadComment], description: 'Comments on the lead' }),
323
+ (0, typeorm_1.OneToMany)(() => lead_comment_entity_1.LeadComment, leadComment => leadComment.lead),
324
+ (0, typeorm_1.JoinColumn)(),
325
+ __metadata("design:type", Array)
326
+ ], Lead.prototype, "comments", void 0);
327
+ __decorate([
328
+ (0, swagger_1.ApiProperty)({ type: Number, description: 'Amount of the quotation', required: false }),
329
+ (0, typeorm_1.Column)({ name: "quote_amount", type: "decimal", precision: 10, scale: 2, nullable: true }),
330
+ __metadata("design:type", Number)
331
+ ], Lead.prototype, "quoteAmount", void 0);
332
+ __decorate([
333
+ (0, swagger_1.ApiProperty)({ type: () => currency_entity_1.Currency, description: 'Currency', required: false }),
334
+ (0, typeorm_1.ManyToOne)(() => currency_entity_1.Currency, {
335
+ onDelete: "SET NULL",
336
+ onUpdate: "CASCADE",
337
+ nullable: true,
338
+ }),
339
+ __metadata("design:type", currency_entity_1.Currency)
340
+ ], Lead.prototype, "quoteCurrency", void 0);
341
+ exports.Lead = Lead = __decorate([
342
+ (0, typeorm_1.Entity)()
343
+ ], Lead);
344
+ //# sourceMappingURL=lead.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lead.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/lead.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,yFAA6E;AAC7E,qFAAyE;AACzE,gDAAsC;AACtC,qCAAuH;AACvH,6CAA8C;AAC9C,yCAA0C;AAC1C,qDAA2C;AAC3C,wCAA8E;AAC9E,+DAAoD;AACpD,wDAA8C;AAEvC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAGlC,QAAQ,CAAU;IAIlB,MAAM,CAAS;IAYf,UAAU,CAAa;IAIvB,MAAM,CAAU;IAKhB,QAAQ,CAAU;IAIlB,IAAI,CAAU;IAId,QAAQ,CAAU;IAIlB,UAAU,CAAU;IAKpB,GAAG,CAAU;IAIb,OAAO,CAAU;IAQjB,MAAM,CAAe;IAQrB,MAAM,CAAe;IAIrB,KAAK,CAAU;IAIf,SAAS,CAAQ;IAIjB,MAAM,CAAU;IAShB,IAAI,CAAc;IASlB,MAAM,CAAgB;IAQtB,UAAU,CAAQ;IAQlB,QAAQ,CAAQ;IAQhB,IAAI,CAAQ;IAQZ,SAAS,CAAa;IAItB,IAAI,CAAU;IAId,GAAG,CAAU;IAIb,KAAK,CAAU;IAIf,IAAI,CAAU;IAId,YAAY,CAAU;IAItB,OAAO,CAAU;IAIjB,MAAM,CAAW;IAIjB,iBAAiB,CAAU;IAO3B,YAAY,CAAmB;IAS/B,KAAK,CAAY;IASjB,WAAW,CAAQ;IAInB,WAAW,CAAQ;IAInB,SAAS,CAAW;IASpB,OAAO,CAAW;IASlB,SAAS,CAAQ;IASjB,UAAU,CAAQ;IAKlB,QAAQ,CAAgB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EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;IAC7D,IAAA,oBAAU,GAAE;;sCACW;AAIxB;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,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACtE;AAQrB;IANC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,0BAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE;QACzB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;8BACa,0BAAQ;2CAAC;eA5Ob,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA6OhB"}
@@ -0,0 +1,5 @@
1
+ import { Poliza } from "./poliza.entity";
2
+ import { CommentBase } from "../../common";
3
+ export declare class PolizaComment extends CommentBase {
4
+ poliza: Poliza;
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.PolizaComment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const poliza_entity_1 = require("./poliza.entity");
15
+ const swagger_1 = require("@nestjs/swagger");
16
+ const common_1 = require("../../common");
17
+ let PolizaComment = class PolizaComment extends common_1.CommentBase {
18
+ poliza;
19
+ };
20
+ exports.PolizaComment = PolizaComment;
21
+ __decorate([
22
+ (0, swagger_1.ApiProperty)({ type: () => poliza_entity_1.Poliza, description: 'Poliza associated with the comment' }),
23
+ (0, typeorm_1.ManyToOne)(() => poliza_entity_1.Poliza, {
24
+ onDelete: "CASCADE",
25
+ onUpdate: "CASCADE",
26
+ }),
27
+ __metadata("design:type", poliza_entity_1.Poliza)
28
+ ], PolizaComment.prototype, "poliza", void 0);
29
+ exports.PolizaComment = PolizaComment = __decorate([
30
+ (0, typeorm_1.Entity)()
31
+ ], PolizaComment);
32
+ //# sourceMappingURL=poliza-comment.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poliza-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/poliza-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4C;AAC5C,mDAAyC;AACzC,6CAA8C;AAC9C,yCAA2C;AAGpC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,oBAAW;IAM1C,MAAM,CAAS;CAClB,CAAA;AAPY,sCAAa;AAMtB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,oCAAoC,EAAE,CAAC;IACtF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE;QACrB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACM,sBAAM;6CAAC;wBANN,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CAOzB"}
@@ -0,0 +1,112 @@
1
+ import { User } from "../user.entity";
2
+ import { Contact } from "./contact.entity";
3
+ import { PolizaInsurance, PolizaFormaCobro, PolizaType, PolizaFile, PolizaFrecuenciaPago, PolizaCategory, PolizaSubramo, PolizaConductoPago, TaskCRM, PolizaInsured } from "../helpers";
4
+ import { PolizaSiniestro } from "./poliza_siniestro.entity";
5
+ import { PolizaDiasPlazoPago, PolizaStatus } from "../../common/enums";
6
+ import { EntityBase } from "../../common/database/base.entity";
7
+ import { Currency } from "../currency.entity";
8
+ import { Receipt } from "./receipt.entity";
9
+ import { BeneficiaryVehicle } from "./beneficiarios/vehicle.entity";
10
+ import { AgenteIntermediario } from "./agente-intermediario.entity";
11
+ import { SubAgente } from "./receipt-sub-agente.entity";
12
+ import { PolizaComment } from "./poliza-comment.entity";
13
+ export declare class Poliza extends EntityBase {
14
+ idBitrix: number;
15
+ poliza: string;
16
+ polizaRenovacion: string;
17
+ tipoConexion: string;
18
+ version: number;
19
+ versionRenovacion: number;
20
+ renovacion: number;
21
+ repeated?: boolean;
22
+ renewal?: boolean;
23
+ vigenciaDesde: Date;
24
+ vigenciaHasta: Date;
25
+ vigenciaDesdeVersion: Date;
26
+ vigenciaHastaVersion: Date;
27
+ vigenciaDesdeRenovacion: Date;
28
+ vigenciaHastaRenovacion: Date;
29
+ fechaEmision: Date;
30
+ fechaEmisionRenovacion: Date;
31
+ description: string;
32
+ primaNeta?: number;
33
+ recargoFraccionado?: number;
34
+ derechoPoliza?: number;
35
+ iva?: number;
36
+ importePagar?: number;
37
+ primaNetaRenovacion?: number;
38
+ recargoFraccionadoRenovacion?: number;
39
+ derechoPolizaRenovacion?: number;
40
+ ivaRenovacion?: number;
41
+ importePagarRenovacion?: number;
42
+ primaNetaMovimiento?: number;
43
+ recargoFraccionadoMovimiento?: number;
44
+ derechoPolizaMovimiento?: number;
45
+ ivaMovimiento?: number;
46
+ importePagarMovimiento?: number;
47
+ frecuenciaCobro: PolizaFrecuenciaPago;
48
+ frecuenciaCobroRenovacion: PolizaFrecuenciaPago;
49
+ currency: Currency;
50
+ plazoPago: PolizaDiasPlazoPago;
51
+ expeditionDate: Date;
52
+ cobertura: string;
53
+ plan: string;
54
+ typeMovement: string;
55
+ movementDescription: string;
56
+ agentText: string;
57
+ name: string;
58
+ closed?: boolean;
59
+ opportunity?: number;
60
+ isManualOpportunity?: boolean;
61
+ taxValue?: number;
62
+ opportunityAccount?: number;
63
+ taxValueAccount?: number;
64
+ accountCurrencyId?: string;
65
+ probability?: number;
66
+ observations?: string;
67
+ eventDate?: Date;
68
+ eventId?: string;
69
+ eventDescription?: string;
70
+ exchRate?: number;
71
+ product?: string;
72
+ source: string;
73
+ sourceDescription: string;
74
+ company: PolizaInsurance;
75
+ type: PolizaType;
76
+ conductoPago: PolizaConductoPago;
77
+ formaCobro: PolizaFormaCobro;
78
+ formaCobroRenovacion: PolizaFormaCobro;
79
+ agenteIntermediario: AgenteIntermediario;
80
+ agenteIntermediarioRenovacion: AgenteIntermediario;
81
+ contact: Contact;
82
+ files?: PolizaFile[];
83
+ status: PolizaStatus;
84
+ siniestros: PolizaSiniestro[];
85
+ assignedBy?: User;
86
+ descripcionMovimiento?: string;
87
+ especificacionesPlan: string;
88
+ agenteReclamo?: User;
89
+ observers?: User[];
90
+ agenteReembolso?: User;
91
+ agenteProgramaciones?: User;
92
+ agenteReembolsoSubsecuente?: User;
93
+ agenteRescateFondos?: User;
94
+ agenteGMM?: User;
95
+ agenteVida?: User;
96
+ agenteAutos?: User;
97
+ fechaReferidaPago?: string;
98
+ fechaReferidaPagoRenovacion?: string;
99
+ receipts?: Receipt[];
100
+ insured?: PolizaInsured[];
101
+ vehicles?: BeneficiaryVehicle[];
102
+ category?: PolizaCategory;
103
+ subramo?: PolizaSubramo;
104
+ subramoSalud?: PolizaSubramo;
105
+ beneficiaries?: Record<string, any>;
106
+ metadata: Record<string, any>;
107
+ tasks: TaskCRM[];
108
+ createdBy?: User;
109
+ modifiedBy?: User;
110
+ subAgente: SubAgente;
111
+ comments: PolizaComment[];
112
+ }