api-sports.js
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -23,2 +23,7 @@ import { ListenerSignature, DefaultListener, TypedEmitter } from 'tiny-typed-emitter'; | ||
} | ||
interface GetCoachsParams { | ||
id: number; | ||
team: number; | ||
search: string; | ||
} | ||
interface GetPlayersParams { | ||
@@ -603,2 +608,34 @@ id: number; | ||
type ApiCoachResponse = ApiResponse<ApiCoach[]>; | ||
interface ApiCoach { | ||
id: number; | ||
name: string; | ||
firstname: string; | ||
lastname: string; | ||
age: number; | ||
birth: { | ||
date: string; | ||
place: string; | ||
country: string; | ||
}; | ||
nationality: string; | ||
height: string; | ||
weight: string; | ||
photo: string; | ||
team: { | ||
id: number; | ||
name: string; | ||
logo: string; | ||
}; | ||
career: { | ||
team: { | ||
id: number; | ||
name: string; | ||
logo: string; | ||
}; | ||
start: string; | ||
end: string | null; | ||
}[]; | ||
} | ||
type CacheMaker<K, V> = () => CacheProvider<K, V>; | ||
@@ -622,2 +659,3 @@ declare class Client<L extends ListenerSignature<L> = DefaultListener> extends TypedEmitter<L> { | ||
getStatus(): Promise<ApiResponse<ApiStatusResponse>>; | ||
getCoach(params: GetCoachsParams): Promise<ApiCoach | ApiCoach[]>; | ||
request<T = unknown>(path: string, config?: { | ||
@@ -694,2 +732,12 @@ params?: Record<string, number | string | boolean>; | ||
export { AmericanFootball, BaseManager, Basketball, type CacheMaker, Client, type CreateSportsAPI, type Entry, Fixture, FixtureEvent, FixtureManager, type FixtureResolvable, Football, FootballEvents, Hockey, type IFootballEvents, League, LeagueManager, Player, PlayerManager, type ResponseStrategyOptions, Rugby, SequentialBucket, SportEndpoints, SportType, SportsAPI, type SportsEndpointMap, SquadManager, Team, TeamManager, Volleyball, resolveOptions }; | ||
interface GenericError { | ||
rateLimit?: string; | ||
requests?: string; | ||
required?: string; | ||
token?: string; | ||
} | ||
interface GenericErrorResponse { | ||
errors: GenericError | GenericError[]; | ||
} | ||
export { AmericanFootball, type ApiCoach, type ApiCoachResponse, type ApiLeague, type ApiPlayerStatistics, type ApiPlayerStatisticsPlayer, type ApiPlayerStatisticsStats, type ApiResponse, type ApiStatusResponse, BaseManager, Basketball, type CacheMaker, Client, type CreateSportsAPI, type Entry, Fixture, FixtureEvent, FixtureManager, type FixtureResolvable, Football, FootballEvents, type GenericErrorResponse, Hockey, type IFootballEvents, League, LeagueManager, Player, PlayerManager, type ResponseStrategyOptions, Rugby, SequentialBucket, SportEndpoints, SportType, SportsAPI, type SportsEndpointMap, SquadManager, Team, TeamManager, Volleyball, resolveOptions }; |
{ | ||
"name": "api-sports.js", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Robust client to interact with api-sports", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
367583
3495