@taiger-common/model 1.0.29 → 1.0.31

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
@@ -21,4 +21,4 @@ git push origin main --tags
21
21
  npm publish
22
22
 
23
23
  # Concat command for powershell (please modify the commit message)
24
- git add .; git commit -m "fix: copy applications to new collection"; git push origin main; npm run build; npm version patch; git push origin main --tags; npm publish
24
+ git add .; git commit -m "fix: remove applications in students"; git push origin main; npm run build; npm version patch; git push origin main --tags; npm publish
@@ -47,6 +47,9 @@ var userSchema = new mongoose_1.Schema({
47
47
  lowercase: true,
48
48
  validate: [isEmail_1.default, 'Invalid email address']
49
49
  },
50
+ pictureUrl: {
51
+ type: String
52
+ },
50
53
  password: {
51
54
  type: String,
52
55
  select: false,
@@ -360,83 +363,10 @@ var userSchema = new mongoose_1.Schema({
360
363
  },
361
364
  lastLoginAt: Date
362
365
  }, options);
363
- var applicationSchema = new mongoose_1.Schema({
364
- programId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Program' },
365
- uni_assist: {
366
- status: {
367
- type: String,
368
- default: 'notstarted'
369
- },
370
- vpd_file_path: {
371
- type: String,
372
- default: ''
373
- },
374
- vpd_paid_confirmation_file_path: {
375
- type: String,
376
- default: ''
377
- },
378
- vpd_paid_confirmation_file_status: {
379
- type: String,
380
- default: ''
381
- },
382
- isPaid: {
383
- type: Boolean,
384
- default: false
385
- },
386
- updatedAt: Date
387
- },
388
- portal_credentials: {
389
- application_portal_a: {
390
- account: { type: String, select: false, trim: true },
391
- password: { type: String, select: false, trim: true }
392
- },
393
- application_portal_b: {
394
- account: { type: String, select: false, trim: true },
395
- password: { type: String, select: false, trim: true }
396
- }
397
- },
398
- doc_modification_thread: [
399
- {
400
- isFinalVersion: {
401
- type: Boolean,
402
- default: false
403
- },
404
- latest_message_left_by_id: {
405
- type: String,
406
- default: ''
407
- },
408
- doc_thread_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Documentthread' },
409
- updatedAt: Date,
410
- createdAt: Date
411
- }
412
- ],
413
- reject_reason: {
414
- type: String,
415
- default: ''
416
- },
417
- admission_letter: {
418
- status: {
419
- type: String,
420
- default: 'notstarted'
421
- },
422
- admission_file_path: {
423
- type: String,
424
- default: ''
425
- },
426
- comments: { type: String, default: '' },
427
- updatedAt: Date
428
- },
429
- finalEnrolment: { type: Boolean, default: false },
430
- decided: { type: String, default: '-' },
431
- closed: { type: String, default: '-' },
432
- admission: { type: String, default: '-' },
433
- application_year: { type: String, default: '' }
434
- });
435
366
  var studentSchema = new mongoose_1.Schema({
436
367
  agents: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Agent' }],
437
368
  editors: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'Editor' }],
438
369
  needEditor: { type: Boolean, default: false },
439
- applications: [applicationSchema],
440
370
  applying_program_count: {
441
371
  type: Number,
442
372
  default: 0
@@ -42,6 +42,9 @@ var userSchema = new Schema({
42
42
  lowercase: true,
43
43
  validate: [isEmail, 'Invalid email address']
44
44
  },
45
+ pictureUrl: {
46
+ type: String
47
+ },
45
48
  password: {
46
49
  type: String,
47
50
  select: false,
@@ -355,83 +358,10 @@ var userSchema = new Schema({
355
358
  },
356
359
  lastLoginAt: Date
357
360
  }, options);
358
- var applicationSchema = new Schema({
359
- programId: { type: Schema.Types.ObjectId, ref: 'Program' },
360
- uni_assist: {
361
- status: {
362
- type: String,
363
- default: 'notstarted'
364
- },
365
- vpd_file_path: {
366
- type: String,
367
- default: ''
368
- },
369
- vpd_paid_confirmation_file_path: {
370
- type: String,
371
- default: ''
372
- },
373
- vpd_paid_confirmation_file_status: {
374
- type: String,
375
- default: ''
376
- },
377
- isPaid: {
378
- type: Boolean,
379
- default: false
380
- },
381
- updatedAt: Date
382
- },
383
- portal_credentials: {
384
- application_portal_a: {
385
- account: { type: String, select: false, trim: true },
386
- password: { type: String, select: false, trim: true }
387
- },
388
- application_portal_b: {
389
- account: { type: String, select: false, trim: true },
390
- password: { type: String, select: false, trim: true }
391
- }
392
- },
393
- doc_modification_thread: [
394
- {
395
- isFinalVersion: {
396
- type: Boolean,
397
- default: false
398
- },
399
- latest_message_left_by_id: {
400
- type: String,
401
- default: ''
402
- },
403
- doc_thread_id: { type: Schema.Types.ObjectId, ref: 'Documentthread' },
404
- updatedAt: Date,
405
- createdAt: Date
406
- }
407
- ],
408
- reject_reason: {
409
- type: String,
410
- default: ''
411
- },
412
- admission_letter: {
413
- status: {
414
- type: String,
415
- default: 'notstarted'
416
- },
417
- admission_file_path: {
418
- type: String,
419
- default: ''
420
- },
421
- comments: { type: String, default: '' },
422
- updatedAt: Date
423
- },
424
- finalEnrolment: { type: Boolean, default: false },
425
- decided: { type: String, default: '-' },
426
- closed: { type: String, default: '-' },
427
- admission: { type: String, default: '-' },
428
- application_year: { type: String, default: '' }
429
- });
430
361
  var studentSchema = new Schema({
431
362
  agents: [{ type: Schema.Types.ObjectId, ref: 'Agent' }],
432
363
  editors: [{ type: Schema.Types.ObjectId, ref: 'Editor' }],
433
364
  needEditor: { type: Boolean, default: false },
434
- applications: [applicationSchema],
435
365
  applying_program_count: {
436
366
  type: Number,
437
367
  default: 0