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,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PlanFeature = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const plan_entity_1 = require("./plan.entity");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const feature_entity_1 = require("./feature.entity");
|
|
17
|
+
let PlanFeature = class PlanFeature {
|
|
18
|
+
id;
|
|
19
|
+
value;
|
|
20
|
+
type;
|
|
21
|
+
unit;
|
|
22
|
+
plan;
|
|
23
|
+
feature;
|
|
24
|
+
};
|
|
25
|
+
exports.PlanFeature = PlanFeature;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PlanFeature.prototype, "id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({ description: 'Valor de la característica para este plan. Puede ser "true", "100", "ilimitado", etc.', example: 'true' }),
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], PlanFeature.prototype, "value", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ description: 'Tipo de dato del valor de la característica', enum: ['boolean', 'string', 'number'], example: 'string' }),
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: ['boolean', 'string', 'number'], nullable: true, default: 'string' }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], PlanFeature.prototype, "type", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({ description: 'Unidad del valor para campos de tipo number y string (ej: "GB", "users", "MB", etc.)', example: 'GB', required: false }),
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], PlanFeature.prototype, "unit", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ManyToOne)(() => plan_entity_1.Plan, plan => plan.planFeatures, { onDelete: 'CASCADE' }),
|
|
47
|
+
__metadata("design:type", plan_entity_1.Plan)
|
|
48
|
+
], PlanFeature.prototype, "plan", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.ManyToOne)(() => feature_entity_1.Feature, feature => feature.planFeatures, { onDelete: 'CASCADE', eager: true }),
|
|
51
|
+
__metadata("design:type", feature_entity_1.Feature)
|
|
52
|
+
], PlanFeature.prototype, "feature", void 0);
|
|
53
|
+
exports.PlanFeature = PlanFeature = __decorate([
|
|
54
|
+
(0, typeorm_1.Entity)('plan_features')
|
|
55
|
+
], PlanFeature);
|
|
56
|
+
//# sourceMappingURL=plan-feature.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-feature.entity.js","sourceRoot":"","sources":["../../../src/entities/subscriptions/plan-feature.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4E;AAC5E,+CAAqC;AACrC,6CAA8C;AAC9C,qDAA2C;AAGpC,IAAM,WAAW,GAAjB,MAAM,WAAW;IAEtB,EAAE,CAAS;IAIX,KAAK,CAAS;IAId,IAAI,CAAkC;IAItC,IAAI,CAAU;IAGd,IAAI,CAAO;IAGX,OAAO,CAAU;CAClB,CAAA;AArBY,kCAAW;AAEtB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;uCACpB;AAIX;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,uFAAuF,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IACtI,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE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|
|
4
|
+
MONTHLY = "monthly",
|
|
5
|
+
ANNUALLY = "annually",
|
|
6
|
+
ONE_TIME = "one_time"
|
|
7
|
+
}
|
|
8
|
+
export declare class Plan extends BaseEntityOnlyEssential {
|
|
9
|
+
name: string;
|
|
10
|
+
price: number;
|
|
11
|
+
currency: string;
|
|
12
|
+
billingCycle: BillingCycle;
|
|
13
|
+
isActive: boolean;
|
|
14
|
+
planFeatures: PlanFeature[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.Plan = exports.BillingCycle = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
16
|
+
const plan_feature_entity_1 = require("./plan-feature.entity");
|
|
17
|
+
var BillingCycle;
|
|
18
|
+
(function (BillingCycle) {
|
|
19
|
+
BillingCycle["MONTHLY"] = "monthly";
|
|
20
|
+
BillingCycle["ANNUALLY"] = "annually";
|
|
21
|
+
BillingCycle["ONE_TIME"] = "one_time";
|
|
22
|
+
})(BillingCycle || (exports.BillingCycle = BillingCycle = {}));
|
|
23
|
+
let Plan = class Plan extends base_entity_1.BaseEntityOnlyEssential {
|
|
24
|
+
name;
|
|
25
|
+
price;
|
|
26
|
+
currency;
|
|
27
|
+
billingCycle;
|
|
28
|
+
isActive;
|
|
29
|
+
planFeatures;
|
|
30
|
+
};
|
|
31
|
+
exports.Plan = Plan;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, unique: true, nullable: false }),
|
|
34
|
+
(0, swagger_1.ApiProperty)({ description: 'Nombre del plan (ej. "Free", "Basic Monthly", "Pro Annual")', example: 'Basic Monthly' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Plan.prototype, "name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: false }),
|
|
39
|
+
(0, swagger_1.ApiProperty)({ description: 'Precio del plan', example: 9.99 }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], Plan.prototype, "price", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 3, nullable: false, default: 'MXN' }),
|
|
44
|
+
(0, swagger_1.ApiProperty)({ description: 'Moneda del precio (ej. "USD", "EUR")', example: 'USD' }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Plan.prototype, "currency", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: BillingCycle, nullable: false }),
|
|
49
|
+
(0, swagger_1.ApiProperty)({
|
|
50
|
+
description: 'Frecuencia de facturación',
|
|
51
|
+
enum: BillingCycle,
|
|
52
|
+
example: BillingCycle.MONTHLY,
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], Plan.prototype, "billingCycle", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
58
|
+
(0, swagger_1.ApiProperty)({ description: 'Indica si el plan está activo (true) o ha sido deprecado (false)', example: true }),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], Plan.prototype, "isActive", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, swagger_1.ApiProperty)({
|
|
63
|
+
description: 'JSON para otros límites/flags de características específicas',
|
|
64
|
+
example: { featureA: true, featureB_limit: 1000 },
|
|
65
|
+
nullable: true,
|
|
66
|
+
}),
|
|
67
|
+
(0, typeorm_1.OneToMany)(() => plan_feature_entity_1.PlanFeature, planFeature => planFeature.plan, { cascade: true, eager: true }),
|
|
68
|
+
__metadata("design:type", Array)
|
|
69
|
+
], Plan.prototype, "planFeatures", void 0);
|
|
70
|
+
exports.Plan = Plan = __decorate([
|
|
71
|
+
(0, typeorm_1.Entity)('plans')
|
|
72
|
+
], Plan);
|
|
73
|
+
//# sourceMappingURL=plan.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.entity.js","sourceRoot":"","sources":["../../../src/entities/subscriptions/plan.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAC9C,mEAA4E;AAC5E,+DAAoD;AAEpD,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;AACvB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAGM,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qCAAuB;IAG/C,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,QAAQ,CAAS;IAQjB,YAAY,CAAe;IAI3B,QAAQ,CAAU;IAQlB,YAAY,CAAgB;CAC7B,CAAA;AAhCY,oBAAI;AAGf;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,E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E,IAAI;KACf,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAW,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;0CAClE;eA/BjB,IAAI;IADhB,IAAA,gBAAM,EAAC,OAAO,CAAC;GACH,IAAI,CAgChB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Plan } from './plan.entity';
|
|
2
|
+
import { BaseEntityOnlyEssential } from '../../common/database/base.entity';
|
|
3
|
+
import { Group } from '../group.entity';
|
|
4
|
+
import { Payment } from '../payments/payment.entity';
|
|
5
|
+
import { User } from '../user.entity';
|
|
6
|
+
export declare enum SubscriptionStatus {
|
|
7
|
+
ACTIVE = "active",
|
|
8
|
+
TRIALING = "trialing",
|
|
9
|
+
PAST_DUE = "past_due",
|
|
10
|
+
CANCELED = "canceled",
|
|
11
|
+
ENDED = "ended",
|
|
12
|
+
FREE = "free",
|
|
13
|
+
PENDING_PAYMENT = "pending_payment",
|
|
14
|
+
PAUSED = "paused"
|
|
15
|
+
}
|
|
16
|
+
export declare class Subscription extends BaseEntityOnlyEssential {
|
|
17
|
+
subscriptionStatus: SubscriptionStatus;
|
|
18
|
+
currentPeriodStartsAt: Date | null;
|
|
19
|
+
currentPeriodEndsAt: Date | null;
|
|
20
|
+
trialEndsAt: Date | null;
|
|
21
|
+
canceledAt: Date | null;
|
|
22
|
+
accessEndsAt: Date | null;
|
|
23
|
+
paymentGatewaySubscriptionId: string | null;
|
|
24
|
+
note?: string;
|
|
25
|
+
cancellationReason?: string;
|
|
26
|
+
paymentHistory: Payment[];
|
|
27
|
+
group: Group;
|
|
28
|
+
plan: Plan;
|
|
29
|
+
canceledBy: User;
|
|
30
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
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.Subscription = exports.SubscriptionStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const plan_entity_1 = require("./plan.entity");
|
|
16
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
17
|
+
const group_entity_1 = require("../group.entity");
|
|
18
|
+
const payment_entity_1 = require("../payments/payment.entity");
|
|
19
|
+
const user_entity_1 = require("../user.entity");
|
|
20
|
+
var SubscriptionStatus;
|
|
21
|
+
(function (SubscriptionStatus) {
|
|
22
|
+
SubscriptionStatus["ACTIVE"] = "active";
|
|
23
|
+
SubscriptionStatus["TRIALING"] = "trialing";
|
|
24
|
+
SubscriptionStatus["PAST_DUE"] = "past_due";
|
|
25
|
+
SubscriptionStatus["CANCELED"] = "canceled";
|
|
26
|
+
SubscriptionStatus["ENDED"] = "ended";
|
|
27
|
+
SubscriptionStatus["FREE"] = "free";
|
|
28
|
+
SubscriptionStatus["PENDING_PAYMENT"] = "pending_payment";
|
|
29
|
+
SubscriptionStatus["PAUSED"] = "paused";
|
|
30
|
+
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
|
|
31
|
+
let Subscription = class Subscription extends base_entity_1.BaseEntityOnlyEssential {
|
|
32
|
+
subscriptionStatus;
|
|
33
|
+
currentPeriodStartsAt;
|
|
34
|
+
currentPeriodEndsAt;
|
|
35
|
+
trialEndsAt;
|
|
36
|
+
canceledAt;
|
|
37
|
+
accessEndsAt;
|
|
38
|
+
paymentGatewaySubscriptionId;
|
|
39
|
+
note;
|
|
40
|
+
cancellationReason;
|
|
41
|
+
paymentHistory;
|
|
42
|
+
group;
|
|
43
|
+
plan;
|
|
44
|
+
canceledBy;
|
|
45
|
+
};
|
|
46
|
+
exports.Subscription = Subscription;
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: SubscriptionStatus, nullable: false, default: SubscriptionStatus.ACTIVE }),
|
|
49
|
+
(0, swagger_1.ApiProperty)({
|
|
50
|
+
description: 'Estado actual de la suscripción',
|
|
51
|
+
enum: SubscriptionStatus,
|
|
52
|
+
example: SubscriptionStatus.ACTIVE,
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], Subscription.prototype, "subscriptionStatus", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
58
|
+
(0, swagger_1.ApiProperty)({
|
|
59
|
+
description: 'Fecha y hora de inicio del período de facturación actual',
|
|
60
|
+
example: '2024-06-01T00:00:00Z',
|
|
61
|
+
nullable: true,
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], Subscription.prototype, "currentPeriodStartsAt", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
67
|
+
(0, swagger_1.ApiProperty)({
|
|
68
|
+
description: 'Fecha y hora de finalización del período de facturación actual',
|
|
69
|
+
example: '2024-06-30T23:59:59Z',
|
|
70
|
+
nullable: true,
|
|
71
|
+
}),
|
|
72
|
+
__metadata("design:type", Date)
|
|
73
|
+
], Subscription.prototype, "currentPeriodEndsAt", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
76
|
+
(0, swagger_1.ApiProperty)({
|
|
77
|
+
description: 'Fecha y hora de finalización del período de prueba (si aplica)',
|
|
78
|
+
example: '2024-06-15T00:00:00Z',
|
|
79
|
+
nullable: true,
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", Date)
|
|
82
|
+
], Subscription.prototype, "trialEndsAt", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
85
|
+
(0, swagger_1.ApiProperty)({
|
|
86
|
+
description: 'Fecha y hora en que se solicitó la cancelación',
|
|
87
|
+
example: '2024-06-20T14:00:00Z',
|
|
88
|
+
nullable: true,
|
|
89
|
+
}),
|
|
90
|
+
__metadata("design:type", Date)
|
|
91
|
+
], Subscription.prototype, "canceledAt", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
94
|
+
(0, swagger_1.ApiProperty)({
|
|
95
|
+
description: 'Fecha y hora en que el acceso terminará realmente',
|
|
96
|
+
example: '2024-06-30T23:59:59Z',
|
|
97
|
+
nullable: true,
|
|
98
|
+
}),
|
|
99
|
+
__metadata("design:type", Date)
|
|
100
|
+
], Subscription.prototype, "accessEndsAt", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
103
|
+
(0, swagger_1.ApiProperty)({
|
|
104
|
+
description: 'ID de la suscripción en la pasarela de pago (ej. Stripe, PayPal)',
|
|
105
|
+
example: 'sub_xyz123abc',
|
|
106
|
+
nullable: true,
|
|
107
|
+
}),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], Subscription.prototype, "paymentGatewaySubscriptionId", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
112
|
+
(0, swagger_1.ApiProperty)({
|
|
113
|
+
description: 'Additional note or comment about the subscription',
|
|
114
|
+
nullable: true,
|
|
115
|
+
}),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], Subscription.prototype, "note", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
120
|
+
(0, swagger_1.ApiProperty)({
|
|
121
|
+
description: 'Reason for subscription cancellation',
|
|
122
|
+
nullable: true,
|
|
123
|
+
}),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], Subscription.prototype, "cancellationReason", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.OneToMany)(() => payment_entity_1.Payment, paymentHistory => paymentHistory.subscription),
|
|
128
|
+
__metadata("design:type", Array)
|
|
129
|
+
], Subscription.prototype, "paymentHistory", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.ManyToOne)(() => group_entity_1.Group, group => group.subscription, { onDelete: 'CASCADE', nullable: true }),
|
|
132
|
+
__metadata("design:type", group_entity_1.Group)
|
|
133
|
+
], Subscription.prototype, "group", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.ManyToOne)(() => plan_entity_1.Plan, { onDelete: 'RESTRICT' }),
|
|
136
|
+
__metadata("design:type", plan_entity_1.Plan)
|
|
137
|
+
], Subscription.prototype, "plan", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, swagger_1.ApiProperty)({
|
|
140
|
+
description: 'Usuario que solicitó la cancelación de la suscripción',
|
|
141
|
+
nullable: true,
|
|
142
|
+
}),
|
|
143
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true }),
|
|
144
|
+
(0, typeorm_1.JoinColumn)({ name: 'canceled_by' }),
|
|
145
|
+
__metadata("design:type", user_entity_1.User)
|
|
146
|
+
], Subscription.prototype, "canceledBy", void 0);
|
|
147
|
+
exports.Subscription = Subscription = __decorate([
|
|
148
|
+
(0, typeorm_1.Entity)('subscriptions')
|
|
149
|
+
], Subscription);
|
|
150
|
+
//# sourceMappingURL=subscription.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.entity.js","sourceRoot":"","sources":["../../../src/entities/subscriptions/subscription.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;AAC3E,6CAA8C;AAC9C,+CAAqC;AACrC,mEAA4E;AAC5E,kDAAwC;AACxC,+DAAqD;AACrD,gDAAsC;AAEtC,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,qCAAe,CAAA;IACf,mCAAa,CAAA;IACb,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;AACnB,CAAC,EATW,kBAAkB,kCAAlB,kBAAkB,QAS7B;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,qCAAuB;IAOvD,kBAAkB,CAAqB;IAQvC,qBAAqB,CAAc;IAQnC,mBAAmB,CAAc;IAQjC,WAAW,CAAc;IAQzB,UAAU,CAAc;IAQxB,YAAY,CAAc;IAQ1B,4BAA4B,CAAgB;IAO5C,IAAI,CAAU;IAOd,kBAAkB,CAAU;IAG5B,cAAc,CAAY;IAG1B,KAAK,CAAQ;IAGb,IAAI,CAAO;IAQX,UAAU,CAAO;CAClB,CAAA;AAvFY,oCAAY;AAOvB;IANC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,kBAAkB,CAAC,MAAM,EAAE,CAAC;IACvG,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,iCAAiC;QAC9C,IAAI,EAAE,kBAAkB;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C;IACzC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACxB,kBAAI;gDAAC;uBAtFN,YAAY;IADxB,IAAA,gBAAM,EAAC,eAAe,CAAC;GACX,YAAY,CAuFxB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.Tag = 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 user_entity_1 = require("./user.entity");
|
|
17
|
+
const tools_1 = require("./tools");
|
|
18
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
19
|
+
let Tag = class Tag extends base_entity_1.EntityBase {
|
|
20
|
+
name;
|
|
21
|
+
user;
|
|
22
|
+
tasks;
|
|
23
|
+
};
|
|
24
|
+
exports.Tag = Tag;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Name of the tag', minLength: 3 }),
|
|
27
|
+
(0, class_validator_1.MinLength)(3),
|
|
28
|
+
(0, typeorm_1.Column)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Tag.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User associated with the tag', required: false }),
|
|
33
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.tags, {
|
|
34
|
+
onDelete: "SET NULL",
|
|
35
|
+
onUpdate: "CASCADE",
|
|
36
|
+
nullable: true,
|
|
37
|
+
}),
|
|
38
|
+
(0, typeorm_1.JoinColumn)(),
|
|
39
|
+
__metadata("design:type", user_entity_1.User)
|
|
40
|
+
], Tag.prototype, "user", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({ type: () => [tools_1.Task], description: 'Tasks associated with the tag' }),
|
|
43
|
+
(0, typeorm_1.ManyToMany)(() => tools_1.Task, task => task.tags, {
|
|
44
|
+
onDelete: "CASCADE",
|
|
45
|
+
onUpdate: "CASCADE",
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], Tag.prototype, "tasks", void 0);
|
|
49
|
+
exports.Tag = Tag = __decorate([
|
|
50
|
+
(0, typeorm_1.Entity)(),
|
|
51
|
+
(0, typeorm_1.Index)(["name", "user"], { unique: true })
|
|
52
|
+
], Tag);
|
|
53
|
+
//# sourceMappingURL=tag.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.entity.js","sourceRoot":"","sources":["../../src/entities/tag.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA4D;AAC5D,qDAA4C;AAC5C,qCAAmF;AACnF,+CAAqC;AACrC,mCAA+B;AAC/B,6CAA8C;AAIvC,IAAM,GAAG,GAAT,MAAM,GAAI,SAAQ,wBAAU;IAI/B,IAAI,CAAS;IASb,IAAI,CAAO;IAOX,KAAK,CAAS;CACjB,CAAA;AArBY,kBAAG;AAIZ;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAC3E,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,GAAE;;iCACI;AASb;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,8BAA8B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE;QACxC,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACP,kBAAI;iCAAC;AAOX;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,YAAI,CAAC,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;IACjF,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,YAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE;QACvC,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;;kCACY;cApBL,GAAG;IAFf,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC7B,GAAG,CAqBf"}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.Template = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const base_entity_1 = require("../common/database/base.entity");
|
|
16
|
+
const group_entity_1 = require("./group.entity");
|
|
17
|
+
let Template = class Template extends base_entity_1.EntityBaseWithUser {
|
|
18
|
+
name;
|
|
19
|
+
body;
|
|
20
|
+
subject;
|
|
21
|
+
global;
|
|
22
|
+
group;
|
|
23
|
+
};
|
|
24
|
+
exports.Template = Template;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({
|
|
27
|
+
description: 'Nombre de la plantilla',
|
|
28
|
+
example: 'Plantilla de bienvenida',
|
|
29
|
+
}),
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Template.prototype, "name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({
|
|
35
|
+
description: 'Contenido de la plantilla con formato texto enriquecido',
|
|
36
|
+
example: '<p>Bienvenido al sistema</p>',
|
|
37
|
+
}),
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Template.prototype, "body", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({
|
|
43
|
+
description: 'Asunto del correo o título de la tarea (opcional)',
|
|
44
|
+
required: false,
|
|
45
|
+
nullable: true,
|
|
46
|
+
example: 'Correo de bienvenida',
|
|
47
|
+
}),
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Template.prototype, "subject", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, swagger_1.ApiProperty)({
|
|
53
|
+
description: 'Indica si es una plantilla global no editable',
|
|
54
|
+
example: false,
|
|
55
|
+
default: false,
|
|
56
|
+
}),
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
58
|
+
__metadata("design:type", Boolean)
|
|
59
|
+
], Template.prototype, "global", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiProperty)({
|
|
62
|
+
type: () => group_entity_1.Group,
|
|
63
|
+
description: 'Grupo al que pertenece la plantilla (null para plantillas globales)',
|
|
64
|
+
required: false,
|
|
65
|
+
nullable: true,
|
|
66
|
+
}),
|
|
67
|
+
(0, typeorm_1.ManyToOne)(() => group_entity_1.Group, {
|
|
68
|
+
onDelete: 'SET NULL',
|
|
69
|
+
onUpdate: 'CASCADE',
|
|
70
|
+
nullable: true,
|
|
71
|
+
}),
|
|
72
|
+
(0, typeorm_1.JoinColumn)(),
|
|
73
|
+
__metadata("design:type", group_entity_1.Group)
|
|
74
|
+
], Template.prototype, "group", void 0);
|
|
75
|
+
exports.Template = Template = __decorate([
|
|
76
|
+
(0, typeorm_1.Entity)()
|
|
77
|
+
], Template);
|
|
78
|
+
//# sourceMappingURL=template.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.entity.js","sourceRoot":"","sources":["../../src/entities/template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qCAAgE;AAChE,gEAAoE;AACpE,iDAAuC;AAGhC,IAAM,QAAQ,GAAd,M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ACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACL,oBAAK;uCAAC;mBA5CH,QAAQ;IADpB,IAAA,gBAAM,GAAE;GACI,QAAQ,CA6CpB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseEntityOnlyEssential } from "../../common/database/base.entity";
|
|
2
|
+
export declare enum DiioDataSourceType {
|
|
3
|
+
WEBHOOK = "webhook",
|
|
4
|
+
API = "api"
|
|
5
|
+
}
|
|
6
|
+
export declare class DiioIntegrationConfig extends BaseEntityOnlyEssential {
|
|
7
|
+
groupIdentifier: string;
|
|
8
|
+
signingSecret: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class DiioIntegrationRawData extends BaseEntityOnlyEssential {
|
|
11
|
+
groupIdentifier: string;
|
|
12
|
+
diioId: string | null;
|
|
13
|
+
action: string;
|
|
14
|
+
rawData: any;
|
|
15
|
+
sourceType: DiioDataSourceType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.DiioIntegrationRawData = exports.DiioIntegrationConfig = exports.DiioDataSourceType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
15
|
+
var DiioDataSourceType;
|
|
16
|
+
(function (DiioDataSourceType) {
|
|
17
|
+
DiioDataSourceType["WEBHOOK"] = "webhook";
|
|
18
|
+
DiioDataSourceType["API"] = "api";
|
|
19
|
+
})(DiioDataSourceType || (exports.DiioDataSourceType = DiioDataSourceType = {}));
|
|
20
|
+
let DiioIntegrationConfig = class DiioIntegrationConfig extends base_entity_1.BaseEntityOnlyEssential {
|
|
21
|
+
groupIdentifier;
|
|
22
|
+
signingSecret;
|
|
23
|
+
};
|
|
24
|
+
exports.DiioIntegrationConfig = DiioIntegrationConfig;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "character varying", nullable: false }),
|
|
27
|
+
(0, typeorm_1.Index)({ unique: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], DiioIntegrationConfig.prototype, "groupIdentifier", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({
|
|
32
|
+
type: "text",
|
|
33
|
+
nullable: false,
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], DiioIntegrationConfig.prototype, "signingSecret", void 0);
|
|
37
|
+
exports.DiioIntegrationConfig = DiioIntegrationConfig = __decorate([
|
|
38
|
+
(0, typeorm_1.Entity)("diio_integration_configs")
|
|
39
|
+
], DiioIntegrationConfig);
|
|
40
|
+
let DiioIntegrationRawData = class DiioIntegrationRawData extends base_entity_1.BaseEntityOnlyEssential {
|
|
41
|
+
groupIdentifier;
|
|
42
|
+
diioId;
|
|
43
|
+
action;
|
|
44
|
+
rawData;
|
|
45
|
+
sourceType;
|
|
46
|
+
};
|
|
47
|
+
exports.DiioIntegrationRawData = DiioIntegrationRawData;
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: "character varying", nullable: false }),
|
|
50
|
+
(0, typeorm_1.Index)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], DiioIntegrationRawData.prototype, "groupIdentifier", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "character varying", nullable: true }),
|
|
55
|
+
(0, typeorm_1.Index)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], DiioIntegrationRawData.prototype, "diioId", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "character varying", nullable: false }),
|
|
60
|
+
(0, typeorm_1.Index)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], DiioIntegrationRawData.prototype, "action", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], DiioIntegrationRawData.prototype, "rawData", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "enum", enum: DiioDataSourceType, nullable: false }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], DiioIntegrationRawData.prototype, "sourceType", void 0);
|
|
71
|
+
exports.DiioIntegrationRawData = DiioIntegrationRawData = __decorate([
|
|
72
|
+
(0, typeorm_1.Entity)("diio_integration_raw_data")
|
|
73
|
+
], DiioIntegrationRawData);
|
|
74
|
+
//# sourceMappingURL=diio-integration.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diio-integration.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/diio-integration.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgD;AAChD,mEAA4E;AAE5E,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,iCAAW,CAAA;AACb,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAGM,IAAM,qBAAqB,GAA3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jBpB,sBAAsB;IADlC,IAAA,gBAAM,EAAC,2BAA2B,CAAC;GACvB,sBAAsB,CAkBlC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GoogleWebhooksConfig } from './google-webhooks-config.entity';
|
|
2
|
+
import { Mailbox } from '../tools/mail/mailbox.entity';
|
|
3
|
+
export declare class GoogleGmailWatchRecord {
|
|
4
|
+
id: number;
|
|
5
|
+
lastProcessedHistoryId: string | null;
|
|
6
|
+
pubsubTopic: string | null;
|
|
7
|
+
pubsubSubscription: string | null;
|
|
8
|
+
lastNotificationReceivedAt: Date | null;
|
|
9
|
+
lastHistorySyncAt: Date | null;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
mailbox: Mailbox;
|
|
13
|
+
webhook: GoogleWebhooksConfig;
|
|
14
|
+
}
|