@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.
- package/dist/ActivityLog/ActivityLogActivities.d.ts +1 -1
- package/dist/ActivityLog/ActivityLogEntry.d.ts +35 -17
- package/dist/ActivityLog/ActivityLogMeta.d.ts +31 -0
- package/dist/ActivityLog/GetActivityLogRequest.d.ts +3 -1
- package/dist/ActivityLog/GetActivityLogResponse.d.ts +1 -2
- package/dist/ActivityLog/PointChangeSourceType.d.ts +1 -0
- package/dist/Jackpots/JackPotWinPushWinner.d.ts +34 -0
- package/dist/Jackpots/JackPotWinner.d.ts +3 -1
- package/dist/Jackpots/JackpotContributionRule.d.ts +23 -0
- package/dist/Jackpots/JackpotDetails.d.ts +8 -0
- package/dist/Jackpots/JackpotPot.d.ts +4 -2
- package/dist/Jackpots/JackpotPublicMeta.d.ts +6 -2
- package/dist/Jackpots/JackpotWinPush.d.ts +14 -2
- package/dist/Jackpots/index.d.ts +2 -0
- package/dist/SmarticoAPI.d.ts +3 -5
- package/dist/WSAPI/WSAPIBase.d.ts +0 -1
- package/dist/WSAPI/WSAPIJackpots.d.ts +2 -0
- package/dist/WSAPI/WSAPITypes.d.ts +17 -17
- package/dist/WSAPI/WSAPIUser.d.ts +24 -35
- package/dist/index.js +61 -131
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +58 -102
- package/dist/index.modern.mjs.map +1 -1
- package/docs/Callbacks.md +1 -1
- package/docs/api/README.md +4 -4
- package/docs/api/classes/WSAPIJackpots.md +2 -0
- package/docs/api/classes/WSAPIUser.md +30 -59
- package/docs/api/documents/Callbacks.md +1 -1
- package/docs/api/enumerations/ActivityLogActivities.md +1 -1
- package/docs/api/enumerations/PointChangeSourceType.md +6 -0
- package/docs/api/interfaces/ActivityLogEntry.md +124 -0
- package/docs/api/interfaces/ActivityLogMeta.md +100 -0
- package/docs/api/interfaces/JackPotWinPushWinner.md +103 -0
- package/docs/api/interfaces/JackPotWinner.md +9 -1
- package/docs/api/interfaces/JackpotContributionRule.md +49 -0
- package/docs/api/interfaces/JackpotDetails.md +24 -0
- package/docs/api/interfaces/JackpotPot.md +9 -1
- package/docs/api/interfaces/JackpotPublicMeta.md +12 -2
- package/docs/api/interfaces/JackpotWinPush.md +14 -1
- package/docs/api/interfaces/TActivityLog.md +70 -2
- package/docs/api/type-aliases/TActivityLogEntry.md +7 -0
- package/docs/capabilities/_responses/gamePickGetActiveRound.json +37 -37
- package/docs/capabilities/_responses/gamePickGetActiveRounds.json +37 -131
- package/docs/capabilities/_responses/gamePickGetBoard.json +25 -14
- package/docs/capabilities/_responses/gamePickGetGameInfo.json +93 -79
- package/docs/capabilities/_responses/gamePickGetHistory.json +37 -131
- package/docs/capabilities/_responses/gamePickGetUserInfo.json +5 -5
- package/docs/capabilities/_responses/getActivityLog.json +106 -1
- package/docs/capabilities/_responses/getAvatarsCustomized.json +4 -4
- package/docs/capabilities/_responses/getAvatarsList.json +2 -2
- package/docs/capabilities/_responses/getBadges.json +27 -29
- package/docs/capabilities/_responses/getBonuses.json +1 -18
- package/docs/capabilities/_responses/getClanInfo.json +13 -13
- package/docs/capabilities/_responses/getClans.json +6 -6
- package/docs/capabilities/_responses/getCurrentLevel.json +12 -12
- package/docs/capabilities/_responses/getInboxMessageBody.json +2 -2
- package/docs/capabilities/_responses/getInboxMessages.json +6 -6
- package/docs/capabilities/_responses/getInboxUnreadCount.json +1 -1
- package/docs/capabilities/_responses/getJackpotWinners.json +14 -14
- package/docs/capabilities/_responses/getLeaderBoard.json +8 -8
- package/docs/capabilities/_responses/getMiniGames.json +92 -90
- package/docs/capabilities/_responses/getMiniGamesHistory.json +874 -1
- package/docs/capabilities/_responses/getMissions.json +2 -2
- package/docs/capabilities/_responses/getRaffleDrawRun.json +7 -7
- package/docs/capabilities/_responses/getRaffleDrawRunsHistory.json +6 -6
- package/docs/capabilities/_responses/getRaffles.json +14 -14
- package/docs/capabilities/_responses/getStorePurchasedItems.json +5 -5
- package/docs/capabilities/_responses/getTournamentInstanceInfo.json +100 -53
- package/docs/capabilities/_responses/getTournamentsList.json +12 -12
- package/docs/capabilities/_responses/getTranslations.json +1 -1
- package/docs/capabilities/_responses/getUserProfile.json +10 -10
- package/docs/capabilities/_responses/jackpotGet.json +33 -34
- package/docs/capabilities/gamePickGetActiveRound.md +22 -23
- package/docs/capabilities/gamePickGetActiveRounds.md +22 -23
- package/docs/capabilities/gamePickGetBoard.md +14 -14
- package/docs/capabilities/gamePickGetGameInfo.md +24 -44
- package/docs/capabilities/gamePickGetHistory.md +22 -23
- package/docs/capabilities/gamePickGetUserInfo.md +5 -5
- package/docs/capabilities/getActivityLog.md +69 -9
- package/docs/capabilities/getAvatarsCustomized.md +3 -3
- package/docs/capabilities/getBadges.md +13 -14
- package/docs/capabilities/getBonuses.md +2 -17
- package/docs/capabilities/getClanInfo.md +8 -8
- package/docs/capabilities/getClans.md +4 -4
- package/docs/capabilities/getCurrentLevel.md +12 -12
- package/docs/capabilities/getInboxMessageBody.md +2 -2
- package/docs/capabilities/getInboxMessages.md +3 -3
- package/docs/capabilities/getInboxUnreadCount.md +6 -0
- package/docs/capabilities/getJackpotWinners.md +9 -8
- package/docs/capabilities/getLeaderBoard.md +5 -5
- package/docs/capabilities/getMiniGames.md +35 -37
- package/docs/capabilities/getMiniGamesHistory.md +83 -2
- package/docs/capabilities/getMissions.md +1 -1
- package/docs/capabilities/getRaffleDrawRun.md +7 -7
- package/docs/capabilities/getRaffleDrawRunsHistory.md +3 -3
- package/docs/capabilities/getRaffles.md +8 -8
- package/docs/capabilities/getStorePurchasedItems.md +2 -2
- package/docs/capabilities/getTournamentInstanceInfo.md +45 -37
- package/docs/capabilities/getTournamentsList.md +6 -6
- package/docs/capabilities/getTranslations.md +1 -1
- package/docs/capabilities/getUserProfile.md +10 -10
- package/docs/capabilities/jackpotGet.md +56 -28
- package/docs/capabilities/jackpotOptIn.md +2 -0
- package/docs/capabilities/smarticoCallbacks.md +1 -1
- package/docs/native/PROTOCOL.md +141 -18
- package/docs/ui/jackpots/UIGuide_jackpotGet.md +1 -1
- package/docs/ui/user/UIGuide_getActivityLog.md +4 -2
- package/package.json +4 -3
- package/scripts/capture-responses-browser.mjs +8 -1
- package/src/ActivityLog/ActivityLogActivities.ts +1 -1
- package/src/ActivityLog/ActivityLogEntry.ts +33 -21
- package/src/ActivityLog/ActivityLogMeta.ts +31 -0
- package/src/ActivityLog/GetActivityLogRequest.ts +3 -3
- package/src/ActivityLog/GetActivityLogResponse.ts +23 -49
- package/src/ActivityLog/PointChangeSourceType.ts +1 -0
- package/src/Jackpots/JackPotWinPushWinner.ts +35 -0
- package/src/Jackpots/JackPotWinner.ts +3 -1
- package/src/Jackpots/JackpotContributionRule.ts +25 -0
- package/src/Jackpots/JackpotDetails.ts +8 -0
- package/src/Jackpots/JackpotPot.ts +4 -2
- package/src/Jackpots/JackpotPublicMeta.ts +6 -2
- package/src/Jackpots/JackpotWinPush.ts +14 -2
- package/src/Jackpots/index.ts +2 -0
- package/src/SmarticoAPI.ts +6 -40
- package/src/WSAPI/WSAPIBase.ts +0 -1
- package/src/WSAPI/WSAPIJackpots.ts +2 -0
- package/src/WSAPI/WSAPITypes.ts +18 -18
- package/src/WSAPI/WSAPIUser.ts +38 -55
- package/docs/api/interfaces/GemsDiamondsLog.md +0 -45
- package/docs/api/interfaces/PointsLog.md +0 -45
- package/docs/api/interfaces/TActivityLogEntry.md +0 -100
- package/docs/api/type-aliases/ActivityLogEntry.md +0 -3
- 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
|
|
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":
|
|
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":
|
|
142
|
+
"rating_score": 56,
|
|
143
143
|
"cooldown_until": null,
|
|
144
144
|
"members": [
|
|
145
145
|
{
|
|
146
|
-
"user_id":
|
|
147
|
-
"public_username": "
|
|
148
|
-
"avatar_id": "
|
|
149
|
-
"avatar_real_id":
|
|
150
|
-
"avatar_url": "https://cdn.example/
|
|
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":
|
|
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":
|
|
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":
|
|
154
|
+
"rating_score": 56
|
|
155
155
|
}
|
|
156
156
|
],
|
|
157
|
-
"user_clan_id":
|
|
157
|
+
"user_clan_id": 5,
|
|
158
158
|
"cooldown_until": null,
|
|
159
|
-
"join_date":
|
|
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":
|
|
97
|
-
"name": "
|
|
98
|
-
"description": "
|
|
99
|
-
"image": "https://cdn.example/
|
|
100
|
-
"required_points":
|
|
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": "
|
|
106
|
-
"image_inactive": "https://cdn.example/
|
|
107
|
-
"image_active": "https://cdn.example/
|
|
108
|
-
"rakeback":
|
|
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":
|
|
110
|
+
"cashback": 6
|
|
111
111
|
},
|
|
112
|
-
"ordinal_position":
|
|
113
|
-
"progress":
|
|
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/
|
|
76
|
+
"icon": "https://cdn.example/b6e45cf4ae00002865d406-home-diamonds.webp",
|
|
77
77
|
"title": "Congratulations!",
|
|
78
|
-
"preview_body": "You have received
|
|
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": "
|
|
130
|
+
"sent_date": "04/08/2026 09:00:08",
|
|
131
131
|
"message_guid": "00000000-0000-0000-0000-000000000000",
|
|
132
|
-
"read":
|
|
132
|
+
"read": false,
|
|
133
133
|
"favorite": false,
|
|
134
134
|
"category_id": 0,
|
|
135
|
-
"expire_on_dt":
|
|
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": "
|
|
97
|
-
"winning_amount_jp_currency":
|
|
98
|
-
"winning_amount_wallet_currency":
|
|
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": "
|
|
101
|
-
"avatar_real_id":
|
|
101
|
+
"avatar_id": "https://cdn.example/d58c99035fadf00dcfe638-Dragongenderless.webp",
|
|
102
|
+
"avatar_real_id": 11
|
|
102
103
|
},
|
|
103
|
-
"win_date_ts":
|
|
104
|
-
"jp_pot_id":
|
|
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": "
|
|
164
|
-
"avatar_url": "https://cdn.example/
|
|
163
|
+
"public_username": "Maxi*****",
|
|
164
|
+
"avatar_url": "https://cdn.example/d1a960365f8a3716aa5a72-Lionmale.webp",
|
|
165
165
|
"level_id": 700,
|
|
166
166
|
"position": 1,
|
|
167
|
-
"points":
|
|
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/
|
|
174
|
-
"level_id":
|
|
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,
|
|
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":
|
|
234
|
-
"name": "
|
|
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
|
-
"
|
|
239
|
-
"
|
|
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":
|
|
242
|
-
"spin_count":
|
|
243
|
-
"promo_image": "https://cdn.example/
|
|
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":
|
|
252
|
-
"latest_expiration_dt":
|
|
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
|
-
"
|
|
259
|
-
"
|
|
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": ".
|
|
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
|
-
"
|
|
269
|
-
"
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"
|
|
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": "
|
|
275
|
-
"
|
|
270
|
+
"name": "Wheel of Love",
|
|
271
|
+
"max_spins_period_ms": 60000,
|
|
272
|
+
"spin_animation_duration": 10,
|
|
276
273
|
"flow_builder_only": false,
|
|
277
|
-
"
|
|
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":
|
|
279
|
+
"max_number_of_attempts": 1,
|
|
282
280
|
"prizes": [
|
|
283
281
|
{
|
|
284
|
-
"id":
|
|
285
|
-
"name": "
|
|
282
|
+
"id": 3272,
|
|
283
|
+
"name": "Try again!",
|
|
286
284
|
"prize_type": "no-prize",
|
|
287
285
|
"prize_value": 1,
|
|
288
|
-
"font_size":
|
|
289
|
-
"
|
|
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":
|
|
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":
|
|
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
|
-
|
|
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":
|
|
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":
|
|
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":
|
|
187
|
+
"run_id": 947417,
|
|
188
188
|
"execution_type": 2,
|
|
189
|
-
"execution_ts":
|
|
190
|
-
"previous_run_ts":
|
|
191
|
-
"previous_run_id":
|
|
192
|
-
"ticket_start_ts":
|
|
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":
|
|
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":
|
|
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":
|
|
105
|
-
"ticket_start_ts":
|
|
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":
|
|
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":
|
|
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":
|
|
218
|
+
"run_id": 947417,
|
|
219
219
|
"execution_type": 2,
|
|
220
|
-
"execution_ts":
|
|
221
|
-
"previous_run_ts":
|
|
222
|
-
"previous_run_id":
|
|
223
|
-
"ticket_start_ts":
|
|
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":
|
|
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":
|
|
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":
|
|
267
|
+
"purchased_this_month": false,
|
|
268
268
|
"show_timer": false,
|
|
269
269
|
"related_games": []
|
|
270
270
|
}
|