UNPKG

@valapi/valorant-api.com

Version:

Valorant API - valorant-api.com

37 lines (36 loc) 1.3 kB
import type { Language } from "../client/ValorantApiCom"; import { ValorantApiComService } from "../client/ValorantApiComService"; import type { LanguageResponse, Response } from "../client/ValorantApiComService"; export declare namespace Seasons { interface Seasons<L extends Language> { uuid: string; displayName: LanguageResponse<string, L>; type: string; startTime: string | Date; endTime: string | Date; parentUuid: string; assetPath: string; } interface CompetitiveSeasons { uuid: string; startTime: string | Date; endTime: string | Date; seasonUuid: string; competitiveTiersUuid: string; borders: Array<{ uuid: string; level: number; winsRequired: number; displayIcon: string; smallIcon: string; assetPath: string; }>; assetPath: string; } } export declare class Seasons<L extends Language = any> extends ValorantApiComService { get(): Response<Seasons.Seasons<L>[]>; getCompetitiveSeasons(): Response<Seasons.CompetitiveSeasons[]>; getByUuid(uuid: string): Response<Seasons.Seasons<L>>; getCompetitiveSeasonByUuid(uuid: string): Response<Seasons.CompetitiveSeasons>; }