easywork-common-lib 1.0.463 → 1.0.464
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,36 @@
|
|
|
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.Phone = void 0;
|
|
13
|
+
const base_entity_1 = require("../common/database/base.entity");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
+
let Phone = class Phone extends base_entity_1.EntityBase {
|
|
18
|
+
number;
|
|
19
|
+
isDefault;
|
|
20
|
+
};
|
|
21
|
+
exports.Phone = Phone;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Phone number', minLength: 3 }),
|
|
24
|
+
(0, class_validator_1.MinLength)(3),
|
|
25
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], Phone.prototype, "number", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is this the default phone number', default: false }),
|
|
30
|
+
(0, typeorm_1.Column)({ name: "is_default", default: false }),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], Phone.prototype, "isDefault", void 0);
|
|
33
|
+
exports.Phone = Phone = __decorate([
|
|
34
|
+
(0, typeorm_1.Entity)()
|
|
35
|
+
], Phone);
|
|
36
|
+
//# sourceMappingURL=phone.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone.entity.js","sourceRoot":"","sources":["../../src/entities/phone.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA4D;AAC5D,qDAA4C;AAC5C,qCAAyC;AACzC,6CAA8C;AAGvC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,wBAAU;IAInC,MAAM,CAAS;IAIf,SAAS,CAAU;CACpB,CAAA;AATY,sBAAK;AAIhB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACxE,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;qCACV;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,kCAAkC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;wCAC5B;gBARR,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CASjB"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.Profile = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const user_entity_1 = require("./user.entity");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const base_entity_1 = require("../common/database/base.entity");
|
|
17
|
+
let Profile = class Profile extends base_entity_1.EntityBase {
|
|
18
|
+
firstName;
|
|
19
|
+
lastName;
|
|
20
|
+
idcard;
|
|
21
|
+
birthday;
|
|
22
|
+
user;
|
|
23
|
+
};
|
|
24
|
+
exports.Profile = Profile;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'First name of the user', required: false }),
|
|
27
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Profile.prototype, "firstName", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Last name of the user', required: false }),
|
|
32
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Profile.prototype, "lastName", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID card of the user', required: false }),
|
|
37
|
+
(0, typeorm_1.Column)({ unique: true, nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Profile.prototype, "idcard", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Birthday of the user', required: false }),
|
|
42
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
43
|
+
__metadata("design:type", Date)
|
|
44
|
+
], Profile.prototype, "birthday", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User associated with the profile' }),
|
|
47
|
+
(0, typeorm_1.OneToOne)(() => user_entity_1.User, user => user.profile, {
|
|
48
|
+
onDelete: "CASCADE",
|
|
49
|
+
onUpdate: "CASCADE",
|
|
50
|
+
}),
|
|
51
|
+
__metadata("design:type", user_entity_1.User)
|
|
52
|
+
], Profile.prototype, "user", void 0);
|
|
53
|
+
exports.Profile = Profile = __decorate([
|
|
54
|
+
(0, typeorm_1.Entity)("user_profile")
|
|
55
|
+
], Profile);
|
|
56
|
+
//# sourceMappingURL=profile.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.entity.js","sourceRoot":"","sources":["../../src/entities/profile.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAmD;AACnD,+CAAqC;AACrC,6CAA8C;AAC9C,gEAA4D;AAGrD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,wBAAU;IAGrC,SAAS,CAAS;IAIlB,QAAQ,CAAS;IAIjB,MAAM,CAAS;IAIf,QAAQ,CAAO;IAOf,IAAI,CAAO;CACZ,CAAA;AAvBY,0BAAO;AAGlB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,wBAAwB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACrF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACT;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,uBAAuB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACpF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACV;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAClF,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCAC1B;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACjF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,IAAI;yCAAC;AAOf;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IAClF,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE;QAC1C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACI,kBAAI;qCAAC;kBAtBA,OAAO;IADnB,IAAA,gBAAM,EAAC,cAAc,CAAC;GACV,OAAO,CAuBnB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EntityBase } from "../common/database/base.entity";
|
|
2
|
+
export declare class Protocol extends EntityBase {
|
|
3
|
+
loginAttemptInterval: number;
|
|
4
|
+
loginIntervalUnit: string;
|
|
5
|
+
loginMaxRetry: number;
|
|
6
|
+
otpExpiryInMinutes: number;
|
|
7
|
+
constructor(partial?: Partial<Protocol>);
|
|
8
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.Protocol = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("../common/database/base.entity");
|
|
15
|
+
let Protocol = class Protocol extends base_entity_1.EntityBase {
|
|
16
|
+
loginAttemptInterval;
|
|
17
|
+
loginIntervalUnit;
|
|
18
|
+
loginMaxRetry;
|
|
19
|
+
otpExpiryInMinutes;
|
|
20
|
+
constructor(partial) {
|
|
21
|
+
super();
|
|
22
|
+
Object.assign(this, partial);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.Protocol = Protocol;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], Protocol.prototype, "loginAttemptInterval", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Protocol.prototype, "loginIntervalUnit", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], Protocol.prototype, "loginMaxRetry", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], Protocol.prototype, "otpExpiryInMinutes", void 0);
|
|
42
|
+
exports.Protocol = Protocol = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)(),
|
|
44
|
+
__metadata("design:paramtypes", [Object])
|
|
45
|
+
], Protocol);
|
|
46
|
+
//# sourceMappingURL=protocol.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.entity.js","sourceRoot":"","sources":["../../src/entities/protocol.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,gEAA4D;AAKrD,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,wBAAU;IAEtC,oBAAoB,CAAU;IAG9B,iBAAiB,CAAU;IAG3B,aAAa,CAAU;IAGvB,kBAAkB,CAAU;IAE5B,YAAY,OAA2B;QACrC,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;CACF,CAAA;AAjBY,4BAAQ;AAEnB;IADC,IAAA,gBAAM,GAAE;;sDACqB;AAG9B;IADC,IAAA,gBAAM,GAAE;;mDACkB;AAG3B;IADC,IAAA,gBAAM,GAAE;;+CACc;AAGvB;IADC,IAAA,gBAAM,GAAE;;oDACmB;mBAXjB,QAAQ;IADpB,IAAA,gBAAM,GAAE;;GACI,QAAQ,CAiBpB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.RefreshToken = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("../common/database/base.entity");
|
|
15
|
+
const user_entity_1 = require("./user.entity");
|
|
16
|
+
let RefreshToken = class RefreshToken extends base_entity_1.EntityBase {
|
|
17
|
+
expiresIn;
|
|
18
|
+
user;
|
|
19
|
+
isRevoked;
|
|
20
|
+
constructor(partial) {
|
|
21
|
+
super();
|
|
22
|
+
Object.assign(this, partial);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.RefreshToken = RefreshToken;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)(),
|
|
28
|
+
__metadata("design:type", Date)
|
|
29
|
+
], RefreshToken.prototype, "expiresIn", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
32
|
+
eager: false,
|
|
33
|
+
onDelete: "CASCADE",
|
|
34
|
+
onUpdate: "CASCADE",
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", user_entity_1.User)
|
|
37
|
+
], RefreshToken.prototype, "user", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], RefreshToken.prototype, "isRevoked", void 0);
|
|
42
|
+
exports.RefreshToken = RefreshToken = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)(),
|
|
44
|
+
__metadata("design:paramtypes", [Object])
|
|
45
|
+
], RefreshToken);
|
|
46
|
+
//# sourceMappingURL=refresh-token.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh-token.entity.js","sourceRoot":"","sources":["../../src/entities/refresh-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,gEAA4D;AAC5D,+CAAqC;AAG9B,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,wBAAU;IAE1C,SAAS,CAAQ;IAOjB,IAAI,CAAQ;IAGZ,SAAS,CAAW;IAEpB,YAAY,OAA+B;QACzC,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;CACF,CAAA;AAlBY,oCAAY;AAEvB;IADC,IAAA,gBAAM,GAAE;8BACG,IAAI;+CAAC;AAOjB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACK,kBAAI;0CAAC;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACP;uBAZT,YAAY;IADxB,IAAA,gBAAM,GAAE;;GACI,YAAY,CAkBxB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
isDefault;
|
|
20
|
+
defaultMenuPermissions;
|
|
21
|
+
};
|
|
22
|
+
exports.Role = Role;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Name of the role', minLength: 3 }),
|
|
25
|
+
(0, class_validator_1.MinLength)(3),
|
|
26
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Role.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: '¿Is this the default role?' }),
|
|
31
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], Role.prototype, "isDefault", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)({ type: [String], description: 'Default Menu Permissions' }),
|
|
36
|
+
(0, typeorm_1.Column)({ type: "varchar", array: true, nullable: true }),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], Role.prototype, "defaultMenuPermissions", void 0);
|
|
39
|
+
exports.Role = Role = __decorate([
|
|
40
|
+
(0, typeorm_1.Entity)()
|
|
41
|
+
], Role);
|
|
42
|
+
//# 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,qCAAyC;AAGlC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAIlC,IAAI,CAAS;IAIb,SAAS,CAAU;IAInB,sBAAsB,CAAW;CAElC,CAAA;AAdY,oBAAI;AAIf;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAC5E,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kCACZ;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IACzE,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uCACR;AAInB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IACxE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACxB;eAZtB,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAchB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
let AgenteIntermediario = class AgenteIntermediario extends base_entity_1.BaseEntitySimple {
|
|
17
|
+
name;
|
|
18
|
+
cua;
|
|
19
|
+
};
|
|
20
|
+
exports.AgenteIntermediario = AgenteIntermediario;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'name of the intermediary agent' }),
|
|
23
|
+
(0, typeorm_1.Column)({ length: 255 }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], AgenteIntermediario.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'CUA of the intermediary agent', required: false }),
|
|
28
|
+
(0, typeorm_1.Column)({ length: 50, unique: true, nullable: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], AgenteIntermediario.prototype, "cua", void 0);
|
|
31
|
+
exports.AgenteIntermediario = AgenteIntermediario = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)()
|
|
33
|
+
], AgenteIntermediario);
|
|
34
|
+
//# 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,qCAAyC;AAGlC,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,8BAAgB;IAGvD,IAAI,CAAS;IAIb,GAAG,CAAS;CACb,CAAA;AARY,kDAAmB;AAG9B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,gCAAgC,EAAC,CAAC;IAC3E,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;iDACX;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,+BAA+B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC5F,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACzC;8BAPD,mBAAmB;IAD/B,IAAA,gBAAM,GAAE;GACI,mBAAmB,CAQ/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
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.InsuredPerson = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const user_entity_1 = require("../../user.entity");
|
|
17
|
+
const helpers_1 = require("../../helpers");
|
|
18
|
+
let InsuredPerson = class InsuredPerson extends base_entity_1.EntityBase {
|
|
19
|
+
codigo;
|
|
20
|
+
fullName;
|
|
21
|
+
company;
|
|
22
|
+
createdBy;
|
|
23
|
+
modifiedBy;
|
|
24
|
+
};
|
|
25
|
+
exports.InsuredPerson = InsuredPerson;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
|
+
type: String,
|
|
29
|
+
description: "Codigo de cliente",
|
|
30
|
+
}),
|
|
31
|
+
(0, typeorm_1.Column)({ name: "codigo", nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], InsuredPerson.prototype, "codigo", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)({
|
|
36
|
+
type: String,
|
|
37
|
+
description: "Full name of the Insured Person",
|
|
38
|
+
required: false,
|
|
39
|
+
}),
|
|
40
|
+
(0, typeorm_1.Column)({ length: 150, nullable: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], InsuredPerson.prototype, "fullName", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)({
|
|
45
|
+
type: () => helpers_1.PolizaInsurance,
|
|
46
|
+
description: "Insurance associated with the beneficiary",
|
|
47
|
+
required: false,
|
|
48
|
+
}),
|
|
49
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaInsurance, {
|
|
50
|
+
onDelete: "SET NULL",
|
|
51
|
+
onUpdate: "CASCADE",
|
|
52
|
+
nullable: true,
|
|
53
|
+
}),
|
|
54
|
+
(0, typeorm_1.JoinColumn)(),
|
|
55
|
+
__metadata("design:type", helpers_1.PolizaInsurance)
|
|
56
|
+
], InsuredPerson.prototype, "company", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)({
|
|
59
|
+
type: () => user_entity_1.User,
|
|
60
|
+
description: "User who created the beneficiary",
|
|
61
|
+
required: false,
|
|
62
|
+
}),
|
|
63
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
64
|
+
onDelete: "SET NULL",
|
|
65
|
+
onUpdate: "CASCADE",
|
|
66
|
+
nullable: true,
|
|
67
|
+
}),
|
|
68
|
+
(0, typeorm_1.JoinColumn)(),
|
|
69
|
+
__metadata("design:type", user_entity_1.User)
|
|
70
|
+
], InsuredPerson.prototype, "createdBy", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({
|
|
73
|
+
type: () => user_entity_1.User,
|
|
74
|
+
description: "User who modified the beneficiary",
|
|
75
|
+
required: false,
|
|
76
|
+
}),
|
|
77
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
78
|
+
onDelete: "SET NULL",
|
|
79
|
+
onUpdate: "CASCADE",
|
|
80
|
+
nullable: true,
|
|
81
|
+
}),
|
|
82
|
+
(0, typeorm_1.JoinColumn)(),
|
|
83
|
+
__metadata("design:type", user_entity_1.User)
|
|
84
|
+
], InsuredPerson.prototype, "modifiedBy", void 0);
|
|
85
|
+
exports.InsuredPerson = InsuredPerson = __decorate([
|
|
86
|
+
(0, typeorm_1.Index)(["codigo", "company"], { unique: true }),
|
|
87
|
+
(0, typeorm_1.Entity)()
|
|
88
|
+
], InsuredPerson);
|
|
89
|
+
//# sourceMappingURL=person.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person.entity.js","sourceRoot":"","sources":["../../../../src/entities/sales/beneficiarios/person.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,sEAAkE;AAClE,qCAAuE;AACvE,mDAAyC;AACzC,2CAAgD;AAKzC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,wBAAU;IAM3C,MAAM,CAAU;IAShB,QAAQ,CAAU;IAalB,OAAO,CAAmB;IAa1B,SAAS,CAAQ;IAajB,UAAU,CAAQ;CACnB,CAAA;AAvDY,sCAAa;AAMxB;IALC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,mBAAmB;KACjC,CAAC;IACD,IAAA,gBAAM,EAAC,EAA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E;8BACA,kBAAI;iDAAC;wBAtDP,aAAa;IAFzB,IAAA,eAAK,EAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC9C,IAAA,gBAAM,GAAE;GACI,aAAa,CAuDzB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EntityBase } from "../../../common/database/base.entity";
|
|
2
|
+
import { User } from "../../user.entity";
|
|
3
|
+
export declare class BeneficiaryVehicle extends EntityBase {
|
|
4
|
+
description: string;
|
|
5
|
+
serial?: string;
|
|
6
|
+
model?: string;
|
|
7
|
+
motor?: string;
|
|
8
|
+
plates?: string;
|
|
9
|
+
usage?: string;
|
|
10
|
+
circulatesIn?: string;
|
|
11
|
+
regularDriver?: string;
|
|
12
|
+
regularDriverAge?: number;
|
|
13
|
+
preferredBeneficiary?: string;
|
|
14
|
+
createdBy?: User;
|
|
15
|
+
modifiedBy?: User;
|
|
16
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BeneficiaryVehicle = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const user_entity_1 = require("../../user.entity");
|
|
17
|
+
let BeneficiaryVehicle = class BeneficiaryVehicle extends base_entity_1.EntityBase {
|
|
18
|
+
description;
|
|
19
|
+
serial;
|
|
20
|
+
model;
|
|
21
|
+
motor;
|
|
22
|
+
plates;
|
|
23
|
+
usage;
|
|
24
|
+
circulatesIn;
|
|
25
|
+
regularDriver;
|
|
26
|
+
regularDriverAge;
|
|
27
|
+
preferredBeneficiary;
|
|
28
|
+
createdBy;
|
|
29
|
+
modifiedBy;
|
|
30
|
+
};
|
|
31
|
+
exports.BeneficiaryVehicle = BeneficiaryVehicle;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Description of the vehicle', required: false, nullable: true }),
|
|
34
|
+
(0, typeorm_1.Column)({ type: "text" }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], BeneficiaryVehicle.prototype, "description", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Serial', required: false }),
|
|
39
|
+
(0, typeorm_1.Column)({ length: 55, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], BeneficiaryVehicle.prototype, "serial", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Modelo del vehículo', required: false }),
|
|
44
|
+
(0, typeorm_1.Column)({ length: 55, nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], BeneficiaryVehicle.prototype, "model", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Motor del vehículo', required: false }),
|
|
49
|
+
(0, typeorm_1.Column)({ length: 55, nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], BeneficiaryVehicle.prototype, "motor", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Placas del vehículo', required: false }),
|
|
54
|
+
(0, typeorm_1.Column)({ length: 20, nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], BeneficiaryVehicle.prototype, "plates", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Uso', required: false }),
|
|
59
|
+
(0, typeorm_1.Column)({ length: 50, nullable: true }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], BeneficiaryVehicle.prototype, "usage", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Circula En', required: false }),
|
|
64
|
+
(0, typeorm_1.Column)({ length: 150, nullable: true }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], BeneficiaryVehicle.prototype, "circulatesIn", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Conductor Habitual', required: false }),
|
|
69
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], BeneficiaryVehicle.prototype, "regularDriver", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: 'Edad del Conductor Habitual', required: false }),
|
|
74
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], BeneficiaryVehicle.prototype, "regularDriverAge", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Beneficiario Preferente', required: false }),
|
|
79
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], BeneficiaryVehicle.prototype, "preferredBeneficiary", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the comment', required: false }),
|
|
84
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
85
|
+
onDelete: "SET NULL",
|
|
86
|
+
onUpdate: "CASCADE",
|
|
87
|
+
nullable: true,
|
|
88
|
+
}),
|
|
89
|
+
(0, typeorm_1.JoinColumn)(),
|
|
90
|
+
__metadata("design:type", user_entity_1.User)
|
|
91
|
+
], BeneficiaryVehicle.prototype, "createdBy", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who modified the comment', required: false }),
|
|
94
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
95
|
+
onDelete: "SET NULL",
|
|
96
|
+
onUpdate: "CASCADE",
|
|
97
|
+
nullable: true,
|
|
98
|
+
}),
|
|
99
|
+
(0, typeorm_1.JoinColumn)(),
|
|
100
|
+
__metadata("design:type", user_entity_1.User)
|
|
101
|
+
], BeneficiaryVehicle.prototype, "modifiedBy", void 0);
|
|
102
|
+
exports.BeneficiaryVehicle = BeneficiaryVehicle = __decorate([
|
|
103
|
+
(0, typeorm_1.Entity)(),
|
|
104
|
+
(0, typeorm_1.Index)(["serial", "model", "plates"], { unique: true })
|
|
105
|
+
], BeneficiaryVehicle);
|
|
106
|
+
//# sourceMappingURL=vehicle.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vehicle.entity.js","sourceRoot":"","sources":["../../../../src/entities/sales/beneficiarios/vehicle.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,sEAAkE;AAClE,qCAAuE;AACvE,mDAAyC;AAIlC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,wBAAU;IAGhD,WAAW,CAAS;IAIpB,MAAM,CAAU;IAIhB,KAAK,CAAU;IAIf,KAAK,CAAU;IAIf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