fansunited-sdk-esm 1.2.6 → 1.2.9

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.
@@ -10,4 +10,6 @@ export default class TemplateModel {
10
10
  gameIds: string[];
11
11
  gameTypes: string[];
12
12
  competitionIds: string[];
13
+ rules: string;
14
+ flags: string[];
13
15
  }
@@ -5,8 +5,11 @@ export default class GamesMatchQuizListModel {
5
5
  description: string;
6
6
  type: string;
7
7
  status: string;
8
+ outcome: string;
8
9
  predictionsCutoff: string;
9
10
  fixtures: FixturesMatchQuizModel[];
11
+ rules: string;
12
+ flags: string[];
10
13
  createdAt: string;
11
14
  updatedAt: string;
12
15
  }
@@ -14,21 +14,21 @@ export declare enum MarketEnum {
14
14
  CORRECT_SCORE = "CORRECT_SCORE",
15
15
  PLAYER_SCORE_HATTRICK = "PLAYER_SCORE_HATTRICK",
16
16
  PLAYER_SCORE_TWICE = "PLAYER_SCORE_TWICE",
17
- OVER_GOALS_0_5 = "OVER_GOALS_0.5",
18
- OVER_GOALS_1_5 = "OVER_GOALS_1.5",
19
- OVER_GOALS_2_5 = "OVER_GOALS_2.5",
20
- OVER_GOALS_3_5 = "OVER_GOALS_3.5",
21
- OVER_GOALS_4_5 = "OVER_GOALS_4.5",
22
- OVER_GOALS_5_5 = "OVER_GOALS_5.5",
23
- OVER_GOALS_6_5 = "OVER_GOALS_6.5",
24
- OVER_CORNERS_6_5 = "OVER_CORNERS_6.5",
25
- OVER_CORNERS_7_5 = "OVER_CORNERS_7.5",
26
- OVER_CORNERS_8_5 = "OVER_CORNERS_8.5",
27
- OVER_CORNERS_9_5 = "OVER_CORNERS_9.5",
28
- OVER_CORNERS_10_5 = "OVER_CORNERS_10.5",
29
- OVER_CORNERS_11_5 = "OVER_CORNERS_11.5",
30
- OVER_CORNERS_12_5 = "OVER_CORNERS_12.5",
31
- OVER_CORNERS_13_5 = "OVER_CORNERS_13.5"
17
+ OVER_GOALS_0_5 = "OVER_GOALS_0_5",
18
+ OVER_GOALS_1_5 = "OVER_GOALS_1_5",
19
+ OVER_GOALS_2_5 = "OVER_GOALS_2_5",
20
+ OVER_GOALS_3_5 = "OVER_GOALS_3_5",
21
+ OVER_GOALS_4_5 = "OVER_GOALS_4_5",
22
+ OVER_GOALS_5_5 = "OVER_GOALS_5_5",
23
+ OVER_GOALS_6_5 = "OVER_GOALS_6_5",
24
+ OVER_CORNERS_6_5 = "OVER_CORNERS_6_5",
25
+ OVER_CORNERS_7_5 = "OVER_CORNERS_7_5",
26
+ OVER_CORNERS_8_5 = "OVER_CORNERS_8_5",
27
+ OVER_CORNERS_9_5 = "OVER_CORNERS_9_5",
28
+ OVER_CORNERS_10_5 = "OVER_CORNERS_10_5",
29
+ OVER_CORNERS_11_5 = "OVER_CORNERS_11_5",
30
+ OVER_CORNERS_12_5 = "OVER_CORNERS_12_5",
31
+ OVER_CORNERS_13_5 = "OVER_CORNERS_13_5"
32
32
  }
33
33
  export declare const MarketsOverGoals: MarketEnum[];
34
34
  export declare const MarketsOverCorners: MarketEnum[];
@@ -7,6 +7,8 @@ export default class GamesListModel {
7
7
  status: string;
8
8
  predictionsCutoff: string;
9
9
  fixtures: FixturesGamesModel[];
10
+ rules: string;
11
+ flags: string[];
10
12
  createdAt: string;
11
13
  updatedAt: string;
12
14
  }
@@ -5,8 +5,11 @@ export default class GamesTopXListModel {
5
5
  description: string;
6
6
  type: string;
7
7
  status: string;
8
+ outcome: string;
8
9
  predictionsCutoff: string;
9
10
  fixtures: FixturesTopXModel[];
11
+ rules: string;
12
+ flags: string[];
10
13
  createdAt: string;
11
14
  updatedAt: string;
12
15
  }
package/README.md CHANGED
@@ -20,6 +20,7 @@ The JavaScript SDK is distributed as NPM package. You can install it by running
20
20
 
21
21
  ```bash
22
22
  npm i fansunited-sdk-esm
23
+ yarn add fansunited-sdk-esm
23
24
  ```
24
25
 
25
26
  ## Use the SDK in your app
@@ -36,8 +37,10 @@ This is what the SDK config requires:
36
37
 
37
38
  ```javascript
38
39
  import {FansUnitedSDK} from "fansunited-sdk-esm";
40
+ // If you want too use map file for better debugging.
41
+ import {FansUnitedSDK} from "fansunited-sdk-esm/index";
39
42
 
40
- let fansUnitedSdk = FansUnitedSDK({
43
+ const fansUnitedSdk = FansUnitedSDK({
41
44
  "apiKey": "your-api-key-here",
42
45
  "environment": "dev|prod|staging", // default: prod
43
46
  "clientId": "your-client-id-here",