easywork-common-lib 1.0.1376 → 1.0.1377
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 +112 -0
- package/dist/common/@types/enums/permission.enum.js +57 -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 +7 -0
- package/dist/common/@types/interfaces/index.js +24 -0
- package/dist/common/@types/interfaces/index.js.map +1 -0
- package/dist/common/@types/interfaces/lead-validation-rules.interface.d.ts +29 -0
- package/dist/common/@types/interfaces/lead-validation-rules.interface.js +10 -0
- package/dist/common/@types/interfaces/lead-validation-rules.interface.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 +93 -0
- package/dist/common/constants/app.contants.js +353 -0
- package/dist/common/constants/app.contants.js.map +1 -0
- package/dist/common/constants/capacitation.constants.d.ts +3 -0
- package/dist/common/constants/capacitation.constants.js +7 -0
- package/dist/common/constants/capacitation.constants.js.map +1 -0
- package/dist/common/constants/index.d.ts +5 -0
- package/dist/common/constants/index.js +22 -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/roles.constants.d.ts +109 -0
- package/dist/common/constants/roles.constants.js +117 -0
- package/dist/common/constants/roles.constants.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 +34 -0
- package/dist/common/database/base.entity.js +191 -0
- package/dist/common/database/base.entity.js.map +1 -0
- package/dist/common/database/comment.base.entity.d.ts +12 -0
- package/dist/common/database/comment.base.entity.js +106 -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 +2 -0
- package/dist/common/dtos/index.js +19 -0
- package/dist/common/dtos/index.js.map +1 -0
- package/dist/common/dtos/send-notification.dto.d.ts +13 -0
- package/dist/common/dtos/send-notification.dto.js +72 -0
- package/dist/common/dtos/send-notification.dto.js.map +1 -0
- package/dist/common/enums/common.enum.d.ts +58 -0
- package/dist/common/enums/common.enum.js +68 -0
- package/dist/common/enums/common.enum.js.map +1 -0
- package/dist/common/enums/drive.enum.d.ts +34 -0
- package/dist/common/enums/drive.enum.js +40 -0
- package/dist/common/enums/drive.enum.js.map +1 -0
- package/dist/common/enums/index.d.ts +6 -0
- package/dist/common/enums/index.js +23 -0
- package/dist/common/enums/index.js.map +1 -0
- package/dist/common/enums/notification.enum.d.ts +67 -0
- package/dist/common/enums/notification.enum.js +74 -0
- package/dist/common/enums/notification.enum.js.map +1 -0
- package/dist/common/enums/project.enum.d.ts +13 -0
- package/dist/common/enums/project.enum.js +19 -0
- package/dist/common/enums/project.enum.js.map +1 -0
- package/dist/common/enums/sales.enum.d.ts +182 -0
- package/dist/common/enums/sales.enum.js +217 -0
- package/dist/common/enums/sales.enum.js.map +1 -0
- package/dist/common/enums/tools.enum.d.ts +67 -0
- package/dist/common/enums/tools.enum.js +78 -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 +9 -0
- package/dist/common/index.js +26 -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/common/transformers/encryption.transformer.d.ts +2 -0
- package/dist/common/transformers/encryption.transformer.js +83 -0
- package/dist/common/transformers/encryption.transformer.js.map +1 -0
- package/dist/common/transformers/index.d.ts +1 -0
- package/dist/common/transformers/index.js +6 -0
- package/dist/common/transformers/index.js.map +1 -0
- package/dist/dtos/whatsapp-send-command.dto.d.ts +116 -0
- package/dist/dtos/whatsapp-send-command.dto.js +16 -0
- package/dist/dtos/whatsapp-send-command.dto.js.map +1 -0
- package/dist/entities/all-activities.entity.d.ts +49 -0
- package/dist/entities/all-activities.entity.js +631 -0
- package/dist/entities/all-activities.entity.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-certificate.entity.d.ts +26 -0
- package/dist/entities/capacitation/capacitation-certificate.entity.js +218 -0
- package/dist/entities/capacitation/capacitation-certificate.entity.js.map +1 -0
- package/dist/entities/capacitation/capacitation.entity.d.ts +34 -0
- package/dist/entities/capacitation/capacitation.entity.js +296 -0
- package/dist/entities/capacitation/capacitation.entity.js.map +1 -0
- package/dist/entities/capacitation/caso_top_capital/index.d.ts +2 -0
- package/dist/entities/capacitation/caso_top_capital/index.js +11 -0
- package/dist/entities/capacitation/caso_top_capital/index.js.map +1 -0
- package/dist/entities/capacitation/caso_top_capital/interview-one-finished.entity.d.ts +21 -0
- package/dist/entities/capacitation/caso_top_capital/interview-one-finished.entity.js +93 -0
- package/dist/entities/capacitation/caso_top_capital/interview-one-finished.entity.js.map +1 -0
- package/dist/entities/capacitation/caso_top_capital/interview-two-finished.entity.d.ts +28 -0
- package/dist/entities/capacitation/caso_top_capital/interview-two-finished.entity.js +117 -0
- package/dist/entities/capacitation/caso_top_capital/interview-two-finished.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 +22 -0
- package/dist/entities/capacitation/course.entity.js +128 -0
- package/dist/entities/capacitation/course.entity.js.map +1 -0
- package/dist/entities/capacitation/index.d.ts +12 -0
- package/dist/entities/capacitation/index.js +40 -0
- package/dist/entities/capacitation/index.js.map +1 -0
- package/dist/entities/capacitation/process-certificate/asignatures.entity.d.ts +15 -0
- package/dist/entities/capacitation/process-certificate/asignatures.entity.js +106 -0
- package/dist/entities/capacitation/process-certificate/asignatures.entity.js.map +1 -0
- package/dist/entities/capacitation/process-certificate/element-asignature.entity.d.ts +36 -0
- package/dist/entities/capacitation/process-certificate/element-asignature.entity.js +176 -0
- package/dist/entities/capacitation/process-certificate/element-asignature.entity.js.map +1 -0
- package/dist/entities/capacitation/process-certificate/index.d.ts +5 -0
- package/dist/entities/capacitation/process-certificate/index.js +16 -0
- package/dist/entities/capacitation/process-certificate/index.js.map +1 -0
- package/dist/entities/capacitation/process-certificate/kardex.entity.d.ts +17 -0
- package/dist/entities/capacitation/process-certificate/kardex.entity.js +95 -0
- package/dist/entities/capacitation/process-certificate/kardex.entity.js.map +1 -0
- package/dist/entities/capacitation/process-certificate/sections.entity.d.ts +13 -0
- package/dist/entities/capacitation/process-certificate/sections.entity.js +74 -0
- package/dist/entities/capacitation/process-certificate/sections.entity.js.map +1 -0
- package/dist/entities/capacitation/process-certificate/table-contents.entity.d.ts +12 -0
- package/dist/entities/capacitation/process-certificate/table-contents.entity.js +64 -0
- package/dist/entities/capacitation/process-certificate/table-contents.entity.js.map +1 -0
- package/dist/entities/capacitation/weeks-sections/index.d.ts +5 -0
- package/dist/entities/capacitation/weeks-sections/index.js +27 -0
- package/dist/entities/capacitation/weeks-sections/index.js.map +1 -0
- package/dist/entities/capacitation/weeks-sections/weeks-content-sections.entity.d.ts +15 -0
- package/dist/entities/capacitation/weeks-sections/weeks-content-sections.entity.js +100 -0
- package/dist/entities/capacitation/weeks-sections/weeks-content-sections.entity.js.map +1 -0
- package/dist/entities/capacitation/weeks-sections/weeks-respuestas-content.entity.d.ts +14 -0
- package/dist/entities/capacitation/weeks-sections/weeks-respuestas-content.entity.js +94 -0
- package/dist/entities/capacitation/weeks-sections/weeks-respuestas-content.entity.js.map +1 -0
- package/dist/entities/capacitation/weeks-sections/weeks-roles-play/index.d.ts +2 -0
- package/dist/entities/capacitation/weeks-sections/weeks-roles-play/index.js +19 -0
- package/dist/entities/capacitation/weeks-sections/weeks-roles-play/index.js.map +1 -0
- package/dist/entities/capacitation/weeks-sections/weeks-roles-play/roles-play-agent.entity.d.ts +15 -0
- package/dist/entities/capacitation/weeks-sections/weeks-roles-play/roles-play-agent.entity.js +88 -0
- package/dist/entities/capacitation/weeks-sections/weeks-roles-play/roles-play-agent.entity.js.map +1 -0
- package/dist/entities/capacitation/weeks-sections/weeks-roles-play/weeks-roles-play.entity.d.ts +9 -0
- package/dist/entities/capacitation/weeks-sections/weeks-roles-play/weeks-roles-play.entity.js +61 -0
- package/dist/entities/capacitation/weeks-sections/weeks-roles-play/weeks-roles-play.entity.js.map +1 -0
- package/dist/entities/capacitation/weeks-sections/weeks-sections.entity.d.ts +11 -0
- package/dist/entities/capacitation/weeks-sections/weeks-sections.entity.js +67 -0
- package/dist/entities/capacitation/weeks-sections/weeks-sections.entity.js.map +1 -0
- package/dist/entities/capacitation/weeks-sections/weeks.entity.d.ts +11 -0
- package/dist/entities/capacitation/weeks-sections/weeks.entity.js +67 -0
- package/dist/entities/capacitation/weeks-sections/weeks.entity.js.map +1 -0
- package/dist/entities/company.entity.d.ts +14 -0
- package/dist/entities/company.entity.js +116 -0
- package/dist/entities/company.entity.js.map +1 -0
- package/dist/entities/currency.entity.d.ts +6 -0
- package/dist/entities/currency.entity.js +43 -0
- package/dist/entities/currency.entity.js.map +1 -0
- package/dist/entities/drive/attached_object.entity.d.ts +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 +21 -0
- package/dist/entities/drive/folder.entity.js +201 -0
- package/dist/entities/drive/folder.entity.js.map +1 -0
- package/dist/entities/drive/index.d.ts +4 -0
- package/dist/entities/drive/index.js +21 -0
- package/dist/entities/drive/index.js.map +1 -0
- package/dist/entities/drive/policy-file-metadata.entity.d.ts +33 -0
- package/dist/entities/drive/policy-file-metadata.entity.js +190 -0
- package/dist/entities/drive/policy-file-metadata.entity.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 +40 -0
- package/dist/entities/email.entity.js.map +1 -0
- package/dist/entities/group/group-collection-responsible.entity.d.ts +14 -0
- package/dist/entities/group/group-collection-responsible.entity.js +79 -0
- package/dist/entities/group/group-collection-responsible.entity.js.map +1 -0
- package/dist/entities/group.entity.d.ts +19 -0
- package/dist/entities/group.entity.js +75 -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 +24 -0
- package/dist/entities/helpers/meeting_crm.entity.js +180 -0
- package/dist/entities/helpers/meeting_crm.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/capacitation/h_agent_capacitation_stage.entity.d.ts +8 -0
- package/dist/entities/helpers/sales/agent/capacitation/h_agent_capacitation_stage.entity.js +67 -0
- package/dist/entities/helpers/sales/agent/capacitation/h_agent_capacitation_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/certificate/h_agent_certificate_stage.entity.d.ts +8 -0
- package/dist/entities/helpers/sales/agent/certificate/h_agent_certificate_stage.entity.js +64 -0
- package/dist/entities/helpers/sales/agent/certificate/h_agent_certificate_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.d.ts +64 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.js +637 -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 +8 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.js +69 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/connection/tables/connection-content.entity.d.ts +13 -0
- package/dist/entities/helpers/sales/agent/connection/tables/connection-content.entity.js +88 -0
- package/dist/entities/helpers/sales/agent/connection/tables/connection-content.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/connection/tables/connection-response.entity.d.ts +10 -0
- package/dist/entities/helpers/sales/agent/connection/tables/connection-response.entity.js +68 -0
- package/dist/entities/helpers/sales/agent/connection/tables/connection-response.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/connection/tables/connection-section.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/agent/connection/tables/connection-section.entity.js +74 -0
- package/dist/entities/helpers/sales/agent/connection/tables/connection-section.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/connection/tables/connection-table.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/agent/connection/tables/connection-table.entity.js +71 -0
- package/dist/entities/helpers/sales/agent/connection/tables/connection-table.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/connection/tables/index.d.ts +4 -0
- package/dist/entities/helpers/sales/agent/connection/tables/index.js +21 -0
- package/dist/entities/helpers/sales/agent/connection/tables/index.js.map +1 -0
- package/dist/entities/helpers/sales/agent/h_agent_experiences.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/agent/h_agent_experiences.entity.js +38 -0
- package/dist/entities/helpers/sales/agent/h_agent_experiences.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/h_agent_manual_referrals.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/agent/h_agent_manual_referrals.entity.js +38 -0
- package/dist/entities/helpers/sales/agent/h_agent_manual_referrals.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 +13 -0
- package/dist/entities/helpers/sales/agent/index.js +30 -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 +22 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.js +195 -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_other_referrals.entity.d.ts +9 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_other_referrals.entity.js +64 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_other_referrals.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.d.ts +8 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.js +64 -0
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/agent/recruitment/training-type.entity.d.ts +9 -0
- package/dist/entities/helpers/sales/agent/recruitment/training-type.entity.js +65 -0
- package/dist/entities/helpers/sales/agent/recruitment/training-type.entity.js.map +1 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +7 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.js +56 -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 +40 -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 +11 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js +55 -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 +36 -0
- package/dist/entities/helpers/tools/event_crm.entity.js +265 -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 +38 -0
- package/dist/entities/helpers/tools/task_crm.entity.js +272 -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/import-job.entity.d.ts +36 -0
- package/dist/entities/import-job.entity.js +140 -0
- package/dist/entities/import-job.entity.js.map +1 -0
- package/dist/entities/index.d.ts +63 -0
- package/dist/entities/index.js +80 -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/messaging/whatsapp/group-whatsapp-number.entity.d.ts +18 -0
- package/dist/entities/messaging/whatsapp/group-whatsapp-number.entity.js +143 -0
- package/dist/entities/messaging/whatsapp/group-whatsapp-number.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/index.d.ts +10 -0
- package/dist/entities/messaging/whatsapp/index.js +27 -0
- package/dist/entities/messaging/whatsapp/index.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-conversation-crm.entity.d.ts +23 -0
- package/dist/entities/messaging/whatsapp/whatsapp-conversation-crm.entity.js +134 -0
- package/dist/entities/messaging/whatsapp/whatsapp-conversation-crm.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-conversation.entity.d.ts +30 -0
- package/dist/entities/messaging/whatsapp/whatsapp-conversation.entity.js +249 -0
- package/dist/entities/messaging/whatsapp/whatsapp-conversation.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-message-cost.entity.d.ts +23 -0
- package/dist/entities/messaging/whatsapp/whatsapp-message-cost.entity.js +145 -0
- package/dist/entities/messaging/whatsapp/whatsapp-message-cost.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-message.entity.d.ts +46 -0
- package/dist/entities/messaging/whatsapp/whatsapp-message.entity.js +269 -0
- package/dist/entities/messaging/whatsapp/whatsapp-message.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-provider-configuration.entity.d.ts +25 -0
- package/dist/entities/messaging/whatsapp/whatsapp-provider-configuration.entity.js +164 -0
- package/dist/entities/messaging/whatsapp/whatsapp-provider-configuration.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-provider.entity.d.ts +24 -0
- package/dist/entities/messaging/whatsapp/whatsapp-provider.entity.js +99 -0
- package/dist/entities/messaging/whatsapp/whatsapp-provider.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-template.entity.d.ts +39 -0
- package/dist/entities/messaging/whatsapp/whatsapp-template.entity.js +122 -0
- package/dist/entities/messaging/whatsapp/whatsapp-template.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-webhook-log.entity.d.ts +12 -0
- package/dist/entities/messaging/whatsapp/whatsapp-webhook-log.entity.js +106 -0
- package/dist/entities/messaging/whatsapp/whatsapp-webhook-log.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp.enum.d.ts +68 -0
- package/dist/entities/messaging/whatsapp/whatsapp.enum.js +82 -0
- package/dist/entities/messaging/whatsapp/whatsapp.enum.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 +10 -0
- package/dist/entities/otp-log.entity.js +61 -0
- package/dist/entities/otp-log.entity.js.map +1 -0
- package/dist/entities/payments/banbajio-payment.entity.d.ts +26 -0
- package/dist/entities/payments/banbajio-payment.entity.js +92 -0
- package/dist/entities/payments/banbajio-payment.entity.js.map +1 -0
- package/dist/entities/payments/payment.entity.d.ts +58 -0
- package/dist/entities/payments/payment.entity.js +191 -0
- package/dist/entities/payments/payment.entity.js.map +1 -0
- package/dist/entities/payments/stripe-payment.entity.d.ts +50 -0
- package/dist/entities/payments/stripe-payment.entity.js +231 -0
- package/dist/entities/payments/stripe-payment.entity.js.map +1 -0
- package/dist/entities/permission.entity.d.ts +14 -0
- package/dist/entities/permission.entity.js +133 -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 +49 -0
- package/dist/entities/policy/policy-version.entity.js +458 -0
- package/dist/entities/policy/policy-version.entity.js.map +1 -0
- package/dist/entities/policy/policy.entity.d.ts +32 -0
- package/dist/entities/policy/policy.entity.js +330 -0
- package/dist/entities/policy/policy.entity.js.map +1 -0
- package/dist/entities/policy/version-comment.entity.d.ts +7 -0
- package/dist/entities/policy/version-comment.entity.js +36 -0
- package/dist/entities/policy/version-comment.entity.js.map +1 -0
- package/dist/entities/policy-tag.entity.d.ts +10 -0
- package/dist/entities/policy-tag.entity.js +65 -0
- package/dist/entities/policy-tag.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/project_management/activities/activities-comment.entity.d.ts +11 -0
- package/dist/entities/project_management/activities/activities-comment.entity.js +63 -0
- package/dist/entities/project_management/activities/activities-comment.entity.js.map +1 -0
- package/dist/entities/project_management/activities/activity-file.entity.d.ts +11 -0
- package/dist/entities/project_management/activities/activity-file.entity.js +64 -0
- package/dist/entities/project_management/activities/activity-file.entity.js.map +1 -0
- package/dist/entities/project_management/activities/activity.entity.d.ts +21 -0
- package/dist/entities/project_management/activities/activity.entity.js +111 -0
- package/dist/entities/project_management/activities/activity.entity.js.map +1 -0
- package/dist/entities/project_management/activities/index.d.ts +3 -0
- package/dist/entities/project_management/activities/index.js +20 -0
- package/dist/entities/project_management/activities/index.js.map +1 -0
- package/dist/entities/project_management/index.d.ts +2 -0
- package/dist/entities/project_management/index.js +19 -0
- package/dist/entities/project_management/index.js.map +1 -0
- package/dist/entities/project_management/project/index.d.ts +3 -0
- package/dist/entities/project_management/project/index.js +20 -0
- package/dist/entities/project_management/project/index.js.map +1 -0
- package/dist/entities/project_management/project/project-comment.entity.d.ts +11 -0
- package/dist/entities/project_management/project/project-comment.entity.js +63 -0
- package/dist/entities/project_management/project/project-comment.entity.js.map +1 -0
- package/dist/entities/project_management/project/project-file.entity.d.ts +11 -0
- package/dist/entities/project_management/project/project-file.entity.js +64 -0
- package/dist/entities/project_management/project/project-file.entity.js.map +1 -0
- package/dist/entities/project_management/project/project.entity.d.ts +24 -0
- package/dist/entities/project_management/project/project.entity.js +123 -0
- package/dist/entities/project_management/project/project.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/qrcode.entity.d.ts +9 -0
- package/dist/entities/qrcode.entity.js +54 -0
- package/dist/entities/qrcode.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-audit-log.entity.d.ts +25 -0
- package/dist/entities/role-audit-log.entity.js +122 -0
- package/dist/entities/role-audit-log.entity.js.map +1 -0
- package/dist/entities/role.entity.d.ts +16 -0
- package/dist/entities/role.entity.js +131 -0
- package/dist/entities/role.entity.js.map +1 -0
- package/dist/entities/sales/agent-comment.entity.d.ts +7 -0
- package/dist/entities/sales/agent-comment.entity.js +36 -0
- package/dist/entities/sales/agent-comment.entity.js.map +1 -0
- package/dist/entities/sales/agent.entity.d.ts +82 -0
- package/dist/entities/sales/agent.entity.js +681 -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 +61 -0
- package/dist/entities/sales/contact.entity.js +548 -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 +17 -0
- package/dist/entities/sales/index.js +34 -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-validation-rule.entity.d.ts +7 -0
- package/dist/entities/sales/lead-validation-rule.entity.js +34 -0
- package/dist/entities/sales/lead-validation-rule.entity.js.map +1 -0
- package/dist/entities/sales/lead.entity.d.ts +66 -0
- package/dist/entities/sales/lead.entity.js +631 -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 +39 -0
- package/dist/entities/sales/poliza/poliza_claim.entity.js +328 -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 +36 -0
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.js +302 -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 +39 -0
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.js +320 -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 +42 -0
- package/dist/entities/sales/poliza/poliza_scheduling.entity.js +342 -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 +7 -0
- package/dist/entities/sales/receipt-comment.entity.js +33 -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/subgroup.entity.d.ts +8 -0
- package/dist/entities/subgroup.entity.js +45 -0
- package/dist/entities/subgroup.entity.js.map +1 -0
- package/dist/entities/subscriptions/feature.entity.d.ts +25 -0
- package/dist/entities/subscriptions/feature.entity.js +75 -0
- package/dist/entities/subscriptions/feature.entity.js.map +1 -0
- package/dist/entities/subscriptions/plan-feature.entity.d.ts +10 -0
- package/dist/entities/subscriptions/plan-feature.entity.js +56 -0
- package/dist/entities/subscriptions/plan-feature.entity.js.map +1 -0
- package/dist/entities/subscriptions/plan.entity.d.ts +15 -0
- package/dist/entities/subscriptions/plan.entity.js +73 -0
- package/dist/entities/subscriptions/plan.entity.js.map +1 -0
- package/dist/entities/subscriptions/subscription.entity.d.ts +30 -0
- package/dist/entities/subscriptions/subscription.entity.js +150 -0
- package/dist/entities/subscriptions/subscription.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/template.entity.d.ts +9 -0
- package/dist/entities/template.entity.js +78 -0
- package/dist/entities/template.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 +25 -0
- package/dist/entities/thirdparty/oauth.entity.js +82 -0
- package/dist/entities/thirdparty/oauth.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/index.d.ts +7 -0
- package/dist/entities/thirdparty/wati/index.js +24 -0
- package/dist/entities/thirdparty/wati/index.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati-chat.entity.d.ts +27 -0
- package/dist/entities/thirdparty/wati/wati-chat.entity.js +207 -0
- package/dist/entities/thirdparty/wati/wati-chat.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati-configuration.entity.d.ts +22 -0
- package/dist/entities/thirdparty/wati/wati-configuration.entity.js +149 -0
- package/dist/entities/thirdparty/wati/wati-configuration.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati-events.entity.d.ts +9 -0
- package/dist/entities/thirdparty/wati/wati-events.entity.js +63 -0
- package/dist/entities/thirdparty/wati/wati-events.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati-message.entity.d.ts +30 -0
- package/dist/entities/thirdparty/wati/wati-message.entity.js +280 -0
- package/dist/entities/thirdparty/wati/wati-message.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati-user-access-log.entity.d.ts +71 -0
- package/dist/entities/thirdparty/wati/wati-user-access-log.entity.js +216 -0
- package/dist/entities/thirdparty/wati/wati-user-access-log.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati-user-access.entity.d.ts +31 -0
- package/dist/entities/thirdparty/wati/wati-user-access.entity.js +193 -0
- package/dist/entities/thirdparty/wati/wati-user-access.entity.js.map +1 -0
- package/dist/entities/thirdparty/wati/wati.enum.d.ts +69 -0
- package/dist/entities/thirdparty/wati/wati.enum.js +83 -0
- package/dist/entities/thirdparty/wati/wati.enum.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 +12 -0
- package/dist/entities/tools/calendar/calendar-general-config.entity.js +67 -0
- package/dist/entities/tools/calendar/calendar-general-config.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-item.entity.d.ts +33 -0
- package/dist/entities/tools/calendar/calendar-item.entity.js +188 -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-location.entity.d.ts +7 -0
- package/dist/entities/tools/calendar/event-location.entity.js +44 -0
- package/dist/entities/tools/calendar/event-location.entity.js.map +1 -0
- package/dist/entities/tools/calendar/event.entity.d.ts +43 -0
- package/dist/entities/tools/calendar/event.entity.js +267 -0
- package/dist/entities/tools/calendar/event.entity.js.map +1 -0
- package/dist/entities/tools/calendar/index.d.ts +9 -0
- package/dist/entities/tools/calendar/index.js +26 -0
- package/dist/entities/tools/calendar/index.js.map +1 -0
- package/dist/entities/tools/index.d.ts +9 -0
- package/dist/entities/tools/index.js +26 -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-contact.entity.d.ts +13 -0
- package/dist/entities/tools/mail/mail-contact.entity.js +68 -0
- package/dist/entities/tools/mail/mail-contact.entity.js.map +1 -0
- package/dist/entities/tools/mail/mail-crm-queue-distribution.entity.d.ts +8 -0
- package/dist/entities/tools/mail/mail-crm-queue-distribution.entity.js +38 -0
- package/dist/entities/tools/mail/mail-crm-queue-distribution.entity.js.map +1 -0
- package/dist/entities/tools/mail/mail-crm-queue-entities-assigned.entity.d.ts +9 -0
- package/dist/entities/tools/mail/mail-crm-queue-entities-assigned.entity.js +39 -0
- package/dist/entities/tools/mail/mail-crm-queue-entities-assigned.entity.js.map +1 -0
- package/dist/entities/tools/mail/mail-crm-queue-status.entity.d.ts +9 -0
- package/dist/entities/tools/mail/mail-crm-queue-status.entity.js +44 -0
- package/dist/entities/tools/mail/mail-crm-queue-status.entity.js.map +1 -0
- package/dist/entities/tools/mail/mail-gmail.entity.d.ts +7 -0
- package/dist/entities/tools/mail/mail-gmail.entity.js +41 -0
- package/dist/entities/tools/mail/mail-gmail.entity.js.map +1 -0
- package/dist/entities/tools/mail/mail.entity.d.ts +67 -0
- package/dist/entities/tools/mail/mail.entity.js +137 -0
- package/dist/entities/tools/mail/mail.entity.js.map +1 -0
- package/dist/entities/tools/mail/mailbox-user-access.entity.d.ts +7 -0
- package/dist/entities/tools/mail/mailbox-user-access.entity.js +33 -0
- package/dist/entities/tools/mail/mailbox-user-access.entity.js.map +1 -0
- package/dist/entities/tools/mail/mailbox.entity.d.ts +58 -0
- package/dist/entities/tools/mail/mailbox.entity.js +113 -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-template-permission.entity.d.ts +7 -0
- package/dist/entities/tools/task-template-permission.entity.js +51 -0
- package/dist/entities/tools/task-template-permission.entity.js.map +1 -0
- package/dist/entities/tools/task-template.entity.d.ts +26 -0
- package/dist/entities/tools/task-template.entity.js +225 -0
- package/dist/entities/tools/task-template.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 +59 -0
- package/dist/entities/tools/task.entity.js +518 -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-from-cognito.entity.d.ts +5 -0
- package/dist/entities/user-from-cognito.entity.js +35 -0
- package/dist/entities/user-from-cognito.entity.js.map +1 -0
- package/dist/entities/user-group-status.entity.d.ts +10 -0
- package/dist/entities/user-group-status.entity.js +71 -0
- package/dist/entities/user-group-status.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-special-role.entity.d.ts +21 -0
- package/dist/entities/user-special-role.entity.js +94 -0
- package/dist/entities/user-special-role.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +50 -0
- package/dist/entities/user.entity.js +326 -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 +339 -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/authorization/authorization.module.d.ts +26 -0
- package/dist/modules/authorization/authorization.module.js +105 -0
- package/dist/modules/authorization/authorization.module.js.map +1 -0
- package/dist/modules/authorization/config/resource-configurations.d.ts +12 -0
- package/dist/modules/authorization/config/resource-configurations.js +124 -0
- package/dist/modules/authorization/config/resource-configurations.js.map +1 -0
- package/dist/modules/authorization/decorators/contact-permissions.decorator.d.ts +13 -0
- package/dist/modules/authorization/decorators/contact-permissions.decorator.js +101 -0
- package/dist/modules/authorization/decorators/contact-permissions.decorator.js.map +1 -0
- package/dist/modules/authorization/decorators/permissions.decorator.d.ts +51 -0
- package/dist/modules/authorization/decorators/permissions.decorator.js +144 -0
- package/dist/modules/authorization/decorators/permissions.decorator.js.map +1 -0
- package/dist/modules/authorization/factories/resource-authorization.factory.d.ts +55 -0
- package/dist/modules/authorization/factories/resource-authorization.factory.js +184 -0
- package/dist/modules/authorization/factories/resource-authorization.factory.js.map +1 -0
- package/dist/modules/authorization/index.d.ts +7 -0
- package/dist/modules/authorization/index.js +24 -0
- package/dist/modules/authorization/index.js.map +1 -0
- package/dist/modules/authorization/interfaces/authorization.interface.d.ts +23 -0
- package/dist/modules/authorization/interfaces/authorization.interface.js +3 -0
- package/dist/modules/authorization/interfaces/authorization.interface.js.map +1 -0
- package/dist/modules/authorization/services/authorization.service.d.ts +25 -0
- package/dist/modules/authorization/services/authorization.service.js +139 -0
- package/dist/modules/authorization/services/authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/dynamic-filter.service.d.ts +9 -0
- package/dist/modules/authorization/services/dynamic-filter.service.js +238 -0
- package/dist/modules/authorization/services/dynamic-filter.service.js.map +1 -0
- package/dist/modules/authorization/services/index.d.ts +7 -0
- package/dist/modules/authorization/services/index.js +24 -0
- package/dist/modules/authorization/services/index.js.map +1 -0
- package/dist/modules/authorization/services/modules/contact-authorization.service.d.ts +29 -0
- package/dist/modules/authorization/services/modules/contact-authorization.service.js +105 -0
- package/dist/modules/authorization/services/modules/contact-authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/modules/index.d.ts +4 -0
- package/dist/modules/authorization/services/modules/index.js +21 -0
- package/dist/modules/authorization/services/modules/index.js.map +1 -0
- package/dist/modules/authorization/services/modules/lead-authorization.service.d.ts +27 -0
- package/dist/modules/authorization/services/modules/lead-authorization.service.js +96 -0
- package/dist/modules/authorization/services/modules/lead-authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/modules/policy-authorization.service.d.ts +28 -0
- package/dist/modules/authorization/services/modules/policy-authorization.service.js +100 -0
- package/dist/modules/authorization/services/modules/policy-authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/modules/task-authorization.service.d.ts +28 -0
- package/dist/modules/authorization/services/modules/task-authorization.service.js +100 -0
- package/dist/modules/authorization/services/modules/task-authorization.service.js.map +1 -0
- package/dist/modules/authorization/services/permission-cache.service.d.ts +10 -0
- package/dist/modules/authorization/services/permission-cache.service.js +48 -0
- package/dist/modules/authorization/services/permission-cache.service.js.map +1 -0
- package/dist/modules/authorization/services/permission-evaluator.service.d.ts +26 -0
- package/dist/modules/authorization/services/permission-evaluator.service.js +328 -0
- package/dist/modules/authorization/services/permission-evaluator.service.js.map +1 -0
- package/dist/modules/authorization/services/resource-access-filter.service.d.ts +20 -0
- package/dist/modules/authorization/services/resource-access-filter.service.js +406 -0
- package/dist/modules/authorization/services/resource-access-filter.service.js.map +1 -0
- package/dist/modules/authorization/services/resource-authorization.service.d.ts +47 -0
- package/dist/modules/authorization/services/resource-authorization.service.js +184 -0
- package/dist/modules/authorization/services/resource-authorization.service.js.map +1 -0
- package/dist/modules/index.d.ts +6 -0
- package/dist/modules/index.js +23 -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 +69 -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 +55 -55
|
@@ -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":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qDAA4C;AAC5C,qCAA6F;AAC7F,sEAA2D;AAC3D,6CAA8C;AAC9C,yCAA8D;AAC9D,gDAAsC;AAI/B,IAAM,cAAc,GAApB,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EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACzD,cAAc,CAiG1B"}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
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.File = 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 folder_entity_1 = require("./folder.entity");
|
|
17
|
+
const entity_file_entity_1 = require("../helpers/entity_file.entity");
|
|
18
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
19
|
+
const user_entity_1 = require("../user.entity");
|
|
20
|
+
let File = class File extends base_entity_1.EntityBase {
|
|
21
|
+
name;
|
|
22
|
+
number;
|
|
23
|
+
folder;
|
|
24
|
+
url;
|
|
25
|
+
size;
|
|
26
|
+
mimeType;
|
|
27
|
+
s3Key;
|
|
28
|
+
isDefault;
|
|
29
|
+
isTemporary;
|
|
30
|
+
owners;
|
|
31
|
+
createdBy;
|
|
32
|
+
modifiedBy;
|
|
33
|
+
accessLevel;
|
|
34
|
+
metadata;
|
|
35
|
+
};
|
|
36
|
+
exports.File = File;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Name of the file", minLength: 1 }),
|
|
39
|
+
(0, class_validator_1.MinLength)(1),
|
|
40
|
+
(0, typeorm_1.Column)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], File.prototype, "name", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)(),
|
|
45
|
+
(0, typeorm_1.Generated)("increment"),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], File.prototype, "number", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({
|
|
50
|
+
type: () => folder_entity_1.Folder,
|
|
51
|
+
description: "Folder associated with the file",
|
|
52
|
+
}),
|
|
53
|
+
(0, typeorm_1.ManyToOne)(() => folder_entity_1.Folder, (folder) => folder.files, {
|
|
54
|
+
onDelete: "CASCADE",
|
|
55
|
+
onUpdate: "CASCADE",
|
|
56
|
+
eager: true,
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", folder_entity_1.Folder)
|
|
59
|
+
], File.prototype, "folder", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiProperty)({
|
|
62
|
+
type: String,
|
|
63
|
+
description: "URL of the file",
|
|
64
|
+
required: false,
|
|
65
|
+
}),
|
|
66
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], File.prototype, "url", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, swagger_1.ApiProperty)({
|
|
71
|
+
type: "bigint",
|
|
72
|
+
description: "Size of the file in bytes",
|
|
73
|
+
required: false,
|
|
74
|
+
}),
|
|
75
|
+
(0, typeorm_1.Column)({ nullable: true, type: "bigint" }),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], File.prototype, "size", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, swagger_1.ApiProperty)({
|
|
80
|
+
type: String,
|
|
81
|
+
description: "MIME type of the file",
|
|
82
|
+
required: false,
|
|
83
|
+
}),
|
|
84
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], File.prototype, "mimeType", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, swagger_1.ApiProperty)({
|
|
89
|
+
type: String,
|
|
90
|
+
description: "S3 key of the file",
|
|
91
|
+
required: false,
|
|
92
|
+
}),
|
|
93
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], File.prototype, "s3Key", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, swagger_1.ApiProperty)({
|
|
98
|
+
type: Boolean,
|
|
99
|
+
description: "Is this the default file?",
|
|
100
|
+
default: false,
|
|
101
|
+
}),
|
|
102
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
103
|
+
__metadata("design:type", Boolean)
|
|
104
|
+
], File.prototype, "isDefault", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, swagger_1.ApiProperty)({
|
|
107
|
+
type: Boolean,
|
|
108
|
+
description: "Is this a temporary file?",
|
|
109
|
+
default: false,
|
|
110
|
+
}),
|
|
111
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
112
|
+
__metadata("design:type", Boolean)
|
|
113
|
+
], File.prototype, "isTemporary", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, swagger_1.ApiProperty)({
|
|
116
|
+
type: () => [entity_file_entity_1.EntityFile],
|
|
117
|
+
description: "Entities that own the file",
|
|
118
|
+
}),
|
|
119
|
+
(0, typeorm_1.OneToMany)(() => entity_file_entity_1.EntityFile, (entityFile) => entityFile.file, {
|
|
120
|
+
onDelete: "CASCADE",
|
|
121
|
+
onUpdate: "CASCADE",
|
|
122
|
+
eager: true,
|
|
123
|
+
}),
|
|
124
|
+
__metadata("design:type", Array)
|
|
125
|
+
], File.prototype, "owners", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, swagger_1.ApiProperty)({
|
|
128
|
+
type: () => user_entity_1.User,
|
|
129
|
+
description: "User who created the comment",
|
|
130
|
+
required: false,
|
|
131
|
+
}),
|
|
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
|
+
], File.prototype, "createdBy", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, swagger_1.ApiProperty)({
|
|
142
|
+
type: () => user_entity_1.User,
|
|
143
|
+
description: "User who modified the comment",
|
|
144
|
+
required: false,
|
|
145
|
+
}),
|
|
146
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
147
|
+
onDelete: "SET NULL",
|
|
148
|
+
onUpdate: "CASCADE",
|
|
149
|
+
nullable: true,
|
|
150
|
+
}),
|
|
151
|
+
(0, typeorm_1.JoinColumn)(),
|
|
152
|
+
__metadata("design:type", user_entity_1.User)
|
|
153
|
+
], File.prototype, "modifiedBy", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, swagger_1.ApiProperty)({
|
|
156
|
+
type: () => Number,
|
|
157
|
+
description: "Access level required to see the file",
|
|
158
|
+
required: false,
|
|
159
|
+
}),
|
|
160
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
161
|
+
__metadata("design:type", Number)
|
|
162
|
+
], File.prototype, "accessLevel", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, swagger_1.ApiProperty)({
|
|
165
|
+
type: Object,
|
|
166
|
+
description: "Additional metadata for the file",
|
|
167
|
+
required: false,
|
|
168
|
+
}),
|
|
169
|
+
(0, typeorm_1.Column)({
|
|
170
|
+
type: "json",
|
|
171
|
+
nullable: true,
|
|
172
|
+
}),
|
|
173
|
+
__metadata("design:type", Object)
|
|
174
|
+
], File.prototype, "metadata", void 0);
|
|
175
|
+
exports.File = File = __decorate([
|
|
176
|
+
(0, typeorm_1.Entity)()
|
|
177
|
+
], File);
|
|
178
|
+
//# sourceMappingURL=file.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.entity.js","sourceRoot":"","sources":["../../../src/entities/drive/file.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qDAA4C;AAC5C,qCAOiB;AACjB,mDAAyC;AACzC,sEAA2D;AAC3D,6CAA8C;AAC9C,gDAAsC;AAG/B,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAIlC,IAAI,CAAS;IAIb,MAAM,CAAS;IAWf,MAAM,CAAS;IAQf,GAAG,CAAS;IAQZ,IAAI,CAAS;IAQb,QAAQ,CAAS;IAQjB,KAAK,CAAS;IAQd,SAAS,CAAU;IAQnB,WAAW,CAAU;IAWrB,MAAM,CAAgB;IAatB,SAAS,CA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AI;uCAAC;AAajB;IAXC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI;QAChB,WAAW,EAAE,+BAA+B;QAC5C,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,kBAAI;wCAAC;AAQlB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM;QAClB,WAAW,EAAE,uCAAuC;QACpD,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yCACH;AAWpB;IATC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,kCAAkC;QAC/C,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;;sCAC4B;eA3HnB,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA4HhB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
import { File } from "./file.entity";
|
|
3
|
+
import { EntityFolder } from "../helpers/entity_folder.entity";
|
|
4
|
+
import { User } from "../user.entity";
|
|
5
|
+
export declare class Folder extends EntityBase {
|
|
6
|
+
name: string;
|
|
7
|
+
number: number;
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
parent: Folder;
|
|
10
|
+
linkedTo: Folder[];
|
|
11
|
+
linkedChildren: Folder[];
|
|
12
|
+
uid: string;
|
|
13
|
+
files?: File[];
|
|
14
|
+
folders?: Folder[];
|
|
15
|
+
owners?: EntityFolder[];
|
|
16
|
+
metadata: Record<string, any>;
|
|
17
|
+
accessLevel: number;
|
|
18
|
+
generateUid(): void;
|
|
19
|
+
createdBy?: User;
|
|
20
|
+
modifiedBy?: User;
|
|
21
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
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.Folder = 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 file_entity_1 = require("./file.entity");
|
|
17
|
+
const entity_folder_entity_1 = require("../helpers/entity_folder.entity");
|
|
18
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
19
|
+
const nanoid_1 = require("nanoid");
|
|
20
|
+
const user_entity_1 = require("../user.entity");
|
|
21
|
+
let Folder = class Folder extends base_entity_1.EntityBase {
|
|
22
|
+
name;
|
|
23
|
+
number;
|
|
24
|
+
hidden;
|
|
25
|
+
parent;
|
|
26
|
+
linkedTo;
|
|
27
|
+
linkedChildren;
|
|
28
|
+
uid;
|
|
29
|
+
files;
|
|
30
|
+
folders;
|
|
31
|
+
owners;
|
|
32
|
+
metadata;
|
|
33
|
+
accessLevel;
|
|
34
|
+
generateUid() {
|
|
35
|
+
if (!this.uid) {
|
|
36
|
+
this.uid = (0, nanoid_1.nanoid)(13);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
createdBy;
|
|
40
|
+
modifiedBy;
|
|
41
|
+
};
|
|
42
|
+
exports.Folder = Folder;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)({
|
|
45
|
+
type: String,
|
|
46
|
+
description: "Name of the folder",
|
|
47
|
+
minLength: 1,
|
|
48
|
+
}),
|
|
49
|
+
(0, class_validator_1.MinLength)(1),
|
|
50
|
+
(0, typeorm_1.Column)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], Folder.prototype, "name", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)(),
|
|
55
|
+
(0, typeorm_1.Generated)("increment"),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], Folder.prototype, "number", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, swagger_1.ApiProperty)({
|
|
60
|
+
type: Boolean,
|
|
61
|
+
description: "Is the folder hidden?",
|
|
62
|
+
default: false,
|
|
63
|
+
}),
|
|
64
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
65
|
+
__metadata("design:type", Boolean)
|
|
66
|
+
], Folder.prototype, "hidden", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, swagger_1.ApiProperty)({
|
|
69
|
+
type: () => Folder,
|
|
70
|
+
description: "Parent folder",
|
|
71
|
+
required: false,
|
|
72
|
+
}),
|
|
73
|
+
(0, typeorm_1.ManyToOne)(() => Folder, {
|
|
74
|
+
onDelete: "CASCADE",
|
|
75
|
+
onUpdate: "CASCADE",
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", Folder)
|
|
78
|
+
], Folder.prototype, "parent", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, swagger_1.ApiProperty)({
|
|
81
|
+
type: () => [Folder],
|
|
82
|
+
description: "Parent folders - this folder can be linked to multiple parent folders",
|
|
83
|
+
required: false,
|
|
84
|
+
}),
|
|
85
|
+
(0, typeorm_1.ManyToMany)(() => Folder, (folder) => folder.linkedChildren, {
|
|
86
|
+
onDelete: "CASCADE",
|
|
87
|
+
onUpdate: "CASCADE",
|
|
88
|
+
}),
|
|
89
|
+
(0, typeorm_1.JoinTable)({
|
|
90
|
+
name: "folder_links",
|
|
91
|
+
joinColumn: { name: "child_folder_id", referencedColumnName: "id" },
|
|
92
|
+
inverseJoinColumn: { name: "parent_folder_id", referencedColumnName: "id" },
|
|
93
|
+
}),
|
|
94
|
+
__metadata("design:type", Array)
|
|
95
|
+
], Folder.prototype, "linkedTo", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, swagger_1.ApiProperty)({
|
|
98
|
+
type: () => [Folder],
|
|
99
|
+
description: "Child folders linked to this parent folder",
|
|
100
|
+
required: false,
|
|
101
|
+
}),
|
|
102
|
+
(0, typeorm_1.ManyToMany)(() => Folder, (folder) => folder.linkedTo),
|
|
103
|
+
__metadata("design:type", Array)
|
|
104
|
+
], Folder.prototype, "linkedChildren", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "UID", minLength: 13 }),
|
|
107
|
+
(0, typeorm_1.Column)({ length: 13, unique: true }),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], Folder.prototype, "uid", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, swagger_1.ApiProperty)({ type: () => [file_entity_1.File], description: "Files in the folder" }),
|
|
112
|
+
(0, typeorm_1.OneToMany)(() => file_entity_1.File, (file) => file.folder, {
|
|
113
|
+
onDelete: "CASCADE",
|
|
114
|
+
onUpdate: "CASCADE",
|
|
115
|
+
}),
|
|
116
|
+
__metadata("design:type", Array)
|
|
117
|
+
], Folder.prototype, "files", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, swagger_1.ApiProperty)({
|
|
120
|
+
type: () => [Folder],
|
|
121
|
+
description: "Subfolders in the folder",
|
|
122
|
+
}),
|
|
123
|
+
(0, typeorm_1.OneToMany)(() => Folder, (folder) => folder.parent, {
|
|
124
|
+
onDelete: "CASCADE",
|
|
125
|
+
onUpdate: "CASCADE",
|
|
126
|
+
}),
|
|
127
|
+
__metadata("design:type", Array)
|
|
128
|
+
], Folder.prototype, "folders", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, swagger_1.ApiProperty)({
|
|
131
|
+
type: () => [entity_folder_entity_1.EntityFolder],
|
|
132
|
+
description: "Entities that own the folder",
|
|
133
|
+
}),
|
|
134
|
+
(0, typeorm_1.OneToMany)(() => entity_folder_entity_1.EntityFolder, (entityFolder) => entityFolder.folder, {
|
|
135
|
+
onDelete: "CASCADE",
|
|
136
|
+
onUpdate: "CASCADE",
|
|
137
|
+
eager: true,
|
|
138
|
+
}),
|
|
139
|
+
__metadata("design:type", Array)
|
|
140
|
+
], Folder.prototype, "owners", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, swagger_1.ApiProperty)({
|
|
143
|
+
type: Object,
|
|
144
|
+
description: "Additional metadata for the folder",
|
|
145
|
+
required: false,
|
|
146
|
+
}),
|
|
147
|
+
(0, typeorm_1.Column)({
|
|
148
|
+
type: "json",
|
|
149
|
+
nullable: true,
|
|
150
|
+
}),
|
|
151
|
+
__metadata("design:type", Object)
|
|
152
|
+
], Folder.prototype, "metadata", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, swagger_1.ApiProperty)({
|
|
155
|
+
type: () => Number,
|
|
156
|
+
description: "Access level required to see the file",
|
|
157
|
+
required: false,
|
|
158
|
+
}),
|
|
159
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
160
|
+
__metadata("design:type", Number)
|
|
161
|
+
], Folder.prototype, "accessLevel", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
164
|
+
__metadata("design:type", Function),
|
|
165
|
+
__metadata("design:paramtypes", []),
|
|
166
|
+
__metadata("design:returntype", void 0)
|
|
167
|
+
], Folder.prototype, "generateUid", null);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, swagger_1.ApiProperty)({
|
|
170
|
+
type: () => user_entity_1.User,
|
|
171
|
+
description: "User who created the comment",
|
|
172
|
+
required: false,
|
|
173
|
+
}),
|
|
174
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
175
|
+
onDelete: "SET NULL",
|
|
176
|
+
onUpdate: "CASCADE",
|
|
177
|
+
nullable: true,
|
|
178
|
+
}),
|
|
179
|
+
(0, typeorm_1.JoinColumn)(),
|
|
180
|
+
__metadata("design:type", user_entity_1.User)
|
|
181
|
+
], Folder.prototype, "createdBy", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, swagger_1.ApiProperty)({
|
|
184
|
+
type: () => user_entity_1.User,
|
|
185
|
+
description: "User who modified the comment",
|
|
186
|
+
required: false,
|
|
187
|
+
}),
|
|
188
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
189
|
+
onDelete: "SET NULL",
|
|
190
|
+
onUpdate: "CASCADE",
|
|
191
|
+
nullable: true,
|
|
192
|
+
}),
|
|
193
|
+
(0, typeorm_1.JoinColumn)(),
|
|
194
|
+
__metadata("design:type", user_entity_1.User)
|
|
195
|
+
], Folder.prototype, "modifiedBy", void 0);
|
|
196
|
+
exports.Folder = Folder = __decorate([
|
|
197
|
+
(0, typeorm_1.Entity)(),
|
|
198
|
+
(0, typeorm_1.Index)(["uid"], { unique: true }),
|
|
199
|
+
(0, typeorm_1.Index)(["name", "parent"], { unique: true })
|
|
200
|
+
], Folder);
|
|
201
|
+
//# sourceMappingURL=folder.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folder.entity.js","sourceRoot":"","sources":["../../../src/entities/drive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M,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;2CACH;AAGpB;IADC,IAAA,sBAAY,GAAE;;;;yCAKd;AAaD;IAXC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI;QAChB,WAAW,EAAE,8BAA8B;QAC3C,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACD,kBAAI;yCAAC;AAajB;IAXC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI;QAChB,WAAW,EAAE,+BAA+B;QAC5C,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,kBAAI;0CAAC;iBA3IP,MAAM;IAHlB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAChC,IAAA,eAAK,EAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC/B,MAAM,CA4IlB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./file.entity"), exports);
|
|
18
|
+
__exportStar(require("./folder.entity"), exports);
|
|
19
|
+
__exportStar(require("./attached_object.entity"), exports);
|
|
20
|
+
__exportStar(require("./policy-file-metadata.entity"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/drive/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,kDAA+B;AAC/B,2DAAwC;AACxC,gEAA6C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
import { File } from "./file.entity";
|
|
3
|
+
import { User } from "../user.entity";
|
|
4
|
+
import { Lead } from "../sales/lead.entity";
|
|
5
|
+
export declare enum PolicyFileStatus {
|
|
6
|
+
PENDING = "pending",
|
|
7
|
+
PROCESSING = "processing",
|
|
8
|
+
CONVERTED = "converted",
|
|
9
|
+
EXPIRED = "expired",
|
|
10
|
+
FAILED = "failed",
|
|
11
|
+
WARNING_SENT = "warning_sent"
|
|
12
|
+
}
|
|
13
|
+
export declare class PolicyFileMetadata extends EntityBase {
|
|
14
|
+
lead: Lead;
|
|
15
|
+
file: File;
|
|
16
|
+
status: PolicyFileStatus;
|
|
17
|
+
expiresAt: Date;
|
|
18
|
+
warningNotificationSentAt?: Date;
|
|
19
|
+
convertedAt?: Date;
|
|
20
|
+
isProtected: boolean;
|
|
21
|
+
conversionData?: {
|
|
22
|
+
contactId?: string;
|
|
23
|
+
policyId?: string;
|
|
24
|
+
policyVersionId?: string;
|
|
25
|
+
errorMessage?: string;
|
|
26
|
+
processedBy?: string;
|
|
27
|
+
processedAt?: string;
|
|
28
|
+
};
|
|
29
|
+
uploadedBy: User;
|
|
30
|
+
notificationThresholdDays: number;
|
|
31
|
+
extensionCount: number;
|
|
32
|
+
lastExtensionAt?: Date;
|
|
33
|
+
}
|