UNPKG

sleeper-api-tsclient

Version:

Typescript client for the sleeper api

107 lines 5.89 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ObjectUserApi = exports.ObjectPlayersApi = exports.ObjectLeaguesApi = exports.ObjectDraftsApi = exports.ObjectAvatarsApi = void 0; var ObservableAPI_1 = require("./ObservableAPI"); var ObjectAvatarsApi = (function () { function ObjectAvatarsApi(configuration, requestFactory, responseProcessor) { this.api = new ObservableAPI_1.ObservableAvatarsApi(configuration, requestFactory, responseProcessor); } ObjectAvatarsApi.prototype.avatarsAvatarIdGet = function (param, options) { return this.api.avatarsAvatarIdGet(param.avatarId, options).toPromise(); }; ObjectAvatarsApi.prototype.avatarsThumbsAvatarIdGet = function (param, options) { return this.api.avatarsThumbsAvatarIdGet(param.avatarId, options).toPromise(); }; return ObjectAvatarsApi; }()); exports.ObjectAvatarsApi = ObjectAvatarsApi; var ObservableAPI_2 = require("./ObservableAPI"); var ObjectDraftsApi = (function () { function ObjectDraftsApi(configuration, requestFactory, responseProcessor) { this.api = new ObservableAPI_2.ObservableDraftsApi(configuration, requestFactory, responseProcessor); } ObjectDraftsApi.prototype.draftDraftIdGet = function (param, options) { return this.api.draftDraftIdGet(param.draftId, options).toPromise(); }; ObjectDraftsApi.prototype.draftDraftIdPicksGet = function (param, options) { return this.api.draftDraftIdPicksGet(param.draftId, options).toPromise(); }; ObjectDraftsApi.prototype.draftDraftIdTradedPicksGet = function (param, options) { return this.api.draftDraftIdTradedPicksGet(param.draftId, options).toPromise(); }; ObjectDraftsApi.prototype.leagueLeagueIdDraftsGet = function (param, options) { return this.api.leagueLeagueIdDraftsGet(param.leagueId, options).toPromise(); }; ObjectDraftsApi.prototype.userUserIdDraftsSportSeasonGet = function (param, options) { return this.api.userUserIdDraftsSportSeasonGet(param.userId, param.sport, param.season, options).toPromise(); }; return ObjectDraftsApi; }()); exports.ObjectDraftsApi = ObjectDraftsApi; var ObservableAPI_3 = require("./ObservableAPI"); var ObjectLeaguesApi = (function () { function ObjectLeaguesApi(configuration, requestFactory, responseProcessor) { this.api = new ObservableAPI_3.ObservableLeaguesApi(configuration, requestFactory, responseProcessor); } ObjectLeaguesApi.prototype.leagueLeagueIdGet = function (param, options) { return this.api.leagueLeagueIdGet(param.leagueId, options).toPromise(); }; ObjectLeaguesApi.prototype.leagueLeagueIdLosesBracketGet = function (param, options) { return this.api.leagueLeagueIdLosesBracketGet(param.leagueId, options).toPromise(); }; ObjectLeaguesApi.prototype.leagueLeagueIdMatchupsWeekGet = function (param, options) { return this.api.leagueLeagueIdMatchupsWeekGet(param.leagueId, param.week, options).toPromise(); }; ObjectLeaguesApi.prototype.leagueLeagueIdRostersGet = function (param, options) { return this.api.leagueLeagueIdRostersGet(param.leagueId, options).toPromise(); }; ObjectLeaguesApi.prototype.leagueLeagueIdTradedPicksGet = function (param, options) { return this.api.leagueLeagueIdTradedPicksGet(param.leagueId, options).toPromise(); }; ObjectLeaguesApi.prototype.leagueLeagueIdTransactionsRoundGet = function (param, options) { return this.api.leagueLeagueIdTransactionsRoundGet(param.leagueId, param.round, options).toPromise(); }; ObjectLeaguesApi.prototype.leagueLeagueIdUsersGet = function (param, options) { return this.api.leagueLeagueIdUsersGet(param.leagueId, options).toPromise(); }; ObjectLeaguesApi.prototype.leagueLeagueIdWinnersBracketGet = function (param, options) { return this.api.leagueLeagueIdWinnersBracketGet(param.leagueId, options).toPromise(); }; ObjectLeaguesApi.prototype.stateSportGet = function (param, options) { return this.api.stateSportGet(param.sport, options).toPromise(); }; ObjectLeaguesApi.prototype.userUserIdLeaguesSportSeasonGet = function (param, options) { return this.api.userUserIdLeaguesSportSeasonGet(param.userId, param.sport, param.season, options).toPromise(); }; return ObjectLeaguesApi; }()); exports.ObjectLeaguesApi = ObjectLeaguesApi; var ObservableAPI_4 = require("./ObservableAPI"); var ObjectPlayersApi = (function () { function ObjectPlayersApi(configuration, requestFactory, responseProcessor) { this.api = new ObservableAPI_4.ObservablePlayersApi(configuration, requestFactory, responseProcessor); } ObjectPlayersApi.prototype.playersNflGet = function (param, options) { return this.api.playersNflGet(options).toPromise(); }; ObjectPlayersApi.prototype.playersSportTrendingTypeGet = function (param, options) { return this.api.playersSportTrendingTypeGet(param.sport, param.type, param.lookbackHours, param.limit, options).toPromise(); }; return ObjectPlayersApi; }()); exports.ObjectPlayersApi = ObjectPlayersApi; var ObservableAPI_5 = require("./ObservableAPI"); var ObjectUserApi = (function () { function ObjectUserApi(configuration, requestFactory, responseProcessor) { this.api = new ObservableAPI_5.ObservableUserApi(configuration, requestFactory, responseProcessor); } ObjectUserApi.prototype.userUserIdGet = function (param, options) { return this.api.userUserIdGet(param.userId, options).toPromise(); }; ObjectUserApi.prototype.userUsernameGet = function (param, options) { return this.api.userUsernameGet(param.username, options).toPromise(); }; return ObjectUserApi; }()); exports.ObjectUserApi = ObjectUserApi; //# sourceMappingURL=ObjectParamAPI.js.map