up
All checks were successful
Deploy to Production / deploy (push) Successful in 8s

This commit is contained in:
lubukhu
2026-01-24 13:35:11 +07:00
parent 6c3e93636e
commit 65fd0158a3
145 changed files with 10262 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
/**
* Mappers Kit
* Helper functions to transform data between Client App and Game Iframe
*/
export interface GamePayloadOptions {
gameId: string | number;
userId: string;
gameData: any;
answeredQuestions?: any[];
extraData?: Record<string, any>;
endTimeIso?: string;
}
export interface IframeGamePayload {
game_id: string | number;
user_id: string;
data: any[];
completed_question_ids: {
id: string;
result: number;
}[];
end_time_iso?: string;
[key: string]: any;
}
export declare function prepareCompletedQuestions(answeredQuestions: any[]): {
id: string;
result: number;
}[];
export declare function createGamePayload(options: GamePayloadOptions): IframeGamePayload;
export declare function createLeaderboardPayload(apiData: any): any;
export declare function normalizeAnswerReport(data: any): any;
//# sourceMappingURL=mappers.d.ts.map