@tudopz/model 2.21.2 → 2.21.6
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 +16 -0
- package/lib/constant/student-service.js +1 -0
- package/lib/constant/university-preference.js +2 -3
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -0
- package/lib/model/extracurricular-activity.d.ts +1 -0
- package/lib/model/extracurricular-activity.js +4 -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/user.d.ts +2 -0
- package/lib/model/user.js +5 -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,22 @@
|
|
|
2
2
|
|
|
3
3
|
## Changelogs
|
|
4
4
|
|
|
5
|
+
### v2.21.5
|
|
6
|
+
|
|
7
|
+
- Remove `No Preference` from university preference consts
|
|
8
|
+
|
|
9
|
+
### v2.21.5
|
|
10
|
+
|
|
11
|
+
- Add `ongoing` to `ExtracurricularActivity`
|
|
12
|
+
|
|
13
|
+
### v2.21.4
|
|
14
|
+
|
|
15
|
+
- Add `MYP` service
|
|
16
|
+
|
|
17
|
+
### v2.21.3
|
|
18
|
+
|
|
19
|
+
- Add `TestScore`
|
|
20
|
+
|
|
5
21
|
### v2.21.2
|
|
6
22
|
|
|
7
23
|
- Add `ExtracurricularActivity`
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UNI_PREF_LOCATIONS = ['East Coast', 'South', 'Midwest', 'West Coast'
|
|
4
|
-
exports.UNI_PREF_SETTINGS = ['Urban', 'Suburban', 'Rural'
|
|
3
|
+
exports.UNI_PREF_LOCATIONS = ['East Coast', 'South', 'Midwest', 'West Coast'];
|
|
4
|
+
exports.UNI_PREF_SETTINGS = ['Urban', 'Suburban', 'Rural'];
|
|
5
5
|
exports.UNI_PREF_SIZES = [
|
|
6
6
|
'Small (Less than 5000 students)',
|
|
7
7
|
'Medium (5000 - 10000 students)',
|
|
8
8
|
'Large (More than 10000 students)',
|
|
9
|
-
'No Preference',
|
|
10
9
|
];
|
package/lib/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ import { TestAttempt, TEST_ATTEMPT_STATUS } from './model/test-attempt';
|
|
|
39
39
|
import { TestCategory } from './model/test-category';
|
|
40
40
|
import { TestQuestion, TEST_QUESTION_TYPE } from './model/test-question';
|
|
41
41
|
import { BaseReport, Report, SATReport, ACTReport, GMATReport, UCATReport, LSATReport, MCATReport, ISATReport, BMATReport } from './model/test-report';
|
|
42
|
+
import { TestScore } from './model/test-score';
|
|
42
43
|
import { TestSection } from './model/test-section';
|
|
43
44
|
import { Test } from './model/test';
|
|
44
45
|
import { UniversityPreference } from './model/university-preference';
|
|
@@ -61,4 +62,4 @@ import { UNI_PREF_SIZES, UNI_PREF_SETTINGS, UNI_PREF_LOCATIONS } from './constan
|
|
|
61
62
|
import { USER_STATUS_VALUES } from './constant/user';
|
|
62
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, };
|
|
63
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, };
|
|
64
|
-
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, TestSection, Test, UniversityPreference, UserPreference, UserToGuardian, User, ZoomInfo, };
|
|
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
|
@@ -114,6 +114,8 @@ exports.LSATReport = test_report_1.LSATReport;
|
|
|
114
114
|
exports.MCATReport = test_report_1.MCATReport;
|
|
115
115
|
exports.ISATReport = test_report_1.ISATReport;
|
|
116
116
|
exports.BMATReport = test_report_1.BMATReport;
|
|
117
|
+
const test_score_1 = require("./model/test-score");
|
|
118
|
+
exports.TestScore = test_score_1.TestScore;
|
|
117
119
|
const test_section_1 = require("./model/test-section");
|
|
118
120
|
exports.TestSection = test_section_1.TestSection;
|
|
119
121
|
const test_1 = require("./model/test");
|
|
@@ -41,6 +41,10 @@ tslib_1.__decorate([
|
|
|
41
41
|
typeorm_1.Column({ type: 'text' }),
|
|
42
42
|
tslib_1.__metadata("design:type", String)
|
|
43
43
|
], ExtracurricularActivity.prototype, "details", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
typeorm_1.Column({ type: 'boolean', default: false }),
|
|
46
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
47
|
+
], ExtracurricularActivity.prototype, "ongoing", void 0);
|
|
44
48
|
tslib_1.__decorate([
|
|
45
49
|
typeorm_1.CreateDateColumn(),
|
|
46
50
|
tslib_1.__metadata("design:type", Date)
|
|
@@ -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;
|
package/lib/model/user.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { UserToGuardian } from './user-to-guardian';
|
|
|
20
20
|
import { EventToUser } from './event-to-user';
|
|
21
21
|
import { UniversityPreference } from './university-preference';
|
|
22
22
|
import { ExtracurricularActivity } from './extracurricular-activity';
|
|
23
|
+
import { TestScore } from './test-score';
|
|
23
24
|
export declare enum USER_ROLE {
|
|
24
25
|
SUPER_ADMIN = 1,
|
|
25
26
|
ADMIN = 2,
|
|
@@ -69,6 +70,7 @@ export declare class User {
|
|
|
69
70
|
highSchoolRecord: HighSchoolRecord;
|
|
70
71
|
universityPreference: UniversityPreference;
|
|
71
72
|
extracurricularActivities: ExtracurricularActivity[];
|
|
73
|
+
testScores: TestScore[];
|
|
72
74
|
constructor(data?: any);
|
|
73
75
|
getCreatedAtString(): string;
|
|
74
76
|
}
|
package/lib/model/user.js
CHANGED
|
@@ -25,6 +25,7 @@ const user_to_guardian_1 = require("./user-to-guardian");
|
|
|
25
25
|
const event_to_user_1 = require("./event-to-user");
|
|
26
26
|
const university_preference_1 = require("./university-preference");
|
|
27
27
|
const extracurricular_activity_1 = require("./extracurricular-activity");
|
|
28
|
+
const test_score_1 = require("./test-score");
|
|
28
29
|
var USER_ROLE;
|
|
29
30
|
(function (USER_ROLE) {
|
|
30
31
|
USER_ROLE[USER_ROLE["SUPER_ADMIN"] = 1] = "SUPER_ADMIN";
|
|
@@ -198,6 +199,10 @@ tslib_1.__decorate([
|
|
|
198
199
|
typeorm_1.OneToMany(type => extracurricular_activity_1.ExtracurricularActivity, u => u.user),
|
|
199
200
|
tslib_1.__metadata("design:type", Array)
|
|
200
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);
|
|
201
206
|
User = tslib_1.__decorate([
|
|
202
207
|
typeorm_1.Entity({ name: 'users' }),
|
|
203
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;
|