feat(aihr): persist interview human review
This commit is contained in:
@@ -64,14 +64,25 @@ export type InterviewFinishResponse = {
|
||||
};
|
||||
|
||||
export type InterviewRecord = {
|
||||
sessionId?: string;
|
||||
time: string;
|
||||
candidate: string;
|
||||
position: string;
|
||||
score: number;
|
||||
reviewedScore?: number | null;
|
||||
finalScore?: number;
|
||||
reviewStatus?: string;
|
||||
reviewer?: string;
|
||||
reviewNote?: string;
|
||||
result: string;
|
||||
summary: string;
|
||||
};
|
||||
|
||||
export type InterviewReviewRequest = {
|
||||
reviewedScore: number;
|
||||
reviewNote?: string;
|
||||
};
|
||||
|
||||
export type CandidateLinkResponse = {
|
||||
candidateId: string;
|
||||
extPartyId: string;
|
||||
@@ -126,6 +137,15 @@ export function listInterviewRecords(limit = 20): Promise<ApiResult<InterviewRec
|
||||
});
|
||||
}
|
||||
|
||||
export function reviewInterviewRecord(sessionId: string, data: InterviewReviewRequest): Promise<ApiResult<null>> {
|
||||
return request({
|
||||
url: `/api/recruit/interview/records/${encodeURIComponent(sessionId)}/review`,
|
||||
method: 'post',
|
||||
data,
|
||||
headers: { repeatSubmit: false }
|
||||
});
|
||||
}
|
||||
|
||||
export function getCandidateEmployeeLink(candidateId: string): Promise<ApiResult<CandidateLinkResponse | null>> {
|
||||
return request({
|
||||
url: '/api/recruit/interview/candidate-links',
|
||||
|
||||
Reference in New Issue
Block a user