@smartico/public-api 0.0.379 → 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/.nvmrc +1 -1
- package/CLAUDE.md +103 -0
- package/README.md +53 -2
- 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/Store/BuyStoreItemErrorCode.d.ts +9 -1
- package/dist/Tournaments/TournamentRegistrationError.d.ts +3 -1
- package/dist/WSAPI/WSAPI.d.ts +13 -1235
- package/dist/WSAPI/WSAPIAvatars.d.ts +296 -0
- package/dist/WSAPI/WSAPIBase.d.ts +71 -0
- package/dist/WSAPI/WSAPIBonuses.d.ts +240 -0
- package/dist/WSAPI/WSAPIClans.d.ts +388 -0
- package/dist/WSAPI/WSAPIGamePick.d.ts +593 -0
- package/dist/WSAPI/WSAPIGeneral.d.ts +172 -0
- package/dist/WSAPI/WSAPIInbox.d.ts +615 -0
- package/dist/WSAPI/WSAPIJackpots.d.ts +344 -0
- package/dist/WSAPI/WSAPILeaderBoard.d.ts +139 -0
- package/dist/WSAPI/WSAPIMiniGames.d.ts +510 -0
- package/dist/WSAPI/WSAPIMissions.d.ts +517 -0
- package/dist/WSAPI/WSAPIRaffles.d.ts +643 -0
- package/dist/WSAPI/WSAPIStore.d.ts +656 -0
- package/dist/WSAPI/WSAPITournaments.d.ts +501 -0
- package/dist/WSAPI/WSAPITypes.d.ts +376 -205
- package/dist/WSAPI/WSAPIUser.d.ts +533 -0
- package/dist/index.js +6745 -1661
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +6324 -1342
- 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 +82 -2
- package/docs/api/classes/WSAPIAvatars.md +344 -0
- package/docs/api/classes/WSAPIBonuses.md +271 -0
- package/docs/api/classes/WSAPIClans.md +436 -0
- package/docs/api/classes/WSAPIGamePick.md +710 -0
- package/docs/api/classes/WSAPIGeneral.md +212 -0
- package/docs/api/classes/WSAPIInbox.md +801 -0
- package/docs/api/classes/WSAPIJackpots.md +439 -0
- package/docs/api/classes/WSAPILeaderBoard.md +157 -0
- package/docs/api/classes/WSAPIMiniGames.md +612 -0
- package/docs/api/classes/WSAPIMissions.md +590 -0
- package/docs/api/classes/WSAPIRaffles.md +773 -0
- package/docs/api/classes/WSAPIStore.md +719 -0
- package/docs/api/classes/WSAPITournaments.md +571 -0
- package/docs/api/classes/WSAPIUser.md +637 -0
- 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/AchievementClaimPeriodTypeId.md +13 -0
- package/docs/api/enumerations/BonusStatus-1.md +11 -6
- package/docs/api/enumerations/BuyStoreItemErrorCode.md +32 -0
- 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/ClanPrizePublicMeta.md +41 -0
- package/docs/api/interfaces/ClanPrizeStructureEntry.md +7 -1
- package/docs/api/interfaces/ClanPublicMeta.md +4 -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/SAWTemplateUI.md +10 -0
- package/docs/api/interfaces/TAchCategory.md +14 -4
- 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 -11
- 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 +6 -3
- package/docs/api/interfaces/TMissionOptInResult.md +6 -3
- package/docs/api/interfaces/TMissionOrBadge.md +5 -4
- 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 +11 -1
- package/docs/api/interfaces/TTournament.md +1 -1
- package/docs/api/interfaces/TTournamentDetailed.md +9 -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/UserAchievement.md +1 -1
- 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/clans/UIGuide_getClanInfo.md +153 -0
- package/docs/ui/clans/UIGuide_getClans.md +172 -0
- package/docs/ui/clans/UIGuide_joinClan.md +196 -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/missions/UIGuide_getAchCategories.md +17 -0
- package/docs/ui/missions/UIGuide_getBadges.md +237 -0
- package/docs/ui/missions/UIGuide_getMissions.md +268 -0
- package/docs/ui/missions/UIGuide_requestMissionClaimReward.md +21 -0
- package/docs/ui/missions/UIGuide_requestMissionOptIn.md +16 -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/store/UIGuide_buyStoreItem.md +133 -0
- package/docs/ui/store/UIGuide_getStoreCategories.md +19 -0
- package/docs/ui/store/UIGuide_getStoreItems.md +264 -0
- package/docs/ui/store/UIGuide_getStorePurchasedItems.md +122 -0
- package/docs/ui/tournaments/UIGuide_getClanTournamentPlayers.md +140 -0
- package/docs/ui/tournaments/UIGuide_getTournamentInstanceInfo.md +265 -0
- package/docs/ui/tournaments/UIGuide_getTournamentsList.md +236 -0
- package/docs/ui/tournaments/UIGuide_registerInTournament.md +156 -0
- package/docs/ui/user/UIGuide_getActivityLog.md +130 -0
- package/docs/ui/user/UIGuide_getLevels.md +167 -0
- package/docs/ui/user/UIGuide_getUserProfile.md +213 -0
- package/package.json +3 -3
- package/scripts/postdoc-cleanup.js +195 -0
- package/src/Base/ClassId.ts +2 -0
- package/src/Jackpots/JackpotDetails.ts +14 -15
- package/src/Jackpots/JackpotPot.ts +10 -6
- package/src/Missions/MissionsUtils.ts +5 -2
- 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/Store/BuyStoreItemErrorCode.ts +8 -0
- package/src/Store/StoreItem.ts +1 -0
- package/src/Store/StoreItemPurchased.ts +1 -0
- package/src/Store/StoreItemType.ts +1 -1
- package/src/Tournaments/TournamentRegistrationError.ts +4 -0
- package/src/WSAPI/WSAPI.ts +27 -2007
- package/src/WSAPI/WSAPIAvatars.ts +345 -0
- package/src/WSAPI/WSAPIBase.ts +93 -0
- package/src/WSAPI/WSAPIBonuses.ts +268 -0
- package/src/WSAPI/WSAPIClans.ts +417 -0
- package/src/WSAPI/WSAPIGamePick.ts +667 -0
- package/src/WSAPI/WSAPIGeneral.ts +199 -0
- package/src/WSAPI/WSAPIInbox.ts +711 -0
- package/src/WSAPI/WSAPIJackpots.ts +448 -0
- package/src/WSAPI/WSAPILeaderBoard.ts +154 -0
- package/src/WSAPI/WSAPIMiniGames.ts +597 -0
- package/src/WSAPI/WSAPIMissions.ts +572 -0
- package/src/WSAPI/WSAPIRaffles.ts +703 -0
- package/src/WSAPI/WSAPIStore.ts +732 -0
- package/src/WSAPI/WSAPITournaments.ts +541 -0
- package/src/WSAPI/WSAPITypes.ts +376 -207
- package/src/WSAPI/WSAPIUser.ts +606 -0
- package/tsconfig.json +26 -2
- package/docs/api/classes/WSAPI.md +0 -1927
|
@@ -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`.
|
|
@@ -214,4 +214,4 @@
|
|
|
214
214
|
|
|
215
215
|
### prize\_claim\_period\_type\_id?
|
|
216
216
|
|
|
217
|
-
> `optional` **prize\_claim\_period\_type\_id?**: `AchievementClaimPeriodTypeId`
|
|
217
|
+
> `optional` **prize\_claim\_period\_type\_id?**: [`AchievementClaimPeriodTypeId`](../enumerations/AchievementClaimPeriodTypeId.md)
|
|
@@ -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
|