@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
@@ -1,24 +1,15 @@
1
1
  import { Schema } from 'mongoose';
2
- import validator from 'validator';
3
- import { Role } from '../constants/users';
2
+ import isEmail from 'validator/lib/isEmail';
3
+ import { DocumentStatusType } from '@taiger-common/core';
4
4
  import { PROGRAM_SUBJECT_KEYS } from './Program';
5
- // --- Interfaces for frontend/backend type reference ---
6
- export var DocumentStatusType;
7
- (function (DocumentStatusType) {
8
- DocumentStatusType["Uploaded"] = "uploaded";
9
- DocumentStatusType["Missing"] = "missing";
10
- DocumentStatusType["Accepted"] = "accepted";
11
- DocumentStatusType["Rejected"] = "rejected";
12
- DocumentStatusType["NotNeeded"] = "notneeded";
13
- })(DocumentStatusType || (DocumentStatusType = {}));
14
- export var ManagerType = {
5
+ var ManagerType = {
15
6
  Agent: 'Agent',
16
7
  Editor: 'Editor',
17
8
  AgentAndEditor: 'AgentAndEditor',
18
9
  None: 'None'
19
10
  };
20
- export var options = { discriminatorKey: 'role', timestamps: true };
21
- export var attributeSchema = new Schema({
11
+ var options = { discriminatorKey: 'role', timestamps: true };
12
+ var attributeSchema = new Schema({
22
13
  value: {
23
14
  type: Number,
24
15
  required: true
@@ -28,12 +19,7 @@ export var attributeSchema = new Schema({
28
19
  required: true
29
20
  }
30
21
  });
31
- export var userSchema = new Schema({
32
- role: {
33
- type: String,
34
- enum: Object.values(Role),
35
- required: true
36
- },
22
+ var userSchema = new Schema({
37
23
  firstname: {
38
24
  type: String,
39
25
  trim: true
@@ -54,10 +40,7 @@ export var userSchema = new Schema({
54
40
  type: String,
55
41
  unique: true,
56
42
  lowercase: true,
57
- validate: [validator.isEmail, 'Invalid email address']
58
- },
59
- pictureUrl: {
60
- type: String
43
+ validate: [isEmail, 'Invalid email address']
61
44
  },
62
45
  password: {
63
46
  type: String,
@@ -372,10 +355,83 @@ export var userSchema = new Schema({
372
355
  },
373
356
  lastLoginAt: Date
374
357
  }, options);
375
- export var studentSchema = new Schema({
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
+ });
429
+ var studentSchema = new Schema({
376
430
  agents: [{ type: Schema.Types.ObjectId, ref: 'Agent' }],
377
431
  editors: [{ type: Schema.Types.ObjectId, ref: 'Editor' }],
378
432
  needEditor: { type: Boolean, default: false },
433
+ isInterviewTrained: { type: Boolean, default: false },
434
+ applications: [applicationSchema],
379
435
  applying_program_count: {
380
436
  type: Number,
381
437
  default: 0
@@ -429,7 +485,7 @@ export var studentSchema = new Schema({
429
485
  }
430
486
  ]
431
487
  }, options);
432
- export var externalSchema = new Schema({
488
+ var externalSchema = new Schema({
433
489
  attribute: {
434
490
  can_update_program_list: {
435
491
  type: Boolean,
@@ -445,7 +501,7 @@ export var externalSchema = new Schema({
445
501
  }
446
502
  }
447
503
  }, options);
448
- export var managerSchema = new Schema({
504
+ var managerSchema = new Schema({
449
505
  agents: [{ type: Schema.Types.ObjectId, ref: 'Agent' }],
450
506
  editors: [{ type: Schema.Types.ObjectId, ref: 'Editor' }],
451
507
  manager_type: {
@@ -490,39 +546,38 @@ export var managerSchema = new Schema({
490
546
  }
491
547
  }
492
548
  }, options);
493
- var officehours = {
494
- Monday: {
495
- active: { type: Boolean, default: false },
496
- time_slots: [{ type: Object }]
497
- },
498
- Tuesday: {
499
- active: { type: Boolean, default: false },
500
- time_slots: [{ type: Object }]
501
- },
502
- Wednesday: {
503
- active: { type: Boolean, default: false },
504
- time_slots: [{ type: Object }]
505
- },
506
- Thursday: {
507
- active: { type: Boolean, default: false },
508
- time_slots: [{ type: Object }]
509
- },
510
- Friday: {
511
- active: { type: Boolean, default: false },
512
- time_slots: [{ type: Object }]
513
- },
514
- Saturday: {
515
- active: { type: Boolean, default: false },
516
- time_slots: [{ type: Object }]
517
- },
518
- Sunday: {
519
- active: { type: Boolean, default: false },
520
- time_slots: [{ type: Object }]
521
- }
522
- };
523
- export var agentSchema = new Schema({
549
+ var agentSchema = new Schema({
524
550
  timezone: { type: String, default: '' },
525
- officehours: officehours,
551
+ officehours: {
552
+ Monday: {
553
+ active: { type: Boolean, default: false },
554
+ time_slots: [{ type: Object }]
555
+ },
556
+ Tuesday: {
557
+ active: { type: Boolean, default: false },
558
+ time_slots: [{ type: Object }]
559
+ },
560
+ Wednesday: {
561
+ active: { type: Boolean, default: false },
562
+ time_slots: [{ type: Object }]
563
+ },
564
+ Thursday: {
565
+ active: { type: Boolean, default: false },
566
+ time_slots: [{ type: Object }]
567
+ },
568
+ Friday: {
569
+ active: { type: Boolean, default: false },
570
+ time_slots: [{ type: Object }]
571
+ },
572
+ Saturday: {
573
+ active: { type: Boolean, default: false },
574
+ time_slots: [{ type: Object }]
575
+ },
576
+ Sunday: {
577
+ active: { type: Boolean, default: false },
578
+ time_slots: [{ type: Object }]
579
+ }
580
+ },
526
581
  selfIntroduction: {
527
582
  type: String,
528
583
  default: ''
@@ -558,9 +613,7 @@ export var agentSchema = new Schema({
558
613
  }
559
614
  }
560
615
  }, options);
561
- export var editorSchema = new Schema({
562
- timezone: { type: String, default: '' },
563
- officehours: officehours,
616
+ var editorSchema = new Schema({
564
617
  editor_notification: {
565
618
  isRead_survey_not_complete: {
566
619
  type: Boolean,
@@ -602,3 +655,12 @@ export var editorSchema = new Schema({
602
655
  }
603
656
  }
604
657
  }, options);
658
+ module.exports = {
659
+ attributeSchema: attributeSchema,
660
+ userSchema: userSchema,
661
+ studentSchema: studentSchema,
662
+ agentSchema: agentSchema,
663
+ externalSchema: externalSchema,
664
+ editorSchema: editorSchema,
665
+ managerSchema: managerSchema
666
+ };
@@ -1,5 +1,4 @@
1
1
  export * from './Allcourse';
2
- export * from './Application';
3
2
  export * from './Audit';
4
3
  export * from './Basedocumentationslink';
5
4
  export * from './Communication';
@@ -11,6 +10,7 @@ export * from './Documentthread';
11
10
  export * from './Event';
12
11
  export * from './Internaldoc';
13
12
  export * from './Interval';
13
+ export * from './Event';
14
14
  export * from './Interview';
15
15
  export * from './InterviewSurveyResponse';
16
16
  export * from './Keywordset';
@@ -1,3 +1 @@
1
1
  export * from './model';
2
- export * from './api';
3
- export * from './schema';
@@ -24,18 +24,39 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- import { IUser } from './User';
28
27
  export interface IAllCourse {
29
- updatedBy: IUser | Schema.Types.ObjectId | string;
28
+ updatedBy: Schema.Types.ObjectId;
30
29
  all_course_chinese: string;
31
30
  all_course_english: string;
32
31
  description: string;
33
32
  }
34
- export declare const allCourseSchema: Schema<IAllCourse, import("mongoose").Model<IAllCourse, any, any, any, import("mongoose").Document<unknown, any, IAllCourse> & IAllCourse & {
35
- _id: import("mongoose").Types.ObjectId;
33
+ export declare const allCourseSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
34
+ timestamps: true;
35
+ }, {
36
+ createdAt: NativeDate;
37
+ updatedAt: NativeDate;
36
38
  } & {
37
- __v: number;
38
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAllCourse, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IAllCourse>> & import("mongoose").FlatRecord<IAllCourse> & {
39
+ all_course_chinese: string;
40
+ all_course_english: string;
41
+ updatedBy?: import("mongoose").Types.ObjectId | null | undefined;
42
+ description?: string | null | undefined;
43
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
44
+ createdAt: NativeDate;
45
+ updatedAt: NativeDate;
46
+ } & {
47
+ all_course_chinese: string;
48
+ all_course_english: string;
49
+ updatedBy?: import("mongoose").Types.ObjectId | null | undefined;
50
+ description?: string | null | undefined;
51
+ }>> & import("mongoose").FlatRecord<{
52
+ createdAt: NativeDate;
53
+ updatedAt: NativeDate;
54
+ } & {
55
+ all_course_chinese: string;
56
+ all_course_english: string;
57
+ updatedBy?: import("mongoose").Types.ObjectId | null | undefined;
58
+ description?: string | null | undefined;
59
+ }> & {
39
60
  _id: import("mongoose").Types.ObjectId;
40
61
  } & {
41
62
  __v: number;
@@ -24,26 +24,51 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- import { IUser } from './User';
28
- import { IDocumentthread } from './Documentthread';
29
- import { IInterview } from './Interview';
30
- export interface IAudit {
31
- performedBy?: IUser | Schema.Types.ObjectId | string;
32
- targetUserId?: IUser | Schema.Types.ObjectId | string;
33
- targetDocumentThreadId?: IDocumentthread | Schema.Types.ObjectId | string;
34
- interviewThreadId?: IInterview | Schema.Types.ObjectId | string;
35
- action?: string;
36
- field?: string;
27
+ export declare const auditSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
28
+ timestamps: true;
29
+ }, {
30
+ createdAt: NativeDate;
31
+ updatedAt: NativeDate;
32
+ } & {
33
+ action?: string | null | undefined;
34
+ field?: string | null | undefined;
35
+ performedBy?: import("mongoose").Types.ObjectId | null | undefined;
36
+ targetUserId?: import("mongoose").Types.ObjectId | null | undefined;
37
+ targetDocumentThreadId?: import("mongoose").Types.ObjectId | null | undefined;
38
+ interviewThreadId?: import("mongoose").Types.ObjectId | null | undefined;
37
39
  changes?: {
38
- before?: Schema.Types.Mixed;
39
- after?: Schema.Types.Mixed;
40
- };
41
- }
42
- export declare const auditSchema: Schema<IAudit, import("mongoose").Model<IAudit, any, any, any, import("mongoose").Document<unknown, any, IAudit> & IAudit & {
43
- _id: import("mongoose").Types.ObjectId;
40
+ before?: any;
41
+ after?: any;
42
+ } | null | undefined;
43
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
44
+ createdAt: NativeDate;
45
+ updatedAt: NativeDate;
44
46
  } & {
45
- __v: number;
46
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAudit, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IAudit>> & import("mongoose").FlatRecord<IAudit> & {
47
+ action?: string | null | undefined;
48
+ field?: string | null | undefined;
49
+ performedBy?: import("mongoose").Types.ObjectId | null | undefined;
50
+ targetUserId?: import("mongoose").Types.ObjectId | null | undefined;
51
+ targetDocumentThreadId?: import("mongoose").Types.ObjectId | null | undefined;
52
+ interviewThreadId?: import("mongoose").Types.ObjectId | null | undefined;
53
+ changes?: {
54
+ before?: any;
55
+ after?: any;
56
+ } | null | undefined;
57
+ }>> & import("mongoose").FlatRecord<{
58
+ createdAt: NativeDate;
59
+ updatedAt: NativeDate;
60
+ } & {
61
+ action?: string | null | undefined;
62
+ field?: string | null | undefined;
63
+ performedBy?: import("mongoose").Types.ObjectId | null | undefined;
64
+ targetUserId?: import("mongoose").Types.ObjectId | null | undefined;
65
+ targetDocumentThreadId?: import("mongoose").Types.ObjectId | null | undefined;
66
+ interviewThreadId?: import("mongoose").Types.ObjectId | null | undefined;
67
+ changes?: {
68
+ before?: any;
69
+ after?: any;
70
+ } | null | undefined;
71
+ }> & {
47
72
  _id: import("mongoose").Types.ObjectId;
48
73
  } & {
49
74
  __v: number;
@@ -24,17 +24,22 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- export interface IBasedocumentationslink {
28
- key?: string;
29
- category?: string;
30
- link?: string;
31
- updatedAt?: Date;
32
- }
33
- export declare const basedocumentationslinksSchema: Schema<IBasedocumentationslink, import("mongoose").Model<IBasedocumentationslink, any, any, any, import("mongoose").Document<unknown, any, IBasedocumentationslink> & IBasedocumentationslink & {
34
- _id: import("mongoose").Types.ObjectId;
35
- } & {
36
- __v: number;
37
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IBasedocumentationslink, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IBasedocumentationslink>> & import("mongoose").FlatRecord<IBasedocumentationslink> & {
27
+ export declare const basedocumentationslinksSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
28
+ key: string;
29
+ category: string;
30
+ link: string;
31
+ updatedAt?: NativeDate | null | undefined;
32
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
33
+ key: string;
34
+ category: string;
35
+ link: string;
36
+ updatedAt?: NativeDate | null | undefined;
37
+ }>> & import("mongoose").FlatRecord<{
38
+ key: string;
39
+ category: string;
40
+ link: string;
41
+ updatedAt?: NativeDate | null | undefined;
42
+ }> & {
38
43
  _id: import("mongoose").Types.ObjectId;
39
44
  } & {
40
45
  __v: number;
@@ -24,29 +24,78 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- import { IUser } from './User';
28
- import { IStudent } from './User';
29
- export interface ICommunicationFile {
30
- name: string;
31
- path: string;
32
- }
33
- export interface ICommunication {
34
- student_id?: IStudent | Schema.Types.ObjectId | string;
35
- user_id?: IUser | Schema.Types.ObjectId | string;
36
- message?: string;
37
- readBy?: IUser[] | Schema.Types.ObjectId[] | string[];
38
- timeStampReadBy?: Schema.Types.Mixed;
39
- files?: ICommunicationFile[];
40
- createdAt?: Date;
41
- ignore_message?: boolean;
42
- ignoredMessageUpdatedAt?: Date;
43
- ignoredMessageBy?: IUser | Schema.Types.ObjectId | string;
44
- }
45
- export declare const communicationsSchema: Schema<ICommunication, import("mongoose").Model<ICommunication, any, any, any, import("mongoose").Document<unknown, any, ICommunication> & ICommunication & {
46
- _id: import("mongoose").Types.ObjectId;
27
+ export declare const communicationsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
28
+ timestamps: true;
29
+ }, {
30
+ createdAt: NativeDate;
31
+ updatedAt: NativeDate;
47
32
  } & {
48
- __v: number;
49
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ICommunication, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ICommunication>> & import("mongoose").FlatRecord<ICommunication> & {
33
+ message: string;
34
+ readBy: import("mongoose").Types.ObjectId[];
35
+ files: import("mongoose").Types.DocumentArray<{
36
+ name: string;
37
+ path: string;
38
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
39
+ name: string;
40
+ path: string;
41
+ }> & {
42
+ name: string;
43
+ path: string;
44
+ }>;
45
+ createdAt?: NativeDate | null | undefined;
46
+ timeStampReadBy?: any;
47
+ ignore_message?: boolean | null | undefined;
48
+ ignoredMessageUpdatedAt?: NativeDate | null | undefined;
49
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
50
+ user_id?: import("mongoose").Types.ObjectId | null | undefined;
51
+ ignoredMessageBy?: import("mongoose").Types.ObjectId | null | undefined;
52
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
53
+ createdAt: NativeDate;
54
+ updatedAt: NativeDate;
55
+ } & {
56
+ message: string;
57
+ readBy: import("mongoose").Types.ObjectId[];
58
+ files: import("mongoose").Types.DocumentArray<{
59
+ name: string;
60
+ path: string;
61
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
62
+ name: string;
63
+ path: string;
64
+ }> & {
65
+ name: string;
66
+ path: string;
67
+ }>;
68
+ createdAt?: NativeDate | null | undefined;
69
+ timeStampReadBy?: any;
70
+ ignore_message?: boolean | null | undefined;
71
+ ignoredMessageUpdatedAt?: NativeDate | null | undefined;
72
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
73
+ user_id?: import("mongoose").Types.ObjectId | null | undefined;
74
+ ignoredMessageBy?: import("mongoose").Types.ObjectId | null | undefined;
75
+ }>> & import("mongoose").FlatRecord<{
76
+ createdAt: NativeDate;
77
+ updatedAt: NativeDate;
78
+ } & {
79
+ message: string;
80
+ readBy: import("mongoose").Types.ObjectId[];
81
+ files: import("mongoose").Types.DocumentArray<{
82
+ name: string;
83
+ path: string;
84
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
85
+ name: string;
86
+ path: string;
87
+ }> & {
88
+ name: string;
89
+ path: string;
90
+ }>;
91
+ createdAt?: NativeDate | null | undefined;
92
+ timeStampReadBy?: any;
93
+ ignore_message?: boolean | null | undefined;
94
+ ignoredMessageUpdatedAt?: NativeDate | null | undefined;
95
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
96
+ user_id?: import("mongoose").Types.ObjectId | null | undefined;
97
+ ignoredMessageBy?: import("mongoose").Types.ObjectId | null | undefined;
98
+ }> & {
50
99
  _id: import("mongoose").Types.ObjectId;
51
100
  } & {
52
101
  __v: number;