@taiger-common/model 1.0.22 → 1.0.24
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/Documentthread.js +4 -0
- package/dist/cjs/model/Permission.js +8 -0
- package/dist/cjs/model/Program.js +4 -0
- package/dist/esm/model/Documentthread.js +4 -0
- package/dist/esm/model/Permission.js +8 -0
- package/dist/esm/model/Program.js +4 -0
- package/dist/types/model/Documentthread.d.ts +6 -0
- package/dist/types/model/Permission.d.ts +6 -0
- package/dist/types/model/Program.d.ts +7 -0
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
|
@@ -40,6 +40,14 @@ exports.permissionSchema = new mongoose_1.Schema({
|
|
|
40
40
|
type: Boolean,
|
|
41
41
|
default: false
|
|
42
42
|
},
|
|
43
|
+
canAddUser: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
canModifyUser: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false
|
|
50
|
+
},
|
|
43
51
|
isEssayWriters: {
|
|
44
52
|
type: Boolean,
|
|
45
53
|
default: false
|
|
@@ -37,6 +37,14 @@ export var permissionSchema = new Schema({
|
|
|
37
37
|
type: Boolean,
|
|
38
38
|
default: false
|
|
39
39
|
},
|
|
40
|
+
canAddUser: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false
|
|
43
|
+
},
|
|
44
|
+
canModifyUser: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false
|
|
47
|
+
},
|
|
40
48
|
isEssayWriters: {
|
|
41
49
|
type: Boolean,
|
|
42
50
|
default: false
|
|
@@ -76,11 +76,13 @@ export declare const documentThreadsSchema: Schema<any, import("mongoose").Model
|
|
|
76
76
|
flag_by_user_id: import("mongoose").Types.ObjectId[];
|
|
77
77
|
isFinalVersion: boolean;
|
|
78
78
|
isOriginAuthorDeclarationConfirmedByStudent: boolean;
|
|
79
|
+
essayConsultantIds: import("mongoose").Types.ObjectId[];
|
|
79
80
|
updatedAt?: NativeDate | null | undefined;
|
|
80
81
|
student_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
81
82
|
isOriginAuthorDeclarationConfirmedByStudentTimestamp?: NativeDate | null | undefined;
|
|
82
83
|
program_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
83
84
|
file_type?: string | null | undefined;
|
|
85
|
+
isEssayConsultantNeeded?: boolean | null | undefined;
|
|
84
86
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
85
87
|
messages: import("mongoose").Types.DocumentArray<{
|
|
86
88
|
message: string;
|
|
@@ -133,11 +135,13 @@ export declare const documentThreadsSchema: Schema<any, import("mongoose").Model
|
|
|
133
135
|
flag_by_user_id: import("mongoose").Types.ObjectId[];
|
|
134
136
|
isFinalVersion: boolean;
|
|
135
137
|
isOriginAuthorDeclarationConfirmedByStudent: boolean;
|
|
138
|
+
essayConsultantIds: import("mongoose").Types.ObjectId[];
|
|
136
139
|
updatedAt?: NativeDate | null | undefined;
|
|
137
140
|
student_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
138
141
|
isOriginAuthorDeclarationConfirmedByStudentTimestamp?: NativeDate | null | undefined;
|
|
139
142
|
program_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
140
143
|
file_type?: string | null | undefined;
|
|
144
|
+
isEssayConsultantNeeded?: boolean | null | undefined;
|
|
141
145
|
}>> & import("mongoose").FlatRecord<{
|
|
142
146
|
messages: import("mongoose").Types.DocumentArray<{
|
|
143
147
|
message: string;
|
|
@@ -190,11 +194,13 @@ export declare const documentThreadsSchema: Schema<any, import("mongoose").Model
|
|
|
190
194
|
flag_by_user_id: import("mongoose").Types.ObjectId[];
|
|
191
195
|
isFinalVersion: boolean;
|
|
192
196
|
isOriginAuthorDeclarationConfirmedByStudent: boolean;
|
|
197
|
+
essayConsultantIds: import("mongoose").Types.ObjectId[];
|
|
193
198
|
updatedAt?: NativeDate | null | undefined;
|
|
194
199
|
student_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
195
200
|
isOriginAuthorDeclarationConfirmedByStudentTimestamp?: NativeDate | null | undefined;
|
|
196
201
|
program_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
197
202
|
file_type?: string | null | undefined;
|
|
203
|
+
isEssayConsultantNeeded?: boolean | null | undefined;
|
|
198
204
|
}> & {
|
|
199
205
|
_id: import("mongoose").Types.ObjectId;
|
|
200
206
|
} & {
|
|
@@ -39,6 +39,8 @@ export declare const permissionSchema: Schema<any, import("mongoose").Model<any,
|
|
|
39
39
|
canAssignAgents: boolean;
|
|
40
40
|
canModifyDocumentation: boolean;
|
|
41
41
|
canAccessStudentDatabase: boolean;
|
|
42
|
+
canAddUser: boolean;
|
|
43
|
+
canModifyUser: boolean;
|
|
42
44
|
isEssayWriters: boolean;
|
|
43
45
|
updatedAt?: NativeDate | null | undefined;
|
|
44
46
|
user_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -55,6 +57,8 @@ export declare const permissionSchema: Schema<any, import("mongoose").Model<any,
|
|
|
55
57
|
canAssignAgents: boolean;
|
|
56
58
|
canModifyDocumentation: boolean;
|
|
57
59
|
canAccessStudentDatabase: boolean;
|
|
60
|
+
canAddUser: boolean;
|
|
61
|
+
canModifyUser: boolean;
|
|
58
62
|
isEssayWriters: boolean;
|
|
59
63
|
updatedAt?: NativeDate | null | undefined;
|
|
60
64
|
user_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -71,6 +75,8 @@ export declare const permissionSchema: Schema<any, import("mongoose").Model<any,
|
|
|
71
75
|
canAssignAgents: boolean;
|
|
72
76
|
canModifyDocumentation: boolean;
|
|
73
77
|
canAccessStudentDatabase: boolean;
|
|
78
|
+
canAddUser: boolean;
|
|
79
|
+
canModifyUser: boolean;
|
|
74
80
|
isEssayWriters: boolean;
|
|
75
81
|
updatedAt?: NativeDate | null | undefined;
|
|
76
82
|
user_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
@@ -229,6 +229,10 @@ export declare const programModule: {
|
|
|
229
229
|
type: StringConstructor;
|
|
230
230
|
enum: import("@taiger-common/core").SchoolType[];
|
|
231
231
|
};
|
|
232
|
+
isEssayConsultantNeeded: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
default: boolean;
|
|
235
|
+
};
|
|
232
236
|
tags: {
|
|
233
237
|
type: StringConstructor;
|
|
234
238
|
enum: string[];
|
|
@@ -242,6 +246,7 @@ export declare const programSchema: Schema<any, import("mongoose").Model<any, an
|
|
|
242
246
|
createdAt: NativeDate;
|
|
243
247
|
updatedAt: NativeDate;
|
|
244
248
|
} & {
|
|
249
|
+
isEssayConsultantNeeded: boolean;
|
|
245
250
|
school: string;
|
|
246
251
|
program_name: string;
|
|
247
252
|
programSubjects: string[];
|
|
@@ -316,6 +321,7 @@ export declare const programSchema: Schema<any, import("mongoose").Model<any, an
|
|
|
316
321
|
createdAt: NativeDate;
|
|
317
322
|
updatedAt: NativeDate;
|
|
318
323
|
} & {
|
|
324
|
+
isEssayConsultantNeeded: boolean;
|
|
319
325
|
school: string;
|
|
320
326
|
program_name: string;
|
|
321
327
|
programSubjects: string[];
|
|
@@ -390,6 +396,7 @@ export declare const programSchema: Schema<any, import("mongoose").Model<any, an
|
|
|
390
396
|
createdAt: NativeDate;
|
|
391
397
|
updatedAt: NativeDate;
|
|
392
398
|
} & {
|
|
399
|
+
isEssayConsultantNeeded: boolean;
|
|
393
400
|
school: string;
|
|
394
401
|
program_name: string;
|
|
395
402
|
programSubjects: string[];
|