@taiger-common/model 1.0.57 → 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.
Files changed (135) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/dist/cjs/index.js +0 -2
  4. package/dist/cjs/model/Documentthread.js +4 -2
  5. package/dist/cjs/model/Program.js +83 -331
  6. package/dist/cjs/model/User.js +139 -78
  7. package/dist/cjs/model/index.js +1 -1
  8. package/dist/esm/index.js +0 -2
  9. package/dist/esm/model/Documentthread.js +4 -2
  10. package/dist/esm/model/Program.js +78 -326
  11. package/dist/esm/model/User.js +124 -62
  12. package/dist/esm/model/index.js +1 -1
  13. package/dist/types/index.d.ts +0 -2
  14. package/dist/types/model/Allcourse.d.ts +27 -6
  15. package/dist/types/model/Audit.d.ts +43 -18
  16. package/dist/types/model/Basedocumentationslink.d.ts +16 -11
  17. package/dist/types/model/Communication.d.ts +71 -22
  18. package/dist/types/model/Complaint.d.ts +170 -25
  19. package/dist/types/model/Course.d.ts +49 -23
  20. package/dist/types/model/Docspage.d.ts +37 -14
  21. package/dist/types/model/Documentation.d.ts +28 -15
  22. package/dist/types/model/Documentthread.d.ts +178 -35
  23. package/dist/types/model/Event.d.ts +54 -15
  24. package/dist/types/model/Internaldoc.d.ts +28 -15
  25. package/dist/types/model/Interval.d.ts +26 -13
  26. package/dist/types/model/Interview.d.ts +50 -23
  27. package/dist/types/model/InterviewSurveyResponse.d.ts +62 -20
  28. package/dist/types/model/Keywordset.d.ts +44 -14
  29. package/dist/types/model/Note.d.ts +13 -11
  30. package/dist/types/model/Permission.d.ts +56 -21
  31. package/dist/types/model/Program.d.ts +232 -387
  32. package/dist/types/model/Programrequirement.d.ts +140 -37
  33. package/dist/types/model/ResponseTime.d.ts +17 -12
  34. package/dist/types/model/SurveyInput.d.ts +90 -23
  35. package/dist/types/model/Template.d.ts +13 -8
  36. package/dist/types/model/Tenant.d.ts +13 -10
  37. package/dist/types/model/Ticket.d.ts +38 -16
  38. package/dist/types/model/Token.d.ts +12 -10
  39. package/dist/types/model/User.d.ts +1 -2148
  40. package/dist/types/model/index.d.ts +1 -1
  41. package/dist/umd/index.js +1 -1
  42. package/package.json +1 -1
  43. package/dist/cjs/api/account.js +0 -35
  44. package/dist/cjs/api/applications.js +0 -46
  45. package/dist/cjs/api/audit.js +0 -8
  46. package/dist/cjs/api/auth.js +0 -19
  47. package/dist/cjs/api/common.js +0 -32
  48. package/dist/cjs/api/communications.js +0 -15
  49. package/dist/cjs/api/courses.js +0 -23
  50. package/dist/cjs/api/crm.js +0 -87
  51. package/dist/cjs/api/documentThreads.js +0 -44
  52. package/dist/cjs/api/documentations.js +0 -33
  53. package/dist/cjs/api/events.js +0 -22
  54. package/dist/cjs/api/index.js +0 -41
  55. package/dist/cjs/api/interviews.js +0 -35
  56. package/dist/cjs/api/meetings.js +0 -20
  57. package/dist/cjs/api/notes.js +0 -8
  58. package/dist/cjs/api/permissions.js +0 -9
  59. package/dist/cjs/api/portals.js +0 -24
  60. package/dist/cjs/api/programRequirements.js +0 -26
  61. package/dist/cjs/api/programs.js +0 -93
  62. package/dist/cjs/api/search.js +0 -24
  63. package/dist/cjs/api/serialized.js +0 -50
  64. package/dist/cjs/api/students.js +0 -29
  65. package/dist/cjs/api/teams.js +0 -48
  66. package/dist/cjs/api/tickets.js +0 -21
  67. package/dist/cjs/api/users.js +0 -42
  68. package/dist/cjs/api/widgets.js +0 -21
  69. package/dist/cjs/constants/users.js +0 -12
  70. package/dist/cjs/model/Application.js +0 -78
  71. package/dist/cjs/schema/index.js +0 -22
  72. package/dist/cjs/schema/models.js +0 -523
  73. package/dist/cjs/schema/serialized.js +0 -202
  74. package/dist/esm/api/account.js +0 -32
  75. package/dist/esm/api/applications.js +0 -43
  76. package/dist/esm/api/audit.js +0 -5
  77. package/dist/esm/api/auth.js +0 -16
  78. package/dist/esm/api/common.js +0 -27
  79. package/dist/esm/api/communications.js +0 -12
  80. package/dist/esm/api/courses.js +0 -20
  81. package/dist/esm/api/crm.js +0 -84
  82. package/dist/esm/api/documentThreads.js +0 -41
  83. package/dist/esm/api/documentations.js +0 -30
  84. package/dist/esm/api/events.js +0 -19
  85. package/dist/esm/api/index.js +0 -25
  86. package/dist/esm/api/interviews.js +0 -32
  87. package/dist/esm/api/meetings.js +0 -17
  88. package/dist/esm/api/notes.js +0 -5
  89. package/dist/esm/api/permissions.js +0 -6
  90. package/dist/esm/api/portals.js +0 -21
  91. package/dist/esm/api/programRequirements.js +0 -23
  92. package/dist/esm/api/programs.js +0 -90
  93. package/dist/esm/api/search.js +0 -21
  94. package/dist/esm/api/serialized.js +0 -13
  95. package/dist/esm/api/students.js +0 -26
  96. package/dist/esm/api/teams.js +0 -45
  97. package/dist/esm/api/tickets.js +0 -18
  98. package/dist/esm/api/users.js +0 -39
  99. package/dist/esm/api/widgets.js +0 -18
  100. package/dist/esm/constants/users.js +0 -9
  101. package/dist/esm/model/Application.js +0 -75
  102. package/dist/esm/schema/index.js +0 -6
  103. package/dist/esm/schema/models.js +0 -520
  104. package/dist/esm/schema/serialized.js +0 -199
  105. package/dist/types/api/account.d.ts +0 -503
  106. package/dist/types/api/applications.d.ts +0 -3417
  107. package/dist/types/api/audit.d.ts +0 -89
  108. package/dist/types/api/auth.d.ts +0 -3411
  109. package/dist/types/api/common.d.ts +0 -90
  110. package/dist/types/api/communications.d.ts +0 -617
  111. package/dist/types/api/courses.d.ts +0 -849
  112. package/dist/types/api/crm.d.ts +0 -1113
  113. package/dist/types/api/documentThreads.d.ts +0 -38257
  114. package/dist/types/api/documentations.d.ts +0 -933
  115. package/dist/types/api/events.d.ts +0 -7209
  116. package/dist/types/api/index.d.ts +0 -25
  117. package/dist/types/api/interviews.d.ts +0 -802
  118. package/dist/types/api/meetings.d.ts +0 -49
  119. package/dist/types/api/notes.d.ts +0 -85
  120. package/dist/types/api/permissions.d.ts +0 -195
  121. package/dist/types/api/portals.d.ts +0 -770
  122. package/dist/types/api/programRequirements.d.ts +0 -2685
  123. package/dist/types/api/programs.d.ts +0 -3046
  124. package/dist/types/api/search.d.ts +0 -292
  125. package/dist/types/api/serialized.d.ts +0 -7
  126. package/dist/types/api/students.d.ts +0 -307
  127. package/dist/types/api/teams.d.ts +0 -3671
  128. package/dist/types/api/tickets.d.ts +0 -960
  129. package/dist/types/api/users.d.ts +0 -6960
  130. package/dist/types/api/widgets.d.ts +0 -234
  131. package/dist/types/constants/users.d.ts +0 -9
  132. package/dist/types/model/Application.d.ts +0 -85
  133. package/dist/types/schema/index.d.ts +0 -6
  134. package/dist/types/schema/models.d.ts +0 -2038
  135. package/dist/types/schema/serialized.d.ts +0 -8823
