easywork-common-lib 1.0.950 → 1.0.952
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/@types/enums/crm.enum.d.ts +8 -0
- package/dist/common/@types/enums/crm.enum.js +14 -0
- package/dist/common/@types/enums/crm.enum.js.map +1 -0
- package/dist/common/@types/enums/index.d.ts +3 -0
- package/dist/common/@types/enums/index.js +20 -0
- package/dist/common/@types/enums/index.js.map +1 -0
- package/dist/common/@types/enums/misc.enum.d.ts +60 -0
- package/dist/common/@types/enums/misc.enum.js +81 -0
- package/dist/common/@types/enums/misc.enum.js.map +1 -0
- package/dist/common/@types/enums/permission.enum.d.ts +13 -0
- package/dist/common/@types/enums/permission.enum.js +19 -0
- package/dist/common/@types/enums/permission.enum.js.map +1 -0
- package/dist/common/@types/index.d.ts +2 -0
- package/dist/common/@types/index.js +19 -0
- package/dist/common/@types/index.js.map +1 -0
- package/dist/common/@types/interfaces/authentication.interface.d.ts +17 -0
- package/dist/common/@types/interfaces/authentication.interface.js +3 -0
- package/dist/common/@types/interfaces/authentication.interface.js.map +1 -0
- package/dist/common/@types/interfaces/crm.interface.d.ts +131 -0
- package/dist/common/@types/interfaces/crm.interface.js +3 -0
- package/dist/common/@types/interfaces/crm.interface.js.map +1 -0
- package/dist/common/@types/interfaces/file.interface.d.ts +14 -0
- package/dist/common/@types/interfaces/file.interface.js +3 -0
- package/dist/common/@types/interfaces/file.interface.js.map +1 -0
- package/dist/common/@types/interfaces/index.d.ts +6 -0
- package/dist/common/@types/interfaces/index.js +23 -0
- package/dist/common/@types/interfaces/index.js.map +1 -0
- package/dist/common/@types/interfaces/lsm.interface.d.ts +5 -0
- package/dist/common/@types/interfaces/lsm.interface.js +3 -0
- package/dist/common/@types/interfaces/lsm.interface.js.map +1 -0
- package/dist/common/@types/interfaces/mail.interface.d.ts +9 -0
- package/dist/common/@types/interfaces/mail.interface.js +3 -0
- package/dist/common/@types/interfaces/mail.interface.js.map +1 -0
- package/dist/common/@types/interfaces/validator.interface.d.ts +41 -0
- package/dist/common/@types/interfaces/validator.interface.js +3 -0
- package/dist/common/@types/interfaces/validator.interface.js.map +1 -0
- package/dist/common/constants/app.contants.d.ts +48 -0
- package/dist/common/constants/app.contants.js +225 -0
- package/dist/common/constants/app.contants.js.map +1 -0
- package/dist/common/constants/index.d.ts +3 -0
- package/dist/common/constants/index.js +20 -0
- package/dist/common/constants/index.js.map +1 -0
- package/dist/common/constants/regex.constant.d.ts +6 -0
- package/dist/common/constants/regex.constant.js +10 -0
- package/dist/common/constants/regex.constant.js.map +1 -0
- package/dist/common/constants/string.constant.d.ts +5 -0
- package/dist/common/constants/string.constant.js +41 -0
- package/dist/common/constants/string.constant.js.map +1 -0
- package/dist/common/database/base.entity.d.ts +31 -0
- package/dist/common/database/base.entity.js +165 -0
- package/dist/common/database/base.entity.js.map +1 -0
- package/dist/common/database/comment.base.entity.d.ts +11 -0
- package/dist/common/database/comment.base.entity.js +83 -0
- package/dist/common/database/comment.base.entity.js.map +1 -0
- package/dist/common/database/index.d.ts +2 -0
- package/dist/common/database/index.js +19 -0
- package/dist/common/database/index.js.map +1 -0
- package/dist/common/dtos/index.d.ts +1 -0
- package/dist/common/dtos/index.js +18 -0
- package/dist/common/dtos/index.js.map +1 -0
- package/dist/common/dtos/send-notification.dto.d.ts +12 -0
- package/dist/common/dtos/send-notification.dto.js +66 -0
- package/dist/common/dtos/send-notification.dto.js.map +1 -0
- package/dist/common/enums/common.enum.d.ts +18 -0
- package/dist/common/enums/common.enum.js +25 -0
- package/dist/common/enums/common.enum.js.map +1 -0
- package/dist/common/enums/drive.enum.d.ts +26 -0
- package/dist/common/enums/drive.enum.js +32 -0
- package/dist/common/enums/drive.enum.js.map +1 -0
- package/dist/common/enums/index.d.ts +5 -0
- package/dist/common/enums/index.js +22 -0
- package/dist/common/enums/index.js.map +1 -0
- package/dist/common/enums/notification.enum.d.ts +56 -0
- package/dist/common/enums/notification.enum.js +63 -0
- package/dist/common/enums/notification.enum.js.map +1 -0
- package/dist/common/enums/sales.enum.d.ts +120 -0
- package/dist/common/enums/sales.enum.js +144 -0
- package/dist/common/enums/sales.enum.js.map +1 -0
- package/dist/common/enums/tools.enum.d.ts +64 -0
- package/dist/common/enums/tools.enum.js +75 -0
- package/dist/common/enums/tools.enum.js.map +1 -0
- package/dist/common/functions/cripto.d.ts +1 -0
- package/dist/common/functions/cripto.js +8 -0
- package/dist/common/functions/cripto.js.map +1 -0
- package/dist/common/functions/image.d.ts +3 -0
- package/dist/common/functions/image.js +16 -0
- package/dist/common/functions/image.js.map +1 -0
- package/dist/common/functions/index.d.ts +2 -0
- package/dist/common/functions/index.js +19 -0
- package/dist/common/functions/index.js.map +1 -0
- package/dist/common/helpers/app.utils.d.ts +5 -0
- package/dist/common/helpers/app.utils.js +32 -0
- package/dist/common/helpers/app.utils.js.map +1 -0
- package/dist/common/helpers/helpers.utils.d.ts +5 -0
- package/dist/common/helpers/helpers.utils.js +26 -0
- package/dist/common/helpers/helpers.utils.js.map +1 -0
- package/dist/common/helpers/index.d.ts +2 -0
- package/dist/common/helpers/index.js +19 -0
- package/dist/common/helpers/index.js.map +1 -0
- package/dist/common/index.d.ts +8 -0
- package/dist/common/index.js +25 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/interceptors/index.d.ts +1 -0
- package/dist/common/interceptors/index.js +18 -0
- package/dist/common/interceptors/index.js.map +1 -0
- package/dist/common/interceptors/security.interceptor.d.ts +5 -0
- package/dist/common/interceptors/security.interceptor.js +22 -0
- package/dist/common/interceptors/security.interceptor.js.map +1 -0
- package/dist/entities/app_config/app-config.entity.d.ts +5 -0
- package/dist/entities/app_config/app-config.entity.js +33 -0
- package/dist/entities/app_config/app-config.entity.js.map +1 -0
- package/dist/entities/audit.entity.d.ts +7 -0
- package/dist/entities/audit.entity.js +56 -0
- package/dist/entities/audit.entity.js.map +1 -0
- package/dist/entities/capacitation/capacitation.entity.d.ts +10 -0
- package/dist/entities/capacitation/capacitation.entity.js +68 -0
- package/dist/entities/capacitation/capacitation.entity.js.map +1 -0
- package/dist/entities/capacitation/course-assigned.entity.d.ts +12 -0
- package/dist/entities/capacitation/course-assigned.entity.js +44 -0
- package/dist/entities/capacitation/course-assigned.entity.js.map +1 -0
- package/dist/entities/capacitation/course-evaluation-attempt.entity.d.ts +22 -0
- package/dist/entities/capacitation/course-evaluation-attempt.entity.js +96 -0
- package/dist/entities/capacitation/course-evaluation-attempt.entity.js.map +1 -0
- package/dist/entities/capacitation/course-evaluation.entity.d.ts +42 -0
- package/dist/entities/capacitation/course-evaluation.entity.js +111 -0
- package/dist/entities/capacitation/course-evaluation.entity.js.map +1 -0
- package/dist/entities/capacitation/course-folder-page.entity.d.ts +14 -0
- package/dist/entities/capacitation/course-folder-page.entity.js +74 -0
- package/dist/entities/capacitation/course-folder-page.entity.js.map +1 -0
- package/dist/entities/capacitation/course-folder.entity.d.ts +10 -0
- package/dist/entities/capacitation/course-folder.entity.js +57 -0
- package/dist/entities/capacitation/course-folder.entity.js.map +1 -0
- package/dist/entities/capacitation/course-order.entity.d.ts +8 -0
- package/dist/entities/capacitation/course-order.entity.js +45 -0
- package/dist/entities/capacitation/course-order.entity.js.map +1 -0
- package/dist/entities/capacitation/course.entity.d.ts +21 -0
- package/dist/entities/capacitation/course.entity.js +119 -0
- package/dist/entities/capacitation/course.entity.js.map +1 -0
- package/dist/entities/capacitation/index.d.ts +8 -0
- package/dist/entities/capacitation/index.js +21 -0
- package/dist/entities/capacitation/index.js.map +1 -0
- package/dist/entities/currency.entity.d.ts +6 -0
- package/dist/entities/currency.entity.js +43 -0
- package/dist/entities/currency.entity.js.map +1 -0
- package/dist/entities/drive/attached_object.entity.d.ts +27 -0
- package/dist/entities/drive/attached_object.entity.js +154 -0
- package/dist/entities/drive/attached_object.entity.js.map +1 -0
- package/dist/entities/drive/file.entity.d.ts +20 -0
- package/dist/entities/drive/file.entity.js +178 -0
- package/dist/entities/drive/file.entity.js.map +1 -0
- package/dist/entities/drive/folder.entity.d.ts +19 -0
- package/dist/entities/drive/folder.entity.js +173 -0
- package/dist/entities/drive/folder.entity.js.map +1 -0
- package/dist/entities/drive/index.d.ts +3 -0
- package/dist/entities/drive/index.js +20 -0
- package/dist/entities/drive/index.js.map +1 -0
- package/dist/entities/easyapp/filter-view.entity.d.ts +7 -0
- package/dist/entities/easyapp/filter-view.entity.js +41 -0
- package/dist/entities/easyapp/filter-view.entity.js.map +1 -0
- package/dist/entities/email.entity.d.ts +5 -0
- package/dist/entities/email.entity.js +36 -0
- package/dist/entities/email.entity.js.map +1 -0
- package/dist/entities/group.entity.d.ts +13 -0
- package/dist/entities/group.entity.js +57 -0
- package/dist/entities/group.entity.js.map +1 -0
- package/dist/entities/helpers/entity_file.entity.d.ts +10 -0
- package/dist/entities/helpers/entity_file.entity.js +61 -0
- package/dist/entities/helpers/entity_file.entity.js.map +1 -0
- package/dist/entities/helpers/entity_folder.entity.d.ts +10 -0
- package/dist/entities/helpers/entity_folder.entity.js +61 -0
- package/dist/entities/helpers/entity_folder.entity.js.map +1 -0
- package/dist/entities/helpers/index.d.ts +5 -0
- package/dist/entities/helpers/index.js +22 -0
- package/dist/entities/helpers/index.js.map +1 -0
- package/dist/entities/helpers/meeting_crm.entity.d.ts +23 -0
- package/dist/entities/helpers/meeting_crm.entity.js +166 -0
- package/dist/entities/helpers/meeting_crm.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.d.ts +20 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.js +160 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.js +43 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/h_agent_source.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/agent/h_agent_source.entity.js +34 -0
- package/dist/entities/helpers/sales/agent/h_agent_source.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/h_agent_types.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/agent/h_agent_types.entity.js +34 -0
- package/dist/entities/helpers/sales/agent/h_agent_types.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/index.d.ts +6 -0
- package/dist/entities/helpers/sales/agent/index.js +23 -0
- package/dist/entities/helpers/sales/agent/index.js.map +1 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.d.ts +18 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.js +150 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.js +43 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.js +36 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.js.map +1 -0
- package/dist/entities/helpers/sales/common/client_types.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/common/client_types.entity.js +36 -0
- package/dist/entities/helpers/sales/common/client_types.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.js +89 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_insurance.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/contact/contact_insurance.entity.js +92 -0
- package/dist/entities/helpers/sales/contact/contact_insurance.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js +89 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/index.d.ts +5 -0
- package/dist/entities/helpers/sales/contact/index.js +22 -0
- package/dist/entities/helpers/sales/contact/index.js.map +1 -0
- package/dist/entities/helpers/sales/index.d.ts +7 -0
- package/dist/entities/helpers/sales/index.js +24 -0
- package/dist/entities/helpers/sales/index.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +30 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +36 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +30 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/index.d.ts +6 -0
- package/dist/entities/helpers/sales/lead/index.js +23 -0
- package/dist/entities/helpers/sales/lead/index.js.map +1 -0
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js +28 -0
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.js +66 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js +66 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js +30 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js +33 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +39 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +39 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js +30 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_stage.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_stage.entity.js +43 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js +36 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +33 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.d.ts +8 -0
- package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js +53 -0
- package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/index.d.ts +12 -0
- package/dist/entities/helpers/sales/poliza/index.js +29 -0
- package/dist/entities/helpers/sales/poliza/index.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/poliza_cancel_reason.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/poliza/poliza_cancel_reason.entity.js +28 -0
- package/dist/entities/helpers/sales/poliza/poliza_cancel_reason.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js +86 -0
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/poliza_settlement.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/poliza/poliza_settlement.entity.js +28 -0
- package/dist/entities/helpers/sales/poliza/poliza_settlement.entity.js.map +1 -0
- package/dist/entities/helpers/tools/event_crm.entity.d.ts +35 -0
- package/dist/entities/helpers/tools/event_crm.entity.js +251 -0
- package/dist/entities/helpers/tools/event_crm.entity.js.map +1 -0
- package/dist/entities/helpers/tools/index.d.ts +2 -0
- package/dist/entities/helpers/tools/index.js +19 -0
- package/dist/entities/helpers/tools/index.js.map +1 -0
- package/dist/entities/helpers/tools/task_crm.entity.d.ts +37 -0
- package/dist/entities/helpers/tools/task_crm.entity.js +258 -0
- package/dist/entities/helpers/tools/task_crm.entity.js.map +1 -0
- package/dist/entities/imap-config.entity.d.ts +11 -0
- package/dist/entities/imap-config.entity.js +61 -0
- package/dist/entities/imap-config.entity.js.map +1 -0
- package/dist/entities/index.d.ts +37 -0
- package/dist/entities/index.js +54 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/login-history.entity.d.ts +7 -0
- package/dist/entities/login-history.entity.js +53 -0
- package/dist/entities/login-history.entity.js.map +1 -0
- package/dist/entities/meeting-comment.entity.d.ts +8 -0
- package/dist/entities/meeting-comment.entity.js +46 -0
- package/dist/entities/meeting-comment.entity.js.map +1 -0
- package/dist/entities/meeting-list-field.d.ts +5 -0
- package/dist/entities/meeting-list-field.js +46 -0
- package/dist/entities/meeting-list-field.js.map +1 -0
- package/dist/entities/meeting.entity.d.ts +24 -0
- package/dist/entities/meeting.entity.js +187 -0
- package/dist/entities/meeting.entity.js.map +1 -0
- package/dist/entities/menu-permissions.entity.d.ts +7 -0
- package/dist/entities/menu-permissions.entity.js +42 -0
- package/dist/entities/menu-permissions.entity.js.map +1 -0
- package/dist/entities/notifications/index.d.ts +2 -0
- package/dist/entities/notifications/index.js +19 -0
- package/dist/entities/notifications/index.js.map +1 -0
- package/dist/entities/notifications/notification.entity.d.ts +15 -0
- package/dist/entities/notifications/notification.entity.js +119 -0
- package/dist/entities/notifications/notification.entity.js.map +1 -0
- package/dist/entities/notifications/push-token.entity.d.ts +7 -0
- package/dist/entities/notifications/push-token.entity.js +45 -0
- package/dist/entities/notifications/push-token.entity.js.map +1 -0
- package/dist/entities/otp-log.entity.d.ts +8 -0
- package/dist/entities/otp-log.entity.js +49 -0
- package/dist/entities/otp-log.entity.js.map +1 -0
- package/dist/entities/permission.entity.d.ts +7 -0
- package/dist/entities/permission.entity.js +46 -0
- package/dist/entities/permission.entity.js.map +1 -0
- package/dist/entities/phone.entity.d.ts +5 -0
- package/dist/entities/phone.entity.js +36 -0
- package/dist/entities/phone.entity.js.map +1 -0
- package/dist/entities/policy/index.d.ts +3 -0
- package/dist/entities/policy/index.js +20 -0
- package/dist/entities/policy/index.js.map +1 -0
- package/dist/entities/policy/policy-version.entity.d.ts +46 -0
- package/dist/entities/policy/policy-version.entity.js +427 -0
- package/dist/entities/policy/policy-version.entity.js.map +1 -0
- package/dist/entities/policy/policy.entity.d.ts +29 -0
- package/dist/entities/policy/policy.entity.js +296 -0
- package/dist/entities/policy/policy.entity.js.map +1 -0
- package/dist/entities/policy/version-comment.entity.d.ts +5 -0
- package/dist/entities/policy/version-comment.entity.js +35 -0
- package/dist/entities/policy/version-comment.entity.js.map +1 -0
- package/dist/entities/profile.entity.d.ts +9 -0
- package/dist/entities/profile.entity.js +56 -0
- package/dist/entities/profile.entity.js.map +1 -0
- package/dist/entities/protocol.entity.d.ts +8 -0
- package/dist/entities/protocol.entity.js +46 -0
- package/dist/entities/protocol.entity.js.map +1 -0
- package/dist/entities/refresh-token.entity.d.ts +8 -0
- package/dist/entities/refresh-token.entity.js +46 -0
- package/dist/entities/refresh-token.entity.js.map +1 -0
- package/dist/entities/role.entity.d.ts +13 -0
- package/dist/entities/role.entity.js +108 -0
- package/dist/entities/role.entity.js.map +1 -0
- package/dist/entities/sales/agent-comment.entity.d.ts +5 -0
- package/dist/entities/sales/agent-comment.entity.js +35 -0
- package/dist/entities/sales/agent-comment.entity.js.map +1 -0
- package/dist/entities/sales/agent.entity.d.ts +34 -0
- package/dist/entities/sales/agent.entity.js +274 -0
- package/dist/entities/sales/agent.entity.js.map +1 -0
- package/dist/entities/sales/agente-intermediario.entity.d.ts +7 -0
- package/dist/entities/sales/agente-intermediario.entity.js +49 -0
- package/dist/entities/sales/agente-intermediario.entity.js.map +1 -0
- package/dist/entities/sales/beneficiarios/index.d.ts +2 -0
- package/dist/entities/sales/beneficiarios/index.js +19 -0
- package/dist/entities/sales/beneficiarios/index.js.map +1 -0
- package/dist/entities/sales/beneficiarios/person.entity.d.ts +10 -0
- package/dist/entities/sales/beneficiarios/person.entity.js +89 -0
- package/dist/entities/sales/beneficiarios/person.entity.js.map +1 -0
- package/dist/entities/sales/beneficiarios/vehicle.entity.d.ts +16 -0
- package/dist/entities/sales/beneficiarios/vehicle.entity.js +106 -0
- package/dist/entities/sales/beneficiarios/vehicle.entity.js.map +1 -0
- package/dist/entities/sales/contact-comment.entity.d.ts +5 -0
- package/dist/entities/sales/contact-comment.entity.js +32 -0
- package/dist/entities/sales/contact-comment.entity.js.map +1 -0
- package/dist/entities/sales/contact.entity.d.ts +60 -0
- package/dist/entities/sales/contact.entity.js +527 -0
- package/dist/entities/sales/contact.entity.js.map +1 -0
- package/dist/entities/sales/import-session.entity.d.ts +29 -0
- package/dist/entities/sales/import-session.entity.js +155 -0
- package/dist/entities/sales/import-session.entity.js.map +1 -0
- package/dist/entities/sales/index.d.ts +16 -0
- package/dist/entities/sales/index.js +33 -0
- package/dist/entities/sales/index.js.map +1 -0
- package/dist/entities/sales/lead-comment.entity.d.ts +5 -0
- package/dist/entities/sales/lead-comment.entity.js +32 -0
- package/dist/entities/sales/lead-comment.entity.js.map +1 -0
- package/dist/entities/sales/lead.entity.d.ts +63 -0
- package/dist/entities/sales/lead.entity.js +610 -0
- package/dist/entities/sales/lead.entity.js.map +1 -0
- package/dist/entities/sales/policy-comment.entity.d.ts +5 -0
- package/dist/entities/sales/policy-comment.entity.js +35 -0
- package/dist/entities/sales/policy-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza/index.d.ts +8 -0
- package/dist/entities/sales/poliza/index.js +25 -0
- package/dist/entities/sales/poliza/index.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_claim-comment.entity.d.ts +5 -0
- package/dist/entities/sales/poliza/poliza_claim-comment.entity.js +35 -0
- package/dist/entities/sales/poliza/poliza_claim-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_claim.entity.d.ts +36 -0
- package/dist/entities/sales/poliza/poliza_claim.entity.js +298 -0
- package/dist/entities/sales/poliza/poliza_claim.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery-comment.entity.d.ts +5 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery-comment.entity.js +35 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.d.ts +33 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.js +272 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.d.ts +5 -0
- package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.js +35 -0
- package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.d.ts +36 -0
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.js +290 -0
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.d.ts +5 -0
- package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.js +35 -0
- package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza/poliza_scheduling.entity.d.ts +39 -0
- package/dist/entities/sales/poliza/poliza_scheduling.entity.js +312 -0
- package/dist/entities/sales/poliza/poliza_scheduling.entity.js.map +1 -0
- package/dist/entities/sales/poliza-comment.entity.d.ts +5 -0
- package/dist/entities/sales/poliza-comment.entity.js +32 -0
- package/dist/entities/sales/poliza-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza.entity.d.ts +110 -0
- package/dist/entities/sales/poliza.entity.js +1051 -0
- package/dist/entities/sales/poliza.entity.js.map +1 -0
- package/dist/entities/sales/poliza_pdf.entity.d.ts +96 -0
- package/dist/entities/sales/poliza_pdf.entity.js +946 -0
- package/dist/entities/sales/poliza_pdf.entity.js.map +1 -0
- package/dist/entities/sales/receipt-comment.entity.d.ts +5 -0
- package/dist/entities/sales/receipt-comment.entity.js +32 -0
- package/dist/entities/sales/receipt-comment.entity.js.map +1 -0
- package/dist/entities/sales/receipt.entity.d.ts +37 -0
- package/dist/entities/sales/receipt.entity.js +297 -0
- package/dist/entities/sales/receipt.entity.js.map +1 -0
- package/dist/entities/tag.entity.d.ts +8 -0
- package/dist/entities/tag.entity.js +53 -0
- package/dist/entities/tag.entity.js.map +1 -0
- package/dist/entities/thirdparty/diio-integration.entity.d.ts +16 -0
- package/dist/entities/thirdparty/diio-integration.entity.js +74 -0
- package/dist/entities/thirdparty/diio-integration.entity.js.map +1 -0
- package/dist/entities/thirdparty/google-gmail-watch-record.entity.d.ts +14 -0
- package/dist/entities/thirdparty/google-gmail-watch-record.entity.js +113 -0
- package/dist/entities/thirdparty/google-gmail-watch-record.entity.js.map +1 -0
- package/dist/entities/thirdparty/google-webhooks-config.entity.d.ts +19 -0
- package/dist/entities/thirdparty/google-webhooks-config.entity.js +82 -0
- package/dist/entities/thirdparty/google-webhooks-config.entity.js.map +1 -0
- package/dist/entities/thirdparty/oauth.entity.d.ts +24 -0
- package/dist/entities/thirdparty/oauth.entity.js +81 -0
- package/dist/entities/thirdparty/oauth.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-event-comment.entity.d.ts +8 -0
- package/dist/entities/tools/calendar/calendar-event-comment.entity.js +39 -0
- package/dist/entities/tools/calendar/calendar-event-comment.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-event-invitations.entity.d.ts +13 -0
- package/dist/entities/tools/calendar/calendar-event-invitations.entity.js +48 -0
- package/dist/entities/tools/calendar/calendar-event-invitations.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-general-config.entity.d.ts +20 -0
- package/dist/entities/tools/calendar/calendar-general-config.entity.js +118 -0
- package/dist/entities/tools/calendar/calendar-general-config.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-item.entity.d.ts +17 -0
- package/dist/entities/tools/calendar/calendar-item.entity.js +60 -0
- package/dist/entities/tools/calendar/calendar-item.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-reminder.entity.d.ts +7 -0
- package/dist/entities/tools/calendar/calendar-reminder.entity.js +38 -0
- package/dist/entities/tools/calendar/calendar-reminder.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-sub-item.entity.d.ts +32 -0
- package/dist/entities/tools/calendar/calendar-sub-item.entity.js +104 -0
- package/dist/entities/tools/calendar/calendar-sub-item.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-user-access.entity.d.ts +13 -0
- package/dist/entities/tools/calendar/calendar-user-access.entity.js +46 -0
- package/dist/entities/tools/calendar/calendar-user-access.entity.js.map +1 -0
- package/dist/entities/tools/calendar/event.entity.d.ts +33 -0
- package/dist/entities/tools/calendar/event.entity.js +230 -0
- package/dist/entities/tools/calendar/event.entity.js.map +1 -0
- package/dist/entities/tools/calendar/index.d.ts +8 -0
- package/dist/entities/tools/calendar/index.js +25 -0
- package/dist/entities/tools/calendar/index.js.map +1 -0
- package/dist/entities/tools/index.d.ts +7 -0
- package/dist/entities/tools/index.js +24 -0
- package/dist/entities/tools/index.js.map +1 -0
- package/dist/entities/tools/mail/email-signature.entity.d.ts +10 -0
- package/dist/entities/tools/mail/email-signature.entity.js +60 -0
- package/dist/entities/tools/mail/email-signature.entity.js.map +1 -0
- package/dist/entities/tools/mail/mail.entity.d.ts +50 -0
- package/dist/entities/tools/mail/mail.entity.js +120 -0
- package/dist/entities/tools/mail/mail.entity.js.map +1 -0
- package/dist/entities/tools/mail/mailbox-user-access.entity.d.ts +13 -0
- package/dist/entities/tools/mail/mailbox-user-access.entity.js +46 -0
- package/dist/entities/tools/mail/mailbox-user-access.entity.js.map +1 -0
- package/dist/entities/tools/mail/mailbox.entity.d.ts +57 -0
- package/dist/entities/tools/mail/mailbox.entity.js +104 -0
- package/dist/entities/tools/mail/mailbox.entity.js.map +1 -0
- package/dist/entities/tools/task-comment.entity.d.ts +8 -0
- package/dist/entities/tools/task-comment.entity.js +39 -0
- package/dist/entities/tools/task-comment.entity.js.map +1 -0
- package/dist/entities/tools/task-history.entity.d.ts +15 -0
- package/dist/entities/tools/task-history.entity.js +131 -0
- package/dist/entities/tools/task-history.entity.js.map +1 -0
- package/dist/entities/tools/task-list-field.d.ts +5 -0
- package/dist/entities/tools/task-list-field.js +39 -0
- package/dist/entities/tools/task-list-field.js.map +1 -0
- package/dist/entities/tools/task-objection.entity.d.ts +10 -0
- package/dist/entities/tools/task-objection.entity.js +80 -0
- package/dist/entities/tools/task-objection.entity.js.map +1 -0
- package/dist/entities/tools/task-time-track.entity.d.ts +16 -0
- package/dist/entities/tools/task-time-track.entity.js +139 -0
- package/dist/entities/tools/task-time-track.entity.js.map +1 -0
- package/dist/entities/tools/task.entity.d.ts +52 -0
- package/dist/entities/tools/task.entity.js +451 -0
- package/dist/entities/tools/task.entity.js.map +1 -0
- package/dist/entities/user-change-log.entity.d.ts +22 -0
- package/dist/entities/user-change-log.entity.js +77 -0
- package/dist/entities/user-change-log.entity.js.map +1 -0
- package/dist/entities/user-invitations.entity.d.ts +16 -0
- package/dist/entities/user-invitations.entity.js +143 -0
- package/dist/entities/user-invitations.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +37 -0
- package/dist/entities/user.entity.js +260 -0
- package/dist/entities/user.entity.js.map +1 -0
- package/dist/eslint.config.d.ts +2 -0
- package/dist/eslint.config.js +46 -0
- package/dist/eslint.config.js.map +1 -0
- package/dist/grpc/drive/drive.proto +290 -0
- package/dist/grpc/drive/leads.proto +114 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/index.d.ts +5 -0
- package/dist/modules/index.js +22 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/queue/event.service.d.ts +32 -0
- package/dist/modules/queue/event.service.js +45 -0
- package/dist/modules/queue/event.service.js.map +1 -0
- package/dist/modules/queue/notifier.service.d.ts +15 -0
- package/dist/modules/queue/notifier.service.js +70 -0
- package/dist/modules/queue/notifier.service.js.map +1 -0
- package/dist/modules/queue/notifiers/calendar.notifier.d.ts +10 -0
- package/dist/modules/queue/notifiers/calendar.notifier.js +60 -0
- package/dist/modules/queue/notifiers/calendar.notifier.js.map +1 -0
- package/dist/modules/queue/notifiers/contact.notifier.d.ts +7 -0
- package/dist/modules/queue/notifiers/contact.notifier.js +52 -0
- package/dist/modules/queue/notifiers/contact.notifier.js.map +1 -0
- package/dist/modules/queue/notifiers/index.d.ts +4 -0
- package/dist/modules/queue/notifiers/index.js +21 -0
- package/dist/modules/queue/notifiers/index.js.map +1 -0
- package/dist/modules/queue/notifiers/lead.notifier.d.ts +7 -0
- package/dist/modules/queue/notifiers/lead.notifier.js +52 -0
- package/dist/modules/queue/notifiers/lead.notifier.js.map +1 -0
- package/dist/modules/queue/notifiers/task.notifier.d.ts +15 -0
- package/dist/modules/queue/notifiers/task.notifier.js +159 -0
- package/dist/modules/queue/notifiers/task.notifier.js.map +1 -0
- package/dist/modules/queue/queue.module.d.ts +4 -0
- package/dist/modules/queue/queue.module.js +68 -0
- package/dist/modules/queue/queue.module.js.map +1 -0
- package/dist/modules/queue/queue.service.d.ts +9 -0
- package/dist/modules/queue/queue.service.js +56 -0
- package/dist/modules/queue/queue.service.js.map +1 -0
- package/dist/modules/queue/scheduler.service.d.ts +9 -0
- package/dist/modules/queue/scheduler.service.js +40 -0
- package/dist/modules/queue/scheduler.service.js.map +1 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,57 @@
|
|
|
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.CourseFolder = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
16
|
+
const course_entity_1 = require("./course.entity");
|
|
17
|
+
const course_folder_page_entity_1 = require("./course-folder-page.entity");
|
|
18
|
+
let CourseFolder = class CourseFolder extends base_entity_1.EntityBase {
|
|
19
|
+
name;
|
|
20
|
+
isPublished;
|
|
21
|
+
order;
|
|
22
|
+
course;
|
|
23
|
+
pages;
|
|
24
|
+
};
|
|
25
|
+
exports.CourseFolder = CourseFolder;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Folder name' }),
|
|
28
|
+
(0, typeorm_1.Column)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CourseFolder.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], CourseFolder.prototype, "isPublished", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
type: String,
|
|
38
|
+
description: 'Course folder order',
|
|
39
|
+
required: false,
|
|
40
|
+
}),
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'int', generated: 'increment' }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], CourseFolder.prototype, "order", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)({ type: () => course_entity_1.Course, description: 'Course owner of the folder', required: false }),
|
|
46
|
+
(0, typeorm_1.ManyToOne)(() => course_entity_1.Course, course => course.folders, { cascade: true, onDelete: 'CASCADE' }),
|
|
47
|
+
__metadata("design:type", course_entity_1.Course)
|
|
48
|
+
], CourseFolder.prototype, "course", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({ type: () => course_folder_page_entity_1.CourseFolderPage, description: 'Folder owner of the pages', required: false }),
|
|
51
|
+
(0, typeorm_1.OneToMany)(() => course_folder_page_entity_1.CourseFolderPage, courseFolderPage => courseFolderPage.folder),
|
|
52
|
+
__metadata("design:type", Array)
|
|
53
|
+
], CourseFolder.prototype, "pages", void 0);
|
|
54
|
+
exports.CourseFolder = CourseFolder = __decorate([
|
|
55
|
+
(0, typeorm_1.Entity)()
|
|
56
|
+
], CourseFolder);
|
|
57
|
+
//# sourceMappingURL=course-folder.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-folder.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-folder.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+D;AAC/D,6CAA8C;AAE9C,mEAA+D;AAC/D,mDAAyC;AACzC,2EAA+D;AAGxD,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,wBAAU;IAG1C,IAAI,CAAS;IAGb,WAAW,CAAU;IAQrB,KAAK,CAAS;IAId,MAAM,CAAS;IAIf,KAAK,CAAqB;CAC3B,CAAA;AAvBY,oCAAY;AAGvB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;IACzD,IAAA,gBAAM,GAAE;;0CACI;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;iDACN;AAQrB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,qBAAqB;QAClC,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;;2CAClC;AAId;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,4BAA4B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAClF,sBAAM;4CAAC;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,4CAAgB,EAAE,WAAW,EAAE,2BAA2B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACxG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4CAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC;;2CACrD;uBAtBf,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CAuBxB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.CourseOrder = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const course_entity_1 = require("./course.entity");
|
|
15
|
+
const group_entity_1 = require("../group.entity");
|
|
16
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
18
|
+
let CourseOrder = class CourseOrder extends base_entity_1.EntityBase {
|
|
19
|
+
group;
|
|
20
|
+
course;
|
|
21
|
+
order;
|
|
22
|
+
};
|
|
23
|
+
exports.CourseOrder = CourseOrder;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.ManyToOne)(() => group_entity_1.Group),
|
|
26
|
+
__metadata("design:type", group_entity_1.Group)
|
|
27
|
+
], CourseOrder.prototype, "group", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.ManyToOne)(() => course_entity_1.Course, course => course.orders, { cascade: true, onDelete: 'CASCADE' }),
|
|
30
|
+
__metadata("design:type", course_entity_1.Course)
|
|
31
|
+
], CourseOrder.prototype, "course", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({
|
|
34
|
+
type: String,
|
|
35
|
+
description: 'Course order',
|
|
36
|
+
required: false,
|
|
37
|
+
}),
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int', generated: 'increment' }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], CourseOrder.prototype, "order", void 0);
|
|
41
|
+
exports.CourseOrder = CourseOrder = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)(),
|
|
43
|
+
(0, typeorm_1.Unique)(['group', 'course'])
|
|
44
|
+
], CourseOrder);
|
|
45
|
+
//# sourceMappingURL=course-order.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-order.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-order.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4D;AAC5D,mDAAyC;AACzC,kDAAwC;AACxC,6CAA8C;AAC9C,mEAA+D;AAIxD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,wBAAU;IAEzC,KAAK,CAAQ;IAGb,MAAM,CAAS;IAQf,KAAK,CAAS;CACf,CAAA;AAdY,kCAAW;AAEtB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;8BAChB,oBAAK;0CAAC;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACjF,sBAAM;2CAAC;AAQf;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,cAAc;QAC3B,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;;0CAClC;sBAbH,WAAW;IAFvB,IAAA,gBAAM,GAAE;IACR,IAAA,gBAAM,EAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;GACf,WAAW,CAcvB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EntityBase } from '../../common/database/base.entity';
|
|
2
|
+
import { CourseFolder } from './course-folder.entity';
|
|
3
|
+
import { CourseAssigned } from './course-assigned.entity';
|
|
4
|
+
import { User } from '../user.entity';
|
|
5
|
+
import { Group } from '../group.entity';
|
|
6
|
+
import { CourseOrder } from './course-order.entity';
|
|
7
|
+
import { CourseEvaluation } from './course-evaluation.entity';
|
|
8
|
+
export declare class Course extends EntityBase {
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
openToAll: boolean;
|
|
12
|
+
private: boolean;
|
|
13
|
+
coverPhotoSrc?: string;
|
|
14
|
+
isPublished: boolean;
|
|
15
|
+
createdBy: User;
|
|
16
|
+
groups: Group[];
|
|
17
|
+
folders: CourseFolder[];
|
|
18
|
+
assignedUsers: CourseAssigned[];
|
|
19
|
+
orders: CourseOrder[];
|
|
20
|
+
evaluations: CourseEvaluation[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
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.Course = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
16
|
+
const course_folder_entity_1 = require("./course-folder.entity");
|
|
17
|
+
const course_assigned_entity_1 = require("./course-assigned.entity");
|
|
18
|
+
const user_entity_1 = require("../user.entity");
|
|
19
|
+
const group_entity_1 = require("../group.entity");
|
|
20
|
+
const course_order_entity_1 = require("./course-order.entity");
|
|
21
|
+
const course_evaluation_entity_1 = require("./course-evaluation.entity");
|
|
22
|
+
let Course = class Course extends base_entity_1.EntityBase {
|
|
23
|
+
name;
|
|
24
|
+
description;
|
|
25
|
+
openToAll;
|
|
26
|
+
private;
|
|
27
|
+
coverPhotoSrc;
|
|
28
|
+
isPublished;
|
|
29
|
+
createdBy;
|
|
30
|
+
groups;
|
|
31
|
+
folders;
|
|
32
|
+
assignedUsers;
|
|
33
|
+
orders;
|
|
34
|
+
evaluations;
|
|
35
|
+
};
|
|
36
|
+
exports.Course = Course;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({
|
|
39
|
+
type: String,
|
|
40
|
+
description: 'Course name',
|
|
41
|
+
required: true,
|
|
42
|
+
}),
|
|
43
|
+
(0, typeorm_1.Column)({ length: 150, nullable: false }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Course.prototype, "name", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)({
|
|
48
|
+
type: String,
|
|
49
|
+
description: 'Course description',
|
|
50
|
+
required: false,
|
|
51
|
+
}),
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], Course.prototype, "description", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, swagger_1.ApiProperty)({
|
|
57
|
+
type: Boolean,
|
|
58
|
+
required: false,
|
|
59
|
+
}),
|
|
60
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
61
|
+
__metadata("design:type", Boolean)
|
|
62
|
+
], Course.prototype, "openToAll", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, swagger_1.ApiProperty)({
|
|
65
|
+
type: Boolean,
|
|
66
|
+
required: false,
|
|
67
|
+
}),
|
|
68
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
69
|
+
__metadata("design:type", Boolean)
|
|
70
|
+
], Course.prototype, "private", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Cover photo URL', nullable: true }),
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], Course.prototype, "coverPhotoSrc", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({
|
|
78
|
+
type: Boolean,
|
|
79
|
+
required: false,
|
|
80
|
+
}),
|
|
81
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
82
|
+
__metadata("design:type", Boolean)
|
|
83
|
+
], Course.prototype, "isPublished", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, swagger_1.ApiProperty)({
|
|
86
|
+
type: () => user_entity_1.User,
|
|
87
|
+
description: 'User who creates the course',
|
|
88
|
+
required: false,
|
|
89
|
+
}),
|
|
90
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, user => user.createdCourses, { nullable: true, onDelete: 'SET NULL' }),
|
|
91
|
+
__metadata("design:type", user_entity_1.User)
|
|
92
|
+
], Course.prototype, "createdBy", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.ManyToMany)(() => group_entity_1.Group, group => group.courses, { onDelete: 'CASCADE' }),
|
|
95
|
+
(0, typeorm_1.JoinTable)(),
|
|
96
|
+
__metadata("design:type", Array)
|
|
97
|
+
], Course.prototype, "groups", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, swagger_1.ApiProperty)({ type: () => course_folder_entity_1.CourseFolder }),
|
|
100
|
+
(0, typeorm_1.OneToMany)(() => course_folder_entity_1.CourseFolder, folder => folder.course),
|
|
101
|
+
__metadata("design:type", Array)
|
|
102
|
+
], Course.prototype, "folders", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.OneToMany)(() => course_assigned_entity_1.CourseAssigned, courseAssigned => courseAssigned.course),
|
|
105
|
+
__metadata("design:type", Array)
|
|
106
|
+
], Course.prototype, "assignedUsers", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.OneToMany)(() => course_order_entity_1.CourseOrder, courseOrder => courseOrder.course),
|
|
109
|
+
__metadata("design:type", Array)
|
|
110
|
+
], Course.prototype, "orders", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, swagger_1.ApiProperty)({ type: () => course_evaluation_entity_1.CourseEvaluation, description: 'Evaluation of the course', required: false }),
|
|
113
|
+
(0, typeorm_1.OneToMany)(() => course_evaluation_entity_1.CourseEvaluation, evaluation => evaluation.course),
|
|
114
|
+
__metadata("design:type", Array)
|
|
115
|
+
], Course.prototype, "evaluations", void 0);
|
|
116
|
+
exports.Course = Course = __decorate([
|
|
117
|
+
(0, typeorm_1.Entity)()
|
|
118
|
+
], Course);
|
|
119
|
+
//# sourceMappingURL=course.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course.entity.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { Capacitation } from './capacitation.entity';
|
|
2
|
+
export { Course } from './course.entity';
|
|
3
|
+
export { CourseFolder } from './course-folder.entity';
|
|
4
|
+
export { CourseFolderPage } from './course-folder-page.entity';
|
|
5
|
+
export { CourseAssigned } from './course-assigned.entity';
|
|
6
|
+
export { CourseOrder } from './course-order.entity';
|
|
7
|
+
export { CourseEvaluation, EvaluationQuestion } from './course-evaluation.entity';
|
|
8
|
+
export { CourseEvaluationAttempt, CourseEvaluationAttemptStatus } from './course-evaluation-attempt.entity';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CourseEvaluationAttemptStatus = exports.CourseEvaluationAttempt = exports.CourseEvaluation = exports.CourseOrder = exports.CourseAssigned = exports.CourseFolderPage = exports.CourseFolder = exports.Course = exports.Capacitation = void 0;
|
|
4
|
+
var capacitation_entity_1 = require("./capacitation.entity");
|
|
5
|
+
Object.defineProperty(exports, "Capacitation", { enumerable: true, get: function () { return capacitation_entity_1.Capacitation; } });
|
|
6
|
+
var course_entity_1 = require("./course.entity");
|
|
7
|
+
Object.defineProperty(exports, "Course", { enumerable: true, get: function () { return course_entity_1.Course; } });
|
|
8
|
+
var course_folder_entity_1 = require("./course-folder.entity");
|
|
9
|
+
Object.defineProperty(exports, "CourseFolder", { enumerable: true, get: function () { return course_folder_entity_1.CourseFolder; } });
|
|
10
|
+
var course_folder_page_entity_1 = require("./course-folder-page.entity");
|
|
11
|
+
Object.defineProperty(exports, "CourseFolderPage", { enumerable: true, get: function () { return course_folder_page_entity_1.CourseFolderPage; } });
|
|
12
|
+
var course_assigned_entity_1 = require("./course-assigned.entity");
|
|
13
|
+
Object.defineProperty(exports, "CourseAssigned", { enumerable: true, get: function () { return course_assigned_entity_1.CourseAssigned; } });
|
|
14
|
+
var course_order_entity_1 = require("./course-order.entity");
|
|
15
|
+
Object.defineProperty(exports, "CourseOrder", { enumerable: true, get: function () { return course_order_entity_1.CourseOrder; } });
|
|
16
|
+
var course_evaluation_entity_1 = require("./course-evaluation.entity");
|
|
17
|
+
Object.defineProperty(exports, "CourseEvaluation", { enumerable: true, get: function () { return course_evaluation_entity_1.CourseEvaluation; } });
|
|
18
|
+
var course_evaluation_attempt_entity_1 = require("./course-evaluation-attempt.entity");
|
|
19
|
+
Object.defineProperty(exports, "CourseEvaluationAttempt", { enumerable: true, get: function () { return course_evaluation_attempt_entity_1.CourseEvaluationAttempt; } });
|
|
20
|
+
Object.defineProperty(exports, "CourseEvaluationAttemptStatus", { enumerable: true, get: function () { return course_evaluation_attempt_entity_1.CourseEvaluationAttemptStatus; } });
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/capacitation/index.ts"],"names":[],"mappings":";;;AAAA,6DAAqD;AAA5C,mHAAA,YAAY,OAAA;AACrB,iDAAyC;AAAhC,uGAAA,MAAM,OAAA;AACf,+DAAsD;AAA7C,oHAAA,YAAY,OAAA;AACrB,yEAA+D;AAAtD,6HAAA,gBAAgB,OAAA;AACzB,mEAA0D;AAAjD,wHAAA,cAAc,OAAA;AACvB,6DAAoD;AAA3C,kHAAA,WAAW,OAAA;AACpB,uEAAkF;AAAzE,4HAAA,gBAAgB,OAAA;AACzB,uFAA4G;AAAnG,2IAAA,uBAAuB,OAAA;AAAE,iJAAA,6BAA6B,OAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.Currency = 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 Currency = class Currency extends base_entity_1.EntityBase {
|
|
18
|
+
name;
|
|
19
|
+
symbol;
|
|
20
|
+
isDefault;
|
|
21
|
+
};
|
|
22
|
+
exports.Currency = Currency;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'name of the currency', minLength: 1, example: 'Dólar' }),
|
|
25
|
+
(0, class_validator_1.MinLength)(1),
|
|
26
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Currency.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'symbol of the currency', minLength: 1, example: 'USD' }),
|
|
31
|
+
(0, class_validator_1.MinLength)(1),
|
|
32
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Currency.prototype, "symbol", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: '¿Is this the default currency?' }),
|
|
37
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], Currency.prototype, "isDefault", void 0);
|
|
40
|
+
exports.Currency = Currency = __decorate([
|
|
41
|
+
(0, typeorm_1.Entity)()
|
|
42
|
+
], Currency);
|
|
43
|
+
//# sourceMappingURL=currency.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency.entity.js","sourceRoot":"","sources":["../../src/entities/currency.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,gEAA4D;AAC5D,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,wBAAU;IAIpC,IAAI,CAAS;IAKb,MAAM,CAAS;IAIf,SAAS,CAAU;CACtB,CAAA;AAdY,4BAAQ;AAIjB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAClG,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;sCACZ;AAKb;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,wBAAwB,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAClG,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wCACV;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;IAC7E,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2CACR;mBAbV,QAAQ;IADpB,IAAA,gBAAM,GAAE;GACI,QAAQ,CAcpB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
import { EntityFile } from "../helpers/entity_file.entity";
|
|
3
|
+
import { AttachEntityType, AttachModule } from "../../common";
|
|
4
|
+
import { User } from "../user.entity";
|
|
5
|
+
export declare class AttachedObject extends EntityBase {
|
|
6
|
+
name: string;
|
|
7
|
+
number: number;
|
|
8
|
+
url: string;
|
|
9
|
+
size: number;
|
|
10
|
+
mimeType: string;
|
|
11
|
+
s3Key: string;
|
|
12
|
+
isDefault: boolean;
|
|
13
|
+
module: AttachModule;
|
|
14
|
+
entityType: AttachEntityType;
|
|
15
|
+
entityId: string;
|
|
16
|
+
isTemporary: boolean;
|
|
17
|
+
metadata: Record<string, any>;
|
|
18
|
+
owners?: EntityFile[];
|
|
19
|
+
createdBy?: User;
|
|
20
|
+
modifiedBy?: User;
|
|
21
|
+
}
|
|
22
|
+
export interface AttachedObjectInterface {
|
|
23
|
+
id: string;
|
|
24
|
+
url: string;
|
|
25
|
+
name: string;
|
|
26
|
+
mimeType: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
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.AttachedObject = 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 entity_file_entity_1 = require("../helpers/entity_file.entity");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
const common_1 = require("../../common");
|
|
19
|
+
const user_entity_1 = require("../user.entity");
|
|
20
|
+
let AttachedObject = class AttachedObject extends base_entity_1.EntityBase {
|
|
21
|
+
name;
|
|
22
|
+
number;
|
|
23
|
+
url;
|
|
24
|
+
size;
|
|
25
|
+
mimeType;
|
|
26
|
+
s3Key;
|
|
27
|
+
isDefault;
|
|
28
|
+
module;
|
|
29
|
+
entityType;
|
|
30
|
+
entityId;
|
|
31
|
+
isTemporary;
|
|
32
|
+
metadata;
|
|
33
|
+
owners;
|
|
34
|
+
createdBy;
|
|
35
|
+
modifiedBy;
|
|
36
|
+
};
|
|
37
|
+
exports.AttachedObject = AttachedObject;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'File name', minLength: 1 }),
|
|
40
|
+
(0, class_validator_1.MinLength)(1),
|
|
41
|
+
(0, typeorm_1.Column)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], AttachedObject.prototype, "name", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)(),
|
|
46
|
+
(0, typeorm_1.Generated)("increment"),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], AttachedObject.prototype, "number", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'URL of the file', required: false }),
|
|
51
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], AttachedObject.prototype, "url", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, swagger_1.ApiProperty)({ type: 'bigint', description: 'Size of the file in bytes', required: false }),
|
|
56
|
+
(0, typeorm_1.Column)({ nullable: true, type: "bigint" }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], AttachedObject.prototype, "size", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'MIME type of the file', required: false }),
|
|
61
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], AttachedObject.prototype, "mimeType", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'S3 key of the file', required: false }),
|
|
66
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], AttachedObject.prototype, "s3Key", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is this the default file?', default: false }),
|
|
71
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
72
|
+
__metadata("design:type", Boolean)
|
|
73
|
+
], AttachedObject.prototype, "isDefault", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, swagger_1.ApiProperty)({
|
|
76
|
+
enum: common_1.AttachModule,
|
|
77
|
+
description: 'Module that the file is attached to',
|
|
78
|
+
}),
|
|
79
|
+
(0, typeorm_1.Column)({
|
|
80
|
+
type: "enum",
|
|
81
|
+
enum: common_1.AttachModule,
|
|
82
|
+
nullable: true,
|
|
83
|
+
}),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], AttachedObject.prototype, "module", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiProperty)({
|
|
88
|
+
enum: common_1.AttachEntityType,
|
|
89
|
+
description: 'Type of entity that the file is attached to',
|
|
90
|
+
nullable: true,
|
|
91
|
+
}),
|
|
92
|
+
(0, typeorm_1.Column)({
|
|
93
|
+
type: "enum",
|
|
94
|
+
enum: common_1.AttachEntityType,
|
|
95
|
+
nullable: true,
|
|
96
|
+
}),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], AttachedObject.prototype, "entityType", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Entity identifier with attachment', required: false }),
|
|
101
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], AttachedObject.prototype, "entityId", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is this a temporary file?', default: false }),
|
|
106
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
107
|
+
__metadata("design:type", Boolean)
|
|
108
|
+
], AttachedObject.prototype, "isTemporary", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, swagger_1.ApiProperty)({
|
|
111
|
+
type: Object,
|
|
112
|
+
description: 'Additional metadata for the file',
|
|
113
|
+
required: false
|
|
114
|
+
}),
|
|
115
|
+
(0, typeorm_1.Column)({
|
|
116
|
+
type: "simple-json",
|
|
117
|
+
nullable: true
|
|
118
|
+
}),
|
|
119
|
+
__metadata("design:type", Object)
|
|
120
|
+
], AttachedObject.prototype, "metadata", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, swagger_1.ApiProperty)({ type: () => [entity_file_entity_1.EntityFile], description: 'Entities that own the file' }),
|
|
123
|
+
(0, typeorm_1.OneToMany)(() => entity_file_entity_1.EntityFile, (entityFile) => entityFile.file, {
|
|
124
|
+
onDelete: "CASCADE",
|
|
125
|
+
onUpdate: "CASCADE",
|
|
126
|
+
eager: true,
|
|
127
|
+
}),
|
|
128
|
+
__metadata("design:type", Array)
|
|
129
|
+
], AttachedObject.prototype, "owners", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the comment', required: false }),
|
|
132
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
133
|
+
onDelete: "SET NULL",
|
|
134
|
+
onUpdate: "CASCADE",
|
|
135
|
+
nullable: true,
|
|
136
|
+
}),
|
|
137
|
+
(0, typeorm_1.JoinColumn)(),
|
|
138
|
+
__metadata("design:type", user_entity_1.User)
|
|
139
|
+
], AttachedObject.prototype, "createdBy", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who modified the comment', required: false }),
|
|
142
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
143
|
+
onDelete: "SET NULL",
|
|
144
|
+
onUpdate: "CASCADE",
|
|
145
|
+
nullable: true,
|
|
146
|
+
}),
|
|
147
|
+
(0, typeorm_1.JoinColumn)(),
|
|
148
|
+
__metadata("design:type", user_entity_1.User)
|
|
149
|
+
], AttachedObject.prototype, "modifiedBy", void 0);
|
|
150
|
+
exports.AttachedObject = AttachedObject = __decorate([
|
|
151
|
+
(0, typeorm_1.Entity)(),
|
|
152
|
+
(0, typeorm_1.Index)(["name", "module", "entityType", "entityId"], { unique: true })
|
|
153
|
+
], AttachedObject);
|
|
154
|
+
//# sourceMappingURL=attached_object.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attached_object.entity.js","sourceRoot":"","sources":["../../../src/entities/drive/attached_object.entity.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
import { Folder } from "./folder.entity";
|
|
3
|
+
import { EntityFile } from "../helpers/entity_file.entity";
|
|
4
|
+
import { User } from "../user.entity";
|
|
5
|
+
export declare class File extends EntityBase {
|
|
6
|
+
name: string;
|
|
7
|
+
number: number;
|
|
8
|
+
folder: Folder;
|
|
9
|
+
url: string;
|
|
10
|
+
size: number;
|
|
11
|
+
mimeType: string;
|
|
12
|
+
s3Key: string;
|
|
13
|
+
isDefault: boolean;
|
|
14
|
+
isTemporary: boolean;
|
|
15
|
+
owners?: EntityFile[];
|
|
16
|
+
createdBy?: User;
|
|
17
|
+
modifiedBy?: User;
|
|
18
|
+
accessLevel: number;
|
|
19
|
+
metadata: Record<string, any>;
|
|
20
|
+
}
|