mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-10-20 20:15:50 +02:00
* Added new telemetry-related parameters * Update test with new parameters. * Removing extra parameters. * Cat in front of keyboar d sorry * Changed variable name to isVictory. * Apply suggestions from code review Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Thank you Torranx * Condensed if-else pair to else if statement * Update src/phases/game-over-phase.ts Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com> * inhale... exhale... corrected variable name to pass linter --------- Co-authored-by: frutescens <info@laptop> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
41 lines
971 B
TypeScript
41 lines
971 B
TypeScript
export class UpdateSessionSavedataRequest {
|
|
slot: number;
|
|
trainerId: number;
|
|
secretId: number;
|
|
clientSessionId: string;
|
|
}
|
|
|
|
/** This is **NOT** similar to {@linkcode ClearSessionSavedataRequest} */
|
|
export interface NewClearSessionSavedataRequest {
|
|
slot: number;
|
|
isVictory: boolean;
|
|
clientSessionId: string;
|
|
}
|
|
|
|
export interface GetSessionSavedataRequest {
|
|
slot: number;
|
|
clientSessionId: string;
|
|
}
|
|
|
|
export interface DeleteSessionSavedataRequest {
|
|
slot: number;
|
|
clientSessionId: string;
|
|
}
|
|
|
|
/** This is **NOT** similar to {@linkcode NewClearSessionSavedataRequest} */
|
|
export interface ClearSessionSavedataRequest {
|
|
slot: number;
|
|
trainerId: number;
|
|
clientSessionId: string;
|
|
}
|
|
|
|
/**
|
|
* Pokerogue API response for path: `/savedata/session/clear`
|
|
*/
|
|
export interface ClearSessionSavedataResponse {
|
|
/** Contains the error message if any occured */
|
|
error?: string;
|
|
/** Is `true` if the request was successfully processed */
|
|
success?: boolean;
|
|
}
|