@smartico/public-api 0.0.399 → 0.0.401

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.
Files changed (53) hide show
  1. package/dist/Core/index.d.ts +1 -0
  2. package/dist/GamePick/GamePickTypes.d.ts +8 -8
  3. package/dist/Level/Level.d.ts +1 -0
  4. package/dist/SmarticoGlobal.d.ts +190 -0
  5. package/dist/WSAPI/WSAPIGamePick.d.ts +6 -6
  6. package/dist/WSAPI/WSAPIMiniGames.d.ts +60 -52
  7. package/dist/WSAPI/WSAPITypes.d.ts +5 -0
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.js +78 -66
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.modern.mjs +69 -60
  12. package/dist/index.modern.mjs.map +1 -1
  13. package/docs/api/README.md +20 -0
  14. package/docs/api/classes/WSAPIAvatars.md +1 -8
  15. package/docs/api/classes/WSAPIGamePick.md +48 -48
  16. package/docs/api/classes/WSAPIMiniGames.md +132 -70
  17. package/docs/api/enumerations/GPRoundStatus.md +43 -0
  18. package/docs/api/enumerations/GamePickMarketType.md +19 -0
  19. package/docs/api/enumerations/GamePickResolutionType.md +35 -0
  20. package/docs/api/enumerations/GamePickScoreType.md +19 -0
  21. package/docs/api/enumerations/GamePickSportType.md +375 -0
  22. package/docs/api/enumerations/GameRoundOrderType.md +35 -0
  23. package/docs/api/enumerations/LiquidEntityData.md +6 -0
  24. package/docs/api/interfaces/GamePickBoardUser.md +75 -0
  25. package/docs/api/interfaces/GamePickEvent.md +123 -0
  26. package/docs/api/interfaces/GamePickEventMeta.md +201 -0
  27. package/docs/api/interfaces/GamePickGameInfo.md +27 -0
  28. package/docs/api/interfaces/GamePickRequestParams.md +39 -0
  29. package/docs/api/interfaces/GamePickRound.md +383 -0
  30. package/docs/api/interfaces/GamePickRoundBase.md +232 -0
  31. package/docs/api/interfaces/GamePickRoundBoard.md +359 -0
  32. package/docs/api/interfaces/GamePickRoundPublicMeta.md +103 -0
  33. package/docs/api/interfaces/GamePickRoundRequestParams.md +63 -0
  34. package/docs/api/interfaces/GamePickUserInfo.md +107 -0
  35. package/docs/api/interfaces/GamesApiResponse.md +33 -0
  36. package/docs/api/interfaces/Level.md +8 -0
  37. package/docs/api/interfaces/QuizEventMeta.md +61 -0
  38. package/docs/api/interfaces/RafflePrizePublicMeta.md +9 -0
  39. package/docs/api/interfaces/TMiniGamePlayResult.md +11 -0
  40. package/docs/api/interfaces/TRafflePrize.md +9 -0
  41. package/docs/api/variables/AllRoundsGameBoardID.md +5 -0
  42. package/docs/ui/minigames/UIGuide_playMiniGame.md +6 -5
  43. package/package.json +1 -1
  44. package/src/Core/index.ts +1 -0
  45. package/src/GamePick/GamePickTypes.ts +8 -8
  46. package/src/Level/Level.ts +1 -0
  47. package/src/SmarticoAPI.ts +2 -1
  48. package/src/SmarticoGlobal.ts +209 -0
  49. package/src/WSAPI/WSAPIGamePick.ts +6 -6
  50. package/src/WSAPI/WSAPIMiniGames.ts +61 -52
  51. package/src/WSAPI/WSAPITypes.ts +5 -0
  52. package/src/index.ts +1 -0
  53. package/tsconfig.json +1 -0
