@tudopz/model 0.0.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/dist/libs/model/libs/model/README.md +364 -0
- package/package.json +7 -0
- package/src/constant/audience-list.d.ts +2 -0
- package/src/constant/audience-list.js +6 -0
- package/src/constant/audience-list.js.map +1 -0
- package/src/constant/campaign.d.ts +2 -0
- package/src/constant/campaign.js +6 -0
- package/src/constant/campaign.js.map +1 -0
- package/src/constant/conversion-table.d.ts +1 -0
- package/src/constant/conversion-table.js +17 -0
- package/src/constant/conversion-table.js.map +1 -0
- package/src/constant/country.d.ts +1 -0
- package/src/constant/country.js +234 -0
- package/src/constant/country.js.map +1 -0
- package/src/constant/dimension.d.ts +2 -0
- package/src/constant/dimension.js +6 -0
- package/src/constant/dimension.js.map +1 -0
- package/src/constant/event.d.ts +158 -0
- package/src/constant/event.js +230 -0
- package/src/constant/event.js.map +1 -0
- package/src/constant/extracurricular-activity.d.ts +1 -0
- package/src/constant/extracurricular-activity.js +11 -0
- package/src/constant/extracurricular-activity.js.map +1 -0
- package/src/constant/guardian.d.ts +1 -0
- package/src/constant/guardian.js +5 -0
- package/src/constant/guardian.js.map +1 -0
- package/src/constant/lead-form.d.ts +7 -0
- package/src/constant/lead-form.js +35 -0
- package/src/constant/lead-form.js.map +1 -0
- package/src/constant/lead.d.ts +1 -0
- package/src/constant/lead.js +14 -0
- package/src/constant/lead.js.map +1 -0
- package/src/constant/location.d.ts +2 -0
- package/src/constant/location.js +24 -0
- package/src/constant/location.js.map +1 -0
- package/src/constant/nationality.d.ts +1 -0
- package/src/constant/nationality.js +200 -0
- package/src/constant/nationality.js.map +1 -0
- package/src/constant/neo-test.d.ts +7 -0
- package/src/constant/neo-test.js +11 -0
- package/src/constant/neo-test.js.map +1 -0
- package/src/constant/refund.d.ts +1 -0
- package/src/constant/refund.js +8 -0
- package/src/constant/refund.js.map +1 -0
- package/src/constant/sale.d.ts +103 -0
- package/src/constant/sale.js +247 -0
- package/src/constant/sale.js.map +1 -0
- package/src/constant/school.d.ts +10 -0
- package/src/constant/school.js +671 -0
- package/src/constant/school.js.map +1 -0
- package/src/constant/service-course.d.ts +1 -0
- package/src/constant/service-course.js +5 -0
- package/src/constant/service-course.js.map +1 -0
- package/src/constant/student-assignment.d.ts +1 -0
- package/src/constant/student-assignment.js +5 -0
- package/src/constant/student-assignment.js.map +1 -0
- package/src/constant/student-service.d.ts +21 -0
- package/src/constant/student-service.js +147 -0
- package/src/constant/student-service.js.map +1 -0
- package/src/constant/subject.d.ts +33 -0
- package/src/constant/subject.js +155 -0
- package/src/constant/subject.js.map +1 -0
- package/src/constant/task.d.ts +2 -0
- package/src/constant/task.js +6 -0
- package/src/constant/task.js.map +1 -0
- package/src/constant/university-preference.d.ts +3 -0
- package/src/constant/university-preference.js +11 -0
- package/src/constant/university-preference.js.map +1 -0
- package/src/constant/user.d.ts +2 -0
- package/src/constant/user.js +16 -0
- package/src/constant/user.js.map +1 -0
- package/src/constants.d.ts +23 -0
- package/src/constants.js +27 -0
- package/src/constants.js.map +1 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +8 -0
- package/src/index.js.map +1 -0
- package/src/model/access-token.d.ts +12 -0
- package/src/model/access-token.js +49 -0
- package/src/model/access-token.js.map +1 -0
- package/src/model/answer-key.d.ts +7 -0
- package/src/model/answer-key.js +30 -0
- package/src/model/answer-key.js.map +1 -0
- package/src/model/audience-list.d.ts +24 -0
- package/src/model/audience-list.js +69 -0
- package/src/model/audience-list.js.map +1 -0
- package/src/model/audit-log.d.ts +12 -0
- package/src/model/audit-log.js +50 -0
- package/src/model/audit-log.js.map +1 -0
- package/src/model/campaign-signature.d.ts +9 -0
- package/src/model/campaign-signature.js +37 -0
- package/src/model/campaign-signature.js.map +1 -0
- package/src/model/campaign.d.ts +29 -0
- package/src/model/campaign.js +94 -0
- package/src/model/campaign.js.map +1 -0
- package/src/model/case-study.d.ts +7 -0
- package/src/model/case-study.js +29 -0
- package/src/model/case-study.js.map +1 -0
- package/src/model/conversion-table.d.ts +25 -0
- package/src/model/conversion-table.js +59 -0
- package/src/model/conversion-table.js.map +1 -0
- package/src/model/course-template-event.d.ts +12 -0
- package/src/model/course-template-event.js +47 -0
- package/src/model/course-template-event.js.map +1 -0
- package/src/model/course-template.d.ts +14 -0
- package/src/model/course-template.js +52 -0
- package/src/model/course-template.js.map +1 -0
- package/src/model/dimension.d.ts +20 -0
- package/src/model/dimension.js +53 -0
- package/src/model/dimension.js.map +1 -0
- package/src/model/education-system.d.ts +4 -0
- package/src/model/education-system.js +20 -0
- package/src/model/education-system.js.map +1 -0
- package/src/model/event-log.d.ts +11 -0
- package/src/model/event-log.js +44 -0
- package/src/model/event-log.js.map +1 -0
- package/src/model/event-registration.d.ts +10 -0
- package/src/model/event-registration.js +41 -0
- package/src/model/event-registration.js.map +1 -0
- package/src/model/event-to-user.d.ts +9 -0
- package/src/model/event-to-user.js +34 -0
- package/src/model/event-to-user.js.map +1 -0
- package/src/model/event.d.ts +94 -0
- package/src/model/event.js +210 -0
- package/src/model/event.js.map +1 -0
- package/src/model/extracurricular-activity.d.ts +22 -0
- package/src/model/extracurricular-activity.js +70 -0
- package/src/model/extracurricular-activity.js.map +1 -0
- package/src/model/file-access.d.ts +13 -0
- package/src/model/file-access.js +50 -0
- package/src/model/file-access.js.map +1 -0
- package/src/model/file-category.d.ts +8 -0
- package/src/model/file-category.js +33 -0
- package/src/model/file-category.js.map +1 -0
- package/src/model/file.d.ts +22 -0
- package/src/model/file.js +83 -0
- package/src/model/file.js.map +1 -0
- package/src/model/gmail-message-email-index.d.ts +15 -0
- package/src/model/gmail-message-email-index.js +47 -0
- package/src/model/gmail-message-email-index.js.map +1 -0
- package/src/model/gmail-message.d.ts +17 -0
- package/src/model/gmail-message.js +69 -0
- package/src/model/gmail-message.js.map +1 -0
- package/src/model/google-user.d.ts +9 -0
- package/src/model/google-user.js +40 -0
- package/src/model/google-user.js.map +1 -0
- package/src/model/guardian.d.ts +17 -0
- package/src/model/guardian.js +66 -0
- package/src/model/guardian.js.map +1 -0
- package/src/model/high-school-record.d.ts +18 -0
- package/src/model/high-school-record.js +70 -0
- package/src/model/high-school-record.js.map +1 -0
- package/src/model/holiday.d.ts +9 -0
- package/src/model/holiday.js +38 -0
- package/src/model/holiday.js.map +1 -0
- package/src/model/invoice.d.ts +14 -0
- package/src/model/invoice.js +55 -0
- package/src/model/invoice.js.map +1 -0
- package/src/model/journey-stage.d.ts +9 -0
- package/src/model/journey-stage.js +38 -0
- package/src/model/journey-stage.js.map +1 -0
- package/src/model/journey-to-student.d.ts +12 -0
- package/src/model/journey-to-student.js +46 -0
- package/src/model/journey-to-student.js.map +1 -0
- package/src/model/journey.d.ts +12 -0
- package/src/model/journey.js +44 -0
- package/src/model/journey.js.map +1 -0
- package/src/model/lead-assignment.d.ts +9 -0
- package/src/model/lead-assignment.js +38 -0
- package/src/model/lead-assignment.js.map +1 -0
- package/src/model/lead-form-field.d.ts +34 -0
- package/src/model/lead-form-field.js +83 -0
- package/src/model/lead-form-field.js.map +1 -0
- package/src/model/lead-form.d.ts +47 -0
- package/src/model/lead-form.js +131 -0
- package/src/model/lead-form.js.map +1 -0
- package/src/model/lead-ip-ban.d.ts +6 -0
- package/src/model/lead-ip-ban.js +28 -0
- package/src/model/lead-ip-ban.js.map +1 -0
- package/src/model/lead-queue.d.ts +5 -0
- package/src/model/lead-queue.js +24 -0
- package/src/model/lead-queue.js.map +1 -0
- package/src/model/lead.d.ts +46 -0
- package/src/model/lead.js +159 -0
- package/src/model/lead.js.map +1 -0
- package/src/model/log.d.ts +21 -0
- package/src/model/log.js +63 -0
- package/src/model/log.js.map +1 -0
- package/src/model/neo-tag.d.ts +12 -0
- package/src/model/neo-tag.js +38 -0
- package/src/model/neo-tag.js.map +1 -0
- package/src/model/neo-test-flow.d.ts +28 -0
- package/src/model/neo-test-flow.js +17 -0
- package/src/model/neo-test-flow.js.map +1 -0
- package/src/model/neo-test-question-answer.d.ts +8 -0
- package/src/model/neo-test-question-answer.js +34 -0
- package/src/model/neo-test-question-answer.js.map +1 -0
- package/src/model/neo-test-question-category.d.ts +8 -0
- package/src/model/neo-test-question-category.js +33 -0
- package/src/model/neo-test-question-category.js.map +1 -0
- package/src/model/neo-test-question.d.ts +30 -0
- package/src/model/neo-test-question.js +99 -0
- package/src/model/neo-test-question.js.map +1 -0
- package/src/model/neo-test-section-to-question.d.ts +9 -0
- package/src/model/neo-test-section-to-question.js +36 -0
- package/src/model/neo-test-section-to-question.js.map +1 -0
- package/src/model/neo-test-section.d.ts +10 -0
- package/src/model/neo-test-section.js +39 -0
- package/src/model/neo-test-section.js.map +1 -0
- package/src/model/neo-test.d.ts +19 -0
- package/src/model/neo-test.js +59 -0
- package/src/model/neo-test.js.map +1 -0
- package/src/model/pd-pipeline.d.ts +7 -0
- package/src/model/pd-pipeline.js +30 -0
- package/src/model/pd-pipeline.js.map +1 -0
- package/src/model/pd-user.d.ts +8 -0
- package/src/model/pd-user.js +34 -0
- package/src/model/pd-user.js.map +1 -0
- package/src/model/profile.d.ts +469 -0
- package/src/model/profile.js +588 -0
- package/src/model/profile.js.map +1 -0
- package/src/model/pup-lead.d.ts +49 -0
- package/src/model/pup-lead.js +164 -0
- package/src/model/pup-lead.js.map +1 -0
- package/src/model/refund.d.ts +23 -0
- package/src/model/refund.js +81 -0
- package/src/model/refund.js.map +1 -0
- package/src/model/sale-payment.d.ts +18 -0
- package/src/model/sale-payment.js +75 -0
- package/src/model/sale-payment.js.map +1 -0
- package/src/model/sale-split.d.ts +10 -0
- package/src/model/sale-split.js +41 -0
- package/src/model/sale-split.js.map +1 -0
- package/src/model/sale-sub-type-to-service.d.ts +8 -0
- package/src/model/sale-sub-type-to-service.js +31 -0
- package/src/model/sale-sub-type-to-service.js.map +1 -0
- package/src/model/sale-sub-type.d.ts +12 -0
- package/src/model/sale-sub-type.js +46 -0
- package/src/model/sale-sub-type.js.map +1 -0
- package/src/model/sale-to-event.d.ts +10 -0
- package/src/model/sale-to-event.js +38 -0
- package/src/model/sale-to-event.js.map +1 -0
- package/src/model/sale.d.ts +138 -0
- package/src/model/sale.js +322 -0
- package/src/model/sale.js.map +1 -0
- package/src/model/school.d.ts +14 -0
- package/src/model/school.js +40 -0
- package/src/model/school.js.map +1 -0
- package/src/model/service-course-session.d.ts +21 -0
- package/src/model/service-course-session.js +69 -0
- package/src/model/service-course-session.js.map +1 -0
- package/src/model/service-course.d.ts +12 -0
- package/src/model/service-course.js +49 -0
- package/src/model/service-course.js.map +1 -0
- package/src/model/service-prompt.d.ts +8 -0
- package/src/model/service-prompt.js +33 -0
- package/src/model/service-prompt.js.map +1 -0
- package/src/model/service-rate.d.ts +8 -0
- package/src/model/service-rate.js +36 -0
- package/src/model/service-rate.js.map +1 -0
- package/src/model/staff-availability.d.ts +15 -0
- package/src/model/staff-availability.js +45 -0
- package/src/model/staff-availability.js.map +1 -0
- package/src/model/staff-hour-log.d.ts +24 -0
- package/src/model/staff-hour-log.js +70 -0
- package/src/model/staff-hour-log.js.map +1 -0
- package/src/model/staff-hour.d.ts +116 -0
- package/src/model/staff-hour.js +568 -0
- package/src/model/staff-hour.js.map +1 -0
- package/src/model/staff-subject-tag.d.ts +9 -0
- package/src/model/staff-subject-tag.js +38 -0
- package/src/model/staff-subject-tag.js.map +1 -0
- package/src/model/student-answer.d.ts +12 -0
- package/src/model/student-answer.js +49 -0
- package/src/model/student-answer.js.map +1 -0
- package/src/model/student-assignment.d.ts +15 -0
- package/src/model/student-assignment.js +46 -0
- package/src/model/student-assignment.js.map +1 -0
- package/src/model/student-extra.d.ts +17 -0
- package/src/model/student-extra.js +70 -0
- package/src/model/student-extra.js.map +1 -0
- package/src/model/student-goal.d.ts +12 -0
- package/src/model/student-goal.js +47 -0
- package/src/model/student-goal.js.map +1 -0
- package/src/model/student-note-checklist-item.d.ts +8 -0
- package/src/model/student-note-checklist-item.js +34 -0
- package/src/model/student-note-checklist-item.js.map +1 -0
- package/src/model/student-note.d.ts +28 -0
- package/src/model/student-note.js +96 -0
- package/src/model/student-note.js.map +1 -0
- package/src/model/student-service-deadline.d.ts +8 -0
- package/src/model/student-service-deadline.js +33 -0
- package/src/model/student-service-deadline.js.map +1 -0
- package/src/model/student-service-membership-log.d.ts +27 -0
- package/src/model/student-service-membership-log.js +73 -0
- package/src/model/student-service-membership-log.js.map +1 -0
- package/src/model/student-service-membership.d.ts +19 -0
- package/src/model/student-service-membership.js +81 -0
- package/src/model/student-service-membership.js.map +1 -0
- package/src/model/student-service.d.ts +77 -0
- package/src/model/student-service.js +124 -0
- package/src/model/student-service.js.map +1 -0
- package/src/model/student-session-attendance.d.ts +17 -0
- package/src/model/student-session-attendance.js +64 -0
- package/src/model/student-session-attendance.js.map +1 -0
- package/src/model/student-target.d.ts +21 -0
- package/src/model/student-target.js +80 -0
- package/src/model/student-target.js.map +1 -0
- package/src/model/task-attachment.d.ts +17 -0
- package/src/model/task-attachment.js +68 -0
- package/src/model/task-attachment.js.map +1 -0
- package/src/model/task-comment.d.ts +13 -0
- package/src/model/task-comment.js +52 -0
- package/src/model/task-comment.js.map +1 -0
- package/src/model/task.d.ts +33 -0
- package/src/model/task.js +98 -0
- package/src/model/task.js.map +1 -0
- package/src/model/test-attempt.d.ts +27 -0
- package/src/model/test-attempt.js +90 -0
- package/src/model/test-attempt.js.map +1 -0
- package/src/model/test-category.d.ts +10 -0
- package/src/model/test-category.js +38 -0
- package/src/model/test-category.js.map +1 -0
- package/src/model/test-question.d.ts +28 -0
- package/src/model/test-question.js +88 -0
- package/src/model/test-question.js.map +1 -0
- package/src/model/test-report.d.ts +123 -0
- package/src/model/test-report.js +40 -0
- package/src/model/test-report.js.map +1 -0
- package/src/model/test-score.d.ts +12 -0
- package/src/model/test-score.js +50 -0
- package/src/model/test-score.js.map +1 -0
- package/src/model/test-section.d.ts +11 -0
- package/src/model/test-section.js +43 -0
- package/src/model/test-section.js.map +1 -0
- package/src/model/test.d.ts +18 -0
- package/src/model/test.js +62 -0
- package/src/model/test.js.map +1 -0
- package/src/model/timeline.d.ts +24 -0
- package/src/model/timeline.js +10 -0
- package/src/model/timeline.js.map +1 -0
- package/src/model/university-preference.d.ts +15 -0
- package/src/model/university-preference.js +62 -0
- package/src/model/university-preference.js.map +1 -0
- package/src/model/user-preference.d.ts +10 -0
- package/src/model/user-preference.js +41 -0
- package/src/model/user-preference.js.map +1 -0
- package/src/model/user-to-guardian.d.ts +21 -0
- package/src/model/user-to-guardian.js +67 -0
- package/src/model/user-to-guardian.js.map +1 -0
- package/src/model/user.d.ts +91 -0
- package/src/model/user.js +248 -0
- package/src/model/user.js.map +1 -0
- package/src/model/wa-message.d.ts +21 -0
- package/src/model/wa-message.js +74 -0
- package/src/model/wa-message.js.map +1 -0
- package/src/model/zoom-info.d.ts +9 -0
- package/src/model/zoom-info.js +37 -0
- package/src/model/zoom-info.js.map +1 -0
- package/src/models.d.ts +94 -0
- package/src/models.js +98 -0
- package/src/models.js.map +1 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestScore = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const user_1 = require("./user");
|
|
7
|
+
let TestScore = class TestScore {
|
|
8
|
+
};
|
|
9
|
+
exports.TestScore = TestScore;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
12
|
+
tslib_1.__metadata("design:type", Number)
|
|
13
|
+
], TestScore.prototype, "id", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
16
|
+
tslib_1.__metadata("design:type", Number)
|
|
17
|
+
], TestScore.prototype, "studentServiceId", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'boolean' }),
|
|
20
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
21
|
+
], TestScore.prototype, "isOfficial", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'date' }),
|
|
24
|
+
tslib_1.__metadata("design:type", Date)
|
|
25
|
+
], TestScore.prototype, "date", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
28
|
+
tslib_1.__metadata("design:type", String)
|
|
29
|
+
], TestScore.prototype, "scores", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
32
|
+
tslib_1.__metadata("design:type", Date)
|
|
33
|
+
], TestScore.prototype, "createdAt", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
36
|
+
tslib_1.__metadata("design:type", Date)
|
|
37
|
+
], TestScore.prototype, "updatedAt", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
40
|
+
tslib_1.__metadata("design:type", Number)
|
|
41
|
+
], TestScore.prototype, "userId", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, typeorm_1.ManyToOne)(() => user_1.User, (user) => user.testScores),
|
|
44
|
+
(0, typeorm_1.JoinColumn)(),
|
|
45
|
+
tslib_1.__metadata("design:type", user_1.User)
|
|
46
|
+
], TestScore.prototype, "user", void 0);
|
|
47
|
+
exports.TestScore = TestScore = tslib_1.__decorate([
|
|
48
|
+
(0, typeorm_1.Entity)({ name: 'test_scores' })
|
|
49
|
+
], TestScore);
|
|
50
|
+
//# sourceMappingURL=test-score.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-score.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/test-score.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AAEjB,iCAA8B;AAGvB,IAAM,SAAS,GAAf,MAAM,SAAS;CA4BrB,CAAA;AA5BY,8BAAS;AAEpB;IADC,IAAA,gCAAsB,GAAE;;qCACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;mDACC;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;6CACR;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sCACnB,IAAI;uCAAC;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACV;AAGf;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;4CAAC;AAGhB;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;4CAAC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;yCACT;AAIf;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC;IAChD,IAAA,oBAAU,GAAE;sCACP,WAAI;uCAAC;oBA3BA,SAAS;IADrB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;GACnB,SAAS,CA4BrB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestSection = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const test_1 = require("./test");
|
|
7
|
+
const test_question_1 = require("./test-question");
|
|
8
|
+
let TestSection = class TestSection {
|
|
9
|
+
};
|
|
10
|
+
exports.TestSection = TestSection;
|
|
11
|
+
tslib_1.__decorate([
|
|
12
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
13
|
+
tslib_1.__metadata("design:type", Number)
|
|
14
|
+
], TestSection.prototype, "id", void 0);
|
|
15
|
+
tslib_1.__decorate([
|
|
16
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 128 }),
|
|
17
|
+
tslib_1.__metadata("design:type", String)
|
|
18
|
+
], TestSection.prototype, "name", void 0);
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
21
|
+
tslib_1.__metadata("design:type", Number)
|
|
22
|
+
], TestSection.prototype, "order", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
25
|
+
tslib_1.__metadata("design:type", Number)
|
|
26
|
+
], TestSection.prototype, "testId", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
tslib_1.__metadata("design:type", Number)
|
|
30
|
+
], TestSection.prototype, "duration", void 0);
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, typeorm_1.ManyToOne)(() => test_1.Test, (test) => test.testSections),
|
|
33
|
+
(0, typeorm_1.JoinColumn)(),
|
|
34
|
+
tslib_1.__metadata("design:type", test_1.Test)
|
|
35
|
+
], TestSection.prototype, "test", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, typeorm_1.OneToMany)(() => test_question_1.TestQuestion, (testQuestion) => testQuestion.testSection),
|
|
38
|
+
tslib_1.__metadata("design:type", Array)
|
|
39
|
+
], TestSection.prototype, "testQuestions", void 0);
|
|
40
|
+
exports.TestSection = TestSection = tslib_1.__decorate([
|
|
41
|
+
(0, typeorm_1.Entity)({ name: 'test_sections' })
|
|
42
|
+
], TestSection);
|
|
43
|
+
//# sourceMappingURL=test-section.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-section.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/test-section.ts"],"names":[],"mappings":";;;;AAAA,qCAAmG;AAEnG,iCAA8B;AAC9B,mDAA+C;AAGxC,IAAM,WAAW,GAAjB,MAAM,WAAW;CAsBvB,CAAA;AAtBY,kCAAW;AAEtB;IADC,IAAA,gCAAsB,GAAE;;uCACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;yCAC5B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;0CACV;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;2CACT;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACtB;AAIlB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;IAClD,IAAA,oBAAU,GAAE;sCACP,WAAI;yCAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4BAAY,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,WAAW,CAAC;;kDAC5C;sBArBnB,WAAW;IADvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;GACrB,WAAW,CAsBvB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ConversionTable } from './conversion-table';
|
|
2
|
+
import { File } from './file';
|
|
3
|
+
import { TestAttempt } from './test-attempt';
|
|
4
|
+
import { TestCategory } from './test-category';
|
|
5
|
+
import { TestSection } from './test-section';
|
|
6
|
+
export declare class Test {
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
instructions: string;
|
|
11
|
+
testCategoryId: number;
|
|
12
|
+
testCategory: TestCategory;
|
|
13
|
+
isDiagnostic: boolean;
|
|
14
|
+
file: File;
|
|
15
|
+
testSections: TestSection[];
|
|
16
|
+
conversionTables: ConversionTable[];
|
|
17
|
+
testAttempts: TestAttempt[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Test = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const conversion_table_1 = require("./conversion-table");
|
|
7
|
+
const file_1 = require("./file");
|
|
8
|
+
const test_attempt_1 = require("./test-attempt");
|
|
9
|
+
const test_category_1 = require("./test-category");
|
|
10
|
+
const test_section_1 = require("./test-section");
|
|
11
|
+
let Test = class Test {
|
|
12
|
+
};
|
|
13
|
+
exports.Test = Test;
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
16
|
+
tslib_1.__metadata("design:type", Number)
|
|
17
|
+
], Test.prototype, "id", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 128 }),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], Test.prototype, "name", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], Test.prototype, "description", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
28
|
+
tslib_1.__metadata("design:type", String)
|
|
29
|
+
], Test.prototype, "instructions", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
32
|
+
tslib_1.__metadata("design:type", Number)
|
|
33
|
+
], Test.prototype, "testCategoryId", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, typeorm_1.ManyToOne)(() => test_category_1.TestCategory, (testCategory) => testCategory.tests),
|
|
36
|
+
(0, typeorm_1.JoinColumn)(),
|
|
37
|
+
tslib_1.__metadata("design:type", test_category_1.TestCategory)
|
|
38
|
+
], Test.prototype, "testCategory", void 0);
|
|
39
|
+
tslib_1.__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
41
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
42
|
+
], Test.prototype, "isDiagnostic", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.OneToOne)(() => file_1.File, (file) => file.test),
|
|
45
|
+
tslib_1.__metadata("design:type", file_1.File)
|
|
46
|
+
], Test.prototype, "file", void 0);
|
|
47
|
+
tslib_1.__decorate([
|
|
48
|
+
(0, typeorm_1.OneToMany)(() => test_section_1.TestSection, (testSection) => testSection.test),
|
|
49
|
+
tslib_1.__metadata("design:type", Array)
|
|
50
|
+
], Test.prototype, "testSections", void 0);
|
|
51
|
+
tslib_1.__decorate([
|
|
52
|
+
(0, typeorm_1.OneToMany)(() => conversion_table_1.ConversionTable, (conversionTable) => conversionTable.test),
|
|
53
|
+
tslib_1.__metadata("design:type", Array)
|
|
54
|
+
], Test.prototype, "conversionTables", void 0);
|
|
55
|
+
tslib_1.__decorate([
|
|
56
|
+
(0, typeorm_1.OneToMany)(() => test_attempt_1.TestAttempt, (testAttempt) => testAttempt.test),
|
|
57
|
+
tslib_1.__metadata("design:type", Array)
|
|
58
|
+
], Test.prototype, "testAttempts", void 0);
|
|
59
|
+
exports.Test = Test = tslib_1.__decorate([
|
|
60
|
+
(0, typeorm_1.Entity)({ name: 'tests' })
|
|
61
|
+
], Test);
|
|
62
|
+
//# sourceMappingURL=test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/test.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AAEjB,yDAAqD;AACrD,iCAA8B;AAC9B,iDAA6C;AAC7C,mDAA+C;AAC/C,iDAA6C;AAGtC,IAAM,IAAI,GAAV,MAAM,IAAI;CAkChB,CAAA;AAlCY,oBAAI;AAEf;IADC,IAAA,gCAAsB,GAAE;;gCACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;kCAC5B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACL;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACJ;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;4CACD;AAIvB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4BAAY,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC;IACnE,IAAA,oBAAU,GAAE;sCACC,4BAAY;0CAAC;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;0CACtB;AAGtB;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,WAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;sCACpC,WAAI;kCAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;;0CACpC;AAG5B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAe,EAAE,CAAC,eAAe,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;;8CACxC;AAGpC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;;0CACpC;eAjCjB,IAAI;IADhB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;GACb,IAAI,CAkChB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AuditLog } from './audit-log';
|
|
2
|
+
import { GmailMessage } from './gmail-message';
|
|
3
|
+
import { WAMessage } from './wa-message';
|
|
4
|
+
export declare enum TIMELINE_ITEM_TYPE {
|
|
5
|
+
GMAIL = 0,
|
|
6
|
+
WA_MESSAGE = 1,
|
|
7
|
+
EVENT = 2
|
|
8
|
+
}
|
|
9
|
+
export interface ITimelineItem {
|
|
10
|
+
type: TIMELINE_ITEM_TYPE;
|
|
11
|
+
}
|
|
12
|
+
export interface GmailTimelineItem extends ITimelineItem {
|
|
13
|
+
type: TIMELINE_ITEM_TYPE.GMAIL;
|
|
14
|
+
item: GmailMessage;
|
|
15
|
+
}
|
|
16
|
+
export interface WAMessageTimelineItem extends ITimelineItem {
|
|
17
|
+
type: TIMELINE_ITEM_TYPE.WA_MESSAGE;
|
|
18
|
+
item: WAMessage;
|
|
19
|
+
}
|
|
20
|
+
export interface EventTimelineItem extends ITimelineItem {
|
|
21
|
+
type: TIMELINE_ITEM_TYPE.EVENT;
|
|
22
|
+
item: AuditLog;
|
|
23
|
+
}
|
|
24
|
+
export type TimelineItem = GmailTimelineItem | WAMessageTimelineItem | EventTimelineItem;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TIMELINE_ITEM_TYPE = void 0;
|
|
4
|
+
var TIMELINE_ITEM_TYPE;
|
|
5
|
+
(function (TIMELINE_ITEM_TYPE) {
|
|
6
|
+
TIMELINE_ITEM_TYPE[TIMELINE_ITEM_TYPE["GMAIL"] = 0] = "GMAIL";
|
|
7
|
+
TIMELINE_ITEM_TYPE[TIMELINE_ITEM_TYPE["WA_MESSAGE"] = 1] = "WA_MESSAGE";
|
|
8
|
+
TIMELINE_ITEM_TYPE[TIMELINE_ITEM_TYPE["EVENT"] = 2] = "EVENT";
|
|
9
|
+
})(TIMELINE_ITEM_TYPE || (exports.TIMELINE_ITEM_TYPE = TIMELINE_ITEM_TYPE = {}));
|
|
10
|
+
//# sourceMappingURL=timeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/timeline.ts"],"names":[],"mappings":";;;AAIA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,6DAAK,CAAA;IACL,uEAAU,CAAA;IACV,6DAAK,CAAA;AACP,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { User } from './user';
|
|
2
|
+
export declare class UniversityPreference {
|
|
3
|
+
id: number;
|
|
4
|
+
location: string;
|
|
5
|
+
settings: string;
|
|
6
|
+
size: string;
|
|
7
|
+
interest: string;
|
|
8
|
+
criteria: string;
|
|
9
|
+
uninterest: string;
|
|
10
|
+
avoidance: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
userId: number;
|
|
14
|
+
user: User;
|
|
15
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UniversityPreference = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const user_1 = require("./user");
|
|
7
|
+
let UniversityPreference = class UniversityPreference {
|
|
8
|
+
};
|
|
9
|
+
exports.UniversityPreference = UniversityPreference;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
12
|
+
tslib_1.__metadata("design:type", Number)
|
|
13
|
+
], UniversityPreference.prototype, "id", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], UniversityPreference.prototype, "location", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], UniversityPreference.prototype, "settings", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], UniversityPreference.prototype, "size", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
28
|
+
tslib_1.__metadata("design:type", String)
|
|
29
|
+
], UniversityPreference.prototype, "interest", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
32
|
+
tslib_1.__metadata("design:type", String)
|
|
33
|
+
], UniversityPreference.prototype, "criteria", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
37
|
+
], UniversityPreference.prototype, "uninterest", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
40
|
+
tslib_1.__metadata("design:type", String)
|
|
41
|
+
], UniversityPreference.prototype, "avoidance", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
44
|
+
tslib_1.__metadata("design:type", Date)
|
|
45
|
+
], UniversityPreference.prototype, "createdAt", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
48
|
+
tslib_1.__metadata("design:type", Date)
|
|
49
|
+
], UniversityPreference.prototype, "updatedAt", void 0);
|
|
50
|
+
tslib_1.__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
52
|
+
tslib_1.__metadata("design:type", Number)
|
|
53
|
+
], UniversityPreference.prototype, "userId", void 0);
|
|
54
|
+
tslib_1.__decorate([
|
|
55
|
+
(0, typeorm_1.OneToOne)(() => user_1.User, (user) => user.universityPreference),
|
|
56
|
+
(0, typeorm_1.JoinColumn)(),
|
|
57
|
+
tslib_1.__metadata("design:type", user_1.User)
|
|
58
|
+
], UniversityPreference.prototype, "user", void 0);
|
|
59
|
+
exports.UniversityPreference = UniversityPreference = tslib_1.__decorate([
|
|
60
|
+
(0, typeorm_1.Entity)({ name: 'university_preferences' })
|
|
61
|
+
], UniversityPreference);
|
|
62
|
+
//# sourceMappingURL=university-preference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"university-preference.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/university-preference.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AAEjB,iCAA8B;AAGvB,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAqChC,CAAA;AArCY,oDAAoB;AAE/B;IADC,IAAA,gCAAsB,GAAE;;gDACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDACR;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDACR;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACZ;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDACR;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDACR;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wDACN;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACP;AAGlB;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;uDAAC;AAGhB;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;uDAAC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;oDACT;AAIf;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,WAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC;IACzD,IAAA,oBAAU,GAAE;sCACP,WAAI;kDAAC;+BApCA,oBAAoB;IADhC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;GAC9B,oBAAoB,CAqChC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserPreference = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const user_1 = require("./user");
|
|
7
|
+
let UserPreference = class UserPreference {
|
|
8
|
+
};
|
|
9
|
+
exports.UserPreference = UserPreference;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
12
|
+
tslib_1.__metadata("design:type", Number)
|
|
13
|
+
], UserPreference.prototype, "id", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 128 }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], UserPreference.prototype, "name", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], UserPreference.prototype, "value", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
24
|
+
tslib_1.__metadata("design:type", Date)
|
|
25
|
+
], UserPreference.prototype, "createdAt", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
28
|
+
tslib_1.__metadata("design:type", Date)
|
|
29
|
+
], UserPreference.prototype, "updatedAt", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
32
|
+
tslib_1.__metadata("design:type", Number)
|
|
33
|
+
], UserPreference.prototype, "userId", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, typeorm_1.ManyToOne)(() => user_1.User, (user) => user.userPreferences),
|
|
36
|
+
tslib_1.__metadata("design:type", user_1.User)
|
|
37
|
+
], UserPreference.prototype, "user", void 0);
|
|
38
|
+
exports.UserPreference = UserPreference = tslib_1.__decorate([
|
|
39
|
+
(0, typeorm_1.Entity)({ name: 'user_preferences' })
|
|
40
|
+
], UserPreference);
|
|
41
|
+
//# sourceMappingURL=user-preference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-preference.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/user-preference.ts"],"names":[],"mappings":";;;;AAAA,qCAOiB;AAEjB,iCAA8B;AAGvB,IAAM,cAAc,GAApB,MAAM,cAAc;CAqB1B,CAAA;AArBY,wCAAc;AAEzB;IADC,IAAA,gCAAsB,GAAE;;0CACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;4CAC5B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACX;AAGd;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;iDAAC;AAGhB;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;iDAAC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;8CACT;AAGf;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;sCAChD,WAAI;4CAAC;yBApBA,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;GACxB,cAAc,CAqB1B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { User } from './user';
|
|
2
|
+
import { Guardian } from './guardian';
|
|
3
|
+
export declare enum GUARDIAN_RELATIONSHIP {
|
|
4
|
+
MOTHER = 1,
|
|
5
|
+
FATHER = 2,
|
|
6
|
+
GUARDIAN = 3,
|
|
7
|
+
OTHER = 4
|
|
8
|
+
}
|
|
9
|
+
export declare class UserToGuardian {
|
|
10
|
+
userToGuardianId: number;
|
|
11
|
+
userId: number;
|
|
12
|
+
guardianId: number;
|
|
13
|
+
relationship: GUARDIAN_RELATIONSHIP;
|
|
14
|
+
relationshipOther: string;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
user: User;
|
|
18
|
+
guardian: Guardian;
|
|
19
|
+
constructor(data?: any);
|
|
20
|
+
getRelationshipString(): string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserToGuardian = exports.GUARDIAN_RELATIONSHIP = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const guardian_1 = require("../constant/guardian");
|
|
7
|
+
const user_1 = require("./user");
|
|
8
|
+
const guardian_2 = require("./guardian");
|
|
9
|
+
var GUARDIAN_RELATIONSHIP;
|
|
10
|
+
(function (GUARDIAN_RELATIONSHIP) {
|
|
11
|
+
GUARDIAN_RELATIONSHIP[GUARDIAN_RELATIONSHIP["MOTHER"] = 1] = "MOTHER";
|
|
12
|
+
GUARDIAN_RELATIONSHIP[GUARDIAN_RELATIONSHIP["FATHER"] = 2] = "FATHER";
|
|
13
|
+
GUARDIAN_RELATIONSHIP[GUARDIAN_RELATIONSHIP["GUARDIAN"] = 3] = "GUARDIAN";
|
|
14
|
+
GUARDIAN_RELATIONSHIP[GUARDIAN_RELATIONSHIP["OTHER"] = 4] = "OTHER";
|
|
15
|
+
})(GUARDIAN_RELATIONSHIP || (exports.GUARDIAN_RELATIONSHIP = GUARDIAN_RELATIONSHIP = {}));
|
|
16
|
+
let UserToGuardian = class UserToGuardian {
|
|
17
|
+
constructor(data = {}) {
|
|
18
|
+
Object.assign(this, data);
|
|
19
|
+
}
|
|
20
|
+
getRelationshipString() {
|
|
21
|
+
return this.relationship !== GUARDIAN_RELATIONSHIP.OTHER
|
|
22
|
+
? guardian_1.GUARDIAN_RELATIONSHIP_VALUES[this.relationship - 1]
|
|
23
|
+
: this.relationshipOther;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.UserToGuardian = UserToGuardian;
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
29
|
+
tslib_1.__metadata("design:type", Number)
|
|
30
|
+
], UserToGuardian.prototype, "userToGuardianId", void 0);
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
33
|
+
tslib_1.__metadata("design:type", Number)
|
|
34
|
+
], UserToGuardian.prototype, "userId", void 0);
|
|
35
|
+
tslib_1.__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
37
|
+
tslib_1.__metadata("design:type", Number)
|
|
38
|
+
], UserToGuardian.prototype, "guardianId", void 0);
|
|
39
|
+
tslib_1.__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
41
|
+
tslib_1.__metadata("design:type", Number)
|
|
42
|
+
], UserToGuardian.prototype, "relationship", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: true }),
|
|
45
|
+
tslib_1.__metadata("design:type", String)
|
|
46
|
+
], UserToGuardian.prototype, "relationshipOther", void 0);
|
|
47
|
+
tslib_1.__decorate([
|
|
48
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
49
|
+
tslib_1.__metadata("design:type", Date)
|
|
50
|
+
], UserToGuardian.prototype, "createdAt", void 0);
|
|
51
|
+
tslib_1.__decorate([
|
|
52
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
53
|
+
tslib_1.__metadata("design:type", Date)
|
|
54
|
+
], UserToGuardian.prototype, "updatedAt", void 0);
|
|
55
|
+
tslib_1.__decorate([
|
|
56
|
+
(0, typeorm_1.ManyToOne)(() => user_1.User, (user) => user.userToGuardians),
|
|
57
|
+
tslib_1.__metadata("design:type", user_1.User)
|
|
58
|
+
], UserToGuardian.prototype, "user", void 0);
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, typeorm_1.ManyToOne)(() => guardian_2.Guardian, (guardian) => guardian.userToGuardians),
|
|
61
|
+
tslib_1.__metadata("design:type", guardian_2.Guardian)
|
|
62
|
+
], UserToGuardian.prototype, "guardian", void 0);
|
|
63
|
+
exports.UserToGuardian = UserToGuardian = tslib_1.__decorate([
|
|
64
|
+
(0, typeorm_1.Entity)({ name: 'user_to_guardians' }),
|
|
65
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
66
|
+
], UserToGuardian);
|
|
67
|
+
//# sourceMappingURL=user-to-guardian.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-to-guardian.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/user-to-guardian.ts"],"names":[],"mappings":";;;;AAAA,qCAOiB;AAEjB,mDAAoE;AAEpE,iCAA8B;AAC9B,yCAAsC;AAEtC,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,qEAAU,CAAA;IACV,qEAAM,CAAA;IACN,yEAAQ,CAAA;IACR,mEAAK,CAAA;AACP,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC;AAGM,IAAM,cAAc,GAApB,MAAM,cAAc;IA4BzB,YAAmB,OAAY,EAAE;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;IAEM,qBAAqB;QAC1B,OAAO,IAAI,CAAC,YAAY,KAAK,qBAAqB,CAAC,KAAK;YACtD,CAAC,CAAC,uCAA4B,CAAC,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;YACrD,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;IAC7B,CAAC;CACF,CAAA;AArCY,wCAAc;AAEzB;IADC,IAAA,gCAAsB,GAAE;;wDACC;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;8CACR;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;kDACJ;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;oDACa;AAGrC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDAC9B;AAG1B;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;iDAAC;AAGhB;IADC,IAAA,0BAAgB,GAAE;sCACR,IAAI;iDAAC;AAGhB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;sCAC/C,WAAI;4CAAC;AAGZ;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mBAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC;sCACvD,mBAAQ;gDAAC;yBA1BT,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;;GACzB,cAAc,CAqC1B"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { AccessToken } from './access-token';
|
|
2
|
+
import { FileAccess } from './file-access';
|
|
3
|
+
import { Guardian } from './guardian';
|
|
4
|
+
import { HighSchoolRecord } from './high-school-record';
|
|
5
|
+
import { Journey } from './journey';
|
|
6
|
+
import { JourneyToStudent } from './journey-to-student';
|
|
7
|
+
import { StudentAssignment } from './student-assignment';
|
|
8
|
+
import { Profile } from './profile';
|
|
9
|
+
import { StaffHour } from './staff-hour';
|
|
10
|
+
import { StudentExtra } from './student-extra';
|
|
11
|
+
import { StudentGoal } from './student-goal';
|
|
12
|
+
import { StudentNote } from './student-note';
|
|
13
|
+
import { StudentService } from './student-service';
|
|
14
|
+
import { StudentTarget } from './student-target';
|
|
15
|
+
import { Sale } from './sale';
|
|
16
|
+
import { SaleSplit } from './sale-split';
|
|
17
|
+
import { TestAttempt } from './test-attempt';
|
|
18
|
+
import { UserPreference } from './user-preference';
|
|
19
|
+
import { UserToGuardian } from './user-to-guardian';
|
|
20
|
+
import { EventToUser } from './event-to-user';
|
|
21
|
+
import { UniversityPreference } from './university-preference';
|
|
22
|
+
import { ExtracurricularActivity } from './extracurricular-activity';
|
|
23
|
+
import { TestScore } from './test-score';
|
|
24
|
+
import { PDUser } from './pd-user';
|
|
25
|
+
import { StaffSubjectTag } from './staff-subject-tag';
|
|
26
|
+
import { StaffAvailability } from './staff-availability';
|
|
27
|
+
import { StudentSessionAttendance } from './student-session-attendance';
|
|
28
|
+
import { Holiday } from './holiday';
|
|
29
|
+
import { SalePayment } from './sale-payment';
|
|
30
|
+
export declare enum USER_ROLE {
|
|
31
|
+
SUPER_ADMIN = 1,
|
|
32
|
+
ADMIN = 2,
|
|
33
|
+
TRAINER = 3,
|
|
34
|
+
SALES = 4,
|
|
35
|
+
STUDENT = 5,
|
|
36
|
+
GUARDIAN = 6,
|
|
37
|
+
PART_TIME_TRAINER = 7,
|
|
38
|
+
ADMISSIONS = 8,
|
|
39
|
+
PART_TIME_ADMISSIONS = 9
|
|
40
|
+
}
|
|
41
|
+
export declare enum USER_STATUS {
|
|
42
|
+
ACTIVE = 1,
|
|
43
|
+
INACTIVE = 2,
|
|
44
|
+
LEAD = 3
|
|
45
|
+
}
|
|
46
|
+
export declare class User {
|
|
47
|
+
id: number;
|
|
48
|
+
email: string;
|
|
49
|
+
password: string;
|
|
50
|
+
role: USER_ROLE;
|
|
51
|
+
status: USER_STATUS;
|
|
52
|
+
inviteCode: string;
|
|
53
|
+
invitedAt: Date;
|
|
54
|
+
hasChangedPassword: boolean;
|
|
55
|
+
hasUpdatedProfile: boolean;
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
updatedAt: Date;
|
|
58
|
+
profile: Profile;
|
|
59
|
+
guardianProfile: Guardian;
|
|
60
|
+
studentExtra: StudentExtra;
|
|
61
|
+
studentGoal: StudentGoal;
|
|
62
|
+
accessTokens: AccessToken[];
|
|
63
|
+
studentServices: StudentService[];
|
|
64
|
+
studentTargets: StudentTarget[];
|
|
65
|
+
userToGuardians: UserToGuardian[];
|
|
66
|
+
closedSales: Sale[];
|
|
67
|
+
sales: Sale[];
|
|
68
|
+
saleSplits: SaleSplit[];
|
|
69
|
+
testAttempts: TestAttempt[];
|
|
70
|
+
fileAccesses: FileAccess[];
|
|
71
|
+
events: EventToUser[];
|
|
72
|
+
authoredJourneys: Journey[];
|
|
73
|
+
journeysToStudents: JourneyToStudent[];
|
|
74
|
+
studentNotes: StudentNote[];
|
|
75
|
+
staffHour: StaffHour;
|
|
76
|
+
userPreferences: UserPreference[];
|
|
77
|
+
studentsAssigned: StudentAssignment[];
|
|
78
|
+
staffsAssigned: StudentAssignment[];
|
|
79
|
+
highSchoolRecord: HighSchoolRecord;
|
|
80
|
+
universityPreference: UniversityPreference;
|
|
81
|
+
extracurricularActivities: ExtracurricularActivity[];
|
|
82
|
+
testScores: TestScore[];
|
|
83
|
+
pdUser: PDUser;
|
|
84
|
+
staffSubjectTags: StaffSubjectTag[];
|
|
85
|
+
staffAvailabilities: StaffAvailability[];
|
|
86
|
+
sessionAttendances: StudentSessionAttendance[];
|
|
87
|
+
holidays: Holiday[];
|
|
88
|
+
payments: SalePayment[];
|
|
89
|
+
constructor(data?: any);
|
|
90
|
+
getCreatedAtString(): string;
|
|
91
|
+
}
|