@taiger-common/model 1.0.57 → 1.0.59

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.
Files changed (100) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/dist/cjs/model/User.js +1 -0
  4. package/dist/esm/index.js +0 -2
  5. package/dist/esm/model/Documentthread.js +4 -2
  6. package/dist/esm/model/Program.js +78 -326
  7. package/dist/esm/model/User.js +124 -62
  8. package/dist/esm/model/index.js +1 -1
  9. package/dist/types/index.d.ts +0 -2
  10. package/dist/types/model/Allcourse.d.ts +27 -6
  11. package/dist/types/model/Audit.d.ts +43 -18
  12. package/dist/types/model/Basedocumentationslink.d.ts +16 -11
  13. package/dist/types/model/Communication.d.ts +71 -22
  14. package/dist/types/model/Complaint.d.ts +170 -25
  15. package/dist/types/model/Course.d.ts +49 -23
  16. package/dist/types/model/Docspage.d.ts +37 -14
  17. package/dist/types/model/Documentation.d.ts +28 -15
  18. package/dist/types/model/Documentthread.d.ts +178 -35
  19. package/dist/types/model/Event.d.ts +54 -15
  20. package/dist/types/model/Internaldoc.d.ts +28 -15
  21. package/dist/types/model/Interval.d.ts +26 -13
  22. package/dist/types/model/Interview.d.ts +50 -23
  23. package/dist/types/model/InterviewSurveyResponse.d.ts +62 -20
  24. package/dist/types/model/Keywordset.d.ts +44 -14
  25. package/dist/types/model/Note.d.ts +13 -11
  26. package/dist/types/model/Permission.d.ts +56 -21
  27. package/dist/types/model/Program.d.ts +232 -387
  28. package/dist/types/model/Programrequirement.d.ts +140 -37
  29. package/dist/types/model/ResponseTime.d.ts +17 -12
  30. package/dist/types/model/SurveyInput.d.ts +90 -23
  31. package/dist/types/model/Template.d.ts +13 -8
  32. package/dist/types/model/Tenant.d.ts +13 -10
  33. package/dist/types/model/Ticket.d.ts +38 -16
  34. package/dist/types/model/Token.d.ts +12 -10
  35. package/dist/types/model/User.d.ts +1 -2148
  36. package/dist/types/model/index.d.ts +1 -1
  37. package/dist/umd/index.js +1 -1
  38. package/package.json +1 -1
  39. package/dist/esm/api/account.js +0 -32
  40. package/dist/esm/api/applications.js +0 -43
  41. package/dist/esm/api/audit.js +0 -5
  42. package/dist/esm/api/auth.js +0 -16
  43. package/dist/esm/api/common.js +0 -27
  44. package/dist/esm/api/communications.js +0 -12
  45. package/dist/esm/api/courses.js +0 -20
  46. package/dist/esm/api/crm.js +0 -84
  47. package/dist/esm/api/documentThreads.js +0 -41
  48. package/dist/esm/api/documentations.js +0 -30
  49. package/dist/esm/api/events.js +0 -19
  50. package/dist/esm/api/index.js +0 -25
  51. package/dist/esm/api/interviews.js +0 -32
  52. package/dist/esm/api/meetings.js +0 -17
  53. package/dist/esm/api/notes.js +0 -5
  54. package/dist/esm/api/permissions.js +0 -6
  55. package/dist/esm/api/portals.js +0 -21
  56. package/dist/esm/api/programRequirements.js +0 -23
  57. package/dist/esm/api/programs.js +0 -90
  58. package/dist/esm/api/search.js +0 -21
  59. package/dist/esm/api/serialized.js +0 -13
  60. package/dist/esm/api/students.js +0 -26
  61. package/dist/esm/api/teams.js +0 -45
  62. package/dist/esm/api/tickets.js +0 -18
  63. package/dist/esm/api/users.js +0 -39
  64. package/dist/esm/api/widgets.js +0 -18
  65. package/dist/esm/constants/users.js +0 -9
  66. package/dist/esm/model/Application.js +0 -75
  67. package/dist/esm/schema/index.js +0 -6
  68. package/dist/esm/schema/models.js +0 -520
  69. package/dist/esm/schema/serialized.js +0 -199
  70. package/dist/types/api/account.d.ts +0 -503
  71. package/dist/types/api/applications.d.ts +0 -3417
  72. package/dist/types/api/audit.d.ts +0 -89
  73. package/dist/types/api/auth.d.ts +0 -3411
  74. package/dist/types/api/common.d.ts +0 -90
  75. package/dist/types/api/communications.d.ts +0 -617
  76. package/dist/types/api/courses.d.ts +0 -849
  77. package/dist/types/api/crm.d.ts +0 -1113
  78. package/dist/types/api/documentThreads.d.ts +0 -38257
  79. package/dist/types/api/documentations.d.ts +0 -933
  80. package/dist/types/api/events.d.ts +0 -7209
  81. package/dist/types/api/index.d.ts +0 -25
  82. package/dist/types/api/interviews.d.ts +0 -802
  83. package/dist/types/api/meetings.d.ts +0 -49
  84. package/dist/types/api/notes.d.ts +0 -85
  85. package/dist/types/api/permissions.d.ts +0 -195
  86. package/dist/types/api/portals.d.ts +0 -770
  87. package/dist/types/api/programRequirements.d.ts +0 -2685
  88. package/dist/types/api/programs.d.ts +0 -3046
  89. package/dist/types/api/search.d.ts +0 -292
  90. package/dist/types/api/serialized.d.ts +0 -7
  91. package/dist/types/api/students.d.ts +0 -307
  92. package/dist/types/api/teams.d.ts +0 -3671
  93. package/dist/types/api/tickets.d.ts +0 -960
  94. package/dist/types/api/users.d.ts +0 -6960
  95. package/dist/types/api/widgets.d.ts +0 -234
  96. package/dist/types/constants/users.d.ts +0 -9
  97. package/dist/types/model/Application.d.ts +0 -85
  98. package/dist/types/schema/index.d.ts +0 -6
  99. package/dist/types/schema/models.d.ts +0 -2038
  100. package/dist/types/schema/serialized.d.ts +0 -8823
