@taiger-common/model 1.0.41 → 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 -632
- 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 -627
- 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
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.docspagesSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.docspagesSchema = new mongoose_1.Schema({
|
|
6
|
-
name: { type: String, default: '' },
|
|
7
|
-
title: { type: String, default: '' },
|
|
8
|
-
category: { type: String, default: '' },
|
|
9
|
-
prop: { type: String, default: '' },
|
|
10
|
-
author: { type: String, default: '' },
|
|
11
|
-
text: { type: String, default: '' },
|
|
12
|
-
country: { type: String, default: '' },
|
|
13
|
-
updatedAt: Date
|
|
14
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.docspagesSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.docspagesSchema = new mongoose_1.Schema({
|
|
6
|
+
name: { type: String, default: '' },
|
|
7
|
+
title: { type: String, default: '' },
|
|
8
|
+
category: { type: String, default: '' },
|
|
9
|
+
prop: { type: String, default: '' },
|
|
10
|
+
author: { type: String, default: '' },
|
|
11
|
+
text: { type: String, default: '' },
|
|
12
|
+
country: { type: String, default: '' },
|
|
13
|
+
updatedAt: Date
|
|
14
|
+
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.documentationsSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.documentationsSchema = new mongoose_1.Schema({
|
|
6
|
-
name: { type: String, default: '' },
|
|
7
|
-
title: { type: String, default: '' },
|
|
8
|
-
category: { type: String, default: '' },
|
|
9
|
-
author: { type: String, default: '' },
|
|
10
|
-
prop: { type: String, default: '' },
|
|
11
|
-
text: { type: String, default: '' },
|
|
12
|
-
country: { type: String, default: '' },
|
|
13
|
-
updatedAt: Date
|
|
14
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.documentationsSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.documentationsSchema = new mongoose_1.Schema({
|
|
6
|
+
name: { type: String, default: '' },
|
|
7
|
+
title: { type: String, default: '' },
|
|
8
|
+
category: { type: String, default: '' },
|
|
9
|
+
author: { type: String, default: '' },
|
|
10
|
+
prop: { type: String, default: '' },
|
|
11
|
+
text: { type: String, default: '' },
|
|
12
|
+
country: { type: String, default: '' },
|
|
13
|
+
updatedAt: Date
|
|
14
|
+
});
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.documentThreadsSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.documentThreadsSchema = new mongoose_1.Schema({
|
|
6
|
-
student_id: { type: mongoose_1.Schema.Types.ObjectId, require: true, ref: 'User' },
|
|
7
|
-
program_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Program' },
|
|
8
|
-
application_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Application' },
|
|
9
|
-
outsourced_user_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
10
|
-
pin_by_user_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
11
|
-
flag_by_user_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
12
|
-
file_type: { type: String, require: true },
|
|
13
|
-
isFinalVersion: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: false
|
|
16
|
-
},
|
|
17
|
-
isOriginAuthorDeclarationConfirmedByStudent: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: false
|
|
20
|
-
},
|
|
21
|
-
isOriginAuthorDeclarationConfirmedByStudentTimestamp: Date,
|
|
22
|
-
messages: [
|
|
23
|
-
{
|
|
24
|
-
user_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
25
|
-
message: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: ''
|
|
28
|
-
},
|
|
29
|
-
createdAt: Date,
|
|
30
|
-
file: [
|
|
31
|
-
{
|
|
32
|
-
name: {
|
|
33
|
-
type: String,
|
|
34
|
-
required: true
|
|
35
|
-
},
|
|
36
|
-
path: {
|
|
37
|
-
type: String,
|
|
38
|
-
required: true
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
ignore_message: Boolean
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
isEssayConsultantNeeded: {
|
|
46
|
-
type: Boolean
|
|
47
|
-
},
|
|
48
|
-
essayConsultantIds: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
49
|
-
updatedAt: Date
|
|
50
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.documentThreadsSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.documentThreadsSchema = new mongoose_1.Schema({
|
|
6
|
+
student_id: { type: mongoose_1.Schema.Types.ObjectId, require: true, ref: 'User' },
|
|
7
|
+
program_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Program' },
|
|
8
|
+
application_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Application' },
|
|
9
|
+
outsourced_user_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
10
|
+
pin_by_user_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
11
|
+
flag_by_user_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
12
|
+
file_type: { type: String, require: true },
|
|
13
|
+
isFinalVersion: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false
|
|
16
|
+
},
|
|
17
|
+
isOriginAuthorDeclarationConfirmedByStudent: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
20
|
+
},
|
|
21
|
+
isOriginAuthorDeclarationConfirmedByStudentTimestamp: Date,
|
|
22
|
+
messages: [
|
|
23
|
+
{
|
|
24
|
+
user_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
25
|
+
message: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ''
|
|
28
|
+
},
|
|
29
|
+
createdAt: Date,
|
|
30
|
+
file: [
|
|
31
|
+
{
|
|
32
|
+
name: {
|
|
33
|
+
type: String,
|
|
34
|
+
required: true
|
|
35
|
+
},
|
|
36
|
+
path: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: true
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
ignore_message: Boolean
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
isEssayConsultantNeeded: {
|
|
46
|
+
type: Boolean
|
|
47
|
+
},
|
|
48
|
+
essayConsultantIds: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
49
|
+
updatedAt: Date
|
|
50
|
+
});
|
package/dist/cjs/model/Event.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.EventSchema = new mongoose_1.Schema({
|
|
6
|
-
requester_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
7
|
-
receiver_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
8
|
-
isConfirmedRequester: {
|
|
9
|
-
type: Boolean,
|
|
10
|
-
default: false
|
|
11
|
-
},
|
|
12
|
-
isConfirmedReceiver: {
|
|
13
|
-
type: Boolean,
|
|
14
|
-
default: false
|
|
15
|
-
},
|
|
16
|
-
meetingLink: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: false
|
|
19
|
-
},
|
|
20
|
-
event_type: {
|
|
21
|
-
type: String
|
|
22
|
-
},
|
|
23
|
-
title: {
|
|
24
|
-
type: String
|
|
25
|
-
// required: [true, 'Please write a title for your event']
|
|
26
|
-
},
|
|
27
|
-
description: {
|
|
28
|
-
type: String,
|
|
29
|
-
required: [true, 'Please write a description for your event'],
|
|
30
|
-
validate: {
|
|
31
|
-
validator: function (value) {
|
|
32
|
-
return value.length <= 2000; // Maximum allowed length
|
|
33
|
-
},
|
|
34
|
-
message: 'Description exceeds the maximum allowed length of 500 characters'
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
start: {
|
|
38
|
-
type: Date,
|
|
39
|
-
required: [true, 'Please Insert The Start of your event'],
|
|
40
|
-
min: [new Date(), "time can't be before now!!"]
|
|
41
|
-
},
|
|
42
|
-
end: {
|
|
43
|
-
type: Date,
|
|
44
|
-
//setting a min function to accept any date one hour ahead of start
|
|
45
|
-
// min: [
|
|
46
|
-
// function () {
|
|
47
|
-
// const date = new Date(this.start);
|
|
48
|
-
// const validDate = new Date(date.getTime() + 60000);
|
|
49
|
-
// return validDate;
|
|
50
|
-
// },
|
|
51
|
-
// 'Event End must be at least one minute a head of event time'
|
|
52
|
-
// ],
|
|
53
|
-
// default: function () {
|
|
54
|
-
// const date = new Date(this.start);
|
|
55
|
-
// const validDate = new Date(date.getTime() + 60000 * 30);
|
|
56
|
-
// return validDate;
|
|
57
|
-
// }
|
|
58
|
-
}
|
|
59
|
-
}, { timestamps: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.EventSchema = new mongoose_1.Schema({
|
|
6
|
+
requester_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
7
|
+
receiver_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
8
|
+
isConfirmedRequester: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: false
|
|
11
|
+
},
|
|
12
|
+
isConfirmedReceiver: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false
|
|
15
|
+
},
|
|
16
|
+
meetingLink: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: false
|
|
19
|
+
},
|
|
20
|
+
event_type: {
|
|
21
|
+
type: String
|
|
22
|
+
},
|
|
23
|
+
title: {
|
|
24
|
+
type: String
|
|
25
|
+
// required: [true, 'Please write a title for your event']
|
|
26
|
+
},
|
|
27
|
+
description: {
|
|
28
|
+
type: String,
|
|
29
|
+
required: [true, 'Please write a description for your event'],
|
|
30
|
+
validate: {
|
|
31
|
+
validator: function (value) {
|
|
32
|
+
return value.length <= 2000; // Maximum allowed length
|
|
33
|
+
},
|
|
34
|
+
message: 'Description exceeds the maximum allowed length of 500 characters'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
start: {
|
|
38
|
+
type: Date,
|
|
39
|
+
required: [true, 'Please Insert The Start of your event'],
|
|
40
|
+
min: [new Date(), "time can't be before now!!"]
|
|
41
|
+
},
|
|
42
|
+
end: {
|
|
43
|
+
type: Date,
|
|
44
|
+
//setting a min function to accept any date one hour ahead of start
|
|
45
|
+
// min: [
|
|
46
|
+
// function () {
|
|
47
|
+
// const date = new Date(this.start);
|
|
48
|
+
// const validDate = new Date(date.getTime() + 60000);
|
|
49
|
+
// return validDate;
|
|
50
|
+
// },
|
|
51
|
+
// 'Event End must be at least one minute a head of event time'
|
|
52
|
+
// ],
|
|
53
|
+
// default: function () {
|
|
54
|
+
// const date = new Date(this.start);
|
|
55
|
+
// const validDate = new Date(date.getTime() + 60000 * 30);
|
|
56
|
+
// return validDate;
|
|
57
|
+
// }
|
|
58
|
+
}
|
|
59
|
+
}, { timestamps: true });
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.internaldocsSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.internaldocsSchema = new mongoose_1.Schema({
|
|
6
|
-
name: { type: String, default: '' },
|
|
7
|
-
title: { type: String, default: '' },
|
|
8
|
-
category: { type: String, default: '' },
|
|
9
|
-
internal: { type: Boolean, default: true },
|
|
10
|
-
author: { type: String, default: '' },
|
|
11
|
-
text: { type: String, default: '' },
|
|
12
|
-
country: { type: String, default: '' },
|
|
13
|
-
updatedAt: Date
|
|
14
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.internaldocsSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.internaldocsSchema = new mongoose_1.Schema({
|
|
6
|
+
name: { type: String, default: '' },
|
|
7
|
+
title: { type: String, default: '' },
|
|
8
|
+
category: { type: String, default: '' },
|
|
9
|
+
internal: { type: Boolean, default: true },
|
|
10
|
+
author: { type: String, default: '' },
|
|
11
|
+
text: { type: String, default: '' },
|
|
12
|
+
country: { type: String, default: '' },
|
|
13
|
+
updatedAt: Date
|
|
14
|
+
});
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.intervalSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.intervalSchema = new mongoose_1.Schema({
|
|
6
|
-
thread_id: {
|
|
7
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
-
ref: 'Documentthread'
|
|
9
|
-
},
|
|
10
|
-
student_id: {
|
|
11
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
12
|
-
ref: 'User'
|
|
13
|
-
},
|
|
14
|
-
message_1_id: {
|
|
15
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
16
|
-
required: true
|
|
17
|
-
},
|
|
18
|
-
message_2_id: {
|
|
19
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
20
|
-
required: true
|
|
21
|
-
},
|
|
22
|
-
interval_type: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: true
|
|
25
|
-
},
|
|
26
|
-
interval: {
|
|
27
|
-
type: Number,
|
|
28
|
-
required: true
|
|
29
|
-
},
|
|
30
|
-
intervalStartAt: {
|
|
31
|
-
type: Date,
|
|
32
|
-
required: true
|
|
33
|
-
},
|
|
34
|
-
updatedAt: {
|
|
35
|
-
type: Date,
|
|
36
|
-
default: Date.now,
|
|
37
|
-
expires: 93312000 // 3 years
|
|
38
|
-
}
|
|
39
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.intervalSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.intervalSchema = new mongoose_1.Schema({
|
|
6
|
+
thread_id: {
|
|
7
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
+
ref: 'Documentthread'
|
|
9
|
+
},
|
|
10
|
+
student_id: {
|
|
11
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
12
|
+
ref: 'User'
|
|
13
|
+
},
|
|
14
|
+
message_1_id: {
|
|
15
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
message_2_id: {
|
|
19
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
20
|
+
required: true
|
|
21
|
+
},
|
|
22
|
+
interval_type: {
|
|
23
|
+
type: String,
|
|
24
|
+
required: true
|
|
25
|
+
},
|
|
26
|
+
interval: {
|
|
27
|
+
type: Number,
|
|
28
|
+
required: true
|
|
29
|
+
},
|
|
30
|
+
intervalStartAt: {
|
|
31
|
+
type: Date,
|
|
32
|
+
required: true
|
|
33
|
+
},
|
|
34
|
+
updatedAt: {
|
|
35
|
+
type: Date,
|
|
36
|
+
default: Date.now,
|
|
37
|
+
expires: 93312000 // 3 years
|
|
38
|
+
}
|
|
39
|
+
});
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.interviewsSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.interviewsSchema = new mongoose_1.Schema({
|
|
6
|
-
student_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
-
trainer_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
8
|
-
thread_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Documentthread' },
|
|
9
|
-
program_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Program' },
|
|
10
|
-
event_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Event' },
|
|
11
|
-
interview_description: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: ''
|
|
14
|
-
},
|
|
15
|
-
interviewer: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: ''
|
|
18
|
-
},
|
|
19
|
-
interview_duration: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: ''
|
|
22
|
-
},
|
|
23
|
-
interview_date: {
|
|
24
|
-
type: Date
|
|
25
|
-
},
|
|
26
|
-
isClosed: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: false
|
|
29
|
-
},
|
|
30
|
-
start: {
|
|
31
|
-
type: Date
|
|
32
|
-
},
|
|
33
|
-
end: {
|
|
34
|
-
type: Date
|
|
35
|
-
}
|
|
36
|
-
}, { timestamps: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.interviewsSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.interviewsSchema = new mongoose_1.Schema({
|
|
6
|
+
student_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
+
trainer_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
8
|
+
thread_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Documentthread' },
|
|
9
|
+
program_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Program' },
|
|
10
|
+
event_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Event' },
|
|
11
|
+
interview_description: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ''
|
|
14
|
+
},
|
|
15
|
+
interviewer: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ''
|
|
18
|
+
},
|
|
19
|
+
interview_duration: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ''
|
|
22
|
+
},
|
|
23
|
+
interview_date: {
|
|
24
|
+
type: Date
|
|
25
|
+
},
|
|
26
|
+
isClosed: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false
|
|
29
|
+
},
|
|
30
|
+
start: {
|
|
31
|
+
type: Date
|
|
32
|
+
},
|
|
33
|
+
end: {
|
|
34
|
+
type: Date
|
|
35
|
+
}
|
|
36
|
+
}, { timestamps: true });
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.interviewSurveyResponseSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.interviewSurveyResponseSchema = new mongoose_1.Schema({
|
|
6
|
-
student_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
-
interview_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Interview' },
|
|
8
|
-
program_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Program' },
|
|
9
|
-
responses: [
|
|
10
|
-
{
|
|
11
|
-
questionId: String,
|
|
12
|
-
answer: Number
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
isFinal: {
|
|
16
|
-
type: Boolean
|
|
17
|
-
},
|
|
18
|
-
interviewQuestions: {
|
|
19
|
-
type: String
|
|
20
|
-
},
|
|
21
|
-
interviewFeedback: {
|
|
22
|
-
type: String
|
|
23
|
-
}
|
|
24
|
-
}, { timestamps: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.interviewSurveyResponseSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.interviewSurveyResponseSchema = new mongoose_1.Schema({
|
|
6
|
+
student_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
+
interview_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Interview' },
|
|
8
|
+
program_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Program' },
|
|
9
|
+
responses: [
|
|
10
|
+
{
|
|
11
|
+
questionId: String,
|
|
12
|
+
answer: Number
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
isFinal: {
|
|
16
|
+
type: Boolean
|
|
17
|
+
},
|
|
18
|
+
interviewQuestions: {
|
|
19
|
+
type: String
|
|
20
|
+
},
|
|
21
|
+
interviewFeedback: {
|
|
22
|
+
type: String
|
|
23
|
+
}
|
|
24
|
+
}, { timestamps: true });
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.keywordSetSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.keywordSetSchema = new mongoose_1.Schema({
|
|
6
|
-
categoryName: {
|
|
7
|
-
type: String
|
|
8
|
-
},
|
|
9
|
-
description: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: '',
|
|
12
|
-
validate: {
|
|
13
|
-
validator: function (value) {
|
|
14
|
-
// Maximum allowed length
|
|
15
|
-
return value.length <= 3000;
|
|
16
|
-
},
|
|
17
|
-
message: 'Description exceeds the maximum allowed length of 3000 characters'
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
keywords: {
|
|
21
|
-
zh: [
|
|
22
|
-
{
|
|
23
|
-
type: String,
|
|
24
|
-
default: ''
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
en: [
|
|
28
|
-
{
|
|
29
|
-
type: String,
|
|
30
|
-
default: ''
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
antiKeywords: {
|
|
35
|
-
zh: [
|
|
36
|
-
{
|
|
37
|
-
type: String,
|
|
38
|
-
default: ''
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
en: [
|
|
42
|
-
{
|
|
43
|
-
type: String,
|
|
44
|
-
default: ''
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
}, { timestamps: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.keywordSetSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.keywordSetSchema = new mongoose_1.Schema({
|
|
6
|
+
categoryName: {
|
|
7
|
+
type: String
|
|
8
|
+
},
|
|
9
|
+
description: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: '',
|
|
12
|
+
validate: {
|
|
13
|
+
validator: function (value) {
|
|
14
|
+
// Maximum allowed length
|
|
15
|
+
return value.length <= 3000;
|
|
16
|
+
},
|
|
17
|
+
message: 'Description exceeds the maximum allowed length of 3000 characters'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
keywords: {
|
|
21
|
+
zh: [
|
|
22
|
+
{
|
|
23
|
+
type: String,
|
|
24
|
+
default: ''
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
en: [
|
|
28
|
+
{
|
|
29
|
+
type: String,
|
|
30
|
+
default: ''
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
antiKeywords: {
|
|
35
|
+
zh: [
|
|
36
|
+
{
|
|
37
|
+
type: String,
|
|
38
|
+
default: ''
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
en: [
|
|
42
|
+
{
|
|
43
|
+
type: String,
|
|
44
|
+
default: ''
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}, { timestamps: true });
|
package/dist/cjs/model/Note.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.notesSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.notesSchema = new mongoose_1.Schema({
|
|
6
|
-
student_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
-
notes: { type: String, default: '' },
|
|
8
|
-
updatedAt: Date
|
|
9
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notesSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.notesSchema = new mongoose_1.Schema({
|
|
6
|
+
student_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
|
+
notes: { type: String, default: '' },
|
|
8
|
+
updatedAt: Date
|
|
9
|
+
});
|