@smartico/public-api 0.0.419 → 0.0.421

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 (133) hide show
  1. package/dist/ActivityLog/ActivityLogActivities.d.ts +1 -1
  2. package/dist/ActivityLog/ActivityLogEntry.d.ts +35 -17
  3. package/dist/ActivityLog/ActivityLogMeta.d.ts +31 -0
  4. package/dist/ActivityLog/GetActivityLogRequest.d.ts +3 -1
  5. package/dist/ActivityLog/GetActivityLogResponse.d.ts +1 -2
  6. package/dist/ActivityLog/PointChangeSourceType.d.ts +1 -0
  7. package/dist/Jackpots/JackPotWinPushWinner.d.ts +34 -0
  8. package/dist/Jackpots/JackPotWinner.d.ts +3 -1
  9. package/dist/Jackpots/JackpotContributionRule.d.ts +23 -0
  10. package/dist/Jackpots/JackpotDetails.d.ts +8 -0
  11. package/dist/Jackpots/JackpotPot.d.ts +4 -2
  12. package/dist/Jackpots/JackpotPublicMeta.d.ts +6 -2
  13. package/dist/Jackpots/JackpotWinPush.d.ts +14 -2
  14. package/dist/Jackpots/index.d.ts +2 -0
  15. package/dist/SmarticoAPI.d.ts +3 -5
  16. package/dist/WSAPI/WSAPIBase.d.ts +0 -1
  17. package/dist/WSAPI/WSAPIJackpots.d.ts +2 -0
  18. package/dist/WSAPI/WSAPITypes.d.ts +17 -17
  19. package/dist/WSAPI/WSAPIUser.d.ts +24 -35
  20. package/dist/index.js +61 -131
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.modern.mjs +58 -102
  23. package/dist/index.modern.mjs.map +1 -1
  24. package/docs/Callbacks.md +1 -1
  25. package/docs/api/README.md +4 -4
  26. package/docs/api/classes/WSAPIJackpots.md +2 -0
  27. package/docs/api/classes/WSAPIUser.md +30 -59
  28. package/docs/api/documents/Callbacks.md +1 -1
  29. package/docs/api/enumerations/ActivityLogActivities.md +1 -1
  30. package/docs/api/enumerations/PointChangeSourceType.md +6 -0
  31. package/docs/api/interfaces/ActivityLogEntry.md +124 -0
  32. package/docs/api/interfaces/ActivityLogMeta.md +100 -0
  33. package/docs/api/interfaces/JackPotWinPushWinner.md +103 -0
  34. package/docs/api/interfaces/JackPotWinner.md +9 -1
  35. package/docs/api/interfaces/JackpotContributionRule.md +49 -0
  36. package/docs/api/interfaces/JackpotDetails.md +24 -0
  37. package/docs/api/interfaces/JackpotPot.md +9 -1
  38. package/docs/api/interfaces/JackpotPublicMeta.md +12 -2
  39. package/docs/api/interfaces/JackpotWinPush.md +14 -1
  40. package/docs/api/interfaces/TActivityLog.md +70 -2
  41. package/docs/api/type-aliases/TActivityLogEntry.md +7 -0
  42. package/docs/capabilities/_responses/gamePickGetActiveRound.json +37 -37
  43. package/docs/capabilities/_responses/gamePickGetActiveRounds.json +37 -131
  44. package/docs/capabilities/_responses/gamePickGetBoard.json +25 -14
  45. package/docs/capabilities/_responses/gamePickGetGameInfo.json +93 -79
  46. package/docs/capabilities/_responses/gamePickGetHistory.json +37 -131
  47. package/docs/capabilities/_responses/gamePickGetUserInfo.json +5 -5
  48. package/docs/capabilities/_responses/getActivityLog.json +106 -1
  49. package/docs/capabilities/_responses/getAvatarsCustomized.json +4 -4
  50. package/docs/capabilities/_responses/getAvatarsList.json +2 -2
  51. package/docs/capabilities/_responses/getBadges.json +27 -29
  52. package/docs/capabilities/_responses/getBonuses.json +1 -18
  53. package/docs/capabilities/_responses/getClanInfo.json +13 -13
  54. package/docs/capabilities/_responses/getClans.json +6 -6
  55. package/docs/capabilities/_responses/getCurrentLevel.json +12 -12
  56. package/docs/capabilities/_responses/getInboxMessageBody.json +2 -2
  57. package/docs/capabilities/_responses/getInboxMessages.json +6 -6
  58. package/docs/capabilities/_responses/getInboxUnreadCount.json +1 -1
  59. package/docs/capabilities/_responses/getJackpotWinners.json +14 -14
  60. package/docs/capabilities/_responses/getLeaderBoard.json +8 -8
  61. package/docs/capabilities/_responses/getMiniGames.json +92 -90
  62. package/docs/capabilities/_responses/getMiniGamesHistory.json +874 -1
  63. package/docs/capabilities/_responses/getMissions.json +2 -2
  64. package/docs/capabilities/_responses/getRaffleDrawRun.json +7 -7
  65. package/docs/capabilities/_responses/getRaffleDrawRunsHistory.json +6 -6
  66. package/docs/capabilities/_responses/getRaffles.json +14 -14
  67. package/docs/capabilities/_responses/getStorePurchasedItems.json +5 -5
  68. package/docs/capabilities/_responses/getTournamentInstanceInfo.json +100 -53
  69. package/docs/capabilities/_responses/getTournamentsList.json +12 -12
  70. package/docs/capabilities/_responses/getTranslations.json +1 -1
  71. package/docs/capabilities/_responses/getUserProfile.json +10 -10
  72. package/docs/capabilities/_responses/jackpotGet.json +33 -34
  73. package/docs/capabilities/gamePickGetActiveRound.md +22 -23
  74. package/docs/capabilities/gamePickGetActiveRounds.md +22 -23
  75. package/docs/capabilities/gamePickGetBoard.md +14 -14
  76. package/docs/capabilities/gamePickGetGameInfo.md +24 -44
  77. package/docs/capabilities/gamePickGetHistory.md +22 -23
  78. package/docs/capabilities/gamePickGetUserInfo.md +5 -5
  79. package/docs/capabilities/getActivityLog.md +69 -9
  80. package/docs/capabilities/getAvatarsCustomized.md +3 -3
  81. package/docs/capabilities/getBadges.md +13 -14
  82. package/docs/capabilities/getBonuses.md +2 -17
  83. package/docs/capabilities/getClanInfo.md +8 -8
  84. package/docs/capabilities/getClans.md +4 -4
  85. package/docs/capabilities/getCurrentLevel.md +12 -12
  86. package/docs/capabilities/getInboxMessageBody.md +2 -2
  87. package/docs/capabilities/getInboxMessages.md +3 -3
  88. package/docs/capabilities/getInboxUnreadCount.md +6 -0
  89. package/docs/capabilities/getJackpotWinners.md +9 -8
  90. package/docs/capabilities/getLeaderBoard.md +5 -5
  91. package/docs/capabilities/getMiniGames.md +35 -37
  92. package/docs/capabilities/getMiniGamesHistory.md +83 -2
  93. package/docs/capabilities/getMissions.md +1 -1
  94. package/docs/capabilities/getRaffleDrawRun.md +7 -7
  95. package/docs/capabilities/getRaffleDrawRunsHistory.md +3 -3
  96. package/docs/capabilities/getRaffles.md +8 -8
  97. package/docs/capabilities/getStorePurchasedItems.md +2 -2
  98. package/docs/capabilities/getTournamentInstanceInfo.md +45 -37
  99. package/docs/capabilities/getTournamentsList.md +6 -6
  100. package/docs/capabilities/getTranslations.md +1 -1
  101. package/docs/capabilities/getUserProfile.md +10 -10
  102. package/docs/capabilities/jackpotGet.md +56 -28
  103. package/docs/capabilities/jackpotOptIn.md +2 -0
  104. package/docs/capabilities/smarticoCallbacks.md +1 -1
  105. package/docs/native/PROTOCOL.md +141 -18
  106. package/docs/ui/jackpots/UIGuide_jackpotGet.md +1 -1
  107. package/docs/ui/user/UIGuide_getActivityLog.md +4 -2
  108. package/package.json +4 -3
  109. package/scripts/capture-responses-browser.mjs +8 -1
  110. package/src/ActivityLog/ActivityLogActivities.ts +1 -1
  111. package/src/ActivityLog/ActivityLogEntry.ts +33 -21
  112. package/src/ActivityLog/ActivityLogMeta.ts +31 -0
  113. package/src/ActivityLog/GetActivityLogRequest.ts +3 -3
  114. package/src/ActivityLog/GetActivityLogResponse.ts +23 -49
  115. package/src/ActivityLog/PointChangeSourceType.ts +1 -0
  116. package/src/Jackpots/JackPotWinPushWinner.ts +35 -0
  117. package/src/Jackpots/JackPotWinner.ts +3 -1
  118. package/src/Jackpots/JackpotContributionRule.ts +25 -0
  119. package/src/Jackpots/JackpotDetails.ts +8 -0
  120. package/src/Jackpots/JackpotPot.ts +4 -2
  121. package/src/Jackpots/JackpotPublicMeta.ts +6 -2
  122. package/src/Jackpots/JackpotWinPush.ts +14 -2
  123. package/src/Jackpots/index.ts +2 -0
  124. package/src/SmarticoAPI.ts +6 -40
  125. package/src/WSAPI/WSAPIBase.ts +0 -1
  126. package/src/WSAPI/WSAPIJackpots.ts +2 -0
  127. package/src/WSAPI/WSAPITypes.ts +18 -18
  128. package/src/WSAPI/WSAPIUser.ts +38 -55
  129. package/docs/api/interfaces/GemsDiamondsLog.md +0 -45
  130. package/docs/api/interfaces/PointsLog.md +0 -45
  131. package/docs/api/interfaces/TActivityLogEntry.md +0 -100
  132. package/docs/api/type-aliases/ActivityLogEntry.md +0 -3
  133. package/docs/capabilities/getActivityLogV2.md +0 -62
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Returns the bonuses awarded to the current user — both pending (player-claim required) and already-redeemed.
4
4
  > Import: `import { TBonus } from '@smartico/public-api'`
