easywork-common-lib 1.0.463 → 1.0.466
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +2 -2
- package/.github/workflows/npm-publish.yml +33 -33
- package/.vscode/settings.json +12 -12
- package/dist/common/@types/enums/crm.enum.d.ts +8 -0
- package/dist/common/@types/enums/crm.enum.js +14 -0
- package/dist/common/@types/enums/crm.enum.js.map +1 -0
- package/dist/common/@types/enums/index.d.ts +3 -0
- package/dist/common/@types/enums/index.js +20 -0
- package/dist/common/@types/enums/index.js.map +1 -0
- package/dist/common/@types/enums/misc.enum.d.ts +60 -0
- package/dist/common/@types/enums/misc.enum.js +81 -0
- package/dist/common/@types/enums/misc.enum.js.map +1 -0
- package/dist/common/@types/enums/permission.enum.d.ts +13 -0
- package/dist/common/@types/enums/permission.enum.js +19 -0
- package/dist/common/@types/enums/permission.enum.js.map +1 -0
- package/dist/common/@types/index.d.ts +2 -0
- package/dist/common/@types/index.js +19 -0
- package/dist/common/@types/index.js.map +1 -0
- package/dist/common/@types/interfaces/authentication.interface.d.ts +17 -0
- package/dist/common/@types/interfaces/authentication.interface.js +3 -0
- package/dist/common/@types/interfaces/authentication.interface.js.map +1 -0
- package/dist/common/@types/interfaces/crm.interface.d.ts +131 -0
- package/dist/common/@types/interfaces/crm.interface.js +3 -0
- package/dist/common/@types/interfaces/crm.interface.js.map +1 -0
- package/dist/common/@types/interfaces/file.interface.d.ts +14 -0
- package/dist/common/@types/interfaces/file.interface.js +3 -0
- package/dist/common/@types/interfaces/file.interface.js.map +1 -0
- package/dist/common/@types/interfaces/index.d.ts +5 -0
- package/dist/common/@types/interfaces/index.js +22 -0
- package/dist/common/@types/interfaces/index.js.map +1 -0
- package/dist/common/@types/interfaces/mail.interface.d.ts +9 -0
- package/dist/common/@types/interfaces/mail.interface.js +3 -0
- package/dist/common/@types/interfaces/mail.interface.js.map +1 -0
- package/dist/common/@types/interfaces/validator.interface.d.ts +41 -0
- package/dist/common/@types/interfaces/validator.interface.js +3 -0
- package/dist/common/@types/interfaces/validator.interface.js.map +1 -0
- package/dist/common/constants/app.contants.d.ts +31 -0
- package/dist/common/constants/app.contants.js +185 -0
- package/dist/common/constants/app.contants.js.map +1 -0
- package/dist/common/constants/index.d.ts +2 -0
- package/dist/common/constants/index.js +19 -0
- package/dist/common/constants/index.js.map +1 -0
- package/dist/common/constants/regex.constant.d.ts +6 -0
- package/dist/common/constants/regex.constant.js +10 -0
- package/dist/common/constants/regex.constant.js.map +1 -0
- package/dist/common/database/base.entity.d.ts +15 -0
- package/dist/common/database/base.entity.js +76 -0
- package/dist/common/database/base.entity.js.map +1 -0
- package/dist/common/database/comment.base.entity.d.ts +11 -0
- package/dist/common/database/comment.base.entity.js +83 -0
- package/dist/common/database/comment.base.entity.js.map +1 -0
- package/dist/common/database/index.d.ts +2 -0
- package/dist/common/database/index.js +19 -0
- package/dist/common/database/index.js.map +1 -0
- package/dist/common/dtos/index.d.ts +1 -0
- package/dist/common/dtos/index.js +18 -0
- package/dist/common/dtos/index.js.map +1 -0
- package/dist/common/dtos/send-notification.dto.d.ts +11 -0
- package/dist/common/dtos/send-notification.dto.js +60 -0
- package/dist/common/dtos/send-notification.dto.js.map +1 -0
- package/dist/common/enums/drive.enum.d.ts +20 -0
- package/dist/common/enums/drive.enum.js +26 -0
- package/dist/common/enums/drive.enum.js.map +1 -0
- package/dist/common/enums/index.d.ts +4 -0
- package/dist/common/enums/index.js +21 -0
- package/dist/common/enums/index.js.map +1 -0
- package/dist/common/enums/notification.enum.d.ts +32 -0
- package/dist/common/enums/notification.enum.js +39 -0
- package/dist/common/enums/notification.enum.js.map +1 -0
- package/dist/common/enums/sales.enum.d.ts +41 -0
- package/dist/common/enums/sales.enum.js +53 -0
- package/dist/common/enums/sales.enum.js.map +1 -0
- package/dist/common/enums/tools.enum.d.ts +19 -0
- package/dist/common/enums/tools.enum.js +26 -0
- package/dist/common/enums/tools.enum.js.map +1 -0
- package/dist/common/functions/cripto.d.ts +1 -0
- package/dist/common/functions/cripto.js +8 -0
- package/dist/common/functions/cripto.js.map +1 -0
- package/dist/common/functions/image.d.ts +2 -0
- package/dist/common/functions/image.js +14 -0
- package/dist/common/functions/image.js.map +1 -0
- package/dist/common/functions/index.d.ts +2 -0
- package/dist/common/functions/index.js +19 -0
- package/dist/common/functions/index.js.map +1 -0
- package/dist/common/helpers/app.utils.d.ts +5 -0
- package/dist/common/helpers/app.utils.js +32 -0
- package/dist/common/helpers/app.utils.js.map +1 -0
- package/dist/common/helpers/helpers.utils.d.ts +5 -0
- package/dist/common/helpers/helpers.utils.js +26 -0
- package/dist/common/helpers/helpers.utils.js.map +1 -0
- package/dist/common/helpers/index.d.ts +2 -0
- package/dist/common/helpers/index.js +19 -0
- package/dist/common/helpers/index.js.map +1 -0
- package/dist/common/index.d.ts +8 -0
- package/dist/common/index.js +25 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/interceptors/index.d.ts +1 -0
- package/dist/common/interceptors/index.js +18 -0
- package/dist/common/interceptors/index.js.map +1 -0
- package/dist/common/interceptors/security.interceptor.d.ts +5 -0
- package/dist/common/interceptors/security.interceptor.js +22 -0
- package/dist/common/interceptors/security.interceptor.js.map +1 -0
- package/dist/entities/app_config/app-config.entity.d.ts +5 -0
- package/dist/entities/app_config/app-config.entity.js +33 -0
- package/dist/entities/app_config/app-config.entity.js.map +1 -0
- package/dist/entities/currency.entity.d.ts +6 -0
- package/dist/entities/currency.entity.js +43 -0
- package/dist/entities/currency.entity.js.map +1 -0
- package/dist/entities/drive/attached_object.entity.d.ts +21 -0
- package/dist/entities/drive/attached_object.entity.js +154 -0
- package/dist/entities/drive/attached_object.entity.js.map +1 -0
- package/dist/entities/drive/file.entity.d.ts +19 -0
- package/dist/entities/drive/file.entity.js +130 -0
- package/dist/entities/drive/file.entity.js.map +1 -0
- package/dist/entities/drive/folder.entity.d.ts +18 -0
- package/dist/entities/drive/folder.entity.js +137 -0
- package/dist/entities/drive/folder.entity.js.map +1 -0
- package/dist/entities/drive/index.d.ts +3 -0
- package/dist/entities/drive/index.js +20 -0
- package/dist/entities/drive/index.js.map +1 -0
- package/dist/entities/easyapp/filter-view.entity.d.ts +7 -0
- package/dist/entities/easyapp/filter-view.entity.js +41 -0
- package/dist/entities/easyapp/filter-view.entity.js.map +1 -0
- package/dist/entities/email.entity.d.ts +5 -0
- package/dist/entities/email.entity.js +36 -0
- package/dist/entities/email.entity.js.map +1 -0
- package/dist/entities/group.entity.d.ts +5 -0
- package/dist/entities/group.entity.js +33 -0
- package/dist/entities/group.entity.js.map +1 -0
- package/dist/entities/helpers/entity_file.entity.d.ts +10 -0
- package/dist/entities/helpers/entity_file.entity.js +61 -0
- package/dist/entities/helpers/entity_file.entity.js.map +1 -0
- package/dist/entities/helpers/entity_folder.entity.d.ts +10 -0
- package/dist/entities/helpers/entity_folder.entity.js +61 -0
- package/dist/entities/helpers/entity_folder.entity.js.map +1 -0
- package/dist/entities/helpers/index.d.ts +4 -0
- package/dist/entities/helpers/index.js +21 -0
- package/dist/entities/helpers/index.js.map +1 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.js +36 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.js.map +1 -0
- package/dist/entities/helpers/sales/common/client_types.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/common/client_types.entity.js +36 -0
- package/dist/entities/helpers/sales/common/client_types.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.js +68 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_insurance.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/contact/contact_insurance.entity.js +68 -0
- package/dist/entities/helpers/sales/contact/contact_insurance.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js +68 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/index.d.ts +5 -0
- package/dist/entities/helpers/sales/contact/index.js +22 -0
- package/dist/entities/helpers/sales/contact/index.js.map +1 -0
- package/dist/entities/helpers/sales/index.d.ts +6 -0
- package/dist/entities/helpers/sales/index.js +23 -0
- package/dist/entities/helpers/sales/index.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +30 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +36 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +30 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/index.d.ts +6 -0
- package/dist/entities/helpers/sales/lead/index.js +23 -0
- package/dist/entities/helpers/sales/lead/index.js.map +1 -0
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js +28 -0
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.js +66 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js +66 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js +30 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js +33 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +39 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +39 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js +30 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js +36 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +33 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.d.ts +8 -0
- package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js +53 -0
- package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/index.d.ts +10 -0
- package/dist/entities/helpers/sales/poliza/index.js +27 -0
- package/dist/entities/helpers/sales/poliza/index.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +68 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js +86 -0
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js.map +1 -0
- package/dist/entities/helpers/tools/index.d.ts +1 -0
- package/dist/entities/helpers/tools/index.js +18 -0
- package/dist/entities/helpers/tools/index.js.map +1 -0
- package/dist/entities/helpers/tools/task_crm.entity.d.ts +19 -0
- package/dist/entities/helpers/tools/task_crm.entity.js +136 -0
- package/dist/entities/helpers/tools/task_crm.entity.js.map +1 -0
- package/dist/entities/helpers/user/access_history.entity.d.ts +9 -0
- package/dist/entities/helpers/user/access_history.entity.js +58 -0
- package/dist/entities/helpers/user/access_history.entity.js.map +1 -0
- package/dist/entities/imap-config.entity.d.ts +11 -0
- package/dist/entities/imap-config.entity.js +61 -0
- package/dist/entities/imap-config.entity.js.map +1 -0
- package/dist/entities/index.d.ts +26 -0
- package/dist/entities/index.js +43 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/menu-permissions.entity.d.ts +7 -0
- package/dist/entities/menu-permissions.entity.js +42 -0
- package/dist/entities/menu-permissions.entity.js.map +1 -0
- package/dist/entities/notifications/index.d.ts +2 -0
- package/dist/entities/notifications/index.js +19 -0
- package/dist/entities/notifications/index.js.map +1 -0
- package/dist/entities/notifications/notification.entity.d.ts +15 -0
- package/dist/entities/notifications/notification.entity.js +119 -0
- package/dist/entities/notifications/notification.entity.js.map +1 -0
- package/dist/entities/notifications/push-token.entity.d.ts +7 -0
- package/dist/entities/notifications/push-token.entity.js +45 -0
- package/dist/entities/notifications/push-token.entity.js.map +1 -0
- package/dist/entities/otp-log.entity.d.ts +8 -0
- package/dist/entities/otp-log.entity.js +49 -0
- package/dist/entities/otp-log.entity.js.map +1 -0
- package/dist/entities/permission.entity.d.ts +7 -0
- package/dist/entities/permission.entity.js +46 -0
- package/dist/entities/permission.entity.js.map +1 -0
- package/dist/entities/phone.entity.d.ts +5 -0
- package/dist/entities/phone.entity.js +36 -0
- package/dist/entities/phone.entity.js.map +1 -0
- package/dist/entities/profile.entity.d.ts +9 -0
- package/dist/entities/profile.entity.js +56 -0
- package/dist/entities/profile.entity.js.map +1 -0
- package/dist/entities/protocol.entity.d.ts +8 -0
- package/dist/entities/protocol.entity.js +46 -0
- package/dist/entities/protocol.entity.js.map +1 -0
- package/dist/entities/refresh-token.entity.d.ts +8 -0
- package/dist/entities/refresh-token.entity.js +46 -0
- package/dist/entities/refresh-token.entity.js.map +1 -0
- package/dist/entities/role.entity.d.ts +6 -0
- package/dist/entities/role.entity.js +42 -0
- package/dist/entities/role.entity.js.map +1 -0
- package/dist/entities/sales/agente-intermediario.entity.d.ts +5 -0
- package/dist/entities/sales/agente-intermediario.entity.js +34 -0
- package/dist/entities/sales/agente-intermediario.entity.js.map +1 -0
- package/dist/entities/sales/beneficiarios/index.d.ts +2 -0
- package/dist/entities/sales/beneficiarios/index.js +19 -0
- package/dist/entities/sales/beneficiarios/index.js.map +1 -0
- package/dist/entities/sales/beneficiarios/person.entity.d.ts +10 -0
- package/dist/entities/sales/beneficiarios/person.entity.js +89 -0
- package/dist/entities/sales/beneficiarios/person.entity.js.map +1 -0
- package/dist/entities/sales/beneficiarios/vehicle.entity.d.ts +16 -0
- package/dist/entities/sales/beneficiarios/vehicle.entity.js +106 -0
- package/dist/entities/sales/beneficiarios/vehicle.entity.js.map +1 -0
- package/dist/entities/sales/contact-comment.entity.d.ts +5 -0
- package/dist/entities/sales/contact-comment.entity.js +32 -0
- package/dist/entities/sales/contact-comment.entity.js.map +1 -0
- package/dist/entities/sales/contact.entity.d.ts +49 -0
- package/dist/entities/sales/contact.entity.js +303 -0
- package/dist/entities/sales/contact.entity.js.map +1 -0
- package/dist/entities/sales/index.d.ts +12 -0
- package/dist/entities/sales/index.js +29 -0
- package/dist/entities/sales/index.js.map +1 -0
- package/dist/entities/sales/lead-comment.entity.d.ts +5 -0
- package/dist/entities/sales/lead-comment.entity.js +32 -0
- package/dist/entities/sales/lead-comment.entity.js.map +1 -0
- package/dist/entities/sales/lead.entity.d.ts +51 -0
- package/dist/entities/sales/lead.entity.js +344 -0
- package/dist/entities/sales/lead.entity.js.map +1 -0
- package/dist/entities/sales/poliza-comment.entity.d.ts +5 -0
- package/dist/entities/sales/poliza-comment.entity.js +32 -0
- package/dist/entities/sales/poliza-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza.entity.d.ts +112 -0
- package/dist/entities/sales/poliza.entity.js +1103 -0
- package/dist/entities/sales/poliza.entity.js.map +1 -0
- package/dist/entities/sales/poliza_siniestro.entity.d.ts +12 -0
- package/dist/entities/sales/poliza_siniestro.entity.js +72 -0
- package/dist/entities/sales/poliza_siniestro.entity.js.map +1 -0
- package/dist/entities/sales/receipt-comment.entity.d.ts +5 -0
- package/dist/entities/sales/receipt-comment.entity.js +32 -0
- package/dist/entities/sales/receipt-comment.entity.js.map +1 -0
- package/dist/entities/sales/receipt-sub-agente.entity.d.ts +5 -0
- package/dist/entities/sales/receipt-sub-agente.entity.js +35 -0
- package/dist/entities/sales/receipt-sub-agente.entity.js.map +1 -0
- package/dist/entities/sales/receipt.entity.d.ts +31 -0
- package/dist/entities/sales/receipt.entity.js +203 -0
- package/dist/entities/sales/receipt.entity.js.map +1 -0
- package/dist/entities/tag.entity.d.ts +8 -0
- package/dist/entities/tag.entity.js +53 -0
- package/dist/entities/tag.entity.js.map +1 -0
- package/dist/entities/thirdparty/email-config.entity.d.ts +14 -0
- package/dist/entities/thirdparty/email-config.entity.js +76 -0
- package/dist/entities/thirdparty/email-config.entity.js.map +1 -0
- package/dist/entities/thirdparty/email.entity.d.ts +17 -0
- package/dist/entities/thirdparty/email.entity.js +79 -0
- package/dist/entities/thirdparty/email.entity.js.map +1 -0
- package/dist/entities/thirdparty/oauth.entity.d.ts +18 -0
- package/dist/entities/thirdparty/oauth.entity.js +93 -0
- package/dist/entities/thirdparty/oauth.entity.js.map +1 -0
- package/dist/entities/thirdparty/service.entity.d.ts +6 -0
- package/dist/entities/thirdparty/service.entity.js +32 -0
- package/dist/entities/thirdparty/service.entity.js.map +1 -0
- package/dist/entities/thirdparty/user-email-relation.entity.d.ts +7 -0
- package/dist/entities/thirdparty/user-email-relation.entity.js +35 -0
- package/dist/entities/thirdparty/user-email-relation.entity.js.map +1 -0
- package/dist/entities/tools/calendar/event.entity.d.ts +19 -0
- package/dist/entities/tools/calendar/event.entity.js +132 -0
- package/dist/entities/tools/calendar/event.entity.js.map +1 -0
- package/dist/entities/tools/calendar/index.d.ts +1 -0
- package/dist/entities/tools/calendar/index.js +18 -0
- package/dist/entities/tools/calendar/index.js.map +1 -0
- package/dist/entities/tools/index.d.ts +4 -0
- package/dist/entities/tools/index.js +21 -0
- package/dist/entities/tools/index.js.map +1 -0
- package/dist/entities/tools/task-comment.entity.d.ts +6 -0
- package/dist/entities/tools/task-comment.entity.js +38 -0
- package/dist/entities/tools/task-comment.entity.js.map +1 -0
- package/dist/entities/tools/task-list-field.d.ts +5 -0
- package/dist/entities/tools/task-list-field.js +39 -0
- package/dist/entities/tools/task-list-field.js.map +1 -0
- package/dist/entities/tools/task.entity.d.ts +34 -0
- package/dist/entities/tools/task.entity.js +221 -0
- package/dist/entities/tools/task.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +29 -0
- package/dist/entities/user.entity.js +168 -0
- package/dist/entities/user.entity.js.map +1 -0
- package/dist/eslint.config.d.ts +2 -0
- package/dist/eslint.config.js +46 -0
- package/dist/eslint.config.js.map +1 -0
- package/dist/grpc/drive/drive.proto +179 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/index.d.ts +4 -0
- package/dist/modules/index.js +21 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/queue/event.service.d.ts +9 -0
- package/dist/modules/queue/event.service.js +40 -0
- package/dist/modules/queue/event.service.js.map +1 -0
- package/dist/modules/queue/notifier.service.d.ts +15 -0
- package/dist/modules/queue/notifier.service.js +70 -0
- package/dist/modules/queue/notifier.service.js.map +1 -0
- package/dist/modules/queue/notifiers/calendar.notifier.d.ts +2 -0
- package/dist/modules/queue/notifiers/calendar.notifier.js +17 -0
- package/dist/modules/queue/notifiers/calendar.notifier.js.map +1 -0
- package/dist/modules/queue/notifiers/contact.notifier.d.ts +7 -0
- package/dist/modules/queue/notifiers/contact.notifier.js +49 -0
- package/dist/modules/queue/notifiers/contact.notifier.js.map +1 -0
- package/dist/modules/queue/notifiers/index.d.ts +4 -0
- package/dist/modules/queue/notifiers/index.js +21 -0
- package/dist/modules/queue/notifiers/index.js.map +1 -0
- package/dist/modules/queue/notifiers/lead.notifier.d.ts +7 -0
- package/dist/modules/queue/notifiers/lead.notifier.js +49 -0
- package/dist/modules/queue/notifiers/lead.notifier.js.map +1 -0
- package/dist/modules/queue/notifiers/task.notifier.d.ts +15 -0
- package/dist/modules/queue/notifiers/task.notifier.js +130 -0
- package/dist/modules/queue/notifiers/task.notifier.js.map +1 -0
- package/dist/modules/queue/queue.module.d.ts +4 -0
- package/dist/modules/queue/queue.module.js +57 -0
- package/dist/modules/queue/queue.module.js.map +1 -0
- package/dist/modules/queue/scheduler.service.d.ts +9 -0
- package/dist/modules/queue/scheduler.service.js +40 -0
- package/dist/modules/queue/scheduler.service.js.map +1 -0
- package/justfile +8 -8
- package/package.json +1 -1
- package/scripts/bump.sh +5 -5
- package/test.bat +15 -15
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +25 -25
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
import { ClientSource } from "../helpers/sales/common/client_sources.entity";
|
|
3
|
+
import { ClientType } from "../helpers/sales/common/client_types.entity";
|
|
4
|
+
import { User } from "../user.entity";
|
|
5
|
+
import { PersonType } from "../../common";
|
|
6
|
+
import { Contact } from "./contact.entity";
|
|
7
|
+
import { LeadStage, LeadCancelReazon, LeadEmail, LeadPhone } from "../helpers";
|
|
8
|
+
import { LeadComment } from "./lead-comment.entity";
|
|
9
|
+
import { Currency } from "../currency.entity";
|
|
10
|
+
export declare class Lead extends EntityBase {
|
|
11
|
+
idBitrix?: number;
|
|
12
|
+
number: number;
|
|
13
|
+
typePerson: PersonType;
|
|
14
|
+
codigo?: string;
|
|
15
|
+
fullName?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
lastName?: string;
|
|
18
|
+
secondName?: string;
|
|
19
|
+
rfc?: string;
|
|
20
|
+
address?: string;
|
|
21
|
+
phones?: LeadPhone[];
|
|
22
|
+
emails?: LeadEmail[];
|
|
23
|
+
cargo?: string;
|
|
24
|
+
birthdate?: Date;
|
|
25
|
+
gender?: string;
|
|
26
|
+
type?: ClientType;
|
|
27
|
+
source?: ClientSource;
|
|
28
|
+
assignedBy?: User;
|
|
29
|
+
observer?: User;
|
|
30
|
+
lead?: Lead;
|
|
31
|
+
relations?: Contact[];
|
|
32
|
+
curp?: string;
|
|
33
|
+
cua?: string;
|
|
34
|
+
photo?: string;
|
|
35
|
+
post?: string;
|
|
36
|
+
observations?: string;
|
|
37
|
+
company?: string;
|
|
38
|
+
export?: boolean;
|
|
39
|
+
sourceDescription?: string;
|
|
40
|
+
cancelReazon: LeadCancelReazon;
|
|
41
|
+
stage: LeadStage;
|
|
42
|
+
cancelledBy?: User;
|
|
43
|
+
cancelledAt?: Date;
|
|
44
|
+
cancelled?: boolean;
|
|
45
|
+
contact?: Contact;
|
|
46
|
+
createdBy?: User;
|
|
47
|
+
modifiedBy?: User;
|
|
48
|
+
comments: LeadComment[];
|
|
49
|
+
quoteAmount?: number;
|
|
50
|
+
quoteCurrency: Currency;
|
|
51
|
+
}
|
|
@@ -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,G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ob,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA6OhB"}
|
|
@@ -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
|
+
}
|