guildwars2-ts
Version:
GuildWars 2 API Wrapper in Typescript
37 lines (36 loc) • 1.26 kB
TypeScript
import type { z } from 'zod';
import { ApiBase } from '../../base/apiBase';
import { WizardsVaultListingsDTO, WizardsVaultObjectivesDTO } from '../../models';
import { numberArrayType } from '../v2apiUtils';
export declare class WizardsVaultApi extends ApiBase {
/**
* Returns information about the current Wizard's Vault season.
*/
get(): Promise<{
title: string;
start: string;
end: string;
listings: number[];
objectives: number[];
}>;
/**
* Returns details about listings in the Wizard's Vault.
*/
getListings(): Promise<z.infer<typeof numberArrayType>>;
/**
* Returns details about listings in the Wizard's Vault.
*
* @param ids - (optional) List of listing ids, or "all".
*/
getListings(ids: number[] | 'all'): Promise<z.infer<typeof WizardsVaultListingsDTO>>;
/**
* Returns all Wizard's Vault's objectives in the game.
*/
getObjectives(): Promise<z.infer<typeof numberArrayType>>;
/**
* Returns all Wizard's Vault's objectives in the game.
*
* @param ids - (optional) List of objective ids, or "all".
*/
getObjectives(ids: number[] | 'all'): Promise<z.infer<typeof WizardsVaultObjectivesDTO>>;
}