@taiger-common/model 1.0.57 → 1.0.59

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.
Files changed (100) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/dist/cjs/model/User.js +1 -0
  4. package/dist/esm/index.js +0 -2
  5. package/dist/esm/model/Documentthread.js +4 -2
  6. package/dist/esm/model/Program.js +78 -326
  7. package/dist/esm/model/User.js +124 -62
  8. package/dist/esm/model/index.js +1 -1
  9. package/dist/types/index.d.ts +0 -2
  10. package/dist/types/model/Allcourse.d.ts +27 -6
  11. package/dist/types/model/Audit.d.ts +43 -18
  12. package/dist/types/model/Basedocumentationslink.d.ts +16 -11
  13. package/dist/types/model/Communication.d.ts +71 -22
  14. package/dist/types/model/Complaint.d.ts +170 -25
  15. package/dist/types/model/Course.d.ts +49 -23
  16. package/dist/types/model/Docspage.d.ts +37 -14
  17. package/dist/types/model/Documentation.d.ts +28 -15
  18. package/dist/types/model/Documentthread.d.ts +178 -35
  19. package/dist/types/model/Event.d.ts +54 -15
  20. package/dist/types/model/Internaldoc.d.ts +28 -15
  21. package/dist/types/model/Interval.d.ts +26 -13
  22. package/dist/types/model/Interview.d.ts +50 -23
  23. package/dist/types/model/InterviewSurveyResponse.d.ts +62 -20
  24. package/dist/types/model/Keywordset.d.ts +44 -14
  25. package/dist/types/model/Note.d.ts +13 -11
  26. package/dist/types/model/Permission.d.ts +56 -21
  27. package/dist/types/model/Program.d.ts +232 -387
  28. package/dist/types/model/Programrequirement.d.ts +140 -37
  29. package/dist/types/model/ResponseTime.d.ts +17 -12
  30. package/dist/types/model/SurveyInput.d.ts +90 -23
  31. package/dist/types/model/Template.d.ts +13 -8
  32. package/dist/types/model/Tenant.d.ts +13 -10
  33. package/dist/types/model/Ticket.d.ts +38 -16
  34. package/dist/types/model/Token.d.ts +12 -10
  35. package/dist/types/model/User.d.ts +1 -2148
  36. package/dist/types/model/index.d.ts +1 -1
  37. package/dist/umd/index.js +1 -1
  38. package/package.json +1 -1
  39. package/dist/esm/api/account.js +0 -32
  40. package/dist/esm/api/applications.js +0 -43
  41. package/dist/esm/api/audit.js +0 -5
  42. package/dist/esm/api/auth.js +0 -16
  43. package/dist/esm/api/common.js +0 -27
  44. package/dist/esm/api/communications.js +0 -12
  45. package/dist/esm/api/courses.js +0 -20
  46. package/dist/esm/api/crm.js +0 -84
  47. package/dist/esm/api/documentThreads.js +0 -41
  48. package/dist/esm/api/documentations.js +0 -30
  49. package/dist/esm/api/events.js +0 -19
  50. package/dist/esm/api/index.js +0 -25
  51. package/dist/esm/api/interviews.js +0 -32
  52. package/dist/esm/api/meetings.js +0 -17
  53. package/dist/esm/api/notes.js +0 -5
  54. package/dist/esm/api/permissions.js +0 -6
  55. package/dist/esm/api/portals.js +0 -21
  56. package/dist/esm/api/programRequirements.js +0 -23
  57. package/dist/esm/api/programs.js +0 -90
  58. package/dist/esm/api/search.js +0 -21
  59. package/dist/esm/api/serialized.js +0 -13
  60. package/dist/esm/api/students.js +0 -26
  61. package/dist/esm/api/teams.js +0 -45
  62. package/dist/esm/api/tickets.js +0 -18
  63. package/dist/esm/api/users.js +0 -39
  64. package/dist/esm/api/widgets.js +0 -18
  65. package/dist/esm/constants/users.js +0 -9
  66. package/dist/esm/model/Application.js +0 -75
  67. package/dist/esm/schema/index.js +0 -6
  68. package/dist/esm/schema/models.js +0 -520
  69. package/dist/esm/schema/serialized.js +0 -199
  70. package/dist/types/api/account.d.ts +0 -503
  71. package/dist/types/api/applications.d.ts +0 -3417
  72. package/dist/types/api/audit.d.ts +0 -89
  73. package/dist/types/api/auth.d.ts +0 -3411
  74. package/dist/types/api/common.d.ts +0 -90
  75. package/dist/types/api/communications.d.ts +0 -617
  76. package/dist/types/api/courses.d.ts +0 -849
  77. package/dist/types/api/crm.d.ts +0 -1113
  78. package/dist/types/api/documentThreads.d.ts +0 -38257
  79. package/dist/types/api/documentations.d.ts +0 -933
  80. package/dist/types/api/events.d.ts +0 -7209
  81. package/dist/types/api/index.d.ts +0 -25
  82. package/dist/types/api/interviews.d.ts +0 -802
  83. package/dist/types/api/meetings.d.ts +0 -49
  84. package/dist/types/api/notes.d.ts +0 -85
  85. package/dist/types/api/permissions.d.ts +0 -195
  86. package/dist/types/api/portals.d.ts +0 -770
  87. package/dist/types/api/programRequirements.d.ts +0 -2685
  88. package/dist/types/api/programs.d.ts +0 -3046
  89. package/dist/types/api/search.d.ts +0 -292
  90. package/dist/types/api/serialized.d.ts +0 -7
  91. package/dist/types/api/students.d.ts +0 -307
  92. package/dist/types/api/teams.d.ts +0 -3671
  93. package/dist/types/api/tickets.d.ts +0 -960
  94. package/dist/types/api/users.d.ts +0 -6960
  95. package/dist/types/api/widgets.d.ts +0 -234
  96. package/dist/types/constants/users.d.ts +0 -9
  97. package/dist/types/model/Application.d.ts +0 -85
  98. package/dist/types/schema/index.d.ts +0 -6
  99. package/dist/types/schema/models.d.ts +0 -2038
  100. 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
