easywork-common-lib 1.0.950 → 1.0.952
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/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 +6 -0
- package/dist/common/@types/interfaces/index.js +23 -0
- package/dist/common/@types/interfaces/index.js.map +1 -0
- package/dist/common/@types/interfaces/lsm.interface.d.ts +5 -0
- package/dist/common/@types/interfaces/lsm.interface.js +3 -0
- package/dist/common/@types/interfaces/lsm.interface.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 +48 -0
- package/dist/common/constants/app.contants.js +225 -0
- package/dist/common/constants/app.contants.js.map +1 -0
- package/dist/common/constants/index.d.ts +3 -0
- package/dist/common/constants/index.js +20 -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/constants/string.constant.d.ts +5 -0
- package/dist/common/constants/string.constant.js +41 -0
- package/dist/common/constants/string.constant.js.map +1 -0
- package/dist/common/database/base.entity.d.ts +31 -0
- package/dist/common/database/base.entity.js +165 -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 +12 -0
- package/dist/common/dtos/send-notification.dto.js +66 -0
- package/dist/common/dtos/send-notification.dto.js.map +1 -0
- package/dist/common/enums/common.enum.d.ts +18 -0
- package/dist/common/enums/common.enum.js +25 -0
- package/dist/common/enums/common.enum.js.map +1 -0
- package/dist/common/enums/drive.enum.d.ts +26 -0
- package/dist/common/enums/drive.enum.js +32 -0
- package/dist/common/enums/drive.enum.js.map +1 -0
- package/dist/common/enums/index.d.ts +5 -0
- package/dist/common/enums/index.js +22 -0
- package/dist/common/enums/index.js.map +1 -0
- package/dist/common/enums/notification.enum.d.ts +56 -0
- package/dist/common/enums/notification.enum.js +63 -0
- package/dist/common/enums/notification.enum.js.map +1 -0
- package/dist/common/enums/sales.enum.d.ts +120 -0
- package/dist/common/enums/sales.enum.js +144 -0
- package/dist/common/enums/sales.enum.js.map +1 -0
- package/dist/common/enums/tools.enum.d.ts +64 -0
- package/dist/common/enums/tools.enum.js +75 -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 +3 -0
- package/dist/common/functions/image.js +16 -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/audit.entity.d.ts +7 -0
- package/dist/entities/audit.entity.js +56 -0
- package/dist/entities/audit.entity.js.map +1 -0
- package/dist/entities/capacitation/capacitation.entity.d.ts +10 -0
- package/dist/entities/capacitation/capacitation.entity.js +68 -0
- package/dist/entities/capacitation/capacitation.entity.js.map +1 -0
- package/dist/entities/capacitation/course-assigned.entity.d.ts +12 -0
- package/dist/entities/capacitation/course-assigned.entity.js +44 -0
- package/dist/entities/capacitation/course-assigned.entity.js.map +1 -0
- package/dist/entities/capacitation/course-evaluation-attempt.entity.d.ts +22 -0
- package/dist/entities/capacitation/course-evaluation-attempt.entity.js +96 -0
- package/dist/entities/capacitation/course-evaluation-attempt.entity.js.map +1 -0
- package/dist/entities/capacitation/course-evaluation.entity.d.ts +42 -0
- package/dist/entities/capacitation/course-evaluation.entity.js +111 -0
- package/dist/entities/capacitation/course-evaluation.entity.js.map +1 -0
- package/dist/entities/capacitation/course-folder-page.entity.d.ts +14 -0
- package/dist/entities/capacitation/course-folder-page.entity.js +74 -0
- package/dist/entities/capacitation/course-folder-page.entity.js.map +1 -0
- package/dist/entities/capacitation/course-folder.entity.d.ts +10 -0
- package/dist/entities/capacitation/course-folder.entity.js +57 -0
- package/dist/entities/capacitation/course-folder.entity.js.map +1 -0
- package/dist/entities/capacitation/course-order.entity.d.ts +8 -0
- package/dist/entities/capacitation/course-order.entity.js +45 -0
- package/dist/entities/capacitation/course-order.entity.js.map +1 -0
- package/dist/entities/capacitation/course.entity.d.ts +21 -0
- package/dist/entities/capacitation/course.entity.js +119 -0
- package/dist/entities/capacitation/course.entity.js.map +1 -0
- package/dist/entities/capacitation/index.d.ts +8 -0
- package/dist/entities/capacitation/index.js +21 -0
- package/dist/entities/capacitation/index.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 +27 -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 +20 -0
- package/dist/entities/drive/file.entity.js +178 -0
- package/dist/entities/drive/file.entity.js.map +1 -0
- package/dist/entities/drive/folder.entity.d.ts +19 -0
- package/dist/entities/drive/folder.entity.js +173 -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 +13 -0
- package/dist/entities/group.entity.js +57 -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 +5 -0
- package/dist/entities/helpers/index.js +22 -0
- package/dist/entities/helpers/index.js.map +1 -0
- package/dist/entities/helpers/meeting_crm.entity.d.ts +23 -0
- package/dist/entities/helpers/meeting_crm.entity.js +166 -0
- package/dist/entities/helpers/meeting_crm.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.d.ts +20 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.js +160 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.js +43 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/h_agent_source.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/agent/h_agent_source.entity.js +34 -0
- package/dist/entities/helpers/sales/agent/h_agent_source.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/h_agent_types.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/agent/h_agent_types.entity.js +34 -0
- package/dist/entities/helpers/sales/agent/h_agent_types.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/index.d.ts +6 -0
- package/dist/entities/helpers/sales/agent/index.js +23 -0
- package/dist/entities/helpers/sales/agent/index.js.map +1 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.d.ts +18 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.js +150 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.js +43 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.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 +89 -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 +92 -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 +89 -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 +7 -0
- package/dist/entities/helpers/sales/index.js +24 -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_stage.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_stage.entity.js +43 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_stage.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 +12 -0
- package/dist/entities/helpers/sales/poliza/index.js +29 -0
- package/dist/entities/helpers/sales/poliza/index.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/poliza_cancel_reason.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/poliza/poliza_cancel_reason.entity.js +28 -0
- package/dist/entities/helpers/sales/poliza/poliza_cancel_reason.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/sales/poliza/poliza_settlement.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/poliza/poliza_settlement.entity.js +28 -0
- package/dist/entities/helpers/sales/poliza/poliza_settlement.entity.js.map +1 -0
- package/dist/entities/helpers/tools/event_crm.entity.d.ts +35 -0
- package/dist/entities/helpers/tools/event_crm.entity.js +251 -0
- package/dist/entities/helpers/tools/event_crm.entity.js.map +1 -0
- package/dist/entities/helpers/tools/index.d.ts +2 -0
- package/dist/entities/helpers/tools/index.js +19 -0
- package/dist/entities/helpers/tools/index.js.map +1 -0
- package/dist/entities/helpers/tools/task_crm.entity.d.ts +37 -0
- package/dist/entities/helpers/tools/task_crm.entity.js +258 -0
- package/dist/entities/helpers/tools/task_crm.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 +37 -0
- package/dist/entities/index.js +54 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/login-history.entity.d.ts +7 -0
- package/dist/entities/login-history.entity.js +53 -0
- package/dist/entities/login-history.entity.js.map +1 -0
- package/dist/entities/meeting-comment.entity.d.ts +8 -0
- package/dist/entities/meeting-comment.entity.js +46 -0
- package/dist/entities/meeting-comment.entity.js.map +1 -0
- package/dist/entities/meeting-list-field.d.ts +5 -0
- package/dist/entities/meeting-list-field.js +46 -0
- package/dist/entities/meeting-list-field.js.map +1 -0
- package/dist/entities/meeting.entity.d.ts +24 -0
- package/dist/entities/meeting.entity.js +187 -0
- package/dist/entities/meeting.entity.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/policy/index.d.ts +3 -0
- package/dist/entities/policy/index.js +20 -0
- package/dist/entities/policy/index.js.map +1 -0
- package/dist/entities/policy/policy-version.entity.d.ts +46 -0
- package/dist/entities/policy/policy-version.entity.js +427 -0
- package/dist/entities/policy/policy-version.entity.js.map +1 -0
- package/dist/entities/policy/policy.entity.d.ts +29 -0
- package/dist/entities/policy/policy.entity.js +296 -0
- package/dist/entities/policy/policy.entity.js.map +1 -0
- package/dist/entities/policy/version-comment.entity.d.ts +5 -0
- package/dist/entities/policy/version-comment.entity.js +35 -0
- package/dist/entities/policy/version-comment.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 +13 -0
- package/dist/entities/role.entity.js +108 -0
- package/dist/entities/role.entity.js.map +1 -0
- package/dist/entities/sales/agent-comment.entity.d.ts +5 -0
- package/dist/entities/sales/agent-comment.entity.js +35 -0
- package/dist/entities/sales/agent-comment.entity.js.map +1 -0
- package/dist/entities/sales/agent.entity.d.ts +34 -0
- package/dist/entities/sales/agent.entity.js +274 -0
- package/dist/entities/sales/agent.entity.js.map +1 -0
- package/dist/entities/sales/agente-intermediario.entity.d.ts +7 -0
- package/dist/entities/sales/agente-intermediario.entity.js +49 -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 +60 -0
- package/dist/entities/sales/contact.entity.js +527 -0
- package/dist/entities/sales/contact.entity.js.map +1 -0
- package/dist/entities/sales/import-session.entity.d.ts +29 -0
- package/dist/entities/sales/import-session.entity.js +155 -0
- package/dist/entities/sales/import-session.entity.js.map +1 -0
- package/dist/entities/sales/index.d.ts +16 -0
- package/dist/entities/sales/index.js +33 -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 +63 -0
- package/dist/entities/sales/lead.entity.js +610 -0
- package/dist/entities/sales/lead.entity.js.map +1 -0
- package/dist/entities/sales/policy-comment.entity.d.ts +5 -0
- package/dist/entities/sales/policy-comment.entity.js +35 -0
- package/dist/entities/sales/policy-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza/index.d.ts +8 -0
- package/dist/entities/sales/poliza/index.js +25 -0
- package/dist/entities/sales/poliza/index.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_claim-comment.entity.d.ts +5 -0
- package/dist/entities/sales/poliza/poliza_claim-comment.entity.js +35 -0
- package/dist/entities/sales/poliza/poliza_claim-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_claim.entity.d.ts +36 -0
- package/dist/entities/sales/poliza/poliza_claim.entity.js +298 -0
- package/dist/entities/sales/poliza/poliza_claim.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery-comment.entity.d.ts +5 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery-comment.entity.js +35 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.d.ts +33 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.js +272 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.d.ts +5 -0
- package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.js +35 -0
- package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.d.ts +36 -0
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.js +290 -0
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.d.ts +5 -0
- package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.js +35 -0
- package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_scheduling.entity.d.ts +39 -0
- package/dist/entities/sales/poliza/poliza_scheduling.entity.js +312 -0
- package/dist/entities/sales/poliza/poliza_scheduling.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 +110 -0
- package/dist/entities/sales/poliza.entity.js +1051 -0
- package/dist/entities/sales/poliza.entity.js.map +1 -0
- package/dist/entities/sales/poliza_pdf.entity.d.ts +96 -0
- package/dist/entities/sales/poliza_pdf.entity.js +946 -0
- package/dist/entities/sales/poliza_pdf.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.entity.d.ts +37 -0
- package/dist/entities/sales/receipt.entity.js +297 -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/diio-integration.entity.d.ts +16 -0
- package/dist/entities/thirdparty/diio-integration.entity.js +74 -0
- package/dist/entities/thirdparty/diio-integration.entity.js.map +1 -0
- package/dist/entities/thirdparty/google-gmail-watch-record.entity.d.ts +14 -0
- package/dist/entities/thirdparty/google-gmail-watch-record.entity.js +113 -0
- package/dist/entities/thirdparty/google-gmail-watch-record.entity.js.map +1 -0
- package/dist/entities/thirdparty/google-webhooks-config.entity.d.ts +19 -0
- package/dist/entities/thirdparty/google-webhooks-config.entity.js +82 -0
- package/dist/entities/thirdparty/google-webhooks-config.entity.js.map +1 -0
- package/dist/entities/thirdparty/oauth.entity.d.ts +24 -0
- package/dist/entities/thirdparty/oauth.entity.js +81 -0
- package/dist/entities/thirdparty/oauth.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-event-comment.entity.d.ts +8 -0
- package/dist/entities/tools/calendar/calendar-event-comment.entity.js +39 -0
- package/dist/entities/tools/calendar/calendar-event-comment.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-event-invitations.entity.d.ts +13 -0
- package/dist/entities/tools/calendar/calendar-event-invitations.entity.js +48 -0
- package/dist/entities/tools/calendar/calendar-event-invitations.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-general-config.entity.d.ts +20 -0
- package/dist/entities/tools/calendar/calendar-general-config.entity.js +118 -0
- package/dist/entities/tools/calendar/calendar-general-config.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-item.entity.d.ts +17 -0
- package/dist/entities/tools/calendar/calendar-item.entity.js +60 -0
- package/dist/entities/tools/calendar/calendar-item.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-reminder.entity.d.ts +7 -0
- package/dist/entities/tools/calendar/calendar-reminder.entity.js +38 -0
- package/dist/entities/tools/calendar/calendar-reminder.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-sub-item.entity.d.ts +32 -0
- package/dist/entities/tools/calendar/calendar-sub-item.entity.js +104 -0
- package/dist/entities/tools/calendar/calendar-sub-item.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-user-access.entity.d.ts +13 -0
- package/dist/entities/tools/calendar/calendar-user-access.entity.js +46 -0
- package/dist/entities/tools/calendar/calendar-user-access.entity.js.map +1 -0
- package/dist/entities/tools/calendar/event.entity.d.ts +33 -0
- package/dist/entities/tools/calendar/event.entity.js +230 -0
- package/dist/entities/tools/calendar/event.entity.js.map +1 -0
- package/dist/entities/tools/calendar/index.d.ts +8 -0
- package/dist/entities/tools/calendar/index.js +25 -0
- package/dist/entities/tools/calendar/index.js.map +1 -0
- package/dist/entities/tools/index.d.ts +7 -0
- package/dist/entities/tools/index.js +24 -0
- package/dist/entities/tools/index.js.map +1 -0
- package/dist/entities/tools/mail/email-signature.entity.d.ts +10 -0
- package/dist/entities/tools/mail/email-signature.entity.js +60 -0
- package/dist/entities/tools/mail/email-signature.entity.js.map +1 -0
- package/dist/entities/tools/mail/mail.entity.d.ts +50 -0
- package/dist/entities/tools/mail/mail.entity.js +120 -0
- package/dist/entities/tools/mail/mail.entity.js.map +1 -0
- package/dist/entities/tools/mail/mailbox-user-access.entity.d.ts +13 -0
- package/dist/entities/tools/mail/mailbox-user-access.entity.js +46 -0
- package/dist/entities/tools/mail/mailbox-user-access.entity.js.map +1 -0
- package/dist/entities/tools/mail/mailbox.entity.d.ts +57 -0
- package/dist/entities/tools/mail/mailbox.entity.js +104 -0
- package/dist/entities/tools/mail/mailbox.entity.js.map +1 -0
- package/dist/entities/tools/task-comment.entity.d.ts +8 -0
- package/dist/entities/tools/task-comment.entity.js +39 -0
- package/dist/entities/tools/task-comment.entity.js.map +1 -0
- package/dist/entities/tools/task-history.entity.d.ts +15 -0
- package/dist/entities/tools/task-history.entity.js +131 -0
- package/dist/entities/tools/task-history.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-objection.entity.d.ts +10 -0
- package/dist/entities/tools/task-objection.entity.js +80 -0
- package/dist/entities/tools/task-objection.entity.js.map +1 -0
- package/dist/entities/tools/task-time-track.entity.d.ts +16 -0
- package/dist/entities/tools/task-time-track.entity.js +139 -0
- package/dist/entities/tools/task-time-track.entity.js.map +1 -0
- package/dist/entities/tools/task.entity.d.ts +52 -0
- package/dist/entities/tools/task.entity.js +451 -0
- package/dist/entities/tools/task.entity.js.map +1 -0
- package/dist/entities/user-change-log.entity.d.ts +22 -0
- package/dist/entities/user-change-log.entity.js +77 -0
- package/dist/entities/user-change-log.entity.js.map +1 -0
- package/dist/entities/user-invitations.entity.d.ts +16 -0
- package/dist/entities/user-invitations.entity.js +143 -0
- package/dist/entities/user-invitations.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +37 -0
- package/dist/entities/user.entity.js +260 -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 +290 -0
- package/dist/grpc/drive/leads.proto +114 -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 +5 -0
- package/dist/modules/index.js +22 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/queue/event.service.d.ts +32 -0
- package/dist/modules/queue/event.service.js +45 -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 +10 -0
- package/dist/modules/queue/notifiers/calendar.notifier.js +60 -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 +52 -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 +52 -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 +159 -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 +68 -0
- package/dist/modules/queue/queue.module.js.map +1 -0
- package/dist/modules/queue/queue.service.d.ts +9 -0
- package/dist/modules/queue/queue.service.js +56 -0
- package/dist/modules/queue/queue.service.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/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,108 @@
|
|
|
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.Role = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const base_entity_1 = require("../common/database/base.entity");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
let Role = class Role extends base_entity_1.EntityBase {
|
|
18
|
+
name;
|
|
19
|
+
description;
|
|
20
|
+
displayName;
|
|
21
|
+
isDefault;
|
|
22
|
+
defaultMenuPermissions;
|
|
23
|
+
allowedMenuPermissions;
|
|
24
|
+
forbiddenMenuPermissions;
|
|
25
|
+
parentRole;
|
|
26
|
+
level;
|
|
27
|
+
getEffectivePermissions() {
|
|
28
|
+
let permissions = [...(this.defaultMenuPermissions || [])];
|
|
29
|
+
if (this.parentRole) {
|
|
30
|
+
const parentPermissions = this.parentRole.getEffectivePermissions();
|
|
31
|
+
permissions = [...new Set([...permissions, ...parentPermissions])];
|
|
32
|
+
}
|
|
33
|
+
permissions = [
|
|
34
|
+
...new Set([...permissions, ...(this.allowedMenuPermissions || [])]),
|
|
35
|
+
];
|
|
36
|
+
permissions = permissions.filter((perm) => !(this.forbiddenMenuPermissions || []).includes(perm));
|
|
37
|
+
return permissions;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.Role = Role;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Name of the role", minLength: 3 }),
|
|
43
|
+
(0, class_validator_1.MinLength)(3),
|
|
44
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Role.prototype, "name", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Description", nullable: true }),
|
|
49
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Role.prototype, "description", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Display Name of the role" }),
|
|
54
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Role.prototype, "displayName", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: "¿Is this the default role?" }),
|
|
59
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
60
|
+
__metadata("design:type", Boolean)
|
|
61
|
+
], Role.prototype, "isDefault", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({
|
|
64
|
+
type: [String],
|
|
65
|
+
description: "Default Menu Permissions inherited from parent",
|
|
66
|
+
}),
|
|
67
|
+
(0, typeorm_1.Column)({ type: "varchar", array: true, nullable: true }),
|
|
68
|
+
__metadata("design:type", Array)
|
|
69
|
+
], Role.prototype, "defaultMenuPermissions", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, swagger_1.ApiProperty)({
|
|
72
|
+
type: [String],
|
|
73
|
+
description: "Additional allowed permissions for this role",
|
|
74
|
+
}),
|
|
75
|
+
(0, typeorm_1.Column)({ type: "varchar", array: true, nullable: true }),
|
|
76
|
+
__metadata("design:type", Array)
|
|
77
|
+
], Role.prototype, "allowedMenuPermissions", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, swagger_1.ApiProperty)({
|
|
80
|
+
type: [String],
|
|
81
|
+
description: "Permissions explicitly forbidden for this role",
|
|
82
|
+
}),
|
|
83
|
+
(0, typeorm_1.Column)({ type: "varchar", array: true, nullable: true }),
|
|
84
|
+
__metadata("design:type", Array)
|
|
85
|
+
], Role.prototype, "forbiddenMenuPermissions", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiProperty)({
|
|
88
|
+
type: Role,
|
|
89
|
+
description: "Parent role this role inherits from",
|
|
90
|
+
nullable: true,
|
|
91
|
+
}),
|
|
92
|
+
(0, typeorm_1.ManyToOne)(() => Role, { nullable: true, onDelete: "SET NULL" }),
|
|
93
|
+
(0, typeorm_1.JoinColumn)(),
|
|
94
|
+
__metadata("design:type", Role)
|
|
95
|
+
], Role.prototype, "parentRole", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, swagger_1.ApiProperty)({
|
|
98
|
+
type: Number,
|
|
99
|
+
description: "Level of the role",
|
|
100
|
+
nullable: true,
|
|
101
|
+
}),
|
|
102
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
103
|
+
__metadata("design:type", Number)
|
|
104
|
+
], Role.prototype, "level", void 0);
|
|
105
|
+
exports.Role = Role = __decorate([
|
|
106
|
+
(0, typeorm_1.Entity)()
|
|
107
|
+
], Role);
|
|
108
|
+
//# sourceMappingURL=role.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,gEAA4D;AAC5D,qDAA4C;AAC5C,qCAAgE;AAGzD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAIlC,IAAI,CAAS;IAIb,WAAW,CAAS;IAIpB,WAAW,CAAU;IAIrB,SAAS,CAAU;IAOnB,sBAAsB,CAAW;IAOjC,sBAAsB,CAAW;IAOjC,wBAAwB,CAAW;IASnC,UAAU,CAAO;IASjB,KAAK,CAAS;IAGd,uBAAuB;QACrB,IAAI,WAAW,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,IAAI,EAAE,CAAC,CAAC,CAAC;QAG3D,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAC;YACpE,WAAW,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,WAAW,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;QACrE,CAAC;QAGD,WAAW,GAAG;YACZ,GAAG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AM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACxB;AAOjC;IALC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,WAAW,EAAE,8CAA8C;KAC5D,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACxB;AAOjC;IALC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,WAAW,EAAE,gDAAgD;KAC9D,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACtB;AASnC;IAPC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,IAAI;QACV,WAAW,EAAE,qCAAqC;QAClD,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IAC/D,IAAA,oBAAU,GAAE;8BACD,IAAI;wCAAC;AASjB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,mBAAmB;QAChC,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCACb;eAvDH,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA+EhB"}
|
|
@@ -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,34 @@
|
|
|
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
|
+
isPartner?: boolean;
|
|
22
|
+
address: string;
|
|
23
|
+
type?: AgentType;
|
|
24
|
+
source?: AgentSource;
|
|
25
|
+
trainingStartDate: Date;
|
|
26
|
+
comments: AgentComment[];
|
|
27
|
+
searchVector: string;
|
|
28
|
+
recruitments?: AgentRecruitment[];
|
|
29
|
+
connections?: AgentConnection[];
|
|
30
|
+
status: AgentStatus;
|
|
31
|
+
group: Group;
|
|
32
|
+
otherPhones: Record<string, string>[];
|
|
33
|
+
otherEmails: Record<string, string>[];
|
|
34
|
+
}
|
|
@@ -0,0 +1,274 @@
|
|
|
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
|
+
isPartner;
|
|
36
|
+
address;
|
|
37
|
+
type;
|
|
38
|
+
source;
|
|
39
|
+
trainingStartDate;
|
|
40
|
+
comments;
|
|
41
|
+
searchVector;
|
|
42
|
+
recruitments;
|
|
43
|
+
connections;
|
|
44
|
+
status;
|
|
45
|
+
group;
|
|
46
|
+
otherPhones;
|
|
47
|
+
otherEmails;
|
|
48
|
+
};
|
|
49
|
+
exports.Agent = Agent;
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Name of the agent" }),
|
|
52
|
+
(0, typeorm_1.Column)({ length: 255 }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], Agent.prototype, "name", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, swagger_1.ApiProperty)({
|
|
57
|
+
type: String,
|
|
58
|
+
description: "CUA of the agent",
|
|
59
|
+
required: false,
|
|
60
|
+
}),
|
|
61
|
+
(0, typeorm_1.Column)({ length: 50, unique: false, nullable: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], Agent.prototype, "cua", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiProperty)({
|
|
66
|
+
type: () => user_entity_1.User,
|
|
67
|
+
description: "The user associated with this agent",
|
|
68
|
+
}),
|
|
69
|
+
(0, typeorm_1.OneToOne)(() => user_entity_1.User, (user) => user.agentProfile, {
|
|
70
|
+
onDelete: "SET NULL",
|
|
71
|
+
onUpdate: "CASCADE",
|
|
72
|
+
}),
|
|
73
|
+
(0, typeorm_1.JoinColumn)(),
|
|
74
|
+
__metadata("design:type", user_entity_1.User)
|
|
75
|
+
], Agent.prototype, "user", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "Number of children" }),
|
|
78
|
+
(0, typeorm_1.Column)({ type: "int", default: 0 }),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], Agent.prototype, "children", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, swagger_1.ApiProperty)({
|
|
83
|
+
type: () => user_entity_1.User,
|
|
84
|
+
description: "Recruitment manager (User)",
|
|
85
|
+
}),
|
|
86
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, onDelete: "SET NULL" }),
|
|
87
|
+
(0, typeorm_1.JoinColumn)({ name: "recruitmentManagerId" }),
|
|
88
|
+
__metadata("design:type", user_entity_1.User)
|
|
89
|
+
], Agent.prototype, "recruitmentManager", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, swagger_1.ApiProperty)({
|
|
92
|
+
type: () => user_entity_1.User,
|
|
93
|
+
description: "Development manager (User)",
|
|
94
|
+
}),
|
|
95
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, onDelete: "SET NULL" }),
|
|
96
|
+
(0, typeorm_1.JoinColumn)({ name: "developmentManagerId" }),
|
|
97
|
+
__metadata("design:type", user_entity_1.User)
|
|
98
|
+
], Agent.prototype, "developmentManager", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, swagger_1.ApiProperty)({
|
|
101
|
+
type: () => user_entity_1.User,
|
|
102
|
+
description: "Observer (User)",
|
|
103
|
+
}),
|
|
104
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, onDelete: "SET NULL" }),
|
|
105
|
+
(0, typeorm_1.JoinColumn)({ name: "observerId" }),
|
|
106
|
+
__metadata("design:type", user_entity_1.User)
|
|
107
|
+
], Agent.prototype, "observer", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Comments related to the agent" }),
|
|
110
|
+
(0, typeorm_1.Column)({ length: 1000, nullable: true }),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], Agent.prototype, "observations", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, swagger_1.ApiProperty)({
|
|
115
|
+
type: () => user_entity_1.User,
|
|
116
|
+
description: "User who created the agent",
|
|
117
|
+
required: false,
|
|
118
|
+
}),
|
|
119
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
120
|
+
onDelete: "SET NULL",
|
|
121
|
+
onUpdate: "CASCADE",
|
|
122
|
+
nullable: true,
|
|
123
|
+
}),
|
|
124
|
+
(0, typeorm_1.JoinColumn)(),
|
|
125
|
+
__metadata("design:type", user_entity_1.User)
|
|
126
|
+
], Agent.prototype, "createdBy", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, swagger_1.ApiProperty)({
|
|
129
|
+
type: () => user_entity_1.User,
|
|
130
|
+
description: "User who modified the agent",
|
|
131
|
+
required: false,
|
|
132
|
+
}),
|
|
133
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
134
|
+
onDelete: "SET NULL",
|
|
135
|
+
onUpdate: "CASCADE",
|
|
136
|
+
nullable: true,
|
|
137
|
+
}),
|
|
138
|
+
(0, typeorm_1.JoinColumn)(),
|
|
139
|
+
__metadata("design:type", user_entity_1.User)
|
|
140
|
+
], Agent.prototype, "modifiedBy", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.Column)({ default: true }),
|
|
143
|
+
__metadata("design:type", Boolean)
|
|
144
|
+
], Agent.prototype, "isActive", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, swagger_1.ApiProperty)({
|
|
147
|
+
type: Boolean,
|
|
148
|
+
description: "Is partner",
|
|
149
|
+
required: false,
|
|
150
|
+
}),
|
|
151
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
152
|
+
__metadata("design:type", Boolean)
|
|
153
|
+
], Agent.prototype, "isPartner", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, swagger_1.ApiProperty)({
|
|
156
|
+
type: String,
|
|
157
|
+
description: "Address of the agent",
|
|
158
|
+
required: false,
|
|
159
|
+
}),
|
|
160
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
161
|
+
__metadata("design:type", String)
|
|
162
|
+
], Agent.prototype, "address", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, swagger_1.ApiProperty)({
|
|
165
|
+
type: () => helpers_1.AgentType,
|
|
166
|
+
description: "Agent type",
|
|
167
|
+
required: true,
|
|
168
|
+
}),
|
|
169
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.AgentType, {
|
|
170
|
+
onDelete: "SET NULL",
|
|
171
|
+
onUpdate: "CASCADE",
|
|
172
|
+
nullable: true,
|
|
173
|
+
eager: true,
|
|
174
|
+
}),
|
|
175
|
+
__metadata("design:type", helpers_1.AgentType)
|
|
176
|
+
], Agent.prototype, "type", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, swagger_1.ApiProperty)({
|
|
179
|
+
type: () => helpers_1.AgentSource,
|
|
180
|
+
description: "Agent source",
|
|
181
|
+
required: true,
|
|
182
|
+
}),
|
|
183
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.AgentSource, {
|
|
184
|
+
onDelete: "SET NULL",
|
|
185
|
+
onUpdate: "CASCADE",
|
|
186
|
+
nullable: true,
|
|
187
|
+
eager: true,
|
|
188
|
+
}),
|
|
189
|
+
__metadata("design:type", helpers_1.AgentSource)
|
|
190
|
+
], Agent.prototype, "source", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, swagger_1.ApiProperty)({
|
|
193
|
+
type: Date,
|
|
194
|
+
description: "Start date of training",
|
|
195
|
+
required: false,
|
|
196
|
+
}),
|
|
197
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
198
|
+
__metadata("design:type", Date)
|
|
199
|
+
], Agent.prototype, "trainingStartDate", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, swagger_1.ApiProperty)({
|
|
202
|
+
type: () => [agent_comment_entity_1.AgentComment],
|
|
203
|
+
description: "Comments on the contact",
|
|
204
|
+
}),
|
|
205
|
+
(0, typeorm_1.OneToMany)(() => agent_comment_entity_1.AgentComment, (contactComment) => contactComment.agent),
|
|
206
|
+
(0, typeorm_1.JoinColumn)(),
|
|
207
|
+
__metadata("design:type", Array)
|
|
208
|
+
], Agent.prototype, "comments", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, typeorm_1.Column)({ type: "tsvector", nullable: true }),
|
|
211
|
+
__metadata("design:type", String)
|
|
212
|
+
], Agent.prototype, "searchVector", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
(0, swagger_1.ApiProperty)({
|
|
215
|
+
type: () => [h_agent_recruitment_entity_1.AgentRecruitment],
|
|
216
|
+
description: "Recruitments Data associated with the agent",
|
|
217
|
+
}),
|
|
218
|
+
(0, typeorm_1.OneToMany)(() => h_agent_recruitment_entity_1.AgentRecruitment, (agentRecruitment) => agentRecruitment.agent, {
|
|
219
|
+
onDelete: "CASCADE",
|
|
220
|
+
onUpdate: "CASCADE",
|
|
221
|
+
}),
|
|
222
|
+
__metadata("design:type", Array)
|
|
223
|
+
], Agent.prototype, "recruitments", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
(0, swagger_1.ApiProperty)({
|
|
226
|
+
type: () => [h_agent_connection_entity_1.AgentConnection],
|
|
227
|
+
description: "Connections Data associated with the agent",
|
|
228
|
+
}),
|
|
229
|
+
(0, typeorm_1.OneToMany)(() => h_agent_connection_entity_1.AgentConnection, (agentConnection) => agentConnection.agent, {
|
|
230
|
+
onDelete: "CASCADE",
|
|
231
|
+
onUpdate: "CASCADE",
|
|
232
|
+
}),
|
|
233
|
+
__metadata("design:type", Array)
|
|
234
|
+
], Agent.prototype, "connections", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, swagger_1.ApiProperty)({
|
|
237
|
+
enum: common_1.AgentStatus,
|
|
238
|
+
description: "Agent Status",
|
|
239
|
+
required: false,
|
|
240
|
+
}),
|
|
241
|
+
(0, typeorm_1.Column)({
|
|
242
|
+
type: "enum",
|
|
243
|
+
enum: common_1.AgentStatus,
|
|
244
|
+
nullable: true,
|
|
245
|
+
}),
|
|
246
|
+
__metadata("design:type", String)
|
|
247
|
+
], Agent.prototype, "status", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
(0, swagger_1.ApiProperty)({
|
|
250
|
+
type: () => group_entity_1.Group,
|
|
251
|
+
description: "Group of the agent",
|
|
252
|
+
}),
|
|
253
|
+
(0, typeorm_1.ManyToOne)(() => group_entity_1.Group, { nullable: true, onDelete: "SET NULL" }),
|
|
254
|
+
(0, typeorm_1.JoinColumn)({ name: "groupId" }),
|
|
255
|
+
__metadata("design:type", group_entity_1.Group)
|
|
256
|
+
], Agent.prototype, "group", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
(0, swagger_1.ApiProperty)({
|
|
259
|
+
description: "Other phones of the agent",
|
|
260
|
+
}),
|
|
261
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
262
|
+
__metadata("design:type", Array)
|
|
263
|
+
], Agent.prototype, "otherPhones", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
(0, swagger_1.ApiProperty)({
|
|
266
|
+
description: "Other emails of the agent",
|
|
267
|
+
}),
|
|
268
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
269
|
+
__metadata("design:type", Array)
|
|
270
|
+
], Agent.prototype, "otherEmails", void 0);
|
|
271
|
+
exports.Agent = Agent = __decorate([
|
|
272
|
+
(0, typeorm_1.Entity)()
|
|
273
|
+
], Agent);
|
|
274
|
+
//# sourceMappingURL=agent.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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AAC,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;gBAhN3B,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CAiNjB"}
|
|
@@ -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,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
|
+
}
|