@smartico/public-api 0.0.379 → 0.0.380

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 (99) hide show
  1. package/.nvmrc +1 -1
  2. package/README.md +31 -2
  3. package/dist/Store/BuyStoreItemErrorCode.d.ts +9 -1
  4. package/dist/Tournaments/TournamentRegistrationError.d.ts +3 -1
  5. package/dist/WSAPI/WSAPI.d.ts +13 -1235
  6. package/dist/WSAPI/WSAPIAvatars.d.ts +78 -0
  7. package/dist/WSAPI/WSAPIBase.d.ts +71 -0
  8. package/dist/WSAPI/WSAPIBonuses.d.ts +26 -0
  9. package/dist/WSAPI/WSAPIClans.d.ts +388 -0
  10. package/dist/WSAPI/WSAPIGamePick.d.ts +308 -0
  11. package/dist/WSAPI/WSAPIGeneral.d.ts +30 -0
  12. package/dist/WSAPI/WSAPIInbox.d.ts +126 -0
  13. package/dist/WSAPI/WSAPIJackpots.d.ts +109 -0
  14. package/dist/WSAPI/WSAPILeaderBoard.d.ts +25 -0
  15. package/dist/WSAPI/WSAPIMiniGames.d.ts +94 -0
  16. package/dist/WSAPI/WSAPIMissions.d.ts +517 -0
  17. package/dist/WSAPI/WSAPIRaffles.d.ts +119 -0
  18. package/dist/WSAPI/WSAPIStore.d.ts +656 -0
  19. package/dist/WSAPI/WSAPITournaments.d.ts +501 -0
  20. package/dist/WSAPI/WSAPITypes.d.ts +145 -85
  21. package/dist/WSAPI/WSAPIUser.d.ts +383 -0
  22. package/dist/index.js +3818 -1528
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.modern.mjs +3180 -981
  25. package/dist/index.modern.mjs.map +1 -1
  26. package/docs/api/README.md +56 -2
  27. package/docs/api/classes/WSAPIAvatars.md +116 -0
  28. package/docs/api/classes/WSAPIBonuses.md +50 -0
  29. package/docs/api/classes/WSAPIClans.md +66 -0
  30. package/docs/api/classes/WSAPIGamePick.md +181 -0
  31. package/docs/api/classes/WSAPIGeneral.md +63 -0
  32. package/docs/api/classes/WSAPIInbox.md +277 -0
  33. package/docs/api/classes/WSAPIJackpots.md +185 -0
  34. package/docs/api/classes/WSAPILeaderBoard.md +39 -0
  35. package/docs/api/classes/WSAPIMiniGames.md +175 -0
  36. package/docs/api/classes/WSAPIMissions.md +611 -0
  37. package/docs/api/classes/WSAPIRaffles.md +195 -0
  38. package/docs/api/classes/WSAPIStore.md +744 -0
  39. package/docs/api/classes/WSAPITournaments.md +104 -0
  40. package/docs/api/classes/WSAPIUser.md +200 -0
  41. package/docs/api/enumerations/AchievementClaimPeriodTypeId.md +13 -0
  42. package/docs/api/enumerations/BuyStoreItemErrorCode.md +32 -0
  43. package/docs/api/interfaces/ClanPrizePublicMeta.md +41 -0
  44. package/docs/api/interfaces/ClanPrizeStructureEntry.md +7 -1
  45. package/docs/api/interfaces/ClanPublicMeta.md +4 -0
  46. package/docs/api/interfaces/SAWTemplateUI.md +10 -0
  47. package/docs/api/interfaces/TAchCategory.md +19 -4
  48. package/docs/api/interfaces/TBuyStoreItemResult.md +26 -8
  49. package/docs/api/interfaces/TMissionClaimRewardResult.md +14 -3
  50. package/docs/api/interfaces/TMissionOptInResult.md +10 -3
  51. package/docs/api/interfaces/TMissionOrBadge.md +6 -2
  52. package/docs/api/interfaces/TStoreItem.md +21 -1
  53. package/docs/api/interfaces/TTournamentDetailed.md +8 -0
  54. package/docs/api/interfaces/UserAchievement.md +1 -1
  55. package/docs/ui/clans/UIGuide_getClanInfo.md +153 -0
  56. package/docs/ui/clans/UIGuide_getClans.md +172 -0
  57. package/docs/ui/clans/UIGuide_joinClan.md +196 -0
  58. package/docs/ui/missions/UIGuide_getAchCategories.md +17 -0
  59. package/docs/ui/missions/UIGuide_getBadges.md +237 -0
  60. package/docs/ui/missions/UIGuide_getMissions.md +268 -0
  61. package/docs/ui/missions/UIGuide_requestMissionClaimReward.md +21 -0
  62. package/docs/ui/missions/UIGuide_requestMissionOptIn.md +16 -0
  63. package/docs/ui/store/UIGuide_buyStoreItem.md +133 -0
  64. package/docs/ui/store/UIGuide_getStoreCategories.md +19 -0
  65. package/docs/ui/store/UIGuide_getStoreItems.md +264 -0
  66. package/docs/ui/store/UIGuide_getStorePurchasedItems.md +122 -0
  67. package/docs/ui/tournaments/UIGuide_getClanTournamentPlayers.md +140 -0
  68. package/docs/ui/tournaments/UIGuide_getTournamentInstanceInfo.md +265 -0
  69. package/docs/ui/tournaments/UIGuide_getTournamentsList.md +236 -0
  70. package/docs/ui/tournaments/UIGuide_registerInTournament.md +156 -0
  71. package/docs/ui/user/UIGuide_getLevels.md +162 -0
  72. package/docs/ui/user/UIGuide_getUserProfile.md +213 -0
  73. package/package.json +3 -3
  74. package/scripts/postdoc-cleanup.js +195 -0
  75. package/src/Missions/MissionsUtils.ts +5 -2
  76. package/src/Store/BuyStoreItemErrorCode.ts +8 -0
  77. package/src/Store/StoreItem.ts +1 -0
  78. package/src/Store/StoreItemPurchased.ts +1 -0
  79. package/src/Store/StoreItemType.ts +1 -1
  80. package/src/Tournaments/TournamentRegistrationError.ts +4 -0
  81. package/src/WSAPI/WSAPI.ts +27 -2007
  82. package/src/WSAPI/WSAPIAvatars.ts +127 -0
  83. package/src/WSAPI/WSAPIBase.ts +93 -0
  84. package/src/WSAPI/WSAPIBonuses.ts +54 -0
  85. package/src/WSAPI/WSAPIClans.ts +417 -0
  86. package/src/WSAPI/WSAPIGamePick.ts +382 -0
  87. package/src/WSAPI/WSAPIGeneral.ts +57 -0
  88. package/src/WSAPI/WSAPIInbox.ts +222 -0
  89. package/src/WSAPI/WSAPIJackpots.ts +212 -0
  90. package/src/WSAPI/WSAPILeaderBoard.ts +40 -0
  91. package/src/WSAPI/WSAPIMiniGames.ts +181 -0
  92. package/src/WSAPI/WSAPIMissions.ts +572 -0
  93. package/src/WSAPI/WSAPIRaffles.ts +175 -0
  94. package/src/WSAPI/WSAPIStore.ts +732 -0
  95. package/src/WSAPI/WSAPITournaments.ts +541 -0
  96. package/src/WSAPI/WSAPITypes.ts +145 -87
  97. package/src/WSAPI/WSAPIUser.ts +456 -0
  98. package/tsconfig.json +17 -1
  99. package/docs/api/classes/WSAPI.md +0 -1927
