@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.
@@ -41,5 +41,9 @@ exports.documentThreadsSchema = new mongoose_1.Schema({
41
41
  ignore_message: Boolean
42
42
  }
43
43
  ],
44
+ isEssayConsultantNeeded: {
45
+ type: Boolean
46
+ },
47
+ essayConsultantIds: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
44
48
  updatedAt: Date
45
49
  });
@@ -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
@@ -286,6 +286,10 @@ exports.programModule = {
286
286
  type: String,
287
287
  enum: core_1.SCHOOL_TYPES
288
288
  },
289
+ isEssayConsultantNeeded: {
290
+ type: Boolean,
291
+ default: false
292
+ },
289
293
  tags: [
290
294
  {
291
295
  type: String,
@@ -38,5 +38,9 @@ export var documentThreadsSchema = new Schema({
38
38
  ignore_message: Boolean
39
39
  }
40
40
  ],
41
+ isEssayConsultantNeeded: {
42
+ type: Boolean
43
+ },
44
+ essayConsultantIds: [{ type: Schema.Types.ObjectId, ref: 'User' }],
41
45
  updatedAt: Date
42
46
  });
@@ -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
@@ -283,6 +283,10 @@ export var programModule = {
283
283
  type: String,
284
284
  enum: SCHOOL_TYPES
285
285
  },
286
+ isEssayConsultantNeeded: {
287
+ type: Boolean,
288
+ default: false
289
+ },
286
290
  tags: [
287
291
  {
288
292
  type: String,
@@ -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[];