@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.
Files changed (219) hide show
  1. package/.nvmrc +1 -1
  2. package/CLAUDE.md +103 -0
  3. package/README.md +53 -2
  4. package/dist/Base/ClassId.d.ts +2 -0
  5. package/dist/Jackpots/JackpotDetails.d.ts +14 -15
  6. package/dist/Jackpots/JackpotPot.d.ts +10 -6
  7. package/dist/Raffle/GetRaffleWonPrizesRequest.d.ts +9 -0
  8. package/dist/Raffle/GetRaffleWonPrizesResponse.d.ts +52 -0
  9. package/dist/Raffle/index.d.ts +2 -0
  10. package/dist/SmarticoAPI.d.ts +6 -1
  11. package/dist/SmarticoLib/index.d.ts +5 -1
  12. package/dist/Store/BuyStoreItemErrorCode.d.ts +9 -1
  13. package/dist/Tournaments/TournamentRegistrationError.d.ts +3 -1
  14. package/dist/WSAPI/WSAPI.d.ts +13 -1235
  15. package/dist/WSAPI/WSAPIAvatars.d.ts +296 -0
  16. package/dist/WSAPI/WSAPIBase.d.ts +71 -0
  17. package/dist/WSAPI/WSAPIBonuses.d.ts +240 -0
  18. package/dist/WSAPI/WSAPIClans.d.ts +388 -0
  19. package/dist/WSAPI/WSAPIGamePick.d.ts +593 -0
  20. package/dist/WSAPI/WSAPIGeneral.d.ts +172 -0
  21. package/dist/WSAPI/WSAPIInbox.d.ts +615 -0
  22. package/dist/WSAPI/WSAPIJackpots.d.ts +344 -0
  23. package/dist/WSAPI/WSAPILeaderBoard.d.ts +139 -0
  24. package/dist/WSAPI/WSAPIMiniGames.d.ts +510 -0
  25. package/dist/WSAPI/WSAPIMissions.d.ts +517 -0
  26. package/dist/WSAPI/WSAPIRaffles.d.ts +643 -0
  27. package/dist/WSAPI/WSAPIStore.d.ts +656 -0
  28. package/dist/WSAPI/WSAPITournaments.d.ts +501 -0
  29. package/dist/WSAPI/WSAPITypes.d.ts +376 -205
  30. package/dist/WSAPI/WSAPIUser.d.ts +533 -0
  31. package/dist/index.js +6745 -1661
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.modern.mjs +6324 -1342
  34. package/dist/index.modern.mjs.map +1 -1
  35. package/docs/Callbacks.md +162 -0
  36. package/docs/SmarticoObject.md +445 -0
  37. package/docs/Transforms.md +99 -0
  38. package/docs/api/README.md +82 -2
  39. package/docs/api/classes/WSAPIAvatars.md +344 -0
  40. package/docs/api/classes/WSAPIBonuses.md +271 -0
  41. package/docs/api/classes/WSAPIClans.md +436 -0
  42. package/docs/api/classes/WSAPIGamePick.md +710 -0
  43. package/docs/api/classes/WSAPIGeneral.md +212 -0
  44. package/docs/api/classes/WSAPIInbox.md +801 -0
  45. package/docs/api/classes/WSAPIJackpots.md +439 -0
  46. package/docs/api/classes/WSAPILeaderBoard.md +157 -0
  47. package/docs/api/classes/WSAPIMiniGames.md +612 -0
  48. package/docs/api/classes/WSAPIMissions.md +590 -0
  49. package/docs/api/classes/WSAPIRaffles.md +773 -0
  50. package/docs/api/classes/WSAPIStore.md +719 -0
  51. package/docs/api/classes/WSAPITournaments.md +571 -0
  52. package/docs/api/classes/WSAPIUser.md +637 -0
  53. package/docs/api/documents/Callbacks.md +162 -0
  54. package/docs/api/documents/SmarticoObject.md +445 -0
  55. package/docs/api/documents/Transforms.md +99 -0
  56. package/docs/api/enumerations/AchievementClaimPeriodTypeId.md +13 -0
  57. package/docs/api/enumerations/BonusStatus-1.md +11 -6
  58. package/docs/api/enumerations/BuyStoreItemErrorCode.md +32 -0
  59. package/docs/api/enumerations/JoinClanErrorCode.md +81 -0
  60. package/docs/api/enumerations/TournamentRegistrationError.md +12 -0
  61. package/docs/api/functions/clanTournamentPlayersTransform.md +13 -0
  62. package/docs/api/interfaces/AvatarCustomized.md +25 -0
  63. package/docs/api/interfaces/AvatarDefinition.md +94 -0
  64. package/docs/api/interfaces/AvatarPrompt.md +45 -0
  65. package/docs/api/interfaces/BonusMetaMap-1.md +4 -1
  66. package/docs/api/interfaces/BonusTemplateMetaMap-1.md +9 -4
  67. package/docs/api/interfaces/Clan.md +4 -0
  68. package/docs/api/interfaces/ClanInfo.md +109 -0
  69. package/docs/api/interfaces/ClanMember.md +53 -0
  70. package/docs/api/interfaces/ClanPrizePublicMeta.md +41 -0
  71. package/docs/api/interfaces/ClanPrizeStructureEntry.md +7 -1
  72. package/docs/api/interfaces/ClanPublicMeta.md +4 -0
  73. package/docs/api/interfaces/ClanTournamentPlayerRaw.md +67 -0
  74. package/docs/api/interfaces/GemsDiamondsLog.md +43 -0
  75. package/docs/api/interfaces/GetClanInfoResponse.md +61 -0
  76. package/docs/api/interfaces/GetClanTournamentPlayersResponse.md +81 -0
  77. package/docs/api/interfaces/GetRaffleWonPrizesRequest.md +59 -0
  78. package/docs/api/interfaces/GetRaffleWonPrizesResponse.md +95 -0
  79. package/docs/api/interfaces/InboxMarkMessageAction.md +10 -2
  80. package/docs/api/interfaces/JackpotDetails.md +14 -15
  81. package/docs/api/interfaces/JackpotPot.md +9 -6
  82. package/docs/api/interfaces/LeaderBoardDetailsT.md +14 -8
  83. package/docs/api/interfaces/LeaderBoardUserT.md +8 -5
  84. package/docs/api/interfaces/LeaderBoardsRewardsT.md +7 -0
  85. package/docs/api/interfaces/PointsLog.md +43 -0
  86. package/docs/api/interfaces/RaffleWonPrize.md +59 -0
  87. package/docs/api/interfaces/RaffleWonPrizePublicMeta.md +27 -0
  88. package/docs/api/interfaces/RaffleWonPrizeUser.md +43 -0
  89. package/docs/api/interfaces/SAWTemplateUI.md +10 -0
  90. package/docs/api/interfaces/TAchCategory.md +14 -4
  91. package/docs/api/interfaces/TAvatarCustomized.md +4 -4
  92. package/docs/api/interfaces/TAvatarDefinition.md +13 -14
  93. package/docs/api/interfaces/TAvatarPrompt.md +6 -6
  94. package/docs/api/interfaces/TBonus.md +16 -8
  95. package/docs/api/interfaces/TBuyStoreItemResult.md +4 -11
  96. package/docs/api/interfaces/TClaimBonusResult.md +5 -5
  97. package/docs/api/interfaces/TClan.md +8 -4
  98. package/docs/api/interfaces/TClanInfo.md +47 -0
  99. package/docs/api/interfaces/TClanJoinResult.md +11 -1
  100. package/docs/api/interfaces/TClanTournamentPlayer.md +55 -0
  101. package/docs/api/interfaces/TClanTournamentPlayersResult.md +27 -0
  102. package/docs/api/interfaces/TClans.md +3 -1
  103. package/docs/api/interfaces/TGetTranslations.md +4 -0
  104. package/docs/api/interfaces/TInboxMessage.md +14 -6
  105. package/docs/api/interfaces/TInboxMessageBody.md +18 -12
  106. package/docs/api/interfaces/TLevel.md +17 -20
  107. package/docs/api/interfaces/TLevelCurrent.md +19 -18
  108. package/docs/api/interfaces/TMiniGamePlayBatchResult.md +14 -6
  109. package/docs/api/interfaces/TMiniGamePlayResult.md +9 -4
  110. package/docs/api/interfaces/TMissionClaimRewardResult.md +6 -3
  111. package/docs/api/interfaces/TMissionOptInResult.md +6 -3
  112. package/docs/api/interfaces/TMissionOrBadge.md +5 -4
  113. package/docs/api/interfaces/TRaffleOptinResponse.md +4 -2
  114. package/docs/api/interfaces/TSegmentCheckResult.md +10 -0
  115. package/docs/api/interfaces/TSetAvatarResult.md +3 -3
  116. package/docs/api/interfaces/TStoreItem.md +11 -1
  117. package/docs/api/interfaces/TTournament.md +1 -1
  118. package/docs/api/interfaces/TTournamentDetailed.md +9 -1
  119. package/docs/api/interfaces/TTournamentRegistrationResult.md +4 -2
  120. package/docs/api/interfaces/TUICustomSection.md +23 -19
  121. package/docs/api/interfaces/TUserProfile.md +18 -16
  122. package/docs/api/interfaces/TransformedRaffleClaimPrizeResponse.md +6 -2
  123. package/docs/api/interfaces/UserAchievement.md +1 -1
  124. package/docs/api/interfaces/UserLevelExtraCountersT.md +9 -2
  125. package/docs/api/type-aliases/ActivityLogEntry.md +3 -0
  126. package/docs/native/ADDING_METHODS.md +7 -2
  127. package/docs/native/PROTOCOL.md +337 -0
  128. package/docs/ui/avatars/UIGuide_getAvatarPrompts.md +100 -0
  129. package/docs/ui/avatars/UIGuide_getAvatarsCustomized.md +90 -0
  130. package/docs/ui/avatars/UIGuide_getAvatarsList.md +105 -0
  131. package/docs/ui/avatars/UIGuide_setAvatar.md +118 -0
  132. package/docs/ui/bonuses/UIGuide_claimBonus.md +144 -0
  133. package/docs/ui/bonuses/UIGuide_getBonuses.md +176 -0
  134. package/docs/ui/clans/UIGuide_getClanInfo.md +153 -0
  135. package/docs/ui/clans/UIGuide_getClans.md +172 -0
  136. package/docs/ui/clans/UIGuide_joinClan.md +196 -0
  137. package/docs/ui/gamepick/UIGuide_gamePickGetActiveRound.md +99 -0
  138. package/docs/ui/gamepick/UIGuide_gamePickGetActiveRounds.md +76 -0
  139. package/docs/ui/gamepick/UIGuide_gamePickGetBoard.md +81 -0
  140. package/docs/ui/gamepick/UIGuide_gamePickGetGameInfo.md +78 -0
  141. package/docs/ui/gamepick/UIGuide_gamePickGetHistory.md +55 -0
  142. package/docs/ui/gamepick/UIGuide_gamePickGetRoundInfoForUser.md +71 -0
  143. package/docs/ui/gamepick/UIGuide_gamePickGetUserInfo.md +64 -0
  144. package/docs/ui/gamepick/UIGuide_gamePickSubmitSelection.md +103 -0
  145. package/docs/ui/gamepick/UIGuide_gamePickSubmitSelectionQuiz.md +67 -0
  146. package/docs/ui/general/UIGuide_getCustomSections.md +137 -0
  147. package/docs/ui/general/UIGuide_getRelatedItemsForGame.md +140 -0
  148. package/docs/ui/inbox/UIGuide_deleteInboxMessage.md +135 -0
  149. package/docs/ui/inbox/UIGuide_getInboxMessageBody.md +133 -0
  150. package/docs/ui/inbox/UIGuide_getInboxMessages.md +186 -0
  151. package/docs/ui/inbox/UIGuide_markInboxMessageAsRead.md +122 -0
  152. package/docs/ui/inbox/UIGuide_markUnmarkInboxMessageAsFavorite.md +84 -0
  153. package/docs/ui/jackpots/UIGuide_getJackpotEligibleGames.md +73 -0
  154. package/docs/ui/jackpots/UIGuide_getJackpotWinners.md +83 -0
  155. package/docs/ui/jackpots/UIGuide_jackpotGet.md +138 -0
  156. package/docs/ui/jackpots/UIGuide_jackpotOptIn.md +85 -0
  157. package/docs/ui/jackpots/UIGuide_jackpotOptOut.md +65 -0
  158. package/docs/ui/leaderboard/UIGuide_getLeaderBoard.md +166 -0
  159. package/docs/ui/minigames/UIGuide_getMiniGames.md +153 -0
  160. package/docs/ui/minigames/UIGuide_getMiniGamesHistory.md +90 -0
  161. package/docs/ui/minigames/UIGuide_playMiniGame.md +150 -0
  162. package/docs/ui/minigames/UIGuide_playMiniGameBatch.md +128 -0
  163. package/docs/ui/missions/UIGuide_getAchCategories.md +17 -0
  164. package/docs/ui/missions/UIGuide_getBadges.md +237 -0
  165. package/docs/ui/missions/UIGuide_getMissions.md +268 -0
  166. package/docs/ui/missions/UIGuide_requestMissionClaimReward.md +21 -0
  167. package/docs/ui/missions/UIGuide_requestMissionOptIn.md +16 -0
  168. package/docs/ui/raffles/UIGuide_claimRafflePrize.md +99 -0
  169. package/docs/ui/raffles/UIGuide_getRaffleDrawRun.md +117 -0
  170. package/docs/ui/raffles/UIGuide_getRaffleDrawRunsHistory.md +92 -0
  171. package/docs/ui/raffles/UIGuide_getRaffleWonPrizes.md +120 -0
  172. package/docs/ui/raffles/UIGuide_getRaffles.md +175 -0
  173. package/docs/ui/raffles/UIGuide_requestRaffleOptin.md +114 -0
  174. package/docs/ui/store/UIGuide_buyStoreItem.md +133 -0
  175. package/docs/ui/store/UIGuide_getStoreCategories.md +19 -0
  176. package/docs/ui/store/UIGuide_getStoreItems.md +264 -0
  177. package/docs/ui/store/UIGuide_getStorePurchasedItems.md +122 -0
  178. package/docs/ui/tournaments/UIGuide_getClanTournamentPlayers.md +140 -0
  179. package/docs/ui/tournaments/UIGuide_getTournamentInstanceInfo.md +265 -0
  180. package/docs/ui/tournaments/UIGuide_getTournamentsList.md +236 -0
  181. package/docs/ui/tournaments/UIGuide_registerInTournament.md +156 -0
  182. package/docs/ui/user/UIGuide_getActivityLog.md +130 -0
  183. package/docs/ui/user/UIGuide_getLevels.md +167 -0
  184. package/docs/ui/user/UIGuide_getUserProfile.md +213 -0
  185. package/package.json +3 -3
  186. package/scripts/postdoc-cleanup.js +195 -0
  187. package/src/Base/ClassId.ts +2 -0
  188. package/src/Jackpots/JackpotDetails.ts +14 -15
  189. package/src/Jackpots/JackpotPot.ts +10 -6
  190. package/src/Missions/MissionsUtils.ts +5 -2
  191. package/src/Raffle/GetRaffleWonPrizesRequest.ts +12 -0
  192. package/src/Raffle/GetRaffleWonPrizesResponse.ts +56 -0
  193. package/src/Raffle/index.ts +3 -1
  194. package/src/SmarticoAPI.ts +14 -1
  195. package/src/SmarticoLib/index.ts +4 -0
  196. package/src/Store/BuyStoreItemErrorCode.ts +8 -0
  197. package/src/Store/StoreItem.ts +1 -0
  198. package/src/Store/StoreItemPurchased.ts +1 -0
  199. package/src/Store/StoreItemType.ts +1 -1
  200. package/src/Tournaments/TournamentRegistrationError.ts +4 -0
  201. package/src/WSAPI/WSAPI.ts +27 -2007
  202. package/src/WSAPI/WSAPIAvatars.ts +345 -0
  203. package/src/WSAPI/WSAPIBase.ts +93 -0
  204. package/src/WSAPI/WSAPIBonuses.ts +268 -0
  205. package/src/WSAPI/WSAPIClans.ts +417 -0
  206. package/src/WSAPI/WSAPIGamePick.ts +667 -0
  207. package/src/WSAPI/WSAPIGeneral.ts +199 -0
  208. package/src/WSAPI/WSAPIInbox.ts +711 -0
  209. package/src/WSAPI/WSAPIJackpots.ts +448 -0
  210. package/src/WSAPI/WSAPILeaderBoard.ts +154 -0
  211. package/src/WSAPI/WSAPIMiniGames.ts +597 -0
  212. package/src/WSAPI/WSAPIMissions.ts +572 -0
  213. package/src/WSAPI/WSAPIRaffles.ts +703 -0
  214. package/src/WSAPI/WSAPIStore.ts +732 -0
  215. package/src/WSAPI/WSAPITournaments.ts +541 -0
  216. package/src/WSAPI/WSAPITypes.ts +376 -207
  217. package/src/WSAPI/WSAPIUser.ts +606 -0
  218. package/tsconfig.json +26 -2
  219. package/docs/api/classes/WSAPI.md +0 -1927
