@taiger-common/model 1.0.43 → 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/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 -78
- 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 +258 -256
- 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 +43 -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 -75
- 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 +255 -253
- 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 +27 -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 +41 -63
- package/dist/types/model/Application.d.ts +81 -190
- package/dist/types/model/Audit.d.ts +47 -75
- package/dist/types/model/Basedocumentationslink.d.ts +41 -46
- package/dist/types/model/Communication.d.ts +51 -102
- package/dist/types/model/Complaint.d.ts +55 -201
- package/dist/types/model/Course.d.ts +53 -79
- package/dist/types/model/Docspage.d.ts +45 -68
- package/dist/types/model/Documentation.d.ts +45 -58
- package/dist/types/model/Documentthread.d.ts +62 -211
- package/dist/types/model/Event.d.ts +47 -87
- package/dist/types/model/Internaldoc.d.ts +45 -58
- package/dist/types/model/Interval.d.ts +45 -58
- package/dist/types/model/Interview.d.ts +49 -81
- package/dist/types/model/InterviewSurveyResponse.d.ts +48 -93
- package/dist/types/model/Keywordset.d.ts +45 -75
- package/dist/types/model/Note.d.ts +40 -43
- package/dist/types/model/Permission.d.ts +51 -87
- package/dist/types/model/Program.d.ts +356 -519
- package/dist/types/model/Programrequirement.d.ts +68 -171
- package/dist/types/model/ResponseTime.d.ts +42 -49
- package/dist/types/model/SurveyInput.d.ts +52 -121
- package/dist/types/model/Template.d.ts +41 -46
- package/dist/types/model/Tenant.d.ts +40 -43
- package/dist/types/model/Ticket.d.ts +45 -69
- package/dist/types/model/Token.d.ts +40 -43
- package/dist/types/model/User.d.ts +199 -1
- package/dist/types/model/index.d.ts +27 -28
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 LIYUNG
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 LIYUNG
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
npm publish package commands:
|
|
2
|
-
|
|
3
|
-
# Cleanup
|
|
4
|
-
npm run clean
|
|
5
|
-
|
|
6
|
-
# Stage, commit, and push changes
|
|
7
|
-
git add .
|
|
8
|
-
git commit -m "fix: your_commit"
|
|
9
|
-
git push origin main
|
|
10
|
-
|
|
11
|
-
# Run build
|
|
12
|
-
npm run build
|
|
13
|
-
|
|
14
|
-
# Bump version
|
|
15
|
-
npm version patch # or minor/major
|
|
16
|
-
|
|
17
|
-
# Push tags
|
|
18
|
-
git push origin main --tags
|
|
19
|
-
|
|
20
|
-
# Publish to npm
|
|
21
|
-
npm publish
|
|
22
|
-
|
|
23
|
-
# Concat command for powershell (please modify the commit message)
|
|
1
|
+
npm publish package commands:
|
|
2
|
+
|
|
3
|
+
# Cleanup
|
|
4
|
+
npm run clean
|
|
5
|
+
|
|
6
|
+
# Stage, commit, and push changes
|
|
7
|
+
git add .
|
|
8
|
+
git commit -m "fix: your_commit"
|
|
9
|
+
git push origin main
|
|
10
|
+
|
|
11
|
+
# Run build
|
|
12
|
+
npm run build
|
|
13
|
+
|
|
14
|
+
# Bump version
|
|
15
|
+
npm version patch # or minor/major
|
|
16
|
+
|
|
17
|
+
# Push tags
|
|
18
|
+
git push origin main --tags
|
|
19
|
+
|
|
20
|
+
# Publish to npm
|
|
21
|
+
npm publish
|
|
22
|
+
|
|
23
|
+
# Concat command for powershell (please modify the commit message)
|
|
24
24
|
git add .; git commit -m "fix: update model"; git push origin main; npm run build; npm version patch; git push origin main --tags; npm publish
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TicketStatus = void 0;
|
|
4
|
-
exports.TicketStatus = {
|
|
5
|
-
Open: 'open',
|
|
6
|
-
Resolved: 'resolved'
|
|
7
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TicketStatus = void 0;
|
|
4
|
+
exports.TicketStatus = {
|
|
5
|
+
Open: 'open',
|
|
6
|
+
Resolved: 'resolved'
|
|
7
|
+
};
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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("./model"), 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("./model"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.allCourseSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.allCourseSchema = new mongoose_1.Schema({
|
|
6
|
-
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
-
all_course_chinese: { type: String, required: true },
|
|
8
|
-
all_course_english: { type: String, required: true },
|
|
9
|
-
description: { type: String, maxlength: 2000 }
|
|
10
|
-
}, { timestamps: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.allCourseSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.allCourseSchema = new mongoose_1.Schema({
|
|
6
|
+
updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
+
all_course_chinese: { type: String, required: true },
|
|
8
|
+
all_course_english: { type: String, required: true },
|
|
9
|
+
description: { type: String, maxlength: 2000 }
|
|
10
|
+
}, { timestamps: true });
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.applicationSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.applicationSchema = new mongoose_1.Schema({
|
|
6
|
-
programId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Program' },
|
|
7
|
-
studentId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
8
|
-
uni_assist: {
|
|
9
|
-
status: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: 'notstarted'
|
|
12
|
-
},
|
|
13
|
-
vpd_file_path: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: ''
|
|
16
|
-
},
|
|
17
|
-
vpd_paid_confirmation_file_path: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: ''
|
|
20
|
-
},
|
|
21
|
-
vpd_paid_confirmation_file_status: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: ''
|
|
24
|
-
},
|
|
25
|
-
isPaid: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: false
|
|
28
|
-
},
|
|
29
|
-
updatedAt: Date
|
|
30
|
-
},
|
|
31
|
-
portal_credentials: {
|
|
32
|
-
application_portal_a: {
|
|
33
|
-
account: { type: String, select: false, trim: true },
|
|
34
|
-
password: { type: String, select: false, trim: true }
|
|
35
|
-
},
|
|
36
|
-
application_portal_b: {
|
|
37
|
-
account: { type: String, select: false, trim: true },
|
|
38
|
-
password: { type: String, select: false, trim: true }
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
doc_modification_thread: [
|
|
42
|
-
{
|
|
43
|
-
isFinalVersion: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: false
|
|
46
|
-
},
|
|
47
|
-
latest_message_left_by_id: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: ''
|
|
50
|
-
},
|
|
51
|
-
doc_thread_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Documentthread' },
|
|
52
|
-
updatedAt: Date,
|
|
53
|
-
createdAt: Date
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
reject_reason: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: ''
|
|
59
|
-
},
|
|
60
|
-
admission_letter: {
|
|
61
|
-
status: {
|
|
62
|
-
type: String,
|
|
63
|
-
default: 'notstarted'
|
|
64
|
-
},
|
|
65
|
-
admission_file_path: {
|
|
66
|
-
type: String,
|
|
67
|
-
default: ''
|
|
68
|
-
},
|
|
69
|
-
comments: { type: String, default: '' },
|
|
70
|
-
updatedAt: Date
|
|
71
|
-
},
|
|
72
|
-
finalEnrolment: { type: Boolean, default: false },
|
|
73
|
-
decided: { type: String, default: '-' },
|
|
74
|
-
closed: { type: String, default: '-' },
|
|
75
|
-
admission: { type: String, default: '-' },
|
|
76
|
-
application_year: { type: String, default: '' },
|
|
77
|
-
isLocked: { type: Boolean, default: false }
|
|
78
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.applicationSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.applicationSchema = new mongoose_1.Schema({
|
|
6
|
+
programId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Program' },
|
|
7
|
+
studentId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
8
|
+
uni_assist: {
|
|
9
|
+
status: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: 'notstarted'
|
|
12
|
+
},
|
|
13
|
+
vpd_file_path: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ''
|
|
16
|
+
},
|
|
17
|
+
vpd_paid_confirmation_file_path: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ''
|
|
20
|
+
},
|
|
21
|
+
vpd_paid_confirmation_file_status: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ''
|
|
24
|
+
},
|
|
25
|
+
isPaid: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false
|
|
28
|
+
},
|
|
29
|
+
updatedAt: Date
|
|
30
|
+
},
|
|
31
|
+
portal_credentials: {
|
|
32
|
+
application_portal_a: {
|
|
33
|
+
account: { type: String, select: false, trim: true },
|
|
34
|
+
password: { type: String, select: false, trim: true }
|
|
35
|
+
},
|
|
36
|
+
application_portal_b: {
|
|
37
|
+
account: { type: String, select: false, trim: true },
|
|
38
|
+
password: { type: String, select: false, trim: true }
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
doc_modification_thread: [
|
|
42
|
+
{
|
|
43
|
+
isFinalVersion: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
latest_message_left_by_id: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: ''
|
|
50
|
+
},
|
|
51
|
+
doc_thread_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Documentthread' },
|
|
52
|
+
updatedAt: Date,
|
|
53
|
+
createdAt: Date
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
reject_reason: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: ''
|
|
59
|
+
},
|
|
60
|
+
admission_letter: {
|
|
61
|
+
status: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: 'notstarted'
|
|
64
|
+
},
|
|
65
|
+
admission_file_path: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: ''
|
|
68
|
+
},
|
|
69
|
+
comments: { type: String, default: '' },
|
|
70
|
+
updatedAt: Date
|
|
71
|
+
},
|
|
72
|
+
finalEnrolment: { type: Boolean, default: false },
|
|
73
|
+
decided: { type: String, default: '-' },
|
|
74
|
+
closed: { type: String, default: '-' },
|
|
75
|
+
admission: { type: String, default: '-' },
|
|
76
|
+
application_year: { type: String, default: '' },
|
|
77
|
+
isLocked: { type: Boolean, default: false }
|
|
78
|
+
});
|
package/dist/cjs/model/Audit.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.auditSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.auditSchema = new mongoose_1.Schema({
|
|
6
|
-
performedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
-
targetUserId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
8
|
-
targetDocumentThreadId: {
|
|
9
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
10
|
-
ref: 'Documentthread'
|
|
11
|
-
},
|
|
12
|
-
interviewThreadId: {
|
|
13
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
14
|
-
ref: 'Interview'
|
|
15
|
-
},
|
|
16
|
-
action: String,
|
|
17
|
-
field: String,
|
|
18
|
-
changes: {
|
|
19
|
-
before: mongoose_1.Schema.Types.Mixed,
|
|
20
|
-
after: mongoose_1.Schema.Types.Mixed
|
|
21
|
-
}
|
|
22
|
-
}, { timestamps: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.auditSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.auditSchema = new mongoose_1.Schema({
|
|
6
|
+
performedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
+
targetUserId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
8
|
+
targetDocumentThreadId: {
|
|
9
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
10
|
+
ref: 'Documentthread'
|
|
11
|
+
},
|
|
12
|
+
interviewThreadId: {
|
|
13
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
14
|
+
ref: 'Interview'
|
|
15
|
+
},
|
|
16
|
+
action: String,
|
|
17
|
+
field: String,
|
|
18
|
+
changes: {
|
|
19
|
+
before: mongoose_1.Schema.Types.Mixed,
|
|
20
|
+
after: mongoose_1.Schema.Types.Mixed
|
|
21
|
+
}
|
|
22
|
+
}, { timestamps: true });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.basedocumentationslinksSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.basedocumentationslinksSchema = new mongoose_1.Schema({
|
|
6
|
-
key: { type: String, default: '' },
|
|
7
|
-
category: { type: String, default: 'general' },
|
|
8
|
-
link: { type: String, default: '' },
|
|
9
|
-
updatedAt: Date
|
|
10
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.basedocumentationslinksSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.basedocumentationslinksSchema = new mongoose_1.Schema({
|
|
6
|
+
key: { type: String, default: '' },
|
|
7
|
+
category: { type: String, default: 'general' },
|
|
8
|
+
link: { type: String, default: '' },
|
|
9
|
+
updatedAt: Date
|
|
10
|
+
});
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.communicationsSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.communicationsSchema = new mongoose_1.Schema({
|
|
6
|
-
student_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
-
user_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
8
|
-
message: {
|
|
9
|
-
type: String,
|
|
10
|
-
default: ''
|
|
11
|
-
},
|
|
12
|
-
readBy: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
13
|
-
timeStampReadBy: mongoose_1.Schema.Types.Mixed,
|
|
14
|
-
files: [
|
|
15
|
-
{
|
|
16
|
-
name: {
|
|
17
|
-
type: String,
|
|
18
|
-
required: true
|
|
19
|
-
},
|
|
20
|
-
path: {
|
|
21
|
-
type: String,
|
|
22
|
-
required: true
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
createdAt: Date,
|
|
27
|
-
ignore_message: Boolean,
|
|
28
|
-
ignoredMessageUpdatedAt: Date,
|
|
29
|
-
ignoredMessageBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }
|
|
30
|
-
}, { timestamps: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.communicationsSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.communicationsSchema = new mongoose_1.Schema({
|
|
6
|
+
student_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
+
user_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
8
|
+
message: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: ''
|
|
11
|
+
},
|
|
12
|
+
readBy: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
13
|
+
timeStampReadBy: mongoose_1.Schema.Types.Mixed,
|
|
14
|
+
files: [
|
|
15
|
+
{
|
|
16
|
+
name: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
path: {
|
|
21
|
+
type: String,
|
|
22
|
+
required: true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
createdAt: Date,
|
|
27
|
+
ignore_message: Boolean,
|
|
28
|
+
ignoredMessageUpdatedAt: Date,
|
|
29
|
+
ignoredMessageBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }
|
|
30
|
+
}, { timestamps: true });
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.complaintSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
var constants_1 = require("../constants");
|
|
6
|
-
exports.complaintSchema = new mongoose_1.Schema({
|
|
7
|
-
requester_id: {
|
|
8
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
9
|
-
required: true,
|
|
10
|
-
ref: 'User'
|
|
11
|
-
},
|
|
12
|
-
status: {
|
|
13
|
-
type: String,
|
|
14
|
-
enum: Object.values(constants_1.TicketStatus),
|
|
15
|
-
default: 'open'
|
|
16
|
-
},
|
|
17
|
-
title: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: '',
|
|
20
|
-
validate: {
|
|
21
|
-
validator: function (value) {
|
|
22
|
-
// Maximum allowed length
|
|
23
|
-
return value.length <= 200;
|
|
24
|
-
},
|
|
25
|
-
message: 'Description exceeds the maximum allowed length of 3000 characters'
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
category: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: 'others'
|
|
31
|
-
},
|
|
32
|
-
description: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: '',
|
|
35
|
-
validate: {
|
|
36
|
-
validator: function (value) {
|
|
37
|
-
// Maximum allowed length
|
|
38
|
-
return value.length <= 3000;
|
|
39
|
-
},
|
|
40
|
-
message: 'Description exceeds the maximum allowed length of 3000 characters'
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
messages: [
|
|
44
|
-
{
|
|
45
|
-
user_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
46
|
-
message: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: ''
|
|
49
|
-
},
|
|
50
|
-
createdAt: Date,
|
|
51
|
-
file: [
|
|
52
|
-
{
|
|
53
|
-
name: {
|
|
54
|
-
type: String,
|
|
55
|
-
required: true
|
|
56
|
-
},
|
|
57
|
-
path: {
|
|
58
|
-
type: String,
|
|
59
|
-
required: true
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
ignore_message: Boolean
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
createdAt: {
|
|
67
|
-
type: Date,
|
|
68
|
-
default: Date.now
|
|
69
|
-
}
|
|
70
|
-
}, { timestamps: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.complaintSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
var constants_1 = require("../constants");
|
|
6
|
+
exports.complaintSchema = new mongoose_1.Schema({
|
|
7
|
+
requester_id: {
|
|
8
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
9
|
+
required: true,
|
|
10
|
+
ref: 'User'
|
|
11
|
+
},
|
|
12
|
+
status: {
|
|
13
|
+
type: String,
|
|
14
|
+
enum: Object.values(constants_1.TicketStatus),
|
|
15
|
+
default: 'open'
|
|
16
|
+
},
|
|
17
|
+
title: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: '',
|
|
20
|
+
validate: {
|
|
21
|
+
validator: function (value) {
|
|
22
|
+
// Maximum allowed length
|
|
23
|
+
return value.length <= 200;
|
|
24
|
+
},
|
|
25
|
+
message: 'Description exceeds the maximum allowed length of 3000 characters'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
category: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: 'others'
|
|
31
|
+
},
|
|
32
|
+
description: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: '',
|
|
35
|
+
validate: {
|
|
36
|
+
validator: function (value) {
|
|
37
|
+
// Maximum allowed length
|
|
38
|
+
return value.length <= 3000;
|
|
39
|
+
},
|
|
40
|
+
message: 'Description exceeds the maximum allowed length of 3000 characters'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
messages: [
|
|
44
|
+
{
|
|
45
|
+
user_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
46
|
+
message: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: ''
|
|
49
|
+
},
|
|
50
|
+
createdAt: Date,
|
|
51
|
+
file: [
|
|
52
|
+
{
|
|
53
|
+
name: {
|
|
54
|
+
type: String,
|
|
55
|
+
required: true
|
|
56
|
+
},
|
|
57
|
+
path: {
|
|
58
|
+
type: String,
|
|
59
|
+
required: true
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
ignore_message: Boolean
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
createdAt: {
|
|
67
|
+
type: Date,
|
|
68
|
+
default: Date.now
|
|
69
|
+
}
|
|
70
|
+
}, { timestamps: true });
|
package/dist/cjs/model/Course.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.coursesSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.coursesSchema = new mongoose_1.Schema({
|
|
6
|
-
student_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
-
name: { type: String, default: '' },
|
|
8
|
-
table_data_string: { type: String, default: '' },
|
|
9
|
-
table_data_string_locked: { type: Boolean, default: false },
|
|
10
|
-
table_data_string_taiger_guided: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: '[{"course_chinese":"","course_english":"","credits":"0","grades":""}]'
|
|
13
|
-
},
|
|
14
|
-
updatedAt: Date,
|
|
15
|
-
analysis: {
|
|
16
|
-
path: { type: String, default: '' },
|
|
17
|
-
analyzed_course: [{ type: String, default: '' }],
|
|
18
|
-
isAnalysed: { type: Boolean, default: false },
|
|
19
|
-
isAnalysedV2: { type: Boolean, default: false },
|
|
20
|
-
pathV2: { type: String, default: '' },
|
|
21
|
-
updatedAtV2: Date,
|
|
22
|
-
updatedAt: Date
|
|
23
|
-
}
|
|
24
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.coursesSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.coursesSchema = new mongoose_1.Schema({
|
|
6
|
+
student_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
+
name: { type: String, default: '' },
|
|
8
|
+
table_data_string: { type: String, default: '' },
|
|
9
|
+
table_data_string_locked: { type: Boolean, default: false },
|
|
10
|
+
table_data_string_taiger_guided: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: '[{"course_chinese":"","course_english":"","credits":"0","grades":""}]'
|
|
13
|
+
},
|
|
14
|
+
updatedAt: Date,
|
|
15
|
+
analysis: {
|
|
16
|
+
path: { type: String, default: '' },
|
|
17
|
+
analyzed_course: [{ type: String, default: '' }],
|
|
18
|
+
isAnalysed: { type: Boolean, default: false },
|
|
19
|
+
isAnalysedV2: { type: Boolean, default: false },
|
|
20
|
+
pathV2: { type: String, default: '' },
|
|
21
|
+
updatedAtV2: Date,
|
|
22
|
+
updatedAt: Date
|
|
23
|
+
}
|
|
24
|
+
});
|