@taiger-common/model 1.0.42 → 1.0.45
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/dist/cjs/model/Application.js +2 -1
- package/dist/cjs/model/Program.js +3 -5
- package/dist/cjs/model/index.js +0 -1
- package/dist/esm/model/Application.js +2 -1
- package/dist/esm/model/Program.js +3 -5
- package/dist/esm/model/index.js +0 -1
- package/dist/types/model/Allcourse.d.ts +4 -26
- package/dist/types/model/Application.d.ts +51 -157
- package/dist/types/model/Audit.d.ts +15 -43
- package/dist/types/model/Basedocumentationslink.d.ts +11 -16
- package/dist/types/model/Communication.d.ts +20 -71
- package/dist/types/model/Complaint.d.ts +24 -170
- package/dist/types/model/Course.d.ts +23 -49
- package/dist/types/model/Docspage.d.ts +14 -37
- package/dist/types/model/Documentation.d.ts +15 -28
- package/dist/types/model/Documentthread.d.ts +32 -181
- package/dist/types/model/Event.d.ts +14 -54
- package/dist/types/model/Internaldoc.d.ts +15 -28
- package/dist/types/model/Interval.d.ts +13 -26
- package/dist/types/model/Interview.d.ts +18 -50
- package/dist/types/model/InterviewSurveyResponse.d.ts +17 -62
- package/dist/types/model/Keywordset.d.ts +14 -44
- package/dist/types/model/Note.d.ts +10 -13
- package/dist/types/model/Permission.d.ts +20 -56
- package/dist/types/model/Program.d.ts +85 -255
- package/dist/types/model/Programrequirement.d.ts +37 -140
- package/dist/types/model/ResponseTime.d.ts +10 -17
- package/dist/types/model/SurveyInput.d.ts +21 -90
- package/dist/types/model/Template.d.ts +8 -13
- package/dist/types/model/Tenant.d.ts +10 -13
- package/dist/types/model/Ticket.d.ts +14 -38
- package/dist/types/model/Token.d.ts +9 -12
- package/dist/types/model/User.d.ts +199 -1
- package/dist/types/model/index.d.ts +0 -1
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
|
@@ -73,5 +73,6 @@ exports.applicationSchema = new mongoose_1.Schema({
|
|
|
73
73
|
decided: { type: String, default: '-' },
|
|
74
74
|
closed: { type: String, default: '-' },
|
|
75
75
|
admission: { type: String, default: '-' },
|
|
76
|
-
application_year: { type: String, default: '' }
|
|
76
|
+
application_year: { type: String, default: '' },
|
|
77
|
+
isLocked: { type: Boolean, default: false }
|
|
77
78
|
});
|
|
@@ -9,10 +9,6 @@ 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
|
-
},
|
|
16
12
|
school: {
|
|
17
13
|
type: String,
|
|
18
14
|
default: '',
|
|
@@ -257,4 +253,6 @@ exports.programModule = {
|
|
|
257
253
|
},
|
|
258
254
|
vcId: ObjectId
|
|
259
255
|
};
|
|
260
|
-
exports.programSchema = new mongoose_1.Schema(exports.programModule, {
|
|
256
|
+
exports.programSchema = new mongoose_1.Schema(exports.programModule, {
|
|
257
|
+
timestamps: true
|
|
258
|
+
});
|
package/dist/cjs/model/index.js
CHANGED
|
@@ -27,7 +27,6 @@ __exportStar(require("./Documentthread"), exports);
|
|
|
27
27
|
__exportStar(require("./Event"), exports);
|
|
28
28
|
__exportStar(require("./Internaldoc"), exports);
|
|
29
29
|
__exportStar(require("./Interval"), exports);
|
|
30
|
-
__exportStar(require("./Event"), exports);
|
|
31
30
|
__exportStar(require("./Interview"), exports);
|
|
32
31
|
__exportStar(require("./InterviewSurveyResponse"), exports);
|
|
33
32
|
__exportStar(require("./Keywordset"), exports);
|
|
@@ -70,5 +70,6 @@ export var applicationSchema = new Schema({
|
|
|
70
70
|
decided: { type: String, default: '-' },
|
|
71
71
|
closed: { type: String, default: '-' },
|
|
72
72
|
admission: { type: String, default: '-' },
|
|
73
|
-
application_year: { type: String, default: '' }
|
|
73
|
+
application_year: { type: String, default: '' },
|
|
74
|
+
isLocked: { type: Boolean, default: false }
|
|
74
75
|
});
|
|
@@ -6,10 +6,6 @@ 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
|
-
},
|
|
13
9
|
school: {
|
|
14
10
|
type: String,
|
|
15
11
|
default: '',
|
|
@@ -254,4 +250,6 @@ export var programModule = {
|
|
|
254
250
|
},
|
|
255
251
|
vcId: ObjectId
|
|
256
252
|
};
|
|
257
|
-
export var programSchema = new Schema(programModule, {
|
|
253
|
+
export var programSchema = new Schema(programModule, {
|
|
254
|
+
timestamps: true
|
|
255
|
+
});
|
package/dist/esm/model/index.js
CHANGED
|
@@ -11,7 +11,6 @@ export * from './Documentthread';
|
|
|
11
11
|
export * from './Event';
|
|
12
12
|
export * from './Internaldoc';
|
|
13
13
|
export * from './Interval';
|
|
14
|
-
export * from './Event';
|
|
15
14
|
export * from './Interview';
|
|
16
15
|
export * from './InterviewSurveyResponse';
|
|
17
16
|
export * from './Keywordset';
|
|
@@ -30,33 +30,11 @@ export interface IAllCourse {
|
|
|
30
30
|
all_course_english: string;
|
|
31
31
|
description: string;
|
|
32
32
|
}
|
|
33
|
-
export declare const allCourseSchema: Schema<
|
|
34
|
-
|
|
35
|
-
}, {
|
|
36
|
-
createdAt: NativeDate;
|
|
37
|
-
updatedAt: NativeDate;
|
|
38
|
-
} & {
|
|
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;
|
|
33
|
+
export declare const allCourseSchema: Schema<IAllCourse, import("mongoose").Model<IAllCourse, any, any, any, import("mongoose").Document<unknown, any, IAllCourse> & IAllCourse & {
|
|
34
|
+
_id: import("mongoose").Types.ObjectId;
|
|
54
35
|
} & {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
updatedBy?: import("mongoose").Types.ObjectId | null | undefined;
|
|
58
|
-
description?: string | null | undefined;
|
|
59
|
-
}> & {
|
|
36
|
+
__v: number;
|
|
37
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAllCourse, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IAllCourse>> & import("mongoose").FlatRecord<IAllCourse> & {
|
|
60
38
|
_id: import("mongoose").Types.ObjectId;
|
|
61
39
|
} & {
|
|
62
40
|
__v: number;
|
|
@@ -24,163 +24,57 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import { Schema } from 'mongoose';
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
} | null | undefined;
|
|
79
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
80
|
-
doc_modification_thread: import("mongoose").Types.DocumentArray<{
|
|
81
|
-
isFinalVersion: boolean;
|
|
82
|
-
latest_message_left_by_id: string;
|
|
83
|
-
createdAt?: NativeDate | null | undefined;
|
|
84
|
-
updatedAt?: NativeDate | null | undefined;
|
|
85
|
-
doc_thread_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
86
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
87
|
-
isFinalVersion: boolean;
|
|
88
|
-
latest_message_left_by_id: string;
|
|
89
|
-
createdAt?: NativeDate | null | undefined;
|
|
90
|
-
updatedAt?: NativeDate | null | undefined;
|
|
91
|
-
doc_thread_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
92
|
-
}> & {
|
|
93
|
-
isFinalVersion: boolean;
|
|
94
|
-
latest_message_left_by_id: string;
|
|
95
|
-
createdAt?: NativeDate | null | undefined;
|
|
96
|
-
updatedAt?: NativeDate | null | undefined;
|
|
97
|
-
doc_thread_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
98
|
-
}>;
|
|
99
|
-
reject_reason: string;
|
|
100
|
-
finalEnrolment: boolean;
|
|
101
|
-
decided: string;
|
|
102
|
-
closed: string;
|
|
103
|
-
admission: string;
|
|
104
|
-
application_year: string;
|
|
105
|
-
programId?: import("mongoose").Types.ObjectId | null | undefined;
|
|
106
|
-
studentId?: import("mongoose").Types.ObjectId | null | undefined;
|
|
107
|
-
uni_assist?: {
|
|
108
|
-
status: string;
|
|
109
|
-
vpd_file_path: string;
|
|
110
|
-
vpd_paid_confirmation_file_path: string;
|
|
111
|
-
vpd_paid_confirmation_file_status: string;
|
|
112
|
-
isPaid: boolean;
|
|
113
|
-
updatedAt?: NativeDate | null | undefined;
|
|
114
|
-
} | null | undefined;
|
|
115
|
-
portal_credentials?: {
|
|
116
|
-
application_portal_a?: {
|
|
117
|
-
account?: string | null | undefined;
|
|
118
|
-
password?: string | null | undefined;
|
|
119
|
-
} | null | undefined;
|
|
120
|
-
application_portal_b?: {
|
|
121
|
-
account?: string | null | undefined;
|
|
122
|
-
password?: string | null | undefined;
|
|
123
|
-
} | null | undefined;
|
|
124
|
-
} | null | undefined;
|
|
125
|
-
admission_letter?: {
|
|
126
|
-
status: string;
|
|
127
|
-
admission_file_path: string;
|
|
128
|
-
comments: string;
|
|
129
|
-
updatedAt?: NativeDate | null | undefined;
|
|
130
|
-
} | null | undefined;
|
|
131
|
-
}>> & import("mongoose").FlatRecord<{
|
|
132
|
-
doc_modification_thread: import("mongoose").Types.DocumentArray<{
|
|
133
|
-
isFinalVersion: boolean;
|
|
134
|
-
latest_message_left_by_id: string;
|
|
135
|
-
createdAt?: NativeDate | null | undefined;
|
|
136
|
-
updatedAt?: NativeDate | null | undefined;
|
|
137
|
-
doc_thread_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
138
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
139
|
-
isFinalVersion: boolean;
|
|
140
|
-
latest_message_left_by_id: string;
|
|
141
|
-
createdAt?: NativeDate | null | undefined;
|
|
142
|
-
updatedAt?: NativeDate | null | undefined;
|
|
143
|
-
doc_thread_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
144
|
-
}> & {
|
|
145
|
-
isFinalVersion: boolean;
|
|
146
|
-
latest_message_left_by_id: string;
|
|
147
|
-
createdAt?: NativeDate | null | undefined;
|
|
148
|
-
updatedAt?: NativeDate | null | undefined;
|
|
149
|
-
doc_thread_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
150
|
-
}>;
|
|
151
|
-
reject_reason: string;
|
|
152
|
-
finalEnrolment: boolean;
|
|
153
|
-
decided: string;
|
|
154
|
-
closed: string;
|
|
155
|
-
admission: string;
|
|
156
|
-
application_year: string;
|
|
157
|
-
programId?: import("mongoose").Types.ObjectId | null | undefined;
|
|
158
|
-
studentId?: import("mongoose").Types.ObjectId | null | undefined;
|
|
159
|
-
uni_assist?: {
|
|
160
|
-
status: string;
|
|
161
|
-
vpd_file_path: string;
|
|
162
|
-
vpd_paid_confirmation_file_path: string;
|
|
163
|
-
vpd_paid_confirmation_file_status: string;
|
|
164
|
-
isPaid: boolean;
|
|
165
|
-
updatedAt?: NativeDate | null | undefined;
|
|
166
|
-
} | null | undefined;
|
|
167
|
-
portal_credentials?: {
|
|
168
|
-
application_portal_a?: {
|
|
169
|
-
account?: string | null | undefined;
|
|
170
|
-
password?: string | null | undefined;
|
|
171
|
-
} | null | undefined;
|
|
172
|
-
application_portal_b?: {
|
|
173
|
-
account?: string | null | undefined;
|
|
174
|
-
password?: string | null | undefined;
|
|
175
|
-
} | null | undefined;
|
|
176
|
-
} | null | undefined;
|
|
177
|
-
admission_letter?: {
|
|
178
|
-
status: string;
|
|
179
|
-
admission_file_path: string;
|
|
180
|
-
comments: string;
|
|
181
|
-
updatedAt?: NativeDate | null | undefined;
|
|
182
|
-
} | null | undefined;
|
|
183
|
-
}> & {
|
|
27
|
+
export interface IApplicationUniAssist {
|
|
28
|
+
status?: string;
|
|
29
|
+
vpd_file_path?: string;
|
|
30
|
+
vpd_paid_confirmation_file_path?: string;
|
|
31
|
+
vpd_paid_confirmation_file_status?: string;
|
|
32
|
+
isPaid?: boolean;
|
|
33
|
+
updatedAt?: Date;
|
|
34
|
+
}
|
|
35
|
+
export interface IApplicationPortalCredentials {
|
|
36
|
+
application_portal_a?: {
|
|
37
|
+
account?: string;
|
|
38
|
+
password?: string;
|
|
39
|
+
};
|
|
40
|
+
application_portal_b?: {
|
|
41
|
+
account?: string;
|
|
42
|
+
password?: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export interface IApplicationDocModificationThreadItem {
|
|
46
|
+
isFinalVersion?: boolean;
|
|
47
|
+
latest_message_left_by_id?: string;
|
|
48
|
+
doc_thread_id?: Schema.Types.ObjectId;
|
|
49
|
+
updatedAt?: Date;
|
|
50
|
+
createdAt?: Date;
|
|
51
|
+
}
|
|
52
|
+
export interface IApplicationAdmissionLetter {
|
|
53
|
+
status?: string;
|
|
54
|
+
admission_file_path?: string;
|
|
55
|
+
comments?: string;
|
|
56
|
+
updatedAt?: Date;
|
|
57
|
+
}
|
|
58
|
+
export interface IApplication {
|
|
59
|
+
programId?: Schema.Types.ObjectId;
|
|
60
|
+
studentId?: Schema.Types.ObjectId;
|
|
61
|
+
uni_assist?: IApplicationUniAssist;
|
|
62
|
+
portal_credentials?: IApplicationPortalCredentials;
|
|
63
|
+
doc_modification_thread?: IApplicationDocModificationThreadItem[];
|
|
64
|
+
reject_reason?: string;
|
|
65
|
+
admission_letter?: IApplicationAdmissionLetter;
|
|
66
|
+
finalEnrolment?: boolean;
|
|
67
|
+
decided?: string;
|
|
68
|
+
closed?: string;
|
|
69
|
+
admission?: string;
|
|
70
|
+
application_year?: string;
|
|
71
|
+
isLocked?: boolean;
|
|
72
|
+
}
|
|
73
|
+
export declare const applicationSchema: Schema<IApplication, import("mongoose").Model<IApplication, any, any, any, import("mongoose").Document<unknown, any, IApplication> & IApplication & {
|
|
74
|
+
_id: import("mongoose").Types.ObjectId;
|
|
75
|
+
} & {
|
|
76
|
+
__v: number;
|
|
77
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IApplication, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IApplication>> & import("mongoose").FlatRecord<IApplication> & {
|
|
184
78
|
_id: import("mongoose").Types.ObjectId;
|
|
185
79
|
} & {
|
|
186
80
|
__v: number;
|
|
@@ -24,51 +24,23 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import { Schema } from 'mongoose';
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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;
|
|
39
|
-
changes?: {
|
|
40
|
-
before?: any;
|
|
41
|
-
after?: any;
|
|
42
|
-
} | null | undefined;
|
|
43
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
44
|
-
createdAt: NativeDate;
|
|
45
|
-
updatedAt: NativeDate;
|
|
46
|
-
} & {
|
|
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;
|
|
27
|
+
export interface IAudit {
|
|
28
|
+
performedBy?: Schema.Types.ObjectId;
|
|
29
|
+
targetUserId?: Schema.Types.ObjectId;
|
|
30
|
+
targetDocumentThreadId?: Schema.Types.ObjectId;
|
|
31
|
+
interviewThreadId?: Schema.Types.ObjectId;
|
|
32
|
+
action?: string;
|
|
33
|
+
field?: string;
|
|
53
34
|
changes?: {
|
|
54
|
-
before?:
|
|
55
|
-
after?:
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
35
|
+
before?: Schema.Types.Mixed;
|
|
36
|
+
after?: Schema.Types.Mixed;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare const auditSchema: Schema<IAudit, import("mongoose").Model<IAudit, any, any, any, import("mongoose").Document<unknown, any, IAudit> & IAudit & {
|
|
40
|
+
_id: import("mongoose").Types.ObjectId;
|
|
60
41
|
} & {
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
}> & {
|
|
42
|
+
__v: number;
|
|
43
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAudit, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IAudit>> & import("mongoose").FlatRecord<IAudit> & {
|
|
72
44
|
_id: import("mongoose").Types.ObjectId;
|
|
73
45
|
} & {
|
|
74
46
|
__v: number;
|
|
@@ -24,22 +24,17 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import { Schema } from 'mongoose';
|
|
27
|
-
export
|
|
28
|
-
key
|
|
29
|
-
category
|
|
30
|
-
link
|
|
31
|
-
updatedAt?:
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}>> & import("mongoose").FlatRecord<{
|
|
38
|
-
key: string;
|
|
39
|
-
category: string;
|
|
40
|
-
link: string;
|
|
41
|
-
updatedAt?: NativeDate | null | undefined;
|
|
42
|
-
}> & {
|
|
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> & {
|
|
43
38
|
_id: import("mongoose").Types.ObjectId;
|
|
44
39
|
} & {
|
|
45
40
|
__v: number;
|
|
@@ -24,78 +24,27 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import { Schema } from 'mongoose';
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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;
|
|
27
|
+
export interface ICommunicationFile {
|
|
28
|
+
name: string;
|
|
29
|
+
path: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ICommunication {
|
|
32
|
+
student_id?: Schema.Types.ObjectId;
|
|
33
|
+
user_id?: Schema.Types.ObjectId;
|
|
34
|
+
message?: string;
|
|
35
|
+
readBy?: Schema.Types.ObjectId[];
|
|
36
|
+
timeStampReadBy?: Schema.Types.Mixed;
|
|
37
|
+
files?: ICommunicationFile[];
|
|
38
|
+
createdAt?: Date;
|
|
39
|
+
ignore_message?: boolean;
|
|
40
|
+
ignoredMessageUpdatedAt?: Date;
|
|
41
|
+
ignoredMessageBy?: Schema.Types.ObjectId;
|
|
42
|
+
}
|
|
43
|
+
export declare const communicationsSchema: Schema<ICommunication, import("mongoose").Model<ICommunication, any, any, any, import("mongoose").Document<unknown, any, ICommunication> & ICommunication & {
|
|
44
|
+
_id: import("mongoose").Types.ObjectId;
|
|
78
45
|
} & {
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
}> & {
|
|
46
|
+
__v: number;
|
|
47
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ICommunication, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ICommunication>> & import("mongoose").FlatRecord<ICommunication> & {
|
|
99
48
|
_id: import("mongoose").Types.ObjectId;
|
|
100
49
|
} & {
|
|
101
50
|
__v: number;
|