@driveup/schema 0.2.6 → 0.2.9
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/catalog/addon/addon.entity.d.ts +3 -3
- package/lib/catalog/addon/addon.entity.js +7 -7
- package/lib/catalog/addon/addon.entity.js.map +1 -1
- package/lib/catalog/addon/country.entity.d.ts +4 -4
- package/lib/catalog/addon/country.entity.js +5 -6
- package/lib/catalog/addon/country.entity.js.map +1 -1
- package/lib/catalog/priceplan/priceplan.entity.d.ts +8 -3
- package/lib/catalog/priceplan/priceplan.entity.js +14 -7
- package/lib/catalog/priceplan/priceplan.entity.js.map +1 -1
- package/lib/catalog/product/country.entity.d.ts +6 -6
- package/lib/catalog/product/country.entity.js +9 -10
- package/lib/catalog/product/country.entity.js.map +1 -1
- package/lib/catalog/product/priceplan.entity.d.ts +9 -4
- package/lib/catalog/product/priceplan.entity.js +19 -9
- package/lib/catalog/product/priceplan.entity.js.map +1 -1
- package/lib/catalog/product/product.entity.d.ts +3 -3
- package/lib/catalog/product/product.entity.js +8 -8
- package/lib/catalog/product/product.entity.js.map +1 -1
- package/lib/catalog/program/program.entity.d.ts +2 -2
- package/lib/catalog/program/program.entity.js +7 -7
- package/lib/catalog/program/program.entity.js.map +1 -1
- package/lib/catalog/seed/assets/asset.entity.d.ts +2 -2
- package/lib/catalog/seed/assets/asset.entity.js +6 -6
- package/lib/catalog/seed/assets/asset.entity.js.map +1 -1
- package/lib/catalog/seed/courses/course.entity.d.ts +4 -4
- package/lib/catalog/seed/courses/course.entity.js +9 -9
- package/lib/catalog/seed/courses/course.entity.js.map +1 -1
- package/lib/catalog/seed/courses/lesson.entity.d.ts +3 -3
- package/lib/catalog/seed/courses/lesson.entity.js +7 -7
- package/lib/catalog/seed/courses/lesson.entity.js.map +1 -1
- package/lib/catalog/seed/courses/topic.entity.d.ts +3 -3
- package/lib/catalog/seed/courses/topic.entity.js +8 -8
- package/lib/catalog/seed/courses/topic.entity.js.map +1 -1
- package/lib/catalog/seed/expense/category.entity.d.ts +2 -2
- package/lib/catalog/seed/expense/category.entity.js +6 -6
- package/lib/catalog/seed/expense/category.entity.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/profile/agent/agent.entity.d.ts +13 -4
- package/lib/profile/agent/agent.entity.js +46 -20
- package/lib/profile/agent/agent.entity.js.map +1 -1
- package/lib/profile/agent/asset.entity.d.ts +1 -1
- package/lib/profile/agent/asset.entity.js +2 -2
- package/lib/profile/agent/asset.entity.js.map +1 -1
- package/lib/profile/agent/payout.entity.d.ts +3 -3
- package/lib/profile/agent/payout.entity.js +6 -6
- package/lib/profile/agent/payout.entity.js.map +1 -1
- package/lib/profile/agent/promotion.entity.d.ts +3 -3
- package/lib/profile/agent/promotion.entity.js +6 -6
- package/lib/profile/agent/promotion.entity.js.map +1 -1
- package/lib/profile/company/company.entity.d.ts +80 -9
- package/lib/profile/company/company.entity.js +246 -36
- package/lib/profile/company/company.entity.js.map +1 -1
- package/lib/profile/company/course/appointment.entity.d.ts +73 -4
- package/lib/profile/company/course/appointment.entity.js +247 -0
- package/lib/profile/company/course/appointment.entity.js.map +1 -1
- package/lib/profile/company/course/course.entity.d.ts +41 -8
- package/lib/profile/company/course/course.entity.js +58 -12
- package/lib/profile/company/course/course.entity.js.map +1 -1
- package/lib/profile/company/course/lesson.entity.d.ts +30 -7
- package/lib/profile/company/course/lesson.entity.js +93 -12
- package/lib/profile/company/course/lesson.entity.js.map +1 -1
- package/lib/profile/company/course/schedule.entity.d.ts +276 -0
- package/lib/profile/company/course/schedule.entity.js +744 -0
- package/lib/profile/company/course/schedule.entity.js.map +1 -0
- package/lib/profile/company/course/topic.entity.d.ts +9 -4
- package/lib/profile/company/course/topic.entity.js +14 -7
- package/lib/profile/company/course/topic.entity.js.map +1 -1
- package/lib/profile/company/finances/billing/bill.entity.d.ts +9 -2
- package/lib/profile/company/finances/billing/bill.entity.js +38 -4
- package/lib/profile/company/finances/billing/bill.entity.js.map +1 -1
- package/lib/profile/company/finances/billing/item.entity.d.ts +8 -3
- package/lib/profile/company/finances/billing/item.entity.js +10 -6
- package/lib/profile/company/finances/billing/item.entity.js.map +1 -1
- package/lib/profile/company/finances/billing/transaction.entity.d.ts +7 -5
- package/lib/profile/company/finances/billing/transaction.entity.js +6 -6
- package/lib/profile/company/finances/billing/transaction.entity.js.map +1 -1
- package/lib/profile/company/finances/expense/category.entity.d.ts +1 -1
- package/lib/profile/company/finances/expense/category.entity.js +4 -4
- package/lib/profile/company/finances/expense/category.entity.js.map +1 -1
- package/lib/profile/company/finances/expense/expense.entity.d.ts +6 -2
- package/lib/profile/company/finances/expense/expense.entity.js +32 -4
- package/lib/profile/company/finances/expense/expense.entity.js.map +1 -1
- package/lib/profile/company/finances/handover/handover.entity.d.ts +3 -3
- package/lib/profile/company/finances/handover/handover.entity.js +6 -6
- package/lib/profile/company/finances/handover/handover.entity.js.map +1 -1
- package/lib/profile/company/finances/invoice/invoice.entity.d.ts +8 -7
- package/lib/profile/company/finances/invoice/invoice.entity.js +15 -14
- package/lib/profile/company/finances/invoice/invoice.entity.js.map +1 -1
- package/lib/profile/company/finances/invoice/item.entity.d.ts +2 -2
- package/lib/profile/company/finances/invoice/item.entity.js +4 -4
- package/lib/profile/company/finances/invoice/item.entity.js.map +1 -1
- package/lib/profile/company/finances/payment/method.entity.d.ts +24 -4
- package/lib/profile/company/finances/payment/method.entity.js +40 -5
- package/lib/profile/company/finances/payment/method.entity.js.map +1 -1
- package/lib/profile/company/instructor/activity.entity.js.map +1 -1
- package/lib/profile/company/instructor/calendar-state.entity.js.map +1 -1
- package/lib/profile/company/instructor/instructor.entity.d.ts +34 -17
- package/lib/profile/company/instructor/instructor.entity.js +143 -25
- package/lib/profile/company/instructor/instructor.entity.js.map +1 -1
- package/lib/profile/company/instructor/task.entity.d.ts +2 -1
- package/lib/profile/company/instructor/task.entity.js +9 -4
- package/lib/profile/company/instructor/task.entity.js.map +1 -1
- package/lib/profile/company/medical/examination.entity.d.ts +4 -4
- package/lib/profile/company/medical/examination.entity.js +6 -6
- package/lib/profile/company/medical/examination.entity.js.map +1 -1
- package/lib/profile/company/medical/product.entity.d.ts +4 -5
- package/lib/profile/company/medical/product.entity.js +13 -14
- package/lib/profile/company/medical/product.entity.js.map +1 -1
- package/lib/profile/company/product/addon.entity.d.ts +3 -3
- package/lib/profile/company/product/addon.entity.js +6 -7
- package/lib/profile/company/product/addon.entity.js.map +1 -1
- package/lib/profile/company/product/priceplan.entity.d.ts +15 -13
- package/lib/profile/company/product/priceplan.entity.js +20 -16
- package/lib/profile/company/product/priceplan.entity.js.map +1 -1
- package/lib/profile/company/product/product.entity.d.ts +34 -8
- package/lib/profile/company/product/product.entity.js +70 -12
- package/lib/profile/company/product/product.entity.js.map +1 -1
- package/lib/profile/company/product/vehicle.entity.d.ts +2 -2
- package/lib/profile/company/product/vehicle.entity.js +4 -4
- package/lib/profile/company/product/vehicle.entity.js.map +1 -1
- package/lib/profile/instructor/instructor.entity.d.ts +6 -3
- package/lib/profile/instructor/instructor.entity.js +31 -9
- package/lib/profile/instructor/instructor.entity.js.map +1 -1
- package/lib/profile/student/program/licence/licence.entity.d.ts +13 -5
- package/lib/profile/student/program/licence/licence.entity.js +19 -8
- package/lib/profile/student/program/licence/licence.entity.js.map +1 -1
- package/lib/profile/student/program/medical/certificate.entity.d.ts +3 -3
- package/lib/profile/student/program/medical/certificate.entity.js +6 -6
- package/lib/profile/student/program/medical/certificate.entity.js.map +1 -1
- package/lib/profile/student/program/medical/examination.entity.d.ts +4 -4
- package/lib/profile/student/program/medical/examination.entity.js +14 -14
- package/lib/profile/student/program/medical/examination.entity.js.map +1 -1
- package/lib/profile/student/program/program.entity.d.ts +4 -4
- package/lib/profile/student/program/program.entity.js +8 -13
- package/lib/profile/student/program/program.entity.js.map +1 -1
- package/lib/profile/student/program/training/appointment.entity.d.ts +32 -9
- package/lib/profile/student/program/training/appointment.entity.js +144 -21
- package/lib/profile/student/program/training/appointment.entity.js.map +1 -1
- package/lib/profile/student/program/training/exam.entity.d.ts +9 -2
- package/lib/profile/student/program/training/exam.entity.js +28 -12
- package/lib/profile/student/program/training/exam.entity.js.map +1 -1
- package/lib/profile/student/program/training/lesson.entity.d.ts +8 -3
- package/lib/profile/student/program/training/lesson.entity.js +28 -6
- package/lib/profile/student/program/training/lesson.entity.js.map +1 -1
- package/lib/profile/student/program/training/request.entity.d.ts +6 -3
- package/lib/profile/student/program/training/request.entity.js +26 -5
- package/lib/profile/student/program/training/request.entity.js.map +1 -1
- package/lib/profile/student/program/training/topic.entity.d.ts +16 -4
- package/lib/profile/student/program/training/topic.entity.js +36 -9
- package/lib/profile/student/program/training/topic.entity.js.map +1 -1
- package/lib/profile/student/program/training/training.entity.d.ts +50 -6
- package/lib/profile/student/program/training/training.entity.js +217 -33
- package/lib/profile/student/program/training/training.entity.js.map +1 -1
- package/lib/profile/student/program/training/transaction.entity.d.ts +8 -3
- package/lib/profile/student/program/training/transaction.entity.js +43 -6
- package/lib/profile/student/program/training/transaction.entity.js.map +1 -1
- package/lib/profile/student/student.entity.d.ts +11 -6
- package/lib/profile/student/student.entity.js +59 -11
- package/lib/profile/student/student.entity.js.map +1 -1
- package/lib/system/campaign/campaign.entity.d.ts +4 -4
- package/lib/system/campaign/campaign.entity.js +10 -10
- package/lib/system/campaign/campaign.entity.js.map +1 -1
- package/lib/system/campaign/gifcode.entity.d.ts +4 -4
- package/lib/system/campaign/gifcode.entity.js +8 -8
- package/lib/system/campaign/gifcode.entity.js.map +1 -1
- package/lib/system/country/country.entity.d.ts +8 -6
- package/lib/system/country/country.entity.js +15 -9
- package/lib/system/country/country.entity.js.map +1 -1
- package/lib/system/currency/currency.entity.d.ts +1 -1
- package/lib/system/currency/currency.entity.js +4 -4
- package/lib/system/currency/currency.entity.js.map +1 -1
- package/lib/system/driving/category.entity.d.ts +7 -7
- package/lib/system/driving/category.entity.js +14 -14
- package/lib/system/driving/category.entity.js.map +1 -1
- package/lib/system/driving/vehicle.entity.d.ts +2 -2
- package/lib/system/driving/vehicle.entity.js +4 -4
- package/lib/system/driving/vehicle.entity.js.map +1 -1
- package/lib/system/event/event.entity.d.ts +2 -2
- package/lib/system/event/event.entity.js +4 -4
- package/lib/system/event/event.entity.js.map +1 -1
- package/lib/system/event/log.entity.d.ts +2 -2
- package/lib/system/event/log.entity.js +3 -3
- package/lib/system/event/log.entity.js.map +1 -1
- package/lib/system/ical/ical.entity.d.ts +63 -0
- package/lib/system/ical/ical.entity.js +70 -0
- package/lib/system/ical/ical.entity.js.map +1 -0
- package/lib/system/policy/policy.entity.d.ts +2 -2
- package/lib/system/policy/policy.entity.js +8 -8
- package/lib/system/policy/policy.entity.js.map +1 -1
- package/lib/system/staff/staff.entity.d.ts +1 -1
- package/lib/system/staff/staff.entity.js +5 -4
- package/lib/system/staff/staff.entity.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/user/alert.entity.d.ts +4 -3
- package/lib/user/alert.entity.js +11 -4
- package/lib/user/alert.entity.js.map +1 -1
- package/lib/user/blocked.entity.js +2 -2
- package/lib/user/blocked.entity.js.map +1 -1
- package/lib/user/device.entity.d.ts +17 -2
- package/lib/user/device.entity.js +29 -3
- package/lib/user/device.entity.js.map +1 -1
- package/lib/user/notification.entity.d.ts +3 -3
- package/lib/user/notification.entity.js +8 -8
- package/lib/user/notification.entity.js.map +1 -1
- package/lib/user/ticket.entity.d.ts +8 -3
- package/lib/user/ticket.entity.js +16 -7
- package/lib/user/ticket.entity.js.map +1 -1
- package/lib/user/user.entity.d.ts +101 -89
- package/lib/user/user.entity.js +272 -270
- package/lib/user/user.entity.js.map +1 -1
- package/lib/user/verification.entity.js +2 -2
- package/lib/user/verification.entity.js.map +1 -1
- package/lib/utils/activity.helper.d.ts +2 -2
- package/lib/utils/activity.helper.js.map +1 -1
- package/lib/utils/trackable.d.ts +13 -2
- package/lib/utils/trackable.js +55 -0
- package/lib/utils/trackable.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { Activity, Authority, Licence } from '@driveup/common';
|
|
1
2
|
import { ProductType } from '@driveup/shared';
|
|
2
|
-
import { Activity, Licence, Authority } from '@driveup/common';
|
|
3
|
-
import { StudentEntity } from '../../student.entity';
|
|
4
3
|
import { DrivingCategoryEntity } from '../../../../system/driving/category.entity';
|
|
5
|
-
import { StudentProgramEntity } from '../program.entity';
|
|
6
4
|
import { TrackableEntity } from '../../../../utils/trackable';
|
|
5
|
+
import { StudentEntity } from '../../student.entity';
|
|
6
|
+
import { StudentProgramEntity } from '../program.entity';
|
|
7
7
|
export declare class StudentLicenceEntity extends TrackableEntity<Licence> {
|
|
8
8
|
/**
|
|
9
9
|
* Reference to the student who owns this license
|
|
@@ -12,7 +12,11 @@ export declare class StudentLicenceEntity extends TrackableEntity<Licence> {
|
|
|
12
12
|
/**
|
|
13
13
|
* Reference to the driving category this license is valid for
|
|
14
14
|
*/
|
|
15
|
-
categoryId:
|
|
15
|
+
categoryId: number;
|
|
16
|
+
/**
|
|
17
|
+
* Student Program ID
|
|
18
|
+
*/
|
|
19
|
+
programId: number;
|
|
16
20
|
/**
|
|
17
21
|
* Type of license (Student, Probationary, or Permanent)
|
|
18
22
|
* @default ProductType.DrivingCar
|
|
@@ -27,6 +31,10 @@ export declare class StudentLicenceEntity extends TrackableEntity<Licence> {
|
|
|
27
31
|
* Licence number
|
|
28
32
|
*/
|
|
29
33
|
number: string;
|
|
34
|
+
/**
|
|
35
|
+
* Licence reference number
|
|
36
|
+
*/
|
|
37
|
+
referenceNumber: string;
|
|
30
38
|
/**
|
|
31
39
|
* Document issued date
|
|
32
40
|
*/
|
|
@@ -59,7 +67,7 @@ export declare class StudentLicenceEntity extends TrackableEntity<Licence> {
|
|
|
59
67
|
* Student programs linked to this licence
|
|
60
68
|
* (pivot table relation)
|
|
61
69
|
*/
|
|
62
|
-
|
|
70
|
+
program: Promise<StudentProgramEntity>;
|
|
63
71
|
constructor(props?: Partial<StudentLicenceEntity>);
|
|
64
72
|
toModel(): Licence;
|
|
65
73
|
toSummary(): Licence;
|
|
@@ -10,14 +10,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.StudentLicenceEntity = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const shared_1 = require("@driveup/shared");
|
|
15
13
|
const common_1 = require("@driveup/common");
|
|
16
|
-
const
|
|
14
|
+
const shared_1 = require("@driveup/shared");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
17
16
|
const category_entity_1 = require("../../../../system/driving/category.entity");
|
|
18
|
-
const program_entity_1 = require("../program.entity");
|
|
19
|
-
const trackable_1 = require("../../../../utils/trackable");
|
|
20
17
|
const activity_helper_1 = require("../../../../utils/activity.helper");
|
|
18
|
+
const trackable_1 = require("../../../../utils/trackable");
|
|
19
|
+
const student_entity_1 = require("../../student.entity");
|
|
20
|
+
const program_entity_1 = require("../program.entity");
|
|
21
21
|
;
|
|
22
22
|
let StudentLicenceEntity = class StudentLicenceEntity extends trackable_1.TrackableEntity {
|
|
23
23
|
constructor(props) {
|
|
@@ -54,8 +54,12 @@ __decorate([
|
|
|
54
54
|
], StudentLicenceEntity.prototype, "studentId", void 0);
|
|
55
55
|
__decorate([
|
|
56
56
|
(0, typeorm_1.Column)(),
|
|
57
|
-
__metadata("design:type",
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
58
|
], StudentLicenceEntity.prototype, "categoryId", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)(),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], StudentLicenceEntity.prototype, "programId", void 0);
|
|
59
63
|
__decorate([
|
|
60
64
|
(0, typeorm_1.Column)({
|
|
61
65
|
type: 'enum',
|
|
@@ -81,6 +85,13 @@ __decorate([
|
|
|
81
85
|
(0, typeorm_1.Column)(),
|
|
82
86
|
__metadata("design:type", String)
|
|
83
87
|
], StudentLicenceEntity.prototype, "number", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({
|
|
90
|
+
nullable: true,
|
|
91
|
+
default: null
|
|
92
|
+
}),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], StudentLicenceEntity.prototype, "referenceNumber", void 0);
|
|
84
95
|
__decorate([
|
|
85
96
|
(0, typeorm_1.Column)({
|
|
86
97
|
nullable: true,
|
|
@@ -123,9 +134,9 @@ __decorate([
|
|
|
123
134
|
__metadata("design:type", Promise)
|
|
124
135
|
], StudentLicenceEntity.prototype, "category", void 0);
|
|
125
136
|
__decorate([
|
|
126
|
-
(0, typeorm_1.
|
|
137
|
+
(0, typeorm_1.ManyToOne)(() => program_entity_1.StudentProgramEntity, program => program.licences),
|
|
127
138
|
__metadata("design:type", Promise)
|
|
128
|
-
], StudentLicenceEntity.prototype, "
|
|
139
|
+
], StudentLicenceEntity.prototype, "program", void 0);
|
|
129
140
|
exports.StudentLicenceEntity = StudentLicenceEntity = __decorate([
|
|
130
141
|
(0, typeorm_1.Entity)('studentLicences'),
|
|
131
142
|
__metadata("design:paramtypes", [Object])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"licence.entity.js","sourceRoot":"","sources":["../../../../../src/profile/student/program/licence/licence.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"licence.entity.js","sourceRoot":"","sources":["../../../../../src/profile/student/program/licence/licence.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA+D;AAC/D,4CAA4D;AAC5D,qCAAgE;AAEhE,gFAAmF;AACnF,uEAA+D;AAC/D,2DAA8D;AAC9D,yDAAqD;AACrD,sDAAyD;AAAA,CAAC;AAGnD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,2BAAwB;IA4HjE,YAAY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;sDACpC;AAOzC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAoB,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;;qDAC5B;+BA1H3B,oBAAoB;IADhC,IAAA,gBAAM,EAAC,iBAAiB,CAAC;;GACb,oBAAoB,CAyJhC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Activity, Customer, MedicalCertificate } from '@driveup/common';
|
|
2
|
+
import { Note, ProductType } from '@driveup/shared';
|
|
3
3
|
import { DrivingCategoryEntity } from '../../../../system/driving/category.entity';
|
|
4
|
+
import { TrackableEntity } from '../../../../utils/trackable';
|
|
4
5
|
import { StudentEntity } from '../../student.entity';
|
|
5
6
|
import { StudentProgramEntity } from '../program.entity';
|
|
6
7
|
import { StudentMedicalExaminationEntity } from './examination.entity';
|
|
7
|
-
import { TrackableEntity } from '../../../../utils/trackable';
|
|
8
8
|
export declare class StudentMedicalCertificateEntity extends TrackableEntity<MedicalCertificate> {
|
|
9
9
|
/**
|
|
10
10
|
* Reference to the student who owns this medical certificate
|
|
@@ -10,15 +10,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.StudentMedicalCertificateEntity = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const shared_1 = require("@driveup/shared");
|
|
15
13
|
const common_1 = require("@driveup/common");
|
|
14
|
+
const shared_1 = require("@driveup/shared");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
16
|
const category_entity_1 = require("../../../../system/driving/category.entity");
|
|
17
|
+
const activity_helper_1 = require("../../../../utils/activity.helper");
|
|
18
|
+
const trackable_1 = require("../../../../utils/trackable");
|
|
17
19
|
const student_entity_1 = require("../../student.entity");
|
|
18
20
|
const program_entity_1 = require("../program.entity");
|
|
19
21
|
const examination_entity_1 = require("./examination.entity");
|
|
20
|
-
const trackable_1 = require("../../../../utils/trackable");
|
|
21
|
-
const activity_helper_1 = require("../../../../utils/activity.helper");
|
|
22
22
|
let StudentMedicalCertificateEntity = class StudentMedicalCertificateEntity extends trackable_1.TrackableEntity {
|
|
23
23
|
constructor(props) {
|
|
24
24
|
super();
|
|
@@ -42,7 +42,7 @@ let StudentMedicalCertificateEntity = class StudentMedicalCertificateEntity exte
|
|
|
42
42
|
validFrom: this.validFrom,
|
|
43
43
|
validUntil: this.validUntil,
|
|
44
44
|
documentUrl: this.documentUrl,
|
|
45
|
-
note: this.note ?
|
|
45
|
+
note: this.note ? shared_1.Note.toInstance(this.note) : null,
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
toSummary() {
|
|
@@ -152,7 +152,7 @@ __decorate([
|
|
|
152
152
|
nullable: true,
|
|
153
153
|
default: null
|
|
154
154
|
}),
|
|
155
|
-
__metadata("design:type",
|
|
155
|
+
__metadata("design:type", shared_1.Note)
|
|
156
156
|
], StudentMedicalCertificateEntity.prototype, "note", void 0);
|
|
157
157
|
__decorate([
|
|
158
158
|
(0, typeorm_1.ManyToOne)(() => student_entity_1.StudentEntity, student => student.medicalCertificates),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificate.entity.js","sourceRoot":"","sources":["../../../../../src/profile/student/program/medical/certificate.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"certificate.entity.js","sourceRoot":"","sources":["../../../../../src/profile/student/program/medical/certificate.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAsF;AACtF,4CAAkE;AAClE,qCAAsF;AAEtF,gFAAmF;AACnF,uEAA+D;AAC/D,2DAA8D;AAC9D,yDAAqD;AACrD,sDAAyD;AACzD,6DAAuE;AAIhE,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,2BAAmC;IAsJvF,YAAY,KAAgD;QAC3D,KA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D;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAqB,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;;iEACxC;AAOzC;IADC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,qCAAoB,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC;;iEAC9B;0CApJ9B,+BAA+B;IAD3C,IAAA,gBAAM,EAAC,4BAA4B,CAAC;;GACxB,+BAA+B,CAsM3C"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Activity, Appointment } from '@driveup/common';
|
|
2
|
+
import { Address, Note, StatusType } from '@driveup/shared';
|
|
3
|
+
import { TrackableEntity } from '../../../../utils/trackable';
|
|
4
|
+
import { CompanyMedicalExaminationEntity } from '../../../company/medical/examination.entity';
|
|
3
5
|
import { StudentEntity } from '../../student.entity';
|
|
4
6
|
import { StudentMedicalCertificateEntity } from './certificate.entity';
|
|
5
|
-
import { CompanyMedicalExaminationEntity } from '../../../company/medical/examination.entity';
|
|
6
|
-
import { TrackableEntity } from '../../../../utils/trackable';
|
|
7
7
|
export declare class StudentMedicalExaminationEntity extends TrackableEntity<Appointment> {
|
|
8
8
|
/**
|
|
9
9
|
* Reference to the student taking this medical examination
|
|
@@ -11,17 +11,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
var StudentMedicalExaminationEntity_1;
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.StudentMedicalExaminationEntity = void 0;
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
|
-
const shared_1 = require("@driveup/shared");
|
|
16
14
|
const common_1 = require("@driveup/common");
|
|
17
|
-
const
|
|
18
|
-
const
|
|
15
|
+
const shared_1 = require("@driveup/shared");
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
const product_entity_1 = require("../../../../catalog/product/product.entity");
|
|
18
|
+
const activity_helper_1 = require("../../../../utils/activity.helper");
|
|
19
|
+
const trackable_1 = require("../../../../utils/trackable");
|
|
19
20
|
const examination_entity_1 = require("../../../company/medical/examination.entity");
|
|
20
|
-
const product_entity_1 = require("../../../company/product/product.entity");
|
|
21
21
|
const product_entity_2 = require("../../../company/medical/product.entity");
|
|
22
|
-
const product_entity_3 = require("
|
|
23
|
-
const
|
|
24
|
-
const
|
|
22
|
+
const product_entity_3 = require("../../../company/product/product.entity");
|
|
23
|
+
const student_entity_1 = require("../../student.entity");
|
|
24
|
+
const certificate_entity_1 = require("./certificate.entity");
|
|
25
25
|
let StudentMedicalExaminationEntity = StudentMedicalExaminationEntity_1 = class StudentMedicalExaminationEntity extends trackable_1.TrackableEntity {
|
|
26
26
|
constructor(props) {
|
|
27
27
|
super();
|
|
@@ -35,8 +35,8 @@ let StudentMedicalExaminationEntity = StudentMedicalExaminationEntity_1 = class
|
|
|
35
35
|
.where('sme.id = :id', { id: this.id })
|
|
36
36
|
.getOne();
|
|
37
37
|
// get driveup product
|
|
38
|
-
const product = await
|
|
39
|
-
.innerJoin(
|
|
38
|
+
const product = await product_entity_1.ProductEntity.createQueryBuilder('p')
|
|
39
|
+
.innerJoin(product_entity_3.CompanyProductEntity, 'cp', 'cp.productId = p.id')
|
|
40
40
|
.innerJoin(product_entity_2.CompanyMedicalProductEntity, 'cmp', 'cmp.productId = cp.id')
|
|
41
41
|
.where('cmp.id = :id', { id: companyMedicalProduct.id })
|
|
42
42
|
.getOne();
|
|
@@ -50,8 +50,8 @@ let StudentMedicalExaminationEntity = StudentMedicalExaminationEntity_1 = class
|
|
|
50
50
|
startDate: this.startDate,
|
|
51
51
|
endDate: this.endDate,
|
|
52
52
|
color: product.color,
|
|
53
|
-
location: this.location ?
|
|
54
|
-
note: this.note ?
|
|
53
|
+
location: this.location ? shared_1.Address.toInstance(this.location) : null,
|
|
54
|
+
note: this.note ? shared_1.Note.toInstance(this.note) : null,
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
async toSummary() {
|
|
@@ -126,7 +126,7 @@ __decorate([
|
|
|
126
126
|
nullable: true,
|
|
127
127
|
default: null
|
|
128
128
|
}),
|
|
129
|
-
__metadata("design:type",
|
|
129
|
+
__metadata("design:type", shared_1.Address)
|
|
130
130
|
], StudentMedicalExaminationEntity.prototype, "location", void 0);
|
|
131
131
|
__decorate([
|
|
132
132
|
(0, typeorm_1.Column)({
|
|
@@ -134,7 +134,7 @@ __decorate([
|
|
|
134
134
|
nullable: true,
|
|
135
135
|
default: null
|
|
136
136
|
}),
|
|
137
|
-
__metadata("design:type",
|
|
137
|
+
__metadata("design:type", shared_1.Note)
|
|
138
138
|
], StudentMedicalExaminationEntity.prototype, "note", void 0);
|
|
139
139
|
__decorate([
|
|
140
140
|
(0, typeorm_1.ManyToOne)(() => student_entity_1.StudentEntity, student => student.medicalExaminations),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"examination.entity.js","sourceRoot":"","sources":["../../../../../src/profile/student/program/medical/examination.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"examination.entity.js","sourceRoot":"","sources":["../../../../../src/profile/student/program/medical/examination.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,4CAAwD;AACxD,4CAA2F;AAC3F,qCAA8D;AAE9D,+EAA2E;AAC3E,uEAA+D;AAC/D,2DAA8D;AAC9D,oFAA8F;AAC9F,4EAAsF;AACtF,4EAA+E;AAC/E,yDAAqD;AACrD,6DAAuE;AAGhE,IAAM,+BAA+B,uCAArC,MAAM,+BAAgC,SAAQ,2BAA4B;IAwGhF,YAAY,KAAgD;QAC3D,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,OAAO;QAEZ,8BAA8B;QAC9B,MAAM,qBAAqB,GAAG,MAAM,4CAA2B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AM,GAAE;8BACE,IAAI;kEAAC;AAMhB;IADC,IAAA,gBAAM,GAAE;8BACA,IAAI;gEAAC;AASd;IAJC,IAAA,gBAAM,EAAC;QACP,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;;mEACiB;AAUnB;IALC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;8BACQ,gBAAO;iEAAC;AAUlB;IALC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACb,CAAC;8BACI,aAAI;6DAAC;AAMX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAa,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC;;gEACvC;AAMhC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oDAA+B,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC;;oEAChC;AAMtD;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,oDAA+B,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,WAAW,CAAC;;oEAClC;0CAtG1C,+BAA+B;IAD3C,IAAA,gBAAM,EAAC,4BAA4B,CAAC;;GACxB,+BAA+B,CA8J3C"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { StatusType } from '@driveup/shared';
|
|
2
1
|
import { Activity, StudentProgram } from '@driveup/common';
|
|
3
|
-
import {
|
|
2
|
+
import { StatusType } from '@driveup/shared';
|
|
4
3
|
import { ProgramEntity } from '../../../catalog/program/program.entity';
|
|
5
4
|
import { StudentMedicalCertificateEntity } from './medical/certificate.entity';
|
|
6
|
-
import { StudentLicenceEntity } from './licence/licence.entity';
|
|
7
5
|
import { StudentTrainingEntity } from './training/training.entity';
|
|
8
6
|
import { StudentTrainingRequestEntity } from './training/request.entity';
|
|
9
7
|
import { TrackableEntity } from '../../../utils/trackable';
|
|
8
|
+
import { StudentLicenceEntity } from './licence/licence.entity';
|
|
9
|
+
import { StudentEntity } from '../student.entity';
|
|
10
10
|
export declare class StudentProgramEntity extends TrackableEntity<StudentProgram> {
|
|
11
11
|
/**
|
|
12
12
|
* Reference to the student enrolled in this program
|
|
@@ -72,7 +72,7 @@ export declare class StudentProgramEntity extends TrackableEntity<StudentProgram
|
|
|
72
72
|
requestes: Promise<StudentTrainingRequestEntity[]>;
|
|
73
73
|
toModel(): Promise<StudentProgram>;
|
|
74
74
|
toSummary(): Promise<StudentProgram>;
|
|
75
|
-
constructor(props?: Partial<
|
|
75
|
+
constructor(props?: Partial<StudentProgramEntity>);
|
|
76
76
|
/**
|
|
77
77
|
* Get the student associated with this program
|
|
78
78
|
* @description Retrieves the student entity linked to this program, including those that may have been soft-deleted.
|
|
@@ -10,17 +10,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.StudentProgramEntity = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const shared_1 = require("@driveup/shared");
|
|
15
13
|
const common_1 = require("@driveup/common");
|
|
16
|
-
const
|
|
14
|
+
const shared_1 = require("@driveup/shared");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
17
16
|
const program_entity_1 = require("../../../catalog/program/program.entity");
|
|
17
|
+
const activity_helper_1 = require("../../../utils/activity.helper");
|
|
18
18
|
const certificate_entity_1 = require("./medical/certificate.entity");
|
|
19
|
-
const licence_entity_1 = require("./licence/licence.entity");
|
|
20
19
|
const training_entity_1 = require("./training/training.entity");
|
|
21
20
|
const request_entity_1 = require("./training/request.entity");
|
|
22
21
|
const trackable_1 = require("../../../utils/trackable");
|
|
23
|
-
const
|
|
22
|
+
const licence_entity_1 = require("./licence/licence.entity");
|
|
23
|
+
const student_entity_1 = require("../student.entity");
|
|
24
24
|
let StudentProgramEntity = class StudentProgramEntity extends trackable_1.TrackableEntity {
|
|
25
25
|
async toModel() {
|
|
26
26
|
const program = await (await this.program)?.toSummary();
|
|
@@ -148,20 +148,15 @@ __decorate([
|
|
|
148
148
|
__metadata("design:type", Promise)
|
|
149
149
|
], StudentProgramEntity.prototype, "certificates", void 0);
|
|
150
150
|
__decorate([
|
|
151
|
-
(0, typeorm_1.
|
|
152
|
-
(0, typeorm_1.JoinTable)({
|
|
153
|
-
name: "studentProgramLicences", // junction table
|
|
154
|
-
joinColumn: { name: "programId", referencedColumnName: "id" },
|
|
155
|
-
inverseJoinColumn: { name: "licenceId", referencedColumnName: "id" },
|
|
156
|
-
}),
|
|
151
|
+
(0, typeorm_1.OneToMany)(() => licence_entity_1.StudentLicenceEntity, licence => licence.program, { cascade: true }),
|
|
157
152
|
__metadata("design:type", Promise)
|
|
158
153
|
], StudentProgramEntity.prototype, "licences", void 0);
|
|
159
154
|
__decorate([
|
|
160
|
-
(0, typeorm_1.OneToMany)(() => training_entity_1.StudentTrainingEntity,
|
|
155
|
+
(0, typeorm_1.OneToMany)(() => training_entity_1.StudentTrainingEntity, preparation => preparation.program),
|
|
161
156
|
__metadata("design:type", Promise)
|
|
162
157
|
], StudentProgramEntity.prototype, "trainings", void 0);
|
|
163
158
|
__decorate([
|
|
164
|
-
(0, typeorm_1.OneToMany)(() => request_entity_1.StudentTrainingRequestEntity,
|
|
159
|
+
(0, typeorm_1.OneToMany)(() => request_entity_1.StudentTrainingRequestEntity, preparation => preparation.program),
|
|
165
160
|
__metadata("design:type", Promise)
|
|
166
161
|
], StudentProgramEntity.prototype, "requestes", void 0);
|
|
167
162
|
exports.StudentProgramEntity = StudentProgramEntity = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"program.entity.js","sourceRoot":"","sources":["../../../../src/profile/student/program/program.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|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AO,CAAC,QAAQ,CAAC;;qDAC5B;AAMhC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAa,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC;;qDACnC;AAgBhC;IAVC,IAAA,oBAAU,EACV,GAAG,EAAE,CAAC,oDAA+B,EACrC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,QAAQ,EACrC,EAAE,OAAO,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,mBAAS,EAAC;QACV,IAAI,EAAE,4BAA4B,EAAE,iBAAiB;QACrD,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,oBAAoB,EAAE,IAAI,EAAE;QAC7D,iBAAiB,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,oBAAoB,EAAE,IAAI,EAAE;KACxE,CAAC;;0DACuD;AAWzD;IALC,IAAA,mBAAS,EACT,GAAG,EAAE,CAAC,qCAAoB,EAC1B,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,EAC1B,EAAE,OAAO,EAAE,IAAI,EAAE,CACjB;;sDACyC;AAO1C;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAqB,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC;;uDAC/B;AAM5C;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAA4B,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC;;uDAC/B;+BAzHvC,oBAAoB;IADhC,IAAA,gBAAM,EAAC,iBAAiB,CAAC;;GACb,oBAAoB,CAwLhC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { CompanyCourseScheduleEntity } from '../../../company/course/appointment.entity';
|
|
1
|
+
import { Activity, Appointment, TrainingSession } from '@driveup/common';
|
|
2
|
+
import { Address, AppointmentType, Note, SkillScore, StatusType, TopicProgress } from '@driveup/shared';
|
|
3
|
+
import { TrackableEntity } from '../../../../utils/trackable';
|
|
4
|
+
import { CompanyCourseEntity } from '../../../company/course/course.entity';
|
|
5
|
+
import { CompanyCourseScheduleEntity } from '../../../company/course/schedule.entity';
|
|
7
6
|
import { CompanyInstructorEntity } from '../../../company/instructor/instructor.entity';
|
|
7
|
+
import { StudentEntity } from '../../student.entity';
|
|
8
8
|
import { StudentTrainingExamEntity } from './exam.entity';
|
|
9
|
-
import {
|
|
9
|
+
import { StudentTrainingLessonEntity } from './lesson.entity';
|
|
10
|
+
import { StudentTrainingEntity } from './training.entity';
|
|
10
11
|
export declare class StudentTrainingAppointmentEntity extends TrackableEntity<Appointment> {
|
|
11
12
|
/**
|
|
12
13
|
* Reference to the training this appointment belongs to
|
|
@@ -19,7 +20,7 @@ export declare class StudentTrainingAppointmentEntity extends TrackableEntity<Ap
|
|
|
19
20
|
*/
|
|
20
21
|
lessonId: number;
|
|
21
22
|
/**
|
|
22
|
-
* Only for company course trainings with flexible appointments
|
|
23
|
+
* Only for company course trainings with fixed/flexible appointments
|
|
23
24
|
*/
|
|
24
25
|
scheduleId: number;
|
|
25
26
|
/**
|
|
@@ -46,6 +47,7 @@ export declare class StudentTrainingAppointmentEntity extends TrackableEntity<Ap
|
|
|
46
47
|
* Appointment end date
|
|
47
48
|
* @description In Flexible courses, this field is set to null, and will be calculated each time based on the appointment duration
|
|
48
49
|
* @description In Fixed courses, this field must have a value, which is equal to the part.endDate
|
|
50
|
+
* @description In Driving appointments, this field is set to null, and will be calculated each tie based on the appointment duration
|
|
49
51
|
*/
|
|
50
52
|
endDate: Date;
|
|
51
53
|
/**
|
|
@@ -84,11 +86,14 @@ export declare class StudentTrainingAppointmentEntity extends TrackableEntity<Ap
|
|
|
84
86
|
/**
|
|
85
87
|
* Lesson topics invloved in the appointment with scores
|
|
86
88
|
* Currently implemented oonly by driving trainings
|
|
89
|
+
* - field "topicId" points to "StudentTrainingTopicEntity->id"
|
|
87
90
|
*/
|
|
88
91
|
topics: TopicProgress[];
|
|
89
92
|
/**
|
|
90
93
|
* Lesson skills involved in the appointment with scores
|
|
91
94
|
* Currently implemented oonly by driving trainings
|
|
95
|
+
* - field "topicId" points to "this/StudentTrainingAppointmentEntity->topics->id"
|
|
96
|
+
* - field "skillId" points to "StudentTrainingTopicEntity->skills->id"
|
|
92
97
|
*/
|
|
93
98
|
skills: SkillScore[];
|
|
94
99
|
/**
|
|
@@ -144,7 +149,8 @@ export declare class StudentTrainingAppointmentEntity extends TrackableEntity<Ap
|
|
|
144
149
|
* If the field "endDate" is not set, it calculates it based on the start date and duration
|
|
145
150
|
* @returns Date - The end date of the training appointment
|
|
146
151
|
*/
|
|
147
|
-
getEndDate(): Date
|
|
152
|
+
getEndDate(): Promise<Date>;
|
|
153
|
+
getSessionPrice(): Promise<number>;
|
|
148
154
|
/**
|
|
149
155
|
* Student traning session
|
|
150
156
|
* Extended version of appointment with training session details
|
|
@@ -154,5 +160,22 @@ export declare class StudentTrainingAppointmentEntity extends TrackableEntity<Ap
|
|
|
154
160
|
isFixed(): Promise<boolean>;
|
|
155
161
|
getTrainingLesson(): Promise<StudentTrainingLessonEntity>;
|
|
156
162
|
getCourseLesson(): Promise<import("../../../..").CompanyCourseLessonEntity>;
|
|
163
|
+
getCourse(): Promise<CompanyCourseEntity>;
|
|
164
|
+
getStudent(): Promise<StudentEntity>;
|
|
165
|
+
getSessionNumber(): Promise<number>;
|
|
166
|
+
isInObligationPeriod(): Promise<boolean>;
|
|
167
|
+
getAppointmentInstructor(): Promise<CompanyInstructorEntity>;
|
|
157
168
|
getActivities(): Promise<Activity[]>;
|
|
169
|
+
/**
|
|
170
|
+
* Checks if the appointment is scheduled for today
|
|
171
|
+
* Company timezone is considered for the check
|
|
172
|
+
* @returns boolean - True if the appointment is today, false otherwise
|
|
173
|
+
*/
|
|
174
|
+
isInToday(): Promise<boolean>;
|
|
175
|
+
/**
|
|
176
|
+
* Checks if the appointment is scheduled before today (appointment date is before start of today)
|
|
177
|
+
* Company timezone is considered for the check
|
|
178
|
+
* @returns boolean - True if the appointment is in the previous days, false otherwise
|
|
179
|
+
*/
|
|
180
|
+
isBeforeToday(): Promise<boolean>;
|
|
158
181
|
}
|