5
- > Search terms: getBonuses, bonuses, TBonus, BonusStatus, BonusTemplateMetaMap, BonusMetaMap, onUpdate, subscription, bonus_id, is_redeemable, create_date, redeem_date, label_bonus_template_id, bonus_status_id, label_bonus_template_meta_map, bonus_meta_map
5
+ > Search terms: getBonuses, bonuses, TBonus, BonusStatus, BonusTemplateMetaMap, BonusMetaMap, onUpdate, subscription
6
6
 
7
7
  ## Signature
8
8
  ```ts
@@ -132,22 +132,7 @@ setInterval(async () => {
132
132
  > Where this real payload differs from the typed Returns above (TS interface vs raw wire), the REAL shape is the runtime truth.
133
133
  ```json
134
134
  [
135
- {
136
- "bonus_id": 910171929,
137
- "is_redeemable": false,
138
- "create_date": "09/06/2026 23:05:03",
139
- "redeem_date": "09/06/2026 23:05:03",
140
- "label_bonus_template_id": 2152,
141
- "bonus_status_id": 3,
142
- "label_bonus_template_meta_map": {
143
- "name": "",
144
- "description": "100 Euro Free Chip",
145
- "image_url": "https://cdn.example/4011a701f070093978f2df-Storeitemcopy12.png"
146
- },
147
- "bonus_meta_map": {
148
- "uiAmount": "100 EUR Big Bonus "
149
- }
150
- }
135
+ null
151
136
  ]