@@ -24,41 +24,184 @@
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
- import { IProgram } from './Program';
30
- import { IApplication } from './Application';
31
- export interface IDocumentthreadMessageFile {
32
- name: string;
33
- path: string;
34
- }
35
- export interface IDocumentthreadMessage {
36
- user_id?: IUser | Schema.Types.ObjectId | string;
37
- message?: string;
38
- createdAt?: Date;
39
- file?: IDocumentthreadMessageFile[];
40
- ignore_message?: boolean;
41
- }
42
- export interface IDocumentthread {
43
- student_id: IStudent | Schema.Types.ObjectId | string;
44
- program_id?: IProgram | Schema.Types.ObjectId | string;
45
- application_id?: IApplication | Schema.Types.ObjectId | string;
46
- outsourced_user_id?: IUser[] | Schema.Types.ObjectId[] | string[];
47
- pin_by_user_id?: IUser[] | Schema.Types.ObjectId[] | string[];
48
- flag_by_user_id?: IUser[] | Schema.Types.ObjectId[] | string[];
49
- file_type: string;
50
- isFinalVersion?: boolean;
51
- isOriginAuthorDeclarationConfirmedByStudent?: boolean;
52
- isOriginAuthorDeclarationConfirmedByStudentTimestamp?: Date;
53
- messages?: IDocumentthreadMessage[];
54
- essayReviewerIds?: IUser[] | Schema.Types.ObjectId[] | string[];
55
- updatedAt?: Date;
56
- }
57
- export declare const documentThreadsSchema: Schema<IDocumentthread, import("mongoose").Model<IDocumentthread, any, any, any, import("mongoose").Document<unknown, any, IDocumentthread> & IDocumentthread & {
58
- _id: import("mongoose").Types.ObjectId;
59
- } & {
60
- __v: number;
61
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IDocumentthread, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IDocumentthread>> & import("mongoose").FlatRecord<IDocumentthread> & {
27
+ export declare const documentThreadsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
28
+ messages: import("mongoose").Types.DocumentArray<{
29
+ message: string;
30
+ file: import("mongoose").Types.DocumentArray<{
31
+ name: string;
32
+ path: string;
33
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
34
+ name: string;
35
+ path: string;
36
+ }> & {
37
+ name: string;
38
+ path: string;
39
+ }>;
40
+ createdAt?: NativeDate | null | undefined;
41
+ ignore_message?: boolean | null | undefined;
42
+ user_id?: import("mongoose").Types.ObjectId | null | undefined;
43
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
44
+ message: string;
45
+ file: import("mongoose").Types.DocumentArray<{
46
+ name: string;
47
+ path: string;
48
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
49
+ name: string;
50
+ path: string;
51
+ }> & {
52
+ name: string;
53
+ path: string;
54
+ }>;
55
+ createdAt?: NativeDate | null | undefined;
56
+ ignore_message?: boolean | null | undefined;
57
+ user_id?: import("mongoose").Types.ObjectId | null | undefined;
58
+ }> & {
59
+ message: string;
60
+ file: import("mongoose").Types.DocumentArray<{
61
+ name: string;
62
+ path: string;
63
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
64
+ name: string;
65
+ path: string;
66
+ }> & {
67
+ name: string;
68
+ path: string;
69
+ }>;
70
+ createdAt?: NativeDate | null | undefined;
71
+ ignore_message?: boolean | null | undefined;
72
+ user_id?: import("mongoose").Types.ObjectId | null | undefined;
73
+ }>;
74
+ outsourced_user_id: import("mongoose").Types.ObjectId[];
75
+ pin_by_user_id: import("mongoose").Types.ObjectId[];
76
+ flag_by_user_id: import("mongoose").Types.ObjectId[];
77
+ isFinalVersion: boolean;
78
+ isOriginAuthorDeclarationConfirmedByStudent: boolean;
79
+ essayConsultantIds: import("mongoose").Types.ObjectId[];
80
+ updatedAt?: NativeDate | null | undefined;
81
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
82
+ isOriginAuthorDeclarationConfirmedByStudentTimestamp?: NativeDate | null | undefined;
83
+ program_id?: import("mongoose").Types.ObjectId | null | undefined;
84
+ file_type?: string | null | undefined;
85
+ isEssayConsultantNeeded?: boolean | null | undefined;
86
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
87
+ messages: import("mongoose").Types.DocumentArray<{
88
+ message: string;
89
+ file: import("mongoose").Types.DocumentArray<{
90
+ name: string;
91
+ path: string;
92
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
93
+ name: string;
94
+ path: string;
95
+ }> & {
96
+ name: string;
97
+ path: string;
98
+ }>;
99
+ createdAt?: NativeDate | null | undefined;
100
+ ignore_message?: boolean | null | undefined;
101
+ user_id?: import("mongoose").Types.ObjectId | null | undefined;
102
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
103
+ message: string;
104
+ file: import("mongoose").Types.DocumentArray<{
105
+ name: string;
106
+ path: string;
107
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
108
+ name: string;
109
+ path: string;
110
+ }> & {
111
+ name: string;
112
+ path: string;
113
+ }>;
114
+ createdAt?: NativeDate | null | undefined;
115
+ ignore_message?: boolean | null | undefined;
116
+ user_id?: import("mongoose").Types.ObjectId | null | undefined;
117
+ }> & {
118
+ message: string;
119
+ file: import("mongoose").Types.DocumentArray<{
120
+ name: string;
121
+ path: string;
122
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
123
+ name: string;
124
+ path: string;
125
+ }> & {
126
+ name: string;
127
+ path: string;
128
+ }>;
129
+ createdAt?: NativeDate | null | undefined;
130
+ ignore_message?: boolean | null | undefined;
131
+ user_id?: import("mongoose").Types.ObjectId | null | undefined;
132
+ }>;
133
+ outsourced_user_id: import("mongoose").Types.ObjectId[];
134
+ pin_by_user_id: import("mongoose").Types.ObjectId[];
135
+ flag_by_user_id: import("mongoose").Types.ObjectId[];
136
+ isFinalVersion: boolean;
137
+ isOriginAuthorDeclarationConfirmedByStudent: boolean;
138
+ essayConsultantIds: import("mongoose").Types.ObjectId[];
139
+ updatedAt?: NativeDate | null | undefined;
140
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
141
+ isOriginAuthorDeclarationConfirmedByStudentTimestamp?: NativeDate | null | undefined;
142
+ program_id?: import("mongoose").Types.ObjectId | null | undefined;
143
+ file_type?: string | null | undefined;
144
+ isEssayConsultantNeeded?: boolean | null | undefined;
145
+ }>> & import("mongoose").FlatRecord<{
146
+ messages: import("mongoose").Types.DocumentArray<{
147
+ message: string;
148
+ file: import("mongoose").Types.DocumentArray<{
149
+ name: string;
150
+ path: string;
151
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
152
+ name: string;
153
+ path: string;
154
+ }> & {
155
+ name: string;
156
+ path: string;
157
+ }>;
158
+ createdAt?: NativeDate | null | undefined;
159
+ ignore_message?: boolean | null | undefined;
160
+ user_id?: import("mongoose").Types.ObjectId | null | undefined;
161
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
162
+ message: string;
163
+ file: import("mongoose").Types.DocumentArray<{
164
+ name: string;
165
+ path: string;
166
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
167
+ name: string;
168
+ path: string;
169
+ }> & {
170
+ name: string;
171
+ path: string;
172
+ }>;
173
+ createdAt?: NativeDate | null | undefined;
174
+ ignore_message?: boolean | null | undefined;
175
+ user_id?: import("mongoose").Types.ObjectId | null | undefined;
176
+ }> & {
177
+ message: string;
178
+ file: import("mongoose").Types.DocumentArray<{
179
+ name: string;
180
+ path: string;
181
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
182
+ name: string;
183
+ path: string;
184
+ }> & {
185
+ name: string;
186
+ path: string;
187
+ }>;
188
+ createdAt?: NativeDate | null | undefined;
189
+ ignore_message?: boolean | null | undefined;
190
+ user_id?: import("mongoose").Types.ObjectId | null | undefined;
191
+ }>;
192
+ outsourced_user_id: import("mongoose").Types.ObjectId[];
193
+ pin_by_user_id: import("mongoose").Types.ObjectId[];
194
+ flag_by_user_id: import("mongoose").Types.ObjectId[];
195
+ isFinalVersion: boolean;
196
+ isOriginAuthorDeclarationConfirmedByStudent: boolean;
197
+ essayConsultantIds: import("mongoose").Types.ObjectId[];
198
+ updatedAt?: NativeDate | null | undefined;
199
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
200
+ isOriginAuthorDeclarationConfirmedByStudentTimestamp?: NativeDate | null | undefined;
201
+ program_id?: import("mongoose").Types.ObjectId | null | undefined;
202
+ file_type?: string | null | undefined;
203
+ isEssayConsultantNeeded?: boolean | null | undefined;
204
+ }> & {
62
205
  _id: import("mongoose").Types.ObjectId;
63
206
  } & {
64
207
  __v: number;
@@ -24,24 +24,63 @@
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 IEvent {
29
- requester_id?: IUser[] | Schema.Types.ObjectId[] | string[];
30
- receiver_id?: IUser[] | Schema.Types.ObjectId[] | string[];
31
- isConfirmedRequester?: boolean;
32
- isConfirmedReceiver?: boolean;
33
- meetingLink?: string;
34
- event_type?: string;
35
- title?: string;
36
- description?: string;
37
- start?: Date;
38
- end?: Date;
28
+ requester_id: string[];
29
+ receiver_id: string[];
30
+ isConfirmedRequester: boolean;
31
+ isConfirmedReceiver: boolean;
32
+ meetingLink: string;
33
+ event_type: string;
34
+ title: string;
35
+ description: string;
36
+ start: Date;
37
+ end: Date;
39
38
  }
40
- export declare const EventSchema: Schema<IEvent, import("mongoose").Model<IEvent, any, any, any, import("mongoose").Document<unknown, any, IEvent> & IEvent & {
41
- _id: import("mongoose").Types.ObjectId;
39
+ export declare const EventSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
40
+ timestamps: true;
41
+ }, {
42
+ createdAt: NativeDate;
43
+ updatedAt: NativeDate;
42
44
  } & {
43
- __v: number;
44
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IEvent, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IEvent>> & import("mongoose").FlatRecord<IEvent> & {
45
+ description: string;
46
+ requester_id: import("mongoose").Types.ObjectId[];
47
+ receiver_id: import("mongoose").Types.ObjectId[];
48
+ isConfirmedRequester: boolean;
49
+ isConfirmedReceiver: boolean;
50
+ meetingLink: string;
51
+ start: NativeDate;
52
+ title?: string | null | undefined;
53
+ event_type?: string | null | undefined;
54
+ end?: NativeDate | null | undefined;
55
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
56
+ createdAt: NativeDate;
57
+ updatedAt: NativeDate;
58
+ } & {
59
+ description: string;
60
+ requester_id: import("mongoose").Types.ObjectId[];
61
+ receiver_id: import("mongoose").Types.ObjectId[];
62
+ isConfirmedRequester: boolean;
63
+ isConfirmedReceiver: boolean;
64
+ meetingLink: string;
65
+ start: NativeDate;
66
+ title?: string | null | undefined;
67
+ event_type?: string | null | undefined;
68
+ end?: NativeDate | null | undefined;
69
+ }>> & import("mongoose").FlatRecord<{
70
+ createdAt: NativeDate;
71
+ updatedAt: NativeDate;
72
+ } & {
73
+ description: string;
74
+ requester_id: import("mongoose").Types.ObjectId[];
75
+ receiver_id: import("mongoose").Types.ObjectId[];
76
+ isConfirmedRequester: boolean;
77
+ isConfirmedReceiver: boolean;
78
+ meetingLink: string;
79
+ start: NativeDate;
80
+ title?: string | null | undefined;
81
+ event_type?: string | null | undefined;
82
+ end?: NativeDate | null | undefined;
83
+ }> & {
45
84
  _id: import("mongoose").Types.ObjectId;
46
85
  } & {
47
86
  __v: number;
@@ -24,21 +24,34 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- export interface IInternaldoc {
28
- name?: string;
29
- title?: string;
30
- category?: string;
31
- internal?: boolean;
32
- author?: string;
33
- text?: string;
34
- country?: string;
35
- updatedAt?: Date;
36
- }
37
- export declare const internaldocsSchema: Schema<IInternaldoc, import("mongoose").Model<IInternaldoc, any, any, any, import("mongoose").Document<unknown, any, IInternaldoc> & IInternaldoc & {
38
- _id: import("mongoose").Types.ObjectId;
39
- } & {
40
- __v: number;
41
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IInternaldoc, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IInternaldoc>> & import("mongoose").FlatRecord<IInternaldoc> & {
27
+ export declare const internaldocsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
28
+ text: string;
29
+ name: string;
30
+ category: string;
31
+ title: string;
32
+ author: string;
33
+ country: string;
34
+ internal: boolean;
35
+ updatedAt?: NativeDate | null | undefined;
36
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
37
+ text: string;
38
+ name: string;
39
+ category: string;
40
+ title: string;
41
+ author: string;
42
+ country: string;
43
+ internal: boolean;
44
+ updatedAt?: NativeDate | null | undefined;
45
+ }>> & import("mongoose").FlatRecord<{
46
+ text: string;
47
+ name: string;
48
+ category: string;
49
+ title: string;
50
+ author: string;
51
+ country: string;
52
+ internal: boolean;
53
+ updatedAt?: NativeDate | null | undefined;
54
+ }> & {
42
55
  _id: import("mongoose").Types.ObjectId;
43
56
  } & {
44
57
  __v: number;
@@ -24,21 +24,34 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- export interface IInterval {
28
- thread_id?: Schema.Types.ObjectId;
29
- student_id?: Schema.Types.ObjectId;
30
- message_1_id: Schema.Types.ObjectId;
31
- message_2_id: Schema.Types.ObjectId;
27
+ export declare const intervalSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
28
+ updatedAt: NativeDate;
29
+ message_1_id: import("mongoose").Types.ObjectId;
30
+ message_2_id: import("mongoose").Types.ObjectId;
32
31
  interval_type: string;
33
32
  interval: number;
34
- intervalStartAt: Date;
35
- updatedAt?: Date;
36
- }
37
- export declare const intervalSchema: Schema<IInterval, import("mongoose").Model<IInterval, any, any, any, import("mongoose").Document<unknown, any, IInterval> & IInterval & {
38
- _id: import("mongoose").Types.ObjectId;
39
- } & {
40
- __v: number;
41
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IInterval, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IInterval>> & import("mongoose").FlatRecord<IInterval> & {
33
+ intervalStartAt: NativeDate;
34
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
35
+ thread_id?: import("mongoose").Types.ObjectId | null | undefined;
36
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
37
+ updatedAt: NativeDate;
38
+ message_1_id: import("mongoose").Types.ObjectId;
39
+ message_2_id: import("mongoose").Types.ObjectId;
40
+ interval_type: string;
41
+ interval: number;
42
+ intervalStartAt: NativeDate;
43
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
44
+ thread_id?: import("mongoose").Types.ObjectId | null | undefined;
45
+ }>> & import("mongoose").FlatRecord<{
46
+ updatedAt: NativeDate;
47
+ message_1_id: import("mongoose").Types.ObjectId;
48
+ message_2_id: import("mongoose").Types.ObjectId;
49
+ interval_type: string;
50
+ interval: number;
51
+ intervalStartAt: NativeDate;
52
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
53
+ thread_id?: import("mongoose").Types.ObjectId | null | undefined;
54
+ }> & {
42
55
  _id: import("mongoose").Types.ObjectId;
43
56
  } & {
44
57
  __v: number;
@@ -24,30 +24,57 @@
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
- import { IProgram } from './Program';
30
- import { IDocumentthread } from './Documentthread';
31
- import { IEvent } from './Event';
32
- export interface IInterview {
33
- student_id?: IStudent | Schema.Types.ObjectId | string;
34
- trainer_id?: IUser[] | Schema.Types.ObjectId[] | string[];
35
- thread_id?: IDocumentthread | Schema.Types.ObjectId | string;
36
- program_id?: IProgram | Schema.Types.ObjectId | string;
37
- event_id?: IEvent | Schema.Types.ObjectId | string;
38
- interview_description?: string;
39
- interviewer?: string;
40
- interview_duration?: string;
41
- interview_date?: Date;
42
- isClosed?: boolean;
43
- start?: Date;
44
- end?: Date;
45
- }
46
- export declare const interviewsSchema: Schema<IInterview, import("mongoose").Model<IInterview, any, any, any, import("mongoose").Document<unknown, any, IInterview> & IInterview & {
47
- _id: import("mongoose").Types.ObjectId;
27
+ export declare const interviewsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
28
+ timestamps: true;
29
+ }, {
30
+ createdAt: NativeDate;
31
+ updatedAt: NativeDate;
48
32
  } & {
49
- __v: number;
50
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IInterview, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IInterview>> & import("mongoose").FlatRecord<IInterview> & {
33
+ trainer_id: import("mongoose").Types.ObjectId[];
34
+ interview_description: string;
35
+ interviewer: string;
36
+ interview_duration: string;
37
+ isClosed: boolean;
38
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
39
+ program_id?: import("mongoose").Types.ObjectId | null | undefined;
40
+ start?: NativeDate | null | undefined;
41
+ end?: NativeDate | null | undefined;
42
+ thread_id?: import("mongoose").Types.ObjectId | null | undefined;
43
+ event_id?: import("mongoose").Types.ObjectId | null | undefined;
44
+ interview_date?: NativeDate | null | undefined;
45
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
46
+ createdAt: NativeDate;
47
+ updatedAt: NativeDate;
48
+ } & {
49
+ trainer_id: import("mongoose").Types.ObjectId[];
50
+ interview_description: string;
51
+ interviewer: string;
52
+ interview_duration: string;
53
+ isClosed: boolean;
54
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
55
+ program_id?: import("mongoose").Types.ObjectId | null | undefined;
56
+ start?: NativeDate | null | undefined;
57
+ end?: NativeDate | null | undefined;
58
+ thread_id?: import("mongoose").Types.ObjectId | null | undefined;
59
+ event_id?: import("mongoose").Types.ObjectId | null | undefined;
60
+ interview_date?: NativeDate | null | undefined;
61
+ }>> & import("mongoose").FlatRecord<{
62
+ createdAt: NativeDate;
63
+ updatedAt: NativeDate;
64
+ } & {
65
+ trainer_id: import("mongoose").Types.ObjectId[];
66
+ interview_description: string;
67
+ interviewer: string;
68
+ interview_duration: string;
69
+ isClosed: boolean;
70
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
71
+ program_id?: import("mongoose").Types.ObjectId | null | undefined;
72
+ start?: NativeDate | null | undefined;
73
+ end?: NativeDate | null | undefined;
74
+ thread_id?: import("mongoose").Types.ObjectId | null | undefined;
75
+ event_id?: import("mongoose").Types.ObjectId | null | undefined;
76
+ interview_date?: NativeDate | null | undefined;
77
+ }> & {
51
78
  _id: import("mongoose").Types.ObjectId;
52
79
  } & {
53
80
  __v: number;
@@ -24,27 +24,69 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- import { IStudent } from './User';
28
- import { IProgram } from './Program';
29
- import { IInterview } from './Interview';
30
- export interface IInterviewSurveyResponseResponse {
31
- questionId?: string;
32
- answer?: number;
33
- }
34
- export interface IInterviewSurveyResponse {
35
- student_id?: IStudent | Schema.Types.ObjectId | string;
36
- interview_id?: IInterview | Schema.Types.ObjectId | string;
37
- program_id?: IProgram | Schema.Types.ObjectId | string;
38
- responses?: IInterviewSurveyResponseResponse[];
39
- isFinal?: boolean;
40
- interviewQuestions?: string;
41
- interviewFeedback?: string;
42
- }
43
- export declare const interviewSurveyResponseSchema: Schema<IInterviewSurveyResponse, import("mongoose").Model<IInterviewSurveyResponse, any, any, any, import("mongoose").Document<unknown, any, IInterviewSurveyResponse> & IInterviewSurveyResponse & {
44
- _id: import("mongoose").Types.ObjectId;
27
+ export declare const interviewSurveyResponseSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
28
+ timestamps: true;
29
+ }, {
30
+ createdAt: NativeDate;
31
+ updatedAt: NativeDate;
45
32
  } & {
46
- __v: number;
47
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IInterviewSurveyResponse, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IInterviewSurveyResponse>> & import("mongoose").FlatRecord<IInterviewSurveyResponse> & {
33
+ responses: import("mongoose").Types.DocumentArray<{
34
+ questionId?: string | null | undefined;
35
+ answer?: number | null | undefined;
36
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
37
+ questionId?: string | null | undefined;
38
+ answer?: number | null | undefined;
39
+ }> & {
40
+ questionId?: string | null | undefined;
41
+ answer?: number | null | undefined;
42
+ }>;
43
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
44
+ program_id?: import("mongoose").Types.ObjectId | null | undefined;
45
+ interview_id?: import("mongoose").Types.ObjectId | null | undefined;
46
+ isFinal?: boolean | null | undefined;
47
+ interviewQuestions?: string | null | undefined;
48
+ interviewFeedback?: string | null | undefined;
49
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
50
+ createdAt: NativeDate;
51
+ updatedAt: NativeDate;
52
+ } & {
53
+ responses: import("mongoose").Types.DocumentArray<{
54
+ questionId?: string | null | undefined;
55
+ answer?: number | null | undefined;
56
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
57
+ questionId?: string | null | undefined;
58
+ answer?: number | null | undefined;
59
+ }> & {
60
+ questionId?: string | null | undefined;
61
+ answer?: number | null | undefined;
62
+ }>;
63
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
64
+ program_id?: import("mongoose").Types.ObjectId | null | undefined;
65
+ interview_id?: import("mongoose").Types.ObjectId | null | undefined;
66
+ isFinal?: boolean | null | undefined;
67
+ interviewQuestions?: string | null | undefined;
68
+ interviewFeedback?: string | null | undefined;
69
+ }>> & import("mongoose").FlatRecord<{
70
+ createdAt: NativeDate;
71
+ updatedAt: NativeDate;
72
+ } & {
73
+ responses: import("mongoose").Types.DocumentArray<{
74
+ questionId?: string | null | undefined;
75
+ answer?: number | null | undefined;
76
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
77
+ questionId?: string | null | undefined;
78
+ answer?: number | null | undefined;
79
+ }> & {
80
+ questionId?: string | null | undefined;
81
+ answer?: number | null | undefined;
82
+ }>;
83
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
84
+ program_id?: import("mongoose").Types.ObjectId | null | undefined;
85
+ interview_id?: import("mongoose").Types.ObjectId | null | undefined;
86
+ isFinal?: boolean | null | undefined;
87
+ interviewQuestions?: string | null | undefined;
88
+ interviewFeedback?: string | null | undefined;
89
+ }> & {
48
90
  _id: import("mongoose").Types.ObjectId;
49
91
  } & {
50
92
  __v: number;
@@ -24,21 +24,51 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- export interface IKeywordsetKeywords {
28
- zh?: string[];
29
- en?: string[];
30
- }
31
- export interface IKeywordset {
32
- categoryName?: string;
33
- description?: string;
34
- keywords?: IKeywordsetKeywords;
35
- antiKeywords?: IKeywordsetKeywords;
36
- }
37
- export declare const keywordSetSchema: Schema<IKeywordset, import("mongoose").Model<IKeywordset, any, any, any, import("mongoose").Document<unknown, any, IKeywordset> & IKeywordset & {
38
- _id: import("mongoose").Types.ObjectId;
27
+ export declare const keywordSetSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
28
+ timestamps: true;
29
+ }, {
30
+ createdAt: NativeDate;
31
+ updatedAt: NativeDate;
39
32
  } & {
40
- __v: number;
41
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IKeywordset, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IKeywordset>> & import("mongoose").FlatRecord<IKeywordset> & {
33
+ description: string;
34
+ categoryName?: string | null | undefined;
35
+ keywords?: {
36
+ zh: string[];
37
+ en: string[];
38
+ } | null | undefined;
39
+ antiKeywords?: {
40
+ zh: string[];
41
+ en: string[];
42
+ } | null | undefined;
43
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
44
+ createdAt: NativeDate;
45
+ updatedAt: NativeDate;
46
+ } & {
47
+ description: string;
48
+ categoryName?: string | null | undefined;
49
+ keywords?: {
50
+ zh: string[];
51
+ en: string[];
52
+ } | null | undefined;
53
+ antiKeywords?: {
54
+ zh: string[];
55
+ en: string[];
56
+ } | null | undefined;
57
+ }>> & import("mongoose").FlatRecord<{
58
+ createdAt: NativeDate;
59
+ updatedAt: NativeDate;
60
+ } & {
61
+ description: string;
62
+ categoryName?: string | null | undefined;
63
+ keywords?: {
64
+ zh: string[];
65
+ en: string[];
66
+ } | null | undefined;
67
+ antiKeywords?: {
68
+ zh: string[];
69
+ en: string[];
70
+ } | null | undefined;
71
+ }> & {
42
72
  _id: import("mongoose").Types.ObjectId;
43
73
  } & {
44
74
  __v: number;