@smartico/public-api 0.0.354 → 0.0.356
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/dist/SmarticoAPI.d.ts +2 -2
- package/dist/WSAPI/WSAPI.d.ts +1 -30
- package/dist/WSAPI/WSAPITypes.d.ts +515 -32
- package/dist/index.d.ts +0 -1
- package/dist/index.js +78 -211
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +13 -139
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/README.md +27 -0
- package/docs/api/classes/WSAPI.md +27 -47
- package/docs/api/enums/GPRoundStatus.md +43 -0
- package/docs/api/enums/GamePickMarketType.md +19 -0
- package/docs/api/enums/GamePickResolutionType.md +35 -0
- package/docs/api/enums/GamePickScoreType.md +19 -0
- package/docs/api/enums/GamePickSportType.md +375 -0
- package/docs/api/enums/GameRoundOrderType.md +35 -0
- package/docs/api/enums/PointChangeSourceType.md +6 -0
- package/docs/api/interfaces/AchRelatedGame-1.md +1 -1
- package/docs/api/interfaces/BonusTemplateMetaMap.md +1 -1
- package/docs/api/interfaces/GamePickBoardUser.md +75 -0
- package/docs/api/interfaces/GamePickEvent.md +121 -0
- package/docs/api/interfaces/GamePickEventMeta.md +181 -0
- package/docs/api/interfaces/GamePickGameInfo.md +27 -0
- package/docs/api/interfaces/GamePickRequestParams.md +41 -0
- package/docs/api/interfaces/GamePickRound.md +385 -0
- package/docs/api/interfaces/GamePickRoundBase.md +235 -0
- package/docs/api/interfaces/GamePickRoundBoard.md +361 -0
- package/docs/api/interfaces/GamePickRoundPublicMeta.md +103 -0
- package/docs/api/interfaces/GamePickRoundRequestParams.md +65 -0
- package/docs/api/interfaces/GamePickUserInfo.md +107 -0
- package/docs/api/interfaces/GamesApiResponse.md +33 -0
- package/docs/api/interfaces/QuizEventMeta.md +41 -0
- package/docs/api/interfaces/TInboxMessageBody.md +1 -1
- package/docs/api/interfaces/TLevel.md +1 -1
- package/docs/api/interfaces/TLevelCurrent.md +1 -1
- package/docs/api/interfaces/TMiniGamePrize.md +1 -1
- package/docs/api/interfaces/TMiniGameTemplate.md +2 -2
- package/docs/api/interfaces/TMissionOrBadge.md +2 -2
- package/docs/api/interfaces/TRaffle.md +2 -2
- package/docs/api/interfaces/TRaffleDraw.md +14 -2
- package/docs/api/interfaces/TRaffleDrawRun.md +20 -0
- package/docs/api/interfaces/TRafflePrize.md +1 -1
- package/docs/api/interfaces/TStoreItem.md +3 -3
- package/docs/api/interfaces/TTournament.md +4 -4
- package/docs/api/interfaces/TTournamentDetailed.md +4 -4
- package/docs/api/interfaces/TUICustomSection.md +1 -1
- package/package.json +6 -6
- package/src/SmarticoAPI.ts +15 -7
- package/src/WSAPI/WSAPI.ts +1 -37
- package/src/WSAPI/WSAPITypes.ts +525 -32
- package/src/index.ts +1 -2
- package/dist/GamePick/GPTypes.d.ts +0 -268
- package/dist/GamePick/index.d.ts +0 -1
- package/src/GamePick/GPTypes.ts +0 -277
- package/src/GamePick/index.ts +0 -1
package/docs/api/README.md
CHANGED
|
@@ -46,6 +46,12 @@
|
|
|
46
46
|
- [TournamentRegistrationStatusName](enums/TournamentRegistrationStatusName.md)
|
|
47
47
|
- [TournamentRegistrationType](enums/TournamentRegistrationType.md)
|
|
48
48
|
- [BonusStatus](enums/BonusStatus-1.md)
|
|
49
|
+
- [GamePickMarketType](enums/GamePickMarketType.md)
|
|
50
|
+
- [GamePickResolutionType](enums/GamePickResolutionType.md)
|
|
51
|
+
- [GPRoundStatus](enums/GPRoundStatus.md)
|
|
52
|
+
- [GamePickScoreType](enums/GamePickScoreType.md)
|
|
53
|
+
- [GamePickSportType](enums/GamePickSportType.md)
|
|
54
|
+
- [GameRoundOrderType](enums/GameRoundOrderType.md)
|
|
49
55
|
|
|
50
56
|
## Classes
|
|
51
57
|
|
|
@@ -174,6 +180,19 @@
|
|
|
174
180
|
- [TransformedRaffleClaimPrizeResponse](interfaces/TransformedRaffleClaimPrizeResponse.md)
|
|
175
181
|
- [TActivityLog](interfaces/TActivityLog.md)
|
|
176
182
|
- [TRaffleOptinResponse](interfaces/TRaffleOptinResponse.md)
|
|
183
|
+
- [QuizEventMeta](interfaces/QuizEventMeta.md)
|
|
184
|
+
- [GamePickEventMeta](interfaces/GamePickEventMeta.md)
|
|
185
|
+
- [GamePickEvent](interfaces/GamePickEvent.md)
|
|
186
|
+
- [GamePickRoundPublicMeta](interfaces/GamePickRoundPublicMeta.md)
|
|
187
|
+
- [GamePickRoundBase](interfaces/GamePickRoundBase.md)
|
|
188
|
+
- [GamePickRound](interfaces/GamePickRound.md)
|
|
189
|
+
- [GamePickRoundBoard](interfaces/GamePickRoundBoard.md)
|
|
190
|
+
- [GamePickBoardUser](interfaces/GamePickBoardUser.md)
|
|
191
|
+
- [GamePickUserInfo](interfaces/GamePickUserInfo.md)
|
|
192
|
+
- [GamePickGameInfo](interfaces/GamePickGameInfo.md)
|
|
193
|
+
- [GamesApiResponse](interfaces/GamesApiResponse.md)
|
|
194
|
+
- [GamePickRequestParams](interfaces/GamePickRequestParams.md)
|
|
195
|
+
- [GamePickRoundRequestParams](interfaces/GamePickRoundRequestParams.md)
|
|
177
196
|
|
|
178
197
|
## General API
|
|
179
198
|
|
|
@@ -219,6 +238,14 @@ ___
|
|
|
219
238
|
| `2` | `string` |
|
|
220
239
|
| `3` | `string` |
|
|
221
240
|
|
|
241
|
+
___
|
|
242
|
+
|
|
243
|
+
### AllRoundsGameBoardID
|
|
244
|
+
|
|
245
|
+
• `Const` **AllRoundsGameBoardID**: ``-1``
|
|
246
|
+
|
|
247
|
+
Round ID constant used to request the overall/seasonal leaderboard across all rounds
|
|
248
|
+
|
|
222
249
|
## Functions
|
|
223
250
|
|
|
224
251
|
### BonusItemsTransform
|
|
@@ -1032,7 +1032,7 @@ ___
|
|
|
1032
1032
|
|
|
1033
1033
|
### getGamePickActiveRounds
|
|
1034
1034
|
|
|
1035
|
-
▸ **getGamePickActiveRounds**(`props`): `Promise
|
|
1035
|
+
▸ **getGamePickActiveRounds**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)[]\>\>
|
|
1036
1036
|
|
|
1037
1037
|
Returns the active rounds for the specified MatchX or Quiz game.
|
|
1038
1038
|
Each round includes its events (matches/questions) along with the current user's selections and scores.
|
|
@@ -1041,17 +1041,17 @@ Each round includes its events (matches/questions) along with the current user's
|
|
|
1041
1041
|
|
|
1042
1042
|
| Name | Type |
|
|
1043
1043
|
| :------ | :------ |
|
|
1044
|
-
| `props` | `GamePickRequestParams` |
|
|
1044
|
+
| `props` | [`GamePickRequestParams`](../interfaces/GamePickRequestParams.md) |
|
|
1045
1045
|
|
|
1046
1046
|
#### Returns
|
|
1047
1047
|
|
|
1048
|
-
`Promise
|
|
1048
|
+
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)[]\>\>
|
|
1049
1049
|
|
|
1050
1050
|
___
|
|
1051
1051
|
|
|
1052
1052
|
### getGamePickActiveRound
|
|
1053
1053
|
|
|
1054
|
-
▸ **getGamePickActiveRound**(`props`): `Promise
|
|
1054
|
+
▸ **getGamePickActiveRound**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1055
1055
|
|
|
1056
1056
|
Returns a single active round for the specified MatchX or Quiz game.
|
|
1057
1057
|
The round includes full event details with the current user's selections.
|
|
@@ -1060,17 +1060,17 @@ The round includes full event details with the current user's selections.
|
|
|
1060
1060
|
|
|
1061
1061
|
| Name | Type |
|
|
1062
1062
|
| :------ | :------ |
|
|
1063
|
-
| `props` | `GamePickRoundRequestParams` |
|
|
1063
|
+
| `props` | [`GamePickRoundRequestParams`](../interfaces/GamePickRoundRequestParams.md) |
|
|
1064
1064
|
|
|
1065
1065
|
#### Returns
|
|
1066
1066
|
|
|
1067
|
-
`Promise
|
|
1067
|
+
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1068
1068
|
|
|
1069
1069
|
___
|
|
1070
1070
|
|
|
1071
1071
|
### getGamePickHistory
|
|
1072
1072
|
|
|
1073
|
-
▸ **getGamePickHistory**(`props`): `Promise
|
|
1073
|
+
▸ **getGamePickHistory**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)[]\>\>
|
|
1074
1074
|
|
|
1075
1075
|
Returns the history of all rounds (including resolved ones) for the specified MatchX or Quiz game.
|
|
1076
1076
|
Each round contains full event details with results and the current user's predictions.
|
|
@@ -1079,17 +1079,17 @@ Each round contains full event details with results and the current user's predi
|
|
|
1079
1079
|
|
|
1080
1080
|
| Name | Type |
|
|
1081
1081
|
| :------ | :------ |
|
|
1082
|
-
| `props` | `GamePickRequestParams` |
|
|
1082
|
+
| `props` | [`GamePickRequestParams`](../interfaces/GamePickRequestParams.md) |
|
|
1083
1083
|
|
|
1084
1084
|
#### Returns
|
|
1085
1085
|
|
|
1086
|
-
`Promise
|
|
1086
|
+
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)[]\>\>
|
|
1087
1087
|
|
|
1088
1088
|
___
|
|
1089
1089
|
|
|
1090
1090
|
### getGamePickBoard
|
|
1091
1091
|
|
|
1092
|
-
▸ **getGamePickBoard**(`props`): `Promise
|
|
1092
|
+
▸ **getGamePickBoard**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRoundBoard`](../interfaces/GamePickRoundBoard.md)\>\>
|
|
1093
1093
|
|
|
1094
1094
|
Returns the leaderboard for a specific round within a MatchX or Quiz game.
|
|
1095
1095
|
Use `round_id = -1` (AllRoundsGameBoardID) to get the season/overall leaderboard across all rounds.
|
|
@@ -1098,17 +1098,17 @@ Use `round_id = -1` (AllRoundsGameBoardID) to get the season/overall leaderboard
|
|
|
1098
1098
|
|
|
1099
1099
|
| Name | Type |
|
|
1100
1100
|
| :------ | :------ |
|
|
1101
|
-
| `props` | `GamePickRoundRequestParams` |
|
|
1101
|
+
| `props` | [`GamePickRoundRequestParams`](../interfaces/GamePickRoundRequestParams.md) |
|
|
1102
1102
|
|
|
1103
1103
|
#### Returns
|
|
1104
1104
|
|
|
1105
|
-
`Promise
|
|
1105
|
+
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRoundBoard`](../interfaces/GamePickRoundBoard.md)\>\>
|
|
1106
1106
|
|
|
1107
1107
|
___
|
|
1108
1108
|
|
|
1109
1109
|
### submitGamePickSelection
|
|
1110
1110
|
|
|
1111
|
-
▸ **submitGamePickSelection**(`props`): `Promise
|
|
1111
|
+
▸ **submitGamePickSelection**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1112
1112
|
|
|
1113
1113
|
Submits score predictions for a round in a MatchX game.
|
|
1114
1114
|
Sends the round object with user selections for all events at once.
|
|
@@ -1120,17 +1120,17 @@ Predictions can be edited until each match starts (if `allow_edit_answers` is en
|
|
|
1120
1120
|
|
|
1121
1121
|
| Name | Type |
|
|
1122
1122
|
| :------ | :------ |
|
|
1123
|
-
| `props` | `GamePickRequestParams` & \{ `round`: `Partial
|
|
1123
|
+
| `props` | [`GamePickRequestParams`](../interfaces/GamePickRequestParams.md) & \{ `round`: `Partial`\<[`GamePickRound`](../interfaces/GamePickRound.md)\> } |
|
|
1124
1124
|
|
|
1125
1125
|
#### Returns
|
|
1126
1126
|
|
|
1127
|
-
`Promise
|
|
1127
|
+
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1128
1128
|
|
|
1129
1129
|
___
|
|
1130
1130
|
|
|
1131
1131
|
### submitGamePickSelectionQuiz
|
|
1132
1132
|
|
|
1133
|
-
▸ **submitGamePickSelectionQuiz**(`props`): `Promise
|
|
1133
|
+
▸ **submitGamePickSelectionQuiz**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1134
1134
|
|
|
1135
1135
|
Submits answers for a round in a Quiz game.
|
|
1136
1136
|
Sends the round object with user answers for all events at once.
|
|
@@ -1142,17 +1142,17 @@ Answers can be edited until each match starts (if `allow_edit_answers` is enable
|
|
|
1142
1142
|
|
|
1143
1143
|
| Name | Type |
|
|
1144
1144
|
| :------ | :------ |
|
|
1145
|
-
| `props` | `GamePickRequestParams` & \{ `round`: `Partial
|
|
1145
|
+
| `props` | [`GamePickRequestParams`](../interfaces/GamePickRequestParams.md) & \{ `round`: `Partial`\<[`GamePickRound`](../interfaces/GamePickRound.md)\> } |
|
|
1146
1146
|
|
|
1147
1147
|
#### Returns
|
|
1148
1148
|
|
|
1149
|
-
`Promise
|
|
1149
|
+
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1150
1150
|
|
|
1151
1151
|
___
|
|
1152
1152
|
|
|
1153
1153
|
### getGamePickUserInfo
|
|
1154
1154
|
|
|
1155
|
-
▸ **getGamePickUserInfo**(`props`): `Promise
|
|
1155
|
+
▸ **getGamePickUserInfo**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickUserInfo`](../interfaces/GamePickUserInfo.md)\>\>
|
|
1156
1156
|
|
|
1157
1157
|
Returns the current user's profile information within the specified MatchX or Quiz game.
|
|
1158
1158
|
The user record is synced from the Smartico platform into the games DB (synced every 1 minute).
|
|
@@ -1162,17 +1162,17 @@ If the user doesn't exist in the games DB yet, it will be created automatically
|
|
|
1162
1162
|
|
|
1163
1163
|
| Name | Type |
|
|
1164
1164
|
| :------ | :------ |
|
|
1165
|
-
| `props` | `GamePickRequestParams` |
|
|
1165
|
+
| `props` | [`GamePickRequestParams`](../interfaces/GamePickRequestParams.md) |
|
|
1166
1166
|
|
|
1167
1167
|
#### Returns
|
|
1168
1168
|
|
|
1169
|
-
`Promise
|
|
1169
|
+
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickUserInfo`](../interfaces/GamePickUserInfo.md)\>\>
|
|
1170
1170
|
|
|
1171
1171
|
___
|
|
1172
1172
|
|
|
1173
1173
|
### getGamePickGameInfo
|
|
1174
1174
|
|
|
1175
|
-
▸ **getGamePickGameInfo**(`props`): `Promise
|
|
1175
|
+
▸ **getGamePickGameInfo**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickGameInfo`](../interfaces/GamePickGameInfo.md)\>\>
|
|
1176
1176
|
|
|
1177
1177
|
Returns the game configuration and the list of all rounds for the specified MatchX or Quiz game.
|
|
1178
1178
|
Includes the SAW template definition, label settings, and round metadata (without events).
|
|
@@ -1181,37 +1181,17 @@ Includes the SAW template definition, label settings, and round metadata (withou
|
|
|
1181
1181
|
|
|
1182
1182
|
| Name | Type |
|
|
1183
1183
|
| :------ | :------ |
|
|
1184
|
-
| `props` | `GamePickRequestParams` |
|
|
1184
|
+
| `props` | [`GamePickRequestParams`](../interfaces/GamePickRequestParams.md) |
|
|
1185
1185
|
|
|
1186
1186
|
#### Returns
|
|
1187
1187
|
|
|
1188
|
-
`Promise
|
|
1189
|
-
|
|
1190
|
-
___
|
|
1191
|
-
|
|
1192
|
-
### getGamePickTranslations
|
|
1193
|
-
|
|
1194
|
-
▸ **getGamePickTranslations**(`props`): `Promise`\<`GamesApiResponse`\<`any`\>\>
|
|
1195
|
-
|
|
1196
|
-
Returns translations for the MatchX/Quiz game UI.
|
|
1197
|
-
Translations are returned as a key-value map for the Gamification and RetentionGames areas,
|
|
1198
|
-
resolved to the current user's language.
|
|
1199
|
-
|
|
1200
|
-
#### Parameters
|
|
1201
|
-
|
|
1202
|
-
| Name | Type |
|
|
1203
|
-
| :------ | :------ |
|
|
1204
|
-
| `props` | `GamePickRequestParams` |
|
|
1205
|
-
|
|
1206
|
-
#### Returns
|
|
1207
|
-
|
|
1208
|
-
`Promise`\<`GamesApiResponse`\<`any`\>\>
|
|
1188
|
+
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickGameInfo`](../interfaces/GamePickGameInfo.md)\>\>
|
|
1209
1189
|
|
|
1210
1190
|
___
|
|
1211
1191
|
|
|
1212
1192
|
### getGamePickRoundInfoForUser
|
|
1213
1193
|
|
|
1214
|
-
▸ **getGamePickRoundInfoForUser**(`props`): `Promise
|
|
1194
|
+
▸ **getGamePickRoundInfoForUser**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1215
1195
|
|
|
1216
1196
|
Returns round data with events and picks for a specific user (identified by their internal user ID).
|
|
1217
1197
|
Useful for viewing another user's predictions from the leaderboard.
|
|
@@ -1221,11 +1201,11 @@ The `int_user_id` can be obtained from the `getGamePickBoard` response (`users[]
|
|
|
1221
1201
|
|
|
1222
1202
|
| Name | Type |
|
|
1223
1203
|
| :------ | :------ |
|
|
1224
|
-
| `props` | `GamePickRoundRequestParams` & \{ `int_user_id`: `number` } |
|
|
1204
|
+
| `props` | [`GamePickRoundRequestParams`](../interfaces/GamePickRoundRequestParams.md) & \{ `int_user_id`: `number` } |
|
|
1225
1205
|
|
|
1226
1206
|
#### Returns
|
|
1227
1207
|
|
|
1228
|
-
`Promise
|
|
1208
|
+
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1229
1209
|
|
|
1230
1210
|
___
|
|
1231
1211
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Enumeration: GPRoundStatus
|
|
2
|
+
|
|
3
|
+
GPRoundStatus defines the lifecycle stage of a game round
|
|
4
|
+
|
|
5
|
+
## Enumeration Members
|
|
6
|
+
|
|
7
|
+
### Other
|
|
8
|
+
|
|
9
|
+
• **Other** = ``-1``
|
|
10
|
+
|
|
11
|
+
Round is in an active/other state
|
|
12
|
+
|
|
13
|
+
___
|
|
14
|
+
|
|
15
|
+
### NoEventsDefined
|
|
16
|
+
|
|
17
|
+
• **NoEventsDefined** = ``1``
|
|
18
|
+
|
|
19
|
+
Round exists but has no events defined yet
|
|
20
|
+
|
|
21
|
+
___
|
|
22
|
+
|
|
23
|
+
### NoMoreBetsAllowed
|
|
24
|
+
|
|
25
|
+
• **NoMoreBetsAllowed** = ``2``
|
|
26
|
+
|
|
27
|
+
Betting deadline has passed, no more bets allowed
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### AllEventsResolved\_ButNotRound
|
|
32
|
+
|
|
33
|
+
• **AllEventsResolved\_ButNotRound** = ``3``
|
|
34
|
+
|
|
35
|
+
All events in the round are resolved, but the round itself is not finalized
|
|
36
|
+
|
|
37
|
+
___
|
|
38
|
+
|
|
39
|
+
### RoundResolved
|
|
40
|
+
|
|
41
|
+
• **RoundResolved** = ``4``
|
|
42
|
+
|
|
43
|
+
Round is fully resolved and scored
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Enumeration: GamePickMarketType
|
|
2
|
+
|
|
3
|
+
GamePickMarketType defines legacy market categories for MatchX events
|
|
4
|
+
|
|
5
|
+
## Enumeration Members
|
|
6
|
+
|
|
7
|
+
### Goals
|
|
8
|
+
|
|
9
|
+
• **Goals** = ``1``
|
|
10
|
+
|
|
11
|
+
Predict the number of goals
|
|
12
|
+
|
|
13
|
+
___
|
|
14
|
+
|
|
15
|
+
### Winner
|
|
16
|
+
|
|
17
|
+
• **Winner** = ``2``
|
|
18
|
+
|
|
19
|
+
Predict the winner
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Enumeration: GamePickResolutionType
|
|
2
|
+
|
|
3
|
+
GamePickResolutionType defines how a user's prediction was scored after event resolution
|
|
4
|
+
|
|
5
|
+
## Enumeration Members
|
|
6
|
+
|
|
7
|
+
### None
|
|
8
|
+
|
|
9
|
+
• **None** = ``0``
|
|
10
|
+
|
|
11
|
+
Event not yet resolved
|
|
12
|
+
|
|
13
|
+
___
|
|
14
|
+
|
|
15
|
+
### Lost
|
|
16
|
+
|
|
17
|
+
• **Lost** = ``2``
|
|
18
|
+
|
|
19
|
+
Prediction was wrong
|
|
20
|
+
|
|
21
|
+
___
|
|
22
|
+
|
|
23
|
+
### PartialWin
|
|
24
|
+
|
|
25
|
+
• **PartialWin** = ``3``
|
|
26
|
+
|
|
27
|
+
Prediction was partially correct (e.g. correct winner but wrong score)
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### FullWin
|
|
32
|
+
|
|
33
|
+
• **FullWin** = ``4``
|
|
34
|
+
|
|
35
|
+
Prediction was fully correct
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Enumeration: GamePickScoreType
|
|
2
|
+
|
|
3
|
+
GamePickScoreType defines how scores are calculated for predictions
|
|
4
|
+
|
|
5
|
+
## Enumeration Members
|
|
6
|
+
|
|
7
|
+
### ExactScore
|
|
8
|
+
|
|
9
|
+
• **ExactScore** = ``1``
|
|
10
|
+
|
|
11
|
+
Score based on exact match of predicted result
|
|
12
|
+
|
|
13
|
+
___
|
|
14
|
+
|
|
15
|
+
### PointsDifference
|
|
16
|
+
|
|
17
|
+
• **PointsDifference** = ``2``
|
|
18
|
+
|
|
19
|
+
Score based on closeness (difference) of predicted result
|