@taiger-common/model 1.0.52 → 1.0.53
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 +1 -4
- package/dist/cjs/model/Program.js +0 -4
- package/dist/esm/model/Documentthread.js +1 -4
- package/dist/esm/model/Program.js +0 -4
- package/dist/types/api/meetings.d.ts +0 -11
- package/dist/types/api/serialized.d.ts +2 -2
- package/dist/types/api/teams.d.ts +0 -2
- package/dist/types/model/Documentthread.d.ts +1 -2
- package/dist/types/model/Program.d.ts +0 -5
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
|
@@ -42,9 +42,6 @@ exports.documentThreadsSchema = new mongoose_1.Schema({
|
|
|
42
42
|
ignore_message: Boolean
|
|
43
43
|
}
|
|
44
44
|
],
|
|
45
|
-
|
|
46
|
-
type: Boolean
|
|
47
|
-
},
|
|
48
|
-
essayConsultantIds: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
45
|
+
essayReviewerIds: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'User' }],
|
|
49
46
|
updatedAt: Date
|
|
50
47
|
});
|
|
@@ -39,9 +39,6 @@ export var documentThreadsSchema = new Schema({
|
|
|
39
39
|
ignore_message: Boolean
|
|
40
40
|
}
|
|
41
41
|
],
|
|
42
|
-
|
|
43
|
-
type: Boolean
|
|
44
|
-
},
|
|
45
|
-
essayConsultantIds: [{ type: Schema.Types.ObjectId, ref: 'User' }],
|
|
42
|
+
essayReviewerIds: [{ type: Schema.Types.ObjectId, ref: 'User' }],
|
|
46
43
|
updatedAt: Date
|
|
47
44
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ApiResponse, SuccessResponse } from './common';
|
|
2
1
|
/**
|
|
3
2
|
* Student meeting — no dedicated Mongoose model.
|
|
4
3
|
* Represents a scheduled meeting between a student and a TaiGer staff member.
|
|
@@ -19,13 +18,3 @@ export interface IMeeting {
|
|
|
19
18
|
receiver_id?: string[];
|
|
20
19
|
[key: string]: unknown;
|
|
21
20
|
}
|
|
22
|
-
/** GET /api/students/:studentId/meetings */
|
|
23
|
-
export type GetStudentMeetingsResponse = ApiResponse<IMeeting[]>;
|
|
24
|
-
/** GET /api/students/:studentId/meetings/:meetingId */
|
|
25
|
-
export type GetStudentMeetingResponse = ApiResponse<IMeeting>;
|
|
26
|
-
/** POST /api/students/:studentId/meetings */
|
|
27
|
-
export type CreateStudentMeetingResponse = ApiResponse<IMeeting>;
|
|
28
|
-
/** PUT /api/students/:studentId/meetings/:meetingId */
|
|
29
|
-
export type UpdateStudentMeetingResponse = ApiResponse<IMeeting>;
|
|
30
|
-
/** DELETE /api/students/:studentId/meetings/:meetingId */
|
|
31
|
-
export type DeleteStudentMeetingResponse = SuccessResponse;
|
|
@@ -68,7 +68,7 @@ export interface IDocumentthreadWithId extends IDocumentthread {
|
|
|
68
68
|
_id: string;
|
|
69
69
|
}
|
|
70
70
|
/** Document thread as returned by API — populated refs */
|
|
71
|
-
export interface IDocumentthreadPopulated extends Omit<IDocumentthread, 'student_id' | 'program_id' | 'application_id' | 'outsourced_user_id' | 'pin_by_user_id' | 'flag_by_user_id' | '
|
|
71
|
+
export interface IDocumentthreadPopulated extends Omit<IDocumentthread, 'student_id' | 'program_id' | 'application_id' | 'outsourced_user_id' | 'pin_by_user_id' | 'flag_by_user_id' | 'essayReviewerIds'> {
|
|
72
72
|
_id: string;
|
|
73
73
|
student_id: IStudentResponse | string;
|
|
74
74
|
program_id?: IProgramWithId | string;
|
|
@@ -76,7 +76,7 @@ export interface IDocumentthreadPopulated extends Omit<IDocumentthread, 'student
|
|
|
76
76
|
outsourced_user_id?: IUserWithId[];
|
|
77
77
|
pin_by_user_id?: IUserWithId[];
|
|
78
78
|
flag_by_user_id?: IUserWithId[];
|
|
79
|
-
|
|
79
|
+
essayReviewerIds?: IUserWithId[];
|
|
80
80
|
}
|
|
81
81
|
/** Communication message with string _id */
|
|
82
82
|
export interface ICommunicationWithId extends ICommunication {
|
|
@@ -46,8 +46,6 @@ export interface GetStatisticsAgentsResponse {
|
|
|
46
46
|
success: boolean;
|
|
47
47
|
agentStudentDistribution?: AgentStudentDistributionItem[];
|
|
48
48
|
}
|
|
49
|
-
/** GET /api/teams/statistics */
|
|
50
|
-
export type GetStatisticsV2Response = ApiResponse<unknown>;
|
|
51
49
|
/** GET /api/teams/statistics/kpi */
|
|
52
50
|
export type GetStatisticsKPIResponse = ApiResponse<StatisticsKPIData>;
|
|
53
51
|
/** GET /api/teams/statistics/response-time */
|
|
@@ -51,8 +51,7 @@ export interface IDocumentthread {
|
|
|
51
51
|
isOriginAuthorDeclarationConfirmedByStudent?: boolean;
|
|
52
52
|
isOriginAuthorDeclarationConfirmedByStudentTimestamp?: Date;
|
|
53
53
|
messages?: IDocumentthreadMessage[];
|
|
54
|
-
|
|
55
|
-
essayConsultantIds?: IUser[] | Schema.Types.ObjectId[] | string[];
|
|
54
|
+
essayReviewerIds?: IUser[] | Schema.Types.ObjectId[] | string[];
|
|
56
55
|
updatedAt?: Date;
|
|
57
56
|
}
|
|
58
57
|
export declare const documentThreadsSchema: Schema<IDocumentthread, import("mongoose").Model<IDocumentthread, any, any, any, import("mongoose").Document<unknown, any, IDocumentthread> & IDocumentthread & {
|
|
@@ -378,7 +378,6 @@ export interface IProgram {
|
|
|
378
378
|
isPrivateSchool?: boolean;
|
|
379
379
|
isPartnerSchool?: boolean;
|
|
380
380
|
schoolType?: string;
|
|
381
|
-
isEssayConsultantNeeded?: boolean;
|
|
382
381
|
tags?: string[];
|
|
383
382
|
url?: string;
|
|
384
383
|
isNC?: boolean;
|
|
@@ -604,10 +603,6 @@ export declare const programModule: {
|
|
|
604
603
|
type: StringConstructor;
|
|
605
604
|
enum: SchoolType[];
|
|
606
605
|
};
|
|
607
|
-
isEssayConsultantNeeded: {
|
|
608
|
-
type: BooleanConstructor;
|
|
609
|
-
default: boolean;
|
|
610
|
-
};
|
|
611
606
|
tags: {
|
|
612
607
|
type: StringConstructor;
|
|
613
608
|
enum: string[];
|