@intelact/driveup 2.2.0 → 2.2.2
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.js +2 -2
- package/lib/agent/agent.dto.js.map +1 -1
- package/lib/agent/agent.model.d.ts +1 -1
- package/lib/agent/agent.model.js +2 -2
- package/lib/agent/agent.model.js.map +1 -1
- package/lib/auth/signin.dto.d.ts +1 -1
- package/lib/auth/signin.dto.js +3 -3
- package/lib/auth/signin.dto.js.map +1 -1
- package/lib/auth/signup.dto.d.ts +1 -1
- package/lib/auth/signup.dto.js +3 -3
- package/lib/auth/signup.dto.js.map +1 -1
- package/lib/calendar/date.js +6 -6
- package/lib/calendar/date.js.map +1 -1
- package/lib/common/content.js +8 -8
- package/lib/common/content.js.map +1 -1
- package/lib/common/email.js +3 -3
- package/lib/common/email.js.map +1 -1
- package/lib/common/id.js +2 -2
- package/lib/common/id.js.map +1 -1
- package/lib/common/phone.js +3 -3
- package/lib/common/phone.js.map +1 -1
- package/lib/common/price.js +2 -2
- package/lib/common/price.js.map +1 -1
- package/lib/common/promotion.js +2 -2
- package/lib/common/promotion.js.map +1 -1
- package/lib/common/search.js +2 -2
- package/lib/common/search.js.map +1 -1
- package/lib/common/social.js +2 -2
- package/lib/common/social.js.map +1 -1
- package/lib/common/sort.js +2 -2
- package/lib/common/sort.js.map +1 -1
- package/lib/common/url.js +2 -2
- package/lib/common/url.js.map +1 -1
- package/lib/company/company.model.d.ts +9 -9
- package/lib/company/company.model.js +28 -28
- package/lib/company/company.model.js.map +1 -1
- package/lib/country/country.dto.js +11 -11
- package/lib/country/country.dto.js.map +1 -1
- package/lib/country/country.model.d.ts +2 -2
- package/lib/country/country.model.js +5 -5
- package/lib/country/country.model.js.map +1 -1
- package/lib/course/course.model.d.ts +1 -1
- package/lib/course/course.model.js +3 -3
- package/lib/course/course.model.js.map +1 -1
- package/lib/course/dto.js +7 -7
- package/lib/course/dto.js.map +1 -1
- package/lib/currency/currency.dto.js +11 -11
- package/lib/currency/currency.dto.js.map +1 -1
- package/lib/currency/currency.model.d.ts +1 -1
- package/lib/currency/currency.model.js +2 -2
- package/lib/currency/currency.model.js.map +1 -1
- package/lib/discount/discount.dto.js +2 -2
- package/lib/discount/discount.dto.js.map +1 -1
- package/lib/driving/category/category.dto.js +5 -5
- package/lib/driving/category/category.dto.js.map +1 -1
- package/lib/driving/exam/exam.dto.js +2 -2
- package/lib/driving/exam/exam.dto.js.map +1 -1
- package/lib/driving/lesson/skill.dto.js +2 -2
- package/lib/driving/lesson/skill.dto.js.map +1 -1
- package/lib/driving/lesson/topic.dto.js +5 -5
- package/lib/driving/lesson/topic.dto.js.map +1 -1
- package/lib/expense/expense.dto.js +9 -9
- package/lib/expense/expense.dto.js.map +1 -1
- package/lib/finance/company-payment.model.d.ts +10 -0
- package/lib/{training/course.model.js → finance/company-payment.model.js} +27 -13
- package/lib/finance/company-payment.model.js.map +1 -0
- package/lib/finance/finance.dto.js +25 -24
- package/lib/finance/finance.dto.js.map +1 -1
- package/lib/finance/finance.model.d.ts +5 -10
- package/lib/finance/finance.model.js +24 -29
- package/lib/finance/finance.model.js.map +1 -1
- package/lib/finance/payment-method.model.d.ts +20 -0
- package/lib/finance/payment-method.model.js +86 -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 +40 -0
- package/lib/finance/payment.dto.js.map +1 -0
- package/lib/geo/address.dto.js +7 -7
- package/lib/geo/address.dto.js.map +1 -1
- package/lib/giftcode/giftcode.dto.js +7 -7
- package/lib/giftcode/giftcode.dto.js.map +1 -1
- package/lib/giftcode/giftcode.model.d.ts +1 -1
- package/lib/giftcode/giftcode.model.js +3 -3
- package/lib/giftcode/giftcode.model.js.map +1 -1
- package/lib/handover/handover.model.d.ts +3 -3
- package/lib/handover/handover.model.js +3 -3
- package/lib/handover/handover.model.js.map +1 -1
- package/lib/index.d.ts +119 -42
- package/lib/index.js +308 -56
- package/lib/index.js.map +1 -1
- package/lib/instructor/instructor.dto.js +8 -8
- package/lib/instructor/instructor.dto.js.map +1 -1
- package/lib/instructor/instructor.model.d.ts +1 -1
- package/lib/instructor/instructor.model.js +2 -2
- package/lib/instructor/instructor.model.js.map +1 -1
- package/lib/invoice/invoice.dto.js +4 -4
- package/lib/invoice/invoice.dto.js.map +1 -1
- package/lib/invoice/invoice.model.d.ts +2 -2
- package/lib/invoice/invoice.model.js +3 -3
- package/lib/payment/payment.dto.js +2 -2
- package/lib/payment/payment.dto.js.map +1 -1
- package/lib/priceplan/plan.dto.js +3 -3
- package/lib/priceplan/plan.dto.js.map +1 -1
- package/lib/priceplan/plan.model.d.ts +2 -2
- package/lib/priceplan/plan.model.js +6 -6
- package/lib/priceplan/plan.model.js.map +1 -1
- package/lib/public/contac-us.dto.js +5 -5
- package/lib/public/contac-us.dto.js.map +1 -1
- package/lib/public/contact-sales.dto.js +8 -8
- package/lib/public/contact-sales.dto.js.map +1 -1
- package/lib/public/country-support.dto.js +5 -5
- package/lib/public/country-support.dto.js.map +1 -1
- package/lib/refund/refund.dto.js +2 -2
- package/lib/refund/refund.dto.js.map +1 -1
- package/lib/setting/setting.dto.js +2 -2
- package/lib/setting/setting.dto.js.map +1 -1
- package/lib/student/student.model.d.ts +2 -2
- package/lib/student/student.model.js +4 -4
- package/lib/student/student.model.js.map +1 -1
- package/lib/task/task.dto.js +9 -9
- package/lib/task/task.dto.js.map +1 -1
- package/lib/ticket/ticket.dto.js +3 -3
- package/lib/ticket/ticket.dto.js.map +1 -1
- package/lib/training/training.dto.js +18 -18
- package/lib/training/training.dto.js.map +1 -1
- package/lib/training/training.model.d.ts +3 -3
- package/lib/training/training.model.js +7 -7
- package/lib/training/training.model.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/user/profile.dto.js +3 -3
- package/lib/user/profile.dto.js.map +1 -1
- package/lib/user/user.model.d.ts +4 -4
- package/lib/user/user.model.js +11 -11
- package/lib/user/user.model.js.map +1 -1
- package/lib/utils/compare.validator.js.map +1 -1
- package/lib/utils/date.helper.d.ts +2 -1
- package/package.json +1 -1
- package/lib/agent/index.d.ts +0 -4
- package/lib/agent/index.js +0 -21
- package/lib/agent/index.js.map +0 -1
- package/lib/alert/index.d.ts +0 -1
- package/lib/alert/index.js +0 -18
- package/lib/alert/index.js.map +0 -1
- package/lib/auth/index.d.ts +0 -2
- package/lib/auth/index.js +0 -19
- package/lib/auth/index.js.map +0 -1
- package/lib/bill/index.d.ts +0 -2
- package/lib/bill/index.js +0 -19
- package/lib/bill/index.js.map +0 -1
- package/lib/calendar/index.d.ts +0 -5
- package/lib/calendar/index.js +0 -22
- package/lib/calendar/index.js.map +0 -1
- package/lib/common/index.d.ts +0 -13
- package/lib/common/index.js +0 -30
- package/lib/common/index.js.map +0 -1
- package/lib/company/index.d.ts +0 -3
- package/lib/company/index.js +0 -20
- package/lib/company/index.js.map +0 -1
- package/lib/country/index.d.ts +0 -2
- package/lib/country/index.js +0 -19
- package/lib/country/index.js.map +0 -1
- package/lib/course/index.d.ts +0 -5
- package/lib/course/index.js +0 -22
- package/lib/course/index.js.map +0 -1
- package/lib/credit/index.d.ts +0 -1
- package/lib/credit/index.js +0 -18
- package/lib/credit/index.js.map +0 -1
- package/lib/currency/index.d.ts +0 -2
- package/lib/currency/index.js +0 -19
- package/lib/currency/index.js.map +0 -1
- package/lib/device/index.d.ts +0 -3
- package/lib/device/index.js +0 -20
- package/lib/device/index.js.map +0 -1
- package/lib/discount/index.d.ts +0 -2
- package/lib/discount/index.js +0 -19
- package/lib/discount/index.js.map +0 -1
- package/lib/driving/category/index.d.ts +0 -2
- package/lib/driving/category/index.js +0 -19
- package/lib/driving/category/index.js.map +0 -1
- package/lib/driving/exam/index.d.ts +0 -2
- package/lib/driving/exam/index.js +0 -19
- package/lib/driving/exam/index.js.map +0 -1
- package/lib/driving/index.d.ts +0 -3
- package/lib/driving/index.js +0 -20
- package/lib/driving/index.js.map +0 -1
- package/lib/driving/lesson/index.d.ts +0 -5
- package/lib/driving/lesson/index.js +0 -22
- package/lib/driving/lesson/index.js.map +0 -1
- package/lib/expense/index.d.ts +0 -3
- package/lib/expense/index.js +0 -20
- package/lib/expense/index.js.map +0 -1
- package/lib/finance/index.d.ts +0 -2
- package/lib/finance/index.js +0 -19
- package/lib/finance/index.js.map +0 -1
- package/lib/free-benefit/index.d.ts +0 -1
- package/lib/free-benefit/index.js +0 -18
- package/lib/free-benefit/index.js.map +0 -1
- package/lib/geo/index.d.ts +0 -3
- package/lib/geo/index.js +0 -20
- package/lib/geo/index.js.map +0 -1
- package/lib/giftcode/index.d.ts +0 -3
- package/lib/giftcode/index.js +0 -20
- package/lib/giftcode/index.js.map +0 -1
- package/lib/handover/index.d.ts +0 -2
- package/lib/handover/index.js +0 -19
- package/lib/handover/index.js.map +0 -1
- package/lib/instructor/index.d.ts +0 -2
- package/lib/instructor/index.js +0 -19
- package/lib/instructor/index.js.map +0 -1
- package/lib/invoice/index.d.ts +0 -3
- package/lib/invoice/index.js +0 -20
- package/lib/invoice/index.js.map +0 -1
- package/lib/item/index.d.ts +0 -1
- package/lib/item/index.js +0 -18
- package/lib/item/index.js.map +0 -1
- package/lib/license/index.d.ts +0 -1
- package/lib/license/index.js +0 -18
- package/lib/license/index.js.map +0 -1
- package/lib/log/index.d.ts +0 -1
- package/lib/log/index.js +0 -18
- package/lib/log/index.js.map +0 -1
- package/lib/metric/index.d.ts +0 -1
- package/lib/metric/index.js +0 -18
- package/lib/metric/index.js.map +0 -1
- package/lib/notification/index.d.ts +0 -3
- package/lib/notification/index.js +0 -20
- package/lib/notification/index.js.map +0 -1
- package/lib/payment/index.d.ts +0 -4
- package/lib/payment/index.js +0 -21
- package/lib/payment/index.js.map +0 -1
- package/lib/payout/index.d.ts +0 -1
- package/lib/payout/index.js +0 -18
- package/lib/payout/index.js.map +0 -1
- package/lib/priceplan/index.d.ts +0 -2
- package/lib/priceplan/index.js +0 -19
- package/lib/priceplan/index.js.map +0 -1
- package/lib/public/index.d.ts +0 -3
- package/lib/public/index.js +0 -20
- package/lib/public/index.js.map +0 -1
- package/lib/refund/index.d.ts +0 -2
- package/lib/refund/index.js +0 -19
- package/lib/refund/index.js.map +0 -1
- package/lib/security/index.d.ts +0 -2
- package/lib/security/index.js +0 -19
- package/lib/security/index.js.map +0 -1
- package/lib/session/driving/index.d.ts +0 -4
- package/lib/session/driving/index.js +0 -21
- package/lib/session/driving/index.js.map +0 -1
- package/lib/session/index.d.ts +0 -1
- package/lib/session/index.js +0 -18
- package/lib/session/index.js.map +0 -1
- package/lib/setting/index.d.ts +0 -2
- package/lib/setting/index.js +0 -19
- package/lib/setting/index.js.map +0 -1
- package/lib/signature/index.d.ts +0 -1
- package/lib/signature/index.js +0 -18
- package/lib/signature/index.js.map +0 -1
- package/lib/student/index.d.ts +0 -2
- package/lib/student/index.js +0 -19
- package/lib/student/index.js.map +0 -1
- package/lib/task/index.d.ts +0 -2
- package/lib/task/index.js +0 -19
- package/lib/task/index.js.map +0 -1
- package/lib/ticket/index.d.ts +0 -2
- package/lib/ticket/index.js +0 -19
- package/lib/ticket/index.js.map +0 -1
- package/lib/training/course.model.d.ts +0 -8
- package/lib/training/course.model.js.map +0 -1
- package/lib/training/driving.model.d.ts +0 -17
- package/lib/training/driving.model.js +0 -73
- package/lib/training/driving.model.js.map +0 -1
- package/lib/training/index.d.ts +0 -4
- package/lib/training/index.js +0 -21
- package/lib/training/index.js.map +0 -1
- package/lib/user/index.d.ts +0 -3
- package/lib/user/index.js +0 -20
- package/lib/user/index.js.map +0 -1
- package/lib/utils/index.d.ts +0 -6
- package/lib/utils/index.js +0 -23
- package/lib/utils/index.js.map +0 -1
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Invoice = void 0;
|
|
13
13
|
const shared_1 = require("@driveup/shared");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const
|
|
15
|
+
const finance_model_1 = require("../finance/finance.model");
|
|
16
16
|
const training_model_1 = require("../training/training.model");
|
|
17
17
|
const item_model_1 = require("./item.model");
|
|
18
18
|
class Invoice {
|
|
@@ -121,8 +121,8 @@ __decorate([
|
|
|
121
121
|
], Invoice.prototype, "items", void 0);
|
|
122
122
|
__decorate([
|
|
123
123
|
(0, class_transformer_1.Expose)(),
|
|
124
|
-
(0, class_transformer_1.Type)(() =>
|
|
125
|
-
__metadata("design:type",
|
|
124
|
+
(0, class_transformer_1.Type)(() => finance_model_1.Finance),
|
|
125
|
+
__metadata("design:type", finance_model_1.Finance)
|
|
126
126
|
], Invoice.prototype, "payment", void 0);
|
|
127
127
|
__decorate([
|
|
128
128
|
(0, class_transformer_1.Expose)(),
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.SubmitPaymentDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const shared_1 = require("@driveup/shared");
|
|
15
|
-
const
|
|
15
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
16
16
|
class SubmitPaymentDto {
|
|
17
17
|
amount;
|
|
18
18
|
description;
|
|
@@ -27,7 +27,7 @@ __decorate([
|
|
|
27
27
|
], SubmitPaymentDto.prototype, "amount", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, class_validator_1.IsOptional)(),
|
|
30
|
-
(0,
|
|
30
|
+
(0, transformers_helper_1.Trim)(),
|
|
31
31
|
(0, class_validator_1.IsString)(),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], SubmitPaymentDto.prototype, "description", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../src/payment/payment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgG;AAChG,4CAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../src/payment/payment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgG;AAChG,4CAA8C;AAC9C,sEAAoD;AACpD,MAAa,gBAAgB;IAI5B,MAAM,CAAS;IAKf,WAAW,CAAS;IAKpB,IAAI,CAAc;CAClB;AAfD,4CAeC;AAXA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;gDACQ;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAI,GAAE;IACN,IAAA,0BAAQ,GAAE;;qDACS;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAW,CAAC;IACnB,IAAA,sBAAI,EAAC,CAAC,oBAAW,CAAC,IAAI,EAAE,oBAAW,CAAC,MAAM,CAAC,CAAC;;8CAC3B"}
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.SystemPricePlanSubmitDto = exports.PricePlanFilterDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const shared_1 = require("@driveup/shared");
|
|
15
|
-
const
|
|
15
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
16
16
|
class PricePlanFilterDto {
|
|
17
17
|
active;
|
|
18
18
|
countryId;
|
|
@@ -24,7 +24,7 @@ __decorate([
|
|
|
24
24
|
], PricePlanFilterDto.prototype, "active", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_validator_1.IsOptional)(),
|
|
27
|
-
(0,
|
|
27
|
+
(0, transformers_helper_1.ToNumber)(),
|
|
28
28
|
(0, class_validator_1.IsNumber)(),
|
|
29
29
|
(0, class_validator_1.Min)(1),
|
|
30
30
|
__metadata("design:type", Number)
|
|
@@ -40,7 +40,7 @@ class SystemPricePlanSubmitDto {
|
|
|
40
40
|
exports.SystemPricePlanSubmitDto = SystemPricePlanSubmitDto;
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, class_validator_1.IsOptional)(),
|
|
43
|
-
(0,
|
|
43
|
+
(0, transformers_helper_1.Trim)(),
|
|
44
44
|
__metadata("design:type", String)
|
|
45
45
|
], SystemPricePlanSubmitDto.prototype, "name", void 0);
|
|
46
46
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan.dto.js","sourceRoot":"","sources":["../../src/priceplan/plan.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgF;AAChF,4CAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"plan.dto.js","sourceRoot":"","sources":["../../src/priceplan/plan.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgF;AAChF,4CAAkE;AAClE,sEAA8D;AAC9D,MAAa,kBAAkB;IAE9B,MAAM,CAAU;IAMhB,SAAS,CAAS;CAClB;AATD,gDASC;AAPA;IADC,IAAA,4BAAU,GAAE;;kDACG;AAMhB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAQ,GAAE;IACV,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;qDACW;AAGnB,MAAa,wBAAwB;IAGpC,IAAI,CAAU;IAId,IAAI,CAAgB;IAKpB,KAAK,CAAS;IAKd,WAAW,CAAS;IAIpB,QAAQ,CAAsB;IAK9B,QAAQ,CAAU;CAClB;AA3BD,4DA2BC;AAxBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PricePlanType } from '@driveup/shared';
|
|
2
|
-
import { Country } from
|
|
3
|
-
import { Item } from
|
|
2
|
+
import { Country } from "../country/country.model";
|
|
3
|
+
import { Item } from "../item/item.model";
|
|
4
4
|
export declare class PricePlan {
|
|
5
5
|
id: number;
|
|
6
6
|
country: Country;
|
|
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.PricePlan = void 0;
|
|
13
13
|
const shared_1 = require("@driveup/shared");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const
|
|
16
|
-
const
|
|
15
|
+
const country_model_1 = require("../country/country.model");
|
|
16
|
+
const item_model_1 = require("../item/item.model");
|
|
17
17
|
class PricePlan {
|
|
18
18
|
id;
|
|
19
19
|
country;
|
|
@@ -52,8 +52,8 @@ __decorate([
|
|
|
52
52
|
], PricePlan.prototype, "id", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, class_transformer_1.Expose)(),
|
|
55
|
-
(0, class_transformer_1.Type)(() =>
|
|
56
|
-
__metadata("design:type",
|
|
55
|
+
(0, class_transformer_1.Type)(() => country_model_1.Country),
|
|
56
|
+
__metadata("design:type", country_model_1.Country)
|
|
57
57
|
], PricePlan.prototype, "country", void 0);
|
|
58
58
|
__decorate([
|
|
59
59
|
(0, class_transformer_1.Expose)(),
|
|
@@ -117,12 +117,12 @@ __decorate([
|
|
|
117
117
|
], PricePlan.prototype, "upcoming", void 0);
|
|
118
118
|
__decorate([
|
|
119
119
|
(0, class_transformer_1.Expose)(),
|
|
120
|
-
(0, class_transformer_1.Type)(() =>
|
|
120
|
+
(0, class_transformer_1.Type)(() => item_model_1.Item),
|
|
121
121
|
__metadata("design:type", Array)
|
|
122
122
|
], PricePlan.prototype, "features", void 0);
|
|
123
123
|
__decorate([
|
|
124
124
|
(0, class_transformer_1.Expose)(),
|
|
125
|
-
(0, class_transformer_1.Type)(() =>
|
|
125
|
+
(0, class_transformer_1.Type)(() => item_model_1.Item),
|
|
126
126
|
__metadata("design:type", Array)
|
|
127
127
|
], PricePlan.prototype, "usage", void 0);
|
|
128
128
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan.model.js","sourceRoot":"","sources":["../../src/priceplan/plan.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAgD;AAChD,yDAAiD;
|
|
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;IAIrB,EAAE,CAAS;IAIX,OAAO,CAAU;IAGjB,IAAI,CAAgB;IAGpB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,WAAW,CAAS;IAIpB,SAAS,CAAO;IAIhB,QAAQ,CAAU;IAGlB,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,WAAW,CAAS;IAIpB,MAAM,CAAU;IAEhB;;OAEG;IAGH,QAAQ,CAAS;IAEjB;;OAEG;IAGH,UAAU,CAAS;IAInB,QAAQ,CAAU;IAIlB,QAAQ,CAAiB;IAIzB,KAAK,CAAiB;IAGtB,UAAU,CAIR;IAGF,YAAY,CAGV;IAEF,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"}
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ContactUsRequestDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const
|
|
14
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
15
15
|
class ContactUsRequestDto {
|
|
16
16
|
name;
|
|
17
17
|
email;
|
|
@@ -22,26 +22,26 @@ exports.ContactUsRequestDto = ContactUsRequestDto;
|
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, class_validator_1.IsNotEmpty)(),
|
|
24
24
|
(0, class_validator_1.IsString)(),
|
|
25
|
-
(0,
|
|
25
|
+
(0, transformers_helper_1.Trim)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], ContactUsRequestDto.prototype, "name", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, class_validator_1.IsNotEmpty)(),
|
|
30
30
|
(0, class_validator_1.IsString)(),
|
|
31
31
|
(0, class_validator_1.IsEmail)(),
|
|
32
|
-
(0,
|
|
32
|
+
(0, transformers_helper_1.Trim)(),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], ContactUsRequestDto.prototype, "email", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, class_validator_1.IsNotEmpty)(),
|
|
37
37
|
(0, class_validator_1.IsString)(),
|
|
38
|
-
(0,
|
|
38
|
+
(0, transformers_helper_1.Trim)(),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], ContactUsRequestDto.prototype, "message", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, class_validator_1.IsNotEmpty)(),
|
|
43
43
|
(0, class_validator_1.IsString)(),
|
|
44
|
-
(0,
|
|
44
|
+
(0, transformers_helper_1.Trim)(),
|
|
45
45
|
__metadata("design:type", String)
|
|
46
46
|
], ContactUsRequestDto.prototype, "recaptchaToken", void 0);
|
|
47
47
|
//# sourceMappingURL=contac-us.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contac-us.dto.js","sourceRoot":"","sources":["../../src/public/contac-us.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;
|
|
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;IAK/B,IAAI,CAAU;IAMd,KAAK,CAAU;IAKf,OAAO,CAAU;IAKjB,cAAc,CAAU;CACxB;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"}
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ContactSalesRequestDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const
|
|
14
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
15
15
|
class ContactSalesRequestDto {
|
|
16
16
|
name;
|
|
17
17
|
email;
|
|
@@ -25,45 +25,45 @@ exports.ContactSalesRequestDto = ContactSalesRequestDto;
|
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_validator_1.IsNotEmpty)(),
|
|
27
27
|
(0, class_validator_1.IsString)(),
|
|
28
|
-
(0,
|
|
28
|
+
(0, transformers_helper_1.Trim)(),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
30
|
], ContactSalesRequestDto.prototype, "name", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
(0, class_validator_1.IsNotEmpty)(),
|
|
33
33
|
(0, class_validator_1.IsString)(),
|
|
34
34
|
(0, class_validator_1.IsEmail)(),
|
|
35
|
-
(0,
|
|
35
|
+
(0, transformers_helper_1.Trim)(),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], ContactSalesRequestDto.prototype, "email", void 0);
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, class_validator_1.IsNotEmpty)(),
|
|
40
40
|
(0, class_validator_1.IsString)(),
|
|
41
41
|
(0, class_validator_1.IsPhoneNumber)(),
|
|
42
|
-
(0,
|
|
42
|
+
(0, transformers_helper_1.Trim)(),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], ContactSalesRequestDto.prototype, "phone", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, class_validator_1.IsNotEmpty)(),
|
|
47
47
|
(0, class_validator_1.IsString)(),
|
|
48
|
-
(0,
|
|
48
|
+
(0, transformers_helper_1.Trim)(),
|
|
49
49
|
__metadata("design:type", String)
|
|
50
50
|
], ContactSalesRequestDto.prototype, "country", void 0);
|
|
51
51
|
__decorate([
|
|
52
52
|
(0, class_validator_1.IsNotEmpty)(),
|
|
53
53
|
(0, class_validator_1.IsString)(),
|
|
54
|
-
(0,
|
|
54
|
+
(0, transformers_helper_1.Trim)(),
|
|
55
55
|
__metadata("design:type", String)
|
|
56
56
|
], ContactSalesRequestDto.prototype, "subject", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, class_validator_1.IsNotEmpty)(),
|
|
59
59
|
(0, class_validator_1.IsString)(),
|
|
60
|
-
(0,
|
|
60
|
+
(0, transformers_helper_1.Trim)(),
|
|
61
61
|
__metadata("design:type", String)
|
|
62
62
|
], ContactSalesRequestDto.prototype, "message", void 0);
|
|
63
63
|
__decorate([
|
|
64
64
|
(0, class_validator_1.IsNotEmpty)(),
|
|
65
65
|
(0, class_validator_1.IsString)(),
|
|
66
|
-
(0,
|
|
66
|
+
(0, transformers_helper_1.Trim)(),
|
|
67
67
|
__metadata("design:type", String)
|
|
68
68
|
], ContactSalesRequestDto.prototype, "recaptchaToken", void 0);
|
|
69
69
|
//# sourceMappingURL=contact-sales.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-sales.dto.js","sourceRoot":"","sources":["../../src/public/contact-sales.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+E;
|
|
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;IAKlC,IAAI,CAAU;IAMd,KAAK,CAAU;IAMf,KAAK,CAAU;IAKf,OAAO,CAAU;IAKjB,OAAO,CAAU;IAKjB,OAAO,CAAU;IAKjB,cAAc,CAAU;CACxB;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"}
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CountrySupportRequestDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const
|
|
14
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
15
15
|
class CountrySupportRequestDto {
|
|
16
16
|
country;
|
|
17
17
|
email;
|
|
@@ -22,26 +22,26 @@ exports.CountrySupportRequestDto = CountrySupportRequestDto;
|
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, class_validator_1.IsNotEmpty)(),
|
|
24
24
|
(0, class_validator_1.IsString)(),
|
|
25
|
-
(0,
|
|
25
|
+
(0, transformers_helper_1.Trim)(),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], CountrySupportRequestDto.prototype, "country", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, class_validator_1.IsNotEmpty)(),
|
|
30
30
|
(0, class_validator_1.IsString)(),
|
|
31
31
|
(0, class_validator_1.IsEmail)(),
|
|
32
|
-
(0,
|
|
32
|
+
(0, transformers_helper_1.Trim)(),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], CountrySupportRequestDto.prototype, "email", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, class_validator_1.IsNotEmpty)(),
|
|
37
37
|
(0, class_validator_1.IsString)(),
|
|
38
|
-
(0,
|
|
38
|
+
(0, transformers_helper_1.Trim)(),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], CountrySupportRequestDto.prototype, "message", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, class_validator_1.IsNotEmpty)(),
|
|
43
43
|
(0, class_validator_1.IsString)(),
|
|
44
|
-
(0,
|
|
44
|
+
(0, transformers_helper_1.Trim)(),
|
|
45
45
|
__metadata("design:type", String)
|
|
46
46
|
], CountrySupportRequestDto.prototype, "recaptchaToken", void 0);
|
|
47
47
|
//# sourceMappingURL=country-support.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country-support.dto.js","sourceRoot":"","sources":["../../src/public/country-support.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;
|
|
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;IAKpC,OAAO,CAAU;IAMjB,KAAK,CAAU;IAKf,OAAO,CAAU;IAKjB,cAAc,CAAU;CACxB;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"}
|
package/lib/refund/refund.dto.js
CHANGED
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SubmitRefundDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const
|
|
14
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
15
15
|
class SubmitRefundDto {
|
|
16
16
|
amount;
|
|
17
17
|
description;
|
|
@@ -25,7 +25,7 @@ __decorate([
|
|
|
25
25
|
], SubmitRefundDto.prototype, "amount", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, class_validator_1.IsOptional)(),
|
|
28
|
-
(0,
|
|
28
|
+
(0, transformers_helper_1.Trim)(),
|
|
29
29
|
(0, class_validator_1.IsString)(),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], SubmitRefundDto.prototype, "description", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refund.dto.js","sourceRoot":"","sources":["../../src/refund/refund.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAClF,
|
|
1
|
+
{"version":3,"file":"refund.dto.js","sourceRoot":"","sources":["../../src/refund/refund.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAClF,sEAAoD;AACpD,MAAa,eAAe;IAI3B,MAAM,CAAS;IAKf,WAAW,CAAS;CACpB;AAVD,0CAUC;AANA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;+CACQ;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAI,GAAE;IACN,IAAA,0BAAQ,GAAE;;oDACS"}
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SettingValueDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const
|
|
14
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
15
15
|
class SettingValueDto {
|
|
16
16
|
value;
|
|
17
17
|
}
|
|
@@ -19,7 +19,7 @@ exports.SettingValueDto = SettingValueDto;
|
|
|
19
19
|
__decorate([
|
|
20
20
|
(0, class_validator_1.IsNotEmpty)(),
|
|
21
21
|
(0, class_validator_1.IsString)(),
|
|
22
|
-
(0,
|
|
22
|
+
(0, transformers_helper_1.Trim)(),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
24
|
], SettingValueDto.prototype, "value", void 0);
|
|
25
25
|
//# sourceMappingURL=setting.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setting.dto.js","sourceRoot":"","sources":["../../src/setting/setting.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"setting.dto.js","sourceRoot":"","sources":["../../src/setting/setting.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,sEAAoD;AACpD,MAAa,eAAe;IAI3B,KAAK,CAAS;CACd;AALD,0CAKC;AADA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;8CACO"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, StatusType } from "@driveup/shared";
|
|
2
|
-
import { Metric } from "../metric";
|
|
3
|
-
import { Training } from "../training";
|
|
2
|
+
import { Metric } from "../metric/metric.model";
|
|
3
|
+
import { Training } from "../training/training.model";
|
|
4
4
|
export declare class Student {
|
|
5
5
|
id: number;
|
|
6
6
|
createdOn: Date;
|
|
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Student = void 0;
|
|
13
13
|
const shared_1 = require("@driveup/shared");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const
|
|
16
|
-
const
|
|
15
|
+
const metric_model_1 = require("../metric/metric.model");
|
|
16
|
+
const training_model_1 = require("../training/training.model");
|
|
17
17
|
class Student {
|
|
18
18
|
id;
|
|
19
19
|
createdOn;
|
|
@@ -84,7 +84,7 @@ __decorate([
|
|
|
84
84
|
], Student.prototype, "totalPayments", void 0);
|
|
85
85
|
__decorate([
|
|
86
86
|
(0, class_transformer_1.Expose)(),
|
|
87
|
-
(0, class_transformer_1.Type)(() =>
|
|
87
|
+
(0, class_transformer_1.Type)(() => training_model_1.Training),
|
|
88
88
|
__metadata("design:type", Array)
|
|
89
89
|
], Student.prototype, "drivingTrainings", void 0);
|
|
90
90
|
__decorate([
|
|
@@ -108,7 +108,7 @@ __decorate([
|
|
|
108
108
|
], Student.prototype, "attended", void 0);
|
|
109
109
|
__decorate([
|
|
110
110
|
(0, class_transformer_1.Expose)(),
|
|
111
|
-
(0, class_transformer_1.Type)(() =>
|
|
111
|
+
(0, class_transformer_1.Type)(() => metric_model_1.Metric),
|
|
112
112
|
__metadata("design:type", Array)
|
|
113
113
|
], Student.prototype, "metrics", void 0);
|
|
114
114
|
//# sourceMappingURL=student.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"student.model.js","sourceRoot":"","sources":["../../src/student/student.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAsD;AACtD,yDAAiD;
|
|
1
|
+
{"version":3,"file":"student.model.js","sourceRoot":"","sources":["../../src/student/student.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAsD;AACtD,yDAAiD;AACjD,yDAAgD;AAChD,+DAAsD;AAEtD,MAAa,OAAO;IAInB,EAAE,CAAS;IAIX,SAAS,CAAO;IAGhB,IAAI,CAAS;IAGb,KAAK,CAAS;IAId,OAAO,CAAU;IAIjB,QAAQ,CAAO;IAGf,MAAM,CAAa;IAGnB,KAAK,CAAS;IAId,OAAO,CAAS;IAIhB,aAAa,CAAS;IAItB,gBAAgB,CAAa;IAI7B,UAAU,CAAS;IAInB,aAAa,CAAS;IAGtB,cAAc,CAAa;IAI3B,QAAQ,CAAU;IAIlB,OAAO,CAAW;IAElB,YAAY,KAAwB;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhED,0BAgEC;AA5DA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;mCACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;0CAAC;AAGhB;IADC,IAAA,0BAAM,GAAE;;qCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;sCACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gBAAO,CAAC;8BACX,gBAAO;wCAAC;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACP,IAAI;yCAAC;AAGf;IADC,IAAA,0BAAM,GAAE;;uCACU;AAGnB;IADC,IAAA,0BAAM,GAAE;;sCACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACH;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACG;AAItB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC;;iDACQ;AAI7B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2CACA;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACG;AAGtB;IADC,IAAA,0BAAM,GAAE;;+CACkB;AAI3B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;yCACF;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAM,CAAC;;wCACD"}
|
package/lib/task/task.dto.js
CHANGED
|
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.TaskFilterDto = exports.TaskUpdateDto = exports.TaskCreateDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
14
|
+
const compare_validator_1 = require("../utils/compare.validator");
|
|
15
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
16
16
|
class TaskCreateDto {
|
|
17
17
|
instructorId;
|
|
18
18
|
title;
|
|
@@ -30,14 +30,14 @@ __decorate([
|
|
|
30
30
|
], TaskCreateDto.prototype, "instructorId", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
-
(0,
|
|
33
|
+
(0, transformers_helper_1.Trim)(),
|
|
34
34
|
(0, class_validator_1.IsString)(),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], TaskCreateDto.prototype, "title", void 0);
|
|
37
37
|
__decorate([
|
|
38
38
|
(0, class_validator_1.IsNotEmpty)(),
|
|
39
39
|
(0, class_validator_1.IsDate)(),
|
|
40
|
-
(0, class_validator_1.Validate)(
|
|
40
|
+
(0, class_validator_1.Validate)(compare_validator_1.CompareWithEndDate),
|
|
41
41
|
__metadata("design:type", Date)
|
|
42
42
|
], TaskCreateDto.prototype, "startDate", void 0);
|
|
43
43
|
__decorate([
|
|
@@ -71,14 +71,14 @@ __decorate([
|
|
|
71
71
|
], TaskUpdateDto.prototype, "instructorId", void 0);
|
|
72
72
|
__decorate([
|
|
73
73
|
(0, class_validator_1.IsNotEmpty)(),
|
|
74
|
-
(0,
|
|
74
|
+
(0, transformers_helper_1.Trim)(),
|
|
75
75
|
(0, class_validator_1.IsString)(),
|
|
76
76
|
__metadata("design:type", String)
|
|
77
77
|
], TaskUpdateDto.prototype, "title", void 0);
|
|
78
78
|
__decorate([
|
|
79
79
|
(0, class_validator_1.IsNotEmpty)(),
|
|
80
80
|
(0, class_validator_1.IsDate)(),
|
|
81
|
-
(0, class_validator_1.Validate)(
|
|
81
|
+
(0, class_validator_1.Validate)(compare_validator_1.CompareWithEndDate),
|
|
82
82
|
__metadata("design:type", Date)
|
|
83
83
|
], TaskUpdateDto.prototype, "startDate", void 0);
|
|
84
84
|
__decorate([
|
|
@@ -107,21 +107,21 @@ class TaskFilterDto {
|
|
|
107
107
|
exports.TaskFilterDto = TaskFilterDto;
|
|
108
108
|
__decorate([
|
|
109
109
|
(0, class_validator_1.IsOptional)(),
|
|
110
|
-
(0,
|
|
110
|
+
(0, transformers_helper_1.ToNumberArray)(),
|
|
111
111
|
(0, class_validator_1.IsArray)(),
|
|
112
112
|
(0, class_validator_1.IsNumber)({}, { each: true }),
|
|
113
113
|
__metadata("design:type", Array)
|
|
114
114
|
], TaskFilterDto.prototype, "instructors", void 0);
|
|
115
115
|
__decorate([
|
|
116
116
|
(0, class_validator_1.IsOptional)(),
|
|
117
|
-
(0,
|
|
117
|
+
(0, transformers_helper_1.Trim)(),
|
|
118
118
|
(0, class_validator_1.IsString)(),
|
|
119
119
|
__metadata("design:type", String)
|
|
120
120
|
], TaskFilterDto.prototype, "title", void 0);
|
|
121
121
|
__decorate([
|
|
122
122
|
(0, class_validator_1.IsNotEmpty)(),
|
|
123
123
|
(0, class_validator_1.IsDate)(),
|
|
124
|
-
(0, class_validator_1.Validate)(
|
|
124
|
+
(0, class_validator_1.Validate)(compare_validator_1.CompareWithEndDate),
|
|
125
125
|
__metadata("design:type", Date)
|
|
126
126
|
], TaskFilterDto.prototype, "startDate", void 0);
|
|
127
127
|
__decorate([
|
package/lib/task/task.dto.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.dto.js","sourceRoot":"","sources":["../../src/task/task.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwH;AACxH,
|
|
1
|
+
{"version":3,"file":"task.dto.js","sourceRoot":"","sources":["../../src/task/task.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwH;AACxH,kEAAgE;AAChE,sEAAmE;AACnE,MAAa,aAAa;IAIzB,YAAY,CAAS;IAKrB,KAAK,CAAS;IAKd,SAAS,CAAO;IAIhB,OAAO,CAAO;IAId,MAAM,CAAU;IAIhB,IAAI,CAAU;CACd;AA3BD,sCA2BC;AAvBA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;mDACc;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAI,GAAE;IACN,IAAA,0BAAQ,GAAE;;4CACG;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAQ,EAAC,sCAAkB,CAAC;8BAClB,IAAI;gDAAC;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACA,IAAI;8CAAC;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;6CACI;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;2CACE;AAGf,MAAa,aAAa;IAGzB,YAAY,CAAS;IAKrB,KAAK,CAAS;IAKd,SAAS,CAAO;IAIhB,OAAO,CAAO;IAId,MAAM,CAAU;IAIhB,IAAI,CAAU;CACd;AA1BD,sCA0BC;AAvBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACU;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAI,GAAE;IACN,IAAA,0BAAQ,GAAE;;4CACG;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAQ,EAAC,sCAAkB,CAAC;8BAClB,IAAI;gDAAC;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACA,IAAI;8CAAC;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;6CACI;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;2CACE;AAGf,MAAa,aAAa;IAKzB,WAAW,CAAW;IAKtB,KAAK,CAAS;IAKd,SAAS,CAAO;IAIhB,OAAO,CAAO;IAId,MAAM,CAAU;IAIhB,IAAI,CAAU;CACd;AA5BD,sCA4BC;AAvBA;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,mCAAa,GAAE;IACf,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDACP;AAKtB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAI,GAAE;IACN,IAAA,0BAAQ,GAAE;;4CACG;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,0BAAQ,EAAC,sCAAkB,CAAC;8BAClB,IAAI;gDAAC;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACA,IAAI;8CAAC;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;6CACI;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;2CACE"}
|
package/lib/ticket/ticket.dto.js
CHANGED
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.TicketFilterDto = exports.TicketSubmitDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const shared_1 = require("@driveup/shared");
|
|
15
|
-
const
|
|
15
|
+
const transformers_helper_1 = require("../utils/transformers.helper");
|
|
16
16
|
class TicketSubmitDto {
|
|
17
17
|
name;
|
|
18
18
|
description;
|
|
@@ -26,13 +26,13 @@ exports.TicketSubmitDto = TicketSubmitDto;
|
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, class_validator_1.IsOptional)(),
|
|
28
28
|
(0, class_validator_1.IsString)(),
|
|
29
|
-
(0,
|
|
29
|
+
(0, transformers_helper_1.Trim)(),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], TicketSubmitDto.prototype, "name", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, class_validator_1.IsOptional)(),
|
|
34
34
|
(0, class_validator_1.IsString)(),
|
|
35
|
-
(0,
|
|
35
|
+
(0, transformers_helper_1.Trim)(),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], TicketSubmitDto.prototype, "description", void 0);
|
|
38
38
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ticket.dto.js","sourceRoot":"","sources":["../../src/ticket/ticket.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0G;AAC1G,4CAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"ticket.dto.js","sourceRoot":"","sources":["../../src/ticket/ticket.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0G;AAC1G,4CAA6C;AAC7C,sEAAoD;AACpD,MAAa,eAAe;IAI3B,IAAI,CAAU;IAKd,WAAW,CAAU;IAIrB,IAAI,CAAa;IAEjB,6EAA6E;IAK7E,WAAW,CAAU;IAIrB,KAAK,CAAU;IAIf,KAAK,CAAU;CACf;AA7BD,0CA6BC;AAzBA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;6CACO;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAI,GAAE;;oDACc;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,mBAAU,CAAC;;6CACF;AAOjB;IAHC,IAAA,4BAAU,EAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,mBAAU,CAAC,cAAc,CAAC;IACrD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;8CACK;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACI;AAGhB,MAAa,eAAe;IAG3B,IAAI,CAAa;CACjB;AAJD,0CAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,mBAAU,CAAC;;6CACF"}
|