guildwars2-ts
Version:
GuildWars 2 API Wrapper in Typescript
104 lines (103 loc) • 3.72 kB
TypeScript
import { z } from 'zod';
/**
* /v2/guild/:id/teams definition
*/
export declare const GuildTeamsDTO: z.ZodArray<z.ZodObject<{
/** the team ID, only unique within a guild. */
id: z.ZodNumber;
/** Array of members in the team. */
members: z.ZodArray<z.ZodObject<{
/** Matching name from /v2/guild/members. */
name: z.ZodString;
/** Captain or member. */
role: z.ZodEnum<{
Member: "Member";
Captain: "Captain";
}>;
}, z.core.$strict>>;
/** Team name. */
name: z.ZodString;
/** Team statistics aggregate. */
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>;
/** Team ladder statistics aggregates. */
ladders: z.ZodObject<{
/** Ranked arena stats. */
ranked: z.ZodOptional<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>>;
/** Unranked arena stats. */
unranked: z.ZodOptional<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>;
/** Team games. */
games: z.ZodArray<z.ZodObject<{
/** The game's UUID. */
id: z.ZodString;
/** The map the match was played on. Can be resolved against /v2/maps. */
map_id: z.ZodString;
/** A timestamp of when the match started. */
started: z.ZodString;
/** A timestamp of when the match ended. */
ended: z.ZodString;
/** The team the player was on during the match. */
team: z.ZodString;
/** Team scores. */
scores: z.ZodObject<{
/** The ending score of the red team. */
red: z.ZodNumber;
/** The ending score of the 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.ZodNumber;
/** Season id. Can be resolved against /v2/pvp/season. */
season: z.ZodOptional<z.ZodString>;
}, z.core.$strict>>;
/** Team's seasonal participation. */
seasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
/** Season id. */
id: z.ZodString;
/** Win count. */
wins: z.ZodNumber;
/** Loss count. */
losses: z.ZodNumber;
/** Seasonal rating. */
rating: z.ZodNumber;
}, z.core.$strict>>>;
}, z.core.$strict>>;