@@ -1,9 +1,7 @@
1
1
  # Interface: TLevel
2
2
 
3
- TLevel describes the information of each level defined in the system
4
- There is no order of the levels, but it can be calculated using required_points property
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
- The ID of the Level
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
- The name of the Level, translated to the user language
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
- The description of the Level, translated to the user language
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
- The URL of the image of the Level, 256x256px
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
- The amount of points required to reach the Level
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
- Number of points that user should collect in order to see this level
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
- The counter of 1st metric used to reach the Level.
67
- Relevant in case of using advanced leveling logic
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
- The counter of 2nd metric used to reach the Level.
77
- Relevant in case of using advanced leveling logic
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
- Custom data as string or JSON string that can be used in API to build custom UI
87
- You can request from Smartico to define fields for your specific case that will be managed from Smartico BackOffice
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
- The ordinal position of the level
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 describes the information of each level defined in the system along with ordinal position and progress of the current level
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
- The ID of the Level
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
- The name of the Level, translated to the user language
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
- The description of the Level, translated to the user language
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
- The URL of the image of the Level, 256x256px
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
- The amount of points required to reach the Level
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
- Number of points that user should collect in order to see this level
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
- The counter of 1st metric used to reach the Level.
88
- Relevant in case of using advanced leveling logic
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
- The counter of 2nd metric used to reach the Level.
102
- Relevant in case of using advanced leveling logic
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
- Custom data as string or JSON string that can be used in API to build custom UI
116
- You can request from Smartico to define fields for your specific case that will be managed from Smartico BackOffice
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
- The ordinal position of the level
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
- The progress of the user towards next level in the percents to complete
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 the response of call to _smartico.api.playMiniGameBatch(template_id, spin_count) method
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
- The saw_prize_id that user won, details of the prize can be found in the mini-game definition
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 that represents outcome of the game play attempt. Game succeed to be played in case err_code is 0
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 what user won
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
- Period in miliseconds from last spin
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 call to _smartico.api.playMiniGame(template_id) method
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 that represents outcome of the game play attempt. Game succeed to be played in case err_code is 0
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
- The prize_id that user won, details of the prize can be found in the mini-game definition
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
- TMissionClaimRewardResult describes the response of call to _smartico.api.requestMissionClaimReward(mission_id, ach_completed_id) method
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 that represents outcome of the claim request. Successful claim reward in case err_code is 0
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
- TMissionOptInResult describes the response of call to _smartico.api.requestMissionOptIn(mission_id) method
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 that represents outcome of the opt-in request. Successful opt-in in case err_code is 0
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
- The list of custom sections can be retrieved using _smartico.api.getCustomSections() method (TODO-API)
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
- ID of the completion fact from ach_completed or ach_completed_recurring tables
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 that represents outcome of the opt-in attempt. Opt-in succeed in case err_code is 0
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
- TSetAvatarResult describes the response of call to _smartico.api.setAvatar() method
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 that represents outcome of the set avatar request. Successful if err_code is 0
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
- Number of items in the pool avaliable for the purchase.
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 (TODO-API)
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 (TODO-API)
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 that represents outcome of the tournament registration request. Successful registration in case err_code is 0
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`.