@intelact/driveup 1.4.43 → 1.4.45
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/lib/common/person.d.ts +16 -0
- package/lib/{company/setting.model.js → common/person.js} +22 -14
- package/lib/common/person.js.map +1 -0
- package/lib/company/company.model.d.ts +4 -0
- package/lib/company/company.model.js +10 -0
- package/lib/company/company.model.js.map +1 -1
- package/lib/driving/category/category.model.d.ts +2 -0
- package/lib/driving/category/category.model.js +6 -0
- package/lib/driving/category/category.model.js.map +1 -1
- package/lib/events/agent/account.events.d.ts +27 -0
- package/lib/events/agent/account.events.js +32 -0
- package/lib/events/agent/account.events.js.map +1 -0
- package/lib/events/agent/payout.events.d.ts +29 -0
- package/lib/events/agent/payout.events.js +34 -0
- package/lib/events/agent/payout.events.js.map +1 -0
- package/lib/events/agent/profile.events.d.ts +18 -0
- package/lib/events/agent/profile.events.js +23 -0
- package/lib/events/agent/profile.events.js.map +1 -0
- package/lib/events/agent/promotion.events.d.ts +42 -0
- package/lib/events/agent/promotion.events.js +47 -0
- package/lib/events/agent/promotion.events.js.map +1 -0
- package/lib/events/auth/auth.events.d.ts +16 -0
- package/lib/events/auth/auth.events.js +21 -0
- package/lib/events/auth/auth.events.js.map +1 -0
- package/lib/events/auth/token.events.d.ts +23 -0
- package/lib/events/auth/token.events.js +28 -0
- package/lib/events/auth/token.events.js.map +1 -0
- package/lib/events/auth/verify.events.d.ts +17 -0
- package/lib/events/auth/verify.events.js +22 -0
- package/lib/events/auth/verify.events.js.map +1 -0
- package/lib/events/company/account/account.events.d.ts +64 -0
- package/lib/events/company/account/account.events.js +69 -0
- package/lib/events/company/account/account.events.js.map +1 -0
- package/lib/events/company/account/profile.events.d.ts +169 -0
- package/lib/events/company/account/profile.events.js +174 -0
- package/lib/events/company/account/profile.events.js.map +1 -0
- package/lib/events/company/course/appointment.events.d.ts +56 -0
- package/lib/events/company/course/appointment.events.js +61 -0
- package/lib/events/company/course/appointment.events.js.map +1 -0
- package/lib/events/company/course/course.events.d.ts +118 -0
- package/lib/events/company/course/course.events.js +123 -0
- package/lib/events/company/course/course.events.js.map +1 -0
- package/lib/events/company/course/lesson.events.d.ts +56 -0
- package/lib/events/company/course/lesson.events.js +61 -0
- package/lib/events/company/course/lesson.events.js.map +1 -0
- package/lib/events/company/course/topic.events.d.ts +76 -0
- package/lib/events/company/course/topic.events.js +81 -0
- package/lib/events/company/course/topic.events.js.map +1 -0
- package/lib/events/company/product/addon.events.d.ts +34 -0
- package/lib/events/company/product/addon.events.js +39 -0
- package/lib/events/company/product/addon.events.js.map +1 -0
- package/lib/events/company/product/campaign.events.d.ts +13 -0
- package/lib/events/company/product/campaign.events.js +18 -0
- package/lib/events/company/product/campaign.events.js.map +1 -0
- package/lib/events/company/product/product.events.d.ts +54 -0
- package/lib/events/company/product/product.events.js +59 -0
- package/lib/events/company/product/product.events.js.map +1 -0
- package/lib/events/index.d.ts +25 -0
- package/lib/events/index.js +42 -0
- package/lib/events/index.js.map +1 -0
- package/lib/events/instructor/account/account.events.d.ts +123 -0
- package/lib/events/instructor/account/account.events.js +128 -0
- package/lib/events/instructor/account/account.events.js.map +1 -0
- package/lib/events/instructor/account/profile.events.d.ts +31 -0
- package/lib/events/instructor/account/profile.events.js +36 -0
- package/lib/events/instructor/account/profile.events.js.map +1 -0
- package/lib/events/instructor/task/task.events.d.ts +24 -0
- package/lib/events/instructor/task/task.events.js +29 -0
- package/lib/events/instructor/task/task.events.js.map +1 -0
- package/lib/events/student/account/account.events.d.ts +36 -0
- package/lib/events/student/account/account.events.js +41 -0
- package/lib/events/student/account/account.events.js.map +1 -0
- package/lib/events/user/account.events.d.ts +84 -0
- package/lib/events/user/account.events.js +89 -0
- package/lib/events/user/account.events.js.map +1 -0
- package/lib/events/user/alert.events.d.ts +16 -0
- package/lib/events/user/alert.events.js +21 -0
- package/lib/events/user/alert.events.js.map +1 -0
- package/lib/events/user/device.events.d.ts +30 -0
- package/lib/events/user/device.events.js +35 -0
- package/lib/events/user/device.events.js.map +1 -0
- package/lib/events/user/notification.events.d.ts +30 -0
- package/lib/events/user/notification.events.js +35 -0
- package/lib/events/user/notification.events.js.map +1 -0
- package/lib/events/user/profile.events.d.ts +60 -0
- package/lib/events/user/profile.events.js +65 -0
- package/lib/events/user/profile.events.js.map +1 -0
- package/lib/task/index.d.ts +2 -0
- package/lib/{language → task}/index.js +2 -1
- package/lib/task/index.js.map +1 -0
- package/lib/task/task.dto.d.ts +24 -0
- package/lib/task/task.dto.js +142 -0
- package/lib/task/task.dto.js.map +1 -0
- package/lib/{company/event.model.js → task/task.model.js} +1 -1
- package/lib/task/task.model.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/activity.type.d.ts +46 -0
- package/lib/types/activity.type.js +51 -0
- package/lib/types/activity.type.js.map +1 -0
- package/lib/types/addon.type.d.ts +66 -0
- package/lib/types/addon.type.js +71 -0
- package/lib/types/addon.type.js.map +1 -0
- package/lib/types/calendar.type.d.ts +24 -0
- package/lib/types/calendar.type.js +31 -0
- package/lib/types/calendar.type.js.map +1 -0
- package/lib/types/driving.type.d.ts +12 -0
- package/lib/types/driving.type.js +18 -0
- package/lib/types/driving.type.js.map +1 -0
- package/lib/types/earning.type.d.ts +6 -0
- package/lib/{security/token.interface.js → types/earning.type.js} +1 -1
- package/lib/types/earning.type.js.map +1 -0
- package/lib/types/finance.type.d.ts +67 -0
- package/lib/types/finance.type.js +77 -0
- package/lib/types/finance.type.js.map +1 -0
- package/lib/types/index.d.ts +15 -0
- package/lib/types/index.js +32 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/interface.d.ts +79 -0
- package/lib/{public/user-agent.interface.js → types/interface.js} +2 -1
- package/lib/types/interface.js.map +1 -0
- package/lib/types/metric.type.d.ts +34 -0
- package/lib/types/metric.type.js +39 -0
- package/lib/types/metric.type.js.map +1 -0
- package/lib/types/policy.type.d.ts +27 -0
- package/lib/types/policy.type.js +32 -0
- package/lib/types/policy.type.js.map +1 -0
- package/lib/types/priceplan.type.d.ts +39 -0
- package/lib/types/priceplan.type.js +48 -0
- package/lib/types/priceplan.type.js.map +1 -0
- package/lib/types/product.type.d.ts +202 -0
- package/lib/types/product.type.js +209 -0
- package/lib/types/product.type.js.map +1 -0
- package/lib/types/program.type.d.ts +23 -0
- package/lib/types/program.type.js +28 -0
- package/lib/types/program.type.js.map +1 -0
- package/lib/types/security.type.d.ts +54 -0
- package/lib/types/security.type.js +60 -0
- package/lib/types/security.type.js.map +1 -0
- package/lib/types/support.type.d.ts +128 -0
- package/lib/types/support.type.js +145 -0
- package/lib/types/support.type.js.map +1 -0
- package/lib/types/training.type.d.ts +16 -0
- package/lib/types/training.type.js +22 -0
- package/lib/types/training.type.js.map +1 -0
- package/lib/utils/compare.validator.d.ts +9 -0
- package/lib/utils/compare.validator.js +35 -0
- package/lib/utils/compare.validator.js.map +1 -0
- package/lib/utils/required.validator.d.ts +77 -0
- package/lib/utils/required.validator.js +151 -0
- package/lib/utils/required.validator.js.map +1 -0
- package/lib/utils/transformers.helper.d.ts +48 -0
- package/lib/utils/transformers.helper.js +184 -0
- package/lib/utils/transformers.helper.js.map +1 -0
- package/package.json +1 -1
- package/lib/agent/payout.model.d.ts +0 -11
- package/lib/agent/payout.model.js +0 -59
- package/lib/agent/payout.model.js.map +0 -1
- package/lib/auth/biometric.dto.d.ts +0 -3
- package/lib/auth/biometric.dto.js +0 -25
- package/lib/auth/biometric.dto.js.map +0 -1
- package/lib/calendar/link.d.ts +0 -4
- package/lib/calendar/link.js +0 -9
- package/lib/calendar/link.js.map +0 -1
- package/lib/common/appointment.model.d.ts +0 -13
- package/lib/common/appointment.model.js +0 -79
- package/lib/common/appointment.model.js.map +0 -1
- package/lib/common/date.d.ts +0 -9
- package/lib/common/date.enum.d.ts +0 -9
- package/lib/common/date.enum.js +0 -14
- package/lib/common/date.enum.js.map +0 -1
- package/lib/common/date.js +0 -14
- package/lib/common/date.js.map +0 -1
- package/lib/common/general.dto.d.ts +0 -70
- package/lib/common/general.dto.js +0 -302
- package/lib/common/general.dto.js.map +0 -1
- package/lib/common/notification.enum.d.ts +0 -11
- package/lib/common/notification.enum.js +0 -17
- package/lib/common/notification.enum.js.map +0 -1
- package/lib/company/account.status.enum.d.ts +0 -8
- package/lib/company/account.status.enum.js +0 -13
- package/lib/company/account.status.enum.js.map +0 -1
- package/lib/company/common/appointment.type.enum.d.ts +0 -4
- package/lib/company/common/appointment.type.enum.js +0 -9
- package/lib/company/common/appointment.type.enum.js.map +0 -1
- package/lib/company/common/general.dto.d.ts +0 -46
- package/lib/company/common/general.dto.js +0 -182
- package/lib/company/common/general.dto.js.map +0 -1
- package/lib/company/common/index.d.ts +0 -4
- package/lib/company/common/index.js +0 -21
- package/lib/company/common/index.js.map +0 -1
- package/lib/company/common/request.status.enum.d.ts +0 -6
- package/lib/company/common/request.status.enum.js +0 -11
- package/lib/company/common/request.status.enum.js.map +0 -1
- package/lib/company/common/setting.enum.d.ts +0 -7
- package/lib/company/common/setting.enum.js +0 -12
- package/lib/company/common/setting.enum.js.map +0 -1
- package/lib/company/common/training.status.enum.d.ts +0 -11
- package/lib/company/common/training.status.enum.js +0 -17
- package/lib/company/common/training.status.enum.js.map +0 -1
- package/lib/company/course/appointment.model.d.ts +0 -10
- package/lib/company/course/appointment.model.js +0 -43
- package/lib/company/course/appointment.model.js.map +0 -1
- package/lib/company/course/course.enum.d.ts +0 -15
- package/lib/company/course/course.enum.js +0 -22
- package/lib/company/course/course.enum.js.map +0 -1
- package/lib/company/course/course.model.d.ts +0 -17
- package/lib/company/course/course.model.js +0 -94
- package/lib/company/course/course.model.js.map +0 -1
- package/lib/company/course/definition.model.d.ts +0 -11
- package/lib/company/course/definition.model.js +0 -57
- package/lib/company/course/definition.model.js.map +0 -1
- package/lib/company/course/finances/discount.model.d.ts +0 -8
- package/lib/company/course/finances/discount.model.js +0 -44
- package/lib/company/course/finances/discount.model.js.map +0 -1
- package/lib/company/course/finances/index.d.ts +0 -5
- package/lib/company/course/finances/index.js +0 -22
- package/lib/company/course/finances/index.js.map +0 -1
- package/lib/company/course/finances/invoice-item.model.d.ts +0 -7
- package/lib/company/course/finances/invoice-item.model.js +0 -43
- package/lib/company/course/finances/invoice-item.model.js.map +0 -1
- package/lib/company/course/finances/invoice.model.d.ts +0 -15
- package/lib/company/course/finances/invoice.model.js +0 -77
- package/lib/company/course/finances/invoice.model.js.map +0 -1
- package/lib/company/course/finances/payment.model.d.ts +0 -13
- package/lib/company/course/finances/payment.model.js +0 -68
- package/lib/company/course/finances/payment.model.js.map +0 -1
- package/lib/company/course/finances/refund.model.d.ts +0 -8
- package/lib/company/course/finances/refund.model.js +0 -44
- package/lib/company/course/finances/refund.model.js.map +0 -1
- package/lib/company/course/index.d.ts +0 -6
- package/lib/company/course/index.js +0 -23
- package/lib/company/course/index.js.map +0 -1
- package/lib/company/course/part.model.d.ts +0 -10
- package/lib/company/course/part.model.js +0 -56
- package/lib/company/course/part.model.js.map +0 -1
- package/lib/company/driving/appointment.type.enum.d.ts +0 -4
- package/lib/company/driving/appointment.type.enum.js +0 -9
- package/lib/company/driving/appointment.type.enum.js.map +0 -1
- package/lib/company/driving/category.model.d.ts +0 -18
- package/lib/company/driving/category.model.js +0 -100
- package/lib/company/driving/category.model.js.map +0 -1
- package/lib/company/driving/dto.d.ts +0 -5
- package/lib/company/driving/dto.js +0 -38
- package/lib/company/driving/dto.js.map +0 -1
- package/lib/company/driving/exam.enum.d.ts +0 -5
- package/lib/company/driving/exam.enum.js +0 -10
- package/lib/company/driving/exam.enum.js.map +0 -1
- package/lib/company/driving/exam.status.enum.d.ts +0 -5
- package/lib/company/driving/exam.status.enum.js +0 -10
- package/lib/company/driving/exam.status.enum.js.map +0 -1
- package/lib/company/driving/finances/discount.model.d.ts +0 -8
- package/lib/company/driving/finances/discount.model.js +0 -44
- package/lib/company/driving/finances/discount.model.js.map +0 -1
- package/lib/company/driving/finances/index.d.ts +0 -5
- package/lib/company/driving/finances/index.js +0 -22
- package/lib/company/driving/finances/index.js.map +0 -1
- package/lib/company/driving/finances/invoice-item.model.d.ts +0 -7
- package/lib/company/driving/finances/invoice-item.model.js +0 -43
- package/lib/company/driving/finances/invoice-item.model.js.map +0 -1
- package/lib/company/driving/finances/invoice.model.d.ts +0 -14
- package/lib/company/driving/finances/invoice.model.js +0 -71
- package/lib/company/driving/finances/invoice.model.js.map +0 -1
- package/lib/company/driving/finances/payment.model.d.ts +0 -13
- package/lib/company/driving/finances/payment.model.js +0 -68
- package/lib/company/driving/finances/payment.model.js.map +0 -1
- package/lib/company/driving/finances/refund.model.d.ts +0 -8
- package/lib/company/driving/finances/refund.model.js +0 -44
- package/lib/company/driving/finances/refund.model.js.map +0 -1
- package/lib/company/driving/index.d.ts +0 -9
- package/lib/company/driving/index.js +0 -26
- package/lib/company/driving/index.js.map +0 -1
- package/lib/company/driving/score.enum.d.ts +0 -12
- package/lib/company/driving/score.enum.js +0 -18
- package/lib/company/driving/score.enum.js.map +0 -1
- package/lib/company/driving/skill.model.d.ts +0 -8
- package/lib/company/driving/skill.model.js +0 -47
- package/lib/company/driving/skill.model.js.map +0 -1
- package/lib/company/driving/status.enum.d.ts +0 -5
- package/lib/company/driving/status.enum.js +0 -10
- package/lib/company/driving/status.enum.js.map +0 -1
- package/lib/company/driving/topic.model.d.ts +0 -10
- package/lib/company/driving/topic.model.js +0 -54
- package/lib/company/driving/topic.model.js.map +0 -1
- package/lib/company/driving/transmission.enum.d.ts +0 -4
- package/lib/company/driving/transmission.enum.js +0 -9
- package/lib/company/driving/transmission.enum.js.map +0 -1
- package/lib/company/event.model.js.map +0 -1
- package/lib/company/finances/card.model.d.ts +0 -10
- package/lib/company/finances/card.model.js +0 -55
- package/lib/company/finances/card.model.js.map +0 -1
- package/lib/company/finances/credit.model.d.ts +0 -9
- package/lib/company/finances/credit.model.js +0 -50
- package/lib/company/finances/credit.model.js.map +0 -1
- package/lib/company/finances/expense-category.model.d.ts +0 -5
- package/lib/company/finances/expense-category.model.js +0 -31
- package/lib/company/finances/expense-category.model.js.map +0 -1
- package/lib/company/finances/expense.model.d.ts +0 -11
- package/lib/company/finances/expense.model.js +0 -55
- package/lib/company/finances/expense.model.js.map +0 -1
- package/lib/company/finances/finance.enum.d.ts +0 -22
- package/lib/company/finances/finance.enum.js +0 -31
- package/lib/company/finances/finance.enum.js.map +0 -1
- package/lib/company/finances/index.d.ts +0 -5
- package/lib/company/finances/index.js +0 -22
- package/lib/company/finances/index.js.map +0 -1
- package/lib/company/finances/payment.model.d.ts +0 -7
- package/lib/company/finances/payment.model.js +0 -39
- package/lib/company/finances/payment.model.js.map +0 -1
- package/lib/company/finances/priceplan.model.d.ts +0 -19
- package/lib/company/finances/priceplan.model.js +0 -95
- package/lib/company/finances/priceplan.model.js.map +0 -1
- package/lib/company/plan/index.d.ts +0 -2
- package/lib/company/plan/index.js +0 -19
- package/lib/company/plan/index.js.map +0 -1
- package/lib/company/plan/plan.enum.d.ts +0 -9
- package/lib/company/plan/plan.enum.js +0 -15
- package/lib/company/plan/plan.enum.js.map +0 -1
- package/lib/company/plan/plan.model.d.ts +0 -16
- package/lib/company/plan/plan.model.js +0 -87
- package/lib/company/plan/plan.model.js.map +0 -1
- package/lib/company/plan.enum.d.ts +0 -9
- package/lib/company/plan.enum.js +0 -15
- package/lib/company/plan.enum.js.map +0 -1
- package/lib/company/priceplan.model.d.ts +0 -16
- package/lib/company/priceplan.model.js +0 -87
- package/lib/company/priceplan.model.js.map +0 -1
- package/lib/company/setting.model.d.ts +0 -10
- package/lib/company/setting.model.js.map +0 -1
- package/lib/company/student/index.d.ts +0 -1
- package/lib/company/student/index.js +0 -18
- package/lib/company/student/index.js.map +0 -1
- package/lib/company/student/student.model.d.ts +0 -10
- package/lib/company/student/student.model.js +0 -43
- package/lib/company/student/student.model.js.map +0 -1
- package/lib/company/team/index.d.ts +0 -2
- package/lib/company/team/index.js +0 -19
- package/lib/company/team/index.js.map +0 -1
- package/lib/company/team/team.dto.d.ts +0 -6
- package/lib/company/team/team.dto.js +0 -39
- package/lib/company/team/team.dto.js.map +0 -1
- package/lib/company/team/user.model.d.ts +0 -33
- package/lib/company/team/user.model.js +0 -104
- package/lib/company/team/user.model.js.map +0 -1
- package/lib/company/team/user.status.enum.d.ts +0 -5
- package/lib/company/team/user.status.enum.js +0 -10
- package/lib/company/team/user.status.enum.js.map +0 -1
- package/lib/company/user.model.d.ts +0 -25
- package/lib/company/user.model.js +0 -124
- package/lib/company/user.model.js.map +0 -1
- package/lib/enums/date.d.ts +0 -9
- package/lib/enums/date.js +0 -14
- package/lib/enums/date.js.map +0 -1
- package/lib/enums/finance.d.ts +0 -22
- package/lib/enums/finance.js +0 -31
- package/lib/enums/finance.js.map +0 -1
- package/lib/enums/index.d.ts +0 -1
- package/lib/enums/index.js +0 -14
- package/lib/enums/index.js.map +0 -1
- package/lib/enums/language.d.ts +0 -6
- package/lib/enums/language.js +0 -11
- package/lib/enums/language.js.map +0 -1
- package/lib/enums/notification.d.ts +0 -11
- package/lib/enums/notification.js +0 -17
- package/lib/enums/notification.js.map +0 -1
- package/lib/enums/plan.d.ts +0 -9
- package/lib/enums/plan.js +0 -15
- package/lib/enums/plan.js.map +0 -1
- package/lib/enums/role.d.ts +0 -6
- package/lib/enums/role.js +0 -11
- package/lib/enums/role.js.map +0 -1
- package/lib/enums/score.d.ts +0 -12
- package/lib/enums/score.js +0 -18
- package/lib/enums/score.js.map +0 -1
- package/lib/enums/training.d.ts +0 -19
- package/lib/enums/training.js +0 -27
- package/lib/enums/training.js.map +0 -1
- package/lib/finance/handover.dto.d.ts +0 -6
- package/lib/finance/handover.dto.js +0 -45
- package/lib/finance/handover.dto.js.map +0 -1
- package/lib/finance/handover.model.d.ts +0 -13
- package/lib/finance/handover.model.js +0 -65
- package/lib/finance/handover.model.js.map +0 -1
- package/lib/language/index.d.ts +0 -1
- package/lib/language/index.js.map +0 -1
- package/lib/language/language.enum.d.ts +0 -6
- package/lib/language/language.enum.js +0 -11
- package/lib/language/language.enum.js.map +0 -1
- package/lib/notification/notification-preference.model.d.ts +0 -5
- package/lib/notification/notification-preference.model.js +0 -31
- package/lib/notification/notification-preference.model.js.map +0 -1
- package/lib/notification/notification.enum.d.ts +0 -11
- package/lib/notification/notification.enum.js +0 -17
- package/lib/notification/notification.enum.js.map +0 -1
- package/lib/notification/notification.types.d.ts +0 -11
- package/lib/notification/notification.types.js +0 -17
- package/lib/notification/notification.types.js.map +0 -1
- package/lib/public/user-agent.interface.d.ts +0 -6
- package/lib/public/user-agent.interface.js.map +0 -1
- package/lib/security/roles.d.ts +0 -9
- package/lib/security/roles.js +0 -14
- package/lib/security/roles.js.map +0 -1
- package/lib/security/token.interface.d.ts +0 -7
- package/lib/security/token.interface.js.map +0 -1
- package/lib/session/course/index.d.ts +0 -1
- package/lib/session/course/index.js +0 -14
- package/lib/session/course/index.js.map +0 -1
- package/lib/session/course/session.model.d.ts +0 -8
- package/lib/session/course/session.model.js +0 -36
- package/lib/session/course/session.model.js.map +0 -1
- package/lib/session/driving/appointment-assessment.d.ts +0 -8
- package/lib/session/driving/appointment-assessment.js +0 -50
- package/lib/session/driving/appointment-assessment.js.map +0 -1
- package/lib/student/course/appointment.model.d.ts +0 -5
- package/lib/student/course/appointment.model.js +0 -32
- package/lib/student/course/appointment.model.js.map +0 -1
- package/lib/student/course/index.d.ts +0 -3
- package/lib/student/course/index.js +0 -20
- package/lib/student/course/index.js.map +0 -1
- package/lib/student/course/request.model.d.ts +0 -11
- package/lib/student/course/request.model.js +0 -62
- package/lib/student/course/request.model.js.map +0 -1
- package/lib/student/course/training.model.d.ts +0 -16
- package/lib/student/course/training.model.js +0 -92
- package/lib/student/course/training.model.js.map +0 -1
- package/lib/student/driving/appointment-skill.model.d.ts +0 -6
- package/lib/student/driving/appointment-skill.model.js +0 -32
- package/lib/student/driving/appointment-skill.model.js.map +0 -1
- package/lib/student/driving/appointment-topic.model.d.ts +0 -6
- package/lib/student/driving/appointment-topic.model.js +0 -32
- package/lib/student/driving/appointment-topic.model.js.map +0 -1
- package/lib/student/driving/appointment.model.d.ts +0 -12
- package/lib/student/driving/appointment.model.js +0 -67
- package/lib/student/driving/appointment.model.js.map +0 -1
- package/lib/student/driving/exam/exam-topic-assesment.model.d.ts +0 -8
- package/lib/student/driving/exam/exam-topic-assesment.model.js +0 -40
- package/lib/student/driving/exam/exam-topic-assesment.model.js.map +0 -1
- package/lib/student/driving/exam/exam.model.d.ts +0 -11
- package/lib/student/driving/exam/exam.model.js +0 -50
- package/lib/student/driving/exam/exam.model.js.map +0 -1
- package/lib/student/driving/exam/index.d.ts +0 -2
- package/lib/student/driving/exam/index.js +0 -19
- package/lib/student/driving/exam/index.js.map +0 -1
- package/lib/student/driving/index.d.ts +0 -8
- package/lib/student/driving/index.js +0 -25
- package/lib/student/driving/index.js.map +0 -1
- package/lib/student/driving/request.model.d.ts +0 -13
- package/lib/student/driving/request.model.js +0 -73
- package/lib/student/driving/request.model.js.map +0 -1
- package/lib/student/driving/skill.model.d.ts +0 -6
- package/lib/student/driving/skill.model.js +0 -32
- package/lib/student/driving/skill.model.js.map +0 -1
- package/lib/student/driving/topic.model.d.ts +0 -7
- package/lib/student/driving/topic.model.js +0 -38
- package/lib/student/driving/topic.model.js.map +0 -1
- package/lib/student/driving/training.model.d.ts +0 -23
- package/lib/student/driving/training.model.js +0 -131
- package/lib/student/driving/training.model.js.map +0 -1
- package/lib/student/signature.model.d.ts +0 -7
- package/lib/student/signature.model.js +0 -42
- package/lib/student/signature.model.js.map +0 -1
- package/lib/support/index.d.ts +0 -1
- package/lib/support/index.js +0 -18
- package/lib/support/index.js.map +0 -1
- package/lib/support/request.dto.d.ts +0 -5
- package/lib/support/request.dto.js +0 -39
- package/lib/support/request.dto.js.map +0 -1
- package/lib/system/country.model.d.ts +0 -15
- package/lib/system/country.model.js +0 -75
- package/lib/system/country.model.js.map +0 -1
- package/lib/system/driving/category.model.d.ts +0 -12
- package/lib/system/driving/category.model.js +0 -66
- package/lib/system/driving/category.model.js.map +0 -1
- package/lib/system/driving/category.trans.model.d.ts +0 -8
- package/lib/system/driving/category.trans.model.js +0 -42
- package/lib/system/driving/category.trans.model.js.map +0 -1
- package/lib/system/driving/index.d.ts +0 -6
- package/lib/system/driving/index.js +0 -23
- package/lib/system/driving/index.js.map +0 -1
- package/lib/system/driving/skill.model.d.ts +0 -11
- package/lib/system/driving/skill.model.js +0 -61
- package/lib/system/driving/skill.model.js.map +0 -1
- package/lib/system/driving/skill.trans.model.d.ts +0 -9
- package/lib/system/driving/skill.trans.model.js +0 -48
- package/lib/system/driving/skill.trans.model.js.map +0 -1
- package/lib/system/driving/topic.model.d.ts +0 -10
- package/lib/system/driving/topic.model.js +0 -55
- package/lib/system/driving/topic.model.js.map +0 -1
- package/lib/system/driving/topic.trans.model.d.ts +0 -8
- package/lib/system/driving/topic.trans.model.js +0 -42
- package/lib/system/driving/topic.trans.model.js.map +0 -1
- package/lib/system/finances/currency.model.d.ts +0 -9
- package/lib/system/finances/currency.model.js +0 -53
- package/lib/system/finances/currency.model.js.map +0 -1
- package/lib/system/finances/index.d.ts +0 -3
- package/lib/system/finances/index.js +0 -20
- package/lib/system/finances/index.js.map +0 -1
- package/lib/system/finances/priceplan.model.d.ts +0 -13
- package/lib/system/finances/priceplan.model.js +0 -67
- package/lib/system/finances/priceplan.model.js.map +0 -1
- package/lib/system/finances/priceplan.translation.d.ts +0 -8
- package/lib/system/finances/priceplan.translation.js +0 -42
- package/lib/system/finances/priceplan.translation.js.map +0 -1
- package/lib/system/index.d.ts +0 -3
- package/lib/system/index.js +0 -20
- package/lib/system/index.js.map +0 -1
- package/lib/user/biometric.dto.d.ts +0 -3
- package/lib/user/biometric.dto.js +0 -25
- package/lib/user/biometric.dto.js.map +0 -1
- package/lib/user/email.dto.d.ts +0 -4
- package/lib/user/email.dto.js +0 -32
- package/lib/user/email.dto.js.map +0 -1
- package/lib/user/notification/index.d.ts +0 -3
- package/lib/user/notification/index.js +0 -20
- package/lib/user/notification/index.js.map +0 -1
- package/lib/user/notification/notification-preference.model.d.ts +0 -5
- package/lib/user/notification/notification-preference.model.js +0 -31
- package/lib/user/notification/notification-preference.model.js.map +0 -1
- package/lib/user/notification/notification.enum.d.ts +0 -11
- package/lib/user/notification/notification.enum.js +0 -17
- package/lib/user/notification/notification.enum.js.map +0 -1
- package/lib/user/notification/notification.model.d.ts +0 -10
- package/lib/user/notification/notification.model.js +0 -53
- package/lib/user/notification/notification.model.js.map +0 -1
- package/lib/user/phone.dto.d.ts +0 -4
- package/lib/user/phone.dto.js +0 -32
- package/lib/user/phone.dto.js.map +0 -1
- package/lib/user/sign.dto.d.ts +0 -5
- package/lib/user/sign.dto.js +0 -38
- package/lib/user/sign.dto.js.map +0 -1
- package/lib/user/user.device.model.d.ts +0 -8
- package/lib/user/user.device.model.js +0 -46
- package/lib/user/user.device.model.js.map +0 -1
- /package/lib/{company/event.model.d.ts → task/task.model.d.ts} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare enum ProgramType {
|
|
2
|
+
/**
|
|
3
|
+
* Student Driving Licence Program
|
|
4
|
+
* A program designed for individuals who are in the fully process of obtaining their driving licence.
|
|
5
|
+
* This program includes various stages such as medical examinations, theory training, practical lessons, and final assessments.
|
|
6
|
+
* It aims to provide comprehensive training and support to help students become safe and responsible drivers.
|
|
7
|
+
*/
|
|
8
|
+
Driving = "Driving",
|
|
9
|
+
/**
|
|
10
|
+
* Driving Control Program
|
|
11
|
+
* Foreign drivers must take in order to have their foreign driving licence officially recognized and exchanged for a country driving licence.
|
|
12
|
+
* This program typically includes assessments of driving skills, knowledge of local traffic laws, and may involve additional training sessions.
|
|
13
|
+
* The goal is to ensure that foreign drivers meet the required standards for safe driving within the country.
|
|
14
|
+
*/
|
|
15
|
+
DrivingControl = "DrivingControl",
|
|
16
|
+
/**
|
|
17
|
+
* Instructor Qualification Program
|
|
18
|
+
* A program aimed at individuals seeking to become certified driving instructors.
|
|
19
|
+
* This program covers the necessary training, assessments, and certifications required to qualify as a professional driving instructor.
|
|
20
|
+
* It focuses on developing teaching skills, driving techniques, and knowledge of traffic laws to effectively train new drivers.
|
|
21
|
+
*/
|
|
22
|
+
InstructorQualification = "InstructorQualification"
|
|
23
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProgramType = void 0;
|
|
4
|
+
var ProgramType;
|
|
5
|
+
(function (ProgramType) {
|
|
6
|
+
/**
|
|
7
|
+
* Student Driving Licence Program
|
|
8
|
+
* A program designed for individuals who are in the fully process of obtaining their driving licence.
|
|
9
|
+
* This program includes various stages such as medical examinations, theory training, practical lessons, and final assessments.
|
|
10
|
+
* It aims to provide comprehensive training and support to help students become safe and responsible drivers.
|
|
11
|
+
*/
|
|
12
|
+
ProgramType["Driving"] = "Driving";
|
|
13
|
+
/**
|
|
14
|
+
* Driving Control Program
|
|
15
|
+
* Foreign drivers must take in order to have their foreign driving licence officially recognized and exchanged for a country driving licence.
|
|
16
|
+
* This program typically includes assessments of driving skills, knowledge of local traffic laws, and may involve additional training sessions.
|
|
17
|
+
* The goal is to ensure that foreign drivers meet the required standards for safe driving within the country.
|
|
18
|
+
*/
|
|
19
|
+
ProgramType["DrivingControl"] = "DrivingControl";
|
|
20
|
+
/**
|
|
21
|
+
* Instructor Qualification Program
|
|
22
|
+
* A program aimed at individuals seeking to become certified driving instructors.
|
|
23
|
+
* This program covers the necessary training, assessments, and certifications required to qualify as a professional driving instructor.
|
|
24
|
+
* It focuses on developing teaching skills, driving techniques, and knowledge of traffic laws to effectively train new drivers.
|
|
25
|
+
*/
|
|
26
|
+
ProgramType["InstructorQualification"] = "InstructorQualification";
|
|
27
|
+
})(ProgramType || (exports.ProgramType = ProgramType = {}));
|
|
28
|
+
//# sourceMappingURL=program.type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program.type.js","sourceRoot":"","sources":["../../src/types/program.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAyBX;AAzBD,WAAY,WAAW;IAEtB;;;;;OAKG;IACH,kCAAmB,CAAA;IAEnB;;;;;OAKG;IACH,gDAAiC,CAAA;IAEjC;;;;;OAKG;IACH,kEAAmD,CAAA;AACpD,CAAC,EAzBW,WAAW,2BAAX,WAAW,QAyBtB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare enum CompanyRole {
|
|
2
|
+
/**
|
|
3
|
+
* Company Owner
|
|
4
|
+
* @description User with all rights in his company
|
|
5
|
+
*/
|
|
6
|
+
Owner = "owner",
|
|
7
|
+
/**
|
|
8
|
+
* Company Manager
|
|
9
|
+
* @description The company manager who administers the back office
|
|
10
|
+
*/
|
|
11
|
+
Manager = "manager",
|
|
12
|
+
/**
|
|
13
|
+
* Company Instructor
|
|
14
|
+
* @description The company instructor who trains the students
|
|
15
|
+
*/
|
|
16
|
+
Instructor = "instructor"
|
|
17
|
+
}
|
|
18
|
+
export declare enum StaffRole {
|
|
19
|
+
/**
|
|
20
|
+
* Product Owner
|
|
21
|
+
* @description User with all rights in the console
|
|
22
|
+
*/
|
|
23
|
+
ProductOwner = "product.owner",
|
|
24
|
+
/**
|
|
25
|
+
* Product Manager
|
|
26
|
+
* @description User who manages product features and releases
|
|
27
|
+
*/
|
|
28
|
+
ProductManager = "product.manager",
|
|
29
|
+
/**
|
|
30
|
+
* Business Manager
|
|
31
|
+
* @description User who manages business operations
|
|
32
|
+
*/
|
|
33
|
+
BusinessManager = "business.manager",
|
|
34
|
+
/**
|
|
35
|
+
* Customer Account Manager
|
|
36
|
+
* @description User who manages customer accounts
|
|
37
|
+
*/
|
|
38
|
+
CustomerAccountManager = "customer.account.manager",
|
|
39
|
+
/**
|
|
40
|
+
* Customer Support Manager
|
|
41
|
+
* @description User who provides support to customers
|
|
42
|
+
*/
|
|
43
|
+
CustomerSupportManager = "customer.support.manager",
|
|
44
|
+
/**
|
|
45
|
+
* Marketing Manager
|
|
46
|
+
* @description User who manages marketing activities
|
|
47
|
+
*/
|
|
48
|
+
MarketingManager = "marketing.manager",
|
|
49
|
+
/**
|
|
50
|
+
* Marketing Manager
|
|
51
|
+
* @description User who manages marketing activities
|
|
52
|
+
*/
|
|
53
|
+
MarketingService = "marketing.service"
|
|
54
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StaffRole = exports.CompanyRole = void 0;
|
|
4
|
+
var CompanyRole;
|
|
5
|
+
(function (CompanyRole) {
|
|
6
|
+
/**
|
|
7
|
+
* Company Owner
|
|
8
|
+
* @description User with all rights in his company
|
|
9
|
+
*/
|
|
10
|
+
CompanyRole["Owner"] = "owner";
|
|
11
|
+
/**
|
|
12
|
+
* Company Manager
|
|
13
|
+
* @description The company manager who administers the back office
|
|
14
|
+
*/
|
|
15
|
+
CompanyRole["Manager"] = "manager";
|
|
16
|
+
/**
|
|
17
|
+
* Company Instructor
|
|
18
|
+
* @description The company instructor who trains the students
|
|
19
|
+
*/
|
|
20
|
+
CompanyRole["Instructor"] = "instructor";
|
|
21
|
+
})(CompanyRole || (exports.CompanyRole = CompanyRole = {}));
|
|
22
|
+
var StaffRole;
|
|
23
|
+
(function (StaffRole) {
|
|
24
|
+
/**
|
|
25
|
+
* Product Owner
|
|
26
|
+
* @description User with all rights in the console
|
|
27
|
+
*/
|
|
28
|
+
StaffRole["ProductOwner"] = "product.owner";
|
|
29
|
+
/**
|
|
30
|
+
* Product Manager
|
|
31
|
+
* @description User who manages product features and releases
|
|
32
|
+
*/
|
|
33
|
+
StaffRole["ProductManager"] = "product.manager";
|
|
34
|
+
/**
|
|
35
|
+
* Business Manager
|
|
36
|
+
* @description User who manages business operations
|
|
37
|
+
*/
|
|
38
|
+
StaffRole["BusinessManager"] = "business.manager";
|
|
39
|
+
/**
|
|
40
|
+
* Customer Account Manager
|
|
41
|
+
* @description User who manages customer accounts
|
|
42
|
+
*/
|
|
43
|
+
StaffRole["CustomerAccountManager"] = "customer.account.manager";
|
|
44
|
+
/**
|
|
45
|
+
* Customer Support Manager
|
|
46
|
+
* @description User who provides support to customers
|
|
47
|
+
*/
|
|
48
|
+
StaffRole["CustomerSupportManager"] = "customer.support.manager";
|
|
49
|
+
/**
|
|
50
|
+
* Marketing Manager
|
|
51
|
+
* @description User who manages marketing activities
|
|
52
|
+
*/
|
|
53
|
+
StaffRole["MarketingManager"] = "marketing.manager";
|
|
54
|
+
/**
|
|
55
|
+
* Marketing Manager
|
|
56
|
+
* @description User who manages marketing activities
|
|
57
|
+
*/
|
|
58
|
+
StaffRole["MarketingService"] = "marketing.service";
|
|
59
|
+
})(StaffRole || (exports.StaffRole = StaffRole = {}));
|
|
60
|
+
//# sourceMappingURL=security.type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security.type.js","sourceRoot":"","sources":["../../src/types/security.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAkBX;AAlBD,WAAY,WAAW;IACtB;;;OAGG;IACH,8BAAe,CAAA;IAEf;;;OAGG;IACH,kCAAmB,CAAA;IAEnB;;;OAGG;IACH,wCAAyB,CAAA;AAC1B,CAAC,EAlBW,WAAW,2BAAX,WAAW,QAkBtB;AAED,IAAY,SA2CX;AA3CD,WAAY,SAAS;IAEpB;;;OAGG;IACH,2CAA8B,CAAA;IAE9B;;;OAGG;IACH,+CAAkC,CAAA;IAElC;;;OAGG;IACH,iDAAoC,CAAA;IAEpC;;;OAGG;IACH,gEAAmD,CAAA;IAEnD;;;OAGG;IACH,gEAAmD,CAAA;IAEnD;;;OAGG;IACH,mDAAsC,CAAA;IAEtC;;;OAGG;IACH,mDAAsC,CAAA;AACvC,CAAC,EA3CW,SAAS,yBAAT,SAAS,QA2CpB"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
export declare enum AccountStatus {
|
|
2
|
+
Invited = "invited",
|
|
3
|
+
Pending = "pending",
|
|
4
|
+
Active = "active",
|
|
5
|
+
Suspended = "suspended",
|
|
6
|
+
Blocked = "blocked",
|
|
7
|
+
Closed = "closed"
|
|
8
|
+
}
|
|
9
|
+
export declare enum ProfileType {
|
|
10
|
+
Student = "student",
|
|
11
|
+
Company = "company",
|
|
12
|
+
Agent = "agent",
|
|
13
|
+
Instructor = "instructor"
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Global language enumeration.
|
|
17
|
+
* Defines supported language codes.
|
|
18
|
+
* Only languages defined here should be used across the application.
|
|
19
|
+
* Add language code allway in small letters.
|
|
20
|
+
*/
|
|
21
|
+
export declare enum Language {
|
|
22
|
+
En = "en",
|
|
23
|
+
De = "de",
|
|
24
|
+
Fr = "fr",
|
|
25
|
+
It = "it"
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Global status types used across the application
|
|
29
|
+
* Members: Draft, Pending, Approved, Published, Complited, Canceled, Rejected, Skipped
|
|
30
|
+
*/
|
|
31
|
+
export declare enum StatusType {
|
|
32
|
+
Draft = "draft",
|
|
33
|
+
Planned = "planned",
|
|
34
|
+
Pending = "pending",
|
|
35
|
+
Progress = "progress",
|
|
36
|
+
Approved = "approved",
|
|
37
|
+
Published = "published",
|
|
38
|
+
Completed = "completed",
|
|
39
|
+
Terminated = "terminated",
|
|
40
|
+
Active = "active",
|
|
41
|
+
Inactive = "inactive",
|
|
42
|
+
Disabled = "disabled",
|
|
43
|
+
Ended = "ended",
|
|
44
|
+
Canceled = "canceled",
|
|
45
|
+
Generated = "generated",
|
|
46
|
+
Paid = "paid",
|
|
47
|
+
Rejected = "rejected",
|
|
48
|
+
Skipped = "skipped",
|
|
49
|
+
Passed = "passed",
|
|
50
|
+
Failed = "failed",
|
|
51
|
+
Overdate = "overdate",
|
|
52
|
+
Sent = "sent"
|
|
53
|
+
}
|
|
54
|
+
export declare enum PriorityType {
|
|
55
|
+
Low = "low",
|
|
56
|
+
Medium = "medium",
|
|
57
|
+
High = "high",
|
|
58
|
+
Urgent = "urgent"
|
|
59
|
+
}
|
|
60
|
+
export declare enum PreferenceScope {
|
|
61
|
+
Notification = "notification",
|
|
62
|
+
Settings = "settings",
|
|
63
|
+
Privacy = "privacy"
|
|
64
|
+
}
|
|
65
|
+
export declare enum NotificationChannel {
|
|
66
|
+
App = "app",
|
|
67
|
+
Push = "push",
|
|
68
|
+
SMS = "sms",
|
|
69
|
+
Email = "email"
|
|
70
|
+
}
|
|
71
|
+
export declare enum TicketType {
|
|
72
|
+
Recovery = "recovery",
|
|
73
|
+
Call = "call",
|
|
74
|
+
EnterprisePlan = "enterprise_plan"
|
|
75
|
+
}
|
|
76
|
+
export declare enum LogType {
|
|
77
|
+
System = "system",
|
|
78
|
+
Job = "job",
|
|
79
|
+
User = "user",
|
|
80
|
+
Company = "company",
|
|
81
|
+
Agent = "agent",
|
|
82
|
+
Student = "student",
|
|
83
|
+
Instructor = "instructor"
|
|
84
|
+
}
|
|
85
|
+
export declare enum AssetType {
|
|
86
|
+
Image = "image",
|
|
87
|
+
Video = "video",
|
|
88
|
+
Document = "document",
|
|
89
|
+
Audio = "audio",
|
|
90
|
+
Other = "other"
|
|
91
|
+
}
|
|
92
|
+
export declare enum AssetScope {
|
|
93
|
+
DriveupPromotion = "DriveupPromotion",
|
|
94
|
+
StudentPromotion = "StudentPromotion",
|
|
95
|
+
InstructorPromotion = "InstructorPromotion",
|
|
96
|
+
CompanyPromotion = "CompanyPromotion",
|
|
97
|
+
AgentPromotion = "AgentPromotion",
|
|
98
|
+
ProductMedicalPromotion = "ProductMedicalPromotion",
|
|
99
|
+
ProductPreperationPromotion = "ProductPreperationPromotion",
|
|
100
|
+
ProductDrivingPromotion = "ProductDrivingPromotion",
|
|
101
|
+
ProductCompletionPromotion = "ProductCompletionPromotion"
|
|
102
|
+
}
|
|
103
|
+
export declare enum Color {
|
|
104
|
+
Blue = "blue",
|
|
105
|
+
Green = "green",
|
|
106
|
+
Red = "red",
|
|
107
|
+
Yellow = "yellow",
|
|
108
|
+
Orange = "orange",
|
|
109
|
+
Purple = "purple",
|
|
110
|
+
Teal = "teal",
|
|
111
|
+
Gray = "gray",
|
|
112
|
+
Black = "black",
|
|
113
|
+
White = "white"
|
|
114
|
+
}
|
|
115
|
+
export declare enum ColorContext {
|
|
116
|
+
Primary = "primary",
|
|
117
|
+
Secondary = "secondary",
|
|
118
|
+
Tertiary = "tertiary",
|
|
119
|
+
Accent = "accent",
|
|
120
|
+
Error = "error",
|
|
121
|
+
Warning = "warning",
|
|
122
|
+
Success = "success",
|
|
123
|
+
Info = "info",
|
|
124
|
+
Disabled = "disabled",
|
|
125
|
+
Highlight = "highlight",
|
|
126
|
+
Dark = "dark",
|
|
127
|
+
Light = "light"
|
|
128
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ColorContext = exports.Color = exports.AssetScope = exports.AssetType = exports.LogType = exports.TicketType = exports.NotificationChannel = exports.PreferenceScope = exports.PriorityType = exports.StatusType = exports.Language = exports.ProfileType = exports.AccountStatus = void 0;
|
|
4
|
+
var AccountStatus;
|
|
5
|
+
(function (AccountStatus) {
|
|
6
|
+
AccountStatus["Invited"] = "invited";
|
|
7
|
+
AccountStatus["Pending"] = "pending";
|
|
8
|
+
AccountStatus["Active"] = "active";
|
|
9
|
+
AccountStatus["Suspended"] = "suspended";
|
|
10
|
+
AccountStatus["Blocked"] = "blocked";
|
|
11
|
+
AccountStatus["Closed"] = "closed";
|
|
12
|
+
})(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
|
|
13
|
+
var ProfileType;
|
|
14
|
+
(function (ProfileType) {
|
|
15
|
+
ProfileType["Student"] = "student";
|
|
16
|
+
ProfileType["Company"] = "company";
|
|
17
|
+
ProfileType["Agent"] = "agent";
|
|
18
|
+
ProfileType["Instructor"] = "instructor";
|
|
19
|
+
})(ProfileType || (exports.ProfileType = ProfileType = {}));
|
|
20
|
+
/**
|
|
21
|
+
* Global language enumeration.
|
|
22
|
+
* Defines supported language codes.
|
|
23
|
+
* Only languages defined here should be used across the application.
|
|
24
|
+
* Add language code allway in small letters.
|
|
25
|
+
*/
|
|
26
|
+
var Language;
|
|
27
|
+
(function (Language) {
|
|
28
|
+
Language["En"] = "en";
|
|
29
|
+
Language["De"] = "de";
|
|
30
|
+
Language["Fr"] = "fr";
|
|
31
|
+
Language["It"] = "it";
|
|
32
|
+
})(Language || (exports.Language = Language = {}));
|
|
33
|
+
/**
|
|
34
|
+
* Global status types used across the application
|
|
35
|
+
* Members: Draft, Pending, Approved, Published, Complited, Canceled, Rejected, Skipped
|
|
36
|
+
*/
|
|
37
|
+
var StatusType;
|
|
38
|
+
(function (StatusType) {
|
|
39
|
+
StatusType["Draft"] = "draft";
|
|
40
|
+
StatusType["Planned"] = "planned";
|
|
41
|
+
StatusType["Pending"] = "pending";
|
|
42
|
+
StatusType["Progress"] = "progress";
|
|
43
|
+
StatusType["Approved"] = "approved";
|
|
44
|
+
StatusType["Published"] = "published";
|
|
45
|
+
StatusType["Completed"] = "completed";
|
|
46
|
+
StatusType["Terminated"] = "terminated";
|
|
47
|
+
StatusType["Active"] = "active";
|
|
48
|
+
StatusType["Inactive"] = "inactive";
|
|
49
|
+
StatusType["Disabled"] = "disabled";
|
|
50
|
+
StatusType["Ended"] = "ended";
|
|
51
|
+
StatusType["Canceled"] = "canceled";
|
|
52
|
+
StatusType["Generated"] = "generated";
|
|
53
|
+
StatusType["Paid"] = "paid";
|
|
54
|
+
StatusType["Rejected"] = "rejected";
|
|
55
|
+
StatusType["Skipped"] = "skipped";
|
|
56
|
+
StatusType["Passed"] = "passed";
|
|
57
|
+
StatusType["Failed"] = "failed";
|
|
58
|
+
StatusType["Overdate"] = "overdate";
|
|
59
|
+
StatusType["Sent"] = "sent";
|
|
60
|
+
})(StatusType || (exports.StatusType = StatusType = {}));
|
|
61
|
+
var PriorityType;
|
|
62
|
+
(function (PriorityType) {
|
|
63
|
+
PriorityType["Low"] = "low";
|
|
64
|
+
PriorityType["Medium"] = "medium";
|
|
65
|
+
PriorityType["High"] = "high";
|
|
66
|
+
PriorityType["Urgent"] = "urgent";
|
|
67
|
+
})(PriorityType || (exports.PriorityType = PriorityType = {}));
|
|
68
|
+
var PreferenceScope;
|
|
69
|
+
(function (PreferenceScope) {
|
|
70
|
+
PreferenceScope["Notification"] = "notification";
|
|
71
|
+
PreferenceScope["Settings"] = "settings";
|
|
72
|
+
PreferenceScope["Privacy"] = "privacy";
|
|
73
|
+
})(PreferenceScope || (exports.PreferenceScope = PreferenceScope = {}));
|
|
74
|
+
var NotificationChannel;
|
|
75
|
+
(function (NotificationChannel) {
|
|
76
|
+
NotificationChannel["App"] = "app";
|
|
77
|
+
NotificationChannel["Push"] = "push";
|
|
78
|
+
NotificationChannel["SMS"] = "sms";
|
|
79
|
+
NotificationChannel["Email"] = "email";
|
|
80
|
+
})(NotificationChannel || (exports.NotificationChannel = NotificationChannel = {}));
|
|
81
|
+
var TicketType;
|
|
82
|
+
(function (TicketType) {
|
|
83
|
+
TicketType["Recovery"] = "recovery";
|
|
84
|
+
TicketType["Call"] = "call";
|
|
85
|
+
TicketType["EnterprisePlan"] = "enterprise_plan";
|
|
86
|
+
})(TicketType || (exports.TicketType = TicketType = {}));
|
|
87
|
+
var LogType;
|
|
88
|
+
(function (LogType) {
|
|
89
|
+
LogType["System"] = "system";
|
|
90
|
+
LogType["Job"] = "job";
|
|
91
|
+
LogType["User"] = "user";
|
|
92
|
+
LogType["Company"] = "company";
|
|
93
|
+
LogType["Agent"] = "agent";
|
|
94
|
+
LogType["Student"] = "student";
|
|
95
|
+
LogType["Instructor"] = "instructor";
|
|
96
|
+
})(LogType || (exports.LogType = LogType = {}));
|
|
97
|
+
var AssetType;
|
|
98
|
+
(function (AssetType) {
|
|
99
|
+
AssetType["Image"] = "image";
|
|
100
|
+
AssetType["Video"] = "video";
|
|
101
|
+
AssetType["Document"] = "document";
|
|
102
|
+
AssetType["Audio"] = "audio";
|
|
103
|
+
AssetType["Other"] = "other";
|
|
104
|
+
})(AssetType || (exports.AssetType = AssetType = {}));
|
|
105
|
+
var AssetScope;
|
|
106
|
+
(function (AssetScope) {
|
|
107
|
+
AssetScope["DriveupPromotion"] = "DriveupPromotion";
|
|
108
|
+
AssetScope["StudentPromotion"] = "StudentPromotion";
|
|
109
|
+
AssetScope["InstructorPromotion"] = "InstructorPromotion";
|
|
110
|
+
AssetScope["CompanyPromotion"] = "CompanyPromotion";
|
|
111
|
+
AssetScope["AgentPromotion"] = "AgentPromotion";
|
|
112
|
+
AssetScope["ProductMedicalPromotion"] = "ProductMedicalPromotion";
|
|
113
|
+
AssetScope["ProductPreperationPromotion"] = "ProductPreperationPromotion";
|
|
114
|
+
AssetScope["ProductDrivingPromotion"] = "ProductDrivingPromotion";
|
|
115
|
+
AssetScope["ProductCompletionPromotion"] = "ProductCompletionPromotion";
|
|
116
|
+
})(AssetScope || (exports.AssetScope = AssetScope = {}));
|
|
117
|
+
var Color;
|
|
118
|
+
(function (Color) {
|
|
119
|
+
Color["Blue"] = "blue";
|
|
120
|
+
Color["Green"] = "green";
|
|
121
|
+
Color["Red"] = "red";
|
|
122
|
+
Color["Yellow"] = "yellow";
|
|
123
|
+
Color["Orange"] = "orange";
|
|
124
|
+
Color["Purple"] = "purple";
|
|
125
|
+
Color["Teal"] = "teal";
|
|
126
|
+
Color["Gray"] = "gray";
|
|
127
|
+
Color["Black"] = "black";
|
|
128
|
+
Color["White"] = "white";
|
|
129
|
+
})(Color || (exports.Color = Color = {}));
|
|
130
|
+
var ColorContext;
|
|
131
|
+
(function (ColorContext) {
|
|
132
|
+
ColorContext["Primary"] = "primary";
|
|
133
|
+
ColorContext["Secondary"] = "secondary";
|
|
134
|
+
ColorContext["Tertiary"] = "tertiary";
|
|
135
|
+
ColorContext["Accent"] = "accent";
|
|
136
|
+
ColorContext["Error"] = "error";
|
|
137
|
+
ColorContext["Warning"] = "warning";
|
|
138
|
+
ColorContext["Success"] = "success";
|
|
139
|
+
ColorContext["Info"] = "info";
|
|
140
|
+
ColorContext["Disabled"] = "disabled";
|
|
141
|
+
ColorContext["Highlight"] = "highlight";
|
|
142
|
+
ColorContext["Dark"] = "dark";
|
|
143
|
+
ColorContext["Light"] = "light";
|
|
144
|
+
})(ColorContext || (exports.ColorContext = ColorContext = {}));
|
|
145
|
+
//# sourceMappingURL=support.type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"support.type.js","sourceRoot":"","sources":["../../src/types/support.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAOX;AAPD,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AACrB,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACtB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;IACf,wCAAyB,CAAA;AAC1B,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAED;;;;;GAKG;AACH,IAAY,QAKX;AALD,WAAY,QAAQ;IACnB,qBAAS,CAAA;IACT,qBAAS,CAAA;IACT,qBAAS,CAAA;IACT,qBAAS,CAAA;AACV,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AAED;;;GAGG;AACH,IAAY,UAsBX;AAtBD,WAAY,UAAU;IACrB,6BAAe,CAAA;IACf,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;IACrB,qCAAuB,CAAA;IACvB,qCAAuB,CAAA;IACvB,uCAAyB,CAAA;IACzB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;IACrB,6BAAe,CAAA;IACf,mCAAqB,CAAA;IACrB,qCAAuB,CAAA;IACvB,2BAAa,CAAA;IACb,mCAAqB,CAAA;IACrB,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,2BAAa,CAAA;AACd,CAAC,EAtBW,UAAU,0BAAV,UAAU,QAsBrB;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACvB,2BAAW,CAAA;IACX,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,iCAAiB,CAAA;AAClB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IAC1B,gDAA6B,CAAA;IAC7B,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;AACpB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC9B,kCAAW,CAAA;IACX,oCAAa,CAAA;IACb,kCAAW,CAAA;IACX,sCAAe,CAAA;AAChB,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IACrB,mCAAqB,CAAA;IACrB,2BAAa,CAAA;IACV,gDAAkC,CAAA;AACtC,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AAED,IAAY,OAQX;AARD,WAAY,OAAO;IAClB,4BAAiB,CAAA;IACjB,sBAAW,CAAA;IACX,wBAAa,CAAA;IACb,8BAAmB,CAAA;IACnB,0BAAe,CAAA;IACf,8BAAmB,CAAA;IACnB,oCAAyB,CAAA;AAC1B,CAAC,EARW,OAAO,uBAAP,OAAO,QAQlB;AAED,IAAY,SAMX;AAND,WAAY,SAAS;IACpB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,kCAAqB,CAAA;IACrB,4BAAe,CAAA;IACf,4BAAe,CAAA;AAChB,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AAED,IAAY,UAUX;AAVD,WAAY,UAAU;IACrB,mDAAqC,CAAA;IACrC,mDAAqC,CAAA;IACrC,yDAA2C,CAAA;IAC3C,mDAAqC,CAAA;IACrC,+CAAiC,CAAA;IACjC,iEAAmD,CAAA;IACnD,yEAA2D,CAAA;IAC3D,iEAAmD,CAAA;IACnD,uEAAyD,CAAA;AAC1D,CAAC,EAVW,UAAU,0BAAV,UAAU,QAUrB;AAED,IAAY,KAWX;AAXD,WAAY,KAAK;IAChB,sBAAa,CAAA;IACb,wBAAe,CAAA;IACf,oBAAW,CAAA;IACX,0BAAiB,CAAA;IACjB,0BAAiB,CAAA;IACjB,0BAAiB,CAAA;IACjB,sBAAa,CAAA;IACb,sBAAa,CAAA;IACb,wBAAe,CAAA;IACf,wBAAe,CAAA;AAChB,CAAC,EAXW,KAAK,qBAAL,KAAK,QAWhB;AAED,IAAY,YAaX;AAbD,WAAY,YAAY;IACvB,mCAAmB,CAAA;IAChB,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,6BAAa,CAAA;IACb,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IAC1B,6BAAa,CAAA;IACb,+BAAe,CAAA;AAChB,CAAC,EAbW,YAAY,4BAAZ,YAAY,QAavB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Will be removeReceiptd in future versions.
|
|
3
|
+
* Use src/types/product.type.ts instead.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum TrainingType {
|
|
6
|
+
Driving = "DRIVING",
|
|
7
|
+
Course = "COURSE"
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @description Will be removeReceiptd in future versions.
|
|
11
|
+
* Use src/types/product.type.ts instead.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum CourseType {
|
|
14
|
+
Flex = "FLEXIBLE",
|
|
15
|
+
Fix = "FIXED"
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CourseType = exports.TrainingType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @description Will be removeReceiptd in future versions.
|
|
6
|
+
* Use src/types/product.type.ts instead.
|
|
7
|
+
*/
|
|
8
|
+
var TrainingType;
|
|
9
|
+
(function (TrainingType) {
|
|
10
|
+
TrainingType["Driving"] = "DRIVING";
|
|
11
|
+
TrainingType["Course"] = "COURSE";
|
|
12
|
+
})(TrainingType || (exports.TrainingType = TrainingType = {}));
|
|
13
|
+
/**
|
|
14
|
+
* @description Will be removeReceiptd in future versions.
|
|
15
|
+
* Use src/types/product.type.ts instead.
|
|
16
|
+
*/
|
|
17
|
+
var CourseType;
|
|
18
|
+
(function (CourseType) {
|
|
19
|
+
CourseType["Flex"] = "FLEXIBLE";
|
|
20
|
+
CourseType["Fix"] = "FIXED";
|
|
21
|
+
})(CourseType || (exports.CourseType = CourseType = {}));
|
|
22
|
+
//# sourceMappingURL=training.type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"training.type.js","sourceRoot":"","sources":["../../src/types/training.type.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,YAGX;AAHD,WAAY,YAAY;IACvB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;AAClB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAED;;;GAGG;AACH,IAAY,UAGX;AAHD,WAAY,UAAU;IACrB,+BAAiB,CAAA;IACjB,2BAAa,CAAA;AACd,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ValidationArguments, ValidatorConstraintInterface } from "class-validator";
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the start date is less than or equal to the end date
|
|
4
|
+
* If one of the does not have a valid value, returns true
|
|
5
|
+
*/
|
|
6
|
+
export declare class CompareWithEndDate implements ValidatorConstraintInterface {
|
|
7
|
+
validate(startDate: Date, args: ValidationArguments): boolean;
|
|
8
|
+
defaultMessage(args?: ValidationArguments): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.CompareWithEndDate = void 0;
|
|
10
|
+
const class_validator_1 = require("class-validator");
|
|
11
|
+
const luxon_1 = require("luxon");
|
|
12
|
+
/**
|
|
13
|
+
* Checks if the start date is less than or equal to the end date
|
|
14
|
+
* If one of the does not have a valid value, returns true
|
|
15
|
+
*/
|
|
16
|
+
let CompareWithEndDate = class CompareWithEndDate {
|
|
17
|
+
// startDate must be there before the args param,
|
|
18
|
+
// if it's not there the args will be treated as the startDate and we won't have access to the object
|
|
19
|
+
validate(startDate, args) {
|
|
20
|
+
const dto = args.object;
|
|
21
|
+
// no validation is performed if either is not provided
|
|
22
|
+
if (!luxon_1.DateTime.fromJSDate(dto.startDate).isValid ||
|
|
23
|
+
!luxon_1.DateTime.fromJSDate(dto.endDate).isValid)
|
|
24
|
+
return true;
|
|
25
|
+
return dto.startDate < dto.endDate;
|
|
26
|
+
}
|
|
27
|
+
defaultMessage(args) {
|
|
28
|
+
return 'start date cannot be greater than end date';
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.CompareWithEndDate = CompareWithEndDate;
|
|
32
|
+
exports.CompareWithEndDate = CompareWithEndDate = __decorate([
|
|
33
|
+
(0, class_validator_1.ValidatorConstraint)({ name: 'CompareWithEndDate', async: false })
|
|
34
|
+
], CompareWithEndDate);
|
|
35
|
+
//# sourceMappingURL=compare.validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare.validator.js","sourceRoot":"","sources":["../../src/utils/compare.validator.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qDAAyG;AACzG,iCAAiC;AAGjC;;;GAGG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC9B,kDAAkD;IAClD,qGAAqG;IACrG,QAAQ,CAAC,SAAe,EAAE,IAAyB;QAClD,MAAM,GAAG,GAAG,IAAI,CAAC,MAAgB,CAAC;QAElC,uDAAuD;QACvD,IACC,CAAC,gBAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,OAAO;YAC3C,CAAC,gBAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,OAAO;YAEzC,OAAO,IAAI,CAAC;QAEb,OAAO,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC;IACpC,CAAC;IAED,cAAc,CAAC,IAA0B;QACxC,OAAO,4CAA4C,CAAC;IACrD,CAAC;CACD,CAAA;AAnBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,qCAAmB,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;GACrD,kBAAkB,CAmB9B"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from "class-validator";
|
|
2
|
+
/**
|
|
3
|
+
* Validator constraint that ensures two fields are both empty or both filled
|
|
4
|
+
* Used for mutually dependent fields that should be set together
|
|
5
|
+
*/
|
|
6
|
+
export declare class MutuallyRequiredConstraint implements ValidatorConstraintInterface {
|
|
7
|
+
/**
|
|
8
|
+
* Validates that both fields are either empty or both have values
|
|
9
|
+
* @param value - The value of the decorated field
|
|
10
|
+
* @param args - Validation arguments containing the related field name
|
|
11
|
+
* @returns True if both fields are empty or both have values, false otherwise
|
|
12
|
+
*/
|
|
13
|
+
validate(value: any, args: ValidationArguments): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the default error message when validation fails
|
|
16
|
+
* @param args - Validation arguments
|
|
17
|
+
* @returns Error message string
|
|
18
|
+
*/
|
|
19
|
+
defaultMessage(args: ValidationArguments): string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Decorator that checks if two fields are mutually empty or both with value
|
|
23
|
+
* Both fields must be either empty or filled together
|
|
24
|
+
*
|
|
25
|
+
* @param relatedField - The field name that needs to be checked with the decorated field
|
|
26
|
+
* @param validationOptions - Optional class-validator validation options
|
|
27
|
+
* @returns Property decorator function
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* class MyDto {
|
|
32
|
+
* @MutuallyRequired('endDate')
|
|
33
|
+
* startDate: Date;
|
|
34
|
+
*
|
|
35
|
+
* endDate: Date;
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare function MutuallyRequired(relatedField: string, validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Validator constraint that ensures at least one of two fields has a value
|
|
42
|
+
* Used for fields where at least one must be provided
|
|
43
|
+
*/
|
|
44
|
+
export declare class EitherRequiredConstraint implements ValidatorConstraintInterface {
|
|
45
|
+
/**
|
|
46
|
+
* Validates that at least one of the two fields has a value
|
|
47
|
+
* @param value - The value of the decorated field
|
|
48
|
+
* @param args - Validation arguments containing the related field name
|
|
49
|
+
* @returns True if at least one field has a value, false if both are empty
|
|
50
|
+
*/
|
|
51
|
+
validate(value: any, args: ValidationArguments): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Returns the default error message when validation fails
|
|
54
|
+
* @param args - Validation arguments
|
|
55
|
+
* @returns Error message string
|
|
56
|
+
*/
|
|
57
|
+
defaultMessage(args: ValidationArguments): string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Decorator that checks if at least one of two fields has a value
|
|
61
|
+
* At least one field must be provided
|
|
62
|
+
*
|
|
63
|
+
* @param relatedField - The field name that needs to be checked with the decorated field
|
|
64
|
+
* @param validationOptions - Optional class-validator validation options
|
|
65
|
+
* @returns Property decorator function
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```typescript
|
|
69
|
+
* class MyDto {
|
|
70
|
+
* @EitherRequired('email')
|
|
71
|
+
* phone: string;
|
|
72
|
+
*
|
|
73
|
+
* email: string;
|
|
74
|
+
* }
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export declare function EitherRequired(relatedField: string, validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
|