@intelact/driveup 1.5.2 → 1.5.4
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/agent/agent.model.d.ts +1 -1
- package/lib/agent/agent.model.js +1 -1
- package/lib/agent/agent.model.js.map +1 -1
- package/lib/alert/alert.model.d.ts +1 -1
- package/lib/alert/alert.model.js +1 -1
- package/lib/alert/alert.model.js.map +1 -1
- package/lib/bill/bill.model.d.ts +1 -1
- package/lib/bill/bill.model.js +1 -1
- package/lib/bill/bill.model.js.map +1 -1
- package/lib/calendar/appointment.d.ts +1 -1
- package/lib/calendar/appointment.js +4 -4
- package/lib/calendar/appointment.js.map +1 -1
- package/lib/calendar/token.d.ts +1 -1
- package/lib/calendar/working.d.ts +1 -1
- package/lib/calendar/working.js +2 -2
- package/lib/calendar/working.js.map +1 -1
- package/lib/common/content.d.ts +1 -1
- package/lib/common/content.js +2 -2
- package/lib/common/content.js.map +1 -1
- package/lib/common/language.d.ts +1 -1
- package/lib/common/language.js +2 -2
- package/lib/common/language.js.map +1 -1
- package/lib/common/price.js.map +1 -1
- package/lib/company/company.model.d.ts +1 -1
- package/lib/company/company.model.js +1 -1
- package/lib/company/company.model.js.map +1 -1
- package/lib/country/country.dto.d.ts +1 -1
- package/lib/country/country.dto.js +3 -3
- package/lib/country/country.dto.js.map +1 -1
- package/lib/country/country.model.d.ts +1 -1
- package/lib/course/appointment.model.d.ts +1 -1
- package/lib/course/appointment.model.js +1 -1
- package/lib/course/appointment.model.js.map +1 -1
- package/lib/course/course.model.d.ts +1 -1
- package/lib/course/course.model.js +1 -1
- package/lib/course/course.model.js.map +1 -1
- package/lib/course/definition.model.d.ts +1 -1
- package/lib/course/dto.d.ts +1 -1
- package/lib/course/dto.js +6 -6
- package/lib/course/dto.js.map +1 -1
- package/lib/discount/discount.model.d.ts +1 -1
- package/lib/discount/discount.model.js +1 -1
- package/lib/discount/discount.model.js.map +1 -1
- package/lib/driving/category/category.dto.d.ts +1 -1
- package/lib/driving/category/category.dto.js +2 -2
- package/lib/driving/category/category.dto.js.map +1 -1
- package/lib/driving/category/category.model.d.ts +1 -1
- package/lib/driving/exam/exam.dto.d.ts +1 -1
- package/lib/driving/exam/exam.dto.js +2 -2
- package/lib/driving/exam/exam.dto.js.map +1 -1
- package/lib/driving/exam/exam.model.d.ts +1 -1
- package/lib/driving/exam/exam.model.js +1 -1
- package/lib/driving/exam/exam.model.js.map +1 -1
- package/lib/driving/lesson/skill.d.ts +1 -1
- package/lib/driving/lesson/skill.dto.d.ts +1 -1
- package/lib/driving/lesson/skill.dto.js +2 -2
- package/lib/driving/lesson/skill.dto.js.map +1 -1
- package/lib/driving/lesson/skill.js +1 -1
- package/lib/driving/lesson/skill.js.map +1 -1
- package/lib/driving/lesson/topic.d.ts +1 -1
- package/lib/driving/lesson/topic.dto.d.ts +1 -1
- package/lib/driving/lesson/topic.dto.js +2 -2
- package/lib/driving/lesson/topic.dto.js.map +1 -1
- package/lib/expense/category.model.d.ts +1 -1
- package/lib/expense/category.model.js +1 -1
- package/lib/expense/category.model.js.map +1 -1
- package/lib/expense/expense.dto.d.ts +1 -1
- package/lib/expense/expense.dto.js +5 -5
- package/lib/expense/expense.dto.js.map +1 -1
- package/lib/expense/expense.model.d.ts +1 -1
- package/lib/expense/expense.model.js +1 -1
- package/lib/expense/expense.model.js.map +1 -1
- package/lib/finance/finance.dto.d.ts +1 -1
- package/lib/finance/finance.dto.js +22 -22
- package/lib/finance/finance.dto.js.map +1 -1
- package/lib/finance/finance.model.d.ts +1 -1
- package/lib/finance/finance.model.js +1 -1
- package/lib/finance/finance.model.js.map +1 -1
- package/lib/free-benefit/free-benefit.model.d.ts +1 -1
- package/lib/free-benefit/free-benefit.model.js +1 -1
- package/lib/free-benefit/free-benefit.model.js.map +1 -1
- package/lib/index.d.ts +0 -3
- package/lib/index.js +0 -3
- package/lib/index.js.map +1 -1
- package/lib/instructor/instructor.dto.d.ts +2 -2
- package/lib/instructor/instructor.dto.js +6 -6
- package/lib/instructor/instructor.dto.js.map +1 -1
- package/lib/instructor/instructor.model.d.ts +2 -2
- package/lib/instructor/instructor.model.js +1 -1
- package/lib/instructor/instructor.model.js.map +1 -1
- package/lib/invoice/invoice.dto.d.ts +1 -1
- package/lib/invoice/invoice.dto.js +3 -3
- package/lib/invoice/invoice.dto.js.map +1 -1
- package/lib/invoice/invoice.model.d.ts +1 -1
- package/lib/invoice/invoice.model.js +1 -1
- package/lib/invoice/invoice.model.js.map +1 -1
- package/lib/link/link.model.d.ts +2 -2
- package/lib/link/link.model.js.map +1 -1
- package/lib/log/log.model.d.ts +1 -1
- package/lib/log/log.model.js +1 -1
- package/lib/log/log.model.js.map +1 -1
- package/lib/notification/notification.model.d.ts +1 -1
- package/lib/notification/notification.model.js +1 -1
- package/lib/notification/notification.model.js.map +1 -1
- package/lib/payment/company-payment.model.d.ts +1 -1
- package/lib/payment/company-payment.model.js +1 -1
- package/lib/payment/company-payment.model.js.map +1 -1
- package/lib/payment/payment.dto.d.ts +1 -1
- package/lib/payment/payment.dto.js +3 -3
- package/lib/payment/payment.dto.js.map +1 -1
- package/lib/payment/payment.model.d.ts +1 -1
- package/lib/payment/payment.model.js +1 -1
- package/lib/payment/payment.model.js.map +1 -1
- package/lib/payout/payout.model.d.ts +1 -1
- package/lib/payout/payout.model.js +1 -1
- package/lib/payout/payout.model.js.map +1 -1
- package/lib/priceplan/plan.dto.d.ts +1 -1
- package/lib/priceplan/plan.dto.js +3 -3
- package/lib/priceplan/plan.dto.js.map +1 -1
- package/lib/priceplan/plan.model.d.ts +1 -1
- package/lib/priceplan/plan.model.js +1 -1
- package/lib/priceplan/plan.model.js.map +1 -1
- package/lib/refund/refund.model.d.ts +1 -1
- package/lib/refund/refund.model.js +1 -1
- package/lib/refund/refund.model.js.map +1 -1
- package/lib/security/role.dto.d.ts +2 -2
- package/lib/security/role.dto.js +2 -2
- package/lib/security/role.dto.js.map +1 -1
- package/lib/session/driving/session.topic.d.ts +1 -1
- package/lib/session/driving/session.topic.js +1 -1
- package/lib/session/driving/session.topic.js.map +1 -1
- package/lib/setting/setting.model.d.ts +1 -1
- package/lib/setting/setting.model.js +1 -1
- package/lib/setting/setting.model.js.map +1 -1
- package/lib/student/student.model.d.ts +1 -1
- package/lib/student/student.model.js +1 -1
- package/lib/student/student.model.js.map +1 -1
- package/lib/ticket/ticket.dto.d.ts +1 -1
- package/lib/ticket/ticket.dto.js +4 -4
- package/lib/ticket/ticket.dto.js.map +1 -1
- package/lib/ticket/ticket.model.d.ts +1 -1
- package/lib/ticket/ticket.model.js +1 -1
- package/lib/ticket/ticket.model.js.map +1 -1
- package/lib/training/driving.model.d.ts +1 -1
- package/lib/training/driving.model.js +1 -1
- package/lib/training/driving.model.js.map +1 -1
- package/lib/training/request.dto.d.ts +1 -1
- package/lib/training/request.dto.js +2 -2
- package/lib/training/request.dto.js.map +1 -1
- package/lib/training/request.model.d.ts +1 -1
- package/lib/training/request.model.js +1 -1
- package/lib/training/request.model.js.map +1 -1
- package/lib/training/training.dto.d.ts +1 -1
- package/lib/training/training.dto.js +12 -12
- package/lib/training/training.dto.js.map +1 -1
- package/lib/training/training.model.d.ts +1 -1
- package/lib/training/training.model.js +6 -6
- package/lib/training/training.model.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/support.type.d.ts +2 -1
- package/lib/types/support.type.js +1 -0
- package/lib/types/support.type.js.map +1 -1
- package/lib/user/profile.dto.d.ts +1 -1
- package/lib/user/profile.dto.js +4 -4
- package/lib/user/profile.dto.js.map +1 -1
- package/lib/user/user.model.d.ts +1 -1
- package/lib/user/user.model.js +2 -2
- package/lib/user/user.model.js.map +1 -1
- package/lib/utils/date.helper.d.ts +1 -1
- package/lib/utils/date.helper.js +20 -20
- package/lib/utils/date.helper.js.map +1 -1
- package/package.json +2 -1
- package/lib/agent/asset.type.d.ts +0 -5
- package/lib/agent/asset.type.js +0 -10
- package/lib/agent/asset.type.js.map +0 -1
- package/lib/agent/earning.type.d.ts +0 -6
- package/lib/agent/earning.type.js +0 -3
- package/lib/agent/earning.type.js.map +0 -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/alert/alert.content.d.ts +0 -4
- package/lib/alert/alert.content.js +0 -9
- package/lib/alert/alert.content.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/bill/bill-item.type.d.ts +0 -5
- package/lib/bill/bill-item.type.js +0 -10
- package/lib/bill/bill-item.type.js.map +0 -1
- package/lib/bill/bill.status.d.ts +0 -5
- package/lib/bill/bill.status.js +0 -13
- package/lib/bill/bill.status.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/calendar/types.d.ts +0 -19
- package/lib/calendar/types.js +0 -25
- package/lib/calendar/types.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/context.d.ts +0 -6
- package/lib/common/context.js +0 -11
- package/lib/common/context.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.d.ts +0 -8
- package/lib/company/event.model.js +0 -49
- 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 +0 -52
- 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/course/types.d.ts +0 -15
- package/lib/course/types.js +0 -22
- package/lib/course/types.js.map +0 -1
- package/lib/driving/lesson/types.d.ts +0 -15
- package/lib/driving/lesson/types.js +0 -21
- package/lib/driving/lesson/types.js.map +0 -1
- package/lib/driving/types.d.ts +0 -9
- package/lib/driving/types.js +0 -15
- package/lib/driving/types.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/event/event.dto.d.ts +0 -24
- package/lib/event/event.dto.js +0 -142
- package/lib/event/event.dto.js.map +0 -1
- package/lib/event/event.model.d.ts +0 -8
- package/lib/event/event.model.js +0 -49
- package/lib/event/event.model.js.map +0 -1
- package/lib/event/index.d.ts +0 -2
- package/lib/event/index.js +0 -19
- package/lib/event/index.js.map +0 -1
- package/lib/expense/expense.types.d.ts +0 -5
- package/lib/expense/expense.types.js +0 -10
- package/lib/expense/expense.types.js.map +0 -1
- package/lib/finance/finance.type.d.ts +0 -21
- package/lib/finance/finance.type.js +0 -21
- package/lib/finance/finance.type.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/free-benefit/free-benefit.type.d.ts +0 -4
- package/lib/free-benefit/free-benefit.type.js +0 -9
- package/lib/free-benefit/free-benefit.type.js.map +0 -1
- package/lib/handover/handover.document.d.ts +0 -5
- package/lib/handover/handover.document.js +0 -3
- package/lib/handover/handover.document.js.map +0 -1
- package/lib/invoice/invoice.types.d.ts +0 -6
- package/lib/invoice/invoice.types.js +0 -11
- package/lib/invoice/invoice.types.js.map +0 -1
- package/lib/language/index.d.ts +0 -1
- package/lib/language/index.js +0 -18
- 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/log/log.type.d.ts +0 -9
- package/lib/log/log.type.js +0 -14
- package/lib/log/log.type.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.channel.d.ts +0 -6
- package/lib/notification/notification.channel.js +0 -11
- package/lib/notification/notification.channel.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/payment/payment.types.d.ts +0 -13
- package/lib/payment/payment.types.js +0 -20
- package/lib/payment/payment.types.js.map +0 -1
- package/lib/payout/payout.types.d.ts +0 -4
- package/lib/payout/payout.types.js +0 -9
- package/lib/payout/payout.types.js.map +0 -1
- package/lib/priceplan/plan.enum.d.ts +0 -23
- package/lib/priceplan/plan.enum.js +0 -29
- package/lib/priceplan/plan.enum.js.map +0 -1
- package/lib/product/index.d.ts +0 -3
- package/lib/product/index.js +0 -20
- package/lib/product/index.js.map +0 -1
- package/lib/product/product.dto.d.ts +0 -12
- package/lib/product/product.dto.js +0 -69
- package/lib/product/product.dto.js.map +0 -1
- package/lib/product/product.model.d.ts +0 -12
- package/lib/product/product.model.js +0 -61
- package/lib/product/product.model.js.map +0 -1
- package/lib/product/product.type.d.ts +0 -4
- package/lib/product/product.type.js +0 -9
- package/lib/product/product.type.js.map +0 -1
- package/lib/public/user-agent.interface.d.ts +0 -6
- package/lib/public/user-agent.interface.js +0 -3
- package/lib/public/user-agent.interface.js.map +0 -1
- package/lib/security/account.types.d.ts +0 -8
- package/lib/security/account.types.js +0 -13
- package/lib/security/account.types.js.map +0 -1
- package/lib/security/acl.d.ts +0 -6
- package/lib/security/acl.js +0 -11
- package/lib/security/acl.js.map +0 -1
- package/lib/security/permissions.d.ts +0 -9
- package/lib/security/permissions.js +0 -14
- package/lib/security/permissions.js.map +0 -1
- package/lib/security/role.types.d.ts +0 -41
- package/lib/security/role.types.js +0 -46
- package/lib/security/role.types.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 +0 -3
- 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/setting/setting.type.d.ts +0 -7
- package/lib/setting/setting.type.js +0 -12
- package/lib/setting/setting.type.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/ticket/ticket.enum.d.ts +0 -5
- package/lib/ticket/ticket.enum.js +0 -10
- package/lib/ticket/ticket.enum.js.map +0 -1
- package/lib/training/training.types.d.ts +0 -15
- package/lib/training/training.types.js +0 -22
- package/lib/training/training.types.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/profile.type.d.ts +0 -10
- package/lib/user/profile.type.js +0 -15
- package/lib/user/profile.type.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/validators/compare.validator.d.ts +0 -9
- package/lib/validators/compare.validator.js +0 -34
- package/lib/validators/compare.validator.js.map +0 -1
- package/lib/validators/index.d.ts +0 -2
- package/lib/validators/index.js +0 -19
- package/lib/validators/index.js.map +0 -1
- package/lib/validators/required.validator.d.ts +0 -21
- package/lib/validators/required.validator.js +0 -95
- package/lib/validators/required.validator.js.map +0 -1
|
@@ -1,31 +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.UserNotificationPreference = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
class UserNotificationPreference {
|
|
15
|
-
id;
|
|
16
|
-
keyword;
|
|
17
|
-
constructor(props) {
|
|
18
|
-
Object.assign(this, props);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.UserNotificationPreference = UserNotificationPreference;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_transformer_1.Expose)(),
|
|
24
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], UserNotificationPreference.prototype, "id", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_transformer_1.Expose)(),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], UserNotificationPreference.prototype, "keyword", void 0);
|
|
31
|
-
//# sourceMappingURL=notification-preference.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notification-preference.model.js","sourceRoot":"","sources":["../../../src/user/notification/notification-preference.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,MAAa,0BAA0B;IAGtC,EAAE,CAAS;IAGX,OAAO,CAAS;IAIhB,YAAY,KAA2C;QACtD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAbD,gEAaC;AAVA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sDACR;AAGX;IADC,IAAA,0BAAM,GAAE;;2DACO"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationContext = exports.NotificationType = void 0;
|
|
4
|
-
var NotificationType;
|
|
5
|
-
(function (NotificationType) {
|
|
6
|
-
NotificationType["Payment"] = "PAYMENT";
|
|
7
|
-
NotificationType["Session"] = "SESSION";
|
|
8
|
-
NotificationType["Exam"] = "EXAM";
|
|
9
|
-
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
10
|
-
var NotificationContext;
|
|
11
|
-
(function (NotificationContext) {
|
|
12
|
-
NotificationContext["Info"] = "INFO";
|
|
13
|
-
NotificationContext["Error"] = "ERROR";
|
|
14
|
-
NotificationContext["Warning"] = "WARNING";
|
|
15
|
-
NotificationContext["Success"] = "SUCCESS";
|
|
16
|
-
})(NotificationContext || (exports.NotificationContext = NotificationContext = {}));
|
|
17
|
-
//# sourceMappingURL=notification.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notification.enum.js","sourceRoot":"","sources":["../../../src/user/notification/notification.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,iCAAa,CAAA;AACd,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAED,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC9B,oCAAa,CAAA;IACb,sCAAe,CAAA;IACf,0CAAmB,CAAA;IACnB,0CAAmB,CAAA;AACpB,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NotificationContext, NotificationType } from "./notification.enum";
|
|
2
|
-
export declare class UserNotification {
|
|
3
|
-
id: number;
|
|
4
|
-
message: string;
|
|
5
|
-
context: NotificationContext;
|
|
6
|
-
type: NotificationType;
|
|
7
|
-
seen: boolean;
|
|
8
|
-
link: string;
|
|
9
|
-
constructor(props?: Partial<UserNotification>);
|
|
10
|
-
}
|
|
@@ -1,53 +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.UserNotification = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const notification_enum_1 = require("./notification.enum");
|
|
15
|
-
class UserNotification {
|
|
16
|
-
id;
|
|
17
|
-
message;
|
|
18
|
-
context;
|
|
19
|
-
type;
|
|
20
|
-
seen;
|
|
21
|
-
link;
|
|
22
|
-
constructor(props) {
|
|
23
|
-
Object.assign(this, props);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.UserNotification = UserNotification;
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_transformer_1.Expose)(),
|
|
29
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
30
|
-
__metadata("design:type", Number)
|
|
31
|
-
], UserNotification.prototype, "id", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_transformer_1.Expose)(),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], UserNotification.prototype, "message", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_transformer_1.Expose)(),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], UserNotification.prototype, "context", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], UserNotification.prototype, "type", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, class_transformer_1.Expose)(),
|
|
46
|
-
(0, class_transformer_1.Type)(() => Boolean),
|
|
47
|
-
__metadata("design:type", Boolean)
|
|
48
|
-
], UserNotification.prototype, "seen", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, class_transformer_1.Expose)(),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], UserNotification.prototype, "link", void 0);
|
|
53
|
-
//# sourceMappingURL=notification.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notification.model.js","sourceRoot":"","sources":["../../../src/user/notification/notification.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,2DAA4E;AAE5E,MAAa,gBAAgB;IAG5B,EAAE,CAAS;IAGX,OAAO,CAAS;IAGhB,OAAO,CAAsB;IAG7B,IAAI,CAAmB;IAIvB,IAAI,CAAU;IAGd,IAAI,CAAS;IAIb,YAAY,KAAiC;QAC5C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA1BD,4CA0BC;AAvBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;4CACR;AAGX;IADC,IAAA,0BAAM,GAAE;;iDACO;AAGhB;IADC,IAAA,0BAAM,GAAE;;iDACoB;AAG7B;IADC,IAAA,0BAAM,GAAE;;8CACc;AAIvB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;8CACN;AAGd;IADC,IAAA,0BAAM,GAAE;;8CACI"}
|
package/lib/user/phone.dto.d.ts
DELETED
package/lib/user/phone.dto.js
DELETED
|
@@ -1,32 +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.PhoneVerifyDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
class PhoneVerifyDto {
|
|
16
|
-
phone;
|
|
17
|
-
otp;
|
|
18
|
-
}
|
|
19
|
-
exports.PhoneVerifyDto = PhoneVerifyDto;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsString)(),
|
|
22
|
-
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
23
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], PhoneVerifyDto.prototype, "phone", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsString)(),
|
|
28
|
-
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
29
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], PhoneVerifyDto.prototype, "otp", void 0);
|
|
32
|
-
//# sourceMappingURL=phone.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phone.dto.js","sourceRoot":"","sources":["../../src/user/phone.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAAuD;AAEvD,MAAa,cAAc;IAI1B,KAAK,CAAS;IAKd,GAAG,CAAS;CACZ;AAVD,wCAUC;AANA;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,4BAAU,GAAE;;6CACC;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,4BAAU,GAAE;;2CACD"}
|
package/lib/user/profile.type.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProfileType = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Driveup user profile types
|
|
6
|
-
*
|
|
7
|
-
* @copyright Intelact Ltd.
|
|
8
|
-
*/
|
|
9
|
-
var ProfileType;
|
|
10
|
-
(function (ProfileType) {
|
|
11
|
-
ProfileType["Student"] = "student";
|
|
12
|
-
ProfileType["Company"] = "company";
|
|
13
|
-
ProfileType["Agent"] = "agent";
|
|
14
|
-
})(ProfileType || (exports.ProfileType = ProfileType = {}));
|
|
15
|
-
//# sourceMappingURL=profile.type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profile.type.js","sourceRoot":"","sources":["../../src/user/profile.type.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,IAAY,WAIX;AAJD,WAAY,WAAW;IACtB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AAChB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
|
package/lib/user/sign.dto.d.ts
DELETED
package/lib/user/sign.dto.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SignupDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
class SignupDto {
|
|
16
|
-
phone;
|
|
17
|
-
otp;
|
|
18
|
-
countryId;
|
|
19
|
-
}
|
|
20
|
-
exports.SignupDto = SignupDto;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
-
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], SignupDto.prototype, "phone", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsString)(),
|
|
29
|
-
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
30
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], SignupDto.prototype, "otp", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
-
(0, class_validator_1.IsNumber)(),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], SignupDto.prototype, "countryId", void 0);
|
|
38
|
-
//# sourceMappingURL=sign.dto.js.map
|
package/lib/user/sign.dto.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sign.dto.js","sourceRoot":"","sources":["../../src/user/sign.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,yDAA8C;AAE9C,MAAa,SAAS;IAKrB,KAAK,CAAS;IAKd,GAAG,CAAS;IAIZ,SAAS,CAAS;CAClB;AAfD,8BAeC;AAVA;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,4BAAU,GAAE;;wCACC;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,4BAAU,GAAE;;sCACD;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACO"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UserDevice = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
class UserDevice {
|
|
15
|
-
id;
|
|
16
|
-
type;
|
|
17
|
-
name;
|
|
18
|
-
biometricKey;
|
|
19
|
-
description;
|
|
20
|
-
constructor(props) {
|
|
21
|
-
Object.assign(this, props);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.UserDevice = UserDevice;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_transformer_1.Expose)(),
|
|
27
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
|
-
], UserDevice.prototype, "id", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_transformer_1.Expose)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], UserDevice.prototype, "type", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, class_transformer_1.Expose)(),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], UserDevice.prototype, "name", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_transformer_1.Expose)(),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], UserDevice.prototype, "biometricKey", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_transformer_1.Expose)(),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], UserDevice.prototype, "description", void 0);
|
|
46
|
-
//# sourceMappingURL=user.device.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.device.model.js","sourceRoot":"","sources":["../../src/user/user.device.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,MAAa,UAAU;IAItB,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,YAAY,CAAS;IAGrB,WAAW,CAAS;IAIpB,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAvBD,gCAuBC;AAnBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;wCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;wCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;gDACY;AAGrB;IADC,IAAA,0BAAM,GAAE;;+CACW"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,34 +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
|
-
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, if it's not there the args will be treated as the startDate and we won't have access to the object
|
|
18
|
-
validate(startDate, args) {
|
|
19
|
-
const dto = args.object;
|
|
20
|
-
// no validation is performed if either is not provided
|
|
21
|
-
if (!luxon_1.DateTime.fromJSDate(dto.startDate).isValid ||
|
|
22
|
-
!luxon_1.DateTime.fromJSDate(dto.endDate).isValid)
|
|
23
|
-
return true;
|
|
24
|
-
return dto.startDate < dto.endDate;
|
|
25
|
-
}
|
|
26
|
-
defaultMessage(args) {
|
|
27
|
-
return 'start date cannot be greater than end date';
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.CompareWithEndDate = CompareWithEndDate;
|
|
31
|
-
exports.CompareWithEndDate = CompareWithEndDate = __decorate([
|
|
32
|
-
(0, class_validator_1.ValidatorConstraint)({ name: 'CompareWithEndDate', async: false })
|
|
33
|
-
], CompareWithEndDate);
|
|
34
|
-
//# sourceMappingURL=compare.validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compare.validator.js","sourceRoot":"","sources":["../../src/validators/compare.validator.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qDAAyG;AACzG,iCAAiC;AAGjC;;;GAGG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC9B,oJAAoJ;IACpJ,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;AAlBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,qCAAmB,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;GACrD,kBAAkB,CAkB9B"}
|
package/lib/validators/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./compare.validator"), exports);
|
|
18
|
-
__exportStar(require("./required.validator"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,uDAAqC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from "class-validator";
|
|
2
|
-
export declare class MutuallyRequiredConstraint implements ValidatorConstraintInterface {
|
|
3
|
-
validate(value: any, args: ValidationArguments): boolean;
|
|
4
|
-
defaultMessage(args: ValidationArguments): string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Checks if the two fields are mutually empty or with value.
|
|
8
|
-
*
|
|
9
|
-
* @param relatedField the field name that needs to be checked with the field the decorator has been applied to
|
|
10
|
-
*/
|
|
11
|
-
export declare function MutuallyRequired(relatedField: string, validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
|
|
12
|
-
export declare class EitherRequiredConstraint implements ValidatorConstraintInterface {
|
|
13
|
-
validate(value: any, args: ValidationArguments): boolean;
|
|
14
|
-
defaultMessage(args: ValidationArguments): string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Checks if the two fields are mutually empty or with value.
|
|
18
|
-
*
|
|
19
|
-
* @param relatedField the field name that needs to be checked with the field the decorator has been applied to
|
|
20
|
-
*/
|
|
21
|
-
export declare function EitherRequired(relatedField: string, validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
|
|
@@ -1,95 +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
|
-
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
|
-
let MutuallyRequiredConstraint = class MutuallyRequiredConstraint {
|
|
14
|
-
validate(value, args) {
|
|
15
|
-
const dto = args.object;
|
|
16
|
-
const relatedField = args.constraints[0]; // field name passed in the decorator
|
|
17
|
-
const relatedValue = dto[relatedField];
|
|
18
|
-
if (!value && !relatedValue) {
|
|
19
|
-
// Both are empty: validation passes
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
if (value && relatedValue) {
|
|
23
|
-
// Both fields set: validation passes
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
// One field has a value but the other does not. validation fails
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
defaultMessage(args) {
|
|
30
|
-
return `${args.property} cannot be null if ${args.constraints[0]} is provided`;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.MutuallyRequiredConstraint = MutuallyRequiredConstraint;
|
|
34
|
-
exports.MutuallyRequiredConstraint = MutuallyRequiredConstraint = __decorate([
|
|
35
|
-
(0, class_validator_1.ValidatorConstraint)({
|
|
36
|
-
name: 'MutuallyRequired',
|
|
37
|
-
async: false
|
|
38
|
-
})
|
|
39
|
-
], MutuallyRequiredConstraint);
|
|
40
|
-
/**
|
|
41
|
-
* Checks if the two fields are mutually empty or with value.
|
|
42
|
-
*
|
|
43
|
-
* @param relatedField the field name that needs to be checked with the field the decorator has been applied to
|
|
44
|
-
*/
|
|
45
|
-
function MutuallyRequired(relatedField, validationOptions) {
|
|
46
|
-
return function (object, propertyName) {
|
|
47
|
-
(0, class_validator_1.registerDecorator)({
|
|
48
|
-
target: object.constructor,
|
|
49
|
-
propertyName: propertyName,
|
|
50
|
-
options: validationOptions,
|
|
51
|
-
constraints: [relatedField], // This should be dynamic
|
|
52
|
-
validator: MutuallyRequiredConstraint
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
let EitherRequiredConstraint = class EitherRequiredConstraint {
|
|
57
|
-
validate(value, args) {
|
|
58
|
-
const dto = args.object;
|
|
59
|
-
const relatedField = args.constraints[0]; // field name passed in the decorator
|
|
60
|
-
const relatedValue = dto[relatedField];
|
|
61
|
-
if (value || relatedValue) {
|
|
62
|
-
// One has value: validation passes
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
// Neither has value: validation fails
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
defaultMessage(args) {
|
|
69
|
-
return `${args.property} cannot be empty if ${args.constraints[0]} is also empty`;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
exports.EitherRequiredConstraint = EitherRequiredConstraint;
|
|
73
|
-
exports.EitherRequiredConstraint = EitherRequiredConstraint = __decorate([
|
|
74
|
-
(0, class_validator_1.ValidatorConstraint)({
|
|
75
|
-
name: 'EitherRequired',
|
|
76
|
-
async: false
|
|
77
|
-
})
|
|
78
|
-
], EitherRequiredConstraint);
|
|
79
|
-
/**
|
|
80
|
-
* Checks if the two fields are mutually empty or with value.
|
|
81
|
-
*
|
|
82
|
-
* @param relatedField the field name that needs to be checked with the field the decorator has been applied to
|
|
83
|
-
*/
|
|
84
|
-
function EitherRequired(relatedField, validationOptions) {
|
|
85
|
-
return function (object, propertyName) {
|
|
86
|
-
(0, class_validator_1.registerDecorator)({
|
|
87
|
-
target: object.constructor,
|
|
88
|
-
propertyName: propertyName,
|
|
89
|
-
options: validationOptions,
|
|
90
|
-
constraints: [relatedField], // This should be dynamic
|
|
91
|
-
validator: EitherRequiredConstraint
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=required.validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"required.validator.js","sourceRoot":"","sources":["../../src/validators/required.validator.ts"],"names":[],"mappings":";;;;;;;;;AA0CA,4CAaC;AA+BD,wCAaC;AAnGD,qDAMyB;AAMlB,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACtC,QAAQ,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,CAAC,KAAK,IAAI,CAAC,YAAY,EAAE,CAAC;YAC7B,oCAAoC;YACpC,OAAO,IAAI,CAAC;QACb,CAAC;QAED,IAAI,KAAK,IAAI,YAAY,EAAE,CAAC;YAC3B,qCAAqC;YACrC,OAAO,IAAI,CAAC;QACb,CAAC;QAED,iEAAiE;QACjE,OAAO,KAAK,CAAC;IACd,CAAC;IAED,cAAc,CAAC,IAAyB;QACvC,OAAO,GAAG,IAAI,CAAC,QAAQ,sBAAsB,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC;IAChF,CAAC;CACD,CAAA;AAvBY,gEAA0B;qCAA1B,0BAA0B;IAJtC,IAAA,qCAAmB,EAAC;QACpB,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,KAAK;KACZ,CAAC;GACW,0BAA0B,CAuBtC;AAED;;;;GAIG;AACH,SAAgB,gBAAgB,CAC/B,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,0BAA0B;SACrC,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC;AAMM,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACpC,QAAQ,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;QACtC,OAAO,KAAK,CAAC;IACd,CAAC;IAED,cAAc,CAAC,IAAyB;QACvC,OAAO,GAAG,IAAI,CAAC,QAAQ,uBAAuB,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,gBAAgB,CAAC;IACnF,CAAC;CACD,CAAA;AAlBY,4DAAwB;mCAAxB,wBAAwB;IAJpC,IAAA,qCAAmB,EAAC;QACpB,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,KAAK;KACZ,CAAC;GACW,wBAAwB,CAkBpC;AAED;;;;GAIG;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"}
|