@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,201 @@
1
+ # Interface: GamePickEventMeta
2
+
3
+ GamePickEventMeta describes metadata for a MatchX or Quiz event, including team info and sport context
4
+
5
+ ## Extends
6
+
7
+ - [`QuizEventMeta`](QuizEventMeta.md)
8
+
9
+ ## Properties
10
+
11
+ ### answers?
12
+
13
+ > `optional` **answers?**: `object`[]
14
+
15
+ List of possible answer options for the quiz question
16
+
17
+ #### value
18
+
19
+ > **value**: `string`
20
+
21
+ Answer identifier value sent on submission
22
+
23
+ #### text
24
+
25
+ > **text**: `string`
26
+
27
+ Localized display text of the answer
28
+
29
+ #### \_translations
30
+
31
+ > **\_translations**: `object`
32
+
33
+ Per-language overrides for the answer text
34
+
35
+ ##### Index Signature
36
+
37
+ \[`key`: `string`\]: `object`
38
+
39
+ #### Inherited from
40
+
41
+ [`QuizEventMeta`](QuizEventMeta.md).[`answers`](QuizEventMeta.md#answers)
42
+
43
+ ***
44
+
45
+ ### question\_image?
46
+
47
+ > `optional` **question\_image?**: `string`
48
+
49
+ URL of an image associated with the question
50
+
51
+ #### Inherited from
52
+
53
+ [`QuizEventMeta`](QuizEventMeta.md).[`question_image`](QuizEventMeta.md#question_image)
54
+
55
+ ***
56
+
57
+ ### result?
58
+
59
+ > `optional` **result?**: [`QuizAnswersValueType`](../enumerations/QuizAnswersValueType.md)
60
+
61
+ Correct answer value after resolution
62
+
63
+ #### Inherited from
64
+
65
+ [`QuizEventMeta`](QuizEventMeta.md).[`result`](QuizEventMeta.md#result)
66
+
67
+ ***
68
+
69
+ ### custom\_question
70
+
71
+ > **custom\_question**: `string`
72
+
73
+ Custom question text displayed to the user
74
+
75
+ #### Inherited from
76
+
77
+ [`QuizEventMeta`](QuizEventMeta.md).[`custom_question`](QuizEventMeta.md#custom_question)
78
+
79
+ ***
80
+
81
+ ### event\_name?
82
+
83
+ > `optional` **event\_name?**: `string`
84
+
85
+ Display name of the event/match
86
+
87
+ ***
88
+
89
+ ### team1\_name
90
+
91
+ > **team1\_name**: `string`
92
+
93
+ Name of the first team (home)
94
+
95
+ ***
96
+
97
+ ### team1\_image
98
+
99
+ > **team1\_image**: `string`
100
+
101
+ URL of the first team's logo image
102
+
103
+ ***
104
+
105
+ ### team2\_name
106
+
107
+ > **team2\_name**: `string`
108
+
109
+ Name of the second team (away)
110
+
111
+ ***
112
+
113
+ ### team2\_image
114
+
115
+ > **team2\_image**: `string`
116
+
117
+ URL of the second team's logo image
118
+
119
+ ***
120
+
121
+ ### team1\_result?
122
+
123
+ > `optional` **team1\_result?**: `number`
124
+
125
+ Actual result score for team 1 after resolution
126
+
127
+ ***
128
+
129
+ ### team2\_result?
130
+
131
+ > `optional` **team2\_result?**: `number`
132
+
133
+ Actual result score for team 2 after resolution
134
+
135
+ ***
136
+
137
+ ### sport\_type\_id?
138
+
139
+ > `optional` **sport\_type\_id?**: `number`
140
+
141
+ Betradar sport type ID for the event
142
+
143
+ ***
144
+
145
+ ### is\_canceled?
146
+
147
+ > `optional` **is\_canceled?**: `boolean`
148
+
149
+ Whether the event has been canceled
150
+
151
+ ***
152
+
153
+ ### auto\_resolve\_enabled?
154
+
155
+ > `optional` **auto\_resolve\_enabled?**: `boolean`
156
+
157
+ Whether auto-resolution from live data feed is enabled
158
+
159
+ ***
160
+
161
+ ### auto\_resolve\_date?
162
+
163
+ > `optional` **auto\_resolve\_date?**: `string`
164
+
165
+ ISO date string for when auto-resolution is expected
166
+
167
+ ***
168
+
169
+ ### team1\_auto\_result?
170
+
171
+ > `optional` **team1\_auto\_result?**: `number`
172
+
173
+ Auto-resolved score for team 1 from live data feed
174
+
175
+ ***
176
+
177
+ ### team2\_auto\_result?
178
+
179
+ > `optional` **team2\_auto\_result?**: `number`
180
+
181
+ Auto-resolved score for team 2 from live data feed
182
+
183
+ ***
184
+
185
+ ### auto\_result?
186
+
187
+ > `optional` **auto\_result?**: `string`
188
+
189
+ Auto-resolved answer value from live data feed (for quiz events)
190
+
191
+ ***
192
+
193
+ ### \_translations
194
+
195
+ > **\_translations**: `object`
196
+
197
+ Per-language overrides for team names, event name, and custom question
198
+
199
+ #### Index Signature
200
+
201
+ \[`key`: `string`\]: `object`
@@ -0,0 +1,27 @@
1
+ # Interface: GamePickGameInfo
2
+
3
+ GamePickGameInfo describes the game configuration including SAW template, rounds list, and label settings
4
+
5
+ ## Properties
6
+
7
+ ### sawTemplate
8
+
9
+ > **sawTemplate**: [`SAWTemplate`](SAWTemplate.md)
10
+
11
+ Game template configuration (SAW template) with UI settings, buy-in type, cost, and spin count
12
+
13
+ ***
14
+
15
+ ### allRounds
16
+
17
+ > **allRounds**: [`GamePickRoundBase`](GamePickRoundBase.md)[]
18
+
19
+ List of all rounds (metadata only, no events)
20
+
21
+ ***
22
+
23
+ ### labelInfo
24
+
25
+ > **labelInfo**: `any`
26
+
27
+ Label/brand configuration and settings
@@ -0,0 +1,39 @@
1
+ # Interface: GamePickRequestParams
2
+
3
+ GamePickRequestParams describes the base parameters required for GamePick API calls
4
+
5
+ ## Extended by
6
+
7
+ - [`GamePickRoundRequestParams`](GamePickRoundRequestParams.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
+ ***
18
+
19
+ ### ext\_user\_id?
20
+
21
+ > `optional` **ext\_user\_id?**: `string`
22
+
23
+ External user ID. Injected by the SDK from the active session; consumers omit it.
24
+
25
+ ***
26
+
27
+ ### smartico\_ext\_user\_id?
28
+
29
+ > `optional` **smartico\_ext\_user\_id?**: `string`
30
+
31
+ Platform external user ID. Injected by the SDK from the active session; consumers omit it.
32
+
33
+ ***
34
+
35
+ ### lang?
36
+
37
+ > `optional` **lang?**: `string`
38
+
39
+ Language code for translations (e.g. 'EN', 'DE'). Defaults to the session language.
@@ -0,0 +1,383 @@
1
+ # Interface: GamePickRound
2
+
3
+ GamePickRound describes a round with its events and the current user's prediction data
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
+ ### events
348
+
349
+ > **events**: [`GamePickEvent`](GamePickEvent.md)[]
350
+
351
+ List of events (matches/questions) in this round
352
+
353
+ ***
354
+
355
+ ### user\_score
356
+
357
+ > **user\_score**: `number`
358
+
359
+ Current user's total score in this round
360
+
361
+ ***
362
+
363
+ ### user\_placed\_bet
364
+
365
+ > **user\_placed\_bet**: `boolean`
366
+
367
+ Whether the current user has submitted any predictions in this round
368
+
369
+ ***
370
+
371
+ ### has\_open\_for\_bet\_events?
372
+
373
+ > `optional` **has\_open\_for\_bet\_events?**: `boolean`
374
+
375
+ Whether there are events still open for betting
376
+
377
+ ***
378
+
379
+ ### has\_not\_submitted\_changes?
380
+
381
+ > `optional` **has\_not\_submitted\_changes?**: `boolean`
382
+
383
+ Whether the user has unsaved changes to their predictions