@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,9 +1,7 @@
|
|
|
1
1
|
# Interface: TLevel
|
|
2
2
|
|
|
3
|
-
TLevel describes
|
|
4
|
-
|
|
5
|
-
The current level of user can be taken from the user object using ach_level_current_id property
|
|
6
|
-
The progress to the next level can be calculated using ach_points_ever and required_points properties of next level
|
|
3
|
+
TLevel describes one level in the label's level ladder.
|
|
4
|
+
Returned by `_smartico.api.getLevels()` (already sorted by `required_points` ASC).
|
|
7
5
|
|
|
8
6
|
## Extended by
|
|
9
7
|
|
|
@@ -15,7 +13,7 @@ The progress to the next level can be calculated using ach_points_ever and requi
|
|
|
15
13
|
|
|
16
14
|
> **id**: `number`
|
|
17
15
|
|
|
18
|
-
|
|
16
|
+
Stable ID of the level.
|
|
19
17
|
|
|
20
18
|
***
|
|
21
19
|
|
|
@@ -23,7 +21,7 @@ The ID of the Level
|
|
|
23
21
|
|
|
24
22
|
> **name**: `string`
|
|
25
23
|
|
|
26
|
-
|
|
24
|
+
Display name of the level, pre-translated to the user's language.
|
|
27
25
|
|
|
28
26
|
***
|
|
29
27
|
|
|
@@ -31,7 +29,7 @@ The name of the Level, translated to the user language
|
|
|
31
29
|
|
|
32
30
|
> **description**: `string`
|
|
33
31
|
|
|
34
|
-
|
|
32
|
+
Display description of the level, pre-translated to the user's language.
|
|
35
33
|
|
|
36
34
|
***
|
|
37
35
|
|
|
@@ -39,7 +37,7 @@ The description of the Level, translated to the user language
|
|
|
39
37
|
|
|
40
38
|
> **image**: `string`
|
|
41
39
|
|
|
42
|
-
|
|
40
|
+
URL of the level image (256x256 px source).
|
|
43
41
|
|
|
44
42
|
***
|
|
45
43
|
|
|
@@ -47,7 +45,7 @@ The URL of the image of the Level, 256x256px
|
|
|
47
45
|
|
|
48
46
|
> **required\_points**: `number`
|
|
49
47
|
|
|
50
|
-
|
|
48
|
+
Total `ach_points_ever` required to reach this level.
|
|
51
49
|
|
|
52
50
|
***
|
|
53
51
|
|
|
@@ -55,7 +53,8 @@ The amount of points required to reach the Level
|
|
|
55
53
|
|
|
56
54
|
> **visibility\_points**: `number`
|
|
57
55
|
|
|
58
|
-
|
|
56
|
+
Visibility threshold — clients hide the level from the user until
|
|
57
|
+
`ach_points_ever >= visibility_points`. `null` means always visible.
|
|
59
58
|
|
|
60
59
|
***
|
|
61
60
|
|
|
@@ -63,9 +62,8 @@ Number of points that user should collect in order to see this level
|
|
|
63
62
|
|
|
64
63
|
> **required\_level\_counter\_1**: `number`
|
|
65
64
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for-leveling-users
|
|
65
|
+
Required value of the first level counter for sliding-window leveling.
|
|
66
|
+
`null` on points-only labels. See `UserLevelExtraCountersT`.
|
|
69
67
|
|
|
70
68
|
***
|
|
71
69
|
|
|
@@ -73,9 +71,8 @@ https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for
|
|
|
73
71
|
|
|
74
72
|
> **required\_level\_counter\_2**: `number`
|
|
75
73
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for-leveling-users
|
|
74
|
+
Required value of the second level counter for sliding-window leveling.
|
|
75
|
+
`null` on points-only labels.
|
|
79
76
|
|
|
80
77
|
***
|
|
81
78
|
|
|
@@ -83,9 +80,8 @@ https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for
|
|
|
83
80
|
|
|
84
81
|
> **custom\_data**: `string`
|
|
85
82
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
Read more here - https://help.smartico.ai/welcome/products/general-concepts/custom-fields-attributes
|
|
83
|
+
Operator-defined custom data. The SDK auto-parses JSON-looking
|
|
84
|
+
strings, so at runtime this is `any` despite the `string` type.
|
|
89
85
|
|
|
90
86
|
***
|
|
91
87
|
|
|
@@ -93,4 +89,5 @@ Read more here - https://help.smartico.ai/welcome/products/general-concepts/cust
|
|
|
93
89
|
|
|
94
90
|
> **ordinal\_position**: `number`
|
|
95
91
|
|
|
96
|
-
|
|
92
|
+
1-based position in the ladder (matches the order of the returned
|
|
93
|
+
array, which is sorted by `required_points` ASC).
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Interface: TLevelCurrent
|
|
2
2
|
|
|
3
|
-
TLevelCurrent
|
|
3
|
+
TLevelCurrent extends `TLevel` with the user's progress toward the next level.
|
|
4
|
+
Returned by `_smartico.api.getCurrentLevel()`.
|
|
4
5
|
|
|
5
6
|
## Extends
|
|
6
7
|
|
|
@@ -12,7 +13,7 @@ TLevelCurrent describes the information of each level defined in the system alon
|
|
|
12
13
|
|
|
13
14
|
> **id**: `number`
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
Stable ID of the level.
|
|
16
17
|
|
|
17
18
|
#### Inherited from
|
|
18
19
|
|
|
@@ -24,7 +25,7 @@ The ID of the Level
|
|
|
24
25
|
|
|
25
26
|
> **name**: `string`
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
Display name of the level, pre-translated to the user's language.
|
|
28
29
|
|
|
29
30
|
#### Inherited from
|
|
30
31
|
|
|
@@ -36,7 +37,7 @@ The name of the Level, translated to the user language
|
|
|
36
37
|
|
|
37
38
|
> **description**: `string`
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
Display description of the level, pre-translated to the user's language.
|
|
40
41
|
|
|
41
42
|
#### Inherited from
|
|
42
43
|
|
|
@@ -48,7 +49,7 @@ The description of the Level, translated to the user language
|
|
|
48
49
|
|
|
49
50
|
> **image**: `string`
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
URL of the level image (256x256 px source).
|
|
52
53
|
|
|
53
54
|
#### Inherited from
|
|
54
55
|
|
|
@@ -60,7 +61,7 @@ The URL of the image of the Level, 256x256px
|
|
|
60
61
|
|
|
61
62
|
> **required\_points**: `number`
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
Total `ach_points_ever` required to reach this level.
|
|
64
65
|
|
|
65
66
|
#### Inherited from
|
|
66
67
|
|
|
@@ -72,7 +73,8 @@ The amount of points required to reach the Level
|
|
|
72
73
|
|
|
73
74
|
> **visibility\_points**: `number`
|
|
74
75
|
|
|
75
|
-
|
|
76
|
+
Visibility threshold — clients hide the level from the user until
|
|
77
|
+
`ach_points_ever >= visibility_points`. `null` means always visible.
|
|
76
78
|
|
|
77
79
|
#### Inherited from
|
|
78
80
|
|
|
@@ -84,9 +86,8 @@ Number of points that user should collect in order to see this level
|
|
|
84
86
|
|
|
85
87
|
> **required\_level\_counter\_1**: `number`
|
|
86
88
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for-leveling-users
|
|
89
|
+
Required value of the first level counter for sliding-window leveling.
|
|
90
|
+
`null` on points-only labels. See `UserLevelExtraCountersT`.
|
|
90
91
|
|
|
91
92
|
#### Inherited from
|
|
92
93
|
|
|
@@ -98,9 +99,8 @@ https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for
|
|
|
98
99
|
|
|
99
100
|
> **required\_level\_counter\_2**: `number`
|
|
100
101
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for-leveling-users
|
|
102
|
+
Required value of the second level counter for sliding-window leveling.
|
|
103
|
+
`null` on points-only labels.
|
|
104
104
|
|
|
105
105
|
#### Inherited from
|
|
106
106
|
|
|
@@ -112,9 +112,8 @@ https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for
|
|
|
112
112
|
|
|
113
113
|
> **custom\_data**: `string`
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
Read more here - https://help.smartico.ai/welcome/products/general-concepts/custom-fields-attributes
|
|
115
|
+
Operator-defined custom data. The SDK auto-parses JSON-looking
|
|
116
|
+
strings, so at runtime this is `any` despite the `string` type.
|
|
118
117
|
|
|
119
118
|
#### Inherited from
|
|
120
119
|
|
|
@@ -126,7 +125,8 @@ Read more here - https://help.smartico.ai/welcome/products/general-concepts/cust
|
|
|
126
125
|
|
|
127
126
|
> **ordinal\_position**: `number`
|
|
128
127
|
|
|
129
|
-
|
|
128
|
+
1-based position in the ladder (matches the order of the returned
|
|
129
|
+
array, which is sorted by `required_points` ASC).
|
|
130
130
|
|
|
131
131
|
#### Inherited from
|
|
132
132
|
|
|
@@ -138,4 +138,5 @@ The ordinal position of the level
|
|
|
138
138
|
|
|
139
139
|
> **progress**: `number`
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
Progress to the next level as a 0–100 integer percentage. `100`
|
|
142
|
+
at the highest level.
|
|
@@ -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`.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# Interface: TMissionClaimRewardResult
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Response of `_smartico.api.requestMissionClaimReward(mission_id, ach_completed_id)`.
|
|
4
|
+
|
|
5
|
+
See `requestMissionClaimReward` TSDoc for the full table of `err_code`
|
|
6
|
+
values, preconditions, side effects, and recommended UI handling.
|
|
4
7
|
|
|
5
8
|
## Properties
|
|
6
9
|
|
|
@@ -8,7 +11,7 @@ TMissionClaimRewardResult describes the response of call to _smartico.api.reques
|
|
|
8
11
|
|
|
9
12
|
> **err\_code**: `number`
|
|
10
13
|
|
|
11
|
-
Error code
|
|
14
|
+
Error code. `0` = success (rewards credited). See `requestMissionClaimReward` TSDoc for the full table.
|
|
12
15
|
|
|
13
16
|
***
|
|
14
17
|
|
|
@@ -16,4 +19,4 @@ Error code that represents outcome of the claim request. Successful claim reward
|
|
|
16
19
|
|
|
17
20
|
> **err\_message**: `string`
|
|
18
21
|
|
|
19
|
-
Optional error message
|
|
22
|
+
Optional error message; populated on non-zero `err_code`.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# Interface: TMissionOptInResult
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Response of `_smartico.api.requestMissionOptIn(mission_id)`.
|
|
4
|
+
|
|
5
|
+
See `requestMissionOptIn` TSDoc for the full table of `err_code` values
|
|
6
|
+
and recommended UI handling.
|
|
4
7
|
|
|
5
8
|
## Properties
|
|
6
9
|
|
|
@@ -8,7 +11,7 @@ TMissionOptInResult describes the response of call to _smartico.api.requestMissi
|
|
|
8
11
|
|
|
9
12
|
> **err\_code**: `number`
|
|
10
13
|
|
|
11
|
-
Error code
|
|
14
|
+
Error code. `0` = success. See `requestMissionOptIn` TSDoc for the full table.
|
|
12
15
|
|
|
13
16
|
***
|
|
14
17
|
|
|
@@ -16,4 +19,4 @@ Error code that represents outcome of the opt-in request. Successful opt-in in c
|
|
|
16
19
|
|
|
17
20
|
> **err\_message**: `string`
|
|
18
21
|
|
|
19
|
-
Optional error message
|
|
22
|
+
Optional error message; populated on non-zero `err_code`.
|
|
@@ -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,7 +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
|
-
|
|
239
|
+
Stable identifier of this specific mission completion. Undefined for
|
|
240
|
+
badges and for missions that have not yet completed.
|
|
240
241
|
|
|
241
242
|
***
|
|
242
243
|
|
|
@@ -363,7 +364,7 @@ The date/timestamp indicating when the mission claim will expire
|
|
|
363
364
|
|
|
364
365
|
### prize\_claim\_period\_type\_id?
|
|
365
366
|
|
|
366
|
-
> `optional` **prize\_claim\_period\_type\_id?**: `AchievementClaimPeriodTypeId`
|
|
367
|
+
> `optional` **prize\_claim\_period\_type\_id?**: [`AchievementClaimPeriodTypeId`](../enumerations/AchievementClaimPeriodTypeId.md)
|
|
367
368
|
|
|
368
369
|
The type of the prize claim period (Relative or Exact time and date)
|
|
369
370
|
|
|
@@ -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,7 +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
|
-
|
|
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).
|
|
129
131
|
|
|
130
132
|
***
|
|
131
133
|
|
|
@@ -201,6 +203,14 @@ The date when the store item will be available till
|
|
|
201
203
|
|
|
202
204
|
***
|
|
203
205
|
|
|
206
|
+
### show\_timer?
|
|
207
|
+
|
|
208
|
+
> `optional` **show\_timer?**: `boolean`
|
|
209
|
+
|
|
210
|
+
Should countdown timer be shown when `active_till_date` is present
|
|
211
|
+
|
|
212
|
+
***
|
|
213
|
+
|
|
204
214
|
### discounted\_price?
|
|
205
215
|
|
|
206
216
|
> `optional` **discounted\_price?**: `number`
|
|
@@ -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
|
|
|
@@ -707,6 +707,10 @@ Per-clan prize structure; null for non-clan tournaments
|
|
|
707
707
|
|
|
708
708
|
> **prize\_pool\_amount**: `number`
|
|
709
709
|
|
|
710
|
+
#### prize\_pool\_currency\_code
|
|
711
|
+
|
|
712
|
+
> **prize\_pool\_currency\_code**: `string`
|
|
713
|
+
|
|
710
714
|
#### activity\_type\_id
|
|
711
715
|
|
|
712
716
|
> **activity\_type\_id**: `number`
|
|
@@ -731,6 +735,10 @@ Per-clan prize structure; null for non-clan tournaments
|
|
|
731
735
|
|
|
732
736
|
> **image\_url**: `string`
|
|
733
737
|
|
|
738
|
+
##### public\_meta.prize\_name?
|
|
739
|
+
|
|
740
|
+
> `optional` **prize\_name?**: `string`
|
|
741
|
+
|
|
734
742
|
#### tiers
|
|
735
743
|
|
|
736
744
|
> **tiers**: `object`[]
|
|
@@ -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`.
|