@@ -24,24 +24,63 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- import { IUser } from './User';
28
27
  export interface IEvent {
29
- requester_id?: IUser[] | Schema.Types.ObjectId[] | string[];
30
- receiver_id?: IUser[] | Schema.Types.ObjectId[] | string[];
31
- isConfirmedRequester?: boolean;
32
- isConfirmedReceiver?: boolean;
33
- meetingLink?: string;
34
- event_type?: string;
35
- title?: string;
36
- description?: string;
37
- start?: Date;
38
- end?: Date;
28
+ requester_id: string[];
29
+ receiver_id: string[];
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;
39
38
  }
40
- export declare const EventSchema: Schema<IEvent, import("mongoose").Model<IEvent, any, any, any, import("mongoose").Document<unknown, any, IEvent> & IEvent & {
41
- _id: import("mongoose").Types.ObjectId;
39
+ export declare const EventSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
40
+ timestamps: true;
41
+ }, {
42
+ createdAt: NativeDate;
43
+ updatedAt: NativeDate;
42
44
  } & {
43
- __v: number;
44
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IEvent, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IEvent>> & import("mongoose").FlatRecord<IEvent> & {
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;
72
+ } & {
73
+ description: string;
74
+ requester_id: import("mongoose").Types.ObjectId[];
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
+ }> & {
45
84
  _id: import("mongoose").Types.ObjectId;
46
85
  } & {
47
86
  __v: number;
@@ -24,21 +24,34 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
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> & {
27
+ export declare const internaldocsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
28
+ text: string;
29
+ name: string;
30
+ category: string;
31
+ title: string;
32
+ author: string;
33
+ country: string;
34
+ internal: boolean;
35
+ updatedAt?: NativeDate | null | undefined;
36
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
37
+ text: string;
38
+ name: string;
39
+ category: string;
40
+ title: string;
41
+ author: string;
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
+ }> & {
42
55
  _id: import("mongoose").Types.ObjectId;
43
56
  } & {
44
57
  __v: number;
@@ -24,21 +24,34 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
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;
27
+ export declare const intervalSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
28
+ updatedAt: NativeDate;
29
+ message_1_id: import("mongoose").Types.ObjectId;
30
+ message_2_id: import("mongoose").Types.ObjectId;
32
31
  interval_type: string;
33
32
  interval: number;
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> & {
33
+ intervalStartAt: NativeDate;
34
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
35
+ thread_id?: import("mongoose").Types.ObjectId | null | undefined;
36
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
37
+ updatedAt: NativeDate;
38
+ message_1_id: import("mongoose").Types.ObjectId;
39
+ message_2_id: import("mongoose").Types.ObjectId;
40
+ interval_type: string;
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
+ }> & {
42
55
  _id: import("mongoose").Types.ObjectId;
43
56
  } & {
44
57
  __v: number;
@@ -24,30 +24,57 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- import { IUser } from './User';
28
- import { IStudent } from './User';
29
- import { IProgram } from './Program';
30
- import { IDocumentthread } from './Documentthread';
31
- import { IEvent } from './Event';
32
- export interface IInterview {
33
- student_id?: IStudent | Schema.Types.ObjectId | string;
34
- trainer_id?: IUser[] | Schema.Types.ObjectId[] | string[];
35
- thread_id?: IDocumentthread | Schema.Types.ObjectId | string;
36
- program_id?: IProgram | Schema.Types.ObjectId | string;
37
- event_id?: IEvent | Schema.Types.ObjectId | string;
38
- interview_description?: string;
39
- interviewer?: string;
40
- interview_duration?: string;
41
- interview_date?: Date;
42
- isClosed?: boolean;
43
- start?: Date;
44
- end?: Date;
45
- }
46
- export declare const interviewsSchema: Schema<IInterview, import("mongoose").Model<IInterview, any, any, any, import("mongoose").Document<unknown, any, IInterview> & IInterview & {
47
- _id: import("mongoose").Types.ObjectId;
27
+ export declare const interviewsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
28
+ timestamps: true;
29
+ }, {
30
+ createdAt: NativeDate;
31
+ updatedAt: NativeDate;
48
32
  } & {
49
- __v: number;
50
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IInterview, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IInterview>> & import("mongoose").FlatRecord<IInterview> & {
33
+ trainer_id: import("mongoose").Types.ObjectId[];
34
+ interview_description: string;
35
+ interviewer: string;
36
+ interview_duration: string;
37
+ isClosed: boolean;
38
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
39
+ program_id?: import("mongoose").Types.ObjectId | null | undefined;
40
+ start?: NativeDate | null | undefined;
41
+ end?: NativeDate | null | undefined;
42
+ thread_id?: import("mongoose").Types.ObjectId | null | undefined;
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;
64
+ } & {
65
+ trainer_id: import("mongoose").Types.ObjectId[];
66
+ interview_description: string;
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
+ }> & {
51
78
  _id: import("mongoose").Types.ObjectId;
52
79
  } & {
53
80
  __v: number;
@@ -24,27 +24,69 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- import { IStudent } from './User';
28
- import { IProgram } from './Program';
29
- import { IInterview } from './Interview';
30
- export interface IInterviewSurveyResponseResponse {
31
- questionId?: string;
32
- answer?: number;
33
- }
34
- export interface IInterviewSurveyResponse {
35
- student_id?: IStudent | Schema.Types.ObjectId | string;
36
- interview_id?: IInterview | Schema.Types.ObjectId | string;
37
- program_id?: IProgram | Schema.Types.ObjectId | string;
38
- responses?: IInterviewSurveyResponseResponse[];
39
- isFinal?: boolean;
40
- interviewQuestions?: string;
41
- interviewFeedback?: string;
42
- }
43
- export declare const interviewSurveyResponseSchema: Schema<IInterviewSurveyResponse, import("mongoose").Model<IInterviewSurveyResponse, any, any, any, import("mongoose").Document<unknown, any, IInterviewSurveyResponse> & IInterviewSurveyResponse & {
44
- _id: import("mongoose").Types.ObjectId;
27
+ export declare const interviewSurveyResponseSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
28
+ timestamps: true;
29
+ }, {
30
+ createdAt: NativeDate;
31
+ updatedAt: NativeDate;
45
32
  } & {
46
- __v: number;
47
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IInterviewSurveyResponse, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IInterviewSurveyResponse>> & import("mongoose").FlatRecord<IInterviewSurveyResponse> & {
33
+ responses: import("mongoose").Types.DocumentArray<{
34
+ questionId?: string | null | undefined;
35
+ answer?: number | null | undefined;
36
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
37
+ questionId?: string | null | undefined;
38
+ answer?: number | null | undefined;
39
+ }> & {
40
+ questionId?: string | null | undefined;
41
+ answer?: number | null | undefined;
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;
72
+ } & {
73
+ responses: import("mongoose").Types.DocumentArray<{
74
+ questionId?: string | null | undefined;
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
+ }> & {
48
90
  _id: import("mongoose").Types.ObjectId;
49
91
  } & {
50
92
  __v: number;
@@ -24,21 +24,51 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
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;
27
+ export declare const keywordSetSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
28
+ timestamps: true;
29
+ }, {
30
+ createdAt: NativeDate;
31
+ updatedAt: NativeDate;
39
32
  } & {
40
- __v: number;
41
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IKeywordset, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IKeywordset>> & import("mongoose").FlatRecord<IKeywordset> & {
33
+ description: string;
34
+ categoryName?: string | null | undefined;
35
+ keywords?: {
36
+ zh: string[];
37
+ en: string[];
38
+ } | null | undefined;
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;
60
+ } & {
61
+ description: string;
62
+ categoryName?: string | null | undefined;
63
+ keywords?: {
64
+ zh: string[];
65
+ en: string[];
66
+ } | null | undefined;
67
+ antiKeywords?: {
68
+ zh: string[];
69
+ en: string[];
70
+ } | null | undefined;
71
+ }> & {
42
72
  _id: import("mongoose").Types.ObjectId;
43
73
  } & {
44
74
  __v: number;
@@ -24,17 +24,19 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- import { IStudent } from './User';
28
- export interface INote {
29
- student_id?: IStudent | Schema.Types.ObjectId | string;
30
- notes?: string;
31
- updatedAt?: Date;
32
- }
33
- export declare const notesSchema: Schema<INote, import("mongoose").Model<INote, any, any, any, import("mongoose").Document<unknown, any, INote> & INote & {
34
- _id: import("mongoose").Types.ObjectId;
35
- } & {
36
- __v: number;
37
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, INote, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<INote>> & import("mongoose").FlatRecord<INote> & {
27
+ export declare const notesSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
28
+ notes: string;
29
+ updatedAt?: NativeDate | null | undefined;
30
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
31
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
32
+ notes: string;
33
+ updatedAt?: NativeDate | null | undefined;
34
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
35
+ }>> & import("mongoose").FlatRecord<{
36
+ notes: string;
37
+ updatedAt?: NativeDate | null | undefined;
38
+ student_id?: import("mongoose").Types.ObjectId | null | undefined;
39
+ }> & {
38
40
  _id: import("mongoose").Types.ObjectId;
39
41
  } & {
40
42
  __v: number;
@@ -24,28 +24,63 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- import { IUser } from './User';
28
- export interface IPermission {
29
- user_id?: IUser | Schema.Types.ObjectId | string;
30
- taigerAiQuota?: number;
31
- canAssignEditors?: boolean;
32
- canUseTaiGerAI?: boolean;
33
- canModifyProgramList?: boolean;
34
- canModifyAllBaseDocuments?: boolean;
35
- canAccessAllChat?: boolean;
36
- canAssignAgents?: boolean;
37
- canModifyDocumentation?: boolean;
38
- canAccessStudentDatabase?: boolean;
39
- canAddUser?: boolean;
40
- canModifyUser?: boolean;
41
- isEssayWriters?: boolean;
42
- updatedAt?: Date;
43
- }
44
- export declare const permissionSchema: Schema<IPermission, import("mongoose").Model<IPermission, any, any, any, import("mongoose").Document<unknown, any, IPermission> & IPermission & {
45
- _id: import("mongoose").Types.ObjectId;
27
+ export declare const permissionSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
28
+ timestamps: true;
29
+ }, {
30
+ createdAt: NativeDate;
31
+ updatedAt: NativeDate;
46
32
  } & {
47
- __v: number;
48
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IPermission, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IPermission>> & import("mongoose").FlatRecord<IPermission> & {
33
+ taigerAiQuota: number;
34
+ canAssignEditors: boolean;
35
+ canUseTaiGerAI: boolean;
36
+ canModifyProgramList: boolean;
37
+ canModifyAllBaseDocuments: boolean;
38
+ canAccessAllChat: boolean;
39
+ canAssignAgents: boolean;
40
+ canModifyDocumentation: boolean;
41
+ canAccessStudentDatabase: boolean;
42
+ canAddUser: boolean;
43
+ canModifyUser: boolean;
44
+ isEssayWriters: boolean;
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;
68
+ } & {
69
+ taigerAiQuota: number;
70
+ canAssignEditors: boolean;
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
+ }> & {
49
84
  _id: import("mongoose").Types.ObjectId;
50
85
  } & {
51
86
  __v: number;