@sleeperhq/mini-core 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { User, League, LeaguesMap, RostersInLeagueMap, UserMap, MatchupsInLeagueMap, UsersInLeagueMap, PlayoffsInLeagueMap, TransactionsInLeagueMap, TransactionsMap, SportInfoMap, DraftsInLeagueMap, DraftPickTradesInLeagueMap, DraftPicksInDraftMap, PlayersInSportMap,
|
|
1
|
+
import { User, League, LeaguesMap, RostersInLeagueMap, UserMap, MatchupsInLeagueMap, UsersInLeagueMap, PlayoffsInLeagueMap, TransactionsInLeagueMap, TransactionsMap, SportInfoMap, DraftsInLeagueMap, DraftPickTradesInLeagueMap, DraftPicksInDraftMap, PlayersInSportMap, Topic, Location } from './types';
|
|
2
2
|
import type { SleeperActions } from './sleeper_actions';
|
|
3
3
|
export * from './sleeper_actions';
|
|
4
4
|
declare class SleeperContext {
|
|
@@ -19,7 +19,9 @@ declare class SleeperContext {
|
|
|
19
19
|
draftPickTradesInLeagueMap: DraftPickTradesInLeagueMap;
|
|
20
20
|
draftPicksInDraftMap: DraftPicksInDraftMap;
|
|
21
21
|
playersInSportMap: PlayersInSportMap;
|
|
22
|
-
|
|
22
|
+
podcasts: Topic[][];
|
|
23
|
+
videos: Topic[][];
|
|
24
|
+
location: Location;
|
|
23
25
|
actions: SleeperActions;
|
|
24
26
|
}
|
|
25
27
|
export default SleeperContext;
|
|
@@ -11,6 +11,7 @@ export type SportType = string;
|
|
|
11
11
|
export type DraftId = string;
|
|
12
12
|
export type PlayerId = string;
|
|
13
13
|
export type TopicId = 'podcasts' | 'videos';
|
|
14
|
+
export type { Topic };
|
|
14
15
|
export type BracketFrom = {
|
|
15
16
|
w?: RosterId;
|
|
16
17
|
l?: RosterId;
|
|
@@ -57,7 +58,6 @@ export type DraftPickTradesInLeagueMap = Record<LeagueId, RosterDraftPick[]>;
|
|
|
57
58
|
export type DraftPicksInDraftMap = Record<DraftId, DraftPick[]>;
|
|
58
59
|
export type PlayersMap = Record<PlayerId, Player>;
|
|
59
60
|
export type PlayersInSportMap = Record<SportType, PlayersMap>;
|
|
60
|
-
export type TopicsMap = Record<TopicId, Topic[][]>;
|
|
61
61
|
export declare enum MiniCategory {
|
|
62
62
|
DEVELOPER = "Developer",
|
|
63
63
|
FEATURED = "Featured",
|
|
@@ -71,4 +71,9 @@ export type Mini = {
|
|
|
71
71
|
category: MiniCategory;
|
|
72
72
|
id: string;
|
|
73
73
|
};
|
|
74
|
+
export type Location = {
|
|
75
|
+
state: string;
|
|
76
|
+
country: string;
|
|
77
|
+
hasPermission: boolean;
|
|
78
|
+
};
|
|
74
79
|
export type VersionMap = Record<string, Mini>;
|