sleeper-api-tsclient
Version:
Typescript client for the sleeper api
21 lines (20 loc) • 1.33 kB
TypeScript
import { BaseAPIRequestFactory } from './baseapi';
import { Configuration } from '../configuration';
import { RequestContext, ResponseContext } from '../http/http';
import { Draft } from '../models/Draft';
import { Pick } from '../models/Pick';
import { TradedPick } from '../models/TradedPick';
export declare class DraftsApiRequestFactory extends BaseAPIRequestFactory {
draftDraftIdGet(draftId: string, options?: Configuration): Promise<RequestContext>;
draftDraftIdPicksGet(draftId: string, options?: Configuration): Promise<RequestContext>;
draftDraftIdTradedPicksGet(draftId: string, options?: Configuration): Promise<RequestContext>;
leagueLeagueIdDraftsGet(leagueId: string, options?: Configuration): Promise<RequestContext>;
userUserIdDraftsSportSeasonGet(userId: string, sport: string, season: number, options?: Configuration): Promise<RequestContext>;
}
export declare class DraftsApiResponseProcessor {
draftDraftIdGet(response: ResponseContext): Promise<Array<Draft>>;
draftDraftIdPicksGet(response: ResponseContext): Promise<Array<Pick>>;
draftDraftIdTradedPicksGet(response: ResponseContext): Promise<Array<TradedPick>>;
leagueLeagueIdDraftsGet(response: ResponseContext): Promise<Array<Draft>>;
userUserIdDraftsSportSeasonGet(response: ResponseContext): Promise<Array<Draft>>;
}