UNPKG

guildwars2-ts

Version:

GuildWars 2 API Wrapper in Typescript

181 lines (180 loc) 7.67 kB
import { z } from 'zod'; export declare const Scores: z.ZodObject<{ /** Score of the red team. */ red: z.ZodNumber; /** Score of the blue team. */ blue: z.ZodNumber; /** Score of the green team. */ green: z.ZodNumber; }, z.core.$strict>; /** * /v2/wvw/matches definition */ export declare const WvWMatchesDTO: z.ZodArray<z.ZodObject<{ /** The WvW match id. */ id: z.ZodString; /** The starting time of the matchup. (ISO-8601 Standard) */ start_time: z.ZodString; /** The ending time of the matchup. (ISO-8601 Standard) */ end_time: z.ZodString; /** An object containing the score of the three servers. */ scores: z.ZodObject<{ /** Score of the red team. */ red: z.ZodNumber; /** Score of the blue team. */ blue: z.ZodNumber; /** Score of the green team. */ green: z.ZodNumber; }, z.core.$strict>; /** An object containing the IDs of the three primary matchup worlds. */ worlds: z.ZodObject<{ /** Score of the red team. */ red: z.ZodNumber; /** Score of the blue team. */ blue: z.ZodNumber; /** Score of the green team. */ green: z.ZodNumber; }, z.core.$strict>; /** n object containing an array of objects with the world IDs of the three servers. */ all_worlds: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>; /** An object containing the total deaths of the three servers. */ deaths: z.ZodObject<{ /** Score of the red team. */ red: z.ZodNumber; /** Score of the blue team. */ blue: z.ZodNumber; /** Score of the green team. */ green: z.ZodNumber; }, z.core.$strict>; /** An object containing the total kills of the three servers. */ kills: z.ZodObject<{ /** Score of the red team. */ red: z.ZodNumber; /** Score of the blue team. */ blue: z.ZodNumber; /** Score of the green team. */ green: z.ZodNumber; }, z.core.$strict>; /** An object containing the victory points of the three server. */ victory_points: z.ZodObject<{ /** Score of the red team. */ red: z.ZodNumber; /** Score of the blue team. */ blue: z.ZodNumber; /** Score of the green team. */ green: z.ZodNumber; }, z.core.$strict>; /** A list of objects containing detailed information about each of the four maps. */ maps: z.ZodArray<z.ZodObject<{ /** The map id. */ id: z.ZodNumber; /** The identifier for the map. Can be either RedHome, GreenHome or BlueHome for the borderlands or Center for Eternal Battlegrounds. */ type: z.ZodString; /** An object containing the score of the three servers for only the specified map. */ scores: z.ZodObject<{ /** Score of the red team. */ red: z.ZodNumber; /** Score of the blue team. */ blue: z.ZodNumber; /** Score of the green team. */ green: z.ZodNumber; }, z.core.$strict>; /** An object containing the total kills of the three servers for only the specified map. */ kills: z.ZodObject<{ /** Score of the red team. */ red: z.ZodNumber; /** Score of the blue team. */ blue: z.ZodNumber; /** Score of the green team. */ green: z.ZodNumber; }, z.core.$strict>; /** An object containing the total deaths of the three servers for only the specified map. */ deaths: z.ZodObject<{ /** Score of the red team. */ red: z.ZodNumber; /** Score of the blue team. */ blue: z.ZodNumber; /** Score of the green team. */ green: z.ZodNumber; }, z.core.$strict>; /** A list of objective objects for this map. Each object contains the following properties: */ objectives: z.ZodArray<z.ZodObject<{ /** The objective id. */ id: z.ZodString; /** The objective type. */ type: z.ZodEnum<{ Spawn: "Spawn"; Camp: "Camp"; Ruins: "Ruins"; Tower: "Tower"; Keep: "Keep"; Castle: "Castle"; Mercenary: "Mercenary"; }>; /** The current owner of the objective. */ owner: z.ZodEnum<{ Red: "Red"; Green: "Green"; Blue: "Blue"; Neutral: "Neutral"; }>; /** The time at which this objective was last captured by a server. (ISO-8601 Standard) */ last_flipped: z.ZodString; /** The guild id of the guild currently claiming the objective, or null if not claimed. (Not present for unclaimable objectives.) */ claimed_by: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>; /** The time the objective was claimed by the claimed_by guild (ISO-8601 Standard), or null if not claimed. (Not present for unclaimable objectives.) */ claimed_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>; /** The amount of points per tick the given objective yields. */ points_tick: z.ZodNumber; /** The amount of points awarded for capturing the objective. */ points_capture: z.ZodNumber; /** An array of ids. Can be resolved against /v2/guild/upgrades, showing which guild upgrades are currently slotted. */ guild_upgrades: z.ZodOptional<z.ZodArray<z.ZodNumber>>; /** The total amount of yak shipments delivered to the objective. Not limited to the shipments within the current tier only. */ yaks_delivered: z.ZodOptional<z.ZodNumber>; }, z.core.$strict>>; /** * A list of all bonuses being granted by this map. * If no player team owns a bonus from the map, this list is empty. */ bonuses: z.ZodArray<z.ZodObject<{ /** A shorthand name for the bonus. */ type: z.ZodLiteral<"Bloodlust">; /** The color representing which world group owns the bloodlust. */ owner: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>>; /** A list of skirmishes. */ skirmishes: z.ZodArray<z.ZodObject<{ /** The skirmish id . */ id: z.ZodNumber; /** Object containing total scores for each team color. */ scores: z.ZodObject<{ /** Score of the red team. */ red: z.ZodNumber; /** Score of the blue team. */ blue: z.ZodNumber; /** Score of the green team. */ green: z.ZodNumber; }, z.core.$strict>; /** Contains the map specific scores for the specific skirmish. */ map_scores: z.ZodArray<z.ZodObject<{ /** Which map is being looked at. */ type: z.ZodEnum<{ BlueHome: "BlueHome"; Center: "Center"; GreenHome: "GreenHome"; RedHome: "RedHome"; }>; /** Object containing total scores for each team color on the selected map. */ scores: z.ZodObject<{ /** Score of the red team. */ red: z.ZodNumber; /** Score of the blue team. */ blue: z.ZodNumber; /** Score of the green team. */ green: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>>;