@sleeperhq/mini-core 1.3.0 → 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,6 +1,6 @@
|
|
|
1
|
-
import { User, League, LeaguesMap, RostersInLeagueMap, UserMap, MatchupsInLeagueMap, UsersInLeagueMap, PlayoffsInLeagueMap, TransactionsInLeagueMap, TransactionsMap, SportInfoMap, DraftsInLeagueMap, DraftPickTradesInLeagueMap, DraftPicksInDraftMap, PlayersInSportMap } from './types';
|
|
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 {
|
|
5
5
|
static apiLevel: string;
|
|
6
6
|
user: User;
|
|
@@ -19,6 +19,9 @@ declare class SleeperContext {
|
|
|
19
19
|
draftPickTradesInLeagueMap: DraftPickTradesInLeagueMap;
|
|
20
20
|
draftPicksInDraftMap: DraftPicksInDraftMap;
|
|
21
21
|
playersInSportMap: PlayersInSportMap;
|
|
22
|
+
podcasts: Topic[][];
|
|
23
|
+
videos: Topic[][];
|
|
24
|
+
location: Location;
|
|
22
25
|
actions: SleeperActions;
|
|
23
26
|
}
|
|
24
27
|
export default SleeperContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { League, Roster, User, MatchupLeg, LeagueTransaction, Draft, DraftPick, RosterDraftPick, Player } from './shared/graphql.d';
|
|
1
|
+
import { League, Roster, User, MatchupLeg, LeagueTransaction, Draft, DraftPick, RosterDraftPick, Player, Topic } from './shared/graphql.d';
|
|
2
2
|
export type NavigationTabId = 'LeaguesIndexScreen' | 'LeaguesDetailScreen' | 'ScoreIndexScreen' | 'ScoreDetailScreen' | 'PicksIndexScreen' | 'FeedIndexScreen' | 'WebviewScreen' | 'ManageChannelsScreen' | 'InboxIndexScreen' | 'MinisIndexScreen' | 'ManageChannelsScreen' | 'InboxIndexScreen' | 'MinisIndexScreen';
|
|
3
3
|
export * from './shared/graphql.d';
|
|
4
4
|
export type LeagueId = string;
|
|
@@ -10,6 +10,8 @@ export type TransactionId = string;
|
|
|
10
10
|
export type SportType = string;
|
|
11
11
|
export type DraftId = string;
|
|
12
12
|
export type PlayerId = string;
|
|
13
|
+
export type TopicId = 'podcasts' | 'videos';
|
|
14
|
+
export type { Topic };
|
|
13
15
|
export type BracketFrom = {
|
|
14
16
|
w?: RosterId;
|
|
15
17
|
l?: RosterId;
|
|
@@ -69,4 +71,9 @@ export type Mini = {
|
|
|
69
71
|
category: MiniCategory;
|
|
70
72
|
id: string;
|
|
71
73
|
};
|
|
74
|
+
export type Location = {
|
|
75
|
+
state: string;
|
|
76
|
+
country: string;
|
|
77
|
+
hasPermission: boolean;
|
|
78
|
+
};
|
|
72
79
|
export type VersionMap = Record<string, Mini>;
|
|
@@ -227,3 +227,31 @@ export type User = {
|
|
|
227
227
|
username?: Maybe<Scalars['String']>;
|
|
228
228
|
verification?: Maybe<Scalars['String']>;
|
|
229
229
|
};
|
|
230
|
+
export type Topic = {
|
|
231
|
+
__typename?: 'Topic';
|
|
232
|
+
attachment?: Maybe<Scalars['Json']>;
|
|
233
|
+
author_avatar?: Maybe<Scalars['String']>;
|
|
234
|
+
author_display_name?: Maybe<Scalars['String']>;
|
|
235
|
+
author_id?: Maybe<Scalars['Snowflake']>;
|
|
236
|
+
author_is_bot?: Maybe<Scalars['Boolean']>;
|
|
237
|
+
channel_id?: Maybe<Scalars['Snowflake']>;
|
|
238
|
+
channel_tags?: Maybe<Scalars['Set']>;
|
|
239
|
+
client_id?: Maybe<Scalars['String']>;
|
|
240
|
+
created?: Maybe<Scalars['Int']>;
|
|
241
|
+
hidden?: Maybe<Scalars['Boolean']>;
|
|
242
|
+
last_message_id?: Maybe<Scalars['Snowflake']>;
|
|
243
|
+
last_pinned_message_id?: Maybe<Scalars['Snowflake']>;
|
|
244
|
+
last_read_id?: Maybe<Scalars['Snowflake']>;
|
|
245
|
+
num_messages?: Maybe<Scalars['Int']>;
|
|
246
|
+
num_viewers?: Maybe<Scalars['Int']>;
|
|
247
|
+
pinned?: Maybe<Scalars['Boolean']>;
|
|
248
|
+
player_tags?: Maybe<Scalars['Set']>;
|
|
249
|
+
pushed_by?: Maybe<Scalars['Json']>;
|
|
250
|
+
score?: Maybe<Scalars['Int']>;
|
|
251
|
+
shard_max?: Maybe<Scalars['Int']>;
|
|
252
|
+
shard_min?: Maybe<Scalars['Int']>;
|
|
253
|
+
title?: Maybe<Scalars['String']>;
|
|
254
|
+
title_map?: Maybe<Scalars['Json']>;
|
|
255
|
+
topic_id?: Maybe<Scalars['Snowflake']>;
|
|
256
|
+
upvotes?: Maybe<Scalars['Int']>;
|
|
257
|
+
};
|