@intelact/driveup 1.7.0 → 1.7.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.model.d.ts +1 -2
- package/lib/agent/agent.model.js +3 -4
- package/lib/agent/agent.model.js.map +1 -1
- package/lib/calendar/holiday.d.ts +1 -5
- package/lib/calendar/holiday.js +3 -20
- package/lib/calendar/holiday.js.map +1 -1
- package/lib/common/index.d.ts +0 -2
- package/lib/common/index.js +0 -2
- package/lib/common/index.js.map +1 -1
- package/lib/common/person.d.ts +1 -0
- package/lib/common/person.js +22 -0
- package/lib/common/person.js.map +1 -1
- package/lib/company/company.model.d.ts +6 -7
- package/lib/company/company.model.js +10 -11
- package/lib/company/company.model.js.map +1 -1
- package/lib/credit/credit.model.d.ts +1 -2
- package/lib/credit/credit.model.js +1 -3
- package/lib/credit/credit.model.js.map +1 -1
- package/lib/discount/discount.model.d.ts +3 -4
- package/lib/discount/discount.model.js +4 -8
- package/lib/discount/discount.model.js.map +1 -1
- package/lib/driving/exam/exam.dto.d.ts +1 -2
- package/lib/driving/exam/exam.dto.js +2 -3
- package/lib/driving/exam/exam.dto.js.map +1 -1
- package/lib/driving/exam/exam.model.d.ts +1 -2
- package/lib/driving/exam/exam.model.js +3 -4
- package/lib/driving/exam/exam.model.js.map +1 -1
- package/lib/expense/expense.model.d.ts +5 -6
- package/lib/expense/expense.model.js +5 -10
- package/lib/expense/expense.model.js.map +1 -1
- package/lib/feedback/feedback.model.d.ts +1 -2
- package/lib/feedback/feedback.model.js +2 -4
- package/lib/feedback/feedback.model.js.map +1 -1
- package/lib/finance/finance.model.d.ts +6 -7
- package/lib/finance/finance.model.js +6 -11
- package/lib/finance/finance.model.js.map +1 -1
- package/lib/geo/address.dto.d.ts +1 -1
- package/lib/geo/address.dto.js +2 -2
- package/lib/geo/address.dto.js.map +1 -1
- package/lib/geo/index.d.ts +0 -2
- package/lib/geo/index.js +0 -2
- package/lib/geo/index.js.map +1 -1
- package/lib/geo/pickup.model.d.ts +1 -1
- package/lib/geo/pickup.model.js +3 -3
- package/lib/geo/pickup.model.js.map +1 -1
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -4
- package/lib/index.js.map +1 -1
- package/lib/instructor/instructor.model.d.ts +4 -7
- package/lib/instructor/instructor.model.js +6 -11
- package/lib/instructor/instructor.model.js.map +1 -1
- package/lib/invoice/invoice.model.d.ts +6 -8
- package/lib/invoice/invoice.model.js +8 -14
- package/lib/invoice/invoice.model.js.map +1 -1
- package/lib/license/license.model.d.ts +2 -0
- package/lib/license/license.model.js +10 -0
- package/lib/license/license.model.js.map +1 -1
- package/lib/notification/notification.model.d.ts +3 -4
- package/lib/notification/notification.model.js +5 -5
- package/lib/notification/notification.model.js.map +1 -1
- package/lib/payment/payment.model.d.ts +3 -4
- package/lib/payment/payment.model.js +4 -8
- package/lib/payment/payment.model.js.map +1 -1
- package/lib/payout/payout.model.d.ts +2 -4
- package/lib/payout/payout.model.js +4 -7
- package/lib/payout/payout.model.js.map +1 -1
- package/lib/priceplan/plan.model.d.ts +1 -2
- package/lib/priceplan/plan.model.js +1 -7
- package/lib/priceplan/plan.model.js.map +1 -1
- package/lib/refund/refund.model.d.ts +4 -6
- package/lib/refund/refund.model.js +6 -11
- package/lib/refund/refund.model.js.map +1 -1
- package/lib/session/driving/session.model.d.ts +4 -4
- package/lib/session/driving/session.model.js +6 -6
- package/lib/session/driving/session.model.js.map +1 -1
- package/lib/session/driving/session.topic.d.ts +3 -4
- package/lib/session/driving/session.topic.js +3 -5
- package/lib/session/driving/session.topic.js.map +1 -1
- package/lib/training/driving.model.d.ts +1 -1
- package/lib/training/driving.model.js +1 -1
- package/lib/training/driving.model.js.map +1 -1
- package/lib/training/request.model.d.ts +4 -5
- package/lib/training/request.model.js +5 -9
- package/lib/training/request.model.js.map +1 -1
- package/lib/training/training.dto.d.ts +5 -2
- package/lib/training/training.dto.js +13 -3
- package/lib/training/training.dto.js.map +1 -1
- package/lib/training/training.model.d.ts +7 -9
- package/lib/training/training.model.js +9 -15
- package/lib/training/training.model.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/user/profile.dto.d.ts +0 -3
- package/lib/user/profile.dto.js +2 -12
- package/lib/user/profile.dto.js.map +1 -1
- package/lib/user/user.model.d.ts +5 -8
- package/lib/user/user.model.js +7 -10
- package/lib/user/user.model.js.map +1 -1
- package/package.json +2 -2
|
@@ -10,9 +10,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Payment = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
13
|
const shared_1 = require("@driveup/shared");
|
|
15
|
-
const
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
15
|
const training_model_1 = require("../training/training.model");
|
|
17
16
|
class Payment {
|
|
18
17
|
id;
|
|
@@ -70,8 +69,7 @@ __decorate([
|
|
|
70
69
|
], Payment.prototype, "originalItem", void 0);
|
|
71
70
|
__decorate([
|
|
72
71
|
(0, class_transformer_1.Expose)(),
|
|
73
|
-
(
|
|
74
|
-
__metadata("design:type", instructor_model_1.Instructor)
|
|
72
|
+
__metadata("design:type", Object)
|
|
75
73
|
], Payment.prototype, "createdBy", void 0);
|
|
76
74
|
__decorate([
|
|
77
75
|
(0, class_transformer_1.Expose)(),
|
|
@@ -80,8 +78,7 @@ __decorate([
|
|
|
80
78
|
], Payment.prototype, "createdOn", void 0);
|
|
81
79
|
__decorate([
|
|
82
80
|
(0, class_transformer_1.Expose)(),
|
|
83
|
-
(
|
|
84
|
-
__metadata("design:type", instructor_model_1.Instructor)
|
|
81
|
+
__metadata("design:type", Object)
|
|
85
82
|
], Payment.prototype, "approvedBy", void 0);
|
|
86
83
|
__decorate([
|
|
87
84
|
(0, class_transformer_1.Expose)(),
|
|
@@ -90,8 +87,7 @@ __decorate([
|
|
|
90
87
|
], Payment.prototype, "approvedOn", void 0);
|
|
91
88
|
__decorate([
|
|
92
89
|
(0, class_transformer_1.Expose)(),
|
|
93
|
-
(
|
|
94
|
-
__metadata("design:type", instructor_model_1.Instructor)
|
|
90
|
+
__metadata("design:type", Object)
|
|
95
91
|
], Payment.prototype, "canceledBy", void 0);
|
|
96
92
|
__decorate([
|
|
97
93
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.model.js","sourceRoot":"","sources":["../../src/payment/payment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"payment.model.js","sourceRoot":"","sources":["../../src/payment/payment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwE;AACxE,yDAAiD;AAEjD,+DAAsD;AAEtD,MAAa,OAAO;IAInB,EAAE,CAAS;IAIX,MAAM,CAAS;IAGf,IAAI,CAAc;IAGlB,WAAW,CAAS;IAGpB,MAAM,CAAa;IAGnB,YAAY,CAAe;IAE3B;;OAEG;IAGH,YAAY,CAAU;IAGtB,SAAS,CAAM;IAIf,SAAS,CAAO;IAGhB,UAAU,CAAM;IAIhB,UAAU,CAAO;IAGjB,UAAU,CAAM;IAIhB,UAAU,CAAO;IAIjB,QAAQ,CAAW;IAEnB,YAAY,KAAwB;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAzDD,0BAyDC;AArDA;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,MAAM,CAAC;;uCACJ;AAGf;IADC,IAAA,0BAAM,GAAE;;qCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;4CACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;uCACU;AAGnB;IADC,IAAA,0BAAM,GAAE;;6CACkB;AAO3B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;8BACN,OAAO;6CAAC;AAGtB;IADC,IAAA,0BAAM,GAAE;;0CACM;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;0CAAC;AAGhB;IADC,IAAA,0BAAM,GAAE;;2CACO;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;2CAAC;AAGjB;IADC,IAAA,0BAAM,GAAE;;2CACO;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;2CAAC;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC;8BACX,yBAAQ;yCAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { StatusType } from "@driveup/shared";
|
|
2
|
-
import { BankAccount } from "../bank/account.model";
|
|
3
|
-
import { Instructor } from "../instructor";
|
|
1
|
+
import { BankAccount, StatusType } from "@driveup/shared";
|
|
4
2
|
export declare class AgentPayout {
|
|
5
3
|
id: number;
|
|
6
4
|
status: StatusType;
|
|
@@ -8,7 +6,7 @@ export declare class AgentPayout {
|
|
|
8
6
|
endDate: Date;
|
|
9
7
|
bank: BankAccount;
|
|
10
8
|
amount: number;
|
|
11
|
-
createdBy:
|
|
9
|
+
createdBy: any;
|
|
12
10
|
createdOn: Date;
|
|
13
11
|
constructor(props?: Partial<AgentPayout>);
|
|
14
12
|
}
|
|
@@ -10,10 +10,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AgentPayout = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
13
|
const shared_1 = require("@driveup/shared");
|
|
15
|
-
const
|
|
16
|
-
const instructor_1 = require("../instructor");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
17
15
|
class AgentPayout {
|
|
18
16
|
id;
|
|
19
17
|
status;
|
|
@@ -49,8 +47,8 @@ __decorate([
|
|
|
49
47
|
], AgentPayout.prototype, "endDate", void 0);
|
|
50
48
|
__decorate([
|
|
51
49
|
(0, class_transformer_1.Expose)(),
|
|
52
|
-
(0, class_transformer_1.Type)(() =>
|
|
53
|
-
__metadata("design:type",
|
|
50
|
+
(0, class_transformer_1.Type)(() => shared_1.BankAccount),
|
|
51
|
+
__metadata("design:type", shared_1.BankAccount)
|
|
54
52
|
], AgentPayout.prototype, "bank", void 0);
|
|
55
53
|
__decorate([
|
|
56
54
|
(0, class_transformer_1.Expose)(),
|
|
@@ -59,8 +57,7 @@ __decorate([
|
|
|
59
57
|
], AgentPayout.prototype, "amount", void 0);
|
|
60
58
|
__decorate([
|
|
61
59
|
(0, class_transformer_1.Expose)(),
|
|
62
|
-
(
|
|
63
|
-
__metadata("design:type", instructor_1.Instructor)
|
|
60
|
+
__metadata("design:type", Object)
|
|
64
61
|
], AgentPayout.prototype, "createdBy", void 0);
|
|
65
62
|
__decorate([
|
|
66
63
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payout.model.js","sourceRoot":"","sources":["../../src/payout/payout.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"payout.model.js","sourceRoot":"","sources":["../../src/payout/payout.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA0D;AAC1D,yDAAiD;AAEjD,MAAa,WAAW;IAIvB,EAAE,CAAS;IAGX,MAAM,CAAa;IAInB,SAAS,CAAO;IAIhB,OAAO,CAAO;IAId,IAAI,CAAc;IAIlB,MAAM,CAAS;IAGf,SAAS,CAAM;IAIf,SAAS,CAAO;IAEhB,YAAY,KAA4B;QACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAnCD,kCAmCC;AA/BA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;2CACU;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;8CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;4CAAC;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oBAAW,CAAC;8BAClB,oBAAW;yCAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2CACJ;AAGf;IADC,IAAA,0BAAM,GAAE;;8CACM;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;8CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PricePlanType } from '@driveup/shared';
|
|
2
|
-
import { Item } from '../item';
|
|
3
2
|
import { Country } from '../country';
|
|
3
|
+
import { Item } from '../item';
|
|
4
4
|
export declare class PricePlan {
|
|
5
5
|
id: number;
|
|
6
6
|
country: Country;
|
|
@@ -9,7 +9,6 @@ export declare class PricePlan {
|
|
|
9
9
|
title: string;
|
|
10
10
|
description: string;
|
|
11
11
|
startDate: Date;
|
|
12
|
-
endDate: Date;
|
|
13
12
|
featured: string;
|
|
14
13
|
icon: string;
|
|
15
14
|
price: number;
|
|
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.PricePlan = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const shared_1 = require("@driveup/shared");
|
|
15
|
-
const item_1 = require("../item");
|
|
16
15
|
const country_1 = require("../country");
|
|
16
|
+
const item_1 = require("../item");
|
|
17
17
|
class PricePlan {
|
|
18
18
|
id;
|
|
19
19
|
country;
|
|
@@ -22,7 +22,6 @@ class PricePlan {
|
|
|
22
22
|
title;
|
|
23
23
|
description;
|
|
24
24
|
startDate;
|
|
25
|
-
endDate;
|
|
26
25
|
featured;
|
|
27
26
|
icon;
|
|
28
27
|
price;
|
|
@@ -77,11 +76,6 @@ __decorate([
|
|
|
77
76
|
(0, class_transformer_1.Type)(() => Date),
|
|
78
77
|
__metadata("design:type", Date)
|
|
79
78
|
], PricePlan.prototype, "startDate", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, class_transformer_1.Expose)(),
|
|
82
|
-
(0, class_transformer_1.Type)(() => Date),
|
|
83
|
-
__metadata("design:type", Date)
|
|
84
|
-
], PricePlan.prototype, "endDate", void 0);
|
|
85
79
|
__decorate([
|
|
86
80
|
(0, class_transformer_1.Expose)(),
|
|
87
81
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan.model.js","sourceRoot":"","sources":["../../src/priceplan/plan.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,4CAAgD;
|
|
1
|
+
{"version":3,"file":"plan.model.js","sourceRoot":"","sources":["../../src/priceplan/plan.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,4CAAgD;AAEhD,wCAAqC;AACrC,kCAA+B;AAE/B,MAAa,SAAS;IAIrB,EAAE,CAAS;IAIX,OAAO,CAAU;IAGjB,IAAI,CAAgB;IAGpB,IAAI,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,CAAC;;yCACJ;AAOhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2CACF;AAOjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACA;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;2CACF;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;2CACQ;AAIzB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;wCACK;AAGtB;IADC,IAAA,0BAAM,GAAE;;6CAOP;AAGF;IADC,IAAA,0BAAM,GAAE;;+CAIP"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { StatusType, TrainingType } from "@driveup/shared";
|
|
2
|
-
import { BankAccount } from "../bank/account.model";
|
|
3
|
-
import { Instructor } from "../instructor/instructor.model";
|
|
1
|
+
import { BankAccount, StatusType, TrainingType } from "@driveup/shared";
|
|
4
2
|
import { Training } from "../training/training.model";
|
|
5
3
|
export declare class Refund {
|
|
6
4
|
id: number;
|
|
@@ -13,11 +11,11 @@ export declare class Refund {
|
|
|
13
11
|
* If this item is a cancellation item for another item, this field contains the original item's information
|
|
14
12
|
*/
|
|
15
13
|
originalItem: Refund;
|
|
16
|
-
createdBy:
|
|
14
|
+
createdBy: any;
|
|
17
15
|
createdOn: Date;
|
|
18
|
-
approvedBy:
|
|
16
|
+
approvedBy: any;
|
|
19
17
|
approvedOn: Date;
|
|
20
|
-
canceledBy:
|
|
18
|
+
canceledBy: any;
|
|
21
19
|
canceledOn: Date;
|
|
22
20
|
training: Training;
|
|
23
21
|
constructor(props?: Partial<Refund>);
|
|
@@ -10,10 +10,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Refund = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
13
|
const shared_1 = require("@driveup/shared");
|
|
15
|
-
const
|
|
16
|
-
const instructor_model_1 = require("../instructor/instructor.model");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
17
15
|
const training_model_1 = require("../training/training.model");
|
|
18
16
|
class Refund {
|
|
19
17
|
id;
|
|
@@ -45,8 +43,8 @@ __decorate([
|
|
|
45
43
|
], Refund.prototype, "id", void 0);
|
|
46
44
|
__decorate([
|
|
47
45
|
(0, class_transformer_1.Expose)(),
|
|
48
|
-
(0, class_transformer_1.Type)(() =>
|
|
49
|
-
__metadata("design:type",
|
|
46
|
+
(0, class_transformer_1.Type)(() => shared_1.BankAccount),
|
|
47
|
+
__metadata("design:type", shared_1.BankAccount)
|
|
50
48
|
], Refund.prototype, "bank", void 0);
|
|
51
49
|
__decorate([
|
|
52
50
|
(0, class_transformer_1.Expose)(),
|
|
@@ -72,8 +70,7 @@ __decorate([
|
|
|
72
70
|
], Refund.prototype, "originalItem", void 0);
|
|
73
71
|
__decorate([
|
|
74
72
|
(0, class_transformer_1.Expose)(),
|
|
75
|
-
(
|
|
76
|
-
__metadata("design:type", instructor_model_1.Instructor)
|
|
73
|
+
__metadata("design:type", Object)
|
|
77
74
|
], Refund.prototype, "createdBy", void 0);
|
|
78
75
|
__decorate([
|
|
79
76
|
(0, class_transformer_1.Expose)(),
|
|
@@ -82,8 +79,7 @@ __decorate([
|
|
|
82
79
|
], Refund.prototype, "createdOn", void 0);
|
|
83
80
|
__decorate([
|
|
84
81
|
(0, class_transformer_1.Expose)(),
|
|
85
|
-
(
|
|
86
|
-
__metadata("design:type", instructor_model_1.Instructor)
|
|
82
|
+
__metadata("design:type", Object)
|
|
87
83
|
], Refund.prototype, "approvedBy", void 0);
|
|
88
84
|
__decorate([
|
|
89
85
|
(0, class_transformer_1.Expose)(),
|
|
@@ -92,8 +88,7 @@ __decorate([
|
|
|
92
88
|
], Refund.prototype, "approvedOn", void 0);
|
|
93
89
|
__decorate([
|
|
94
90
|
(0, class_transformer_1.Expose)(),
|
|
95
|
-
(
|
|
96
|
-
__metadata("design:type", instructor_model_1.Instructor)
|
|
91
|
+
__metadata("design:type", Object)
|
|
97
92
|
], Refund.prototype, "canceledBy", void 0);
|
|
98
93
|
__decorate([
|
|
99
94
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refund.model.js","sourceRoot":"","sources":["../../src/refund/refund.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"refund.model.js","sourceRoot":"","sources":["../../src/refund/refund.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwE;AACxE,yDAAiD;AAEjD,+DAAsD;AAEtD,MAAa,MAAM;IAIlB,EAAE,CAAS;IAIX,IAAI,CAAc;IAIlB,MAAM,CAAS;IAGf,WAAW,CAAS;IAGpB,MAAM,CAAa;IAGnB,YAAY,CAAe;IAE3B;;OAEG;IAGH,YAAY,CAAS;IAGrB,SAAS,CAAM;IAIf,SAAS,CAAO;IAGhB,UAAU,CAAM;IAIhB,UAAU,CAAO;IAGjB,UAAU,CAAM;IAIhB,UAAU,CAAO;IAIjB,QAAQ,CAAW;IAEnB,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA1DD,wBA0DC;AAtDA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kCACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oBAAW,CAAC;8BAClB,oBAAW;oCAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACJ;AAGf;IADC,IAAA,0BAAM,GAAE;;2CACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;sCACU;AAGnB;IADC,IAAA,0BAAM,GAAE;;4CACkB;AAO3B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;8BACL,MAAM;4CAAC;AAGrB;IADC,IAAA,0BAAM,GAAE;;yCACM;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;yCAAC;AAGhB;IADC,IAAA,0BAAM,GAAE;;0CACO;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;0CAAC;AAGjB;IADC,IAAA,0BAAM,GAAE;;0CACO;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;0CAAC;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC;8BACX,yBAAQ;wCAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Note } from "../../note/note.model";
|
|
3
|
-
import { Signature } from "../../signature/signature.model";
|
|
4
|
-
import { DrivingExam } from "../../driving/exam/exam.model";
|
|
1
|
+
import { Note } from "@driveup/shared";
|
|
5
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
6
|
export declare class DrivingSession extends Appointment {
|
|
7
7
|
price: number;
|
|
8
8
|
duration: number;
|
|
@@ -10,12 +10,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.DrivingSession = void 0;
|
|
13
|
+
const shared_1 = require("@driveup/shared");
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const session_topic_1 = require("./session.topic");
|
|
15
|
-
const note_model_1 = require("../../note/note.model");
|
|
16
|
-
const signature_model_1 = require("../../signature/signature.model");
|
|
17
|
-
const exam_model_1 = require("../../driving/exam/exam.model");
|
|
18
15
|
const appointment_1 = require("../../calendar/appointment");
|
|
16
|
+
const exam_model_1 = require("../../driving/exam/exam.model");
|
|
17
|
+
const signature_model_1 = require("../../signature/signature.model");
|
|
18
|
+
const session_topic_1 = require("./session.topic");
|
|
19
19
|
class DrivingSession extends appointment_1.Appointment {
|
|
20
20
|
price;
|
|
21
21
|
duration;
|
|
@@ -47,8 +47,8 @@ __decorate([
|
|
|
47
47
|
], DrivingSession.prototype, "nextTopic", void 0);
|
|
48
48
|
__decorate([
|
|
49
49
|
(0, class_transformer_1.Expose)(),
|
|
50
|
-
(0, class_transformer_1.Type)(() =>
|
|
51
|
-
__metadata("design:type",
|
|
50
|
+
(0, class_transformer_1.Type)(() => shared_1.Note),
|
|
51
|
+
__metadata("design:type", shared_1.Note)
|
|
52
52
|
], DrivingSession.prototype, "note", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.model.js","sourceRoot":"","sources":["../../../src/session/driving/session.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"session.model.js","sourceRoot":"","sources":["../../../src/session/driving/session.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAuC;AACvC,yDAAiD;AAEjD,4DAAyD;AACzD,8DAA4D;AAC5D,qEAA4D;AAC5D,mDAAsD;AAEtD,MAAa,cAAe,SAAQ,yBAAW;IAI9C,KAAK,CAAS;IAId,QAAQ,CAAS;IAGjB,SAAS,CAAsB;IAI/B,IAAI,CAAO;IAIX,SAAS,CAAY;IAErB,0DAA0D;IAI1D,IAAI,CAAc;IAElB,6DAA6D;IAE7D,YAAY,KAA+B;QAC1C,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAjCD,wCAiCC;AA7BA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACL;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACF;AAGjB;IADC,IAAA,0BAAM,GAAE;8BACE,mCAAmB;iDAAC;AAI/B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAI,CAAC;8BACX,aAAI;4CAAC;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2BAAS,CAAC;8BACX,2BAAS;iDAAC;AAMrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wBAAW,CAAC;8BAClB,wBAAW;4CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { DrivingSessionSkill } from "./session.skill";
|
|
2
|
-
import { DrivingTopic } from "../../driving/lesson/topic";
|
|
3
|
-
import { Instructor } from "../../instructor/instructor.model";
|
|
4
1
|
import { StatusType } from "@driveup/shared";
|
|
2
|
+
import { DrivingTopic } from "../../driving/lesson/topic";
|
|
3
|
+
import { DrivingSessionSkill } from "./session.skill";
|
|
5
4
|
export declare class DrivingSessionTopic extends DrivingTopic {
|
|
6
|
-
completedBy:
|
|
5
|
+
completedBy: any;
|
|
7
6
|
completedOn: Date;
|
|
8
7
|
sessionSkills: DrivingSessionSkill[];
|
|
9
8
|
drivingTopicId: number;
|
|
@@ -10,11 +10,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.DrivingSessionTopic = void 0;
|
|
13
|
+
const shared_1 = require("@driveup/shared");
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const session_skill_1 = require("./session.skill");
|
|
15
15
|
const topic_1 = require("../../driving/lesson/topic");
|
|
16
|
-
const
|
|
17
|
-
const shared_1 = require("@driveup/shared");
|
|
16
|
+
const session_skill_1 = require("./session.skill");
|
|
18
17
|
class DrivingSessionTopic extends topic_1.DrivingTopic {
|
|
19
18
|
completedBy;
|
|
20
19
|
completedOn;
|
|
@@ -36,8 +35,7 @@ class DrivingSessionTopic extends topic_1.DrivingTopic {
|
|
|
36
35
|
exports.DrivingSessionTopic = DrivingSessionTopic;
|
|
37
36
|
__decorate([
|
|
38
37
|
(0, class_transformer_1.Expose)(),
|
|
39
|
-
(
|
|
40
|
-
__metadata("design:type", instructor_model_1.Instructor)
|
|
38
|
+
__metadata("design:type", Object)
|
|
41
39
|
], DrivingSessionTopic.prototype, "completedBy", void 0);
|
|
42
40
|
__decorate([
|
|
43
41
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.topic.js","sourceRoot":"","sources":["../../../src/session/driving/session.topic.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"session.topic.js","sourceRoot":"","sources":["../../../src/session/driving/session.topic.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA6C;AAC7C,yDAAiD;AAEjD,sDAA0D;AAC1D,mDAAsD;AAEtD,MAAa,mBAAoB,SAAQ,oBAAY;IAGpD,WAAW,CAAM;IAIjB,WAAW,CAAO;IAIlB,aAAa,CAAwB;IAIrC,cAAc,CAAS;IAEvB,0DAA0D;IAG1D,MAAM,CAAa;IAEnB,YAAY,KAAoC;QAC/C,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,QAAQ;QACP,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM;YAAE,OAAO,IAAI,CAAC;QACtC,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAC7E,OAAO,CAAC,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC;CACD;AAhCD,kDAgCC;AA7BA;IADC,IAAA,0BAAM,GAAE;;wDACQ;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACJ,IAAI;wDAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAmB,CAAC;;0DACK;AAIrC;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2DACI;AAKvB;IADC,IAAA,0BAAM,GAAE;;mDACU"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CarTransmission } from "@driveup/shared";
|
|
2
2
|
import { License } from "../license/license.model";
|
|
3
|
-
import { Training } from "./training.model";
|
|
4
3
|
import { PickupLocation } from "../geo/pickup.model";
|
|
4
|
+
import { Training } from "./training.model";
|
|
5
5
|
export declare class DrivingTraining extends Training {
|
|
6
6
|
transmission: CarTransmission;
|
|
7
7
|
license: License;
|
|
@@ -13,8 +13,8 @@ exports.DrivingTraining = void 0;
|
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const shared_1 = require("@driveup/shared");
|
|
15
15
|
const license_model_1 = require("../license/license.model");
|
|
16
|
-
const training_model_1 = require("./training.model");
|
|
17
16
|
const pickup_model_1 = require("../geo/pickup.model");
|
|
17
|
+
const training_model_1 = require("./training.model");
|
|
18
18
|
class DrivingTraining extends training_model_1.Training {
|
|
19
19
|
transmission;
|
|
20
20
|
license;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driving.model.js","sourceRoot":"","sources":["../../src/training/driving.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,4CAAkD;
|
|
1
|
+
{"version":3,"file":"driving.model.js","sourceRoot":"","sources":["../../src/training/driving.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,4CAAkD;AAElD,4DAAmD;AACnD,sDAAqD;AACrD,qDAA4C;AAE5C,MAAa,eAAgB,SAAQ,yBAAQ;IAG5C,YAAY,CAAkB;IAG9B,OAAO,CAAU;IAIjB,YAAY,CAAS;IAIrB,iBAAiB,CAAS;IAI1B,gBAAgB,CAAS;IAIzB,cAAc,CAAiB;IAI/B,iBAAiB,CAAS;IAE1B,qEAAqE;IAIrE,iBAAiB,CAAO;IAExB,6DAA6D;IAE7D,YAAY,KAAgC;QAC3C,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAxCD,0CAwCC;AArCA;IADC,IAAA,0BAAM,GAAE;;qDACqB;AAG9B;IADC,IAAA,0BAAM,GAAE;8BACA,uBAAO;gDAAC;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACE;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0DACO;AAI1B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yDACM;AAIzB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,6BAAc,CAAC;8BACX,6BAAc;uDAAC;AAI/B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0DACO;AAM1B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACE,IAAI;0DAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { CarTransmission, StatusType, TrainingType } from "@driveup/shared";
|
|
2
|
-
import { Course } from "../course/course.model";
|
|
3
2
|
import { Company } from "../company/company.model";
|
|
3
|
+
import { Course } from "../course/course.model";
|
|
4
4
|
import { DrivingCategory } from "../driving/category/category.model";
|
|
5
|
-
import { Instructor } from "../instructor/instructor.model";
|
|
6
5
|
export declare class TrainingRequest {
|
|
7
6
|
id: number;
|
|
8
7
|
preferredStartDate: Date;
|
|
@@ -16,11 +15,11 @@ export declare class TrainingRequest {
|
|
|
16
15
|
transmission: CarTransmission;
|
|
17
16
|
drivingCategory: DrivingCategory;
|
|
18
17
|
/************************* tracks *************************/
|
|
19
|
-
createdBy:
|
|
18
|
+
createdBy: any;
|
|
20
19
|
createdOn: Date;
|
|
21
|
-
acceptedBy:
|
|
20
|
+
acceptedBy: any;
|
|
22
21
|
acceptedOn: Date;
|
|
23
|
-
rejectedBy:
|
|
22
|
+
rejectedBy: any;
|
|
24
23
|
rejectedOn: Date;
|
|
25
24
|
constructor(props?: Partial<TrainingRequest>);
|
|
26
25
|
}
|
|
@@ -10,12 +10,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.TrainingRequest = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
13
|
const shared_1 = require("@driveup/shared");
|
|
15
|
-
const
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
15
|
const company_model_1 = require("../company/company.model");
|
|
16
|
+
const course_model_1 = require("../course/course.model");
|
|
17
17
|
const category_model_1 = require("../driving/category/category.model");
|
|
18
|
-
const instructor_model_1 = require("../instructor/instructor.model");
|
|
19
18
|
class TrainingRequest {
|
|
20
19
|
id;
|
|
21
20
|
preferredStartDate;
|
|
@@ -79,8 +78,7 @@ __decorate([
|
|
|
79
78
|
], TrainingRequest.prototype, "drivingCategory", void 0);
|
|
80
79
|
__decorate([
|
|
81
80
|
(0, class_transformer_1.Expose)(),
|
|
82
|
-
(
|
|
83
|
-
__metadata("design:type", instructor_model_1.Instructor)
|
|
81
|
+
__metadata("design:type", Object)
|
|
84
82
|
], TrainingRequest.prototype, "createdBy", void 0);
|
|
85
83
|
__decorate([
|
|
86
84
|
(0, class_transformer_1.Expose)(),
|
|
@@ -89,8 +87,7 @@ __decorate([
|
|
|
89
87
|
], TrainingRequest.prototype, "createdOn", void 0);
|
|
90
88
|
__decorate([
|
|
91
89
|
(0, class_transformer_1.Expose)(),
|
|
92
|
-
(
|
|
93
|
-
__metadata("design:type", instructor_model_1.Instructor)
|
|
90
|
+
__metadata("design:type", Object)
|
|
94
91
|
], TrainingRequest.prototype, "acceptedBy", void 0);
|
|
95
92
|
__decorate([
|
|
96
93
|
(0, class_transformer_1.Expose)(),
|
|
@@ -99,8 +96,7 @@ __decorate([
|
|
|
99
96
|
], TrainingRequest.prototype, "acceptedOn", void 0);
|
|
100
97
|
__decorate([
|
|
101
98
|
(0, class_transformer_1.Expose)(),
|
|
102
|
-
(
|
|
103
|
-
__metadata("design:type", instructor_model_1.Instructor)
|
|
99
|
+
__metadata("design:type", Object)
|
|
104
100
|
], TrainingRequest.prototype, "rejectedBy", void 0);
|
|
105
101
|
__decorate([
|
|
106
102
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.model.js","sourceRoot":"","sources":["../../src/training/request.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"request.model.js","sourceRoot":"","sources":["../../src/training/request.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA4E;AAC5E,yDAAiD;AAEjD,4DAAmD;AACnD,yDAAgD;AAChD,uEAAqE;AAErE,MAAa,eAAe;IAI3B,EAAE,CAAS;IAIX,kBAAkB,CAAO;IAGzB,IAAI,CAAe;IAGnB,MAAM,CAAa;IAEnB,6DAA6D;IAI7D,OAAO,CAAU;IAEjB,6DAA6D;IAI7D,MAAM,CAAS;IAEf,6DAA6D;IAG7D,YAAY,CAAkB;IAI9B,eAAe,CAAkB;IAEjC,4DAA4D;IAG5D,SAAS,CAAM;IAIf,SAAS,CAAO;IAGhB,UAAU,CAAM;IAIhB,UAAU,CAAO;IAGjB,UAAU,CAAM;IAIhB,UAAU,CAAO;IAEjB,YAAY,KAAgC;QAC3C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA/DD,0CA+DC;AA3DA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2CACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACG,IAAI;2DAAC;AAGzB;IADC,IAAA,0BAAM,GAAE;;6CACU;AAGnB;IADC,IAAA,0BAAM,GAAE;;+CACU;AAMnB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uBAAO,CAAC;8BACX,uBAAO;gDAAC;AAMjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAM,CAAC;8BACX,qBAAM;+CAAC;AAKf;IADC,IAAA,0BAAM,GAAE;;qDACqB;AAI9B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAe,CAAC;8BACX,gCAAe;wDAAC;AAKjC;IADC,IAAA,0BAAM,GAAE;;kDACM;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;kDAAC;AAGhB;IADC,IAAA,0BAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;mDAAC;AAGjB;IADC,IAAA,0BAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;mDAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CarTransmission, StatusType, TrainingType } from "@driveup/shared";
|
|
1
|
+
import { CarTransmission, Person, StatusType, TrainingType } from "@driveup/shared";
|
|
2
2
|
export declare class TrainingRatingDto {
|
|
3
3
|
rating: number;
|
|
4
4
|
}
|
|
@@ -38,7 +38,10 @@ export declare class DrivingTrainingFilterDto {
|
|
|
38
38
|
sortOrder: 'acs' | 'desc';
|
|
39
39
|
sortLogic: 'student' | 'status' | 'instructor' | 'createdOn' | 'balance';
|
|
40
40
|
}
|
|
41
|
-
export declare class
|
|
41
|
+
export declare class CreateTrainingDto {
|
|
42
|
+
person: Person;
|
|
43
|
+
}
|
|
44
|
+
export declare class CreateDrivingTrainingDto extends CreateTrainingDto {
|
|
42
45
|
transmission: CarTransmission;
|
|
43
46
|
}
|
|
44
47
|
export declare class DrivingTransmissionDto {
|
|
@@ -9,9 +9,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DrivingTransmissionDto = exports.CreateDrivingTrainingDto = exports.DrivingTrainingFilterDto = exports.CourseTrainingFilterDto = exports.CompanyTrainingFilterDto = exports.InstructorTrainingFilterDto = exports.TrainingRatingDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
12
|
+
exports.DrivingTransmissionDto = exports.CreateDrivingTrainingDto = exports.CreateTrainingDto = exports.DrivingTrainingFilterDto = exports.CourseTrainingFilterDto = exports.CompanyTrainingFilterDto = exports.InstructorTrainingFilterDto = exports.TrainingRatingDto = void 0;
|
|
14
13
|
const shared_1 = require("@driveup/shared");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
15
|
const utils_1 = require("../utils");
|
|
16
16
|
class TrainingRatingDto {
|
|
17
17
|
rating;
|
|
@@ -229,7 +229,17 @@ __decorate([
|
|
|
229
229
|
(0, class_validator_1.IsIn)(['student', 'status', 'instructor', 'createdOn', 'balance']),
|
|
230
230
|
__metadata("design:type", String)
|
|
231
231
|
], DrivingTrainingFilterDto.prototype, "sortLogic", void 0);
|
|
232
|
-
class
|
|
232
|
+
class CreateTrainingDto {
|
|
233
|
+
person;
|
|
234
|
+
}
|
|
235
|
+
exports.CreateTrainingDto = CreateTrainingDto;
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
238
|
+
(0, class_validator_1.IsObject)(),
|
|
239
|
+
(0, class_validator_1.ValidateNested)(),
|
|
240
|
+
__metadata("design:type", shared_1.Person)
|
|
241
|
+
], CreateTrainingDto.prototype, "person", void 0);
|
|
242
|
+
class CreateDrivingTrainingDto extends CreateTrainingDto {
|
|
233
243
|
transmission;
|
|
234
244
|
}
|
|
235
245
|
exports.CreateDrivingTrainingDto = CreateDrivingTrainingDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"training.dto.js","sourceRoot":"","sources":["../../src/training/training.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"training.dto.js","sourceRoot":"","sources":["../../src/training/training.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAoF;AACpF,qDAAqK;AAErK,oCAA4D;AAE5D,MAAa,iBAAiB;IAI7B,MAAM,CAAS;CACf;AALD,8CAKC;AADA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,sBAAI,EAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;;iDACP;AAGhB,MAAa,2BAA2B;IAKvC,QAAQ,CAAe;IAMvB,UAAU,CAAW;IAMrB,QAAQ,CAAW;IAInB,eAAe,CAAU;IAIzB,MAAM,CAAS;IAKf,SAAS,CAAiB;IAKvB,SAAS,CAAmB;CAC/B;AApCD,kEAoCC;AA/BA;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,mBAAW,EAAC,mBAAU,CAAC;;6DACD;AAMvB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAa,GAAE;IACf,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;+DACR;AAMrB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAa,GAAE;IACf,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;6DACV;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;oEACa;AAI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B;IAG9D,YAAY,CAAkB;CAC9B;AAJD,4DAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,wBAAe,CAAC;;8DACM;AAG/B,MAAa,sBAAsB;IAGlC,YAAY,CAAkB;CAC9B;AAJD,wDAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,wBAAe,CAAC;;4DACM"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CourseType, Note, StatusType, TrainingType } from "@driveup/shared";
|
|
2
2
|
import { Company } from "../company/company.model";
|
|
3
|
-
import { Student } from "../student/student.model";
|
|
4
|
-
import { Note } from "../note/note.model";
|
|
5
|
-
import { User } from "../user/user.model";
|
|
6
|
-
import { Instructor } from "../instructor/instructor.model";
|
|
7
3
|
import { DrivingCategory } from "../driving/category/category.model";
|
|
4
|
+
import { Instructor } from "../instructor/instructor.model";
|
|
5
|
+
import { Student } from "../student/student.model";
|
|
8
6
|
export declare class Training {
|
|
9
7
|
id: number;
|
|
10
8
|
/************************* company *************************/
|
|
@@ -75,13 +73,13 @@ export declare class Training {
|
|
|
75
73
|
/************************* last viewed driving topic id *************************/
|
|
76
74
|
lastViewedTopicId: number;
|
|
77
75
|
/************************* tracks *************************/
|
|
78
|
-
createdBy:
|
|
76
|
+
createdBy: any;
|
|
79
77
|
createdOn: Date;
|
|
80
|
-
completedBy:
|
|
78
|
+
completedBy: any;
|
|
81
79
|
completedOn: Date;
|
|
82
|
-
archivedBy:
|
|
80
|
+
archivedBy: any;
|
|
83
81
|
archivedOn: Date;
|
|
84
|
-
terminatedBy:
|
|
82
|
+
terminatedBy: any;
|
|
85
83
|
terminatedOn: Date;
|
|
86
84
|
terminationNote: Note;
|
|
87
85
|
constructor(props?: Partial<Training>);
|