easywork-common-lib 1.0.756 → 1.0.757

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 (511) 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 +6 -0
  26. package/dist/common/@types/interfaces/index.js +23 -0
  27. package/dist/common/@types/interfaces/index.js.map +1 -0
  28. package/dist/common/@types/interfaces/lsm.interface.d.ts +5 -0
  29. package/dist/common/@types/interfaces/lsm.interface.js +3 -0
  30. package/dist/common/@types/interfaces/lsm.interface.js.map +1 -0
  31. package/dist/common/@types/interfaces/mail.interface.d.ts +9 -0
  32. package/dist/common/@types/interfaces/mail.interface.js +3 -0
  33. package/dist/common/@types/interfaces/mail.interface.js.map +1 -0
  34. package/dist/common/@types/interfaces/validator.interface.d.ts +41 -0
  35. package/dist/common/@types/interfaces/validator.interface.js +3 -0
  36. package/dist/common/@types/interfaces/validator.interface.js.map +1 -0
  37. package/dist/common/constants/app.contants.d.ts +48 -0
  38. package/dist/common/constants/app.contants.js +219 -0
  39. package/dist/common/constants/app.contants.js.map +1 -0
  40. package/dist/common/constants/index.d.ts +3 -0
  41. package/dist/common/constants/index.js +20 -0
  42. package/dist/common/constants/index.js.map +1 -0
  43. package/dist/common/constants/regex.constant.d.ts +6 -0
  44. package/dist/common/constants/regex.constant.js +10 -0
  45. package/dist/common/constants/regex.constant.js.map +1 -0
  46. package/dist/common/constants/string.constant.d.ts +5 -0
  47. package/dist/common/constants/string.constant.js +41 -0
  48. package/dist/common/constants/string.constant.js.map +1 -0
  49. package/dist/common/database/base.entity.d.ts +15 -0
  50. package/dist/common/database/base.entity.js +76 -0
  51. package/dist/common/database/base.entity.js.map +1 -0
  52. package/dist/common/database/comment.base.entity.d.ts +11 -0
  53. package/dist/common/database/comment.base.entity.js +83 -0
  54. package/dist/common/database/comment.base.entity.js.map +1 -0
  55. package/dist/common/database/index.d.ts +2 -0
  56. package/dist/common/database/index.js +19 -0
  57. package/dist/common/database/index.js.map +1 -0
  58. package/dist/common/dtos/index.d.ts +1 -0
  59. package/dist/common/dtos/index.js +18 -0
  60. package/dist/common/dtos/index.js.map +1 -0
  61. package/dist/common/dtos/send-notification.dto.d.ts +11 -0
  62. package/dist/common/dtos/send-notification.dto.js +60 -0
  63. package/dist/common/dtos/send-notification.dto.js.map +1 -0
  64. package/dist/common/enums/common.enum.d.ts +18 -0
  65. package/dist/common/enums/common.enum.js +25 -0
  66. package/dist/common/enums/common.enum.js.map +1 -0
  67. package/dist/common/enums/drive.enum.d.ts +26 -0
  68. package/dist/common/enums/drive.enum.js +32 -0
  69. package/dist/common/enums/drive.enum.js.map +1 -0
  70. package/dist/common/enums/index.d.ts +5 -0
  71. package/dist/common/enums/index.js +22 -0
  72. package/dist/common/enums/index.js.map +1 -0
  73. package/dist/common/enums/notification.enum.d.ts +42 -0
  74. package/dist/common/enums/notification.enum.js +49 -0
  75. package/dist/common/enums/notification.enum.js.map +1 -0
  76. package/dist/common/enums/sales.enum.d.ts +107 -0
  77. package/dist/common/enums/sales.enum.js +129 -0
  78. package/dist/common/enums/sales.enum.js.map +1 -0
  79. package/dist/common/enums/tools.enum.d.ts +54 -0
  80. package/dist/common/enums/tools.enum.js +65 -0
  81. package/dist/common/enums/tools.enum.js.map +1 -0
  82. package/dist/common/functions/cripto.d.ts +1 -0
  83. package/dist/common/functions/cripto.js +8 -0
  84. package/dist/common/functions/cripto.js.map +1 -0
  85. package/dist/common/functions/image.d.ts +3 -0
  86. package/dist/common/functions/image.js +16 -0
  87. package/dist/common/functions/image.js.map +1 -0
  88. package/dist/common/functions/index.d.ts +2 -0
  89. package/dist/common/functions/index.js +19 -0
  90. package/dist/common/functions/index.js.map +1 -0
  91. package/dist/common/helpers/app.utils.d.ts +5 -0
  92. package/dist/common/helpers/app.utils.js +32 -0
  93. package/dist/common/helpers/app.utils.js.map +1 -0
  94. package/dist/common/helpers/helpers.utils.d.ts +5 -0
  95. package/dist/common/helpers/helpers.utils.js +26 -0
  96. package/dist/common/helpers/helpers.utils.js.map +1 -0
  97. package/dist/common/helpers/index.d.ts +2 -0
  98. package/dist/common/helpers/index.js +19 -0
  99. package/dist/common/helpers/index.js.map +1 -0
  100. package/dist/common/index.d.ts +8 -0
  101. package/dist/common/index.js +25 -0
  102. package/dist/common/index.js.map +1 -0
  103. package/dist/common/interceptors/index.d.ts +1 -0
  104. package/dist/common/interceptors/index.js +18 -0
  105. package/dist/common/interceptors/index.js.map +1 -0
  106. package/dist/common/interceptors/security.interceptor.d.ts +5 -0
  107. package/dist/common/interceptors/security.interceptor.js +22 -0
  108. package/dist/common/interceptors/security.interceptor.js.map +1 -0
  109. package/dist/entities/app_config/app-config.entity.d.ts +5 -0
  110. package/dist/entities/app_config/app-config.entity.js +33 -0
  111. package/dist/entities/app_config/app-config.entity.js.map +1 -0
  112. package/dist/entities/capacitation/capacitation.entity.d.ts +10 -0
  113. package/dist/entities/capacitation/capacitation.entity.js +68 -0
  114. package/dist/entities/capacitation/capacitation.entity.js.map +1 -0
  115. package/dist/entities/capacitation/course-assigned.entity.d.ts +12 -0
  116. package/dist/entities/capacitation/course-assigned.entity.js +44 -0
  117. package/dist/entities/capacitation/course-assigned.entity.js.map +1 -0
  118. package/dist/entities/capacitation/course-evaluation-attempt.entity.d.ts +22 -0
  119. package/dist/entities/capacitation/course-evaluation-attempt.entity.js +96 -0
  120. package/dist/entities/capacitation/course-evaluation-attempt.entity.js.map +1 -0
  121. package/dist/entities/capacitation/course-evaluation.entity.d.ts +42 -0
  122. package/dist/entities/capacitation/course-evaluation.entity.js +111 -0
  123. package/dist/entities/capacitation/course-evaluation.entity.js.map +1 -0
  124. package/dist/entities/capacitation/course-folder-page.entity.d.ts +14 -0
  125. package/dist/entities/capacitation/course-folder-page.entity.js +74 -0
  126. package/dist/entities/capacitation/course-folder-page.entity.js.map +1 -0
  127. package/dist/entities/capacitation/course-folder.entity.d.ts +10 -0
  128. package/dist/entities/capacitation/course-folder.entity.js +57 -0
  129. package/dist/entities/capacitation/course-folder.entity.js.map +1 -0
  130. package/dist/entities/capacitation/course-order.entity.d.ts +8 -0
  131. package/dist/entities/capacitation/course-order.entity.js +45 -0
  132. package/dist/entities/capacitation/course-order.entity.js.map +1 -0
  133. package/dist/entities/capacitation/course.entity.d.ts +21 -0
  134. package/dist/entities/capacitation/course.entity.js +119 -0
  135. package/dist/entities/capacitation/course.entity.js.map +1 -0
  136. package/dist/entities/capacitation/index.d.ts +8 -0
  137. package/dist/entities/capacitation/index.js +21 -0
  138. package/dist/entities/capacitation/index.js.map +1 -0
  139. package/dist/entities/currency.entity.d.ts +6 -0
  140. package/dist/entities/currency.entity.js +43 -0
  141. package/dist/entities/currency.entity.js.map +1 -0
  142. package/dist/entities/drive/attached_object.entity.d.ts +27 -0
  143. package/dist/entities/drive/attached_object.entity.js +154 -0
  144. package/dist/entities/drive/attached_object.entity.js.map +1 -0
  145. package/dist/entities/drive/file.entity.d.ts +19 -0
  146. package/dist/entities/drive/file.entity.js +130 -0
  147. package/dist/entities/drive/file.entity.js.map +1 -0
  148. package/dist/entities/drive/folder.entity.d.ts +18 -0
  149. package/dist/entities/drive/folder.entity.js +137 -0
  150. package/dist/entities/drive/folder.entity.js.map +1 -0
  151. package/dist/entities/drive/index.d.ts +3 -0
  152. package/dist/entities/drive/index.js +20 -0
  153. package/dist/entities/drive/index.js.map +1 -0
  154. package/dist/entities/easyapp/filter-view.entity.d.ts +7 -0
  155. package/dist/entities/easyapp/filter-view.entity.js +41 -0
  156. package/dist/entities/easyapp/filter-view.entity.js.map +1 -0
  157. package/dist/entities/email.entity.d.ts +5 -0
  158. package/dist/entities/email.entity.js +36 -0
  159. package/dist/entities/email.entity.js.map +1 -0
  160. package/dist/entities/group.entity.d.ts +13 -0
  161. package/dist/entities/group.entity.js +57 -0
  162. package/dist/entities/group.entity.js.map +1 -0
  163. package/dist/entities/helpers/entity_file.entity.d.ts +10 -0
  164. package/dist/entities/helpers/entity_file.entity.js +61 -0
  165. package/dist/entities/helpers/entity_file.entity.js.map +1 -0
  166. package/dist/entities/helpers/entity_folder.entity.d.ts +10 -0
  167. package/dist/entities/helpers/entity_folder.entity.js +61 -0
  168. package/dist/entities/helpers/entity_folder.entity.js.map +1 -0
  169. package/dist/entities/helpers/index.d.ts +5 -0
  170. package/dist/entities/helpers/index.js +22 -0
  171. package/dist/entities/helpers/index.js.map +1 -0
  172. package/dist/entities/helpers/meeting_crm.entity.d.ts +23 -0
  173. package/dist/entities/helpers/meeting_crm.entity.js +166 -0
  174. package/dist/entities/helpers/meeting_crm.entity.js.map +1 -0
  175. package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.d.ts +20 -0
  176. package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.js +160 -0
  177. package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.js.map +1 -0
  178. package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.d.ts +5 -0
  179. package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.js +43 -0
  180. package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.js.map +1 -0
  181. package/dist/entities/helpers/sales/agent/h_agent_source.entity.d.ts +4 -0
  182. package/dist/entities/helpers/sales/agent/h_agent_source.entity.js +34 -0
  183. package/dist/entities/helpers/sales/agent/h_agent_source.entity.js.map +1 -0
  184. package/dist/entities/helpers/sales/agent/h_agent_types.entity.d.ts +4 -0
  185. package/dist/entities/helpers/sales/agent/h_agent_types.entity.js +34 -0
  186. package/dist/entities/helpers/sales/agent/h_agent_types.entity.js.map +1 -0
  187. package/dist/entities/helpers/sales/agent/index.d.ts +6 -0
  188. package/dist/entities/helpers/sales/agent/index.js +23 -0
  189. package/dist/entities/helpers/sales/agent/index.js.map +1 -0
  190. package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.d.ts +15 -0
  191. package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.js +120 -0
  192. package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.js.map +1 -0
  193. package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.d.ts +5 -0
  194. package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.js +43 -0
  195. package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.js.map +1 -0
  196. package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +5 -0
  197. package/dist/entities/helpers/sales/common/client_sources.entity.js +36 -0
  198. package/dist/entities/helpers/sales/common/client_sources.entity.js.map +1 -0
  199. package/dist/entities/helpers/sales/common/client_types.entity.d.ts +5 -0
  200. package/dist/entities/helpers/sales/common/client_types.entity.js +36 -0
  201. package/dist/entities/helpers/sales/common/client_types.entity.js.map +1 -0
  202. package/dist/entities/helpers/sales/contact/contact_email.entity.d.ts +11 -0
  203. package/dist/entities/helpers/sales/contact/contact_email.entity.js +68 -0
  204. package/dist/entities/helpers/sales/contact/contact_email.entity.js.map +1 -0
  205. package/dist/entities/helpers/sales/contact/contact_insurance.entity.d.ts +11 -0
  206. package/dist/entities/helpers/sales/contact/contact_insurance.entity.js +92 -0
  207. package/dist/entities/helpers/sales/contact/contact_insurance.entity.js.map +1 -0
  208. package/dist/entities/helpers/sales/contact/contact_phone.entity.d.ts +11 -0
  209. package/dist/entities/helpers/sales/contact/contact_phone.entity.js +68 -0
  210. package/dist/entities/helpers/sales/contact/contact_phone.entity.js.map +1 -0
  211. package/dist/entities/helpers/sales/contact/index.d.ts +5 -0
  212. package/dist/entities/helpers/sales/contact/index.js +22 -0
  213. package/dist/entities/helpers/sales/contact/index.js.map +1 -0
  214. package/dist/entities/helpers/sales/index.d.ts +7 -0
  215. package/dist/entities/helpers/sales/index.js +24 -0
  216. package/dist/entities/helpers/sales/index.js.map +1 -0
  217. package/dist/entities/helpers/sales/lead/h_lead_source.entity.d.ts +4 -0
  218. package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +30 -0
  219. package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +1 -0
  220. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.d.ts +5 -0
  221. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +36 -0
  222. package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +1 -0
  223. package/dist/entities/helpers/sales/lead/h_lead_types.entity.d.ts +4 -0
  224. package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +30 -0
  225. package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +1 -0
  226. package/dist/entities/helpers/sales/lead/index.d.ts +6 -0
  227. package/dist/entities/helpers/sales/lead/index.js +23 -0
  228. package/dist/entities/helpers/sales/lead/index.js.map +1 -0
  229. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.d.ts +4 -0
  230. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js +28 -0
  231. package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js.map +1 -0
  232. package/dist/entities/helpers/sales/lead/lead_email.entity.d.ts +11 -0
  233. package/dist/entities/helpers/sales/lead/lead_email.entity.js +66 -0
  234. package/dist/entities/helpers/sales/lead/lead_email.entity.js.map +1 -0
  235. package/dist/entities/helpers/sales/lead/lead_phone.entity.d.ts +11 -0
  236. package/dist/entities/helpers/sales/lead/lead_phone.entity.js +66 -0
  237. package/dist/entities/helpers/sales/lead/lead_phone.entity.js.map +1 -0
  238. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.d.ts +5 -0
  239. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js +30 -0
  240. package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js.map +1 -0
  241. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.d.ts +5 -0
  242. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js +33 -0
  243. package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js.map +1 -0
  244. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.d.ts +6 -0
  245. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +39 -0
  246. package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +1 -0
  247. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.d.ts +6 -0
  248. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +39 -0
  249. package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +1 -0
  250. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.d.ts +5 -0
  251. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js +30 -0
  252. package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js.map +1 -0
  253. package/dist/entities/helpers/sales/poliza/h_poliza_stage.entity.d.ts +5 -0
  254. package/dist/entities/helpers/sales/poliza/h_poliza_stage.entity.js +43 -0
  255. package/dist/entities/helpers/sales/poliza/h_poliza_stage.entity.js.map +1 -0
  256. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.d.ts +6 -0
  257. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js +36 -0
  258. package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js.map +1 -0
  259. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.d.ts +5 -0
  260. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +33 -0
  261. package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +1 -0
  262. package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.d.ts +8 -0
  263. package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js +53 -0
  264. package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js.map +1 -0
  265. package/dist/entities/helpers/sales/poliza/index.d.ts +11 -0
  266. package/dist/entities/helpers/sales/poliza/index.js +28 -0
  267. package/dist/entities/helpers/sales/poliza/index.js.map +1 -0
  268. package/dist/entities/helpers/sales/poliza/poliza_cancel_reason.entity.d.ts +4 -0
  269. package/dist/entities/helpers/sales/poliza/poliza_cancel_reason.entity.js +28 -0
  270. package/dist/entities/helpers/sales/poliza/poliza_cancel_reason.entity.js.map +1 -0
  271. package/dist/entities/helpers/sales/poliza/poliza_insured.entity.d.ts +11 -0
  272. package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js +86 -0
  273. package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js.map +1 -0
  274. package/dist/entities/helpers/tools/event_crm.entity.d.ts +23 -0
  275. package/dist/entities/helpers/tools/event_crm.entity.js +166 -0
  276. package/dist/entities/helpers/tools/event_crm.entity.js.map +1 -0
  277. package/dist/entities/helpers/tools/index.d.ts +2 -0
  278. package/dist/entities/helpers/tools/index.js +19 -0
  279. package/dist/entities/helpers/tools/index.js.map +1 -0
  280. package/dist/entities/helpers/tools/task_crm.entity.d.ts +27 -0
  281. package/dist/entities/helpers/tools/task_crm.entity.js +196 -0
  282. package/dist/entities/helpers/tools/task_crm.entity.js.map +1 -0
  283. package/dist/entities/helpers/user/access_history.entity.d.ts +9 -0
  284. package/dist/entities/helpers/user/access_history.entity.js +58 -0
  285. package/dist/entities/helpers/user/access_history.entity.js.map +1 -0
  286. package/dist/entities/imap-config.entity.d.ts +11 -0
  287. package/dist/entities/imap-config.entity.js +61 -0
  288. package/dist/entities/imap-config.entity.js.map +1 -0
  289. package/dist/entities/index.d.ts +31 -0
  290. package/dist/entities/index.js +48 -0
  291. package/dist/entities/index.js.map +1 -0
  292. package/dist/entities/meeting-comment.entity.d.ts +8 -0
  293. package/dist/entities/meeting-comment.entity.js +46 -0
  294. package/dist/entities/meeting-comment.entity.js.map +1 -0
  295. package/dist/entities/meeting-list-field.d.ts +5 -0
  296. package/dist/entities/meeting-list-field.js +46 -0
  297. package/dist/entities/meeting-list-field.js.map +1 -0
  298. package/dist/entities/meeting.entity.d.ts +24 -0
  299. package/dist/entities/meeting.entity.js +187 -0
  300. package/dist/entities/meeting.entity.js.map +1 -0
  301. package/dist/entities/menu-permissions.entity.d.ts +7 -0
  302. package/dist/entities/menu-permissions.entity.js +42 -0
  303. package/dist/entities/menu-permissions.entity.js.map +1 -0
  304. package/dist/entities/notifications/index.d.ts +2 -0
  305. package/dist/entities/notifications/index.js +19 -0
  306. package/dist/entities/notifications/index.js.map +1 -0
  307. package/dist/entities/notifications/notification.entity.d.ts +15 -0
  308. package/dist/entities/notifications/notification.entity.js +119 -0
  309. package/dist/entities/notifications/notification.entity.js.map +1 -0
  310. package/dist/entities/notifications/push-token.entity.d.ts +7 -0
  311. package/dist/entities/notifications/push-token.entity.js +45 -0
  312. package/dist/entities/notifications/push-token.entity.js.map +1 -0
  313. package/dist/entities/otp-log.entity.d.ts +8 -0
  314. package/dist/entities/otp-log.entity.js +49 -0
  315. package/dist/entities/otp-log.entity.js.map +1 -0
  316. package/dist/entities/permission.entity.d.ts +7 -0
  317. package/dist/entities/permission.entity.js +46 -0
  318. package/dist/entities/permission.entity.js.map +1 -0
  319. package/dist/entities/phone.entity.d.ts +5 -0
  320. package/dist/entities/phone.entity.js +36 -0
  321. package/dist/entities/phone.entity.js.map +1 -0
  322. package/dist/entities/profile.entity.d.ts +9 -0
  323. package/dist/entities/profile.entity.js +56 -0
  324. package/dist/entities/profile.entity.js.map +1 -0
  325. package/dist/entities/protocol.entity.d.ts +8 -0
  326. package/dist/entities/protocol.entity.js +46 -0
  327. package/dist/entities/protocol.entity.js.map +1 -0
  328. package/dist/entities/refresh-token.entity.d.ts +8 -0
  329. package/dist/entities/refresh-token.entity.js +46 -0
  330. package/dist/entities/refresh-token.entity.js.map +1 -0
  331. package/dist/entities/role.entity.d.ts +7 -0
  332. package/dist/entities/role.entity.js +48 -0
  333. package/dist/entities/role.entity.js.map +1 -0
  334. package/dist/entities/sales/agent-comment.entity.d.ts +5 -0
  335. package/dist/entities/sales/agent-comment.entity.js +35 -0
  336. package/dist/entities/sales/agent-comment.entity.js.map +1 -0
  337. package/dist/entities/sales/agent.entity.d.ts +32 -0
  338. package/dist/entities/sales/agent.entity.js +254 -0
  339. package/dist/entities/sales/agent.entity.js.map +1 -0
  340. package/dist/entities/sales/agente-intermediario.entity.d.ts +7 -0
  341. package/dist/entities/sales/agente-intermediario.entity.js +49 -0
  342. package/dist/entities/sales/agente-intermediario.entity.js.map +1 -0
  343. package/dist/entities/sales/beneficiarios/index.d.ts +2 -0
  344. package/dist/entities/sales/beneficiarios/index.js +19 -0
  345. package/dist/entities/sales/beneficiarios/index.js.map +1 -0
  346. package/dist/entities/sales/beneficiarios/person.entity.d.ts +10 -0
  347. package/dist/entities/sales/beneficiarios/person.entity.js +89 -0
  348. package/dist/entities/sales/beneficiarios/person.entity.js.map +1 -0
  349. package/dist/entities/sales/beneficiarios/vehicle.entity.d.ts +16 -0
  350. package/dist/entities/sales/beneficiarios/vehicle.entity.js +106 -0
  351. package/dist/entities/sales/beneficiarios/vehicle.entity.js.map +1 -0
  352. package/dist/entities/sales/contact-comment.entity.d.ts +5 -0
  353. package/dist/entities/sales/contact-comment.entity.js +32 -0
  354. package/dist/entities/sales/contact-comment.entity.js.map +1 -0
  355. package/dist/entities/sales/contact.entity.d.ts +57 -0
  356. package/dist/entities/sales/contact.entity.js +497 -0
  357. package/dist/entities/sales/contact.entity.js.map +1 -0
  358. package/dist/entities/sales/import-session.entity.d.ts +29 -0
  359. package/dist/entities/sales/import-session.entity.js +155 -0
  360. package/dist/entities/sales/import-session.entity.js.map +1 -0
  361. package/dist/entities/sales/index.d.ts +16 -0
  362. package/dist/entities/sales/index.js +33 -0
  363. package/dist/entities/sales/index.js.map +1 -0
  364. package/dist/entities/sales/lead-comment.entity.d.ts +5 -0
  365. package/dist/entities/sales/lead-comment.entity.js +32 -0
  366. package/dist/entities/sales/lead-comment.entity.js.map +1 -0
  367. package/dist/entities/sales/lead.entity.d.ts +60 -0
  368. package/dist/entities/sales/lead.entity.js +572 -0
  369. package/dist/entities/sales/lead.entity.js.map +1 -0
  370. package/dist/entities/sales/poliza/index.d.ts +8 -0
  371. package/dist/entities/sales/poliza/index.js +25 -0
  372. package/dist/entities/sales/poliza/index.js.map +1 -0
  373. package/dist/entities/sales/poliza/poliza_claim-comment.entity.d.ts +5 -0
  374. package/dist/entities/sales/poliza/poliza_claim-comment.entity.js +35 -0
  375. package/dist/entities/sales/poliza/poliza_claim-comment.entity.js.map +1 -0
  376. package/dist/entities/sales/poliza/poliza_claim.entity.d.ts +34 -0
  377. package/dist/entities/sales/poliza/poliza_claim.entity.js +285 -0
  378. package/dist/entities/sales/poliza/poliza_claim.entity.js.map +1 -0
  379. package/dist/entities/sales/poliza/poliza_fund-recovery-comment.entity.d.ts +5 -0
  380. package/dist/entities/sales/poliza/poliza_fund-recovery-comment.entity.js +35 -0
  381. package/dist/entities/sales/poliza/poliza_fund-recovery-comment.entity.js.map +1 -0
  382. package/dist/entities/sales/poliza/poliza_fund-recovery.entity.d.ts +31 -0
  383. package/dist/entities/sales/poliza/poliza_fund-recovery.entity.js +259 -0
  384. package/dist/entities/sales/poliza/poliza_fund-recovery.entity.js.map +1 -0
  385. package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.d.ts +5 -0
  386. package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.js +35 -0
  387. package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.js.map +1 -0
  388. package/dist/entities/sales/poliza/poliza_reimbursement.entity.d.ts +34 -0
  389. package/dist/entities/sales/poliza/poliza_reimbursement.entity.js +277 -0
  390. package/dist/entities/sales/poliza/poliza_reimbursement.entity.js.map +1 -0
  391. package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.d.ts +5 -0
  392. package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.js +35 -0
  393. package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.js.map +1 -0
  394. package/dist/entities/sales/poliza/poliza_scheduling.entity.d.ts +34 -0
  395. package/dist/entities/sales/poliza/poliza_scheduling.entity.js +277 -0
  396. package/dist/entities/sales/poliza/poliza_scheduling.entity.js.map +1 -0
  397. package/dist/entities/sales/poliza-comment.entity.d.ts +5 -0
  398. package/dist/entities/sales/poliza-comment.entity.js +32 -0
  399. package/dist/entities/sales/poliza-comment.entity.js.map +1 -0
  400. package/dist/entities/sales/poliza.entity.d.ts +108 -0
  401. package/dist/entities/sales/poliza.entity.js +1032 -0
  402. package/dist/entities/sales/poliza.entity.js.map +1 -0
  403. package/dist/entities/sales/poliza_pdf.entity.d.ts +94 -0
  404. package/dist/entities/sales/poliza_pdf.entity.js +926 -0
  405. package/dist/entities/sales/poliza_pdf.entity.js.map +1 -0
  406. package/dist/entities/sales/receipt-comment.entity.d.ts +5 -0
  407. package/dist/entities/sales/receipt-comment.entity.js +32 -0
  408. package/dist/entities/sales/receipt-comment.entity.js.map +1 -0
  409. package/dist/entities/sales/receipt-sub-agente.entity.d.ts +5 -0
  410. package/dist/entities/sales/receipt-sub-agente.entity.js +35 -0
  411. package/dist/entities/sales/receipt-sub-agente.entity.js.map +1 -0
  412. package/dist/entities/sales/receipt.entity.d.ts +32 -0
  413. package/dist/entities/sales/receipt.entity.js +255 -0
  414. package/dist/entities/sales/receipt.entity.js.map +1 -0
  415. package/dist/entities/tag.entity.d.ts +8 -0
  416. package/dist/entities/tag.entity.js +53 -0
  417. package/dist/entities/tag.entity.js.map +1 -0
  418. package/dist/entities/thirdparty/email-config.entity.d.ts +14 -0
  419. package/dist/entities/thirdparty/email-config.entity.js +76 -0
  420. package/dist/entities/thirdparty/email-config.entity.js.map +1 -0
  421. package/dist/entities/thirdparty/email.entity.d.ts +17 -0
  422. package/dist/entities/thirdparty/email.entity.js +79 -0
  423. package/dist/entities/thirdparty/email.entity.js.map +1 -0
  424. package/dist/entities/thirdparty/oauth.entity.d.ts +21 -0
  425. package/dist/entities/thirdparty/oauth.entity.js +100 -0
  426. package/dist/entities/thirdparty/oauth.entity.js.map +1 -0
  427. package/dist/entities/thirdparty/service.entity.d.ts +8 -0
  428. package/dist/entities/thirdparty/service.entity.js +38 -0
  429. package/dist/entities/thirdparty/service.entity.js.map +1 -0
  430. package/dist/entities/thirdparty/user-email-relation.entity.d.ts +7 -0
  431. package/dist/entities/thirdparty/user-email-relation.entity.js +35 -0
  432. package/dist/entities/thirdparty/user-email-relation.entity.js.map +1 -0
  433. package/dist/entities/tools/calendar/event-list-calendars.entity.d.ts +6 -0
  434. package/dist/entities/tools/calendar/event-list-calendars.entity.js +32 -0
  435. package/dist/entities/tools/calendar/event-list-calendars.entity.js.map +1 -0
  436. package/dist/entities/tools/calendar/event.entity.d.ts +25 -0
  437. package/dist/entities/tools/calendar/event.entity.js +213 -0
  438. package/dist/entities/tools/calendar/event.entity.js.map +1 -0
  439. package/dist/entities/tools/calendar/index.d.ts +1 -0
  440. package/dist/entities/tools/calendar/index.js +18 -0
  441. package/dist/entities/tools/calendar/index.js.map +1 -0
  442. package/dist/entities/tools/index.d.ts +7 -0
  443. package/dist/entities/tools/index.js +24 -0
  444. package/dist/entities/tools/index.js.map +1 -0
  445. package/dist/entities/tools/task-comment.entity.d.ts +8 -0
  446. package/dist/entities/tools/task-comment.entity.js +39 -0
  447. package/dist/entities/tools/task-comment.entity.js.map +1 -0
  448. package/dist/entities/tools/task-history.entity.d.ts +15 -0
  449. package/dist/entities/tools/task-history.entity.js +131 -0
  450. package/dist/entities/tools/task-history.entity.js.map +1 -0
  451. package/dist/entities/tools/task-list-field.d.ts +5 -0
  452. package/dist/entities/tools/task-list-field.js +39 -0
  453. package/dist/entities/tools/task-list-field.js.map +1 -0
  454. package/dist/entities/tools/task-objection.entity.d.ts +10 -0
  455. package/dist/entities/tools/task-objection.entity.js +80 -0
  456. package/dist/entities/tools/task-objection.entity.js.map +1 -0
  457. package/dist/entities/tools/task-time-track.entity.d.ts +16 -0
  458. package/dist/entities/tools/task-time-track.entity.js +139 -0
  459. package/dist/entities/tools/task-time-track.entity.js.map +1 -0
  460. package/dist/entities/tools/task.entity.d.ts +49 -0
  461. package/dist/entities/tools/task.entity.js +419 -0
  462. package/dist/entities/tools/task.entity.js.map +1 -0
  463. package/dist/entities/user-invitations.entity.d.ts +11 -0
  464. package/dist/entities/user-invitations.entity.js +102 -0
  465. package/dist/entities/user-invitations.entity.js.map +1 -0
  466. package/dist/entities/user.entity.d.ts +39 -0
  467. package/dist/entities/user.entity.js +270 -0
  468. package/dist/entities/user.entity.js.map +1 -0
  469. package/dist/eslint.config.d.ts +2 -0
  470. package/dist/eslint.config.js +46 -0
  471. package/dist/eslint.config.js.map +1 -0
  472. package/dist/grpc/drive/drive.proto +260 -0
  473. package/dist/grpc/drive/leads.proto +114 -0
  474. package/dist/index.d.ts +3 -0
  475. package/dist/index.js +20 -0
  476. package/dist/index.js.map +1 -0
  477. package/dist/modules/index.d.ts +5 -0
  478. package/dist/modules/index.js +22 -0
  479. package/dist/modules/index.js.map +1 -0
  480. package/dist/modules/queue/event.service.d.ts +32 -0
  481. package/dist/modules/queue/event.service.js +45 -0
  482. package/dist/modules/queue/event.service.js.map +1 -0
  483. package/dist/modules/queue/notifier.service.d.ts +15 -0
  484. package/dist/modules/queue/notifier.service.js +70 -0
  485. package/dist/modules/queue/notifier.service.js.map +1 -0
  486. package/dist/modules/queue/notifiers/calendar.notifier.d.ts +10 -0
  487. package/dist/modules/queue/notifiers/calendar.notifier.js +60 -0
  488. package/dist/modules/queue/notifiers/calendar.notifier.js.map +1 -0
  489. package/dist/modules/queue/notifiers/contact.notifier.d.ts +7 -0
  490. package/dist/modules/queue/notifiers/contact.notifier.js +52 -0
  491. package/dist/modules/queue/notifiers/contact.notifier.js.map +1 -0
  492. package/dist/modules/queue/notifiers/index.d.ts +4 -0
  493. package/dist/modules/queue/notifiers/index.js +21 -0
  494. package/dist/modules/queue/notifiers/index.js.map +1 -0
  495. package/dist/modules/queue/notifiers/lead.notifier.d.ts +7 -0
  496. package/dist/modules/queue/notifiers/lead.notifier.js +52 -0
  497. package/dist/modules/queue/notifiers/lead.notifier.js.map +1 -0
  498. package/dist/modules/queue/notifiers/task.notifier.d.ts +15 -0
  499. package/dist/modules/queue/notifiers/task.notifier.js +159 -0
  500. package/dist/modules/queue/notifiers/task.notifier.js.map +1 -0
  501. package/dist/modules/queue/queue.module.d.ts +4 -0
  502. package/dist/modules/queue/queue.module.js +68 -0
  503. package/dist/modules/queue/queue.module.js.map +1 -0
  504. package/dist/modules/queue/queue.service.d.ts +9 -0
  505. package/dist/modules/queue/queue.service.js +56 -0
  506. package/dist/modules/queue/queue.service.js.map +1 -0
  507. package/dist/modules/queue/scheduler.service.d.ts +9 -0
  508. package/dist/modules/queue/scheduler.service.js +40 -0
  509. package/dist/modules/queue/scheduler.service.js.map +1 -0
  510. package/package.json +1 -1
  511. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AgentComment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const agent_entity_1 = require("./agent.entity");
