@tudopz/model 2.21.2 → 2.21.3

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,10 @@
2
2
 
3
3
  ## Changelogs
4
4
 
5
+ ### v2.21.3
6
+
7
+ - Add `TestScore`
8
+
5
9
  ### v2.21.2
6
10
 
7
11
  - Add `ExtracurricularActivity`
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");
@@ -0,0 +1,12 @@
1
+ import { User } from './user';
2
+ export declare class TestScore {
3
+ id: number;
4
+ studentServiceId: number;
5
+ isOfficial: boolean;
6
+ date: Date;
7
+ scores: string;
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ userId: number;
11
+ user: User;
12
+ }
@@ -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;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tudopz/model",
3
- "version": "2.21.2",
3
+ "version": "2.21.3",
4
4
  "description": "PZ Models",
5
5
  "author": "Tu Do <angelwing1001@gmail.com>",
6
6
  "homepage": "",