trade360-nodejs-sdk
Version:
LSports Trade360 SDK for Node.js
16 lines (15 loc) • 1.21 kB
TypeScript
import { CompetitionCollectionResponse, GetCompetitionsRequestDto, GetLeaguesRequestDto, GetMarketsRequestDto, GetTranslationsRequestDto, LeaguesBodyStructure, LocationsBodyStructure, MarketBodyStructure, SportsBodyStructure, TranslationsCollectionResponse, GetIncidentsRequestDto, IncidentsCollectionResponse } from '../../common';
/**
* IPackageDistributionHttpClient interface is responsible
* for sending requests to the distribution API. It contains
* the methods for sending requests to the distribution API.
*/
export interface IMetadataHttpClient {
getLocations(): Promise<LocationsBodyStructure[] | undefined>;
getSports(): Promise<SportsBodyStructure[] | undefined>;
getLeagues(requestDto: GetLeaguesRequestDto): Promise<LeaguesBodyStructure[] | undefined>;
getMarkets(requestDto: GetMarketsRequestDto): Promise<MarketBodyStructure[] | undefined>;
getTranslations(requestDto: GetTranslationsRequestDto): Promise<TranslationsCollectionResponse | undefined>;
getCompetitions(requestDto: GetCompetitionsRequestDto): Promise<CompetitionCollectionResponse | undefined>;
getIncidents(requestDto: GetIncidentsRequestDto): Promise<IncidentsCollectionResponse | undefined>;
}