152
137
  ```
153
138
 
@@ -134,22 +134,22 @@ if (isMyClan) {
134
134
  "description": "Join the clan if you're a wild card and are completely out of control! Or if you just hate Bruce Wayne very much.\n\nPlay in the tournaments, grab that cash an…",
135
135
  "image_url": "https://cdn.example/00000000-0000-0000-0000-000000000000/entity-image-1780057181857-1.png"
136
136
  },
137
- "member_count": 885,
137
+ "member_count": 899,
138
138
  "capacity_limit": 1000,
139
139
  "entry_fee_currency_type_id": 0,
140
140
  "entry_fee_amount": 100,
141
141
  "rating_position": 1,
142
- "rating_score": 90,
142
+ "rating_score": 56,
143
143
  "cooldown_until": null,
144
144
  "members": [
145
145
  {
146
- "user_id": 183751733,
147
- "public_username": "Daniel",
148
- "avatar_id": "183751733",
149
- "avatar_real_id": null,
150
- "avatar_url": "https://cdn.example/avatar/183751733",
146
+ "user_id": 162749132,
147
+ "public_username": "Toby*****",
148
+ "avatar_id": "https://cdn.example/avatars/12/00000000-0000-0000-0000-000000000000.png",
149
+ "avatar_real_id": 12,
150
+ "avatar_url": "https://cdn.example/avatars/12/00000000-0000-0000-0000-000000000000.png",
151
151
  "position": 1,
152
- "contribution_score": 456786,
152
+ "contribution_score": 0,
153
153
  "is_me": false,
154
154
  "clean_ext_user_id": "0"
155
155
  }
@@ -146,17 +146,17 @@ for (const clan of result.clans) {
146
146
  "description": "Join the clan if you're a wild card and are completely out of control! Or if you just hate Bruce Wayne very much.\n\nPlay in the tournaments, grab that cash an…",
147
147
  "image_url": "https://cdn.example/00000000-0000-0000-0000-000000000000/entity-image-1780057181857-1.png"
148
148
  },
149
- "member_count": 885,
149
+ "member_count": 899,
150
150
  "capacity_limit": 1000,
151
151
  "entry_fee_currency_type_id": 0,
152
152
  "entry_fee_amount": 100,
153
153
  "rating_position": 1,
154
- "rating_score": 90
154
+ "rating_score": 56
155
155
  }
156
156
  ],
157
- "user_clan_id": null,
157
+ "user_clan_id": 5,
158
158
  "cooldown_until": null,
159
- "join_date": null
159
+ "join_date": 1783546987268
160
160
  }
161
161
  ```
