@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,151 @@
|
|
|
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.EitherRequiredConstraint = exports.MutuallyRequiredConstraint = void 0;
|
|
10
|
+
exports.MutuallyRequired = MutuallyRequired;
|
|
11
|
+
exports.EitherRequired = EitherRequired;
|
|
12
|
+
const class_validator_1 = require("class-validator");
|
|
13
|
+
/**
|
|
14
|
+
* Validator constraint that ensures two fields are both empty or both filled
|
|
15
|
+
* Used for mutually dependent fields that should be set together
|
|
16
|
+
*/
|
|
17
|
+
let MutuallyRequiredConstraint = class MutuallyRequiredConstraint {
|
|
18
|
+
/**
|
|
19
|
+
* Validates that both fields are either empty or both have values
|
|
20
|
+
* @param value - The value of the decorated field
|
|
21
|
+
* @param args - Validation arguments containing the related field name
|
|
22
|
+
* @returns True if both fields are empty or both have values, false otherwise
|
|
23
|
+
*/
|
|
24
|
+
validate(value, args) {
|
|
25
|
+
const dto = args.object;
|
|
26
|
+
const relatedField = args.constraints[0]; // field name passed in the decorator
|
|
27
|
+
const relatedValue = dto[relatedField];
|
|
28
|
+
if (!value && !relatedValue) {
|
|
29
|
+
// Both are empty: validation passes
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
if (value && relatedValue) {
|
|
33
|
+
// Both fields set: validation passes
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
// One field has a value but the other does not. validation fails
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns the default error message when validation fails
|
|
41
|
+
* @param args - Validation arguments
|
|
42
|
+
* @returns Error message string
|
|
43
|
+
*/
|
|
44
|
+
defaultMessage(args) {
|
|
45
|
+
return `${args.property} cannot be null if ${args.constraints[0]} is provided`;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.MutuallyRequiredConstraint = MutuallyRequiredConstraint;
|
|
49
|
+
exports.MutuallyRequiredConstraint = MutuallyRequiredConstraint = __decorate([
|
|
50
|
+
(0, class_validator_1.ValidatorConstraint)({
|
|
51
|
+
name: 'MutuallyRequired',
|
|
52
|
+
async: false
|
|
53
|
+
})
|
|
54
|
+
], MutuallyRequiredConstraint);
|
|
55
|
+
/**
|
|
56
|
+
* Decorator that checks if two fields are mutually empty or both with value
|
|
57
|
+
* Both fields must be either empty or filled together
|
|
58
|
+
*
|
|
59
|
+
* @param relatedField - The field name that needs to be checked with the decorated field
|
|
60
|
+
* @param validationOptions - Optional class-validator validation options
|
|
61
|
+
* @returns Property decorator function
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```typescript
|
|
65
|
+
* class MyDto {
|
|
66
|
+
* @MutuallyRequired('endDate')
|
|
67
|
+
* startDate: Date;
|
|
68
|
+
*
|
|
69
|
+
* endDate: Date;
|
|
70
|
+
* }
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
function MutuallyRequired(relatedField, validationOptions) {
|
|
74
|
+
return function (object, propertyName) {
|
|
75
|
+
(0, class_validator_1.registerDecorator)({
|
|
76
|
+
target: object.constructor,
|
|
77
|
+
propertyName: propertyName,
|
|
78
|
+
options: validationOptions,
|
|
79
|
+
constraints: [relatedField], // This should be dynamic
|
|
80
|
+
validator: MutuallyRequiredConstraint
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Validator constraint that ensures at least one of two fields has a value
|
|
86
|
+
* Used for fields where at least one must be provided
|
|
87
|
+
*/
|
|
88
|
+
let EitherRequiredConstraint = class EitherRequiredConstraint {
|
|
89
|
+
/**
|
|
90
|
+
* Validates that at least one of the two fields has a value
|
|
91
|
+
* @param value - The value of the decorated field
|
|
92
|
+
* @param args - Validation arguments containing the related field name
|
|
93
|
+
* @returns True if at least one field has a value, false if both are empty
|
|
94
|
+
*/
|
|
95
|
+
validate(value, args) {
|
|
96
|
+
const dto = args.object;
|
|
97
|
+
const relatedField = args.constraints[0]; // field name passed in the decorator
|
|
98
|
+
const relatedValue = dto[relatedField];
|
|
99
|
+
if (value || relatedValue) {
|
|
100
|
+
// One has value: validation passes
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
// Neither has value: validation fails
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Returns the default error message when validation fails
|
|
108
|
+
* @param args - Validation arguments
|
|
109
|
+
* @returns Error message string
|
|
110
|
+
*/
|
|
111
|
+
defaultMessage(args) {
|
|
112
|
+
return `${args.property} cannot be empty if ${args.constraints[0]} is also empty`;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
exports.EitherRequiredConstraint = EitherRequiredConstraint;
|
|
116
|
+
exports.EitherRequiredConstraint = EitherRequiredConstraint = __decorate([
|
|
117
|
+
(0, class_validator_1.ValidatorConstraint)({
|
|
118
|
+
name: 'EitherRequired',
|
|
119
|
+
async: false
|
|
120
|
+
})
|
|
121
|
+
], EitherRequiredConstraint);
|
|
122
|
+
/**
|
|
123
|
+
* Decorator that checks if at least one of two fields has a value
|
|
124
|
+
* At least one field must be provided
|
|
125
|
+
*
|
|
126
|
+
* @param relatedField - The field name that needs to be checked with the decorated field
|
|
127
|
+
* @param validationOptions - Optional class-validator validation options
|
|
128
|
+
* @returns Property decorator function
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```typescript
|
|
132
|
+
* class MyDto {
|
|
133
|
+
* @EitherRequired('email')
|
|
134
|
+
* phone: string;
|
|
135
|
+
*
|
|
136
|
+
* email: string;
|
|
137
|
+
* }
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
function EitherRequired(relatedField, validationOptions) {
|
|
141
|
+
return function (object, propertyName) {
|
|
142
|
+
(0, class_validator_1.registerDecorator)({
|
|
143
|
+
target: object.constructor,
|
|
144
|
+
propertyName: propertyName,
|
|
145
|
+
options: validationOptions,
|
|
146
|
+
constraints: [relatedField], // This should be dynamic
|
|
147
|
+
validator: EitherRequiredConstraint
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
//# sourceMappingURL=required.validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"required.validator.js","sourceRoot":"","sources":["../../src/utils/required.validator.ts"],"names":[],"mappings":";;;;;;;;;AAsEA,4CAaC;AA2DD,wCAaC;AA3JD,qDAMyB;AAEzB;;;GAGG;AAKI,IAAM,0BAA0B,GAAhC,MAAM,0B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Q,CAAC,KAAU,EAAE,IAAyB;QAC7C,MAAM,GAAG,GAAG,IAAI,CAAC,MAA6B,CAAC;QAC/C,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,qCAAqC;QAC/E,MAAM,YAAY,GAAG,GAAG,CAAC,YAAY,CAAC,CAAC;QAEvC,IAAI,KAAK,IAAI,YAAY,EAAE,CAAC;YAC3B,mCAAmC;YACnC,OAAO,IAAI,CAAC;QACb,CAAC;QAED,sCAAsC;QACrC,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;;OAIG;IACH,cAAc,CAAC,IAAyB;QACvC,OAAO,GAAG,IAAI,CAAC,QAAQ,uBAAuB,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,gBAAgB,CAAC;IACnF,CAAC;CACD,CAAA;AA7BY,4DAAwB;mCAAxB,wBAAwB;IAJpC,IAAA,qCAAmB,EAAC;QACpB,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,KAAK;KACZ,CAAC;GACW,wBAAwB,CA6BpC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,cAAc,CAC7B,YAAoB,EACpB,iBAAqC;IAErC,OAAO,UAAU,MAAc,EAAE,YAAoB;QACpD,IAAA,mCAAiB,EAAC;YACjB,MAAM,EAAE,MAAM,CAAC,WAAW;YAC1B,YAAY,EAAE,YAAY;YAC1B,OAAO,EAAE,iBAAiB;YAC1B,WAAW,EAAE,CAAC,YAAY,CAAC,EAAE,yBAAyB;YACtD,SAAS,EAAE,wBAAwB;SACnC,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transforms a value to an array of numbers
|
|
3
|
+
* Handles comma-separated strings, single values, and arrays
|
|
4
|
+
* Filters out NaN values
|
|
5
|
+
* @returns A class-transformer decorator
|
|
6
|
+
*/
|
|
7
|
+
export declare function ToNumberArray(): PropertyDecorator;
|
|
8
|
+
/**
|
|
9
|
+
* Transforms a value to an array of strings
|
|
10
|
+
* Handles comma-separated strings, single values, and arrays
|
|
11
|
+
* Trims and filters out empty strings
|
|
12
|
+
* @returns A class-transformer decorator
|
|
13
|
+
*/
|
|
14
|
+
export declare function ToStringArray(): PropertyDecorator;
|
|
15
|
+
/**
|
|
16
|
+
* Transforms a value to an enum type
|
|
17
|
+
* Matches by value or key (case-insensitive)
|
|
18
|
+
* @template E - The enum type
|
|
19
|
+
* @param enumType - The enum object to transform to
|
|
20
|
+
* @returns A class-transformer decorator
|
|
21
|
+
*/
|
|
22
|
+
export declare function ToEnum<E extends object>(enumType: E): PropertyDecorator;
|
|
23
|
+
/**
|
|
24
|
+
* Transforms a value to an array of enum values
|
|
25
|
+
* Matches by value or key (case-insensitive)
|
|
26
|
+
* @template E - The enum type
|
|
27
|
+
* @param enumType - The enum object to transform to
|
|
28
|
+
* @returns A class-transformer decorator
|
|
29
|
+
*/
|
|
30
|
+
export declare function ToEnumArray<E extends object>(enumType: E): PropertyDecorator;
|
|
31
|
+
/**
|
|
32
|
+
* Transforms a value to a number
|
|
33
|
+
* Returns original value if conversion results in NaN
|
|
34
|
+
* @returns A class-transformer decorator
|
|
35
|
+
*/
|
|
36
|
+
export declare function ToNumber(): PropertyDecorator;
|
|
37
|
+
/**
|
|
38
|
+
* Trims whitespace from string values
|
|
39
|
+
* Returns non-string values unchanged
|
|
40
|
+
* @returns A class-transformer decorator
|
|
41
|
+
*/
|
|
42
|
+
export declare function Trim(): PropertyDecorator;
|
|
43
|
+
/**
|
|
44
|
+
* Transforms a value to a boolean
|
|
45
|
+
* Handles string values ('true', 'false', '1', '0') and numeric values (1, 0)
|
|
46
|
+
* @returns A class-transformer decorator
|
|
47
|
+
*/
|
|
48
|
+
export declare function ToBoolean(): PropertyDecorator;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToNumberArray = ToNumberArray;
|
|
4
|
+
exports.ToStringArray = ToStringArray;
|
|
5
|
+
exports.ToEnum = ToEnum;
|
|
6
|
+
exports.ToEnumArray = ToEnumArray;
|
|
7
|
+
exports.ToNumber = ToNumber;
|
|
8
|
+
exports.Trim = Trim;
|
|
9
|
+
exports.ToBoolean = ToBoolean;
|
|
10
|
+
const class_transformer_1 = require("class-transformer");
|
|
11
|
+
/**
|
|
12
|
+
* Transforms a value to an array of numbers
|
|
13
|
+
* Handles comma-separated strings, single values, and arrays
|
|
14
|
+
* Filters out NaN values
|
|
15
|
+
* @returns A class-transformer decorator
|
|
16
|
+
*/
|
|
17
|
+
function ToNumberArray() {
|
|
18
|
+
return (0, class_transformer_1.Transform)(({ value }) => {
|
|
19
|
+
if (value === undefined || value === null)
|
|
20
|
+
return [];
|
|
21
|
+
if (typeof value === 'string') {
|
|
22
|
+
value = value.split(',');
|
|
23
|
+
}
|
|
24
|
+
if (!Array.isArray(value)) {
|
|
25
|
+
value = [value];
|
|
26
|
+
}
|
|
27
|
+
return value
|
|
28
|
+
.map((v) => Number(v))
|
|
29
|
+
.filter((v) => !isNaN(v));
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Transforms a value to an array of strings
|
|
34
|
+
* Handles comma-separated strings, single values, and arrays
|
|
35
|
+
* Trims and filters out empty strings
|
|
36
|
+
* @returns A class-transformer decorator
|
|
37
|
+
*/
|
|
38
|
+
function ToStringArray() {
|
|
39
|
+
return (0, class_transformer_1.Transform)(({ value }) => {
|
|
40
|
+
if (value === undefined || value === null)
|
|
41
|
+
return [];
|
|
42
|
+
// If comma-separated string → split
|
|
43
|
+
if (typeof value === 'string') {
|
|
44
|
+
return value
|
|
45
|
+
.split(',')
|
|
46
|
+
.map(v => v.trim())
|
|
47
|
+
.filter(v => v.length > 0);
|
|
48
|
+
}
|
|
49
|
+
// If not array → wrap into array
|
|
50
|
+
if (!Array.isArray(value)) {
|
|
51
|
+
value = [value];
|
|
52
|
+
}
|
|
53
|
+
// Normalize every element to a string
|
|
54
|
+
return value
|
|
55
|
+
.map((v) => (v != null ? String(v).trim() : ''))
|
|
56
|
+
.filter((v) => v.length > 0);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Transforms a value to an enum type
|
|
61
|
+
* Matches by value or key (case-insensitive)
|
|
62
|
+
* @template E - The enum type
|
|
63
|
+
* @param enumType - The enum object to transform to
|
|
64
|
+
* @returns A class-transformer decorator
|
|
65
|
+
*/
|
|
66
|
+
function ToEnum(enumType) {
|
|
67
|
+
return (0, class_transformer_1.Transform)(({ value }) => {
|
|
68
|
+
if (value == null)
|
|
69
|
+
return value;
|
|
70
|
+
// Normalize: trim strings
|
|
71
|
+
const normalized = typeof value === 'string'
|
|
72
|
+
? value.trim()
|
|
73
|
+
: value;
|
|
74
|
+
// Try to match enum by value or key
|
|
75
|
+
for (const key of Object.keys(enumType)) {
|
|
76
|
+
const enumValue = enumType[key];
|
|
77
|
+
// match by value
|
|
78
|
+
if (enumValue === normalized)
|
|
79
|
+
return enumValue;
|
|
80
|
+
// match by key (case-insensitive)
|
|
81
|
+
if (key.toLowerCase() === String(normalized).toLowerCase()) {
|
|
82
|
+
return enumValue;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
// Fallback: return original or throw
|
|
86
|
+
return value;
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Transforms a value to an array of enum values
|
|
91
|
+
* Matches by value or key (case-insensitive)
|
|
92
|
+
* @template E - The enum type
|
|
93
|
+
* @param enumType - The enum object to transform to
|
|
94
|
+
* @returns A class-transformer decorator
|
|
95
|
+
*/
|
|
96
|
+
function ToEnumArray(enumType) {
|
|
97
|
+
return (0, class_transformer_1.Transform)(({ value }) => {
|
|
98
|
+
if (value == null)
|
|
99
|
+
return [];
|
|
100
|
+
// Normalize to array
|
|
101
|
+
const arr = Array.isArray(value) ? value : [value];
|
|
102
|
+
const result = [];
|
|
103
|
+
for (let item of arr) {
|
|
104
|
+
if (item == null)
|
|
105
|
+
continue;
|
|
106
|
+
const normalized = typeof item === 'string' ? item.trim() : item;
|
|
107
|
+
let matched = undefined;
|
|
108
|
+
for (const key of Object.keys(enumType)) {
|
|
109
|
+
const enumValue = enumType[key];
|
|
110
|
+
// match value directly
|
|
111
|
+
if (enumValue === normalized) {
|
|
112
|
+
matched = enumValue;
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
// match by key (case-insensitive)
|
|
116
|
+
if (typeof normalized === 'string' &&
|
|
117
|
+
key.toLowerCase() === normalized.toLowerCase()) {
|
|
118
|
+
matched = enumValue;
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
if (matched === undefined) {
|
|
122
|
+
throw new Error(`validation.invalidEnumValue`);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
result.push(matched);
|
|
126
|
+
}
|
|
127
|
+
return result;
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Transforms a value to a number
|
|
132
|
+
* Returns original value if conversion results in NaN
|
|
133
|
+
* @returns A class-transformer decorator
|
|
134
|
+
*/
|
|
135
|
+
function ToNumber() {
|
|
136
|
+
return (0, class_transformer_1.Transform)(({ value }) => {
|
|
137
|
+
if (value === undefined || value === null)
|
|
138
|
+
return value;
|
|
139
|
+
const num = Number(value);
|
|
140
|
+
return isNaN(num) ? value : num;
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Trims whitespace from string values
|
|
145
|
+
* Returns non-string values unchanged
|
|
146
|
+
* @returns A class-transformer decorator
|
|
147
|
+
*/
|
|
148
|
+
function Trim() {
|
|
149
|
+
return (0, class_transformer_1.Transform)(({ value }) => {
|
|
150
|
+
if (typeof value !== 'string')
|
|
151
|
+
return value;
|
|
152
|
+
return value.trim();
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Transforms a value to a boolean
|
|
157
|
+
* Handles string values ('true', 'false', '1', '0') and numeric values (1, 0)
|
|
158
|
+
* @returns A class-transformer decorator
|
|
159
|
+
*/
|
|
160
|
+
function ToBoolean() {
|
|
161
|
+
return (0, class_transformer_1.Transform)(({ value }) => {
|
|
162
|
+
if (value === undefined || value === null)
|
|
163
|
+
return value;
|
|
164
|
+
// Already boolean
|
|
165
|
+
if (typeof value === 'boolean')
|
|
166
|
+
return value;
|
|
167
|
+
// Numeric or numeric-like string
|
|
168
|
+
if (value === 1 || value === '1')
|
|
169
|
+
return true;
|
|
170
|
+
if (value === 0 || value === '0')
|
|
171
|
+
return false;
|
|
172
|
+
// String true/false
|
|
173
|
+
if (typeof value === 'string') {
|
|
174
|
+
const v = value.trim().toLowerCase();
|
|
175
|
+
if (v === 'true')
|
|
176
|
+
return true;
|
|
177
|
+
if (v === 'false')
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
// Fallback: return original
|
|
181
|
+
return value;
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
//# sourceMappingURL=transformers.helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformers.helper.js","sourceRoot":"","sources":["../../src/utils/transformers.helper.ts"],"names":[],"mappings":";;AAQA,sCAgBC;AAQD,sCAsBC;AASD,wBAyBC;AASD,kCA2CC;AAOD,4BAMC;AAOD,oBAKC;AAOD,8BAqBC;AAjMD,yDAA8C;AAE9C;;;;;GAKG;AACH,SAAgB,aAAa;IAC5B,OAAO,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QAC9B,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;YAAE,OAAO,EAAE,CAAC;QAErD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC/B,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC;QAED,IAAI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AO,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QAC9B,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QAC5C,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC;IACrB,CAAC,CAAC,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,SAAS;IACxB,OAAO,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QAC9B,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;YAAE,OAAO,KAAK,CAAC;QAExD,kBAAkB;QAClB,IAAI,OAAO,KAAK,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QAE7C,iCAAiC;QACjC,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,GAAG;YAAE,OAAO,IAAI,CAAC;QAC9C,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,GAAG;YAAE,OAAO,KAAK,CAAC;QAE/C,oBAAoB;QACpB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAChC,MAAM,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;YACrC,IAAI,CAAC,KAAK,MAAM;gBAAE,OAAO,IAAI,CAAC;YAC9B,IAAI,CAAC,KAAK,OAAO;gBAAE,OAAO,KAAK,CAAC;QAChC,CAAC;QAED,4BAA4B;QAC5B,OAAO,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AgentPayoutStatus } from "../company";
|
|
2
|
-
export declare class AgentPayout {
|
|
3
|
-
id: number;
|
|
4
|
-
ammount: number;
|
|
5
|
-
status: AgentPayoutStatus;
|
|
6
|
-
submitDate: Date;
|
|
7
|
-
IBAN: string;
|
|
8
|
-
SWIFT: string;
|
|
9
|
-
bankName: string;
|
|
10
|
-
constructor(props?: Partial<AgentPayout>);
|
|
11
|
-
}
|
|
@@ -1,59 +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.AgentPayout = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const company_1 = require("../company");
|
|
15
|
-
class AgentPayout {
|
|
16
|
-
id;
|
|
17
|
-
ammount;
|
|
18
|
-
status;
|
|
19
|
-
submitDate;
|
|
20
|
-
IBAN;
|
|
21
|
-
SWIFT;
|
|
22
|
-
bankName;
|
|
23
|
-
constructor(props) {
|
|
24
|
-
Object.assign(this, props);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.AgentPayout = AgentPayout;
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_transformer_1.Expose)(),
|
|
30
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], AgentPayout.prototype, "id", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_transformer_1.Expose)(),
|
|
35
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], AgentPayout.prototype, "ammount", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_transformer_1.Expose)(),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], AgentPayout.prototype, "status", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_transformer_1.Expose)(),
|
|
44
|
-
(0, class_transformer_1.Type)(() => Date),
|
|
45
|
-
__metadata("design:type", Date)
|
|
46
|
-
], AgentPayout.prototype, "submitDate", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_transformer_1.Expose)(),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], AgentPayout.prototype, "IBAN", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, class_transformer_1.Expose)(),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], AgentPayout.prototype, "SWIFT", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, class_transformer_1.Expose)(),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], AgentPayout.prototype, "bankName", void 0);
|
|
59
|
-
//# sourceMappingURL=payout.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payout.model.js","sourceRoot":"","sources":["../../src/agent/payout.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,wCAA+C;AAE/C,MAAa,WAAW;IAGvB,EAAE,CAAS;IAMX,OAAO,CAAS;IAKhB,MAAM,CAAoB;IAO1B,UAAU,CAAO;IAKjB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,QAAQ,CAAS;IAIjB,YAAY,KAA4B;QACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAvCD,kCAuCC;AApCA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACR;AAMX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;4CACH;AAKhB;IADC,IAAA,0BAAM,GAAE;;2CACiB;AAO1B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;+CAAC;AAKjB;IADC,IAAA,0BAAM,GAAE;;yCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;0CACK;AAGd;IADC,IAAA,0BAAM,GAAE;;6CACQ"}
|
|
@@ -1,25 +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.BiometricKeyDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
class BiometricKeyDto {
|
|
16
|
-
key;
|
|
17
|
-
}
|
|
18
|
-
exports.BiometricKeyDto = BiometricKeyDto;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_validator_1.IsString)(),
|
|
21
|
-
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
22
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], BiometricKeyDto.prototype, "key", void 0);
|
|
25
|
-
//# sourceMappingURL=biometric.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"biometric.dto.js","sourceRoot":"","sources":["../../src/auth/biometric.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAAuD;AAEvD,MAAa,eAAe;IAK3B,GAAG,CAAS;CACZ;AAND,0CAMC;AADA;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,4BAAU,GAAE;;4CACD"}
|
package/lib/calendar/link.d.ts
DELETED
package/lib/calendar/link.js
DELETED
package/lib/calendar/link.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/calendar/link.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IACxB,KAAK,CAAS;IAEd,GAAG,CAAS;CAGZ;AAND,oCAMC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class Appointment {
|
|
2
|
-
id: number;
|
|
3
|
-
studentId: number;
|
|
4
|
-
trainingId: number;
|
|
5
|
-
title: string;
|
|
6
|
-
subtitle: string;
|
|
7
|
-
description: string;
|
|
8
|
-
startDate: Date;
|
|
9
|
-
endDate: Date;
|
|
10
|
-
imageUrl: string;
|
|
11
|
-
driving: boolean;
|
|
12
|
-
constructor(props?: Partial<Appointment>);
|
|
13
|
-
}
|
|
@@ -1,79 +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.Appointment = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
class Appointment {
|
|
15
|
-
id;
|
|
16
|
-
studentId;
|
|
17
|
-
trainingId;
|
|
18
|
-
title;
|
|
19
|
-
subtitle;
|
|
20
|
-
description;
|
|
21
|
-
startDate;
|
|
22
|
-
endDate;
|
|
23
|
-
imageUrl;
|
|
24
|
-
driving;
|
|
25
|
-
constructor(props) {
|
|
26
|
-
Object.assign(this, props);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.Appointment = Appointment;
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_transformer_1.Expose)(),
|
|
32
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], Appointment.prototype, "id", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_transformer_1.Expose)(),
|
|
37
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], Appointment.prototype, "studentId", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
43
|
-
__metadata("design:type", Number)
|
|
44
|
-
], Appointment.prototype, "trainingId", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, class_transformer_1.Expose)(),
|
|
47
|
-
(0, class_transformer_1.Type)(),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], Appointment.prototype, "title", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, class_transformer_1.Expose)(),
|
|
52
|
-
(0, class_transformer_1.Type)(),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], Appointment.prototype, "subtitle", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, class_transformer_1.Expose)(),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], Appointment.prototype, "description", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, class_transformer_1.Expose)(),
|
|
61
|
-
(0, class_transformer_1.Type)(() => Date),
|
|
62
|
-
__metadata("design:type", Date)
|
|
63
|
-
], Appointment.prototype, "startDate", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, class_transformer_1.Expose)(),
|
|
66
|
-
(0, class_transformer_1.Type)(() => Date),
|
|
67
|
-
__metadata("design:type", Date)
|
|
68
|
-
], Appointment.prototype, "endDate", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, class_transformer_1.Expose)(),
|
|
71
|
-
(0, class_transformer_1.Type)(),
|
|
72
|
-
__metadata("design:type", String)
|
|
73
|
-
], Appointment.prototype, "imageUrl", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, class_transformer_1.Expose)(),
|
|
76
|
-
(0, class_transformer_1.Type)(() => Boolean),
|
|
77
|
-
__metadata("design:type", Boolean)
|
|
78
|
-
], Appointment.prototype, "driving", void 0);
|
|
79
|
-
//# sourceMappingURL=appointment.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appointment.model.js","sourceRoot":"","sources":["../../src/common/appointment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,MAAa,WAAW;IAGvB,EAAE,CAAS;IAIX,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