guildwars2-ts
Version:
GuildWars 2 API Wrapper in Typescript
38 lines (37 loc) • 1.3 kB
TypeScript
import { z } from 'zod';
/**
* /v2/pvp/games definition.
*/
export declare const PvPGamesDTO: z.ZodArray<z.ZodObject<{
/** The game's UUID. */
id: z.ZodString;
/** The map the match was played on, cross-referenced from /v2/maps. */
map_id: z.ZodNumber;
/** A timestamp of when the match started. */
started: z.ZodString;
/** A timestamp of when the match ended. */
ended: z.ZodString;
/** The result of the match. */
result: z.ZodString;
/** The team the player was on during the match. */
team: z.ZodString;
/** The profession the player was playing during the match. */
profession: z.ZodString;
/** The ending scores for each team. */
scores: z.ZodObject<{
/** Red team. */
red: z.ZodNumber;
/** Blue team. */
blue: z.ZodNumber;
}, z.core.$strict>;
/** The type of game mode played. */
rating_type: z.ZodEnum<{
Ranked: "Ranked";
Unranked: "Unranked";
None: "None";
}>;
/** Change in rating as a result of the observed game. Note that number can be negative in the case of a loss. */
rating_change: z.ZodOptional<z.ZodNumber>;
/** Season id. Can be resolved against /v2/pvp/season. */
season: z.ZodOptional<z.ZodString>;
}, z.core.$strict>>;