easywork-common-lib 1.0.463 → 1.0.466
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/.gitattributes +2 -2
- package/.github/workflows/npm-publish.yml +33 -33
- package/.vscode/settings.json +12 -12
- package/dist/common/@types/enums/crm.enum.d.ts +8 -0
- package/dist/common/@types/enums/crm.enum.js +14 -0
- package/dist/common/@types/enums/crm.enum.js.map +1 -0
- package/dist/common/@types/enums/index.d.ts +3 -0
- package/dist/common/@types/enums/index.js +20 -0
- package/dist/common/@types/enums/index.js.map +1 -0
- package/dist/common/@types/enums/misc.enum.d.ts +60 -0
- package/dist/common/@types/enums/misc.enum.js +81 -0
- package/dist/common/@types/enums/misc.enum.js.map +1 -0
- package/dist/common/@types/enums/permission.enum.d.ts +13 -0
- package/dist/common/@types/enums/permission.enum.js +19 -0
- package/dist/common/@types/enums/permission.enum.js.map +1 -0
- package/dist/common/@types/index.d.ts +2 -0
- package/dist/common/@types/index.js +19 -0
- package/dist/common/@types/index.js.map +1 -0
- package/dist/common/@types/interfaces/authentication.interface.d.ts +17 -0
- package/dist/common/@types/interfaces/authentication.interface.js +3 -0
- package/dist/common/@types/interfaces/authentication.interface.js.map +1 -0
- package/dist/common/@types/interfaces/crm.interface.d.ts +131 -0
- package/dist/common/@types/interfaces/crm.interface.js +3 -0
- package/dist/common/@types/interfaces/crm.interface.js.map +1 -0
- package/dist/common/@types/interfaces/file.interface.d.ts +14 -0
- package/dist/common/@types/interfaces/file.interface.js +3 -0
- package/dist/common/@types/interfaces/file.interface.js.map +1 -0
- package/dist/common/@types/interfaces/index.d.ts +5 -0
- package/dist/common/@types/interfaces/index.js +22 -0
- package/dist/common/@types/interfaces/index.js.map +1 -0
- package/dist/common/@types/interfaces/mail.interface.d.ts +9 -0
- package/dist/common/@types/interfaces/mail.interface.js +3 -0
- package/dist/common/@types/interfaces/mail.interface.js.map +1 -0
- package/dist/common/@types/interfaces/validator.interface.d.ts +41 -0
- package/dist/common/@types/interfaces/validator.interface.js +3 -0
- package/dist/common/@types/interfaces/validator.interface.js.map +1 -0
- package/dist/common/constants/app.contants.d.ts +31 -0
- package/dist/common/constants/app.contants.js +185 -0
- package/dist/common/constants/app.contants.js.map +1 -0
- package/dist/common/constants/index.d.ts +2 -0
- package/dist/common/constants/index.js +19 -0
- package/dist/common/constants/index.js.map +1 -0
- package/dist/common/constants/regex.constant.d.ts +6 -0
- package/dist/common/constants/regex.constant.js +10 -0
- package/dist/common/constants/regex.constant.js.map +1 -0
- package/dist/common/database/base.entity.d.ts +15 -0
- package/dist/common/database/base.entity.js +76 -0
- package/dist/common/database/base.entity.js.map +1 -0
- package/dist/common/database/comment.base.entity.d.ts +11 -0
- package/dist/common/database/comment.base.entity.js +83 -0
- package/dist/common/database/comment.base.entity.js.map +1 -0
- package/dist/common/database/index.d.ts +2 -0
- package/dist/common/database/index.js +19 -0
- package/dist/common/database/index.js.map +1 -0
- package/dist/common/dtos/index.d.ts +1 -0
- package/dist/common/dtos/index.js +18 -0
- package/dist/common/dtos/index.js.map +1 -0
- package/dist/common/dtos/send-notification.dto.d.ts +11 -0
- package/dist/common/dtos/send-notification.dto.js +60 -0
- package/dist/common/dtos/send-notification.dto.js.map +1 -0
- package/dist/common/enums/drive.enum.d.ts +20 -0
- package/dist/common/enums/drive.enum.js +26 -0
- package/dist/common/enums/drive.enum.js.map +1 -0
- package/dist/common/enums/index.d.ts +4 -0
- package/dist/common/enums/index.js +21 -0
- package/dist/common/enums/index.js.map +1 -0
- package/dist/common/enums/notification.enum.d.ts +32 -0
- package/dist/common/enums/notification.enum.js +39 -0
- package/dist/common/enums/notification.enum.js.map +1 -0
- package/dist/common/enums/sales.enum.d.ts +41 -0
- package/dist/common/enums/sales.enum.js +53 -0
- package/dist/common/enums/sales.enum.js.map +1 -0
- package/dist/common/enums/tools.enum.d.ts +19 -0
- package/dist/common/enums/tools.enum.js +26 -0
- package/dist/common/enums/tools.enum.js.map +1 -0
- package/dist/common/functions/cripto.d.ts +1 -0
- package/dist/common/functions/cripto.js +8 -0
- package/dist/common/functions/cripto.js.map +1 -0
- package/dist/common/functions/image.d.ts +2 -0
- package/dist/common/functions/image.js +14 -0
- package/dist/common/functions/image.js.map +1 -0
- package/dist/common/functions/index.d.ts +2 -0
- package/dist/common/functions/index.js +19 -0
- package/dist/common/functions/index.js.map +1 -0
- package/dist/common/helpers/app.utils.d.ts +5 -0
- package/dist/common/helpers/app.utils.js +32 -0
- package/dist/common/helpers/app.utils.js.map +1 -0
- package/dist/common/helpers/helpers.utils.d.ts +5 -0
- package/dist/common/helpers/helpers.utils.js +26 -0
- package/dist/common/helpers/helpers.utils.js.map +1 -0
- package/dist/common/helpers/index.d.ts +2 -0
- package/dist/common/helpers/index.js +19 -0
- package/dist/common/helpers/index.js.map +1 -0
- package/dist/common/index.d.ts +8 -0
- package/dist/common/index.js +25 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/interceptors/index.d.ts +1 -0
- package/dist/common/interceptors/index.js +18 -0
- package/dist/common/interceptors/index.js.map +1 -0
- package/dist/common/interceptors/security.interceptor.d.ts +5 -0
- package/dist/common/interceptors/security.interceptor.js +22 -0
- package/dist/common/interceptors/security.interceptor.js.map +1 -0
- package/dist/entities/app_config/app-config.entity.d.ts +5 -0
- package/dist/entities/app_config/app-config.entity.js +33 -0
- package/dist/entities/app_config/app-config.entity.js.map +1 -0
- package/dist/entities/currency.entity.d.ts +6 -0
- package/dist/entities/currency.entity.js +43 -0
- package/dist/entities/currency.entity.js.map +1 -0
- package/dist/entities/drive/attached_object.entity.d.ts +21 -0
- package/dist/entities/drive/attached_object.entity.js +154 -0
- package/dist/entities/drive/attached_object.entity.js.map +1 -0
- package/dist/entities/drive/file.entity.d.ts +19 -0
- package/dist/entities/drive/file.entity.js +130 -0
- package/dist/entities/drive/file.entity.js.map +1 -0
- package/dist/entities/drive/folder.entity.d.ts +18 -0
- package/dist/entities/drive/folder.entity.js +137 -0
- package/dist/entities/drive/folder.entity.js.map +1 -0
- package/dist/entities/drive/index.d.ts +3 -0
- package/dist/entities/drive/index.js +20 -0
- package/dist/entities/drive/index.js.map +1 -0
- package/dist/entities/easyapp/filter-view.entity.d.ts +7 -0
- package/dist/entities/easyapp/filter-view.entity.js +41 -0
- package/dist/entities/easyapp/filter-view.entity.js.map +1 -0
- package/dist/entities/email.entity.d.ts +5 -0
- package/dist/entities/email.entity.js +36 -0
- package/dist/entities/email.entity.js.map +1 -0
- package/dist/entities/group.entity.d.ts +5 -0
- package/dist/entities/group.entity.js +33 -0
- package/dist/entities/group.entity.js.map +1 -0
- package/dist/entities/helpers/entity_file.entity.d.ts +10 -0
- package/dist/entities/helpers/entity_file.entity.js +61 -0
- package/dist/entities/helpers/entity_file.entity.js.map +1 -0
- package/dist/entities/helpers/entity_folder.entity.d.ts +10 -0
- package/dist/entities/helpers/entity_folder.entity.js +61 -0
- package/dist/entities/helpers/entity_folder.entity.js.map +1 -0
- package/dist/entities/helpers/index.d.ts +4 -0
- package/dist/entities/helpers/index.js +21 -0
- package/dist/entities/helpers/index.js.map +1 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.js +36 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.js.map +1 -0
- package/dist/entities/helpers/sales/common/client_types.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/common/client_types.entity.js +36 -0
- package/dist/entities/helpers/sales/common/client_types.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.js +68 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_insurance.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/contact/contact_insurance.entity.js +68 -0
- package/dist/entities/helpers/sales/contact/contact_insurance.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js +68 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/index.d.ts +5 -0
- package/dist/entities/helpers/sales/contact/index.js +22 -0
- package/dist/entities/helpers/sales/contact/index.js.map +1 -0
- package/dist/entities/helpers/sales/index.d.ts +6 -0
- package/dist/entities/helpers/sales/index.js +23 -0
- package/dist/entities/helpers/sales/index.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +30 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +36 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +30 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/index.d.ts +6 -0
- package/dist/entities/helpers/sales/lead/index.js +23 -0
- package/dist/entities/helpers/sales/lead/index.js.map +1 -0
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js +28 -0
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.js +66 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js +66 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js +30 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js +33 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +39 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +39 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js +30 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js +36 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +33 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.d.ts +8 -0
- package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js +53 -0
- package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/index.d.ts +10 -0
- package/dist/entities/helpers/sales/poliza/index.js +27 -0
- package/dist/entities/helpers/sales/poliza/index.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +68 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js +86 -0
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js.map +1 -0
- package/dist/entities/helpers/tools/index.d.ts +1 -0
- package/dist/entities/helpers/tools/index.js +18 -0
- package/dist/entities/helpers/tools/index.js.map +1 -0
- package/dist/entities/helpers/tools/task_crm.entity.d.ts +19 -0
- package/dist/entities/helpers/tools/task_crm.entity.js +136 -0
- package/dist/entities/helpers/tools/task_crm.entity.js.map +1 -0
- package/dist/entities/helpers/user/access_history.entity.d.ts +9 -0
- package/dist/entities/helpers/user/access_history.entity.js +58 -0
- package/dist/entities/helpers/user/access_history.entity.js.map +1 -0
- package/dist/entities/imap-config.entity.d.ts +11 -0
- package/dist/entities/imap-config.entity.js +61 -0
- package/dist/entities/imap-config.entity.js.map +1 -0
- package/dist/entities/index.d.ts +26 -0
- package/dist/entities/index.js +43 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/menu-permissions.entity.d.ts +7 -0
- package/dist/entities/menu-permissions.entity.js +42 -0
- package/dist/entities/menu-permissions.entity.js.map +1 -0
- package/dist/entities/notifications/index.d.ts +2 -0
- package/dist/entities/notifications/index.js +19 -0
- package/dist/entities/notifications/index.js.map +1 -0
- package/dist/entities/notifications/notification.entity.d.ts +15 -0
- package/dist/entities/notifications/notification.entity.js +119 -0
- package/dist/entities/notifications/notification.entity.js.map +1 -0
- package/dist/entities/notifications/push-token.entity.d.ts +7 -0
- package/dist/entities/notifications/push-token.entity.js +45 -0
- package/dist/entities/notifications/push-token.entity.js.map +1 -0
- package/dist/entities/otp-log.entity.d.ts +8 -0
- package/dist/entities/otp-log.entity.js +49 -0
- package/dist/entities/otp-log.entity.js.map +1 -0
- package/dist/entities/permission.entity.d.ts +7 -0
- package/dist/entities/permission.entity.js +46 -0
- package/dist/entities/permission.entity.js.map +1 -0
- package/dist/entities/phone.entity.d.ts +5 -0
- package/dist/entities/phone.entity.js +36 -0
- package/dist/entities/phone.entity.js.map +1 -0
- package/dist/entities/profile.entity.d.ts +9 -0
- package/dist/entities/profile.entity.js +56 -0
- package/dist/entities/profile.entity.js.map +1 -0
- package/dist/entities/protocol.entity.d.ts +8 -0
- package/dist/entities/protocol.entity.js +46 -0
- package/dist/entities/protocol.entity.js.map +1 -0
- package/dist/entities/refresh-token.entity.d.ts +8 -0
- package/dist/entities/refresh-token.entity.js +46 -0
- package/dist/entities/refresh-token.entity.js.map +1 -0
- package/dist/entities/role.entity.d.ts +6 -0
- package/dist/entities/role.entity.js +42 -0
- package/dist/entities/role.entity.js.map +1 -0
- package/dist/entities/sales/agente-intermediario.entity.d.ts +5 -0
- package/dist/entities/sales/agente-intermediario.entity.js +34 -0
- package/dist/entities/sales/agente-intermediario.entity.js.map +1 -0
- package/dist/entities/sales/beneficiarios/index.d.ts +2 -0
- package/dist/entities/sales/beneficiarios/index.js +19 -0
- package/dist/entities/sales/beneficiarios/index.js.map +1 -0
- package/dist/entities/sales/beneficiarios/person.entity.d.ts +10 -0
- package/dist/entities/sales/beneficiarios/person.entity.js +89 -0
- package/dist/entities/sales/beneficiarios/person.entity.js.map +1 -0
- package/dist/entities/sales/beneficiarios/vehicle.entity.d.ts +16 -0
- package/dist/entities/sales/beneficiarios/vehicle.entity.js +106 -0
- package/dist/entities/sales/beneficiarios/vehicle.entity.js.map +1 -0
- package/dist/entities/sales/contact-comment.entity.d.ts +5 -0
- package/dist/entities/sales/contact-comment.entity.js +32 -0
- package/dist/entities/sales/contact-comment.entity.js.map +1 -0
- package/dist/entities/sales/contact.entity.d.ts +49 -0
- package/dist/entities/sales/contact.entity.js +303 -0
- package/dist/entities/sales/contact.entity.js.map +1 -0
- package/dist/entities/sales/index.d.ts +12 -0
- package/dist/entities/sales/index.js +29 -0
- package/dist/entities/sales/index.js.map +1 -0
- package/dist/entities/sales/lead-comment.entity.d.ts +5 -0
- package/dist/entities/sales/lead-comment.entity.js +32 -0
- package/dist/entities/sales/lead-comment.entity.js.map +1 -0
- package/dist/entities/sales/lead.entity.d.ts +51 -0
- package/dist/entities/sales/lead.entity.js +344 -0
- package/dist/entities/sales/lead.entity.js.map +1 -0
- package/dist/entities/sales/poliza-comment.entity.d.ts +5 -0
- package/dist/entities/sales/poliza-comment.entity.js +32 -0
- package/dist/entities/sales/poliza-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza.entity.d.ts +112 -0
- package/dist/entities/sales/poliza.entity.js +1103 -0
- package/dist/entities/sales/poliza.entity.js.map +1 -0
- package/dist/entities/sales/poliza_siniestro.entity.d.ts +12 -0
- package/dist/entities/sales/poliza_siniestro.entity.js +72 -0
- package/dist/entities/sales/poliza_siniestro.entity.js.map +1 -0
- package/dist/entities/sales/receipt-comment.entity.d.ts +5 -0
- package/dist/entities/sales/receipt-comment.entity.js +32 -0
- package/dist/entities/sales/receipt-comment.entity.js.map +1 -0
- package/dist/entities/sales/receipt-sub-agente.entity.d.ts +5 -0
- package/dist/entities/sales/receipt-sub-agente.entity.js +35 -0
- package/dist/entities/sales/receipt-sub-agente.entity.js.map +1 -0
- package/dist/entities/sales/receipt.entity.d.ts +31 -0
- package/dist/entities/sales/receipt.entity.js +203 -0
- package/dist/entities/sales/receipt.entity.js.map +1 -0
- package/dist/entities/tag.entity.d.ts +8 -0
- package/dist/entities/tag.entity.js +53 -0
- package/dist/entities/tag.entity.js.map +1 -0
- package/dist/entities/thirdparty/email-config.entity.d.ts +14 -0
- package/dist/entities/thirdparty/email-config.entity.js +76 -0
- package/dist/entities/thirdparty/email-config.entity.js.map +1 -0
- package/dist/entities/thirdparty/email.entity.d.ts +17 -0
- package/dist/entities/thirdparty/email.entity.js +79 -0
- package/dist/entities/thirdparty/email.entity.js.map +1 -0
- package/dist/entities/thirdparty/oauth.entity.d.ts +18 -0
- package/dist/entities/thirdparty/oauth.entity.js +93 -0
- package/dist/entities/thirdparty/oauth.entity.js.map +1 -0
- package/dist/entities/thirdparty/service.entity.d.ts +6 -0
- package/dist/entities/thirdparty/service.entity.js +32 -0
- package/dist/entities/thirdparty/service.entity.js.map +1 -0
- package/dist/entities/thirdparty/user-email-relation.entity.d.ts +7 -0
- package/dist/entities/thirdparty/user-email-relation.entity.js +35 -0
- package/dist/entities/thirdparty/user-email-relation.entity.js.map +1 -0
- package/dist/entities/tools/calendar/event.entity.d.ts +19 -0
- package/dist/entities/tools/calendar/event.entity.js +132 -0
- package/dist/entities/tools/calendar/event.entity.js.map +1 -0
- package/dist/entities/tools/calendar/index.d.ts +1 -0
- package/dist/entities/tools/calendar/index.js +18 -0
- package/dist/entities/tools/calendar/index.js.map +1 -0
- package/dist/entities/tools/index.d.ts +4 -0
- package/dist/entities/tools/index.js +21 -0
- package/dist/entities/tools/index.js.map +1 -0
- package/dist/entities/tools/task-comment.entity.d.ts +6 -0
- package/dist/entities/tools/task-comment.entity.js +38 -0
- package/dist/entities/tools/task-comment.entity.js.map +1 -0
- package/dist/entities/tools/task-list-field.d.ts +5 -0
- package/dist/entities/tools/task-list-field.js +39 -0
- package/dist/entities/tools/task-list-field.js.map +1 -0
- package/dist/entities/tools/task.entity.d.ts +34 -0
- package/dist/entities/tools/task.entity.js +221 -0
- package/dist/entities/tools/task.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +29 -0
- package/dist/entities/user.entity.js +168 -0
- package/dist/entities/user.entity.js.map +1 -0
- package/dist/eslint.config.d.ts +2 -0
- package/dist/eslint.config.js +46 -0
- package/dist/eslint.config.js.map +1 -0
- package/dist/grpc/drive/drive.proto +179 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/index.d.ts +4 -0
- package/dist/modules/index.js +21 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/queue/event.service.d.ts +9 -0
- package/dist/modules/queue/event.service.js +40 -0
- package/dist/modules/queue/event.service.js.map +1 -0
- package/dist/modules/queue/notifier.service.d.ts +15 -0
- package/dist/modules/queue/notifier.service.js +70 -0
- package/dist/modules/queue/notifier.service.js.map +1 -0
- package/dist/modules/queue/notifiers/calendar.notifier.d.ts +2 -0
- package/dist/modules/queue/notifiers/calendar.notifier.js +17 -0
- package/dist/modules/queue/notifiers/calendar.notifier.js.map +1 -0
- package/dist/modules/queue/notifiers/contact.notifier.d.ts +7 -0
- package/dist/modules/queue/notifiers/contact.notifier.js +49 -0
- package/dist/modules/queue/notifiers/contact.notifier.js.map +1 -0
- package/dist/modules/queue/notifiers/index.d.ts +4 -0
- package/dist/modules/queue/notifiers/index.js +21 -0
- package/dist/modules/queue/notifiers/index.js.map +1 -0
- package/dist/modules/queue/notifiers/lead.notifier.d.ts +7 -0
- package/dist/modules/queue/notifiers/lead.notifier.js +49 -0
- package/dist/modules/queue/notifiers/lead.notifier.js.map +1 -0
- package/dist/modules/queue/notifiers/task.notifier.d.ts +15 -0
- package/dist/modules/queue/notifiers/task.notifier.js +130 -0
- package/dist/modules/queue/notifiers/task.notifier.js.map +1 -0
- package/dist/modules/queue/queue.module.d.ts +4 -0
- package/dist/modules/queue/queue.module.js +57 -0
- package/dist/modules/queue/queue.module.js.map +1 -0
- package/dist/modules/queue/scheduler.service.d.ts +9 -0
- package/dist/modules/queue/scheduler.service.js +40 -0
- package/dist/modules/queue/scheduler.service.js.map +1 -0
- package/justfile +8 -8
- package/package.json +1 -1
- package/scripts/bump.sh +5 -5
- package/test.bat +15 -15
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +25 -25
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,136 @@
|
|
|
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.TaskCRM = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const tools_1 = require("../../../entities/tools");
|
|
16
|
+
const common_1 = require("../../../common");
|
|
17
|
+
const sales_1 = require("../../../entities/sales");
|
|
18
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
19
|
+
let TaskCRM = class TaskCRM extends typeorm_1.BaseEntity {
|
|
20
|
+
id;
|
|
21
|
+
type;
|
|
22
|
+
taskId;
|
|
23
|
+
task;
|
|
24
|
+
contactId;
|
|
25
|
+
contact;
|
|
26
|
+
polizaId;
|
|
27
|
+
poliza;
|
|
28
|
+
leadId;
|
|
29
|
+
lead;
|
|
30
|
+
receiptId;
|
|
31
|
+
receipt;
|
|
32
|
+
get crmEntity() {
|
|
33
|
+
switch (this.type) {
|
|
34
|
+
case common_1.TaskCRMType.CONTACT:
|
|
35
|
+
return this.contact;
|
|
36
|
+
case common_1.TaskCRMType.POLIZA:
|
|
37
|
+
return this.poliza;
|
|
38
|
+
case common_1.TaskCRMType.LEAD:
|
|
39
|
+
return this.lead;
|
|
40
|
+
case common_1.TaskCRMType.RECEIPT:
|
|
41
|
+
return this.receipt;
|
|
42
|
+
default:
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
exports.TaskCRM = TaskCRM;
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({
|
|
50
|
+
type: String,
|
|
51
|
+
description: "UUID del TaskCRM",
|
|
52
|
+
format: "uuid",
|
|
53
|
+
}),
|
|
54
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], TaskCRM.prototype, "id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)({
|
|
59
|
+
enum: common_1.TaskCRMType,
|
|
60
|
+
description: "Tipo de la entidad CRM relacionada",
|
|
61
|
+
}),
|
|
62
|
+
(0, typeorm_1.Column)({
|
|
63
|
+
type: "enum",
|
|
64
|
+
enum: common_1.TaskCRMType,
|
|
65
|
+
}),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], TaskCRM.prototype, "type", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)({
|
|
70
|
+
type: String,
|
|
71
|
+
description: "ID de la tarea asociada",
|
|
72
|
+
}),
|
|
73
|
+
(0, typeorm_1.Column)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], TaskCRM.prototype, "taskId", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.ManyToOne)(() => tools_1.Task, (task) => task.crm, {
|
|
78
|
+
onDelete: "CASCADE",
|
|
79
|
+
onUpdate: "CASCADE",
|
|
80
|
+
}),
|
|
81
|
+
(0, typeorm_1.JoinColumn)({ name: "taskId" }),
|
|
82
|
+
__metadata("design:type", tools_1.Task)
|
|
83
|
+
], TaskCRM.prototype, "task", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_transformer_1.Exclude)(),
|
|
86
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], TaskCRM.prototype, "contactId", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_transformer_1.Exclude)(),
|
|
91
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Contact, { nullable: true, onDelete: "CASCADE" }),
|
|
92
|
+
(0, typeorm_1.JoinColumn)({ name: "contactId" }),
|
|
93
|
+
__metadata("design:type", sales_1.Contact)
|
|
94
|
+
], TaskCRM.prototype, "contact", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_transformer_1.Exclude)(),
|
|
97
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], TaskCRM.prototype, "polizaId", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, class_transformer_1.Exclude)(),
|
|
102
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Poliza, { nullable: true, onDelete: "CASCADE" }),
|
|
103
|
+
(0, typeorm_1.JoinColumn)({ name: "polizaId" }),
|
|
104
|
+
__metadata("design:type", sales_1.Poliza)
|
|
105
|
+
], TaskCRM.prototype, "poliza", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, class_transformer_1.Exclude)(),
|
|
108
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], TaskCRM.prototype, "leadId", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, class_transformer_1.Exclude)(),
|
|
113
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Lead, { nullable: true, onDelete: "CASCADE" }),
|
|
114
|
+
(0, typeorm_1.JoinColumn)({ name: "leadId" }),
|
|
115
|
+
__metadata("design:type", sales_1.Lead)
|
|
116
|
+
], TaskCRM.prototype, "lead", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, class_transformer_1.Exclude)(),
|
|
119
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], TaskCRM.prototype, "receiptId", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, class_transformer_1.Exclude)(),
|
|
124
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Receipt, { nullable: true, onDelete: "CASCADE" }),
|
|
125
|
+
(0, typeorm_1.JoinColumn)({ name: "receiptId" }),
|
|
126
|
+
__metadata("design:type", sales_1.Receipt)
|
|
127
|
+
], TaskCRM.prototype, "receipt", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, class_transformer_1.Expose)(),
|
|
130
|
+
__metadata("design:type", Object),
|
|
131
|
+
__metadata("design:paramtypes", [])
|
|
132
|
+
], TaskCRM.prototype, "crmEntity", null);
|
|
133
|
+
exports.TaskCRM = TaskCRM = __decorate([
|
|
134
|
+
(0, typeorm_1.Entity)()
|
|
135
|
+
], TaskCRM);
|
|
136
|
+
//# sourceMappingURL=task_crm.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task_crm.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/tools/task_crm.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AACjB,yDAAoD;AACpD,mDAA+C;AAC/C,4CAA8C;AAC9C,mDAAyE;AACzE,6CAA8C;AAGvC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,oBAAU;IAOrC,EAAE,CAAU;IAUZ,IAAI,CAAc;IAOlB,MAAM,CAAS;IAOf,IAAI,CAAO;IAKX,SAAS,CAAU;IAKnB,OAAO,CAAW;IAIlB,QAAQ,CAAU;IAKlB,MAAM,CAAU;IAIhB,MAAM,CAAU;IAKhB,IAAI,CAAQ;IAIZ,SAAS,CAAU;IAKnB,OAAO,CAAW;IAElB,IACI,SAAS;QACX,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,oBAAW,CAAC,OAAO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I,OAAO,CAqFnB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.AccessHistory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const common_1 = require("../../../common");
|
|
16
|
+
const user_entity_1 = require("../../user.entity");
|
|
17
|
+
let AccessHistory = class AccessHistory extends common_1.EntityBase {
|
|
18
|
+
user;
|
|
19
|
+
ipAddress;
|
|
20
|
+
loginTime;
|
|
21
|
+
logoutTime;
|
|
22
|
+
duration;
|
|
23
|
+
};
|
|
24
|
+
exports.AccessHistory = AccessHistory;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'Usuario que realizó el acceso' }),
|
|
27
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
28
|
+
onDelete: "CASCADE",
|
|
29
|
+
onUpdate: "CASCADE",
|
|
30
|
+
eager: true
|
|
31
|
+
}),
|
|
32
|
+
(0, typeorm_1.JoinColumn)(),
|
|
33
|
+
__metadata("design:type", user_entity_1.User)
|
|
34
|
+
], AccessHistory.prototype, "user", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Dirección IP de acceso' }),
|
|
37
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 25 }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], AccessHistory.prototype, "ipAddress", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Fecha de acceso' }),
|
|
42
|
+
(0, typeorm_1.Column)({ type: "timestamp" }),
|
|
43
|
+
__metadata("design:type", Date)
|
|
44
|
+
], AccessHistory.prototype, "loginTime", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Hora de inicio de sesión' }),
|
|
47
|
+
(0, typeorm_1.Column)({ type: "timestamp" }),
|
|
48
|
+
__metadata("design:type", Date)
|
|
49
|
+
], AccessHistory.prototype, "logoutTime", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Duración de la sesión' }),
|
|
52
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 20 }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], AccessHistory.prototype, "duration", void 0);
|
|
55
|
+
exports.AccessHistory = AccessHistory = __decorate([
|
|
56
|
+
(0, typeorm_1.Entity)()
|
|
57
|
+
], AccessHistory);
|
|
58
|
+
//# sourceMappingURL=access_history.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access_history.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/user/access_history.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAgE;AAChE,6CAA8C;AAC9C,4CAA6C;AAC7C,mDAAyC;AAGlC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,mBAAU;IAQ3C,IAAI,CAAO;IAIX,SAAS,CAA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from "../common/database/base.entity";
|
|
2
|
+
export declare class ImapConfig extends EntityBase {
|
|
3
|
+
host: string;
|
|
4
|
+
port: number;
|
|
5
|
+
user: string;
|
|
6
|
+
password: string;
|
|
7
|
+
mailName: string;
|
|
8
|
+
tls: boolean;
|
|
9
|
+
senderName: string;
|
|
10
|
+
userId: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.ImapConfig = void 0;
|
|
13
|
+
const base_entity_1 = require("../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
let ImapConfig = class ImapConfig extends base_entity_1.EntityBase {
|
|
16
|
+
host;
|
|
17
|
+
port;
|
|
18
|
+
user;
|
|
19
|
+
password;
|
|
20
|
+
mailName;
|
|
21
|
+
tls;
|
|
22
|
+
senderName;
|
|
23
|
+
userId;
|
|
24
|
+
};
|
|
25
|
+
exports.ImapConfig = ImapConfig;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ImapConfig.prototype, "host", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)("int"),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], ImapConfig.prototype, "port", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ImapConfig.prototype, "user", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ImapConfig.prototype, "password", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], ImapConfig.prototype, "mailName", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)(),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], ImapConfig.prototype, "tls", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], ImapConfig.prototype, "senderName", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], ImapConfig.prototype, "userId", void 0);
|
|
58
|
+
exports.ImapConfig = ImapConfig = __decorate([
|
|
59
|
+
(0, typeorm_1.Entity)()
|
|
60
|
+
], ImapConfig);
|
|
61
|
+
//# sourceMappingURL=imap-config.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imap-config.entity.js","sourceRoot":"","sources":["../../src/entities/imap-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA4D;AAC5D,qCAAyC;AAGlC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,wBAAU;IAExC,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,QAAQ,CAAS;IAGjB,GAAG,CAAU;IAGb,UAAU,CAAS;IAGnB,MAAM,CAAS;CAChB,CAAA;AAxBY,gCAAU;AAErB;IADC,IAAA,gBAAM,GAAE;;wCACI;AAGb;IADC,IAAA,gBAAM,EAAC,KAAK,CAAC;;wCACD;AAGb;IADC,IAAA,gBAAM,GAAE;;wCACI;AAGb;IADC,IAAA,gBAAM,GAAE;;4CACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;4CACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;uCACI;AAGb;IADC,IAAA,gBAAM,GAAE;;8CACU;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;0CACV;qBAvBJ,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAwBtB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from "./protocol.entity";
|
|
2
|
+
export * from "./otp-log.entity";
|
|
3
|
+
export * from "./refresh-token.entity";
|
|
4
|
+
export * from "./permission.entity";
|
|
5
|
+
export * from "./phone.entity";
|
|
6
|
+
export * from "./email.entity";
|
|
7
|
+
export * from "./app_config/app-config.entity";
|
|
8
|
+
export * from "./imap-config.entity";
|
|
9
|
+
export * from "./tag.entity";
|
|
10
|
+
export * from "./tools";
|
|
11
|
+
export * from "./drive";
|
|
12
|
+
export * from "./sales";
|
|
13
|
+
export * from "./helpers";
|
|
14
|
+
export * from "./notifications";
|
|
15
|
+
export * from "./easyapp/filter-view.entity";
|
|
16
|
+
export * from "./thirdparty/oauth.entity";
|
|
17
|
+
export * from "./thirdparty/service.entity";
|
|
18
|
+
export * from "./thirdparty/email.entity";
|
|
19
|
+
export * from "./thirdparty/email-config.entity";
|
|
20
|
+
export * from "./thirdparty/user-email-relation.entity";
|
|
21
|
+
export * from "./currency.entity";
|
|
22
|
+
export * from "./user.entity";
|
|
23
|
+
export * from "./group.entity";
|
|
24
|
+
export * from "./menu-permissions.entity";
|
|
25
|
+
export * from "./profile.entity";
|
|
26
|
+
export * from "./role.entity";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./protocol.entity"), exports);
|
|
18
|
+
__exportStar(require("./otp-log.entity"), exports);
|
|
19
|
+
__exportStar(require("./refresh-token.entity"), exports);
|
|
20
|
+
__exportStar(require("./permission.entity"), exports);
|
|
21
|
+
__exportStar(require("./phone.entity"), exports);
|
|
22
|
+
__exportStar(require("./email.entity"), exports);
|
|
23
|
+
__exportStar(require("./app_config/app-config.entity"), exports);
|
|
24
|
+
__exportStar(require("./imap-config.entity"), exports);
|
|
25
|
+
__exportStar(require("./tag.entity"), exports);
|
|
26
|
+
__exportStar(require("./tools"), exports);
|
|
27
|
+
__exportStar(require("./drive"), exports);
|
|
28
|
+
__exportStar(require("./sales"), exports);
|
|
29
|
+
__exportStar(require("./helpers"), exports);
|
|
30
|
+
__exportStar(require("./notifications"), exports);
|
|
31
|
+
__exportStar(require("./easyapp/filter-view.entity"), exports);
|
|
32
|
+
__exportStar(require("./thirdparty/oauth.entity"), exports);
|
|
33
|
+
__exportStar(require("./thirdparty/service.entity"), exports);
|
|
34
|
+
__exportStar(require("./thirdparty/email.entity"), exports);
|
|
35
|
+
__exportStar(require("./thirdparty/email-config.entity"), exports);
|
|
36
|
+
__exportStar(require("./thirdparty/user-email-relation.entity"), exports);
|
|
37
|
+
__exportStar(require("./currency.entity"), exports);
|
|
38
|
+
__exportStar(require("./user.entity"), exports);
|
|
39
|
+
__exportStar(require("./group.entity"), exports);
|
|
40
|
+
__exportStar(require("./menu-permissions.entity"), exports);
|
|
41
|
+
__exportStar(require("./profile.entity"), exports);
|
|
42
|
+
__exportStar(require("./role.entity"), exports);
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,sDAAoC;AACpC,iDAA+B;AAC/B,iDAA+B;AAC/B,iEAA+C;AAC/C,uDAAqC;AACrC,+CAA6B;AAC7B,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,kDAAgC;AAChC,+DAA6C;AAC7C,4DAA0C;AAC1C,8DAA4C;AAC5C,4DAA0C;AAC1C,mEAAiD;AACjD,0EAAwD;AACxD,oDAAkC;AAClC,gDAA8B;AAC9B,iDAA+B;AAC/B,4DAA0C;AAC1C,mDAAiC;AACjC,gDAA8B"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MenuPermissions = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const base_entity_1 = require("../common/database/base.entity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const user_entity_1 = require("./user.entity");
|
|
17
|
+
let MenuPermissions = class MenuPermissions extends base_entity_1.EntityBase {
|
|
18
|
+
menu;
|
|
19
|
+
deny;
|
|
20
|
+
user;
|
|
21
|
+
};
|
|
22
|
+
exports.MenuPermissions = MenuPermissions;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)("varchar", { array: true }),
|
|
25
|
+
__metadata("design:type", Array)
|
|
26
|
+
], MenuPermissions.prototype, "menu", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)("varchar", { array: true }),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], MenuPermissions.prototype, "deny", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User associated with the Menu Permission' }),
|
|
33
|
+
(0, typeorm_1.OneToOne)(() => user_entity_1.User, user => user.menuPermissions, {
|
|
34
|
+
onDelete: "CASCADE",
|
|
35
|
+
onUpdate: "CASCADE",
|
|
36
|
+
}),
|
|
37
|
+
__metadata("design:type", user_entity_1.User)
|
|
38
|
+
], MenuPermissions.prototype, "user", void 0);
|
|
39
|
+
exports.MenuPermissions = MenuPermissions = __decorate([
|
|
40
|
+
(0, typeorm_1.Entity)()
|
|
41
|
+
], MenuPermissions);
|
|
42
|
+
//# sourceMappingURL=menu-permissions.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-permissions.entity.js","sourceRoot":"","sources":["../../src/entities/menu-permissions.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,gEAA4D;AAC5D,qCAAmD;AACnD,+CAAqC;AAG9B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,wBAAU;IAE7C,IAAI,CAAW;IAGf,IAAI,CAAW;IAOf,IAAI,CAAO;CACZ,CAAA;AAbY,0CAAe;AAE1B;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC;;6CACnB;AAGf;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC;;6CACnB;AAOf;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,0CAA0C,EAAE,CAAC;IAC1F,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE;QAClD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACI,kBAAI;6CAAC;0BAZA,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CAa3B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./notification.entity"), exports);
|
|
18
|
+
__exportStar(require("./push-token.entity"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,sDAAoC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { User } from "../user.entity";
|
|
2
|
+
import { BaseEntitySimple } from "../../common/database/base.entity";
|
|
3
|
+
import { NotificationCategory, NotificationChannel, NotificationSubcategory } from "../../common/enums";
|
|
4
|
+
export declare class Notification extends BaseEntitySimple {
|
|
5
|
+
content: string;
|
|
6
|
+
title: string;
|
|
7
|
+
category: NotificationCategory;
|
|
8
|
+
subCategory: NotificationSubcategory;
|
|
9
|
+
channels: NotificationChannel[];
|
|
10
|
+
metadata: Record<string, any>;
|
|
11
|
+
entityId: string;
|
|
12
|
+
readAt: Date;
|
|
13
|
+
canceledAt: Date;
|
|
14
|
+
recipient?: User;
|
|
15
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Notification = void 0;
|
|
13
|
+
const user_entity_1 = require("../user.entity");
|
|
14
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const enums_1 = require("../../common/enums");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
let Notification = class Notification extends base_entity_1.BaseEntitySimple {
|
|
19
|
+
content;
|
|
20
|
+
title;
|
|
21
|
+
category;
|
|
22
|
+
subCategory;
|
|
23
|
+
channels;
|
|
24
|
+
metadata;
|
|
25
|
+
entityId;
|
|
26
|
+
readAt;
|
|
27
|
+
canceledAt;
|
|
28
|
+
recipient;
|
|
29
|
+
};
|
|
30
|
+
exports.Notification = Notification;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Content of the notification' }),
|
|
33
|
+
(0, typeorm_1.Column)({ type: "text" }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Notification.prototype, "content", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Title of the notification' }),
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Notification.prototype, "title", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({
|
|
43
|
+
enum: enums_1.NotificationCategory,
|
|
44
|
+
description: 'Category of the notification',
|
|
45
|
+
default: enums_1.NotificationCategory.DEFAULT
|
|
46
|
+
}),
|
|
47
|
+
(0, typeorm_1.Column)({
|
|
48
|
+
type: "enum",
|
|
49
|
+
enum: enums_1.NotificationCategory,
|
|
50
|
+
default: enums_1.NotificationCategory.DEFAULT
|
|
51
|
+
}),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], Notification.prototype, "category", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, swagger_1.ApiProperty)({
|
|
56
|
+
enum: enums_1.NotificationSubcategory,
|
|
57
|
+
description: 'Subcategory of the notification',
|
|
58
|
+
default: enums_1.NotificationSubcategory.DEFAULT
|
|
59
|
+
}),
|
|
60
|
+
(0, typeorm_1.Column)({
|
|
61
|
+
type: "enum",
|
|
62
|
+
enum: enums_1.NotificationSubcategory,
|
|
63
|
+
default: enums_1.NotificationSubcategory.DEFAULT
|
|
64
|
+
}),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], Notification.prototype, "subCategory", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, swagger_1.ApiProperty)({
|
|
69
|
+
type: [String],
|
|
70
|
+
enum: enums_1.NotificationChannel,
|
|
71
|
+
description: 'Channels through which the notification is sent'
|
|
72
|
+
}),
|
|
73
|
+
(0, typeorm_1.Column)({
|
|
74
|
+
type: "enum",
|
|
75
|
+
enum: enums_1.NotificationChannel,
|
|
76
|
+
array: true,
|
|
77
|
+
}),
|
|
78
|
+
__metadata("design:type", Array)
|
|
79
|
+
], Notification.prototype, "channels", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, swagger_1.ApiProperty)({
|
|
82
|
+
type: Object,
|
|
83
|
+
description: 'Additional metadata for the notification',
|
|
84
|
+
required: false
|
|
85
|
+
}),
|
|
86
|
+
(0, typeorm_1.Column)({
|
|
87
|
+
type: "simple-json",
|
|
88
|
+
nullable: true
|
|
89
|
+
}),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], Notification.prototype, "metadata", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Associated entity ID', required: false }),
|
|
94
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], Notification.prototype, "entityId", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Timestamp when the notification was read', required: false }),
|
|
99
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
100
|
+
__metadata("design:type", Date)
|
|
101
|
+
], Notification.prototype, "readAt", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Timestamp when the notification was canceled', required: false }),
|
|
104
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
105
|
+
__metadata("design:type", Date)
|
|
106
|
+
], Notification.prototype, "canceledAt", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'Recipient of the notification', required: false }),
|
|
109
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
110
|
+
onDelete: "SET NULL",
|
|
111
|
+
onUpdate: "CASCADE",
|
|
112
|
+
nullable: true,
|
|
113
|
+
}),
|
|
114
|
+
__metadata("design:type", user_entity_1.User)
|
|
115
|
+
], Notification.prototype, "recipient", void 0);
|
|
116
|
+
exports.Notification = Notification = __decorate([
|
|
117
|
+
(0, typeorm_1.Entity)()
|
|
118
|
+
], Notification);
|
|
119
|
+
//# sourceMappingURL=notification.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.entity.js","sourceRoot":"","sources":["../../../src/entities/notifications/notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gD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;IAChG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACU,kBAAI;+CAAC;uBA1ER,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CA2ExB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PushToken = void 0;
|
|
13
|
+
const user_entity_1 = require("../user.entity");
|
|
14
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
+
let PushToken = class PushToken extends base_entity_1.BaseEntitySimple {
|
|
18
|
+
token;
|
|
19
|
+
device;
|
|
20
|
+
user;
|
|
21
|
+
};
|
|
22
|
+
exports.PushToken = PushToken;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Push notification token' }),
|
|
25
|
+
(0, typeorm_1.Column)({ type: "text" }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], PushToken.prototype, "token", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Device associated with the token' }),
|
|
30
|
+
(0, typeorm_1.Column)({ type: "text", unique: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], PushToken.prototype, "device", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User associated with the token', required: false }),
|
|
35
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
36
|
+
onDelete: "SET NULL",
|
|
37
|
+
onUpdate: "CASCADE",
|
|
38
|
+
nullable: true,
|
|
39
|
+
}),
|
|
40
|
+
__metadata("design:type", user_entity_1.User)
|
|
41
|
+
], PushToken.prototype, "user", void 0);
|
|
42
|
+
exports.PushToken = PushToken = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)()
|
|
44
|
+
], PushToken);
|
|
45
|
+
//# sourceMappingURL=push-token.entity.js.map
|