@intelact/driveup 1.4.47 → 1.4.49
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.dto.d.ts +6 -0
- package/lib/agent/agent.dto.js +51 -0
- package/lib/agent/agent.dto.js.map +1 -0
- package/lib/agent/agent.model.d.ts +13 -0
- package/lib/agent/agent.model.js +64 -0
- package/lib/agent/agent.model.js.map +1 -0
- package/lib/agent/asset.type.d.ts +5 -0
- package/lib/agent/asset.type.js +10 -0
- package/lib/agent/asset.type.js.map +1 -0
- package/lib/agent/client.model.d.ts +8 -0
- package/lib/agent/client.model.js +40 -0
- package/lib/agent/client.model.js.map +1 -0
- package/lib/agent/code.model.d.ts +12 -0
- package/lib/agent/code.model.js +51 -0
- package/lib/agent/code.model.js.map +1 -0
- package/lib/agent/earning.type.d.ts +6 -0
- package/lib/agent/earning.type.js +3 -0
- package/lib/agent/earning.type.js.map +1 -0
- package/lib/agent/index.d.ts +6 -0
- package/lib/agent/index.js +23 -0
- package/lib/agent/index.js.map +1 -0
- package/lib/alert/alert.content.d.ts +4 -0
- package/lib/alert/alert.content.js +9 -0
- package/lib/alert/alert.content.js.map +1 -0
- package/lib/alert/alert.model.d.ts +17 -0
- package/lib/alert/alert.model.js +73 -0
- package/lib/alert/alert.model.js.map +1 -0
- package/lib/alert/index.d.ts +2 -0
- package/lib/alert/index.js +19 -0
- package/lib/alert/index.js.map +1 -0
- package/lib/auth/index.d.ts +2 -0
- package/lib/auth/index.js +19 -0
- package/lib/auth/index.js.map +1 -0
- package/lib/auth/signin.dto.d.ts +6 -0
- package/lib/auth/signin.dto.js +37 -0
- package/lib/auth/signin.dto.js.map +1 -0
- package/lib/auth/signup.dto.d.ts +5 -0
- package/lib/auth/signup.dto.js +38 -0
- package/lib/auth/signup.dto.js.map +1 -0
- package/lib/bank/account.model.d.ts +9 -0
- package/lib/bank/account.model.js +63 -0
- package/lib/bank/account.model.js.map +1 -0
- package/lib/bank/index.d.ts +1 -0
- package/lib/bank/index.js +18 -0
- package/lib/bank/index.js.map +1 -0
- package/lib/bill/bill-item.model.d.ts +38 -0
- package/lib/bill/bill-item.model.js +120 -0
- package/lib/bill/bill-item.model.js.map +1 -0
- package/lib/bill/bill-item.type.d.ts +5 -0
- package/lib/bill/bill-item.type.js +10 -0
- package/lib/bill/bill-item.type.js.map +1 -0
- package/lib/bill/bill.model.d.ts +36 -0
- package/lib/bill/bill.model.js +131 -0
- package/lib/bill/bill.model.js.map +1 -0
- package/lib/bill/bill.status.d.ts +5 -0
- package/lib/bill/bill.status.js +13 -0
- package/lib/bill/bill.status.js.map +1 -0
- package/lib/bill/index.d.ts +4 -0
- package/lib/bill/index.js +21 -0
- package/lib/bill/index.js.map +1 -0
- package/lib/calendar/appointment.d.ts +89 -0
- package/lib/calendar/appointment.js +277 -0
- package/lib/calendar/appointment.js.map +1 -0
- package/lib/calendar/date.d.ts +23 -0
- package/lib/calendar/date.js +92 -0
- package/lib/calendar/date.js.map +1 -0
- package/lib/calendar/holiday.d.ts +11 -0
- package/lib/calendar/holiday.js +46 -0
- package/lib/calendar/holiday.js.map +1 -0
- package/lib/calendar/index.d.ts +6 -0
- package/lib/calendar/index.js +23 -0
- package/lib/calendar/index.js.map +1 -0
- package/lib/calendar/token.d.ts +15 -0
- package/lib/calendar/token.js +3 -0
- package/lib/calendar/token.js.map +1 -0
- package/lib/calendar/types.d.ts +19 -0
- package/lib/calendar/types.js +25 -0
- package/lib/calendar/types.js.map +1 -0
- package/lib/calendar/working.d.ts +9 -0
- package/lib/calendar/working.js +44 -0
- package/lib/calendar/working.js.map +1 -0
- package/lib/common/app-info.d.ts +8 -0
- package/lib/common/app-info.js +43 -0
- package/lib/common/app-info.js.map +1 -0
- package/lib/common/content.d.ts +21 -0
- package/lib/common/content.js +85 -0
- package/lib/common/content.js.map +1 -0
- package/lib/common/context.d.ts +6 -0
- package/lib/common/context.js +11 -0
- package/lib/common/context.js.map +1 -0
- package/lib/common/email.d.ts +4 -0
- package/lib/common/email.js +31 -0
- package/lib/common/email.js.map +1 -0
- package/lib/common/id.d.ts +3 -0
- package/lib/common/id.js +30 -0
- package/lib/common/id.js.map +1 -0
- package/lib/common/identity.d.ts +27 -0
- package/lib/common/identity.js +3 -0
- package/lib/common/identity.js.map +1 -0
- package/lib/common/index.d.ts +15 -0
- package/lib/common/index.js +32 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/language.d.ts +9 -0
- package/lib/common/language.js +29 -0
- package/lib/common/language.js.map +1 -0
- package/lib/common/phone.d.ts +4 -0
- package/lib/common/phone.js +32 -0
- package/lib/common/phone.js.map +1 -0
- package/lib/common/price.d.ts +3 -0
- package/lib/common/price.js +28 -0
- package/lib/common/price.js.map +1 -0
- package/lib/common/profile.d.ts +5 -0
- package/lib/common/profile.js +30 -0
- package/lib/common/profile.js.map +1 -0
- package/lib/common/promotion.d.ts +3 -0
- package/lib/common/promotion.js +23 -0
- package/lib/common/promotion.js.map +1 -0
- package/lib/common/search.d.ts +3 -0
- package/lib/common/search.js +24 -0
- package/lib/common/search.js.map +1 -0
- package/lib/common/social.d.ts +7 -0
- package/lib/common/social.js +42 -0
- package/lib/common/social.js.map +1 -0
- package/lib/common/sort.d.ts +7 -0
- package/lib/common/sort.js +46 -0
- package/lib/common/sort.js.map +1 -0
- package/lib/common/url.d.ts +3 -0
- package/lib/common/url.js +25 -0
- package/lib/common/url.js.map +1 -0
- package/lib/company/company-widget.model.d.ts +10 -0
- package/lib/company/company-widget.model.js +41 -0
- package/lib/company/company-widget.model.js.map +1 -0
- package/lib/company/company.model.d.ts +77 -0
- package/lib/company/company.model.js +290 -0
- package/lib/company/company.model.js.map +1 -0
- package/lib/company/dependency.model.d.ts +5 -0
- package/lib/company/dependency.model.js +32 -0
- package/lib/company/dependency.model.js.map +1 -0
- package/lib/company/index.d.ts +3 -0
- package/lib/company/index.js +20 -0
- package/lib/company/index.js.map +1 -0
- package/lib/country/country.dto.d.ts +24 -0
- package/lib/country/country.dto.js +150 -0
- package/lib/country/country.dto.js.map +1 -0
- package/lib/country/country.model.d.ts +18 -0
- package/lib/country/country.model.js +87 -0
- package/lib/country/country.model.js.map +1 -0
- package/lib/country/index.d.ts +2 -0
- package/lib/country/index.js +19 -0
- package/lib/country/index.js.map +1 -0
- package/lib/course/appointment.model.d.ts +14 -0
- package/lib/course/appointment.model.js +51 -0
- package/lib/course/appointment.model.js.map +1 -0
- package/lib/course/course.model.d.ts +41 -0
- package/lib/course/course.model.js +163 -0
- package/lib/course/course.model.js.map +1 -0
- package/lib/course/definition.model.d.ts +15 -0
- package/lib/course/definition.model.js +75 -0
- package/lib/course/definition.model.js.map +1 -0
- package/lib/course/dto.d.ts +48 -0
- package/lib/course/dto.js +235 -0
- package/lib/course/dto.js.map +1 -0
- package/lib/course/index.d.ts +6 -0
- package/lib/course/index.js +23 -0
- package/lib/course/index.js.map +1 -0
- package/lib/course/part.model.d.ts +23 -0
- package/lib/course/part.model.js +103 -0
- package/lib/course/part.model.js.map +1 -0
- package/lib/course/types.d.ts +15 -0
- package/lib/course/types.js +22 -0
- package/lib/course/types.js.map +1 -0
- package/lib/credit/credit.model.d.ts +9 -0
- package/lib/credit/credit.model.js +50 -0
- package/lib/credit/credit.model.js.map +1 -0
- package/lib/credit/index.d.ts +1 -0
- package/lib/credit/index.js +18 -0
- package/lib/credit/index.js.map +1 -0
- package/lib/currency/currency.dto.d.ts +19 -0
- package/lib/currency/currency.dto.js +123 -0
- package/lib/currency/currency.dto.js.map +1 -0
- package/lib/currency/currency.model.d.ts +11 -0
- package/lib/currency/currency.model.js +60 -0
- package/lib/currency/currency.model.js.map +1 -0
- package/lib/currency/index.d.ts +2 -0
- package/lib/currency/index.js +19 -0
- package/lib/currency/index.js.map +1 -0
- package/lib/device/device.agent.d.ts +51 -0
- package/lib/device/device.agent.js +3 -0
- package/lib/device/device.agent.js.map +1 -0
- package/lib/device/device.model.d.ts +11 -0
- package/lib/device/device.model.js +61 -0
- package/lib/device/device.model.js.map +1 -0
- package/lib/device/device.signature.d.ts +4 -0
- package/lib/device/device.signature.js +32 -0
- package/lib/device/device.signature.js.map +1 -0
- package/lib/device/index.d.ts +3 -0
- package/lib/device/index.js +20 -0
- package/lib/device/index.js.map +1 -0
- package/lib/discount/discount.dto.d.ts +4 -0
- package/lib/discount/discount.dto.js +32 -0
- package/lib/discount/discount.dto.js.map +1 -0
- package/lib/discount/discount.model.d.ts +23 -0
- package/lib/discount/discount.model.js +102 -0
- package/lib/discount/discount.model.js.map +1 -0
- package/lib/discount/index.d.ts +2 -0
- package/lib/discount/index.js +19 -0
- package/lib/discount/index.js.map +1 -0
- package/lib/driving/category/category.dto.d.ts +32 -0
- package/lib/driving/category/category.dto.js +147 -0
- package/lib/driving/category/category.dto.js.map +1 -0
- package/lib/driving/category/category.model.d.ts +35 -0
- package/lib/driving/category/category.model.js +119 -0
- package/lib/driving/category/category.model.js.map +1 -0
- package/lib/driving/category/index.d.ts +2 -0
- package/lib/driving/category/index.js +19 -0
- package/lib/driving/category/index.js.map +1 -0
- package/lib/driving/exam/exam.dto.d.ts +9 -0
- package/lib/driving/exam/exam.dto.js +42 -0
- package/lib/driving/exam/exam.dto.js.map +1 -0
- package/lib/driving/exam/exam.model.d.ts +9 -0
- package/lib/driving/exam/exam.model.js +44 -0
- package/lib/driving/exam/exam.model.js.map +1 -0
- package/lib/driving/exam/index.d.ts +2 -0
- package/lib/driving/exam/index.js +19 -0
- package/lib/driving/exam/index.js.map +1 -0
- package/lib/driving/index.d.ts +4 -0
- package/lib/driving/index.js +21 -0
- package/lib/driving/index.js.map +1 -0
- package/lib/driving/lesson/index.d.ts +5 -0
- package/lib/driving/lesson/index.js +22 -0
- package/lib/driving/lesson/index.js.map +1 -0
- package/lib/driving/lesson/skill.d.ts +14 -0
- package/lib/driving/lesson/skill.dto.d.ts +7 -0
- package/lib/driving/lesson/skill.dto.js +34 -0
- package/lib/driving/lesson/skill.dto.js.map +1 -0
- package/lib/driving/lesson/skill.js +48 -0
- package/lib/driving/lesson/skill.js.map +1 -0
- package/lib/driving/lesson/topic.d.ts +20 -0
- package/lib/driving/lesson/topic.dto.d.ts +10 -0
- package/lib/driving/lesson/topic.dto.js +59 -0
- package/lib/driving/lesson/topic.dto.js.map +1 -0
- package/lib/driving/lesson/topic.js +83 -0
- package/lib/driving/lesson/topic.js.map +1 -0
- package/lib/driving/lesson/types.d.ts +15 -0
- package/lib/driving/lesson/types.js +21 -0
- package/lib/driving/lesson/types.js.map +1 -0
- package/lib/driving/types.d.ts +9 -0
- package/lib/driving/types.js +15 -0
- package/lib/driving/types.js.map +1 -0
- package/lib/event/event.dto.d.ts +24 -0
- package/lib/event/event.dto.js +146 -0
- package/lib/event/event.dto.js.map +1 -0
- package/lib/event/event.model.d.ts +8 -0
- package/lib/event/event.model.js +49 -0
- package/lib/event/event.model.js.map +1 -0
- package/lib/event/index.d.ts +2 -0
- package/lib/event/index.js +19 -0
- package/lib/event/index.js.map +1 -0
- package/lib/expense/category.model.d.ts +18 -0
- package/lib/expense/category.model.js +80 -0
- package/lib/expense/category.model.js.map +1 -0
- package/lib/expense/expense.dto.d.ts +29 -0
- package/lib/expense/expense.dto.js +174 -0
- package/lib/expense/expense.dto.js.map +1 -0
- package/lib/expense/expense.model.d.ts +20 -0
- package/lib/expense/expense.model.js +104 -0
- package/lib/expense/expense.model.js.map +1 -0
- package/lib/expense/expense.types.d.ts +5 -0
- package/lib/expense/expense.types.js +10 -0
- package/lib/expense/expense.types.js.map +1 -0
- package/lib/expense/index.d.ts +4 -0
- package/lib/expense/index.js +21 -0
- package/lib/expense/index.js.map +1 -0
- package/lib/feedback/feedback.model.d.ts +11 -0
- package/lib/feedback/feedback.model.js +68 -0
- package/lib/feedback/feedback.model.js.map +1 -0
- package/lib/feedback/index.d.ts +1 -0
- package/lib/feedback/index.js +18 -0
- package/lib/feedback/index.js.map +1 -0
- package/lib/finance/finance.dto.d.ts +58 -0
- package/lib/finance/finance.dto.js +399 -0
- package/lib/finance/finance.dto.js.map +1 -0
- package/lib/finance/finance.model.d.ts +35 -0
- package/lib/finance/finance.model.js +146 -0
- package/lib/finance/finance.model.js.map +1 -0
- package/lib/finance/finance.type.d.ts +21 -0
- package/lib/finance/finance.type.js +21 -0
- package/lib/finance/finance.type.js.map +1 -0
- package/lib/finance/index.d.ts +3 -0
- package/lib/finance/index.js +20 -0
- package/lib/finance/index.js.map +1 -0
- package/lib/free-benefit/free-benefit.model.d.ts +7 -0
- package/lib/free-benefit/free-benefit.model.js +33 -0
- package/lib/free-benefit/free-benefit.model.js.map +1 -0
- package/lib/free-benefit/free-benefit.type.d.ts +4 -0
- package/lib/free-benefit/free-benefit.type.js +9 -0
- package/lib/free-benefit/free-benefit.type.js.map +1 -0
- package/lib/free-benefit/index.d.ts +2 -0
- package/lib/free-benefit/index.js +19 -0
- package/lib/free-benefit/index.js.map +1 -0
- package/lib/geo/address.dto.d.ts +19 -0
- package/lib/geo/address.dto.js +80 -0
- package/lib/geo/address.dto.js.map +1 -0
- package/lib/geo/address.model.d.ts +9 -0
- package/lib/geo/address.model.js +42 -0
- package/lib/geo/address.model.js.map +1 -0
- package/lib/geo/coordinate.model.d.ts +4 -0
- package/lib/geo/coordinate.model.js +41 -0
- package/lib/geo/coordinate.model.js.map +1 -0
- package/lib/geo/index.d.ts +4 -0
- package/lib/geo/index.js +21 -0
- package/lib/geo/index.js.map +1 -0
- package/lib/geo/pickup.model.d.ts +11 -0
- package/lib/geo/pickup.model.js +60 -0
- package/lib/geo/pickup.model.js.map +1 -0
- package/lib/giftcode/giftcode-group.model.d.ts +13 -0
- package/lib/giftcode/giftcode-group.model.js +63 -0
- package/lib/giftcode/giftcode-group.model.js.map +1 -0
- package/lib/giftcode/giftcode.dto.d.ts +37 -0
- package/lib/giftcode/giftcode.dto.js +156 -0
- package/lib/giftcode/giftcode.dto.js.map +1 -0
- package/lib/giftcode/giftcode.model.d.ts +19 -0
- package/lib/giftcode/giftcode.model.js +80 -0
- package/lib/giftcode/giftcode.model.js.map +1 -0
- package/lib/giftcode/index.d.ts +3 -0
- package/lib/giftcode/index.js +20 -0
- package/lib/giftcode/index.js.map +1 -0
- package/lib/handover/handover.document.d.ts +5 -0
- package/lib/handover/handover.document.js +3 -0
- package/lib/handover/handover.document.js.map +1 -0
- package/lib/handover/handover.dto.d.ts +6 -0
- package/lib/handover/handover.dto.js +45 -0
- package/lib/handover/handover.dto.js.map +1 -0
- package/lib/handover/handover.model.d.ts +14 -0
- package/lib/handover/handover.model.js +66 -0
- package/lib/handover/handover.model.js.map +1 -0
- package/lib/handover/index.d.ts +3 -0
- package/lib/handover/index.js +20 -0
- package/lib/handover/index.js.map +1 -0
- package/lib/index.d.ts +47 -0
- package/lib/index.js +64 -0
- package/lib/index.js.map +1 -0
- package/lib/instructor/index.d.ts +2 -0
- package/lib/instructor/index.js +19 -0
- package/lib/instructor/index.js.map +1 -0
- package/lib/instructor/instructor.dto.d.ts +21 -0
- package/lib/instructor/instructor.dto.js +122 -0
- package/lib/instructor/instructor.dto.js.map +1 -0
- package/lib/instructor/instructor.model.d.ts +50 -0
- package/lib/instructor/instructor.model.js +206 -0
- package/lib/instructor/instructor.model.js.map +1 -0
- package/lib/invoice/index.d.ts +4 -0
- package/lib/invoice/index.js +21 -0
- package/lib/invoice/index.js.map +1 -0
- package/lib/invoice/invoice.dto.d.ts +10 -0
- package/lib/invoice/invoice.dto.js +66 -0
- package/lib/invoice/invoice.dto.js.map +1 -0
- package/lib/invoice/invoice.model.d.ts +36 -0
- package/lib/invoice/invoice.model.js +170 -0
- package/lib/invoice/invoice.model.js.map +1 -0
- package/lib/invoice/invoice.types.d.ts +6 -0
- package/lib/invoice/invoice.types.js +11 -0
- package/lib/invoice/invoice.types.js.map +1 -0
- package/lib/invoice/item.model.d.ts +7 -0
- package/lib/invoice/item.model.js +42 -0
- package/lib/invoice/item.model.js.map +1 -0
- package/lib/item/index.d.ts +1 -0
- package/lib/item/index.js +18 -0
- package/lib/item/index.js.map +1 -0
- package/lib/item/item.model.d.ts +55 -0
- package/lib/item/item.model.js +80 -0
- package/lib/item/item.model.js.map +1 -0
- package/lib/license/index.d.ts +1 -0
- package/lib/license/index.js +18 -0
- package/lib/license/index.js.map +1 -0
- package/lib/license/license.model.d.ts +5 -0
- package/lib/license/license.model.js +41 -0
- package/lib/license/license.model.js.map +1 -0
- package/lib/link/index.d.ts +1 -0
- package/lib/link/index.js +18 -0
- package/lib/link/index.js.map +1 -0
- package/lib/link/link.model.d.ts +55 -0
- package/lib/link/link.model.js +75 -0
- package/lib/link/link.model.js.map +1 -0
- package/lib/log/index.d.ts +2 -0
- package/lib/log/index.js +19 -0
- package/lib/log/index.js.map +1 -0
- package/lib/log/log.model.d.ts +8 -0
- package/lib/log/log.model.js +42 -0
- package/lib/log/log.model.js.map +1 -0
- package/lib/log/log.type.d.ts +9 -0
- package/lib/log/log.type.js +14 -0
- package/lib/log/log.type.js.map +1 -0
- package/lib/metric/index.d.ts +1 -0
- package/lib/metric/index.js +18 -0
- package/lib/metric/index.js.map +1 -0
- package/lib/metric/metric.model.d.ts +43 -0
- package/lib/metric/metric.model.js +129 -0
- package/lib/metric/metric.model.js.map +1 -0
- package/lib/note/index.d.ts +1 -0
- package/lib/note/index.js +18 -0
- package/lib/note/index.js.map +1 -0
- package/lib/note/note.model.d.ts +9 -0
- package/lib/note/note.model.js +57 -0
- package/lib/note/note.model.js.map +1 -0
- package/lib/notification/index.d.ts +4 -0
- package/lib/notification/index.js +21 -0
- package/lib/notification/index.js.map +1 -0
- package/lib/notification/notification.channel.d.ts +6 -0
- package/lib/notification/notification.channel.js +11 -0
- package/lib/notification/notification.channel.js.map +1 -0
- package/lib/notification/notification.model.d.ts +14 -0
- package/lib/notification/notification.model.js +69 -0
- package/lib/notification/notification.model.js.map +1 -0
- package/lib/notification/preference.dto.d.ts +5 -0
- package/lib/notification/preference.dto.js +34 -0
- package/lib/notification/preference.dto.js.map +1 -0
- package/lib/notification/preference.model.d.ts +8 -0
- package/lib/notification/preference.model.js +47 -0
- package/lib/notification/preference.model.js.map +1 -0
- package/lib/payment/company-payment.model.d.ts +10 -0
- package/lib/payment/company-payment.model.js +50 -0
- package/lib/payment/company-payment.model.js.map +1 -0
- package/lib/payment/index.d.ts +5 -0
- package/lib/payment/index.js +22 -0
- package/lib/payment/index.js.map +1 -0
- package/lib/payment/payment-method.model.d.ts +20 -0
- package/lib/payment/payment-method.model.js +86 -0
- package/lib/payment/payment-method.model.js.map +1 -0
- package/lib/payment/payment.dto.d.ts +6 -0
- package/lib/payment/payment.dto.js +40 -0
- package/lib/payment/payment.dto.js.map +1 -0
- package/lib/payment/payment.model.d.ts +25 -0
- package/lib/payment/payment.model.js +108 -0
- package/lib/payment/payment.model.js.map +1 -0
- package/lib/payment/payment.types.d.ts +13 -0
- package/lib/payment/payment.types.js +20 -0
- package/lib/payment/payment.types.js.map +1 -0
- package/lib/payout/index.d.ts +2 -0
- package/lib/payout/index.js +19 -0
- package/lib/payout/index.js.map +1 -0
- package/lib/payout/payout.model.d.ts +14 -0
- package/lib/payout/payout.model.js +70 -0
- package/lib/payout/payout.model.js.map +1 -0
- package/lib/payout/payout.types.d.ts +4 -0
- package/lib/payout/payout.types.js +9 -0
- package/lib/payout/payout.types.js.map +1 -0
- package/lib/priceplan/index.d.ts +3 -0
- package/lib/priceplan/index.js +20 -0
- package/lib/priceplan/index.js.map +1 -0
- package/lib/priceplan/plan.dto.d.ts +13 -0
- package/lib/priceplan/plan.dto.js +74 -0
- package/lib/priceplan/plan.dto.js.map +1 -0
- package/lib/priceplan/plan.enum.d.ts +23 -0
- package/lib/priceplan/plan.enum.js +29 -0
- package/lib/priceplan/plan.enum.js.map +1 -0
- package/lib/priceplan/plan.model.d.ts +41 -0
- package/lib/priceplan/plan.model.js +141 -0
- package/lib/priceplan/plan.model.js.map +1 -0
- package/lib/product/index.d.ts +3 -0
- package/lib/product/index.js +20 -0
- package/lib/product/index.js.map +1 -0
- package/lib/product/product.dto.d.ts +12 -0
- package/lib/product/product.dto.js +69 -0
- package/lib/product/product.dto.js.map +1 -0
- package/lib/product/product.model.d.ts +12 -0
- package/lib/product/product.model.js +61 -0
- package/lib/product/product.model.js.map +1 -0
- package/lib/product/product.type.d.ts +4 -0
- package/lib/product/product.type.js +9 -0
- package/lib/product/product.type.js.map +1 -0
- package/lib/refund/index.d.ts +2 -0
- package/lib/refund/index.js +19 -0
- package/lib/refund/index.js.map +1 -0
- package/lib/refund/refund.dto.d.ts +4 -0
- package/lib/refund/refund.dto.js +32 -0
- package/lib/refund/refund.dto.js.map +1 -0
- package/lib/refund/refund.model.d.ts +25 -0
- package/lib/refund/refund.model.js +109 -0
- package/lib/refund/refund.model.js.map +1 -0
- package/lib/security/account.types.d.ts +8 -0
- package/lib/security/account.types.js +13 -0
- package/lib/security/account.types.js.map +1 -0
- package/lib/security/acl.d.ts +6 -0
- package/lib/security/acl.js +11 -0
- package/lib/security/acl.js.map +1 -0
- package/lib/security/index.d.ts +6 -0
- package/lib/security/index.js +23 -0
- package/lib/security/index.js.map +1 -0
- package/lib/security/permissions.d.ts +9 -0
- package/lib/security/permissions.js +14 -0
- package/lib/security/permissions.js.map +1 -0
- package/lib/security/role.dto.d.ts +4 -0
- package/lib/security/role.dto.js +24 -0
- package/lib/security/role.dto.js.map +1 -0
- package/lib/security/role.types.d.ts +41 -0
- package/lib/security/role.types.js +46 -0
- package/lib/security/role.types.js.map +1 -0
- package/lib/security/token.d.ts +30 -0
- package/lib/security/token.js +3 -0
- package/lib/security/token.js.map +1 -0
- package/lib/session/driving/index.d.ts +4 -0
- package/lib/session/driving/index.js +21 -0
- package/lib/session/driving/index.js.map +1 -0
- package/lib/session/driving/session.dto.d.ts +13 -0
- package/lib/session/driving/session.dto.js +74 -0
- package/lib/session/driving/session.dto.js.map +1 -0
- package/lib/session/driving/session.model.d.ts +16 -0
- package/lib/session/driving/session.model.js +63 -0
- package/lib/session/driving/session.model.js.map +1 -0
- package/lib/session/driving/session.skill.d.ts +5 -0
- package/lib/session/driving/session.skill.js +28 -0
- package/lib/session/driving/session.skill.js.map +1 -0
- package/lib/session/driving/session.topic.d.ts +14 -0
- package/lib/session/driving/session.topic.js +61 -0
- package/lib/session/driving/session.topic.js.map +1 -0
- package/lib/session/index.d.ts +1 -0
- package/lib/session/index.js +18 -0
- package/lib/session/index.js.map +1 -0
- package/lib/setting/index.d.ts +3 -0
- package/lib/setting/index.js +20 -0
- package/lib/setting/index.js.map +1 -0
- package/lib/setting/setting.dto.d.ts +3 -0
- package/lib/setting/setting.dto.js +25 -0
- package/lib/setting/setting.dto.js.map +1 -0
- package/lib/setting/setting.model.d.ts +10 -0
- package/lib/setting/setting.model.js +52 -0
- package/lib/setting/setting.model.js.map +1 -0
- package/lib/setting/setting.type.d.ts +7 -0
- package/lib/setting/setting.type.js +12 -0
- package/lib/setting/setting.type.js.map +1 -0
- package/lib/signature/index.d.ts +1 -0
- package/lib/signature/index.js +18 -0
- package/lib/signature/index.js.map +1 -0
- package/lib/signature/signature.model.d.ts +9 -0
- package/lib/signature/signature.model.js +44 -0
- package/lib/signature/signature.model.js.map +1 -0
- package/lib/student/index.d.ts +2 -0
- package/lib/student/index.js +19 -0
- package/lib/student/index.js.map +1 -0
- package/lib/student/student.dto.d.ts +16 -0
- package/lib/student/student.dto.js +98 -0
- package/lib/student/student.dto.js.map +1 -0
- package/lib/student/student.model.d.ts +22 -0
- package/lib/student/student.model.js +108 -0
- package/lib/student/student.model.js.map +1 -0
- package/lib/ticket/index.d.ts +3 -0
- package/lib/ticket/index.js +20 -0
- package/lib/ticket/index.js.map +1 -0
- package/lib/ticket/ticket.dto.d.ts +13 -0
- package/lib/ticket/ticket.dto.js +68 -0
- package/lib/ticket/ticket.dto.js.map +1 -0
- package/lib/ticket/ticket.enum.d.ts +5 -0
- package/lib/ticket/ticket.enum.js +10 -0
- package/lib/ticket/ticket.enum.js.map +1 -0
- package/lib/ticket/ticket.model.d.ts +11 -0
- package/lib/ticket/ticket.model.js +54 -0
- package/lib/ticket/ticket.model.js.map +1 -0
- package/lib/training/course.model.d.ts +8 -0
- package/lib/training/course.model.js +36 -0
- package/lib/training/course.model.js.map +1 -0
- package/lib/training/driving.model.d.ts +17 -0
- package/lib/training/driving.model.js +73 -0
- package/lib/training/driving.model.js.map +1 -0
- package/lib/training/index.d.ts +7 -0
- package/lib/training/index.js +24 -0
- package/lib/training/index.js.map +1 -0
- package/lib/training/request.dto.d.ts +4 -0
- package/lib/training/request.dto.js +24 -0
- package/lib/training/request.dto.js.map +1 -0
- package/lib/training/request.model.d.ts +27 -0
- package/lib/training/request.model.js +111 -0
- package/lib/training/request.model.js.map +1 -0
- package/lib/training/training.dto.d.ts +47 -0
- package/lib/training/training.dto.js +305 -0
- package/lib/training/training.dto.js.map +1 -0
- package/lib/training/training.model.d.ts +94 -0
- package/lib/training/training.model.js +319 -0
- package/lib/training/training.model.js.map +1 -0
- package/lib/training/training.types.d.ts +15 -0
- package/lib/training/training.types.js +22 -0
- package/lib/training/training.types.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/user/agent.interface.d.ts +6 -0
- package/lib/user/agent.interface.js +3 -0
- package/lib/user/agent.interface.js.map +1 -0
- package/lib/user/index.d.ts +4 -0
- package/lib/user/index.js +21 -0
- package/lib/user/index.js.map +1 -0
- package/lib/user/profile.dto.d.ts +19 -0
- package/lib/user/profile.dto.js +73 -0
- package/lib/user/profile.dto.js.map +1 -0
- package/lib/user/profile.type.d.ts +10 -0
- package/lib/user/profile.type.js +15 -0
- package/lib/user/profile.type.js.map +1 -0
- package/lib/user/user.model.d.ts +53 -0
- package/lib/user/user.model.js +200 -0
- package/lib/user/user.model.js.map +1 -0
- package/lib/utils/array.helper.d.ts +21 -0
- package/lib/utils/array.helper.js +33 -0
- package/lib/utils/array.helper.js.map +1 -0
- package/lib/utils/date.helper.d.ts +97 -0
- package/lib/utils/date.helper.js +226 -0
- package/lib/utils/date.helper.js.map +1 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/index.js +20 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/phone.helper.d.ts +9 -0
- package/lib/utils/phone.helper.js +17 -0
- package/lib/utils/phone.helper.js.map +1 -0
- package/lib/validators/compare.validator.d.ts +9 -0
- package/lib/validators/compare.validator.js +34 -0
- package/lib/validators/compare.validator.js.map +1 -0
- package/lib/validators/index.d.ts +2 -0
- package/lib/validators/index.js +19 -0
- package/lib/validators/index.js.map +1 -0
- package/lib/validators/required.validator.d.ts +21 -0
- package/lib/validators/required.validator.js +95 -0
- package/lib/validators/required.validator.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
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("./plan.dto"), exports);
|
|
18
|
+
__exportStar(require("./plan.enum"), exports);
|
|
19
|
+
__exportStar(require("./plan.model"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/priceplan/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,+CAA6B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PricePlanType, PricePlanFeature } from "./plan.enum";
|
|
2
|
+
export declare class PricePlanFilterDto {
|
|
3
|
+
active: boolean;
|
|
4
|
+
countryId: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class SystemPricePlanSubmitDto {
|
|
7
|
+
name?: string;
|
|
8
|
+
type: PricePlanType;
|
|
9
|
+
price: number;
|
|
10
|
+
startCredit: number;
|
|
11
|
+
features?: PricePlanFeature[];
|
|
12
|
+
minUsers?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.SystemPricePlanSubmitDto = exports.PricePlanFilterDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const plan_enum_1 = require("./plan.enum");
|
|
16
|
+
class PricePlanFilterDto {
|
|
17
|
+
active;
|
|
18
|
+
countryId;
|
|
19
|
+
}
|
|
20
|
+
exports.PricePlanFilterDto = PricePlanFilterDto;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
__metadata("design:type", Boolean)
|
|
24
|
+
], PricePlanFilterDto.prototype, "active", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_transformer_1.Transform)(({ value }) => +value),
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_validator_1.Min)(1),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], PricePlanFilterDto.prototype, "countryId", void 0);
|
|
32
|
+
class SystemPricePlanSubmitDto {
|
|
33
|
+
name;
|
|
34
|
+
type;
|
|
35
|
+
price;
|
|
36
|
+
startCredit;
|
|
37
|
+
features;
|
|
38
|
+
minUsers;
|
|
39
|
+
}
|
|
40
|
+
exports.SystemPricePlanSubmitDto = SystemPricePlanSubmitDto;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], SystemPricePlanSubmitDto.prototype, "name", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
48
|
+
(0, class_validator_1.IsEnum)(plan_enum_1.PricePlanType),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], SystemPricePlanSubmitDto.prototype, "type", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsNumber)(),
|
|
54
|
+
(0, class_validator_1.Min)(0),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], SystemPricePlanSubmitDto.prototype, "price", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsNumber)(),
|
|
60
|
+
(0, class_validator_1.Min)(0),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], SystemPricePlanSubmitDto.prototype, "startCredit", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsEnum)(plan_enum_1.PricePlanFeature, { each: true }),
|
|
66
|
+
__metadata("design:type", Array)
|
|
67
|
+
], SystemPricePlanSubmitDto.prototype, "features", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsNumber)(),
|
|
71
|
+
(0, class_validator_1.Min)(0),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], SystemPricePlanSubmitDto.prototype, "minUsers", void 0);
|
|
74
|
+
//# sourceMappingURL=plan.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.dto.js","sourceRoot":"","sources":["../../src/priceplan/plan.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAAgF;AAChF,2CAA8D;AAE9D,MAAa,kBAAkB;IAE9B,MAAM,CAAU;IAMhB,SAAS,CAAS;CAClB;AATD,gDASC;AAPA;IADC,IAAA,4BAAU,GAAE;;kDACG;AAMhB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC;IAChC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;qDACW;AAGnB,MAAa,wBAAwB;IAGpC,IAAI,CAAU;IAId,IAAI,CAAgB;IAKpB,KAAK,CAAS;IAKd,WAAW,CAAS;IAIpB,QAAQ,CAAsB;IAK9B,QAAQ,CAAU;CAClB;AA3BD,4DA2BC;AAxBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;;sDAC1B;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,yBAAa,CAAC;;sDACF;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;uDACO;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;6DACa;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,4BAAgB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;0DACX;AAK9B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;0DACW"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare enum PricePlanType {
|
|
2
|
+
Free = "free",
|
|
3
|
+
PayAsYouUse = "payasyouuse",
|
|
4
|
+
Subscription = "subscription",
|
|
5
|
+
Enterprise = "enterprise"
|
|
6
|
+
}
|
|
7
|
+
export declare enum PricePlanFeature {
|
|
8
|
+
NoCreditCardRequired = "priceplan.feature.noCreditCardRequired",
|
|
9
|
+
StartCreditGift = "priceplan.feature.startCreditGift",
|
|
10
|
+
UnlimetedInstructorsAndStudent = "priceplan.feature.unlimetedInstructorsAndStudent",
|
|
11
|
+
AccessToAllFeaturesAllDevices = "priceplan.feature.accessToAllFeaturesAllDevices",
|
|
12
|
+
PayOnlyForWhatYouUse = "priceplan.feature.payOnlyForWhatYouUse",
|
|
13
|
+
SimpleMonthlyBillingAndAutomatic = "priceplan.feature.simpleMonthlyBillingAndAutomatic",
|
|
14
|
+
NoLimitsOnTrainingsStudentsInstructors = "priceplan.feature.noLimitsOnTrainingsStudentsInstructors",
|
|
15
|
+
FixedMonthlyPricePerUser = "priceplan.feature.fixedMonthlyPricePerUser",
|
|
16
|
+
NoPerTrainingFees = "priceplan.feature.noPerTrainingFees",
|
|
17
|
+
CustomFixedPricePerTeam = "priceplan.feature.customFixedPricePerTeam",
|
|
18
|
+
DedicatedSupportAndOnboarding = "priceplan.feature.dedicatedSupportAndOnboarding",
|
|
19
|
+
UsageMonthlyFreeTrainings = "priceplan.usage.monthlyFreeTrainings",
|
|
20
|
+
UsageMonthlyRegistredTranings = "priceplan.usage.monthlyRegistredTranings",
|
|
21
|
+
UsageMonthlyActiveInstructors = "priceplan.usage.monthlyActiveInstructors",
|
|
22
|
+
UsageMonthlyUsedSeats = "priceplan.usage.monthlyUsedSeats"
|
|
23
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricePlanFeature = exports.PricePlanType = void 0;
|
|
4
|
+
var PricePlanType;
|
|
5
|
+
(function (PricePlanType) {
|
|
6
|
+
PricePlanType["Free"] = "free";
|
|
7
|
+
PricePlanType["PayAsYouUse"] = "payasyouuse";
|
|
8
|
+
PricePlanType["Subscription"] = "subscription";
|
|
9
|
+
PricePlanType["Enterprise"] = "enterprise";
|
|
10
|
+
})(PricePlanType || (exports.PricePlanType = PricePlanType = {}));
|
|
11
|
+
var PricePlanFeature;
|
|
12
|
+
(function (PricePlanFeature) {
|
|
13
|
+
PricePlanFeature["NoCreditCardRequired"] = "priceplan.feature.noCreditCardRequired";
|
|
14
|
+
PricePlanFeature["StartCreditGift"] = "priceplan.feature.startCreditGift";
|
|
15
|
+
PricePlanFeature["UnlimetedInstructorsAndStudent"] = "priceplan.feature.unlimetedInstructorsAndStudent";
|
|
16
|
+
PricePlanFeature["AccessToAllFeaturesAllDevices"] = "priceplan.feature.accessToAllFeaturesAllDevices";
|
|
17
|
+
PricePlanFeature["PayOnlyForWhatYouUse"] = "priceplan.feature.payOnlyForWhatYouUse";
|
|
18
|
+
PricePlanFeature["SimpleMonthlyBillingAndAutomatic"] = "priceplan.feature.simpleMonthlyBillingAndAutomatic";
|
|
19
|
+
PricePlanFeature["NoLimitsOnTrainingsStudentsInstructors"] = "priceplan.feature.noLimitsOnTrainingsStudentsInstructors";
|
|
20
|
+
PricePlanFeature["FixedMonthlyPricePerUser"] = "priceplan.feature.fixedMonthlyPricePerUser";
|
|
21
|
+
PricePlanFeature["NoPerTrainingFees"] = "priceplan.feature.noPerTrainingFees";
|
|
22
|
+
PricePlanFeature["CustomFixedPricePerTeam"] = "priceplan.feature.customFixedPricePerTeam";
|
|
23
|
+
PricePlanFeature["DedicatedSupportAndOnboarding"] = "priceplan.feature.dedicatedSupportAndOnboarding";
|
|
24
|
+
PricePlanFeature["UsageMonthlyFreeTrainings"] = "priceplan.usage.monthlyFreeTrainings";
|
|
25
|
+
PricePlanFeature["UsageMonthlyRegistredTranings"] = "priceplan.usage.monthlyRegistredTranings";
|
|
26
|
+
PricePlanFeature["UsageMonthlyActiveInstructors"] = "priceplan.usage.monthlyActiveInstructors";
|
|
27
|
+
PricePlanFeature["UsageMonthlyUsedSeats"] = "priceplan.usage.monthlyUsedSeats";
|
|
28
|
+
})(PricePlanFeature || (exports.PricePlanFeature = PricePlanFeature = {}));
|
|
29
|
+
//# sourceMappingURL=plan.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.enum.js","sourceRoot":"","sources":["../../src/priceplan/plan.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,8BAAa,CAAA;IACb,4CAA2B,CAAA;IAC3B,8CAA6B,CAAA;IAC7B,0CAAyB,CAAA;AAC1B,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,gBAgBX;AAhBD,WAAY,gBAAgB;IAC3B,mFAA+D,CAAA;IAC/D,yEAAqD,CAAA;IACrD,uGAAmF,CAAA;IACnF,qGAAiF,CAAA;IACjF,mFAA+D,CAAA;IAC/D,2GAAuF,CAAA;IACvF,uHAAmG,CAAA;IACnG,2FAAuE,CAAA;IACvE,6EAAyD,CAAA;IACzD,yFAAqE,CAAA;IACrE,qGAAiF,CAAA;IACjF,sFAAkE,CAAA;IAClE,8FAA0E,CAAA;IAC1E,8FAA0E,CAAA;IAC1E,8EAA0D,CAAA;AAC3D,CAAC,EAhBW,gBAAgB,gCAAhB,gBAAgB,QAgB3B"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PricePlanType } from './plan.enum';
|
|
2
|
+
import { Item } from '../item';
|
|
3
|
+
import { Country } from '../country';
|
|
4
|
+
export declare class PricePlan {
|
|
5
|
+
id: number;
|
|
6
|
+
country: Country;
|
|
7
|
+
type: PricePlanType;
|
|
8
|
+
name: string;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
startDate: Date;
|
|
12
|
+
endDate: Date;
|
|
13
|
+
featured: string;
|
|
14
|
+
icon: string;
|
|
15
|
+
price: number;
|
|
16
|
+
startCredit: number;
|
|
17
|
+
active: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Only for company enterprise plan
|
|
20
|
+
*/
|
|
21
|
+
maxSeats: number;
|
|
22
|
+
/**
|
|
23
|
+
* Only for company enterprise plan
|
|
24
|
+
*/
|
|
25
|
+
takenSeats: number;
|
|
26
|
+
upcoming: boolean;
|
|
27
|
+
features: Item<string>[];
|
|
28
|
+
usage: Item<string>[];
|
|
29
|
+
priceLabel: {
|
|
30
|
+
header: string;
|
|
31
|
+
prices: {
|
|
32
|
+
banner: string;
|
|
33
|
+
unit: string;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
statusBanner: {
|
|
37
|
+
label: string;
|
|
38
|
+
action: string;
|
|
39
|
+
};
|
|
40
|
+
constructor(props?: Partial<PricePlan>);
|
|
41
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
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.PricePlan = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const plan_enum_1 = require("./plan.enum");
|
|
15
|
+
const item_1 = require("../item");
|
|
16
|
+
const country_1 = require("../country");
|
|
17
|
+
class PricePlan {
|
|
18
|
+
id;
|
|
19
|
+
country;
|
|
20
|
+
type;
|
|
21
|
+
name;
|
|
22
|
+
title;
|
|
23
|
+
description;
|
|
24
|
+
startDate;
|
|
25
|
+
endDate;
|
|
26
|
+
featured;
|
|
27
|
+
icon;
|
|
28
|
+
price;
|
|
29
|
+
startCredit;
|
|
30
|
+
active;
|
|
31
|
+
/**
|
|
32
|
+
* Only for company enterprise plan
|
|
33
|
+
*/
|
|
34
|
+
maxSeats;
|
|
35
|
+
/**
|
|
36
|
+
* Only for company enterprise plan
|
|
37
|
+
*/
|
|
38
|
+
takenSeats;
|
|
39
|
+
upcoming;
|
|
40
|
+
features;
|
|
41
|
+
usage;
|
|
42
|
+
priceLabel;
|
|
43
|
+
statusBanner;
|
|
44
|
+
constructor(props) {
|
|
45
|
+
Object.assign(this, props);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.PricePlan = PricePlan;
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], PricePlan.prototype, "id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
(0, class_transformer_1.Type)(() => country_1.Country),
|
|
57
|
+
__metadata("design:type", country_1.Country)
|
|
58
|
+
], PricePlan.prototype, "country", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], PricePlan.prototype, "type", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_transformer_1.Expose)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], PricePlan.prototype, "name", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_transformer_1.Expose)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], PricePlan.prototype, "title", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], PricePlan.prototype, "description", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_transformer_1.Expose)(),
|
|
77
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
78
|
+
__metadata("design:type", Date)
|
|
79
|
+
], PricePlan.prototype, "startDate", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_transformer_1.Expose)(),
|
|
82
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
83
|
+
__metadata("design:type", Date)
|
|
84
|
+
], PricePlan.prototype, "endDate", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_transformer_1.Expose)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], PricePlan.prototype, "featured", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_transformer_1.Expose)(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], PricePlan.prototype, "icon", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_transformer_1.Expose)(),
|
|
95
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
96
|
+
__metadata("design:type", Number)
|
|
97
|
+
], PricePlan.prototype, "price", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_transformer_1.Expose)(),
|
|
100
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], PricePlan.prototype, "startCredit", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, class_transformer_1.Expose)(),
|
|
105
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
106
|
+
__metadata("design:type", Boolean)
|
|
107
|
+
], PricePlan.prototype, "active", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, class_transformer_1.Expose)(),
|
|
110
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
111
|
+
__metadata("design:type", Number)
|
|
112
|
+
], PricePlan.prototype, "maxSeats", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, class_transformer_1.Expose)(),
|
|
115
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
116
|
+
__metadata("design:type", Number)
|
|
117
|
+
], PricePlan.prototype, "takenSeats", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, class_transformer_1.Expose)(),
|
|
120
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
121
|
+
__metadata("design:type", Boolean)
|
|
122
|
+
], PricePlan.prototype, "upcoming", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, class_transformer_1.Expose)(),
|
|
125
|
+
(0, class_transformer_1.Type)(() => item_1.Item),
|
|
126
|
+
__metadata("design:type", Array)
|
|
127
|
+
], PricePlan.prototype, "features", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, class_transformer_1.Expose)(),
|
|
130
|
+
(0, class_transformer_1.Type)(() => item_1.Item),
|
|
131
|
+
__metadata("design:type", Array)
|
|
132
|
+
], PricePlan.prototype, "usage", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, class_transformer_1.Expose)(),
|
|
135
|
+
__metadata("design:type", Object)
|
|
136
|
+
], PricePlan.prototype, "priceLabel", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, class_transformer_1.Expose)(),
|
|
139
|
+
__metadata("design:type", Object)
|
|
140
|
+
], PricePlan.prototype, "statusBanner", void 0);
|
|
141
|
+
//# sourceMappingURL=plan.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.model.js","sourceRoot":"","sources":["../../src/priceplan/plan.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,2CAA4C;AAC5C,kCAA+B;AAC/B,wCAAqC;AAErC,MAAa,SAAS;IAIrB,EAAE,CAAS;IAIX,OAAO,CAAU;IAGjB,IAAI,CAAgB;IAGpB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,WAAW,CAAS;IAIpB,SAAS,CAAO;IAIhB,OAAO,CAAO;IAGd,QAAQ,CAAS;IAGjB,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,WAAW,CAAS;IAIpB,MAAM,CAAU;IAEhB;;OAEG;IAGH,QAAQ,CAAS;IAEjB;;OAEG;IAGH,UAAU,CAAS;IAInB,QAAQ,CAAU;IAIlB,QAAQ,CAAiB;IAIzB,KAAK,CAAiB;IAGtB,UAAU,CAMR;IAGF,YAAY,CAGV;IAEF,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA5FD,8BA4FC;AAxFA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qCACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAO,CAAC;8BACX,iBAAO;0CAAC;AAGjB;IADC,IAAA,0BAAM,GAAE;;uCACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;uCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;wCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;8CACW;AAIpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;4CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;0CAAC;AAGd;IADC,IAAA,0BAAM,GAAE;;2CACQ;AAGjB;IADC,IAAA,0BAAM,GAAE;;uCACI;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACL;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACC;AAIpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;yCACJ;AAOhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2CACF;AAOjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACA;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;2CACF;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;2CACQ;AAIzB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;wCACK;AAGtB;IADC,IAAA,0BAAM,GAAE;;6CAOP;AAGF;IADC,IAAA,0BAAM,GAAE;;+CAIP"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./product.dto"), exports);
|
|
18
|
+
__exportStar(require("./product.model"), exports);
|
|
19
|
+
__exportStar(require("./product.type"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/product/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,kDAAgC;AAChC,iDAA+B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DriveupProductType } from "./product.type";
|
|
2
|
+
export declare class SystemProductFilterDto {
|
|
3
|
+
countryId?: number;
|
|
4
|
+
active: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class SystemProductSubmitDto {
|
|
7
|
+
type: DriveupProductType;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
freeBenefits: number;
|
|
11
|
+
vat: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.SystemProductSubmitDto = exports.SystemProductFilterDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const product_type_1 = require("./product.type");
|
|
16
|
+
class SystemProductFilterDto {
|
|
17
|
+
countryId;
|
|
18
|
+
active;
|
|
19
|
+
}
|
|
20
|
+
exports.SystemProductFilterDto = SystemProductFilterDto;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, class_transformer_1.Transform)(({ value }) => value ? +value : undefined),
|
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
|
25
|
+
(0, class_validator_1.Min)(1),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], SystemProductFilterDto.prototype, "countryId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
__metadata("design:type", Boolean)
|
|
31
|
+
], SystemProductFilterDto.prototype, "active", void 0);
|
|
32
|
+
class SystemProductSubmitDto {
|
|
33
|
+
type;
|
|
34
|
+
name;
|
|
35
|
+
description;
|
|
36
|
+
freeBenefits;
|
|
37
|
+
vat;
|
|
38
|
+
}
|
|
39
|
+
exports.SystemProductSubmitDto = SystemProductSubmitDto;
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
42
|
+
(0, class_validator_1.IsEnum)(product_type_1.DriveupProductType),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], SystemProductSubmitDto.prototype, "type", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
47
|
+
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], SystemProductSubmitDto.prototype, "name", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], SystemProductSubmitDto.prototype, "description", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsNumber)(),
|
|
60
|
+
(0, class_validator_1.Min)(0),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], SystemProductSubmitDto.prototype, "freeBenefits", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
65
|
+
(0, class_validator_1.IsNumber)(),
|
|
66
|
+
(0, class_validator_1.Min)(0),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], SystemProductSubmitDto.prototype, "vat", void 0);
|
|
69
|
+
//# sourceMappingURL=product.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../src/product/product.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAA0F;AAC1F,iDAAoD;AAEpD,MAAa,sBAAsB;IAKlC,SAAS,CAAU;IAGnB,MAAM,CAAU;CAChB;AATD,wDASC;AAJA;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IACpD,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;yDACY;AAGnB;IADC,IAAA,4BAAU,GAAE;;sDACG;AAGjB,MAAa,sBAAsB;IAGlC,IAAI,CAAqB;IAKzB,IAAI,CAAS;IAKb,WAAW,CAAS;IAKpB,YAAY,CAAS;IAKrB,GAAG,CAAS;CACZ;AAxBD,wDAwBC;AArBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,iCAAkB,CAAC;;oDACF;AAKzB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,0BAAQ,GAAE;;oDACE;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;IACvC,IAAA,0BAAQ,GAAE;;2DACS;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;4DACc;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;mDACK"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DriveupProductType } from "./product.type";
|
|
2
|
+
export declare class Product {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
type: DriveupProductType;
|
|
7
|
+
freeBenefits: number;
|
|
8
|
+
vat: number;
|
|
9
|
+
active: boolean;
|
|
10
|
+
/************************* methods *************************/
|
|
11
|
+
constructor(init?: Partial<Product>);
|
|
12
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.Product = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const product_type_1 = require("./product.type");
|
|
15
|
+
class Product {
|
|
16
|
+
id;
|
|
17
|
+
name;
|
|
18
|
+
description;
|
|
19
|
+
type;
|
|
20
|
+
freeBenefits;
|
|
21
|
+
vat;
|
|
22
|
+
active;
|
|
23
|
+
/************************* methods *************************/
|
|
24
|
+
constructor(init) {
|
|
25
|
+
Object.assign(this, init);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.Product = Product;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], Product.prototype, "id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Product.prototype, "name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Product.prototype, "description", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Product.prototype, "type", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], Product.prototype, "freeBenefits", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], Product.prototype, "vat", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], Product.prototype, "active", void 0);
|
|
61
|
+
//# sourceMappingURL=product.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.model.js","sourceRoot":"","sources":["../../src/product/product.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,iDAAoD;AAEpD,MAAa,OAAO;IAGnB,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,WAAW,CAAS;IAGpB,IAAI,CAAqB;IAIzB,YAAY,CAAS;IAIrB,GAAG,CAAS;IAIZ,MAAM,CAAU;IAEhB,6DAA6D;IAE7D,YAAY,IAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC;CACD;AA/BD,0BA+BC;AA5BA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;qCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;4CACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;qCACgB;AAIzB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACE;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACP;AAIZ;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;uCACJ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DriveupProductType = void 0;
|
|
4
|
+
var DriveupProductType;
|
|
5
|
+
(function (DriveupProductType) {
|
|
6
|
+
DriveupProductType["DrivingTraining"] = "product.drivingTraining";
|
|
7
|
+
DriveupProductType["CourseTraining"] = "product.courseTraining";
|
|
8
|
+
})(DriveupProductType || (exports.DriveupProductType = DriveupProductType = {}));
|
|
9
|
+
//# sourceMappingURL=product.type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.type.js","sourceRoot":"","sources":["../../src/product/product.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,iEAA2C,CAAA;IAC3C,+DAAyC,CAAA;AAC1C,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./refund.dto"), exports);
|
|
18
|
+
__exportStar(require("./refund.model"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/refund/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iDAA+B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.SubmitRefundDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class SubmitRefundDto {
|
|
16
|
+
amount;
|
|
17
|
+
description;
|
|
18
|
+
}
|
|
19
|
+
exports.SubmitRefundDto = SubmitRefundDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
(0, class_validator_1.Min)(1),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], SubmitRefundDto.prototype, "amount", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_transformer_1.Transform)(({ value }) => value?.trim()),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SubmitRefundDto.prototype, "description", void 0);
|
|
32
|
+
//# sourceMappingURL=refund.dto.js.map
|