/** * Constants used throughout the Yahoo Fantasy Sports API wrapper * @module */ /** * Yahoo Fantasy Sports API base URL */ export declare const API_BASE_URL = "https://fantasysports.yahooapis.com/fantasy/v2"; /** * Yahoo OAuth endpoints */ export declare const OAUTH_ENDPOINTS: { /** * Request token endpoint */ readonly REQUEST_TOKEN: 'https://api.login.yahoo.com/oauth/v2/get_request_token'; /** * Authorization URL (user must visit this) */ readonly AUTHORIZE: 'https://api.login.yahoo.com/oauth/v2/request_auth'; /** * Access token endpoint */ readonly ACCESS_TOKEN: 'https://api.login.yahoo.com/oauth/v2/get_token'; }; /** * OAuth signature method */ export declare const OAUTH_SIGNATURE_METHOD = "HMAC-SHA1"; /** * OAuth version */ export declare const OAUTH_VERSION = "1.0"; /** * Default request timeout in milliseconds */ export declare const DEFAULT_TIMEOUT = 30000; /** * Default maximum retry attempts */ export declare const DEFAULT_MAX_RETRIES = 3; /** * Default retry delay in milliseconds */ export declare const DEFAULT_RETRY_DELAY = 1000; /** * Maximum retry delay in milliseconds (for exponential backoff) */ export declare const MAX_RETRY_DELAY = 32000; /** * Rate limit window in milliseconds */ export declare const RATE_LIMIT_WINDOW = 1000; /** * Maximum requests per rate limit window */ export declare const MAX_REQUESTS_PER_WINDOW = 20; /** * Game codes for each sport */ export declare const GAME_CODES: { readonly NFL: 'nfl'; readonly NHL: 'nhl'; readonly MLB: 'mlb'; readonly NBA: 'nba'; }; /** * Game IDs by season (these change each year) * Note: These will need to be updated for each new season */ export declare const GAME_IDS: { readonly NHL_2024: '449'; readonly NFL_2024: '449'; readonly MLB_2024: '431'; readonly NBA_2024: '449'; }; /** * Player status values */ export declare const PLAYER_STATUS: { /** All players */ readonly ALL: 'A'; /** Free agents */ readonly FREE_AGENT: 'FA'; /** On waivers */ readonly WAIVERS: 'W'; /** Taken (on a team) */ readonly TAKEN: 'T'; /** Keepers */ readonly KEEPER: 'K'; }; /** * Transaction types */ export declare const TRANSACTION_TYPES: { readonly ADD: 'add'; readonly DROP: 'drop'; readonly ADD_DROP: 'add/drop'; readonly TRADE: 'trade'; readonly PENDING_TRADE: 'pending_trade'; readonly WAIVER: 'waiver'; readonly COMMISSIONER: 'commish'; }; /** * Coverage types for stats */ export declare const COVERAGE_TYPES: { readonly SEASON: 'season'; readonly WEEK: 'week'; readonly DATE: 'date'; readonly LAST_WEEK: 'lastweek'; readonly LAST_MONTH: 'lastmonth'; }; /** * Scoring types */ export declare const SCORING_TYPES: { /** Head-to-head each category */ readonly HEAD_TO_HEAD: 'head'; /** Head-to-head points */ readonly POINTS: 'point'; /** Rotisserie */ readonly ROTISSERIE: 'roto'; }; /** * Draft statuses */ export declare const DRAFT_STATUSES: { readonly PRE_DRAFT: 'predraft'; readonly POST_DRAFT: 'postdraft'; }; /** * Position types by sport */ export declare const POSITIONS: { readonly NHL: { readonly CENTER: 'C'; readonly LEFT_WING: 'LW'; readonly RIGHT_WING: 'RW'; readonly WING: 'W'; readonly DEFENSE: 'D'; readonly GOALIE: 'G'; readonly BENCH: 'BN'; readonly INJURED_RESERVE: 'IR'; readonly INJURED_RESERVE_PLUS: 'IR+'; readonly UTILITY: 'Util'; }; readonly NFL: { readonly QUARTERBACK: 'QB'; readonly RUNNING_BACK: 'RB'; readonly WIDE_RECEIVER: 'WR'; readonly TIGHT_END: 'TE'; readonly KICKER: 'K'; readonly DEFENSE: 'DEF'; readonly FLEX_WR_RB: 'W/R'; readonly FLEX_WR_TE: 'W/T'; readonly FLEX_WR_RB_TE: 'W/R/T'; readonly BENCH: 'BN'; readonly INJURED_RESERVE: 'IR'; }; readonly MLB: { readonly CATCHER: 'C'; readonly FIRST_BASE: '1B'; readonly SECOND_BASE: '2B'; readonly THIRD_BASE: '3B'; readonly SHORTSTOP: 'SS'; readonly OUTFIELD: 'OF'; readonly STARTING_PITCHER: 'SP'; readonly RELIEF_PITCHER: 'RP'; readonly PITCHER: 'P'; readonly UTILITY: 'Util'; readonly BENCH: 'BN'; readonly DISABLED_LIST: 'DL'; }; readonly NBA: { readonly POINT_GUARD: 'PG'; readonly SHOOTING_GUARD: 'SG'; readonly SMALL_FORWARD: 'SF'; readonly POWER_FORWARD: 'PF'; readonly CENTER: 'C'; readonly GUARD: 'G'; readonly FORWARD: 'F'; readonly UTILITY: 'Util'; readonly BENCH: 'BN'; readonly INJURED_LIST: 'IL'; }; }; /** * NHL skater stat IDs used by Yahoo */ export declare const NHLSkaterStatEnum: { readonly GamesPlayed: 0; readonly Goals: 1; readonly Assists: 2; readonly Points: 3; readonly PlusMinus: 4; readonly PenaltyMinutes: 5; readonly PowerPlayGoals: 6; readonly PowerPlayAssists: 7; readonly PowerPlayPoints: 8; readonly ShorthandedGoals: 9; readonly ShorthandedAssists: 10; readonly ShorthandedPoints: 11; readonly GameWinningGoals: 12; readonly Shots: 13; readonly ShootingPercentage: 14; readonly FaceoffsWon: 15; readonly FaceoffsLost: 16; readonly Hits: 17; readonly Blocks: 18; }; /** * NHL goalie stat IDs used by Yahoo */ export declare const NHLGoalieStatEnum: { readonly GamesPlayed: 0; readonly GamesStarted: 19; readonly Wins: 20; readonly Losses: 21; readonly OvertimeLosses: 22; readonly Shutouts: 23; readonly GoalsAgainst: 24; readonly GoalsAgainstAverage: 25; readonly Saves: 26; readonly SavePercentage: 27; readonly ShotsAgainst: 28; }; /** * HTTP status codes we handle specifically */ export declare const HTTP_STATUS: { readonly OK: 200; readonly CREATED: 201; readonly NO_CONTENT: 204; readonly BAD_REQUEST: 400; readonly UNAUTHORIZED: 401; readonly FORBIDDEN: 403; readonly NOT_FOUND: 404; readonly TOO_MANY_REQUESTS: 429; readonly INTERNAL_SERVER_ERROR: 500; readonly BAD_GATEWAY: 502; readonly SERVICE_UNAVAILABLE: 503; readonly GATEWAY_TIMEOUT: 504; }; /** * Retryable HTTP status codes */ export declare const RETRYABLE_STATUS_CODES: readonly [429, 500, 502, 503, 504]; //# sourceMappingURL=constants.d.ts.map