UNPKG

guildwars2-ts

Version:

GuildWars 2 API Wrapper in Typescript

30 lines (29 loc) 1.11 kB
import type { z } from 'zod'; import { ApiBase } from '../../base/apiBase'; import { BackstoryAnswersDTO, BackstoryQuestionsDTO } from '../../models'; import { numberArrayType, stringArrayType } from '../v2apiUtils'; /** * /v2/backstory Api */ export declare class BackstoryApi extends ApiBase { /** * Returns information about the Biography answers that are in the game. */ getAnswers(): Promise<z.infer<typeof stringArrayType>>; /** * Returns information about the Biography answers that are in the game. * * @param ids - List of answer ids, or "all" */ getAnswers(ids: Array<`${number}-${number}`> | 'all'): Promise<z.infer<typeof BackstoryAnswersDTO>>; /** * Returns information about the Biography questions that are in the game. */ getQuestions(): Promise<z.infer<typeof numberArrayType>>; /** * Returns information about the Biography questions that are in the game. * * @param ids - List of question ids, or "all" */ getQuestions(ids: number[] | 'all'): Promise<z.infer<typeof BackstoryQuestionsDTO>>; }