@intelact/driveup 1.4.48 → 1.4.50
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 +25 -0
- package/lib/student/student.model.js +121 -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,277 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Appointment = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const types_1 = require("./types");
|
|
15
|
+
const pickup_model_1 = require("../geo/pickup.model");
|
|
16
|
+
const types_2 = require("../driving/types");
|
|
17
|
+
const category_model_1 = require("../driving/category/category.model");
|
|
18
|
+
const student_model_1 = require("../student/student.model");
|
|
19
|
+
const instructor_model_1 = require("../instructor/instructor.model");
|
|
20
|
+
const session_topic_1 = require("../session/driving/session.topic");
|
|
21
|
+
const definition_model_1 = require("../course/definition.model");
|
|
22
|
+
class Appointment {
|
|
23
|
+
id;
|
|
24
|
+
trainingId;
|
|
25
|
+
/**
|
|
26
|
+
* The global identifier of the appointment. can be used to search for the appointment by this number
|
|
27
|
+
*/
|
|
28
|
+
number;
|
|
29
|
+
type;
|
|
30
|
+
student;
|
|
31
|
+
instructor;
|
|
32
|
+
title;
|
|
33
|
+
subtitle;
|
|
34
|
+
description;
|
|
35
|
+
startDate;
|
|
36
|
+
endDate;
|
|
37
|
+
/**
|
|
38
|
+
* Appointment is disabled for editing (belongs to someone else)
|
|
39
|
+
*/
|
|
40
|
+
disabled;
|
|
41
|
+
/**
|
|
42
|
+
* Canceled appointment
|
|
43
|
+
*/
|
|
44
|
+
cancelled;
|
|
45
|
+
/**
|
|
46
|
+
* All day appointment (event - holiday)
|
|
47
|
+
*/
|
|
48
|
+
allday;
|
|
49
|
+
/**
|
|
50
|
+
* Busy time slot in the calendar (driving appointment, course appointment, event/task)
|
|
51
|
+
*/
|
|
52
|
+
busy;
|
|
53
|
+
/**
|
|
54
|
+
* Disabled slot in the calendar (holiday - non working hours)
|
|
55
|
+
*/
|
|
56
|
+
disabledSlot;
|
|
57
|
+
/********** trainings **********/
|
|
58
|
+
involvedInstructors;
|
|
59
|
+
canSeeTrainingDetails;
|
|
60
|
+
hasObligationPeriod;
|
|
61
|
+
/********** driving fields **********/
|
|
62
|
+
/**
|
|
63
|
+
* Whether the appointment is a driving exam
|
|
64
|
+
*/
|
|
65
|
+
isExam;
|
|
66
|
+
/**
|
|
67
|
+
* Pickup location for the driving session
|
|
68
|
+
*/
|
|
69
|
+
pickupLocation;
|
|
70
|
+
/**
|
|
71
|
+
* Custom pickup location for the driving session
|
|
72
|
+
* If set, pickupLocation will be ignored
|
|
73
|
+
*/
|
|
74
|
+
customPickupLocation;
|
|
75
|
+
transmission;
|
|
76
|
+
drivingCategory;
|
|
77
|
+
topics;
|
|
78
|
+
/************************* score *************************/
|
|
79
|
+
/**
|
|
80
|
+
* Average score of the topics touched in this appointment
|
|
81
|
+
*/
|
|
82
|
+
score;
|
|
83
|
+
/************************* obligation period *************************/
|
|
84
|
+
hoursBeforeObligationPeriod;
|
|
85
|
+
/************************* course *************************/
|
|
86
|
+
remainingSeats;
|
|
87
|
+
/**
|
|
88
|
+
* Whether or not the student has attended the appointment
|
|
89
|
+
*/
|
|
90
|
+
attended;
|
|
91
|
+
definition;
|
|
92
|
+
courseId;
|
|
93
|
+
takenSeats;
|
|
94
|
+
presentStudents;
|
|
95
|
+
/************************* methods *************************/
|
|
96
|
+
constructor(props) {
|
|
97
|
+
Object.assign(this, props);
|
|
98
|
+
}
|
|
99
|
+
isDriving() {
|
|
100
|
+
return this.type === types_1.AppointmentType.Driving;
|
|
101
|
+
}
|
|
102
|
+
isCourse() {
|
|
103
|
+
return [types_1.AppointmentType.Fixed, types_1.AppointmentType.Flexible].includes(this.type);
|
|
104
|
+
}
|
|
105
|
+
isFixed() {
|
|
106
|
+
return this.type === types_1.AppointmentType.Fixed;
|
|
107
|
+
}
|
|
108
|
+
isFlexible() {
|
|
109
|
+
return this.type === types_1.AppointmentType.Flexible;
|
|
110
|
+
}
|
|
111
|
+
isTask() {
|
|
112
|
+
return this.type === types_1.AppointmentType.Task;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.Appointment = Appointment;
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, class_transformer_1.Expose)(),
|
|
118
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
119
|
+
__metadata("design:type", Number)
|
|
120
|
+
], Appointment.prototype, "id", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, class_transformer_1.Expose)(),
|
|
123
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
124
|
+
__metadata("design:type", Number)
|
|
125
|
+
], Appointment.prototype, "trainingId", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, class_transformer_1.Expose)(),
|
|
128
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
129
|
+
__metadata("design:type", Number)
|
|
130
|
+
], Appointment.prototype, "number", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, class_transformer_1.Expose)(),
|
|
133
|
+
__metadata("design:type", String)
|
|
134
|
+
], Appointment.prototype, "type", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, class_transformer_1.Expose)(),
|
|
137
|
+
(0, class_transformer_1.Type)(() => student_model_1.Student),
|
|
138
|
+
__metadata("design:type", student_model_1.Student)
|
|
139
|
+
], Appointment.prototype, "student", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, class_transformer_1.Expose)(),
|
|
142
|
+
(0, class_transformer_1.Type)(() => instructor_model_1.Instructor),
|
|
143
|
+
__metadata("design:type", instructor_model_1.Instructor)
|
|
144
|
+
], Appointment.prototype, "instructor", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, class_transformer_1.Expose)(),
|
|
147
|
+
(0, class_transformer_1.Type)(),
|
|
148
|
+
__metadata("design:type", String)
|
|
149
|
+
], Appointment.prototype, "title", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, class_transformer_1.Expose)(),
|
|
152
|
+
(0, class_transformer_1.Type)(),
|
|
153
|
+
__metadata("design:type", String)
|
|
154
|
+
], Appointment.prototype, "subtitle", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, class_transformer_1.Expose)(),
|
|
157
|
+
__metadata("design:type", String)
|
|
158
|
+
], Appointment.prototype, "description", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, class_transformer_1.Expose)(),
|
|
161
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
162
|
+
__metadata("design:type", Date)
|
|
163
|
+
], Appointment.prototype, "startDate", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, class_transformer_1.Expose)(),
|
|
166
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
167
|
+
__metadata("design:type", Date)
|
|
168
|
+
], Appointment.prototype, "endDate", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, class_transformer_1.Expose)(),
|
|
171
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
172
|
+
__metadata("design:type", Boolean)
|
|
173
|
+
], Appointment.prototype, "disabled", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
(0, class_transformer_1.Expose)(),
|
|
176
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
177
|
+
__metadata("design:type", Boolean)
|
|
178
|
+
], Appointment.prototype, "cancelled", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, class_transformer_1.Expose)(),
|
|
181
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
182
|
+
__metadata("design:type", Boolean)
|
|
183
|
+
], Appointment.prototype, "allday", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, class_transformer_1.Expose)(),
|
|
186
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
187
|
+
__metadata("design:type", Boolean)
|
|
188
|
+
], Appointment.prototype, "busy", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, class_transformer_1.Expose)(),
|
|
191
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
192
|
+
__metadata("design:type", Boolean)
|
|
193
|
+
], Appointment.prototype, "disabledSlot", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
(0, class_transformer_1.Expose)(),
|
|
196
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
197
|
+
__metadata("design:type", Array)
|
|
198
|
+
], Appointment.prototype, "involvedInstructors", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, class_transformer_1.Expose)(),
|
|
201
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
202
|
+
__metadata("design:type", Boolean)
|
|
203
|
+
], Appointment.prototype, "canSeeTrainingDetails", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
(0, class_transformer_1.Expose)(),
|
|
206
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
207
|
+
__metadata("design:type", Boolean)
|
|
208
|
+
], Appointment.prototype, "hasObligationPeriod", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, class_transformer_1.Expose)(),
|
|
211
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
212
|
+
__metadata("design:type", Boolean)
|
|
213
|
+
], Appointment.prototype, "isExam", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
(0, class_transformer_1.Expose)(),
|
|
216
|
+
(0, class_transformer_1.Type)(() => pickup_model_1.PickupLocation),
|
|
217
|
+
__metadata("design:type", pickup_model_1.PickupLocation)
|
|
218
|
+
], Appointment.prototype, "pickupLocation", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
(0, class_transformer_1.Expose)(),
|
|
221
|
+
__metadata("design:type", String)
|
|
222
|
+
], Appointment.prototype, "customPickupLocation", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, class_transformer_1.Expose)(),
|
|
225
|
+
__metadata("design:type", String)
|
|
226
|
+
], Appointment.prototype, "transmission", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, class_transformer_1.Expose)(),
|
|
229
|
+
(0, class_transformer_1.Type)(() => category_model_1.DrivingCategory),
|
|
230
|
+
__metadata("design:type", category_model_1.DrivingCategory)
|
|
231
|
+
], Appointment.prototype, "drivingCategory", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, class_transformer_1.Expose)(),
|
|
234
|
+
(0, class_transformer_1.Type)(() => session_topic_1.DrivingSessionTopic),
|
|
235
|
+
__metadata("design:type", Array)
|
|
236
|
+
], Appointment.prototype, "topics", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
(0, class_transformer_1.Expose)(),
|
|
239
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
240
|
+
__metadata("design:type", Number)
|
|
241
|
+
], Appointment.prototype, "score", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
(0, class_transformer_1.Expose)(),
|
|
244
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
245
|
+
__metadata("design:type", Number)
|
|
246
|
+
], Appointment.prototype, "hoursBeforeObligationPeriod", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
(0, class_transformer_1.Expose)(),
|
|
249
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
250
|
+
__metadata("design:type", Number)
|
|
251
|
+
], Appointment.prototype, "remainingSeats", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
(0, class_transformer_1.Expose)(),
|
|
254
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
255
|
+
__metadata("design:type", Boolean)
|
|
256
|
+
], Appointment.prototype, "attended", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
(0, class_transformer_1.Expose)(),
|
|
259
|
+
(0, class_transformer_1.Type)(() => definition_model_1.CoursePartDefinition),
|
|
260
|
+
__metadata("design:type", definition_model_1.CoursePartDefinition)
|
|
261
|
+
], Appointment.prototype, "definition", void 0);
|
|
262
|
+
__decorate([
|
|
263
|
+
(0, class_transformer_1.Expose)(),
|
|
264
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
265
|
+
__metadata("design:type", Number)
|
|
266
|
+
], Appointment.prototype, "courseId", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
(0, class_transformer_1.Expose)(),
|
|
269
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
270
|
+
__metadata("design:type", Number)
|
|
271
|
+
], Appointment.prototype, "takenSeats", void 0);
|
|
272
|
+
__decorate([
|
|
273
|
+
(0, class_transformer_1.Expose)(),
|
|
274
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
275
|
+
__metadata("design:type", Number)
|
|
276
|
+
], Appointment.prototype, "presentStudents", void 0);
|
|
277
|
+
//# sourceMappingURL=appointment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../src/calendar/appointment.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDA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M,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAmB,CAAC;;2CACF;AAS9B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACL;AAMd;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gEACiB;AAMpC;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mDACI;AAOvB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;6CACF;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uCAAoB,CAAC;8BACrB,uCAAoB;+CAAC;AAIjC;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACF;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACA;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oDACK"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class DateDto {
|
|
2
|
+
date: Date;
|
|
3
|
+
}
|
|
4
|
+
export declare class Period {
|
|
5
|
+
startDate: Date;
|
|
6
|
+
endDate: Date;
|
|
7
|
+
constructor(props?: Partial<Period>);
|
|
8
|
+
/**
|
|
9
|
+
* Check if this period collides with another period. the other period's startDate can be empty
|
|
10
|
+
*
|
|
11
|
+
* Throws error if any of the dates are missing (for this date or the other date)
|
|
12
|
+
* @param Period other
|
|
13
|
+
* @returns currentPeriod.startDate < otherPeriod.endDate && currentPeriod.endDate > otherPeriod.startDate
|
|
14
|
+
*/
|
|
15
|
+
collidesWith(other: Period): boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class ObligationPeriodDto {
|
|
18
|
+
obligationPeriod: number;
|
|
19
|
+
}
|
|
20
|
+
export declare class MonthYearDto {
|
|
21
|
+
month?: number;
|
|
22
|
+
year?: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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.MonthYearDto = exports.ObligationPeriodDto = exports.Period = exports.DateDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const validators_1 = require("../validators");
|
|
16
|
+
class DateDto {
|
|
17
|
+
date;
|
|
18
|
+
}
|
|
19
|
+
exports.DateDto = DateDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
(0, class_validator_1.IsDate)(),
|
|
23
|
+
__metadata("design:type", Date)
|
|
24
|
+
], DateDto.prototype, "date", void 0);
|
|
25
|
+
class Period {
|
|
26
|
+
startDate;
|
|
27
|
+
endDate;
|
|
28
|
+
constructor(props) {
|
|
29
|
+
Object.assign(this, props);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if this period collides with another period. the other period's startDate can be empty
|
|
33
|
+
*
|
|
34
|
+
* Throws error if any of the dates are missing (for this date or the other date)
|
|
35
|
+
* @param Period other
|
|
36
|
+
* @returns currentPeriod.startDate < otherPeriod.endDate && currentPeriod.endDate > otherPeriod.startDate
|
|
37
|
+
*/
|
|
38
|
+
collidesWith(other) {
|
|
39
|
+
if (!this.startDate || !this.endDate || !other.startDate || !other.endDate) {
|
|
40
|
+
throw new Error("Cannot check collision with missing dates");
|
|
41
|
+
}
|
|
42
|
+
return this.startDate < other.endDate && this.endDate > other.startDate;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.Period = Period;
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsDate)(),
|
|
48
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
49
|
+
(0, class_transformer_1.Transform)(({ value }) => value ? new Date(value.toString()) : undefined),
|
|
50
|
+
(0, class_validator_1.Validate)(validators_1.CompareWithEndDate),
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
52
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], Period.prototype, "startDate", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsDate)(),
|
|
57
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
58
|
+
(0, class_transformer_1.Transform)(({ value }) => value ? new Date(value.toString()) : undefined),
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], Period.prototype, "endDate", void 0);
|
|
63
|
+
class ObligationPeriodDto {
|
|
64
|
+
obligationPeriod;
|
|
65
|
+
}
|
|
66
|
+
exports.ObligationPeriodDto = ObligationPeriodDto;
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.Min)(0),
|
|
69
|
+
(0, class_validator_1.IsNumber)(),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], ObligationPeriodDto.prototype, "obligationPeriod", void 0);
|
|
72
|
+
class MonthYearDto {
|
|
73
|
+
month;
|
|
74
|
+
year;
|
|
75
|
+
}
|
|
76
|
+
exports.MonthYearDto = MonthYearDto;
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_transformer_1.Transform)(({ value }) => value ? Number(value) : undefined),
|
|
80
|
+
(0, class_validator_1.IsNumber)(),
|
|
81
|
+
(0, class_validator_1.Min)(1),
|
|
82
|
+
(0, class_validator_1.Max)(12),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], MonthYearDto.prototype, "month", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_validator_1.IsOptional)(),
|
|
87
|
+
(0, class_transformer_1.Transform)(({ value }) => value ? Number(value) : undefined),
|
|
88
|
+
(0, class_validator_1.IsNumber)(),
|
|
89
|
+
(0, class_validator_1.Min)(2020),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], MonthYearDto.prototype, "year", void 0);
|
|
92
|
+
//# sourceMappingURL=date.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../src/calendar/date.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,qDAA+F;AAC/F,8CAAmD;AAEnD,MAAa,OAAO;IAGnB,IAAI,CAAO;CACX;AAJD,0BAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACH,IAAI;qCAAC;AAGZ,MAAa,MAAM;IAQlB,SAAS,CAAO;IAOhB,OAAO,CAAO;IAEd,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CA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B,MAAa,YAAY;IAMxB,KAAK,CAAU;IAMf,IAAI,CAAU;CACd;AAbD,oCAaC;AAPA;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3D,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,EAAE,CAAC;;2CACO;AAMf;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3D,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,IAAI,CAAC;;0CACI"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.HolidaysDto = exports.Holiday = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const date_1 = require("./date");
|
|
16
|
+
/**
|
|
17
|
+
* Holiday Model
|
|
18
|
+
*/
|
|
19
|
+
class Holiday {
|
|
20
|
+
title;
|
|
21
|
+
period;
|
|
22
|
+
}
|
|
23
|
+
exports.Holiday = Holiday;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Holiday.prototype, "title", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsObject)(),
|
|
32
|
+
(0, class_transformer_1.Type)(() => date_1.Period),
|
|
33
|
+
(0, class_validator_1.ValidateNested)(),
|
|
34
|
+
__metadata("design:type", date_1.Period)
|
|
35
|
+
], Holiday.prototype, "period", void 0);
|
|
36
|
+
class HolidaysDto {
|
|
37
|
+
holidays;
|
|
38
|
+
}
|
|
39
|
+
exports.HolidaysDto = HolidaysDto;
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsArray)(),
|
|
42
|
+
(0, class_transformer_1.Type)(() => Holiday),
|
|
43
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
44
|
+
__metadata("design:type", Array)
|
|
45
|
+
], HolidaysDto.prototype, "holidays", void 0);
|
|
46
|
+
//# sourceMappingURL=holiday.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holiday.js","sourceRoot":"","sources":["../../src/calendar/holiday.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAAgF;AAChF,iCAAgC;AAEhC;;GAEG;AACH,MAAa,OAAO;IAInB,KAAK,CAAS;IAMd,MAAM,CAAS;CACf;AAXD,0BAWC;AAPA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;sCACC;AAMd;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAM,CAAC;IAClB,IAAA,gCAAc,GAAE;8BACT,aAAM;uCAAC;AAGhB,MAAa,WAAW;IAKvB,QAAQ,CAAY;CACpB;AAND,kCAMC;AADA;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;IACnB,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;6CACX"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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("./appointment"), exports);
|
|
18
|
+
__exportStar(require("./date"), exports);
|
|
19
|
+
__exportStar(require("./holiday"), exports);
|
|
20
|
+
__exportStar(require("./token"), exports);
|
|
21
|
+
__exportStar(require("./types"), exports);
|
|
22
|
+
__exportStar(require("./working"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/calendar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,yCAAuB;AACvB,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProfileType } from "../user/profile.type";
|
|
2
|
+
export interface ICalendarToken {
|
|
3
|
+
/**
|
|
4
|
+
* The profile ID
|
|
5
|
+
*/
|
|
6
|
+
profileId: number;
|
|
7
|
+
/**
|
|
8
|
+
* Whether or not show only "busy" title without details about the calendar appointments and events
|
|
9
|
+
*/
|
|
10
|
+
busy: 'true' | 'false';
|
|
11
|
+
/**
|
|
12
|
+
* The profile type
|
|
13
|
+
*/
|
|
14
|
+
profileType: ProfileType;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../src/calendar/token.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum AppointmentType {
|
|
2
|
+
Driving = "DRIVING",
|
|
3
|
+
Flexible = "FLEXIBLE",
|
|
4
|
+
Fixed = "FIXED",
|
|
5
|
+
Canceled = "CANCELED",
|
|
6
|
+
Task = "TASK",
|
|
7
|
+
NonWorking = "NONWORKING",
|
|
8
|
+
Holiday = "HOLIDAY",
|
|
9
|
+
OffDay = "OFFDAY"
|
|
10
|
+
}
|
|
11
|
+
export declare enum WeekDay {
|
|
12
|
+
Monday = "MONDAY",
|
|
13
|
+
Tuesday = "TUESDAY",
|
|
14
|
+
Wednesday = "WEDNESDAY",
|
|
15
|
+
Thursday = "THURSDAY",
|
|
16
|
+
Friday = "FRIDAY",
|
|
17
|
+
Saturday = "SATURDAY",
|
|
18
|
+
Sunday = "SUNDAY"
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WeekDay = exports.AppointmentType = void 0;
|
|
4
|
+
var AppointmentType;
|
|
5
|
+
(function (AppointmentType) {
|
|
6
|
+
AppointmentType["Driving"] = "DRIVING";
|
|
7
|
+
AppointmentType["Flexible"] = "FLEXIBLE";
|
|
8
|
+
AppointmentType["Fixed"] = "FIXED";
|
|
9
|
+
AppointmentType["Canceled"] = "CANCELED";
|
|
10
|
+
AppointmentType["Task"] = "TASK";
|
|
11
|
+
AppointmentType["NonWorking"] = "NONWORKING";
|
|
12
|
+
AppointmentType["Holiday"] = "HOLIDAY";
|
|
13
|
+
AppointmentType["OffDay"] = "OFFDAY";
|
|
14
|
+
})(AppointmentType || (exports.AppointmentType = AppointmentType = {}));
|
|
15
|
+
var WeekDay;
|
|
16
|
+
(function (WeekDay) {
|
|
17
|
+
WeekDay["Monday"] = "MONDAY";
|
|
18
|
+
WeekDay["Tuesday"] = "TUESDAY";
|
|
19
|
+
WeekDay["Wednesday"] = "WEDNESDAY";
|
|
20
|
+
WeekDay["Thursday"] = "THURSDAY";
|
|
21
|
+
WeekDay["Friday"] = "FRIDAY";
|
|
22
|
+
WeekDay["Saturday"] = "SATURDAY";
|
|
23
|
+
WeekDay["Sunday"] = "SUNDAY";
|
|
24
|
+
})(WeekDay || (exports.WeekDay = WeekDay = {}));
|
|
25
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/calendar/types.ts"],"names":[],"mappings":";;;AACA,IAAY,eASX;AATD,WAAY,eAAe;IAC1B,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;IACf,wCAAqB,CAAA;IACrB,gCAAa,CAAA;IACb,4CAAyB,CAAA;IACtB,sCAAmB,CAAA;IACtB,oCAAiB,CAAA;AAClB,CAAC,EATW,eAAe,+BAAf,eAAe,QAS1B;AAED,IAAY,OAQX;AARD,WAAY,OAAO;IAClB,4BAAiB,CAAA;IACjB,8BAAmB,CAAA;IACnB,kCAAuB,CAAA;IACvB,gCAAqB,CAAA;IACrB,4BAAiB,CAAA;IACjB,gCAAqB,CAAA;IACrB,4BAAiB,CAAA;AAClB,CAAC,EARW,OAAO,uBAAP,OAAO,QAQlB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.WorkingHoursDto = exports.WorkdayDefinition = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const date_1 = require("./date");
|
|
16
|
+
const types_1 = require("./types");
|
|
17
|
+
class WorkdayDefinition {
|
|
18
|
+
weekday;
|
|
19
|
+
periods;
|
|
20
|
+
}
|
|
21
|
+
exports.WorkdayDefinition = WorkdayDefinition;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
(0, class_validator_1.IsEnum)(types_1.WeekDay),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], WorkdayDefinition.prototype, "weekday", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_transformer_1.Type)(() => date_1.Period),
|
|
30
|
+
(0, class_validator_1.IsArray)(),
|
|
31
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], WorkdayDefinition.prototype, "periods", void 0);
|
|
34
|
+
class WorkingHoursDto {
|
|
35
|
+
definitions;
|
|
36
|
+
}
|
|
37
|
+
exports.WorkingHoursDto = WorkingHoursDto;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsArray)(),
|
|
40
|
+
(0, class_transformer_1.Type)(() => WorkdayDefinition),
|
|
41
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], WorkingHoursDto.prototype, "definitions", void 0);
|
|
44
|
+
//# sourceMappingURL=working.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"working.js","sourceRoot":"","sources":["../../src/calendar/working.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAAkE;AAClE,iCAAgC;AAChC,mCAAkC;AAGlC,MAAa,iBAAiB;IAI7B,OAAO,CAAU;IAMjB,OAAO,CAAW;CAClB;AAXD,8CAWC;AAPA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAM,EAAC,eAAO,CAAC;;kDACC;AAMjB;IAJC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAM,CAAC;IAClB,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDACb;AAGnB,MAAa,eAAe;IAK3B,WAAW,CAAsB;CACjC;AAND,0CAMC;AADA;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC;IAC7B,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;oDACE"}
|