UNPKG

guildwars2-ts

Version:

GuildWars 2 API Wrapper in Typescript

52 lines (51 loc) 2.06 kB
import { z } from 'zod'; /** * /v2/pvp/stats definition. */ export declare const PvPStatsDTO: z.ZodObject<{ /** The player's PvP rank. */ pvp_rank: z.ZodNumber; /** The player's PvP rank points. */ pvp_rank_points: z.ZodNumber; /** The number of times the player has levelled up since reaching rank 80. If they aren't rank 80 yet, it should be 0. */ pvp_rank_rollovers: z.ZodNumber; /** A win/loss object (see below) containing stats from all matches ever played. */ aggregate: z.ZodObject<{ /** The wins for the category. */ wins: z.ZodNumber; /** The losses for the category. */ losses: z.ZodNumber; /** The desertions for the category. */ desertions: z.ZodNumber; /** The byes for the category. */ byes: z.ZodNumber; /** The forfeit for the category. */ forfeits: z.ZodNumber; }, z.core.$strict>; /** Contains a sub-object for each profession played in PvP, following the format of the win/loss object. */ professions: z.ZodRecord<z.ZodString, z.ZodObject<{ /** The wins for the category. */ wins: z.ZodNumber; /** The losses for the category. */ losses: z.ZodNumber; /** The desertions for the category. */ desertions: z.ZodNumber; /** The byes for the category. */ byes: z.ZodNumber; /** The forfeit for the category. */ forfeits: z.ZodNumber; }, z.core.$strict>>; /** Contains a sub-object for each type of ladder (i.e. ranked, unranked), each containing a win/loss object. */ ladders: z.ZodRecord<z.ZodString, z.ZodObject<{ /** The wins for the category. */ wins: z.ZodNumber; /** The losses for the category. */ losses: z.ZodNumber; /** The desertions for the category. */ desertions: z.ZodNumber; /** The byes for the category. */ byes: z.ZodNumber; /** The forfeit for the category. */ forfeits: z.ZodNumber; }, z.core.$strict>>; }, z.core.$strict>;