@@ -0,0 +1,232 @@
1
+ # Interface: GamePickRoundBase
2
+
3
+ GamePickRoundBase describes a game round's metadata (without events or user-specific data)
4
+
5
+ ## Extended by
6
+
7
+ - [`GamePickRound`](GamePickRound.md)
8
+ - [`GamePickRoundBoard`](GamePickRoundBoard.md)
9
+
10
+ ## Properties
11
+
12
+ ### round\_id
13
+
14
+ > **round\_id**: `number`
15
+
16
+ Unique round identifier
17
+
18
+ ***
19
+
20
+ ### round\_row\_id
21
+
22
+ > **round\_row\_id**: `number`
23
+
24
+ Sequential row ID used for ordering rounds
25
+
26
+ ***
27
+
28
+ ### round\_name
29
+
30
+ > **round\_name**: `string`
31
+
32
+ Localized display name of the round
33
+
34
+ ***
35
+
36
+ ### round\_description
37
+
38
+ > **round\_description**: `string`
39
+
40
+ Localized description of the round
41
+
42
+ ***
43
+
44
+ ### final\_screen\_cta\_button\_title
45
+
46
+ > **final\_screen\_cta\_button\_title**: `string`
47
+
48
+ Label for the CTA button on the final/results screen
49
+
50
+ ***
51
+
52
+ ### final\_screen\_message
53
+
54
+ > **final\_screen\_message**: `string`
55
+
56
+ Message displayed on the final/results screen
57
+
58
+ ***
59
+
60
+ ### final\_screen\_image\_desktop
61
+
62
+ > **final\_screen\_image\_desktop**: `string`
63
+
64
+ URL of the final screen image (desktop)
65
+
66
+ ***
67
+
68
+ ### final\_screen\_image\_mobile
69
+
70
+ > **final\_screen\_image\_mobile**: `string`
71
+
72
+ URL of the final screen image (mobile)
73
+
74
+ ***
75
+
76
+ ### promo\_image
77
+
78
+ > **promo\_image**: `string`
79
+
80
+ URL of the promotional image for the round
81
+
82
+ ***
83
+
84
+ ### promo\_text
85
+
86
+ > **promo\_text**: `string`
87
+
88
+ Promotional text displayed with the round
89
+
90
+ ***
91
+
92
+ ### open\_date
93
+
94
+ > **open\_date**: `number`
95
+
96
+ Timestamp (ms) when the round opens for participation
97
+
98
+ ***
99
+
100
+ ### last\_bet\_date
101
+
102
+ > **last\_bet\_date**: `number`
103
+
104
+ Timestamp (ms) of the last moment bets are accepted
105
+
106
+ ***
107
+
108
+ ### resolution\_date
109
+
110
+ > **resolution\_date**: `number`
111
+
112
+ Timestamp (ms) when the round is expected to be resolved
113
+
114
+ ***
115
+
116
+ ### score\_full\_win
117
+
118
+ > **score\_full\_win**: `number`
119
+
120
+ Points awarded for a fully correct prediction
121
+
122
+ ***
123
+
124
+ ### score\_part\_win
125
+
126
+ > **score\_part\_win**: `number`
127
+
128
+ Points awarded for a partially correct prediction
129
+
130
+ ***
131
+
132
+ ### score\_lost
133
+
134
+ > **score\_lost**: `number`
135
+
136
+ Points awarded (or deducted) for an incorrect prediction
137
+
138
+ ***
139
+
140
+ ### is\_active\_now
141
+
142
+ > **is\_active\_now**: `boolean`
143
+
144
+ Whether the round is currently active for participation
145
+
146
+ ***
147
+
148
+ ### is\_resolved
149
+
150
+ > **is\_resolved**: `boolean`
151
+
152
+ Whether the round has been fully resolved and scored
153
+
154
+ ***
155
+
156
+ ### round\_status\_id
157
+
158
+ > **round\_status\_id**: [`GPRoundStatus`](../enumerations/GPRoundStatus.md)
159
+
160
+ Current lifecycle status of the round
161
+
162
+ ***
163
+
164
+ ### events\_total
165
+
166
+ > **events\_total**: `number`
167
+
168
+ Total number of events in the round
169
+
170
+ ***
171
+
172
+ ### events\_resolved
173
+
174
+ > **events\_resolved**: `number`
175
+
176
+ Number of events that have been resolved
177
+
178
+ ***
179
+
180
+ ### score\_type\_id
181
+
182
+ > **score\_type\_id**: [`GamePickScoreType`](../enumerations/GamePickScoreType.md)
183
+
184
+ Scoring method used for this round
185
+
186
+ ***
187
+
188
+ ### order\_events
189
+
190
+ > **order\_events**: [`GameRoundOrderType`](../enumerations/GameRoundOrderType.md)
191
+
192
+ How events are ordered for display
193
+
194
+ ***
195
+
196
+ ### board\_users\_count
197
+
198
+ > **board\_users\_count**: `number`
199
+
200
+ Maximum number of users shown on the leaderboard
201
+
202
+ ***
203
+
204
+ ### hide\_users\_predictions
205
+
206
+ > **hide\_users\_predictions**: `boolean`
207
+
208
+ Whether other users' predictions are hidden until resolution
209
+
210
+ ***
211
+
212
+ ### public\_meta
213
+
214
+ > **public\_meta**: [`GamePickRoundPublicMeta`](GamePickRoundPublicMeta.md)
215
+
216
+ Public metadata including translations and display settings from the BackOffice
217
+
218
+ ***
219
+
220
+ ### next\_round\_open\_date
221
+
222
+ > **next\_round\_open\_date**: `number`
223
+
224
+ Timestamp (ms) when the next round opens, if available
225
+
226
+ ***
227
+
228
+ ### show\_users\_preference
229
+
230
+ > **show\_users\_preference**: `boolean`
231
+
232
+ Whether to show aggregated user preference percentages for each outcome
@@ -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`