@taiger-common/model 1.0.42 → 1.0.43
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/LICENSE +21 -21
- package/README.md +23 -23
- package/dist/cjs/constants/index.js +7 -7
- package/dist/cjs/index.js +17 -17
- package/dist/cjs/model/Allcourse.js +10 -10
- package/dist/cjs/model/Application.js +78 -77
- package/dist/cjs/model/Audit.js +22 -22
- package/dist/cjs/model/Basedocumentationslink.js +10 -10
- package/dist/cjs/model/Communication.js +30 -30
- package/dist/cjs/model/Complaint.js +70 -70
- package/dist/cjs/model/Course.js +24 -24
- package/dist/cjs/model/Docspage.js +14 -14
- package/dist/cjs/model/Documentation.js +14 -14
- package/dist/cjs/model/Documentthread.js +50 -50
- package/dist/cjs/model/Event.js +59 -59
- package/dist/cjs/model/Internaldoc.js +14 -14
- package/dist/cjs/model/Interval.js +39 -39
- package/dist/cjs/model/Interview.js +36 -36
- package/dist/cjs/model/InterviewSurveyResponse.js +24 -24
- package/dist/cjs/model/Keywordset.js +48 -48
- package/dist/cjs/model/Note.js +9 -9
- package/dist/cjs/model/Permission.js +56 -56
- package/dist/cjs/model/Program.js +256 -260
- package/dist/cjs/model/Programrequirement.js +122 -122
- package/dist/cjs/model/ResponseTime.js +27 -27
- package/dist/cjs/model/SurveyInput.js +56 -56
- package/dist/cjs/model/Template.js +19 -19
- package/dist/cjs/model/Tenant.js +9 -9
- package/dist/cjs/model/Ticket.js +55 -55
- package/dist/cjs/model/Token.js +20 -20
- package/dist/cjs/model/User.js +604 -604
- package/dist/cjs/model/index.js +44 -44
- package/dist/esm/constants/index.js +4 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/model/Allcourse.js +7 -7
- package/dist/esm/model/Application.js +75 -74
- package/dist/esm/model/Audit.js +19 -19
- package/dist/esm/model/Basedocumentationslink.js +7 -7
- package/dist/esm/model/Communication.js +27 -27
- package/dist/esm/model/Complaint.js +67 -67
- package/dist/esm/model/Course.js +21 -21
- package/dist/esm/model/Docspage.js +11 -11
- package/dist/esm/model/Documentation.js +11 -11
- package/dist/esm/model/Documentthread.js +47 -47
- package/dist/esm/model/Event.js +56 -56
- package/dist/esm/model/Internaldoc.js +11 -11
- package/dist/esm/model/Interval.js +36 -36
- package/dist/esm/model/Interview.js +33 -33
- package/dist/esm/model/InterviewSurveyResponse.js +21 -21
- package/dist/esm/model/Keywordset.js +45 -45
- package/dist/esm/model/Note.js +6 -6
- package/dist/esm/model/Permission.js +53 -53
- package/dist/esm/model/Program.js +253 -257
- package/dist/esm/model/Programrequirement.js +119 -119
- package/dist/esm/model/ResponseTime.js +24 -24
- package/dist/esm/model/SurveyInput.js +53 -53
- package/dist/esm/model/Template.js +16 -16
- package/dist/esm/model/Tenant.js +6 -6
- package/dist/esm/model/Ticket.js +52 -52
- package/dist/esm/model/Token.js +17 -17
- package/dist/esm/model/User.js +599 -599
- package/dist/esm/model/index.js +28 -28
- package/dist/types/constants/index.d.ts +4 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/types/model/Allcourse.d.ts +63 -63
- package/dist/types/model/Application.d.ts +190 -187
- package/dist/types/model/Audit.d.ts +75 -75
- package/dist/types/model/Basedocumentationslink.d.ts +46 -46
- package/dist/types/model/Communication.d.ts +102 -102
- package/dist/types/model/Complaint.d.ts +201 -201
- package/dist/types/model/Course.d.ts +79 -79
- package/dist/types/model/Docspage.d.ts +68 -68
- package/dist/types/model/Documentation.d.ts +58 -58
- package/dist/types/model/Documentthread.d.ts +211 -211
- package/dist/types/model/Event.d.ts +87 -87
- package/dist/types/model/Internaldoc.d.ts +58 -58
- package/dist/types/model/Interval.d.ts +58 -58
- package/dist/types/model/Interview.d.ts +81 -81
- package/dist/types/model/InterviewSurveyResponse.d.ts +93 -93
- package/dist/types/model/Keywordset.d.ts +75 -75
- package/dist/types/model/Note.d.ts +43 -43
- package/dist/types/model/Permission.d.ts +87 -87
- package/dist/types/model/Program.d.ts +519 -526
- package/dist/types/model/Programrequirement.d.ts +171 -171
- package/dist/types/model/ResponseTime.d.ts +49 -49
- package/dist/types/model/SurveyInput.d.ts +121 -121
- package/dist/types/model/Template.d.ts +46 -46
- package/dist/types/model/Tenant.d.ts +43 -43
- package/dist/types/model/Ticket.d.ts +69 -69
- package/dist/types/model/Token.d.ts +43 -43
- package/dist/types/model/User.d.ts +1 -1
- package/dist/types/model/index.d.ts +28 -28
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
package/dist/cjs/model/index.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Allcourse"), exports);
|
|
18
|
-
__exportStar(require("./Application"), exports);
|
|
19
|
-
__exportStar(require("./Audit"), exports);
|
|
20
|
-
__exportStar(require("./Basedocumentationslink"), exports);
|
|
21
|
-
__exportStar(require("./Communication"), exports);
|
|
22
|
-
__exportStar(require("./Complaint"), exports);
|
|
23
|
-
__exportStar(require("./Course"), exports);
|
|
24
|
-
__exportStar(require("./Docspage"), exports);
|
|
25
|
-
__exportStar(require("./Documentation"), exports);
|
|
26
|
-
__exportStar(require("./Documentthread"), exports);
|
|
27
|
-
__exportStar(require("./Event"), exports);
|
|
28
|
-
__exportStar(require("./Internaldoc"), exports);
|
|
29
|
-
__exportStar(require("./Interval"), exports);
|
|
30
|
-
__exportStar(require("./Event"), exports);
|
|
31
|
-
__exportStar(require("./Interview"), exports);
|
|
32
|
-
__exportStar(require("./InterviewSurveyResponse"), exports);
|
|
33
|
-
__exportStar(require("./Keywordset"), exports);
|
|
34
|
-
__exportStar(require("./Note"), exports);
|
|
35
|
-
__exportStar(require("./Permission"), exports);
|
|
36
|
-
__exportStar(require("./Program"), exports);
|
|
37
|
-
__exportStar(require("./Programrequirement"), exports);
|
|
38
|
-
__exportStar(require("./ResponseTime"), exports);
|
|
39
|
-
__exportStar(require("./SurveyInput"), exports);
|
|
40
|
-
__exportStar(require("./Template"), exports);
|
|
41
|
-
__exportStar(require("./Tenant"), exports);
|
|
42
|
-
__exportStar(require("./Ticket"), exports);
|
|
43
|
-
__exportStar(require("./Token"), exports);
|
|
44
|
-
__exportStar(require("./User"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Allcourse"), exports);
|
|
18
|
+
__exportStar(require("./Application"), exports);
|
|
19
|
+
__exportStar(require("./Audit"), exports);
|
|
20
|
+
__exportStar(require("./Basedocumentationslink"), exports);
|
|
21
|
+
__exportStar(require("./Communication"), exports);
|
|
22
|
+
__exportStar(require("./Complaint"), exports);
|
|
23
|
+
__exportStar(require("./Course"), exports);
|
|
24
|
+
__exportStar(require("./Docspage"), exports);
|
|
25
|
+
__exportStar(require("./Documentation"), exports);
|
|
26
|
+
__exportStar(require("./Documentthread"), exports);
|
|
27
|
+
__exportStar(require("./Event"), exports);
|
|
28
|
+
__exportStar(require("./Internaldoc"), exports);
|
|
29
|
+
__exportStar(require("./Interval"), exports);
|
|
30
|
+
__exportStar(require("./Event"), exports);
|
|
31
|
+
__exportStar(require("./Interview"), exports);
|
|
32
|
+
__exportStar(require("./InterviewSurveyResponse"), exports);
|
|
33
|
+
__exportStar(require("./Keywordset"), exports);
|
|
34
|
+
__exportStar(require("./Note"), exports);
|
|
35
|
+
__exportStar(require("./Permission"), exports);
|
|
36
|
+
__exportStar(require("./Program"), exports);
|
|
37
|
+
__exportStar(require("./Programrequirement"), exports);
|
|
38
|
+
__exportStar(require("./ResponseTime"), exports);
|
|
39
|
+
__exportStar(require("./SurveyInput"), exports);
|
|
40
|
+
__exportStar(require("./Template"), exports);
|
|
41
|
+
__exportStar(require("./Tenant"), exports);
|
|
42
|
+
__exportStar(require("./Ticket"), exports);
|
|
43
|
+
__exportStar(require("./Token"), exports);
|
|
44
|
+
__exportStar(require("./User"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export var TicketStatus = {
|
|
2
|
-
Open: 'open',
|
|
3
|
-
Resolved: 'resolved'
|
|
4
|
-
};
|
|
1
|
+
export var TicketStatus = {
|
|
2
|
+
Open: 'open',
|
|
3
|
+
Resolved: 'resolved'
|
|
4
|
+
};
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './model';
|
|
1
|
+
export * from './model';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
export var allCourseSchema = new Schema({
|
|
3
|
-
updatedBy: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
4
|
-
all_course_chinese: { type: String, required: true },
|
|
5
|
-
all_course_english: { type: String, required: true },
|
|
6
|
-
description: { type: String, maxlength: 2000 }
|
|
7
|
-
}, { timestamps: true });
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export var allCourseSchema = new Schema({
|
|
3
|
+
updatedBy: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
4
|
+
all_course_chinese: { type: String, required: true },
|
|
5
|
+
all_course_english: { type: String, required: true },
|
|
6
|
+
description: { type: String, maxlength: 2000 }
|
|
7
|
+
}, { timestamps: true });
|
|
@@ -1,74 +1,75 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
export var applicationSchema = new Schema({
|
|
3
|
-
programId: { type: Schema.Types.ObjectId, ref: 'Program' },
|
|
4
|
-
studentId: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
5
|
-
uni_assist: {
|
|
6
|
-
status: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: 'notstarted'
|
|
9
|
-
},
|
|
10
|
-
vpd_file_path: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: ''
|
|
13
|
-
},
|
|
14
|
-
vpd_paid_confirmation_file_path: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: ''
|
|
17
|
-
},
|
|
18
|
-
vpd_paid_confirmation_file_status: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: ''
|
|
21
|
-
},
|
|
22
|
-
isPaid: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: false
|
|
25
|
-
},
|
|
26
|
-
updatedAt: Date
|
|
27
|
-
},
|
|
28
|
-
portal_credentials: {
|
|
29
|
-
application_portal_a: {
|
|
30
|
-
account: { type: String, select: false, trim: true },
|
|
31
|
-
password: { type: String, select: false, trim: true }
|
|
32
|
-
},
|
|
33
|
-
application_portal_b: {
|
|
34
|
-
account: { type: String, select: false, trim: true },
|
|
35
|
-
password: { type: String, select: false, trim: true }
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
doc_modification_thread: [
|
|
39
|
-
{
|
|
40
|
-
isFinalVersion: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: false
|
|
43
|
-
},
|
|
44
|
-
latest_message_left_by_id: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: ''
|
|
47
|
-
},
|
|
48
|
-
doc_thread_id: { type: Schema.Types.ObjectId, ref: 'Documentthread' },
|
|
49
|
-
updatedAt: Date,
|
|
50
|
-
createdAt: Date
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
reject_reason: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: ''
|
|
56
|
-
},
|
|
57
|
-
admission_letter: {
|
|
58
|
-
status: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: 'notstarted'
|
|
61
|
-
},
|
|
62
|
-
admission_file_path: {
|
|
63
|
-
type: String,
|
|
64
|
-
default: ''
|
|
65
|
-
},
|
|
66
|
-
comments: { type: String, default: '' },
|
|
67
|
-
updatedAt: Date
|
|
68
|
-
},
|
|
69
|
-
finalEnrolment: { type: Boolean, default: false },
|
|
70
|
-
decided: { type: String, default: '-' },
|
|
71
|
-
closed: { type: String, default: '-' },
|
|
72
|
-
admission: { type: String, default: '-' },
|
|
73
|
-
application_year: { type: String, default: '' }
|
|
74
|
-
}
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export var applicationSchema = new Schema({
|
|
3
|
+
programId: { type: Schema.Types.ObjectId, ref: 'Program' },
|
|
4
|
+
studentId: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
5
|
+
uni_assist: {
|
|
6
|
+
status: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: 'notstarted'
|
|
9
|
+
},
|
|
10
|
+
vpd_file_path: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ''
|
|
13
|
+
},
|
|
14
|
+
vpd_paid_confirmation_file_path: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ''
|
|
17
|
+
},
|
|
18
|
+
vpd_paid_confirmation_file_status: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: ''
|
|
21
|
+
},
|
|
22
|
+
isPaid: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
},
|
|
26
|
+
updatedAt: Date
|
|
27
|
+
},
|
|
28
|
+
portal_credentials: {
|
|
29
|
+
application_portal_a: {
|
|
30
|
+
account: { type: String, select: false, trim: true },
|
|
31
|
+
password: { type: String, select: false, trim: true }
|
|
32
|
+
},
|
|
33
|
+
application_portal_b: {
|
|
34
|
+
account: { type: String, select: false, trim: true },
|
|
35
|
+
password: { type: String, select: false, trim: true }
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
doc_modification_thread: [
|
|
39
|
+
{
|
|
40
|
+
isFinalVersion: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false
|
|
43
|
+
},
|
|
44
|
+
latest_message_left_by_id: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: ''
|
|
47
|
+
},
|
|
48
|
+
doc_thread_id: { type: Schema.Types.ObjectId, ref: 'Documentthread' },
|
|
49
|
+
updatedAt: Date,
|
|
50
|
+
createdAt: Date
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
reject_reason: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: ''
|
|
56
|
+
},
|
|
57
|
+
admission_letter: {
|
|
58
|
+
status: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: 'notstarted'
|
|
61
|
+
},
|
|
62
|
+
admission_file_path: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: ''
|
|
65
|
+
},
|
|
66
|
+
comments: { type: String, default: '' },
|
|
67
|
+
updatedAt: Date
|
|
68
|
+
},
|
|
69
|
+
finalEnrolment: { type: Boolean, default: false },
|
|
70
|
+
decided: { type: String, default: '-' },
|
|
71
|
+
closed: { type: String, default: '-' },
|
|
72
|
+
admission: { type: String, default: '-' },
|
|
73
|
+
application_year: { type: String, default: '' },
|
|
74
|
+
isLocked: { type: Boolean, default: false }
|
|
75
|
+
});
|
package/dist/esm/model/Audit.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
export var auditSchema = new Schema({
|
|
3
|
-
performedBy: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
4
|
-
targetUserId: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
5
|
-
targetDocumentThreadId: {
|
|
6
|
-
type: Schema.Types.ObjectId,
|
|
7
|
-
ref: 'Documentthread'
|
|
8
|
-
},
|
|
9
|
-
interviewThreadId: {
|
|
10
|
-
type: Schema.Types.ObjectId,
|
|
11
|
-
ref: 'Interview'
|
|
12
|
-
},
|
|
13
|
-
action: String,
|
|
14
|
-
field: String,
|
|
15
|
-
changes: {
|
|
16
|
-
before: Schema.Types.Mixed,
|
|
17
|
-
after: Schema.Types.Mixed
|
|
18
|
-
}
|
|
19
|
-
}, { timestamps: true });
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export var auditSchema = new Schema({
|
|
3
|
+
performedBy: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
4
|
+
targetUserId: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
5
|
+
targetDocumentThreadId: {
|
|
6
|
+
type: Schema.Types.ObjectId,
|
|
7
|
+
ref: 'Documentthread'
|
|
8
|
+
},
|
|
9
|
+
interviewThreadId: {
|
|
10
|
+
type: Schema.Types.ObjectId,
|
|
11
|
+
ref: 'Interview'
|
|
12
|
+
},
|
|
13
|
+
action: String,
|
|
14
|
+
field: String,
|
|
15
|
+
changes: {
|
|
16
|
+
before: Schema.Types.Mixed,
|
|
17
|
+
after: Schema.Types.Mixed
|
|
18
|
+
}
|
|
19
|
+
}, { timestamps: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
export var basedocumentationslinksSchema = new Schema({
|
|
3
|
-
key: { type: String, default: '' },
|
|
4
|
-
category: { type: String, default: 'general' },
|
|
5
|
-
link: { type: String, default: '' },
|
|
6
|
-
updatedAt: Date
|
|
7
|
-
});
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export var basedocumentationslinksSchema = new Schema({
|
|
3
|
+
key: { type: String, default: '' },
|
|
4
|
+
category: { type: String, default: 'general' },
|
|
5
|
+
link: { type: String, default: '' },
|
|
6
|
+
updatedAt: Date
|
|
7
|
+
});
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
export var communicationsSchema = new Schema({
|
|
3
|
-
student_id: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
4
|
-
user_id: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
5
|
-
message: {
|
|
6
|
-
type: String,
|
|
7
|
-
default: ''
|
|
8
|
-
},
|
|
9
|
-
readBy: [{ type: Schema.Types.ObjectId, ref: 'User' }],
|
|
10
|
-
timeStampReadBy: Schema.Types.Mixed,
|
|
11
|
-
files: [
|
|
12
|
-
{
|
|
13
|
-
name: {
|
|
14
|
-
type: String,
|
|
15
|
-
required: true
|
|
16
|
-
},
|
|
17
|
-
path: {
|
|
18
|
-
type: String,
|
|
19
|
-
required: true
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
createdAt: Date,
|
|
24
|
-
ignore_message: Boolean,
|
|
25
|
-
ignoredMessageUpdatedAt: Date,
|
|
26
|
-
ignoredMessageBy: { type: Schema.Types.ObjectId, ref: 'User' }
|
|
27
|
-
}, { timestamps: true });
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export var communicationsSchema = new Schema({
|
|
3
|
+
student_id: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
4
|
+
user_id: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
5
|
+
message: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: ''
|
|
8
|
+
},
|
|
9
|
+
readBy: [{ type: Schema.Types.ObjectId, ref: 'User' }],
|
|
10
|
+
timeStampReadBy: Schema.Types.Mixed,
|
|
11
|
+
files: [
|
|
12
|
+
{
|
|
13
|
+
name: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
path: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: true
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
createdAt: Date,
|
|
24
|
+
ignore_message: Boolean,
|
|
25
|
+
ignoredMessageUpdatedAt: Date,
|
|
26
|
+
ignoredMessageBy: { type: Schema.Types.ObjectId, ref: 'User' }
|
|
27
|
+
}, { timestamps: true });
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
import { TicketStatus } from '../constants';
|
|
3
|
-
export var complaintSchema = new Schema({
|
|
4
|
-
requester_id: {
|
|
5
|
-
type: Schema.Types.ObjectId,
|
|
6
|
-
required: true,
|
|
7
|
-
ref: 'User'
|
|
8
|
-
},
|
|
9
|
-
status: {
|
|
10
|
-
type: String,
|
|
11
|
-
enum: Object.values(TicketStatus),
|
|
12
|
-
default: 'open'
|
|
13
|
-
},
|
|
14
|
-
title: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: '',
|
|
17
|
-
validate: {
|
|
18
|
-
validator: function (value) {
|
|
19
|
-
// Maximum allowed length
|
|
20
|
-
return value.length <= 200;
|
|
21
|
-
},
|
|
22
|
-
message: 'Description exceeds the maximum allowed length of 3000 characters'
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
category: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: 'others'
|
|
28
|
-
},
|
|
29
|
-
description: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: '',
|
|
32
|
-
validate: {
|
|
33
|
-
validator: function (value) {
|
|
34
|
-
// Maximum allowed length
|
|
35
|
-
return value.length <= 3000;
|
|
36
|
-
},
|
|
37
|
-
message: 'Description exceeds the maximum allowed length of 3000 characters'
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
messages: [
|
|
41
|
-
{
|
|
42
|
-
user_id: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
43
|
-
message: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: ''
|
|
46
|
-
},
|
|
47
|
-
createdAt: Date,
|
|
48
|
-
file: [
|
|
49
|
-
{
|
|
50
|
-
name: {
|
|
51
|
-
type: String,
|
|
52
|
-
required: true
|
|
53
|
-
},
|
|
54
|
-
path: {
|
|
55
|
-
type: String,
|
|
56
|
-
required: true
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
ignore_message: Boolean
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
createdAt: {
|
|
64
|
-
type: Date,
|
|
65
|
-
default: Date.now
|
|
66
|
-
}
|
|
67
|
-
}, { timestamps: true });
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
import { TicketStatus } from '../constants';
|
|
3
|
+
export var complaintSchema = new Schema({
|
|
4
|
+
requester_id: {
|
|
5
|
+
type: Schema.Types.ObjectId,
|
|
6
|
+
required: true,
|
|
7
|
+
ref: 'User'
|
|
8
|
+
},
|
|
9
|
+
status: {
|
|
10
|
+
type: String,
|
|
11
|
+
enum: Object.values(TicketStatus),
|
|
12
|
+
default: 'open'
|
|
13
|
+
},
|
|
14
|
+
title: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: '',
|
|
17
|
+
validate: {
|
|
18
|
+
validator: function (value) {
|
|
19
|
+
// Maximum allowed length
|
|
20
|
+
return value.length <= 200;
|
|
21
|
+
},
|
|
22
|
+
message: 'Description exceeds the maximum allowed length of 3000 characters'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
category: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: 'others'
|
|
28
|
+
},
|
|
29
|
+
description: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: '',
|
|
32
|
+
validate: {
|
|
33
|
+
validator: function (value) {
|
|
34
|
+
// Maximum allowed length
|
|
35
|
+
return value.length <= 3000;
|
|
36
|
+
},
|
|
37
|
+
message: 'Description exceeds the maximum allowed length of 3000 characters'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
messages: [
|
|
41
|
+
{
|
|
42
|
+
user_id: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
43
|
+
message: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: ''
|
|
46
|
+
},
|
|
47
|
+
createdAt: Date,
|
|
48
|
+
file: [
|
|
49
|
+
{
|
|
50
|
+
name: {
|
|
51
|
+
type: String,
|
|
52
|
+
required: true
|
|
53
|
+
},
|
|
54
|
+
path: {
|
|
55
|
+
type: String,
|
|
56
|
+
required: true
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
ignore_message: Boolean
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
createdAt: {
|
|
64
|
+
type: Date,
|
|
65
|
+
default: Date.now
|
|
66
|
+
}
|
|
67
|
+
}, { timestamps: true });
|
package/dist/esm/model/Course.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
export var coursesSchema = new Schema({
|
|
3
|
-
student_id: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
4
|
-
name: { type: String, default: '' },
|
|
5
|
-
table_data_string: { type: String, default: '' },
|
|
6
|
-
table_data_string_locked: { type: Boolean, default: false },
|
|
7
|
-
table_data_string_taiger_guided: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: '[{"course_chinese":"","course_english":"","credits":"0","grades":""}]'
|
|
10
|
-
},
|
|
11
|
-
updatedAt: Date,
|
|
12
|
-
analysis: {
|
|
13
|
-
path: { type: String, default: '' },
|
|
14
|
-
analyzed_course: [{ type: String, default: '' }],
|
|
15
|
-
isAnalysed: { type: Boolean, default: false },
|
|
16
|
-
isAnalysedV2: { type: Boolean, default: false },
|
|
17
|
-
pathV2: { type: String, default: '' },
|
|
18
|
-
updatedAtV2: Date,
|
|
19
|
-
updatedAt: Date
|
|
20
|
-
}
|
|
21
|
-
});
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export var coursesSchema = new Schema({
|
|
3
|
+
student_id: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
4
|
+
name: { type: String, default: '' },
|
|
5
|
+
table_data_string: { type: String, default: '' },
|
|
6
|
+
table_data_string_locked: { type: Boolean, default: false },
|
|
7
|
+
table_data_string_taiger_guided: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: '[{"course_chinese":"","course_english":"","credits":"0","grades":""}]'
|
|
10
|
+
},
|
|
11
|
+
updatedAt: Date,
|
|
12
|
+
analysis: {
|
|
13
|
+
path: { type: String, default: '' },
|
|
14
|
+
analyzed_course: [{ type: String, default: '' }],
|
|
15
|
+
isAnalysed: { type: Boolean, default: false },
|
|
16
|
+
isAnalysedV2: { type: Boolean, default: false },
|
|
17
|
+
pathV2: { type: String, default: '' },
|
|
18
|
+
updatedAtV2: Date,
|
|
19
|
+
updatedAt: Date
|
|
20
|
+
}
|
|
21
|
+
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
export var docspagesSchema = new Schema({
|
|
3
|
-
name: { type: String, default: '' },
|
|
4
|
-
title: { type: String, default: '' },
|
|
5
|
-
category: { type: String, default: '' },
|
|
6
|
-
prop: { type: String, default: '' },
|
|
7
|
-
author: { type: String, default: '' },
|
|
8
|
-
text: { type: String, default: '' },
|
|
9
|
-
country: { type: String, default: '' },
|
|
10
|
-
updatedAt: Date
|
|
11
|
-
});
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export var docspagesSchema = new Schema({
|
|
3
|
+
name: { type: String, default: '' },
|
|
4
|
+
title: { type: String, default: '' },
|
|
5
|
+
category: { type: String, default: '' },
|
|
6
|
+
prop: { type: String, default: '' },
|
|
7
|
+
author: { type: String, default: '' },
|
|
8
|
+
text: { type: String, default: '' },
|
|
9
|
+
country: { type: String, default: '' },
|
|
10
|
+
updatedAt: Date
|
|
11
|
+
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
export var documentationsSchema = new Schema({
|
|
3
|
-
name: { type: String, default: '' },
|
|
4
|
-
title: { type: String, default: '' },
|
|
5
|
-
category: { type: String, default: '' },
|
|
6
|
-
author: { type: String, default: '' },
|
|
7
|
-
prop: { type: String, default: '' },
|
|
8
|
-
text: { type: String, default: '' },
|
|
9
|
-
country: { type: String, default: '' },
|
|
10
|
-
updatedAt: Date
|
|
11
|
-
});
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export var documentationsSchema = new Schema({
|
|
3
|
+
name: { type: String, default: '' },
|
|
4
|
+
title: { type: String, default: '' },
|
|
5
|
+
category: { type: String, default: '' },
|
|
6
|
+
author: { type: String, default: '' },
|
|
7
|
+
prop: { type: String, default: '' },
|
|
8
|
+
text: { type: String, default: '' },
|
|
9
|
+
country: { type: String, default: '' },
|
|
10
|
+
updatedAt: Date
|
|
11
|
+
});
|