@intelact/driveup 0.1.1 → 0.2.1
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 -4
- package/lib/agent/agent.model.js +10 -18
- package/lib/agent/agent.model.js.map +1 -1
- package/lib/agent/code.model.d.ts +1 -2
- package/lib/agent/code.model.js +10 -11
- package/lib/agent/code.model.js.map +1 -1
- package/lib/agent/payout.model.d.ts +2 -5
- package/lib/agent/payout.model.js +13 -21
- package/lib/agent/payout.model.js.map +1 -1
- package/lib/common/appointment.model.d.ts +13 -0
- package/lib/common/appointment.model.js +79 -0
- package/lib/common/appointment.model.js.map +1 -0
- package/lib/common/date.d.ts +9 -0
- package/lib/common/date.enum.d.ts +9 -0
- package/lib/common/date.enum.js +14 -0
- package/lib/common/date.enum.js.map +1 -0
- package/lib/common/date.js +14 -0
- package/lib/common/date.js.map +1 -0
- package/lib/common/general.dto.d.ts +13 -0
- package/lib/common/general.dto.js +62 -0
- package/lib/common/general.dto.js.map +1 -0
- package/lib/common/index.d.ts +3 -0
- package/lib/common/index.js +20 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/notification.enum.d.ts +11 -0
- package/lib/common/notification.enum.js +17 -0
- package/lib/common/notification.enum.js.map +1 -0
- package/lib/company/account.status.enum.d.ts +7 -0
- package/lib/company/account.status.enum.js +3 -0
- package/lib/company/account.status.enum.js.map +1 -0
- package/lib/company/common/appointment.type.enum.d.ts +4 -0
- package/lib/company/common/appointment.type.enum.js +9 -0
- package/lib/company/common/appointment.type.enum.js.map +1 -0
- package/lib/company/common/index.d.ts +2 -0
- package/lib/company/common/index.js +19 -0
- package/lib/company/common/index.js.map +1 -0
- package/lib/company/common/request.status.enum.d.ts +6 -0
- package/lib/company/common/request.status.enum.js +11 -0
- package/lib/company/common/request.status.enum.js.map +1 -0
- package/lib/company/common/setting.enum.d.ts +7 -0
- package/lib/company/common/setting.enum.js +12 -0
- package/lib/company/common/setting.enum.js.map +1 -0
- package/lib/company/common/training.status.enum.d.ts +11 -0
- package/lib/company/common/training.status.enum.js +17 -0
- package/lib/company/common/training.status.enum.js.map +1 -0
- package/lib/company/company.model.d.ts +5 -23
- package/lib/company/company.model.js +6 -69
- package/lib/company/company.model.js.map +1 -1
- package/lib/company/course/appointment.model.d.ts +7 -10
- package/lib/company/course/appointment.model.js +16 -33
- package/lib/company/course/appointment.model.js.map +1 -1
- package/lib/company/course/course.enum.d.ts +15 -0
- package/lib/company/course/course.enum.js +22 -0
- package/lib/company/course/course.enum.js.map +1 -0
- package/lib/company/course/course.model.d.ts +8 -9
- package/lib/company/course/course.model.js +31 -24
- package/lib/company/course/course.model.js.map +1 -1
- package/lib/company/course/definition.model.d.ts +11 -0
- package/lib/company/course/definition.model.js +57 -0
- package/lib/company/course/definition.model.js.map +1 -0
- package/lib/company/course/finances/discount.model.d.ts +2 -3
- package/lib/company/course/finances/discount.model.js +9 -10
- package/lib/company/course/finances/discount.model.js.map +1 -1
- package/lib/company/course/finances/invoice-item.model.d.ts +1 -2
- package/lib/company/course/finances/invoice-item.model.js +6 -7
- package/lib/company/course/finances/invoice-item.model.js.map +1 -1
- package/lib/company/course/finances/invoice.model.d.ts +3 -8
- package/lib/company/course/finances/invoice.model.js +10 -25
- package/lib/company/course/finances/invoice.model.js.map +1 -1
- package/lib/company/course/finances/payment.model.d.ts +3 -6
- package/lib/company/course/finances/payment.model.js +12 -20
- package/lib/company/course/finances/payment.model.js.map +1 -1
- package/lib/company/course/finances/refund.model.d.ts +2 -3
- package/lib/company/course/finances/refund.model.js +9 -10
- package/lib/company/course/finances/refund.model.js.map +1 -1
- package/lib/company/course/index.d.ts +3 -1
- package/lib/company/course/index.js +3 -1
- package/lib/company/course/index.js.map +1 -1
- package/lib/company/course/part.model.d.ts +4 -6
- package/lib/company/course/part.model.js +15 -17
- package/lib/company/course/part.model.js.map +1 -1
- package/lib/company/driving/appointment.type.enum.d.ts +4 -0
- package/lib/company/driving/appointment.type.enum.js +9 -0
- package/lib/company/driving/appointment.type.enum.js.map +1 -0
- package/lib/company/driving/category.model.d.ts +3 -9
- package/lib/company/driving/category.model.js +14 -35
- package/lib/company/driving/category.model.js.map +1 -1
- package/lib/company/driving/exam.enum.d.ts +5 -0
- package/lib/company/driving/exam.enum.js +10 -0
- package/lib/company/driving/exam.enum.js.map +1 -0
- package/lib/company/driving/exam.status.enum.d.ts +5 -0
- package/lib/company/driving/exam.status.enum.js +10 -0
- package/lib/company/driving/exam.status.enum.js.map +1 -0
- package/lib/company/driving/finances/discount.model.d.ts +2 -3
- package/lib/company/driving/finances/discount.model.js +9 -10
- package/lib/company/driving/finances/discount.model.js.map +1 -1
- package/lib/company/driving/finances/invoice-item.model.d.ts +1 -2
- package/lib/company/driving/finances/invoice-item.model.js +6 -7
- package/lib/company/driving/finances/invoice-item.model.js.map +1 -1
- package/lib/company/driving/finances/invoice.model.d.ts +2 -8
- package/lib/company/driving/finances/invoice.model.js +4 -25
- package/lib/company/driving/finances/invoice.model.js.map +1 -1
- package/lib/company/driving/finances/payment.model.d.ts +3 -6
- package/lib/company/driving/finances/payment.model.js +12 -20
- package/lib/company/driving/finances/payment.model.js.map +1 -1
- package/lib/company/driving/finances/refund.model.d.ts +2 -3
- package/lib/company/driving/finances/refund.model.js +9 -10
- package/lib/company/driving/finances/refund.model.js.map +1 -1
- package/lib/company/driving/index.d.ts +5 -1
- package/lib/company/driving/index.js +5 -1
- package/lib/company/driving/index.js.map +1 -1
- package/lib/company/driving/score.enum.d.ts +12 -0
- package/lib/company/driving/score.enum.js +18 -0
- package/lib/company/driving/score.enum.js.map +1 -0
- package/lib/company/driving/skill.model.d.ts +3 -7
- package/lib/company/driving/skill.model.js +9 -21
- package/lib/company/driving/skill.model.js.map +1 -1
- package/lib/company/driving/status.enum.d.ts +5 -0
- package/lib/company/driving/status.enum.js +10 -0
- package/lib/company/driving/status.enum.js.map +1 -0
- package/lib/company/driving/topic.model.d.ts +3 -9
- package/lib/company/driving/topic.model.js +9 -30
- package/lib/company/driving/topic.model.js.map +1 -1
- package/lib/company/driving/transmission.enum.d.ts +4 -0
- package/lib/company/driving/transmission.enum.js +9 -0
- package/lib/company/driving/transmission.enum.js.map +1 -0
- package/lib/company/event.model.d.ts +1 -4
- package/lib/company/event.model.js +6 -14
- package/lib/company/event.model.js.map +1 -1
- package/lib/company/finances/card.model.d.ts +1 -2
- package/lib/company/finances/card.model.js +5 -6
- package/lib/company/finances/card.model.js.map +1 -1
- package/lib/company/finances/credit.model.d.ts +1 -5
- package/lib/company/finances/credit.model.js +4 -18
- package/lib/company/finances/credit.model.js.map +1 -1
- package/lib/company/finances/expense-category.model.d.ts +1 -4
- package/lib/company/finances/expense-category.model.js +6 -14
- package/lib/company/finances/expense-category.model.js.map +1 -1
- package/lib/company/finances/expense.model.d.ts +3 -6
- package/lib/company/finances/expense.model.js +10 -18
- package/lib/company/finances/expense.model.js.map +1 -1
- package/lib/company/finances/finance.enum.d.ts +22 -0
- package/lib/company/finances/finance.enum.js +31 -0
- package/lib/company/finances/finance.enum.js.map +1 -0
- package/lib/company/finances/index.d.ts +1 -2
- package/lib/company/finances/index.js +1 -2
- package/lib/company/finances/index.js.map +1 -1
- package/lib/company/finances/payment.model.d.ts +4 -5
- package/lib/company/finances/payment.model.js +12 -13
- package/lib/company/finances/payment.model.js.map +1 -1
- package/lib/company/finances/priceplan.model.d.ts +2 -2
- package/lib/company/finances/priceplan.model.js +5 -5
- package/lib/company/finances/priceplan.model.js.map +1 -1
- package/lib/company/index.d.ts +7 -3
- package/lib/company/index.js +7 -3
- package/lib/company/index.js.map +1 -1
- package/lib/company/plan/index.d.ts +2 -0
- package/lib/company/plan/index.js +19 -0
- package/lib/company/plan/index.js.map +1 -0
- package/lib/company/plan/plan.enum.d.ts +9 -0
- package/lib/company/plan/plan.enum.js +15 -0
- package/lib/company/plan/plan.enum.js.map +1 -0
- package/lib/company/plan/plan.model.d.ts +16 -0
- package/lib/company/plan/plan.model.js +87 -0
- package/lib/company/plan/plan.model.js.map +1 -0
- package/lib/company/plan.enum.d.ts +9 -0
- package/lib/company/plan.enum.js +15 -0
- package/lib/company/plan.enum.js.map +1 -0
- package/lib/company/setting.model.d.ts +10 -0
- package/lib/company/setting.model.js +52 -0
- package/lib/company/setting.model.js.map +1 -0
- package/lib/company/team/index.d.ts +2 -0
- package/lib/company/team/index.js +19 -0
- package/lib/company/team/index.js.map +1 -0
- package/lib/company/team/user.model.d.ts +26 -0
- package/lib/company/team/user.model.js +92 -0
- package/lib/company/team/user.model.js.map +1 -0
- package/lib/company/team/user.status.enum.d.ts +5 -0
- package/lib/company/team/user.status.enum.js +10 -0
- package/lib/company/team/user.status.enum.js.map +1 -0
- package/lib/company/user.model.d.ts +3 -7
- package/lib/company/user.model.js +11 -15
- package/lib/company/user.model.js.map +1 -1
- package/lib/enums/finance.js +5 -5
- package/lib/enums/finance.js.map +1 -1
- package/lib/enums/index.d.ts +0 -6
- package/lib/enums/index.js +1 -11
- package/lib/enums/index.js.map +1 -1
- package/lib/enums/language.js +1 -1
- package/lib/enums/language.js.map +1 -1
- package/lib/enums/notification.js +2 -2
- package/lib/enums/notification.js.map +1 -1
- package/lib/enums/plan.js +2 -2
- package/lib/enums/plan.js.map +1 -1
- package/lib/enums/score.js +2 -2
- package/lib/enums/score.js.map +1 -1
- package/lib/enums/training.d.ts +0 -5
- package/lib/enums/training.js +5 -11
- package/lib/enums/training.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/language/index.d.ts +1 -0
- package/lib/language/index.js +18 -0
- package/lib/language/index.js.map +1 -0
- package/lib/language/language.enum.d.ts +6 -0
- package/lib/language/language.enum.js +11 -0
- package/lib/language/language.enum.js.map +1 -0
- package/lib/security/index.d.ts +1 -1
- package/lib/security/index.js +1 -1
- package/lib/security/index.js.map +1 -1
- package/lib/student/course/appointment.model.d.ts +1 -4
- package/lib/student/course/appointment.model.js +6 -14
- package/lib/student/course/appointment.model.js.map +1 -1
- package/lib/student/course/request.model.d.ts +2 -10
- package/lib/student/course/request.model.js +10 -33
- package/lib/student/course/request.model.js.map +1 -1
- package/lib/student/course/training.model.d.ts +2 -16
- package/lib/student/course/training.model.js +13 -57
- package/lib/student/course/training.model.js.map +1 -1
- package/lib/student/driving/appointment-skill.model.d.ts +2 -5
- package/lib/student/driving/appointment-skill.model.js +6 -14
- package/lib/student/driving/appointment-skill.model.js.map +1 -1
- package/lib/student/driving/appointment-topic.model.d.ts +2 -7
- package/lib/student/driving/appointment-topic.model.js +7 -22
- package/lib/student/driving/appointment-topic.model.js.map +1 -1
- package/lib/student/driving/appointment.model.d.ts +2 -9
- package/lib/student/driving/appointment.model.js +7 -29
- package/lib/student/driving/appointment.model.js.map +1 -1
- package/lib/student/driving/exam/exam-topic-assesment.model.d.ts +1 -1
- package/lib/student/driving/exam/exam-topic-assesment.model.js +1 -1
- package/lib/student/driving/exam/exam-topic-assesment.model.js.map +1 -1
- package/lib/student/driving/exam/exam.model.d.ts +1 -1
- package/lib/student/driving/exam/exam.model.js +1 -1
- package/lib/student/driving/exam/exam.model.js.map +1 -1
- package/lib/student/driving/exam/index.d.ts +2 -0
- package/lib/student/driving/exam/index.js +19 -0
- package/lib/student/driving/exam/index.js.map +1 -0
- package/lib/student/driving/index.d.ts +1 -2
- package/lib/student/driving/index.js +1 -2
- package/lib/student/driving/index.js.map +1 -1
- package/lib/student/driving/request.model.d.ts +2 -6
- package/lib/student/driving/request.model.js +10 -19
- package/lib/student/driving/request.model.js.map +1 -1
- package/lib/student/driving/skill.model.d.ts +2 -9
- package/lib/student/driving/skill.model.js +6 -28
- package/lib/student/driving/skill.model.js.map +1 -1
- package/lib/student/driving/topic.model.d.ts +2 -11
- package/lib/student/driving/topic.model.js +7 -36
- package/lib/student/driving/topic.model.js.map +1 -1
- package/lib/student/driving/training.model.d.ts +2 -23
- package/lib/student/driving/training.model.js +13 -84
- package/lib/student/driving/training.model.js.map +1 -1
- package/lib/student/index.d.ts +3 -3
- package/lib/student/index.js +3 -3
- package/lib/student/index.js.map +1 -1
- package/lib/student/signature.model.d.ts +1 -4
- package/lib/student/signature.model.js +6 -14
- package/lib/student/signature.model.js.map +1 -1
- package/lib/student/student.model.d.ts +2 -8
- package/lib/student/student.model.js +9 -26
- package/lib/student/student.model.js.map +1 -1
- package/lib/system/country.model.d.ts +2 -6
- package/lib/system/country.model.js +4 -18
- package/lib/system/country.model.js.map +1 -1
- package/lib/system/driving/category.model.d.ts +0 -2
- package/lib/system/driving/category.model.js +0 -7
- package/lib/system/driving/category.model.js.map +1 -1
- package/lib/system/driving/category.trans.model.d.ts +1 -1
- package/lib/system/driving/category.trans.model.js +1 -1
- package/lib/system/driving/category.trans.model.js.map +1 -1
- package/lib/system/driving/index.d.ts +6 -0
- package/lib/system/driving/index.js +23 -0
- package/lib/system/driving/index.js.map +1 -0
- package/lib/system/driving/skill.model.d.ts +1 -1
- package/lib/system/driving/skill.model.js.map +1 -1
- package/lib/system/driving/skill.trans.model.d.ts +1 -1
- package/lib/system/driving/skill.trans.model.js +1 -1
- package/lib/system/driving/skill.trans.model.js.map +1 -1
- package/lib/system/driving/topic.model.d.ts +1 -3
- package/lib/system/driving/topic.model.js +0 -7
- package/lib/system/driving/topic.model.js.map +1 -1
- package/lib/system/driving/topic.trans.model.d.ts +1 -1
- package/lib/system/driving/topic.trans.model.js +1 -1
- package/lib/system/driving/topic.trans.model.js.map +1 -1
- package/lib/system/finances/currency.model.d.ts +0 -2
- package/lib/system/finances/currency.model.js +0 -7
- package/lib/system/finances/currency.model.js.map +1 -1
- package/lib/system/finances/index.d.ts +1 -0
- package/lib/system/finances/index.js +1 -0
- package/lib/system/finances/index.js.map +1 -1
- package/lib/system/finances/priceplan.model.d.ts +2 -4
- package/lib/system/finances/priceplan.model.js +1 -8
- package/lib/system/finances/priceplan.model.js.map +1 -1
- package/lib/system/finances/priceplan.translation.d.ts +1 -1
- package/lib/system/finances/priceplan.translation.js +1 -1
- package/lib/system/finances/priceplan.translation.js.map +1 -1
- package/lib/system/index.d.ts +2 -1
- package/lib/system/index.js +2 -1
- package/lib/system/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/user/notification/index.d.ts +1 -0
- package/lib/user/notification/index.js +1 -0
- package/lib/user/notification/index.js.map +1 -1
- package/lib/user/notification/notification-preference.model.d.ts +1 -0
- package/lib/user/notification/notification-preference.model.js +7 -1
- package/lib/user/notification/notification-preference.model.js.map +1 -1
- package/lib/user/notification/notification.enum.d.ts +11 -0
- package/lib/user/notification/notification.enum.js +17 -0
- package/lib/user/notification/notification.enum.js.map +1 -0
- package/lib/user/notification/notification.model.d.ts +2 -3
- package/lib/user/notification/notification.model.js +7 -8
- package/lib/user/notification/notification.model.js.map +1 -1
- package/lib/user/sign.dto.d.ts +2 -0
- package/lib/user/sign.dto.js +7 -0
- package/lib/user/sign.dto.js.map +1 -1
- package/lib/user/user.model.d.ts +3 -19
- package/lib/user/user.model.js +6 -62
- package/lib/user/user.model.js.map +1 -1
- package/package.json +7 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.status.enum.js","sourceRoot":"","sources":["../../../src/company/common/request.status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;AACtB,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SettingType = void 0;
|
|
4
|
+
var SettingType;
|
|
5
|
+
(function (SettingType) {
|
|
6
|
+
SettingType["Config"] = "CONFIG";
|
|
7
|
+
SettingType["Social"] = "SOCIAL";
|
|
8
|
+
SettingType["Auth"] = "AUTH";
|
|
9
|
+
SettingType["Mail"] = "MAIL";
|
|
10
|
+
SettingType["Other"] = "OTHER";
|
|
11
|
+
})(SettingType || (exports.SettingType = SettingType = {}));
|
|
12
|
+
//# sourceMappingURL=setting.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setting.enum.js","sourceRoot":"","sources":["../../../src/company/common/setting.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAMX;AAND,WAAY,WAAW;IACtB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,4BAAa,CAAA;IACb,4BAAa,CAAA;IACb,8BAAe,CAAA;AAChB,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum TrainingStatus {
|
|
2
|
+
InProgress = "INPROGRESS",
|
|
3
|
+
Completed = "COMPLETED",
|
|
4
|
+
Terminated = "TERMINATED"
|
|
5
|
+
}
|
|
6
|
+
export declare enum TrainingRequestStatus {
|
|
7
|
+
Pending = "PENDING",
|
|
8
|
+
Accepted = "ACCEPTED",
|
|
9
|
+
Rejected = "REJECTED",
|
|
10
|
+
Canceled = "CANCELED"
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TrainingRequestStatus = exports.TrainingStatus = void 0;
|
|
4
|
+
var TrainingStatus;
|
|
5
|
+
(function (TrainingStatus) {
|
|
6
|
+
TrainingStatus["InProgress"] = "INPROGRESS";
|
|
7
|
+
TrainingStatus["Completed"] = "COMPLETED";
|
|
8
|
+
TrainingStatus["Terminated"] = "TERMINATED";
|
|
9
|
+
})(TrainingStatus || (exports.TrainingStatus = TrainingStatus = {}));
|
|
10
|
+
var TrainingRequestStatus;
|
|
11
|
+
(function (TrainingRequestStatus) {
|
|
12
|
+
TrainingRequestStatus["Pending"] = "PENDING";
|
|
13
|
+
TrainingRequestStatus["Accepted"] = "ACCEPTED";
|
|
14
|
+
TrainingRequestStatus["Rejected"] = "REJECTED";
|
|
15
|
+
TrainingRequestStatus["Canceled"] = "CANCELED";
|
|
16
|
+
})(TrainingRequestStatus || (exports.TrainingRequestStatus = TrainingRequestStatus = {}));
|
|
17
|
+
//# sourceMappingURL=training.status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"training.status.enum.js","sourceRoot":"","sources":["../../../src/company/common/training.status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,2CAAyB,CAAA;IACzB,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;AAC1B,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;AACtB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC"}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { Language
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { CompanyPricePlan } from "./finances/priceplan.model";
|
|
5
|
-
import { CompanyPayment } from "./finances/payment.model";
|
|
6
|
-
import { CompanyCard } from "./finances/card.model";
|
|
7
|
-
import { CompanyCredit } from "./finances/credit.model";
|
|
8
|
-
import { CompanyUser } from "./user.model";
|
|
9
|
-
import { Event } from "./event.model";
|
|
10
|
-
import { DrivingCategory } from "./driving/category.model";
|
|
1
|
+
import { Language } from "../language";
|
|
2
|
+
import { WeekDay } from "../common";
|
|
3
|
+
import { AccountStatus } from "./account.status.enum";
|
|
11
4
|
export declare class Company {
|
|
12
5
|
uid: string;
|
|
13
6
|
name: string;
|
|
@@ -24,20 +17,9 @@ export declare class Company {
|
|
|
24
17
|
endDate: Date;
|
|
25
18
|
}[];
|
|
26
19
|
}[];
|
|
27
|
-
holidays:
|
|
28
|
-
dates: Date[];
|
|
29
|
-
};
|
|
20
|
+
holidays: Date[];
|
|
30
21
|
promotionCode: number;
|
|
31
22
|
logoUrl: string;
|
|
32
|
-
|
|
33
|
-
users: CompanyUser[];
|
|
34
|
-
students: Student[];
|
|
35
|
-
currentPricePlan: CompanyPricePlan;
|
|
36
|
-
pricePlans: CompanyPricePlan[];
|
|
37
|
-
payments: CompanyPayment[];
|
|
38
|
-
cards: CompanyCard[];
|
|
39
|
-
credits: CompanyCredit[];
|
|
40
|
-
events: Event[];
|
|
41
|
-
drivingCategories: DrivingCategory[];
|
|
23
|
+
status: AccountStatus;
|
|
42
24
|
constructor(props?: Partial<Company>);
|
|
43
25
|
}
|
|
@@ -11,16 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Company = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const system_1 = require("../system");
|
|
17
|
-
const priceplan_model_1 = require("./finances/priceplan.model");
|
|
18
|
-
const payment_model_1 = require("./finances/payment.model");
|
|
19
|
-
const card_model_1 = require("./finances/card.model");
|
|
20
|
-
const credit_model_1 = require("./finances/credit.model");
|
|
21
|
-
const user_model_1 = require("./user.model");
|
|
22
|
-
const event_model_1 = require("./event.model");
|
|
23
|
-
const category_model_1 = require("./driving/category.model");
|
|
14
|
+
const language_1 = require("../language");
|
|
15
|
+
const account_status_enum_1 = require("./account.status.enum");
|
|
24
16
|
class Company {
|
|
25
17
|
uid;
|
|
26
18
|
name;
|
|
@@ -34,16 +26,7 @@ class Company {
|
|
|
34
26
|
holidays;
|
|
35
27
|
promotionCode;
|
|
36
28
|
logoUrl;
|
|
37
|
-
|
|
38
|
-
users;
|
|
39
|
-
students;
|
|
40
|
-
currentPricePlan;
|
|
41
|
-
pricePlans;
|
|
42
|
-
payments;
|
|
43
|
-
cards;
|
|
44
|
-
credits;
|
|
45
|
-
events;
|
|
46
|
-
drivingCategories;
|
|
29
|
+
status;
|
|
47
30
|
constructor(props) {
|
|
48
31
|
Object.assign(this, props);
|
|
49
32
|
}
|
|
@@ -89,7 +72,7 @@ __decorate([
|
|
|
89
72
|
], Company.prototype, "workingHours", void 0);
|
|
90
73
|
__decorate([
|
|
91
74
|
(0, class_transformer_1.Expose)(),
|
|
92
|
-
__metadata("design:type",
|
|
75
|
+
__metadata("design:type", Array)
|
|
93
76
|
], Company.prototype, "holidays", void 0);
|
|
94
77
|
__decorate([
|
|
95
78
|
(0, class_transformer_1.Expose)(),
|
|
@@ -102,52 +85,6 @@ __decorate([
|
|
|
102
85
|
], Company.prototype, "logoUrl", void 0);
|
|
103
86
|
__decorate([
|
|
104
87
|
(0, class_transformer_1.Expose)(),
|
|
105
|
-
(
|
|
106
|
-
|
|
107
|
-
], Company.prototype, "country", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, class_transformer_1.Expose)(),
|
|
110
|
-
(0, class_transformer_1.Type)(() => user_model_1.CompanyUser),
|
|
111
|
-
__metadata("design:type", Array)
|
|
112
|
-
], Company.prototype, "users", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, class_transformer_1.Expose)(),
|
|
115
|
-
(0, class_transformer_1.Type)(() => student_1.Student),
|
|
116
|
-
__metadata("design:type", Array)
|
|
117
|
-
], Company.prototype, "students", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
(0, class_transformer_1.Expose)(),
|
|
120
|
-
(0, class_transformer_1.Type)(() => priceplan_model_1.CompanyPricePlan),
|
|
121
|
-
__metadata("design:type", priceplan_model_1.CompanyPricePlan)
|
|
122
|
-
], Company.prototype, "currentPricePlan", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, class_transformer_1.Expose)(),
|
|
125
|
-
(0, class_transformer_1.Type)(() => priceplan_model_1.CompanyPricePlan),
|
|
126
|
-
__metadata("design:type", Array)
|
|
127
|
-
], Company.prototype, "pricePlans", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, class_transformer_1.Expose)(),
|
|
130
|
-
(0, class_transformer_1.Type)(() => payment_model_1.CompanyPayment),
|
|
131
|
-
__metadata("design:type", Array)
|
|
132
|
-
], Company.prototype, "payments", void 0);
|
|
133
|
-
__decorate([
|
|
134
|
-
(0, class_transformer_1.Expose)(),
|
|
135
|
-
(0, class_transformer_1.Type)(() => card_model_1.CompanyCard),
|
|
136
|
-
__metadata("design:type", Array)
|
|
137
|
-
], Company.prototype, "cards", void 0);
|
|
138
|
-
__decorate([
|
|
139
|
-
(0, class_transformer_1.Expose)(),
|
|
140
|
-
(0, class_transformer_1.Type)(() => credit_model_1.CompanyCredit),
|
|
141
|
-
__metadata("design:type", Array)
|
|
142
|
-
], Company.prototype, "credits", void 0);
|
|
143
|
-
__decorate([
|
|
144
|
-
(0, class_transformer_1.Expose)(),
|
|
145
|
-
(0, class_transformer_1.Type)(() => event_model_1.Event),
|
|
146
|
-
__metadata("design:type", Array)
|
|
147
|
-
], Company.prototype, "events", void 0);
|
|
148
|
-
__decorate([
|
|
149
|
-
(0, class_transformer_1.Expose)(),
|
|
150
|
-
(0, class_transformer_1.Type)(() => category_model_1.DrivingCategory),
|
|
151
|
-
__metadata("design:type", Array)
|
|
152
|
-
], Company.prototype, "drivingCategories", void 0);
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], Company.prototype, "status", void 0);
|
|
153
90
|
//# sourceMappingURL=company.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company.model.js","sourceRoot":"","sources":["../../src/company/company.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"company.model.js","sourceRoot":"","sources":["../../src/company/company.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,0CAAuC;AAEvC,+DAAsD;AAEtD,MAAa,OAAO;IAEnB,GAAG,CAAS;IAGZ,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,OAAO,CAAS;IAGhB,OAAO,CAAS;IAGhB,QAAQ,CAAW;IASnB,gBAAgB,CAAS;IAIzB,OAAO,CAAS;IAMhB,YAAY,CAAwE;IAMpF,QAAQ,CAAS;IAOjB,aAAa,CAAS;IAKtB,OAAO,CAAS;IAKhB,MAAM,CAAgB;IAItB,YAAY,KAAwB;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAlED,0BAkEC;AAhEA;IADC,IAAA,0BAAM,GAAE;;oCACG;AAGZ;IADC,IAAA,0BAAM,GAAE;;qCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;sCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;wCACO;AAGhB;IADC,IAAA,0BAAM,GAAE;;wCACO;AAGhB;IADC,IAAA,0BAAM,GAAE;;yCACU;AASnB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iDACM;AAIzB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACH;AAMhB;IADC,IAAA,0BAAM,GAAE;;6CAC2E;AAMpF;IADC,IAAA,0BAAM,GAAE;;yCACQ;AAOjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACG;AAKtB;IADC,IAAA,0BAAM,GAAE;;wCACO;AAKhB;IADC,IAAA,0BAAM,GAAE;;uCACa"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { CompanyUser } from "../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export declare class CourseAppointment {
|
|
6
|
-
|
|
7
|
-
endTime: Date;
|
|
8
|
-
part: CoursePart;
|
|
1
|
+
import { CompanyUser } from "../team";
|
|
2
|
+
import { Student } from "../../student";
|
|
3
|
+
import { Appointment } from "../../common";
|
|
4
|
+
import { CoursePartDefinition } from "./definition.model";
|
|
5
|
+
export declare class CourseAppointment extends Appointment {
|
|
6
|
+
students: Student[];
|
|
9
7
|
instructor: CompanyUser;
|
|
10
|
-
|
|
11
|
-
courseTrainingRequests: StudentCourseRequest[];
|
|
8
|
+
definition: CoursePartDefinition;
|
|
12
9
|
constructor(props?: Partial<CourseAppointment>);
|
|
13
10
|
}
|
|
@@ -11,50 +11,33 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CourseAppointment = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
class CourseAppointment {
|
|
19
|
-
|
|
20
|
-
endTime;
|
|
21
|
-
part;
|
|
14
|
+
const team_1 = require("../team");
|
|
15
|
+
const student_1 = require("../../student");
|
|
16
|
+
const common_1 = require("../../common");
|
|
17
|
+
const definition_model_1 = require("./definition.model");
|
|
18
|
+
class CourseAppointment extends common_1.Appointment {
|
|
19
|
+
students;
|
|
22
20
|
instructor;
|
|
23
|
-
|
|
24
|
-
courseTrainingRequests;
|
|
21
|
+
definition;
|
|
25
22
|
constructor(props) {
|
|
23
|
+
super();
|
|
26
24
|
Object.assign(this, props);
|
|
27
25
|
}
|
|
28
26
|
}
|
|
29
27
|
exports.CourseAppointment = CourseAppointment;
|
|
30
28
|
__decorate([
|
|
31
29
|
(0, class_transformer_1.Expose)(),
|
|
32
|
-
(0, class_transformer_1.Type)(() =>
|
|
33
|
-
__metadata("design:type",
|
|
34
|
-
], CourseAppointment.prototype, "
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_transformer_1.Expose)(),
|
|
37
|
-
(0, class_transformer_1.Type)(() => Date),
|
|
38
|
-
__metadata("design:type", Date)
|
|
39
|
-
], CourseAppointment.prototype, "endTime", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
(0, class_transformer_1.Type)(() => part_model_1.CoursePart),
|
|
43
|
-
__metadata("design:type", part_model_1.CoursePart)
|
|
44
|
-
], CourseAppointment.prototype, "part", void 0);
|
|
30
|
+
(0, class_transformer_1.Type)(() => student_1.Student),
|
|
31
|
+
__metadata("design:type", Array)
|
|
32
|
+
], CourseAppointment.prototype, "students", void 0);
|
|
45
33
|
__decorate([
|
|
46
34
|
(0, class_transformer_1.Expose)(),
|
|
47
|
-
(0, class_transformer_1.Type)(() =>
|
|
48
|
-
__metadata("design:type",
|
|
35
|
+
(0, class_transformer_1.Type)(() => team_1.CompanyUser),
|
|
36
|
+
__metadata("design:type", team_1.CompanyUser)
|
|
49
37
|
], CourseAppointment.prototype, "instructor", void 0);
|
|
50
38
|
__decorate([
|
|
51
39
|
(0, class_transformer_1.Expose)(),
|
|
52
|
-
(0, class_transformer_1.Type)(() =>
|
|
53
|
-
__metadata("design:type",
|
|
54
|
-
], CourseAppointment.prototype, "
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, class_transformer_1.Expose)(),
|
|
57
|
-
(0, class_transformer_1.Type)(() => request_model_1.StudentCourseRequest),
|
|
58
|
-
__metadata("design:type", Array)
|
|
59
|
-
], CourseAppointment.prototype, "courseTrainingRequests", void 0);
|
|
40
|
+
(0, class_transformer_1.Type)(() => definition_model_1.CoursePartDefinition),
|
|
41
|
+
__metadata("design:type", definition_model_1.CoursePartDefinition)
|
|
42
|
+
], CourseAppointment.prototype, "definition", void 0);
|
|
60
43
|
//# sourceMappingURL=appointment.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointment.model.js","sourceRoot":"","sources":["../../../src/company/course/appointment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"appointment.model.js","sourceRoot":"","sources":["../../../src/company/course/appointment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAAsC;AACtC,2CAAwC;AACxC,yCAA2C;AAC3C,yDAA0D;AAM1D,MAAa,iBAAkB,SAAQ,oBAAW;IAGjD,QAAQ,CAAY;IAIpB,UAAU,CAAc;IAIxB,UAAU,CAAuB;IAIjC,YAAY,KAAkC;QAC7C,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAnBD,8CAmBC;AAhBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAO,CAAC;;mDACA;AAIpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAW,CAAC;8BACZ,kBAAW;qDAAC;AAIxB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uCAAoB,CAAC;8BACrB,uCAAoB;qDAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum CourseType {
|
|
2
|
+
Flex = "FLEXIBLE",
|
|
3
|
+
Fix = "FIXED"
|
|
4
|
+
}
|
|
5
|
+
export declare enum CourseStatus {
|
|
6
|
+
Draft = "DRAFT",
|
|
7
|
+
Active = "ACTIVE",
|
|
8
|
+
Ended = "ENDED"
|
|
9
|
+
}
|
|
10
|
+
export declare enum AppointmentRepetition {
|
|
11
|
+
None = "NONE",
|
|
12
|
+
Daily = "DAILY",
|
|
13
|
+
Weekly = "WEEKLY",
|
|
14
|
+
Monthly = "MONTHLY"
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppointmentRepetition = exports.CourseStatus = exports.CourseType = void 0;
|
|
4
|
+
var CourseType;
|
|
5
|
+
(function (CourseType) {
|
|
6
|
+
CourseType["Flex"] = "FLEXIBLE";
|
|
7
|
+
CourseType["Fix"] = "FIXED";
|
|
8
|
+
})(CourseType || (exports.CourseType = CourseType = {}));
|
|
9
|
+
var CourseStatus;
|
|
10
|
+
(function (CourseStatus) {
|
|
11
|
+
CourseStatus["Draft"] = "DRAFT";
|
|
12
|
+
CourseStatus["Active"] = "ACTIVE";
|
|
13
|
+
CourseStatus["Ended"] = "ENDED";
|
|
14
|
+
})(CourseStatus || (exports.CourseStatus = CourseStatus = {}));
|
|
15
|
+
var AppointmentRepetition;
|
|
16
|
+
(function (AppointmentRepetition) {
|
|
17
|
+
AppointmentRepetition["None"] = "NONE";
|
|
18
|
+
AppointmentRepetition["Daily"] = "DAILY";
|
|
19
|
+
AppointmentRepetition["Weekly"] = "WEEKLY";
|
|
20
|
+
AppointmentRepetition["Monthly"] = "MONTHLY";
|
|
21
|
+
})(AppointmentRepetition || (exports.AppointmentRepetition = AppointmentRepetition = {}));
|
|
22
|
+
//# sourceMappingURL=course.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course.enum.js","sourceRoot":"","sources":["../../../src/company/course/course.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAGX;AAHD,WAAY,UAAU;IACrB,+BAAiB,CAAA;IACjB,2BAAa,CAAA;AACd,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,+BAAe,CAAA;IACf,iCAAiB,CAAA;IACjB,+BAAe,CAAA;AAChB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAChC,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,0CAAiB,CAAA;IACjB,4CAAmB,CAAA;AACpB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CoursePart } from "./part.model";
|
|
3
|
-
import { StudentCourseTraining } from "../../student/course/training.model";
|
|
4
|
-
import { StudentCourseRequest } from "../../student/course/request.model";
|
|
1
|
+
import { CourseStatus, CourseType } from "..";
|
|
5
2
|
export declare class Course {
|
|
3
|
+
id: number;
|
|
6
4
|
title: string;
|
|
7
5
|
description: string;
|
|
8
6
|
location: string;
|
|
9
7
|
price: number;
|
|
10
8
|
maxStudents: number;
|
|
11
9
|
public: boolean;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
status: CourseStatus;
|
|
11
|
+
startDate: Date;
|
|
12
|
+
endDate: Date;
|
|
13
|
+
courseType: CourseType;
|
|
14
|
+
remainingSeats: number;
|
|
15
|
+
totalParts: number;
|
|
17
16
|
constructor(props?: Partial<Course>);
|
|
18
17
|
}
|
|
@@ -11,27 +11,31 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Course = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const
|
|
15
|
-
const part_model_1 = require("./part.model");
|
|
16
|
-
const training_model_1 = require("../../student/course/training.model");
|
|
17
|
-
const request_model_1 = require("../../student/course/request.model");
|
|
14
|
+
const __1 = require("..");
|
|
18
15
|
class Course {
|
|
16
|
+
id;
|
|
19
17
|
title;
|
|
20
18
|
description;
|
|
21
19
|
location;
|
|
22
20
|
price;
|
|
23
21
|
maxStudents;
|
|
24
22
|
public;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
status;
|
|
24
|
+
startDate;
|
|
25
|
+
endDate;
|
|
26
|
+
courseType;
|
|
27
|
+
remainingSeats;
|
|
28
|
+
totalParts;
|
|
30
29
|
constructor(props) {
|
|
31
30
|
Object.assign(this, props);
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
exports.Course = Course;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], Course.prototype, "id", void 0);
|
|
35
39
|
__decorate([
|
|
36
40
|
(0, class_transformer_1.Expose)(),
|
|
37
41
|
__metadata("design:type", String)
|
|
@@ -61,27 +65,30 @@ __decorate([
|
|
|
61
65
|
], Course.prototype, "public", void 0);
|
|
62
66
|
__decorate([
|
|
63
67
|
(0, class_transformer_1.Expose)(),
|
|
64
|
-
(
|
|
65
|
-
|
|
66
|
-
], Course.prototype, "closed", void 0);
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], Course.prototype, "status", void 0);
|
|
67
70
|
__decorate([
|
|
68
71
|
(0, class_transformer_1.Expose)(),
|
|
69
|
-
(0, class_transformer_1.Type)(() =>
|
|
70
|
-
__metadata("design:type",
|
|
71
|
-
], Course.prototype, "
|
|
72
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
73
|
+
__metadata("design:type", Date)
|
|
74
|
+
], Course.prototype, "startDate", void 0);
|
|
72
75
|
__decorate([
|
|
73
76
|
(0, class_transformer_1.Expose)(),
|
|
74
|
-
(0, class_transformer_1.Type)(() =>
|
|
75
|
-
__metadata("design:type",
|
|
76
|
-
], Course.prototype, "
|
|
77
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
78
|
+
__metadata("design:type", Date)
|
|
79
|
+
], Course.prototype, "endDate", void 0);
|
|
77
80
|
__decorate([
|
|
78
81
|
(0, class_transformer_1.Expose)(),
|
|
79
|
-
(
|
|
80
|
-
|
|
81
|
-
], Course.prototype, "trainings", void 0);
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], Course.prototype, "courseType", void 0);
|
|
82
84
|
__decorate([
|
|
83
85
|
(0, class_transformer_1.Expose)(),
|
|
84
|
-
(0, class_transformer_1.Type)(() =>
|
|
85
|
-
__metadata("design:type",
|
|
86
|
-
], Course.prototype, "
|
|
86
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
87
|
+
__metadata("design:type", Number)
|
|
88
|
+
], Course.prototype, "remainingSeats", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_transformer_1.Expose)(),
|
|
91
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
92
|
+
__metadata("design:type", Number)
|
|
93
|
+
], Course.prototype, "totalParts", void 0);
|
|
87
94
|
//# sourceMappingURL=course.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course.model.js","sourceRoot":"","sources":["../../../src/company/course/course.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"course.model.js","sourceRoot":"","sources":["../../../src/company/course/course.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,0BAA8C;AAE9C,MAAa,MAAM;IAGlB,EAAE,CAAS;IAGX,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,QAAQ,CAAS;IAIjB,KAAK,CAAS;IAOd,WAAW,CAAS;IAOpB,MAAM,CAAU;IAGhB,MAAM,CAAe;IAIrB,SAAS,CAAO;IAIhB,OAAO,CAAO;IAGd,UAAU,CAAa;IAIvB,cAAc,CAAS;IAIvB,UAAU,CAAS;IAInB,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA3DD,wBA2DC;AAxDA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;qCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;2CACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;wCACQ;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qCACL;AAOd;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2CACC;AAOpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;sCACJ;AAGhB;IADC,IAAA,0BAAM,GAAE;;sCACY;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;yCAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;uCAAC;AAGd;IADC,IAAA,0BAAM,GAAE;;0CACc;AAIvB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACI;AAIvB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CompanyUser } from '../team';
|
|
2
|
+
import { AppointmentRepetition } from './course.enum';
|
|
3
|
+
export declare class CoursePartDefinition {
|
|
4
|
+
id: number;
|
|
5
|
+
partId: number;
|
|
6
|
+
startDate: any;
|
|
7
|
+
endDate: any;
|
|
8
|
+
defaultInstructor: CompanyUser;
|
|
9
|
+
repetition: AppointmentRepetition;
|
|
10
|
+
constructor(props?: Partial<CoursePartDefinition>);
|
|
11
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.CoursePartDefinition = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const team_1 = require("../team");
|
|
15
|
+
const course_enum_1 = require("./course.enum");
|
|
16
|
+
class CoursePartDefinition {
|
|
17
|
+
id;
|
|
18
|
+
partId;
|
|
19
|
+
startDate;
|
|
20
|
+
endDate;
|
|
21
|
+
defaultInstructor;
|
|
22
|
+
repetition;
|
|
23
|
+
constructor(props) {
|
|
24
|
+
Object.assign(this, props);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.CoursePartDefinition = CoursePartDefinition;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], CoursePartDefinition.prototype, "id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], CoursePartDefinition.prototype, "partId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], CoursePartDefinition.prototype, "startDate", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], CoursePartDefinition.prototype, "endDate", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
(0, class_transformer_1.Type)(() => team_1.CompanyUser),
|
|
51
|
+
__metadata("design:type", team_1.CompanyUser)
|
|
52
|
+
], CoursePartDefinition.prototype, "defaultInstructor", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], CoursePartDefinition.prototype, "repetition", void 0);
|
|
57
|
+
//# sourceMappingURL=definition.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.model.js","sourceRoot":"","sources":["../../../src/company/course/definition.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAAsC;AACtC,+CAAsD;AAEtD,MAAa,oBAAoB;IAGhC,EAAE,CAAS;IAIX,MAAM,CAAS;IAIf,SAAS,CAAC;IAIV,OAAO,CAAC;IAIR,iBAAiB,CAAc;IAG/B,UAAU,CAAwB;IAIlC,YAAY,KAAqC;QAChD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA7BD,oDA6BC;AA1BA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oDACJ;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;;uDACP;AAIV;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;;qDACT;AAIR;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAW,CAAC;8BACL,kBAAW;+DAAC;AAG/B;IADC,IAAA,0BAAM,GAAE;;wDACyB"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CompanyUser } from "../../user.model";
|
|
1
|
+
import { CompanyUser } from "../../team";
|
|
3
2
|
export declare class CourseDiscount {
|
|
3
|
+
id: number;
|
|
4
4
|
ammount: number;
|
|
5
5
|
description: string;
|
|
6
|
-
training: StudentCourseTraining;
|
|
7
6
|
registeredBy: CompanyUser;
|
|
8
7
|
constructor(props?: Partial<CourseDiscount>);
|
|
9
8
|
}
|
|
@@ -11,18 +11,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CourseDiscount = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const
|
|
15
|
-
const user_model_1 = require("../../user.model");
|
|
14
|
+
const team_1 = require("../../team");
|
|
16
15
|
class CourseDiscount {
|
|
16
|
+
id;
|
|
17
17
|
ammount;
|
|
18
18
|
description;
|
|
19
|
-
training;
|
|
20
19
|
registeredBy;
|
|
21
20
|
constructor(props) {
|
|
22
21
|
Object.assign(this, props);
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
exports.CourseDiscount = CourseDiscount;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], CourseDiscount.prototype, "id", void 0);
|
|
26
30
|
__decorate([
|
|
27
31
|
(0, class_transformer_1.Expose)(),
|
|
28
32
|
(0, class_transformer_1.Type)(() => Number),
|
|
@@ -34,12 +38,7 @@ __decorate([
|
|
|
34
38
|
], CourseDiscount.prototype, "description", void 0);
|
|
35
39
|
__decorate([
|
|
36
40
|
(0, class_transformer_1.Expose)(),
|
|
37
|
-
(0, class_transformer_1.Type)(() =>
|
|
38
|
-
__metadata("design:type",
|
|
39
|
-
], CourseDiscount.prototype, "training", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
(0, class_transformer_1.Type)(() => user_model_1.CompanyUser),
|
|
43
|
-
__metadata("design:type", user_model_1.CompanyUser)
|
|
41
|
+
(0, class_transformer_1.Type)(() => team_1.CompanyUser),
|
|
42
|
+
__metadata("design:type", team_1.CompanyUser)
|
|
44
43
|
], CourseDiscount.prototype, "registeredBy", void 0);
|
|
45
44
|
//# sourceMappingURL=discount.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount.model.js","sourceRoot":"","sources":["../../../../src/company/course/finances/discount.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"discount.model.js","sourceRoot":"","sources":["../../../../src/company/course/finances/discount.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qCAAyC;AAEzC,MAAa,cAAc;IAG1B,EAAE,CAAS;IAIX,OAAO,CAAS;IAGhB,WAAW,CAAS;IAMpB,YAAY,CAAc;IAI1B,YAAY,KAA+B;QAC1C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAvBD,wCAuBC;AApBA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACH;AAGhB;IADC,IAAA,0BAAM,GAAE;;mDACW;AAMpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAW,CAAC;8BACV,kBAAW;oDAAC"}
|