162
162
 
@@ -93,24 +93,24 @@ window._smartico.on('props_change', async (changed) => {
93
93
  > Where this real payload differs from the typed Returns above (TS interface vs raw wire), the REAL shape is the runtime truth.
94
94
  ```json
95
95
  {
96
- "id": 698,
97
- "name": "Silver",
98
- "description": "Now you’re playing! Enjoy exclusive missions and exciting rewards.",
99
- "image": "https://cdn.example/665b45d5a01e2191288091-3silver.png",
100
- "required_points": 500,
96
+ "id": 701,
97
+ "name": "Ruby",
98
+ "description": "Top-tier achieved! The ultimate prestige with unmatched privileges.",
99
+ "image": "https://cdn.example/a403c939ce26b6a42c9f46-6ruby.png",
100
+ "required_points": 5500,
101
101
  "visibility_points": 0,
102
102
  "required_level_counter_1": null,
103
103
  "required_level_counter_2": null,
104
104
  "custom_data": {
105
- "reward": "1000 EUR + 300 Free Spins",
106
- "image_inactive": "https://cdn.example/bdf58fecfda5a1b9627f8f-LevelLevel3Enabledfalse.png",
107
- "image_active": "https://cdn.example/90a40da1c5e201f8fa1d3c-LevelLevel3Enabledtrue.png",
108
- "rakeback": 5,
105
+ "reward": "10000 EUR",
106
+ "image_inactive": "https://cdn.example/e917989495185e3fed695d-LevelLevel1Enabledfalse.png",
107
+ "image_active": "https://cdn.example/a961023ab3f6441ac19dfc-LevelLevel1Enabledtrue.png",
108
+ "rakeback": 6,
109
109
  "has_vip_club": true,
110
- "cashback": 2
110
+ "cashback": 6
111
111
  },
112
- "ordinal_position": 3,
113
- "progress": 38
112
+ "ordinal_position": 6,
113
+ "progress": 100
114
114
  }
115
115
  ```
116
116
 
@@ -73,9 +73,9 @@ if (body.action === 'dp:inbox' && body.html_body) {
73
73
  ```json
74
74
  {
75
75
  "action": "dp:close",
76
- "icon": "https://cdn.example/d0f46ded3f7c9439fa0239-home-gems.webp",
76
+ "icon": "https://cdn.example/b6e45cf4ae00002865d406-home-diamonds.webp",
77
77
  "title": "Congratulations!",
78
- "preview_body": "You have received 10 Gems to your balance!",
78
+ "preview_body": "You have received 1 Diamonds to your balance!",
79
79
  "custom_data": {}
80
80
  }
81
81
  ```
@@ -127,12 +127,12 @@ const onlyUnread = await window._smartico.api.getInboxMessages({ read_status: 1
127
127
  ```json
128
128
  [
129
129
  {
130
- "sent_date": "24/06/2026 07:43:31",
130
+ "sent_date": "04/08/2026 09:00:08",
131
131
  "message_guid": "00000000-0000-0000-0000-000000000000",
132
- "read": true,
132
+ "read": false,
133
133
  "favorite": false,
134
134
  "category_id": 0,
135
- "expire_on_dt": 1784879011491
135
+ "expire_on_dt": 1788426008061
136
136
  }
137
137
  ]
138
138
  ```
@@ -47,6 +47,12 @@ await window._smartico.api.getInboxUnreadCount({
47
47
  });
48
48
  ```
49
49
 
50
+ ### Example response (REAL shape)
51
+ > Where this real payload differs from the typed Returns above (TS interface vs raw wire), the REAL shape is the runtime truth.
52
+ ```json
53
+ 8
54
+ ```
55
+
50
56
  ## Errors
51
57
  See this method's TSDoc / the mutation pages for `err_code` handling.
52
58
 
@@ -33,7 +33,8 @@ Array of `JackpotWinnerHistory`. Each item:
33
33
  - `winning_amount_jp_currency` (number) — Won amount in the Jackpot currency
34
34
  - `winning_amount_wallet_currency` (number) — Won amount in the user Wallet currency
35
35
  - `winning_position` (number) — Position of the winner. Relevant for jackpots where there could be multiple winners
36
- - `avatar_id` (string) — Avatar of the winner
36
+ - `avatar_id` (string) — Avatar image URL of the winner
37
+ - `avatar_real_id` (number | null) — Numeric ID of the winner's avatar; `null` when the winner has not picked one
37
38
 
38
39
  ## Behavioral contract
39
40
  **Preconditions**
@@ -93,15 +94,15 @@ console.log('[smartico] render', winners.length, 'recent winner rows (amounts in
93
94
  {
94
95
  "winner": {
95
96
  "is_me": false,
96
- "public_username": "731:*****",
97
- "winning_amount_jp_currency": 16.720332488,
98
- "winning_amount_wallet_currency": 98.525768722,
97
+ "public_username": "Asut*****",
98
+ "winning_amount_jp_currency": 8.32,
99
+ "winning_amount_wallet_currency": 8.32,
99
100
  "winning_position": 1,
100
- "avatar_id": "183751796",
101
- "avatar_real_id": null
101
+ "avatar_id": "https://cdn.example/d58c99035fadf00dcfe638-Dragongenderless.webp",
102
+ "avatar_real_id": 11
102
103
  },
103
- "win_date_ts": 1782295329703,
104
- "jp_pot_id": 306053
104
+ "win_date_ts": 1785909778120,
105
+ "jp_pot_id": 321186
105
106
  }
106
107
  ]
107
108
  ```
@@ -160,18 +160,18 @@ console.log('[smartico] previous-week standings — render with greyed-out "ende
160
160
  ],
161
161
  "users": [
162
162
  {
163
- "public_username": "Matt*****",
164
- "avatar_url": "https://cdn.example/avatar/344499363",
163
+ "public_username": "Maxi*****",
164
+ "avatar_url": "https://cdn.example/d1a960365f8a3716aa5a72-Lionmale.webp",
165
165
  "level_id": 700,
166
166
  "position": 1,
167
- "points": 2155,
167
+ "points": 1200,
168
168
  "is_me": false
169
169
  }
170
170
  ],
171
171
  "me": {
172
172
  "public_username": "Antonio",
173
- "avatar_url": "https://cdn.example/avatars/12/00000000-0000-0000-0000-000000000000.png",
174
- "level_id": 698,
173
+ "avatar_url": "https://cdn.example/avatars/11/00000000-0000-0000-0000-000000000000.png",
174
+ "level_id": 701,
175
175
  "position": -1,
176
176
  "points": 0,
177
177
  "is_me": true
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Returns all mini-game templates ("SAW" = Spin And Win — the umbrella term for wheel-spin, scratch-card, lootbox, gift-box, treasure-hunt, plinko, coin-flip, quiz, and several other formats) configured for the label.
4
4
  > Import: `import { TMiniGameTemplate } from '@smartico/public-api'`
5
- > Search terms: getMiniGames, minigames, getSAW, spins, wheel, SAWPrizeType, TMiniGameTemplate, SAWGameTypeName, SAWBuyInTypeName, TMiniGamePrize, MiniGamePrizeTypeName, SAWAcknowledgeTypeName, PrizeModifiers, AttemptPeriodType, SAWTemplateUI, SAWAskForUsername, SAWGameLayoutName, SAWExposeUserSpinIdName, onUpdate, subscription, id, name, description, thumbnail, visibile_when_can_spin, saw_game_type, saw_buyin_type, jackpot_add_on_attempt
5
+ > Search terms: getMiniGames, minigames, getSAW, spins, wheel, SAWPrizeType, TMiniGameTemplate, SAWGameTypeName, SAWBuyInTypeName, TMiniGamePrize, MiniGamePrizeTypeName, SAWAcknowledgeTypeName, PrizeModifiers, AttemptPeriodType, SAWTemplateUI, SAWAskForUsername, SAWGameLayoutName, SAWExposeUserSpinIdName, onUpdate, subscription, id, name, description, thumbnail, visibile_when_can_spin, over_limit_message, no_attempts_message, jackpot_symbol
6
6
 
7
7
  ## Signature
8
8
  ```ts
@@ -230,77 +230,75 @@ for (const g of visible) {
230
230
  ```json
231
231
  [
232
232
  {
233
- "id": 656,
234
- "name": "Scratch & Love",
233
+ "id": 651,
234
+ "name": "Wheel of Love",
235
235
  "description": "This is demo description of mini game. <br/>\n <hr/>\n\n You can <b>use tags</b> like {{spins_available}}, to show number of spins that us…",
236
236
  "thumbnail": "https://cdn.example/00000000-0000-0000-0000-000000000000/ico.png",
237
237
  "visibile_when_can_spin": false,
238
- "saw_game_type": "scratch",
239
- "saw_buyin_type": "spins",
238
+ "over_limit_message": "That's enough for today, please come back tomorrow",
239
+ "no_attempts_message": "You don't have any more attempts on this minigame",
240
+ "jackpot_symbol": "hugs",
241
+ "saw_game_type": "wheel",
242
+ "saw_buyin_type": "free",
240
243
  "jackpot_add_on_attempt": 1,
241
- "jackpot_current": 1070,
242
- "spin_count": 5,
243
- "promo_image": "https://cdn.example/d3d65f1bc722a8c66a9493-PromoImagefromTinyPNG.png",
244
- "promo_text": "The Scratch of Love is better than any other scratch!",
244
+ "jackpot_current": 5339,
245
+ "spin_count": 1,
246
+ "promo_image": "https://cdn.example/31c0db8a8d3e9888ba009a-promo-image.png",
245
247
  "custom_data": {},
246
248
  "expose_game_stat_on_api": false,
247
249
  "relative_period_timezone": 0,
248
250
  "activeFromDate": -9223372036854776000,
249
251
  "activeTillDate": 9223372036854776000,
250
252
  "next_available_spin_ts": null,
251
- "earliest_expiration_dt": 1952155860877,
252
- "latest_expiration_dt": 1952155860877,
253
- "custom_section_id": 491,
253
+ "earliest_expiration_dt": null,
254
+ "latest_expiration_dt": null,
254
255
  "saw_template_ui_definition": {
255
- "scratch_bg_mobile": "",
256
- "promo_text": "The Scratch of Love is better than any other scratch!",
257
256
  "thumbnail": "",
258
- "only_in_custom_section": false,
259
- "scratch_logo": "",
257
+ "jackpot_symbol": "hugs",
258
+ "over_limit_message": "That's enough for today, please come back tomorrow",
260
259
  "description": "This is demo description of mini game. <br/>\n <hr/>\n\n You can <b>use tags</b> like {{spins_available}}, to show number of spins that us…",
261
260
  "background_image_mobile": "",
262
- "custom_css": ".scratch-card-root-mobile .scratch-area .button-area div {\n background-image: linear-gradient(180deg,#BD0A42,50%,#BD0A42);\n}\n.scratch-card-root .scratch-a…",
263
- "hide_prize_names": false,
264
- "scratch_bg_desktop": "",
261
+ "custom_css": "/* text of the prize on sector */\n.saw-view .wheel-sector-name .sector-text {\n\n}\n\n/* the name of the game shown under the wheel */\n.saw-info-name {\n \n}\n\n/*…",
265
262
  "priority": 1,
266
- "scratch_cover": "",
267
263
  "background_image": "",
268
- "sectors_count": 6,
269
- "show_countdown_for_next_availability": false,
270
- "promo_image": "https://cdn.example/d3d65f1bc722a8c66a9493-PromoImagefromTinyPNG.png",
271
- "disable_background_music": true,
272
- "scratch_cursor": "",
264
+ "wheel_layout": 1,
265
+ "sectors_count": 7,
266
+ "show_countdown_for_next_availability": true,
267
+ "promo_image": "https://cdn.example/31c0db8a8d3e9888ba009a-promo-image.png",
268
+ "disable_background_music": false,
273
269
  "background_sound": "",
274
- "name": "Scratch & Love",
275
- "spin_animation_duration": 15,
270
+ "name": "Wheel of Love",
271
+ "max_spins_period_ms": 60000,
272
+ "spin_animation_duration": 10,
276
273
  "flow_builder_only": false,
277
- "custom_section_id": 491,
278
- "background_music_volume": 10
274
+ "wheel_pointer_rotation": 0,
275
+ "background_music_volume": 10,
276
+ "no_attempts_message": "You don't have any more attempts on this minigame"
279
277
  },
280
278
  "show_prize_history": true,
281
- "max_number_of_attempts": 0,
279
+ "max_number_of_attempts": 1,
282
280
  "prizes": [
283
281
  {
284
- "id": 15589,
285
- "name": "No luck this time =(",
282
+ "id": 3272,
283
+ "name": "Try again!",
286
284
  "prize_type": "no-prize",
287
285
  "prize_value": 1,
288
- "font_size": null,
289
- "position": 7,
286
+ "font_size": 20,
287
+ "icon": "",
290
288
  "sectors": [
291
- ""
289
+ 1
292
290
  ],
293
291
  "acknowledge_type": "silent",
294
292
  "acknowledge_dp": "dp:ok",
295
293
  "acknowledge_action_title": "OK",
296
294
  "pool": null,
297
- "pool_initial": 100,
295
+ "pool_initial": 500,
298
296
  "wins_count": null,
299
297
  "weekdays": null,
300
298
  "active_from_ts": null,
301
299
  "active_till_ts": null,
302
300
  "relative_period_timezone": 0,
303
- "is_surcharge": false,
301
+ "is_surcharge": true,
304
302
  "is_deleted": false,
305
303
  "custom_data": {},
306
304
  "max_give_period_type_id": 2
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Returns a paginated, newest-first list of the user's past mini-game spins — each row carries the won prize ID, the client-side `request_id` used for the spin, and a server-recorded `is_claimed` flag (`true` if the spin has been acknowledged).
4
4
  > Import: `import { TSawHistory } from '@smartico/public-api'`
5
- > Search terms: getMiniGamesHistory, minigames, getSAWHistory, TSawHistory, SAWTemplate, SAWGameType, SAWTemplateUI, SAWBuyInType, SAWPrize
5
+ > Search terms: getMiniGamesHistory, minigames, getSAWHistory, TSawHistory, SAWTemplate, SAWGameType, SAWTemplateUI, SAWBuyInType, SAWPrize, template, saw_template_id, saw_prize_id, prize_amount, client_request_id, is_claimed, create_date_ts, acknowledge_date_ts
6
6
 
7
7
  ## Signature
8
8
  ```ts
@@ -172,7 +172,88 @@ console.log('[smartico] page 2 loaded —', page2.length, 'more rows;',
172
172
  > Where this real payload differs from the typed Returns above (TS interface vs raw wire), the REAL shape is the runtime truth.
173
173
  ```json
174
174
  [
175
- null
175
+ {
176
+ "template": {
177
+ "saw_template_id": 12658,
178
+ "saw_game_type_id": 13,
179
+ "saw_template_ui_definition": {
180
+ "show_countdown_for_next_availability": false,
181
+ "promo_text": "Guess the shell, grab your iPhone",
182
+ "promo_image": "https://cdn.example/00000000-0000-0000-0000-000000000000/entity-image-1783600519171-1.png",
183
+ "custom_game_url": "https://00000000-0000-0000-0000-000000000000.ld-int.dev/index.html",
184
+ "name": "Pinyata",
185
+ "description": "Remember that shell with the prize, follow it, and open the right cap to grab it",
186
+ "flow_builder_only": false,
187
+ "priority": 1
188
+ },
189
+ "saw_buyin_type_id": 1,
190
+ "buyin_cost_points": 0,
191
+ "visibile_when_can_spin": false,
192
+ "spin_count": null,
193
+ "prizesMap": "…(keyed duplicate of `prizes[]`)",
194
+ "prizes": [
195
+ {
196
+ "saw_prize_id": 75905,
197
+ "saw_template_id": 12658,
198
+ "saw_prize_ui_definition": {
199
+ "aknowledge_message_lose": "Lost",
200
+ "sectors": [
201
+ ""
202
+ ],
203
+ "name": "3 diamonds",
204
+ "second_btn": "",
205
+ "acknowledge_dp": "dp:ok",
206
+ "sound_type": 2,
207
+ "aknowledge_message": "You won 3 diamonds!!!",
208
+ "acknowledge_action_title": "OK",
209
+ "acknowledge_type": 3,
210
+ "second_btn_action_title": ""
211
+ },
212
+ "prize_value": 1,
213
+ "prize_type_id": 10,
214
+ "pool": 98,
215
+ "wins_count": 7,
216
+ "pool_initial": 100,
217
+ "prize_ref_id": 0,
218
+ "is_surcharge": false,
219
+ "prize_details_json": {
220
+ "diamonds": 3,
221
+ "amount_type": 0,
222
+ "_gems_diamonds_type": 1
223
+ },
224
+ "affects_points_progress": true,
225
+ "affects_leaderboard_progress": true,
226
+ "affects_level_progress": true,
227
+ "affects_current_balance_progress": true,
228
+ "place_from": null,
229
+ "place_to": null,
230
+ "weekdays": null,
231
+ "active_from": null,
232
+ "active_till": null,
233
+ "active_from_ts": null,
234
+ "active_till_ts": null,
235
+ "is_deleted": false,
236
+ "relative_period_timezone": 0,
237
+ "show_prize_history": true,
238
+ "needed_tag_replacement": false,
239
+ "win_segment_id": null,
240
+ "win_conditions": "[]",
241
+ "max_give_period_type_id": 2
242
+ }
243
+ ],
244
+ "segment_id": 44162,
245
+ "label_id": 16018,
246
+ "maxActiveSpinsAllowed": null,
247
+ "…": "(+29 more keys)"
248
+ },
249
+ "saw_template_id": 12658,
250
+ "saw_prize_id": 75907,
251
+ "prize_amount": 1,
252
+ "client_request_id": "00000000-0000-0000-0000-000000000000",
253
+ "is_claimed": true,
254
+ "create_date_ts": 1785917360000,
255
+ "acknowledge_date_ts": 1785917360000
256
+ }
176
257
  ]
177
258
  ```
178
259
 
@@ -264,7 +264,7 @@ console.log('[smartico] initial mission list ready — render', generalView.leng
264
264
  "complete_date_ts": 1780930368099,
265
265
  "completed_today": false,
266
266
  "completed_this_week": false,
267
- "completed_this_month": true,
267
+ "completed_this_month": false,
268
268
  "availability_status": 2,
269
269
  "hide_locked_mission": true,
270
270
  "prize_claim_expiration_date": null,
@@ -176,7 +176,7 @@ if ((detail.winners_total ?? 0) > 20) {
176
176
  "min_required_total_tickets": 100,
177
177
  "cap_prizes_per_run": 3,
178
178
  "priority": 1,
179
- "stock_items_per_draw": 9991,
179
+ "stock_items_per_draw": 9951,
180
180
  "should_claim": false,
181
181
  "winners": [],
182
182
  "requires_claim": false,
@@ -184,14 +184,14 @@ if ((detail.winners_total ?? 0) > 20) {
184
184
  }
185
185
  ],
186
186
  "current_state": 1,
187
- "run_id": 775459,
187
+ "run_id": 947417,
188
188
  "execution_type": 2,
189
- "execution_ts": 1782378000000,
190
- "previous_run_ts": 1782291600000,
191
- "previous_run_id": 771353,
192
- "ticket_start_ts": 1782291600000,
189
+ "execution_ts": 1786006800000,
190
+ "previous_run_ts": 1785920400000,
191
+ "previous_run_id": 944957,
192
+ "ticket_start_ts": 1785920400000,
193
193
  "allow_multi_prize_per_ticket": false,
194
- "total_tickets_count": 93,
194
+ "total_tickets_count": 44,
195
195
  "my_tickets_count": 0,
196
196
  "my_last_tickets": [],
197
197
  "user_opted_in": true,
@@ -92,7 +92,7 @@ console.log('[smartico] render history rows for the daily draw — newest first:
92
92
  [
93
93
  {
94
94
  "id": 323,
95
- "run_id": 688934,
95
+ "run_id": 861842,
96
96
  "name": "Hourly draw",
97
97
  "description": "💰 Every hour, the luck could be yours! 🍀 Participate in our hourly draw for a chance to WIN BIG! 💸 Don't miss out!",
98
98
  "image_url": "https://cdn.example/5bcd2fd9bf96f3709d96b5-HourlyDraw-Promoimage.png",
@@ -101,8 +101,8 @@ console.log('[smartico] render history rows for the daily draw — newest first:
101
101
  "background_image_url": "https://cdn.example/867db7f6791f0a45039608-DrawBackground.png",
102
102
  "background_image_url_mobile": "https://cdn.example/d31a8d4708a17723d57b4b-DrawBackgroundMobilecopy.png",
103
103
  "is_grand": false,
104
- "execution_ts": 1780876800000,
105
- "ticket_start_ts": 1780873200000,
104
+ "execution_ts": 1784012400000,
105
+ "ticket_start_ts": 1784008800000,
106
106
  "is_winner": false,
107
107
  "has_unclaimed_prize": false
108
108
  }
@@ -184,7 +184,7 @@ for (const raffle of raffles) {
184
184
  "start_date": 1780669800000,
185
185
  "end_date": 1796157059000,
186
186
  "max_tickets_count": 2000000,
187
- "current_tickets_count": 13198,
187
+ "current_tickets_count": 72926,
188
188
  "draws": [
189
189
  {
190
190
  "id": 322,
@@ -207,7 +207,7 @@ for (const raffle of raffles) {
207
207
  "min_required_total_tickets": 100,
208
208
  "cap_prizes_per_run": 3,
209
209
  "priority": 1,
210
- "stock_items_per_draw": 9991,
210
+ "stock_items_per_draw": 9951,
211
211
  "should_claim": false,
212
212
  "winners": [],
213
213
  "requires_claim": false,
@@ -215,14 +215,14 @@ for (const raffle of raffles) {
215
215
  }
216
216
  ],
217
217
  "current_state": 1,
218
- "run_id": 775459,
218
+ "run_id": 947417,
219
219
  "execution_type": 2,
220
- "execution_ts": 1782378000000,
221
- "previous_run_ts": 1782291600000,
222
- "previous_run_id": 771353,
223
- "ticket_start_ts": 1782291600000,
220
+ "execution_ts": 1786006800000,
221
+ "previous_run_ts": 1785920400000,
222
+ "previous_run_id": 944957,
223
+ "ticket_start_ts": 1785920400000,
224
224
  "allow_multi_prize_per_ticket": false,
225
- "total_tickets_count": 93,
225
+ "total_tickets_count": 44,
226
226
  "my_tickets_count": 0,
227
227
  "my_last_tickets": [],
228
228
  "user_opted_in": true,
@@ -259,12 +259,12 @@ try {
259
259
  "category_ids": [
260
260
  567
261
261
  ],
262
- "pool": 1000,
262
+ "pool": 999,
263
263
  "purchase_ts": 1781880583706,
264
264
  "purchase_points_amount": 25,
265
265
  "purchased_today": false,
266
266
  "purchased_this_week": false,
267
- "purchased_this_month": true,
267
+ "purchased_this_month": false,
268
268
  "show_timer": false,
269
269
  "related_games": []
270
270
  }