@intelact/driveup 1.6.0 → 1.7.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 -2
- package/lib/agent/agent.model.js +3 -4
- package/lib/agent/agent.model.js.map +1 -1
- package/lib/auth/signin.dto.js +1 -1
- package/lib/auth/signin.dto.js.map +1 -1
- package/lib/calendar/holiday.d.ts +1 -5
- package/lib/calendar/holiday.js +3 -20
- package/lib/calendar/holiday.js.map +1 -1
- package/lib/common/index.d.ts +0 -2
- package/lib/common/index.js +0 -2
- package/lib/common/index.js.map +1 -1
- package/lib/common/person.d.ts +1 -0
- package/lib/common/person.js +22 -0
- package/lib/common/person.js.map +1 -1
- package/lib/company/company.model.d.ts +6 -7
- package/lib/company/company.model.js +10 -11
- package/lib/company/company.model.js.map +1 -1
- package/lib/credit/credit.model.d.ts +1 -2
- package/lib/credit/credit.model.js +1 -3
- package/lib/credit/credit.model.js.map +1 -1
- package/lib/discount/discount.model.d.ts +3 -4
- package/lib/discount/discount.model.js +4 -8
- package/lib/discount/discount.model.js.map +1 -1
- package/lib/driving/exam/exam.dto.d.ts +1 -2
- package/lib/driving/exam/exam.dto.js +2 -3
- package/lib/driving/exam/exam.dto.js.map +1 -1
- package/lib/driving/exam/exam.model.d.ts +1 -2
- package/lib/driving/exam/exam.model.js +3 -4
- package/lib/driving/exam/exam.model.js.map +1 -1
- package/lib/expense/expense.model.d.ts +5 -6
- package/lib/expense/expense.model.js +5 -10
- package/lib/expense/expense.model.js.map +1 -1
- package/lib/feedback/feedback.model.d.ts +1 -2
- package/lib/feedback/feedback.model.js +2 -4
- package/lib/feedback/feedback.model.js.map +1 -1
- package/lib/finance/finance.model.d.ts +6 -7
- package/lib/finance/finance.model.js +6 -11
- package/lib/finance/finance.model.js.map +1 -1
- package/lib/geo/address.dto.d.ts +1 -1
- package/lib/geo/address.dto.js +2 -2
- package/lib/geo/address.dto.js.map +1 -1
- package/lib/geo/address.model.d.ts +6 -4
- package/lib/geo/address.model.js +13 -2
- package/lib/geo/address.model.js.map +1 -1
- package/lib/geo/index.d.ts +0 -2
- package/lib/geo/index.js +0 -2
- package/lib/geo/index.js.map +1 -1
- package/lib/geo/pickup.model.d.ts +2 -2
- package/lib/geo/pickup.model.js +3 -3
- package/lib/geo/pickup.model.js.map +1 -1
- package/lib/index.d.ts +0 -5
- package/lib/index.js +0 -5
- package/lib/index.js.map +1 -1
- package/lib/instructor/instructor.model.d.ts +4 -6
- package/lib/instructor/instructor.model.js +6 -10
- package/lib/instructor/instructor.model.js.map +1 -1
- package/lib/invoice/invoice.model.d.ts +6 -8
- package/lib/invoice/invoice.model.js +8 -14
- package/lib/invoice/invoice.model.js.map +1 -1
- package/lib/license/license.model.d.ts +2 -0
- package/lib/license/license.model.js +10 -0
- package/lib/license/license.model.js.map +1 -1
- package/lib/note/note.model.d.ts +1 -1
- package/lib/note/note.model.js.map +1 -1
- package/lib/notification/notification.model.d.ts +3 -4
- package/lib/notification/notification.model.js +5 -5
- package/lib/notification/notification.model.js.map +1 -1
- package/lib/payment/payment.model.d.ts +3 -4
- package/lib/payment/payment.model.js +4 -8
- package/lib/payment/payment.model.js.map +1 -1
- package/lib/payout/payout.model.d.ts +2 -4
- package/lib/payout/payout.model.js +4 -7
- package/lib/payout/payout.model.js.map +1 -1
- package/lib/priceplan/plan.model.d.ts +1 -2
- package/lib/priceplan/plan.model.js +1 -7
- package/lib/priceplan/plan.model.js.map +1 -1
- package/lib/refund/refund.model.d.ts +4 -6
- package/lib/refund/refund.model.js +6 -11
- package/lib/refund/refund.model.js.map +1 -1
- package/lib/session/driving/session.model.d.ts +4 -4
- package/lib/session/driving/session.model.js +6 -6
- package/lib/session/driving/session.model.js.map +1 -1
- package/lib/session/driving/session.topic.d.ts +3 -4
- package/lib/session/driving/session.topic.js +3 -5
- package/lib/session/driving/session.topic.js.map +1 -1
- package/lib/training/driving.model.d.ts +1 -1
- package/lib/training/driving.model.js +1 -1
- package/lib/training/driving.model.js.map +1 -1
- package/lib/training/request.model.d.ts +4 -5
- package/lib/training/request.model.js +5 -9
- package/lib/training/request.model.js.map +1 -1
- package/lib/training/training.dto.d.ts +5 -2
- package/lib/training/training.dto.js +13 -3
- package/lib/training/training.dto.js.map +1 -1
- package/lib/training/training.model.d.ts +7 -9
- package/lib/training/training.model.js +9 -15
- package/lib/training/training.model.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/user/profile.dto.d.ts +0 -3
- package/lib/user/profile.dto.js +2 -12
- package/lib/user/profile.dto.js.map +1 -1
- package/lib/user/user.model.d.ts +5 -8
- package/lib/user/user.model.js +7 -10
- package/lib/user/user.model.js.map +1 -1
- package/lib/utils/array.helper.d.ts +7 -0
- package/lib/utils/array.helper.js +9 -0
- package/lib/utils/array.helper.js.map +1 -1
- package/package.json +2 -2
- package/lib/agent/asset.type.d.ts +0 -5
- package/lib/agent/asset.type.js +0 -10
- package/lib/agent/asset.type.js.map +0 -1
- package/lib/agent/earning.type.d.ts +0 -6
- package/lib/agent/earning.type.js +0 -3
- package/lib/agent/earning.type.js.map +0 -1
- package/lib/alert/alert.content.d.ts +0 -4
- package/lib/alert/alert.content.js +0 -9
- package/lib/alert/alert.content.js.map +0 -1
- package/lib/bill/bill-item.type.d.ts +0 -5
- package/lib/bill/bill-item.type.js +0 -10
- package/lib/bill/bill-item.type.js.map +0 -1
- package/lib/bill/bill.status.d.ts +0 -5
- package/lib/bill/bill.status.js +0 -13
- package/lib/bill/bill.status.js.map +0 -1
- package/lib/calendar/types.d.ts +0 -19
- package/lib/calendar/types.js +0 -25
- package/lib/calendar/types.js.map +0 -1
- package/lib/common/context.d.ts +0 -6
- package/lib/common/context.js +0 -11
- package/lib/common/context.js.map +0 -1
- package/lib/course/types.d.ts +0 -15
- package/lib/course/types.js +0 -22
- package/lib/course/types.js.map +0 -1
- package/lib/driving/lesson/types.d.ts +0 -15
- package/lib/driving/lesson/types.js +0 -21
- package/lib/driving/lesson/types.js.map +0 -1
- package/lib/driving/types.d.ts +0 -9
- package/lib/driving/types.js +0 -15
- package/lib/driving/types.js.map +0 -1
- package/lib/event/event.dto.d.ts +0 -24
- package/lib/event/event.dto.js +0 -146
- package/lib/event/event.dto.js.map +0 -1
- package/lib/event/event.model.d.ts +0 -8
- package/lib/event/event.model.js +0 -49
- package/lib/event/event.model.js.map +0 -1
- package/lib/event/index.d.ts +0 -2
- package/lib/event/index.js +0 -19
- package/lib/event/index.js.map +0 -1
- package/lib/events/agent/account.events.d.ts +0 -27
- package/lib/events/agent/account.events.js +0 -32
- package/lib/events/agent/account.events.js.map +0 -1
- package/lib/events/agent/payout.events.d.ts +0 -29
- package/lib/events/agent/payout.events.js +0 -34
- package/lib/events/agent/payout.events.js.map +0 -1
- package/lib/events/agent/profile.events.d.ts +0 -18
- package/lib/events/agent/profile.events.js +0 -23
- package/lib/events/agent/profile.events.js.map +0 -1
- package/lib/events/agent/promotion.events.d.ts +0 -42
- package/lib/events/agent/promotion.events.js +0 -47
- package/lib/events/agent/promotion.events.js.map +0 -1
- package/lib/events/auth/auth.events.d.ts +0 -16
- package/lib/events/auth/auth.events.js +0 -21
- package/lib/events/auth/auth.events.js.map +0 -1
- package/lib/events/auth/token.events.d.ts +0 -23
- package/lib/events/auth/token.events.js +0 -28
- package/lib/events/auth/token.events.js.map +0 -1
- package/lib/events/auth/verify.events.d.ts +0 -17
- package/lib/events/auth/verify.events.js +0 -22
- package/lib/events/auth/verify.events.js.map +0 -1
- package/lib/events/company/account/account.events.d.ts +0 -64
- package/lib/events/company/account/account.events.js +0 -69
- package/lib/events/company/account/account.events.js.map +0 -1
- package/lib/events/company/account/profile.events.d.ts +0 -169
- package/lib/events/company/account/profile.events.js +0 -174
- package/lib/events/company/account/profile.events.js.map +0 -1
- package/lib/events/company/course/appointment.events.d.ts +0 -56
- package/lib/events/company/course/appointment.events.js +0 -61
- package/lib/events/company/course/appointment.events.js.map +0 -1
- package/lib/events/company/course/course.events.d.ts +0 -118
- package/lib/events/company/course/course.events.js +0 -123
- package/lib/events/company/course/course.events.js.map +0 -1
- package/lib/events/company/course/lesson.events.d.ts +0 -56
- package/lib/events/company/course/lesson.events.js +0 -61
- package/lib/events/company/course/lesson.events.js.map +0 -1
- package/lib/events/company/course/topic.events.d.ts +0 -76
- package/lib/events/company/course/topic.events.js +0 -81
- package/lib/events/company/course/topic.events.js.map +0 -1
- package/lib/events/company/product/addon.events.d.ts +0 -34
- package/lib/events/company/product/addon.events.js +0 -39
- package/lib/events/company/product/addon.events.js.map +0 -1
- package/lib/events/company/product/campaign.events.d.ts +0 -13
- package/lib/events/company/product/campaign.events.js +0 -18
- package/lib/events/company/product/campaign.events.js.map +0 -1
- package/lib/events/company/product/product.events.d.ts +0 -54
- package/lib/events/company/product/product.events.js +0 -59
- package/lib/events/company/product/product.events.js.map +0 -1
- package/lib/events/index.d.ts +0 -25
- package/lib/events/index.js +0 -42
- package/lib/events/index.js.map +0 -1
- package/lib/events/instructor/account/account.events.d.ts +0 -123
- package/lib/events/instructor/account/account.events.js +0 -128
- package/lib/events/instructor/account/account.events.js.map +0 -1
- package/lib/events/instructor/account/profile.events.d.ts +0 -31
- package/lib/events/instructor/account/profile.events.js +0 -36
- package/lib/events/instructor/account/profile.events.js.map +0 -1
- package/lib/events/instructor/task/task.events.d.ts +0 -24
- package/lib/events/instructor/task/task.events.js +0 -29
- package/lib/events/instructor/task/task.events.js.map +0 -1
- package/lib/events/student/account/account.events.d.ts +0 -36
- package/lib/events/student/account/account.events.js +0 -41
- package/lib/events/student/account/account.events.js.map +0 -1
- package/lib/events/user/account.events.d.ts +0 -84
- package/lib/events/user/account.events.js +0 -89
- package/lib/events/user/account.events.js.map +0 -1
- package/lib/events/user/alert.events.d.ts +0 -16
- package/lib/events/user/alert.events.js +0 -21
- package/lib/events/user/alert.events.js.map +0 -1
- package/lib/events/user/device.events.d.ts +0 -30
- package/lib/events/user/device.events.js +0 -35
- package/lib/events/user/device.events.js.map +0 -1
- package/lib/events/user/notification.events.d.ts +0 -30
- package/lib/events/user/notification.events.js +0 -35
- package/lib/events/user/notification.events.js.map +0 -1
- package/lib/events/user/profile.events.d.ts +0 -60
- package/lib/events/user/profile.events.js +0 -65
- package/lib/events/user/profile.events.js.map +0 -1
- package/lib/expense/expense.types.d.ts +0 -5
- package/lib/expense/expense.types.js +0 -10
- package/lib/expense/expense.types.js.map +0 -1
- package/lib/finance/finance.type.d.ts +0 -21
- package/lib/finance/finance.type.js +0 -21
- package/lib/finance/finance.type.js.map +0 -1
- package/lib/free-benefit/free-benefit.type.d.ts +0 -4
- package/lib/free-benefit/free-benefit.type.js +0 -9
- package/lib/free-benefit/free-benefit.type.js.map +0 -1
- package/lib/handover/handover.document.d.ts +0 -5
- package/lib/handover/handover.document.js +0 -3
- package/lib/handover/handover.document.js.map +0 -1
- package/lib/invoice/invoice.types.d.ts +0 -6
- package/lib/invoice/invoice.types.js +0 -11
- package/lib/invoice/invoice.types.js.map +0 -1
- package/lib/log/log.type.d.ts +0 -9
- package/lib/log/log.type.js +0 -14
- package/lib/log/log.type.js.map +0 -1
- package/lib/notification/notification.channel.d.ts +0 -6
- package/lib/notification/notification.channel.js +0 -11
- package/lib/notification/notification.channel.js.map +0 -1
- package/lib/payment/payment.types.d.ts +0 -13
- package/lib/payment/payment.types.js +0 -20
- package/lib/payment/payment.types.js.map +0 -1
- package/lib/payout/payout.types.d.ts +0 -4
- package/lib/payout/payout.types.js +0 -9
- package/lib/payout/payout.types.js.map +0 -1
- package/lib/priceplan/plan.enum.d.ts +0 -23
- package/lib/priceplan/plan.enum.js +0 -29
- package/lib/priceplan/plan.enum.js.map +0 -1
- package/lib/product/index.d.ts +0 -3
- package/lib/product/index.js +0 -20
- package/lib/product/index.js.map +0 -1
- package/lib/product/product.dto.d.ts +0 -12
- package/lib/product/product.dto.js +0 -69
- package/lib/product/product.dto.js.map +0 -1
- package/lib/product/product.model.d.ts +0 -12
- package/lib/product/product.model.js +0 -61
- package/lib/product/product.model.js.map +0 -1
- package/lib/product/product.type.d.ts +0 -4
- package/lib/product/product.type.js +0 -9
- package/lib/product/product.type.js.map +0 -1
- package/lib/security/account.types.d.ts +0 -8
- package/lib/security/account.types.js +0 -13
- package/lib/security/account.types.js.map +0 -1
- package/lib/security/acl.d.ts +0 -6
- package/lib/security/acl.js +0 -11
- package/lib/security/acl.js.map +0 -1
- package/lib/security/permissions.d.ts +0 -9
- package/lib/security/permissions.js +0 -14
- package/lib/security/permissions.js.map +0 -1
- package/lib/security/role.types.d.ts +0 -41
- package/lib/security/role.types.js +0 -46
- package/lib/security/role.types.js.map +0 -1
- package/lib/setting/setting.type.d.ts +0 -7
- package/lib/setting/setting.type.js +0 -12
- package/lib/setting/setting.type.js.map +0 -1
- package/lib/ticket/ticket.enum.d.ts +0 -5
- package/lib/ticket/ticket.enum.js +0 -10
- package/lib/ticket/ticket.enum.js.map +0 -1
- package/lib/training/training.types.d.ts +0 -15
- package/lib/training/training.types.js +0 -22
- package/lib/training/training.types.js.map +0 -1
- package/lib/types/activity.type.d.ts +0 -46
- package/lib/types/activity.type.js +0 -51
- package/lib/types/activity.type.js.map +0 -1
- package/lib/types/addon.type.d.ts +0 -66
- package/lib/types/addon.type.js +0 -71
- package/lib/types/addon.type.js.map +0 -1
- package/lib/types/calendar.type.d.ts +0 -24
- package/lib/types/calendar.type.js +0 -31
- package/lib/types/calendar.type.js.map +0 -1
- package/lib/types/driving.type.d.ts +0 -12
- package/lib/types/driving.type.js +0 -18
- package/lib/types/driving.type.js.map +0 -1
- package/lib/types/earning.type.d.ts +0 -6
- package/lib/types/earning.type.js +0 -3
- package/lib/types/earning.type.js.map +0 -1
- package/lib/types/finance.type.d.ts +0 -67
- package/lib/types/finance.type.js +0 -77
- package/lib/types/finance.type.js.map +0 -1
- package/lib/types/index.d.ts +0 -15
- package/lib/types/index.js +0 -32
- package/lib/types/index.js.map +0 -1
- package/lib/types/interface.d.ts +0 -79
- package/lib/types/interface.js +0 -4
- package/lib/types/interface.js.map +0 -1
- package/lib/types/metric.type.d.ts +0 -34
- package/lib/types/metric.type.js +0 -39
- package/lib/types/metric.type.js.map +0 -1
- package/lib/types/policy.type.d.ts +0 -27
- package/lib/types/policy.type.js +0 -32
- package/lib/types/policy.type.js.map +0 -1
- package/lib/types/priceplan.type.d.ts +0 -39
- package/lib/types/priceplan.type.js +0 -48
- package/lib/types/priceplan.type.js.map +0 -1
- package/lib/types/product.type.d.ts +0 -202
- package/lib/types/product.type.js +0 -209
- package/lib/types/product.type.js.map +0 -1
- package/lib/types/program.type.d.ts +0 -23
- package/lib/types/program.type.js +0 -28
- package/lib/types/program.type.js.map +0 -1
- package/lib/types/security.type.d.ts +0 -54
- package/lib/types/security.type.js +0 -60
- package/lib/types/security.type.js.map +0 -1
- package/lib/types/support.type.d.ts +0 -128
- package/lib/types/support.type.js +0 -145
- package/lib/types/support.type.js.map +0 -1
- package/lib/types/training.type.d.ts +0 -16
- package/lib/types/training.type.js +0 -22
- package/lib/types/training.type.js.map +0 -1
- package/lib/user/profile.type.d.ts +0 -10
- package/lib/user/profile.type.js +0 -15
- package/lib/user/profile.type.js.map +0 -1
- package/lib/validators/compare.validator.d.ts +0 -9
- package/lib/validators/compare.validator.js +0 -34
- package/lib/validators/compare.validator.js.map +0 -1
- package/lib/validators/index.d.ts +0 -2
- package/lib/validators/index.js +0 -19
- package/lib/validators/index.js.map +0 -1
- package/lib/validators/required.validator.d.ts +0 -21
- package/lib/validators/required.validator.js +0 -95
- package/lib/validators/required.validator.js.map +0 -1
package/lib/user/profile.dto.js
CHANGED
|
@@ -9,9 +9,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CloseProfileDto = exports.
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
12
|
+
exports.CloseProfileDto = exports.ChangeProfileDto = exports.CreateProfileDto = void 0;
|
|
14
13
|
const shared_1 = require("@driveup/shared");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
15
|
const utils_1 = require("../utils");
|
|
16
16
|
class CreateProfileDto {
|
|
17
17
|
type;
|
|
@@ -44,16 +44,6 @@ __decorate([
|
|
|
44
44
|
(0, class_validator_1.IsNumber)(),
|
|
45
45
|
__metadata("design:type", Number)
|
|
46
46
|
], ChangeProfileDto.prototype, "id", void 0);
|
|
47
|
-
class FCMTokenDto {
|
|
48
|
-
fcmTokens;
|
|
49
|
-
}
|
|
50
|
-
exports.FCMTokenDto = FCMTokenDto;
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, class_validator_1.IsOptional)(),
|
|
53
|
-
(0, utils_1.ToStringArray)(),
|
|
54
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
55
|
-
__metadata("design:type", Array)
|
|
56
|
-
], FCMTokenDto.prototype, "fcmTokens", void 0);
|
|
57
47
|
class CloseProfileDto {
|
|
58
48
|
otp;
|
|
59
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.dto.js","sourceRoot":"","sources":["../../src/user/profile.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"profile.dto.js","sourceRoot":"","sources":["../../src/user/profile.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAwD;AACxD,qDAAqF;AAErF,oCAAyD;AAEzD,MAAa,gBAAgB;IAI5B,IAAI,CAAc;IAIlB,QAAQ,CAAW;CACnB;AATD,4CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAW,CAAC;;8CACF;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,iBAAQ,CAAC;;kDACE;AAGpB,MAAa,gBAAgB;IAI5B,IAAI,CAAc;IAKlB,EAAE,CAAS;CACX;AAVD,4CAUC;AANA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAW,CAAC;;8CACF;AAKlB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAQ,GAAE;IACV,IAAA,0BAAQ,GAAE;;4CACA;AAGZ,MAAa,eAAe;IAI3B,GAAG,CAAS;CACZ;AALD,0CAKC;AADA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,YAAI,GAAE;IACN,IAAA,0BAAQ,GAAE;;4CACC"}
|
package/lib/user/user.model.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Company } from "../company/company.model";
|
|
3
|
-
import { Instructor } from "../instructor/instructor.model";
|
|
4
|
-
import { Country } from "../country";
|
|
1
|
+
import { AccountStatus, Coordinate, Language, ProfileType } from "@driveup/shared";
|
|
5
2
|
import { Agent } from "../agent";
|
|
6
|
-
import { Student } from "../student";
|
|
7
|
-
import { Coordinate } from "../geo";
|
|
8
3
|
import { UserAlert } from "../alert/alert.model";
|
|
4
|
+
import { Company } from "../company/company.model";
|
|
5
|
+
import { Country } from "../country";
|
|
6
|
+
import { Instructor } from "../instructor/instructor.model";
|
|
9
7
|
import { Metric } from "../metric";
|
|
8
|
+
import { Student } from "../student";
|
|
10
9
|
/**
|
|
11
10
|
* Implemented for all kind of users (student, instructor, company user or agent).
|
|
12
11
|
* Depends on app sessions (public, mobile, admin, console).
|
|
@@ -32,8 +31,6 @@ export declare class User {
|
|
|
32
31
|
/************************** activity ***************************/
|
|
33
32
|
lastActivity: Date;
|
|
34
33
|
overdatedActivity: boolean;
|
|
35
|
-
/************************* FCM tokens (for push notifications) *************************/
|
|
36
|
-
fcmTokens: string[];
|
|
37
34
|
/************************* profiles **************************/
|
|
38
35
|
selectedProfile: ProfileType;
|
|
39
36
|
student: Student;
|
package/lib/user/user.model.js
CHANGED
|
@@ -10,16 +10,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.User = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
13
|
const shared_1 = require("@driveup/shared");
|
|
15
|
-
const
|
|
16
|
-
const instructor_model_1 = require("../instructor/instructor.model");
|
|
17
|
-
const country_1 = require("../country");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
18
15
|
const agent_1 = require("../agent");
|
|
19
|
-
const student_1 = require("../student");
|
|
20
|
-
const geo_1 = require("../geo");
|
|
21
16
|
const alert_model_1 = require("../alert/alert.model");
|
|
17
|
+
const company_model_1 = require("../company/company.model");
|
|
18
|
+
const country_1 = require("../country");
|
|
19
|
+
const instructor_model_1 = require("../instructor/instructor.model");
|
|
22
20
|
const metric_1 = require("../metric");
|
|
21
|
+
const student_1 = require("../student");
|
|
23
22
|
/**
|
|
24
23
|
* Implemented for all kind of users (student, instructor, company user or agent).
|
|
25
24
|
* Depends on app sessions (public, mobile, admin, console).
|
|
@@ -45,8 +44,6 @@ class User {
|
|
|
45
44
|
/************************** activity ***************************/
|
|
46
45
|
lastActivity;
|
|
47
46
|
overdatedActivity;
|
|
48
|
-
/************************* FCM tokens (for push notifications) *************************/
|
|
49
|
-
fcmTokens;
|
|
50
47
|
/************************* profiles **************************/
|
|
51
48
|
selectedProfile;
|
|
52
49
|
student;
|
|
@@ -117,8 +114,8 @@ __decorate([
|
|
|
117
114
|
], User.prototype, "zipCode", void 0);
|
|
118
115
|
__decorate([
|
|
119
116
|
(0, class_transformer_1.Expose)(),
|
|
120
|
-
(0, class_transformer_1.Type)(() =>
|
|
121
|
-
__metadata("design:type",
|
|
117
|
+
(0, class_transformer_1.Type)(() => shared_1.Coordinate),
|
|
118
|
+
__metadata("design:type", shared_1.Coordinate)
|
|
122
119
|
], User.prototype, "coord", void 0);
|
|
123
120
|
__decorate([
|
|
124
121
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../src/user/user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../src/user/user.model.ts"],"names":[],"mappings":"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"}
|
|
@@ -18,4 +18,11 @@ export declare class ArrayHelper {
|
|
|
18
18
|
* @returns Sum number
|
|
19
19
|
*/
|
|
20
20
|
static getSum(val: number[], toFixed?: number): number;
|
|
21
|
+
/**
|
|
22
|
+
* Get the average number in a number array
|
|
23
|
+
* @param val Number[]
|
|
24
|
+
* @param toFixed (2)
|
|
25
|
+
* @returns Average number
|
|
26
|
+
*/
|
|
27
|
+
static getAvg(val: number[], toFixed?: number): number;
|
|
21
28
|
}
|
|
@@ -28,6 +28,15 @@ class ArrayHelper {
|
|
|
28
28
|
static getSum(val, toFixed = 2) {
|
|
29
29
|
return +val.reduce((acc, curr) => +acc + +curr, 0).toFixed(toFixed);
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Get the average number in a number array
|
|
33
|
+
* @param val Number[]
|
|
34
|
+
* @param toFixed (2)
|
|
35
|
+
* @returns Average number
|
|
36
|
+
*/
|
|
37
|
+
static getAvg(val, toFixed = 2) {
|
|
38
|
+
return +(ArrayHelper.getSum(val) / val.length).toFixed(toFixed);
|
|
39
|
+
}
|
|
31
40
|
}
|
|
32
41
|
exports.ArrayHelper = ArrayHelper;
|
|
33
42
|
//# sourceMappingURL=array.helper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.helper.js","sourceRoot":"","sources":["../../src/utils/array.helper.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;IAEvB;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAI,GAAQ;QAC3B,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3D,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,WAAW,CAAI,GAAQ;QAC7B,OAAO,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,GAAa,EAAE,OAAO,GAAC,CAAC;QACrC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CACD;
|
|
1
|
+
{"version":3,"file":"array.helper.js","sourceRoot":"","sources":["../../src/utils/array.helper.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;IAEvB;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAI,GAAQ;QAC3B,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3D,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,WAAW,CAAI,GAAQ;QAC7B,OAAO,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACtD,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,GAAa,EAAE,OAAO,GAAC,CAAC;QACrC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,GAAa,EAAE,OAAO,GAAC,CAAC;QACrC,OAAO,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;CACD;AAxCD,kCAwCC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intelact/driveup",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Driveup Common",
|
|
5
5
|
"author": "Intelact Solutions Ltd.",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"node": ">=20"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@driveup/shared": "^0.1.
|
|
27
|
+
"@driveup/shared": "^0.1.9",
|
|
28
28
|
"class-transformer": "^0.5.1",
|
|
29
29
|
"class-validator": "^0.14.1",
|
|
30
30
|
"luxon": "^3.5.0",
|
package/lib/agent/asset.type.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentAssetType = void 0;
|
|
4
|
-
var AgentAssetType;
|
|
5
|
-
(function (AgentAssetType) {
|
|
6
|
-
AgentAssetType["Video"] = "VIDEO";
|
|
7
|
-
AgentAssetType["Image"] = "IMAGE";
|
|
8
|
-
AgentAssetType["PDF"] = "PDF";
|
|
9
|
-
})(AgentAssetType || (exports.AgentAssetType = AgentAssetType = {}));
|
|
10
|
-
//# sourceMappingURL=asset.type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"asset.type.js","sourceRoot":"","sources":["../../src/agent/asset.type.ts"],"names":[],"mappings":";;;AACA,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,6BAAW,CAAA;AACZ,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"earning.type.js","sourceRoot":"","sources":["../../src/agent/earning.type.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AlertContent = void 0;
|
|
4
|
-
var AlertContent;
|
|
5
|
-
(function (AlertContent) {
|
|
6
|
-
AlertContent["RecoveryEmail"] = "RECOVERY_EMAIL";
|
|
7
|
-
AlertContent["TrainingRating"] = "TRAINING_RATING";
|
|
8
|
-
})(AlertContent || (exports.AlertContent = AlertContent = {}));
|
|
9
|
-
//# sourceMappingURL=alert.content.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.content.js","sourceRoot":"","sources":["../../src/alert/alert.content.ts"],"names":[],"mappings":";;;AACA,IAAY,YAGX;AAHD,WAAY,YAAY;IACvB,gDAAgC,CAAA;IAChC,kDAAkC,CAAA;AACnC,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CompanyBillItemType = void 0;
|
|
4
|
-
var CompanyBillItemType;
|
|
5
|
-
(function (CompanyBillItemType) {
|
|
6
|
-
CompanyBillItemType["StudentTraining"] = "bill.item.studentTraining";
|
|
7
|
-
CompanyBillItemType["InstructorSubscription"] = "bill.item.instructorSubscription";
|
|
8
|
-
CompanyBillItemType["EnterpriseSeats"] = "bill.item.enterpriseSeats";
|
|
9
|
-
})(CompanyBillItemType || (exports.CompanyBillItemType = CompanyBillItemType = {}));
|
|
10
|
-
//# sourceMappingURL=bill-item.type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bill-item.type.js","sourceRoot":"","sources":["../../src/bill/bill-item.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,oEAA6C,CAAA;IAC7C,kFAA2D,CAAA;IAC3D,oEAA6C,CAAA;AAC9C,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
|
package/lib/bill/bill.status.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BillStatus = void 0;
|
|
4
|
-
var BillStatus;
|
|
5
|
-
(function (BillStatus) {
|
|
6
|
-
// Current cycle
|
|
7
|
-
BillStatus["ACTIVE"] = "ACTIVE";
|
|
8
|
-
// Payment failed
|
|
9
|
-
BillStatus["UNPAID"] = "UNPAID";
|
|
10
|
-
// Payment completed
|
|
11
|
-
BillStatus["PAID"] = "PAID";
|
|
12
|
-
})(BillStatus || (exports.BillStatus = BillStatus = {}));
|
|
13
|
-
//# sourceMappingURL=bill.status.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bill.status.js","sourceRoot":"","sources":["../../src/bill/bill.status.ts"],"names":[],"mappings":";;;AACA,IAAY,UAOX;AAPD,WAAY,UAAU;IACrB,gBAAgB;IAChB,+BAAiB,CAAA;IACjB,iBAAiB;IACjB,+BAAiB,CAAA;IACjB,oBAAoB;IACpB,2BAAa,CAAA;AACd,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB"}
|
package/lib/calendar/types.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare enum AppointmentType {
|
|
2
|
-
Driving = "DRIVING",
|
|
3
|
-
Flexible = "FLEXIBLE",
|
|
4
|
-
Fixed = "FIXED",
|
|
5
|
-
Canceled = "CANCELED",
|
|
6
|
-
Task = "TASK",
|
|
7
|
-
NonWorking = "NONWORKING",
|
|
8
|
-
Holiday = "HOLIDAY",
|
|
9
|
-
OffDay = "OFFDAY"
|
|
10
|
-
}
|
|
11
|
-
export declare enum WeekDay {
|
|
12
|
-
Monday = "MONDAY",
|
|
13
|
-
Tuesday = "TUESDAY",
|
|
14
|
-
Wednesday = "WEDNESDAY",
|
|
15
|
-
Thursday = "THURSDAY",
|
|
16
|
-
Friday = "FRIDAY",
|
|
17
|
-
Saturday = "SATURDAY",
|
|
18
|
-
Sunday = "SUNDAY"
|
|
19
|
-
}
|
package/lib/calendar/types.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WeekDay = exports.AppointmentType = void 0;
|
|
4
|
-
var AppointmentType;
|
|
5
|
-
(function (AppointmentType) {
|
|
6
|
-
AppointmentType["Driving"] = "DRIVING";
|
|
7
|
-
AppointmentType["Flexible"] = "FLEXIBLE";
|
|
8
|
-
AppointmentType["Fixed"] = "FIXED";
|
|
9
|
-
AppointmentType["Canceled"] = "CANCELED";
|
|
10
|
-
AppointmentType["Task"] = "TASK";
|
|
11
|
-
AppointmentType["NonWorking"] = "NONWORKING";
|
|
12
|
-
AppointmentType["Holiday"] = "HOLIDAY";
|
|
13
|
-
AppointmentType["OffDay"] = "OFFDAY";
|
|
14
|
-
})(AppointmentType || (exports.AppointmentType = AppointmentType = {}));
|
|
15
|
-
var WeekDay;
|
|
16
|
-
(function (WeekDay) {
|
|
17
|
-
WeekDay["Monday"] = "MONDAY";
|
|
18
|
-
WeekDay["Tuesday"] = "TUESDAY";
|
|
19
|
-
WeekDay["Wednesday"] = "WEDNESDAY";
|
|
20
|
-
WeekDay["Thursday"] = "THURSDAY";
|
|
21
|
-
WeekDay["Friday"] = "FRIDAY";
|
|
22
|
-
WeekDay["Saturday"] = "SATURDAY";
|
|
23
|
-
WeekDay["Sunday"] = "SUNDAY";
|
|
24
|
-
})(WeekDay || (exports.WeekDay = WeekDay = {}));
|
|
25
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/calendar/types.ts"],"names":[],"mappings":";;;AACA,IAAY,eASX;AATD,WAAY,eAAe;IAC1B,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;IACf,wCAAqB,CAAA;IACrB,gCAAa,CAAA;IACb,4CAAyB,CAAA;IACtB,sCAAmB,CAAA;IACtB,oCAAiB,CAAA;AAClB,CAAC,EATW,eAAe,+BAAf,eAAe,QAS1B;AAED,IAAY,OAQX;AARD,WAAY,OAAO;IAClB,4BAAiB,CAAA;IACjB,8BAAmB,CAAA;IACnB,kCAAuB,CAAA;IACvB,gCAAqB,CAAA;IACrB,4BAAiB,CAAA;IACjB,gCAAqB,CAAA;IACrB,4BAAiB,CAAA;AAClB,CAAC,EARW,OAAO,uBAAP,OAAO,QAQlB"}
|
package/lib/common/context.d.ts
DELETED
package/lib/common/context.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Context = void 0;
|
|
4
|
-
var Context;
|
|
5
|
-
(function (Context) {
|
|
6
|
-
Context["Info"] = "info";
|
|
7
|
-
Context["Error"] = "error";
|
|
8
|
-
Context["Warning"] = "warning";
|
|
9
|
-
Context["Success"] = "success";
|
|
10
|
-
})(Context || (exports.Context = Context = {}));
|
|
11
|
-
//# sourceMappingURL=context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/common/context.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAKX;AALD,WAAY,OAAO;IAClB,wBAAa,CAAA;IACb,0BAAe,CAAA;IACf,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;AACpB,CAAC,EALW,OAAO,uBAAP,OAAO,QAKlB"}
|
package/lib/course/types.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
package/lib/course/types.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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=types.js.map
|
package/lib/course/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/course/types.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,15 +0,0 @@
|
|
|
1
|
-
export declare enum DrivingScore {
|
|
2
|
-
NoScoreSubmitted = 0,
|
|
3
|
-
Poor = 1,
|
|
4
|
-
Weak = 2,
|
|
5
|
-
Fair = 3,
|
|
6
|
-
Great = 4,
|
|
7
|
-
Excellent = 5
|
|
8
|
-
}
|
|
9
|
-
export declare enum DrivingTopicStatus {
|
|
10
|
-
Planned = "PLANNED",
|
|
11
|
-
InProgress = "INPROGRESS",
|
|
12
|
-
Completed = "COMPLETED",
|
|
13
|
-
Skipped = "SKIPPED",
|
|
14
|
-
Faild = "FAILD"
|
|
15
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DrivingTopicStatus = exports.DrivingScore = void 0;
|
|
4
|
-
var DrivingScore;
|
|
5
|
-
(function (DrivingScore) {
|
|
6
|
-
DrivingScore[DrivingScore["NoScoreSubmitted"] = 0] = "NoScoreSubmitted";
|
|
7
|
-
DrivingScore[DrivingScore["Poor"] = 1] = "Poor";
|
|
8
|
-
DrivingScore[DrivingScore["Weak"] = 2] = "Weak";
|
|
9
|
-
DrivingScore[DrivingScore["Fair"] = 3] = "Fair";
|
|
10
|
-
DrivingScore[DrivingScore["Great"] = 4] = "Great";
|
|
11
|
-
DrivingScore[DrivingScore["Excellent"] = 5] = "Excellent";
|
|
12
|
-
})(DrivingScore || (exports.DrivingScore = DrivingScore = {}));
|
|
13
|
-
var DrivingTopicStatus;
|
|
14
|
-
(function (DrivingTopicStatus) {
|
|
15
|
-
DrivingTopicStatus["Planned"] = "PLANNED";
|
|
16
|
-
DrivingTopicStatus["InProgress"] = "INPROGRESS";
|
|
17
|
-
DrivingTopicStatus["Completed"] = "COMPLETED";
|
|
18
|
-
DrivingTopicStatus["Skipped"] = "SKIPPED";
|
|
19
|
-
DrivingTopicStatus["Faild"] = "FAILD";
|
|
20
|
-
})(DrivingTopicStatus || (exports.DrivingTopicStatus = DrivingTopicStatus = {}));
|
|
21
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/driving/lesson/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAOX;AAPD,WAAY,YAAY;IACvB,uEAAoB,CAAA;IACpB,+CAAQ,CAAA;IACR,+CAAQ,CAAA;IACR,+CAAQ,CAAA;IACR,iDAAS,CAAA;IACT,yDAAa,CAAA;AACd,CAAC,EAPW,YAAY,4BAAZ,YAAY,QAOvB;AAED,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC7B,yCAAmB,CAAA;IACnB,+CAAyB,CAAA;IACzB,6CAAuB,CAAA;IACvB,yCAAmB,CAAA;IACnB,qCAAe,CAAA;AAChB,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B"}
|
package/lib/driving/types.d.ts
DELETED
package/lib/driving/types.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DrivingExamStatus = exports.CarTransmission = void 0;
|
|
4
|
-
var CarTransmission;
|
|
5
|
-
(function (CarTransmission) {
|
|
6
|
-
CarTransmission["Automatic"] = "AUTOMATIC";
|
|
7
|
-
CarTransmission["Manual"] = "MANUAL";
|
|
8
|
-
})(CarTransmission || (exports.CarTransmission = CarTransmission = {}));
|
|
9
|
-
var DrivingExamStatus;
|
|
10
|
-
(function (DrivingExamStatus) {
|
|
11
|
-
DrivingExamStatus["Pending"] = "PENDING";
|
|
12
|
-
DrivingExamStatus["Passed"] = "PASSED";
|
|
13
|
-
DrivingExamStatus["Failed"] = "FAILED";
|
|
14
|
-
})(DrivingExamStatus || (exports.DrivingExamStatus = DrivingExamStatus = {}));
|
|
15
|
-
//# sourceMappingURL=types.js.map
|
package/lib/driving/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/driving/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,0CAAuB,CAAA;IACvB,oCAAiB,CAAA;AAClB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,sCAAiB,CAAA;AAClB,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B"}
|
package/lib/event/event.dto.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare class TaskCreateDto {
|
|
2
|
-
instructorId: number;
|
|
3
|
-
title: string;
|
|
4
|
-
startDate: Date;
|
|
5
|
-
endDate: Date;
|
|
6
|
-
allDay: boolean;
|
|
7
|
-
busy: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare class TaskUpdateDto {
|
|
10
|
-
instructorId: number;
|
|
11
|
-
title: string;
|
|
12
|
-
startDate: Date;
|
|
13
|
-
endDate: Date;
|
|
14
|
-
allDay: boolean;
|
|
15
|
-
busy: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare class TaskFilterDto {
|
|
18
|
-
instructors: number[];
|
|
19
|
-
title: string;
|
|
20
|
-
startDate: Date;
|
|
21
|
-
endDate: Date;
|
|
22
|
-
allDay: boolean;
|
|
23
|
-
busy: boolean;
|
|
24
|
-
}
|