fansunited-management-components 1.30.0 → 1.31.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fansunited-management-components",
3
- "version": "1.30.0",
3
+ "version": "1.31.0",
4
4
  "main": "index.es.js",
5
5
  "author": "Fans United",
6
6
  "description": "",
@@ -4,6 +4,7 @@ type ScheduleProps = {
4
4
  labels: any;
5
5
  entityId: string;
6
6
  entityType: string;
7
+ readonly?: boolean;
7
8
  };
8
9
  declare const Schedule: React.FC<ScheduleProps>;
9
10
  export default Schedule;
@@ -10,6 +10,7 @@ import { default as PollRequestBody } from '../../models/voting/PollRequestBody'
10
10
  import { default as EitherOrRequestBody } from '../../models/minigames/eitherors/EitherOrRequestBody';
11
11
  import { default as BracketGameRequestBody } from '../../models/games/bracket/BracketGameRequestBody';
12
12
  import { default as StandingGameRequestBody } from '../../models/games/standing/StandingGameRequestBody';
13
+ import { FeatureType } from '../../types/types';
13
14
 
14
15
  export default class HttpsService extends Https {
15
16
  private loyaltyBaseUrl;
@@ -29,6 +30,7 @@ export default class HttpsService extends Https {
29
30
  exportDetailedGameLeaderboard: (gameId: string, limit: number) => Promise<Response>;
30
31
  createGame: (requestBody: GameRequestBody) => Promise<Response>;
31
32
  editGame: (gameId: string, requestBody: GameRequestBody) => Promise<Response>;
33
+ getEntityFeature: (entityType: FeatureType) => Promise<Response>;
32
34
  getClassicQuizFeature: () => Promise<Response>;
33
35
  getEitherOrFeature: () => Promise<Response>;
34
36
  getPollFeature: () => Promise<Response>;
@@ -1,3 +1,4 @@
1
1
  export type CommonProps = {
2
2
  label: string;
3
3
  };
4
+ export type FeatureType = 'predictor' | 'top_x' | 'match_quiz' | 'loyalty' | 'discussions' | 'classic_quiz' | 'either_or' | 'poll';