15
+ const swagger_1 = require("@nestjs/swagger");
16
+ const common_1 = require("../../common");
17
+ let AgentComment = class AgentComment extends common_1.CommentBase {
18
+ agent;
19
+ };
20
+ exports.AgentComment = AgentComment;
21
+ __decorate([
22
+ (0, swagger_1.ApiProperty)({
23
+ type: () => agent_entity_1.Agent,
24
+ description: "Agent associated with the comment",
25
+ }),
26
+ (0, typeorm_1.ManyToOne)(() => agent_entity_1.Agent, {
27
+ onDelete: "CASCADE",
28
+ onUpdate: "CASCADE",
29
+ }),
30
+ __metadata("design:type", agent_entity_1.Agent)
31
+ ], AgentComment.prototype, "agent", void 0);
32
+ exports.AgentComment = AgentComment = __decorate([
33
+ (0, typeorm_1.Entity)()
34
+ ], AgentComment);
35
+ //# sourceMappingURL=agent-comment.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/agent-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4C;AAC5C,iDAAuC;AACvC,6CAA8C;AAC9C,yCAA2C;AAGpC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,oBAAW;IAS3C,KAAK,CAAQ;CACd,CAAA;AAVY,oCAAY;AASvB;IARC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,oBAAK;QACjB,WAAW,EAAE,mCAAmC;KACjD,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACK,oBAAK;2CAAC;uBATF,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CAUxB"}
@@ -0,0 +1,32 @@
1
+ import { BaseEntitySimple } from "../../common/database/base.entity";
2
+ import { User } from "../user.entity";
3
+ import { AgentSource, AgentType } from "../helpers";
4
+ import { AgentComment } from "./agent-comment.entity";
5
+ import { AgentRecruitment } from "../helpers/sales/agent/recruitment/h_agent_recruitment.entity";
6
+ import { AgentConnection } from "../helpers/sales/agent/connection/h_agent_connection.entity";
7
+ import { AgentStatus } from "../../common";
8
+ import { Group } from "../group.entity";
9
+ export declare class Agent extends BaseEntitySimple {
10
+ name: string;
11
+ cua: string;
12
+ user: User;
13
+ children: number;
14
+ recruitmentManager: User;
15
+ developmentManager: User;
16
+ observer: User;
17
+ observations: string;
18
+ createdBy?: User;
19
+ modifiedBy?: User;
20
+ isActive?: boolean;
21
+ address: string;
22
+ type?: AgentType;
23
+ source?: AgentSource;
24
+ comments: AgentComment[];
25
+ searchVector: string;
26
+ recruitments?: AgentRecruitment[];
27
+ connections?: AgentConnection[];
28
+ status: AgentStatus;
29
+ group: Group;
30
+ otherPhones: Record<string, string>[];
31
+ otherEmails: Record<string, string>[];
32
+ }
@@ -0,0 +1,254 @@
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.Agent = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const base_entity_1 = require("../../common/database/base.entity");
15
+ const typeorm_1 = require("typeorm");
16
+ const user_entity_1 = require("../user.entity");
17
+ const helpers_1 = require("../helpers");
18
+ const agent_comment_entity_1 = require("./agent-comment.entity");
19
+ const h_agent_recruitment_entity_1 = require("../helpers/sales/agent/recruitment/h_agent_recruitment.entity");
20
+ const h_agent_connection_entity_1 = require("../helpers/sales/agent/connection/h_agent_connection.entity");
21
+ const common_1 = require("../../common");
22
+ const group_entity_1 = require("../group.entity");
23
+ let Agent = class Agent extends base_entity_1.BaseEntitySimple {
24
+ name;
25
+ cua;
26
+ user;
27
+ children;
28
+ recruitmentManager;
29
+ developmentManager;
30
+ observer;
31
+ observations;
32
+ createdBy;
33
+ modifiedBy;
34
+ isActive;
35
+ address;
36
+ type;
37
+ source;
38
+ comments;
39
+ searchVector;
40
+ recruitments;
41
+ connections;
42
+ status;
43
+ group;
44
+ otherPhones;
45
+ otherEmails;
46
+ };
47
+ exports.Agent = Agent;
48
+ __decorate([
49
+ (0, swagger_1.ApiProperty)({ type: String, description: "Name of the agent" }),
50
+ (0, typeorm_1.Column)({ length: 255 }),
51
+ __metadata("design:type", String)
52
+ ], Agent.prototype, "name", void 0);
53
+ __decorate([
54
+ (0, swagger_1.ApiProperty)({
55
+ type: String,
56
+ description: "CUA of the agent",
57
+ required: false,
58
+ }),
59
+ (0, typeorm_1.Column)({ length: 50, unique: false, nullable: true }),
60
+ __metadata("design:type", String)
61
+ ], Agent.prototype, "cua", void 0);
62
+ __decorate([
63
+ (0, swagger_1.ApiProperty)({
64
+ type: () => user_entity_1.User,
65
+ description: "The user associated with this agent",
66
+ }),
67
+ (0, typeorm_1.OneToOne)(() => user_entity_1.User, (user) => user.agentProfile, {
68
+ onDelete: "SET NULL",
69
+ onUpdate: "CASCADE",
70
+ }),
71
+ (0, typeorm_1.JoinColumn)(),
72
+ __metadata("design:type", user_entity_1.User)
73
+ ], Agent.prototype, "user", void 0);
74
+ __decorate([
75
+ (0, swagger_1.ApiProperty)({ type: Number, description: "Number of children" }),
76
+ (0, typeorm_1.Column)({ type: "int", default: 0 }),
77
+ __metadata("design:type", Number)
78
+ ], Agent.prototype, "children", void 0);
79
+ __decorate([
80
+ (0, swagger_1.ApiProperty)({
81
+ type: () => user_entity_1.User,
82
+ description: "Recruitment manager (User)",
83
+ }),
84
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, onDelete: "SET NULL" }),
85
+ (0, typeorm_1.JoinColumn)({ name: "recruitmentManagerId" }),
86
+ __metadata("design:type", user_entity_1.User)
87
+ ], Agent.prototype, "recruitmentManager", void 0);
88
+ __decorate([
89
+ (0, swagger_1.ApiProperty)({
90
+ type: () => user_entity_1.User,
91
+ description: "Development manager (User)",
92
+ }),
93
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, onDelete: "SET NULL" }),
94
+ (0, typeorm_1.JoinColumn)({ name: "developmentManagerId" }),
95
+ __metadata("design:type", user_entity_1.User)
96
+ ], Agent.prototype, "developmentManager", void 0);
97
+ __decorate([
98
+ (0, swagger_1.ApiProperty)({
99
+ type: () => user_entity_1.User,
100
+ description: "Observer (User)",
101
+ }),
102
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, onDelete: "SET NULL" }),
103
+ (0, typeorm_1.JoinColumn)({ name: "observerId" }),
104
+ __metadata("design:type", user_entity_1.User)
105
+ ], Agent.prototype, "observer", void 0);
106
+ __decorate([
107
+ (0, swagger_1.ApiProperty)({ type: String, description: "Comments related to the agent" }),
108
+ (0, typeorm_1.Column)({ length: 1000, nullable: true }),
109
+ __metadata("design:type", String)
110
+ ], Agent.prototype, "observations", void 0);
111
+ __decorate([
112
+ (0, swagger_1.ApiProperty)({
113
+ type: () => user_entity_1.User,
114
+ description: "User who created the agent",
115
+ required: false,
116
+ }),
117
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
118
+ onDelete: "SET NULL",
119
+ onUpdate: "CASCADE",
120
+ nullable: true,
121
+ }),
122
+ (0, typeorm_1.JoinColumn)(),
123
+ __metadata("design:type", user_entity_1.User)
124
+ ], Agent.prototype, "createdBy", void 0);
125
+ __decorate([
126
+ (0, swagger_1.ApiProperty)({
127
+ type: () => user_entity_1.User,
128
+ description: "User who modified the agent",
129
+ required: false,
130
+ }),
131
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
132
+ onDelete: "SET NULL",
133
+ onUpdate: "CASCADE",
134
+ nullable: true,
135
+ }),
136
+ (0, typeorm_1.JoinColumn)(),
137
+ __metadata("design:type", user_entity_1.User)
138
+ ], Agent.prototype, "modifiedBy", void 0);
139
+ __decorate([
140
+ (0, typeorm_1.Column)({ default: true }),
141
+ __metadata("design:type", Boolean)
142
+ ], Agent.prototype, "isActive", void 0);
143
+ __decorate([
144
+ (0, swagger_1.ApiProperty)({
145
+ type: String,
146
+ description: "Address of the agent",
147
+ required: false,
148
+ }),
149
+ (0, typeorm_1.Column)({ length: 255, nullable: true }),
150
+ __metadata("design:type", String)
151
+ ], Agent.prototype, "address", void 0);
152
+ __decorate([
153
+ (0, swagger_1.ApiProperty)({
154
+ type: () => helpers_1.AgentType,
155
+ description: "Agent type",
156
+ required: true,
157
+ }),
158
+ (0, typeorm_1.ManyToOne)(() => helpers_1.AgentType, {
159
+ onDelete: "SET NULL",
160
+ onUpdate: "CASCADE",
161
+ nullable: true,
162
+ eager: true,
163
+ }),
164
+ __metadata("design:type", helpers_1.AgentType)
165
+ ], Agent.prototype, "type", void 0);
166
+ __decorate([
167
+ (0, swagger_1.ApiProperty)({
168
+ type: () => helpers_1.AgentSource,
169
+ description: "Agent source",
170
+ required: true,
171
+ }),
172
+ (0, typeorm_1.ManyToOne)(() => helpers_1.AgentSource, {
173
+ onDelete: "SET NULL",
174
+ onUpdate: "CASCADE",
175
+ nullable: true,
176
+ eager: true,
177
+ }),
178
+ __metadata("design:type", helpers_1.AgentSource)
179
+ ], Agent.prototype, "source", void 0);
180
+ __decorate([
181
+ (0, swagger_1.ApiProperty)({
182
+ type: () => [agent_comment_entity_1.AgentComment],
183
+ description: "Comments on the contact",
184
+ }),
185
+ (0, typeorm_1.OneToMany)(() => agent_comment_entity_1.AgentComment, (contactComment) => contactComment.agent),
186
+ (0, typeorm_1.JoinColumn)(),
187
+ __metadata("design:type", Array)
188
+ ], Agent.prototype, "comments", void 0);
189
+ __decorate([
190
+ (0, typeorm_1.Column)({ type: "tsvector", nullable: true }),
191
+ __metadata("design:type", String)
192
+ ], Agent.prototype, "searchVector", void 0);
193
+ __decorate([
194
+ (0, swagger_1.ApiProperty)({
195
+ type: () => [h_agent_recruitment_entity_1.AgentRecruitment],
196
+ description: "Recruitments Data associated with the agent",
197
+ }),
198
+ (0, typeorm_1.OneToMany)(() => h_agent_recruitment_entity_1.AgentRecruitment, (agentRecruitment) => agentRecruitment.agent, {
199
+ onDelete: "CASCADE",
200
+ onUpdate: "CASCADE",
201
+ }),
202
+ __metadata("design:type", Array)
203
+ ], Agent.prototype, "recruitments", void 0);
204
+ __decorate([
205
+ (0, swagger_1.ApiProperty)({
206
+ type: () => [h_agent_connection_entity_1.AgentConnection],
207
+ description: "Connections Data associated with the agent",
208
+ }),
209
+ (0, typeorm_1.OneToMany)(() => h_agent_connection_entity_1.AgentConnection, (agentConnection) => agentConnection.agent, {
210
+ onDelete: "CASCADE",
211
+ onUpdate: "CASCADE",
212
+ }),
213
+ __metadata("design:type", Array)
214
+ ], Agent.prototype, "connections", void 0);
215
+ __decorate([
216
+ (0, swagger_1.ApiProperty)({
217
+ enum: common_1.AgentStatus,
218
+ description: "Agent Status",
219
+ required: false,
220
+ }),
221
+ (0, typeorm_1.Column)({
222
+ type: "enum",
223
+ enum: common_1.AgentStatus,
224
+ nullable: true,
225
+ }),
226
+ __metadata("design:type", String)
227
+ ], Agent.prototype, "status", void 0);
228
+ __decorate([
229
+ (0, swagger_1.ApiProperty)({
230
+ type: () => group_entity_1.Group,
231
+ description: "Group of the agent",
232
+ }),
233
+ (0, typeorm_1.ManyToOne)(() => group_entity_1.Group, { nullable: true, onDelete: "SET NULL" }),
234
+ (0, typeorm_1.JoinColumn)({ name: "groupId" }),
235
+ __metadata("design:type", group_entity_1.Group)
236
+ ], Agent.prototype, "group", void 0);
237
+ __decorate([
238
+ (0, swagger_1.ApiProperty)({
239
+ description: "Other phones of the agent",
240
+ }),
241
+ (0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
242
+ __metadata("design:type", Array)
243
+ ], Agent.prototype, "otherPhones", void 0);
244
+ __decorate([
245
+ (0, swagger_1.ApiProperty)({
246
+ description: "Other emails of the agent",
247
+ }),
248
+ (0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
249
+ __metadata("design:type", Array)
250
+ ], Agent.prototype, "otherEmails", void 0);
251
+ exports.Agent = Agent = __decorate([
252
+ (0, typeorm_1.Entity)()
253
+ ], Agent);
254
+ //# sourceMappingURL=agent.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,mEAAqE;AACrE,qCAOiB;AACjB,gDAAsC;AACtC,wCAAoD;AACpD,iEAAsD;AACtD,8GAAiG;AACjG,2GAA8F;AAC9F,yCAA2C;AAC3C,kDAAwC;AAGjC,IAAM,KAAK,G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CAAC;IACD,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,2CAAe,EACrB,CAAC,eAAe,EAAE,EAAE,CAAC,eAAe,CAAC,KAAK,EAC1C;QACE,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CACF;;0CAC+B;AAYhC;IAVC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,oBAAW;QACjB,WAAW,EAAE,cAAc;QAC3B,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,oBAAW;QACjB,QAAQ,EAAE,IAAI;KACf,CAAC;;qCACkB;AAQpB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,oBAAK;QACjB,WAAW,EAAE,oBAAoB;KAClC,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IAChE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BACzB,oBAAK;oCAAC;AAOb;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,2BAA2B;KACzC,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACJ;AAOtC;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,2BAA2B;KACzC,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACJ;gBA/L3B,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CAgMjB"}
@@ -0,0 +1,7 @@
1
+ import { BaseEntitySimple } from "../../common/database/base.entity";
2
+ import { Group } from "../../entities/group.entity";
3
+ export declare class AgenteIntermediario extends BaseEntitySimple {
4
+ name: string;
5
+ cua: string;
6
+ group: Group;
7
+ }
@@ -0,0 +1,49 @@
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.AgenteIntermediario = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const base_entity_1 = require("../../common/database/base.entity");
15
+ const typeorm_1 = require("typeorm");
16
+ const group_entity_1 = require("../../entities/group.entity");
17
+ let AgenteIntermediario = class AgenteIntermediario extends base_entity_1.BaseEntitySimple {
18
+ name;
19
+ cua;
20
+ group;
21
+ };
22
+ exports.AgenteIntermediario = AgenteIntermediario;
23
+ __decorate([
24
+ (0, swagger_1.ApiProperty)({ type: String, description: "name of the intermediary agent" }),
25
+ (0, typeorm_1.Column)({ length: 255 }),
26
+ __metadata("design:type", String)
27
+ ], AgenteIntermediario.prototype, "name", void 0);
28
+ __decorate([
29
+ (0, swagger_1.ApiProperty)({
30
+ type: String,
31
+ description: "CUA of the intermediary agent",
32
+ required: false,
33
+ }),
34
+ (0, typeorm_1.Column)({ length: 50, nullable: true }),
35
+ __metadata("design:type", String)
36
+ ], AgenteIntermediario.prototype, "cua", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.ManyToOne)(() => group_entity_1.Group, (group) => group.agenteIntermediarios, {
39
+ nullable: true,
40
+ onDelete: "CASCADE",
41
+ onUpdate: "CASCADE",
42
+ }),
43
+ __metadata("design:type", group_entity_1.Group)
44
+ ], AgenteIntermediario.prototype, "group", void 0);
45
+ exports.AgenteIntermediario = AgenteIntermediario = __decorate([
46
+ (0, typeorm_1.Entity)(),
47
+ (0, typeorm_1.Index)("IDX_AGENTE_INTERMEDIARIO_CUA_GROUP", ["cua", "group"], { unique: true })
48
+ ], AgenteIntermediario);
49
+ //# sourceMappingURL=agente-intermediario.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agente-intermediario.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/agente-intermediario.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,mEAAqE;AACrE,qCAA2D;AAC3D,8DAAoD;AAI7C,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,8BAAgB;IAGvD,IAAI,CAAS;IAQb,GAAG,CAAS;IAOZ,KAAK,CAAQ;CACd,CAAA;AAnBY,kDAAmB;AAG9B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;IAC5E,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;iDACX;AAQb;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,+BAA+B;QAC5C,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC3B;AAOZ;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,oBAAoB,EAAE;QAC7D,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACK,oBAAK;kDAAC;8BAlBF,mBAAmB;IAF/B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,oCAAoC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACnE,mBAAmB,CAmB/B"}
@@ -0,0 +1,2 @@
1
+ export * from './vehicle.entity';
2
+ export * from './person.entity';
@@ -0,0 +1,19 @@
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("./vehicle.entity"), exports);
18
+ __exportStar(require("./person.entity"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/sales/beneficiarios/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,kDAAgC"}
@@ -0,0 +1,10 @@
1
+ import { EntityBase } from "../../../common/database/base.entity";
2
+ import { User } from "../../user.entity";
3
+ import { PolizaInsurance } from "../../helpers";
4
+ export declare class InsuredPerson extends EntityBase {
5
+ codigo?: string;
6
+ fullName?: string;
7
+ company?: PolizaInsurance;
8
+ createdBy?: User;
9
+ modifiedBy?: User;
10
+ }
@@ -0,0 +1,89 @@
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.InsuredPerson = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const base_entity_1 = require("../../../common/database/base.entity");
15
+ const typeorm_1 = require("typeorm");
16
+ const user_entity_1 = require("../../user.entity");
17
+ const helpers_1 = require("../../helpers");
18
+ let InsuredPerson = class InsuredPerson extends base_entity_1.EntityBase {
19
+ codigo;
20
+ fullName;
21
+ company;
22
+ createdBy;
23
+ modifiedBy;
24
+ };
25
+ exports.InsuredPerson = InsuredPerson;
26
+ __decorate([
27
+ (0, swagger_1.ApiProperty)({
28
+ type: String,
29
+ description: "Codigo de cliente",
30
+ }),
31
+ (0, typeorm_1.Column)({ name: "codigo", nullable: false }),
32
+ __metadata("design:type", String)
33
+ ], InsuredPerson.prototype, "codigo", void 0);
34
+ __decorate([
35
+ (0, swagger_1.ApiProperty)({
36
+ type: String,
37
+ description: "Full name of the Insured Person",
38
+ required: false,
39
+ }),
40
+ (0, typeorm_1.Column)({ length: 150, nullable: true }),
41
+ __metadata("design:type", String)
42
+ ], InsuredPerson.prototype, "fullName", void 0);
43
+ __decorate([
44
+ (0, swagger_1.ApiProperty)({
45
+ type: () => helpers_1.PolizaInsurance,
46
+ description: "Insurance associated with the beneficiary",
47
+ required: false,
48
+ }),
49
+ (0, typeorm_1.ManyToOne)(() => helpers_1.PolizaInsurance, {
50
+ onDelete: "SET NULL",
51
+ onUpdate: "CASCADE",
52
+ nullable: true,
53
+ }),
54
+ (0, typeorm_1.JoinColumn)(),
55
+ __metadata("design:type", helpers_1.PolizaInsurance)
56
+ ], InsuredPerson.prototype, "company", void 0);
57
+ __decorate([
58
+ (0, swagger_1.ApiProperty)({
59
+ type: () => user_entity_1.User,
60
+ description: "User who created the beneficiary",
61
+ required: false,
62
+ }),
63
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
64
+ onDelete: "SET NULL",
65
+ onUpdate: "CASCADE",
66
+ nullable: true,
67
+ }),
68
+ (0, typeorm_1.JoinColumn)(),
69
+ __metadata("design:type", user_entity_1.User)
70
+ ], InsuredPerson.prototype, "createdBy", void 0);
71
+ __decorate([
72
+ (0, swagger_1.ApiProperty)({
73
+ type: () => user_entity_1.User,
74
+ description: "User who modified the beneficiary",
75
+ required: false,
76
+ }),
77
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
78
+ onDelete: "SET NULL",
79
+ onUpdate: "CASCADE",
80
+ nullable: true,
81
+ }),
82
+ (0, typeorm_1.JoinColumn)(),
83
+ __metadata("design:type", user_entity_1.User)
84
+ ], InsuredPerson.prototype, "modifiedBy", void 0);
85
+ exports.InsuredPerson = InsuredPerson = __decorate([
86
+ (0, typeorm_1.Index)(["codigo", "company"], { unique: true }),
87
+ (0, typeorm_1.Entity)()
88
+ ], InsuredPerson);
89
+ //# sourceMappingURL=person.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person.entity.js","sourceRoot":"","sources":["../../../../src/entities/sales/beneficiarios/person.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,sEAAkE;AAClE,qCAAuE;AACvE,mDAAyC;AACzC,2CAAgD;AAKzC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,wBAAU;IAM3C,MAAM,CAAU;IAShB,QAAQ,CAAU;IAalB,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AChD,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,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;iDAAC;wBAtDP,aAAa;IAFzB,IAAA,eAAK,EAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC9C,IAAA,gBAAM,GAAE;GACI,aAAa,CAuDzB"}
@@ -0,0 +1,16 @@
1
+ import { EntityBase } from "../../../common/database/base.entity";
2
+ import { User } from "../../user.entity";
3
+ export declare class BeneficiaryVehicle extends EntityBase {
4
+ description: string;
5
+ serial?: string;
6
+ model?: string;
7
+ motor?: string;
8
+ plates?: string;
9
+ usage?: string;
10
+ circulatesIn?: string;
11
+ regularDriver?: string;
12
+ regularDriverAge?: number;
13
+ preferredBeneficiary?: string;
14
+ createdBy?: User;
15
+ modifiedBy?: User;
16
+ }
@@ -0,0 +1,106 @@
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.BeneficiaryVehicle = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const base_entity_1 = require("../../../common/database/base.entity");
15
+ const typeorm_1 = require("typeorm");
16
+ const user_entity_1 = require("../../user.entity");
17
+ let BeneficiaryVehicle = class BeneficiaryVehicle extends base_entity_1.EntityBase {
18
+ description;
19
+ serial;
20
+ model;
21
+ motor;
22
+ plates;
23
+ usage;
24
+ circulatesIn;
25
+ regularDriver;
26
+ regularDriverAge;
27
+ preferredBeneficiary;
28
+ createdBy;
29
+ modifiedBy;
30
+ };
31
+ exports.BeneficiaryVehicle = BeneficiaryVehicle;
32
+ __decorate([
33
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Description of the vehicle', required: false, nullable: true }),
34
+ (0, typeorm_1.Column)({ type: "text" }),
35
+ __metadata("design:type", String)
36
+ ], BeneficiaryVehicle.prototype, "description", void 0);
37
+ __decorate([
38
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Serial', required: false }),
39
+ (0, typeorm_1.Column)({ length: 55, nullable: true }),
40
+ __metadata("design:type", String)
41
+ ], BeneficiaryVehicle.prototype, "serial", void 0);
42
+ __decorate([
43
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Modelo del vehículo', required: false }),
44
+ (0, typeorm_1.Column)({ length: 55, nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], BeneficiaryVehicle.prototype, "model", void 0);
47
+ __decorate([
48
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Motor del vehículo', required: false }),
49
+ (0, typeorm_1.Column)({ length: 55, nullable: true }),
50
+ __metadata("design:type", String)
51
+ ], BeneficiaryVehicle.prototype, "motor", void 0);
52
+ __decorate([
53
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Placas del vehículo', required: false }),
54
+ (0, typeorm_1.Column)({ length: 20, nullable: true }),
55
+ __metadata("design:type", String)
56
+ ], BeneficiaryVehicle.prototype, "plates", void 0);
57
+ __decorate([
58
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Uso', required: false }),
59
+ (0, typeorm_1.Column)({ length: 50, nullable: true }),
60
+ __metadata("design:type", String)
61
+ ], BeneficiaryVehicle.prototype, "usage", void 0);
62
+ __decorate([
63
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Circula En', required: false }),
64
+ (0, typeorm_1.Column)({ length: 150, nullable: true }),
65
+ __metadata("design:type", String)
66
+ ], BeneficiaryVehicle.prototype, "circulatesIn", void 0);
67
+ __decorate([
68
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Conductor Habitual', required: false }),
69
+ (0, typeorm_1.Column)({ length: 255, nullable: true }),
70
+ __metadata("design:type", String)
71
+ ], BeneficiaryVehicle.prototype, "regularDriver", void 0);
72
+ __decorate([
73
+ (0, swagger_1.ApiProperty)({ type: Number, description: 'Edad del Conductor Habitual', required: false }),
74
+ (0, typeorm_1.Column)({ nullable: true }),
75
+ __metadata("design:type", Number)
76
+ ], BeneficiaryVehicle.prototype, "regularDriverAge", void 0);
77
+ __decorate([
78
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Beneficiario Preferente', required: false }),
79
+ (0, typeorm_1.Column)({ length: 255, nullable: true }),
80
+ __metadata("design:type", String)
81
+ ], BeneficiaryVehicle.prototype, "preferredBeneficiary", void 0);
82
+ __decorate([
83
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the comment', required: false }),
84
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
85
+ onDelete: "SET NULL",
86
+ onUpdate: "CASCADE",
87
+ nullable: true,
88
+ }),
89
+ (0, typeorm_1.JoinColumn)(),
90
+ __metadata("design:type", user_entity_1.User)
91
+ ], BeneficiaryVehicle.prototype, "createdBy", void 0);
92
+ __decorate([
93
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who modified the comment', required: false }),
94
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
95
+ onDelete: "SET NULL",
96
+ onUpdate: "CASCADE",
97
+ nullable: true,
98
+ }),
99
+ (0, typeorm_1.JoinColumn)(),
100
+ __metadata("design:type", user_entity_1.User)
101
+ ], BeneficiaryVehicle.prototype, "modifiedBy", void 0);
102
+ exports.BeneficiaryVehicle = BeneficiaryVehicle = __decorate([
103
+ (0, typeorm_1.Entity)(),
104
+ (0, typeorm_1.Index)(["serial", "model", "plates"], { unique: true })
105
+ ], BeneficiaryVehicle);
106
+ //# sourceMappingURL=vehicle.entity.js.map