-
Notifications
You must be signed in to change notification settings - Fork 0
API Reference: Interviews
Wilson Lau edited this page Jun 11, 2021
·
16 revisions
The interview resource represents a full life-cycle of any given interview, for the initial interview request to after the interview is complete. Each interview has a unique primaryUser, secondaryUser and startTime.
interface Interview {
id: uuid;
status: InterviewStatus;
primaryUserId: uuid; // Represents inviter
secondaryUserId: uuid; // Represents invitee
startTime: string; // ISO DateTime string in UTC (on the hour)
isConfirmed: boolean;
languages: CodingLanguage[] // Represents matched coding languages between the users
questions: InterviewQuestion[];
questionDifficulties: QuestionDifficulty[];
questionTypes: QuestionType[];
code: string;
}
// TODO: Other requirements for WebRTC, etc.
interface InterviewDetail extends Interview {
primaryUser: InterviewUser;
}
enum InterviewStatus {
INVITED, CONFIRMED, COMPLETED, CANCELLED
}
Used for interview session
Authenticated request with optional query param for status
interface GetInterviewResponse {
interviewDetails: DetailedInterview[];
}
- Authenticated request
- Returns the same response as
GetInterviewResponse
interface CreateInterviewRequest {
availabilityId: uuid;
secondaryUserId: uuid;
startTime: string;
}
interface CreateInterviewResponse {
interviewDetails: DetailedInterview[];
}
- Authenticated request
- Returns the same response as
GetInterviewResponse
interface ConfirmInterviewRequest {
interviewId: uuid;
isConfirmed: boolean;
}
interface ConfirmInterviewResponse {
interviewDetails: DetailedInterview[];
}