@smartico/public-api 0.0.420 → 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 +2 -0
- package/dist/ActivityLog/GetActivityLogResponse.d.ts +1 -2
- 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 +1 -3
- 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 +11 -36
- package/dist/index.js +35 -128
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +33 -100
- 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 +2 -0
- package/src/ActivityLog/GetActivityLogResponse.ts +23 -49
- 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 +1 -44
- 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 +10 -53
- 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
|
@@ -164,58 +164,57 @@ if (r.errCode === 0 && r.data) {
|
|
|
164
164
|
{
|
|
165
165
|
"errCode": 0,
|
|
166
166
|
"data": {
|
|
167
|
-
"round_id":
|
|
168
|
-
"round_row_id":
|
|
167
|
+
"round_id": 40920,
|
|
168
|
+
"round_row_id": 1,
|
|
169
169
|
"public_meta": {
|
|
170
|
-
"round_name": "
|
|
170
|
+
"round_name": "Final",
|
|
171
171
|
"_translations": {
|
|
172
172
|
"BR": {},
|
|
173
173
|
"TH": {}
|
|
174
174
|
},
|
|
175
175
|
"allow_edit_answers": true,
|
|
176
|
-
"final_screen_cta_dp":
|
|
176
|
+
"final_screen_cta_dp": null,
|
|
177
177
|
"hide_resolved_round": false
|
|
178
178
|
},
|
|
179
179
|
"score_type_id": 1,
|
|
180
|
-
"open_date":
|
|
181
|
-
"last_bet_date":
|
|
180
|
+
"open_date": 1780282219930,
|
|
181
|
+
"last_bet_date": 1786665540000,
|
|
182
182
|
"is_active_now": true,
|
|
183
183
|
"is_resolved": false,
|
|
184
184
|
"round_status_id": -1,
|
|
185
|
-
"score_full_win":
|
|
186
|
-
"score_part_win":
|
|
185
|
+
"score_full_win": 4,
|
|
186
|
+
"score_part_win": 2,
|
|
187
187
|
"score_lost": 0,
|
|
188
|
-
"events_total": "
|
|
189
|
-
"events_resolved": "
|
|
188
|
+
"events_total": "8",
|
|
189
|
+
"events_resolved": "7",
|
|
190
190
|
"show_users_preference": true,
|
|
191
191
|
"order_events": 1,
|
|
192
192
|
"board_users_count": 20,
|
|
193
193
|
"hide_users_predictions": false,
|
|
194
|
-
"round_name": "
|
|
194
|
+
"round_name": "Final",
|
|
195
195
|
"user_score": 0,
|
|
196
196
|
"user_placed_bet": false,
|
|
197
197
|
"events": [
|
|
198
198
|
{
|
|
199
|
-
"gp_event_id":
|
|
200
|
-
"market_type_id":
|
|
199
|
+
"gp_event_id": 136181,
|
|
200
|
+
"market_type_id": 1,
|
|
201
201
|
"event_meta": {
|
|
202
|
-
"event_name": "
|
|
203
|
-
"team1_name": "
|
|
204
|
-
"team2_name": "
|
|
202
|
+
"event_name": "UEFA Super Cup",
|
|
203
|
+
"team1_name": "Paris Saint-Germain FC",
|
|
204
|
+
"team2_name": "Aston Villa FC",
|
|
205
205
|
"is_canceled": false,
|
|
206
|
-
"team1_image": "https://cdn.example/
|
|
207
|
-
"team2_image": "https://cdn.example/
|
|
206
|
+
"team1_image": "https://cdn.example/gp-images-ai/16018/1783346543507-xtewml.png",
|
|
207
|
+
"team2_image": "https://cdn.example/gp-images-ai/16018/1783346545290-i42wsu.png",
|
|
208
208
|
"sport_type_id": 1,
|
|
209
|
-
"question_image": "https://cdn.example/5ff1fc35b419e43886d227-Artboard3.png",
|
|
210
209
|
"scores_manually_adjusted": false
|
|
211
210
|
},
|
|
212
211
|
"event_resolution_date": null,
|
|
213
|
-
"match_date": "2026-
|
|
212
|
+
"match_date": "2026-08-12T19:00:00.000Z",
|
|
214
213
|
"odds_details": {
|
|
215
214
|
"odd_value": {
|
|
216
|
-
"1":
|
|
217
|
-
"2":
|
|
218
|
-
"
|
|
215
|
+
"1": 1.81,
|
|
216
|
+
"2": 4.43,
|
|
217
|
+
"X": 3.83
|
|
219
218
|
}
|
|
220
219
|
},
|
|
221
220
|
"user_placed_bet": false,
|
|
@@ -175,58 +175,57 @@ for (const round of r.data ?? []) {
|
|
|
175
175
|
"errCode": 0,
|
|
176
176
|
"data": [
|
|
177
177
|
{
|
|
178
|
-
"round_id":
|
|
179
|
-
"round_row_id":
|
|
178
|
+
"round_id": 40920,
|
|
179
|
+
"round_row_id": 1,
|
|
180
180
|
"public_meta": {
|
|
181
|
-
"round_name": "
|
|
181
|
+
"round_name": "Final",
|
|
182
182
|
"_translations": {
|
|
183
183
|
"BR": {},
|
|
184
184
|
"TH": {}
|
|
185
185
|
},
|
|
186
186
|
"allow_edit_answers": true,
|
|
187
|
-
"final_screen_cta_dp":
|
|
187
|
+
"final_screen_cta_dp": null,
|
|
188
188
|
"hide_resolved_round": false
|
|
189
189
|
},
|
|
190
190
|
"score_type_id": 1,
|
|
191
|
-
"open_date":
|
|
192
|
-
"last_bet_date":
|
|
191
|
+
"open_date": 1780282219930,
|
|
192
|
+
"last_bet_date": 1786665540000,
|
|
193
193
|
"is_active_now": true,
|
|
194
194
|
"is_resolved": false,
|
|
195
195
|
"round_status_id": -1,
|
|
196
|
-
"score_full_win":
|
|
197
|
-
"score_part_win":
|
|
196
|
+
"score_full_win": 4,
|
|
197
|
+
"score_part_win": 2,
|
|
198
198
|
"score_lost": 0,
|
|
199
|
-
"events_total": "
|
|
200
|
-
"events_resolved": "
|
|
199
|
+
"events_total": "8",
|
|
200
|
+
"events_resolved": "7",
|
|
201
201
|
"show_users_preference": true,
|
|
202
202
|
"order_events": 1,
|
|
203
203
|
"board_users_count": 20,
|
|
204
204
|
"hide_users_predictions": false,
|
|
205
|
-
"round_name": "
|
|
205
|
+
"round_name": "Final",
|
|
206
206
|
"user_score": 0,
|
|
207
207
|
"user_placed_bet": false,
|
|
208
208
|
"events": [
|
|
209
209
|
{
|
|
210
|
-
"gp_event_id":
|
|
211
|
-
"market_type_id":
|
|
210
|
+
"gp_event_id": 136181,
|
|
211
|
+
"market_type_id": 1,
|
|
212
212
|
"event_meta": {
|
|
213
|
-
"event_name": "
|
|
214
|
-
"team1_name": "
|
|
215
|
-
"team2_name": "
|
|
213
|
+
"event_name": "UEFA Super Cup",
|
|
214
|
+
"team1_name": "Paris Saint-Germain FC",
|
|
215
|
+
"team2_name": "Aston Villa FC",
|
|
216
216
|
"is_canceled": false,
|
|
217
|
-
"team1_image": "https://cdn.example/
|
|
218
|
-
"team2_image": "https://cdn.example/
|
|
217
|
+
"team1_image": "https://cdn.example/gp-images-ai/16018/1783346543507-xtewml.png",
|
|
218
|
+
"team2_image": "https://cdn.example/gp-images-ai/16018/1783346545290-i42wsu.png",
|
|
219
219
|
"sport_type_id": 1,
|
|
220
|
-
"question_image": "https://cdn.example/5ff1fc35b419e43886d227-Artboard3.png",
|
|
221
220
|
"scores_manually_adjusted": false
|
|
222
221
|
},
|
|
223
222
|
"event_resolution_date": null,
|
|
224
|
-
"match_date": "2026-
|
|
223
|
+
"match_date": "2026-08-12T19:00:00.000Z",
|
|
225
224
|
"odds_details": {
|
|
226
225
|
"odd_value": {
|
|
227
|
-
"1":
|
|
228
|
-
"2":
|
|
229
|
-
"
|
|
226
|
+
"1": 1.81,
|
|
227
|
+
"2": 4.43,
|
|
228
|
+
"X": 3.83
|
|
230
229
|
}
|
|
231
230
|
},
|
|
232
231
|
"user_placed_bet": false,
|
|
@@ -144,39 +144,39 @@ if (r.errCode === 0 && r.data) {
|
|
|
144
144
|
{
|
|
145
145
|
"errCode": 0,
|
|
146
146
|
"data": {
|
|
147
|
-
"round_id":
|
|
148
|
-
"round_row_id":
|
|
147
|
+
"round_id": 40920,
|
|
148
|
+
"round_row_id": 1,
|
|
149
149
|
"public_meta": {
|
|
150
|
-
"round_name": "
|
|
150
|
+
"round_name": "Final",
|
|
151
151
|
"_translations": {
|
|
152
152
|
"BR": {},
|
|
153
153
|
"TH": {}
|
|
154
154
|
},
|
|
155
155
|
"allow_edit_answers": true,
|
|
156
|
-
"final_screen_cta_dp":
|
|
156
|
+
"final_screen_cta_dp": null,
|
|
157
157
|
"hide_resolved_round": false
|
|
158
158
|
},
|
|
159
159
|
"score_type_id": 1,
|
|
160
|
-
"open_date":
|
|
161
|
-
"last_bet_date":
|
|
160
|
+
"open_date": 1780282219930,
|
|
161
|
+
"last_bet_date": 1786665540000,
|
|
162
162
|
"is_active_now": true,
|
|
163
163
|
"is_resolved": false,
|
|
164
164
|
"round_status_id": -1,
|
|
165
|
-
"score_full_win":
|
|
166
|
-
"score_part_win":
|
|
165
|
+
"score_full_win": 4,
|
|
166
|
+
"score_part_win": 2,
|
|
167
167
|
"score_lost": 0,
|
|
168
|
-
"events_total": "
|
|
169
|
-
"events_resolved": "
|
|
168
|
+
"events_total": "8",
|
|
169
|
+
"events_resolved": "7",
|
|
170
170
|
"show_users_preference": true,
|
|
171
171
|
"order_events": 1,
|
|
172
172
|
"board_users_count": 20,
|
|
173
173
|
"hide_users_predictions": false,
|
|
174
|
-
"round_name": "
|
|
174
|
+
"round_name": "Final",
|
|
175
175
|
"users": [
|
|
176
176
|
{
|
|
177
|
-
"ext_user_id": "
|
|
178
|
-
"int_user_id": "
|
|
179
|
-
"public_username": "
|
|
177
|
+
"ext_user_id": "411422935",
|
|
178
|
+
"int_user_id": "255291150",
|
|
179
|
+
"public_username": "Kana*****",
|
|
180
180
|
"avatar_url": "https://cdn.example/d58c99035fadf00dcfe638-Dragongenderless.webp",
|
|
181
181
|
"gp_position": null,
|
|
182
182
|
"resolution_score": 0,
|
|
@@ -199,22 +199,31 @@ if (r.errCode === 0 && r.data) {
|
|
|
199
199
|
"errCode": 0,
|
|
200
200
|
"data": {
|
|
201
201
|
"sawTemplate": {
|
|
202
|
-
"saw_template_id":
|
|
203
|
-
"saw_game_type_id":
|
|
202
|
+
"saw_template_id": 11729,
|
|
203
|
+
"saw_game_type_id": 3,
|
|
204
204
|
"saw_template_ui_definition": {
|
|
205
205
|
"show_prize_board": true,
|
|
206
|
+
"thumbnail": "",
|
|
207
|
+
"promo_text": "Dive into European football excitement and test your predictions in the UEFA Super Cup showdown.",
|
|
206
208
|
"matchx_is_completed": false,
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
+
"matchx_banner": "",
|
|
210
|
+
"description": "<style>\n /* Add your CSS here */\n .custom-rules {\n font-family: inherit;\n background-color: #27244F !important;\n margin: 0;\n …",
|
|
211
|
+
"background_image_mobile": "",
|
|
212
|
+
"priority": 2,
|
|
209
213
|
"ask_for_username": "no-ask",
|
|
214
|
+
"background_image": "",
|
|
215
|
+
"sectors_count": 6,
|
|
210
216
|
"show_countdown_for_next_availability": false,
|
|
211
|
-
"promo_image": "https://cdn.example/
|
|
217
|
+
"promo_image": "https://cdn.example/96fbb962429b5f3c6b18ee-matchx-featured.png",
|
|
212
218
|
"matchx_hide_ranking": false,
|
|
219
|
+
"disable_background_music": false,
|
|
220
|
+
"background_sound": "",
|
|
213
221
|
"matchx_remove_ties_in_leaders": false,
|
|
214
|
-
"name": "
|
|
222
|
+
"name": "UEFA Super Cup",
|
|
215
223
|
"matchx_seasonal_ranking": true,
|
|
224
|
+
"spin_animation_duration": 15,
|
|
216
225
|
"flow_builder_only": false,
|
|
217
|
-
"
|
|
226
|
+
"matchx_general_board_users_count": 21
|
|
218
227
|
},
|
|
219
228
|
"saw_buyin_type_id": 1,
|
|
220
229
|
"buyin_cost_points": 0,
|
|
@@ -223,29 +232,25 @@ if (r.errCode === 0 && r.data) {
|
|
|
223
232
|
"prizesMap": "…(keyed duplicate of `prizes[]`)",
|
|
224
233
|
"prizes": [
|
|
225
234
|
{
|
|
226
|
-
"saw_prize_id":
|
|
227
|
-
"saw_template_id":
|
|
235
|
+
"saw_prize_id": 68289,
|
|
236
|
+
"saw_template_id": 11729,
|
|
228
237
|
"saw_prize_ui_definition": {
|
|
229
|
-
"name": "
|
|
238
|
+
"name": "iPhone 27 Max"
|
|
230
239
|
},
|
|
231
240
|
"prize_value": 1,
|
|
232
|
-
"prize_type_id":
|
|
241
|
+
"prize_type_id": 4,
|
|
233
242
|
"pool": 1000000,
|
|
234
243
|
"wins_count": null,
|
|
235
244
|
"pool_initial": null,
|
|
236
245
|
"prize_ref_id": 0,
|
|
237
246
|
"is_surcharge": false,
|
|
238
|
-
"prize_details_json":
|
|
239
|
-
"ui_amount": "",
|
|
240
|
-
"bonus_coupon_code": "",
|
|
241
|
-
"label_bonus_template_id": 2156
|
|
242
|
-
},
|
|
247
|
+
"prize_details_json": null,
|
|
243
248
|
"affects_points_progress": true,
|
|
244
249
|
"affects_leaderboard_progress": true,
|
|
245
250
|
"affects_level_progress": true,
|
|
246
251
|
"affects_current_balance_progress": true,
|
|
247
|
-
"place_from":
|
|
248
|
-
"place_to":
|
|
252
|
+
"place_from": 1,
|
|
253
|
+
"place_to": 1,
|
|
249
254
|
"weekdays": null,
|
|
250
255
|
"active_from": null,
|
|
251
256
|
"active_till": null,
|
|
@@ -263,32 +268,7 @@ if (r.errCode === 0 && r.data) {
|
|
|
263
268
|
"segment_id": 6557,
|
|
264
269
|
"label_id": 16018,
|
|
265
270
|
"maxActiveSpinsAllowed": null,
|
|
266
|
-
"
|
|
267
|
-
"maxSpinsPeriodMs": 0,
|
|
268
|
-
"sawStatusId": 2,
|
|
269
|
-
"needsTagReplacement": false,
|
|
270
|
-
"containsConditionalPrize": false,
|
|
271
|
-
"jackpot_guaranteed": null,
|
|
272
|
-
"jackpot_add_on_attempt": null,
|
|
273
|
-
"jackpot_current": null,
|
|
274
|
-
"saw_skin_key": null,
|
|
275
|
-
"saw_skin_ui_definition": null,
|
|
276
|
-
"maxSpinPeriodTypeId": 1,
|
|
277
|
-
"expireSpinsMs": 0,
|
|
278
|
-
"next_available_spin_ts": null,
|
|
279
|
-
"saw_expire_spin_type": null,
|
|
280
|
-
"saw_expire_spin_config": null,
|
|
281
|
-
"isVisitorMode": false,
|
|
282
|
-
"activeFromDate": -9223372036854776000,
|
|
283
|
-
"activeTillDate": 9223372036854776000,
|
|
284
|
-
"requires_prize_claim": false,
|
|
285
|
-
"expose_game_stat_on_api": false,
|
|
286
|
-
"relative_period_timezone": 0,
|
|
287
|
-
"templateName": "FIFA World Cup",
|
|
288
|
-
"show_prize_history": true,
|
|
289
|
-
"visibility_conditions": "[]",
|
|
290
|
-
"active_start_time": null,
|
|
291
|
-
"active_end_time": null
|
|
271
|
+
"…": "(+29 more keys)"
|
|
292
272
|
},
|
|
293
273
|
"allRounds": [
|
|
294
274
|
{
|
|
@@ -163,58 +163,57 @@ for (const round of r.data ?? []) {
|
|
|
163
163
|
"errCode": 0,
|
|
164
164
|
"data": [
|
|
165
165
|
{
|
|
166
|
-
"round_id":
|
|
167
|
-
"round_row_id":
|
|
166
|
+
"round_id": 40920,
|
|
167
|
+
"round_row_id": 1,
|
|
168
168
|
"public_meta": {
|
|
169
|
-
"round_name": "
|
|
169
|
+
"round_name": "Final",
|
|
170
170
|
"_translations": {
|
|
171
171
|
"BR": {},
|
|
172
172
|
"TH": {}
|
|
173
173
|
},
|
|
174
174
|
"allow_edit_answers": true,
|
|
175
|
-
"final_screen_cta_dp":
|
|
175
|
+
"final_screen_cta_dp": null,
|
|
176
176
|
"hide_resolved_round": false
|
|
177
177
|
},
|
|
178
178
|
"score_type_id": 1,
|
|
179
|
-
"open_date":
|
|
180
|
-
"last_bet_date":
|
|
179
|
+
"open_date": 1780282219930,
|
|
180
|
+
"last_bet_date": 1786665540000,
|
|
181
181
|
"is_active_now": true,
|
|
182
182
|
"is_resolved": false,
|
|
183
183
|
"round_status_id": -1,
|
|
184
|
-
"score_full_win":
|
|
185
|
-
"score_part_win":
|
|
184
|
+
"score_full_win": 4,
|
|
185
|
+
"score_part_win": 2,
|
|
186
186
|
"score_lost": 0,
|
|
187
|
-
"events_total": "
|
|
188
|
-
"events_resolved": "
|
|
187
|
+
"events_total": "8",
|
|
188
|
+
"events_resolved": "7",
|
|
189
189
|
"show_users_preference": true,
|
|
190
190
|
"order_events": 1,
|
|
191
191
|
"board_users_count": 20,
|
|
192
192
|
"hide_users_predictions": false,
|
|
193
|
-
"round_name": "
|
|
193
|
+
"round_name": "Final",
|
|
194
194
|
"user_score": 0,
|
|
195
195
|
"user_placed_bet": false,
|
|
196
196
|
"events": [
|
|
197
197
|
{
|
|
198
|
-
"gp_event_id":
|
|
199
|
-
"market_type_id":
|
|
198
|
+
"gp_event_id": 136181,
|
|
199
|
+
"market_type_id": 1,
|
|
200
200
|
"event_meta": {
|
|
201
|
-
"event_name": "
|
|
202
|
-
"team1_name": "
|
|
203
|
-
"team2_name": "
|
|
201
|
+
"event_name": "UEFA Super Cup",
|
|
202
|
+
"team1_name": "Paris Saint-Germain FC",
|
|
203
|
+
"team2_name": "Aston Villa FC",
|
|
204
204
|
"is_canceled": false,
|
|
205
|
-
"team1_image": "https://cdn.example/
|
|
206
|
-
"team2_image": "https://cdn.example/
|
|
205
|
+
"team1_image": "https://cdn.example/gp-images-ai/16018/1783346543507-xtewml.png",
|
|
206
|
+
"team2_image": "https://cdn.example/gp-images-ai/16018/1783346545290-i42wsu.png",
|
|
207
207
|
"sport_type_id": 1,
|
|
208
|
-
"question_image": "https://cdn.example/5ff1fc35b419e43886d227-Artboard3.png",
|
|
209
208
|
"scores_manually_adjusted": false
|
|
210
209
|
},
|
|
211
210
|
"event_resolution_date": null,
|
|
212
|
-
"match_date": "2026-
|
|
211
|
+
"match_date": "2026-08-12T19:00:00.000Z",
|
|
213
212
|
"odds_details": {
|
|
214
213
|
"odd_value": {
|
|
215
|
-
"1":
|
|
216
|
-
"2":
|
|
217
|
-
"
|
|
214
|
+
"1": 1.81,
|
|
215
|
+
"2": 4.43,
|
|
216
|
+
"X": 3.83
|
|
218
217
|
}
|
|
219
218
|
},
|
|
220
219
|
"user_placed_bet": false,
|
|
@@ -68,11 +68,11 @@ if (r.errCode === 0 && r.data) {
|
|
|
68
68
|
"ext_user_id": "361368543",
|
|
69
69
|
"int_user_id": "216289785",
|
|
70
70
|
"public_username": "Antonio",
|
|
71
|
-
"avatar_url": "https://cdn.example/avatars/
|
|
72
|
-
"last_wallet_sync_time": "2026-
|
|
73
|
-
"ach_points_balance":
|
|
74
|
-
"ach_gems_balance":
|
|
75
|
-
"ach_diamonds_balance":
|
|
71
|
+
"avatar_url": "https://cdn.example/avatars/11/00000000-0000-0000-0000-000000000000.png",
|
|
72
|
+
"last_wallet_sync_time": "2026-08-05T13:33:24.834Z",
|
|
73
|
+
"ach_points_balance": 12286,
|
|
74
|
+
"ach_gems_balance": 57,
|
|
75
|
+
"ach_diamonds_balance": 40,
|
|
76
76
|
"pubic_username_set": true
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# getActivityLog — API (TActivityLog)
|
|
2
2
|
|
|
3
|
-
> Returns the user's
|
|
3
|
+
> Returns the user's activity history within the requested time window, ordered newest-first.
|
|
4
4
|
> Import: `import { TActivityLog } from '@smartico/public-api'`
|
|
5
|
-
> Search terms: getActivityLog, user, TActivityLog, UserBalanceType, PointChangeSourceType, onUpdate, subscription
|
|
5
|
+
> Search terms: getActivityLog, user, TActivityLog, UserBalanceType, PointChangeSourceType, ActivityLogActivities, ActivityLogMeta, onUpdate, subscription, create_date, user_ext_id, crm_brand_id, type, amount, balance, total_ever, source_type_id
|
|
6
6
|
|
|
7
7
|
## Signature
|
|
8
8
|
```ts
|
|
@@ -11,6 +11,8 @@ _smartico.api.getActivityLog({
|
|
|
11
11
|
endTimeSeconds,
|
|
12
12
|
from,
|
|
13
13
|
to,
|
|
14
|
+
types,
|
|
15
|
+
src_types,
|
|
14
16
|
onUpdate,
|
|
15
17
|
}: {
|
|
16
18
|
/** Window start in epoch seconds. */
|
|
@@ -21,6 +23,10 @@ _smartico.api.getActivityLog({
|
|
|
21
23
|
from: number;
|
|
22
24
|
/** Pagination ceiling (exclusive); server caps `to - from` at 50. */
|
|
23
25
|
to: number;
|
|
26
|
+
/** Optional — filter by {@link ActivityLogActivities} / `type_id`. */
|
|
27
|
+
types?: number[];
|
|
28
|
+
/** Optional — filter by {@link PointChangeSourceType} / `source_type_id`. */
|
|
29
|
+
src_types?: number[];
|
|
24
30
|
/** Optional push callback; payload is a fixed 10-min / 50-entry refresh on every wallet change (see Subscription model). */
|
|
25
31
|
onUpdate?: (data: TActivityLog[]) => void;
|
|
26
32
|
}): Promise<TActivityLog[]>
|
|
@@ -39,11 +45,36 @@ Array of `TActivityLog`. Each item:
|
|
|
39
45
|
- `balance` (number) — Current balance after this change
|
|
40
46
|
- `total_ever` (number) — Total ever collected (only relevant for type points)
|
|
41
47
|
- `source_type_id` (PointChangeSourceType) — Source type ID indicating what triggered this change
|
|
48
|
+
- `activity_type_id` (ActivityLogActivities) — Activity kind — see `ActivityLogActivities` (`type` on the wire).
|
|
49
|
+
- `context_value_1` (number) — Sub-action for `activity_type_id` (e.g. unlock vs complete, add vs deduct, raffle win vs register).
|
|
50
|
+
- `meta` (ActivityLogMeta) — Extra display payload for the row (name, image, position, …) — see `ActivityLogMeta`.
|
|
51
|
+
- `name` (string) — Display name of the source entity (mission, tournament, raffle, …).
|
|
52
|
+
- `image_url` (string)
|
|
53
|
+
- `position` (number)
|
|
54
|
+
- `user_points_balance_before` (number) — Points balance before this row; points rows.
|
|
55
|
+
- `points_requested` (number) — Points the awarding rule asked for; points rows.
|
|
56
|
+
- `user_points_ever` (number) — Total points ever collected after this row; points rows.
|
|
57
|
+
- `amount_requested` (number) — Gems / diamonds the awarding rule asked for; gems / diamonds rows.
|
|
58
|
+
- `balance_before` (number) — Gems / diamonds balance before this row.
|
|
59
|
+
- `affects_level` (boolean) — Whether this row counts toward level progress.
|
|
60
|
+
- `affects_leaderboard` (boolean) — Whether this row counts toward leaderboards.
|
|
61
|
+
- `affects_current_balance` (boolean) — Whether this row moved the spendable balance.
|
|
62
|
+
- `user_initialization` (boolean) — Set on the row that seeds a brand-new user's wallet.
|
|
63
|
+
- `is_recurring` (boolean) — Set on mission rows for repeatable missions.
|
|
64
|
+
- `from_level_id` (number) — Level moved from; level-change rows.
|
|
65
|
+
- `to_level_id` (number) — Level moved to; level-change rows.
|
|
66
|
+
- `from_level_public_meta` (any) — Public meta of the level moved from; level-change rows.
|
|
67
|
+
- `to_level_public_meta` (any) — Public meta of the level moved to; level-change rows.
|
|
68
|
+
- `source_entity_name` (string) — Human-readable name of the source entity (mission, tournament, raffle, …).
|
|
69
|
+
- `source_entity_id` (number) — Primary id of the source entity (mission / badge / tournament / …).
|
|
70
|
+
- `source_reference_id` (number) — More specific id within the source (e.g. level id, draw id, win id).
|
|
71
|
+
- `source_root_id` (number) — Root / parent entity id when the source is nested (e.g. raffle id owning a draw).
|
|
72
|
+
- `is_wallet_entry` (boolean) — True when the row is a points/gems/diamonds wallet change.
|
|
42
73
|
|
|
43
74
|
## Behavioral contract
|
|
44
75
|
**Preconditions**
|
|
45
76
|
- User must be authenticated. Visitor mode is not guarded at the SDK level
|
|
46
|
-
|
|
77
|
+
but is not meaningful — activity is per-user.
|
|
47
78
|
|
|
48
79
|
**Pagination — `from` / `to` are offset + ceiling, not timestamps**
|
|
49
80
|
The SDK derives `offset = from`, `limit = min(to - from, 50)` — the server
|
|
@@ -51,19 +82,24 @@ hard-caps a single response at 50 entries. For infinite scroll, advance
|
|
|
51
82
|
`from` by 50 between calls. Both `startTimeSeconds` and `endTimeSeconds`
|
|
52
83
|
are epoch seconds bounding the window the server scans.
|
|
53
84
|
|
|
85
|
+
**Filtering** — optional server-side filters:
|
|
86
|
+
- `types` — `ActivityLogActivities` / `type_id` values (e.g. Points=3, Gems=1)
|
|
87
|
+
- `src_types` — `PointChangeSourceType` / `source_type_id` values
|
|
88
|
+
Omit both for an unfiltered window.
|
|
89
|
+
|
|
54
90
|
**Subscription model (`onUpdate`)**
|
|
55
91
|
The callback fires when the user's `ach_points_balance`,
|
|
56
92
|
`ach_gems_balance`, or `ach_diamonds_balance` changes (i.e. whenever a
|
|
57
93
|
wallet event lands). The pushed payload is a FIXED re-fetch of the
|
|
58
94
|
**last 10 minutes / first 50 entries** — it does NOT honor the original
|
|
59
|
-
call's `startTimeSeconds` / `endTimeSeconds` / `from` / `to
|
|
60
|
-
maintaining a long historical view must re-call `getActivityLog` with
|
|
95
|
+
call's `startTimeSeconds` / `endTimeSeconds` / `from` / `to` / filters.
|
|
96
|
+
Consumers maintaining a long historical view must re-call `getActivityLog` with
|
|
61
97
|
their own params after receiving an `onUpdate` notification.
|
|
62
98
|
|
|
63
99
|
**Refresh**
|
|
64
100
|
- The SDK caches results for 30 seconds.
|
|
65
101
|
- Push triggers fire only on balance changes; transactions that don't
|
|
66
|
-
|
|
102
|
+
alter a balance (theoretical zero-amount entries) won't refresh.
|
|
67
103
|
|
|
68
104
|
**Visitor mode**: not meaningful (no per-user history available).
|
|
69
105
|
|
|
@@ -79,6 +115,8 @@ const log = await window._smartico.api.getActivityLog({
|
|
|
79
115
|
endTimeSeconds: now,
|
|
80
116
|
from: 0,
|
|
81
117
|
to: 50,
|
|
118
|
+
types: [1], // Gems only (ActivityLogActivities.Gems)
|
|
119
|
+
src_types: [11], // Tournament wins only (PointChangeSourceType.Tournament)
|
|
82
120
|
onUpdate: (refreshed) => {
|
|
83
121
|
console.log('[smartico] wallet changed — refreshed payload is last 10 min / 50 entries:', refreshed.length, 'rows');
|
|
84
122
|
// If the consumer is showing a full 30-day view, re-call getActivityLog with the original params here.
|
|
@@ -95,7 +133,29 @@ for (const row of log) {
|
|
|
95
133
|
> Where this real payload differs from the typed Returns above (TS interface vs raw wire), the REAL shape is the runtime truth.
|
|
96
134
|
```json
|
|
97
135
|
[
|
|
98
|
-
|
|
136
|
+
{
|
|
137
|
+
"create_date": 1785955065,
|
|
138
|
+
"user_ext_id": "test12562034",
|
|
139
|
+
"crm_brand_id": 31,
|
|
140
|
+
"type": 0,
|
|
141
|
+
"amount": 150,
|
|
142
|
+
"balance": 5372,
|
|
143
|
+
"total_ever": 5372,
|
|
144
|
+
"source_type_id": 12,
|
|
145
|
+
"activity_type_id": 3,
|
|
146
|
+
"context_value_1": 1,
|
|
147
|
+
"meta": {
|
|
148
|
+
"user_points_balance_before": 5222,
|
|
149
|
+
"user_points_ever": 5372,
|
|
150
|
+
"affects_level": true,
|
|
151
|
+
"points_requested": 150,
|
|
152
|
+
"affects_leaderboard": true,
|
|
153
|
+
"affects_current_balance": true
|
|
154
|
+
},
|
|
155
|
+
"source_reference_id": 675,
|
|
156
|
+
"source_root_id": 675,
|
|
157
|
+
"is_wallet_entry": true
|
|
158
|
+
}
|
|
99
159
|
]
|
|
100
160
|
```
|
|
101
161
|
|
|
@@ -103,6 +163,6 @@ for (const row of log) {
|
|
|
103
163
|
See this method's TSDoc / the mutation pages for `err_code` handling.
|
|
104
164
|
|
|
105
165
|
## Related
|
|
106
|
-
- `UserBalanceType`
|
|
107
|
-
- `PointChangeSourceType`
|
|
108
166
|
- `TActivityLog`
|
|
167
|
+
- `ActivityLogActivities`
|
|
168
|
+
- `PointChangeSourceType`
|
|
@@ -78,9 +78,9 @@ console.log('[smartico] AI variants by base avatar — render as a carousel unde
|
|
|
78
78
|
```json
|
|
79
79
|
[
|
|
80
80
|
{
|
|
81
|
-
"avatar_real_id":
|
|
82
|
-
"url": "https://cdn.example/avatars/
|
|
83
|
-
"dt_created":
|
|
81
|
+
"avatar_real_id": 11,
|
|
82
|
+
"url": "https://cdn.example/avatars/11/00000000-0000-0000-0000-000000000000.png",
|
|
83
|
+
"dt_created": 1782732126394
|
|
84
84
|
}
|
|
85
85
|
]
|
|
86
86
|
```
|
|
@@ -178,10 +178,10 @@ setInterval(async () => {
|
|
|
178
178
|
```json
|
|
179
179
|
[
|
|
180
180
|
{
|
|
181
|
-
"id":
|
|
182
|
-
"name": "
|
|
183
|
-
"description": "
|
|
184
|
-
"image": "https://cdn.example/
|
|
181
|
+
"id": 11531,
|
|
182
|
+
"name": "Tournament Champion",
|
|
183
|
+
"description": "Ace in any of the monthly tournaments ",
|
|
184
|
+
"image": "https://cdn.example/6113640d8787c6cee50f8b-monthlychampion.png",
|
|
185
185
|
"is_completed": true,
|
|
186
186
|
"is_locked": false,
|
|
187
187
|
"is_requires_optin": false,
|
|
@@ -192,14 +192,12 @@ setInterval(async () => {
|
|
|
192
192
|
"dt_start": null,
|
|
193
193
|
"progress": 100,
|
|
194
194
|
"type": "badge",
|
|
195
|
-
"custom_section_id": 1128,
|
|
196
|
-
"only_in_custom_section": true,
|
|
197
195
|
"custom_data": {},
|
|
198
196
|
"position": 1,
|
|
199
197
|
"tasks": [
|
|
200
198
|
{
|
|
201
|
-
"id":
|
|
202
|
-
"name": "
|
|
199
|
+
"id": 25033,
|
|
200
|
+
"name": "Take the first place in a tournament",
|
|
203
201
|
"points_reward": 0,
|
|
204
202
|
"gems_reward": null,
|
|
205
203
|
"diamonds_reward": null,
|
|
@@ -210,16 +208,17 @@ setInterval(async () => {
|
|
|
210
208
|
}
|
|
211
209
|
],
|
|
212
210
|
"related_games": [],
|
|
213
|
-
"category_ids": [
|
|
214
|
-
|
|
211
|
+
"category_ids": [
|
|
212
|
+
30
|
|
213
|
+
],
|
|
214
|
+
"ach_completed_id": 3630232284,
|
|
215
215
|
"requires_prize_claim": false,
|
|
216
216
|
"prize_claimed_date_ts": null,
|
|
217
|
-
"complete_date": "
|
|
218
|
-
"complete_date_ts":
|
|
217
|
+
"complete_date": "05/07/2026 08:00:03",
|
|
218
|
+
"complete_date_ts": 1783238403731,
|
|
219
219
|
"completed_today": false,
|
|
220
220
|
"completed_this_week": false,
|
|
221
|
-
"completed_this_month":
|
|
222
|
-
"custom_section_type_id": 14,
|
|
221
|
+
"completed_this_month": false,
|
|
223
222
|
"availability_status": 0,
|
|
224
223
|
"hide_locked_mission": true,
|
|
225
224
|
"prize_claim_expiration_date": null,
|