@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.
Files changed (36) hide show
  1. package/dist/cjs/model/Application.js +2 -1
  2. package/dist/cjs/model/Program.js +3 -5
  3. package/dist/cjs/model/index.js +0 -1
  4. package/dist/esm/model/Application.js +2 -1
  5. package/dist/esm/model/Program.js +3 -5
  6. package/dist/esm/model/index.js +0 -1
  7. package/dist/types/model/Allcourse.d.ts +4 -26
  8. package/dist/types/model/Application.d.ts +51 -157
  9. package/dist/types/model/Audit.d.ts +15 -43
  10. package/dist/types/model/Basedocumentationslink.d.ts +11 -16
  11. package/dist/types/model/Communication.d.ts +20 -71
  12. package/dist/types/model/Complaint.d.ts +24 -170
  13. package/dist/types/model/Course.d.ts +23 -49
  14. package/dist/types/model/Docspage.d.ts +14 -37
  15. package/dist/types/model/Documentation.d.ts +15 -28
  16. package/dist/types/model/Documentthread.d.ts +32 -181
  17. package/dist/types/model/Event.d.ts +14 -54
  18. package/dist/types/model/Internaldoc.d.ts +15 -28
  19. package/dist/types/model/Interval.d.ts +13 -26
  20. package/dist/types/model/Interview.d.ts +18 -50
  21. package/dist/types/model/InterviewSurveyResponse.d.ts +17 -62
  22. package/dist/types/model/Keywordset.d.ts +14 -44
  23. package/dist/types/model/Note.d.ts +10 -13
  24. package/dist/types/model/Permission.d.ts +20 -56
  25. package/dist/types/model/Program.d.ts +85 -255
  26. package/dist/types/model/Programrequirement.d.ts +37 -140
  27. package/dist/types/model/ResponseTime.d.ts +10 -17
  28. package/dist/types/model/SurveyInput.d.ts +21 -90
  29. package/dist/types/model/Template.d.ts +8 -13
  30. package/dist/types/model/Tenant.d.ts +10 -13
  31. package/dist/types/model/Ticket.d.ts +14 -38
  32. package/dist/types/model/Token.d.ts +9 -12
  33. package/dist/types/model/User.d.ts +199 -1
  34. package/dist/types/model/index.d.ts +0 -1
  35. package/dist/umd/index.js +1 -1
  36. package/package.json +1 -1
