19 lines
888 B
TypeScript
19 lines
888 B
TypeScript
/**
|
|
* Game API Client Kit
|
|
* Standardized API client for communicating with Game Backend
|
|
*/
|
|
export interface GameApiConfig {
|
|
baseUrl: string;
|
|
getHeaders?: () => Record<string, string>;
|
|
}
|
|
export declare class GameApiClient {
|
|
private config;
|
|
constructor(config: GameApiConfig);
|
|
private request;
|
|
getGameWithProgress(assignmentId: number | string, studentId: string, refresh?: boolean): Promise<any>;
|
|
startLiveSession(assignmentId: number | string, studentId: string, refresh?: boolean): Promise<any>;
|
|
submitAnswer(assignmentId: number | string, studentId: string, questionId: string, answer: any, timeSpent?: number, isTimeout?: boolean): Promise<any>;
|
|
completeSession(assignmentId: number | string, studentId: string): Promise<any>;
|
|
getLeaderboard(assignmentId: number | string, studentId: string): Promise<any>;
|
|
}
|
|
//# sourceMappingURL=api.d.ts.map
|