@smartico/public-api 0.0.400 → 0.0.402
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/ActivityLog/ActivityLogEntry.d.ts +2 -0
- package/dist/Avatars/AvatarCustomized.d.ts +2 -2
- package/dist/Core/index.d.ts +1 -0
- package/dist/GamePick/GamePickTypes.d.ts +14 -14
- package/dist/Level/Level.d.ts +1 -0
- package/dist/SmarticoGlobal.d.ts +190 -0
- package/dist/WSAPI/WSAPIAvatars.d.ts +1 -1
- package/dist/WSAPI/WSAPIGamePick.d.ts +6 -6
- package/dist/WSAPI/WSAPIMiniGames.d.ts +55 -42
- package/dist/WSAPI/WSAPITypes.d.ts +9 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.js +73 -57
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +64 -51
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/README.md +20 -0
- package/docs/api/classes/WSAPIAvatars.md +2 -9
- package/docs/api/classes/WSAPIGamePick.md +48 -48
- package/docs/api/classes/WSAPIMiniGames.md +132 -70
- package/docs/api/enumerations/GPRoundStatus.md +43 -0
- package/docs/api/enumerations/GamePickMarketType.md +19 -0
- package/docs/api/enumerations/GamePickResolutionType.md +35 -0
- package/docs/api/enumerations/GamePickScoreType.md +19 -0
- package/docs/api/enumerations/GamePickSportType.md +375 -0
- package/docs/api/enumerations/GameRoundOrderType.md +35 -0
- package/docs/api/enumerations/LiquidEntityData.md +6 -0
- package/docs/api/interfaces/AvatarCustomized.md +2 -2
- package/docs/api/interfaces/GamePickBoardUser.md +75 -0
- package/docs/api/interfaces/GamePickEvent.md +123 -0
- package/docs/api/interfaces/GamePickEventMeta.md +201 -0
- package/docs/api/interfaces/GamePickGameInfo.md +27 -0
- package/docs/api/interfaces/GamePickRequestParams.md +39 -0
- package/docs/api/interfaces/GamePickRound.md +383 -0
- package/docs/api/interfaces/GamePickRoundBase.md +232 -0
- package/docs/api/interfaces/GamePickRoundBoard.md +359 -0
- package/docs/api/interfaces/GamePickRoundPublicMeta.md +103 -0
- package/docs/api/interfaces/GamePickRoundRequestParams.md +63 -0
- package/docs/api/interfaces/GamePickUserInfo.md +107 -0
- package/docs/api/interfaces/GamesApiResponse.md +33 -0
- package/docs/api/interfaces/GemsDiamondsLog.md +2 -0
- package/docs/api/interfaces/Level.md +8 -0
- package/docs/api/interfaces/PointsLog.md +2 -0
- package/docs/api/interfaces/QuizEventMeta.md +61 -0
- package/docs/api/interfaces/RafflePrizePublicMeta.md +9 -0
- package/docs/api/interfaces/TAvatarCustomized.md +2 -2
- package/docs/api/interfaces/TInboxMessage.md +2 -1
- package/docs/api/interfaces/TMiniGamePlayResult.md +11 -0
- package/docs/api/interfaces/TMissionOrBadge.md +3 -1
- package/docs/api/interfaces/TRafflePrize.md +9 -0
- package/docs/api/variables/AllRoundsGameBoardID.md +5 -0
- package/docs/ui/minigames/UIGuide_playMiniGame.md +6 -5
- package/package.json +1 -1
- package/src/ActivityLog/ActivityLogEntry.ts +2 -0
- package/src/Avatars/AvatarCustomized.ts +2 -2
- package/src/Core/index.ts +1 -0
- package/src/GamePick/GamePickTypes.ts +14 -14
- package/src/Level/Level.ts +1 -0
- package/src/Missions/UserAchievement.ts +2 -2
- package/src/SmarticoAPI.ts +2 -1
- package/src/SmarticoGlobal.ts +209 -0
- package/src/Store/StoreItem.ts +1 -1
- package/src/WSAPI/WSAPIAvatars.ts +1 -1
- package/src/WSAPI/WSAPIGamePick.ts +6 -6
- package/src/WSAPI/WSAPIMiniGames.ts +55 -42
- package/src/WSAPI/WSAPITypes.ts +9 -6
- package/src/index.ts +21 -0
- package/tsconfig.json +1 -0
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
# Interface: GamePickRoundBoard
|
|
2
|
+
|
|
3
|
+
GamePickRoundBoard describes a round's leaderboard with ranked users
|
|
4
|
+
|
|
5
|
+
## Extends
|
|
6
|
+
|
|
7
|
+
- [`GamePickRoundBase`](GamePickRoundBase.md)
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### round\_id
|
|
12
|
+
|
|
13
|
+
> **round\_id**: `number`
|
|
14
|
+
|
|
15
|
+
Unique round identifier
|
|
16
|
+
|
|
17
|
+
#### Inherited from
|
|
18
|
+
|
|
19
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`round_id`](GamePickRoundBase.md#round_id)
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### round\_row\_id
|
|
24
|
+
|
|
25
|
+
> **round\_row\_id**: `number`
|
|
26
|
+
|
|
27
|
+
Sequential row ID used for ordering rounds
|
|
28
|
+
|
|
29
|
+
#### Inherited from
|
|
30
|
+
|
|
31
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`round_row_id`](GamePickRoundBase.md#round_row_id)
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### round\_name
|
|
36
|
+
|
|
37
|
+
> **round\_name**: `string`
|
|
38
|
+
|
|
39
|
+
Localized display name of the round
|
|
40
|
+
|
|
41
|
+
#### Inherited from
|
|
42
|
+
|
|
43
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`round_name`](GamePickRoundBase.md#round_name)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### round\_description
|
|
48
|
+
|
|
49
|
+
> **round\_description**: `string`
|
|
50
|
+
|
|
51
|
+
Localized description of the round
|
|
52
|
+
|
|
53
|
+
#### Inherited from
|
|
54
|
+
|
|
55
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`round_description`](GamePickRoundBase.md#round_description)
|
|
56
|
+
|
|
57
|
+
***
|
|
58
|
+
|
|
59
|
+
### final\_screen\_cta\_button\_title
|
|
60
|
+
|
|
61
|
+
> **final\_screen\_cta\_button\_title**: `string`
|
|
62
|
+
|
|
63
|
+
Label for the CTA button on the final/results screen
|
|
64
|
+
|
|
65
|
+
#### Inherited from
|
|
66
|
+
|
|
67
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`final_screen_cta_button_title`](GamePickRoundBase.md#final_screen_cta_button_title)
|
|
68
|
+
|
|
69
|
+
***
|
|
70
|
+
|
|
71
|
+
### final\_screen\_message
|
|
72
|
+
|
|
73
|
+
> **final\_screen\_message**: `string`
|
|
74
|
+
|
|
75
|
+
Message displayed on the final/results screen
|
|
76
|
+
|
|
77
|
+
#### Inherited from
|
|
78
|
+
|
|
79
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`final_screen_message`](GamePickRoundBase.md#final_screen_message)
|
|
80
|
+
|
|
81
|
+
***
|
|
82
|
+
|
|
83
|
+
### final\_screen\_image\_desktop
|
|
84
|
+
|
|
85
|
+
> **final\_screen\_image\_desktop**: `string`
|
|
86
|
+
|
|
87
|
+
URL of the final screen image (desktop)
|
|
88
|
+
|
|
89
|
+
#### Inherited from
|
|
90
|
+
|
|
91
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`final_screen_image_desktop`](GamePickRoundBase.md#final_screen_image_desktop)
|
|
92
|
+
|
|
93
|
+
***
|
|
94
|
+
|
|
95
|
+
### final\_screen\_image\_mobile
|
|
96
|
+
|
|
97
|
+
> **final\_screen\_image\_mobile**: `string`
|
|
98
|
+
|
|
99
|
+
URL of the final screen image (mobile)
|
|
100
|
+
|
|
101
|
+
#### Inherited from
|
|
102
|
+
|
|
103
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`final_screen_image_mobile`](GamePickRoundBase.md#final_screen_image_mobile)
|
|
104
|
+
|
|
105
|
+
***
|
|
106
|
+
|
|
107
|
+
### promo\_image
|
|
108
|
+
|
|
109
|
+
> **promo\_image**: `string`
|
|
110
|
+
|
|
111
|
+
URL of the promotional image for the round
|
|
112
|
+
|
|
113
|
+
#### Inherited from
|
|
114
|
+
|
|
115
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`promo_image`](GamePickRoundBase.md#promo_image)
|
|
116
|
+
|
|
117
|
+
***
|
|
118
|
+
|
|
119
|
+
### promo\_text
|
|
120
|
+
|
|
121
|
+
> **promo\_text**: `string`
|
|
122
|
+
|
|
123
|
+
Promotional text displayed with the round
|
|
124
|
+
|
|
125
|
+
#### Inherited from
|
|
126
|
+
|
|
127
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`promo_text`](GamePickRoundBase.md#promo_text)
|
|
128
|
+
|
|
129
|
+
***
|
|
130
|
+
|
|
131
|
+
### open\_date
|
|
132
|
+
|
|
133
|
+
> **open\_date**: `number`
|
|
134
|
+
|
|
135
|
+
Timestamp (ms) when the round opens for participation
|
|
136
|
+
|
|
137
|
+
#### Inherited from
|
|
138
|
+
|
|
139
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`open_date`](GamePickRoundBase.md#open_date)
|
|
140
|
+
|
|
141
|
+
***
|
|
142
|
+
|
|
143
|
+
### last\_bet\_date
|
|
144
|
+
|
|
145
|
+
> **last\_bet\_date**: `number`
|
|
146
|
+
|
|
147
|
+
Timestamp (ms) of the last moment bets are accepted
|
|
148
|
+
|
|
149
|
+
#### Inherited from
|
|
150
|
+
|
|
151
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`last_bet_date`](GamePickRoundBase.md#last_bet_date)
|
|
152
|
+
|
|
153
|
+
***
|
|
154
|
+
|
|
155
|
+
### resolution\_date
|
|
156
|
+
|
|
157
|
+
> **resolution\_date**: `number`
|
|
158
|
+
|
|
159
|
+
Timestamp (ms) when the round is expected to be resolved
|
|
160
|
+
|
|
161
|
+
#### Inherited from
|
|
162
|
+
|
|
163
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`resolution_date`](GamePickRoundBase.md#resolution_date)
|
|
164
|
+
|
|
165
|
+
***
|
|
166
|
+
|
|
167
|
+
### score\_full\_win
|
|
168
|
+
|
|
169
|
+
> **score\_full\_win**: `number`
|
|
170
|
+
|
|
171
|
+
Points awarded for a fully correct prediction
|
|
172
|
+
|
|
173
|
+
#### Inherited from
|
|
174
|
+
|
|
175
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`score_full_win`](GamePickRoundBase.md#score_full_win)
|
|
176
|
+
|
|
177
|
+
***
|
|
178
|
+
|
|
179
|
+
### score\_part\_win
|
|
180
|
+
|
|
181
|
+
> **score\_part\_win**: `number`
|
|
182
|
+
|
|
183
|
+
Points awarded for a partially correct prediction
|
|
184
|
+
|
|
185
|
+
#### Inherited from
|
|
186
|
+
|
|
187
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`score_part_win`](GamePickRoundBase.md#score_part_win)
|
|
188
|
+
|
|
189
|
+
***
|
|
190
|
+
|
|
191
|
+
### score\_lost
|
|
192
|
+
|
|
193
|
+
> **score\_lost**: `number`
|
|
194
|
+
|
|
195
|
+
Points awarded (or deducted) for an incorrect prediction
|
|
196
|
+
|
|
197
|
+
#### Inherited from
|
|
198
|
+
|
|
199
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`score_lost`](GamePickRoundBase.md#score_lost)
|
|
200
|
+
|
|
201
|
+
***
|
|
202
|
+
|
|
203
|
+
### is\_active\_now
|
|
204
|
+
|
|
205
|
+
> **is\_active\_now**: `boolean`
|
|
206
|
+
|
|
207
|
+
Whether the round is currently active for participation
|
|
208
|
+
|
|
209
|
+
#### Inherited from
|
|
210
|
+
|
|
211
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`is_active_now`](GamePickRoundBase.md#is_active_now)
|
|
212
|
+
|
|
213
|
+
***
|
|
214
|
+
|
|
215
|
+
### is\_resolved
|
|
216
|
+
|
|
217
|
+
> **is\_resolved**: `boolean`
|
|
218
|
+
|
|
219
|
+
Whether the round has been fully resolved and scored
|
|
220
|
+
|
|
221
|
+
#### Inherited from
|
|
222
|
+
|
|
223
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`is_resolved`](GamePickRoundBase.md#is_resolved)
|
|
224
|
+
|
|
225
|
+
***
|
|
226
|
+
|
|
227
|
+
### round\_status\_id
|
|
228
|
+
|
|
229
|
+
> **round\_status\_id**: [`GPRoundStatus`](../enumerations/GPRoundStatus.md)
|
|
230
|
+
|
|
231
|
+
Current lifecycle status of the round
|
|
232
|
+
|
|
233
|
+
#### Inherited from
|
|
234
|
+
|
|
235
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`round_status_id`](GamePickRoundBase.md#round_status_id)
|
|
236
|
+
|
|
237
|
+
***
|
|
238
|
+
|
|
239
|
+
### events\_total
|
|
240
|
+
|
|
241
|
+
> **events\_total**: `number`
|
|
242
|
+
|
|
243
|
+
Total number of events in the round
|
|
244
|
+
|
|
245
|
+
#### Inherited from
|
|
246
|
+
|
|
247
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`events_total`](GamePickRoundBase.md#events_total)
|
|
248
|
+
|
|
249
|
+
***
|
|
250
|
+
|
|
251
|
+
### events\_resolved
|
|
252
|
+
|
|
253
|
+
> **events\_resolved**: `number`
|
|
254
|
+
|
|
255
|
+
Number of events that have been resolved
|
|
256
|
+
|
|
257
|
+
#### Inherited from
|
|
258
|
+
|
|
259
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`events_resolved`](GamePickRoundBase.md#events_resolved)
|
|
260
|
+
|
|
261
|
+
***
|
|
262
|
+
|
|
263
|
+
### score\_type\_id
|
|
264
|
+
|
|
265
|
+
> **score\_type\_id**: [`GamePickScoreType`](../enumerations/GamePickScoreType.md)
|
|
266
|
+
|
|
267
|
+
Scoring method used for this round
|
|
268
|
+
|
|
269
|
+
#### Inherited from
|
|
270
|
+
|
|
271
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`score_type_id`](GamePickRoundBase.md#score_type_id)
|
|
272
|
+
|
|
273
|
+
***
|
|
274
|
+
|
|
275
|
+
### order\_events
|
|
276
|
+
|
|
277
|
+
> **order\_events**: [`GameRoundOrderType`](../enumerations/GameRoundOrderType.md)
|
|
278
|
+
|
|
279
|
+
How events are ordered for display
|
|
280
|
+
|
|
281
|
+
#### Inherited from
|
|
282
|
+
|
|
283
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`order_events`](GamePickRoundBase.md#order_events)
|
|
284
|
+
|
|
285
|
+
***
|
|
286
|
+
|
|
287
|
+
### board\_users\_count
|
|
288
|
+
|
|
289
|
+
> **board\_users\_count**: `number`
|
|
290
|
+
|
|
291
|
+
Maximum number of users shown on the leaderboard
|
|
292
|
+
|
|
293
|
+
#### Inherited from
|
|
294
|
+
|
|
295
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`board_users_count`](GamePickRoundBase.md#board_users_count)
|
|
296
|
+
|
|
297
|
+
***
|
|
298
|
+
|
|
299
|
+
### hide\_users\_predictions
|
|
300
|
+
|
|
301
|
+
> **hide\_users\_predictions**: `boolean`
|
|
302
|
+
|
|
303
|
+
Whether other users' predictions are hidden until resolution
|
|
304
|
+
|
|
305
|
+
#### Inherited from
|
|
306
|
+
|
|
307
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`hide_users_predictions`](GamePickRoundBase.md#hide_users_predictions)
|
|
308
|
+
|
|
309
|
+
***
|
|
310
|
+
|
|
311
|
+
### public\_meta
|
|
312
|
+
|
|
313
|
+
> **public\_meta**: [`GamePickRoundPublicMeta`](GamePickRoundPublicMeta.md)
|
|
314
|
+
|
|
315
|
+
Public metadata including translations and display settings from the BackOffice
|
|
316
|
+
|
|
317
|
+
#### Inherited from
|
|
318
|
+
|
|
319
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`public_meta`](GamePickRoundBase.md#public_meta)
|
|
320
|
+
|
|
321
|
+
***
|
|
322
|
+
|
|
323
|
+
### next\_round\_open\_date
|
|
324
|
+
|
|
325
|
+
> **next\_round\_open\_date**: `number`
|
|
326
|
+
|
|
327
|
+
Timestamp (ms) when the next round opens, if available
|
|
328
|
+
|
|
329
|
+
#### Inherited from
|
|
330
|
+
|
|
331
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`next_round_open_date`](GamePickRoundBase.md#next_round_open_date)
|
|
332
|
+
|
|
333
|
+
***
|
|
334
|
+
|
|
335
|
+
### show\_users\_preference
|
|
336
|
+
|
|
337
|
+
> **show\_users\_preference**: `boolean`
|
|
338
|
+
|
|
339
|
+
Whether to show aggregated user preference percentages for each outcome
|
|
340
|
+
|
|
341
|
+
#### Inherited from
|
|
342
|
+
|
|
343
|
+
[`GamePickRoundBase`](GamePickRoundBase.md).[`show_users_preference`](GamePickRoundBase.md#show_users_preference)
|
|
344
|
+
|
|
345
|
+
***
|
|
346
|
+
|
|
347
|
+
### my\_user
|
|
348
|
+
|
|
349
|
+
> **my\_user**: [`GamePickBoardUser`](GamePickBoardUser.md)
|
|
350
|
+
|
|
351
|
+
Current user's leaderboard entry, or null if user hasn't participated
|
|
352
|
+
|
|
353
|
+
***
|
|
354
|
+
|
|
355
|
+
### users
|
|
356
|
+
|
|
357
|
+
> **users**: [`GamePickBoardUser`](GamePickBoardUser.md)[]
|
|
358
|
+
|
|
359
|
+
Ranked list of users on the leaderboard
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Interface: GamePickRoundPublicMeta
|
|
2
|
+
|
|
3
|
+
GamePickRoundPublicMeta describes the public-facing metadata and translations for a round, configured in the BackOffice
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### round\_name
|
|
8
|
+
|
|
9
|
+
> **round\_name**: `string`
|
|
10
|
+
|
|
11
|
+
Localized round name
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### round\_description
|
|
16
|
+
|
|
17
|
+
> **round\_description**: `string`
|
|
18
|
+
|
|
19
|
+
Localized round description
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### promo\_image
|
|
24
|
+
|
|
25
|
+
> **promo\_image**: `string`
|
|
26
|
+
|
|
27
|
+
URL of the promotional image for the round
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### promo\_text
|
|
32
|
+
|
|
33
|
+
> **promo\_text**: `string`
|
|
34
|
+
|
|
35
|
+
Promotional text displayed with the round
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### hide\_resolved\_round
|
|
40
|
+
|
|
41
|
+
> **hide\_resolved\_round**: `boolean`
|
|
42
|
+
|
|
43
|
+
Whether to hide the round from the UI after it has been resolved
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### final\_screen\_image\_desktop
|
|
48
|
+
|
|
49
|
+
> **final\_screen\_image\_desktop**: `string`
|
|
50
|
+
|
|
51
|
+
URL of the final screen image for desktop
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### final\_screen\_image\_mobile
|
|
56
|
+
|
|
57
|
+
> **final\_screen\_image\_mobile**: `string`
|
|
58
|
+
|
|
59
|
+
URL of the final screen image for mobile
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
|
|
63
|
+
### final\_screen\_message
|
|
64
|
+
|
|
65
|
+
> **final\_screen\_message**: `string`
|
|
66
|
+
|
|
67
|
+
Message displayed on the final/results screen
|
|
68
|
+
|
|
69
|
+
***
|
|
70
|
+
|
|
71
|
+
### final\_screen\_cta\_button\_title
|
|
72
|
+
|
|
73
|
+
> **final\_screen\_cta\_button\_title**: `string`
|
|
74
|
+
|
|
75
|
+
Label for the CTA button on the final screen
|
|
76
|
+
|
|
77
|
+
***
|
|
78
|
+
|
|
79
|
+
### final\_screen\_cta\_dp
|
|
80
|
+
|
|
81
|
+
> **final\_screen\_cta\_dp**: `string`
|
|
82
|
+
|
|
83
|
+
Deep link triggered by the CTA button on the final screen
|
|
84
|
+
|
|
85
|
+
***
|
|
86
|
+
|
|
87
|
+
### allow\_edit\_answers?
|
|
88
|
+
|
|
89
|
+
> `optional` **allow\_edit\_answers?**: `boolean`
|
|
90
|
+
|
|
91
|
+
Whether users can edit their answers after initial submission (within betting window)
|
|
92
|
+
|
|
93
|
+
***
|
|
94
|
+
|
|
95
|
+
### \_translations
|
|
96
|
+
|
|
97
|
+
> **\_translations**: `object`
|
|
98
|
+
|
|
99
|
+
Per-language overrides for round display content
|
|
100
|
+
|
|
101
|
+
#### Index Signature
|
|
102
|
+
|
|
103
|
+
\[`key`: `string`\]: `object`
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Interface: GamePickRoundRequestParams
|
|
2
|
+
|
|
3
|
+
GamePickRoundRequestParams extends base params with a specific round ID
|
|
4
|
+
|
|
5
|
+
## Extends
|
|
6
|
+
|
|
7
|
+
- [`GamePickRequestParams`](GamePickRequestParams.md)
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### saw\_template\_id
|
|
12
|
+
|
|
13
|
+
> **saw\_template\_id**: `number`
|
|
14
|
+
|
|
15
|
+
ID of the MatchX or Quiz game template. The only field the consumer supplies.
|
|
16
|
+
|
|
17
|
+
#### Inherited from
|
|
18
|
+
|
|
19
|
+
[`GamePickRequestParams`](GamePickRequestParams.md).[`saw_template_id`](GamePickRequestParams.md#saw_template_id)
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### ext\_user\_id?
|
|
24
|
+
|
|
25
|
+
> `optional` **ext\_user\_id?**: `string`
|
|
26
|
+
|
|
27
|
+
External user ID. Injected by the SDK from the active session; consumers omit it.
|
|
28
|
+
|
|
29
|
+
#### Inherited from
|
|
30
|
+
|
|
31
|
+
[`GamePickRequestParams`](GamePickRequestParams.md).[`ext_user_id`](GamePickRequestParams.md#ext_user_id)
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### smartico\_ext\_user\_id?
|
|
36
|
+
|
|
37
|
+
> `optional` **smartico\_ext\_user\_id?**: `string`
|
|
38
|
+
|
|
39
|
+
Platform external user ID. Injected by the SDK from the active session; consumers omit it.
|
|
40
|
+
|
|
41
|
+
#### Inherited from
|
|
42
|
+
|
|
43
|
+
[`GamePickRequestParams`](GamePickRequestParams.md).[`smartico_ext_user_id`](GamePickRequestParams.md#smartico_ext_user_id)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### lang?
|
|
48
|
+
|
|
49
|
+
> `optional` **lang?**: `string`
|
|
50
|
+
|
|
51
|
+
Language code for translations (e.g. 'EN', 'DE'). Defaults to the session language.
|
|
52
|
+
|
|
53
|
+
#### Inherited from
|
|
54
|
+
|
|
55
|
+
[`GamePickRequestParams`](GamePickRequestParams.md).[`lang`](GamePickRequestParams.md#lang)
|
|
56
|
+
|
|
57
|
+
***
|
|
58
|
+
|
|
59
|
+
### round\_id
|
|
60
|
+
|
|
61
|
+
> **round\_id**: `number`
|
|
62
|
+
|
|
63
|
+
ID of the specific round
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# Interface: GamePickUserInfo
|
|
2
|
+
|
|
3
|
+
GamePickUserInfo describes the current user's profile in the games system
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### ext\_user\_id
|
|
8
|
+
|
|
9
|
+
> **ext\_user\_id**: `string`
|
|
10
|
+
|
|
11
|
+
External user ID (Smartico numeric user ID)
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### int\_user\_id
|
|
16
|
+
|
|
17
|
+
> **int\_user\_id**: `number`
|
|
18
|
+
|
|
19
|
+
Internal user ID within the games system
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### public\_username
|
|
24
|
+
|
|
25
|
+
> **public\_username**: `string`
|
|
26
|
+
|
|
27
|
+
Display name
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### avatar\_url
|
|
32
|
+
|
|
33
|
+
> **avatar\_url**: `string`
|
|
34
|
+
|
|
35
|
+
URL of the user's avatar image
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### gp\_position?
|
|
40
|
+
|
|
41
|
+
> `optional` **gp\_position?**: `number`
|
|
42
|
+
|
|
43
|
+
User's leaderboard rank position
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### full\_wins\_count?
|
|
48
|
+
|
|
49
|
+
> `optional` **full\_wins\_count?**: `number`
|
|
50
|
+
|
|
51
|
+
Number of fully correct predictions
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### part\_wins\_count?
|
|
56
|
+
|
|
57
|
+
> `optional` **part\_wins\_count?**: `number`
|
|
58
|
+
|
|
59
|
+
Number of partially correct predictions
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
|
|
63
|
+
### resolution\_score?
|
|
64
|
+
|
|
65
|
+
> `optional` **resolution\_score?**: `number`
|
|
66
|
+
|
|
67
|
+
User's total score
|
|
68
|
+
|
|
69
|
+
***
|
|
70
|
+
|
|
71
|
+
### last\_wallet\_sync\_time?
|
|
72
|
+
|
|
73
|
+
> `optional` **last\_wallet\_sync\_time?**: `string`
|
|
74
|
+
|
|
75
|
+
ISO 8601 date-time string of the last time the user's balance was synced from the Smartico platform.
|
|
76
|
+
|
|
77
|
+
***
|
|
78
|
+
|
|
79
|
+
### ach\_points\_balance?
|
|
80
|
+
|
|
81
|
+
> `optional` **ach\_points\_balance?**: `number`
|
|
82
|
+
|
|
83
|
+
User's current points balance
|
|
84
|
+
|
|
85
|
+
***
|
|
86
|
+
|
|
87
|
+
### ach\_gems\_balance?
|
|
88
|
+
|
|
89
|
+
> `optional` **ach\_gems\_balance?**: `number`
|
|
90
|
+
|
|
91
|
+
User's current gems balance
|
|
92
|
+
|
|
93
|
+
***
|
|
94
|
+
|
|
95
|
+
### ach\_diamonds\_balance?
|
|
96
|
+
|
|
97
|
+
> `optional` **ach\_diamonds\_balance?**: `number`
|
|
98
|
+
|
|
99
|
+
User's current diamonds balance
|
|
100
|
+
|
|
101
|
+
***
|
|
102
|
+
|
|
103
|
+
### pubic\_username\_set?
|
|
104
|
+
|
|
105
|
+
> `optional` **pubic\_username\_set?**: `boolean`
|
|
106
|
+
|
|
107
|
+
Whether the user has set a custom public username
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Interface: GamesApiResponse\<T\>
|
|
2
|
+
|
|
3
|
+
GamesApiResponse is the standard response wrapper for all GamePick/Quiz API calls
|
|
4
|
+
|
|
5
|
+
## Type Parameters
|
|
6
|
+
|
|
7
|
+
### T
|
|
8
|
+
|
|
9
|
+
`T`
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### errCode
|
|
14
|
+
|
|
15
|
+
> **errCode**: `number`
|
|
16
|
+
|
|
17
|
+
Error code; `0` = success. Per-method code tables live in each `gamePick*` method's TSDoc.
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### errMessage?
|
|
22
|
+
|
|
23
|
+
> `optional` **errMessage?**: `string`
|
|
24
|
+
|
|
25
|
+
Human-readable error message; populated when `errCode` is non-zero.
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### data?
|
|
30
|
+
|
|
31
|
+
> `optional` **data?**: `T`
|
|
32
|
+
|
|
33
|
+
Response payload, present on success
|
|
@@ -49,3 +49,11 @@ Internal status of level. Not in use right now on the front-end
|
|
|
49
49
|
### general\_level\_progress
|
|
50
50
|
|
|
51
51
|
> **general\_level\_progress**: `number`
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### ordinal\_position?
|
|
56
|
+
|
|
57
|
+
> `optional` **ordinal\_position?**: `number`
|
|
58
|
+
|
|
59
|
+
1-based position of this level within the level ladder.
|