@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,15 @@
|
|
|
1
1
|
# Interface: TBonus
|
|
2
2
|
|
|
3
|
+
TBonus describes one bonus awarded to the user.
|
|
4
|
+
Returned by `_smartico.api.getBonuses()`.
|
|
5
|
+
|
|
3
6
|
## Properties
|
|
4
7
|
|
|
5
8
|
### bonus\_id
|
|
6
9
|
|
|
7
10
|
> **bonus\_id**: `number`
|
|
8
11
|
|
|
9
|
-
ID of the bonus
|
|
12
|
+
Stable ID of the bonus.
|
|
10
13
|
|
|
11
14
|
***
|
|
12
15
|
|
|
@@ -14,7 +17,8 @@ ID of the bonus
|
|
|
14
17
|
|
|
15
18
|
> `optional` **is\_redeemable?**: `boolean`
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
`true` when the bonus is in a player-claim-required state.
|
|
21
|
+
Gate the Claim button on this; see `claimBonus` TSDoc.
|
|
18
22
|
|
|
19
23
|
***
|
|
20
24
|
|
|
@@ -22,7 +26,8 @@ Can the bonus be redeemed (if bonus is redeemable the user needs to claim it)
|
|
|
22
26
|
|
|
23
27
|
> `optional` **create\_date?**: `string`
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
Bonus creation timestamp as ISO 8601 UTC string
|
|
30
|
+
("YYYY-MM-DDTHH:MM:SS", no timezone suffix).
|
|
26
31
|
|
|
27
32
|
***
|
|
28
33
|
|
|
@@ -30,7 +35,8 @@ Date of creation
|
|
|
30
35
|
|
|
31
36
|
> `optional` **redeem\_date?**: `string`
|
|
32
37
|
|
|
33
|
-
|
|
38
|
+
Bonus redemption timestamp as ISO 8601 UTC string. Absent until
|
|
39
|
+
the bonus reaches `BonusStatus.REDEEMED`.
|
|
34
40
|
|
|
35
41
|
***
|
|
36
42
|
|
|
@@ -38,7 +44,7 @@ Date of redemption
|
|
|
38
44
|
|
|
39
45
|
> `optional` **label\_bonus\_template\_id?**: `number`
|
|
40
46
|
|
|
41
|
-
ID of template used
|
|
47
|
+
ID of the bonus template used to issue this bonus.
|
|
42
48
|
|
|
43
49
|
***
|
|
44
50
|
|
|
@@ -46,7 +52,7 @@ ID of template used
|
|
|
46
52
|
|
|
47
53
|
> `optional` **bonus\_status\_id?**: [`BonusStatus`](../enumerations/BonusStatus-1.md)
|
|
48
54
|
|
|
49
|
-
|
|
55
|
+
Lifecycle status; see [BonusStatus](../enumerations/BonusStatus-1.md).
|
|
50
56
|
|
|
51
57
|
***
|
|
52
58
|
|
|
@@ -54,7 +60,8 @@ ID of the bonus status
|
|
|
54
60
|
|
|
55
61
|
> `optional` **label\_bonus\_template\_meta\_map?**: [`BonusTemplateMetaMap`](BonusTemplateMetaMap-1.md)
|
|
56
62
|
|
|
57
|
-
|
|
63
|
+
Template-level display metadata (operator-configured, identical
|
|
64
|
+
across all bonuses from the same template).
|
|
58
65
|
|
|
59
66
|
***
|
|
60
67
|
|
|
@@ -62,4 +69,5 @@ Additional information about the bonus(edscription, image,name, acknowledge)
|
|
|
62
69
|
|
|
63
70
|
> `optional` **bonus\_meta\_map?**: [`BonusMetaMap`](BonusMetaMap-1.md)
|
|
64
71
|
|
|
65
|
-
|
|
72
|
+
Instance-level display metadata (per-issuance; carries the
|
|
73
|
+
dynamic amount computed at award time).
|
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
# Interface: TBuyStoreItemResult
|
|
2
2
|
|
|
3
|
+
Result of `_smartico.api.buyStoreItem(store_item_id)`.
|
|
4
|
+
|
|
3
5
|
## Properties
|
|
4
6
|
|
|
5
7
|
### err\_code
|
|
6
8
|
|
|
7
9
|
> **err\_code**: [`BuyStoreItemErrorCode`](../enumerations/BuyStoreItemErrorCode.md)
|
|
8
10
|
|
|
9
|
-
Error code
|
|
10
|
-
|
|
11
|
-
Example for error handling:
|
|
12
|
-
```javascript
|
|
13
|
-
SmarticoAPI.buyStoreItem(item_id).then(res => {
|
|
14
|
-
if (res.err_code !== 0) {
|
|
15
|
-
// YOUR LOGIC HERE, you can use res.err_message, but it's optional and not always present
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
```
|
|
11
|
+
Error code. `0` = success. See `buyStoreItem` TSDoc for the full table.
|
|
19
12
|
|
|
20
13
|
***
|
|
21
14
|
|
|
@@ -23,4 +16,4 @@ SmarticoAPI.buyStoreItem(item_id).then(res => {
|
|
|
23
16
|
|
|
24
17
|
> **err\_message**: `string`
|
|
25
18
|
|
|
26
|
-
Optional error message
|
|
19
|
+
Optional error message; populated on non-zero `err_code`.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# Interface: TClaimBonusResult
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Result of `_smartico.api.claimBonus(bonus_id)`.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
### err\_code
|
|
8
8
|
|
|
9
|
-
> **err\_code**:
|
|
9
|
+
> **err\_code**: `number`
|
|
10
10
|
|
|
11
|
-
Error code
|
|
11
|
+
Error code. `0` = success. See `claimBonus` TSDoc for the full table.
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
@@ -16,7 +16,7 @@ Error code that represents outcome of the game play attempt. Game succeed to be
|
|
|
16
16
|
|
|
17
17
|
> **err\_message**: `string`
|
|
18
18
|
|
|
19
|
-
Optional error message
|
|
19
|
+
Optional error message; populated on non-zero `err_code`.
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
@@ -24,4 +24,4 @@ Optional error message
|
|
|
24
24
|
|
|
25
25
|
> `optional` **success?**: `boolean`
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Unreliable on the wire — prefer `err_code === 0` as the success check.
|
|
@@ -52,7 +52,8 @@ Max number of members allowed in clan
|
|
|
52
52
|
|
|
53
53
|
> **entry\_fee\_currency\_type\_id**: `number`
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
Currency type for `entry_fee_amount`. `0` = points, `1` = gems,
|
|
56
|
+
`2` = diamonds, `3` = free (no fee).
|
|
56
57
|
|
|
57
58
|
***
|
|
58
59
|
|
|
@@ -60,7 +61,8 @@ ShopPurchaseType: 0=Points, 1=Gems, 2=Diamonds, 3=Free
|
|
|
60
61
|
|
|
61
62
|
> **entry\_fee\_amount**: `number`
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
Entry fee amount in the currency indicated by `entry_fee_currency_type_id`.
|
|
65
|
+
`0` (or `entry_fee_currency_type_id === 3`) means the clan is free to join.
|
|
64
66
|
|
|
65
67
|
***
|
|
66
68
|
|
|
@@ -68,7 +70,9 @@ Numeric value for entry fee
|
|
|
68
70
|
|
|
69
71
|
> **rating\_position**: `number`
|
|
70
72
|
|
|
71
|
-
|
|
73
|
+
Global rank among all active clans in the label, by `rating_score` DESC.
|
|
74
|
+
`1` = highest-rated. May skip positions when some clans are hidden by
|
|
75
|
+
per-user visibility (e.g. user sees positions 1, 3, 7).
|
|
72
76
|
|
|
73
77
|
***
|
|
74
78
|
|
|
@@ -76,4 +80,4 @@ F1 rank ASC, 1=best
|
|
|
76
80
|
|
|
77
81
|
> **rating\_score**: `number`
|
|
78
82
|
|
|
79
|
-
Clan rating score
|
|
83
|
+
Clan rating score (higher is better).
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Interface: TClanInfo
|
|
2
2
|
|
|
3
3
|
TClanInfo describes the detailed info of a single clan including its members.
|
|
4
|
+
Returned by `_smartico.api.getClanInfo(clanId)`.
|
|
4
5
|
|
|
5
6
|
## Properties
|
|
6
7
|
|
|
@@ -8,12 +9,16 @@ TClanInfo describes the detailed info of a single clan including its members.
|
|
|
8
9
|
|
|
9
10
|
> **clan\_id**: `number`
|
|
10
11
|
|
|
12
|
+
Clan ID.
|
|
13
|
+
|
|
11
14
|
***
|
|
12
15
|
|
|
13
16
|
### public\_meta
|
|
14
17
|
|
|
15
18
|
> **public\_meta**: `object`
|
|
16
19
|
|
|
20
|
+
Translated clan metadata (name, description, image URL).
|
|
21
|
+
|
|
17
22
|
#### name
|
|
18
23
|
|
|
19
24
|
> **name**: `string`
|
|
@@ -32,80 +37,122 @@ TClanInfo describes the detailed info of a single clan including its members.
|
|
|
32
37
|
|
|
33
38
|
> **member\_count**: `number`
|
|
34
39
|
|
|
40
|
+
Current number of members in clan.
|
|
41
|
+
|
|
35
42
|
***
|
|
36
43
|
|
|
37
44
|
### capacity\_limit
|
|
38
45
|
|
|
39
46
|
> **capacity\_limit**: `number`
|
|
40
47
|
|
|
48
|
+
Max number of members allowed in clan.
|
|
49
|
+
|
|
41
50
|
***
|
|
42
51
|
|
|
43
52
|
### entry\_fee\_currency\_type\_id
|
|
44
53
|
|
|
45
54
|
> **entry\_fee\_currency\_type\_id**: `number`
|
|
46
55
|
|
|
56
|
+
Currency type for `entry_fee_amount`. `0` = points, `1` = gems,
|
|
57
|
+
`2` = diamonds, `3` = free.
|
|
58
|
+
|
|
47
59
|
***
|
|
48
60
|
|
|
49
61
|
### entry\_fee\_amount
|
|
50
62
|
|
|
51
63
|
> **entry\_fee\_amount**: `number`
|
|
52
64
|
|
|
65
|
+
Entry fee amount in the currency indicated by `entry_fee_currency_type_id`.
|
|
66
|
+
|
|
53
67
|
***
|
|
54
68
|
|
|
55
69
|
### rating\_position
|
|
56
70
|
|
|
57
71
|
> **rating\_position**: `number`
|
|
58
72
|
|
|
73
|
+
Global rank among all active clans in the label, by `rating_score` DESC.
|
|
74
|
+
`1` = highest-rated.
|
|
75
|
+
|
|
59
76
|
***
|
|
60
77
|
|
|
61
78
|
### rating\_score
|
|
62
79
|
|
|
63
80
|
> **rating\_score**: `number`
|
|
64
81
|
|
|
82
|
+
Clan rating score (higher is better).
|
|
83
|
+
|
|
65
84
|
***
|
|
66
85
|
|
|
67
86
|
### cooldown\_until
|
|
68
87
|
|
|
69
88
|
> **cooldown\_until**: `string`
|
|
70
89
|
|
|
90
|
+
User-level switch-cooldown expiry as ISO 8601 UTC string
|
|
91
|
+
("YYYY-MM-DDTHH:MM:SS" with no timezone suffix). `null` when no
|
|
92
|
+
cooldown. Same semantic as `TClans.cooldown_until` but always fresh
|
|
93
|
+
(the list version may be up to 30 s stale).
|
|
94
|
+
|
|
71
95
|
***
|
|
72
96
|
|
|
73
97
|
### members
|
|
74
98
|
|
|
75
99
|
> **members**: `object`[]
|
|
76
100
|
|
|
101
|
+
Members of this clan, server-ordered by `contribution_score` DESC
|
|
102
|
+
(i.e. `position` ASC).
|
|
103
|
+
|
|
77
104
|
#### user\_id
|
|
78
105
|
|
|
79
106
|
> **user\_id**: `number`
|
|
80
107
|
|
|
108
|
+
Member's internal user ID.
|
|
109
|
+
|
|
81
110
|
#### public\_username
|
|
82
111
|
|
|
83
112
|
> **public\_username**: `string`
|
|
84
113
|
|
|
114
|
+
Member's display username.
|
|
115
|
+
|
|
85
116
|
#### avatar\_id
|
|
86
117
|
|
|
87
118
|
> **avatar\_id**: `string`
|
|
88
119
|
|
|
120
|
+
Avatar identifier; resolve via `avatar_url` below or rebuild
|
|
121
|
+
from `avatar_id` + brand avatar domain.
|
|
122
|
+
|
|
89
123
|
#### avatar\_real\_id
|
|
90
124
|
|
|
91
125
|
> **avatar\_real\_id**: `number`
|
|
92
126
|
|
|
127
|
+
Numeric avatar ID (alternative identifier).
|
|
128
|
+
|
|
93
129
|
#### avatar\_url?
|
|
94
130
|
|
|
95
131
|
> `optional` **avatar\_url?**: `string`
|
|
96
132
|
|
|
133
|
+
Pre-resolved CDN URL for the avatar.
|
|
134
|
+
|
|
97
135
|
#### position
|
|
98
136
|
|
|
99
137
|
> **position**: `number`
|
|
100
138
|
|
|
139
|
+
Member's rank within this clan; `1` = top contributor.
|
|
140
|
+
|
|
101
141
|
#### contribution\_score
|
|
102
142
|
|
|
103
143
|
> **contribution\_score**: `number`
|
|
104
144
|
|
|
145
|
+
Member's contribution to the clan rating score.
|
|
146
|
+
|
|
105
147
|
#### is\_me?
|
|
106
148
|
|
|
107
149
|
> `optional` **is\_me?**: `boolean`
|
|
108
150
|
|
|
151
|
+
`true` when this row is the current authenticated user.
|
|
152
|
+
|
|
109
153
|
#### clean\_ext\_user\_id?
|
|
110
154
|
|
|
111
155
|
> `optional` **clean\_ext\_user\_id?**: `string`
|
|
156
|
+
|
|
157
|
+
External user identifier (operator-provided alias);
|
|
158
|
+
preferred over `public_username` on some surfaces.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# Interface: TClanJoinResult
|
|
2
2
|
|
|
3
|
-
TClanJoinResult describes the result of a join
|
|
3
|
+
TClanJoinResult describes the result of a join-clan request.
|
|
4
|
+
Note: this type uses `errCode` / `errMsg` (camelCase) — different
|
|
5
|
+
from most other SDK result types in this library which use
|
|
6
|
+
`err_code` / `err_message` (snake_case).
|
|
4
7
|
|
|
5
8
|
## Properties
|
|
6
9
|
|
|
@@ -8,8 +11,15 @@ TClanJoinResult describes the result of a join clan request.
|
|
|
8
11
|
|
|
9
12
|
> **errCode**: `number`
|
|
10
13
|
|
|
14
|
+
Error code. `0` = success. Typed values are members of
|
|
15
|
+
[JoinClanErrorCode](../enumerations/JoinClanErrorCode.md). See `joinClan` TSDoc for the full
|
|
16
|
+
table and per-code UI guidance.
|
|
17
|
+
|
|
11
18
|
***
|
|
12
19
|
|
|
13
20
|
### errMsg
|
|
14
21
|
|
|
15
22
|
> **errMsg**: `string`
|
|
23
|
+
|
|
24
|
+
Optional server-side error message. Present only on non-zero
|
|
25
|
+
`errCode`; may be empty even then.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Interface: TClanTournamentPlayer
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
### user\_id
|
|
6
|
+
|
|
7
|
+
> **user\_id**: `number`
|
|
8
|
+
|
|
9
|
+
***
|
|
10
|
+
|
|
11
|
+
### clean\_ext\_user\_id
|
|
12
|
+
|
|
13
|
+
> **clean\_ext\_user\_id**: `string`
|
|
14
|
+
|
|
15
|
+
***
|
|
16
|
+
|
|
17
|
+
### public\_username
|
|
18
|
+
|
|
19
|
+
> **public\_username**: `string`
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### avatar\_id
|
|
24
|
+
|
|
25
|
+
> **avatar\_id**: `string`
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### avatar\_real\_id
|
|
30
|
+
|
|
31
|
+
> **avatar\_real\_id**: `number`
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### avatar\_url?
|
|
36
|
+
|
|
37
|
+
> `optional` **avatar\_url?**: `string`
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
41
|
+
### position
|
|
42
|
+
|
|
43
|
+
> **position**: `number`
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### scores
|
|
48
|
+
|
|
49
|
+
> **scores**: `number`
|
|
50
|
+
|
|
51
|
+
***
|
|
52
|
+
|
|
53
|
+
### is\_me
|
|
54
|
+
|
|
55
|
+
> **is\_me**: `boolean`
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Interface: TClanTournamentPlayersResult
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
### clan\_id
|
|
6
|
+
|
|
7
|
+
> **clan\_id**: `number`
|
|
8
|
+
|
|
9
|
+
***
|
|
10
|
+
|
|
11
|
+
### clan\_public\_meta
|
|
12
|
+
|
|
13
|
+
> **clan\_public\_meta**: `object`
|
|
14
|
+
|
|
15
|
+
#### name
|
|
16
|
+
|
|
17
|
+
> **name**: `string`
|
|
18
|
+
|
|
19
|
+
#### image\_url
|
|
20
|
+
|
|
21
|
+
> **image\_url**: `string`
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### players
|
|
26
|
+
|
|
27
|
+
> **players**: [`TClanTournamentPlayer`](TClanTournamentPlayer.md)[]
|
|
@@ -24,7 +24,9 @@ The clan ID the current user belongs to; null if clanless
|
|
|
24
24
|
|
|
25
25
|
> **cooldown\_until**: `string`
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Switch-cooldown expiry as ISO 8601 UTC string ("YYYY-MM-DDTHH:MM:SS"
|
|
28
|
+
with no timezone suffix; interpret as UTC). `null` when no cooldown.
|
|
29
|
+
User-level: while set, the user cannot join any clan.
|
|
28
30
|
|
|
29
31
|
***
|
|
30
32
|
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
# Interface: TGetTranslations
|
|
2
2
|
|
|
3
|
+
Result of `getTranslations(lang_code)`.
|
|
4
|
+
|
|
3
5
|
## Properties
|
|
4
6
|
|
|
5
7
|
### translations
|
|
6
8
|
|
|
7
9
|
> **translations**: `object`
|
|
8
10
|
|
|
11
|
+
Flat dictionary of operator-defined translation key → translated string.
|
|
12
|
+
|
|
9
13
|
#### Index Signature
|
|
10
14
|
|
|
11
15
|
\[`key`: `string`\]: `string`
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
# Interface: TInboxMessage
|
|
2
2
|
|
|
3
|
+
TInboxMessage is the lightweight envelope returned by
|
|
4
|
+
`_smartico.api.getInboxMessages()`. Fetch the rich body (title,
|
|
5
|
+
preview, icon, html_body, buttons) separately via
|
|
6
|
+
`_smartico.api.getInboxMessageBody(message_guid)`.
|
|
7
|
+
|
|
3
8
|
## Properties
|
|
4
9
|
|
|
5
10
|
### message\_guid
|
|
6
11
|
|
|
7
12
|
> **message\_guid**: `string`
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
Unique identifier of the message. Pass to `getInboxMessageBody`
|
|
15
|
+
and the mark / favorite / delete mutations.
|
|
10
16
|
|
|
11
17
|
***
|
|
12
18
|
|
|
@@ -14,7 +20,7 @@ Uniq identifier of the message. It is needed to request the message body, mark t
|
|
|
14
20
|
|
|
15
21
|
> **sent\_date**: `string`
|
|
16
22
|
|
|
17
|
-
Date when the message was sent
|
|
23
|
+
Date when the message was sent (server timestamp).
|
|
18
24
|
|
|
19
25
|
***
|
|
20
26
|
|
|
@@ -22,7 +28,7 @@ Date when the message was sent
|
|
|
22
28
|
|
|
23
29
|
> **read**: `boolean`
|
|
24
30
|
|
|
25
|
-
|
|
31
|
+
`true` when the message has been marked read.
|
|
26
32
|
|
|
27
33
|
***
|
|
28
34
|
|
|
@@ -30,7 +36,7 @@ Indicator if a message is read
|
|
|
30
36
|
|
|
31
37
|
> **favorite**: `boolean`
|
|
32
38
|
|
|
33
|
-
|
|
39
|
+
`true` when the message has been starred (favorited).
|
|
34
40
|
|
|
35
41
|
***
|
|
36
42
|
|
|
@@ -38,7 +44,7 @@ Indicator if a message is added to favorites
|
|
|
38
44
|
|
|
39
45
|
> `optional` **category\_id?**: [`InboxCategories`](../enumerations/InboxCategories.md)
|
|
40
46
|
|
|
41
|
-
|
|
47
|
+
Operator-assigned category ([InboxCategories](../enumerations/InboxCategories.md)).
|
|
42
48
|
|
|
43
49
|
***
|
|
44
50
|
|
|
@@ -46,4 +52,6 @@ Category id per inbox message, can be part of System inboxes, Personal inboxes o
|
|
|
46
52
|
|
|
47
53
|
> `optional` **expire\_on\_dt?**: `number`
|
|
48
54
|
|
|
49
|
-
|
|
55
|
+
Expiry timestamp as Unix-ms epoch. Server filters out expired
|
|
56
|
+
messages from list responses — consumers rarely see this set
|
|
57
|
+
unless the expiry is upcoming.
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# Interface: TInboxMessageBody
|
|
2
2
|
|
|
3
|
+
TInboxMessageBody is the rich body of one inbox message.
|
|
4
|
+
Returned by `_smartico.api.getInboxMessageBody(message_guid)`.
|
|
5
|
+
Fetched from a CDN (not over WebSocket).
|
|
6
|
+
|
|
3
7
|
## Properties
|
|
4
8
|
|
|
5
9
|
### title
|
|
6
10
|
|
|
7
11
|
> **title**: `string`
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
Display title.
|
|
10
14
|
|
|
11
15
|
***
|
|
12
16
|
|
|
@@ -14,7 +18,7 @@ Message title
|
|
|
14
18
|
|
|
15
19
|
> **preview\_body**: `string`
|
|
16
20
|
|
|
17
|
-
Short preview
|
|
21
|
+
Short preview text (typically rendered alongside the title in list items).
|
|
18
22
|
|
|
19
23
|
***
|
|
20
24
|
|
|
@@ -22,7 +26,7 @@ Short preview body of the message
|
|
|
22
26
|
|
|
23
27
|
> **icon**: `string`
|
|
24
28
|
|
|
25
|
-
Message icon
|
|
29
|
+
Message icon URL (128×128 px recommended).
|
|
26
30
|
|
|
27
31
|
***
|
|
28
32
|
|
|
@@ -30,10 +34,10 @@ Message icon, 128x128px
|
|
|
30
34
|
|
|
31
35
|
> **action**: `string`
|
|
32
36
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
Click-action — either a deep-link (e.g. `'dp:deposit'`) or a
|
|
38
|
+
plain URL. The literal `'dp:inbox'` indicates the message has a
|
|
39
|
+
rich `html_body`; for any other value `html_body` and `buttons`
|
|
40
|
+
are absent. Pass to `_smartico.dp(action)` for safe execution.
|
|
37
41
|
|
|
38
42
|
***
|
|
39
43
|
|
|
@@ -41,7 +45,7 @@ If the message has a rich html body - the action will always be 'dp:inbox' which
|
|
|
41
45
|
|
|
42
46
|
> `optional` **html\_body?**: `string`
|
|
43
47
|
|
|
44
|
-
Rich HTML body
|
|
48
|
+
Rich HTML body. Populated only when `action === 'dp:inbox'`.
|
|
45
49
|
|
|
46
50
|
***
|
|
47
51
|
|
|
@@ -49,19 +53,20 @@ Rich HTML body of the message.
|
|
|
49
53
|
|
|
50
54
|
> `optional` **buttons?**: `object`[]
|
|
51
55
|
|
|
52
|
-
|
|
56
|
+
Up to 2 additional action buttons. Populated only when
|
|
57
|
+
`action === 'dp:inbox'`.
|
|
53
58
|
|
|
54
59
|
#### action
|
|
55
60
|
|
|
56
61
|
> **action**: `string`
|
|
57
62
|
|
|
58
|
-
|
|
63
|
+
Button click-action (deep-link or URL).
|
|
59
64
|
|
|
60
65
|
#### text
|
|
61
66
|
|
|
62
67
|
> **text**: `string`
|
|
63
68
|
|
|
64
|
-
Button
|
|
69
|
+
Button label.
|
|
65
70
|
|
|
66
71
|
***
|
|
67
72
|
|
|
@@ -69,4 +74,5 @@ Button text
|
|
|
69
74
|
|
|
70
75
|
> `optional` **custom\_data?**: `string`
|
|
71
76
|
|
|
72
|
-
|
|
77
|
+
Operator-defined custom data. The SDK auto-parses JSON-looking
|
|
78
|
+
strings, so at runtime this is `any` despite the `string` type.
|