easywork-common-lib 1.0.461 → 1.0.463
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 +45 -44
- 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 -16
- 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 -31
- package/dist/common/constants/app.contants.js +0 -185
- 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 -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/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 -41
- package/dist/common/enums/sales.enum.js +0 -53
- 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 -9
- 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 -15
- 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 -21
- 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 -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/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_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/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 -10
- package/dist/entities/helpers/sales/poliza/index.js +0 -27
- 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/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/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 -19
- package/dist/entities/helpers/tools/task_crm.entity.js +0 -136
- 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 -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/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 -6
- package/dist/entities/role.entity.js +0 -42
- 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/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 -49
- package/dist/entities/sales/contact.entity.js +0 -303
- package/dist/entities/sales/contact.entity.js.map +0 -1
- package/dist/entities/sales/index.d.ts +0 -12
- package/dist/entities/sales/index.js +0 -29
- 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 -51
- package/dist/entities/sales/lead.entity.js +0 -344
- package/dist/entities/sales/lead.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 -112
- package/dist/entities/sales/poliza.entity.js +0 -1103
- 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-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 -31
- package/dist/entities/sales/receipt.entity.js +0 -203
- 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 -18
- package/dist/entities/thirdparty/oauth.entity.js +0 -93
- 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 -19
- package/dist/entities/tools/calendar/event.entity.js +0 -132
- 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 -6
- package/dist/entities/tools/task-comment.entity.js +0 -38
- 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.entity.d.ts +0 -29
- package/dist/entities/user.entity.js +0 -168
- package/dist/entities/user.entity.js.map +0 -1
- package/dist/eslint.config.d.ts +0 -2
- package/dist/eslint.config.js +0 -47
- package/dist/eslint.config.js.map +0 -1
- package/dist/grpc/drive/drive.proto +0 -179
- 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 -4
- package/dist/modules/index.js +0 -21
- package/dist/modules/index.js.map +0 -1
- package/dist/modules/queue/event.service.d.ts +0 -9
- package/dist/modules/queue/event.service.js +0 -40
- 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 -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 -57
- 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/tsconfig.tsbuildinfo +0 -1
|
@@ -1,38 +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.TaskComment = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const task_entity_1 = require("./task.entity");
|
|
15
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
-
const common_1 = require("../../common");
|
|
17
|
-
let TaskComment = class TaskComment extends common_1.CommentBase {
|
|
18
|
-
isSummary;
|
|
19
|
-
task;
|
|
20
|
-
};
|
|
21
|
-
exports.TaskComment = TaskComment;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is this comment a summary?', default: false }),
|
|
24
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
25
|
-
__metadata("design:type", Boolean)
|
|
26
|
-
], TaskComment.prototype, "isSummary", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, swagger_1.ApiProperty)({ type: () => task_entity_1.Task, description: 'Task associated with the comment' }),
|
|
29
|
-
(0, typeorm_1.ManyToOne)(() => task_entity_1.Task, {
|
|
30
|
-
onDelete: "CASCADE",
|
|
31
|
-
onUpdate: "CASCADE",
|
|
32
|
-
}),
|
|
33
|
-
__metadata("design:type", task_entity_1.Task)
|
|
34
|
-
], TaskComment.prototype, "task", void 0);
|
|
35
|
-
exports.TaskComment = TaskComment = __decorate([
|
|
36
|
-
(0, typeorm_1.Entity)()
|
|
37
|
-
], TaskComment);
|
|
38
|
-
//# sourceMappingURL=task-comment.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/tools/task-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,+CAAqC;AACrC,6CAA8C;AAC9C,yCAA2C;AAGpC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,oBAAW;IAGxC,SAAS,CAAU;IAOnB,IAAI,CAAO;CACd,CAAA;AAXY,kCAAW;AAGpB;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;;8CACR;AAOnB;IALC,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;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACI,kBAAI;yCAAC;sBAVF,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CAWvB"}
|
|
@@ -1,39 +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.TaskListField = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
-
class TaskListField {
|
|
17
|
-
text;
|
|
18
|
-
completed;
|
|
19
|
-
child;
|
|
20
|
-
}
|
|
21
|
-
exports.TaskListField = TaskListField;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Text of the task list field' }),
|
|
24
|
-
(0, class_validator_1.IsString)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], TaskListField.prototype, "text", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Completion status of the task list field' }),
|
|
29
|
-
(0, class_validator_1.IsBoolean)(),
|
|
30
|
-
__metadata("design:type", Boolean)
|
|
31
|
-
], TaskListField.prototype, "completed", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, swagger_1.ApiProperty)({ type: () => [TaskListField], description: 'Child task list fields', required: false }),
|
|
34
|
-
(0, class_validator_1.IsOptional)(),
|
|
35
|
-
(0, class_validator_1.ValidateNested)(),
|
|
36
|
-
(0, class_transformer_1.Type)(() => TaskListField),
|
|
37
|
-
__metadata("design:type", Array)
|
|
38
|
-
], TaskListField.prototype, "child", void 0);
|
|
39
|
-
//# sourceMappingURL=task-list-field.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-list-field.js","sourceRoot":"","sources":["../../../src/entities/tools/task-list-field.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAkF;AAClF,6CAA8C;AAE9C,MAAa,aAAa;IAGtB,IAAI,CAAS;IAIb,SAAS,CAAU;IAMnB,KAAK,CAAiB;CACzB;AAdD,sCAcC;AAXG;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IACzE,IAAA,0BAAQ,GAAE;;2CACE;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,0CAA0C,EAAE,CAAC;IACvF,IAAA,2BAAS,GAAE;;gDACO;AAMnB;IAJC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,aAAa,CAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACpG,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAa,CAAC;;4CACJ"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { User } from "../user.entity";
|
|
2
|
-
import { TaskComment } from "./task-comment.entity";
|
|
3
|
-
import { Tag } from "../tag.entity";
|
|
4
|
-
import { EntityBase } from "../../common/database/base.entity";
|
|
5
|
-
import { TaskStatus } from "../../common/enums";
|
|
6
|
-
import { TaskListField } from "./task-list-field";
|
|
7
|
-
import { TaskCRM } from "../../entities/helpers";
|
|
8
|
-
export declare class Task extends EntityBase {
|
|
9
|
-
idBitrix: number;
|
|
10
|
-
name: string;
|
|
11
|
-
number: number;
|
|
12
|
-
description: string;
|
|
13
|
-
deadline: Date;
|
|
14
|
-
startTime: Date;
|
|
15
|
-
completedTime: Date;
|
|
16
|
-
requireRevision: boolean;
|
|
17
|
-
requireSummary: boolean;
|
|
18
|
-
responsibleCanChangeDate: boolean;
|
|
19
|
-
important: boolean;
|
|
20
|
-
status: TaskStatus;
|
|
21
|
-
isCompleted: boolean;
|
|
22
|
-
reviewed: boolean;
|
|
23
|
-
createdBy: User;
|
|
24
|
-
reviewedBy: User;
|
|
25
|
-
participants?: User[];
|
|
26
|
-
responsible?: User[];
|
|
27
|
-
observers?: User[];
|
|
28
|
-
tags: Tag[];
|
|
29
|
-
listField: TaskListField[];
|
|
30
|
-
comments: TaskComment[];
|
|
31
|
-
crm?: TaskCRM[];
|
|
32
|
-
parentTask?: Task;
|
|
33
|
-
subTasks?: Task[];
|
|
34
|
-
}
|
|
@@ -1,221 +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.Task = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const user_entity_1 = require("../user.entity");
|
|
15
|
-
const typeorm_1 = require("typeorm");
|
|
16
|
-
const task_comment_entity_1 = require("./task-comment.entity");
|
|
17
|
-
const tag_entity_1 = require("../tag.entity");
|
|
18
|
-
const base_entity_1 = require("../../common/database/base.entity");
|
|
19
|
-
const enums_1 = require("../../common/enums");
|
|
20
|
-
const task_list_field_1 = require("./task-list-field");
|
|
21
|
-
const helpers_1 = require("../../entities/helpers");
|
|
22
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
23
|
-
let Task = class Task extends base_entity_1.EntityBase {
|
|
24
|
-
idBitrix;
|
|
25
|
-
name;
|
|
26
|
-
number;
|
|
27
|
-
description;
|
|
28
|
-
deadline;
|
|
29
|
-
startTime;
|
|
30
|
-
completedTime;
|
|
31
|
-
requireRevision;
|
|
32
|
-
requireSummary;
|
|
33
|
-
responsibleCanChangeDate;
|
|
34
|
-
important;
|
|
35
|
-
status;
|
|
36
|
-
isCompleted;
|
|
37
|
-
reviewed;
|
|
38
|
-
createdBy;
|
|
39
|
-
reviewedBy;
|
|
40
|
-
participants;
|
|
41
|
-
responsible;
|
|
42
|
-
observers;
|
|
43
|
-
tags;
|
|
44
|
-
listField;
|
|
45
|
-
comments;
|
|
46
|
-
crm;
|
|
47
|
-
parentTask;
|
|
48
|
-
subTasks;
|
|
49
|
-
};
|
|
50
|
-
exports.Task = Task;
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, swagger_1.ApiProperty)({ type: Number, description: 'Bitrix ID of the policy', required: false }),
|
|
53
|
-
(0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
|
|
54
|
-
__metadata("design:type", Number)
|
|
55
|
-
], Task.prototype, "idBitrix", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Name of the task', minLength: 3 }),
|
|
58
|
-
(0, class_validator_1.MinLength)(3),
|
|
59
|
-
(0, typeorm_1.Column)({ unique: false, nullable: false }),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], Task.prototype, "name", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, typeorm_1.Column)(),
|
|
64
|
-
(0, typeorm_1.Generated)("increment"),
|
|
65
|
-
__metadata("design:type", Number)
|
|
66
|
-
], Task.prototype, "number", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Description of the task', required: false }),
|
|
69
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], Task.prototype, "description", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, swagger_1.ApiProperty)({ type: Date, description: 'Deadline of the task', required: false }),
|
|
74
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
75
|
-
__metadata("design:type", Date)
|
|
76
|
-
], Task.prototype, "deadline", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, swagger_1.ApiProperty)({ type: Date, description: 'Start time of the task', required: false }),
|
|
79
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
80
|
-
__metadata("design:type", Date)
|
|
81
|
-
], Task.prototype, "startTime", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, swagger_1.ApiProperty)({ type: Date, description: 'Completion time of the task', required: false }),
|
|
84
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
85
|
-
__metadata("design:type", Date)
|
|
86
|
-
], Task.prototype, "completedTime", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the task require revision?', default: false }),
|
|
89
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
90
|
-
__metadata("design:type", Boolean)
|
|
91
|
-
], Task.prototype, "requireRevision", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the task require a summary?', default: false }),
|
|
94
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
95
|
-
__metadata("design:type", Boolean)
|
|
96
|
-
], Task.prototype, "requireSummary", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Can the responsible user change the date?', default: false }),
|
|
99
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
100
|
-
__metadata("design:type", Boolean)
|
|
101
|
-
], Task.prototype, "responsibleCanChangeDate", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'La tarea es importante?', default: false }),
|
|
104
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
105
|
-
__metadata("design:type", Boolean)
|
|
106
|
-
], Task.prototype, "important", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, swagger_1.ApiProperty)({
|
|
109
|
-
enum: enums_1.TaskStatus,
|
|
110
|
-
description: 'Status of the task',
|
|
111
|
-
default: enums_1.TaskStatus.PENDING
|
|
112
|
-
}),
|
|
113
|
-
(0, typeorm_1.Column)({
|
|
114
|
-
type: "enum",
|
|
115
|
-
enum: enums_1.TaskStatus,
|
|
116
|
-
default: enums_1.TaskStatus.PENDING
|
|
117
|
-
}),
|
|
118
|
-
__metadata("design:type", String)
|
|
119
|
-
], Task.prototype, "status", void 0);
|
|
120
|
-
__decorate([
|
|
121
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the task completed?', default: false }),
|
|
122
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
123
|
-
__metadata("design:type", Boolean)
|
|
124
|
-
], Task.prototype, "isCompleted", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Has the task been reviewed?', default: false }),
|
|
127
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
128
|
-
__metadata("design:type", Boolean)
|
|
129
|
-
], Task.prototype, "reviewed", void 0);
|
|
130
|
-
__decorate([
|
|
131
|
-
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the task', required: false }),
|
|
132
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
133
|
-
onDelete: "SET NULL",
|
|
134
|
-
onUpdate: "CASCADE",
|
|
135
|
-
nullable: true,
|
|
136
|
-
}),
|
|
137
|
-
__metadata("design:type", user_entity_1.User)
|
|
138
|
-
], Task.prototype, "createdBy", void 0);
|
|
139
|
-
__decorate([
|
|
140
|
-
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who reviewed the task', required: false }),
|
|
141
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
142
|
-
onDelete: "SET NULL",
|
|
143
|
-
onUpdate: "CASCADE",
|
|
144
|
-
nullable: true,
|
|
145
|
-
}),
|
|
146
|
-
__metadata("design:type", user_entity_1.User)
|
|
147
|
-
], Task.prototype, "reviewedBy", void 0);
|
|
148
|
-
__decorate([
|
|
149
|
-
(0, swagger_1.ApiProperty)({ type: () => [user_entity_1.User], description: 'Participants in the task', required: false }),
|
|
150
|
-
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
151
|
-
onDelete: "CASCADE",
|
|
152
|
-
onUpdate: "CASCADE",
|
|
153
|
-
}),
|
|
154
|
-
(0, typeorm_1.JoinTable)(),
|
|
155
|
-
__metadata("design:type", Array)
|
|
156
|
-
], Task.prototype, "participants", void 0);
|
|
157
|
-
__decorate([
|
|
158
|
-
(0, swagger_1.ApiProperty)({ type: () => [user_entity_1.User], description: 'Users responsible for the task', required: false }),
|
|
159
|
-
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
160
|
-
onDelete: "CASCADE",
|
|
161
|
-
onUpdate: "CASCADE",
|
|
162
|
-
}),
|
|
163
|
-
(0, typeorm_1.JoinTable)(),
|
|
164
|
-
__metadata("design:type", Array)
|
|
165
|
-
], Task.prototype, "responsible", void 0);
|
|
166
|
-
__decorate([
|
|
167
|
-
(0, swagger_1.ApiProperty)({ type: () => [user_entity_1.User], description: 'Observers of the task', required: false }),
|
|
168
|
-
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
169
|
-
onDelete: "CASCADE",
|
|
170
|
-
onUpdate: "CASCADE",
|
|
171
|
-
}),
|
|
172
|
-
(0, typeorm_1.JoinTable)(),
|
|
173
|
-
__metadata("design:type", Array)
|
|
174
|
-
], Task.prototype, "observers", void 0);
|
|
175
|
-
__decorate([
|
|
176
|
-
(0, swagger_1.ApiProperty)({ type: () => [tag_entity_1.Tag], description: 'Tags associated with the task' }),
|
|
177
|
-
(0, typeorm_1.ManyToMany)(() => tag_entity_1.Tag, tag => tag.tasks, {
|
|
178
|
-
onDelete: "CASCADE",
|
|
179
|
-
onUpdate: "CASCADE",
|
|
180
|
-
}),
|
|
181
|
-
(0, typeorm_1.JoinTable)(),
|
|
182
|
-
__metadata("design:type", Array)
|
|
183
|
-
], Task.prototype, "tags", void 0);
|
|
184
|
-
__decorate([
|
|
185
|
-
(0, swagger_1.ApiProperty)({ type: () => [task_list_field_1.TaskListField], description: 'List fields associated with the task', required: false }),
|
|
186
|
-
(0, typeorm_1.Column)("json", { nullable: true }),
|
|
187
|
-
__metadata("design:type", Array)
|
|
188
|
-
], Task.prototype, "listField", void 0);
|
|
189
|
-
__decorate([
|
|
190
|
-
(0, swagger_1.ApiProperty)({ type: () => [task_comment_entity_1.TaskComment], description: 'Comments on the task' }),
|
|
191
|
-
(0, typeorm_1.OneToMany)(() => task_comment_entity_1.TaskComment, taskComment => taskComment.task),
|
|
192
|
-
(0, typeorm_1.JoinColumn)(),
|
|
193
|
-
__metadata("design:type", Array)
|
|
194
|
-
], Task.prototype, "comments", void 0);
|
|
195
|
-
__decorate([
|
|
196
|
-
(0, swagger_1.ApiProperty)({ type: () => [helpers_1.TaskCRM], description: 'CRM entries associated with the task', required: false }),
|
|
197
|
-
(0, typeorm_1.OneToMany)(() => helpers_1.TaskCRM, (taskCRM) => taskCRM.task, {
|
|
198
|
-
onDelete: "CASCADE",
|
|
199
|
-
onUpdate: "CASCADE",
|
|
200
|
-
}),
|
|
201
|
-
__metadata("design:type", Array)
|
|
202
|
-
], Task.prototype, "crm", void 0);
|
|
203
|
-
__decorate([
|
|
204
|
-
(0, swagger_1.ApiProperty)({ type: () => Task, description: 'Parent task', required: false }),
|
|
205
|
-
(0, typeorm_1.ManyToOne)(() => Task, {
|
|
206
|
-
onDelete: "CASCADE",
|
|
207
|
-
onUpdate: "CASCADE",
|
|
208
|
-
nullable: true,
|
|
209
|
-
}),
|
|
210
|
-
(0, typeorm_1.JoinColumn)(),
|
|
211
|
-
__metadata("design:type", Task)
|
|
212
|
-
], Task.prototype, "parentTask", void 0);
|
|
213
|
-
__decorate([
|
|
214
|
-
(0, swagger_1.ApiProperty)({ type: () => [Task], description: 'Child tasks', required: false }),
|
|
215
|
-
(0, typeorm_1.OneToMany)(() => Task, task => task.parentTask),
|
|
216
|
-
__metadata("design:type", Array)
|
|
217
|
-
], Task.prototype, "subTasks", void 0);
|
|
218
|
-
exports.Task = Task = __decorate([
|
|
219
|
-
(0, typeorm_1.Entity)()
|
|
220
|
-
], Task);
|
|
221
|
-
//# sourceMappingURL=task.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task.entity.js","sourceRoot":"","sources":["../../../src/entities/tools/task.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4C;AAC5C,gDAAsC;AACtC,qCAA6G;AAC7G,+DAAoD;AACpD,8CAAoC;AACpC,mEAA+D;AAC/D,8CAAgD;AAChD,uDAAkD;AAClD,oDAAiD;AACjD,6CAA8C;AAGvC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAGhC,QAAQ,CAAS;IAKjB,IAAI,CAAS;IAIb,MAAM,CAAS;IAIf,WAAW,CAAS;IAIpB,QAAQ,CAAO;IAIf,SAAS,CAAO;IAIhB,aAAa,CAAO;IAIpB,eAAe,CAAU;IAIzB,cAAc,CAAU;IAIxB,wBAAwB,CAAU;IAIlC,SAAS,CAAU;IAYnB,MAAM,CAAa;IAInB,WAAW,CAAU;IAIrB,QAAQ,CAA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BAAS,EAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC;;sCAC7B;eA7IT,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA8IhB"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { EntityBase } 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 EntityBase {
|
|
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
|
-
cua: string;
|
|
28
|
-
get name(): string;
|
|
29
|
-
}
|
|
@@ -1,168 +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.EntityBase {
|
|
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
|
-
cua;
|
|
43
|
-
get name() {
|
|
44
|
-
return `${this.profile?.firstName ?? ''} ${this.profile?.lastName ?? ''}`.trim();
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
exports.User = User;
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Unique username' }),
|
|
50
|
-
(0, typeorm_1.Column)({ unique: true }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], User.prototype, "username", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Unique email address' }),
|
|
55
|
-
(0, typeorm_1.Column)({ unique: true }),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], User.prototype, "email", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'User bio' }),
|
|
60
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], User.prototype, "bio", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'User avatar URL' }),
|
|
65
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], User.prototype, "avatar", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, class_transformer_1.Exclude)(),
|
|
70
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Password hash', writeOnly: true }),
|
|
71
|
-
(0, typeorm_1.Column)({ type: "text" }),
|
|
72
|
-
__metadata("design:type", String)
|
|
73
|
-
], User.prototype, "hash", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, class_transformer_1.Exclude)(),
|
|
76
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Two-factor authentication secret', required: false, writeOnly: true }),
|
|
77
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
78
|
-
__metadata("design:type", String)
|
|
79
|
-
], User.prototype, "twoFactorSecret", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is two-factor authentication enabled', default: false }),
|
|
82
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
83
|
-
__metadata("design:type", Boolean)
|
|
84
|
-
], User.prototype, "isTwoFactorEnabled", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'User phone number', required: false }),
|
|
87
|
-
(0, typeorm_1.Column)({ unique: true }),
|
|
88
|
-
__metadata("design:type", String)
|
|
89
|
-
], User.prototype, "phone", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is user verified', default: false }),
|
|
92
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
93
|
-
__metadata("design:type", Boolean)
|
|
94
|
-
], User.prototype, "isVerified", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, swagger_1.ApiProperty)({ type: Date, description: 'Last login timestamp', required: false }),
|
|
97
|
-
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
98
|
-
__metadata("design:type", Date)
|
|
99
|
-
], User.prototype, "lastLogin", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
(0, swagger_1.ApiProperty)({ type: () => profile_entity_1.Profile, description: 'User profile' }),
|
|
102
|
-
(0, typeorm_1.OneToOne)(() => profile_entity_1.Profile, {
|
|
103
|
-
onDelete: "CASCADE",
|
|
104
|
-
onUpdate: "CASCADE",
|
|
105
|
-
eager: true
|
|
106
|
-
}),
|
|
107
|
-
(0, typeorm_1.JoinColumn)(),
|
|
108
|
-
__metadata("design:type", profile_entity_1.Profile)
|
|
109
|
-
], User.prototype, "profile", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
(0, swagger_1.ApiProperty)({ type: () => [role_entity_1.Role], description: 'Roles assigned to the user' }),
|
|
112
|
-
(0, typeorm_1.ManyToMany)(() => role_entity_1.Role, {
|
|
113
|
-
onDelete: "CASCADE",
|
|
114
|
-
onUpdate: "CASCADE",
|
|
115
|
-
}),
|
|
116
|
-
(0, typeorm_1.JoinTable)(),
|
|
117
|
-
__metadata("design:type", Array)
|
|
118
|
-
], User.prototype, "roles", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
(0, swagger_1.ApiProperty)({ type: () => [tag_entity_1.Tag], description: 'Tags associated with the user' }),
|
|
121
|
-
(0, typeorm_1.OneToMany)(() => tag_entity_1.Tag, (tag) => tag.user),
|
|
122
|
-
__metadata("design:type", Array)
|
|
123
|
-
], User.prototype, "tags", void 0);
|
|
124
|
-
__decorate([
|
|
125
|
-
(0, swagger_1.ApiProperty)({ type: () => [push_token_entity_1.PushToken], description: 'Push tokens associated with the user' }),
|
|
126
|
-
(0, typeorm_1.OneToMany)(() => push_token_entity_1.PushToken, (pushToken) => pushToken.user),
|
|
127
|
-
__metadata("design:type", Array)
|
|
128
|
-
], User.prototype, "pushTokens", void 0);
|
|
129
|
-
__decorate([
|
|
130
|
-
(0, swagger_1.ApiProperty)({ type: () => [user_email_relation_entity_1.UserEmailRelation], description: 'Email relations associated with the user' }),
|
|
131
|
-
(0, typeorm_1.OneToMany)(() => user_email_relation_entity_1.UserEmailRelation, (relation) => relation.user),
|
|
132
|
-
__metadata("design:type", Array)
|
|
133
|
-
], User.prototype, "emailRelations", void 0);
|
|
134
|
-
__decorate([
|
|
135
|
-
(0, swagger_1.ApiProperty)({ type: () => [group_entity_1.Group], description: 'Groups assigned to the user' }),
|
|
136
|
-
(0, typeorm_1.ManyToMany)(() => group_entity_1.Group, {
|
|
137
|
-
onDelete: "CASCADE",
|
|
138
|
-
onUpdate: "CASCADE",
|
|
139
|
-
}),
|
|
140
|
-
(0, typeorm_1.JoinTable)(),
|
|
141
|
-
__metadata("design:type", Array)
|
|
142
|
-
], User.prototype, "groups", void 0);
|
|
143
|
-
__decorate([
|
|
144
|
-
(0, swagger_1.ApiProperty)({ type: () => menu_permissions_entity_1.MenuPermissions, description: 'Menu Permissions' }),
|
|
145
|
-
(0, typeorm_1.OneToOne)(() => menu_permissions_entity_1.MenuPermissions, {
|
|
146
|
-
onDelete: "CASCADE",
|
|
147
|
-
onUpdate: "CASCADE",
|
|
148
|
-
eager: true
|
|
149
|
-
}),
|
|
150
|
-
(0, typeorm_1.JoinColumn)(),
|
|
151
|
-
__metadata("design:type", menu_permissions_entity_1.MenuPermissions)
|
|
152
|
-
], User.prototype, "menuPermissions", void 0);
|
|
153
|
-
__decorate([
|
|
154
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'CUA', required: false }),
|
|
155
|
-
(0, typeorm_1.Column)({
|
|
156
|
-
nullable: true
|
|
157
|
-
}),
|
|
158
|
-
__metadata("design:type", String)
|
|
159
|
-
], User.prototype, "cua", void 0);
|
|
160
|
-
__decorate([
|
|
161
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Full name of the user' }),
|
|
162
|
-
__metadata("design:type", String),
|
|
163
|
-
__metadata("design:paramtypes", [])
|
|
164
|
-
], User.prototype, "name", null);
|
|
165
|
-
exports.User = User = __decorate([
|
|
166
|
-
(0, typeorm_1.Entity)()
|
|
167
|
-
], User);
|
|
168
|
-
//# sourceMappingURL=user.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA4D;AAC5D,qCAAiG;AACjG,yDAA4C;AAC5C,qDAA2C;AAC3C,+CAAqC;AACrC,6CAAmC;AACnC,wFAA4E;AAC5E,yEAA8D;AAC9D,6CAA8C;AAC9C,iDAAuC;AACvC,uEAA4D;AAGrD,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,kBAAkB,CAAW;IAI7B,KAAK,CAAU;IAIf,UAAU,CAAW;IAIrB,SAAS,CAAQ;IASjB,OAAO,CAAU;IAQjB,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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;AAMjC;IAJC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAClE,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;iCACU;AAGZ;IAAC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;;;gCAGnE;eAnGU,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAoGhB"}
|
package/dist/eslint.config.d.ts
DELETED
package/dist/eslint.config.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const rubiin = require("@antfu/eslint-config").default;
|
|
4
|
-
module.exports = rubiin({
|
|
5
|
-
stylistic: {
|
|
6
|
-
semi: true,
|
|
7
|
-
quotes: "double",
|
|
8
|
-
},
|
|
9
|
-
yaml: true,
|
|
10
|
-
jsonc: true,
|
|
11
|
-
markdown: false,
|
|
12
|
-
gitignore: true,
|
|
13
|
-
typescript: {
|
|
14
|
-
tsconfigPath: "tsconfig.json",
|
|
15
|
-
},
|
|
16
|
-
overrides: {
|
|
17
|
-
test: {
|
|
18
|
-
"ts/unbound-method": "off",
|
|
19
|
-
},
|
|
20
|
-
typescript: {
|
|
21
|
-
"ts/no-misused-promises": [
|
|
22
|
-
"error",
|
|
23
|
-
{
|
|
24
|
-
checksVoidReturn: false,
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
"ts/no-floating-promises": [
|
|
28
|
-
"error",
|
|
29
|
-
{
|
|
30
|
-
ignoreIIFE: true,
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
"unicorn/prefer-top-level-await": "off",
|
|
34
|
-
"unicorn/prevent-abbreviations": [
|
|
35
|
-
"error",
|
|
36
|
-
{
|
|
37
|
-
ignore: ["\\.e2e*", "\\.spec*", "\\.decorator*", "\\*idx*"],
|
|
38
|
-
allowList: {
|
|
39
|
-
ProcessEnv: true,
|
|
40
|
-
UUIDParam: true,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
//# 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"}
|