@taiger-common/model 1.0.56 → 1.0.58
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/LICENSE +21 -21
- package/README.md +23 -23
- package/dist/cjs/index.js +0 -2
- package/dist/cjs/model/Documentthread.js +4 -2
- package/dist/cjs/model/Program.js +83 -331
- package/dist/cjs/model/User.js +139 -78
- package/dist/cjs/model/index.js +1 -1
- package/dist/esm/index.js +0 -2
- package/dist/esm/model/Documentthread.js +4 -2
- package/dist/esm/model/Program.js +78 -326
- package/dist/esm/model/User.js +124 -62
- package/dist/esm/model/index.js +1 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/model/Allcourse.d.ts +27 -6
- package/dist/types/model/Audit.d.ts +43 -18
- package/dist/types/model/Basedocumentationslink.d.ts +16 -11
- package/dist/types/model/Communication.d.ts +71 -22
- package/dist/types/model/Complaint.d.ts +170 -25
- package/dist/types/model/Course.d.ts +49 -23
- package/dist/types/model/Docspage.d.ts +37 -14
- package/dist/types/model/Documentation.d.ts +28 -15
- package/dist/types/model/Documentthread.d.ts +178 -35
- package/dist/types/model/Event.d.ts +54 -15
- package/dist/types/model/Internaldoc.d.ts +28 -15
- package/dist/types/model/Interval.d.ts +26 -13
- package/dist/types/model/Interview.d.ts +50 -23
- package/dist/types/model/InterviewSurveyResponse.d.ts +62 -20
- package/dist/types/model/Keywordset.d.ts +44 -14
- package/dist/types/model/Note.d.ts +13 -11
- package/dist/types/model/Permission.d.ts +56 -21
- package/dist/types/model/Program.d.ts +232 -387
- package/dist/types/model/Programrequirement.d.ts +140 -37
- package/dist/types/model/ResponseTime.d.ts +17 -12
- package/dist/types/model/SurveyInput.d.ts +90 -23
- package/dist/types/model/Template.d.ts +13 -8
- package/dist/types/model/Tenant.d.ts +13 -10
- package/dist/types/model/Ticket.d.ts +38 -16
- package/dist/types/model/Token.d.ts +12 -10
- package/dist/types/model/User.d.ts +1 -2148
- package/dist/types/model/index.d.ts +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/account.js +0 -35
- package/dist/cjs/api/applications.js +0 -46
- package/dist/cjs/api/audit.js +0 -8
- package/dist/cjs/api/auth.js +0 -19
- package/dist/cjs/api/common.js +0 -32
- package/dist/cjs/api/communications.js +0 -15
- package/dist/cjs/api/courses.js +0 -23
- package/dist/cjs/api/crm.js +0 -87
- package/dist/cjs/api/documentThreads.js +0 -44
- package/dist/cjs/api/documentations.js +0 -33
- package/dist/cjs/api/events.js +0 -22
- package/dist/cjs/api/index.js +0 -41
- package/dist/cjs/api/interviews.js +0 -35
- package/dist/cjs/api/meetings.js +0 -20
- package/dist/cjs/api/notes.js +0 -8
- package/dist/cjs/api/permissions.js +0 -9
- package/dist/cjs/api/portals.js +0 -24
- package/dist/cjs/api/programRequirements.js +0 -26
- package/dist/cjs/api/programs.js +0 -93
- package/dist/cjs/api/search.js +0 -24
- package/dist/cjs/api/serialized.js +0 -50
- package/dist/cjs/api/students.js +0 -29
- package/dist/cjs/api/teams.js +0 -48
- package/dist/cjs/api/tickets.js +0 -21
- package/dist/cjs/api/users.js +0 -42
- package/dist/cjs/api/widgets.js +0 -21
- package/dist/cjs/constants/users.js +0 -12
- package/dist/cjs/model/Application.js +0 -78
- package/dist/cjs/schema/index.js +0 -22
- package/dist/cjs/schema/models.js +0 -523
- package/dist/cjs/schema/serialized.js +0 -202
- package/dist/esm/api/account.js +0 -32
- package/dist/esm/api/applications.js +0 -43
- package/dist/esm/api/audit.js +0 -5
- package/dist/esm/api/auth.js +0 -16
- package/dist/esm/api/common.js +0 -27
- package/dist/esm/api/communications.js +0 -12
- package/dist/esm/api/courses.js +0 -20
- package/dist/esm/api/crm.js +0 -84
- package/dist/esm/api/documentThreads.js +0 -41
- package/dist/esm/api/documentations.js +0 -30
- package/dist/esm/api/events.js +0 -19
- package/dist/esm/api/index.js +0 -25
- package/dist/esm/api/interviews.js +0 -32
- package/dist/esm/api/meetings.js +0 -17
- package/dist/esm/api/notes.js +0 -5
- package/dist/esm/api/permissions.js +0 -6
- package/dist/esm/api/portals.js +0 -21
- package/dist/esm/api/programRequirements.js +0 -23
- package/dist/esm/api/programs.js +0 -90
- package/dist/esm/api/search.js +0 -21
- package/dist/esm/api/serialized.js +0 -13
- package/dist/esm/api/students.js +0 -26
- package/dist/esm/api/teams.js +0 -45
- package/dist/esm/api/tickets.js +0 -18
- package/dist/esm/api/users.js +0 -39
- package/dist/esm/api/widgets.js +0 -18
- package/dist/esm/constants/users.js +0 -9
- package/dist/esm/model/Application.js +0 -75
- package/dist/esm/schema/index.js +0 -6
- package/dist/esm/schema/models.js +0 -520
- package/dist/esm/schema/serialized.js +0 -199
- package/dist/types/api/account.d.ts +0 -503
- package/dist/types/api/applications.d.ts +0 -3417
- package/dist/types/api/audit.d.ts +0 -89
- package/dist/types/api/auth.d.ts +0 -3411
- package/dist/types/api/common.d.ts +0 -90
- package/dist/types/api/communications.d.ts +0 -617
- package/dist/types/api/courses.d.ts +0 -849
- package/dist/types/api/crm.d.ts +0 -1113
- package/dist/types/api/documentThreads.d.ts +0 -38257
- package/dist/types/api/documentations.d.ts +0 -933
- package/dist/types/api/events.d.ts +0 -7209
- package/dist/types/api/index.d.ts +0 -25
- package/dist/types/api/interviews.d.ts +0 -802
- package/dist/types/api/meetings.d.ts +0 -49
- package/dist/types/api/notes.d.ts +0 -85
- package/dist/types/api/permissions.d.ts +0 -195
- package/dist/types/api/portals.d.ts +0 -770
- package/dist/types/api/programRequirements.d.ts +0 -2685
- package/dist/types/api/programs.d.ts +0 -3046
- package/dist/types/api/search.d.ts +0 -292
- package/dist/types/api/serialized.d.ts +0 -7
- package/dist/types/api/students.d.ts +0 -307
- package/dist/types/api/teams.d.ts +0 -3671
- package/dist/types/api/tickets.d.ts +0 -960
- package/dist/types/api/users.d.ts +0 -6960
- package/dist/types/api/widgets.d.ts +0 -234
- package/dist/types/constants/users.d.ts +0 -9
- package/dist/types/model/Application.d.ts +0 -85
- package/dist/types/schema/index.d.ts +0 -6
- package/dist/types/schema/models.d.ts +0 -2038
- package/dist/types/schema/serialized.d.ts +0 -8823
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 LIYUNG
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 LIYUNG
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
npm publish package commands:
|
|
2
|
-
|
|
3
|
-
# Cleanup
|
|
4
|
-
npm run clean
|
|
5
|
-
|
|
6
|
-
# Stage, commit, and push changes
|
|
7
|
-
git add .
|
|
8
|
-
git commit -m "fix: your_commit"
|
|
9
|
-
git push origin main
|
|
10
|
-
|
|
11
|
-
# Run build
|
|
12
|
-
npm run build
|
|
13
|
-
|
|
14
|
-
# Bump version
|
|
15
|
-
npm version patch # or minor/major
|
|
16
|
-
|
|
17
|
-
# Push tags
|
|
18
|
-
git push origin main --tags
|
|
19
|
-
|
|
20
|
-
# Publish to npm
|
|
21
|
-
npm publish
|
|
22
|
-
|
|
23
|
-
# Concat command for powershell (please modify the commit message)
|
|
1
|
+
npm publish package commands:
|
|
2
|
+
|
|
3
|
+
# Cleanup
|
|
4
|
+
npm run clean
|
|
5
|
+
|
|
6
|
+
# Stage, commit, and push changes
|
|
7
|
+
git add .
|
|
8
|
+
git commit -m "fix: your_commit"
|
|
9
|
+
git push origin main
|
|
10
|
+
|
|
11
|
+
# Run build
|
|
12
|
+
npm run build
|
|
13
|
+
|
|
14
|
+
# Bump version
|
|
15
|
+
npm version patch # or minor/major
|
|
16
|
+
|
|
17
|
+
# Push tags
|
|
18
|
+
git push origin main --tags
|
|
19
|
+
|
|
20
|
+
# Publish to npm
|
|
21
|
+
npm publish
|
|
22
|
+
|
|
23
|
+
# Concat command for powershell (please modify the commit message)
|
|
24
24
|
git add .; git commit -m "fix: update model"; git push origin main; npm run build; npm version patch; git push origin main --tags; npm publish
|
package/dist/cjs/index.js
CHANGED
|
@@ -15,5 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./model"), exports);
|
|
18
|
-
__exportStar(require("./api"), exports);
|
|
19
|
-
__exportStar(require("./schema"), exports);
|
|
@@ -5,7 +5,6 @@ var mongoose_1 = require("mongoose");
|
|
|
5
5
|
exports.documentThreadsSchema = new mongoose_1.Schema({
|
|
6
6
|
student_id: { type: mongoose_1.Schema.Types.ObjectId, require: true, ref: 'User' },
|
|
7
7
|
program_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Program' },
|
|
8
|
-
application_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Application' },
|
|
9
8
|
outsourced_user_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
10
9
|
pin_by_user_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
11
10
|
flag_by_user_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
@@ -42,6 +41,9 @@ exports.documentThreadsSchema = new mongoose_1.Schema({
|
|
|
42
41
|
ignore_message: Boolean
|
|
43
42
|
}
|
|
44
43
|
],
|
|
45
|
-
|
|
44
|
+
isEssayConsultantNeeded: {
|
|
45
|
+
type: Boolean
|
|
46
|
+
},
|
|
47
|
+
essayConsultantIds: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
46
48
|
updatedAt: Date
|
|
47
49
|
});
|
|
@@ -1,308 +1,84 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.programSchema = exports.programModule = exports.DIFFICULTY_KEYS = exports.PROGRAM_SUBJECT_KEYS =
|
|
3
|
+
exports.programSchema = exports.programModule = exports.DIFFICULTY_KEYS = exports.PROGRAM_SUBJECT_KEYS = void 0;
|
|
5
4
|
var mongoose_1 = require("mongoose");
|
|
5
|
+
var core_1 = require("@taiger-common/core");
|
|
6
6
|
var ObjectId = mongoose_1.Schema.Types.ObjectId;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
category: 'ET'
|
|
83
|
-
},
|
|
84
|
-
'MECH-ENG': {
|
|
85
|
-
label: 'Engineering - Mechanical',
|
|
86
|
-
category: 'ET'
|
|
87
|
-
},
|
|
88
|
-
'MIN-MIN-ENG': {
|
|
89
|
-
label: 'Engineering - Mineral and Mining',
|
|
90
|
-
category: 'ET'
|
|
91
|
-
},
|
|
92
|
-
'AG-FOR': {
|
|
93
|
-
label: 'Agriculture and Forestry',
|
|
94
|
-
category: 'LSM'
|
|
95
|
-
},
|
|
96
|
-
'ANA-PHYS': {
|
|
97
|
-
label: 'Anatomy and Physiology',
|
|
98
|
-
category: 'LSM'
|
|
99
|
-
},
|
|
100
|
-
'BIO-SCI': {
|
|
101
|
-
label: 'Biological Sciences',
|
|
102
|
-
category: 'LSM'
|
|
103
|
-
},
|
|
104
|
-
DENT: {
|
|
105
|
-
label: 'Dentistry',
|
|
106
|
-
category: 'LSM'
|
|
107
|
-
},
|
|
108
|
-
MED: {
|
|
109
|
-
label: 'Medicine',
|
|
110
|
-
category: 'LSM'
|
|
111
|
-
},
|
|
112
|
-
NURS: {
|
|
113
|
-
label: 'Nursing',
|
|
114
|
-
category: 'LSM'
|
|
115
|
-
},
|
|
116
|
-
PHARM: {
|
|
117
|
-
label: 'Pharmacy and Pharmacology',
|
|
118
|
-
category: 'LSM'
|
|
119
|
-
},
|
|
120
|
-
PSYCH: {
|
|
121
|
-
label: 'Psychology',
|
|
122
|
-
category: 'LSM'
|
|
123
|
-
},
|
|
124
|
-
'VET-SCI': {
|
|
125
|
-
label: 'Veterinary Science',
|
|
126
|
-
category: 'LSM'
|
|
127
|
-
},
|
|
128
|
-
CHEM: {
|
|
129
|
-
label: 'Chemistry',
|
|
130
|
-
category: 'NS'
|
|
131
|
-
},
|
|
132
|
-
'EAR-MAR-SCI': {
|
|
133
|
-
label: 'Earth and Marine Sciences',
|
|
134
|
-
category: 'NS'
|
|
135
|
-
},
|
|
136
|
-
'ENV-SCI': {
|
|
137
|
-
label: 'Environmental Sciences',
|
|
138
|
-
category: 'NS'
|
|
139
|
-
},
|
|
140
|
-
GEO: {
|
|
141
|
-
label: 'Geography',
|
|
142
|
-
category: 'NS'
|
|
143
|
-
},
|
|
144
|
-
GEOL: {
|
|
145
|
-
label: 'Geology',
|
|
146
|
-
category: 'NS'
|
|
147
|
-
},
|
|
148
|
-
GEOPH: {
|
|
149
|
-
label: 'Geophysics',
|
|
150
|
-
category: 'NS'
|
|
151
|
-
},
|
|
152
|
-
'MAT-SCI': {
|
|
153
|
-
label: 'Materials Sciences',
|
|
154
|
-
category: 'NS'
|
|
155
|
-
},
|
|
156
|
-
MATH: {
|
|
157
|
-
label: 'Mathematics',
|
|
158
|
-
category: 'NS'
|
|
159
|
-
},
|
|
160
|
-
'PHYS-ASTRO': {
|
|
161
|
-
label: 'Physics and Astronomy',
|
|
162
|
-
category: 'NS'
|
|
163
|
-
},
|
|
164
|
-
'ACC-FIN': {
|
|
165
|
-
label: 'Accounting and Finance',
|
|
166
|
-
category: 'SSM'
|
|
167
|
-
},
|
|
168
|
-
ANTH: {
|
|
169
|
-
label: 'Anthropology',
|
|
170
|
-
category: 'SSM'
|
|
171
|
-
},
|
|
172
|
-
'BUS-MGMT': {
|
|
173
|
-
label: 'Business and Management Studies',
|
|
174
|
-
category: 'SSM'
|
|
175
|
-
},
|
|
176
|
-
'COMM-MEDIA': {
|
|
177
|
-
label: 'Communication and Media Studies',
|
|
178
|
-
category: 'SSM'
|
|
179
|
-
},
|
|
180
|
-
'DEV-STUD': {
|
|
181
|
-
label: 'Development Studies',
|
|
182
|
-
category: 'SSM'
|
|
183
|
-
},
|
|
184
|
-
ECON: {
|
|
185
|
-
label: 'Economics and Econometrics',
|
|
186
|
-
category: 'SSM'
|
|
187
|
-
},
|
|
188
|
-
'EDU-TRAIN': {
|
|
189
|
-
label: 'Education and Training',
|
|
190
|
-
category: 'SSM'
|
|
191
|
-
},
|
|
192
|
-
'HOSP-MGMT': {
|
|
193
|
-
label: 'Hospitality and Leisure Management',
|
|
194
|
-
category: 'SSM'
|
|
195
|
-
},
|
|
196
|
-
LAW: {
|
|
197
|
-
label: 'Law and Legal Studies',
|
|
198
|
-
category: 'SSM'
|
|
199
|
-
},
|
|
200
|
-
'LIB-INFO': {
|
|
201
|
-
label: 'Library and Information Management',
|
|
202
|
-
category: 'SSM'
|
|
203
|
-
},
|
|
204
|
-
MKT: {
|
|
205
|
-
label: 'Marketing',
|
|
206
|
-
category: 'SSM'
|
|
207
|
-
},
|
|
208
|
-
POL: {
|
|
209
|
-
label: 'Politics',
|
|
210
|
-
category: 'SSM'
|
|
211
|
-
},
|
|
212
|
-
'SOC-POL': {
|
|
213
|
-
label: 'Social Policy and Administration',
|
|
214
|
-
category: 'SSM'
|
|
215
|
-
},
|
|
216
|
-
SOC: {
|
|
217
|
-
label: 'Sociology',
|
|
218
|
-
category: 'SSM'
|
|
219
|
-
},
|
|
220
|
-
SPORT: {
|
|
221
|
-
label: 'Sports-Related Subjects',
|
|
222
|
-
category: 'SSM'
|
|
223
|
-
},
|
|
224
|
-
'STAT-OR': {
|
|
225
|
-
label: 'Statistics and Operational Research',
|
|
226
|
-
category: 'SSM'
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
var SemesterType;
|
|
230
|
-
(function (SemesterType) {
|
|
231
|
-
SemesterType["SummerSemester"] = "SS";
|
|
232
|
-
SemesterType["WinterSemester"] = "WS";
|
|
233
|
-
SemesterType["Rolling"] = "Rolling";
|
|
234
|
-
})(SemesterType = exports.SemesterType || (exports.SemesterType = {}));
|
|
235
|
-
var Category;
|
|
236
|
-
(function (Category) {
|
|
237
|
-
Category["TU9"] = "TU9";
|
|
238
|
-
Category["U15"] = "U15";
|
|
239
|
-
Category["EUROTECH"] = "EUROTECH";
|
|
240
|
-
Category["GERMAN_ELITE"] = "GERMAN_ELITE";
|
|
241
|
-
Category["TOP50"] = "TOP50";
|
|
242
|
-
Category["TIME"] = "TIME";
|
|
243
|
-
Category["TOP100"] = "TOP100";
|
|
244
|
-
Category["TOP150"] = "TOP150";
|
|
245
|
-
Category["TOP250"] = "TOP250";
|
|
246
|
-
Category["TOP500"] = "TOP500";
|
|
247
|
-
})(Category || (Category = {}));
|
|
248
|
-
exports.DIFFICULTY = {
|
|
249
|
-
EASY: 'EASY',
|
|
250
|
-
HARD: 'HARD'
|
|
251
|
-
};
|
|
252
|
-
exports.SCHOOL_TAGS = (_a = {},
|
|
253
|
-
_a[Category.U15] = {
|
|
254
|
-
label: 'U15',
|
|
255
|
-
category: 'U15'
|
|
256
|
-
},
|
|
257
|
-
_a[Category.TU9] = {
|
|
258
|
-
label: 'TU9 German Universities of Technology',
|
|
259
|
-
category: 'TU9'
|
|
260
|
-
},
|
|
261
|
-
_a[Category.EUROTECH] = {
|
|
262
|
-
label: 'EuroTech Universities Alliance',
|
|
263
|
-
category: 'EUROTECH'
|
|
264
|
-
},
|
|
265
|
-
_a[Category.GERMAN_ELITE] = {
|
|
266
|
-
label: 'German Excellence Initiative',
|
|
267
|
-
category: 'GERMAN_ELITE'
|
|
268
|
-
},
|
|
269
|
-
_a[Category.TIME] = {
|
|
270
|
-
label: 'Top International Managers in Engineering',
|
|
271
|
-
category: 'TIME'
|
|
272
|
-
},
|
|
273
|
-
_a[Category.TOP50] = {
|
|
274
|
-
label: 'QS Top 50 Universities',
|
|
275
|
-
category: 'TOP50'
|
|
276
|
-
},
|
|
277
|
-
_a[Category.TOP100] = {
|
|
278
|
-
label: 'QS Top 100 Universities',
|
|
279
|
-
category: 'TOP100'
|
|
280
|
-
},
|
|
281
|
-
_a[Category.TOP150] = {
|
|
282
|
-
label: 'QS Top 150 Universities',
|
|
283
|
-
category: 'TOP150'
|
|
284
|
-
},
|
|
285
|
-
_a[Category.TOP250] = {
|
|
286
|
-
label: 'QS Top 250 Universities',
|
|
287
|
-
category: 'TOP150'
|
|
288
|
-
},
|
|
289
|
-
_a[Category.TOP500] = {
|
|
290
|
-
label: 'QS Top 500 Universities',
|
|
291
|
-
category: 'TOP500'
|
|
292
|
-
},
|
|
293
|
-
_a);
|
|
294
|
-
var SchoolType;
|
|
295
|
-
(function (SchoolType) {
|
|
296
|
-
SchoolType["University"] = "University";
|
|
297
|
-
SchoolType["University_of_Applied_Sciences"] = "University_of_Applied_Sciences";
|
|
298
|
-
})(SchoolType = exports.SchoolType || (exports.SchoolType = {}));
|
|
299
|
-
exports.SCHOOL_TYPES = [
|
|
300
|
-
SchoolType.University,
|
|
301
|
-
SchoolType.University_of_Applied_Sciences
|
|
302
|
-
];
|
|
303
|
-
var SCHOOL_TAG_KEYS = Object.keys(exports.SCHOOL_TAGS);
|
|
304
|
-
exports.PROGRAM_SUBJECT_KEYS = Object.keys(exports.PROGRAM_SUBJECTS);
|
|
305
|
-
exports.DIFFICULTY_KEYS = Object.keys(exports.DIFFICULTY);
|
|
7
|
+
var SCHOOL_TAG_KEYS = Object.keys(core_1.SCHOOL_TAGS);
|
|
8
|
+
exports.PROGRAM_SUBJECT_KEYS = Object.keys(core_1.PROGRAM_SUBJECTS);
|
|
9
|
+
exports.DIFFICULTY_KEYS = Object.keys(core_1.DIFFICULTY);
|
|
10
|
+
// export type ProgramModule = {
|
|
11
|
+
// [key: string]: any; // Allows dynamic key access
|
|
12
|
+
// } & {
|
|
13
|
+
// isArchiv: boolean;
|
|
14
|
+
// school: string;
|
|
15
|
+
// program_name: string;
|
|
16
|
+
// programSubjects: string[];
|
|
17
|
+
// degree?: string;
|
|
18
|
+
// semester?: string;
|
|
19
|
+
// lang?: string;
|
|
20
|
+
// gpa_requirement?: string;
|
|
21
|
+
// allowOnlyGraduatedApplicant?: boolean;
|
|
22
|
+
// application_start?: string;
|
|
23
|
+
// application_deadline?: string;
|
|
24
|
+
// uni_assist?: string;
|
|
25
|
+
// englishTestHandLater?: boolean;
|
|
26
|
+
// toefl?: string;
|
|
27
|
+
// toefl_reading?: number;
|
|
28
|
+
// toefl_listening?: number;
|
|
29
|
+
// toefl_writing?: number;
|
|
30
|
+
// toefl_speaking?: number;
|
|
31
|
+
// ielts?: string;
|
|
32
|
+
// ielts_reading?: number;
|
|
33
|
+
// ielts_listening?: number;
|
|
34
|
+
// ielts_writing?: number;
|
|
35
|
+
// ielts_speaking?: number;
|
|
36
|
+
// germanTestHandLater?: boolean;
|
|
37
|
+
// testdaf?: string;
|
|
38
|
+
// basic_german_requirement?: string;
|
|
39
|
+
// gre?: string;
|
|
40
|
+
// gre_verbal?: number;
|
|
41
|
+
// gre_quantitative?: number;
|
|
42
|
+
// gre_analytical_writing?: number;
|
|
43
|
+
// gmat?: string;
|
|
44
|
+
// ml_required?: string;
|
|
45
|
+
// ml_requirements?: string;
|
|
46
|
+
// rl_required?: string;
|
|
47
|
+
// rl_requirements?: string;
|
|
48
|
+
// is_rl_specific?: boolean;
|
|
49
|
+
// essay_required?: string;
|
|
50
|
+
// essay_requirements?: string;
|
|
51
|
+
// portfolio_required?: string;
|
|
52
|
+
// portfolio_requirements?: string;
|
|
53
|
+
// supplementary_form_required?: string;
|
|
54
|
+
// supplementary_form_requirements?: string;
|
|
55
|
+
// curriculum_analysis_required?: string;
|
|
56
|
+
// curriculum_analysis_requirements?: string;
|
|
57
|
+
// scholarship_form_required?: string;
|
|
58
|
+
// scholarship_form_requirements?: string;
|
|
59
|
+
// module_description_required?: string;
|
|
60
|
+
// ects_requirements?: string;
|
|
61
|
+
// special_notes?: string;
|
|
62
|
+
// comments?: string;
|
|
63
|
+
// application_portal_a?: string;
|
|
64
|
+
// application_portal_b?: string;
|
|
65
|
+
// application_portal_a_instructions?: string;
|
|
66
|
+
// application_portal_b_instructions?: string;
|
|
67
|
+
// uni_assist_link?: string;
|
|
68
|
+
// website?: string;
|
|
69
|
+
// fpso?: string;
|
|
70
|
+
// updatedAt?: Date;
|
|
71
|
+
// whoupdated?: string;
|
|
72
|
+
// tuition_fees?: string;
|
|
73
|
+
// contact?: string;
|
|
74
|
+
// country?: string;
|
|
75
|
+
// isPrivateSchool?: boolean;
|
|
76
|
+
// isPartnerSchool?: boolean;
|
|
77
|
+
// schoolType?: string;
|
|
78
|
+
// tags?: string[];
|
|
79
|
+
// url?: string;
|
|
80
|
+
// vcId?: ObjectId;
|
|
81
|
+
// };
|
|
306
82
|
exports.programModule = {
|
|
307
83
|
isArchiv: Boolean,
|
|
308
84
|
school: {
|
|
@@ -411,20 +187,6 @@ exports.programModule = {
|
|
|
411
187
|
ml_requirements: {
|
|
412
188
|
type: String
|
|
413
189
|
},
|
|
414
|
-
// statement of purpose
|
|
415
|
-
sop_required: {
|
|
416
|
-
type: String
|
|
417
|
-
},
|
|
418
|
-
sop_requirements: {
|
|
419
|
-
type: String
|
|
420
|
-
},
|
|
421
|
-
// personal history of statement
|
|
422
|
-
phs_required: {
|
|
423
|
-
type: String
|
|
424
|
-
},
|
|
425
|
-
phs_requirements: {
|
|
426
|
-
type: String
|
|
427
|
-
},
|
|
428
190
|
rl_required: {
|
|
429
191
|
type: String
|
|
430
192
|
},
|
|
@@ -511,10 +273,6 @@ exports.programModule = {
|
|
|
511
273
|
contact: {
|
|
512
274
|
type: String
|
|
513
275
|
},
|
|
514
|
-
city: {
|
|
515
|
-
type: String,
|
|
516
|
-
default: ''
|
|
517
|
-
},
|
|
518
276
|
country: {
|
|
519
277
|
type: String
|
|
520
278
|
},
|
|
@@ -526,7 +284,11 @@ exports.programModule = {
|
|
|
526
284
|
},
|
|
527
285
|
schoolType: {
|
|
528
286
|
type: String,
|
|
529
|
-
enum:
|
|
287
|
+
enum: core_1.SCHOOL_TYPES
|
|
288
|
+
},
|
|
289
|
+
isEssayConsultantNeeded: {
|
|
290
|
+
type: Boolean,
|
|
291
|
+
default: false
|
|
530
292
|
},
|
|
531
293
|
tags: [
|
|
532
294
|
{
|
|
@@ -535,16 +297,6 @@ exports.programModule = {
|
|
|
535
297
|
}
|
|
536
298
|
],
|
|
537
299
|
url: String,
|
|
538
|
-
isNC: {
|
|
539
|
-
type: Boolean,
|
|
540
|
-
default: false
|
|
541
|
-
},
|
|
542
|
-
zipCode: {
|
|
543
|
-
type: String,
|
|
544
|
-
default: ''
|
|
545
|
-
},
|
|
546
300
|
vcId: ObjectId
|
|
547
301
|
};
|
|
548
|
-
exports.programSchema = new mongoose_1.Schema(exports.programModule, {
|
|
549
|
-
timestamps: true
|
|
550
|
-
});
|
|
302
|
+
exports.programSchema = new mongoose_1.Schema(exports.programModule, { timestamps: true });
|