easywork-common-lib 1.0.755 → 1.0.756
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/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 -6
- package/dist/common/@types/interfaces/index.js +0 -23
- package/dist/common/@types/interfaces/index.js.map +0 -1
- package/dist/common/@types/interfaces/lsm.interface.d.ts +0 -5
- package/dist/common/@types/interfaces/lsm.interface.js +0 -3
- package/dist/common/@types/interfaces/lsm.interface.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 -48
- package/dist/common/constants/app.contants.js +0 -219
- package/dist/common/constants/app.contants.js.map +0 -1
- package/dist/common/constants/index.d.ts +0 -3
- package/dist/common/constants/index.js +0 -20
- 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/constants/string.constant.d.ts +0 -5
- package/dist/common/constants/string.constant.js +0 -41
- package/dist/common/constants/string.constant.js.map +0 -1
- package/dist/common/database/base.entity.d.ts +0 -15
- package/dist/common/database/base.entity.js +0 -76
- package/dist/common/database/base.entity.js.map +0 -1
- package/dist/common/database/comment.base.entity.d.ts +0 -11
- package/dist/common/database/comment.base.entity.js +0 -83
- package/dist/common/database/comment.base.entity.js.map +0 -1
- package/dist/common/database/index.d.ts +0 -2
- package/dist/common/database/index.js +0 -19
- 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/common.enum.d.ts +0 -18
- package/dist/common/enums/common.enum.js +0 -25
- package/dist/common/enums/common.enum.js.map +0 -1
- package/dist/common/enums/drive.enum.d.ts +0 -26
- package/dist/common/enums/drive.enum.js +0 -32
- package/dist/common/enums/drive.enum.js.map +0 -1
- package/dist/common/enums/index.d.ts +0 -5
- package/dist/common/enums/index.js +0 -22
- package/dist/common/enums/index.js.map +0 -1
- package/dist/common/enums/notification.enum.d.ts +0 -42
- package/dist/common/enums/notification.enum.js +0 -49
- package/dist/common/enums/notification.enum.js.map +0 -1
- package/dist/common/enums/sales.enum.d.ts +0 -107
- package/dist/common/enums/sales.enum.js +0 -129
- package/dist/common/enums/sales.enum.js.map +0 -1
- package/dist/common/enums/tools.enum.d.ts +0 -54
- package/dist/common/enums/tools.enum.js +0 -65
- 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 -3
- package/dist/common/functions/image.js +0 -16
- 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/capacitation/capacitation.entity.d.ts +0 -10
- package/dist/entities/capacitation/capacitation.entity.js +0 -68
- package/dist/entities/capacitation/capacitation.entity.js.map +0 -1
- package/dist/entities/capacitation/course-assigned.entity.d.ts +0 -12
- package/dist/entities/capacitation/course-assigned.entity.js +0 -44
- package/dist/entities/capacitation/course-assigned.entity.js.map +0 -1
- package/dist/entities/capacitation/course-evaluation-attempt.entity.d.ts +0 -22
- package/dist/entities/capacitation/course-evaluation-attempt.entity.js +0 -96
- package/dist/entities/capacitation/course-evaluation-attempt.entity.js.map +0 -1
- package/dist/entities/capacitation/course-evaluation.entity.d.ts +0 -42
- package/dist/entities/capacitation/course-evaluation.entity.js +0 -111
- package/dist/entities/capacitation/course-evaluation.entity.js.map +0 -1
- package/dist/entities/capacitation/course-folder-page.entity.d.ts +0 -14
- package/dist/entities/capacitation/course-folder-page.entity.js +0 -74
- package/dist/entities/capacitation/course-folder-page.entity.js.map +0 -1
- package/dist/entities/capacitation/course-folder.entity.d.ts +0 -10
- package/dist/entities/capacitation/course-folder.entity.js +0 -57
- package/dist/entities/capacitation/course-folder.entity.js.map +0 -1
- package/dist/entities/capacitation/course-order.entity.d.ts +0 -8
- package/dist/entities/capacitation/course-order.entity.js +0 -45
- package/dist/entities/capacitation/course-order.entity.js.map +0 -1
- package/dist/entities/capacitation/course.entity.d.ts +0 -21
- package/dist/entities/capacitation/course.entity.js +0 -119
- package/dist/entities/capacitation/course.entity.js.map +0 -1
- package/dist/entities/capacitation/index.d.ts +0 -8
- package/dist/entities/capacitation/index.js +0 -21
- package/dist/entities/capacitation/index.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 -27
- package/dist/entities/drive/attached_object.entity.js +0 -154
- package/dist/entities/drive/attached_object.entity.js.map +0 -1
- package/dist/entities/drive/file.entity.d.ts +0 -19
- package/dist/entities/drive/file.entity.js +0 -130
- package/dist/entities/drive/file.entity.js.map +0 -1
- package/dist/entities/drive/folder.entity.d.ts +0 -18
- package/dist/entities/drive/folder.entity.js +0 -137
- 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 -13
- package/dist/entities/group.entity.js +0 -57
- 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 -5
- package/dist/entities/helpers/index.js +0 -22
- package/dist/entities/helpers/index.js.map +0 -1
- package/dist/entities/helpers/meeting_crm.entity.d.ts +0 -23
- package/dist/entities/helpers/meeting_crm.entity.js +0 -166
- package/dist/entities/helpers/meeting_crm.entity.js.map +0 -1
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.d.ts +0 -20
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.js +0 -160
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.js.map +0 -1
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.js +0 -43
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection_stage.entity.js.map +0 -1
- package/dist/entities/helpers/sales/agent/h_agent_source.entity.d.ts +0 -4
- package/dist/entities/helpers/sales/agent/h_agent_source.entity.js +0 -34
- package/dist/entities/helpers/sales/agent/h_agent_source.entity.js.map +0 -1
- package/dist/entities/helpers/sales/agent/h_agent_types.entity.d.ts +0 -4
- package/dist/entities/helpers/sales/agent/h_agent_types.entity.js +0 -34
- package/dist/entities/helpers/sales/agent/h_agent_types.entity.js.map +0 -1
- package/dist/entities/helpers/sales/agent/index.d.ts +0 -6
- package/dist/entities/helpers/sales/agent/index.js +0 -23
- package/dist/entities/helpers/sales/agent/index.js.map +0 -1
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.d.ts +0 -15
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.js +0 -120
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment.entity.js.map +0 -1
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.js +0 -43
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_stage.entity.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 -92
- 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/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 -7
- package/dist/entities/helpers/sales/index.js +0 -24
- 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_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_stage.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/poliza/h_poliza_stage.entity.js +0 -43
- package/dist/entities/helpers/sales/poliza/h_poliza_stage.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/h_receipt_stage.entity.d.ts +0 -8
- package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js +0 -53
- package/dist/entities/helpers/sales/poliza/h_receipt_stage.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/index.d.ts +0 -11
- package/dist/entities/helpers/sales/poliza/index.js +0 -28
- package/dist/entities/helpers/sales/poliza/index.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/poliza_cancel_reason.entity.d.ts +0 -4
- package/dist/entities/helpers/sales/poliza/poliza_cancel_reason.entity.js +0 -28
- package/dist/entities/helpers/sales/poliza/poliza_cancel_reason.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js +0 -86
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js.map +0 -1
- package/dist/entities/helpers/tools/event_crm.entity.d.ts +0 -23
- package/dist/entities/helpers/tools/event_crm.entity.js +0 -166
- package/dist/entities/helpers/tools/event_crm.entity.js.map +0 -1
- package/dist/entities/helpers/tools/index.d.ts +0 -2
- package/dist/entities/helpers/tools/index.js +0 -19
- package/dist/entities/helpers/tools/index.js.map +0 -1
- package/dist/entities/helpers/tools/task_crm.entity.d.ts +0 -27
- package/dist/entities/helpers/tools/task_crm.entity.js +0 -196
- package/dist/entities/helpers/tools/task_crm.entity.js.map +0 -1
- package/dist/entities/helpers/user/access_history.entity.d.ts +0 -9
- package/dist/entities/helpers/user/access_history.entity.js +0 -58
- package/dist/entities/helpers/user/access_history.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/index.d.ts +0 -31
- package/dist/entities/index.js +0 -48
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/meeting-comment.entity.d.ts +0 -8
- package/dist/entities/meeting-comment.entity.js +0 -46
- package/dist/entities/meeting-comment.entity.js.map +0 -1
- package/dist/entities/meeting-list-field.d.ts +0 -5
- package/dist/entities/meeting-list-field.js +0 -46
- package/dist/entities/meeting-list-field.js.map +0 -1
- package/dist/entities/meeting.entity.d.ts +0 -24
- package/dist/entities/meeting.entity.js +0 -187
- package/dist/entities/meeting.entity.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/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 -56
- 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 -7
- package/dist/entities/role.entity.js +0 -48
- package/dist/entities/role.entity.js.map +0 -1
- package/dist/entities/sales/agent-comment.entity.d.ts +0 -5
- package/dist/entities/sales/agent-comment.entity.js +0 -35
- package/dist/entities/sales/agent-comment.entity.js.map +0 -1
- package/dist/entities/sales/agent.entity.d.ts +0 -32
- package/dist/entities/sales/agent.entity.js +0 -254
- package/dist/entities/sales/agent.entity.js.map +0 -1
- package/dist/entities/sales/agente-intermediario.entity.d.ts +0 -7
- package/dist/entities/sales/agente-intermediario.entity.js +0 -49
- package/dist/entities/sales/agente-intermediario.entity.js.map +0 -1
- package/dist/entities/sales/beneficiarios/index.d.ts +0 -2
- package/dist/entities/sales/beneficiarios/index.js +0 -19
- package/dist/entities/sales/beneficiarios/index.js.map +0 -1
- package/dist/entities/sales/beneficiarios/person.entity.d.ts +0 -10
- package/dist/entities/sales/beneficiarios/person.entity.js +0 -89
- package/dist/entities/sales/beneficiarios/person.entity.js.map +0 -1
- package/dist/entities/sales/beneficiarios/vehicle.entity.d.ts +0 -16
- package/dist/entities/sales/beneficiarios/vehicle.entity.js +0 -106
- package/dist/entities/sales/beneficiarios/vehicle.entity.js.map +0 -1
- package/dist/entities/sales/contact-comment.entity.d.ts +0 -5
- package/dist/entities/sales/contact-comment.entity.js +0 -32
- package/dist/entities/sales/contact-comment.entity.js.map +0 -1
- package/dist/entities/sales/contact.entity.d.ts +0 -57
- package/dist/entities/sales/contact.entity.js +0 -497
- package/dist/entities/sales/contact.entity.js.map +0 -1
- package/dist/entities/sales/import-session.entity.d.ts +0 -29
- package/dist/entities/sales/import-session.entity.js +0 -155
- package/dist/entities/sales/import-session.entity.js.map +0 -1
- package/dist/entities/sales/index.d.ts +0 -16
- package/dist/entities/sales/index.js +0 -33
- package/dist/entities/sales/index.js.map +0 -1
- package/dist/entities/sales/lead-comment.entity.d.ts +0 -5
- package/dist/entities/sales/lead-comment.entity.js +0 -32
- package/dist/entities/sales/lead-comment.entity.js.map +0 -1
- package/dist/entities/sales/lead.entity.d.ts +0 -60
- package/dist/entities/sales/lead.entity.js +0 -572
- package/dist/entities/sales/lead.entity.js.map +0 -1
- package/dist/entities/sales/poliza/index.d.ts +0 -8
- package/dist/entities/sales/poliza/index.js +0 -25
- package/dist/entities/sales/poliza/index.js.map +0 -1
- package/dist/entities/sales/poliza/poliza_claim-comment.entity.d.ts +0 -5
- package/dist/entities/sales/poliza/poliza_claim-comment.entity.js +0 -35
- package/dist/entities/sales/poliza/poliza_claim-comment.entity.js.map +0 -1
- package/dist/entities/sales/poliza/poliza_claim.entity.d.ts +0 -34
- package/dist/entities/sales/poliza/poliza_claim.entity.js +0 -285
- package/dist/entities/sales/poliza/poliza_claim.entity.js.map +0 -1
- package/dist/entities/sales/poliza/poliza_fund-recovery-comment.entity.d.ts +0 -5
- package/dist/entities/sales/poliza/poliza_fund-recovery-comment.entity.js +0 -35
- package/dist/entities/sales/poliza/poliza_fund-recovery-comment.entity.js.map +0 -1
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.d.ts +0 -31
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.js +0 -259
- package/dist/entities/sales/poliza/poliza_fund-recovery.entity.js.map +0 -1
- package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.d.ts +0 -5
- package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.js +0 -35
- package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.js.map +0 -1
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.d.ts +0 -34
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.js +0 -277
- package/dist/entities/sales/poliza/poliza_reimbursement.entity.js.map +0 -1
- package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.d.ts +0 -5
- package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.js +0 -35
- package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.js.map +0 -1
- package/dist/entities/sales/poliza/poliza_scheduling.entity.d.ts +0 -34
- package/dist/entities/sales/poliza/poliza_scheduling.entity.js +0 -277
- package/dist/entities/sales/poliza/poliza_scheduling.entity.js.map +0 -1
- package/dist/entities/sales/poliza-comment.entity.d.ts +0 -5
- package/dist/entities/sales/poliza-comment.entity.js +0 -32
- package/dist/entities/sales/poliza-comment.entity.js.map +0 -1
- package/dist/entities/sales/poliza.entity.d.ts +0 -108
- package/dist/entities/sales/poliza.entity.js +0 -1032
- package/dist/entities/sales/poliza.entity.js.map +0 -1
- package/dist/entities/sales/poliza_pdf.entity.d.ts +0 -94
- package/dist/entities/sales/poliza_pdf.entity.js +0 -926
- package/dist/entities/sales/poliza_pdf.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-comment.entity.d.ts +0 -5
- package/dist/entities/sales/receipt-comment.entity.js +0 -32
- package/dist/entities/sales/receipt-comment.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 -32
- package/dist/entities/sales/receipt.entity.js +0 -255
- 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.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.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 -21
- package/dist/entities/thirdparty/oauth.entity.js +0 -100
- package/dist/entities/thirdparty/oauth.entity.js.map +0 -1
- package/dist/entities/thirdparty/service.entity.d.ts +0 -8
- package/dist/entities/thirdparty/service.entity.js +0 -38
- 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-list-calendars.entity.d.ts +0 -6
- package/dist/entities/tools/calendar/event-list-calendars.entity.js +0 -32
- package/dist/entities/tools/calendar/event-list-calendars.entity.js.map +0 -1
- package/dist/entities/tools/calendar/event.entity.d.ts +0 -25
- package/dist/entities/tools/calendar/event.entity.js +0 -213
- 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 -7
- package/dist/entities/tools/index.js +0 -24
- package/dist/entities/tools/index.js.map +0 -1
- package/dist/entities/tools/task-comment.entity.d.ts +0 -8
- package/dist/entities/tools/task-comment.entity.js +0 -39
- package/dist/entities/tools/task-comment.entity.js.map +0 -1
- package/dist/entities/tools/task-history.entity.d.ts +0 -15
- package/dist/entities/tools/task-history.entity.js +0 -131
- package/dist/entities/tools/task-history.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-objection.entity.d.ts +0 -10
- package/dist/entities/tools/task-objection.entity.js +0 -80
- package/dist/entities/tools/task-objection.entity.js.map +0 -1
- package/dist/entities/tools/task-time-track.entity.d.ts +0 -16
- package/dist/entities/tools/task-time-track.entity.js +0 -139
- package/dist/entities/tools/task-time-track.entity.js.map +0 -1
- package/dist/entities/tools/task.entity.d.ts +0 -49
- package/dist/entities/tools/task.entity.js +0 -419
- package/dist/entities/tools/task.entity.js.map +0 -1
- package/dist/entities/user-invitations.entity.d.ts +0 -11
- package/dist/entities/user-invitations.entity.js +0 -102
- package/dist/entities/user-invitations.entity.js.map +0 -1
- package/dist/entities/user.entity.d.ts +0 -39
- package/dist/entities/user.entity.js +0 -270
- package/dist/entities/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 -260
- package/dist/grpc/drive/leads.proto +0 -114
- 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 -5
- package/dist/modules/index.js +0 -22
- package/dist/modules/index.js.map +0 -1
- package/dist/modules/queue/event.service.d.ts +0 -32
- package/dist/modules/queue/event.service.js +0 -45
- package/dist/modules/queue/event.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 -10
- package/dist/modules/queue/notifiers/calendar.notifier.js +0 -60
- 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 -52
- 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 -52
- 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 -159
- 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 -68
- package/dist/modules/queue/queue.module.js.map +0 -1
- package/dist/modules/queue/queue.service.d.ts +0 -9
- package/dist/modules/queue/queue.service.js +0 -56
- package/dist/modules/queue/queue.service.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/tsconfig.tsbuildinfo +0 -1
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,119 +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.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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notification.entity.js","sourceRoot":"","sources":["../../../src/entities/notifications/notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAAsC;AACtC,mEAAqE;AACrE,qCAAoD;AACpD,8CAAwG;AACxG,6CAA8C;AAGvC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,8BAAgB;IAG9C,OAAO,CAAS;IAIhB,KAAK,CAAS;IAYd,QAAQ,CAAuB;IAY/B,WAAW,CAA0B;IAYrC,QAAQ,CAAwB;IAWhC,QAAQ,CAAsB;IAI9B,QAAQ,CAAS;IAIjB,MAAM,CAAO;IAIb,UAAU,CAAO;IAQjB,SAAS,CAAQ;CACpB,CAAA;AA3EY,oCAAY;AAGrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IACzE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACT;AAIhB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;IACvE,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2CACd;AAYd;IAVC,IAAA,qBAAW,EAAC;QACT,IAAI,EAAE,4BAAoB;QAC1B,WAAW,EAAE,8BAA8B;QAC3C,OAAO,EAAE,4BAAoB,CAAC,OAAO;KACxC,CAAC;IACD,IAAA,gBAAM,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,4BAAoB;QAC1B,OAAO,EAAE,4BAAoB,CAAC,OAAO;KACxC,CAAC;;8CAC6B;AAY/B;IAVC,IAAA,qBAAW,EAAC;QACT,IAAI,EAAE,+BAAuB;QAC7B,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE,+BAAuB,CAAC,OAAO;KAC3C,CAAC;IACD,IAAA,gBAAM,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,+BAAuB;QAC7B,OAAO,EAAE,+BAAuB,CAAC,OAAO;KAC3C,CAAC;;iDACmC;AAYrC;IAVC,IAAA,qBAAW,EAAC;QACT,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,2BAAmB;QACzB,WAAW,EAAE,iDAAiD;KACjE,CAAC;IACD,IAAA,gBAAM,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,2BAAmB;QACzB,KAAK,EAAE,IAAI;KACd,CAAC;;8CAC8B;AAWhC;IATC,IAAA,qBAAW,EAAC;QACT,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,0CAA0C;QACvD,QAAQ,EAAE,KAAK;KAClB,CAAC;IACD,IAAA,gBAAM,EAAC;QACJ,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;;8CAC4B;AAI9B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACnF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,0CAA0C,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACrG,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtC,IAAI;4CAAC;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,8CAA8C,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACzG,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAClC,IAAI;gDAAC;AAQjB;IANC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,+BAA+B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;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"}
|
|
@@ -1,45 +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.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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"push-token.entity.js","sourceRoot":"","sources":["../../../src/entities/notifications/push-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAAsC;AACtC,mEAAqE;AACrE,qCAAoD;AACpD,6CAA8C;AAGvC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,8BAAgB;IAG7C,KAAK,CAAS;IAId,MAAM,CAAS;IAQf,IAAI,CAAQ;CACb,CAAA;AAhBY,8BAAS;AAGpB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACrE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACX;AAId;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IAC9E,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;yCACxB;AAQf;IANC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,gCAAgC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACjG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;8BACK,kBAAI;uCAAC;oBAfD,SAAS;IADrB,IAAA,gBAAM,GAAE;GACI,SAAS,CAgBrB"}
|
|
@@ -1,49 +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.OtpLog = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const base_entity_1 = require("../common/database/base.entity");
|
|
15
|
-
const user_entity_1 = require("./user.entity");
|
|
16
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
-
let OtpLog = class OtpLog extends base_entity_1.EntityBase {
|
|
18
|
-
expiresIn;
|
|
19
|
-
otpCode;
|
|
20
|
-
user;
|
|
21
|
-
isUsed;
|
|
22
|
-
};
|
|
23
|
-
exports.OtpLog = OtpLog;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, swagger_1.ApiProperty)({ type: Date, description: 'Expiration time of the OTP code' }),
|
|
26
|
-
(0, typeorm_1.Column)({ type: "timestamp" }),
|
|
27
|
-
__metadata("design:type", Date)
|
|
28
|
-
], OtpLog.prototype, "expiresIn", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'OTP code', maxLength: 20, required: false }),
|
|
31
|
-
(0, typeorm_1.Column)({ length: 20, nullable: true }),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], OtpLog.prototype, "otpCode", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User associated with the OTP log' }),
|
|
36
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { eager: false, nullable: false }),
|
|
37
|
-
(0, typeorm_1.JoinColumn)(),
|
|
38
|
-
__metadata("design:type", user_entity_1.User)
|
|
39
|
-
], OtpLog.prototype, "user", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Has the OTP code been used', default: false }),
|
|
42
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
43
|
-
__metadata("design:type", Boolean)
|
|
44
|
-
], OtpLog.prototype, "isUsed", void 0);
|
|
45
|
-
exports.OtpLog = OtpLog = __decorate([
|
|
46
|
-
(0, typeorm_1.Entity)(),
|
|
47
|
-
(0, typeorm_1.Index)(["otpCode"], { unique: true })
|
|
48
|
-
], OtpLog);
|
|
49
|
-
//# sourceMappingURL=otp-log.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"otp-log.entity.js","sourceRoot":"","sources":["../../src/entities/otp-log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuE;AACvE,gEAA4D;AAC5D,+CAAqC;AACrC,6CAA8C;AAIvC,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,wBAAU;IAGpC,SAAS,CAAQ;IAIjB,OAAO,CAAU;IAKjB,IAAI,CAAQ;IAIZ,MAAM,CAAW;CAClB,CAAA;AAjBY,wBAAM;AAGjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC;IAC3E,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAClB,IAAI;yCAAC;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACtF,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACtB;AAKjB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IAClF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACxD,IAAA,oBAAU,GAAE;8BACN,kBAAI;oCAAC;AAIZ;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IACzF,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;sCACV;iBAhBN,MAAM;IAFlB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACxB,MAAM,CAiBlB"}
|
|
@@ -1,46 +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.Permission = void 0;
|
|
13
|
-
const base_entity_1 = require("../common/database/base.entity");
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
|
-
const role_entity_1 = require("./role.entity");
|
|
16
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
-
let Permission = class Permission extends base_entity_1.EntityBase {
|
|
18
|
-
resource;
|
|
19
|
-
action;
|
|
20
|
-
roles;
|
|
21
|
-
};
|
|
22
|
-
exports.Permission = Permission;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Resource for the permission' }),
|
|
25
|
-
(0, typeorm_1.Column)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], Permission.prototype, "resource", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Action for the permission' }),
|
|
30
|
-
(0, typeorm_1.Column)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], Permission.prototype, "action", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, swagger_1.ApiProperty)({ type: () => [role_entity_1.Role], description: 'Roles associated with the permission' }),
|
|
35
|
-
(0, typeorm_1.ManyToMany)(() => role_entity_1.Role, {
|
|
36
|
-
onDelete: "CASCADE",
|
|
37
|
-
onUpdate: "CASCADE",
|
|
38
|
-
}),
|
|
39
|
-
(0, typeorm_1.JoinTable)(),
|
|
40
|
-
__metadata("design:type", Array)
|
|
41
|
-
], Permission.prototype, "roles", void 0);
|
|
42
|
-
exports.Permission = Permission = __decorate([
|
|
43
|
-
(0, typeorm_1.Entity)(),
|
|
44
|
-
(0, typeorm_1.Index)(["resource", "action"], { unique: true })
|
|
45
|
-
], Permission);
|
|
46
|
-
//# sourceMappingURL=permission.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../src/entities/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA4D;AAC5D,qCAAuE;AACvE,+CAAqC;AACrC,6CAA8C;AAIvC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,wBAAU;IAGxC,QAAQ,CAAS;IAIjB,MAAM,CAAS;IAQf,KAAK,CAAU;CAChB,CAAA;AAhBY,gCAAU;AAGrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IACzE,IAAA,gBAAM,GAAE;;4CACQ;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;IACvE,IAAA,gBAAM,GAAE;;0CACM;AAQf;IANC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,kBAAI,CAAC,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;IACxF,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,mBAAS,GAAE;;yCACG;qBAfJ,UAAU;IAFtB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACnC,UAAU,CAgBtB"}
|
|
@@ -1,36 +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.Phone = void 0;
|
|
13
|
-
const base_entity_1 = require("../common/database/base.entity");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const typeorm_1 = require("typeorm");
|
|
16
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
-
let Phone = class Phone extends base_entity_1.EntityBase {
|
|
18
|
-
number;
|
|
19
|
-
isDefault;
|
|
20
|
-
};
|
|
21
|
-
exports.Phone = Phone;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Phone number', minLength: 3 }),
|
|
24
|
-
(0, class_validator_1.MinLength)(3),
|
|
25
|
-
(0, typeorm_1.Column)({ unique: true }),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], Phone.prototype, "number", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is this the default phone number', default: false }),
|
|
30
|
-
(0, typeorm_1.Column)({ name: "is_default", default: false }),
|
|
31
|
-
__metadata("design:type", Boolean)
|
|
32
|
-
], Phone.prototype, "isDefault", void 0);
|
|
33
|
-
exports.Phone = Phone = __decorate([
|
|
34
|
-
(0, typeorm_1.Entity)()
|
|
35
|
-
], Phone);
|
|
36
|
-
//# sourceMappingURL=phone.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phone.entity.js","sourceRoot":"","sources":["../../src/entities/phone.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA4D;AAC5D,qDAA4C;AAC5C,qCAAyC;AACzC,6CAA8C;AAGvC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,wBAAU;IAInC,MAAM,CAAS;IAIf,SAAS,CAAU;CACpB,CAAA;AATY,sBAAK;AAIhB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACxE,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;qCACV;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,kCAAkC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;wCAC5B;gBARR,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CASjB"}
|
|
@@ -1,56 +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.Profile = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const user_entity_1 = require("./user.entity");
|
|
15
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
-
const base_entity_1 = require("../common/database/base.entity");
|
|
17
|
-
let Profile = class Profile extends base_entity_1.EntityBase {
|
|
18
|
-
firstName;
|
|
19
|
-
lastName;
|
|
20
|
-
idcard;
|
|
21
|
-
birthday;
|
|
22
|
-
user;
|
|
23
|
-
};
|
|
24
|
-
exports.Profile = Profile;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'First name of the user', required: false }),
|
|
27
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], Profile.prototype, "firstName", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Last name of the user', required: false }),
|
|
32
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], Profile.prototype, "lastName", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'ID card of the user', required: false }),
|
|
37
|
-
(0, typeorm_1.Column)({ unique: true, nullable: true }),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], Profile.prototype, "idcard", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, swagger_1.ApiProperty)({ type: Date, description: 'Birthday of the user', required: false }),
|
|
42
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
43
|
-
__metadata("design:type", Date)
|
|
44
|
-
], Profile.prototype, "birthday", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User associated with the profile' }),
|
|
47
|
-
(0, typeorm_1.OneToOne)(() => user_entity_1.User, user => user.profile, {
|
|
48
|
-
onDelete: "CASCADE",
|
|
49
|
-
onUpdate: "CASCADE",
|
|
50
|
-
}),
|
|
51
|
-
__metadata("design:type", user_entity_1.User)
|
|
52
|
-
], Profile.prototype, "user", void 0);
|
|
53
|
-
exports.Profile = Profile = __decorate([
|
|
54
|
-
(0, typeorm_1.Entity)("user_profile")
|
|
55
|
-
], Profile);
|
|
56
|
-
//# sourceMappingURL=profile.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profile.entity.js","sourceRoot":"","sources":["../../src/entities/profile.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAmD;AACnD,+CAAqC;AACrC,6CAA8C;AAC9C,gEAA4D;AAGrD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,wBAAU;IAGrC,SAAS,CAAS;IAIlB,QAAQ,CAAS;IAIjB,MAAM,CAAS;IAIf,QAAQ,CAAO;IAOf,IAAI,CAAO;CACZ,CAAA;AAvBY,0BAAO;AAGlB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,wBAAwB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACrF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACT;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,uBAAuB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACpF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACV;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAClF,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCAC1B;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACjF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,IAAI;yCAAC;AAOf;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IAClF,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE;QAC1C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACI,kBAAI;qCAAC;kBAtBA,OAAO;IADnB,IAAA,gBAAM,EAAC,cAAc,CAAC;GACV,OAAO,CAuBnB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { EntityBase } from "../common/database/base.entity";
|
|
2
|
-
export declare class Protocol extends EntityBase {
|
|
3
|
-
loginAttemptInterval: number;
|
|
4
|
-
loginIntervalUnit: string;
|
|
5
|
-
loginMaxRetry: number;
|
|
6
|
-
otpExpiryInMinutes: number;
|
|
7
|
-
constructor(partial?: Partial<Protocol>);
|
|
8
|
-
}
|
|
@@ -1,46 +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.Protocol = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const base_entity_1 = require("../common/database/base.entity");
|
|
15
|
-
let Protocol = class Protocol extends base_entity_1.EntityBase {
|
|
16
|
-
loginAttemptInterval;
|
|
17
|
-
loginIntervalUnit;
|
|
18
|
-
loginMaxRetry;
|
|
19
|
-
otpExpiryInMinutes;
|
|
20
|
-
constructor(partial) {
|
|
21
|
-
super();
|
|
22
|
-
Object.assign(this, partial);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
exports.Protocol = Protocol;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)(),
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
|
-
], Protocol.prototype, "loginAttemptInterval", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], Protocol.prototype, "loginIntervalUnit", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)(),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], Protocol.prototype, "loginMaxRetry", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)(),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], Protocol.prototype, "otpExpiryInMinutes", void 0);
|
|
42
|
-
exports.Protocol = Protocol = __decorate([
|
|
43
|
-
(0, typeorm_1.Entity)(),
|
|
44
|
-
__metadata("design:paramtypes", [Object])
|
|
45
|
-
], Protocol);
|
|
46
|
-
//# sourceMappingURL=protocol.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.entity.js","sourceRoot":"","sources":["../../src/entities/protocol.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,gEAA4D;AAKrD,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,wBAAU;IAEtC,oBAAoB,CAAU;IAG9B,iBAAiB,CAAU;IAG3B,aAAa,CAAU;IAGvB,kBAAkB,CAAU;IAE5B,YAAY,OAA2B;QACrC,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;CACF,CAAA;AAjBY,4BAAQ;AAEnB;IADC,IAAA,gBAAM,GAAE;;sDACqB;AAG9B;IADC,IAAA,gBAAM,GAAE;;mDACkB;AAG3B;IADC,IAAA,gBAAM,GAAE;;+CACc;AAGvB;IADC,IAAA,gBAAM,GAAE;;oDACmB;mBAXjB,QAAQ;IADpB,IAAA,gBAAM,GAAE;;GACI,QAAQ,CAiBpB"}
|
|
@@ -1,46 +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.RefreshToken = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const base_entity_1 = require("../common/database/base.entity");
|
|
15
|
-
const user_entity_1 = require("./user.entity");
|
|
16
|
-
let RefreshToken = class RefreshToken extends base_entity_1.EntityBase {
|
|
17
|
-
expiresIn;
|
|
18
|
-
user;
|
|
19
|
-
isRevoked;
|
|
20
|
-
constructor(partial) {
|
|
21
|
-
super();
|
|
22
|
-
Object.assign(this, partial);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
exports.RefreshToken = RefreshToken;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)(),
|
|
28
|
-
__metadata("design:type", Date)
|
|
29
|
-
], RefreshToken.prototype, "expiresIn", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
32
|
-
eager: false,
|
|
33
|
-
onDelete: "CASCADE",
|
|
34
|
-
onUpdate: "CASCADE",
|
|
35
|
-
}),
|
|
36
|
-
__metadata("design:type", user_entity_1.User)
|
|
37
|
-
], RefreshToken.prototype, "user", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
40
|
-
__metadata("design:type", Boolean)
|
|
41
|
-
], RefreshToken.prototype, "isRevoked", void 0);
|
|
42
|
-
exports.RefreshToken = RefreshToken = __decorate([
|
|
43
|
-
(0, typeorm_1.Entity)(),
|
|
44
|
-
__metadata("design:paramtypes", [Object])
|
|
45
|
-
], RefreshToken);
|
|
46
|
-
//# sourceMappingURL=refresh-token.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-token.entity.js","sourceRoot":"","sources":["../../src/entities/refresh-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,gEAA4D;AAC5D,+CAAqC;AAG9B,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,wBAAU;IAE1C,SAAS,CAAQ;IAOjB,IAAI,CAAQ;IAGZ,SAAS,CAAW;IAEpB,YAAY,OAA+B;QACzC,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;CACF,CAAA;AAlBY,oCAAY;AAEvB;IADC,IAAA,gBAAM,GAAE;8BACG,IAAI;+CAAC;AAOjB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACK,kBAAI;0CAAC;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACP;uBAZT,YAAY;IADxB,IAAA,gBAAM,GAAE;;GACI,YAAY,CAkBxB"}
|
|
@@ -1,48 +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.Role = void 0;
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const base_entity_1 = require("../common/database/base.entity");
|
|
15
|
-
const class_validator_1 = require("class-validator");
|
|
16
|
-
const typeorm_1 = require("typeorm");
|
|
17
|
-
let Role = class Role extends base_entity_1.EntityBase {
|
|
18
|
-
name;
|
|
19
|
-
displayName;
|
|
20
|
-
isDefault;
|
|
21
|
-
defaultMenuPermissions;
|
|
22
|
-
};
|
|
23
|
-
exports.Role = Role;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, swagger_1.ApiProperty)({ type: String, description: "Name of the role", minLength: 3 }),
|
|
26
|
-
(0, class_validator_1.MinLength)(3),
|
|
27
|
-
(0, typeorm_1.Column)({ unique: true }),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], Role.prototype, "name", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, swagger_1.ApiProperty)({ type: String, description: "Display Name of the role" }),
|
|
32
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], Role.prototype, "displayName", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: "¿Is this the default role?" }),
|
|
37
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
38
|
-
__metadata("design:type", Boolean)
|
|
39
|
-
], Role.prototype, "isDefault", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, swagger_1.ApiProperty)({ type: [String], description: "Default Menu Permissions" }),
|
|
42
|
-
(0, typeorm_1.Column)({ type: "varchar", array: true, nullable: true }),
|
|
43
|
-
__metadata("design:type", Array)
|
|
44
|
-
], Role.prototype, "defaultMenuPermissions", void 0);
|
|
45
|
-
exports.Role = Role = __decorate([
|
|
46
|
-
(0, typeorm_1.Entity)()
|
|
47
|
-
], Role);
|
|
48
|
-
//# sourceMappingURL=role.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,gEAA4D;AAC5D,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAIlC,IAAI,CAAS;IAIb,WAAW,CAAU;IAIrB,SAAS,CAAU;IAInB,sBAAsB,CAAW;CAClC,CAAA;AAjBY,oBAAI;AAIf;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAC5E,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kCACZ;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IACtE,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACN;AAIrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IACzE,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uCACR;AAInB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IACxE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACxB;eAhBtB,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAiBhB"}
|