@@ -78,6 +78,7 @@ exports.userSchema = new mongoose_1.Schema({
78
78
  },
79
79
  linkedIn: String,
80
80
  lineId: String,
81
+ slackId: String,
81
82
  isAccountActivated: {
82
83
  type: Boolean,
83
84
  default: false
package/dist/esm/index.js CHANGED
@@ -1,3 +1 @@
1
1
  export * from './model';
2
- export * from './api';
3
- export * from './schema';
@@ -2,7 +2,6 @@ import { Schema } from 'mongoose';
2
2
  export var documentThreadsSchema = new Schema({
3
3
  student_id: { type: Schema.Types.ObjectId, require: true, ref: 'User' },
4
4
  program_id: { type: Schema.Types.ObjectId, ref: 'Program' },
5
- application_id: { type: Schema.Types.ObjectId, ref: 'Application' },
6
5
  outsourced_user_id: [{ type: Schema.Types.ObjectId, ref: 'User' }],
7
6
  pin_by_user_id: [{ type: Schema.Types.ObjectId, ref: 'User' }],
8
7
  flag_by_user_id: [{ type: Schema.Types.ObjectId, ref: 'User' }],
@@ -39,6 +38,9 @@ export var documentThreadsSchema = new Schema({
39
38
  ignore_message: Boolean
40
39
  }
41
40
  ],
42
- essayReviewerIds: [{ type: Schema.Types.ObjectId, ref: 'User' }],
41
+ isEssayConsultantNeeded: {
42
+ type: Boolean
43
+ },
44
+ essayConsultantIds: [{ type: Schema.Types.ObjectId, ref: 'User' }],
43
45
  updatedAt: Date
44
46
  });
@@ -1,305 +1,81 @@
1
- var _a;
2
1
  import { Schema } from 'mongoose';
2
+ import { DIFFICULTY, PROGRAM_SUBJECTS, SCHOOL_TAGS, SCHOOL_TYPES } from '@taiger-common/core';
3
3
  var ObjectId = Schema.Types.ObjectId;
4
- export var PROGRAM_SUBJECTS = {
5
- LING: {
6
- label: 'Linguistics',
7
- category: 'AH'
8
- },
9
- MUS: {
10
- label: 'Music',
11
- category: 'AH'
12
- },
13
- THEO: {
14
- label: 'Theology, Divinity and Religious Studies',
15
- category: 'AH'
16
- },
17
- ARCH: {
18
- label: 'Archaeology',
19
- category: 'AH'
20
- },
21
- 'ARCH-BE': {
22
- label: 'Architecture and Built Environment',
23
- category: 'AH'
24
- },
25
- 'ART-DES': {
26
- label: 'Art and Design',
27
- category: 'AH'
28
- },
29
- CLAH: {
30
- label: 'Classics and Ancient History',
31
- category: 'AH'
32
- },
33
- ELL: {
34
- label: 'English Language and Literature',
35
- category: 'AH'
36
- },
37
- HIST: {
38
- label: 'History',
39
- category: 'AH'
40
- },
41
- ARTH: {
42
- label: 'Art History',
43
- category: 'AH'
44
- },
45
- 'MOD-LANG': {
46
- label: 'Modern Languages',
47
- category: 'AH'
48
- },
49
- 'PERF-ART': {
50
- label: 'Performing Arts',
51
- category: 'AH'
52
- },
53
- PHIL: {
54
- label: 'Philosophy',
55
- category: 'AH'
56
- },
57
- 'CHEM-ENG': {
58
- label: 'Engineering - Chemical',
59
- category: 'ET'
60
- },
61
- 'CIV-STR-ENG': {
62
- label: 'Engineering - Civil and Structural',
63
- category: 'ET'
64
- },
65
- CSIS: {
66
- label: 'Computer Science and Information Systems',
67
- category: 'ET'
68
- },
69
- 'DS-AI': {
70
- label: 'Data Science and Artificial Intelligence',
71
- category: 'ET'
72
- },
73
- 'ELEC-ENG': {
74
- label: 'Engineering - Electrical and Electronic',
75
- category: 'ET'
76
- },
77
- 'PETRO-ENG': {
78
- label: 'Engineering - Petroleum',
79
- category: 'ET'
80
- },
81
- 'MECH-ENG': {
82
- label: 'Engineering - Mechanical',
83
- category: 'ET'
84
- },
85
- 'MIN-MIN-ENG': {
86
- label: 'Engineering - Mineral and Mining',
87
- category: 'ET'
88
- },
89
- 'AG-FOR': {
90
- label: 'Agriculture and Forestry',
91
- category: 'LSM'
92
- },
93
- 'ANA-PHYS': {
94
- label: 'Anatomy and Physiology',
95
- category: 'LSM'
96
- },
97
- 'BIO-SCI': {
98
- label: 'Biological Sciences',
99
- category: 'LSM'
100
- },
101
- DENT: {
102
- label: 'Dentistry',
103
- category: 'LSM'
104
- },
105
- MED: {
106
- label: 'Medicine',
107
- category: 'LSM'
108
- },
109
- NURS: {
110
- label: 'Nursing',
111
- category: 'LSM'
112
- },
113
- PHARM: {
114
- label: 'Pharmacy and Pharmacology',
115
- category: 'LSM'
116
- },
117
- PSYCH: {
118
- label: 'Psychology',
119
- category: 'LSM'
120
- },
121
- 'VET-SCI': {
122
- label: 'Veterinary Science',
123
- category: 'LSM'
124
- },
125
- CHEM: {
126
- label: 'Chemistry',
127
- category: 'NS'
128
- },
129
- 'EAR-MAR-SCI': {
130
- label: 'Earth and Marine Sciences',
131
- category: 'NS'
132
- },
133
- 'ENV-SCI': {
134
- label: 'Environmental Sciences',
135
- category: 'NS'
136
- },
137
- GEO: {
138
- label: 'Geography',
139
- category: 'NS'
140
- },
141
- GEOL: {
142
- label: 'Geology',
143
- category: 'NS'
144
- },
145
- GEOPH: {
146
- label: 'Geophysics',
147
- category: 'NS'
148
- },
149
- 'MAT-SCI': {
150
- label: 'Materials Sciences',
151
- category: 'NS'
152
- },
153
- MATH: {
154
- label: 'Mathematics',
155
- category: 'NS'
156
- },
157
- 'PHYS-ASTRO': {
158
- label: 'Physics and Astronomy',
159
- category: 'NS'
160
- },
161
- 'ACC-FIN': {
162
- label: 'Accounting and Finance',
163
- category: 'SSM'
164
- },
165
- ANTH: {
166
- label: 'Anthropology',
167
- category: 'SSM'
168
- },
169
- 'BUS-MGMT': {
170
- label: 'Business and Management Studies',
171
- category: 'SSM'
172
- },
173
- 'COMM-MEDIA': {
174
- label: 'Communication and Media Studies',
175
- category: 'SSM'
176
- },
177
- 'DEV-STUD': {
178
- label: 'Development Studies',
179
- category: 'SSM'
180
- },
181
- ECON: {
182
- label: 'Economics and Econometrics',
183
- category: 'SSM'
184
- },
185
- 'EDU-TRAIN': {
186
- label: 'Education and Training',
187
- category: 'SSM'
188
- },
189
- 'HOSP-MGMT': {
190
- label: 'Hospitality and Leisure Management',
191
- category: 'SSM'
192
- },
193
- LAW: {
194
- label: 'Law and Legal Studies',
195
- category: 'SSM'
196
- },
197
- 'LIB-INFO': {
198
- label: 'Library and Information Management',
199
- category: 'SSM'
200
- },
201
- MKT: {
202
- label: 'Marketing',
203
- category: 'SSM'
204
- },
205
- POL: {
206
- label: 'Politics',
207
- category: 'SSM'
208
- },
209
- 'SOC-POL': {
210
- label: 'Social Policy and Administration',
211
- category: 'SSM'
212
- },
213
- SOC: {
214
- label: 'Sociology',
215
- category: 'SSM'
216
- },
217
- SPORT: {
218
- label: 'Sports-Related Subjects',
219
- category: 'SSM'
220
- },
221
- 'STAT-OR': {
222
- label: 'Statistics and Operational Research',
223
- category: 'SSM'
224
- }
225
- };
226
- export var SemesterType;
227
- (function (SemesterType) {
228
- SemesterType["SummerSemester"] = "SS";
229
- SemesterType["WinterSemester"] = "WS";
230
- SemesterType["Rolling"] = "Rolling";
231
- })(SemesterType || (SemesterType = {}));
232
- var Category;
233
- (function (Category) {
234
- Category["TU9"] = "TU9";
235
- Category["U15"] = "U15";
236
- Category["EUROTECH"] = "EUROTECH";
237
- Category["GERMAN_ELITE"] = "GERMAN_ELITE";
238
- Category["TOP50"] = "TOP50";
239
- Category["TIME"] = "TIME";
240
- Category["TOP100"] = "TOP100";
241
- Category["TOP150"] = "TOP150";
242
- Category["TOP250"] = "TOP250";
243
- Category["TOP500"] = "TOP500";
244
- })(Category || (Category = {}));
245
- export var DIFFICULTY = {
246
- EASY: 'EASY',
247
- HARD: 'HARD'
248
- };
249
- export var SCHOOL_TAGS = (_a = {},
250
- _a[Category.U15] = {
251
- label: 'U15',
252
- category: 'U15'
253
- },
254
- _a[Category.TU9] = {
255
- label: 'TU9 German Universities of Technology',
256
- category: 'TU9'
257
- },
258
- _a[Category.EUROTECH] = {
259
- label: 'EuroTech Universities Alliance',
260
- category: 'EUROTECH'
261
- },
262
- _a[Category.GERMAN_ELITE] = {
263
- label: 'German Excellence Initiative',
264
- category: 'GERMAN_ELITE'
265
- },
266
- _a[Category.TIME] = {
267
- label: 'Top International Managers in Engineering',
268
- category: 'TIME'
269
- },
270
- _a[Category.TOP50] = {
271
- label: 'QS Top 50 Universities',
272
- category: 'TOP50'
273
- },
274
- _a[Category.TOP100] = {
275
- label: 'QS Top 100 Universities',
276
- category: 'TOP100'
277
- },
278
- _a[Category.TOP150] = {
279
- label: 'QS Top 150 Universities',
280
- category: 'TOP150'
281
- },
282
- _a[Category.TOP250] = {
283
- label: 'QS Top 250 Universities',
284
- category: 'TOP150'
285
- },
286
- _a[Category.TOP500] = {
287
- label: 'QS Top 500 Universities',
288
- category: 'TOP500'
289
- },
290
- _a);
291
- export var SchoolType;
292
- (function (SchoolType) {
293
- SchoolType["University"] = "University";
294
- SchoolType["University_of_Applied_Sciences"] = "University_of_Applied_Sciences";
295
- })(SchoolType || (SchoolType = {}));
296
- export var SCHOOL_TYPES = [
297
- SchoolType.University,
298
- SchoolType.University_of_Applied_Sciences
299
- ];
300
4
  var SCHOOL_TAG_KEYS = Object.keys(SCHOOL_TAGS);
301
5
  export var PROGRAM_SUBJECT_KEYS = Object.keys(PROGRAM_SUBJECTS);
302
6
  export var DIFFICULTY_KEYS = Object.keys(DIFFICULTY);
7
+ // export type ProgramModule = {
8
+ // [key: string]: any; // Allows dynamic key access
9
+ // } & {
10
+ // isArchiv: boolean;
11
+ // school: string;
12
+ // program_name: string;
13
+ // programSubjects: string[];
14
+ // degree?: string;
15
+ // semester?: string;
16
+ // lang?: string;
17
+ // gpa_requirement?: string;
18
+ // allowOnlyGraduatedApplicant?: boolean;
19
+ // application_start?: string;
20
+ // application_deadline?: string;
21
+ // uni_assist?: string;
22
+ // englishTestHandLater?: boolean;
23
+ // toefl?: string;
24
+ // toefl_reading?: number;
25
+ // toefl_listening?: number;
26
+ // toefl_writing?: number;
27
+ // toefl_speaking?: number;
28
+ // ielts?: string;
29
+ // ielts_reading?: number;
30
+ // ielts_listening?: number;
31
+ // ielts_writing?: number;
32
+ // ielts_speaking?: number;
33
+ // germanTestHandLater?: boolean;
34
+ // testdaf?: string;
35
+ // basic_german_requirement?: string;
36
+ // gre?: string;
37
+ // gre_verbal?: number;
38
+ // gre_quantitative?: number;
39
+ // gre_analytical_writing?: number;
40
+ // gmat?: string;
41
+ // ml_required?: string;
42
+ // ml_requirements?: string;
43
+ // rl_required?: string;
44
+ // rl_requirements?: string;
45
+ // is_rl_specific?: boolean;
46
+ // essay_required?: string;
47
+ // essay_requirements?: string;
48
+ // portfolio_required?: string;
49
+ // portfolio_requirements?: string;
50
+ // supplementary_form_required?: string;
51
+ // supplementary_form_requirements?: string;
52
+ // curriculum_analysis_required?: string;
53
+ // curriculum_analysis_requirements?: string;
54
+ // scholarship_form_required?: string;
55
+ // scholarship_form_requirements?: string;
56
+ // module_description_required?: string;
57
+ // ects_requirements?: string;
58
+ // special_notes?: string;
59
+ // comments?: string;
60
+ // application_portal_a?: string;
61
+ // application_portal_b?: string;
62
+ // application_portal_a_instructions?: string;
63
+ // application_portal_b_instructions?: string;
64
+ // uni_assist_link?: string;
65
+ // website?: string;
66
+ // fpso?: string;
67
+ // updatedAt?: Date;
68
+ // whoupdated?: string;
69
+ // tuition_fees?: string;
70
+ // contact?: string;
71
+ // country?: string;
72
+ // isPrivateSchool?: boolean;
73
+ // isPartnerSchool?: boolean;
74
+ // schoolType?: string;
75
+ // tags?: string[];
76
+ // url?: string;
77
+ // vcId?: ObjectId;
78
+ // };
303
79
  export var programModule = {
304
80
  isArchiv: Boolean,
305
81
  school: {
@@ -408,20 +184,6 @@ export var programModule = {
408
184
  ml_requirements: {
409
185
  type: String
410
186
  },
411
- // statement of purpose
412
- sop_required: {
413
- type: String
414
- },
415
- sop_requirements: {
416
- type: String
417
- },
418
- // personal history of statement
419
- phs_required: {
420
- type: String
421
- },
422
- phs_requirements: {
423
- type: String
424
- },
425
187
  rl_required: {
426
188
  type: String
427
189
  },
@@ -508,10 +270,6 @@ export var programModule = {
508
270
  contact: {
509
271
  type: String
510
272
  },
511
- city: {
512
- type: String,
513
- default: ''
514
- },
515
273
  country: {
516
274
  type: String
517
275
  },
@@ -525,6 +283,10 @@ export var programModule = {
525
283
  type: String,
526
284
  enum: SCHOOL_TYPES
527
285
  },
286
+ isEssayConsultantNeeded: {
287
+ type: Boolean,
288
+ default: false
289
+ },
528
290
  tags: [
529
291
  {
530
292
  type: String,
@@ -532,16 +294,6 @@ export var programModule = {
532
294
  }
533
295
  ],
534
296
  url: String,
535
- isNC: {
536
- type: Boolean,
537
- default: false
538
- },
539
- zipCode: {
540
- type: String,
541
- default: ''
542
- },
543
297
  vcId: ObjectId
544
298
  };
545
- export var programSchema = new Schema(programModule, {
546
- timestamps: true
547
- });
299
+ export var programSchema = new Schema(programModule, { timestamps: true });