@@ -24,97 +24,28 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- export declare const surveyInputSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
28
- createdAt: NativeDate;
29
- updatedAt: NativeDate;
30
- studentId: import("mongoose").Types.ObjectId;
31
- isFinalVersion: boolean;
27
+ export interface ISurveyInputSurveyContent {
28
+ questionId?: string;
29
+ question?: string;
30
+ answer?: string;
31
+ type?: 'word' | 'sentence' | 'paragraph' | 'essay';
32
+ contentType?: string;
33
+ }
34
+ export interface ISurveyInput {
35
+ studentId: Schema.Types.ObjectId;
36
+ programId?: Schema.Types.ObjectId;
32
37
  fileType: string;
33
- surveyContent: import("mongoose").Types.DocumentArray<{
34
- _id?: unknown;
35
- type?: "sentence" | "paragraph" | "essay" | "word" | null | undefined;
36
- questionId?: string | null | undefined;
37
- answer?: string | null | undefined;
38
- question?: string | null | undefined;
39
- contentType?: string | null | undefined;
40
- }, import("mongoose").Types.Subdocument<unknown, any, {
41
- _id?: unknown;
42
- type?: "sentence" | "paragraph" | "essay" | "word" | null | undefined;
43
- questionId?: string | null | undefined;
44
- answer?: string | null | undefined;
45
- question?: string | null | undefined;
46
- contentType?: string | null | undefined;
47
- }> & {
48
- _id?: unknown;
49
- type?: "sentence" | "paragraph" | "essay" | "word" | null | undefined;
50
- questionId?: string | null | undefined;
51
- answer?: string | null | undefined;
52
- question?: string | null | undefined;
53
- contentType?: string | null | undefined;
54
- }>;
55
- surveyStatus: string;
56
- programId?: import("mongoose").Types.ObjectId | null | undefined;
57
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
58
- createdAt: NativeDate;
59
- updatedAt: NativeDate;
60
- studentId: import("mongoose").Types.ObjectId;
61
- isFinalVersion: boolean;
62
- fileType: string;
63
- surveyContent: import("mongoose").Types.DocumentArray<{
64
- _id?: unknown;
65
- type?: "sentence" | "paragraph" | "essay" | "word" | null | undefined;
66
- questionId?: string | null | undefined;
67
- answer?: string | null | undefined;
68
- question?: string | null | undefined;
69
- contentType?: string | null | undefined;
70
- }, import("mongoose").Types.Subdocument<unknown, any, {
71
- _id?: unknown;
72
- type?: "sentence" | "paragraph" | "essay" | "word" | null | undefined;
73
- questionId?: string | null | undefined;
74
- answer?: string | null | undefined;
75
- question?: string | null | undefined;
76
- contentType?: string | null | undefined;
77
- }> & {
78
- _id?: unknown;
79
- type?: "sentence" | "paragraph" | "essay" | "word" | null | undefined;
80
- questionId?: string | null | undefined;
81
- answer?: string | null | undefined;
82
- question?: string | null | undefined;
83
- contentType?: string | null | undefined;
84
- }>;
85
- surveyStatus: string;
86
- programId?: import("mongoose").Types.ObjectId | null | undefined;
87
- }>> & import("mongoose").FlatRecord<{
88
- createdAt: NativeDate;
89
- updatedAt: NativeDate;
90
- studentId: import("mongoose").Types.ObjectId;
91
- isFinalVersion: boolean;
92
- fileType: string;
93
- surveyContent: import("mongoose").Types.DocumentArray<{
94
- _id?: unknown;
95
- type?: "sentence" | "paragraph" | "essay" | "word" | null | undefined;
96
- questionId?: string | null | undefined;
97
- answer?: string | null | undefined;
98
- question?: string | null | undefined;
99
- contentType?: string | null | undefined;
100
- }, import("mongoose").Types.Subdocument<unknown, any, {
101
- _id?: unknown;
102
- type?: "sentence" | "paragraph" | "essay" | "word" | null | undefined;
103
- questionId?: string | null | undefined;
104
- answer?: string | null | undefined;
105
- question?: string | null | undefined;
106
- contentType?: string | null | undefined;
107
- }> & {
108
- _id?: unknown;
109
- type?: "sentence" | "paragraph" | "essay" | "word" | null | undefined;
110
- questionId?: string | null | undefined;
111
- answer?: string | null | undefined;
112
- question?: string | null | undefined;
113
- contentType?: string | null | undefined;
114
- }>;
115
- surveyStatus: string;
116
- programId?: import("mongoose").Types.ObjectId | null | undefined;
117
- }> & {
38
+ isFinalVersion?: boolean;
39
+ surveyContent?: ISurveyInputSurveyContent[];
40
+ surveyStatus?: string;
41
+ createdAt?: Date;
42
+ updatedAt?: Date;
43
+ }
44
+ export declare const surveyInputSchema: Schema<ISurveyInput, import("mongoose").Model<ISurveyInput, any, any, any, import("mongoose").Document<unknown, any, ISurveyInput> & ISurveyInput & {
45
+ _id: import("mongoose").Types.ObjectId;
46
+ } & {
47
+ __v: number;
48
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ISurveyInput, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ISurveyInput>> & import("mongoose").FlatRecord<ISurveyInput> & {
118
49
  _id: import("mongoose").Types.ObjectId;
119
50
  } & {
120
51
  __v: number;
@@ -24,22 +24,17 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- export declare const templatesSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
27
+ export interface ITemplate {
28
28
  name: string;
29
- path: string;
30
29
  category_name: string;
31
- updatedAt?: NativeDate | null | undefined;
32
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
33
- name: string;
34
- path: string;
35
- category_name: string;
36
- updatedAt?: NativeDate | null | undefined;
37
- }>> & import("mongoose").FlatRecord<{
38
- name: string;
39
30
  path: string;
40
- category_name: string;
41
- updatedAt?: NativeDate | null | undefined;
42
- }> & {
31
+ updatedAt?: Date;
32
+ }
33
+ export declare const templatesSchema: Schema<ITemplate, import("mongoose").Model<ITemplate, any, any, any, import("mongoose").Document<unknown, any, ITemplate> & ITemplate & {
34
+ _id: import("mongoose").Types.ObjectId;
35
+ } & {
36
+ __v: number;
37
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ITemplate, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ITemplate>> & import("mongoose").FlatRecord<ITemplate> & {
43
38
  _id: import("mongoose").Types.ObjectId;
44
39
  } & {
45
40
  __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 declare const tenantsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
28
- updatedAt?: NativeDate | null | undefined;
29
- tenantId?: string | null | undefined;
30
- domainName?: string | null | undefined;
31
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
32
- updatedAt?: NativeDate | null | undefined;
33
- tenantId?: string | null | undefined;
34
- domainName?: string | null | undefined;
35
- }>> & import("mongoose").FlatRecord<{
36
- updatedAt?: NativeDate | null | undefined;
37
- tenantId?: string | null | undefined;
38
- domainName?: string | null | undefined;
39
- }> & {
27
+ export interface ITenant {
28
+ tenantId: string;
29
+ domainName: string;
30
+ updatedAt?: Date;
31
+ }
32
+ export declare const tenantsSchema: Schema<ITenant, import("mongoose").Model<ITenant, any, any, any, import("mongoose").Document<unknown, any, ITenant> & ITenant & {
33
+ _id: import("mongoose").Types.ObjectId;
34
+ } & {
35
+ __v: number;
36
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ITenant, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ITenant>> & import("mongoose").FlatRecord<ITenant> & {
40
37
  _id: import("mongoose").Types.ObjectId;
41
38
  } & {
42
39
  __v: number;
@@ -24,45 +24,21 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
- export declare const ticketSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
28
- timestamps: true;
29
- }, {
30
- createdAt: NativeDate;
31
- updatedAt: NativeDate;
32
- } & {
33
- type: string;
34
- description: string;
35
- createdAt: NativeDate;
36
- status: string;
37
- requester_id: import("mongoose").Types.ObjectId;
38
- feedback: string;
39
- program_id?: import("mongoose").Types.ObjectId | null | undefined;
40
- resolver_id?: import("mongoose").Types.ObjectId | null | undefined;
41
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
42
- createdAt: NativeDate;
43
- updatedAt: NativeDate;
44
- } & {
45
- type: string;
46
- description: string;
47
- createdAt: NativeDate;
48
- status: string;
49
- requester_id: import("mongoose").Types.ObjectId;
50
- feedback: string;
51
- program_id?: import("mongoose").Types.ObjectId | null | undefined;
52
- resolver_id?: import("mongoose").Types.ObjectId | null | undefined;
53
- }>> & import("mongoose").FlatRecord<{
54
- createdAt: NativeDate;
55
- updatedAt: NativeDate;
27
+ export interface ITicket {
28
+ requester_id: Schema.Types.ObjectId;
29
+ resolver_id?: Schema.Types.ObjectId;
30
+ program_id?: Schema.Types.ObjectId;
31
+ status?: string;
32
+ type?: string;
33
+ description?: string;
34
+ feedback?: string;
35
+ createdAt?: Date;
36
+ }
37
+ export declare const ticketSchema: Schema<ITicket, import("mongoose").Model<ITicket, any, any, any, import("mongoose").Document<unknown, any, ITicket> & ITicket & {
38
+ _id: import("mongoose").Types.ObjectId;
56
39
  } & {
57
- type: string;
58
- description: string;
59
- createdAt: NativeDate;
60
- status: string;
61
- requester_id: import("mongoose").Types.ObjectId;
62
- feedback: string;
63
- program_id?: import("mongoose").Types.ObjectId | null | undefined;
64
- resolver_id?: import("mongoose").Types.ObjectId | null | undefined;
65
- }> & {
40
+ __v: number;
41
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ITicket, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ITicket>> & import("mongoose").FlatRecord<ITicket> & {
66
42
  _id: import("mongoose").Types.ObjectId;
67
43
  } & {
68
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 declare const tokenSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
28
- createdAt: NativeDate;
29
- userId: import("mongoose").Types.ObjectId;
27
+ export interface IToken {
28
+ userId: Schema.Types.ObjectId;
30
29
  value: string;
31
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
32
- createdAt: NativeDate;
33
- userId: import("mongoose").Types.ObjectId;
34
- value: string;
35
- }>> & import("mongoose").FlatRecord<{
36
- createdAt: NativeDate;
37
- userId: import("mongoose").Types.ObjectId;
38
- value: string;
39
- }> & {
30
+ createdAt?: Date;
31
+ }
32
+ export declare const tokenSchema: Schema<IToken, import("mongoose").Model<IToken, any, any, any, import("mongoose").Document<unknown, any, IToken> & IToken & {
33
+ _id: import("mongoose").Types.ObjectId;
34
+ } & {
35
+ __v: number;
36
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IToken, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IToken>> & import("mongoose").FlatRecord<IToken> & {
40
37
  _id: import("mongoose").Types.ObjectId;
41
38
  } & {
42
39
  __v: number;
@@ -1 +1,199 @@
1
- export {};
1
+ import { Schema } from 'mongoose';
2
+ export interface IUserNotification {
3
+ isRead_survey_not_complete?: boolean;
4
+ isRead_uni_assist_task_assigned?: boolean;
5
+ isRead_new_agent_assigned?: boolean;
6
+ isRead_new_editor_assigned?: boolean;
7
+ isRead_new_cvmlrl_tasks_created?: boolean;
8
+ isRead_new_cvmlrl_messsage?: boolean;
9
+ isRead_base_documents_missing?: boolean;
10
+ isRead_base_documents_rejected?: boolean;
11
+ isRead_new_programs_assigned?: boolean;
12
+ }
13
+ export interface IUserTaigeraiFile {
14
+ name?: string;
15
+ status?: string;
16
+ file_category?: string;
17
+ path?: string;
18
+ updatedAt?: Date;
19
+ }
20
+ export interface IUserTaigeraiFeedback {
21
+ message?: string;
22
+ updatedAt?: Date;
23
+ }
24
+ export interface IUserTaigerai {
25
+ input?: IUserTaigeraiFile;
26
+ output?: IUserTaigeraiFile;
27
+ feedback?: IUserTaigeraiFeedback;
28
+ }
29
+ export interface IUserApplicationPreference {
30
+ expected_application_date?: string;
31
+ expected_application_semester?: string;
32
+ target_program_language?: string;
33
+ target_application_field?: string;
34
+ targetApplicationSubjects?: string[];
35
+ target_degree?: string;
36
+ considered_privat_universities?: string;
37
+ special_wished?: string;
38
+ application_outside_germany?: string;
39
+ updatedAt?: Date;
40
+ }
41
+ export interface IUserAcademicBackgroundUniversity {
42
+ high_school_isGraduated?: string;
43
+ attended_high_school?: string;
44
+ high_school_graduated_year?: string;
45
+ attended_university?: string;
46
+ attended_university_program?: string;
47
+ isGraduated?: string;
48
+ expected_grad_date?: string;
49
+ Highest_GPA_Uni?: number;
50
+ Passing_GPA_Uni?: number;
51
+ My_GPA_Uni?: number;
52
+ Has_Exchange_Experience?: string;
53
+ isSecondGraduated?: string;
54
+ expectedSecondDegreeGradDate?: string;
55
+ attendedSecondDegreeUniversity?: string;
56
+ attendedSecondDegreeProgram?: string;
57
+ highestSecondDegreeGPA?: number;
58
+ passingSecondDegreeGPA?: number;
59
+ mySecondDegreeGPA?: number;
60
+ Has_Internship_Experience?: string;
61
+ Has_Working_Experience?: string;
62
+ updatedAt?: Date;
63
+ }
64
+ export interface IUserAcademicBackgroundLanguage {
65
+ english_isPassed?: string;
66
+ english_certificate?: string;
67
+ english_score?: string;
68
+ english_score_reading?: string;
69
+ english_score_listening?: string;
70
+ english_score_writing?: string;
71
+ english_score_speaking?: string;
72
+ english_test_date?: string;
73
+ german_isPassed?: string;
74
+ german_certificate?: string;
75
+ german_score?: string;
76
+ german_test_date?: string;
77
+ gre_isPassed?: string;
78
+ gre_certificate?: string;
79
+ gre_score?: string;
80
+ gre_test_date?: string;
81
+ gmat_isPassed?: string;
82
+ gmat_certificate?: string;
83
+ gmat_score?: string;
84
+ gmat_test_date?: string;
85
+ updatedAt?: Date;
86
+ }
87
+ export interface IUserAcademicBackground {
88
+ university?: IUserAcademicBackgroundUniversity;
89
+ language?: IUserAcademicBackgroundLanguage;
90
+ }
91
+ export interface IUserAttribute {
92
+ value: number;
93
+ name: string;
94
+ }
95
+ export interface IUser {
96
+ firstname?: string;
97
+ firstname_chinese?: string;
98
+ lastname?: string;
99
+ lastname_chinese?: string;
100
+ email?: string;
101
+ pictureUrl?: string;
102
+ password?: string;
103
+ archiv?: boolean;
104
+ birthday?: string;
105
+ linkedIn?: string;
106
+ lineId?: string;
107
+ isAccountActivated?: boolean;
108
+ notification?: IUserNotification;
109
+ taigerai?: IUserTaigerai;
110
+ application_preference?: IUserApplicationPreference;
111
+ academic_background?: IUserAcademicBackground;
112
+ lastLoginAt?: Date;
113
+ }
114
+ export interface IUserProfileItem {
115
+ name: string;
116
+ status?: string;
117
+ required: boolean;
118
+ path?: string;
119
+ feedback?: string;
120
+ updatedAt?: Date;
121
+ }
122
+ export interface IUserGeneraldocsThread {
123
+ isFinalVersion?: boolean;
124
+ latest_message_left_by_id?: string;
125
+ doc_thread_id?: Schema.Types.ObjectId;
126
+ updatedAt?: Date;
127
+ createdAt?: Date;
128
+ }
129
+ export interface IStudent extends IUser {
130
+ agents?: Schema.Types.ObjectId[];
131
+ editors?: Schema.Types.ObjectId[];
132
+ needEditor?: boolean;
133
+ applying_program_count?: number;
134
+ attributes?: IUserAttribute[];
135
+ profile?: IUserProfileItem[];
136
+ generaldocs_threads?: IUserGeneraldocsThread[];
137
+ }
138
+ export interface IUserOfficeHoursDay {
139
+ active?: boolean;
140
+ time_slots?: unknown[];
141
+ }
142
+ export interface IAgentNotificationItem {
143
+ student_id?: string;
144
+ student_firstname?: string;
145
+ student_lastname?: string;
146
+ }
147
+ export interface IAgent extends IUser {
148
+ timezone?: string;
149
+ officehours?: Record<string, IUserOfficeHoursDay>;
150
+ selfIntroduction?: string;
151
+ agent_notification?: {
152
+ isRead_new_base_docs_uploaded?: IAgentNotificationItem[];
153
+ isRead_new_survey_updated?: boolean;
154
+ isRead_applications_status_changed?: boolean;
155
+ isRead_new_programs_assigned?: boolean;
156
+ };
157
+ }
158
+ export interface IEditor extends IUser {
159
+ timezone?: string;
160
+ officehours?: Record<string, IUserOfficeHoursDay>;
161
+ editor_notification?: {
162
+ isRead_survey_not_complete?: boolean;
163
+ isRead_base_documents_missing?: boolean;
164
+ isRead_base_documents_rejected?: boolean;
165
+ isRead_new_programs_assigned?: boolean;
166
+ };
167
+ attribute?: {
168
+ can_write_ml?: boolean;
169
+ can_write_rl?: boolean;
170
+ can_write_cv?: boolean;
171
+ can_write_essay?: boolean;
172
+ can_do_interview?: boolean;
173
+ };
174
+ }
175
+ export interface IManager extends IUser {
176
+ agents?: Schema.Types.ObjectId[];
177
+ editors?: Schema.Types.ObjectId[];
178
+ manager_type?: string;
179
+ manager_notification?: {
180
+ isRead_new_base_docs_uploaded?: {
181
+ student_id?: string;
182
+ }[];
183
+ isRead_new_programs_assigned?: boolean;
184
+ };
185
+ attribute?: {
186
+ can_write_ml?: boolean;
187
+ can_write_rl?: boolean;
188
+ can_write_cv?: boolean;
189
+ can_write_essay?: boolean;
190
+ can_do_interview?: boolean;
191
+ };
192
+ }
193
+ export interface IExternal extends IUser {
194
+ attribute?: {
195
+ can_update_program_list?: boolean;
196
+ can_update_course_analysis?: boolean;
197
+ can_add_articles?: boolean;
198
+ };
199
+ }
@@ -11,7 +11,6 @@ export * from './Documentthread';
11
11
  export * from './Event';
12
12
  export * from './Internaldoc';
13
13
  export * from './Interval';
14
- export * from './Event';
15
14
  export * from './Interview';
16
15
  export * from './InterviewSurveyResponse';
17
16
  export * from './Keywordset';