easywork-common-lib 1.0.756 → 1.0.757
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +219 -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 +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/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 +42 -0
- package/dist/common/enums/notification.enum.js +49 -0
- package/dist/common/enums/notification.enum.js.map +1 -0
- package/dist/common/enums/sales.enum.d.ts +107 -0
- package/dist/common/enums/sales.enum.js +129 -0
- package/dist/common/enums/sales.enum.js.map +1 -0
- package/dist/common/enums/tools.enum.d.ts +54 -0
- package/dist/common/enums/tools.enum.js +65 -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/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 +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 +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 +15 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.js +120 -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 +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 +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 +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 +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 +11 -0
- package/dist/entities/helpers/sales/poliza/index.js +28 -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/tools/event_crm.entity.d.ts +23 -0
- package/dist/entities/helpers/tools/event_crm.entity.js +166 -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 +27 -0
- package/dist/entities/helpers/tools/task_crm.entity.js +196 -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 +31 -0
- package/dist/entities/index.js +48 -0
- package/dist/entities/index.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/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 +7 -0
- package/dist/entities/role.entity.js +48 -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 +32 -0
- package/dist/entities/sales/agent.entity.js +254 -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 +57 -0
- package/dist/entities/sales/contact.entity.js +497 -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 +60 -0
- package/dist/entities/sales/lead.entity.js +572 -0
- package/dist/entities/sales/lead.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 +34 -0
- package/dist/entities/sales/poliza/poliza_claim.entity.js +285 -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 +31 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.js +259 -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 +34 -0
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.js +277 -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 +34 -0
- package/dist/entities/sales/poliza/poliza_scheduling.entity.js +277 -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 +108 -0
- package/dist/entities/sales/poliza.entity.js +1032 -0
- package/dist/entities/sales/poliza.entity.js.map +1 -0
- package/dist/entities/sales/poliza_pdf.entity.d.ts +94 -0
- package/dist/entities/sales/poliza_pdf.entity.js +926 -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-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 +32 -0
- package/dist/entities/sales/receipt.entity.js +255 -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 +21 -0
- package/dist/entities/thirdparty/oauth.entity.js +100 -0
- package/dist/entities/thirdparty/oauth.entity.js.map +1 -0
- package/dist/entities/thirdparty/service.entity.d.ts +8 -0
- package/dist/entities/thirdparty/service.entity.js +38 -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-list-calendars.entity.d.ts +6 -0
- package/dist/entities/tools/calendar/event-list-calendars.entity.js +32 -0
- package/dist/entities/tools/calendar/event-list-calendars.entity.js.map +1 -0
- package/dist/entities/tools/calendar/event.entity.d.ts +25 -0
- package/dist/entities/tools/calendar/event.entity.js +213 -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 +7 -0
- package/dist/entities/tools/index.js +24 -0
- package/dist/entities/tools/index.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 +49 -0
- package/dist/entities/tools/task.entity.js +419 -0
- package/dist/entities/tools/task.entity.js.map +1 -0
- package/dist/entities/user-invitations.entity.d.ts +11 -0
- package/dist/entities/user-invitations.entity.js +102 -0
- package/dist/entities/user-invitations.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +39 -0
- package/dist/entities/user.entity.js +270 -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 +260 -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,79 @@
|
|
|
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.EmailThirdparty = void 0;
|
|
13
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const user_email_relation_entity_1 = require("./user-email-relation.entity");
|
|
16
|
+
const service_entity_1 = require("./service.entity");
|
|
17
|
+
const oauth_entity_1 = require("./oauth.entity");
|
|
18
|
+
let EmailThirdparty = class EmailThirdparty extends base_entity_1.EntityBase {
|
|
19
|
+
googleId;
|
|
20
|
+
subject;
|
|
21
|
+
from;
|
|
22
|
+
date;
|
|
23
|
+
to;
|
|
24
|
+
body;
|
|
25
|
+
folder;
|
|
26
|
+
attachment;
|
|
27
|
+
service;
|
|
28
|
+
userRelations;
|
|
29
|
+
oAuth;
|
|
30
|
+
};
|
|
31
|
+
exports.EmailThirdparty = EmailThirdparty;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], EmailThirdparty.prototype, "googleId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], EmailThirdparty.prototype, "subject", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], EmailThirdparty.prototype, "from", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)(),
|
|
46
|
+
__metadata("design:type", Date)
|
|
47
|
+
], EmailThirdparty.prototype, "date", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)("text", { array: true }),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], EmailThirdparty.prototype, "to", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], EmailThirdparty.prototype, "body", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)("text", { array: true }),
|
|
58
|
+
__metadata("design:type", Array)
|
|
59
|
+
], EmailThirdparty.prototype, "folder", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)("text", { array: true, nullable: true }),
|
|
62
|
+
__metadata("design:type", Array)
|
|
63
|
+
], EmailThirdparty.prototype, "attachment", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.ManyToOne)(() => service_entity_1.ServiceThirdparty, (service) => service.emails),
|
|
66
|
+
__metadata("design:type", service_entity_1.ServiceThirdparty)
|
|
67
|
+
], EmailThirdparty.prototype, "service", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.OneToMany)(() => user_email_relation_entity_1.UserEmailRelation, (relation) => relation.email),
|
|
70
|
+
__metadata("design:type", Array)
|
|
71
|
+
], EmailThirdparty.prototype, "userRelations", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.ManyToOne)(() => oauth_entity_1.Oauth, (oauth) => oauth.id),
|
|
74
|
+
__metadata("design:type", oauth_entity_1.Oauth)
|
|
75
|
+
], EmailThirdparty.prototype, "oAuth", void 0);
|
|
76
|
+
exports.EmailThirdparty = EmailThirdparty = __decorate([
|
|
77
|
+
(0, typeorm_1.Entity)()
|
|
78
|
+
], EmailThirdparty);
|
|
79
|
+
//# sourceMappingURL=email.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/email.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAA+D;AAC/D,6EAAiE;AACjE,qDAAqD;AACrD,iDAAuC;AAGhC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,wBAAU;IAE7C,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,IAAI,CAAS;IAGb,IAAI,CAAO;IAGX,EAAE,CAAW;IAGb,IAAI,CAAS;IAGb,MAAM,CAAW;IAGjB,UAAU,CAAW;IAGrB,OAAO,CAAoB;IAG3B,aAAa,CAAsB;IAGnC,KAAK,CAAQ;CACd,CAAA;AAjCY,0CAAe;AAE1B;IADC,IAAA,gBAAM,GAAE;;iDACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;gDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;6CACI;AAGb;IADC,IAAA,gBAAM,GAAE;8BACH,IAAI;6CAAC;AAGX;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;2CACnB;AAGb;IADC,IAAA,gBAAM,GAAE;;6CACI;AAGb;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;+CACf;AAGjB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAC3B;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAiB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;8BACvD,kCAAiB;gDAAC;AAG3B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAiB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;;sDAC9B;AAGnC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;8BACrC,oBAAK;8CAAC;0BAhCF,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CAiC3B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
import { EmailThirdparty } from "./email.entity";
|
|
3
|
+
import { ServiceThirdparty } from "./service.entity";
|
|
4
|
+
import { EventListCalendars } from "../tools/calendar/event-list-calendars.entity";
|
|
5
|
+
export declare class Oauth extends EntityBase {
|
|
6
|
+
refresh_token: string;
|
|
7
|
+
access_token: string;
|
|
8
|
+
expires_in: number;
|
|
9
|
+
userId: string;
|
|
10
|
+
usergoogle_id: string;
|
|
11
|
+
family_name: string;
|
|
12
|
+
given_name: string;
|
|
13
|
+
email: string;
|
|
14
|
+
picture: string;
|
|
15
|
+
id_token: string;
|
|
16
|
+
labelId: object[];
|
|
17
|
+
labelIdRules: object;
|
|
18
|
+
emails: EmailThirdparty[];
|
|
19
|
+
service: ServiceThirdparty;
|
|
20
|
+
calendarsList: EventListCalendars;
|
|
21
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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.Oauth = void 0;
|
|
13
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const email_entity_1 = require("./email.entity");
|
|
16
|
+
const service_entity_1 = require("./service.entity");
|
|
17
|
+
const event_list_calendars_entity_1 = require("../tools/calendar/event-list-calendars.entity");
|
|
18
|
+
let Oauth = class Oauth extends base_entity_1.EntityBase {
|
|
19
|
+
refresh_token;
|
|
20
|
+
access_token;
|
|
21
|
+
expires_in;
|
|
22
|
+
userId;
|
|
23
|
+
usergoogle_id;
|
|
24
|
+
family_name;
|
|
25
|
+
given_name;
|
|
26
|
+
email;
|
|
27
|
+
picture;
|
|
28
|
+
id_token;
|
|
29
|
+
labelId;
|
|
30
|
+
labelIdRules;
|
|
31
|
+
emails;
|
|
32
|
+
service;
|
|
33
|
+
calendarsList;
|
|
34
|
+
};
|
|
35
|
+
exports.Oauth = Oauth;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Oauth.prototype, "refresh_token", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Oauth.prototype, "access_token", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)("int"),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], Oauth.prototype, "expires_in", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Oauth.prototype, "userId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], Oauth.prototype, "usergoogle_id", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], Oauth.prototype, "family_name", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], Oauth.prototype, "given_name", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], Oauth.prototype, "email", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], Oauth.prototype, "picture", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], Oauth.prototype, "id_token", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)("text", { array: true, nullable: true }),
|
|
78
|
+
__metadata("design:type", Array)
|
|
79
|
+
], Oauth.prototype, "labelId", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], Oauth.prototype, "labelIdRules", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.OneToMany)(() => email_entity_1.EmailThirdparty, email => email.id),
|
|
86
|
+
__metadata("design:type", Array)
|
|
87
|
+
], Oauth.prototype, "emails", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.ManyToOne)(() => service_entity_1.ServiceThirdparty, (service) => service.id),
|
|
90
|
+
__metadata("design:type", service_entity_1.ServiceThirdparty)
|
|
91
|
+
], Oauth.prototype, "service", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.OneToOne)(() => event_list_calendars_entity_1.EventListCalendars, (list) => list.oAuth),
|
|
94
|
+
(0, typeorm_1.JoinColumn)(),
|
|
95
|
+
__metadata("design:type", event_list_calendars_entity_1.EventListCalendars)
|
|
96
|
+
], Oauth.prototype, "calendarsList", void 0);
|
|
97
|
+
exports.Oauth = Oauth = __decorate([
|
|
98
|
+
(0, typeorm_1.Entity)()
|
|
99
|
+
], Oauth);
|
|
100
|
+
//# sourceMappingURL=oauth.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/oauth.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAqF;AACrF,iDAAgD;AAChD,qDAAqD;AACrD,+FAAkF;AAG3E,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,wBAAU;IAEnC,aAAa,CAAS;IAGtB,YAAY,CAAS;IAGrB,UAAU,CAAS;IAGnB,MAAM,CAAS;IAGf,aAAa,CAAS;IAGtB,WAAW,CAAS;IAGpB,UAAU,CAAS;IAGnB,KAAK,CAAS;IAGd,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAGjB,OAAO,CAAW;IAGlB,YAAY,CAAS;IAGrB,MAAM,CAAoB;IAG1B,OAAO,CAAoB;IAI3B,aAAa,CAAqB;CACnC,CAAA;AA9CY,sBAAK;AAEhB;IADC,IAAA,gBAAM,GAAE;;4CACa;AAG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AK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CA8CjB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
import { EmailThirdparty } from "./email.entity";
|
|
3
|
+
import { Oauth } from "./oauth.entity";
|
|
4
|
+
export declare class ServiceThirdparty extends EntityBase {
|
|
5
|
+
name: string;
|
|
6
|
+
emails: EmailThirdparty[];
|
|
7
|
+
oauth: Oauth[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.ServiceThirdparty = void 0;
|
|
13
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const email_entity_1 = require("./email.entity");
|
|
16
|
+
const oauth_entity_1 = require("./oauth.entity");
|
|
17
|
+
let ServiceThirdparty = class ServiceThirdparty extends base_entity_1.EntityBase {
|
|
18
|
+
name;
|
|
19
|
+
emails;
|
|
20
|
+
oauth;
|
|
21
|
+
};
|
|
22
|
+
exports.ServiceThirdparty = ServiceThirdparty;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ServiceThirdparty.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.OneToMany)(() => email_entity_1.EmailThirdparty, email => email.service),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], ServiceThirdparty.prototype, "emails", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.OneToMany)(() => oauth_entity_1.Oauth, oauth => oauth.service),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], ServiceThirdparty.prototype, "oauth", void 0);
|
|
35
|
+
exports.ServiceThirdparty = ServiceThirdparty = __decorate([
|
|
36
|
+
(0, typeorm_1.Entity)()
|
|
37
|
+
], ServiceThirdparty);
|
|
38
|
+
//# sourceMappingURL=service.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/service.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAoD;AACpD,iDAAgD;AAChD,iDAAsC;AAG/B,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,wBAAU;IAE/C,IAAI,CAAS;IAGb,MAAM,CAAoB;IAG1B,KAAK,CAAU;CAChB,CAAA;AATY,8CAAiB;AAE5B;IADC,IAAA,gBAAM,GAAE;;+CACI;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;;iDAC/B;AAG1B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;;gDAChC;4BARJ,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAS7B"}
|
|
@@ -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.UserEmailRelation = void 0;
|
|
13
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const user_entity_1 = require("../user.entity");
|
|
16
|
+
const email_entity_1 = require("./email.entity");
|
|
17
|
+
let UserEmailRelation = class UserEmailRelation extends base_entity_1.EntityBase {
|
|
18
|
+
user;
|
|
19
|
+
email;
|
|
20
|
+
};
|
|
21
|
+
exports.UserEmailRelation = UserEmailRelation;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.emailRelations, { onDelete: "CASCADE", onUpdate: "CASCADE" }),
|
|
24
|
+
(0, typeorm_1.JoinColumn)(),
|
|
25
|
+
__metadata("design:type", user_entity_1.User)
|
|
26
|
+
], UserEmailRelation.prototype, "user", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => email_entity_1.EmailThirdparty, (email) => email.userRelations, { onDelete: "CASCADE", onUpdate: "CASCADE" }),
|
|
29
|
+
(0, typeorm_1.JoinColumn)(),
|
|
30
|
+
__metadata("design:type", email_entity_1.EmailThirdparty)
|
|
31
|
+
], UserEmailRelation.prototype, "email", void 0);
|
|
32
|
+
exports.UserEmailRelation = UserEmailRelation = __decorate([
|
|
33
|
+
(0, typeorm_1.Entity)()
|
|
34
|
+
], UserEmailRelation);
|
|
35
|
+
//# sourceMappingURL=user-email-relation.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-email-relation.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/user-email-relation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAwD;AACxD,gDAAsC;AACtC,iDAAiD;AAG1C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,wBAAU;IAG/C,IAAI,CAAO;IAIX,KAAK,CAAkB;CACxB,CAAA;AARY,8CAAiB;AAG5B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAClG,IAAA,oBAAU,GAAE;8BACP,kBAAI;+CAAC;AAIX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9G,IAAA,oBAAU,GAAE;8BACN,8BAAe;gDAAC;4BAPZ,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAQ7B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EventListCalendars = void 0;
|
|
13
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
14
|
+
const oauth_entity_1 = require("../../thirdparty/oauth.entity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
let EventListCalendars = class EventListCalendars extends base_entity_1.EntityBase {
|
|
17
|
+
calendars;
|
|
18
|
+
oAuth;
|
|
19
|
+
};
|
|
20
|
+
exports.EventListCalendars = EventListCalendars;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: "jsonb" }),
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], EventListCalendars.prototype, "calendars", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.OneToOne)(() => oauth_entity_1.Oauth, (oauth) => oauth.calendarsList),
|
|
27
|
+
__metadata("design:type", oauth_entity_1.Oauth)
|
|
28
|
+
], EventListCalendars.prototype, "oAuth", void 0);
|
|
29
|
+
exports.EventListCalendars = EventListCalendars = __decorate([
|
|
30
|
+
(0, typeorm_1.Entity)()
|
|
31
|
+
], EventListCalendars);
|
|
32
|
+
//# sourceMappingURL=event-list-calendars.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-list-calendars.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/event-list-calendars.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAkE;AAClE,gEAAsD;AACtD,qCAAmD;AAG5C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,wBAAU;IAEhD,SAAS,CAAW;IAGpB,KAAK,CAAQ;CACd,CAAA;AANY,gDAAkB;AAE7B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;qDACN;AAGpB;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC;8BAC/C,oBAAK;iDAAC;6BALF,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAM9B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EntityBase } from "../../../common/database/base.entity";
|
|
2
|
+
import { EventRepeatMode } from "../../../common";
|
|
3
|
+
import { User } from "../../user.entity";
|
|
4
|
+
import { EventCRM } from "../../helpers/tools";
|
|
5
|
+
export declare class EventCalendar extends EntityBase {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
startTime: Date;
|
|
9
|
+
endTime: Date;
|
|
10
|
+
repeat: EventRepeatMode;
|
|
11
|
+
participants?: User[];
|
|
12
|
+
reminder: Date;
|
|
13
|
+
color: string;
|
|
14
|
+
availability: string;
|
|
15
|
+
private: boolean;
|
|
16
|
+
important: boolean;
|
|
17
|
+
allDay: boolean;
|
|
18
|
+
googleId: string;
|
|
19
|
+
calendarId: string;
|
|
20
|
+
createdBy?: User;
|
|
21
|
+
modifiedBy?: User;
|
|
22
|
+
crm?: EventCRM[];
|
|
23
|
+
timeZone: string;
|
|
24
|
+
localization: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
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.EventCalendar = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
17
|
+
const common_1 = require("../../../common");
|
|
18
|
+
const user_entity_1 = require("../../user.entity");
|
|
19
|
+
const tools_1 = require("../../helpers/tools");
|
|
20
|
+
let EventCalendar = class EventCalendar extends base_entity_1.EntityBase {
|
|
21
|
+
name;
|
|
22
|
+
description;
|
|
23
|
+
startTime;
|
|
24
|
+
endTime;
|
|
25
|
+
repeat;
|
|
26
|
+
participants;
|
|
27
|
+
reminder;
|
|
28
|
+
color;
|
|
29
|
+
availability;
|
|
30
|
+
private;
|
|
31
|
+
important;
|
|
32
|
+
allDay;
|
|
33
|
+
googleId;
|
|
34
|
+
calendarId;
|
|
35
|
+
createdBy;
|
|
36
|
+
modifiedBy;
|
|
37
|
+
crm;
|
|
38
|
+
timeZone;
|
|
39
|
+
localization;
|
|
40
|
+
};
|
|
41
|
+
exports.EventCalendar = EventCalendar;
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Name of the event", minLength: 3 }),
|
|
44
|
+
(0, class_validator_1.MinLength)(3),
|
|
45
|
+
(0, typeorm_1.Column)({ unique: false, nullable: false }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], EventCalendar.prototype, "name", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Description of the event" }),
|
|
50
|
+
(0, typeorm_1.Column)({ type: "text" }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], EventCalendar.prototype, "description", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, swagger_1.ApiProperty)({
|
|
55
|
+
type: Date,
|
|
56
|
+
description: "Start time of the event",
|
|
57
|
+
required: false,
|
|
58
|
+
}),
|
|
59
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
60
|
+
__metadata("design:type", Date)
|
|
61
|
+
], EventCalendar.prototype, "startTime", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({
|
|
64
|
+
type: Date,
|
|
65
|
+
description: "End time of the event",
|
|
66
|
+
required: false,
|
|
67
|
+
}),
|
|
68
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
69
|
+
__metadata("design:type", Date)
|
|
70
|
+
], EventCalendar.prototype, "endTime", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({
|
|
73
|
+
enum: common_1.EventRepeatMode,
|
|
74
|
+
description: "Retición",
|
|
75
|
+
default: common_1.EventRepeatMode.NONE,
|
|
76
|
+
}),
|
|
77
|
+
(0, typeorm_1.Column)({
|
|
78
|
+
type: "enum",
|
|
79
|
+
enum: common_1.EventRepeatMode,
|
|
80
|
+
default: common_1.EventRepeatMode.NONE,
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], EventCalendar.prototype, "repeat", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, swagger_1.ApiProperty)({
|
|
86
|
+
type: () => [user_entity_1.User],
|
|
87
|
+
description: "Participants in the event",
|
|
88
|
+
required: false,
|
|
89
|
+
}),
|
|
90
|
+
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
91
|
+
onDelete: "CASCADE",
|
|
92
|
+
onUpdate: "CASCADE",
|
|
93
|
+
}),
|
|
94
|
+
(0, typeorm_1.JoinTable)(),
|
|
95
|
+
__metadata("design:type", Array)
|
|
96
|
+
], EventCalendar.prototype, "participants", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: "Reminder time", required: false }),
|
|
99
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
100
|
+
__metadata("design:type", Date)
|
|
101
|
+
], EventCalendar.prototype, "reminder", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Color of the event" }),
|
|
104
|
+
(0, typeorm_1.Column)({ type: String }),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], EventCalendar.prototype, "color", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, swagger_1.ApiProperty)({
|
|
109
|
+
type: String,
|
|
110
|
+
description: "User availability during the event",
|
|
111
|
+
}),
|
|
112
|
+
(0, typeorm_1.Column)({ type: String }),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], EventCalendar.prototype, "availability", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: "¿Private?", default: false }),
|
|
117
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
118
|
+
__metadata("design:type", Boolean)
|
|
119
|
+
], EventCalendar.prototype, "private", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: "Important?", default: false }),
|
|
122
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
123
|
+
__metadata("design:type", Boolean)
|
|
124
|
+
], EventCalendar.prototype, "important", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, swagger_1.ApiProperty)({
|
|
127
|
+
type: Boolean,
|
|
128
|
+
description: "Event during all Day?",
|
|
129
|
+
default: false,
|
|
130
|
+
}),
|
|
131
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
132
|
+
__metadata("design:type", Boolean)
|
|
133
|
+
], EventCalendar.prototype, "allDay", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, swagger_1.ApiProperty)({
|
|
136
|
+
type: String,
|
|
137
|
+
description: "Google event id",
|
|
138
|
+
required: false,
|
|
139
|
+
}),
|
|
140
|
+
(0, typeorm_1.Column)({ type: String, nullable: true }),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], EventCalendar.prototype, "googleId", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, swagger_1.ApiProperty)({
|
|
145
|
+
type: String,
|
|
146
|
+
description: "Calendar Id",
|
|
147
|
+
required: false,
|
|
148
|
+
}),
|
|
149
|
+
(0, typeorm_1.Column)({ type: String, nullable: true }),
|
|
150
|
+
__metadata("design:type", String)
|
|
151
|
+
], EventCalendar.prototype, "calendarId", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, swagger_1.ApiProperty)({
|
|
154
|
+
type: () => user_entity_1.User,
|
|
155
|
+
description: "User who created the event",
|
|
156
|
+
required: false,
|
|
157
|
+
}),
|
|
158
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
159
|
+
onDelete: "SET NULL",
|
|
160
|
+
onUpdate: "CASCADE",
|
|
161
|
+
nullable: true,
|
|
162
|
+
}),
|
|
163
|
+
(0, typeorm_1.JoinColumn)(),
|
|
164
|
+
__metadata("design:type", user_entity_1.User)
|
|
165
|
+
], EventCalendar.prototype, "createdBy", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, swagger_1.ApiProperty)({
|
|
168
|
+
type: () => user_entity_1.User,
|
|
169
|
+
description: "User who modified the event",
|
|
170
|
+
required: false,
|
|
171
|
+
}),
|
|
172
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
173
|
+
onDelete: "SET NULL",
|
|
174
|
+
onUpdate: "CASCADE",
|
|
175
|
+
nullable: true,
|
|
176
|
+
}),
|
|
177
|
+
(0, typeorm_1.JoinColumn)(),
|
|
178
|
+
__metadata("design:type", user_entity_1.User)
|
|
179
|
+
], EventCalendar.prototype, "modifiedBy", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, swagger_1.ApiProperty)({
|
|
182
|
+
type: () => [tools_1.EventCRM],
|
|
183
|
+
description: "CRM entries associated with the event",
|
|
184
|
+
required: false,
|
|
185
|
+
}),
|
|
186
|
+
(0, typeorm_1.OneToMany)(() => tools_1.EventCRM, (eventCRM) => eventCRM.event, {
|
|
187
|
+
onDelete: "CASCADE",
|
|
188
|
+
onUpdate: "CASCADE",
|
|
189
|
+
}),
|
|
190
|
+
__metadata("design:type", Array)
|
|
191
|
+
], EventCalendar.prototype, "crm", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, swagger_1.ApiProperty)({
|
|
194
|
+
type: String,
|
|
195
|
+
description: "Event time zone",
|
|
196
|
+
required: false,
|
|
197
|
+
}),
|
|
198
|
+
(0, typeorm_1.Column)({ type: String, nullable: true }),
|
|
199
|
+
__metadata("design:type", String)
|
|
200
|
+
], EventCalendar.prototype, "timeZone", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, swagger_1.ApiProperty)({
|
|
203
|
+
type: String,
|
|
204
|
+
description: "Event localization",
|
|
205
|
+
required: false,
|
|
206
|
+
}),
|
|
207
|
+
(0, typeorm_1.Column)({ type: String, nullable: true }),
|
|
208
|
+
__metadata("design:type", String)
|
|
209
|
+
], EventCalendar.prototype, "localization", void 0);
|
|
210
|
+
exports.EventCalendar = EventCalendar = __decorate([
|
|
211
|
+
(0, typeorm_1.Entity)()
|
|
212
|
+
], EventCalendar);
|
|
213
|
+
//# sourceMappingURL=event.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/event.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4C;AAC5C,qCAQiB;AACjB,6CAA8C;AAC9C,sEAAkE;AAClE,4CAAkD;AAClD,mDAAyC;AACzC,+CAA+C;AAGxC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,wBAAU;IAI3C,IAAI,CAAS;IAIb,WAAW,CAAS;IAQpB,SAAS,CAAO;IAQhB,OAAO,CAAO;IAYd,MAAM,CAAkB;IAYxB,YAAY,CAAU;IAItB,QAAQ,CAAO;IAIf,KAAK,CAAS;IAOd,YAAY,CAAS;IAIrB,OAAO,CAAU;IAIjB,SAAS,CAAU;IAQnB,MAAM,CAAU;IAQhB,QAAQ,CAAS;IAQjB,UAAU,CAAS;IAanB,SAAS,CAAQ;IAajB,UAAU,CAAQ;IAWlB,GAAG,CAAc;IAQjB,QAAQ,CAAS;IAQjB,YAAY,CAAS;CACtB,CAAA;AArJY,sCAAa;AAIxB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAC7E,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2CAC9B;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IACtE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACL;AAQpB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,IAAI;QACV,WAAW,EAAE,yBAAyB;QACtC,QAAQ,EAAE,KAA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,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACpB;wBApJV,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CAqJzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './event.entity';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./event.entity"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|