@smartico/public-api 0.0.380 → 0.0.381
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/CLAUDE.md +103 -0
- package/README.md +32 -10
- package/dist/Base/ClassId.d.ts +2 -0
- package/dist/Jackpots/JackpotDetails.d.ts +14 -15
- package/dist/Jackpots/JackpotPot.d.ts +10 -6
- package/dist/Raffle/GetRaffleWonPrizesRequest.d.ts +9 -0
- package/dist/Raffle/GetRaffleWonPrizesResponse.d.ts +52 -0
- package/dist/Raffle/index.d.ts +2 -0
- package/dist/SmarticoAPI.d.ts +6 -1
- package/dist/SmarticoLib/index.d.ts +5 -1
- package/dist/WSAPI/WSAPIAvatars.d.ts +267 -49
- package/dist/WSAPI/WSAPIBonuses.d.ts +224 -10
- package/dist/WSAPI/WSAPIGamePick.d.ts +538 -253
- package/dist/WSAPI/WSAPIGeneral.d.ts +156 -14
- package/dist/WSAPI/WSAPIInbox.d.ts +547 -58
- package/dist/WSAPI/WSAPIJackpots.d.ts +292 -57
- package/dist/WSAPI/WSAPILeaderBoard.d.ts +127 -13
- package/dist/WSAPI/WSAPIMiniGames.d.ts +465 -49
- package/dist/WSAPI/WSAPIRaffles.d.ts +576 -52
- package/dist/WSAPI/WSAPITournaments.d.ts +3 -3
- package/dist/WSAPI/WSAPITypes.d.ts +243 -132
- package/dist/WSAPI/WSAPIUser.d.ts +193 -43
- package/dist/index.js +3409 -615
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +3391 -608
- package/dist/index.modern.mjs.map +1 -1
- package/docs/Callbacks.md +162 -0
- package/docs/SmarticoObject.md +445 -0
- package/docs/Transforms.md +99 -0
- package/docs/api/README.md +26 -0
- package/docs/api/classes/WSAPIAvatars.md +282 -54
- package/docs/api/classes/WSAPIBonuses.md +233 -12
- package/docs/api/classes/WSAPIClans.md +380 -10
- package/docs/api/classes/WSAPIGamePick.md +555 -26
- package/docs/api/classes/WSAPIGeneral.md +165 -16
- package/docs/api/classes/WSAPIInbox.md +588 -64
- package/docs/api/classes/WSAPIJackpots.md +320 -66
- package/docs/api/classes/WSAPILeaderBoard.md +133 -15
- package/docs/api/classes/WSAPIMiniGames.md +501 -64
- package/docs/api/classes/WSAPIMissions.md +58 -79
- package/docs/api/classes/WSAPIRaffles.md +647 -69
- package/docs/api/classes/WSAPIStore.md +83 -108
- package/docs/api/classes/WSAPITournaments.md +495 -28
- package/docs/api/classes/WSAPIUser.md +520 -83
- package/docs/api/documents/Callbacks.md +162 -0
- package/docs/api/documents/SmarticoObject.md +445 -0
- package/docs/api/documents/Transforms.md +99 -0
- package/docs/api/enumerations/BonusStatus-1.md +11 -6
- package/docs/api/enumerations/JoinClanErrorCode.md +81 -0
- package/docs/api/enumerations/TournamentRegistrationError.md +12 -0
- package/docs/api/functions/clanTournamentPlayersTransform.md +13 -0
- package/docs/api/interfaces/AvatarCustomized.md +25 -0
- package/docs/api/interfaces/AvatarDefinition.md +94 -0
- package/docs/api/interfaces/AvatarPrompt.md +45 -0
- package/docs/api/interfaces/BonusMetaMap-1.md +4 -1
- package/docs/api/interfaces/BonusTemplateMetaMap-1.md +9 -4
- package/docs/api/interfaces/Clan.md +4 -0
- package/docs/api/interfaces/ClanInfo.md +109 -0
- package/docs/api/interfaces/ClanMember.md +53 -0
- package/docs/api/interfaces/ClanTournamentPlayerRaw.md +67 -0
- package/docs/api/interfaces/GemsDiamondsLog.md +43 -0
- package/docs/api/interfaces/GetClanInfoResponse.md +61 -0
- package/docs/api/interfaces/GetClanTournamentPlayersResponse.md +81 -0
- package/docs/api/interfaces/GetRaffleWonPrizesRequest.md +59 -0
- package/docs/api/interfaces/GetRaffleWonPrizesResponse.md +95 -0
- package/docs/api/interfaces/InboxMarkMessageAction.md +10 -2
- package/docs/api/interfaces/JackpotDetails.md +14 -15
- package/docs/api/interfaces/JackpotPot.md +9 -6
- package/docs/api/interfaces/LeaderBoardDetailsT.md +14 -8
- package/docs/api/interfaces/LeaderBoardUserT.md +8 -5
- package/docs/api/interfaces/LeaderBoardsRewardsT.md +7 -0
- package/docs/api/interfaces/PointsLog.md +43 -0
- package/docs/api/interfaces/RaffleWonPrize.md +59 -0
- package/docs/api/interfaces/RaffleWonPrizePublicMeta.md +27 -0
- package/docs/api/interfaces/RaffleWonPrizeUser.md +43 -0
- package/docs/api/interfaces/TAchCategory.md +2 -7
- package/docs/api/interfaces/TAvatarCustomized.md +4 -4
- package/docs/api/interfaces/TAvatarDefinition.md +13 -14
- package/docs/api/interfaces/TAvatarPrompt.md +6 -6
- package/docs/api/interfaces/TBonus.md +16 -8
- package/docs/api/interfaces/TBuyStoreItemResult.md +4 -29
- package/docs/api/interfaces/TClaimBonusResult.md +5 -5
- package/docs/api/interfaces/TClan.md +8 -4
- package/docs/api/interfaces/TClanInfo.md +47 -0
- package/docs/api/interfaces/TClanJoinResult.md +11 -1
- package/docs/api/interfaces/TClanTournamentPlayer.md +55 -0
- package/docs/api/interfaces/TClanTournamentPlayersResult.md +27 -0
- package/docs/api/interfaces/TClans.md +3 -1
- package/docs/api/interfaces/TGetTranslations.md +4 -0
- package/docs/api/interfaces/TInboxMessage.md +14 -6
- package/docs/api/interfaces/TInboxMessageBody.md +18 -12
- package/docs/api/interfaces/TLevel.md +17 -20
- package/docs/api/interfaces/TLevelCurrent.md +19 -18
- package/docs/api/interfaces/TMiniGamePlayBatchResult.md +14 -6
- package/docs/api/interfaces/TMiniGamePlayResult.md +9 -4
- package/docs/api/interfaces/TMissionClaimRewardResult.md +1 -9
- package/docs/api/interfaces/TMissionOptInResult.md +1 -5
- package/docs/api/interfaces/TMissionOrBadge.md +4 -7
- package/docs/api/interfaces/TRaffleOptinResponse.md +4 -2
- package/docs/api/interfaces/TSegmentCheckResult.md +10 -0
- package/docs/api/interfaces/TSetAvatarResult.md +3 -3
- package/docs/api/interfaces/TStoreItem.md +3 -13
- package/docs/api/interfaces/TTournament.md +1 -1
- package/docs/api/interfaces/TTournamentDetailed.md +1 -1
- package/docs/api/interfaces/TTournamentRegistrationResult.md +4 -2
- package/docs/api/interfaces/TUICustomSection.md +23 -19
- package/docs/api/interfaces/TUserProfile.md +18 -16
- package/docs/api/interfaces/TransformedRaffleClaimPrizeResponse.md +6 -2
- package/docs/api/interfaces/UserLevelExtraCountersT.md +9 -2
- package/docs/api/type-aliases/ActivityLogEntry.md +3 -0
- package/docs/native/ADDING_METHODS.md +7 -2
- package/docs/native/PROTOCOL.md +337 -0
- package/docs/ui/avatars/UIGuide_getAvatarPrompts.md +100 -0
- package/docs/ui/avatars/UIGuide_getAvatarsCustomized.md +90 -0
- package/docs/ui/avatars/UIGuide_getAvatarsList.md +105 -0
- package/docs/ui/avatars/UIGuide_setAvatar.md +118 -0
- package/docs/ui/bonuses/UIGuide_claimBonus.md +144 -0
- package/docs/ui/bonuses/UIGuide_getBonuses.md +176 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetActiveRound.md +99 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetActiveRounds.md +76 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetBoard.md +81 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetGameInfo.md +78 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetHistory.md +55 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetRoundInfoForUser.md +71 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetUserInfo.md +64 -0
- package/docs/ui/gamepick/UIGuide_gamePickSubmitSelection.md +103 -0
- package/docs/ui/gamepick/UIGuide_gamePickSubmitSelectionQuiz.md +67 -0
- package/docs/ui/general/UIGuide_getCustomSections.md +137 -0
- package/docs/ui/general/UIGuide_getRelatedItemsForGame.md +140 -0
- package/docs/ui/inbox/UIGuide_deleteInboxMessage.md +135 -0
- package/docs/ui/inbox/UIGuide_getInboxMessageBody.md +133 -0
- package/docs/ui/inbox/UIGuide_getInboxMessages.md +186 -0
- package/docs/ui/inbox/UIGuide_markInboxMessageAsRead.md +122 -0
- package/docs/ui/inbox/UIGuide_markUnmarkInboxMessageAsFavorite.md +84 -0
- package/docs/ui/jackpots/UIGuide_getJackpotEligibleGames.md +73 -0
- package/docs/ui/jackpots/UIGuide_getJackpotWinners.md +83 -0
- package/docs/ui/jackpots/UIGuide_jackpotGet.md +138 -0
- package/docs/ui/jackpots/UIGuide_jackpotOptIn.md +85 -0
- package/docs/ui/jackpots/UIGuide_jackpotOptOut.md +65 -0
- package/docs/ui/leaderboard/UIGuide_getLeaderBoard.md +166 -0
- package/docs/ui/minigames/UIGuide_getMiniGames.md +153 -0
- package/docs/ui/minigames/UIGuide_getMiniGamesHistory.md +90 -0
- package/docs/ui/minigames/UIGuide_playMiniGame.md +150 -0
- package/docs/ui/minigames/UIGuide_playMiniGameBatch.md +128 -0
- package/docs/ui/raffles/UIGuide_claimRafflePrize.md +99 -0
- package/docs/ui/raffles/UIGuide_getRaffleDrawRun.md +117 -0
- package/docs/ui/raffles/UIGuide_getRaffleDrawRunsHistory.md +92 -0
- package/docs/ui/raffles/UIGuide_getRaffleWonPrizes.md +120 -0
- package/docs/ui/raffles/UIGuide_getRaffles.md +175 -0
- package/docs/ui/raffles/UIGuide_requestRaffleOptin.md +114 -0
- package/docs/ui/user/UIGuide_getActivityLog.md +130 -0
- package/docs/ui/user/UIGuide_getLevels.md +47 -42
- package/package.json +1 -1
- package/src/Base/ClassId.ts +2 -0
- package/src/Jackpots/JackpotDetails.ts +14 -15
- package/src/Jackpots/JackpotPot.ts +10 -6
- package/src/Raffle/GetRaffleWonPrizesRequest.ts +12 -0
- package/src/Raffle/GetRaffleWonPrizesResponse.ts +56 -0
- package/src/Raffle/index.ts +3 -1
- package/src/SmarticoAPI.ts +14 -1
- package/src/SmarticoLib/index.ts +4 -0
- package/src/WSAPI/WSAPIAvatars.ts +267 -49
- package/src/WSAPI/WSAPIBonuses.ts +224 -10
- package/src/WSAPI/WSAPIGamePick.ts +538 -253
- package/src/WSAPI/WSAPIGeneral.ts +156 -14
- package/src/WSAPI/WSAPIInbox.ts +545 -56
- package/src/WSAPI/WSAPIJackpots.ts +297 -61
- package/src/WSAPI/WSAPILeaderBoard.ts +127 -13
- package/src/WSAPI/WSAPIMiniGames.ts +465 -49
- package/src/WSAPI/WSAPIRaffles.ts +592 -64
- package/src/WSAPI/WSAPITournaments.ts +3 -3
- package/src/WSAPI/WSAPITypes.ts +243 -132
- package/src/WSAPI/WSAPIUser.ts +193 -43
- package/tsconfig.json +9 -1
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
# Interface: TMiniGamePlayBatchResult
|
|
2
2
|
|
|
3
|
-
TMiniGamePlayBatchResult describes
|
|
3
|
+
TMiniGamePlayBatchResult describes one entry in the array returned
|
|
4
|
+
by `_smartico.api.playMiniGameBatch(template_id, spin_count)`.
|
|
5
|
+
|
|
6
|
+
Note: this type uses `errCode` / `errMessage` (camelCase) —
|
|
7
|
+
different from `TMiniGamePlayResult` which uses `err_code` /
|
|
8
|
+
`err_message` (snake_case).
|
|
4
9
|
|
|
5
10
|
## Properties
|
|
6
11
|
|
|
@@ -8,7 +13,7 @@ TMiniGamePlayBatchResult describes the response of call to _smartico.api.playMin
|
|
|
8
13
|
|
|
9
14
|
> **saw\_prize\_id**: `number`
|
|
10
15
|
|
|
11
|
-
|
|
16
|
+
ID of the won prize for this spin. Look up in `template.prizes`.
|
|
12
17
|
|
|
13
18
|
***
|
|
14
19
|
|
|
@@ -16,7 +21,8 @@ The saw_prize_id that user won, details of the prize can be found in the mini-ga
|
|
|
16
21
|
|
|
17
22
|
> **errCode**: [`SAWSpinErrorCode`](../enumerations/SAWSpinErrorCode.md)
|
|
18
23
|
|
|
19
|
-
Error code
|
|
24
|
+
Error code. `0` = success. See `playMiniGameBatch` TSDoc for the
|
|
25
|
+
full table.
|
|
20
26
|
|
|
21
27
|
***
|
|
22
28
|
|
|
@@ -24,7 +30,7 @@ Error code that represents outcome of the game play attempt. Game succeed to be
|
|
|
24
30
|
|
|
25
31
|
> `optional` **errMessage?**: `string`
|
|
26
32
|
|
|
27
|
-
Optional error message
|
|
33
|
+
Optional server-side error message.
|
|
28
34
|
|
|
29
35
|
***
|
|
30
36
|
|
|
@@ -32,7 +38,8 @@ Optional error message
|
|
|
32
38
|
|
|
33
39
|
> `optional` **jackpot\_amount?**: `number`
|
|
34
40
|
|
|
35
|
-
Jackpot amount
|
|
41
|
+
Jackpot amount the user won, populated when the prize type is
|
|
42
|
+
`'jackpot'`.
|
|
36
43
|
|
|
37
44
|
***
|
|
38
45
|
|
|
@@ -40,4 +47,5 @@ Jackpot amount what user won
|
|
|
40
47
|
|
|
41
48
|
> `optional` **first\_spin\_in\_period?**: `number`
|
|
42
49
|
|
|
43
|
-
|
|
50
|
+
Epoch ms of the user's first spin in the current cooldown
|
|
51
|
+
period; populated when `errCode === SAWSpinErrorCode.SAW_FAILED_MAX_SPINS_REACHED`.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Interface: TMiniGamePlayResult
|
|
2
2
|
|
|
3
|
-
TMiniGamePlayResult describes the response of
|
|
3
|
+
TMiniGamePlayResult describes the response of
|
|
4
|
+
`_smartico.api.playMiniGame(template_id)`.
|
|
4
5
|
|
|
5
6
|
## Properties
|
|
6
7
|
|
|
@@ -8,7 +9,8 @@ TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame
|
|
|
8
9
|
|
|
9
10
|
> **err\_code**: [`SAWSpinErrorCode`](../enumerations/SAWSpinErrorCode.md)
|
|
10
11
|
|
|
11
|
-
Error code
|
|
12
|
+
Error code. `0` = success ([SAWSpinErrorCode.SAW\_OK](../enumerations/SAWSpinErrorCode.md#saw_ok)).
|
|
13
|
+
See `playMiniGame` TSDoc for the full table.
|
|
12
14
|
|
|
13
15
|
***
|
|
14
16
|
|
|
@@ -16,7 +18,8 @@ Error code that represents outcome of the game play attempt. Game succeed to be
|
|
|
16
18
|
|
|
17
19
|
> **err\_message**: `string`
|
|
18
20
|
|
|
19
|
-
Optional error message
|
|
21
|
+
Optional server-side error message. Present only on non-zero
|
|
22
|
+
`err_code`; may be empty even then.
|
|
20
23
|
|
|
21
24
|
***
|
|
22
25
|
|
|
@@ -24,4 +27,6 @@ Optional error message
|
|
|
24
27
|
|
|
25
28
|
> **prize\_id**: `number`
|
|
26
29
|
|
|
27
|
-
|
|
30
|
+
ID of the won prize. Look up in `template.prizes` to interpret
|
|
31
|
+
(including `prize_type === 'no-prize'` for a configured loss
|
|
32
|
+
slot). Always populated, even when `err_code !== 0`.
|
|
@@ -11,15 +11,7 @@ values, preconditions, side effects, and recommended UI handling.
|
|
|
11
11
|
|
|
12
12
|
> **err\_code**: `number`
|
|
13
13
|
|
|
14
|
-
Error code
|
|
15
|
-
`0` = success (rewards have been credited);
|
|
16
|
-
`40017` = already claimed (treat as idempotent success);
|
|
17
|
-
`40015` = claim window expired;
|
|
18
|
-
`40016` = mission not completed yet (stale local state);
|
|
19
|
-
`1` = generic server error (stale `ach_completed_id`, archived/draft
|
|
20
|
-
mission, label mismatch, completion older than 6 months, or
|
|
21
|
-
`requires_prize_claim=false` on the server). See
|
|
22
|
-
`requestMissionClaimReward` TSDoc for the full table.
|
|
14
|
+
Error code. `0` = success (rewards credited). See `requestMissionClaimReward` TSDoc for the full table.
|
|
23
15
|
|
|
24
16
|
***
|
|
25
17
|
|
|
@@ -11,11 +11,7 @@ and recommended UI handling.
|
|
|
11
11
|
|
|
12
12
|
> **err\_code**: `number`
|
|
13
13
|
|
|
14
|
-
Error code. `0` = success
|
|
15
|
-
idempotent success); `40013` = mission not opt-in-able (draft /
|
|
16
|
-
archived / out of window); `40014` = locked (show unlock tasks);
|
|
17
|
-
`105` = wrong id or visibility-condition rejection. See
|
|
18
|
-
`requestMissionOptIn` TSDoc for the full table.
|
|
14
|
+
Error code. `0` = success. See `requestMissionOptIn` TSDoc for the full table.
|
|
19
15
|
|
|
20
16
|
***
|
|
21
17
|
|
|
@@ -163,8 +163,8 @@ The text of the CTA button, e.g. 'Make a deposit'
|
|
|
163
163
|
|
|
164
164
|
> **custom\_section\_id**: `number`
|
|
165
165
|
|
|
166
|
-
The ID of the custom section where the mission or badge is assigned
|
|
167
|
-
|
|
166
|
+
The ID of the custom section where the mission or badge is assigned.
|
|
167
|
+
Resolve to section metadata via `_smartico.api.getCustomSections()`.
|
|
168
168
|
|
|
169
169
|
***
|
|
170
170
|
|
|
@@ -236,11 +236,8 @@ The ribbon of the mission/badge item. Can be 'sale', 'hot', 'new', 'vip' or URL
|
|
|
236
236
|
|
|
237
237
|
> `optional` **ach\_completed\_id?**: `number`
|
|
238
238
|
|
|
239
|
-
Stable identifier of
|
|
240
|
-
|
|
241
|
-
read from a fresh `getMissions()` result; never synthesise or cache
|
|
242
|
-
across sessions. Undefined for badges and for missions that have not
|
|
243
|
-
yet completed.
|
|
239
|
+
Stable identifier of this specific mission completion. Undefined for
|
|
240
|
+
badges and for missions that have not yet completed.
|
|
244
241
|
|
|
245
242
|
***
|
|
246
243
|
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# Interface: TRaffleOptinResponse
|
|
2
2
|
|
|
3
|
+
Result of `_smartico.api.requestRaffleOptin({raffle_id, draw_id, raffle_run_id})`.
|
|
4
|
+
|
|
3
5
|
## Properties
|
|
4
6
|
|
|
5
7
|
### err\_code
|
|
6
8
|
|
|
7
9
|
> **err\_code**: `number`
|
|
8
10
|
|
|
9
|
-
Error code
|
|
11
|
+
Error code. `0` = success. See `requestRaffleOptin` TSDoc for the full table.
|
|
10
12
|
|
|
11
13
|
***
|
|
12
14
|
|
|
@@ -14,4 +16,4 @@ Error code that represents outcome of the opt-in attempt. Opt-in succeed in case
|
|
|
14
16
|
|
|
15
17
|
> `optional` **err\_message?**: `string`
|
|
16
18
|
|
|
17
|
-
Optional error message
|
|
19
|
+
Optional error message; populated on non-zero `err_code`.
|
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
# Interface: TSegmentCheckResult
|
|
2
2
|
|
|
3
|
+
TSegmentCheckResult describes one segment-membership outcome.
|
|
4
|
+
Returned by `_smartico.api.checkSegmentListMatch()` (and used
|
|
5
|
+
internally by `checkSegmentMatch()`).
|
|
6
|
+
|
|
3
7
|
## Properties
|
|
4
8
|
|
|
5
9
|
### segment\_id
|
|
6
10
|
|
|
7
11
|
> **segment\_id**: `number`
|
|
8
12
|
|
|
13
|
+
The segment ID this result refers to (label-scoped).
|
|
14
|
+
|
|
9
15
|
***
|
|
10
16
|
|
|
11
17
|
### is\_matching
|
|
12
18
|
|
|
13
19
|
> **is\_matching**: `boolean`
|
|
20
|
+
|
|
21
|
+
`true` if the user currently matches this segment. `false` also
|
|
22
|
+
covers the case where the segment doesn't exist for the label —
|
|
23
|
+
the two are not distinguishable.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Interface: TSetAvatarResult
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Result of `_smartico.api.setAvatar()`.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ TSetAvatarResult describes the response of call to _smartico.api.setAvatar() met
|
|
|
8
8
|
|
|
9
9
|
> **err\_code**: `number`
|
|
10
10
|
|
|
11
|
-
Error code
|
|
11
|
+
Error code. `0` = success. See `setAvatar` TSDoc for the full table.
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
@@ -16,4 +16,4 @@ Error code that represents outcome of the set avatar request. Successful if err_
|
|
|
16
16
|
|
|
17
17
|
> `optional` **err\_message?**: `string`
|
|
18
18
|
|
|
19
|
-
Optional error message
|
|
19
|
+
Optional error message; populated on non-zero `err_code`.
|
|
@@ -125,19 +125,9 @@ The list of IDs of the categories where the store item is assigned, information
|
|
|
125
125
|
|
|
126
126
|
> `optional` **pool?**: `number`
|
|
127
127
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
`0` means sold out — the item is still returned by `getStoreItems` so a
|
|
132
|
-
"Sold out" state can be rendered. Operators may instead choose to hide
|
|
133
|
-
pool-empty items entirely (per-item operator flag), in which case
|
|
134
|
-
sold-out items simply disappear from the catalog rather than appearing
|
|
135
|
-
with `pool === 0`.
|
|
136
|
-
|
|
137
|
-
Pool is decremented server-side on a successful purchase; the client
|
|
138
|
-
observes the new value via the `onUpdate` callback on `getStoreItems`
|
|
139
|
-
(which fires only for the buyer's own purchases — other users'
|
|
140
|
-
concurrent purchases do not push).
|
|
128
|
+
Items remaining in the pool available for purchase. `null` = unlimited
|
|
129
|
+
supply. Positive integer = remaining stock. `0` = sold out but still
|
|
130
|
+
returned (operator may instead hide pool-empty items entirely).
|
|
141
131
|
|
|
142
132
|
***
|
|
143
133
|
|
|
@@ -93,7 +93,7 @@ The message that should be shown to the user when the user cannot register in to
|
|
|
93
93
|
> **custom\_section\_id**: `number`
|
|
94
94
|
|
|
95
95
|
The ID of the custom section where the tournament is assigned
|
|
96
|
-
The list of custom sections can be retrieved using _smartico.api.getCustomSections() method
|
|
96
|
+
The list of custom sections can be retrieved using _smartico.api.getCustomSections() method
|
|
97
97
|
|
|
98
98
|
***
|
|
99
99
|
|
|
@@ -133,7 +133,7 @@ The message that should be shown to the user when the user cannot register in to
|
|
|
133
133
|
> **custom\_section\_id**: `number`
|
|
134
134
|
|
|
135
135
|
The ID of the custom section where the tournament is assigned
|
|
136
|
-
The list of custom sections can be retrieved using _smartico.api.getCustomSections() method
|
|
136
|
+
The list of custom sections can be retrieved using _smartico.api.getCustomSections() method
|
|
137
137
|
|
|
138
138
|
#### Inherited from
|
|
139
139
|
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# Interface: TTournamentRegistrationResult
|
|
2
2
|
|
|
3
|
+
Result of `_smartico.api.registerInTournament(tournament_id)`.
|
|
4
|
+
|
|
3
5
|
## Properties
|
|
4
6
|
|
|
5
7
|
### err\_code
|
|
6
8
|
|
|
7
9
|
> **err\_code**: [`TournamentRegistrationError`](../enumerations/TournamentRegistrationError.md)
|
|
8
10
|
|
|
9
|
-
Error code
|
|
11
|
+
Error code. `0` = success. See `registerInTournament` TSDoc for the full table.
|
|
10
12
|
|
|
11
13
|
***
|
|
12
14
|
|
|
@@ -14,4 +16,4 @@ Error code that represents outcome of the tournament registration request. Succe
|
|
|
14
16
|
|
|
15
17
|
> **err\_message**: `string`
|
|
16
18
|
|
|
17
|
-
Optional error message
|
|
19
|
+
Optional error message; populated on non-zero `err_code`.
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# Interface: TUICustomSection
|
|
2
2
|
|
|
3
|
+
One operator-configured navigation entry. Returned by `getCustomSections()`.
|
|
4
|
+
`section_type_id` is the dispatch key — it determines which page component the
|
|
5
|
+
consumer mounts when the user opens this section.
|
|
6
|
+
|
|
3
7
|
## Properties
|
|
4
8
|
|
|
5
9
|
### id
|
|
6
10
|
|
|
7
11
|
> **id**: `number`
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
Stable numeric ID of the section.
|
|
10
14
|
|
|
11
15
|
***
|
|
12
16
|
|
|
@@ -14,7 +18,7 @@ The ID of the custom section
|
|
|
14
18
|
|
|
15
19
|
> `optional` **body?**: `string`
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
Raw HTML body for `HTML_PAGE` sections; Liquid template body for `LEVELS` (Liquid) sections.
|
|
18
22
|
|
|
19
23
|
***
|
|
20
24
|
|
|
@@ -22,7 +26,7 @@ The body of the custom section
|
|
|
22
26
|
|
|
23
27
|
> `optional` **menu\_img?**: `string`
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
CDN URL of the section's nav icon, 64x64 px square.
|
|
26
30
|
|
|
27
31
|
***
|
|
28
32
|
|
|
@@ -30,7 +34,7 @@ The image of the custom section, 64x64px
|
|
|
30
34
|
|
|
31
35
|
> `optional` **menu\_name?**: `string`
|
|
32
36
|
|
|
33
|
-
|
|
37
|
+
Display name shown next to the nav icon. Pre-translated server-side.
|
|
34
38
|
|
|
35
39
|
***
|
|
36
40
|
|
|
@@ -38,7 +42,7 @@ The name of the custom section
|
|
|
38
42
|
|
|
39
43
|
> `optional` **custom\_skin\_images?**: `string`
|
|
40
44
|
|
|
41
|
-
|
|
45
|
+
JSON-serialized list of skin image overrides for themed sections (e.g. `MISSION_CUSTOM_LAYOUT`).
|
|
42
46
|
|
|
43
47
|
***
|
|
44
48
|
|
|
@@ -46,7 +50,7 @@ Custom images for custom section
|
|
|
46
50
|
|
|
47
51
|
> `optional` **section\_type\_id?**: [`AchCustomSectionType`](../enumerations/AchCustomSectionType.md)
|
|
48
52
|
|
|
49
|
-
|
|
53
|
+
Dispatch key — see [AchCustomSectionType](../enumerations/AchCustomSectionType.md).
|
|
50
54
|
|
|
51
55
|
***
|
|
52
56
|
|
|
@@ -54,7 +58,7 @@ The particular type of custom section, can be Missions, Tournaments, Lootbox and
|
|
|
54
58
|
|
|
55
59
|
> `optional` **theme?**: [`AchCustomLayoutTheme`](../enumerations/AchCustomLayoutTheme.md)
|
|
56
60
|
|
|
57
|
-
|
|
61
|
+
Themed-layout name for `MISSION_CUSTOM_LAYOUT` sections; see [AchCustomLayoutTheme](../enumerations/AchCustomLayoutTheme.md).
|
|
58
62
|
|
|
59
63
|
***
|
|
60
64
|
|
|
@@ -62,7 +66,7 @@ Theme of the custom section
|
|
|
62
66
|
|
|
63
67
|
> `optional` **generic\_custom\_css?**: `string`
|
|
64
68
|
|
|
65
|
-
Custom
|
|
69
|
+
Custom CSS for themed layouts.
|
|
66
70
|
|
|
67
71
|
***
|
|
68
72
|
|
|
@@ -70,7 +74,7 @@ Custom css for the custom section
|
|
|
70
74
|
|
|
71
75
|
> `optional` **mission\_tabs\_options?**: [`AchMissionsTabsOptions`](../enumerations/AchMissionsTabsOptions.md)
|
|
72
76
|
|
|
73
|
-
|
|
77
|
+
Which tabs to render for `MISSIONS_CATEGORY` sections; see [AchMissionsTabsOptions](../enumerations/AchMissionsTabsOptions.md).
|
|
74
78
|
|
|
75
79
|
***
|
|
76
80
|
|
|
@@ -78,7 +82,7 @@ Tabs that can be shown in custom section, e.g Overview, No Overview, All tabs
|
|
|
78
82
|
|
|
79
83
|
> `optional` **overview\_missions\_filter?**: [`AchOverviewMissionsFilter`](../enumerations/AchOverviewMissionsFilter.md)
|
|
80
84
|
|
|
81
|
-
|
|
85
|
+
Mission-filter rule for the Overview tab; see [AchOverviewMissionsFilter](../enumerations/AchOverviewMissionsFilter.md).
|
|
82
86
|
|
|
83
87
|
***
|
|
84
88
|
|
|
@@ -86,7 +90,7 @@ Filter that allow to show missions by criteria
|
|
|
86
90
|
|
|
87
91
|
> `optional` **overview\_missions\_count?**: `number`
|
|
88
92
|
|
|
89
|
-
|
|
93
|
+
Maximum number of missions shown in the Overview tab.
|
|
90
94
|
|
|
91
95
|
***
|
|
92
96
|
|
|
@@ -94,7 +98,7 @@ Quantity of missions to be shown in overview
|
|
|
94
98
|
|
|
95
99
|
> `optional` **url\_or\_dp?**: `string`
|
|
96
100
|
|
|
97
|
-
|
|
101
|
+
Click target for `REDIRECT_LINK` sections — either a Smartico DP string (`dp:…`) or an external URL.
|
|
98
102
|
|
|
99
103
|
***
|
|
100
104
|
|
|
@@ -102,7 +106,7 @@ URL or DP to be used for custom section
|
|
|
102
106
|
|
|
103
107
|
> `optional` **liquid\_entity\_data?**: [`LiquidEntityData`](../enumerations/LiquidEntityData.md)[]
|
|
104
108
|
|
|
105
|
-
Data
|
|
109
|
+
Data-context selectors for Liquid templates; see [LiquidEntityData](../enumerations/LiquidEntityData.md).
|
|
106
110
|
|
|
107
111
|
***
|
|
108
112
|
|
|
@@ -110,7 +114,7 @@ Data to be used for Liquid templates
|
|
|
110
114
|
|
|
111
115
|
> `optional` **ach\_tournament\_id?**: `number`
|
|
112
116
|
|
|
113
|
-
Tournament ID
|
|
117
|
+
Tournament ID for a single-tournament Liquid template (`LiquidEntityData.Tournament`).
|
|
114
118
|
|
|
115
119
|
***
|
|
116
120
|
|
|
@@ -118,7 +122,7 @@ Tournament ID to be used for Liquid templates
|
|
|
118
122
|
|
|
119
123
|
> `optional` **show\_raw\_data?**: `boolean`
|
|
120
124
|
|
|
121
|
-
|
|
125
|
+
Operator debug flag — when `true`, Liquid renders raw context data instead of the templated HTML.
|
|
122
126
|
|
|
123
127
|
***
|
|
124
128
|
|
|
@@ -126,7 +130,7 @@ Indicates if the data should be shown as raw data (for Liquid templates)
|
|
|
126
130
|
|
|
127
131
|
> `optional` **liquid\_template?**: `number`
|
|
128
132
|
|
|
129
|
-
Liquid template
|
|
133
|
+
Liquid template ID resolved server-side; the rendered body is delivered in `body`.
|
|
130
134
|
|
|
131
135
|
***
|
|
132
136
|
|
|
@@ -134,7 +138,7 @@ Liquid template id to be used for Liquid templates
|
|
|
134
138
|
|
|
135
139
|
> `optional` **ach\_category\_ids?**: `number`[]
|
|
136
140
|
|
|
137
|
-
|
|
141
|
+
Category IDs the section filters badges by — correlate with `getAchCategories()`.
|
|
138
142
|
|
|
139
143
|
***
|
|
140
144
|
|
|
@@ -142,7 +146,7 @@ List of IDs of the categories where the badge item is assigned, information abou
|
|
|
142
146
|
|
|
143
147
|
> `optional` **shop\_category\_ids?**: `number`[]
|
|
144
148
|
|
|
145
|
-
|
|
149
|
+
Category IDs the section filters store items by — correlate with `getStoreCategories()`.
|
|
146
150
|
|
|
147
151
|
***
|
|
148
152
|
|
|
@@ -150,4 +154,4 @@ List of IDs of the categories where the store item is assigned, information abou
|
|
|
150
154
|
|
|
151
155
|
> `optional` **raffle\_id?**: `number`
|
|
152
156
|
|
|
153
|
-
ID
|
|
157
|
+
Raffle ID for `RAFFLE` sections (and `LiquidEntityData.SingleRaffle` Liquid templates).
|
|
@@ -11,7 +11,7 @@ If you want to track the changes of the user profile, you can subscribe to the c
|
|
|
11
11
|
|
|
12
12
|
> **core\_user\_language**: `string`
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Language code stored server-side for the user (e.g. `"en"`, `"de"`).
|
|
15
15
|
|
|
16
16
|
***
|
|
17
17
|
|
|
@@ -19,7 +19,8 @@ The language of the user
|
|
|
19
19
|
|
|
20
20
|
> **ach\_points\_balance**: `number`
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Current spendable points balance — decremented by store purchases,
|
|
23
|
+
tournament buy-ins, and clan entry fees.
|
|
23
24
|
|
|
24
25
|
***
|
|
25
26
|
|
|
@@ -27,7 +28,8 @@ The current points balance that user can use in the Store, Mini-games, Tournamen
|
|
|
27
28
|
|
|
28
29
|
> **ach\_points\_ever**: `number`
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
All-time cumulative points earned. Monotonic — NOT decremented by
|
|
32
|
+
store purchases or clan/tournament fees.
|
|
31
33
|
|
|
32
34
|
***
|
|
33
35
|
|
|
@@ -35,7 +37,7 @@ The amount of points that user collected in total
|
|
|
35
37
|
|
|
36
38
|
> **ach\_gems\_balance**: `number`
|
|
37
39
|
|
|
38
|
-
|
|
40
|
+
Current gems balance (secondary currency).
|
|
39
41
|
|
|
40
42
|
***
|
|
41
43
|
|
|
@@ -43,7 +45,7 @@ The current gems balance
|
|
|
43
45
|
|
|
44
46
|
> **ach\_diamonds\_balance**: `number`
|
|
45
47
|
|
|
46
|
-
|
|
48
|
+
Current diamonds balance (tertiary currency).
|
|
47
49
|
|
|
48
50
|
***
|
|
49
51
|
|
|
@@ -51,10 +53,8 @@ The current diamonds balance
|
|
|
51
53
|
|
|
52
54
|
> **core\_public\_tags**: `string`[]
|
|
53
55
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
You can set tags using following method _smartico.event('core_public_tags_update', { core_public_tags: ['A', 'B'] } );
|
|
57
|
-
And then you can check for the tags
|
|
56
|
+
Server-stored public tags on the user (uppercase strings).
|
|
57
|
+
Modify via `_smartico.updatePublicTags(operation, tags)`.
|
|
58
58
|
|
|
59
59
|
***
|
|
60
60
|
|
|
@@ -62,7 +62,7 @@ And then you can check for the tags
|
|
|
62
62
|
|
|
63
63
|
> `optional` **ach\_level\_current\_id?**: `number`
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
FK into the level ladder; resolve via `getCurrentLevel()` or `getLevels()`.
|
|
66
66
|
|
|
67
67
|
***
|
|
68
68
|
|
|
@@ -70,7 +70,7 @@ The ID of the current level of the user
|
|
|
70
70
|
|
|
71
71
|
> `optional` **core\_is\_test\_account?**: `boolean`
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
`true` when the user is flagged as a test account.
|
|
74
74
|
|
|
75
75
|
***
|
|
76
76
|
|
|
@@ -78,7 +78,7 @@ The indicator if user is marked as test user
|
|
|
78
78
|
|
|
79
79
|
> `optional` **avatar\_url?**: `string`
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
Resolved CDN URL for the user's avatar.
|
|
82
82
|
|
|
83
83
|
***
|
|
84
84
|
|
|
@@ -86,7 +86,7 @@ The URL to the user avatar
|
|
|
86
86
|
|
|
87
87
|
> `optional` **public\_username?**: `string`
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
Display username (operator-defined alias).
|
|
90
90
|
|
|
91
91
|
***
|
|
92
92
|
|
|
@@ -94,7 +94,7 @@ The username of current user
|
|
|
94
94
|
|
|
95
95
|
> `optional` **core\_inbox\_unread\_count?**: `number`
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
Unread inbox messages count. Push-updated in real time.
|
|
98
98
|
|
|
99
99
|
***
|
|
100
100
|
|
|
@@ -102,7 +102,8 @@ THe number of unread inbox messages
|
|
|
102
102
|
|
|
103
103
|
> `optional` **core\_recommended\_deposit\_amount?**: `number`
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
AI-recommended deposit amount for this user. Undefined when no
|
|
106
|
+
recommendation is currently available.
|
|
106
107
|
|
|
107
108
|
***
|
|
108
109
|
|
|
@@ -110,4 +111,5 @@ The recommended deposit amount for the user
|
|
|
110
111
|
|
|
111
112
|
> `optional` **core\_recommended\_casino\_bet\_amount?**: `number`
|
|
112
113
|
|
|
113
|
-
|
|
114
|
+
AI-recommended casino bet amount for this user. Undefined when no
|
|
115
|
+
recommendation is currently available.
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# Interface: TransformedRaffleClaimPrizeResponse
|
|
2
2
|
|
|
3
|
+
Result of `_smartico.api.claimRafflePrize({raffle_id, draw_id, raffle_run_id})`.
|
|
4
|
+
Uses camelCase `errorCode` / `errorMessage` — distinct from most other SDK
|
|
5
|
+
result wrappers which use snake_case `err_code` / `err_message`.
|
|
6
|
+
|
|
3
7
|
## Properties
|
|
4
8
|
|
|
5
9
|
### errorCode
|
|
6
10
|
|
|
7
11
|
> **errorCode**: `number`
|
|
8
12
|
|
|
9
|
-
Error code
|
|
13
|
+
Error code. `0` = success. See `claimRafflePrize` TSDoc for the full table.
|
|
10
14
|
|
|
11
15
|
***
|
|
12
16
|
|
|
@@ -14,4 +18,4 @@ Error code, 0 means no error
|
|
|
14
18
|
|
|
15
19
|
> `optional` **errorMessage?**: `string`
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
Optional error message; populated on non-zero `errorCode`.
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
# Interface: UserLevelExtraCountersT
|
|
2
2
|
|
|
3
|
+
UserLevelExtraCountersT exposes the user's current values for the two
|
|
4
|
+
label-defined sliding-window level counters. Returned by
|
|
5
|
+
`_smartico.api.getUserLevelExtraCounters()`. Both fields are
|
|
6
|
+
`undefined` on points-only labels.
|
|
7
|
+
|
|
3
8
|
## Properties
|
|
4
9
|
|
|
5
10
|
### level\_counter\_1?
|
|
6
11
|
|
|
7
12
|
> `optional` **level\_counter\_1?**: `number`
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
Current value of the user's first level counter. Operator-defined
|
|
15
|
+
semantics per label. `undefined` on points-only labels.
|
|
10
16
|
|
|
11
17
|
***
|
|
12
18
|
|
|
@@ -14,4 +20,5 @@ The counter of 1st metric used to reach the level.
|
|
|
14
20
|
|
|
15
21
|
> `optional` **level\_counter\_2?**: `number`
|
|
16
22
|
|
|
17
|
-
|
|
23
|
+
Current value of the user's second level counter. Operator-defined
|
|
24
|
+
semantics per label. `undefined` on points-only labels.
|
|
@@ -18,8 +18,13 @@ Requirements:
|
|
|
18
18
|
1. Find request/response ClassId in ../../src/SmarticoAPI.ts and ../../src/Base/ClassId.ts
|
|
19
19
|
2. Document raw message structure (not transformed T-prefixed types)
|
|
20
20
|
3. For complex types — link to ../api/interfaces/*.md files
|
|
21
|
-
4. If
|
|
22
|
-
|
|
21
|
+
4. If the interface MD file doesn't exist in ../api/interfaces/, DO NOT hand-create it
|
|
22
|
+
there — that directory is TypeDoc output and is wiped on every `npm run doc`
|
|
23
|
+
(`cleanOutputDir: true`). Instead, add the interface's source `.ts` file to
|
|
24
|
+
`typedocOptions.entryPoints` in ../../tsconfig.json and re-run `npm run doc`;
|
|
25
|
+
TypeDoc then generates the interface page. (Example: `PointsLog` /
|
|
26
|
+
`GemsDiamondsLog` live in `src/ActivityLog/ActivityLogEntry.ts`, which must be
|
|
27
|
+
an entry point for their pages to exist.)
|
|
23
28
|
5. Add method to Table of Contents in appropriate category
|
|
24
29
|
6. Follow the same format as other methods in PROTOCOL.md (Request section with ClassId and fields table, Response section with ClassId and fields table, JSON examples where helpful)
|
|
25
30
|
7. All documentation must be in English
|