@intelact/driveup 2.4.5 → 2.4.6
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 +39 -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 +60 -0
- package/lib/agent/agent.model.js.map +1 -0
- package/lib/agent/client.model.d.ts +8 -0
- package/lib/agent/client.model.js +37 -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 +43 -0
- package/lib/agent/code.model.js.map +1 -0
- package/lib/alert/alert.model.d.ts +16 -0
- package/lib/alert/alert.model.js +66 -0
- package/lib/alert/alert.model.js.map +1 -0
- package/lib/auth/signin.dto.d.ts +6 -0
- package/lib/auth/signin.dto.js +35 -0
- package/lib/auth/signin.dto.js.map +1 -0
- package/lib/auth/signup.dto.d.ts +9 -0
- package/lib/auth/signup.dto.js +46 -0
- package/lib/auth/signup.dto.js.map +1 -0
- package/lib/bill/bill-item.model.d.ts +38 -0
- package/lib/bill/bill-item.model.js +88 -0
- package/lib/bill/bill-item.model.js.map +1 -0
- package/lib/bill/bill.model.d.ts +36 -0
- package/lib/bill/bill.model.js +101 -0
- package/lib/bill/bill.model.js.map +1 -0
- package/lib/calendar/appointment.d.ts +92 -0
- package/lib/calendar/appointment.js +213 -0
- package/lib/calendar/appointment.js.map +1 -0
- package/lib/calendar/date.d.ts +23 -0
- package/lib/calendar/date.js +87 -0
- package/lib/calendar/date.js.map +1 -0
- package/lib/calendar/holiday.d.ts +7 -0
- package/lib/calendar/holiday.js +28 -0
- package/lib/calendar/holiday.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/working.d.ts +9 -0
- package/lib/calendar/working.js +41 -0
- package/lib/calendar/working.js.map +1 -0
- package/lib/common/app-info.d.ts +21 -0
- package/lib/common/app-info.js +93 -0
- package/lib/common/app-info.js.map +1 -0
- package/lib/common/content.d.ts +21 -0
- package/lib/common/content.js +78 -0
- package/lib/common/content.js.map +1 -0
- package/lib/common/email.d.ts +4 -0
- package/lib/common/email.js +29 -0
- package/lib/common/email.js.map +1 -0
- package/lib/common/id.d.ts +3 -0
- package/lib/common/id.js +25 -0
- package/lib/common/id.js.map +1 -0
- package/lib/common/language.d.ts +4 -0
- package/lib/common/language.js +22 -0
- package/lib/common/language.js.map +1 -0
- package/lib/common/phone.d.ts +4 -0
- package/lib/common/phone.js +31 -0
- package/lib/common/phone.js.map +1 -0
- package/lib/common/price.d.ts +3 -0
- package/lib/common/price.js +25 -0
- package/lib/common/price.js.map +1 -0
- package/lib/common/profile.d.ts +5 -0
- package/lib/common/profile.js +28 -0
- package/lib/common/profile.js.map +1 -0
- package/lib/common/promotion.d.ts +3 -0
- package/lib/common/promotion.js +24 -0
- package/lib/common/promotion.js.map +1 -0
- package/lib/common/search.d.ts +3 -0
- package/lib/common/search.js +23 -0
- package/lib/common/search.js.map +1 -0
- package/lib/common/social.d.ts +7 -0
- package/lib/common/social.js +40 -0
- package/lib/common/social.js.map +1 -0
- package/lib/common/sort.d.ts +7 -0
- package/lib/common/sort.js +39 -0
- package/lib/common/sort.js.map +1 -0
- package/lib/common/url.d.ts +3 -0
- package/lib/common/url.js +24 -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 +35 -0
- package/lib/company/company-widget.model.js.map +1 -0
- package/lib/company/company.model.d.ts +81 -0
- package/lib/company/company.model.js +232 -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 +30 -0
- package/lib/company/dependency.model.js.map +1 -0
- package/lib/country/country.dto.d.ts +24 -0
- package/lib/country/country.dto.js +132 -0
- package/lib/country/country.dto.js.map +1 -0
- package/lib/country/country.model.d.ts +19 -0
- package/lib/country/country.model.js +80 -0
- package/lib/country/country.model.js.map +1 -0
- package/lib/course/appointment.model.d.ts +14 -0
- package/lib/course/appointment.model.js +47 -0
- package/lib/course/appointment.model.js.map +1 -0
- package/lib/course/course.model.d.ts +44 -0
- package/lib/course/course.model.js +141 -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 +66 -0
- package/lib/course/definition.model.js.map +1 -0
- package/lib/course/dto.d.ts +47 -0
- package/lib/course/dto.js +191 -0
- package/lib/course/dto.js.map +1 -0
- package/lib/course/part.model.d.ts +23 -0
- package/lib/course/part.model.js +86 -0
- package/lib/course/part.model.js.map +1 -0
- package/lib/credit/credit.model.d.ts +8 -0
- package/lib/credit/credit.model.js +43 -0
- package/lib/credit/credit.model.js.map +1 -0
- package/lib/currency/currency.dto.d.ts +19 -0
- package/lib/currency/currency.dto.js +109 -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 +53 -0
- package/lib/currency/currency.model.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 +53 -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 +30 -0
- package/lib/device/device.signature.js.map +1 -0
- package/lib/driving/category/category.dto.d.ts +37 -0
- package/lib/driving/category/category.dto.js +144 -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 +99 -0
- package/lib/driving/category/category.model.js.map +1 -0
- package/lib/driving/exam/exam.dto.d.ts +8 -0
- package/lib/driving/exam/exam.dto.js +39 -0
- package/lib/driving/exam/exam.dto.js.map +1 -0
- package/lib/driving/exam/exam.model.d.ts +8 -0
- package/lib/driving/exam/exam.model.js +39 -0
- package/lib/driving/exam/exam.model.js.map +1 -0
- package/lib/driving/lesson/lesson.d.ts +10 -0
- package/lib/driving/lesson/lesson.js +48 -0
- package/lib/driving/lesson/lesson.js.map +1 -0
- package/lib/driving/lesson/skill.d.ts +13 -0
- package/lib/driving/lesson/skill.dto.d.ts +7 -0
- package/lib/driving/lesson/skill.dto.js +32 -0
- package/lib/driving/lesson/skill.dto.js.map +1 -0
- package/lib/driving/lesson/skill.js +43 -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 +18 -0
- package/lib/driving/lesson/topic.dto.js +72 -0
- package/lib/driving/lesson/topic.dto.js.map +1 -0
- package/lib/driving/lesson/topic.js +72 -0
- package/lib/driving/lesson/topic.js.map +1 -0
- package/lib/expense/category.model.d.ts +18 -0
- package/lib/expense/category.model.js +69 -0
- package/lib/expense/category.model.js.map +1 -0
- package/lib/expense/expense.dto.d.ts +28 -0
- package/lib/expense/expense.dto.js +144 -0
- package/lib/expense/expense.dto.js.map +1 -0
- package/lib/expense/expense.model.d.ts +19 -0
- package/lib/expense/expense.model.js +85 -0
- package/lib/expense/expense.model.js.map +1 -0
- package/lib/finance/company-payment.model.d.ts +10 -0
- package/lib/finance/company-payment.model.js +45 -0
- package/lib/finance/company-payment.model.js.map +1 -0
- package/lib/finance/discount.dto.d.ts +4 -0
- package/lib/finance/discount.dto.js +30 -0
- package/lib/finance/discount.dto.js.map +1 -0
- package/lib/finance/finance.dto.d.ts +56 -0
- package/lib/finance/finance.dto.js +277 -0
- package/lib/finance/finance.dto.js.map +1 -0
- package/lib/finance/finance.model.d.ts +34 -0
- package/lib/finance/finance.model.js +124 -0
- package/lib/finance/finance.model.js.map +1 -0
- package/lib/finance/payment-method.model.d.ts +20 -0
- package/lib/finance/payment-method.model.js +72 -0
- package/lib/finance/payment-method.model.js.map +1 -0
- package/lib/finance/payment.dto.d.ts +6 -0
- package/lib/finance/payment.dto.js +37 -0
- package/lib/finance/payment.dto.js.map +1 -0
- package/lib/finance/refund.dto.d.ts +4 -0
- package/lib/finance/refund.dto.js +30 -0
- package/lib/finance/refund.dto.js.map +1 -0
- package/lib/free-benefit/free-benefit.model.d.ts +7 -0
- package/lib/free-benefit/free-benefit.model.js +31 -0
- package/lib/free-benefit/free-benefit.model.js.map +1 -0
- package/lib/geo/address.dto.d.ts +19 -0
- package/lib/geo/address.dto.js +73 -0
- package/lib/geo/address.dto.js.map +1 -0
- package/lib/geo/geoinfo.interface.d.ts +17 -0
- package/lib/geo/geoinfo.interface.js +3 -0
- package/lib/geo/geoinfo.interface.js.map +1 -0
- package/lib/geo/pickup.model.d.ts +11 -0
- package/lib/geo/pickup.model.js +55 -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 +56 -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 +130 -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 +70 -0
- package/lib/giftcode/giftcode.model.js.map +1 -0
- package/lib/handover/handover.dto.d.ts +6 -0
- package/lib/handover/handover.dto.js +41 -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 +59 -0
- package/lib/handover/handover.model.js.map +1 -0
- package/lib/index.d.ts +118 -0
- package/lib/index.js +309 -0
- package/lib/index.js.map +1 -0
- package/lib/instructor/instructor.dto.d.ts +19 -0
- package/lib/instructor/instructor.dto.js +95 -0
- package/lib/instructor/instructor.dto.js.map +1 -0
- package/lib/instructor/instructor.model.d.ts +46 -0
- package/lib/instructor/instructor.model.js +164 -0
- package/lib/instructor/instructor.model.js.map +1 -0
- package/lib/invoice/invoice.dto.d.ts +10 -0
- package/lib/invoice/invoice.dto.js +60 -0
- package/lib/invoice/invoice.dto.js.map +1 -0
- package/lib/invoice/invoice.model.d.ts +33 -0
- package/lib/invoice/invoice.model.js +137 -0
- package/lib/invoice/invoice.model.js.map +1 -0
- package/lib/invoice/item.model.d.ts +7 -0
- package/lib/invoice/item.model.js +38 -0
- package/lib/invoice/item.model.js.map +1 -0
- package/lib/item/item.model.d.ts +68 -0
- package/lib/item/item.model.js +46 -0
- package/lib/item/item.model.js.map +1 -0
- package/lib/license/license.model.d.ts +7 -0
- package/lib/license/license.model.js +47 -0
- package/lib/license/license.model.js.map +1 -0
- package/lib/log/log.model.d.ts +8 -0
- package/lib/log/log.model.js +38 -0
- package/lib/log/log.model.js.map +1 -0
- package/lib/metric/metric.model.d.ts +43 -0
- package/lib/metric/metric.model.js +113 -0
- package/lib/metric/metric.model.js.map +1 -0
- package/lib/notification/notification.model.d.ts +13 -0
- package/lib/notification/notification.model.js +60 -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 +33 -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 +42 -0
- package/lib/notification/preference.model.js.map +1 -0
- package/lib/payout/payout.model.d.ts +12 -0
- package/lib/payout/payout.model.js +59 -0
- package/lib/payout/payout.model.js.map +1 -0
- package/lib/priceplan/plan.dto.d.ts +13 -0
- package/lib/priceplan/plan.dto.js +67 -0
- package/lib/priceplan/plan.dto.js.map +1 -0
- package/lib/priceplan/plan.model.d.ts +38 -0
- package/lib/priceplan/plan.model.js +111 -0
- package/lib/priceplan/plan.model.js.map +1 -0
- package/lib/public/contac-us.dto.d.ts +6 -0
- package/lib/public/contac-us.dto.js +43 -0
- package/lib/public/contac-us.dto.js.map +1 -0
- package/lib/public/contact-sales.dto.d.ts +9 -0
- package/lib/public/contact-sales.dto.js +62 -0
- package/lib/public/contact-sales.dto.js.map +1 -0
- package/lib/public/country-support.dto.d.ts +6 -0
- package/lib/public/country-support.dto.js +43 -0
- package/lib/public/country-support.dto.js.map +1 -0
- package/lib/security/role.dto.d.ts +4 -0
- package/lib/security/role.dto.js +23 -0
- package/lib/security/role.dto.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/session.dto.d.ts +13 -0
- package/lib/session/driving/session.dto.js +71 -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 +56 -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 +27 -0
- package/lib/session/driving/session.skill.js.map +1 -0
- package/lib/session/driving/session.topic.d.ts +13 -0
- package/lib/session/driving/session.topic.js +53 -0
- package/lib/session/driving/session.topic.js.map +1 -0
- package/lib/setting/setting.dto.d.ts +3 -0
- package/lib/setting/setting.dto.js +24 -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 +46 -0
- package/lib/setting/setting.model.js.map +1 -0
- package/lib/signature/signature.model.d.ts +10 -0
- package/lib/signature/signature.model.js +43 -0
- package/lib/signature/signature.model.js.map +1 -0
- package/lib/student/student.dto.d.ts +20 -0
- package/lib/student/student.dto.js +115 -0
- package/lib/student/student.dto.js.map +1 -0
- package/lib/student/student.model.d.ts +27 -0
- package/lib/student/student.model.js +107 -0
- package/lib/student/student.model.js.map +1 -0
- package/lib/task/task.dto.d.ts +24 -0
- package/lib/task/task.dto.js +137 -0
- package/lib/task/task.dto.js.map +1 -0
- package/lib/task/task.model.d.ts +8 -0
- package/lib/task/task.model.js +44 -0
- package/lib/task/task.model.js.map +1 -0
- package/lib/ticket/ticket.dto.d.ts +13 -0
- package/lib/ticket/ticket.dto.js +60 -0
- package/lib/ticket/ticket.dto.js.map +1 -0
- package/lib/ticket/ticket.model.d.ts +11 -0
- package/lib/ticket/ticket.model.js +48 -0
- package/lib/ticket/ticket.model.js.map +1 -0
- package/lib/training/request.dto.d.ts +4 -0
- package/lib/training/request.dto.js +23 -0
- package/lib/training/request.dto.js.map +1 -0
- package/lib/training/request.model.d.ts +25 -0
- package/lib/training/request.model.js +88 -0
- package/lib/training/request.model.js.map +1 -0
- package/lib/training/training-actions.model.d.ts +7 -0
- package/lib/training/training-actions.model.js +40 -0
- package/lib/training/training-actions.model.js.map +1 -0
- package/lib/training/training.dto.d.ts +56 -0
- package/lib/training/training.dto.js +255 -0
- package/lib/training/training.dto.js.map +1 -0
- package/lib/training/training.model.d.ts +137 -0
- package/lib/training/training.model.js +308 -0
- package/lib/training/training.model.js.map +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/profile.dto.d.ts +12 -0
- package/lib/user/profile.dto.js +52 -0
- package/lib/user/profile.dto.js.map +1 -0
- package/lib/user/user.model.d.ts +50 -0
- package/lib/user/user.model.js +174 -0
- package/lib/user/user.model.js.map +1 -0
- package/lib/utils/array.helper.d.ts +28 -0
- package/lib/utils/array.helper.js +42 -0
- package/lib/utils/array.helper.js.map +1 -0
- package/lib/utils/compare.validator.d.ts +9 -0
- package/lib/utils/compare.validator.js +35 -0
- package/lib/utils/compare.validator.js.map +1 -0
- package/lib/utils/date.helper.d.ts +127 -0
- package/lib/utils/date.helper.js +265 -0
- package/lib/utils/date.helper.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/utils/required.validator.d.ts +77 -0
- package/lib/utils/required.validator.js +151 -0
- package/lib/utils/required.validator.js.map +1 -0
- package/lib/utils/transformers.helper.d.ts +49 -0
- package/lib/utils/transformers.helper.js +203 -0
- package/lib/utils/transformers.helper.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PricePlanFeature, PricePlanType } from "@driveup/shared";
|
|
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,67 @@
|
|
|
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 shared_1 = require("@driveup/shared");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
16
|
+
class PricePlanFilterDto {
|
|
17
|
+
}
|
|
18
|
+
exports.PricePlanFilterDto = PricePlanFilterDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, transformers_helper_1.ToBoolean)(),
|
|
22
|
+
__metadata("design:type", Boolean)
|
|
23
|
+
], PricePlanFilterDto.prototype, "active", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, transformers_helper_1.ToNumber)(),
|
|
27
|
+
(0, class_validator_1.IsNumber)(),
|
|
28
|
+
(0, class_validator_1.Min)(1),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], PricePlanFilterDto.prototype, "countryId", void 0);
|
|
31
|
+
class SystemPricePlanSubmitDto {
|
|
32
|
+
}
|
|
33
|
+
exports.SystemPricePlanSubmitDto = SystemPricePlanSubmitDto;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, transformers_helper_1.Trim)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], SystemPricePlanSubmitDto.prototype, "name", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
+
(0, class_validator_1.IsEnum)(shared_1.PricePlanType),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], SystemPricePlanSubmitDto.prototype, "type", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsNumber)(),
|
|
47
|
+
(0, class_validator_1.Min)(0),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], SystemPricePlanSubmitDto.prototype, "price", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.IsNumber)(),
|
|
53
|
+
(0, class_validator_1.Min)(0),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], SystemPricePlanSubmitDto.prototype, "startCredit", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsEnum)(shared_1.PricePlanFeature, { each: true }),
|
|
59
|
+
__metadata("design:type", Array)
|
|
60
|
+
], SystemPricePlanSubmitDto.prototype, "features", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsNumber)(),
|
|
64
|
+
(0, class_validator_1.Min)(0),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], SystemPricePlanSubmitDto.prototype, "minUsers", void 0);
|
|
67
|
+
//# 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,4CAAkE;AAClE,qDAAgF;AAEhF,sEAAyE;AACzE,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAPA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAS,GAAE;;kDACI;AAMhB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAQ,GAAE;IACV,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;qDACW;AAGnB,MAAa,wBAAwB;CA2BpC;AA3BD,4DA2BC;AAxBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAI,GAAE;;sDACO;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,sBAAa,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,yBAAgB,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,38 @@
|
|
|
1
|
+
import { PricePlanType } from '@driveup/shared';
|
|
2
|
+
import { Country } from "../country/country.model";
|
|
3
|
+
import { Item } from "../item/item.model";
|
|
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
|
+
featured: boolean;
|
|
13
|
+
icon: string;
|
|
14
|
+
price: number;
|
|
15
|
+
startCredit: number;
|
|
16
|
+
active: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Only for company enterprise plan
|
|
19
|
+
*/
|
|
20
|
+
maxSeats: number;
|
|
21
|
+
/**
|
|
22
|
+
* Only for company enterprise plan
|
|
23
|
+
*/
|
|
24
|
+
takenSeats: number;
|
|
25
|
+
upcoming: boolean;
|
|
26
|
+
features: Item<string>[];
|
|
27
|
+
usage: Item<string>[];
|
|
28
|
+
priceLabel: {
|
|
29
|
+
header: string;
|
|
30
|
+
banner: string;
|
|
31
|
+
unit: string;
|
|
32
|
+
};
|
|
33
|
+
statusBanner: {
|
|
34
|
+
label: string;
|
|
35
|
+
action: string;
|
|
36
|
+
};
|
|
37
|
+
constructor(props?: Partial<PricePlan>);
|
|
38
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
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 shared_1 = require("@driveup/shared");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const country_model_1 = require("../country/country.model");
|
|
16
|
+
const item_model_1 = require("../item/item.model");
|
|
17
|
+
class PricePlan {
|
|
18
|
+
constructor(props) {
|
|
19
|
+
Object.assign(this, props);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.PricePlan = PricePlan;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], PricePlan.prototype, "id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
(0, class_transformer_1.Type)(() => country_model_1.Country),
|
|
31
|
+
__metadata("design:type", country_model_1.Country)
|
|
32
|
+
], PricePlan.prototype, "country", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PricePlan.prototype, "type", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], PricePlan.prototype, "name", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], PricePlan.prototype, "title", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], PricePlan.prototype, "description", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
52
|
+
__metadata("design:type", Date)
|
|
53
|
+
], PricePlan.prototype, "startDate", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
57
|
+
__metadata("design:type", Boolean)
|
|
58
|
+
], PricePlan.prototype, "featured", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], PricePlan.prototype, "icon", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_transformer_1.Expose)(),
|
|
65
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], PricePlan.prototype, "price", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], PricePlan.prototype, "startCredit", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_transformer_1.Expose)(),
|
|
75
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
76
|
+
__metadata("design:type", Boolean)
|
|
77
|
+
], PricePlan.prototype, "active", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_transformer_1.Expose)(),
|
|
80
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
81
|
+
__metadata("design:type", Number)
|
|
82
|
+
], PricePlan.prototype, "maxSeats", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_transformer_1.Expose)(),
|
|
85
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
86
|
+
__metadata("design:type", Number)
|
|
87
|
+
], PricePlan.prototype, "takenSeats", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_transformer_1.Expose)(),
|
|
90
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
91
|
+
__metadata("design:type", Boolean)
|
|
92
|
+
], PricePlan.prototype, "upcoming", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_transformer_1.Expose)(),
|
|
95
|
+
(0, class_transformer_1.Type)(() => item_model_1.Item),
|
|
96
|
+
__metadata("design:type", Array)
|
|
97
|
+
], PricePlan.prototype, "features", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_transformer_1.Expose)(),
|
|
100
|
+
(0, class_transformer_1.Type)(() => item_model_1.Item),
|
|
101
|
+
__metadata("design:type", Array)
|
|
102
|
+
], PricePlan.prototype, "usage", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, class_transformer_1.Expose)(),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], PricePlan.prototype, "priceLabel", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, class_transformer_1.Expose)(),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], PricePlan.prototype, "statusBanner", void 0);
|
|
111
|
+
//# 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,4CAAgD;AAChD,yDAAiD;AACjD,4DAAmD;AACnD,mDAA0C;AAC1C,MAAa,SAAS;IAoFrB,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAvFD,8BAuFC;AAnFA;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,uBAAO,CAAC;8BACX,uBAAO;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,OAAO,CAAC;;2CACF;AAGlB;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,iBAAI,CAAC;;2CACQ;AAIzB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;;wCACK;AAGtB;IADC,IAAA,0BAAM,GAAE;;6CAKP;AAGF;IADC,IAAA,0BAAM,GAAE;;+CAIP"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.ContactUsRequestDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
15
|
+
class ContactUsRequestDto {
|
|
16
|
+
}
|
|
17
|
+
exports.ContactUsRequestDto = ContactUsRequestDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, transformers_helper_1.Trim)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], ContactUsRequestDto.prototype, "name", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsEmail)(),
|
|
28
|
+
(0, transformers_helper_1.Trim)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ContactUsRequestDto.prototype, "email", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, transformers_helper_1.Trim)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ContactUsRequestDto.prototype, "message", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, transformers_helper_1.Trim)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ContactUsRequestDto.prototype, "recaptchaToken", void 0);
|
|
43
|
+
//# sourceMappingURL=contac-us.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contac-us.dto.js","sourceRoot":"","sources":["../../src/public/contac-us.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAChE,sEAAoD;AACpD,MAAa,mBAAmB;CAsB/B;AAtBD,kDAsBC;AAjBA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;iDACO;AAMd;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAI,GAAE;;kDACQ;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;oDACU;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;2DACiB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.ContactSalesRequestDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
15
|
+
class ContactSalesRequestDto {
|
|
16
|
+
}
|
|
17
|
+
exports.ContactSalesRequestDto = ContactSalesRequestDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, transformers_helper_1.Trim)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], ContactSalesRequestDto.prototype, "name", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsEmail)(),
|
|
28
|
+
(0, transformers_helper_1.Trim)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ContactSalesRequestDto.prototype, "email", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsPhoneNumber)(),
|
|
35
|
+
(0, transformers_helper_1.Trim)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ContactSalesRequestDto.prototype, "phone", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
(0, transformers_helper_1.Trim)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ContactSalesRequestDto.prototype, "country", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, transformers_helper_1.Trim)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], ContactSalesRequestDto.prototype, "subject", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
52
|
+
(0, class_validator_1.IsString)(),
|
|
53
|
+
(0, transformers_helper_1.Trim)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], ContactSalesRequestDto.prototype, "message", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
(0, transformers_helper_1.Trim)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], ContactSalesRequestDto.prototype, "recaptchaToken", void 0);
|
|
62
|
+
//# sourceMappingURL=contact-sales.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-sales.dto.js","sourceRoot":"","sources":["../../src/public/contact-sales.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+E;AAC/E,sEAAoD;AACpD,MAAa,sBAAsB;CAsClC;AAtCD,wDAsCC;AAjCA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;oDACO;AAMd;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAI,GAAE;;qDACQ;AAMf;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,+BAAa,GAAE;IACf,IAAA,0BAAI,GAAE;;qDACQ;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;uDACU;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;uDACU;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;uDACU;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;8DACiB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.CountrySupportRequestDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
15
|
+
class CountrySupportRequestDto {
|
|
16
|
+
}
|
|
17
|
+
exports.CountrySupportRequestDto = CountrySupportRequestDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, transformers_helper_1.Trim)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CountrySupportRequestDto.prototype, "country", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsEmail)(),
|
|
28
|
+
(0, transformers_helper_1.Trim)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CountrySupportRequestDto.prototype, "email", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, transformers_helper_1.Trim)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CountrySupportRequestDto.prototype, "message", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, transformers_helper_1.Trim)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CountrySupportRequestDto.prototype, "recaptchaToken", void 0);
|
|
43
|
+
//# sourceMappingURL=country-support.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country-support.dto.js","sourceRoot":"","sources":["../../src/public/country-support.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAChE,sEAAoD;AACpD,MAAa,wBAAwB;CAsBpC;AAtBD,4DAsBC;AAjBA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;yDACU;AAMjB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAI,GAAE;;uDACQ;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;yDACU;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;gEACiB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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.RoleDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const shared_1 = require("@driveup/shared");
|
|
15
|
+
class RoleDto {
|
|
16
|
+
}
|
|
17
|
+
exports.RoleDto = RoleDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
(0, class_validator_1.IsEnum)(shared_1.Role),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], RoleDto.prototype, "role", void 0);
|
|
23
|
+
//# sourceMappingURL=role.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../src/security/role.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,4CAAuC;AAGvC,MAAa,OAAO;CAKnB;AALD,0BAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,aAAI,CAAC;;qCACH"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Token interface
|
|
3
|
+
*
|
|
4
|
+
* @copyright Intelact Solutions Ltd.
|
|
5
|
+
*/
|
|
6
|
+
export interface IToken {
|
|
7
|
+
/**
|
|
8
|
+
* Token type
|
|
9
|
+
* Expose token type as "Barer"
|
|
10
|
+
*/
|
|
11
|
+
tokenType: string;
|
|
12
|
+
/**
|
|
13
|
+
* Access token
|
|
14
|
+
* Use this token to identify auth user
|
|
15
|
+
*/
|
|
16
|
+
accessToken: string;
|
|
17
|
+
/**
|
|
18
|
+
* Refresh token
|
|
19
|
+
* User this token to refresh access token
|
|
20
|
+
*/
|
|
21
|
+
refreshToken: string;
|
|
22
|
+
/**
|
|
23
|
+
* Access token expiry timestamp
|
|
24
|
+
*/
|
|
25
|
+
accessTokenExpires: number;
|
|
26
|
+
/**
|
|
27
|
+
* Access token expiry timestamp
|
|
28
|
+
*/
|
|
29
|
+
refreshTokenExpires: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../src/security/token.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PickupLocation } from "../../geo/pickup.model";
|
|
2
|
+
export declare class InstructorDrivingAppointmentCreateDto {
|
|
3
|
+
instructorId: number;
|
|
4
|
+
date: Date;
|
|
5
|
+
isExam: boolean;
|
|
6
|
+
location: PickupLocation;
|
|
7
|
+
}
|
|
8
|
+
export declare class InstructorDrivingAppointmentUpdateDto {
|
|
9
|
+
date: Date;
|
|
10
|
+
isExam: boolean;
|
|
11
|
+
location: PickupLocation;
|
|
12
|
+
instructorId: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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.InstructorDrivingAppointmentUpdateDto = exports.InstructorDrivingAppointmentCreateDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const pickup_model_1 = require("../../geo/pickup.model");
|
|
16
|
+
const transformers_helper_1 = require("../../utils/transformers.helper");
|
|
17
|
+
class InstructorDrivingAppointmentCreateDto {
|
|
18
|
+
}
|
|
19
|
+
exports.InstructorDrivingAppointmentCreateDto = InstructorDrivingAppointmentCreateDto;
|
|
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
|
+
], InstructorDrivingAppointmentCreateDto.prototype, "instructorId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
(0, class_validator_1.IsDate)(),
|
|
29
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
30
|
+
__metadata("design:type", Date)
|
|
31
|
+
], InstructorDrivingAppointmentCreateDto.prototype, "date", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
(0, transformers_helper_1.ToBoolean)(),
|
|
35
|
+
(0, class_validator_1.IsBoolean)(),
|
|
36
|
+
__metadata("design:type", Boolean)
|
|
37
|
+
], InstructorDrivingAppointmentCreateDto.prototype, "isExam", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_transformer_1.Type)(() => pickup_model_1.PickupLocation),
|
|
41
|
+
(0, class_validator_1.ValidateNested)(),
|
|
42
|
+
__metadata("design:type", pickup_model_1.PickupLocation)
|
|
43
|
+
], InstructorDrivingAppointmentCreateDto.prototype, "location", void 0);
|
|
44
|
+
class InstructorDrivingAppointmentUpdateDto {
|
|
45
|
+
}
|
|
46
|
+
exports.InstructorDrivingAppointmentUpdateDto = InstructorDrivingAppointmentUpdateDto;
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
49
|
+
(0, class_validator_1.IsDate)(),
|
|
50
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
51
|
+
__metadata("design:type", Date)
|
|
52
|
+
], InstructorDrivingAppointmentUpdateDto.prototype, "date", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
55
|
+
(0, transformers_helper_1.ToBoolean)(),
|
|
56
|
+
(0, class_validator_1.IsBoolean)(),
|
|
57
|
+
__metadata("design:type", Boolean)
|
|
58
|
+
], InstructorDrivingAppointmentUpdateDto.prototype, "isExam", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_transformer_1.Type)(() => pickup_model_1.PickupLocation),
|
|
62
|
+
(0, class_validator_1.ValidateNested)(),
|
|
63
|
+
__metadata("design:type", pickup_model_1.PickupLocation)
|
|
64
|
+
], InstructorDrivingAppointmentUpdateDto.prototype, "location", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
67
|
+
(0, class_validator_1.IsNumber)(),
|
|
68
|
+
(0, class_validator_1.Min)(1),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], InstructorDrivingAppointmentUpdateDto.prototype, "instructorId", void 0);
|
|
71
|
+
//# sourceMappingURL=session.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.dto.js","sourceRoot":"","sources":["../../../src/session/driving/session.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAA2G;AAE3G,yDAAwD;AACxD,yEAA4D;AAE5D,MAAa,qCAAqC;CAoBjD;AApBD,sFAoBC;AAhBA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;2EACc;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACX,IAAI;mEAAC;AAKX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAS,GAAE;IACX,IAAA,2BAAS,GAAE;;qEACI;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,6BAAc,CAAC;IAC1B,IAAA,gCAAc,GAAE;8BACP,6BAAc;uEAAC;AAG1B,MAAa,qCAAqC;CAoBjD;AApBD,sFAoBC;AAhBA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACX,IAAI;mEAAC;AAKX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAS,GAAE;IACX,IAAA,2BAAS,GAAE;;qEACI;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,6BAAc,CAAC;IAC1B,IAAA,gCAAc,GAAE;8BACP,6BAAc;uEAAC;AAKzB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;2EACc"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Note } from "@driveup/shared";
|
|
2
|
+
import { Appointment } from "../../calendar/appointment";
|
|
3
|
+
import { DrivingExam } from "../../driving/exam/exam.model";
|
|
4
|
+
import { Signature } from "../../signature/signature.model";
|
|
5
|
+
import { DrivingSessionTopic } from "./session.topic";
|
|
6
|
+
export declare class DrivingSession extends Appointment {
|
|
7
|
+
price: number;
|
|
8
|
+
duration: number;
|
|
9
|
+
nextTopic: DrivingSessionTopic;
|
|
10
|
+
note: Note;
|
|
11
|
+
signature: Signature;
|
|
12
|
+
/************************* exam *************************/
|
|
13
|
+
exam: DrivingExam;
|
|
14
|
+
/************************* methods *************************/
|
|
15
|
+
constructor(props?: Partial<DrivingSession>);
|
|
16
|
+
}
|