@tudopz/model 2.23.6 → 2.23.9

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 CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## Changelogs
4
4
 
5
+ ### v2.23.9
6
+
7
+ - Add `MARKING` to `TEST_ATTEMPT_STATUS`
8
+
9
+ ### v2.23.8
10
+
11
+ - Add timing and cs score for `TestAttempt`
12
+
13
+ ### v2.23.7
14
+
15
+ - Add `CaseStudy` and update Test models
16
+
5
17
  ### v2.23.6
6
18
 
7
19
  - Add `PDUser` and `PDPipeline`
@@ -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';
@@ -45,7 +46,7 @@ import { StudentTarget } from './model/student-target';
45
46
  import { TestAttempt, TEST_ATTEMPT_STATUS } from './model/test-attempt';
46
47
  import { TestCategory } from './model/test-category';
47
48
  import { TestQuestion, TEST_QUESTION_TYPE } from './model/test-question';
48
- import { BaseReport, Report, SATReport, ACTReport, GMATReport, UCATReport, LSATReport, MCATReport, ISATReport, BMATReport } from './model/test-report';
49
+ import { BaseReport, Report, SATReport, ACTReport, GMATReport, UCATReport, LSATReport, MCATReport, ISATReport, BMATReport, IEATReport } from './model/test-report';
49
50
  import { TestScore } from './model/test-score';
50
51
  import { TestSection } from './model/test-section';
51
52
  import { Test } from './model/test';
@@ -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, IEATReport, 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;
@@ -132,6 +134,7 @@ exports.LSATReport = test_report_1.LSATReport;
132
134
  exports.MCATReport = test_report_1.MCATReport;
133
135
  exports.ISATReport = test_report_1.ISATReport;
134
136
  exports.BMATReport = test_report_1.BMATReport;
137
+ exports.IEATReport = test_report_1.IEATReport;
135
138
  const test_score_1 = require("./model/test-score");
136
139
  exports.TestScore = test_score_1.TestScore;
137
140
  const test_section_1 = require("./model/test-section");
@@ -0,0 +1,7 @@
1
+ import { TestQuestion } from './test-question';
2
+ export declare class CaseStudy {
3
+ id: number;
4
+ name: string;
5
+ content: string;
6
+ testQuestions: TestQuestion[];
7
+ }
@@ -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: 'varchar', length: 128 }),
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([
@@ -55,5 +55,6 @@ export declare enum STUDENT_SERVICE {
55
55
  NO_SERVICE = 37,
56
56
  PRE_MED = 38,
57
57
  MYP = 39,
58
- IB_SPECIALISED = 40
58
+ IB_SPECIALISED = 40,
59
+ INSEAD_EMBA_ADMISSIONS = 41
59
60
  }
@@ -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 = {}));
@@ -4,7 +4,8 @@ import { User } from './user';
4
4
  export declare enum TEST_ATTEMPT_STATUS {
5
5
  CREATED = 1,
6
6
  IN_PROGRESS = 2,
7
- FINISHED = 3
7
+ FINISHED = 3,
8
+ MARKING = 4
8
9
  }
9
10
  export declare class TestAttempt {
10
11
  id: number;
@@ -14,6 +15,9 @@ export declare class TestAttempt {
14
15
  creatorId: number;
15
16
  studentId: number;
16
17
  testId: number;
18
+ startTime?: Date;
19
+ endTime?: Date;
20
+ caseStudyScore?: string;
17
21
  createdAt: Date;
18
22
  updatedAt: Date;
19
23
  creator: User;
@@ -10,6 +10,7 @@ var TEST_ATTEMPT_STATUS;
10
10
  TEST_ATTEMPT_STATUS[TEST_ATTEMPT_STATUS["CREATED"] = 1] = "CREATED";
11
11
  TEST_ATTEMPT_STATUS[TEST_ATTEMPT_STATUS["IN_PROGRESS"] = 2] = "IN_PROGRESS";
12
12
  TEST_ATTEMPT_STATUS[TEST_ATTEMPT_STATUS["FINISHED"] = 3] = "FINISHED";
13
+ TEST_ATTEMPT_STATUS[TEST_ATTEMPT_STATUS["MARKING"] = 4] = "MARKING";
13
14
  })(TEST_ATTEMPT_STATUS = exports.TEST_ATTEMPT_STATUS || (exports.TEST_ATTEMPT_STATUS = {}));
