This commit is contained in:
19
G102-sequence/sdk/package/dist/kit/api.d.ts
vendored
Normal file
19
G102-sequence/sdk/package/dist/kit/api.d.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* 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
|
||||
Reference in New Issue
Block a user