guildwars2-ts
Version:
GuildWars 2 API Wrapper in Typescript
161 lines (160 loc) • 5.41 kB
TypeScript
import { z } from 'zod';
/**
* /v2/achievements definition
*/
export declare const AchievementsDTO: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
id: z.ZodNumber;
icon: z.ZodOptional<z.ZodURL>;
name: z.ZodString;
description: z.ZodString;
requirement: z.ZodString;
locked_text: z.ZodString;
type: z.ZodEnum<{
Default: "Default";
ItemSet: "ItemSet";
}>;
tiers: z.ZodArray<z.ZodObject<{
/** The amount of times an objective has to be completed. */
count: z.ZodNumber;
/** The amount of AP awarded per completed tier. */
points: z.ZodNumber;
}, z.core.$strict>>;
prerequisites: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
rewards: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
/** The type of reward. */
type: z.ZodLiteral<"Coins">;
/** The number of Coins to be rewarded. */
count: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
/** The type of reward. */
type: z.ZodLiteral<"Item">;
/** The id of item to be awarded. */
id: z.ZodNumber;
/** The count of item to be awarded. */
count: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
/** The type of reward. */
type: z.ZodLiteral<"Mastery">;
/** The mastery id to be awarded. */
id: z.ZodNumber;
/** The mastery region of the awarded mastery. */
region: z.ZodEnum<{
Tyria: "Tyria";
Maguuma: "Maguuma";
Desert: "Desert";
Tundra: "Tundra";
Jade: "Jade";
Sky: "Sky";
Unknown: "Unknown";
}>;
}, z.core.$strict>, z.ZodObject<{
/** The type of reward. */
type: z.ZodLiteral<"Title">;
/** The title id to be awarded. */
id: z.ZodNumber;
}, z.core.$strict>], "type">>>;
bits: z.ZodOptional<z.ZodArray<z.ZodObject<{
/** The type of bit. */
type: z.ZodEnum<{
Item: "Item";
Text: "Text";
Minipet: "Minipet";
Skin: "Skin";
}>;
/** The id of the corresponding bit. */
id: z.ZodOptional<z.ZodNumber>;
/** The bit text. */
text: z.ZodOptional<z.ZodString>;
}, z.core.$strict>>>;
flags: z.ZodArray<z.ZodEnum<{
Pvp: "Pvp";
CategoryDisplay: "CategoryDisplay";
MoveToTop: "MoveToTop";
IgnoreNearlyComplete: "IgnoreNearlyComplete";
Hidden: "Hidden";
RequiresUnlock: "RequiresUnlock";
RepairOnLogin: "RepairOnLogin";
Daily: "Daily";
Weekly: "Weekly";
Monthly: "Monthly";
Permanent: "Permanent";
}>>;
}, z.core.$strict>, z.ZodObject<{
id: z.ZodNumber;
icon: z.ZodOptional<z.ZodURL>;
name: z.ZodString;
description: z.ZodString;
requirement: z.ZodString;
locked_text: z.ZodString;
type: z.ZodEnum<{
Default: "Default";
ItemSet: "ItemSet";
}>;
tiers: z.ZodArray<z.ZodObject<{
/** The amount of times an objective has to be completed. */
count: z.ZodNumber;
/** The amount of AP awarded per completed tier. */
points: z.ZodNumber;
}, z.core.$strict>>;
prerequisites: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
rewards: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
/** The type of reward. */
type: z.ZodLiteral<"Coins">;
/** The number of Coins to be rewarded. */
count: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
/** The type of reward. */
type: z.ZodLiteral<"Item">;
/** The id of item to be awarded. */
id: z.ZodNumber;
/** The count of item to be awarded. */
count: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
/** The type of reward. */
type: z.ZodLiteral<"Mastery">;
/** The mastery id to be awarded. */
id: z.ZodNumber;
/** The mastery region of the awarded mastery. */
region: z.ZodEnum<{
Tyria: "Tyria";
Maguuma: "Maguuma";
Desert: "Desert";
Tundra: "Tundra";
Jade: "Jade";
Sky: "Sky";
Unknown: "Unknown";
}>;
}, z.core.$strict>, z.ZodObject<{
/** The type of reward. */
type: z.ZodLiteral<"Title">;
/** The title id to be awarded. */
id: z.ZodNumber;
}, z.core.$strict>], "type">>>;
bits: z.ZodOptional<z.ZodArray<z.ZodObject<{
/** The type of bit. */
type: z.ZodEnum<{
Item: "Item";
Text: "Text";
Minipet: "Minipet";
Skin: "Skin";
}>;
/** The id of the corresponding bit. */
id: z.ZodOptional<z.ZodNumber>;
/** The bit text. */
text: z.ZodOptional<z.ZodString>;
}, z.core.$strict>>>;
flags: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
Pvp: "Pvp";
CategoryDisplay: "CategoryDisplay";
MoveToTop: "MoveToTop";
IgnoreNearlyComplete: "IgnoreNearlyComplete";
Hidden: "Hidden";
RequiresUnlock: "RequiresUnlock";
RepairOnLogin: "RepairOnLogin";
Daily: "Daily";
Weekly: "Weekly";
Monthly: "Monthly";
Permanent: "Permanent";
}>, z.ZodLiteral<"Repeatable">]>>;
point_cap: z.ZodNumber;
}, z.core.$strict>]>>;