@@ -40,6 +40,7 @@
40
40
  - [SAWWheelLayout](enumerations/SAWWheelLayout.md)
41
41
  - [SAWWinSoundType](enumerations/SAWWinSoundType.md)
42
42
  - [AchievementAvailabilityStatus](enumerations/AchievementAvailabilityStatus.md)
43
+ - [AchievementClaimPeriodTypeId](enumerations/AchievementClaimPeriodTypeId.md)
43
44
  - [AchievementStatus](enumerations/AchievementStatus.md)
44
45
  - [AchievementTaskType](enumerations/AchievementTaskType.md)
45
46
  - [AchievementType](enumerations/AchievementType.md)
@@ -160,6 +161,7 @@
160
161
  - [GetTournamentInfoResponse](interfaces/GetTournamentInfoResponse.md)
161
162
  - [Tournament](interfaces/Tournament.md)
162
163
  - [ClanLeaderboardEntry](interfaces/ClanLeaderboardEntry.md)
164
+ - [ClanPrizePublicMeta](interfaces/ClanPrizePublicMeta.md)
163
165
  - [ClanPrizeTier](interfaces/ClanPrizeTier.md)
164
166
  - [ClanPrizeStructureEntry](interfaces/ClanPrizeStructureEntry.md)
165
167
  - [TournamentPlayer](interfaces/TournamentPlayer.md)
