@tudopz/model 2.21.0 → 2.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/constant/university-preference.d.ts +3 -0
- package/lib/constant/university-preference.js +10 -0
- package/lib/index.d.ts +4 -2
- package/lib/index.js +6 -0
- package/lib/model/university-preference.d.ts +15 -0
- package/lib/model/university-preference.js +59 -0
- package/lib/model/user.d.ts +2 -0
- package/lib/model/user.js +5 -0
- package/package.json +1 -1
|
@@ -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
|
@@ -40,6 +40,7 @@ import { TestQuestion, TEST_QUESTION_TYPE } from './model/test-question';
|
|
|
40
40
|
import { BaseReport, Report, SATReport, ACTReport, GMATReport, UCATReport, LSATReport, MCATReport, ISATReport, BMATReport } from './model/test-report';
|
|
41
41
|
import { TestSection } from './model/test-section';
|
|
42
42
|
import { Test } from './model/test';
|
|
43
|
+
import { UniversityPreference } from './model/university-preference';
|
|
43
44
|
import { UserPreference } from './model/user-preference';
|
|
44
45
|
import { UserToGuardian, GUARDIAN_RELATIONSHIP } from './model/user-to-guardian';
|
|
45
46
|
import { User, USER_ROLE, USER_STATUS } from './model/user';
|
|
@@ -54,7 +55,8 @@ import { OFFICE_VALUES, ROOMS } from './constant/location';
|
|
|
54
55
|
import { SALE_PAYMENT_MODE_VALUES, SALE_PAYMENT_TYPE_VALUES, SALE_TYPE_VALUES, SALE_SUB_TYPE_VALUES } from './constant/sale';
|
|
55
56
|
import { EDUCATION_SYSTEM_VALUES, SCHOOL_VALUES, COURSES, COURSE_SUBJECTS, AREA_OF_STUDIES } from './constant/school';
|
|
56
57
|
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';
|
|
58
|
+
import { UNI_PREF_SIZES, UNI_PREF_SETTINGS, UNI_PREF_LOCATIONS } from './constant/university-preference';
|
|
57
59
|
import { USER_STATUS_VALUES } from './constant/user';
|
|
58
60
|
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, };
|
|
61
|
+
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, };
|
|
62
|
+
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, UniversityPreference, UserPreference, UserToGuardian, User, ZoomInfo, };
|
package/lib/index.js
CHANGED
|
@@ -115,6 +115,8 @@ const test_section_1 = require("./model/test-section");
|
|
|
115
115
|
exports.TestSection = test_section_1.TestSection;
|
|
116
116
|
const test_1 = require("./model/test");
|
|
117
117
|
exports.Test = test_1.Test;
|
|
118
|
+
const university_preference_1 = require("./model/university-preference");
|
|
119
|
+
exports.UniversityPreference = university_preference_1.UniversityPreference;
|
|
118
120
|
const user_preference_1 = require("./model/user-preference");
|
|
119
121
|
exports.UserPreference = user_preference_1.UserPreference;
|
|
120
122
|
const user_to_guardian_1 = require("./model/user-to-guardian");
|
|
@@ -169,5 +171,9 @@ exports.TEST_PREP_TARGETS = student_service_2.TEST_PREP_TARGETS;
|
|
|
169
171
|
exports.ADMISSIONS_TARGETS = student_service_2.ADMISSIONS_TARGETS;
|
|
170
172
|
exports.UNDERGRAD_ALL_SERVICES = student_service_2.UNDERGRAD_ALL_SERVICES;
|
|
171
173
|
exports.POSTGRAD_ALL_SERVICES = student_service_2.POSTGRAD_ALL_SERVICES;
|
|
174
|
+
const university_preference_2 = require("./constant/university-preference");
|
|
175
|
+
exports.UNI_PREF_SIZES = university_preference_2.UNI_PREF_SIZES;
|
|
176
|
+
exports.UNI_PREF_SETTINGS = university_preference_2.UNI_PREF_SETTINGS;
|
|
177
|
+
exports.UNI_PREF_LOCATIONS = university_preference_2.UNI_PREF_LOCATIONS;
|
|
172
178
|
const user_2 = require("./constant/user");
|
|
173
179
|
exports.USER_STATUS_VALUES = user_2.USER_STATUS_VALUES;
|
|
@@ -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,59 @@
|
|
|
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.ManyToOne(type => user_1.User, user => user.universityPreference),
|
|
54
|
+
tslib_1.__metadata("design:type", user_1.User)
|
|
55
|
+
], UniversityPreference.prototype, "user", void 0);
|
|
56
|
+
UniversityPreference = tslib_1.__decorate([
|
|
57
|
+
typeorm_1.Entity({ name: 'university_preferences' })
|
|
58
|
+
], UniversityPreference);
|
|
59
|
+
exports.UniversityPreference = UniversityPreference;
|
package/lib/model/user.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ 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';
|
|
21
22
|
export declare enum USER_ROLE {
|
|
22
23
|
SUPER_ADMIN = 1,
|
|
23
24
|
ADMIN = 2,
|
|
@@ -65,6 +66,7 @@ export declare class User {
|
|
|
65
66
|
userPreferences: UserPreference[];
|
|
66
67
|
partTimeAssignments: PartTimeAssignment[];
|
|
67
68
|
highSchoolRecord: HighSchoolRecord;
|
|
69
|
+
universityPreference: UniversityPreference;
|
|
68
70
|
constructor(data?: any);
|
|
69
71
|
getCreatedAtString(): string;
|
|
70
72
|
}
|
package/lib/model/user.js
CHANGED
|
@@ -23,6 +23,7 @@ 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");
|
|
26
27
|
var USER_ROLE;
|
|
27
28
|
(function (USER_ROLE) {
|
|
28
29
|
USER_ROLE[USER_ROLE["SUPER_ADMIN"] = 1] = "SUPER_ADMIN";
|
|
@@ -188,6 +189,10 @@ tslib_1.__decorate([
|
|
|
188
189
|
typeorm_1.OneToOne(type => high_school_record_1.HighSchoolRecord, h => h.user),
|
|
189
190
|
tslib_1.__metadata("design:type", high_school_record_1.HighSchoolRecord)
|
|
190
191
|
], User.prototype, "highSchoolRecord", void 0);
|
|
192
|
+
tslib_1.__decorate([
|
|
193
|
+
typeorm_1.OneToOne(type => university_preference_1.UniversityPreference, u => u.user),
|
|
194
|
+
tslib_1.__metadata("design:type", university_preference_1.UniversityPreference)
|
|
195
|
+
], User.prototype, "universityPreference", void 0);
|
|
191
196
|
User = tslib_1.__decorate([
|
|
192
197
|
typeorm_1.Entity({ name: 'users' }),
|
|
193
198
|
tslib_1.__metadata("design:paramtypes", [Object])
|