feat(aihr): link candidates to employee principals
This commit is contained in:
@@ -72,6 +72,13 @@ export type InterviewRecord = {
|
||||
summary: string;
|
||||
};
|
||||
|
||||
export type CandidateLinkResponse = {
|
||||
candidateId: string;
|
||||
extPartyId: string;
|
||||
status: string;
|
||||
linkedTime: string;
|
||||
};
|
||||
|
||||
export type CandidateMaterialReview = {
|
||||
id: number | string;
|
||||
candidateId: string;
|
||||
@@ -119,6 +126,23 @@ export function listInterviewRecords(limit = 20): Promise<ApiResult<InterviewRec
|
||||
});
|
||||
}
|
||||
|
||||
export function getCandidateEmployeeLink(candidateId: string): Promise<ApiResult<CandidateLinkResponse | null>> {
|
||||
return request({
|
||||
url: '/api/recruit/interview/candidate-links',
|
||||
method: 'get',
|
||||
params: { candidateId }
|
||||
});
|
||||
}
|
||||
|
||||
export function linkCandidateEmployee(candidateId: string, extPartyId: string): Promise<ApiResult<CandidateLinkResponse>> {
|
||||
return request({
|
||||
url: '/api/recruit/interview/candidate-links',
|
||||
method: 'post',
|
||||
data: { candidateId, extPartyId },
|
||||
headers: { repeatSubmit: false }
|
||||
});
|
||||
}
|
||||
|
||||
export function listCandidateMaterialsForReview(status = ''): Promise<ApiResult<CandidateMaterialReview[]>> {
|
||||
return request({
|
||||
url: '/api/aihr/hr/candidate/materials',
|
||||
|
||||
Reference in New Issue
Block a user