@tudopz/model 2.23.5 → 2.23.8

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.8
6
+
7
+ - Add timing and cs score for `TestAttempt`
8
+
9
+ ### v2.23.7
10
+
11
+ - Add `CaseStudy` and update Test models
12
+
13
+ ### v2.23.6
14
+
15
+ - Add `PDUser` and `PDPipeline`
16
+
5
17
  ### v2.23.5
6
18
 
7
19
  - Update to `LEAD_QUALITY`
@@ -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';
@@ -24,6 +25,8 @@ import { LeadForm, LEAD_FORM_ASSIGNMENT } from './model/lead-form';
24
25
  import { LeadQueue } from './model/lead-queue';
25
26
  import { Lead, LEAD_QUALITY } from './model/lead';
26
27
  import { PartTimeAssignment } from './model/part-time-assignment';
28
+ import { PDPipeline } from './model/pd-pipeline';
29
+ import { PDUser } from './model/pd-user';
27
30
  import { Profile, GENDER, NATIONALITY, COUNTRY } from './model/profile';
28
31
  import { PupLead } from './model/pup-lead';
29
32
  import { SaleSplit } from './model/sale-split';
@@ -43,7 +46,7 @@ import { StudentTarget } from './model/student-target';
43
46
  import { TestAttempt, TEST_ATTEMPT_STATUS } from './model/test-attempt';
44
47
  import { TestCategory } from './model/test-category';
45
48
  import { TestQuestion, TEST_QUESTION_TYPE } from './model/test-question';
46
- 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';
47
50
  import { TestScore } from './model/test-score';
48
51
  import { TestSection } from './model/test-section';
49
52
  import { Test } from './model/test';
@@ -69,4 +72,4 @@ import { UNI_PREF_SIZES, UNI_PREF_SETTINGS, UNI_PREF_LOCATIONS } from './constan
69
72
  import { USER_STATUS_VALUES } from './constant/user';
70
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, };
71
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, };
72
- 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, 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;
@@ -66,6 +68,10 @@ exports.Lead = lead_1.Lead;
66
68
  exports.LEAD_QUALITY = lead_1.LEAD_QUALITY;
67
69
  const part_time_assignment_1 = require("./model/part-time-assignment");
68
70
  exports.PartTimeAssignment = part_time_assignment_1.PartTimeAssignment;
71
+ const pd_pipeline_1 = require("./model/pd-pipeline");
72
+ exports.PDPipeline = pd_pipeline_1.PDPipeline;
73
+ const pd_user_1 = require("./model/pd-user");
74
+ exports.PDUser = pd_user_1.PDUser;
69
75
  const profile_1 = require("./model/profile");
70
76
  exports.Profile = profile_1.Profile;
71
77
  exports.GENDER = profile_1.GENDER;
@@ -128,6 +134,7 @@ exports.LSATReport = test_report_1.LSATReport;
128
134
  exports.MCATReport = test_report_1.MCATReport;
129
135
  exports.ISATReport = test_report_1.ISATReport;
130
136
  exports.BMATReport = test_report_1.BMATReport;
137
+ exports.IEATReport = test_report_1.IEATReport;
131
138
  const test_score_1 = require("./model/test-score");
132
139
  exports.TestScore = test_score_1.TestScore;
