@tudopz/model 2.21.0 → 2.21.4
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/README.md +20 -0
- package/lib/constant/extracurricular-activity.d.ts +1 -0
- package/lib/constant/extracurricular-activity.js +9 -0
- package/lib/constant/student-service.js +1 -0
- package/lib/constant/university-preference.d.ts +3 -0
- package/lib/constant/university-preference.js +10 -0
- package/lib/index.d.ts +8 -3
- package/lib/index.js +13 -0
- package/lib/model/extracurricular-activity.d.ts +21 -0
- package/lib/model/extracurricular-activity.js +64 -0
- package/lib/model/student-service.d.ts +2 -1
- package/lib/model/student-service.js +1 -0
- package/lib/model/test-score.d.ts +12 -0
- package/lib/model/test-score.js +48 -0
- package/lib/model/university-preference.d.ts +15 -0
- package/lib/model/university-preference.js +60 -0
- package/lib/model/user.d.ts +6 -0
- package/lib/model/user.js +15 -0
- package/package.json +1 -1
- package/lib/model/high-school.d.ts +0 -4
- package/lib/model/high-school.js +0 -18
package/README.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
## Changelogs
|
|
4
4
|
|
|
5
|
+
### v2.21.4
|
|
6
|
+
|
|
7
|
+
- Add `MYP` service
|
|
8
|
+
|
|
9
|
+
### v2.21.3
|
|
10
|
+
|
|
11
|
+
- Add `TestScore`
|
|
12
|
+
|
|
13
|
+
### v2.21.2
|
|
14
|
+
|
|
15
|
+
- Add `ExtracurricularActivity`
|
|
16
|
+
|
|
17
|
+
### v2.21.1
|
|
18
|
+
|
|
19
|
+
- Add `UniversityPreference`
|
|
20
|
+
|
|
21
|
+
### v2.20.0
|
|
22
|
+
|
|
23
|
+
- Add `HighSchoolRecord`
|
|
24
|
+
|
|
5
25
|
### v2.20.0
|
|
6
26
|
|
|
7
27
|
- Add `FileCategory`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EXTRACURRICULAR_ACTIVITY_CATEGORY_VALUES: string[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UNI_PREF_LOCATIONS = ['East Coast', 'South', 'Midwest', 'West Coast', 'No Preference'];
|
|
4
|
+
exports.UNI_PREF_SETTINGS = ['Urban', 'Suburban', 'Rural', 'No Preference'];
|
|
5
|
+
exports.UNI_PREF_SIZES = [
|
|
6
|
+
'Small (Less than 5000 students)',
|
|
7
|
+
'Medium (5000 - 10000 students)',
|
|
8
|
+
'Large (More than 10000 students)',
|
|
9
|
+
'No Preference',
|
|
10
|
+
];
|
package/lib/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { EducationSystem } from './model/education-system';
|
|
|
8
8
|
import { EventLog } from './model/event-log';
|
|
9
9
|
import { EventToUser } from './model/event-to-user';
|
|
10
10
|
import { Event, EVENT_CATEGORY, EVENT_VISIBILITY, EVENT_STATUS, OFFICE } from './model/event';
|
|
11
|
+
import { ExtracurricularActivity, EXTRACURRICULAR_ACTIVITY_CATEGORY } from './model/extracurricular-activity';
|
|
11
12
|
import { FileAccess } from './model/file-access';
|
|
12
13
|
import { FileCategory } from './model/file-category';
|
|
13
14
|
import { File } from './model/file';
|
|
@@ -38,8 +39,10 @@ import { TestAttempt, TEST_ATTEMPT_STATUS } from './model/test-attempt';
|
|
|
38
39
|
import { TestCategory } from './model/test-category';
|
|
39
40
|
import { TestQuestion, TEST_QUESTION_TYPE } from './model/test-question';
|
|
40
41
|
import { BaseReport, Report, SATReport, ACTReport, GMATReport, UCATReport, LSATReport, MCATReport, ISATReport, BMATReport } from './model/test-report';
|
|
42
|
+
import { TestScore } from './model/test-score';
|
|
41
43
|
import { TestSection } from './model/test-section';
|
|
42
44
|
import { Test } from './model/test';
|
|
45
|
+
import { UniversityPreference } from './model/university-preference';
|
|
43
46
|
import { UserPreference } from './model/user-preference';
|
|
44
47
|
import { UserToGuardian, GUARDIAN_RELATIONSHIP } from './model/user-to-guardian';
|
|
45
48
|
import { User, USER_ROLE, USER_STATUS } from './model/user';
|
|
@@ -48,13 +51,15 @@ import { CONVERSION_TABLE_TYPE_VALUES } from './constant/conversion-table';
|
|
|
48
51
|
import { COUNTRY_VALUES } from './constant/country';
|
|
49
52
|
import { DIMENSION_TYPE_VALUES, DIMENSION_CATEGORY_VALUES } from './constant/dimension';
|
|
50
53
|
import { EVENT_CATEGORY_VALUES, EVENT_VISIBILITY_VALUES, EVENT_STATUS_VALUES } from './constant/event';
|
|
54
|
+
import { EXTRACURRICULAR_ACTIVITY_CATEGORY_VALUES } from './constant/extracurricular-activity';
|
|
51
55
|
import { GUARDIAN_RELATIONSHIP_VALUES } from './constant/guardian';
|
|
52
56
|
import { NATIONALITY_VALUES } from './constant/nationality';
|
|
53
57
|
import { OFFICE_VALUES, ROOMS } from './constant/location';
|
|
54
58
|
import { SALE_PAYMENT_MODE_VALUES, SALE_PAYMENT_TYPE_VALUES, SALE_TYPE_VALUES, SALE_SUB_TYPE_VALUES } from './constant/sale';
|
|
55
59
|
import { EDUCATION_SYSTEM_VALUES, SCHOOL_VALUES, COURSES, COURSE_SUBJECTS, AREA_OF_STUDIES } from './constant/school';
|
|
56
60
|
import { STUDENT_SERVICE_VALUES, UNDERGRAD_TEST_SERVICES, UNDERGRAD_ADMISSIONS_SERVICES, POSTGRAD_TEST_SERVICES, POSTGRAD_ADMISSIONS_SERVICES, SCHOOL_CURRICULUM_SERVICES, ENGLISH_PROFICIENCY_SERVICES, ENRICHMENT_SERVICES, NO_TARGETS, TEST_PREP_TARGETS, ADMISSIONS_TARGETS, UNDERGRAD_ALL_SERVICES, POSTGRAD_ALL_SERVICES } from './constant/student-service';
|
|
61
|
+
import { UNI_PREF_SIZES, UNI_PREF_SETTINGS, UNI_PREF_LOCATIONS } from './constant/university-preference';
|
|
57
62
|
import { USER_STATUS_VALUES } from './constant/user';
|
|
58
|
-
export { CONVERSION_TABLE_TYPE, DIMENSION_TYPE, DIMENSION_CATEGORY, LOG_TYPE, LOG_ACTION, GENDER, NATIONALITY, COUNTRY, SALE_PAYMENT_TYPE, SALE_PAYMENT_MODE, SALE_TYPE, SALE_SUB_TYPE, STUDENT_SERVICE, TEST_ATTEMPT_STATUS, TEST_QUESTION_TYPE, GUARDIAN_RELATIONSHIP, USER_ROLE, USER_STATUS, SCHOOL_LEVEL, EVENT_CATEGORY, EVENT_VISIBILITY, EVENT_STATUS, OFFICE, MEMBERSHIP_LOG_TYPE, STUDENT_NOTE_VISIBILITY, STAFF_HOUR_LOG_TYPE, };
|
|
59
|
-
export { CONVERSION_TABLE_TYPE_VALUES, COUNTRY_VALUES, DIMENSION_TYPE_VALUES, DIMENSION_CATEGORY_VALUES, GUARDIAN_RELATIONSHIP_VALUES, NATIONALITY_VALUES, SALE_PAYMENT_TYPE_VALUES, SALE_PAYMENT_MODE_VALUES, SALE_TYPE_VALUES, SALE_SUB_TYPE_VALUES, STUDENT_SERVICE_VALUES, UNDERGRAD_TEST_SERVICES, UNDERGRAD_ADMISSIONS_SERVICES, POSTGRAD_TEST_SERVICES, POSTGRAD_ADMISSIONS_SERVICES, SCHOOL_CURRICULUM_SERVICES, ENGLISH_PROFICIENCY_SERVICES, ENRICHMENT_SERVICES, NO_TARGETS, TEST_PREP_TARGETS, ADMISSIONS_TARGETS, UNDERGRAD_ALL_SERVICES, POSTGRAD_ALL_SERVICES, EDUCATION_SYSTEM_VALUES, SCHOOL_VALUES, ROOMS, OFFICE_VALUES, EVENT_CATEGORY_VALUES, EVENT_VISIBILITY_VALUES, EVENT_STATUS_VALUES, USER_STATUS_VALUES, COURSES, COURSE_SUBJECTS, AREA_OF_STUDIES, };
|
|
60
|
-
export { AccessToken, AnswerKey, ConversionTable, CourseTemplateEvent, CourseTemplate, Dimension, EducationSystem, EventLog, EventToUser, Event, FileAccess, FileCategory, File, Guardian, HighSchoolRecord, JourneyStage, JourneyToStudent, Journey, Lead, Log, PartTimeAssignment, Profile, SaleSplit, Sale, School, StaffHour, StaffHourLog, StudentAnswer, StudentExtra, StudentGoal, StudentNoteChecklistItem, StudentNote, StudentServiceMembershipLog, StudentServiceMembership, StudentService, StudentTarget, TestAttempt, TestCategory, TestQuestion, BaseReport, Report, SATReport, ACTReport, GMATReport, UCATReport, LSATReport, MCATReport, ISATReport, BMATReport, TestSection, Test, UserPreference, UserToGuardian, User, ZoomInfo, };
|
|
63
|
+
export { CONVERSION_TABLE_TYPE, DIMENSION_TYPE, DIMENSION_CATEGORY, LOG_TYPE, LOG_ACTION, GENDER, NATIONALITY, COUNTRY, SALE_PAYMENT_TYPE, SALE_PAYMENT_MODE, SALE_TYPE, SALE_SUB_TYPE, STUDENT_SERVICE, TEST_ATTEMPT_STATUS, TEST_QUESTION_TYPE, GUARDIAN_RELATIONSHIP, USER_ROLE, USER_STATUS, SCHOOL_LEVEL, EVENT_CATEGORY, EVENT_VISIBILITY, EVENT_STATUS, OFFICE, MEMBERSHIP_LOG_TYPE, STUDENT_NOTE_VISIBILITY, STAFF_HOUR_LOG_TYPE, EXTRACURRICULAR_ACTIVITY_CATEGORY, };
|
|
64
|
+
export { CONVERSION_TABLE_TYPE_VALUES, COUNTRY_VALUES, DIMENSION_TYPE_VALUES, DIMENSION_CATEGORY_VALUES, GUARDIAN_RELATIONSHIP_VALUES, NATIONALITY_VALUES, SALE_PAYMENT_TYPE_VALUES, SALE_PAYMENT_MODE_VALUES, SALE_TYPE_VALUES, SALE_SUB_TYPE_VALUES, STUDENT_SERVICE_VALUES, UNDERGRAD_TEST_SERVICES, UNDERGRAD_ADMISSIONS_SERVICES, POSTGRAD_TEST_SERVICES, POSTGRAD_ADMISSIONS_SERVICES, SCHOOL_CURRICULUM_SERVICES, ENGLISH_PROFICIENCY_SERVICES, ENRICHMENT_SERVICES, NO_TARGETS, TEST_PREP_TARGETS, ADMISSIONS_TARGETS, UNDERGRAD_ALL_SERVICES, POSTGRAD_ALL_SERVICES, EDUCATION_SYSTEM_VALUES, SCHOOL_VALUES, ROOMS, OFFICE_VALUES, EVENT_CATEGORY_VALUES, EVENT_VISIBILITY_VALUES, EVENT_STATUS_VALUES, USER_STATUS_VALUES, COURSES, COURSE_SUBJECTS, AREA_OF_STUDIES, UNI_PREF_SIZES, UNI_PREF_SETTINGS, UNI_PREF_LOCATIONS, EXTRACURRICULAR_ACTIVITY_CATEGORY_VALUES, };
|
|
65
|
+
export { AccessToken, AnswerKey, ConversionTable, CourseTemplateEvent, CourseTemplate, Dimension, EducationSystem, EventLog, EventToUser, Event, ExtracurricularActivity, FileAccess, FileCategory, File, Guardian, HighSchoolRecord, JourneyStage, JourneyToStudent, Journey, Lead, Log, PartTimeAssignment, Profile, SaleSplit, Sale, School, StaffHour, StaffHourLog, StudentAnswer, StudentExtra, StudentGoal, StudentNoteChecklistItem, StudentNote, StudentServiceMembershipLog, StudentServiceMembership, StudentService, StudentTarget, TestAttempt, TestCategory, TestQuestion, BaseReport, Report, SATReport, ACTReport, GMATReport, UCATReport, LSATReport, MCATReport, ISATReport, BMATReport, TestScore, TestSection, Test, UniversityPreference, UserPreference, UserToGuardian, User, ZoomInfo, };
|
package/lib/index.js
CHANGED
|
@@ -27,6 +27,9 @@ exports.EVENT_CATEGORY = event_1.EVENT_CATEGORY;
|
|
|
27
27
|
exports.EVENT_VISIBILITY = event_1.EVENT_VISIBILITY;
|
|
28
28
|
exports.EVENT_STATUS = event_1.EVENT_STATUS;
|
|
29
29
|
exports.OFFICE = event_1.OFFICE;
|
|
30
|
+
const extracurricular_activity_1 = require("./model/extracurricular-activity");
|
|
31
|
+
exports.ExtracurricularActivity = extracurricular_activity_1.ExtracurricularActivity;
|
|
32
|
+
exports.EXTRACURRICULAR_ACTIVITY_CATEGORY = extracurricular_activity_1.EXTRACURRICULAR_ACTIVITY_CATEGORY;
|
|
30
33
|
const file_access_1 = require("./model/file-access");
|
|
31
34
|
exports.FileAccess = file_access_1.FileAccess;
|
|
32
35
|
const file_category_1 = require("./model/file-category");
|
|
@@ -111,10 +114,14 @@ exports.LSATReport = test_report_1.LSATReport;
|
|
|
111
114
|
exports.MCATReport = test_report_1.MCATReport;
|
|
112
115
|
exports.ISATReport = test_report_1.ISATReport;
|
|
113
116
|
exports.BMATReport = test_report_1.BMATReport;
|
|
117
|
+
const test_score_1 = require("./model/test-score");
|
|
118
|
+
exports.TestScore = test_score_1.TestScore;
|
|
114
119
|
const test_section_1 = require("./model/test-section");
|
|
115
120
|
exports.TestSection = test_section_1.TestSection;
|
|
116
121
|
const test_1 = require("./model/test");
|
|
117
122
|
exports.Test = test_1.Test;
|
|
123
|
+
const university_preference_1 = require("./model/university-preference");
|
|
124
|
+
exports.UniversityPreference = university_preference_1.UniversityPreference;
|
|
118
125
|
const user_preference_1 = require("./model/user-preference");
|
|
119
126
|
exports.UserPreference = user_preference_1.UserPreference;
|
|
120
127
|
const user_to_guardian_1 = require("./model/user-to-guardian");
|
|
@@ -137,6 +144,8 @@ const event_2 = require("./constant/event");
|
|
|
137
144
|
exports.EVENT_CATEGORY_VALUES = event_2.EVENT_CATEGORY_VALUES;
|
|
138
145
|
exports.EVENT_VISIBILITY_VALUES = event_2.EVENT_VISIBILITY_VALUES;
|
|
139
146
|
exports.EVENT_STATUS_VALUES = event_2.EVENT_STATUS_VALUES;
|
|
147
|
+
const extracurricular_activity_2 = require("./constant/extracurricular-activity");
|
|
148
|
+
exports.EXTRACURRICULAR_ACTIVITY_CATEGORY_VALUES = extracurricular_activity_2.EXTRACURRICULAR_ACTIVITY_CATEGORY_VALUES;
|
|
140
149
|
const guardian_2 = require("./constant/guardian");
|
|
141
150
|
exports.GUARDIAN_RELATIONSHIP_VALUES = guardian_2.GUARDIAN_RELATIONSHIP_VALUES;
|
|
142
151
|
const nationality_1 = require("./constant/nationality");
|
|
@@ -169,5 +178,9 @@ exports.TEST_PREP_TARGETS = student_service_2.TEST_PREP_TARGETS;
|
|
|
169
178
|
exports.ADMISSIONS_TARGETS = student_service_2.ADMISSIONS_TARGETS;
|
|
170
179
|
exports.UNDERGRAD_ALL_SERVICES = student_service_2.UNDERGRAD_ALL_SERVICES;
|
|
171
180
|
exports.POSTGRAD_ALL_SERVICES = student_service_2.POSTGRAD_ALL_SERVICES;
|
|
181
|
+
const university_preference_2 = require("./constant/university-preference");
|
|
182
|
+
exports.UNI_PREF_SIZES = university_preference_2.UNI_PREF_SIZES;
|
|
183
|
+
exports.UNI_PREF_SETTINGS = university_preference_2.UNI_PREF_SETTINGS;
|
|
184
|
+
exports.UNI_PREF_LOCATIONS = university_preference_2.UNI_PREF_LOCATIONS;
|
|
172
185
|
const user_2 = require("./constant/user");
|
|
173
186
|
exports.USER_STATUS_VALUES = user_2.USER_STATUS_VALUES;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { User } from './user';
|
|
2
|
+
export declare enum EXTRACURRICULAR_ACTIVITY_CATEGORY {
|
|
3
|
+
ACADEMIC = 1,
|
|
4
|
+
SPORTS = 2,
|
|
5
|
+
VOLUNTEERING = 3,
|
|
6
|
+
WORK_EXPERIENCE = 4,
|
|
7
|
+
HOBBIES_INTEREST = 5
|
|
8
|
+
}
|
|
9
|
+
export declare class ExtracurricularActivity {
|
|
10
|
+
id: number;
|
|
11
|
+
title: string;
|
|
12
|
+
category: EXTRACURRICULAR_ACTIVITY_CATEGORY;
|
|
13
|
+
from: Date;
|
|
14
|
+
to: Date;
|
|
15
|
+
role: string;
|
|
16
|
+
details: string;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
userId: number;
|
|
20
|
+
user: User;
|
|
21
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const typeorm_1 = require("typeorm");
|
|
5
|
+
const user_1 = require("./user");
|
|
6
|
+
var EXTRACURRICULAR_ACTIVITY_CATEGORY;
|
|
7
|
+
(function (EXTRACURRICULAR_ACTIVITY_CATEGORY) {
|
|
8
|
+
EXTRACURRICULAR_ACTIVITY_CATEGORY[EXTRACURRICULAR_ACTIVITY_CATEGORY["ACADEMIC"] = 1] = "ACADEMIC";
|
|
9
|
+
EXTRACURRICULAR_ACTIVITY_CATEGORY[EXTRACURRICULAR_ACTIVITY_CATEGORY["SPORTS"] = 2] = "SPORTS";
|
|
10
|
+
EXTRACURRICULAR_ACTIVITY_CATEGORY[EXTRACURRICULAR_ACTIVITY_CATEGORY["VOLUNTEERING"] = 3] = "VOLUNTEERING";
|
|
11
|
+
EXTRACURRICULAR_ACTIVITY_CATEGORY[EXTRACURRICULAR_ACTIVITY_CATEGORY["WORK_EXPERIENCE"] = 4] = "WORK_EXPERIENCE";
|
|
12
|
+
EXTRACURRICULAR_ACTIVITY_CATEGORY[EXTRACURRICULAR_ACTIVITY_CATEGORY["HOBBIES_INTEREST"] = 5] = "HOBBIES_INTEREST";
|
|
13
|
+
})(EXTRACURRICULAR_ACTIVITY_CATEGORY = exports.EXTRACURRICULAR_ACTIVITY_CATEGORY || (exports.EXTRACURRICULAR_ACTIVITY_CATEGORY = {}));
|
|
14
|
+
let ExtracurricularActivity = class ExtracurricularActivity {
|
|
15
|
+
};
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
18
|
+
tslib_1.__metadata("design:type", Number)
|
|
19
|
+
], ExtracurricularActivity.prototype, "id", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
typeorm_1.Column({ type: 'varchar', length: 256 }),
|
|
22
|
+
tslib_1.__metadata("design:type", String)
|
|
23
|
+
], ExtracurricularActivity.prototype, "title", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
typeorm_1.Column({ type: 'enum', enum: EXTRACURRICULAR_ACTIVITY_CATEGORY }),
|
|
26
|
+
tslib_1.__metadata("design:type", Number)
|
|
27
|
+
], ExtracurricularActivity.prototype, "category", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
typeorm_1.Column({ type: 'date' }),
|
|
30
|
+
tslib_1.__metadata("design:type", Date)
|
|
31
|
+
], ExtracurricularActivity.prototype, "from", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
typeorm_1.Column({ type: 'date' }),
|
|
34
|
+
tslib_1.__metadata("design:type", Date)
|
|
35
|
+
], ExtracurricularActivity.prototype, "to", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
typeorm_1.Column({ type: 'varchar', length: 256 }),
|
|
38
|
+
tslib_1.__metadata("design:type", String)
|
|
39
|
+
], ExtracurricularActivity.prototype, "role", void 0);
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
typeorm_1.Column({ type: 'text' }),
|
|
42
|
+
tslib_1.__metadata("design:type", String)
|
|
43
|
+
], ExtracurricularActivity.prototype, "details", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
typeorm_1.CreateDateColumn(),
|
|
46
|
+
tslib_1.__metadata("design:type", Date)
|
|
47
|
+
], ExtracurricularActivity.prototype, "createdAt", void 0);
|
|
48
|
+
tslib_1.__decorate([
|
|
49
|
+
typeorm_1.UpdateDateColumn(),
|
|
50
|
+
tslib_1.__metadata("design:type", Date)
|
|
51
|
+
], ExtracurricularActivity.prototype, "updatedAt", void 0);
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
typeorm_1.Column({ type: 'int' }),
|
|
54
|
+
tslib_1.__metadata("design:type", Number)
|
|
55
|
+
], ExtracurricularActivity.prototype, "userId", void 0);
|
|
56
|
+
tslib_1.__decorate([
|
|
57
|
+
typeorm_1.ManyToOne(type => user_1.User, user => user.extracurricularActivities),
|
|
58
|
+
typeorm_1.JoinColumn(),
|
|
59
|
+
tslib_1.__metadata("design:type", user_1.User)
|
|
60
|
+
], ExtracurricularActivity.prototype, "user", void 0);
|
|
61
|
+
ExtracurricularActivity = tslib_1.__decorate([
|
|
62
|
+
typeorm_1.Entity({ name: 'extracurricular_activities' })
|
|
63
|
+
], ExtracurricularActivity);
|
|
64
|
+
exports.ExtracurricularActivity = ExtracurricularActivity;
|
|
@@ -99,4 +99,5 @@ var STUDENT_SERVICE;
|
|
|
99
99
|
STUDENT_SERVICE[STUDENT_SERVICE["HAST"] = 36] = "HAST";
|
|
100
100
|
STUDENT_SERVICE[STUDENT_SERVICE["NO_SERVICE"] = 37] = "NO_SERVICE";
|
|
101
101
|
STUDENT_SERVICE[STUDENT_SERVICE["PRE_MED"] = 38] = "PRE_MED";
|
|
102
|
+
STUDENT_SERVICE[STUDENT_SERVICE["MYP"] = 39] = "MYP";
|
|
102
103
|
})(STUDENT_SERVICE = exports.STUDENT_SERVICE || (exports.STUDENT_SERVICE = {}));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const typeorm_1 = require("typeorm");
|
|
5
|
+
const user_1 = require("./user");
|
|
6
|
+
let TestScore = class TestScore {
|
|
7
|
+
};
|
|
8
|
+
tslib_1.__decorate([
|
|
9
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
10
|
+
tslib_1.__metadata("design:type", Number)
|
|
11
|
+
], TestScore.prototype, "id", void 0);
|
|
12
|
+
tslib_1.__decorate([
|
|
13
|
+
typeorm_1.Column({ type: 'int' }),
|
|
14
|
+
tslib_1.__metadata("design:type", Number)
|
|
15
|
+
], TestScore.prototype, "studentServiceId", void 0);
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
typeorm_1.Column({ type: 'boolean' }),
|
|
18
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
19
|
+
], TestScore.prototype, "isOfficial", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
typeorm_1.Column({ type: 'date' }),
|
|
22
|
+
tslib_1.__metadata("design:type", Date)
|
|
23
|
+
], TestScore.prototype, "date", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
typeorm_1.Column({ type: 'text' }),
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
27
|
+
], TestScore.prototype, "scores", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
typeorm_1.CreateDateColumn(),
|
|
30
|
+
tslib_1.__metadata("design:type", Date)
|
|
31
|
+
], TestScore.prototype, "createdAt", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
typeorm_1.UpdateDateColumn(),
|
|
34
|
+
tslib_1.__metadata("design:type", Date)
|
|
35
|
+
], TestScore.prototype, "updatedAt", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
typeorm_1.Column({ type: 'int' }),
|
|
38
|
+
tslib_1.__metadata("design:type", Number)
|
|
39
|
+
], TestScore.prototype, "userId", void 0);
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
typeorm_1.ManyToOne(type => user_1.User, user => user.testScores),
|
|
42
|
+
typeorm_1.JoinColumn(),
|
|
43
|
+
tslib_1.__metadata("design:type", user_1.User)
|
|
44
|
+
], TestScore.prototype, "user", void 0);
|
|
45
|
+
TestScore = tslib_1.__decorate([
|
|
46
|
+
typeorm_1.Entity({ name: 'test_scores' })
|
|
47
|
+
], TestScore);
|
|
48
|
+
exports.TestScore = TestScore;
|
|
@@ -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,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const typeorm_1 = require("typeorm");
|
|
5
|
+
const user_1 = require("./user");
|
|
6
|
+
let UniversityPreference = class UniversityPreference {
|
|
7
|
+
};
|
|
8
|
+
tslib_1.__decorate([
|
|
9
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
10
|
+
tslib_1.__metadata("design:type", Number)
|
|
11
|
+
], UniversityPreference.prototype, "id", void 0);
|
|
12
|
+
tslib_1.__decorate([
|
|
13
|
+
typeorm_1.Column({ type: 'text' }),
|
|
14
|
+
tslib_1.__metadata("design:type", String)
|
|
15
|
+
], UniversityPreference.prototype, "location", void 0);
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
typeorm_1.Column({ type: 'text' }),
|
|
18
|
+
tslib_1.__metadata("design:type", String)
|
|
19
|
+
], UniversityPreference.prototype, "settings", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
typeorm_1.Column({ type: 'text' }),
|
|
22
|
+
tslib_1.__metadata("design:type", String)
|
|
23
|
+
], UniversityPreference.prototype, "size", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
typeorm_1.Column({ type: 'text' }),
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
27
|
+
], UniversityPreference.prototype, "interest", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
typeorm_1.Column({ type: 'text' }),
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
|
+
], UniversityPreference.prototype, "criteria", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
typeorm_1.Column({ type: 'text' }),
|
|
34
|
+
tslib_1.__metadata("design:type", String)
|
|
35
|
+
], UniversityPreference.prototype, "uninterest", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
typeorm_1.Column({ type: 'text' }),
|
|
38
|
+
tslib_1.__metadata("design:type", String)
|
|
39
|
+
], UniversityPreference.prototype, "avoidance", void 0);
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
typeorm_1.CreateDateColumn(),
|
|
42
|
+
tslib_1.__metadata("design:type", Date)
|
|
43
|
+
], UniversityPreference.prototype, "createdAt", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
typeorm_1.UpdateDateColumn(),
|
|
46
|
+
tslib_1.__metadata("design:type", Date)
|
|
47
|
+
], UniversityPreference.prototype, "updatedAt", void 0);
|
|
48
|
+
tslib_1.__decorate([
|
|
49
|
+
typeorm_1.Column({ type: 'int' }),
|
|
50
|
+
tslib_1.__metadata("design:type", Number)
|
|
51
|
+
], UniversityPreference.prototype, "userId", void 0);
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
typeorm_1.OneToOne(type => user_1.User, user => user.universityPreference),
|
|
54
|
+
typeorm_1.JoinColumn(),
|
|
55
|
+
tslib_1.__metadata("design:type", user_1.User)
|
|
56
|
+
], UniversityPreference.prototype, "user", void 0);
|
|
57
|
+
UniversityPreference = tslib_1.__decorate([
|
|
58
|
+
typeorm_1.Entity({ name: 'university_preferences' })
|
|
59
|
+
], UniversityPreference);
|
|
60
|
+
exports.UniversityPreference = UniversityPreference;
|
package/lib/model/user.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ import { TestAttempt } from './test-attempt';
|
|
|
18
18
|
import { UserPreference } from './user-preference';
|
|
19
19
|
import { UserToGuardian } from './user-to-guardian';
|
|
20
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';
|
|
21
24
|
export declare enum USER_ROLE {
|
|
22
25
|
SUPER_ADMIN = 1,
|
|
23
26
|
ADMIN = 2,
|
|
@@ -65,6 +68,9 @@ export declare class User {
|
|
|
65
68
|
userPreferences: UserPreference[];
|
|
66
69
|
partTimeAssignments: PartTimeAssignment[];
|
|
67
70
|
highSchoolRecord: HighSchoolRecord;
|
|
71
|
+
universityPreference: UniversityPreference;
|
|
72
|
+
extracurricularActivities: ExtracurricularActivity[];
|
|
73
|
+
testScores: TestScore[];
|
|
68
74
|
constructor(data?: any);
|
|
69
75
|
getCreatedAtString(): string;
|
|
70
76
|
}
|
package/lib/model/user.js
CHANGED
|
@@ -23,6 +23,9 @@ const test_attempt_1 = require("./test-attempt");
|
|
|
23
23
|
const user_preference_1 = require("./user-preference");
|
|
24
24
|
const user_to_guardian_1 = require("./user-to-guardian");
|
|
25
25
|
const event_to_user_1 = require("./event-to-user");
|
|
26
|
+
const university_preference_1 = require("./university-preference");
|
|
27
|
+
const extracurricular_activity_1 = require("./extracurricular-activity");
|
|
28
|
+
const test_score_1 = require("./test-score");
|
|
26
29
|
var USER_ROLE;
|
|
27
30
|
(function (USER_ROLE) {
|
|
28
31
|
USER_ROLE[USER_ROLE["SUPER_ADMIN"] = 1] = "SUPER_ADMIN";
|
|
@@ -188,6 +191,18 @@ tslib_1.__decorate([
|
|
|
188
191
|
typeorm_1.OneToOne(type => high_school_record_1.HighSchoolRecord, h => h.user),
|
|
189
192
|
tslib_1.__metadata("design:type", high_school_record_1.HighSchoolRecord)
|
|
190
193
|
], User.prototype, "highSchoolRecord", void 0);
|
|
194
|
+
tslib_1.__decorate([
|
|
195
|
+
typeorm_1.OneToOne(type => university_preference_1.UniversityPreference, u => u.user),
|
|
196
|
+
tslib_1.__metadata("design:type", university_preference_1.UniversityPreference)
|
|
197
|
+
], User.prototype, "universityPreference", void 0);
|
|
198
|
+
tslib_1.__decorate([
|
|
199
|
+
typeorm_1.OneToMany(type => extracurricular_activity_1.ExtracurricularActivity, u => u.user),
|
|
200
|
+
tslib_1.__metadata("design:type", Array)
|
|
201
|
+
], User.prototype, "extracurricularActivities", void 0);
|
|
202
|
+
tslib_1.__decorate([
|
|
203
|
+
typeorm_1.OneToMany(type => test_score_1.TestScore, u => u.user),
|
|
204
|
+
tslib_1.__metadata("design:type", Array)
|
|
205
|
+
], User.prototype, "testScores", void 0);
|
|
191
206
|
User = tslib_1.__decorate([
|
|
192
207
|
typeorm_1.Entity({ name: 'users' }),
|
|
193
208
|
tslib_1.__metadata("design:paramtypes", [Object])
|
package/package.json
CHANGED
package/lib/model/high-school.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
let HighSchool = class HighSchool {
|
|
6
|
-
};
|
|
7
|
-
tslib_1.__decorate([
|
|
8
|
-
typeorm_1.PrimaryGeneratedColumn(),
|
|
9
|
-
tslib_1.__metadata("design:type", Number)
|
|
10
|
-
], HighSchool.prototype, "id", void 0);
|
|
11
|
-
tslib_1.__decorate([
|
|
12
|
-
typeorm_1.Column({ type: 'varchar', length: 128 }),
|
|
13
|
-
tslib_1.__metadata("design:type", String)
|
|
14
|
-
], HighSchool.prototype, "name", void 0);
|
|
15
|
-
HighSchool = tslib_1.__decorate([
|
|
16
|
-
typeorm_1.Entity({ name: 'high_schools' })
|
|
17
|
-
], HighSchool);
|
|
18
|
-
exports.HighSchool = HighSchool;
|