easywork-common-lib 1.0.378 → 1.0.379
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/package.json +1 -1
- package/tsconfig.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/common/@types/enums/crm.enum.d.ts +0 -8
- package/dist/common/@types/enums/crm.enum.js +0 -14
- package/dist/common/@types/enums/crm.enum.js.map +0 -1
- package/dist/common/@types/enums/index.d.ts +0 -3
- package/dist/common/@types/enums/index.js +0 -20
- package/dist/common/@types/enums/index.js.map +0 -1
- package/dist/common/@types/enums/misc.enum.d.ts +0 -60
- package/dist/common/@types/enums/misc.enum.js +0 -81
- package/dist/common/@types/enums/misc.enum.js.map +0 -1
- package/dist/common/@types/enums/permission.enum.d.ts +0 -13
- package/dist/common/@types/enums/permission.enum.js +0 -19
- package/dist/common/@types/enums/permission.enum.js.map +0 -1
- package/dist/common/@types/index.d.ts +0 -2
- package/dist/common/@types/index.js +0 -19
- package/dist/common/@types/index.js.map +0 -1
- package/dist/common/@types/interfaces/authentication.interface.d.ts +0 -17
- package/dist/common/@types/interfaces/authentication.interface.js +0 -3
- package/dist/common/@types/interfaces/authentication.interface.js.map +0 -1
- package/dist/common/@types/interfaces/crm.interface.d.ts +0 -131
- package/dist/common/@types/interfaces/crm.interface.js +0 -3
- package/dist/common/@types/interfaces/crm.interface.js.map +0 -1
- package/dist/common/@types/interfaces/file.interface.d.ts +0 -14
- package/dist/common/@types/interfaces/file.interface.js +0 -3
- package/dist/common/@types/interfaces/file.interface.js.map +0 -1
- package/dist/common/@types/interfaces/index.d.ts +0 -5
- package/dist/common/@types/interfaces/index.js +0 -22
- package/dist/common/@types/interfaces/index.js.map +0 -1
- package/dist/common/@types/interfaces/mail.interface.d.ts +0 -9
- package/dist/common/@types/interfaces/mail.interface.js +0 -3
- package/dist/common/@types/interfaces/mail.interface.js.map +0 -1
- package/dist/common/@types/interfaces/validator.interface.d.ts +0 -41
- package/dist/common/@types/interfaces/validator.interface.js +0 -3
- package/dist/common/@types/interfaces/validator.interface.js.map +0 -1
- package/dist/common/constants/app.contants.d.ts +0 -16
- package/dist/common/constants/app.contants.js +0 -78
- package/dist/common/constants/app.contants.js.map +0 -1
- package/dist/common/constants/index.d.ts +0 -2
- package/dist/common/constants/index.js +0 -19
- package/dist/common/constants/index.js.map +0 -1
- package/dist/common/constants/regex.constant.d.ts +0 -6
- package/dist/common/constants/regex.constant.js +0 -10
- package/dist/common/constants/regex.constant.js.map +0 -1
- package/dist/common/database/base.entity.d.ts +0 -27
- package/dist/common/database/base.entity.js +0 -142
- package/dist/common/database/base.entity.js.map +0 -1
- package/dist/common/database/index.d.ts +0 -1
- package/dist/common/database/index.js +0 -18
- package/dist/common/database/index.js.map +0 -1
- package/dist/common/dtos/index.d.ts +0 -1
- package/dist/common/dtos/index.js +0 -18
- package/dist/common/dtos/index.js.map +0 -1
- package/dist/common/dtos/send-notification.dto.d.ts +0 -11
- package/dist/common/dtos/send-notification.dto.js +0 -60
- package/dist/common/dtos/send-notification.dto.js.map +0 -1
- package/dist/common/enums/drive.enum.d.ts +0 -20
- package/dist/common/enums/drive.enum.js +0 -26
- package/dist/common/enums/drive.enum.js.map +0 -1
- package/dist/common/enums/index.d.ts +0 -4
- package/dist/common/enums/index.js +0 -21
- package/dist/common/enums/index.js.map +0 -1
- package/dist/common/enums/notification.enum.d.ts +0 -32
- package/dist/common/enums/notification.enum.js +0 -39
- package/dist/common/enums/notification.enum.js.map +0 -1
- package/dist/common/enums/sales.enum.d.ts +0 -31
- package/dist/common/enums/sales.enum.js +0 -41
- package/dist/common/enums/sales.enum.js.map +0 -1
- package/dist/common/enums/tools.enum.d.ts +0 -19
- package/dist/common/enums/tools.enum.js +0 -26
- package/dist/common/enums/tools.enum.js.map +0 -1
- package/dist/common/functions/cripto.d.ts +0 -1
- package/dist/common/functions/cripto.js +0 -8
- package/dist/common/functions/cripto.js.map +0 -1
- package/dist/common/functions/image.d.ts +0 -2
- package/dist/common/functions/image.js +0 -14
- package/dist/common/functions/image.js.map +0 -1
- package/dist/common/functions/index.d.ts +0 -2
- package/dist/common/functions/index.js +0 -19
- package/dist/common/functions/index.js.map +0 -1
- package/dist/common/helpers/app.utils.d.ts +0 -5
- package/dist/common/helpers/app.utils.js +0 -32
- package/dist/common/helpers/app.utils.js.map +0 -1
- package/dist/common/helpers/helpers.utils.d.ts +0 -5
- package/dist/common/helpers/helpers.utils.js +0 -26
- package/dist/common/helpers/helpers.utils.js.map +0 -1
- package/dist/common/helpers/index.d.ts +0 -2
- package/dist/common/helpers/index.js +0 -19
- package/dist/common/helpers/index.js.map +0 -1
- package/dist/common/index.d.ts +0 -8
- package/dist/common/index.js +0 -25
- package/dist/common/index.js.map +0 -1
- package/dist/common/interceptors/index.d.ts +0 -1
- package/dist/common/interceptors/index.js +0 -18
- package/dist/common/interceptors/index.js.map +0 -1
- package/dist/common/interceptors/security.interceptor.d.ts +0 -5
- package/dist/common/interceptors/security.interceptor.js +0 -22
- package/dist/common/interceptors/security.interceptor.js.map +0 -1
- package/dist/entities/app_config/app-config.entity.d.ts +0 -5
- package/dist/entities/app_config/app-config.entity.js +0 -33
- package/dist/entities/app_config/app-config.entity.js.map +0 -1
- package/dist/entities/currency.entity.d.ts +0 -6
- package/dist/entities/currency.entity.js +0 -43
- package/dist/entities/currency.entity.js.map +0 -1
- package/dist/entities/drive/attached_object.entity.d.ts +0 -17
- package/dist/entities/drive/attached_object.entity.js +0 -125
- package/dist/entities/drive/attached_object.entity.js.map +0 -1
- package/dist/entities/drive/file.entity.d.ts +0 -14
- package/dist/entities/drive/file.entity.js +0 -88
- package/dist/entities/drive/file.entity.js.map +0 -1
- package/dist/entities/drive/folder.entity.d.ts +0 -14
- package/dist/entities/drive/folder.entity.js +0 -108
- package/dist/entities/drive/folder.entity.js.map +0 -1
- package/dist/entities/drive/index.d.ts +0 -3
- package/dist/entities/drive/index.js +0 -20
- package/dist/entities/drive/index.js.map +0 -1
- package/dist/entities/easyapp/filter-view.entity.d.ts +0 -7
- package/dist/entities/easyapp/filter-view.entity.js +0 -41
- package/dist/entities/easyapp/filter-view.entity.js.map +0 -1
- package/dist/entities/email.entity.d.ts +0 -5
- package/dist/entities/email.entity.js +0 -36
- package/dist/entities/email.entity.js.map +0 -1
- package/dist/entities/group.entity.d.ts +0 -5
- package/dist/entities/group.entity.js +0 -33
- package/dist/entities/group.entity.js.map +0 -1
- package/dist/entities/helpers/entity_file.entity.d.ts +0 -10
- package/dist/entities/helpers/entity_file.entity.js +0 -61
- package/dist/entities/helpers/entity_file.entity.js.map +0 -1
- package/dist/entities/helpers/entity_folder.entity.d.ts +0 -10
- package/dist/entities/helpers/entity_folder.entity.js +0 -61
- package/dist/entities/helpers/entity_folder.entity.js.map +0 -1
- package/dist/entities/helpers/index.d.ts +0 -4
- package/dist/entities/helpers/index.js +0 -21
- package/dist/entities/helpers/index.js.map +0 -1
- package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/common/client_sources.entity.js +0 -36
- package/dist/entities/helpers/sales/common/client_sources.entity.js.map +0 -1
- package/dist/entities/helpers/sales/common/client_types.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/common/client_types.entity.js +0 -36
- package/dist/entities/helpers/sales/common/client_types.entity.js.map +0 -1
- package/dist/entities/helpers/sales/contact/contact_email.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/contact/contact_email.entity.js +0 -68
- package/dist/entities/helpers/sales/contact/contact_email.entity.js.map +0 -1
- package/dist/entities/helpers/sales/contact/contact_insurance.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/contact/contact_insurance.entity.js +0 -68
- package/dist/entities/helpers/sales/contact/contact_insurance.entity.js.map +0 -1
- package/dist/entities/helpers/sales/contact/contact_phone.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js +0 -68
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js.map +0 -1
- package/dist/entities/helpers/sales/contact/contact_sources.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js +0 -36
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js.map +0 -1
- package/dist/entities/helpers/sales/contact/contact_types.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/contact/contact_types.entity.js +0 -36
- package/dist/entities/helpers/sales/contact/contact_types.entity.js.map +0 -1
- package/dist/entities/helpers/sales/contact/index.d.ts +0 -5
- package/dist/entities/helpers/sales/contact/index.js +0 -22
- package/dist/entities/helpers/sales/contact/index.js.map +0 -1
- package/dist/entities/helpers/sales/index.d.ts +0 -6
- package/dist/entities/helpers/sales/index.js +0 -23
- package/dist/entities/helpers/sales/index.js.map +0 -1
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.d.ts +0 -4
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +0 -30
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +0 -1
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +0 -36
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +0 -1
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.d.ts +0 -4
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +0 -30
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +0 -1
- package/dist/entities/helpers/sales/lead/index.d.ts +0 -6
- package/dist/entities/helpers/sales/lead/index.js +0 -23
- package/dist/entities/helpers/sales/lead/index.js.map +0 -1
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.d.ts +0 -4
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js +0 -28
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js.map +0 -1
- package/dist/entities/helpers/sales/lead/lead_email.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/lead/lead_email.entity.js +0 -66
- package/dist/entities/helpers/sales/lead/lead_email.entity.js.map +0 -1
- package/dist/entities/helpers/sales/lead/lead_phone.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js +0 -66
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js +0 -30
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js +0 -30
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js +0 -33
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.d.ts +0 -6
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +0 -39
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.d.ts +0 -6
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +0 -39
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js +0 -30
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.d.ts +0 -6
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js +0 -36
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +0 -33
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/index.d.ts +0 -9
- package/dist/entities/helpers/sales/poliza/index.js +0 -26
- package/dist/entities/helpers/sales/poliza/index.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/poliza_beneficiary.entity.d.ts +0 -12
- package/dist/entities/helpers/sales/poliza/poliza_beneficiary.entity.js +0 -73
- package/dist/entities/helpers/sales/poliza/poliza_beneficiary.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +0 -68
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +0 -1
- package/dist/entities/helpers/tools/index.d.ts +0 -1
- package/dist/entities/helpers/tools/index.js +0 -18
- package/dist/entities/helpers/tools/index.js.map +0 -1
- package/dist/entities/helpers/tools/task_crm.entity.d.ts +0 -17
- package/dist/entities/helpers/tools/task_crm.entity.js +0 -121
- package/dist/entities/helpers/tools/task_crm.entity.js.map +0 -1
- package/dist/entities/imap-config.entity.d.ts +0 -11
- package/dist/entities/imap-config.entity.js +0 -61
- package/dist/entities/imap-config.entity.js.map +0 -1
- package/dist/entities/imap-folder.entity.d.ts +0 -7
- package/dist/entities/imap-folder.entity.js +0 -41
- package/dist/entities/imap-folder.entity.js.map +0 -1
- package/dist/entities/index.d.ts +0 -26
- package/dist/entities/index.js +0 -43
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/menu-permissions.entity.d.ts +0 -7
- package/dist/entities/menu-permissions.entity.js +0 -42
- package/dist/entities/menu-permissions.entity.js.map +0 -1
- package/dist/entities/notifications/index.d.ts +0 -2
- package/dist/entities/notifications/index.js +0 -19
- package/dist/entities/notifications/index.js.map +0 -1
- package/dist/entities/notifications/notification.entity.d.ts +0 -15
- package/dist/entities/notifications/notification.entity.js +0 -119
- package/dist/entities/notifications/notification.entity.js.map +0 -1
- package/dist/entities/notifications/push-token.entity.d.ts +0 -7
- package/dist/entities/notifications/push-token.entity.js +0 -45
- package/dist/entities/notifications/push-token.entity.js.map +0 -1
- package/dist/entities/oauth.entity.d.ts +0 -16
- package/dist/entities/oauth.entity.js +0 -83
- package/dist/entities/oauth.entity.js.map +0 -1
- package/dist/entities/otp-log.entity.d.ts +0 -8
- package/dist/entities/otp-log.entity.js +0 -49
- package/dist/entities/otp-log.entity.js.map +0 -1
- package/dist/entities/permission.entity.d.ts +0 -7
- package/dist/entities/permission.entity.js +0 -46
- package/dist/entities/permission.entity.js.map +0 -1
- package/dist/entities/phone.entity.d.ts +0 -5
- package/dist/entities/phone.entity.js +0 -36
- package/dist/entities/phone.entity.js.map +0 -1
- package/dist/entities/profile.entity.d.ts +0 -9
- package/dist/entities/profile.entity.js +0 -55
- package/dist/entities/profile.entity.js.map +0 -1
- package/dist/entities/protocol.entity.d.ts +0 -8
- package/dist/entities/protocol.entity.js +0 -46
- package/dist/entities/protocol.entity.js.map +0 -1
- package/dist/entities/refresh-token.entity.d.ts +0 -8
- package/dist/entities/refresh-token.entity.js +0 -46
- package/dist/entities/refresh-token.entity.js.map +0 -1
- package/dist/entities/role.entity.d.ts +0 -5
- package/dist/entities/role.entity.js +0 -36
- package/dist/entities/role.entity.js.map +0 -1
- package/dist/entities/sales/agente-intermediario.entity.d.ts +0 -5
- package/dist/entities/sales/agente-intermediario.entity.js +0 -34
- package/dist/entities/sales/agente-intermediario.entity.js.map +0 -1
- package/dist/entities/sales/beneficiarios/person.entity.d.ts +0 -10
- package/dist/entities/sales/beneficiarios/person.entity.js +0 -64
- package/dist/entities/sales/beneficiarios/person.entity.js.map +0 -1
- package/dist/entities/sales/beneficiarios/vehicle.entity.d.ts +0 -13
- package/dist/entities/sales/beneficiarios/vehicle.entity.js +0 -83
- package/dist/entities/sales/beneficiarios/vehicle.entity.js.map +0 -1
- package/dist/entities/sales/contact-comment.entity.d.ts +0 -7
- package/dist/entities/sales/contact-comment.entity.js +0 -46
- package/dist/entities/sales/contact-comment.entity.js.map +0 -1
- package/dist/entities/sales/contact.entity.d.ts +0 -44
- package/dist/entities/sales/contact.entity.js +0 -267
- package/dist/entities/sales/contact.entity.js.map +0 -1
- package/dist/entities/sales/index.d.ts +0 -13
- package/dist/entities/sales/index.js +0 -30
- package/dist/entities/sales/index.js.map +0 -1
- package/dist/entities/sales/lead-comment.entity.d.ts +0 -7
- package/dist/entities/sales/lead-comment.entity.js +0 -46
- package/dist/entities/sales/lead-comment.entity.js.map +0 -1
- package/dist/entities/sales/lead.entity.d.ts +0 -43
- package/dist/entities/sales/lead.entity.js +0 -291
- package/dist/entities/sales/lead.entity.js.map +0 -1
- package/dist/entities/sales/poliza-comment.entity.d.ts +0 -7
- package/dist/entities/sales/poliza-comment.entity.js +0 -46
- package/dist/entities/sales/poliza-comment.entity.js.map +0 -1
- package/dist/entities/sales/poliza.entity.d.ts +0 -105
- package/dist/entities/sales/poliza.entity.js +0 -723
- package/dist/entities/sales/poliza.entity.js.map +0 -1
- package/dist/entities/sales/poliza_siniestro.entity.d.ts +0 -12
- package/dist/entities/sales/poliza_siniestro.entity.js +0 -72
- package/dist/entities/sales/poliza_siniestro.entity.js.map +0 -1
- package/dist/entities/sales/receipt-sub-agente.entity.d.ts +0 -5
- package/dist/entities/sales/receipt-sub-agente.entity.js +0 -35
- package/dist/entities/sales/receipt-sub-agente.entity.js.map +0 -1
- package/dist/entities/sales/receipt.entity.d.ts +0 -27
- package/dist/entities/sales/receipt.entity.js +0 -172
- package/dist/entities/sales/receipt.entity.js.map +0 -1
- package/dist/entities/tag.entity.d.ts +0 -8
- package/dist/entities/tag.entity.js +0 -53
- package/dist/entities/tag.entity.js.map +0 -1
- package/dist/entities/thirdparty/email-config.d.ts +0 -1
- package/dist/entities/thirdparty/email-config.entity.d.ts +0 -14
- package/dist/entities/thirdparty/email-config.entity.js +0 -76
- package/dist/entities/thirdparty/email-config.entity.js.map +0 -1
- package/dist/entities/thirdparty/email-config.js +0 -3
- package/dist/entities/thirdparty/email-config.js.map +0 -1
- package/dist/entities/thirdparty/email.entity.d.ts +0 -17
- package/dist/entities/thirdparty/email.entity.js +0 -79
- package/dist/entities/thirdparty/email.entity.js.map +0 -1
- package/dist/entities/thirdparty/oauth.entity.d.ts +0 -17
- package/dist/entities/thirdparty/oauth.entity.js +0 -88
- package/dist/entities/thirdparty/oauth.entity.js.map +0 -1
- package/dist/entities/thirdparty/service.entity.d.ts +0 -6
- package/dist/entities/thirdparty/service.entity.js +0 -32
- package/dist/entities/thirdparty/service.entity.js.map +0 -1
- package/dist/entities/thirdparty/user-email-relation.entity.d.ts +0 -7
- package/dist/entities/thirdparty/user-email-relation.entity.js +0 -35
- package/dist/entities/thirdparty/user-email-relation.entity.js.map +0 -1
- package/dist/entities/tools/calendar/event.entity.d.ts +0 -16
- package/dist/entities/tools/calendar/event.entity.js +0 -109
- package/dist/entities/tools/calendar/event.entity.js.map +0 -1
- package/dist/entities/tools/calendar/index.d.ts +0 -1
- package/dist/entities/tools/calendar/index.js +0 -18
- package/dist/entities/tools/calendar/index.js.map +0 -1
- package/dist/entities/tools/index.d.ts +0 -4
- package/dist/entities/tools/index.js +0 -21
- package/dist/entities/tools/index.js.map +0 -1
- package/dist/entities/tools/task-comment.entity.d.ts +0 -9
- package/dist/entities/tools/task-comment.entity.js +0 -57
- package/dist/entities/tools/task-comment.entity.js.map +0 -1
- package/dist/entities/tools/task-list-field.d.ts +0 -5
- package/dist/entities/tools/task-list-field.js +0 -39
- package/dist/entities/tools/task-list-field.js.map +0 -1
- package/dist/entities/tools/task.entity.d.ts +0 -34
- package/dist/entities/tools/task.entity.js +0 -221
- package/dist/entities/tools/task.entity.js.map +0 -1
- package/dist/entities/user/group.entity.d.ts +0 -5
- package/dist/entities/user/group.entity.js +0 -33
- package/dist/entities/user/group.entity.js.map +0 -1
- package/dist/entities/user/index.d.ts +0 -6
- package/dist/entities/user/index.js +0 -23
- package/dist/entities/user/index.js.map +0 -1
- package/dist/entities/user/menu-permissions.entity.d.ts +0 -7
- package/dist/entities/user/menu-permissions.entity.js +0 -42
- package/dist/entities/user/menu-permissions.entity.js.map +0 -1
- package/dist/entities/user/profile.entity.d.ts +0 -9
- package/dist/entities/user/profile.entity.js +0 -56
- package/dist/entities/user/profile.entity.js.map +0 -1
- package/dist/entities/user/role.entity.d.ts +0 -5
- package/dist/entities/user/role.entity.js +0 -36
- package/dist/entities/user/role.entity.js.map +0 -1
- package/dist/entities/user/user.entity.d.ts +0 -28
- package/dist/entities/user/user.entity.js +0 -160
- package/dist/entities/user/user.entity.js.map +0 -1
- package/dist/entities/user.entity.d.ts +0 -28
- package/dist/entities/user.entity.js +0 -160
- package/dist/entities/user.entity.js.map +0 -1
- package/dist/entities/user_entity/group.entity.d.ts +0 -5
- package/dist/entities/user_entity/group.entity.js +0 -33
- package/dist/entities/user_entity/group.entity.js.map +0 -1
- package/dist/entities/user_entity/index.d.ts +0 -6
- package/dist/entities/user_entity/index.js +0 -23
- package/dist/entities/user_entity/index.js.map +0 -1
- package/dist/entities/user_entity/menu-permissions.entity.d.ts +0 -7
- package/dist/entities/user_entity/menu-permissions.entity.js +0 -42
- package/dist/entities/user_entity/menu-permissions.entity.js.map +0 -1
- package/dist/entities/user_entity/profile.entity.d.ts +0 -9
- package/dist/entities/user_entity/profile.entity.js +0 -56
- package/dist/entities/user_entity/profile.entity.js.map +0 -1
- package/dist/entities/user_entity/role.entity.d.ts +0 -5
- package/dist/entities/user_entity/role.entity.js +0 -36
- package/dist/entities/user_entity/role.entity.js.map +0 -1
- package/dist/entities/user_entity/user.entity.d.ts +0 -28
- package/dist/entities/user_entity/user.entity.js +0 -160
- package/dist/entities/user_entity/user.entity.js.map +0 -1
- package/dist/eslint.config.d.ts +0 -2
- package/dist/eslint.config.js +0 -46
- package/dist/eslint.config.js.map +0 -1
- package/dist/grpc/drive/drive.proto +0 -74
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -20
- package/dist/index.js.map +0 -1
- package/dist/modules/index.d.ts +0 -3
- package/dist/modules/index.js +0 -20
- package/dist/modules/index.js.map +0 -1
- package/dist/modules/notifier/notifier.module.d.ts +0 -4
- package/dist/modules/notifier/notifier.module.js +0 -52
- package/dist/modules/notifier/notifier.module.js.map +0 -1
- package/dist/modules/notifier/notifier.service.d.ts +0 -19
- package/dist/modules/notifier/notifier.service.js +0 -231
- package/dist/modules/notifier/notifier.service.js.map +0 -1
- package/dist/modules/notifier/scheduler.service.d.ts +0 -9
- package/dist/modules/notifier/scheduler.service.js +0 -40
- package/dist/modules/notifier/scheduler.service.js.map +0 -1
- package/dist/modules/queue/notifier.service.d.ts +0 -15
- package/dist/modules/queue/notifier.service.js +0 -70
- package/dist/modules/queue/notifier.service.js.map +0 -1
- package/dist/modules/queue/notifiers/calendar.notifier.d.ts +0 -2
- package/dist/modules/queue/notifiers/calendar.notifier.js +0 -17
- package/dist/modules/queue/notifiers/calendar.notifier.js.map +0 -1
- package/dist/modules/queue/notifiers/contact.notifier.d.ts +0 -7
- package/dist/modules/queue/notifiers/contact.notifier.js +0 -49
- package/dist/modules/queue/notifiers/contact.notifier.js.map +0 -1
- package/dist/modules/queue/notifiers/index.d.ts +0 -4
- package/dist/modules/queue/notifiers/index.js +0 -21
- package/dist/modules/queue/notifiers/index.js.map +0 -1
- package/dist/modules/queue/notifiers/lead.notifier.d.ts +0 -7
- package/dist/modules/queue/notifiers/lead.notifier.js +0 -49
- package/dist/modules/queue/notifiers/lead.notifier.js.map +0 -1
- package/dist/modules/queue/notifiers/task.notifier.d.ts +0 -15
- package/dist/modules/queue/notifiers/task.notifier.js +0 -130
- package/dist/modules/queue/notifiers/task.notifier.js.map +0 -1
- package/dist/modules/queue/queue.module.d.ts +0 -4
- package/dist/modules/queue/queue.module.js +0 -55
- package/dist/modules/queue/queue.module.js.map +0 -1
- package/dist/modules/queue/scheduler.service.d.ts +0 -9
- package/dist/modules/queue/scheduler.service.js +0 -40
- package/dist/modules/queue/scheduler.service.js.map +0 -1
- package/dist/modules/queue/subservices/calendar.service.d.ts +0 -2
- package/dist/modules/queue/subservices/calendar.service.js +0 -17
- package/dist/modules/queue/subservices/calendar.service.js.map +0 -1
- package/dist/modules/queue/subservices/contact.service.d.ts +0 -7
- package/dist/modules/queue/subservices/contact.service.js +0 -49
- package/dist/modules/queue/subservices/contact.service.js.map +0 -1
- package/dist/modules/queue/subservices/index.d.ts +0 -3
- package/dist/modules/queue/subservices/index.js +0 -20
- package/dist/modules/queue/subservices/index.js.map +0 -1
- package/dist/modules/queue/subservices/task.service.d.ts +0 -12
- package/dist/modules/queue/subservices/task.service.js +0 -173
- package/dist/modules/queue/subservices/task.service.js.map +0 -1
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from "../../common/database/base.entity";
|
|
2
|
-
import { Profile } from "../profile.entity";
|
|
3
|
-
import { Role } from "../role.entity";
|
|
4
|
-
import { Tag } from "./../tag.entity";
|
|
5
|
-
import { UserEmailRelation } from "./../thirdparty/user-email-relation.entity";
|
|
6
|
-
import { PushToken } from "./../notifications/push-token.entity";
|
|
7
|
-
import { Group } from "../group.entity";
|
|
8
|
-
import { MenuPermissions } from "../menu-permissions.entity";
|
|
9
|
-
export declare class User extends BaseEntity {
|
|
10
|
-
username: string;
|
|
11
|
-
email: string;
|
|
12
|
-
bio: string;
|
|
13
|
-
avatar: string;
|
|
14
|
-
hash: string;
|
|
15
|
-
twoFactorSecret?: string;
|
|
16
|
-
isTwoFactorEnabled?: boolean;
|
|
17
|
-
phone?: string;
|
|
18
|
-
isVerified?: boolean;
|
|
19
|
-
lastLogin?: Date;
|
|
20
|
-
profile: Profile;
|
|
21
|
-
roles?: Role[];
|
|
22
|
-
tags: Tag[];
|
|
23
|
-
pushTokens: PushToken[];
|
|
24
|
-
emailRelations: UserEmailRelation[];
|
|
25
|
-
groups?: Group[];
|
|
26
|
-
menuPermissions: MenuPermissions;
|
|
27
|
-
get name(): string;
|
|
28
|
-
}
|
|
@@ -1,160 +0,0 @@
|
|
|
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.User = void 0;
|
|
13
|
-
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
|
-
const class_transformer_1 = require("class-transformer");
|
|
16
|
-
const profile_entity_1 = require("../profile.entity");
|
|
17
|
-
const role_entity_1 = require("../role.entity");
|
|
18
|
-
const tag_entity_1 = require("./../tag.entity");
|
|
19
|
-
const user_email_relation_entity_1 = require("./../thirdparty/user-email-relation.entity");
|
|
20
|
-
const push_token_entity_1 = require("./../notifications/push-token.entity");
|
|
21
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
22
|
-
const group_entity_1 = require("../group.entity");
|
|
23
|
-
const menu_permissions_entity_1 = require("../menu-permissions.entity");
|
|
24
|
-
let User = class User extends base_entity_1.BaseEntity {
|
|
25
|
-
username;
|
|
26
|
-
email;
|
|
27
|
-
bio;
|
|
28
|
-
avatar;
|
|
29
|
-
hash;
|
|
30
|
-
twoFactorSecret;
|
|
31
|
-
isTwoFactorEnabled;
|
|
32
|
-
phone;
|
|
33
|
-
isVerified;
|
|
34
|
-
lastLogin;
|
|
35
|
-
profile;
|
|
36
|
-
roles;
|
|
37
|
-
tags;
|
|
38
|
-
pushTokens;
|
|
39
|
-
emailRelations;
|
|
40
|
-
groups;
|
|
41
|
-
menuPermissions;
|
|
42
|
-
get name() {
|
|
43
|
-
return `${this.profile?.firstName ?? ''} ${this.profile?.lastName ?? ''}`.trim();
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
exports.User = User;
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Unique username' }),
|
|
49
|
-
(0, typeorm_1.Column)({ unique: true }),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], User.prototype, "username", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Unique email address' }),
|
|
54
|
-
(0, typeorm_1.Column)({ unique: true }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], User.prototype, "email", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'User bio' }),
|
|
59
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], User.prototype, "bio", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'User avatar URL' }),
|
|
64
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
65
|
-
__metadata("design:type", String)
|
|
66
|
-
], User.prototype, "avatar", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, class_transformer_1.Exclude)(),
|
|
69
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Password hash', writeOnly: true }),
|
|
70
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], User.prototype, "hash", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, class_transformer_1.Exclude)(),
|
|
75
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Two-factor authentication secret', required: false, writeOnly: true }),
|
|
76
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
77
|
-
__metadata("design:type", String)
|
|
78
|
-
], User.prototype, "twoFactorSecret", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is two-factor authentication enabled', default: false }),
|
|
81
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
82
|
-
__metadata("design:type", Boolean)
|
|
83
|
-
], User.prototype, "isTwoFactorEnabled", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'User phone number', required: false }),
|
|
86
|
-
(0, typeorm_1.Column)({ unique: true }),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], User.prototype, "phone", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is user verified', default: false }),
|
|
91
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
92
|
-
__metadata("design:type", Boolean)
|
|
93
|
-
], User.prototype, "isVerified", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, swagger_1.ApiProperty)({ type: Date, description: 'Last login timestamp', required: false }),
|
|
96
|
-
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
97
|
-
__metadata("design:type", Date)
|
|
98
|
-
], User.prototype, "lastLogin", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, swagger_1.ApiProperty)({ type: () => profile_entity_1.Profile, description: 'User profile' }),
|
|
101
|
-
(0, typeorm_1.OneToOne)(() => profile_entity_1.Profile, {
|
|
102
|
-
onDelete: "CASCADE",
|
|
103
|
-
onUpdate: "CASCADE",
|
|
104
|
-
eager: true
|
|
105
|
-
}),
|
|
106
|
-
(0, typeorm_1.JoinColumn)(),
|
|
107
|
-
__metadata("design:type", profile_entity_1.Profile)
|
|
108
|
-
], User.prototype, "profile", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, swagger_1.ApiProperty)({ type: () => [role_entity_1.Role], description: 'Roles assigned to the user' }),
|
|
111
|
-
(0, typeorm_1.ManyToMany)(() => role_entity_1.Role, {
|
|
112
|
-
onDelete: "CASCADE",
|
|
113
|
-
onUpdate: "CASCADE",
|
|
114
|
-
}),
|
|
115
|
-
(0, typeorm_1.JoinTable)(),
|
|
116
|
-
__metadata("design:type", Array)
|
|
117
|
-
], User.prototype, "roles", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
(0, swagger_1.ApiProperty)({ type: () => [tag_entity_1.Tag], description: 'Tags associated with the user' }),
|
|
120
|
-
(0, typeorm_1.OneToMany)(() => tag_entity_1.Tag, (tag) => tag.user),
|
|
121
|
-
__metadata("design:type", Array)
|
|
122
|
-
], User.prototype, "tags", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, swagger_1.ApiProperty)({ type: () => [push_token_entity_1.PushToken], description: 'Push tokens associated with the user' }),
|
|
125
|
-
(0, typeorm_1.OneToMany)(() => push_token_entity_1.PushToken, (pushToken) => pushToken.user),
|
|
126
|
-
__metadata("design:type", Array)
|
|
127
|
-
], User.prototype, "pushTokens", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, swagger_1.ApiProperty)({ type: () => [user_email_relation_entity_1.UserEmailRelation], description: 'Email relations associated with the user' }),
|
|
130
|
-
(0, typeorm_1.OneToMany)(() => user_email_relation_entity_1.UserEmailRelation, (relation) => relation.user),
|
|
131
|
-
__metadata("design:type", Array)
|
|
132
|
-
], User.prototype, "emailRelations", void 0);
|
|
133
|
-
__decorate([
|
|
134
|
-
(0, swagger_1.ApiProperty)({ type: () => [group_entity_1.Group], description: 'Groups assigned to the user' }),
|
|
135
|
-
(0, typeorm_1.ManyToMany)(() => group_entity_1.Group, {
|
|
136
|
-
onDelete: "CASCADE",
|
|
137
|
-
onUpdate: "CASCADE",
|
|
138
|
-
}),
|
|
139
|
-
(0, typeorm_1.JoinTable)(),
|
|
140
|
-
__metadata("design:type", Array)
|
|
141
|
-
], User.prototype, "groups", void 0);
|
|
142
|
-
__decorate([
|
|
143
|
-
(0, swagger_1.ApiProperty)({ type: () => menu_permissions_entity_1.MenuPermissions, description: 'Menu Permissions' }),
|
|
144
|
-
(0, typeorm_1.OneToOne)(() => menu_permissions_entity_1.MenuPermissions, {
|
|
145
|
-
onDelete: "CASCADE",
|
|
146
|
-
onUpdate: "CASCADE",
|
|
147
|
-
eager: true
|
|
148
|
-
}),
|
|
149
|
-
(0, typeorm_1.JoinColumn)(),
|
|
150
|
-
__metadata("design:type", menu_permissions_entity_1.MenuPermissions)
|
|
151
|
-
], User.prototype, "menuPermissions", void 0);
|
|
152
|
-
__decorate([
|
|
153
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Full name of the user' }),
|
|
154
|
-
__metadata("design:type", String),
|
|
155
|
-
__metadata("design:paramtypes", [])
|
|
156
|
-
], User.prototype, "name", null);
|
|
157
|
-
exports.User = User = __decorate([
|
|
158
|
-
(0, typeorm_1.Entity)()
|
|
159
|
-
], User);
|
|
160
|
-
//# sourceMappingURL=user.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/entities/user_entity/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAiG;AACjG,yDAA4C;AAC5C,sDAA4C;AAC5C,gDAAsC;AACtC,gDAAsC;AACtC,2FAA+E;AAC/E,4EAAiE;AACjE,6CAA8C;AAC9C,kDAAwC;AACxC,wEAA6D;AAGtD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAGlC,QAAQ,CAAU;IAIlB,KAAK,CAAU;IAIf,GAAG,CAAU;IAIb,MAAM,CAAU;IAKhB,IAAI,CAAU;IAKd,eAAe,CAAU;IAIzB,kBA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EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAChF,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE;QACvB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,mBAAS,GAAE;;oCACK;AASjB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,yCAAe,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IAC7E,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,yCAAe,EAAE;QAC/B,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;IACD,IAAA,oBAAU,GAAE;8BACI,yCAAe;6CAAC;AAGjC;IAAC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;;;gCAGnE;eA7FU,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA8FhB"}
|
package/dist/eslint.config.d.ts
DELETED
package/dist/eslint.config.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const rubiin = require("@antfu/eslint-config").default;
|
|
3
|
-
module.exports = rubiin({
|
|
4
|
-
stylistic: {
|
|
5
|
-
semi: true,
|
|
6
|
-
quotes: "double",
|
|
7
|
-
},
|
|
8
|
-
yaml: true,
|
|
9
|
-
jsonc: true,
|
|
10
|
-
markdown: false,
|
|
11
|
-
gitignore: true,
|
|
12
|
-
typescript: {
|
|
13
|
-
tsconfigPath: "tsconfig.json",
|
|
14
|
-
},
|
|
15
|
-
overrides: {
|
|
16
|
-
test: {
|
|
17
|
-
"ts/unbound-method": "off",
|
|
18
|
-
},
|
|
19
|
-
typescript: {
|
|
20
|
-
"ts/no-misused-promises": [
|
|
21
|
-
"error",
|
|
22
|
-
{
|
|
23
|
-
checksVoidReturn: false,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
"ts/no-floating-promises": [
|
|
27
|
-
"error",
|
|
28
|
-
{
|
|
29
|
-
ignoreIIFE: true,
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
"unicorn/prefer-top-level-await": "off",
|
|
33
|
-
"unicorn/prevent-abbreviations": [
|
|
34
|
-
"error",
|
|
35
|
-
{
|
|
36
|
-
ignore: ["\\.e2e*", "\\.spec*", "\\.decorator*", "\\*idx*"],
|
|
37
|
-
allowList: {
|
|
38
|
-
ProcessEnv: true,
|
|
39
|
-
UUIDParam: true,
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=eslint.config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.config.js","sourceRoot":"","sources":["../src/eslint.config.js"],"names":[],"mappings":";AAAA,MAAM,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC;AAEvD,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;IACtB,SAAS,EAAE;QACT,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,QAAQ;KACjB;IACD,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,YAAY,EAAE,eAAe;KAC9B;IACD,SAAS,EAAE;QACT,IAAI,EAAE;YACJ,mBAAmB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE;YACV,wBAAwB,EAAE;gBACxB,OAAO;gBACP;oBACE,gBAAgB,EAAE,KAAK;iBACxB;aACF;YACD,yBAAyB,EAAE;gBACzB,OAAO;gBACP;oBACE,UAAU,EAAE,IAAI;iBACjB;aACF;YACD,gCAAgC,EAAE,KAAK;YACvC,+BAA+B,EAAE;gBAC/B,OAAO;gBACP;oBACE,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,CAAC;oBAC3D,SAAS,EAAE;wBACT,UAAU,EAAE,IAAI;wBAChB,SAAS,EAAE,IAAI;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
// drive/proto/drive.proto
|
|
2
|
-
syntax = "proto3";
|
|
3
|
-
|
|
4
|
-
package drive;
|
|
5
|
-
|
|
6
|
-
message OwnerEntity {
|
|
7
|
-
string ownerId = 1;
|
|
8
|
-
string entityType = 2;
|
|
9
|
-
string relation = 3;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// Define los mensajes para las operaciones de carpetas
|
|
13
|
-
message CreateFolderRequest {
|
|
14
|
-
string name = 1;
|
|
15
|
-
string parentId = 2; // Opcional, puede ser nulo si es una carpeta raíz
|
|
16
|
-
repeated OwnerEntity ownersData = 3;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Create Bulk Folder
|
|
20
|
-
message CreateFolderBulkRequest {
|
|
21
|
-
repeated string foldersName = 1;
|
|
22
|
-
string parentId = 2; // Opcional, puede ser nulo si es una carpeta raíz
|
|
23
|
-
repeated OwnerEntity ownersData = 3;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
message FolderResponse {
|
|
27
|
-
string id = 1;
|
|
28
|
-
string name = 2;
|
|
29
|
-
string parentId = 3; // Opcional, puede ser nulo si es una carpeta raíz
|
|
30
|
-
string createdAt = 4;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
message CreateFolderBulkResponse {
|
|
35
|
-
bool success = 1;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
message CreateFileRequest {
|
|
39
|
-
string name = 1; // Nombre del archivo
|
|
40
|
-
string folderId = 2; // UUID del folder, opcional
|
|
41
|
-
int64 size = 3; // Tamaño del archivo, opcional
|
|
42
|
-
string mimeType = 4; // Tipo MIME del archivo, opcional
|
|
43
|
-
string s3Key = 5; // Clave S3, opcional
|
|
44
|
-
bool isDefault = 6; // Si es el archivo por defecto, opcional
|
|
45
|
-
repeated OwnerEntity ownersData = 7;
|
|
46
|
-
bytes filecontent = 8; // Contenido del archivo en bytes
|
|
47
|
-
string encoding = 9; // Codificación del archivo
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
message AttachFileRequest {
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
message CreateFilesRequest {
|
|
55
|
-
repeated CreateFileRequest files = 1; // Archivos
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
message CreateFilesResponse {
|
|
59
|
-
repeated string filesIds = 1;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
message CreateFileResponse {
|
|
63
|
-
string message = 1;
|
|
64
|
-
bool success = 2;
|
|
65
|
-
string url = 3; // URL del archivo almacenado
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Define el servicio que será implementado
|
|
69
|
-
service DriveService {
|
|
70
|
-
rpc CreateFolder(CreateFolderRequest) returns (FolderResponse);
|
|
71
|
-
rpc CreateFile(CreateFileRequest) returns (CreateFileResponse);
|
|
72
|
-
rpc CreateFiles(CreateFilesRequest) returns (CreateFilesResponse);
|
|
73
|
-
rpc CreateFolders(CreateFolderBulkRequest) returns (CreateFolderBulkResponse);
|
|
74
|
-
}
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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("./entities"), exports);
|
|
18
|
-
__exportStar(require("./common"), exports);
|
|
19
|
-
__exportStar(require("./modules"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB;AACzB,4CAA0B"}
|
package/dist/modules/index.d.ts
DELETED
package/dist/modules/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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("./queue/notifier.service"), exports);
|
|
18
|
-
__exportStar(require("./queue/scheduler.service"), exports);
|
|
19
|
-
__exportStar(require("./queue/queue.module"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,4DAA0C;AAC1C,uDAAqC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
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 EasyNotifierModule_1;
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.EasyNotifierModule = void 0;
|
|
11
|
-
const common_1 = require("@nestjs/common");
|
|
12
|
-
const notifier_service_1 = require("./notifier.service");
|
|
13
|
-
const nestjs_rabbitmq_1 = require("@golevelup/nestjs-rabbitmq");
|
|
14
|
-
const scheduler_service_1 = require("./scheduler.service");
|
|
15
|
-
let EasyNotifierModule = EasyNotifierModule_1 = class EasyNotifierModule {
|
|
16
|
-
static register(exchangeName, routingKey, rabbitMQUri) {
|
|
17
|
-
console.log(`EasyNotifierModule.register: exchangeName=${exchangeName}, routingKey=${routingKey}, rabbitMQUri=${rabbitMQUri}`);
|
|
18
|
-
return {
|
|
19
|
-
module: EasyNotifierModule_1,
|
|
20
|
-
imports: [
|
|
21
|
-
nestjs_rabbitmq_1.RabbitMQModule.forRoot(nestjs_rabbitmq_1.RabbitMQModule, {
|
|
22
|
-
exchanges: [
|
|
23
|
-
{
|
|
24
|
-
name: exchangeName,
|
|
25
|
-
type: 'topic',
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
uri: rabbitMQUri,
|
|
29
|
-
}),
|
|
30
|
-
],
|
|
31
|
-
providers: [
|
|
32
|
-
{
|
|
33
|
-
provide: 'EXCHANGE_NAME',
|
|
34
|
-
useValue: exchangeName,
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
provide: 'ROUTING_KEY',
|
|
38
|
-
useValue: routingKey,
|
|
39
|
-
},
|
|
40
|
-
notifier_service_1.EasyNotifierService,
|
|
41
|
-
scheduler_service_1.EasySchedulerService,
|
|
42
|
-
],
|
|
43
|
-
exports: [notifier_service_1.EasyNotifierService, scheduler_service_1.EasySchedulerService],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
exports.EasyNotifierModule = EasyNotifierModule;
|
|
48
|
-
exports.EasyNotifierModule = EasyNotifierModule = EasyNotifierModule_1 = __decorate([
|
|
49
|
-
(0, common_1.Global)(),
|
|
50
|
-
(0, common_1.Module)({})
|
|
51
|
-
], EasyNotifierModule);
|
|
52
|
-
//# sourceMappingURL=notifier.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifier.module.js","sourceRoot":"","sources":["../../../src/modules/notifier/notifier.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,yDAAyD;AACzD,gEAA4D;AAC5D,2DAA2D;AAIpD,IAAM,kBAAkB,0BAAxB,MAAM,kBAAkB;IAC3B,MAAM,CAAC,QAAQ,CAAC,YAAoB,EAAE,UAAkB,EAAE,WAAmB;QAEzE,OAAO,CAAC,GAAG,CAAC,6CAA6C,YAAY,gBAAgB,UAAU,iBAAiB,WAAW,EAAE,CAAC,CAAC;QAC/H,OAAO;YACH,MAAM,EAAE,oBAAkB;YAC1B,OAAO,EAAE;gBACL,gCAAc,CAAC,OAAO,CAAC,gCAAc,EAAE;oBACnC,SAAS,EAAE;wBACP;4BACI,IAAI,EAAE,YAAY;4BAClB,IAAI,EAAE,OAAO;yBAChB;qBACJ;oBACD,GAAG,EAAE,WAAW;iBACnB,CAAC;aACL;YACD,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,eAAe;oBACxB,QAAQ,EAAE,YAAY;iBACzB;gBACD;oBACI,OAAO,EAAE,aAAa;oBACtB,QAAQ,EAAE,UAAU;iBACvB;gBACD,sCAAmB;gBACnB,wCAAoB;aACvB;YACD,OAAO,EAAE,CAAC,sCAAmB,EAAE,wCAAoB,CAAC;SACvD,CAAC;IACN,CAAC;CACJ,CAAA;AAhCY,gDAAkB;6BAAlB,kBAAkB;IAF9B,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,kBAAkB,CAgC9B"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AmqpConnection } from "@golevelup/nestjs-rabbitmq";
|
|
2
|
-
import { SendNotificationDto } from "../../common";
|
|
3
|
-
import { Contact, ContactComment, Task, TaskComment } from "../../entities";
|
|
4
|
-
export declare class EasyNotifierService {
|
|
5
|
-
private readonly amqpConnection;
|
|
6
|
-
private readonly exchangeName;
|
|
7
|
-
private readonly routingKey;
|
|
8
|
-
constructor(amqpConnection: AmqpConnection, exchangeName: string, routingKey: string);
|
|
9
|
-
sendNotification(data: SendNotificationDto): Promise<void>;
|
|
10
|
-
notifyTaskCompletion(task: Task, recipientsId: string[]): Promise<void>;
|
|
11
|
-
notifyTaskOverdue(task: Task, recipientsId: string[]): Promise<void>;
|
|
12
|
-
notifyTaskContinue(task: Task, recipientsId: string[]): Promise<void>;
|
|
13
|
-
notifyNewTask(task: Task, recipientsId: string[]): Promise<void>;
|
|
14
|
-
notifyTaskUpdate(task: Task, recipientsId: string[], changedFields: string[]): Promise<void>;
|
|
15
|
-
notifyNewComment(task: Task, comment: TaskComment, recipientsId: string[]): Promise<void>;
|
|
16
|
-
notifyNewCommentContact(contact: Contact, comment: ContactComment, recipientsId: string[]): Promise<void>;
|
|
17
|
-
sendOTPPhone(code: string, recipientsId: string[]): Promise<void>;
|
|
18
|
-
sendOTPEmail(code: string, recipientsId: string[]): Promise<void>;
|
|
19
|
-
}
|