133
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;
@@ -0,0 +1,7 @@
1
+ import { STUDENT_SERVICE } from './student-service';
2
+ export declare class PDPipeline {
3
+ id: number;
4
+ pdPipelineName: string;
5
+ pdPipelineId: number;
6
+ service: STUDENT_SERVICE;
7
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const typeorm_1 = require("typeorm");
5
+ const student_service_1 = require("./student-service");
6
+ let PDPipeline = class PDPipeline {
7
+ };
8
+ tslib_1.__decorate([
9
+ typeorm_1.PrimaryGeneratedColumn(),
10
+ tslib_1.__metadata("design:type", Number)
11
+ ], PDPipeline.prototype, "id", void 0);
12
+ tslib_1.__decorate([
13
+ typeorm_1.Column({ type: 'varchar', length: 100 }),
14
+ tslib_1.__metadata("design:type", String)
15
+ ], PDPipeline.prototype, "pdPipelineName", void 0);
16
+ tslib_1.__decorate([
17
+ typeorm_1.Column({ type: 'int' }),
18
+ tslib_1.__metadata("design:type", Number)
19
+ ], PDPipeline.prototype, "pdPipelineId", void 0);
20
+ tslib_1.__decorate([
21
+ typeorm_1.Column({ type: 'int' }),
22
+ tslib_1.__metadata("design:type", Number)
23
+ ], PDPipeline.prototype, "service", void 0);
24
+ PDPipeline = tslib_1.__decorate([
25
+ typeorm_1.Entity({ name: 'pd_pipelines' }),
26
+ typeorm_1.Unique('pipe_service', ['pdPipelineId', 'service'])
27
+ ], PDPipeline);
28
+ exports.PDPipeline = PDPipeline;
@@ -0,0 +1,8 @@
1
+ import { User } from './user';
2
+ export declare class PDUser {
3
+ id: number;
4
+ userId: number;
5
+ pdEmail: string;
6
+ pdId: string;
7
+ user: User;
8
+ }
@@ -0,0 +1,32 @@
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 PDUser = class PDUser {
7
+ };
8
+ tslib_1.__decorate([
9
+ typeorm_1.PrimaryGeneratedColumn(),
10
+ tslib_1.__metadata("design:type", Number)
11
+ ], PDUser.prototype, "id", void 0);
12
+ tslib_1.__decorate([
13
+ typeorm_1.Column({ type: 'int' }),
14
+ tslib_1.__metadata("design:type", Number)
15
+ ], PDUser.prototype, "userId", void 0);
16
+ tslib_1.__decorate([
17
+ typeorm_1.Column({ type: 'varchar', length: 100 }),
18
+ tslib_1.__metadata("design:type", String)
19
+ ], PDUser.prototype, "pdEmail", void 0);
20
+ tslib_1.__decorate([
21
+ typeorm_1.Column({ type: 'varchar', length: 100 }),
22
+ tslib_1.__metadata("design:type", String)
23
+ ], PDUser.prototype, "pdId", void 0);
24
+ tslib_1.__decorate([
25
+ typeorm_1.OneToOne(type => user_1.User, user => user.pdUser),
26
+ typeorm_1.JoinColumn(),
27
+ tslib_1.__metadata("design:type", user_1.User)
28
+ ], PDUser.prototype, "user", void 0);
29
+ PDUser = tslib_1.__decorate([
30
+ typeorm_1.Entity({ name: 'pd_users' })
31
+ ], PDUser);
32
+ exports.PDUser = PDUser;
@@ -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 = {}));
@@ -14,6 +14,9 @@ export declare class TestAttempt {
14
14
  creatorId: number;
15
15
  studentId: number;
16
16
  testId: number;
17
+ startTime?: Date;
18
+ endTime?: Date;
19
+ caseStudyScore?: string;
17
20
  createdAt: Date;
18
21
  updatedAt: Date;
19
22
  creator: User;
@@ -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)
@@ -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(),
@@ -21,6 +21,7 @@ import { EventToUser } from './event-to-user';
21
21
  import { UniversityPreference } from './university-preference';
22
22
  import { ExtracurricularActivity } from './extracurricular-activity';
23
23
  import { TestScore } from './test-score';
24
+ import { PDUser } from './pd-user';
24
25
  export declare enum USER_ROLE {
25
26
  SUPER_ADMIN = 1,
26
27
  ADMIN = 2,
@@ -71,6 +72,7 @@ export declare class User {
71
72
  universityPreference: UniversityPreference;
72
73
  extracurricularActivities: ExtracurricularActivity[];
73
74
  testScores: TestScore[];
75
+ pdUser: PDUser;
74
76
  constructor(data?: any);
75
77
  getCreatedAtString(): string;
76
78
  }
package/lib/model/user.js CHANGED
@@ -26,6 +26,7 @@ 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
28
  const test_score_1 = require("./test-score");
29
+ const pd_user_1 = require("./pd-user");
29
30
  var USER_ROLE;
30
31
  (function (USER_ROLE) {
31
32
  USER_ROLE[USER_ROLE["SUPER_ADMIN"] = 1] = "SUPER_ADMIN";
@@ -203,6 +204,10 @@ tslib_1.__decorate([
203
204
  typeorm_1.OneToMany(type => test_score_1.TestScore, u => u.user),
204
205
  tslib_1.__metadata("design:type", Array)
205
206
  ], User.prototype, "testScores", void 0);
207
+ tslib_1.__decorate([
208
+ typeorm_1.OneToOne(type => pd_user_1.PDUser, pdUser => pdUser.user),
209
+ tslib_1.__metadata("design:type", pd_user_1.PDUser)
210
+ ], User.prototype, "pdUser", void 0);
206
211
  User = tslib_1.__decorate([
207
212
  typeorm_1.Entity({ name: 'users' }),
208
213
  tslib_1.__metadata("design:paramtypes", [Object])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tudopz/model",
3
- "version": "2.23.5",
3
+ "version": "2.23.8",
4
4
  "description": "PZ Models",
5
5
  "author": "Tu Do <angelwing1001@gmail.com>",
6
6
  "homepage": "",