@taiger-common/model 1.0.42 → 1.0.45
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/Application.js +2 -1
- package/dist/cjs/model/Program.js +3 -5
- package/dist/cjs/model/index.js +0 -1
- package/dist/esm/model/Application.js +2 -1
- package/dist/esm/model/Program.js +3 -5
- package/dist/esm/model/index.js +0 -1
- package/dist/types/model/Allcourse.d.ts +4 -26
- package/dist/types/model/Application.d.ts +51 -157
- package/dist/types/model/Audit.d.ts +15 -43
- package/dist/types/model/Basedocumentationslink.d.ts +11 -16
- package/dist/types/model/Communication.d.ts +20 -71
- package/dist/types/model/Complaint.d.ts +24 -170
- package/dist/types/model/Course.d.ts +23 -49
- package/dist/types/model/Docspage.d.ts +14 -37
- package/dist/types/model/Documentation.d.ts +15 -28
- package/dist/types/model/Documentthread.d.ts +32 -181
- package/dist/types/model/Event.d.ts +14 -54
- package/dist/types/model/Internaldoc.d.ts +15 -28
- package/dist/types/model/Interval.d.ts +13 -26
- package/dist/types/model/Interview.d.ts +18 -50
- package/dist/types/model/InterviewSurveyResponse.d.ts +17 -62
- package/dist/types/model/Keywordset.d.ts +14 -44
- package/dist/types/model/Note.d.ts +10 -13
- package/dist/types/model/Permission.d.ts +20 -56
- package/dist/types/model/Program.d.ts +85 -255
- package/dist/types/model/Programrequirement.d.ts +37 -140
- package/dist/types/model/ResponseTime.d.ts +10 -17
- package/dist/types/model/SurveyInput.d.ts +21 -90
- package/dist/types/model/Template.d.ts +8 -13
- package/dist/types/model/Tenant.d.ts +10 -13
- package/dist/types/model/Ticket.d.ts +14 -38
- package/dist/types/model/Token.d.ts +9 -12
- package/dist/types/model/User.d.ts +199 -1
- package/dist/types/model/index.d.ts +0 -1
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
|
@@ -25,62 +25,22 @@
|
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import { Schema } from 'mongoose';
|
|
27
27
|
export interface IEvent {
|
|
28
|
-
requester_id
|
|
29
|
-
receiver_id
|
|
30
|
-
isConfirmedRequester
|
|
31
|
-
isConfirmedReceiver
|
|
32
|
-
meetingLink
|
|
33
|
-
event_type
|
|
34
|
-
title
|
|
35
|
-
description
|
|
36
|
-
start
|
|
37
|
-
end
|
|
28
|
+
requester_id?: Schema.Types.ObjectId[];
|
|
29
|
+
receiver_id?: Schema.Types.ObjectId[];
|
|
30
|
+
isConfirmedRequester?: boolean;
|
|
31
|
+
isConfirmedReceiver?: boolean;
|
|
32
|
+
meetingLink?: string;
|
|
33
|
+
event_type?: string;
|
|
34
|
+
title?: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
start?: Date;
|
|
37
|
+
end?: Date;
|
|
38
38
|
}
|
|
39
|
-
export declare const EventSchema: Schema<
|
|
40
|
-
|
|
41
|
-
}, {
|
|
42
|
-
createdAt: NativeDate;
|
|
43
|
-
updatedAt: NativeDate;
|
|
44
|
-
} & {
|
|
45
|
-
description: string;
|
|
46
|
-
requester_id: import("mongoose").Types.ObjectId[];
|
|
47
|
-
receiver_id: import("mongoose").Types.ObjectId[];
|
|
48
|
-
isConfirmedRequester: boolean;
|
|
49
|
-
isConfirmedReceiver: boolean;
|
|
50
|
-
meetingLink: string;
|
|
51
|
-
start: NativeDate;
|
|
52
|
-
title?: string | null | undefined;
|
|
53
|
-
event_type?: string | null | undefined;
|
|
54
|
-
end?: NativeDate | null | undefined;
|
|
55
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
56
|
-
createdAt: NativeDate;
|
|
57
|
-
updatedAt: NativeDate;
|
|
58
|
-
} & {
|
|
59
|
-
description: string;
|
|
60
|
-
requester_id: import("mongoose").Types.ObjectId[];
|
|
61
|
-
receiver_id: import("mongoose").Types.ObjectId[];
|
|
62
|
-
isConfirmedRequester: boolean;
|
|
63
|
-
isConfirmedReceiver: boolean;
|
|
64
|
-
meetingLink: string;
|
|
65
|
-
start: NativeDate;
|
|
66
|
-
title?: string | null | undefined;
|
|
67
|
-
event_type?: string | null | undefined;
|
|
68
|
-
end?: NativeDate | null | undefined;
|
|
69
|
-
}>> & import("mongoose").FlatRecord<{
|
|
70
|
-
createdAt: NativeDate;
|
|
71
|
-
updatedAt: NativeDate;
|
|
39
|
+
export declare const EventSchema: Schema<IEvent, import("mongoose").Model<IEvent, any, any, any, import("mongoose").Document<unknown, any, IEvent> & IEvent & {
|
|
40
|
+
_id: import("mongoose").Types.ObjectId;
|
|
72
41
|
} & {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
receiver_id: import("mongoose").Types.ObjectId[];
|
|
76
|
-
isConfirmedRequester: boolean;
|
|
77
|
-
isConfirmedReceiver: boolean;
|
|
78
|
-
meetingLink: string;
|
|
79
|
-
start: NativeDate;
|
|
80
|
-
title?: string | null | undefined;
|
|
81
|
-
event_type?: string | null | undefined;
|
|
82
|
-
end?: NativeDate | null | undefined;
|
|
83
|
-
}> & {
|
|
42
|
+
__v: number;
|
|
43
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IEvent, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IEvent>> & import("mongoose").FlatRecord<IEvent> & {
|
|
84
44
|
_id: import("mongoose").Types.ObjectId;
|
|
85
45
|
} & {
|
|
86
46
|
__v: number;
|
|
@@ -24,34 +24,21 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import { Schema } from 'mongoose';
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
category
|
|
31
|
-
|
|
32
|
-
author
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
updatedAt?:
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
country: string;
|
|
43
|
-
internal: boolean;
|
|
44
|
-
updatedAt?: NativeDate | null | undefined;
|
|
45
|
-
}>> & import("mongoose").FlatRecord<{
|
|
46
|
-
text: string;
|
|
47
|
-
name: string;
|
|
48
|
-
category: string;
|
|
49
|
-
title: string;
|
|
50
|
-
author: string;
|
|
51
|
-
country: string;
|
|
52
|
-
internal: boolean;
|
|
53
|
-
updatedAt?: NativeDate | null | undefined;
|
|
54
|
-
}> & {
|
|
27
|
+
export interface IInternaldoc {
|
|
28
|
+
name?: string;
|
|
29
|
+
title?: string;
|
|
30
|
+
category?: string;
|
|
31
|
+
internal?: boolean;
|
|
32
|
+
author?: string;
|
|
33
|
+
text?: string;
|
|
34
|
+
country?: string;
|
|
35
|
+
updatedAt?: Date;
|
|
36
|
+
}
|
|
37
|
+
export declare const internaldocsSchema: Schema<IInternaldoc, import("mongoose").Model<IInternaldoc, any, any, any, import("mongoose").Document<unknown, any, IInternaldoc> & IInternaldoc & {
|
|
38
|
+
_id: import("mongoose").Types.ObjectId;
|
|
39
|
+
} & {
|
|
40
|
+
__v: number;
|
|
41
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IInternaldoc, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IInternaldoc>> & import("mongoose").FlatRecord<IInternaldoc> & {
|
|
55
42
|
_id: import("mongoose").Types.ObjectId;
|
|
56
43
|
} & {
|
|
57
44
|
__v: number;
|
|
@@ -24,34 +24,21 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import { Schema } from 'mongoose';
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
export interface IInterval {
|
|
28
|
+
thread_id?: Schema.Types.ObjectId;
|
|
29
|
+
student_id?: Schema.Types.ObjectId;
|
|
30
|
+
message_1_id: Schema.Types.ObjectId;
|
|
31
|
+
message_2_id: Schema.Types.ObjectId;
|
|
31
32
|
interval_type: string;
|
|
32
33
|
interval: number;
|
|
33
|
-
intervalStartAt:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
interval: number;
|
|
42
|
-
intervalStartAt: NativeDate;
|
|
43
|
-
student_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
44
|
-
thread_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
45
|
-
}>> & import("mongoose").FlatRecord<{
|
|
46
|
-
updatedAt: NativeDate;
|
|
47
|
-
message_1_id: import("mongoose").Types.ObjectId;
|
|
48
|
-
message_2_id: import("mongoose").Types.ObjectId;
|
|
49
|
-
interval_type: string;
|
|
50
|
-
interval: number;
|
|
51
|
-
intervalStartAt: NativeDate;
|
|
52
|
-
student_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
53
|
-
thread_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
54
|
-
}> & {
|
|
34
|
+
intervalStartAt: Date;
|
|
35
|
+
updatedAt?: Date;
|
|
36
|
+
}
|
|
37
|
+
export declare const intervalSchema: Schema<IInterval, import("mongoose").Model<IInterval, any, any, any, import("mongoose").Document<unknown, any, IInterval> & IInterval & {
|
|
38
|
+
_id: import("mongoose").Types.ObjectId;
|
|
39
|
+
} & {
|
|
40
|
+
__v: number;
|
|
41
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IInterval, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IInterval>> & import("mongoose").FlatRecord<IInterval> & {
|
|
55
42
|
_id: import("mongoose").Types.ObjectId;
|
|
56
43
|
} & {
|
|
57
44
|
__v: number;
|
|
@@ -24,57 +24,25 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import { Schema } from 'mongoose';
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
isClosed
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
event_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
44
|
-
interview_date?: NativeDate | null | undefined;
|
|
45
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
46
|
-
createdAt: NativeDate;
|
|
47
|
-
updatedAt: NativeDate;
|
|
48
|
-
} & {
|
|
49
|
-
trainer_id: import("mongoose").Types.ObjectId[];
|
|
50
|
-
interview_description: string;
|
|
51
|
-
interviewer: string;
|
|
52
|
-
interview_duration: string;
|
|
53
|
-
isClosed: boolean;
|
|
54
|
-
student_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
55
|
-
program_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
56
|
-
start?: NativeDate | null | undefined;
|
|
57
|
-
end?: NativeDate | null | undefined;
|
|
58
|
-
thread_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
59
|
-
event_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
60
|
-
interview_date?: NativeDate | null | undefined;
|
|
61
|
-
}>> & import("mongoose").FlatRecord<{
|
|
62
|
-
createdAt: NativeDate;
|
|
63
|
-
updatedAt: NativeDate;
|
|
27
|
+
export interface IInterview {
|
|
28
|
+
student_id?: Schema.Types.ObjectId;
|
|
29
|
+
trainer_id?: Schema.Types.ObjectId[];
|
|
30
|
+
thread_id?: Schema.Types.ObjectId;
|
|
31
|
+
program_id?: Schema.Types.ObjectId;
|
|
32
|
+
event_id?: Schema.Types.ObjectId;
|
|
33
|
+
interview_description?: string;
|
|
34
|
+
interviewer?: string;
|
|
35
|
+
interview_duration?: string;
|
|
36
|
+
interview_date?: Date;
|
|
37
|
+
isClosed?: boolean;
|
|
38
|
+
start?: Date;
|
|
39
|
+
end?: Date;
|
|
40
|
+
}
|
|
41
|
+
export declare const interviewsSchema: Schema<IInterview, import("mongoose").Model<IInterview, any, any, any, import("mongoose").Document<unknown, any, IInterview> & IInterview & {
|
|
42
|
+
_id: import("mongoose").Types.ObjectId;
|
|
64
43
|
} & {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
interviewer: string;
|
|
68
|
-
interview_duration: string;
|
|
69
|
-
isClosed: boolean;
|
|
70
|
-
student_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
71
|
-
program_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
72
|
-
start?: NativeDate | null | undefined;
|
|
73
|
-
end?: NativeDate | null | undefined;
|
|
74
|
-
thread_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
75
|
-
event_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
76
|
-
interview_date?: NativeDate | null | undefined;
|
|
77
|
-
}> & {
|
|
44
|
+
__v: number;
|
|
45
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IInterview, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IInterview>> & import("mongoose").FlatRecord<IInterview> & {
|
|
78
46
|
_id: import("mongoose").Types.ObjectId;
|
|
79
47
|
} & {
|
|
80
48
|
__v: number;
|
|
@@ -24,69 +24,24 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import { Schema } from 'mongoose';
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}>;
|
|
43
|
-
student_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
44
|
-
program_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
45
|
-
interview_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
46
|
-
isFinal?: boolean | null | undefined;
|
|
47
|
-
interviewQuestions?: string | null | undefined;
|
|
48
|
-
interviewFeedback?: string | null | undefined;
|
|
49
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
50
|
-
createdAt: NativeDate;
|
|
51
|
-
updatedAt: NativeDate;
|
|
52
|
-
} & {
|
|
53
|
-
responses: import("mongoose").Types.DocumentArray<{
|
|
54
|
-
questionId?: string | null | undefined;
|
|
55
|
-
answer?: number | null | undefined;
|
|
56
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
57
|
-
questionId?: string | null | undefined;
|
|
58
|
-
answer?: number | null | undefined;
|
|
59
|
-
}> & {
|
|
60
|
-
questionId?: string | null | undefined;
|
|
61
|
-
answer?: number | null | undefined;
|
|
62
|
-
}>;
|
|
63
|
-
student_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
64
|
-
program_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
65
|
-
interview_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
66
|
-
isFinal?: boolean | null | undefined;
|
|
67
|
-
interviewQuestions?: string | null | undefined;
|
|
68
|
-
interviewFeedback?: string | null | undefined;
|
|
69
|
-
}>> & import("mongoose").FlatRecord<{
|
|
70
|
-
createdAt: NativeDate;
|
|
71
|
-
updatedAt: NativeDate;
|
|
27
|
+
export interface IInterviewSurveyResponseResponse {
|
|
28
|
+
questionId?: string;
|
|
29
|
+
answer?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface IInterviewSurveyResponse {
|
|
32
|
+
student_id?: Schema.Types.ObjectId;
|
|
33
|
+
interview_id?: Schema.Types.ObjectId;
|
|
34
|
+
program_id?: Schema.Types.ObjectId;
|
|
35
|
+
responses?: IInterviewSurveyResponseResponse[];
|
|
36
|
+
isFinal?: boolean;
|
|
37
|
+
interviewQuestions?: string;
|
|
38
|
+
interviewFeedback?: string;
|
|
39
|
+
}
|
|
40
|
+
export declare const interviewSurveyResponseSchema: Schema<IInterviewSurveyResponse, import("mongoose").Model<IInterviewSurveyResponse, any, any, any, import("mongoose").Document<unknown, any, IInterviewSurveyResponse> & IInterviewSurveyResponse & {
|
|
41
|
+
_id: import("mongoose").Types.ObjectId;
|
|
72
42
|
} & {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
answer?: number | null | undefined;
|
|
76
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
77
|
-
questionId?: string | null | undefined;
|
|
78
|
-
answer?: number | null | undefined;
|
|
79
|
-
}> & {
|
|
80
|
-
questionId?: string | null | undefined;
|
|
81
|
-
answer?: number | null | undefined;
|
|
82
|
-
}>;
|
|
83
|
-
student_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
84
|
-
program_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
85
|
-
interview_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
86
|
-
isFinal?: boolean | null | undefined;
|
|
87
|
-
interviewQuestions?: string | null | undefined;
|
|
88
|
-
interviewFeedback?: string | null | undefined;
|
|
89
|
-
}> & {
|
|
43
|
+
__v: number;
|
|
44
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IInterviewSurveyResponse, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IInterviewSurveyResponse>> & import("mongoose").FlatRecord<IInterviewSurveyResponse> & {
|
|
90
45
|
_id: import("mongoose").Types.ObjectId;
|
|
91
46
|
} & {
|
|
92
47
|
__v: number;
|
|
@@ -24,51 +24,21 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import { Schema } from 'mongoose';
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
description
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
antiKeywords?: {
|
|
40
|
-
zh: string[];
|
|
41
|
-
en: string[];
|
|
42
|
-
} | null | undefined;
|
|
43
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
44
|
-
createdAt: NativeDate;
|
|
45
|
-
updatedAt: NativeDate;
|
|
46
|
-
} & {
|
|
47
|
-
description: string;
|
|
48
|
-
categoryName?: string | null | undefined;
|
|
49
|
-
keywords?: {
|
|
50
|
-
zh: string[];
|
|
51
|
-
en: string[];
|
|
52
|
-
} | null | undefined;
|
|
53
|
-
antiKeywords?: {
|
|
54
|
-
zh: string[];
|
|
55
|
-
en: string[];
|
|
56
|
-
} | null | undefined;
|
|
57
|
-
}>> & import("mongoose").FlatRecord<{
|
|
58
|
-
createdAt: NativeDate;
|
|
59
|
-
updatedAt: NativeDate;
|
|
27
|
+
export interface IKeywordsetKeywords {
|
|
28
|
+
zh?: string[];
|
|
29
|
+
en?: string[];
|
|
30
|
+
}
|
|
31
|
+
export interface IKeywordset {
|
|
32
|
+
categoryName?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
keywords?: IKeywordsetKeywords;
|
|
35
|
+
antiKeywords?: IKeywordsetKeywords;
|
|
36
|
+
}
|
|
37
|
+
export declare const keywordSetSchema: Schema<IKeywordset, import("mongoose").Model<IKeywordset, any, any, any, import("mongoose").Document<unknown, any, IKeywordset> & IKeywordset & {
|
|
38
|
+
_id: import("mongoose").Types.ObjectId;
|
|
60
39
|
} & {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
keywords?: {
|
|
64
|
-
zh: string[];
|
|
65
|
-
en: string[];
|
|
66
|
-
} | null | undefined;
|
|
67
|
-
antiKeywords?: {
|
|
68
|
-
zh: string[];
|
|
69
|
-
en: string[];
|
|
70
|
-
} | null | undefined;
|
|
71
|
-
}> & {
|
|
40
|
+
__v: number;
|
|
41
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IKeywordset, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IKeywordset>> & import("mongoose").FlatRecord<IKeywordset> & {
|
|
72
42
|
_id: import("mongoose").Types.ObjectId;
|
|
73
43
|
} & {
|
|
74
44
|
__v: number;
|
|
@@ -24,19 +24,16 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import { Schema } from 'mongoose';
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
updatedAt?: NativeDate | null | undefined;
|
|
38
|
-
student_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
39
|
-
}> & {
|
|
27
|
+
export interface INote {
|
|
28
|
+
student_id?: Schema.Types.ObjectId;
|
|
29
|
+
notes?: string;
|
|
30
|
+
updatedAt?: Date;
|
|
31
|
+
}
|
|
32
|
+
export declare const notesSchema: Schema<INote, import("mongoose").Model<INote, any, any, any, import("mongoose").Document<unknown, any, INote> & INote & {
|
|
33
|
+
_id: import("mongoose").Types.ObjectId;
|
|
34
|
+
} & {
|
|
35
|
+
__v: number;
|
|
36
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, INote, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<INote>> & import("mongoose").FlatRecord<INote> & {
|
|
40
37
|
_id: import("mongoose").Types.ObjectId;
|
|
41
38
|
} & {
|
|
42
39
|
__v: number;
|
|
@@ -24,63 +24,27 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import { Schema } from 'mongoose';
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
updatedAt?: NativeDate | null | undefined;
|
|
46
|
-
user_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
47
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
48
|
-
createdAt: NativeDate;
|
|
49
|
-
updatedAt: NativeDate;
|
|
50
|
-
} & {
|
|
51
|
-
taigerAiQuota: number;
|
|
52
|
-
canAssignEditors: boolean;
|
|
53
|
-
canUseTaiGerAI: boolean;
|
|
54
|
-
canModifyProgramList: boolean;
|
|
55
|
-
canModifyAllBaseDocuments: boolean;
|
|
56
|
-
canAccessAllChat: boolean;
|
|
57
|
-
canAssignAgents: boolean;
|
|
58
|
-
canModifyDocumentation: boolean;
|
|
59
|
-
canAccessStudentDatabase: boolean;
|
|
60
|
-
canAddUser: boolean;
|
|
61
|
-
canModifyUser: boolean;
|
|
62
|
-
isEssayWriters: boolean;
|
|
63
|
-
updatedAt?: NativeDate | null | undefined;
|
|
64
|
-
user_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
65
|
-
}>> & import("mongoose").FlatRecord<{
|
|
66
|
-
createdAt: NativeDate;
|
|
67
|
-
updatedAt: NativeDate;
|
|
27
|
+
export interface IPermission {
|
|
28
|
+
user_id?: Schema.Types.ObjectId;
|
|
29
|
+
taigerAiQuota?: number;
|
|
30
|
+
canAssignEditors?: boolean;
|
|
31
|
+
canUseTaiGerAI?: boolean;
|
|
32
|
+
canModifyProgramList?: boolean;
|
|
33
|
+
canModifyAllBaseDocuments?: boolean;
|
|
34
|
+
canAccessAllChat?: boolean;
|
|
35
|
+
canAssignAgents?: boolean;
|
|
36
|
+
canModifyDocumentation?: boolean;
|
|
37
|
+
canAccessStudentDatabase?: boolean;
|
|
38
|
+
canAddUser?: boolean;
|
|
39
|
+
canModifyUser?: boolean;
|
|
40
|
+
isEssayWriters?: boolean;
|
|
41
|
+
updatedAt?: Date;
|
|
42
|
+
}
|
|
43
|
+
export declare const permissionSchema: Schema<IPermission, import("mongoose").Model<IPermission, any, any, any, import("mongoose").Document<unknown, any, IPermission> & IPermission & {
|
|
44
|
+
_id: import("mongoose").Types.ObjectId;
|
|
68
45
|
} & {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
canUseTaiGerAI: boolean;
|
|
72
|
-
canModifyProgramList: boolean;
|
|
73
|
-
canModifyAllBaseDocuments: boolean;
|
|
74
|
-
canAccessAllChat: boolean;
|
|
75
|
-
canAssignAgents: boolean;
|
|
76
|
-
canModifyDocumentation: boolean;
|
|
77
|
-
canAccessStudentDatabase: boolean;
|
|
78
|
-
canAddUser: boolean;
|
|
79
|
-
canModifyUser: boolean;
|
|
80
|
-
isEssayWriters: boolean;
|
|
81
|
-
updatedAt?: NativeDate | null | undefined;
|
|
82
|
-
user_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
83
|
-
}> & {
|
|
46
|
+
__v: number;
|
|
47
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IPermission, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IPermission>> & import("mongoose").FlatRecord<IPermission> & {
|
|
84
48
|
_id: import("mongoose").Types.ObjectId;
|
|
85
49
|
} & {
|
|
86
50
|
__v: number;
|