@@ -258,6 +260,58 @@
258
260
  - [TournamentItemsTransform](functions/TournamentItemsTransform.md)
259
261
  - [TournamentInstanceStatusName](functions/TournamentInstanceStatusName.md)
260
262
 
261
- ## General API
263
+ ## Avatars
262
264
 
263
- - [WSAPI](classes/WSAPI.md)
265
+ - [WSAPIAvatars](classes/WSAPIAvatars.md)
266
+
267
+ ## Bonuses
268
+
269
+ - [WSAPIBonuses](classes/WSAPIBonuses.md)
270
+
271
+ ## Clans
272
+
273
+ - [WSAPIClans](classes/WSAPIClans.md)
274
+
275
+ ## GamePick
276
+
277
+ - [WSAPIGamePick](classes/WSAPIGamePick.md)
278
+
279
+ ## General
280
+
281
+ - [WSAPIGeneral](classes/WSAPIGeneral.md)
282
+
283
+ ## Inbox
284
+
285
+ - [WSAPIInbox](classes/WSAPIInbox.md)
286
+
287
+ ## Jackpots
288
+
289
+ - [WSAPIJackpots](classes/WSAPIJackpots.md)
290
+
291
+ ## LeaderBoard
292
+
293
+ - [WSAPILeaderBoard](classes/WSAPILeaderBoard.md)
294
+
295
+ ## MiniGames
296
+
297
+ - [WSAPIMiniGames](classes/WSAPIMiniGames.md)
298
+
299
+ ## Missions
300
+
301
+ - [WSAPIMissions](classes/WSAPIMissions.md)
302
+
303
+ ## Raffles
304
+
305
+ - [WSAPIRaffles](classes/WSAPIRaffles.md)
306
+
307
+ ## Store
308
+
309
+ - [WSAPIStore](classes/WSAPIStore.md)
310
+
311
+ ## Tournaments
312
+
313
+ - [WSAPITournaments](classes/WSAPITournaments.md)
314
+
315
+ ## User
316
+
317
+ - [WSAPIUser](classes/WSAPIUser.md)
@@ -0,0 +1,116 @@
1
+ # Class: WSAPIAvatars
2
+ ## Methods
3
+
4
+ ### getAvatarsList()
5
+
6
+ > **getAvatarsList**(): `Promise`\<[`TAvatarDefinition`](../interfaces/TAvatarDefinition.md)[]\>
7
+
8
+ Returns the list of avatars available in the catalog for the current user.
9
+ The response includes both free avatars and earned/purchased ones.
10
+ Avatars with `hide_until_achieved = true` and `is_given = false` should be hidden from the user.
11
+ The result is cached for 30 seconds.
12
+
13
+ **Example**:
14
+ ```
15
+ _smartico.api.getAvatarsList().then((result) => {
16
+ console.log(result);
17
+ });
18
+ ```
19
+
20
+ **Visitor mode: not supported**
21
+
22
+ #### Returns
23
+
24
+ `Promise`\<[`TAvatarDefinition`](../interfaces/TAvatarDefinition.md)[]\>
25
+
26
+ ***
27
+
28
+ ### getAvatarsCustomized()
29
+
30
+ > **getAvatarsCustomized**(): `Promise`\<[`TAvatarCustomized`](../interfaces/TAvatarCustomized.md)[]\>
31
+
32
+ Returns the list of AI-customized avatars for the current user.
33
+ Each entry represents a previously generated AI customization for a specific base avatar.
34
+ The result is cached for 30 seconds.
35
+
36
+ **Example**:
37
+ ```
38
+ _smartico.api.getAvatarsCustomized().then((result) => {
39
+ console.log(result);
40
+ });
41
+ ```
42
+
43
+ **Visitor mode: not supported**
44
+
45
+ #### Returns
46
+
47
+ `Promise`\<[`TAvatarCustomized`](../interfaces/TAvatarCustomized.md)[]\>
48
+
49
+ ***
50
+
51
+ ### getAvatarPrompts()
52
+
53
+ > **getAvatarPrompts**(): `Promise`\<[`TAvatarPrompt`](../interfaces/TAvatarPrompt.md)[]\>
54
+
55
+ Returns the list of AI customization prompts (styles) available for avatar customization.
56
+ Each prompt represents a visual style that can be applied to a base avatar.
57
+ The result is cached for 30 seconds.
58
+
59
+ **Example**:
60
+ ```
61
+ _smartico.api.getAvatarPrompts().then((result) => {
62
+ console.log(result);
63
+ });
64
+ ```
65
+
66
+ **Visitor mode: not supported**
67
+
68
+ #### Returns
69
+
70
+ `Promise`\<[`TAvatarPrompt`](../interfaces/TAvatarPrompt.md)[]\>
71
+
72
+ ***
73
+
74
+ ### setAvatar()
75
+
76
+ > **setAvatar**(`props`): `Promise`\<[`TSetAvatarResult`](../interfaces/TSetAvatarResult.md)\>
77
+
78
+ Sets the specified avatar as the active avatar for the current user.
79
+ Pass `avatar_url` (the `TAvatarDefinition.url` path or a CDN URL for AI-customized avatars)
80
+ and `avatar_real_id` from the avatar catalog.
81
+ After a successful call, the avatar list cache is cleared so the next `getAvatarsList()` call reflects `is_in_use`.
82
+
83
+ **Example**:
84
+ ```
85
+ _smartico.api.getAvatarsList().then((avatars) => {
86
+ const avatar = avatars.find((a) => !a.hide_until_achieved || a.is_given);
87
+ if (avatar) {
88
+ _smartico.api.setAvatar({
89
+ avatar_url: avatar.url,
90
+ avatar_real_id: avatar.avatar_real_id,
91
+ }).then((result) => {
92
+ console.log(result);
93
+ });
94
+ }
95
+ });
96
+ ```
97
+
98
+ **Visitor mode: not supported**
99
+
100
+ #### Parameters
101
+
102
+ ##### props
103
+
104
+ ###### avatar_url
105
+
106
+ `string`
107
+
108
+ ###### avatar_real_id
109
+
110
+ `number`
111
+
112
+ #### Returns
113
+
114
+ `Promise`\<[`TSetAvatarResult`](../interfaces/TSetAvatarResult.md)\>
115
+
116
+ ***
@@ -0,0 +1,50 @@
1
+ # Class: WSAPIBonuses
2
+ ## Methods
3
+
4
+ ### getBonuses()
5
+
6
+ > **getBonuses**(`__namedParameters?`): `Promise`\<[`TBonus`](../interfaces/TBonus.md)[]\>
7
+
8
+ Returns all the bonuses for the current user
9
+ The returned bonuses are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
10
+ Note that each time you call getBonuses with a new onUpdate callback, the old one will be overwritten by the new one.
11
+ The onUpdate callback will be called on bonus claimed and the updated bonuses will be passed to it.
12
+
13
+ **Visitor mode: not supported**
14
+
15
+ #### Parameters
16
+
17
+ ##### \_\_namedParameters?
18
+
19
+ ###### onUpdate?
20
+
21
+ (`data`) => `void`
22
+
23
+ #### Returns
24
+
25
+ `Promise`\<[`TBonus`](../interfaces/TBonus.md)[]\>
26
+
27
+ ***
28
+
29
+ ### claimBonus()
30
+
31
+ > **claimBonus**(`bonus_id`): `Promise`\<[`TClaimBonusResult`](../interfaces/TClaimBonusResult.md)\>
32
+
33
+ Claim the bonus by bonus_id. Returns the err_code in case of success or error.
34
+ Note that this method can be used only on integrations where originally failed bonus can be claimed again.
35
+ For example, user won a bonus in the mini-game, but Operator rejected this bonus.
36
+ This bonus will be available for the user to claim again.
37
+
38
+ **Visitor mode: not supported**
39
+
40
+ #### Parameters
41
+
42
+ ##### bonus\_id
43
+
44
+ `number`
45
+
46
+ #### Returns
47
+
48
+ `Promise`\<[`TClaimBonusResult`](../interfaces/TClaimBonusResult.md)\>
49
+
50
+ ***
@@ -0,0 +1,66 @@
1
+ # Class: WSAPIClans
2
+ ## Methods
3
+
4
+ ### getClans()
5
+
6
+ > **getClans**(`__namedParameters?`): `Promise`\<[`TClans`](../interfaces/TClans.md)\>
7
+
8
+ Returns clans list payload for the current user.
9
+ The returned payload is cached for 30 seconds.
10
+ If onUpdate is passed, it will be called when clans response is received.
11
+
12
+ **Visitor mode: not supported**
13
+
14
+ #### Parameters
15
+
16
+ ##### \_\_namedParameters?
17
+
18
+ ###### onUpdate?
19
+
20
+ (`data`) => `void`
21
+
22
+ #### Returns
23
+
24
+ `Promise`\<[`TClans`](../interfaces/TClans.md)\>
25
+
26
+ ***
27
+
28
+ ### getClanInfo()
29
+
30
+ > **getClanInfo**(`clanId`): `Promise`\<[`TClanInfo`](../interfaces/TClanInfo.md)\>
31
+
32
+ Returns detailed information for a specific clan including its members.
33
+
34
+ **Visitor mode: not supported**
35
+
36
+ #### Parameters
37
+
38
+ ##### clanId
39
+
40
+ `number`
41
+
42
+ #### Returns
43
+
44
+ `Promise`\<[`TClanInfo`](../interfaces/TClanInfo.md)\>
45
+
46
+ ***
47
+
48
+ ### joinClan()
49
+
50
+ > **joinClan**(`clanId`): `Promise`\<[`TClanJoinResult`](../interfaces/TClanJoinResult.md)\>
51
+
52
+ Joins a clan on behalf of the current user.
53
+
54
+ **Visitor mode: not supported**
55
+
56
+ #### Parameters
57
+
58
+ ##### clanId
59
+
60
+ `number`
61
+
62
+ #### Returns
63
+
64
+ `Promise`\<[`TClanJoinResult`](../interfaces/TClanJoinResult.md)\>
65
+
66
+ ***
@@ -0,0 +1,181 @@
1
+ # Class: WSAPIGamePick
2
+ ## Methods
3
+
4
+ ### gamePickGetActiveRounds()
5
+
6
+ > **gamePickGetActiveRounds**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)[]\>\>
7
+
8
+ Returns the active rounds for the specified MatchX or Quiz game.
9
+ Each round includes its events (matches/questions) along with the current user's selections and scores.
10
+
11
+ #### Parameters
12
+
13
+ ##### props
14
+
15
+ [`GamePickRequestParams`](../interfaces/GamePickRequestParams.md)
16
+
17
+ #### Returns
18
+
19
+ `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)[]\>\>
20
+
21
+ ***
22
+
23
+ ### gamePickGetActiveRound()
24
+
25
+ > **gamePickGetActiveRound**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
26
+
27
+ Returns a single active round for the specified MatchX or Quiz game.
28
+ The round includes full event details with the current user's selections.
29
+
30
+ #### Parameters
31
+
32
+ ##### props
33
+
34
+ [`GamePickRoundRequestParams`](../interfaces/GamePickRoundRequestParams.md)
35
+
36
+ #### Returns
37
+
38
+ `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
39
+
40
+ ***
41
+
42
+ ### gamePickGetHistory()
43
+
44
+ > **gamePickGetHistory**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)[]\>\>
45
+
46
+ Returns the history of all rounds (including resolved ones) for the specified MatchX or Quiz game.
47
+ Each round contains full event details with results and the current user's predictions.
48
+
49
+ #### Parameters
50
+
51
+ ##### props
52
+
53
+ [`GamePickRequestParams`](../interfaces/GamePickRequestParams.md)
54
+
55
+ #### Returns
56
+
57
+ `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)[]\>\>
58
+
59
+ ***
60
+
61
+ ### gamePickGetBoard()
62
+
63
+ > **gamePickGetBoard**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRoundBoard`](../interfaces/GamePickRoundBoard.md)\>\>
64
+
65
+ Returns the leaderboard for a specific round within a MatchX or Quiz game.
66
+ Use `round_id = -1` (AllRoundsGameBoardID) to get the season/overall leaderboard across all rounds.
67
+
68
+ #### Parameters
69
+
70
+ ##### props
71
+
72
+ [`GamePickRoundRequestParams`](../interfaces/GamePickRoundRequestParams.md)
73
+
74
+ #### Returns
75
+
76
+ `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRoundBoard`](../interfaces/GamePickRoundBoard.md)\>\>
77
+
78
+ ***
79
+
80
+ ### gamePickSubmitSelection()
81
+
82
+ > **gamePickSubmitSelection**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
83
+
84
+ Submits score predictions for a round in a MatchX game.
85
+ Sends the round object with user selections for all events at once.
86
+ Each event must include `team1_user_selection` and `team2_user_selection` representing predicted scores.
87
+ If the user hasn't placed bets before, one game attempt (spin) will be consumed.
88
+ Predictions can be edited until each match starts (if `allow_edit_answers` is enabled on the round).
89
+
90
+ #### Parameters
91
+
92
+ ##### props
93
+
94
+ [`GamePickRequestParams`](../interfaces/GamePickRequestParams.md) & `object`
95
+
96
+ #### Returns
97
+
98
+ `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
99
+
100
+ ***
101
+
102
+ ### gamePickSubmitSelectionQuiz()
103
+
104
+ > **gamePickSubmitSelectionQuiz**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
105
+
106
+ Submits answers for a round in a Quiz game.
107
+ Sends the round object with user answers for all events at once.
108
+ Each event must include `user_selection` with the answer value (e.g. '1', '2', 'x', 'yes', 'no' — depending on the market type).
109
+ If the user hasn't placed bets before, one game attempt (spin) will be consumed.
110
+ Answers can be edited until each match starts (if `allow_edit_answers` is enabled on the round).
111
+
112
+ #### Parameters
113
+
114
+ ##### props
115
+
116
+ [`GamePickRequestParams`](../interfaces/GamePickRequestParams.md) & `object`
117
+
118
+ #### Returns
119
+
120
+ `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
121
+
122
+ ***
123
+
124
+ ### gamePickGetUserInfo()
125
+
126
+ > **gamePickGetUserInfo**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickUserInfo`](../interfaces/GamePickUserInfo.md)\>\>
127
+
128
+ Returns the current user's profile information within the specified MatchX or Quiz game.
129
+ The user record is synced from the Smartico platform into the games DB (synced every 1 minute).
130
+ If the user doesn't exist in the games DB yet, it will be created automatically on first call.
131
+
132
+ #### Parameters
133
+
134
+ ##### props
135
+
136
+ [`GamePickRequestParams`](../interfaces/GamePickRequestParams.md)
137
+
138
+ #### Returns
139
+
140
+ `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickUserInfo`](../interfaces/GamePickUserInfo.md)\>\>
141
+
142
+ ***
143
+
144
+ ### gamePickGetGameInfo()
145
+
146
+ > **gamePickGetGameInfo**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickGameInfo`](../interfaces/GamePickGameInfo.md)\>\>
147
+
148
+ Returns the game configuration and the list of all rounds for the specified MatchX or Quiz game.
149
+ Includes the SAW template definition, label settings, and round metadata (without events).
150
+
151
+ #### Parameters
152
+
153
+ ##### props
154
+
155
+ [`GamePickRequestParams`](../interfaces/GamePickRequestParams.md)
156
+
157
+ #### Returns
158
+
159
+ `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickGameInfo`](../interfaces/GamePickGameInfo.md)\>\>
160
+
161
+ ***
162
+
163
+ ### gamePickGetRoundInfoForUser()
164
+
165
+ > **gamePickGetRoundInfoForUser**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
166
+
167
+ Returns round data with events and picks for a specific user (identified by their internal user ID).
168
+ Useful for viewing another user's predictions from the leaderboard.
169
+ The `int_user_id` can be obtained from the `gamePickGetBoard` response (`users[].int_user_id`).
170
+
171
+ #### Parameters
172
+
173
+ ##### props
174
+
175
+ [`GamePickRoundRequestParams`](../interfaces/GamePickRoundRequestParams.md) & `object`
176
+
177
+ #### Returns
178
+
179
+ `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
180
+
181
+ ***
@@ -0,0 +1,63 @@
1
+ # Class: WSAPIGeneral
2
+ ## Methods
3
+
4
+ ### getCustomSections()
5
+
6
+ > **getCustomSections**(): `Promise`\<[`TUICustomSection`](../interfaces/TUICustomSection.md)[]\>
7
+
8
+ #### Returns
9
+
10
+ `Promise`\<[`TUICustomSection`](../interfaces/TUICustomSection.md)[]\>
11
+
12
+ ***
13
+
14
+ ### getTranslations()
15
+
16
+ > **getTranslations**(`lang_code`): `Promise`\<[`TGetTranslations`](../interfaces/TGetTranslations.md)\>
17
+
18
+ Requests translations for the given language. Returns the object including translation key/translation value pairs. All possible translation keys defined in the back office.
19
+
20
+ #### Parameters
21
+
22
+ ##### lang\_code
23
+
24
+ `string`
25
+
26
+ #### Returns
27
+
28
+ `Promise`\<[`TGetTranslations`](../interfaces/TGetTranslations.md)\>
29
+
30
+ ***
31
+
32
+ ### getRelatedItemsForGame()
33
+
34
+ > **getRelatedItemsForGame**(`related_game_id`): `Promise`\<[`GetRelatedAchTourResponse`](../interfaces/GetRelatedAchTourResponse.md)\>
35
+
36
+ Returns all the related tournaments and missions for the provided game id for the current user
37
+ The provided Game ID should correspond to the ID from the Games Catalog - https://help.smartico.ai/welcome/technical-guides/games-catalog-api
38
+
39
+ **Example**:
40
+ ```
41
+ _smartico.api.getRelatedItemsForGame('gold-slot2').then((result) => {
42
+ console.log(result);
43
+ });
44
+ ```
45
+
46
+ **Example in the Visitor mode**:
47
+ ```
48
+ _smartico.vapi('EN').getRelatedItemsForGame('gold-slot2').then((result) => {
49
+ console.log(result);
50
+ });
51
+ ```
52
+
53
+ #### Parameters
54
+
55
+ ##### related\_game\_id
56
+
57
+ `string`
58
+
59
+ #### Returns
60
+
61
+ `Promise`\<[`GetRelatedAchTourResponse`](../interfaces/GetRelatedAchTourResponse.md)\>
62
+
63
+ ***