@taiger-common/model 1.0.12 → 1.0.13
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/Audit.js +2 -2
- package/dist/cjs/model/Basedocumentationslink.js +3 -2
- package/dist/cjs/model/Communication.js +2 -2
- package/dist/cjs/model/Complaint.js +2 -2
- package/dist/cjs/model/Course.js +2 -2
- package/dist/cjs/model/Docspage.js +4 -3
- package/dist/cjs/model/Documentation.js +3 -2
- package/dist/cjs/model/Documentthread.js +2 -2
- package/dist/cjs/model/Event.js +17 -4
- package/dist/esm/model/Audit.js +2 -2
- package/dist/esm/model/Basedocumentationslink.js +3 -2
- package/dist/esm/model/Communication.js +2 -2
- package/dist/esm/model/Complaint.js +2 -2
- package/dist/esm/model/Course.js +2 -2
- package/dist/esm/model/Docspage.js +4 -3
- package/dist/esm/model/Documentation.js +3 -2
- package/dist/esm/model/Documentthread.js +2 -2
- package/dist/esm/model/Event.js +17 -4
- package/dist/types/model/Audit.d.ts +74 -24
- package/dist/types/model/Basedocumentationslink.d.ts +46 -15
- package/dist/types/model/Communication.d.ts +101 -36
- package/dist/types/model/Complaint.d.ts +200 -58
- package/dist/types/model/Course.d.ts +78 -47
- package/dist/types/model/Docspage.d.ts +58 -34
- package/dist/types/model/Documentation.d.ts +58 -31
- package/dist/types/model/Documentthread.d.ts +201 -59
- package/dist/types/model/Event.d.ts +74 -44
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
package/dist/cjs/model/Audit.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.auditSchema = void 0;
|
|
4
4
|
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.auditSchema = {
|
|
5
|
+
exports.auditSchema = new mongoose_1.Schema({
|
|
6
6
|
performedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
7
|
targetUserId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
8
8
|
targetDocumentThreadId: {
|
|
@@ -19,4 +19,4 @@ exports.auditSchema = {
|
|
|
19
19
|
before: mongoose_1.Schema.Types.Mixed,
|
|
20
20
|
after: mongoose_1.Schema.Types.Mixed
|
|
21
21
|
}
|
|
22
|
-
};
|
|
22
|
+
}, { timestamps: true });
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.basedocumentationslinksSchema = void 0;
|
|
4
|
-
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.basedocumentationslinksSchema = new mongoose_1.Schema({
|
|
5
6
|
key: { type: String, default: '' },
|
|
6
7
|
category: { type: String, default: 'general' },
|
|
7
8
|
link: { type: String, default: '' },
|
|
8
9
|
updatedAt: Date
|
|
9
|
-
};
|
|
10
|
+
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.communicationsSchema = void 0;
|
|
4
4
|
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.communicationsSchema = {
|
|
5
|
+
exports.communicationsSchema = new mongoose_1.Schema({
|
|
6
6
|
student_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
7
|
user_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
8
8
|
message: {
|
|
@@ -27,4 +27,4 @@ exports.communicationsSchema = {
|
|
|
27
27
|
ignore_message: Boolean,
|
|
28
28
|
ignoredMessageUpdatedAt: Date,
|
|
29
29
|
ignoredMessageBy: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }
|
|
30
|
-
};
|
|
30
|
+
}, { timestamps: true });
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.complaintSchema = void 0;
|
|
4
4
|
var mongoose_1 = require("mongoose");
|
|
5
5
|
var constants_1 = require("../constants");
|
|
6
|
-
exports.complaintSchema = {
|
|
6
|
+
exports.complaintSchema = new mongoose_1.Schema({
|
|
7
7
|
requester_id: {
|
|
8
8
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
9
9
|
required: true,
|
|
@@ -67,4 +67,4 @@ exports.complaintSchema = {
|
|
|
67
67
|
type: Date,
|
|
68
68
|
default: Date.now
|
|
69
69
|
}
|
|
70
|
-
};
|
|
70
|
+
}, { timestamps: true });
|
package/dist/cjs/model/Course.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.coursesSchema = void 0;
|
|
4
4
|
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.coursesSchema = {
|
|
5
|
+
exports.coursesSchema = new mongoose_1.Schema({
|
|
6
6
|
student_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'User' },
|
|
7
7
|
name: { type: String, default: '' },
|
|
8
8
|
table_data_string: { type: String, default: '' },
|
|
@@ -21,4 +21,4 @@ exports.coursesSchema = {
|
|
|
21
21
|
updatedAtV2: Date,
|
|
22
22
|
updatedAt: Date
|
|
23
23
|
}
|
|
24
|
-
};
|
|
24
|
+
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.docspagesSchema = void 0;
|
|
4
|
-
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.docspagesSchema = new mongoose_1.Schema({
|
|
5
6
|
name: { type: String, default: '' },
|
|
6
7
|
title: { type: String, default: '' },
|
|
7
8
|
category: { type: String, default: '' },
|
|
@@ -9,5 +10,5 @@ exports.docspagesSchema = {
|
|
|
9
10
|
author: { type: String, default: '' },
|
|
10
11
|
text: { type: String, default: '' },
|
|
11
12
|
country: { type: String, default: '' },
|
|
12
|
-
updatedAt:
|
|
13
|
-
};
|
|
13
|
+
updatedAt: Date
|
|
14
|
+
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.documentationsSchema = void 0;
|
|
4
|
-
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
exports.documentationsSchema = new mongoose_1.Schema({
|
|
5
6
|
name: { type: String, default: '' },
|
|
6
7
|
title: { type: String, default: '' },
|
|
7
8
|
category: { type: String, default: '' },
|
|
@@ -10,4 +11,4 @@ exports.documentationsSchema = {
|
|
|
10
11
|
text: { type: String, default: '' },
|
|
11
12
|
country: { type: String, default: '' },
|
|
12
13
|
updatedAt: Date
|
|
13
|
-
};
|
|
14
|
+
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.documentThreadsSchema = void 0;
|
|
4
4
|
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.documentThreadsSchema = {
|
|
5
|
+
exports.documentThreadsSchema = new mongoose_1.Schema({
|
|
6
6
|
student_id: { type: mongoose_1.Schema.Types.ObjectId, require: true, ref: 'User' },
|
|
7
7
|
program_id: { type: mongoose_1.Schema.Types.ObjectId, ref: 'Program' },
|
|
8
8
|
outsourced_user_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
@@ -42,4 +42,4 @@ exports.documentThreadsSchema = {
|
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
updatedAt: Date
|
|
45
|
-
};
|
|
45
|
+
});
|
package/dist/cjs/model/Event.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EventSchema = void 0;
|
|
4
4
|
var mongoose_1 = require("mongoose");
|
|
5
|
-
exports.EventSchema = {
|
|
5
|
+
exports.EventSchema = new mongoose_1.Schema({
|
|
6
6
|
requester_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
7
7
|
receiver_id: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
8
8
|
isConfirmedRequester: {
|
|
@@ -40,7 +40,20 @@ exports.EventSchema = {
|
|
|
40
40
|
min: [new Date(), "time can't be before now!!"]
|
|
41
41
|
},
|
|
42
42
|
end: {
|
|
43
|
-
type: Date
|
|
44
|
-
//
|
|
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
|
+
// }
|
|
45
58
|
}
|
|
46
|
-
};
|
|
59
|
+
}, { timestamps: true });
|
package/dist/esm/model/Audit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
|
-
export var auditSchema = {
|
|
2
|
+
export var auditSchema = new Schema({
|
|
3
3
|
performedBy: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
4
4
|
targetUserId: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
5
5
|
targetDocumentThreadId: {
|
|
@@ -16,4 +16,4 @@ export var auditSchema = {
|
|
|
16
16
|
before: Schema.Types.Mixed,
|
|
17
17
|
after: Schema.Types.Mixed
|
|
18
18
|
}
|
|
19
|
-
};
|
|
19
|
+
}, { timestamps: true });
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export var basedocumentationslinksSchema = new Schema({
|
|
2
3
|
key: { type: String, default: '' },
|
|
3
4
|
category: { type: String, default: 'general' },
|
|
4
5
|
link: { type: String, default: '' },
|
|
5
6
|
updatedAt: Date
|
|
6
|
-
};
|
|
7
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
|
-
export var communicationsSchema = {
|
|
2
|
+
export var communicationsSchema = new Schema({
|
|
3
3
|
student_id: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
4
4
|
user_id: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
5
5
|
message: {
|
|
@@ -24,4 +24,4 @@ export var communicationsSchema = {
|
|
|
24
24
|
ignore_message: Boolean,
|
|
25
25
|
ignoredMessageUpdatedAt: Date,
|
|
26
26
|
ignoredMessageBy: { type: Schema.Types.ObjectId, ref: 'User' }
|
|
27
|
-
};
|
|
27
|
+
}, { timestamps: true });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
2
|
import { TicketStatus } from '../constants';
|
|
3
|
-
export var complaintSchema = {
|
|
3
|
+
export var complaintSchema = new Schema({
|
|
4
4
|
requester_id: {
|
|
5
5
|
type: Schema.Types.ObjectId,
|
|
6
6
|
required: true,
|
|
@@ -64,4 +64,4 @@ export var complaintSchema = {
|
|
|
64
64
|
type: Date,
|
|
65
65
|
default: Date.now
|
|
66
66
|
}
|
|
67
|
-
};
|
|
67
|
+
}, { timestamps: true });
|
package/dist/esm/model/Course.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
|
-
export var coursesSchema = {
|
|
2
|
+
export var coursesSchema = new Schema({
|
|
3
3
|
student_id: { type: Schema.Types.ObjectId, ref: 'User' },
|
|
4
4
|
name: { type: String, default: '' },
|
|
5
5
|
table_data_string: { type: String, default: '' },
|
|
@@ -18,4 +18,4 @@ export var coursesSchema = {
|
|
|
18
18
|
updatedAtV2: Date,
|
|
19
19
|
updatedAt: Date
|
|
20
20
|
}
|
|
21
|
-
};
|
|
21
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export var docspagesSchema = new Schema({
|
|
2
3
|
name: { type: String, default: '' },
|
|
3
4
|
title: { type: String, default: '' },
|
|
4
5
|
category: { type: String, default: '' },
|
|
@@ -6,5 +7,5 @@ export var docspagesSchema = {
|
|
|
6
7
|
author: { type: String, default: '' },
|
|
7
8
|
text: { type: String, default: '' },
|
|
8
9
|
country: { type: String, default: '' },
|
|
9
|
-
updatedAt:
|
|
10
|
-
};
|
|
10
|
+
updatedAt: Date
|
|
11
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export var documentationsSchema = new Schema({
|
|
2
3
|
name: { type: String, default: '' },
|
|
3
4
|
title: { type: String, default: '' },
|
|
4
5
|
category: { type: String, default: '' },
|
|
@@ -7,4 +8,4 @@ export var documentationsSchema = {
|
|
|
7
8
|
text: { type: String, default: '' },
|
|
8
9
|
country: { type: String, default: '' },
|
|
9
10
|
updatedAt: Date
|
|
10
|
-
};
|
|
11
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
|
-
export var documentThreadsSchema = {
|
|
2
|
+
export var documentThreadsSchema = new Schema({
|
|
3
3
|
student_id: { type: Schema.Types.ObjectId, require: true, ref: 'User' },
|
|
4
4
|
program_id: { type: Schema.Types.ObjectId, ref: 'Program' },
|
|
5
5
|
outsourced_user_id: [{ type: Schema.Types.ObjectId, ref: 'User' }],
|
|
@@ -39,4 +39,4 @@ export var documentThreadsSchema = {
|
|
|
39
39
|
}
|
|
40
40
|
],
|
|
41
41
|
updatedAt: Date
|
|
42
|
-
};
|
|
42
|
+
});
|
package/dist/esm/model/Event.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
|
-
export var EventSchema = {
|
|
2
|
+
export var EventSchema = new Schema({
|
|
3
3
|
requester_id: [{ type: Schema.Types.ObjectId, ref: 'User' }],
|
|
4
4
|
receiver_id: [{ type: Schema.Types.ObjectId, ref: 'User' }],
|
|
5
5
|
isConfirmedRequester: {
|
|
@@ -37,7 +37,20 @@ export var EventSchema = {
|
|
|
37
37
|
min: [new Date(), "time can't be before now!!"]
|
|
38
38
|
},
|
|
39
39
|
end: {
|
|
40
|
-
type: Date
|
|
41
|
-
//
|
|
40
|
+
type: Date,
|
|
41
|
+
//setting a min function to accept any date one hour ahead of start
|
|
42
|
+
// min: [
|
|
43
|
+
// function () {
|
|
44
|
+
// const date = new Date(this.start);
|
|
45
|
+
// const validDate = new Date(date.getTime() + 60000);
|
|
46
|
+
// return validDate;
|
|
47
|
+
// },
|
|
48
|
+
// 'Event End must be at least one minute a head of event time'
|
|
49
|
+
// ],
|
|
50
|
+
// default: function () {
|
|
51
|
+
// const date = new Date(this.start);
|
|
52
|
+
// const validDate = new Date(date.getTime() + 60000 * 30);
|
|
53
|
+
// return validDate;
|
|
54
|
+
// }
|
|
42
55
|
}
|
|
43
|
-
};
|
|
56
|
+
}, { timestamps: true });
|
|
@@ -1,25 +1,75 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
1
26
|
import { Schema } from 'mongoose';
|
|
2
|
-
export declare const auditSchema: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
export declare const auditSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
28
|
+
timestamps: true;
|
|
29
|
+
}, {
|
|
30
|
+
createdAt: NativeDate;
|
|
31
|
+
updatedAt: NativeDate;
|
|
32
|
+
} & {
|
|
33
|
+
action?: string | null | undefined;
|
|
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;
|
|
53
|
+
changes?: {
|
|
54
|
+
before?: any;
|
|
55
|
+
after?: any;
|
|
56
|
+
} | null | undefined;
|
|
57
|
+
}>> & import("mongoose").FlatRecord<{
|
|
58
|
+
createdAt: NativeDate;
|
|
59
|
+
updatedAt: NativeDate;
|
|
60
|
+
} & {
|
|
61
|
+
action?: string | null | undefined;
|
|
62
|
+
field?: string | null | undefined;
|
|
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
|
+
}> & {
|
|
72
|
+
_id: import("mongoose").Types.ObjectId;
|
|
73
|
+
} & {
|
|
74
|
+
__v: number;
|
|
75
|
+
}>;
|
|
@@ -1,15 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
import { Schema } from 'mongoose';
|
|
27
|
+
export declare const basedocumentationslinksSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
28
|
+
key: string;
|
|
29
|
+
category: string;
|
|
30
|
+
link: string;
|
|
31
|
+
updatedAt?: NativeDate | null | undefined;
|
|
32
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
33
|
+
key: string;
|
|
34
|
+
category: string;
|
|
35
|
+
link: string;
|
|
36
|
+
updatedAt?: NativeDate | null | undefined;
|
|
37
|
+
}>> & import("mongoose").FlatRecord<{
|
|
38
|
+
key: string;
|
|
39
|
+
category: string;
|
|
40
|
+
link: string;
|
|
41
|
+
updatedAt?: NativeDate | null | undefined;
|
|
42
|
+
}> & {
|
|
43
|
+
_id: import("mongoose").Types.ObjectId;
|
|
44
|
+
} & {
|
|
45
|
+
__v: number;
|
|
46
|
+
}>;
|
|
@@ -1,37 +1,102 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
1
26
|
import { Schema } from 'mongoose';
|
|
2
|
-
export declare const communicationsSchema: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
27
|
+
export declare const communicationsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
28
|
+
timestamps: true;
|
|
29
|
+
}, {
|
|
30
|
+
createdAt: NativeDate;
|
|
31
|
+
updatedAt: NativeDate;
|
|
32
|
+
} & {
|
|
33
|
+
message: string;
|
|
34
|
+
readBy: import("mongoose").Types.ObjectId[];
|
|
35
|
+
files: import("mongoose").Types.DocumentArray<{
|
|
36
|
+
name: string;
|
|
37
|
+
path: string;
|
|
38
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
39
|
+
name: string;
|
|
40
|
+
path: string;
|
|
41
|
+
}> & {
|
|
42
|
+
name: string;
|
|
43
|
+
path: string;
|
|
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;
|
|
78
|
+
} & {
|
|
79
|
+
message: string;
|
|
80
|
+
readBy: import("mongoose").Types.ObjectId[];
|
|
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
|
+
}> & {
|
|
99
|
+
_id: import("mongoose").Types.ObjectId;
|
|
100
|
+
} & {
|
|
101
|
+
__v: number;
|
|
102
|
+
}>;
|