@taiger-common/model 1.0.4 → 1.0.6
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/constants/index.js +7 -0
- package/dist/cjs/model/Allcourse.js +10 -0
- package/dist/cjs/model/Audit.js +22 -0
- package/dist/cjs/model/Basedocumentationslink.js +9 -0
- package/dist/cjs/model/Communication.js +30 -0
- package/dist/cjs/model/Complaint.js +70 -0
- package/dist/cjs/model/Course.js +24 -0
- package/dist/cjs/model/Documentation.js +13 -0
- package/dist/cjs/model/Documentthread.js +45 -0
- package/dist/cjs/model/Event.js +59 -0
- package/dist/cjs/model/index.js +10 -1
- package/dist/esm/constants/index.js +4 -0
- package/dist/esm/model/Allcourse.js +7 -0
- package/dist/esm/model/Audit.js +19 -0
- package/dist/esm/model/Basedocumentationslink.js +6 -0
- package/dist/esm/model/Communication.js +27 -0
- package/dist/esm/model/Complaint.js +67 -0
- package/dist/esm/model/Course.js +21 -0
- package/dist/esm/model/Documentation.js +10 -0
- package/dist/esm/model/Documentthread.js +42 -0
- package/dist/esm/model/Event.js +56 -0
- package/dist/esm/model/index.js +10 -1
- package/dist/types/constants/index.d.ts +4 -0
- package/dist/types/model/Allcourse.d.ts +25 -0
- package/dist/types/model/Audit.d.ts +25 -0
- package/dist/types/model/Basedocumentationslink.d.ts +15 -0
- package/dist/types/model/Communication.d.ts +37 -0
- package/dist/types/model/Complaint.d.ts +59 -0
- package/dist/types/model/Course.d.ts +48 -0
- package/dist/types/model/Documentation.d.ts +31 -0
- package/dist/types/model/Documentthread.d.ts +60 -0
- package/dist/types/model/Event.d.ts +60 -0
- package/dist/types/model/index.d.ts +10 -1
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
- /package/dist/cjs/model/{docspagesSchema.js → Docspage.js} +0 -0
- /package/dist/esm/model/{docspagesSchema.js → Docspage.js} +0 -0
- /package/dist/types/model/{docspagesSchema.d.ts → Docspage.d.ts} +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const communicationsSchema: {
|
|
3
|
+
student_id: {
|
|
4
|
+
type: typeof Schema.Types.ObjectId;
|
|
5
|
+
ref: string;
|
|
6
|
+
};
|
|
7
|
+
user_id: {
|
|
8
|
+
type: typeof Schema.Types.ObjectId;
|
|
9
|
+
ref: string;
|
|
10
|
+
};
|
|
11
|
+
message: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
readBy: {
|
|
16
|
+
type: typeof Schema.Types.ObjectId;
|
|
17
|
+
ref: string;
|
|
18
|
+
}[];
|
|
19
|
+
timeStampReadBy: typeof Schema.Types.Mixed;
|
|
20
|
+
files: {
|
|
21
|
+
name: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: boolean;
|
|
24
|
+
};
|
|
25
|
+
path: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: boolean;
|
|
28
|
+
};
|
|
29
|
+
}[];
|
|
30
|
+
createdAt: DateConstructor;
|
|
31
|
+
ignore_message: BooleanConstructor;
|
|
32
|
+
ignoredMessageUpdatedAt: DateConstructor;
|
|
33
|
+
ignoredMessageBy: {
|
|
34
|
+
type: typeof Schema.Types.ObjectId;
|
|
35
|
+
ref: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const complaintSchema: {
|
|
3
|
+
requester_id: {
|
|
4
|
+
type: typeof Schema.Types.ObjectId;
|
|
5
|
+
required: boolean;
|
|
6
|
+
ref: string;
|
|
7
|
+
};
|
|
8
|
+
status: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
enum: string[];
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
title: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
validate: {
|
|
17
|
+
validator: (value: string) => boolean;
|
|
18
|
+
message: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
category: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
description: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
validate: {
|
|
29
|
+
validator: (value: string) => boolean;
|
|
30
|
+
message: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
messages: {
|
|
34
|
+
user_id: {
|
|
35
|
+
type: typeof Schema.Types.ObjectId;
|
|
36
|
+
ref: string;
|
|
37
|
+
};
|
|
38
|
+
message: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
createdAt: DateConstructor;
|
|
43
|
+
file: {
|
|
44
|
+
name: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
required: boolean;
|
|
47
|
+
};
|
|
48
|
+
path: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
required: boolean;
|
|
51
|
+
};
|
|
52
|
+
}[];
|
|
53
|
+
ignore_message: BooleanConstructor;
|
|
54
|
+
}[];
|
|
55
|
+
createdAt: {
|
|
56
|
+
type: DateConstructor;
|
|
57
|
+
default: () => number;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const coursesSchema: {
|
|
3
|
+
student_id: {
|
|
4
|
+
type: typeof Schema.Types.ObjectId;
|
|
5
|
+
ref: string;
|
|
6
|
+
};
|
|
7
|
+
name: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
table_data_string: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
table_data_string_locked: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
table_data_string_taiger_guided: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
updatedAt: DateConstructor;
|
|
24
|
+
analysis: {
|
|
25
|
+
path: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
analyzed_course: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
}[];
|
|
33
|
+
isAnalysed: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
isAnalysedV2: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
pathV2: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
updatedAtV2: DateConstructor;
|
|
46
|
+
updatedAt: DateConstructor;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const documentationsSchema: {
|
|
2
|
+
name: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
title: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
category: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
author: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
prop: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
text: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
country: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
updatedAt: DateConstructor;
|
|
31
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const documentThreadsSchema: {
|
|
3
|
+
student_id: {
|
|
4
|
+
type: typeof Schema.Types.ObjectId;
|
|
5
|
+
require: boolean;
|
|
6
|
+
ref: string;
|
|
7
|
+
};
|
|
8
|
+
program_id: {
|
|
9
|
+
type: typeof Schema.Types.ObjectId;
|
|
10
|
+
ref: string;
|
|
11
|
+
};
|
|
12
|
+
outsourced_user_id: {
|
|
13
|
+
type: typeof Schema.Types.ObjectId;
|
|
14
|
+
ref: string;
|
|
15
|
+
}[];
|
|
16
|
+
pin_by_user_id: {
|
|
17
|
+
type: typeof Schema.Types.ObjectId;
|
|
18
|
+
ref: string;
|
|
19
|
+
}[];
|
|
20
|
+
flag_by_user_id: {
|
|
21
|
+
type: typeof Schema.Types.ObjectId;
|
|
22
|
+
ref: string;
|
|
23
|
+
}[];
|
|
24
|
+
file_type: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
require: boolean;
|
|
27
|
+
};
|
|
28
|
+
isFinalVersion: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
isOriginAuthorDeclarationConfirmedByStudent: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
isOriginAuthorDeclarationConfirmedByStudentTimestamp: DateConstructor;
|
|
37
|
+
messages: {
|
|
38
|
+
user_id: {
|
|
39
|
+
type: typeof Schema.Types.ObjectId;
|
|
40
|
+
ref: string;
|
|
41
|
+
};
|
|
42
|
+
message: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
createdAt: DateConstructor;
|
|
47
|
+
file: {
|
|
48
|
+
name: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
required: boolean;
|
|
51
|
+
};
|
|
52
|
+
path: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
required: boolean;
|
|
55
|
+
};
|
|
56
|
+
}[];
|
|
57
|
+
ignore_message: BooleanConstructor;
|
|
58
|
+
}[];
|
|
59
|
+
updatedAt: DateConstructor;
|
|
60
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
interface IEvent {
|
|
3
|
+
requester_id: string[];
|
|
4
|
+
receiver_id: string[];
|
|
5
|
+
isConfirmedRequester: boolean;
|
|
6
|
+
isConfirmedReceiver: boolean;
|
|
7
|
+
meetingLink: string;
|
|
8
|
+
event_type: string;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
start: Date;
|
|
12
|
+
end: Date;
|
|
13
|
+
}
|
|
14
|
+
export declare const EventSchema: {
|
|
15
|
+
requester_id: {
|
|
16
|
+
type: typeof Schema.Types.ObjectId;
|
|
17
|
+
ref: string;
|
|
18
|
+
}[];
|
|
19
|
+
receiver_id: {
|
|
20
|
+
type: typeof Schema.Types.ObjectId;
|
|
21
|
+
ref: string;
|
|
22
|
+
}[];
|
|
23
|
+
isConfirmedRequester: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
isConfirmedReceiver: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
meetingLink: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
event_type: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
};
|
|
38
|
+
title: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
};
|
|
41
|
+
description: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
required: (string | boolean)[];
|
|
44
|
+
validate: {
|
|
45
|
+
validator: (value: string) => boolean;
|
|
46
|
+
message: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
start: {
|
|
50
|
+
type: DateConstructor;
|
|
51
|
+
required: (string | boolean)[];
|
|
52
|
+
min: (string | Date)[];
|
|
53
|
+
};
|
|
54
|
+
end: {
|
|
55
|
+
type: DateConstructor;
|
|
56
|
+
min: (string | ((this: IEvent) => Date))[];
|
|
57
|
+
default: (this: IEvent) => Date;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export {};
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './Allcourse';
|
|
2
|
+
export * from './Audit';
|
|
3
|
+
export * from './Basedocumentationslink';
|
|
4
|
+
export * from './Communication';
|
|
5
|
+
export * from './Complaint';
|
|
6
|
+
export * from './Course';
|
|
7
|
+
export * from './Docspage';
|
|
8
|
+
export * from './Documentation';
|
|
9
|
+
export * from './Documentthread';
|
|
10
|
+
export * from './Event';
|