@taiger-common/model 1.0.34 → 1.0.36

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: remove applications in students"; git push origin main; npm run build; npm version patch; git push origin main --tags; npm publish
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
@@ -9,6 +9,10 @@ exports.PROGRAM_SUBJECT_KEYS = Object.keys(core_1.PROGRAM_SUBJECTS);
9
9
  exports.DIFFICULTY_KEYS = Object.keys(core_1.DIFFICULTY);
10
10
  exports.programModule = {
11
11
  isArchiv: Boolean,
12
+ isLocked: {
13
+ type: Boolean,
14
+ default: false
15
+ },
12
16
  school: {
13
17
  type: String,
14
18
  default: '',
@@ -481,38 +481,39 @@ var managerSchema = new mongoose_1.Schema({
481
481
  }
482
482
  }
483
483
  }, options);
484
+ var officehoursSchema = new mongoose_1.Schema({
485
+ Monday: {
486
+ active: { type: Boolean, default: false },
487
+ time_slots: [{ type: Object }]
488
+ },
489
+ Tuesday: {
490
+ active: { type: Boolean, default: false },
491
+ time_slots: [{ type: Object }]
492
+ },
493
+ Wednesday: {
494
+ active: { type: Boolean, default: false },
495
+ time_slots: [{ type: Object }]
496
+ },
497
+ Thursday: {
498
+ active: { type: Boolean, default: false },
499
+ time_slots: [{ type: Object }]
500
+ },
501
+ Friday: {
502
+ active: { type: Boolean, default: false },
503
+ time_slots: [{ type: Object }]
504
+ },
505
+ Saturday: {
506
+ active: { type: Boolean, default: false },
507
+ time_slots: [{ type: Object }]
508
+ },
509
+ Sunday: {
510
+ active: { type: Boolean, default: false },
511
+ time_slots: [{ type: Object }]
512
+ }
513
+ });
484
514
  var agentSchema = new mongoose_1.Schema({
485
515
  timezone: { type: String, default: '' },
486
- officehours: {
487
- Monday: {
488
- active: { type: Boolean, default: false },
489
- time_slots: [{ type: Object }]
490
- },
491
- Tuesday: {
492
- active: { type: Boolean, default: false },
493
- time_slots: [{ type: Object }]
494
- },
495
- Wednesday: {
496
- active: { type: Boolean, default: false },
497
- time_slots: [{ type: Object }]
498
- },
499
- Thursday: {
500
- active: { type: Boolean, default: false },
501
- time_slots: [{ type: Object }]
502
- },
503
- Friday: {
504
- active: { type: Boolean, default: false },
505
- time_slots: [{ type: Object }]
506
- },
507
- Saturday: {
508
- active: { type: Boolean, default: false },
509
- time_slots: [{ type: Object }]
510
- },
511
- Sunday: {
512
- active: { type: Boolean, default: false },
513
- time_slots: [{ type: Object }]
514
- }
515
- },
516
+ officehours: { type: officehoursSchema, default: {} },
516
517
  selfIntroduction: {
517
518
  type: String,
518
519
  default: ''
@@ -549,6 +550,7 @@ var agentSchema = new mongoose_1.Schema({
549
550
  }
550
551
  }, options);
551
552
  var editorSchema = new mongoose_1.Schema({
553
+ officehours: { type: officehoursSchema, default: {} },
552
554
  editor_notification: {
553
555
  isRead_survey_not_complete: {
554
556
  type: Boolean,
@@ -6,6 +6,10 @@ export var PROGRAM_SUBJECT_KEYS = Object.keys(PROGRAM_SUBJECTS);
6
6
  export var DIFFICULTY_KEYS = Object.keys(DIFFICULTY);
7
7
  export var programModule = {
8
8
  isArchiv: Boolean,
9
+ isLocked: {
10
+ type: Boolean,
11
+ default: false
12
+ },
9
13
  school: {
10
14
  type: String,
11
15
  default: '',
@@ -476,38 +476,39 @@ var managerSchema = new Schema({
476
476
  }
477
477
  }
478
478
  }, options);
479
+ var officehoursSchema = new Schema({
480
+ Monday: {
481
+ active: { type: Boolean, default: false },
482
+ time_slots: [{ type: Object }]
483
+ },
484
+ Tuesday: {
485
+ active: { type: Boolean, default: false },
486
+ time_slots: [{ type: Object }]
487
+ },
488
+ Wednesday: {
489
+ active: { type: Boolean, default: false },
490
+ time_slots: [{ type: Object }]
491
+ },
492
+ Thursday: {
493
+ active: { type: Boolean, default: false },
494
+ time_slots: [{ type: Object }]
495
+ },
496
+ Friday: {
497
+ active: { type: Boolean, default: false },
498
+ time_slots: [{ type: Object }]
499
+ },
500
+ Saturday: {
501
+ active: { type: Boolean, default: false },
502
+ time_slots: [{ type: Object }]
503
+ },
504
+ Sunday: {
505
+ active: { type: Boolean, default: false },
506
+ time_slots: [{ type: Object }]
507
+ }
508
+ });
479
509
  var agentSchema = new Schema({
480
510
  timezone: { type: String, default: '' },
481
- officehours: {
482
- Monday: {
483
- active: { type: Boolean, default: false },
484
- time_slots: [{ type: Object }]
485
- },
486
- Tuesday: {
487
- active: { type: Boolean, default: false },
488
- time_slots: [{ type: Object }]
489
- },
490
- Wednesday: {
491
- active: { type: Boolean, default: false },
492
- time_slots: [{ type: Object }]
493
- },
494
- Thursday: {
495
- active: { type: Boolean, default: false },
496
- time_slots: [{ type: Object }]
497
- },
498
- Friday: {
499
- active: { type: Boolean, default: false },
500
- time_slots: [{ type: Object }]
501
- },
502
- Saturday: {
503
- active: { type: Boolean, default: false },
504
- time_slots: [{ type: Object }]
505
- },
506
- Sunday: {
507
- active: { type: Boolean, default: false },
508
- time_slots: [{ type: Object }]
509
- }
510
- },
511
+ officehours: { type: officehoursSchema, default: {} },
511
512
  selfIntroduction: {
512
513
  type: String,
513
514
  default: ''
@@ -544,6 +545,7 @@ var agentSchema = new Schema({
544
545
  }
545
546
  }, options);
546
547
  var editorSchema = new Schema({
548
+ officehours: { type: officehoursSchema, default: {} },
547
549
  editor_notification: {
548
550
  isRead_survey_not_complete: {
549
551
  type: Boolean,
@@ -28,6 +28,10 @@ export declare const PROGRAM_SUBJECT_KEYS: string[];
28
28
  export declare const DIFFICULTY_KEYS: string[];
29
29
  export declare const programModule: {
30
30
  isArchiv: BooleanConstructor;
31
+ isLocked: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
31
35
  school: {
32
36
  type: StringConstructor;
33
37
  default: string;
@@ -271,6 +275,7 @@ export declare const programSchema: Schema<any, import("mongoose").Model<any, an
271
275
  updatedAt: NativeDate;
272
276
  } & {
273
277
  isEssayConsultantNeeded: boolean;
278
+ isLocked: boolean;
274
279
  school: string;
275
280
  program_name: string;
276
281
  programSubjects: string[];
@@ -353,6 +358,7 @@ export declare const programSchema: Schema<any, import("mongoose").Model<any, an
353
358
  updatedAt: NativeDate;
354
359
  } & {
355
360
  isEssayConsultantNeeded: boolean;
361
+ isLocked: boolean;
356
362
  school: string;
357
363
  program_name: string;
358
364
  programSubjects: string[];
@@ -435,6 +441,7 @@ export declare const programSchema: Schema<any, import("mongoose").Model<any, an
435
441
  updatedAt: NativeDate;
436
442
  } & {
437
443
  isEssayConsultantNeeded: boolean;
444
+ isLocked: boolean;
438
445
  school: string;
439
446
  program_name: string;
440
447
  programSubjects: string[];