@intelact/driveup 0.5.56 → 0.7.0
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 +1 -16
- package/lib/agent/agent.model.js.map +1 -1
- package/lib/agent/code.model.js.map +1 -1
- package/lib/agent/index.d.ts +0 -1
- package/lib/agent/index.js +0 -1
- package/lib/agent/index.js.map +1 -1
- package/lib/auth/biometric.dto.d.ts +3 -0
- package/lib/auth/biometric.dto.js +25 -0
- package/lib/auth/biometric.dto.js.map +1 -0
- package/lib/auth/index.d.ts +3 -0
- package/lib/auth/index.js +20 -0
- package/lib/auth/index.js.map +1 -0
- package/lib/auth/signin.dto.d.ts +6 -0
- package/lib/auth/signin.dto.js +37 -0
- package/lib/auth/signin.dto.js.map +1 -0
- package/lib/auth/signup.dto.d.ts +5 -0
- package/lib/auth/signup.dto.js +38 -0
- package/lib/auth/signup.dto.js.map +1 -0
- package/lib/bank/account.model.d.ts +6 -0
- package/lib/bank/account.model.js +46 -0
- package/lib/bank/account.model.js.map +1 -0
- package/lib/bank/index.d.ts +1 -0
- package/lib/bank/index.js +18 -0
- package/lib/bank/index.js.map +1 -0
- package/lib/calendar/appointment.d.ts +29 -0
- package/lib/calendar/appointment.js +143 -0
- package/lib/calendar/appointment.js.map +1 -0
- package/lib/calendar/date.d.ts +11 -0
- package/lib/calendar/date.js +52 -0
- package/lib/calendar/date.js.map +1 -0
- package/lib/calendar/holiday.d.ts +5 -0
- package/lib/calendar/holiday.js +40 -0
- package/lib/calendar/holiday.js.map +1 -0
- package/lib/calendar/index.d.ts +5 -0
- package/lib/calendar/index.js +22 -0
- package/lib/calendar/index.js.map +1 -0
- package/lib/calendar/types.d.ts +14 -0
- package/lib/calendar/types.js +20 -0
- package/lib/calendar/types.js.map +1 -0
- package/lib/calendar/working.d.ts +9 -0
- package/lib/calendar/working.js +44 -0
- package/lib/calendar/working.js.map +1 -0
- package/lib/common/content.d.ts +9 -0
- package/lib/common/content.js +42 -0
- package/lib/common/content.js.map +1 -0
- package/lib/common/email.d.ts +7 -0
- package/lib/common/email.js +41 -0
- package/lib/common/email.js.map +1 -0
- package/lib/common/index.d.ts +8 -3
- package/lib/common/index.js +8 -3
- package/lib/common/index.js.map +1 -1
- package/lib/common/language.d.ts +9 -0
- package/lib/common/language.js +29 -0
- package/lib/common/language.js.map +1 -0
- package/lib/common/phone.d.ts +4 -0
- package/lib/common/phone.js +32 -0
- package/lib/common/phone.js.map +1 -0
- package/lib/common/promotion.d.ts +3 -0
- package/lib/common/promotion.js +23 -0
- package/lib/common/promotion.js.map +1 -0
- package/lib/common/social.d.ts +4 -0
- package/lib/common/social.js +30 -0
- package/lib/common/social.js.map +1 -0
- package/lib/common/sort.d.ts +3 -0
- package/lib/common/sort.js +23 -0
- package/lib/common/sort.js.map +1 -0
- package/lib/common/url.d.ts +3 -0
- package/lib/common/url.js +25 -0
- package/lib/common/url.js.map +1 -0
- package/lib/company/company.model.d.ts +18 -40
- package/lib/company/company.model.js +35 -36
- package/lib/company/company.model.js.map +1 -1
- package/lib/company/index.d.ts +1 -10
- package/lib/company/index.js +1 -10
- package/lib/company/index.js.map +1 -1
- package/lib/company/priceplan.model.d.ts +16 -0
- package/lib/company/priceplan.model.js +87 -0
- package/lib/company/priceplan.model.js.map +1 -0
- package/lib/country/country.model.d.ts +16 -0
- package/lib/country/country.model.js +80 -0
- package/lib/country/country.model.js.map +1 -0
- package/lib/country/index.d.ts +1 -0
- package/lib/country/index.js +18 -0
- package/lib/country/index.js.map +1 -0
- package/lib/course/appointment.model.d.ts +8 -0
- package/lib/course/appointment.model.js +36 -0
- package/lib/course/appointment.model.js.map +1 -0
- package/lib/course/course.model.d.ts +17 -0
- package/lib/course/course.model.js +94 -0
- package/lib/course/course.model.js.map +1 -0
- package/lib/course/definition.model.d.ts +11 -0
- package/lib/course/definition.model.js +57 -0
- package/lib/course/definition.model.js.map +1 -0
- package/lib/course/index.d.ts +5 -0
- package/lib/course/index.js +22 -0
- package/lib/course/index.js.map +1 -0
- package/lib/course/part.model.d.ts +12 -0
- package/lib/course/part.model.js +67 -0
- package/lib/course/part.model.js.map +1 -0
- package/lib/course/types.d.ts +15 -0
- package/lib/course/types.js +22 -0
- package/lib/course/types.js.map +1 -0
- package/lib/credit/credit.model.d.ts +9 -0
- package/lib/credit/credit.model.js +50 -0
- package/lib/credit/credit.model.js.map +1 -0
- package/lib/credit/index.d.ts +1 -0
- package/lib/credit/index.js +18 -0
- package/lib/credit/index.js.map +1 -0
- package/lib/currency/currency.model.d.ts +9 -0
- package/lib/currency/currency.model.js +53 -0
- package/lib/currency/currency.model.js.map +1 -0
- package/lib/currency/index.d.ts +1 -0
- package/lib/currency/index.js +18 -0
- package/lib/currency/index.js.map +1 -0
- package/lib/device/device.agent.d.ts +11 -0
- package/lib/device/device.agent.js +3 -0
- package/lib/device/device.agent.js.map +1 -0
- package/lib/device/device.model.d.ts +8 -0
- package/lib/device/device.model.js +46 -0
- package/lib/device/device.model.js.map +1 -0
- package/lib/device/index.d.ts +2 -0
- package/lib/device/index.js +19 -0
- package/lib/device/index.js.map +1 -0
- package/lib/discount/discount.model.d.ts +9 -0
- package/lib/discount/discount.model.js +50 -0
- package/lib/discount/discount.model.js.map +1 -0
- package/lib/discount/index.d.ts +1 -0
- package/lib/discount/index.js +18 -0
- package/lib/discount/index.js.map +1 -0
- package/lib/driving/category/category.dto.d.ts +5 -0
- package/lib/driving/category/category.dto.js +38 -0
- package/lib/driving/category/category.dto.js.map +1 -0
- package/lib/driving/category/category.model.d.ts +16 -0
- package/lib/driving/category/category.model.js +87 -0
- package/lib/driving/category/category.model.js.map +1 -0
- package/lib/driving/category/index.d.ts +2 -0
- package/lib/driving/category/index.js +19 -0
- package/lib/driving/category/index.js.map +1 -0
- package/lib/driving/index.d.ts +3 -0
- package/lib/driving/index.js +20 -0
- package/lib/driving/index.js.map +1 -0
- package/lib/driving/lesson/index.d.ts +3 -0
- package/lib/driving/lesson/index.js +20 -0
- package/lib/driving/lesson/index.js.map +1 -0
- package/lib/driving/lesson/skill.d.ts +6 -0
- package/lib/driving/lesson/skill.js +37 -0
- package/lib/driving/lesson/skill.js.map +1 -0
- package/lib/driving/lesson/topic.d.ts +10 -0
- package/lib/driving/lesson/topic.js +58 -0
- package/lib/driving/lesson/topic.js.map +1 -0
- package/lib/driving/lesson/types.d.ts +13 -0
- package/lib/driving/lesson/types.js +19 -0
- package/lib/driving/lesson/types.js.map +1 -0
- package/lib/driving/types.d.ts +8 -0
- package/lib/driving/types.js +14 -0
- package/lib/driving/types.js.map +1 -0
- package/lib/event/event.model.d.ts +8 -0
- package/lib/event/event.model.js +49 -0
- package/lib/event/event.model.js.map +1 -0
- package/lib/event/index.d.ts +1 -0
- package/lib/event/index.js +18 -0
- package/lib/event/index.js.map +1 -0
- package/lib/expense/category.model.d.ts +7 -0
- package/lib/expense/category.model.js +41 -0
- package/lib/expense/category.model.js.map +1 -0
- package/lib/expense/expense.model.d.ts +14 -0
- package/lib/expense/expense.model.js +68 -0
- package/lib/expense/expense.model.js.map +1 -0
- package/lib/expense/expense.types.d.ts +5 -0
- package/lib/expense/expense.types.js +10 -0
- package/lib/expense/expense.types.js.map +1 -0
- package/lib/expense/index.d.ts +3 -0
- package/lib/expense/index.js +20 -0
- package/lib/expense/index.js.map +1 -0
- package/lib/feedback/feedback.model.d.ts +9 -0
- package/lib/feedback/feedback.model.js +52 -0
- package/lib/feedback/feedback.model.js.map +1 -0
- package/lib/feedback/index.d.ts +1 -0
- package/lib/feedback/index.js +18 -0
- package/lib/feedback/index.js.map +1 -0
- package/lib/geo/address.dto.d.ts +12 -0
- package/lib/geo/address.dto.js +71 -0
- package/lib/geo/address.dto.js.map +1 -0
- package/lib/geo/coordinate.model.d.ts +4 -0
- package/lib/geo/coordinate.model.js +29 -0
- package/lib/geo/coordinate.model.js.map +1 -0
- package/lib/geo/index.d.ts +3 -0
- package/lib/geo/index.js +20 -0
- package/lib/geo/index.js.map +1 -0
- package/lib/geo/pickup.model.d.ts +8 -0
- package/lib/geo/pickup.model.js +49 -0
- package/lib/geo/pickup.model.js.map +1 -0
- package/lib/index.d.ts +29 -2
- package/lib/index.js +29 -2
- package/lib/index.js.map +1 -1
- package/lib/instructor/index.d.ts +2 -0
- package/lib/instructor/index.js +19 -0
- package/lib/instructor/index.js.map +1 -0
- package/lib/instructor/instructor.dto.d.ts +6 -0
- package/lib/instructor/instructor.dto.js +39 -0
- package/lib/instructor/instructor.dto.js.map +1 -0
- package/lib/instructor/instructor.model.d.ts +14 -0
- package/lib/instructor/instructor.model.js +63 -0
- package/lib/instructor/instructor.model.js.map +1 -0
- package/lib/invoice/index.d.ts +3 -0
- package/lib/invoice/index.js +20 -0
- package/lib/invoice/index.js.map +1 -0
- package/lib/invoice/invoice.model.d.ts +18 -0
- package/lib/invoice/invoice.model.js +88 -0
- package/lib/invoice/invoice.model.js.map +1 -0
- package/lib/invoice/invoice.types.d.ts +5 -0
- package/lib/invoice/invoice.types.js +10 -0
- package/lib/invoice/invoice.types.js.map +1 -0
- package/lib/invoice/item.model.d.ts +7 -0
- package/lib/invoice/item.model.js +43 -0
- package/lib/invoice/item.model.js.map +1 -0
- package/lib/item/index.d.ts +1 -0
- package/lib/item/index.js +18 -0
- package/lib/item/index.js.map +1 -0
- package/lib/item/item.model.d.ts +13 -0
- package/lib/item/item.model.js +38 -0
- package/lib/item/item.model.js.map +1 -0
- package/lib/language/language.enum.d.ts +4 -4
- package/lib/language/language.enum.js +4 -4
- package/lib/license/index.d.ts +1 -0
- package/lib/license/index.js +18 -0
- package/lib/license/index.js.map +1 -0
- package/lib/license/license.model.d.ts +5 -0
- package/lib/license/license.model.js +41 -0
- package/lib/license/license.model.js.map +1 -0
- package/lib/link/index.d.ts +1 -0
- package/lib/link/index.js +18 -0
- package/lib/link/index.js.map +1 -0
- package/lib/link/link.model.d.ts +15 -0
- package/lib/link/link.model.js +35 -0
- package/lib/link/link.model.js.map +1 -0
- package/lib/note/index.d.ts +1 -0
- package/lib/note/index.js +18 -0
- package/lib/note/index.js.map +1 -0
- package/lib/note/note.model.d.ts +9 -0
- package/lib/note/note.model.js +49 -0
- package/lib/note/note.model.js.map +1 -0
- package/lib/notification/index.d.ts +2 -2
- package/lib/notification/index.js +2 -2
- package/lib/notification/index.js.map +1 -1
- package/lib/notification/notification.model.d.ts +3 -3
- package/lib/notification/notification.model.js +10 -10
- package/lib/notification/notification.model.js.map +1 -1
- package/lib/notification/notification.types.d.ts +11 -0
- package/lib/notification/notification.types.js +17 -0
- package/lib/notification/notification.types.js.map +1 -0
- package/lib/notification/preference.model.d.ts +9 -0
- package/lib/notification/preference.model.js +47 -0
- package/lib/notification/preference.model.js.map +1 -0
- package/lib/payment/index.d.ts +2 -0
- package/lib/payment/index.js +19 -0
- package/lib/payment/index.js.map +1 -0
- package/lib/payment/payment.model.d.ts +14 -0
- package/lib/payment/payment.model.js +74 -0
- package/lib/payment/payment.model.js.map +1 -0
- package/lib/payment/payment.types.d.ts +13 -0
- package/lib/payment/payment.types.js +20 -0
- package/lib/payment/payment.types.js.map +1 -0
- package/lib/payout/index.d.ts +2 -0
- package/lib/payout/index.js +19 -0
- package/lib/payout/index.js.map +1 -0
- package/lib/payout/payout.model.d.ts +12 -0
- package/lib/payout/payout.model.js +58 -0
- package/lib/payout/payout.model.js.map +1 -0
- package/lib/payout/payout.types.d.ts +4 -0
- package/lib/payout/payout.types.js +9 -0
- package/lib/payout/payout.types.js.map +1 -0
- package/lib/priceplan/index.d.ts +2 -0
- package/lib/priceplan/index.js +19 -0
- package/lib/priceplan/index.js.map +1 -0
- package/lib/priceplan/plan.enum.d.ts +10 -0
- package/lib/priceplan/plan.enum.js +16 -0
- package/lib/priceplan/plan.enum.js.map +1 -0
- package/lib/priceplan/plan.model.d.ts +13 -0
- package/lib/priceplan/plan.model.js +70 -0
- package/lib/priceplan/plan.model.js.map +1 -0
- package/lib/refund/index.d.ts +1 -0
- package/lib/refund/index.js +18 -0
- package/lib/refund/index.js.map +1 -0
- package/lib/refund/refund.model.d.ts +11 -0
- package/lib/refund/refund.model.js +57 -0
- package/lib/refund/refund.model.js.map +1 -0
- package/lib/security/account.types.d.ts +8 -0
- package/lib/security/account.types.js +13 -0
- package/lib/security/account.types.js.map +1 -0
- package/lib/security/acl.js +2 -2
- package/lib/security/acl.js.map +1 -1
- package/lib/security/index.d.ts +4 -2
- package/lib/security/index.js +4 -2
- package/lib/security/index.js.map +1 -1
- package/lib/security/role.dto.d.ts +4 -0
- package/lib/security/role.dto.js +24 -0
- package/lib/security/role.dto.js.map +1 -0
- package/lib/security/role.types.d.ts +9 -0
- package/lib/security/role.types.js +14 -0
- package/lib/security/role.types.js.map +1 -0
- package/lib/security/token.d.ts +7 -0
- package/lib/security/token.js +3 -0
- package/lib/security/token.js.map +1 -0
- package/lib/session/course/index.d.ts +1 -0
- package/lib/session/course/index.js +18 -0
- package/lib/session/course/index.js.map +1 -0
- package/lib/session/course/session.model.d.ts +7 -0
- package/lib/session/course/session.model.js +35 -0
- package/lib/session/course/session.model.js.map +1 -0
- package/lib/session/driving/index.d.ts +3 -0
- package/lib/session/driving/index.js +20 -0
- package/lib/session/driving/index.js.map +1 -0
- package/lib/session/driving/session.model.d.ts +14 -0
- package/lib/session/driving/session.model.js +62 -0
- package/lib/session/driving/session.model.js.map +1 -0
- package/lib/session/driving/session.skill.d.ts +5 -0
- package/lib/session/driving/session.skill.js +27 -0
- package/lib/session/driving/session.skill.js.map +1 -0
- package/lib/session/driving/session.topic.d.ts +12 -0
- package/lib/session/driving/session.topic.js +58 -0
- package/lib/session/driving/session.topic.js.map +1 -0
- package/lib/session/index.d.ts +2 -0
- package/lib/session/index.js +19 -0
- package/lib/session/index.js.map +1 -0
- package/lib/setting/index.d.ts +2 -0
- package/lib/setting/index.js +19 -0
- package/lib/setting/index.js.map +1 -0
- package/lib/setting/setting.model.d.ts +10 -0
- package/lib/setting/setting.model.js +52 -0
- package/lib/setting/setting.model.js.map +1 -0
- package/lib/setting/setting.type.d.ts +7 -0
- package/lib/setting/setting.type.js +12 -0
- package/lib/setting/setting.type.js.map +1 -0
- package/lib/signature/index.d.ts +1 -0
- package/lib/signature/index.js +18 -0
- package/lib/signature/index.js.map +1 -0
- package/lib/signature/signature.model.d.ts +7 -0
- package/lib/signature/signature.model.js +42 -0
- package/lib/signature/signature.model.js.map +1 -0
- package/lib/student/index.d.ts +0 -3
- package/lib/student/index.js +0 -3
- package/lib/student/index.js.map +1 -1
- package/lib/student/student.model.d.ts +1 -8
- package/lib/student/student.model.js +1 -28
- package/lib/student/student.model.js.map +1 -1
- package/lib/training/course.model.d.ts +6 -0
- package/lib/training/course.model.js +29 -0
- package/lib/training/course.model.js.map +1 -0
- package/lib/training/driving.model.d.ts +13 -0
- package/lib/training/driving.model.js +59 -0
- package/lib/training/driving.model.js.map +1 -0
- package/lib/training/index.d.ts +5 -0
- package/lib/training/index.js +22 -0
- package/lib/training/index.js.map +1 -0
- package/lib/training/request.model.d.ts +20 -0
- package/lib/training/request.model.js +92 -0
- package/lib/training/request.model.js.map +1 -0
- package/lib/training/training.model.d.ts +31 -0
- package/lib/training/training.model.js +155 -0
- package/lib/training/training.model.js.map +1 -0
- package/lib/training/training.types.d.ts +15 -0
- package/lib/training/training.types.js +22 -0
- package/lib/training/training.types.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/user/index.d.ts +0 -5
- package/lib/user/index.js +0 -5
- package/lib/user/index.js.map +1 -1
- package/lib/user/profile.dto.d.ts +1 -1
- package/lib/user/profile.dto.js +2 -2
- package/lib/user/profile.dto.js.map +1 -1
- package/lib/user/user.model.d.ts +9 -9
- package/lib/user/user.model.js +28 -13
- package/lib/user/user.model.js.map +1 -1
- package/lib/validators/compare.validator.d.ts +5 -0
- package/lib/validators/compare.validator.js +28 -0
- package/lib/validators/compare.validator.js.map +1 -0
- package/lib/validators/index.d.ts +2 -0
- package/lib/validators/index.js +19 -0
- package/lib/validators/index.js.map +1 -0
- package/lib/validators/required.validator.d.ts +11 -0
- package/lib/validators/required.validator.js +80 -0
- package/lib/validators/required.validator.js.map +1 -0
- package/package.json +1 -3
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PricePlan = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const plan_enum_1 = require("./plan.enum");
|
|
15
|
+
class PricePlan {
|
|
16
|
+
id;
|
|
17
|
+
model;
|
|
18
|
+
name;
|
|
19
|
+
title;
|
|
20
|
+
description;
|
|
21
|
+
icon;
|
|
22
|
+
price;
|
|
23
|
+
startCredit;
|
|
24
|
+
active;
|
|
25
|
+
constructor(props) {
|
|
26
|
+
Object.assign(this, props);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.PricePlan = PricePlan;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], PricePlan.prototype, "id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], PricePlan.prototype, "model", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], PricePlan.prototype, "name", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], PricePlan.prototype, "title", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], PricePlan.prototype, "description", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], PricePlan.prototype, "icon", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_transformer_1.Expose)(),
|
|
57
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], PricePlan.prototype, "price", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], PricePlan.prototype, "startCredit", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
|
68
|
+
__metadata("design:type", Boolean)
|
|
69
|
+
], PricePlan.prototype, "active", void 0);
|
|
70
|
+
//# sourceMappingURL=plan.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.model.js","sourceRoot":"","sources":["../../src/priceplan/plan.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,2CAA4C;AAE5C,MAAa,SAAS;IAIrB,EAAE,CAAS;IAGX,KAAK,CAAgB;IAGrB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,WAAW,CAAS;IAIpB,MAAM,CAAU;IAEhB,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AApCD,8BAoCC;AAhCA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;wCACY;AAGrB;IADC,IAAA,0BAAM,GAAE;;uCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;wCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;8CACW;AAGpB;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './refund.model';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./refund.model"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/refund/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { User } from "../user";
|
|
2
|
+
import { BankAccount } from "../bank";
|
|
3
|
+
export declare class Refund {
|
|
4
|
+
id: number;
|
|
5
|
+
bank: BankAccount;
|
|
6
|
+
amount: number;
|
|
7
|
+
description: string;
|
|
8
|
+
createdBy: User;
|
|
9
|
+
createdOn: Date;
|
|
10
|
+
constructor(props?: Partial<Refund>);
|
|
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.Refund = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const user_1 = require("../user");
|
|
15
|
+
const bank_1 = require("../bank");
|
|
16
|
+
class Refund {
|
|
17
|
+
id;
|
|
18
|
+
bank;
|
|
19
|
+
amount;
|
|
20
|
+
description;
|
|
21
|
+
createdBy;
|
|
22
|
+
createdOn;
|
|
23
|
+
constructor(props) {
|
|
24
|
+
Object.assign(this, props);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Refund = Refund;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], Refund.prototype, "id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
(0, class_transformer_1.Type)(() => bank_1.BankAccount),
|
|
36
|
+
__metadata("design:type", bank_1.BankAccount)
|
|
37
|
+
], Refund.prototype, "bank", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], Refund.prototype, "amount", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Refund.prototype, "description", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
|
50
|
+
__metadata("design:type", user_1.User)
|
|
51
|
+
], Refund.prototype, "createdBy", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], Refund.prototype, "createdOn", void 0);
|
|
57
|
+
//# sourceMappingURL=refund.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refund.model.js","sourceRoot":"","sources":["../../src/refund/refund.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAA+B;AAC/B,kCAAsC;AAEtC,MAAa,MAAM;IAIlB,EAAE,CAAS;IAIX,IAAI,CAAc;IAIlB,MAAM,CAAS;IAGf,WAAW,CAAS;IAIpB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAEhB,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA5BD,wBA4BC;AAxBA;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,kBAAW,CAAC;8BAClB,kBAAW;oCAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACJ;AAGf;IADC,IAAA,0BAAM,GAAE;;2CACW;AAIpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;yCAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;yCAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountStatus = void 0;
|
|
4
|
+
var AccountStatus;
|
|
5
|
+
(function (AccountStatus) {
|
|
6
|
+
AccountStatus["Invited"] = "INVITED";
|
|
7
|
+
AccountStatus["Pending"] = "PENDING";
|
|
8
|
+
AccountStatus["Active"] = "ACTIVE";
|
|
9
|
+
AccountStatus["Suspended"] = "SUSPENDED";
|
|
10
|
+
AccountStatus["Disabled"] = "DISABLED";
|
|
11
|
+
AccountStatus["Closed"] = "CLOSED";
|
|
12
|
+
})(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
|
|
13
|
+
//# sourceMappingURL=account.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.types.js","sourceRoot":"","sources":["../../src/security/account.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAOX;AAPD,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;AACrB,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB"}
|
package/lib/security/acl.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
3
|
+
const role_types_1 = require("./role.types");
|
|
4
4
|
const ACL = {};
|
|
5
|
-
ACL[
|
|
5
|
+
ACL[role_types_1.Role.Administrator] = [];
|
|
6
6
|
//# sourceMappingURL=acl.js.map
|
package/lib/security/acl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acl.js","sourceRoot":"","sources":["../../src/security/acl.ts"],"names":[],"mappings":";;AAMA,
|
|
1
|
+
{"version":3,"file":"acl.js","sourceRoot":"","sources":["../../src/security/acl.ts"],"names":[],"mappings":";;AAMA,6CAAoC;AAGpC,MAAM,GAAG,GAAoC,EAAE,CAAC;AAEhD,GAAG,CAAC,iBAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC"}
|
package/lib/security/index.d.ts
CHANGED
package/lib/security/index.js
CHANGED
|
@@ -14,8 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./account.types"), exports);
|
|
17
18
|
__exportStar(require("./acl"), exports);
|
|
18
19
|
__exportStar(require("./permissions"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./role.types"), exports);
|
|
21
|
+
__exportStar(require("./role.dto"), exports);
|
|
22
|
+
__exportStar(require("./token"), exports);
|
|
21
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,gDAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,wCAAsB;AACtB,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,0CAAwB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RoleDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const role_types_1 = require("./role.types");
|
|
15
|
+
class RoleDto {
|
|
16
|
+
role;
|
|
17
|
+
}
|
|
18
|
+
exports.RoleDto = RoleDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
(0, class_validator_1.IsEnum)(role_types_1.Role),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], RoleDto.prototype, "role", void 0);
|
|
24
|
+
//# sourceMappingURL=role.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../src/security/role.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,6CAAoC;AAGpC,MAAa,OAAO;IAInB,IAAI,CAAM;CACV;AALD,0BAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,iBAAI,CAAC;;qCACH"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Role = void 0;
|
|
4
|
+
var Role;
|
|
5
|
+
(function (Role) {
|
|
6
|
+
Role["Administrator"] = "administrator";
|
|
7
|
+
Role["Student"] = "student";
|
|
8
|
+
Role["CompanyOwner"] = "company.owner";
|
|
9
|
+
Role["CompanyManager"] = "company.manager";
|
|
10
|
+
Role["Instructor"] = "instructor";
|
|
11
|
+
Role["Agent"] = "agent";
|
|
12
|
+
Role["AgentAgency"] = "agent.agency";
|
|
13
|
+
})(Role || (exports.Role = Role = {}));
|
|
14
|
+
//# sourceMappingURL=role.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.types.js","sourceRoot":"","sources":["../../src/security/role.types.ts"],"names":[],"mappings":";;;AAMA,IAAY,IA0CX;AA1CD,WAAY,IAAI;IAKf,uCAA+B,CAAA;IAM/B,2BAAmB,CAAA;IAMnB,sCAA8B,CAAA;IAM9B,0CAAkC,CAAA;IAMlC,iCAAyB,CAAA;IAMzB,uBAAe,CAAA;IAMf,oCAA4B,CAAA;AAC7B,CAAC,EA1CW,IAAI,oBAAJ,IAAI,QA0Cf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../src/security/token.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './session.model';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./session.model"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/session/course/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.CourseSession = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const calendar_1 = require("../../calendar");
|
|
15
|
+
const user_1 = require("../../user");
|
|
16
|
+
class CourseSession extends calendar_1.Appointment {
|
|
17
|
+
students;
|
|
18
|
+
attended;
|
|
19
|
+
constructor(props) {
|
|
20
|
+
super(props);
|
|
21
|
+
Object.assign(this, props);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.CourseSession = CourseSession;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
|
28
|
+
__metadata("design:type", user_1.User)
|
|
29
|
+
], CourseSession.prototype, "students", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
|
33
|
+
__metadata("design:type", user_1.User)
|
|
34
|
+
], CourseSession.prototype, "attended", void 0);
|
|
35
|
+
//# sourceMappingURL=session.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.model.js","sourceRoot":"","sources":["../../../src/session/course/session.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,6CAA6C;AAC7C,qCAAkC;AAElC,MAAa,aAAc,SAAQ,sBAAW;IAI7C,QAAQ,CAAO;IAIf,QAAQ,CAAO;IAEf,YAAY,KAA8B;QACzC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAdD,sCAcC;AAVA;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACP,WAAI;+CAAC;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACP,WAAI;+CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./session.model"), exports);
|
|
18
|
+
__exportStar(require("./session.skill"), exports);
|
|
19
|
+
__exportStar(require("./session.topic"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/session/driving/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Appointment } from "../../calendar";
|
|
2
|
+
import { DrivingSessionTopic } from "./session.topic";
|
|
3
|
+
import { Note } from "../../note";
|
|
4
|
+
import { Signature } from "../../signature";
|
|
5
|
+
import { Feedback } from "../../feedback";
|
|
6
|
+
export declare class DrivingSession extends Appointment {
|
|
7
|
+
price: number;
|
|
8
|
+
duration: number;
|
|
9
|
+
topics: DrivingSessionTopic[];
|
|
10
|
+
notes: Note[];
|
|
11
|
+
signature: Signature;
|
|
12
|
+
examFeedback: Feedback;
|
|
13
|
+
constructor(props?: Partial<DrivingSession>);
|
|
14
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DrivingSession = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const calendar_1 = require("../../calendar");
|
|
15
|
+
const session_topic_1 = require("./session.topic");
|
|
16
|
+
const note_1 = require("../../note");
|
|
17
|
+
const signature_1 = require("../../signature");
|
|
18
|
+
const feedback_1 = require("../../feedback");
|
|
19
|
+
class DrivingSession extends calendar_1.Appointment {
|
|
20
|
+
price;
|
|
21
|
+
duration;
|
|
22
|
+
topics;
|
|
23
|
+
notes;
|
|
24
|
+
signature;
|
|
25
|
+
examFeedback;
|
|
26
|
+
constructor(props) {
|
|
27
|
+
super(props);
|
|
28
|
+
Object.assign(this, props);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.DrivingSession = DrivingSession;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], DrivingSession.prototype, "price", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], DrivingSession.prototype, "duration", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
(0, class_transformer_1.Type)(() => session_topic_1.DrivingSessionTopic),
|
|
45
|
+
__metadata("design:type", Array)
|
|
46
|
+
], DrivingSession.prototype, "topics", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
(0, class_transformer_1.Type)(() => note_1.Note),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], DrivingSession.prototype, "notes", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
(0, class_transformer_1.Type)(() => signature_1.Signature),
|
|
55
|
+
__metadata("design:type", signature_1.Signature)
|
|
56
|
+
], DrivingSession.prototype, "signature", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
(0, class_transformer_1.Type)(() => feedback_1.Feedback),
|
|
60
|
+
__metadata("design:type", feedback_1.Feedback)
|
|
61
|
+
], DrivingSession.prototype, "examFeedback", void 0);
|
|
62
|
+
//# sourceMappingURL=session.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.model.js","sourceRoot":"","sources":["../../../src/session/driving/session.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,6CAA6C;AAC7C,mDAAsD;AACtD,qCAAkC;AAClC,+CAA4C;AAC5C,6CAA0C;AAE1C,MAAa,cAAe,SAAQ,sBAAW;IAI9C,KAAK,CAAS;IAId,QAAQ,CAAS;IAIjB,MAAM,CAAwB;IAI9B,KAAK,CAAS;IAId,SAAS,CAAY;IAIrB,YAAY,CAAW;IAEvB,YAAY,KAA+B;QAC1C,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA9BD,wCA8BC;AA1BA;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;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAmB,CAAC;;8CACF;AAI9B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;6CACH;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAS,CAAC;8BACX,qBAAS;iDAAC;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mBAAQ,CAAC;8BACP,mBAAQ;oDAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.DrivingSessionSkill = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const driving_1 = require("../../driving");
|
|
15
|
+
class DrivingSessionSkill extends driving_1.DrivingSkill {
|
|
16
|
+
score;
|
|
17
|
+
constructor(props) {
|
|
18
|
+
super(props);
|
|
19
|
+
Object.assign(this, props);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.DrivingSessionSkill = DrivingSessionSkill;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], DrivingSessionSkill.prototype, "score", void 0);
|
|
27
|
+
//# sourceMappingURL=session.skill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.skill.js","sourceRoot":"","sources":["../../../src/session/driving/session.skill.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,2CAA2D;AAE3D,MAAa,mBAAoB,SAAQ,sBAAY;IAGpD,KAAK,CAAe;IAEpB,YAAY,KAAoC;QAC/C,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AATD,kDASC;AANA;IADC,IAAA,0BAAM,GAAE;;kDACW"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DrivingScore, DrivingTopic, DrivingTopicStatus } from "../../driving";
|
|
2
|
+
import { DrivingSessionSkill } from "./session.skill";
|
|
3
|
+
import { User } from "../../user";
|
|
4
|
+
export declare class DrivingSessionTopic extends DrivingTopic {
|
|
5
|
+
status: DrivingTopicStatus;
|
|
6
|
+
score: DrivingScore;
|
|
7
|
+
repetitions: number;
|
|
8
|
+
completedBy: User;
|
|
9
|
+
completedOn: Date;
|
|
10
|
+
skills: DrivingSessionSkill[];
|
|
11
|
+
constructor(props?: Partial<DrivingSessionTopic>);
|
|
12
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.DrivingSessionTopic = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const driving_1 = require("../../driving");
|
|
15
|
+
const session_skill_1 = require("./session.skill");
|
|
16
|
+
const user_1 = require("../../user");
|
|
17
|
+
class DrivingSessionTopic extends driving_1.DrivingTopic {
|
|
18
|
+
status;
|
|
19
|
+
score;
|
|
20
|
+
repetitions;
|
|
21
|
+
completedBy;
|
|
22
|
+
completedOn;
|
|
23
|
+
skills;
|
|
24
|
+
constructor(props) {
|
|
25
|
+
super(props);
|
|
26
|
+
Object.assign(this, props);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.DrivingSessionTopic = DrivingSessionTopic;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], DrivingSessionTopic.prototype, "status", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], DrivingSessionTopic.prototype, "score", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], DrivingSessionTopic.prototype, "repetitions", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
|
46
|
+
__metadata("design:type", user_1.User)
|
|
47
|
+
], DrivingSessionTopic.prototype, "completedBy", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
(0, class_transformer_1.Type)(() => Date),
|
|
51
|
+
__metadata("design:type", Date)
|
|
52
|
+
], DrivingSessionTopic.prototype, "completedOn", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
(0, class_transformer_1.Type)(() => session_skill_1.DrivingSessionSkill),
|
|
56
|
+
__metadata("design:type", Array)
|
|
57
|
+
], DrivingSessionTopic.prototype, "skills", void 0);
|
|
58
|
+
//# sourceMappingURL=session.topic.js.map
|