UNPKG

guildwars2-ts

Version:

GuildWars 2 API Wrapper in Typescript

121 lines (120 loc) 3.97 kB
import { z } from 'zod'; /** * /v2/recipes definition */ export declare const RecipesDTO: z.ZodArray<z.ZodObject<{ /** The recipe id. */ id: z.ZodNumber; /** The recipe type. */ type: z.ZodUnion<readonly [z.ZodEnum<{ Axe: "Axe"; Dagger: "Dagger"; Focus: "Focus"; Greatsword: "Greatsword"; Hammer: "Hammer"; Harpoon: "Harpoon"; LongBow: "LongBow"; Mace: "Mace"; Pistol: "Pistol"; Rifle: "Rifle"; Scepter: "Scepter"; Shield: "Shield"; ShortBow: "ShortBow"; Speargun: "Speargun"; Staff: "Staff"; Sword: "Sword"; Torch: "Torch"; Trident: "Trident"; Warhorn: "Warhorn"; }>, z.ZodEnum<{ Coat: "Coat"; Boots: "Boots"; Gloves: "Gloves"; Helm: "Helm"; Leggings: "Leggings"; Shoulders: "Shoulders"; }>, z.ZodEnum<{ Amulet: "Amulet"; Ring: "Ring"; Earring: "Earring"; }>, z.ZodEnum<{ Food: "Food"; Dessert: "Dessert"; Feast: "Feast"; IngredientCooking: "IngredientCooking"; Meal: "Meal"; Seasoning: "Seasoning"; Snack: "Snack"; Soup: "Soup"; }>, z.ZodEnum<{ Component: "Component"; Inscription: "Inscription"; Insignia: "Insignia"; LegendaryComponent: "LegendaryComponent"; }>, z.ZodEnum<{ Refinement: "Refinement"; RefinementEctoplasm: "RefinementEctoplasm"; RefinementObsidian: "RefinementObsidian"; }>, z.ZodEnum<{ GuildConsumable: "GuildConsumable"; GuildDecoration: "GuildDecoration"; GuildConsumableWvw: "GuildConsumableWvw"; }>, z.ZodEnum<{ Backpack: "Backpack"; Consumable: "Consumable"; Bag: "Bag"; UpgradeComponent: "UpgradeComponent"; Food: "Food"; Dye: "Dye"; Bulk: "Bulk"; Potion: "Potion"; }>]>; /** The item id of the produced item. Can be resolved against /v2/items. */ output_item_id: z.ZodNumber; /** The amount of items produced. */ output_item_count: z.ZodNumber; /** The time in milliseconds it takes to craft the item. */ time_to_craft_ms: z.ZodNumber; /** The crafting disciplines that can use the recipe. */ disciplines: z.ZodArray<z.ZodEnum<{ Armorsmith: "Armorsmith"; Artificer: "Artificer"; Chef: "Chef"; Huntsman: "Huntsman"; Jeweler: "Jeweler"; Leatherworker: "Leatherworker"; Scribe: "Scribe"; Tailor: "Tailor"; Weaponsmith: "Weaponsmith"; }>>; /** The required rating to craft the recipe. */ min_rating: z.ZodNumber; /** Flags applying to the recipe. */ flags: z.ZodArray<z.ZodEnum<{ AutoLearned: "AutoLearned"; LearnedFromItem: "LearnedFromItem"; }>>; /** List of recipe ingredients */ ingredients: z.ZodArray<z.ZodObject<{ /** Type of ingredient. */ type: z.ZodEnum<{ Item: "Item"; Currency: "Currency"; }>; /** The ingredient's id. Can be resolved against /v2/items or /v2/currencies, depending on type */ id: z.ZodNumber; /** The quantity of this ingredient. */ count: z.ZodNumber; }, z.core.$strict>>; /** List of recipe ingredients that come from the guild such as decorations or schematics. */ guild_ingredients: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** The id of the used guild upgrade. Can be resolved against /v2/guild/upgrades. */ upgrade_id: z.ZodNumber; /** The quantity of this guild ingredient. */ count: z.ZodNumber; }, z.core.$strict>>>; /** The id of the produced guild upgrade. Can be resolved against /v2/guild/upgrades. */ output_upgrade_id: z.ZodOptional<z.ZodNumber>; /** The chat code for the recipe. */ chat_link: z.ZodString; }, z.core.$strict>>;