UNPKG

guildwars2-ts

Version:

GuildWars 2 API Wrapper in Typescript

29 lines (28 loc) 987 B
import type { z } from 'zod'; import { ApiBase } from '../../base/apiBase'; import { RecipesDTO } from '../../models'; import { numberArrayType } from '../v2apiUtils'; /** * /v2/recipes Api */ export declare class RecipesApi extends ApiBase { /** * Returns information about recipes that were discovered by players in the game. * NOTE: The Api sometimes returns incorrect item ids in "output_id" fields */ get(): Promise<z.infer<typeof numberArrayType>>; /** * Returns information about recipes that were discovered by players in the game. * NOTE: The Api sometimes returns incorrect item ids in "output_id" fields * * @param ids - List of recipe ids */ get(ids: number[]): Promise<z.infer<typeof RecipesDTO>>; /** * Allows searching for recipe. * * @param type - Either "input" or "output" * @param ids - List of item ids */ search(type: 'input' | 'output', ids: number[]): Promise<number[]>; }