@tudopz/model 2.23.6 → 2.23.7
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 +4 -0
- package/lib/constant/student-service.js +2 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -0
- package/lib/model/case-study.d.ts +7 -0
- package/lib/model/case-study.js +27 -0
- package/lib/model/student-answer.js +1 -1
- package/lib/model/student-service.d.ts +2 -1
- package/lib/model/student-service.js +1 -0
- package/lib/model/test-attempt.d.ts +3 -0
- package/lib/model/test-attempt.js +12 -0
- package/lib/model/test-question.d.ts +7 -1
- package/lib/model/test-question.js +19 -0
- package/lib/model/test-section.d.ts +1 -0
- package/lib/model/test-section.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,6 +42,7 @@ exports.STUDENT_SERVICE_VALUES = [
|
|
|
42
42
|
'Pre-Med',
|
|
43
43
|
'MYP',
|
|
44
44
|
'IB (Specialised)',
|
|
45
|
+
'INSEAD EMBA Admissions',
|
|
45
46
|
];
|
|
46
47
|
exports.UNDERGRAD_TEST_SERVICES = [
|
|
47
48
|
student_service_1.STUDENT_SERVICE.SAT,
|
|
@@ -70,6 +71,7 @@ exports.POSTGRAD_TEST_SERVICES = [
|
|
|
70
71
|
student_service_1.STUDENT_SERVICE.IEAT,
|
|
71
72
|
student_service_1.STUDENT_SERVICE.LSAT,
|
|
72
73
|
student_service_1.STUDENT_SERVICE.GAT,
|
|
74
|
+
student_service_1.STUDENT_SERVICE.INSEAD_EMBA_ADMISSIONS,
|
|
73
75
|
];
|
|
74
76
|
exports.POSTGRAD_ADMISSIONS_SERVICES = [student_service_1.STUDENT_SERVICE.ADMIT];
|
|
75
77
|
exports.SCHOOL_CURRICULUM_SERVICES = [
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AccessToken } from './model/access-token';
|
|
2
2
|
import { AnswerKey } from './model/answer-key';
|
|
3
|
+
import { CaseStudy } from './model/case-study';
|
|
3
4
|
import { ConversionTable, CONVERSION_TABLE_TYPE } from './model/conversion-table';
|
|
4
5
|
import { CourseTemplateEvent } from './model/course-template-event';
|
|
5
6
|
import { CourseTemplate } from './model/course-template';
|
|
@@ -71,4 +72,4 @@ import { UNI_PREF_SIZES, UNI_PREF_SETTINGS, UNI_PREF_LOCATIONS } from './constan
|
|
|
71
72
|
import { USER_STATUS_VALUES } from './constant/user';
|
|
72
73
|
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, LEAD_FORM_FIELD_VALIDATION, LEAD_FORM_FIELD_TYPE, LEAD_FORM_ASSIGNMENT, LEAD_QUALITY, };
|
|
73
74
|
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, ALL_ADMISSIONS_SERVICES, ALL_TEST_PREPS_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, LEAD_FORM_FIELD_VALIDATION_VALUES, LEAD_FORM_FIELD_TYPE_VALUES, LEAD_FORM_ASSIGNMENT_VALUES, LEAD_QUALITY_VALUES, };
|
|
74
|
-
export { AccessToken, AnswerKey, ConversionTable, CourseTemplateEvent, CourseTemplate, Dimension, EducationSystem, EventLog, EventToUser, Event, ExtracurricularActivity, FileAccess, FileCategory, File, Guardian, HighSchoolRecord, JourneyStage, JourneyToStudent, Journey, LeadAssignment, LeadFormField, LeadForm, LeadQueue, Lead, Log, PartTimeAssignment, PDPipeline, PDUser, Profile, PupLead, 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, };
|
|
75
|
+
export { AccessToken, AnswerKey, CaseStudy, ConversionTable, CourseTemplateEvent, CourseTemplate, Dimension, EducationSystem, EventLog, EventToUser, Event, ExtracurricularActivity, FileAccess, FileCategory, File, Guardian, HighSchoolRecord, JourneyStage, JourneyToStudent, Journey, LeadAssignment, LeadFormField, LeadForm, LeadQueue, Lead, Log, PartTimeAssignment, PDPipeline, PDUser, Profile, PupLead, 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
|
@@ -4,6 +4,8 @@ const access_token_1 = require("./model/access-token");
|
|
|
4
4
|
exports.AccessToken = access_token_1.AccessToken;
|
|
5
5
|
const answer_key_1 = require("./model/answer-key");
|
|
6
6
|
exports.AnswerKey = answer_key_1.AnswerKey;
|
|
7
|
+
const case_study_1 = require("./model/case-study");
|
|
8
|
+
exports.CaseStudy = case_study_1.CaseStudy;
|
|
7
9
|
const conversion_table_1 = require("./model/conversion-table");
|
|
8
10
|
exports.ConversionTable = conversion_table_1.ConversionTable;
|
|
9
11
|
exports.CONVERSION_TABLE_TYPE = conversion_table_1.CONVERSION_TABLE_TYPE;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const typeorm_1 = require("typeorm");
|
|
5
|
+
const test_question_1 = require("./test-question");
|
|
6
|
+
let CaseStudy = class CaseStudy {
|
|
7
|
+
};
|
|
8
|
+
tslib_1.__decorate([
|
|
9
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
10
|
+
tslib_1.__metadata("design:type", Number)
|
|
11
|
+
], CaseStudy.prototype, "id", void 0);
|
|
12
|
+
tslib_1.__decorate([
|
|
13
|
+
typeorm_1.Column({ type: 'varchar', length: 128 }),
|
|
14
|
+
tslib_1.__metadata("design:type", String)
|
|
15
|
+
], CaseStudy.prototype, "name", void 0);
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
typeorm_1.Column({ type: 'text' }),
|
|
18
|
+
tslib_1.__metadata("design:type", String)
|
|
19
|
+
], CaseStudy.prototype, "content", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
typeorm_1.OneToMany(type => test_question_1.TestQuestion, testQuestion => testQuestion.caseStudy),
|
|
22
|
+
tslib_1.__metadata("design:type", Array)
|
|
23
|
+
], CaseStudy.prototype, "testQuestions", void 0);
|
|
24
|
+
CaseStudy = tslib_1.__decorate([
|
|
25
|
+
typeorm_1.Entity({ name: 'case_studies' })
|
|
26
|
+
], CaseStudy);
|
|
27
|
+
exports.CaseStudy = CaseStudy;
|
|
@@ -11,7 +11,7 @@ tslib_1.__decorate([
|
|
|
11
11
|
tslib_1.__metadata("design:type", Number)
|
|
12
12
|
], StudentAnswer.prototype, "id", void 0);
|
|
13
13
|
tslib_1.__decorate([
|
|
14
|
-
typeorm_1.Column({ type: '
|
|
14
|
+
typeorm_1.Column({ type: 'text' }),
|
|
15
15
|
tslib_1.__metadata("design:type", String)
|
|
16
16
|
], StudentAnswer.prototype, "answer", void 0);
|
|
17
17
|
tslib_1.__decorate([
|
|
@@ -101,4 +101,5 @@ var STUDENT_SERVICE;
|
|
|
101
101
|
STUDENT_SERVICE[STUDENT_SERVICE["PRE_MED"] = 38] = "PRE_MED";
|
|
102
102
|
STUDENT_SERVICE[STUDENT_SERVICE["MYP"] = 39] = "MYP";
|
|
103
103
|
STUDENT_SERVICE[STUDENT_SERVICE["IB_SPECIALISED"] = 40] = "IB_SPECIALISED";
|
|
104
|
+
STUDENT_SERVICE[STUDENT_SERVICE["INSEAD_EMBA_ADMISSIONS"] = 41] = "INSEAD_EMBA_ADMISSIONS";
|
|
104
105
|
})(STUDENT_SERVICE = exports.STUDENT_SERVICE || (exports.STUDENT_SERVICE = {}));
|
|
@@ -41,6 +41,18 @@ tslib_1.__decorate([
|
|
|
41
41
|
typeorm_1.Column({ type: 'int' }),
|
|
42
42
|
tslib_1.__metadata("design:type", Number)
|
|
43
43
|
], TestAttempt.prototype, "testId", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
typeorm_1.Column({ type: 'datetime', nullable: true }),
|
|
46
|
+
tslib_1.__metadata("design:type", Date)
|
|
47
|
+
], TestAttempt.prototype, "startTime", void 0);
|
|
48
|
+
tslib_1.__decorate([
|
|
49
|
+
typeorm_1.Column({ type: 'datetime', nullable: true }),
|
|
50
|
+
tslib_1.__metadata("design:type", Date)
|
|
51
|
+
], TestAttempt.prototype, "endTime", void 0);
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
typeorm_1.Column({ type: 'text', nullable: true }),
|
|
54
|
+
tslib_1.__metadata("design:type", String)
|
|
55
|
+
], TestAttempt.prototype, "caseStudyScore", void 0);
|
|
44
56
|
tslib_1.__decorate([
|
|
45
57
|
typeorm_1.CreateDateColumn(),
|
|
46
58
|
tslib_1.__metadata("design:type", Date)
|
|
@@ -2,19 +2,25 @@ import { AnswerKey } from './answer-key';
|
|
|
2
2
|
import { Dimension } from './dimension';
|
|
3
3
|
import { StudentAnswer } from './student-answer';
|
|
4
4
|
import { TestSection } from './test-section';
|
|
5
|
+
import { CaseStudy } from './case-study';
|
|
5
6
|
export declare enum TEST_QUESTION_TYPE {
|
|
6
7
|
MCQ = 1,
|
|
7
8
|
NUMBER = 2,
|
|
8
9
|
ESSAY = 3,
|
|
9
10
|
YES_NO = 4,
|
|
10
|
-
RANKING = 5
|
|
11
|
+
RANKING = 5,
|
|
12
|
+
CASE_STUDY = 6
|
|
11
13
|
}
|
|
12
14
|
export declare class TestQuestion {
|
|
13
15
|
id: number;
|
|
14
16
|
type: TEST_QUESTION_TYPE;
|
|
15
17
|
order: number;
|
|
16
18
|
testSectionId: number;
|
|
19
|
+
questionContent?: string;
|
|
20
|
+
answerContent?: string;
|
|
21
|
+
caseStudyId?: number;
|
|
17
22
|
testSection: TestSection;
|
|
23
|
+
caseStudy?: CaseStudy;
|
|
18
24
|
answerKeys: AnswerKey[];
|
|
19
25
|
studentAnswers: StudentAnswer[];
|
|
20
26
|
dimensions: Dimension[];
|
|
@@ -6,6 +6,7 @@ const answer_key_1 = require("./answer-key");
|
|
|
6
6
|
const dimension_1 = require("./dimension");
|
|
7
7
|
const student_answer_1 = require("./student-answer");
|
|
8
8
|
const test_section_1 = require("./test-section");
|
|
9
|
+
const case_study_1 = require("./case-study");
|
|
9
10
|
var TEST_QUESTION_TYPE;
|
|
10
11
|
(function (TEST_QUESTION_TYPE) {
|
|
11
12
|
TEST_QUESTION_TYPE[TEST_QUESTION_TYPE["MCQ"] = 1] = "MCQ";
|
|
@@ -13,6 +14,7 @@ var TEST_QUESTION_TYPE;
|
|
|
13
14
|
TEST_QUESTION_TYPE[TEST_QUESTION_TYPE["ESSAY"] = 3] = "ESSAY";
|
|
14
15
|
TEST_QUESTION_TYPE[TEST_QUESTION_TYPE["YES_NO"] = 4] = "YES_NO";
|
|
15
16
|
TEST_QUESTION_TYPE[TEST_QUESTION_TYPE["RANKING"] = 5] = "RANKING";
|
|
17
|
+
TEST_QUESTION_TYPE[TEST_QUESTION_TYPE["CASE_STUDY"] = 6] = "CASE_STUDY";
|
|
16
18
|
})(TEST_QUESTION_TYPE = exports.TEST_QUESTION_TYPE || (exports.TEST_QUESTION_TYPE = {}));
|
|
17
19
|
let TestQuestion = class TestQuestion {
|
|
18
20
|
};
|
|
@@ -32,11 +34,28 @@ tslib_1.__decorate([
|
|
|
32
34
|
typeorm_1.Column({ type: 'int' }),
|
|
33
35
|
tslib_1.__metadata("design:type", Number)
|
|
34
36
|
], TestQuestion.prototype, "testSectionId", void 0);
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
typeorm_1.Column({ type: 'text', nullable: true }),
|
|
39
|
+
tslib_1.__metadata("design:type", String)
|
|
40
|
+
], TestQuestion.prototype, "questionContent", void 0);
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
typeorm_1.Column({ type: 'text', nullable: true }),
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
44
|
+
], TestQuestion.prototype, "answerContent", void 0);
|
|
45
|
+
tslib_1.__decorate([
|
|
46
|
+
typeorm_1.Column({ type: 'int', nullable: true }),
|
|
47
|
+
tslib_1.__metadata("design:type", Number)
|
|
48
|
+
], TestQuestion.prototype, "caseStudyId", void 0);
|
|
35
49
|
tslib_1.__decorate([
|
|
36
50
|
typeorm_1.ManyToOne(type => test_section_1.TestSection, testSection => testSection.testQuestions),
|
|
37
51
|
typeorm_1.JoinColumn(),
|
|
38
52
|
tslib_1.__metadata("design:type", test_section_1.TestSection)
|
|
39
53
|
], TestQuestion.prototype, "testSection", void 0);
|
|
54
|
+
tslib_1.__decorate([
|
|
55
|
+
typeorm_1.ManyToOne(type => case_study_1.CaseStudy, caseStudy => caseStudy.testQuestions),
|
|
56
|
+
typeorm_1.JoinColumn(),
|
|
57
|
+
tslib_1.__metadata("design:type", case_study_1.CaseStudy)
|
|
58
|
+
], TestQuestion.prototype, "caseStudy", void 0);
|
|
40
59
|
tslib_1.__decorate([
|
|
41
60
|
typeorm_1.OneToMany(type => answer_key_1.AnswerKey, answerKey => answerKey.testQuestion),
|
|
42
61
|
tslib_1.__metadata("design:type", Array)
|
|
@@ -22,6 +22,10 @@ tslib_1.__decorate([
|
|
|
22
22
|
typeorm_1.Column({ type: 'int' }),
|
|
23
23
|
tslib_1.__metadata("design:type", Number)
|
|
24
24
|
], TestSection.prototype, "testId", void 0);
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
typeorm_1.Column({ type: 'int', nullable: true }),
|
|
27
|
+
tslib_1.__metadata("design:type", Number)
|
|
28
|
+
], TestSection.prototype, "duration", void 0);
|
|
25
29
|
tslib_1.__decorate([
|
|
26
30
|
typeorm_1.ManyToOne(type => test_1.Test, test => test.testSections),
|
|
27
31
|
typeorm_1.JoinColumn(),
|