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.
- package/Core/Namespaces/Loyalty/Models/Template/TemplateModel.d.ts +2 -0
- package/Core/Namespaces/MatchQuiz/Models/Games/GamesMatchQuizListModel.d.ts +3 -0
- package/Core/Namespaces/Predictor/Enums/MarketEnum.d.ts +15 -15
- package/Core/Namespaces/TopX/Models/Games/GamesListModel.d.ts +2 -0
- package/Core/Namespaces/TopX/Models/Games/GamesTopXListModel.d.ts +3 -0
- package/README.md +4 -1
- package/index.js +2 -1
- package/index.js.map +2 -2
- package/package.json +1 -1
|
@@ -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 = "
|
|
18
|
-
OVER_GOALS_1_5 = "
|
|
19
|
-
OVER_GOALS_2_5 = "
|
|
20
|
-
OVER_GOALS_3_5 = "
|
|
21
|
-
OVER_GOALS_4_5 = "
|
|
22
|
-
OVER_GOALS_5_5 = "
|
|
23
|
-
OVER_GOALS_6_5 = "
|
|
24
|
-
OVER_CORNERS_6_5 = "
|
|
25
|
-
OVER_CORNERS_7_5 = "
|
|
26
|
-
OVER_CORNERS_8_5 = "
|
|
27
|
-
OVER_CORNERS_9_5 = "
|
|
28
|
-
OVER_CORNERS_10_5 = "
|
|
29
|
-
OVER_CORNERS_11_5 = "
|
|
30
|
-
OVER_CORNERS_12_5 = "
|
|
31
|
-
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[];
|
|
@@ -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
|
-
|
|
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",
|