14
15
  let TestAttempt = class TestAttempt {
15
16
  };
@@ -41,6 +42,18 @@ tslib_1.__decorate([
41
42
  typeorm_1.Column({ type: 'int' }),
42
43
  tslib_1.__metadata("design:type", Number)
43
44
  ], TestAttempt.prototype, "testId", void 0);
45
+ tslib_1.__decorate([
46
+ typeorm_1.Column({ type: 'datetime', nullable: true }),
47
+ tslib_1.__metadata("design:type", Date)
48
+ ], TestAttempt.prototype, "startTime", void 0);
49
+ tslib_1.__decorate([
50
+ typeorm_1.Column({ type: 'datetime', nullable: true }),
51
+ tslib_1.__metadata("design:type", Date)
52
+ ], TestAttempt.prototype, "endTime", void 0);
53
+ tslib_1.__decorate([
54
+ typeorm_1.Column({ type: 'text', nullable: true }),
55
+ tslib_1.__metadata("design:type", String)
56
+ ], TestAttempt.prototype, "caseStudyScore", void 0);
44
57
  tslib_1.__decorate([
45
58
  typeorm_1.CreateDateColumn(),
46
59
  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)
@@ -5,7 +5,7 @@ export declare class BaseReport {
5
5
  test: Test;
6
6
  testAttempt: TestAttempt;
7
7
  student: User;
8
- type: 'sat' | 'act' | 'gmat' | 'ucat' | 'lsat' | 'mcat' | 'isat' | 'bmat';
8
+ type: 'sat' | 'act' | 'gmat' | 'ucat' | 'lsat' | 'mcat' | 'isat' | 'bmat' | 'insead-emba-admissions';
9
9
  totalScore: number;
10
10
  }
11
11
  export declare class SATReport extends BaseReport {
@@ -100,9 +100,15 @@ export declare class BMATReport extends BaseReport {
100
100
  scienceRawScore: number;
101
101
  scienceScore: number;
102
102
  }
103
+ export declare class IEATReport extends BaseReport {
104
+ type: 'insead-emba-admissions';
105
+ quantScore: number;
106
+ verbalScore: number;
107
+ csScore: 'Challenged' | 'Adequate' | 'Superior';
108
+ }
103
109
  export declare class DimensionScore {
104
110
  code: string;
105
111
  raw: number;
106
112
  total: number;
107
113
  }
108
- export declare type Report = SATReport | ACTReport | GMATReport | UCATReport | LSATReport | MCATReport | ISATReport | BMATReport;
114
+ export declare type Report = SATReport | ACTReport | GMATReport | UCATReport | LSATReport | MCATReport | ISATReport | BMATReport | IEATReport;
@@ -27,6 +27,9 @@ exports.ISATReport = ISATReport;
27
27
  class BMATReport extends BaseReport {
28
28
  }
29
29
  exports.BMATReport = BMATReport;
30
+ class IEATReport extends BaseReport {
31
+ }
32
+ exports.IEATReport = IEATReport;
30
33
  class DimensionScore {
31
34
  }
32
35
  exports.DimensionScore = DimensionScore;
@@ -5,6 +5,7 @@ export declare class TestSection {
5
5
  name: string;
6
6
  order: number;
7
7
  testId: number;
8
+ duration?: number;
8
9
  test: Test;
9
10
  testQuestions: TestQuestion[];
10
11
  }
@@ -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(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tudopz/model",
3
- "version": "2.23.6",
3
+ "version": "2.23.9",
4
4
  "description": "PZ Models",
5
5
  "author": "Tu Do <angelwing1001@gmail.com>",
6
6
  "homepage": "",