@sleeperhq/mini-core 1.6.4 → 1.6.5
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,12 +1,13 @@
|
|
|
1
|
-
import { User, League, LeaguesMap, RostersInLeagueMap, UserMap, MatchupsInLeagueMap, UsersInLeagueMap, PlayoffsInLeagueMap, TransactionsInLeagueMap, TransactionsMap, SportInfoMap,
|
|
1
|
+
import { User, League, LeaguesMap, RostersInLeagueMap, UserMap, MatchupsInLeagueMap, UsersInLeagueMap, PlayoffsInLeagueMap, TransactionsInLeagueMap, TransactionsMap, SportInfoMap, DraftsInLeagueMap, DraftPickTradesInLeagueMap, DraftPicksInDraftMap, PlayersInSportMap, Topic, Location, SportType } from './types';
|
|
2
2
|
import type { SleeperActions } from './sleeper_actions';
|
|
3
3
|
declare class SleeperContext {
|
|
4
4
|
static apiLevel: string;
|
|
5
5
|
user: User;
|
|
6
6
|
league: League;
|
|
7
7
|
leaguesMap: LeaguesMap;
|
|
8
|
-
|
|
8
|
+
leaguesMapBySport: Record<SportType, LeaguesMap>;
|
|
9
9
|
userLeagueList: string[];
|
|
10
|
+
userLeagueListBySport: Record<SportType, string[]>;
|
|
10
11
|
rostersInLeagueMap: RostersInLeagueMap;
|
|
11
12
|
userMap: UserMap;
|
|
12
13
|
matchupsInLeagueMap: MatchupsInLeagueMap;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Entitlement, HeaderOptions } from './types';
|
|
1
|
+
import type { Entitlement, HeaderOptions, SportType } from './types';
|
|
2
2
|
type SocketMessage = {
|
|
3
3
|
_ip?: string;
|
|
4
4
|
_name?: string;
|
|
@@ -7,5 +7,6 @@ type SocketMessage = {
|
|
|
7
7
|
_description?: string;
|
|
8
8
|
_entitlements?: Entitlement[];
|
|
9
9
|
_headerOptions?: HeaderOptions;
|
|
10
|
+
_sports?: SportType[];
|
|
10
11
|
};
|
|
11
12
|
export default SocketMessage;
|
package/package.json
CHANGED
package/src/dev_server/index.tsx
CHANGED
|
@@ -204,6 +204,7 @@ const DevServer = props => {
|
|
|
204
204
|
_name: config.name,
|
|
205
205
|
_entitlements: config.entitlements,
|
|
206
206
|
_headerOptions: config.headerOptions,
|
|
207
|
+
_sports: config.sports,
|
|
207
208
|
};
|
|
208
209
|
const json = JSON.stringify(message);
|
|
209
210
|
console.log('[Sleeper] Send IP address: ', ipAddress, config.name);
|
package/src/types/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HeaderOptions, Entitlement } from '../../declarations/types';
|
|
1
|
+
import type { HeaderOptions, Entitlement, SportType } from '../../declarations/types';
|
|
2
2
|
|
|
3
3
|
export * from '../../declarations/types/index.d';
|
|
4
4
|
export type { default as Context } from '../../declarations/sleeper_context.d';
|
|
@@ -14,4 +14,5 @@ export type Config = {
|
|
|
14
14
|
logsEnabled?: boolean,
|
|
15
15
|
entitlements?: Entitlement[],
|
|
16
16
|
headerOptions?: HeaderOptions,
|
|
17
|
+
sports?: SportType[],
|
|
17
18
|
};
|