@smartico/public-api 0.0.364 → 0.0.365

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 (316) hide show
  1. package/dist/Base/ClassId.d.ts +8 -0
  2. package/dist/Clans/Clan.d.ts +17 -0
  3. package/dist/Clans/GetClanInfoRequest.d.ts +5 -0
  4. package/dist/Clans/GetClanInfoResponse.d.ts +22 -0
  5. package/dist/Clans/GetClanListRequest.d.ts +4 -0
  6. package/dist/Clans/GetClanListResponse.d.ts +9 -0
  7. package/dist/Clans/JoinClanRequest.d.ts +5 -0
  8. package/dist/Clans/JoinClanResponse.d.ts +5 -0
  9. package/dist/Clans/index.d.ts +7 -0
  10. package/dist/SmarticoAPI.d.ts +8 -1
  11. package/dist/SmarticoLib/index.d.ts +196 -0
  12. package/dist/Tournaments/GetClanTournamentPlayersRequest.d.ts +6 -0
  13. package/dist/Tournaments/GetClanTournamentPlayersResponse.d.ts +40 -0
  14. package/dist/Tournaments/GetTournamentInfoResponse.d.ts +11 -0
  15. package/dist/Tournaments/Tournament.d.ts +2 -0
  16. package/dist/Tournaments/TournamentClan.d.ts +27 -0
  17. package/dist/Tournaments/index.d.ts +3 -0
  18. package/dist/WSAPI/WSAPI.d.ts +34 -1
  19. package/dist/WSAPI/WSAPITypes.d.ts +144 -0
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.js +560 -289
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.modern.mjs +192 -1
  24. package/dist/index.modern.mjs.map +1 -1
  25. package/docs/api/README.md +99 -330
  26. package/docs/api/classes/SAWUtils.md +25 -11
  27. package/docs/api/classes/WSAPI.md +737 -379
  28. package/docs/api/enumerations/AchCustomLayoutTheme.md +25 -0
  29. package/docs/api/enumerations/AchCustomSectionType.md +79 -0
  30. package/docs/api/{enums → enumerations}/AchMissionsTabsOptions.md +5 -5
  31. package/docs/api/{enums → enumerations}/AchOverviewMissionsFilter.md +9 -9
  32. package/docs/api/{enums → enumerations}/AchievementAvailabilityStatus.md +29 -29
  33. package/docs/api/enumerations/AchievementStatus.md +49 -0
  34. package/docs/api/{enums → enumerations}/AchievementTaskType.md +3 -3
  35. package/docs/api/{enums → enumerations}/AchievementType.md +3 -3
  36. package/docs/api/enumerations/ActivityTypeLimited.md +115 -0
  37. package/docs/api/{enums → enumerations}/AttemptPeriodType.md +7 -7
  38. package/docs/api/{enums → enumerations}/BadgesTimeLimitStates.md +11 -11
  39. package/docs/api/{enums → enumerations}/BonusStatus-1.md +11 -11
  40. package/docs/api/enumerations/BonusStatus.md +37 -0
  41. package/docs/api/{enums → enumerations}/BuyStoreItemErrorCode.md +21 -21
  42. package/docs/api/{enums → enumerations}/GPRoundStatus.md +9 -9
  43. package/docs/api/{enums → enumerations}/GamePickMarketType.md +3 -3
  44. package/docs/api/{enums → enumerations}/GamePickResolutionType.md +7 -7
  45. package/docs/api/{enums → enumerations}/GamePickScoreType.md +3 -3
  46. package/docs/api/enumerations/GamePickSportType.md +375 -0
  47. package/docs/api/{enums → enumerations}/GameRoundOrderType.md +7 -7
  48. package/docs/api/{enums → enumerations}/InboxCategories.md +5 -5
  49. package/docs/api/enumerations/InboxMessageType.md +55 -0
  50. package/docs/api/{enums → enumerations}/InboxReadStatus.md +3 -3
  51. package/docs/api/{enums → enumerations}/JackPotTemparature.md +7 -7
  52. package/docs/api/{enums → enumerations}/JackpotContributionType.md +3 -3
  53. package/docs/api/{enums → enumerations}/JackpotType.md +3 -3
  54. package/docs/api/{enums → enumerations}/LeaderBoardPeriodType.md +5 -5
  55. package/docs/api/enumerations/LiquidEntityData.md +73 -0
  56. package/docs/api/enumerations/MiniGamePrizeTypeName.md +67 -0
  57. package/docs/api/{enums → enumerations}/OpenLinksType.md +3 -3
  58. package/docs/api/enumerations/PointChangeSourceType.md +109 -0
  59. package/docs/api/enumerations/PrizeModifiers.md +49 -0
  60. package/docs/api/enumerations/QuizAnswersValueType.md +121 -0
  61. package/docs/api/{enums → enumerations}/RaffleDrawInstanceState.md +5 -5
  62. package/docs/api/{enums → enumerations}/RaffleDrawTypeExecution.md +5 -5
  63. package/docs/api/{enums → enumerations}/RaffleTicketCapVisualization.md +5 -5
  64. package/docs/api/{enums → enumerations}/SAWAcknowledgeType.md +7 -7
  65. package/docs/api/enumerations/SAWAcknowledgeTypeName.md +25 -0
  66. package/docs/api/{enums → enumerations}/SAWAskForUsername.md +3 -3
  67. package/docs/api/enumerations/SAWBuyInType.md +31 -0
  68. package/docs/api/enumerations/SAWBuyInTypeName.md +37 -0
  69. package/docs/api/{enums → enumerations}/SAWExposeUserSpinId.md +3 -3
  70. package/docs/api/{enums → enumerations}/SAWExposeUserSpinIdName.md +3 -3
  71. package/docs/api/enumerations/SAWGPMarketType.md +157 -0
  72. package/docs/api/{enums → enumerations}/SAWGameDifficultyType.md +5 -5
  73. package/docs/api/{enums → enumerations}/SAWGameDifficultyTypeName.md +5 -5
  74. package/docs/api/{enums → enumerations}/SAWGameLayout.md +3 -3
  75. package/docs/api/{enums → enumerations}/SAWGameLayoutName.md +3 -3
  76. package/docs/api/enumerations/SAWGameType.md +73 -0
  77. package/docs/api/enumerations/SAWGameTypeName.md +79 -0
  78. package/docs/api/enumerations/SAWPrizeType.md +61 -0
  79. package/docs/api/{enums → enumerations}/SAWSpinErrorCode.md +19 -19
  80. package/docs/api/{enums → enumerations}/SAWWheelLayout.md +7 -7
  81. package/docs/api/enumerations/SAWWinSoundType.md +31 -0
  82. package/docs/api/{enums → enumerations}/ScheduledMissionType.md +5 -5
  83. package/docs/api/{enums → enumerations}/StoreItemPurchaseType.md +5 -5
  84. package/docs/api/enumerations/StoreItemType.md +37 -0
  85. package/docs/api/enumerations/StoreItemTypeName.md +43 -0
  86. package/docs/api/enumerations/TournamentInstanceStatus.md +43 -0
  87. package/docs/api/enumerations/TournamentRegistrationError.md +55 -0
  88. package/docs/api/enumerations/TournamentRegistrationStatus.md +43 -0
  89. package/docs/api/enumerations/TournamentRegistrationStatusName.md +49 -0
  90. package/docs/api/enumerations/TournamentRegistrationType.md +43 -0
  91. package/docs/api/{enums → enumerations}/TournamentType.md +5 -5
  92. package/docs/api/{enums → enumerations}/UserBalanceType.md +5 -5
  93. package/docs/api/functions/AchCategoryTransform.md +13 -0
  94. package/docs/api/functions/BonusItemsTransform.md +13 -0
  95. package/docs/api/functions/InboxMessageBodyTransform.md +13 -0
  96. package/docs/api/functions/SAWHistoryTransform.md +13 -0
  97. package/docs/api/functions/SAWTemplatesTransform.md +13 -0
  98. package/docs/api/functions/StoreCategoryTransform.md +13 -0
  99. package/docs/api/functions/StoreItemTransform.md +13 -0
  100. package/docs/api/functions/StoreItemTypeNamed.md +13 -0
  101. package/docs/api/functions/TournamentInstanceStatusName.md +13 -0
  102. package/docs/api/functions/TournamentItemsTransform.md +13 -0
  103. package/docs/api/functions/UICustomSectionTransform.md +13 -0
  104. package/docs/api/functions/UserAchievementTransform.md +13 -0
  105. package/docs/api/functions/enrichUserAchievementsWithBadgeState.md +13 -0
  106. package/docs/api/functions/tournamentInfoItemTransform.md +13 -0
  107. package/docs/api/interfaces/AchCategory.md +5 -5
  108. package/docs/api/interfaces/AchCategoryPublicMeta.md +5 -5
  109. package/docs/api/interfaces/AchRelatedGame-1.md +50 -15
  110. package/docs/api/interfaces/AchRelatedGame.md +35 -16
  111. package/docs/api/interfaces/AchievementPublicMeta.md +65 -65
  112. package/docs/api/interfaces/AchievementTaskPublicMeta.md +16 -16
  113. package/docs/api/interfaces/AffectsProgress.md +7 -7
  114. package/docs/api/interfaces/Bonus.md +37 -37
  115. package/docs/api/interfaces/BonusMetaMap-1.md +2 -2
  116. package/docs/api/interfaces/BonusMetaMap.md +2 -2
  117. package/docs/api/interfaces/BonusTemplateMetaMap-1.md +8 -8
  118. package/docs/api/interfaces/BonusTemplateMetaMap.md +8 -8
  119. package/docs/api/interfaces/Clan.md +53 -0
  120. package/docs/api/interfaces/ClanLeaderboardEntry.md +31 -0
  121. package/docs/api/interfaces/ClanPrizeStructureEntry.md +45 -0
  122. package/docs/api/interfaces/ClanPrizeTier.md +43 -0
  123. package/docs/api/interfaces/ClanPublicMeta.md +19 -0
  124. package/docs/api/interfaces/GamePickBoardUser.md +17 -17
  125. package/docs/api/interfaces/GamePickEvent.md +40 -38
  126. package/docs/api/interfaces/GamePickEventMeta.md +79 -59
  127. package/docs/api/interfaces/GamePickGameInfo.md +5 -5
  128. package/docs/api/interfaces/GamePickRequestParams.md +10 -12
  129. package/docs/api/interfaces/GamePickRound.md +96 -98
  130. package/docs/api/interfaces/GamePickRoundBase.md +58 -61
  131. package/docs/api/interfaces/GamePickRoundBoard.md +88 -90
  132. package/docs/api/interfaces/GamePickRoundPublicMeta.md +26 -26
  133. package/docs/api/interfaces/GamePickRoundRequestParams.md +15 -17
  134. package/docs/api/interfaces/GamePickUserInfo.md +34 -34
  135. package/docs/api/interfaces/GamesApiResponse.md +11 -11
  136. package/docs/api/interfaces/GetCustomSectionsResponse.md +23 -25
  137. package/docs/api/interfaces/GetDrawRunRequest.md +21 -23
  138. package/docs/api/interfaces/GetDrawRunResponse.md +21 -23
  139. package/docs/api/interfaces/GetJackpotEligibleGamesRequest.md +13 -15
  140. package/docs/api/interfaces/GetJackpotEligibleGamesResponse.md +21 -23
  141. package/docs/api/interfaces/GetJackpotWinnersRequest.md +26 -28
  142. package/docs/api/interfaces/GetJackpotWinnersResponse.md +23 -25
  143. package/docs/api/interfaces/GetJackpotsPotsRequest.md +13 -15
  144. package/docs/api/interfaces/GetJackpotsPotsResponse.md +21 -23
  145. package/docs/api/interfaces/GetJackpotsRequest.md +17 -19
  146. package/docs/api/interfaces/GetJackpotsResponse.md +21 -23
  147. package/docs/api/interfaces/GetRaffleDrawRunsHistoryRequest.md +16 -18
  148. package/docs/api/interfaces/GetRaffleDrawRunsHistoryResponse.md +21 -23
  149. package/docs/api/interfaces/GetRafflesRequest.md +14 -16
  150. package/docs/api/interfaces/GetRafflesResponse.md +21 -23
  151. package/docs/api/interfaces/GetRelatedAchTourResponse.md +24 -26
  152. package/docs/api/interfaces/GetTournamentInfoResponse.md +68 -38
  153. package/docs/api/interfaces/InboxMarkMessageAction.md +3 -3
  154. package/docs/api/interfaces/InboxMessage.md +18 -18
  155. package/docs/api/interfaces/InboxMessageBody.md +37 -29
  156. package/docs/api/interfaces/JackPotWinner.md +11 -11
  157. package/docs/api/interfaces/JackpotDetails.md +23 -23
  158. package/docs/api/interfaces/JackpotEligibleGame.md +19 -19
  159. package/docs/api/interfaces/JackpotHtmlTemplate.md +3 -3
  160. package/docs/api/interfaces/JackpotPot.md +11 -11
  161. package/docs/api/interfaces/JackpotPublicMeta.md +15 -15
  162. package/docs/api/interfaces/JackpotWinPush.md +15 -17
  163. package/docs/api/interfaces/JackpotWinnerHistory.md +5 -5
  164. package/docs/api/interfaces/JackpotsOptinRequest.md +13 -15
  165. package/docs/api/interfaces/JackpotsOptinResponse.md +19 -21
  166. package/docs/api/interfaces/JackpotsOptoutRequest.md +13 -15
  167. package/docs/api/interfaces/JackpotsOptoutResponse.md +19 -21
  168. package/docs/api/interfaces/LeaderBoardDetailsT.md +16 -16
  169. package/docs/api/interfaces/LeaderBoardUserT.md +9 -9
  170. package/docs/api/interfaces/LeaderBoardsRewardsT.md +3 -3
  171. package/docs/api/interfaces/Level.md +15 -15
  172. package/docs/api/interfaces/LevelPublicMeta.md +31 -24
  173. package/docs/api/interfaces/QuizEventMeta.md +34 -14
  174. package/docs/api/interfaces/Raffle.md +13 -13
  175. package/docs/api/interfaces/RaffleClaimPrizeRequest.md +13 -15
  176. package/docs/api/interfaces/RaffleClaimPrizeResponse.md +18 -20
  177. package/docs/api/interfaces/RaffleDraw.md +44 -44
  178. package/docs/api/interfaces/RaffleDrawPublicMeta.md +15 -15
  179. package/docs/api/interfaces/RaffleDrawRun.md +15 -15
  180. package/docs/api/interfaces/RaffleOptinRequest.md +17 -19
  181. package/docs/api/interfaces/RaffleOptinResponse.md +19 -21
  182. package/docs/api/interfaces/RafflePrize.md +31 -31
  183. package/docs/api/interfaces/RafflePrizePublicMeta.md +7 -7
  184. package/docs/api/interfaces/RafflePrizeWinner.md +15 -15
  185. package/docs/api/interfaces/RafflePublicMeta.md +16 -16
  186. package/docs/api/interfaces/RaffleTicket.md +3 -3
  187. package/docs/api/interfaces/SAWAcknowledgeSpinPushRequest.md +24 -26
  188. package/docs/api/interfaces/SAWDoAknowledgeRequest.md +13 -15
  189. package/docs/api/interfaces/SAWDoAknowledgeResponse.md +13 -15
  190. package/docs/api/interfaces/SAWDoSpinRequest.md +24 -26
  191. package/docs/api/interfaces/SAWDoSpinResponse.md +33 -35
  192. package/docs/api/interfaces/SAWEventSawPush.md +17 -19
  193. package/docs/api/interfaces/SAWGetTemplatesRequest.md +26 -28
  194. package/docs/api/interfaces/SAWGetTemplatesResponse.md +21 -23
  195. package/docs/api/interfaces/SAWPrize.md +52 -52
  196. package/docs/api/interfaces/SAWPrizeDropAknowledgeRequest.md +17 -19
  197. package/docs/api/interfaces/SAWPrizeDropAknowledgeResponse.md +13 -15
  198. package/docs/api/interfaces/SAWPrizeDropWinPush.md +21 -23
  199. package/docs/api/interfaces/SAWPrizeUI.md +78 -78
  200. package/docs/api/interfaces/SAWPrizesHistory.md +15 -15
  201. package/docs/api/interfaces/SAWSpinsCountPush.md +15 -17
  202. package/docs/api/interfaces/SAWTemplate.md +70 -63
  203. package/docs/api/interfaces/SAWTemplateUI.md +155 -150
  204. package/docs/api/interfaces/SAWWinningHistoryRequest.md +21 -23
  205. package/docs/api/interfaces/SAWWinningHistoryResponse.md +23 -25
  206. package/docs/api/interfaces/StoreCategory.md +5 -5
  207. package/docs/api/interfaces/StoreCategoryPublicMeta.md +5 -5
  208. package/docs/api/interfaces/StoreItem.md +19 -19
  209. package/docs/api/interfaces/StoreItemPublicMeta.md +51 -51
  210. package/docs/api/interfaces/TAchCategory.md +5 -5
  211. package/docs/api/interfaces/TActivityLog.md +16 -16
  212. package/docs/api/interfaces/TAvatarCustomized.md +27 -0
  213. package/docs/api/interfaces/TAvatarDefinition.md +101 -0
  214. package/docs/api/interfaces/TAvatarPrompt.md +44 -0
  215. package/docs/api/interfaces/TBonus.md +22 -22
  216. package/docs/api/interfaces/TBuyStoreItemResult.md +3 -3
  217. package/docs/api/interfaces/TClaimBonusResult.md +6 -6
  218. package/docs/api/interfaces/TClan.md +79 -0
  219. package/docs/api/interfaces/TClanInfo.md +111 -0
  220. package/docs/api/interfaces/TClanJoinResult.md +15 -0
  221. package/docs/api/interfaces/TClanTournamentPlayers.md +71 -0
  222. package/docs/api/interfaces/TClans.md +27 -0
  223. package/docs/api/interfaces/TGetJackpotEligibleGamesResponse.md +1 -1
  224. package/docs/api/interfaces/TGetTranslations.md +3 -3
  225. package/docs/api/interfaces/TInboxMessage.md +13 -13
  226. package/docs/api/interfaces/TInboxMessageBody.md +28 -16
  227. package/docs/api/interfaces/TLevel.md +21 -23
  228. package/docs/api/interfaces/TLevelCurrent.md +32 -34
  229. package/docs/api/interfaces/TMiniGamePlayBatchResult.md +12 -12
  230. package/docs/api/interfaces/TMiniGamePlayResult.md +5 -5
  231. package/docs/api/interfaces/TMiniGamePrize.md +83 -83
  232. package/docs/api/interfaces/TMiniGameTemplate.md +81 -81
  233. package/docs/api/interfaces/TMissionClaimRewardResult.md +3 -3
  234. package/docs/api/interfaces/TMissionOptInResult.md +3 -3
  235. package/docs/api/interfaces/TMissionOrBadge.md +110 -110
  236. package/docs/api/interfaces/TMissionOrBadgeTask.md +15 -15
  237. package/docs/api/interfaces/TRaffle.md +25 -25
  238. package/docs/api/interfaces/TRaffleDraw.md +61 -61
  239. package/docs/api/interfaces/TRaffleDrawRun.md +39 -39
  240. package/docs/api/interfaces/TRaffleOptinResponse.md +4 -4
  241. package/docs/api/interfaces/TRafflePrize.md +35 -35
  242. package/docs/api/interfaces/TRafflePrizeWinner.md +13 -13
  243. package/docs/api/interfaces/TRaffleTicket.md +3 -3
  244. package/docs/api/interfaces/TSawHistory.md +15 -15
  245. package/docs/api/interfaces/TSegmentCheckResult.md +3 -3
  246. package/docs/api/interfaces/TSetAvatarResult.md +19 -0
  247. package/docs/api/interfaces/TStoreCategory.md +5 -5
  248. package/docs/api/interfaces/TStoreItem.md +77 -77
  249. package/docs/api/interfaces/TTournament.md +165 -97
  250. package/docs/api/interfaces/TTournamentDetailed.md +378 -140
  251. package/docs/api/interfaces/TTournamentRegistrationResult.md +3 -3
  252. package/docs/api/interfaces/TUICustomSection.md +52 -52
  253. package/docs/api/interfaces/TUserProfile.md +32 -32
  254. package/docs/api/interfaces/Tournament.md +87 -81
  255. package/docs/api/interfaces/TournamentPlayer.md +18 -18
  256. package/docs/api/interfaces/TournamentPrize.md +17 -17
  257. package/docs/api/interfaces/TournamentPublicMeta.md +47 -47
  258. package/docs/api/interfaces/TransformedRaffleClaimPrizeResponse.md +4 -4
  259. package/docs/api/interfaces/UICustomSection.md +50 -50
  260. package/docs/api/interfaces/UserAchievement.md +101 -101
  261. package/docs/api/interfaces/UserAchievementTask.md +38 -38
  262. package/docs/api/interfaces/UserLevelExtraCountersT.md +5 -5
  263. package/docs/api/type-aliases/TournamentRegistrationTypeName.md +3 -0
  264. package/docs/api/variables/AllRoundsGameBoardID.md +5 -0
  265. package/docs/api/variables/PrizeModifiersKeysNames.md +37 -0
  266. package/docs/api/variables/SAWWinSoundFiles.md +21 -0
  267. package/package.json +1 -1
  268. package/src/Base/ClassId.ts +12 -0
  269. package/src/Clans/Clan.ts +18 -0
  270. package/src/Clans/GetClanInfoRequest.ts +6 -0
  271. package/src/Clans/GetClanInfoResponse.ts +24 -0
  272. package/src/Clans/GetClanListRequest.ts +5 -0
  273. package/src/Clans/GetClanListResponse.ts +10 -0
  274. package/src/Clans/JoinClanRequest.ts +6 -0
  275. package/src/Clans/JoinClanResponse.ts +6 -0
  276. package/src/Clans/index.ts +7 -0
  277. package/src/SmarticoAPI.ts +95 -0
  278. package/src/SmarticoLib/index.ts +163 -0
  279. package/src/Tournaments/GetClanTournamentPlayersRequest.ts +7 -0
  280. package/src/Tournaments/GetClanTournamentPlayersResponse.ts +58 -0
  281. package/src/Tournaments/GetTournamentInfoResponse.ts +52 -0
  282. package/src/Tournaments/Tournament.ts +2 -0
  283. package/src/Tournaments/TournamentClan.ts +30 -0
  284. package/src/Tournaments/index.ts +3 -0
  285. package/src/WSAPI/WSAPI.ts +61 -2
  286. package/src/WSAPI/WSAPITypes.ts +131 -0
  287. package/src/index.ts +2 -1
  288. package/tsconfig.json +5 -3
  289. package/docs/api/.nojekyll +0 -1
  290. package/docs/api/enums/AchCustomLayoutTheme.md +0 -25
  291. package/docs/api/enums/AchCustomSectionType.md +0 -79
  292. package/docs/api/enums/AchievementStatus.md +0 -49
  293. package/docs/api/enums/ActivityTypeLimited.md +0 -115
  294. package/docs/api/enums/BonusStatus.md +0 -37
  295. package/docs/api/enums/GamePickSportType.md +0 -375
  296. package/docs/api/enums/InboxMessageType.md +0 -55
  297. package/docs/api/enums/LiquidEntityData.md +0 -73
  298. package/docs/api/enums/MiniGamePrizeTypeName.md +0 -67
  299. package/docs/api/enums/PointChangeSourceType.md +0 -109
  300. package/docs/api/enums/PrizeModifiers.md +0 -49
  301. package/docs/api/enums/QuizAnswersValueType.md +0 -121
  302. package/docs/api/enums/SAWAcknowledgeTypeName.md +0 -25
  303. package/docs/api/enums/SAWBuyInType.md +0 -31
  304. package/docs/api/enums/SAWBuyInTypeName.md +0 -37
  305. package/docs/api/enums/SAWGPMarketType.md +0 -157
  306. package/docs/api/enums/SAWGameType.md +0 -73
  307. package/docs/api/enums/SAWGameTypeName.md +0 -79
  308. package/docs/api/enums/SAWPrizeType.md +0 -61
  309. package/docs/api/enums/SAWWinSoundType.md +0 -31
  310. package/docs/api/enums/StoreItemType.md +0 -37
  311. package/docs/api/enums/StoreItemTypeName.md +0 -43
  312. package/docs/api/enums/TournamentInstanceStatus.md +0 -43
  313. package/docs/api/enums/TournamentRegistrationError.md +0 -55
  314. package/docs/api/enums/TournamentRegistrationStatus.md +0 -43
  315. package/docs/api/enums/TournamentRegistrationStatusName.md +0 -49
  316. package/docs/api/enums/TournamentRegistrationType.md +0 -43
@@ -92,6 +92,14 @@ var ClassId;
92
92
  ClassId[ClassId["GET_AVATARS_CUSTOMIZED_RESPONSE"] = 563] = "GET_AVATARS_CUSTOMIZED_RESPONSE";
93
93
  ClassId[ClassId["GET_AVATAR_PROMPTS_REQUEST"] = 564] = "GET_AVATAR_PROMPTS_REQUEST";
94
94
  ClassId[ClassId["GET_AVATAR_PROMPTS_RESPONSE"] = 565] = "GET_AVATAR_PROMPTS_RESPONSE";
95
+ ClassId[ClassId["GET_CLAN_LIST_REQUEST"] = 570] = "GET_CLAN_LIST_REQUEST";
96
+ ClassId[ClassId["GET_CLAN_LIST_RESPONSE"] = 571] = "GET_CLAN_LIST_RESPONSE";
97
+ ClassId[ClassId["GET_CLAN_INFO_REQUEST"] = 572] = "GET_CLAN_INFO_REQUEST";
98
+ ClassId[ClassId["GET_CLAN_INFO_RESPONSE"] = 573] = "GET_CLAN_INFO_RESPONSE";
99
+ ClassId[ClassId["JOIN_CLAN_REQUEST"] = 574] = "JOIN_CLAN_REQUEST";
100
+ ClassId[ClassId["JOIN_CLAN_RESPONSE"] = 575] = "JOIN_CLAN_RESPONSE";
101
+ ClassId[ClassId["GET_CLAN_TOURNAMENT_PLAYERS_REQUEST"] = 576] = "GET_CLAN_TOURNAMENT_PLAYERS_REQUEST";
102
+ ClassId[ClassId["GET_CLAN_TOURNAMENT_PLAYERS_RESPONSE"] = 577] = "GET_CLAN_TOURNAMENT_PLAYERS_RESPONSE";
95
103
  /*
96
104
  !Important, if adding new messages that are 'acting' on behalf of the client,
97
105
  you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
@@ -1668,6 +1676,27 @@ var MissionCategory;
1668
1676
  MissionCategory[MissionCategory["Missed"] = 5] = "Missed";
1669
1677
  })(MissionCategory || (MissionCategory = {}));
1670
1678
 
1679
+ const clanTournamentPlayersTransform = response => {
1680
+ return {
1681
+ clan_id: response.clan_id,
1682
+ clan_public_meta: {
1683
+ name: response.clan_public_meta.name,
1684
+ image_url: response.clan_public_meta.image_url
1685
+ },
1686
+ players: (response.players || []).map(p => ({
1687
+ user_id: p.user_id,
1688
+ public_username: p.public_username,
1689
+ avatar_id: p.avatar_id,
1690
+ avatar_real_id: p.avatar_real_id,
1691
+ avatar_url: p.avatar_url,
1692
+ position: p.position,
1693
+ scores: p.scores,
1694
+ is_me: p.is_me,
1695
+ clean_ext_user_id: p.clean_ext_user_id
1696
+ }))
1697
+ };
1698
+ };
1699
+
1671
1700
  var TournamentRegistrationType;
1672
1701
  (function (TournamentRegistrationType) {
1673
1702
  TournamentRegistrationType[TournamentRegistrationType["AUTO"] = 1] = "AUTO";
@@ -1884,6 +1913,7 @@ const TournamentItemsTransform = items => {
1884
1913
  };
1885
1914
 
1886
1915
  const tournamentInfoItemTransform = t => {
1916
+ var _t$tournamentInfo;
1887
1917
  const response = _extends({}, TournamentItemsTransform([t.tournamentInfo.tournamentLobbyInfo])[0], {
1888
1918
  related_games: (t.tournamentInfo.tournamentLobbyInfo.related_games || []).map((g, i) => ({
1889
1919
  ext_game_id: g.ext_game_id,
@@ -1906,6 +1936,47 @@ const tournamentInfoItemTransform = t => {
1906
1936
  if (t.userPosition) {
1907
1937
  response.me = TournamentUtils.getPlayerTransformed(t.userPosition, true);
1908
1938
  }
1939
+ if ((_t$tournamentInfo = t.tournamentInfo) != null && (_t$tournamentInfo = _t$tournamentInfo.tournamentLobbyInfo) != null && _t$tournamentInfo.isClanBased) {
1940
+ var _t$userClanId;
1941
+ response.is_clan_based = true;
1942
+ response.user_clan_id = (_t$userClanId = t.userClanId) != null ? _t$userClanId : null;
1943
+ response.clan_leaderboard = t.clanLeaderboard ? t.clanLeaderboard.map(entry => ({
1944
+ clan_id: entry.clan_id,
1945
+ public_meta: {
1946
+ name: entry.public_meta.name,
1947
+ description: entry.public_meta.description,
1948
+ image_url: entry.public_meta.image_url
1949
+ },
1950
+ position: entry.position,
1951
+ total_score: entry.total_score,
1952
+ contributing_members: entry.contributing_members
1953
+ })) : null;
1954
+ response.clan_prize_structure = t.clanPrizes ? t.clanPrizes.map(entry => ({
1955
+ clan_place: entry.clan_place,
1956
+ prize_type_id: entry.prize_type_id,
1957
+ prize_pool_amount: entry.prize_pool_amount,
1958
+ activity_type_id: entry.activity_type_id,
1959
+ details_json: entry.details_json,
1960
+ public_meta: entry.public_meta ? {
1961
+ name: entry.public_meta.name,
1962
+ description: entry.public_meta.description,
1963
+ image_url: entry.public_meta.image_url
1964
+ } : null,
1965
+ tiers: (entry.tiers || []).map(tier => ({
1966
+ player_place_from: tier.player_place_from,
1967
+ player_place_to: tier.player_place_to,
1968
+ pool_amount: tier.pool_amount,
1969
+ distribution_type: tier.distribution_type,
1970
+ activity_type_id: tier.activity_type_id,
1971
+ details_json: tier.details_json,
1972
+ public_meta: tier.public_meta ? {
1973
+ name: tier.public_meta.name,
1974
+ description: tier.public_meta.description,
1975
+ image_url: tier.public_meta.image_url
1976
+ } : null
1977
+ }))
1978
+ })) : null;
1979
+ }
1909
1980
  return response;
1910
1981
  };
1911
1982
 
@@ -2228,6 +2299,7 @@ var onUpdateContextKey;
2228
2299
  onUpdateContextKey["Pots"] = "Pots";
2229
2300
  onUpdateContextKey["CustomSections"] = "customSections";
2230
2301
  onUpdateContextKey["Bonuses"] = "bonuses";
2302
+ onUpdateContextKey["Clans"] = "clans";
2231
2303
  onUpdateContextKey["SAWHistory"] = "sawHistory";
2232
2304
  onUpdateContextKey["JackpotWinners"] = "jackpotWinners";
2233
2305
  onUpdateContextKey["Raffles"] = "raffles";
@@ -2784,6 +2856,37 @@ class WSAPI {
2784
2856
  }
2785
2857
  return OCache.use(onUpdateContextKey.TournamentList, ECacheContext.WSAPI, () => this.api.tournamentsGetLobbyT(this.userExtId), CACHE_DATA_SEC);
2786
2858
  }
2859
+ /**
2860
+ * Returns clans list payload for the current user.
2861
+ * The returned payload is cached for 30 seconds.
2862
+ * If onUpdate is passed, it will be called when clans response is received.
2863
+ *
2864
+ * **Visitor mode: not supported**
2865
+ */
2866
+ async getClans({
2867
+ onUpdate
2868
+ } = {}) {
2869
+ if (onUpdate) {
2870
+ this.onUpdateCallback.set(onUpdateContextKey.Clans, onUpdate);
2871
+ }
2872
+ return OCache.use(onUpdateContextKey.Clans, ECacheContext.WSAPI, () => this.api.clansGetListT(this.userExtId), CACHE_DATA_SEC);
2873
+ }
2874
+ /**
2875
+ * Returns detailed information for a specific clan including its members.
2876
+ *
2877
+ * **Visitor mode: not supported**
2878
+ */
2879
+ async getClanInfo(clanId) {
2880
+ return this.api.clansGetInfoT(this.userExtId, clanId);
2881
+ }
2882
+ /**
2883
+ * Joins a clan on behalf of the current user.
2884
+ *
2885
+ * **Visitor mode: not supported**
2886
+ */
2887
+ async joinClan(clanId) {
2888
+ return this.api.clanJoin(this.userExtId, clanId);
2889
+ }
2787
2890
  /**
2788
2891
  * Returns detailed information for a specific tournament instance; the response includes tournament info and the leaderboard of players
2789
2892
  *
@@ -2812,6 +2915,14 @@ class WSAPI {
2812
2915
  async getTournamentInstanceInfo(tournamentInstanceId) {
2813
2916
  return this.api.tournamentsGetInfoT(this.userExtId, tournamentInstanceId);
2814
2917
  }
2918
+ /**
2919
+ * Returns the players of a specific clan in a clan-based tournament.
2920
+ *
2921
+ * **Visitor mode: not supported**
2922
+ */
2923
+ async getClanTournamentPlayers(tournamentInstanceId, clanId) {
2924
+ return this.api.clanTournamentGetPlayers(this.userExtId, tournamentInstanceId, clanId);
2925
+ }
2815
2926
  /**
2816
2927
  * Requests registration for the specified tournament instance. Returns the err_code.
2817
2928
  *
@@ -2979,6 +3090,7 @@ class WSAPI {
2979
3090
  *
2980
3091
  * **Visitor mode: not supported**
2981
3092
  *
3093
+ * @param params - Event parameters
2982
3094
  * @param params.engagement_uid - Unique identifier for the engagement
2983
3095
  * @param params.activityType - Type of engagement activity (Popup=30, Inbox=31)
2984
3096
  */
@@ -3005,6 +3117,7 @@ class WSAPI {
3005
3117
  *
3006
3118
  * **Visitor mode: not supported**
3007
3119
  *
3120
+ * @param params - Event parameters
3008
3121
  * @param params.engagement_uid - Unique identifier for the engagement
3009
3122
  * @param params.activityType - Type of engagement activity (Popup=30, Inbox=31)
3010
3123
  * @param params.action - Optional action/deeplink that was triggered by the user interaction
@@ -3041,6 +3154,7 @@ class WSAPI {
3041
3154
  *
3042
3155
  * **Visitor mode: not supported**
3043
3156
  *
3157
+ * @param params - Activity log parameters
3044
3158
  * @param params.startTimeSeconds - Start time in seconds (epoch timestamp)
3045
3159
  * @param params.endTimeSeconds - End time in seconds (epoch timestamp)
3046
3160
  * @param params.from - Start index of records to return
@@ -3534,6 +3648,10 @@ class WSAPI {
3534
3648
  const payload = await this.api.tournamentsGetLobbyT(this.userExtId);
3535
3649
  this.updateEntity(onUpdateContextKey.TournamentList, payload);
3536
3650
  }
3651
+ async updateClans() {
3652
+ const payload = await this.api.clansGetListT(this.userExtId);
3653
+ this.updateEntity(onUpdateContextKey.Clans, payload);
3654
+ }
3537
3655
  async updateStorePurchasedItems() {
3538
3656
  const payload = await this.api.storeGetPurchasedItemsT(this.userExtId, 20, 0);
3539
3657
  this.updateEntity(onUpdateContextKey.StoreHistory, payload);
@@ -3681,6 +3799,7 @@ class WSAPI {
3681
3799
  *
3682
3800
  * **Visitor mode: not supported**
3683
3801
  *
3802
+ * @param params - Jackpot winners parameters
3684
3803
  * @param params.jp_template_id - Jackpot template id (required; throws if missing)
3685
3804
  * @param params.limit - Page size (server default 20 when omitted)
3686
3805
  * @param params.offset - Offset into the winner list
@@ -4682,6 +4801,63 @@ class SmarticoAPI {
4682
4801
  async tournamentsGetLobbyT(user_ext_id) {
4683
4802
  return TournamentItemsTransform((await this.tournamentsGetLobby(user_ext_id)).tournaments);
4684
4803
  }
4804
+ async clansGetList(user_ext_id, force_language) {
4805
+ const message = this.buildMessage(user_ext_id, ClassId.GET_CLAN_LIST_REQUEST);
4806
+ return await this.send(message, ClassId.GET_CLAN_LIST_RESPONSE, force_language);
4807
+ }
4808
+ async clansGetListT(user_ext_id) {
4809
+ const response = await this.clansGetList(user_ext_id);
4810
+ return {
4811
+ clans: response.clans,
4812
+ user_clan_id: response.user_clan_id,
4813
+ cooldown_until: response.cooldown_until
4814
+ };
4815
+ }
4816
+ async clansGetInfo(user_ext_id, clanId, force_language) {
4817
+ const message = this.buildMessage(user_ext_id, ClassId.GET_CLAN_INFO_REQUEST, {
4818
+ clan_id: clanId
4819
+ });
4820
+ return await this.send(message, ClassId.GET_CLAN_INFO_RESPONSE, force_language);
4821
+ }
4822
+ async clansGetInfoT(user_ext_id, clanId, force_language) {
4823
+ var _response$entry_fee_c, _response$entry_fee_a, _response$cooldown_un;
4824
+ const response = await this.clansGetInfo(user_ext_id, clanId, force_language);
4825
+ const c = response.clan_info;
4826
+ return {
4827
+ clan_id: c.clan_id,
4828
+ public_meta: c.public_meta,
4829
+ member_count: c.member_count,
4830
+ capacity_limit: c.capacity_limit,
4831
+ entry_fee_currency_type_id: (_response$entry_fee_c = response.entry_fee_currency_type_id) != null ? _response$entry_fee_c : c.entry_fee_currency_type_id,
4832
+ entry_fee_amount: (_response$entry_fee_a = response.entry_fee_amount) != null ? _response$entry_fee_a : c.entry_fee_amount,
4833
+ rating_position: c.rating_position,
4834
+ rating_score: c.rating_score,
4835
+ cooldown_until: (_response$cooldown_un = response.cooldown_until) != null ? _response$cooldown_un : null,
4836
+ members: (response.members || []).map(m => ({
4837
+ user_id: m.user_id,
4838
+ public_username: m.public_username,
4839
+ avatar_id: m.avatar_id,
4840
+ avatar_real_id: m.avatar_real_id,
4841
+ avatar_url: CoreUtils.avatarUrl(m.avatar_id, this.avatarDomain),
4842
+ position: m.position,
4843
+ contribution_score: m.contribution_score,
4844
+ is_me: m.is_me,
4845
+ clean_ext_user_id: m.clean_ext_user_id
4846
+ }))
4847
+ };
4848
+ }
4849
+ async clanJoin(user_ext_id, clanId, joinSourceId = 0) {
4850
+ var _response$errCode, _response$errMsg;
4851
+ const message = this.buildMessage(user_ext_id, ClassId.JOIN_CLAN_REQUEST, {
4852
+ clan_id: clanId,
4853
+ join_source_id: joinSourceId
4854
+ });
4855
+ const response = await this.send(message, ClassId.JOIN_CLAN_RESPONSE);
4856
+ return {
4857
+ errCode: (_response$errCode = response.errCode) != null ? _response$errCode : 0,
4858
+ errMsg: (_response$errMsg = response.errMsg) != null ? _response$errMsg : ''
4859
+ };
4860
+ }
4685
4861
  async tournamentsGetInfo(user_ext_id, tournamentInstanceId, force_language) {
4686
4862
  var _response$userPositio, _response$tournamentI;
4687
4863
  const message = this.buildMessage(user_ext_id, ClassId.GET_TOURNAMENT_INFO_REQUEST, {
@@ -4705,6 +4881,21 @@ class SmarticoAPI {
4705
4881
  const response = await this.tournamentsGetInfo(user_ext_id, tournamentInstanceId);
4706
4882
  return tournamentInfoItemTransform(response);
4707
4883
  }
4884
+ async clanTournamentGetPlayers(user_ext_id, tournamentInstanceId, clanId, force_language) {
4885
+ var _response$players;
4886
+ const message = this.buildMessage(user_ext_id, ClassId.GET_CLAN_TOURNAMENT_PLAYERS_REQUEST, {
4887
+ tournamentInstanceId,
4888
+ clanId,
4889
+ forceLanguage: force_language
4890
+ });
4891
+ const response = await this.send(message, ClassId.GET_CLAN_TOURNAMENT_PLAYERS_RESPONSE, force_language);
4892
+ if ((_response$players = response.players) != null && _response$players.length) {
4893
+ response.players.forEach(p => {
4894
+ p.avatar_url = CoreUtils.avatarUrl(p.avatar_id, this.avatarDomain);
4895
+ });
4896
+ }
4897
+ return clanTournamentPlayersTransform(response);
4898
+ }
4708
4899
  async leaderboardGet(user_ext_id, period_type_id, prevPeriod = false, force_language) {
4709
4900
  var _response$map$boardKe, _response$map$boardKe2;
4710
4901
  const message = this.buildMessage(user_ext_id, ClassId.GET_LEADERS_BOARD_REQUEST, {
@@ -5553,5 +5744,5 @@ const AvatarCustomizeErrorMessage = {
5553
5744
  [AvatarCustomizeErrorCode.AVATAR_LABEL_LIMIT]: 'The custom avatars are not available, please try again later'
5554
5745
  };
5555
5746
 
5556
- export { AchCategoryTransform, AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter, AchievementAvailabilityStatus, AchievementStatus, AchievementTaskType, AchievementType, ActivityLogTransform, ActivityTypeLimited, AnalyticsInboxSubScreenNameId, AnalyticsInterfaceType, AnalyticsScreenNameId, AnalyticsTournamentsLobbySubScreenNameId, AttemptPeriodType, AvatarCustomizeErrorCode, AvatarCustomizeErrorMessage, BadgesTimeLimitStates, BonusItemsTransform, BonusStatus, BuyStoreItemErrorCode, ClassId, CookieStore, CoreUtils, ECacheContext, GetJackpotEligibleGamesResponseTransform, GetJackpotWinnersResponseTransform, GetLevelMapResponseTransform, InboxCategories, InboxMessageBodyTransform, InboxMessageType, InboxMessagesTransform, InboxReadStatus, JackPotTemparature, JackpotContributionType, JackpotType, LeaderBoardPeriodType, LiquidEntityData, MiniGamePrizeTypeName, MiniGamePrizeTypeNamed, MissionCategory, MissionUtils, OCache, OpenLinksType, PointChangeSourceType, PrizeModifiers, PrizeModifiersKeysNames, PublicLabelSettings, QuizAnswersValueType, QuizMarketPerSport, QuizSportType, RaffleDrawInstanceState, RaffleDrawTypeExecution, RaffleTicketCapVisualization, SAWAcknowledgeType, SAWAcknowledgeTypeName, SAWAcknowledgeTypeNamed, SAWAskForUsername, SAWBuyInType, SAWBuyInTypeName, SAWBuyInTypeNamed, SAWExposeUserSpinId, SAWExposeUserSpinIdName, SAWExposeUserSpinIdNamed, SAWGPMarketType, SAWGameDifficultyType, SAWGameDifficultyTypeName, SAWGameLayout, SAWGameLayoutName, SAWGameLayoutNamed, SAWGameType, SAWGameTypeName, SAWGameTypeNamed, SAWHistoryTransform, SAWPrizeType, SAWSpinErrorCode, SAWTemplatesTransform, SAWUtils, SAWWheelLayout, SAWWinSoundFiles, SAWWinSoundType, SawGameDifficultyTypeNamed, ScheduledMissionType, SmarticoAPI, StoreCategoryTransform, StoreItemPurchaseType, StoreItemPurchasedTransform, StoreItemTransform, StoreItemType, StoreItemTypeName, StoreItemTypeNamed, TournamentInstanceStatus, TournamentInstanceStatusName, TournamentItemsTransform, TournamentRegistrationError, TournamentRegistrationStatus, TournamentRegistrationStatusName, TournamentRegistrationStatusNamed, TournamentRegistrationType, TournamentRegistrationTypeGetName, TournamentType, TournamentUtils, TranslationArea, UICustomSectionTransform, UserAchievementTransform, UserBalanceType, WSAPI, avatarCustomizedTransform, avatarDefinitionTransform, avatarPromptTransform, drawRunHistoryTransform, drawRunTransform, drawTransform, enrichUserAchievementsWithBadgeState, getLeaderBoardTransform, marketsInfo, prizeTransform, quizAnswerAwayTeamReplacementText, quizAnswerHomeTeamReplacementText, quizAnswersTrKeys, quizDrawReplacementText, quizEvenReplacementText, quizNoGoalsReplacementText, quizNoReplacementText, quizOddReplacementText, quizOrReplacementText, quizSupportedSports, quizYesReplacementText, raffleClaimPrizeResponseTransform, raffleTransform, ticketsTransform, tournamentInfoItemTransform, winnersTransform };
5747
+ export { AchCategoryTransform, AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter, AchievementAvailabilityStatus, AchievementStatus, AchievementTaskType, AchievementType, ActivityLogTransform, ActivityTypeLimited, AnalyticsInboxSubScreenNameId, AnalyticsInterfaceType, AnalyticsScreenNameId, AnalyticsTournamentsLobbySubScreenNameId, AttemptPeriodType, AvatarCustomizeErrorCode, AvatarCustomizeErrorMessage, BadgesTimeLimitStates, BonusItemsTransform, BonusStatus, BuyStoreItemErrorCode, ClassId, CookieStore, CoreUtils, ECacheContext, GetJackpotEligibleGamesResponseTransform, GetJackpotWinnersResponseTransform, GetLevelMapResponseTransform, InboxCategories, InboxMessageBodyTransform, InboxMessageType, InboxMessagesTransform, InboxReadStatus, JackPotTemparature, JackpotContributionType, JackpotType, LeaderBoardPeriodType, LiquidEntityData, MiniGamePrizeTypeName, MiniGamePrizeTypeNamed, MissionCategory, MissionUtils, OCache, OpenLinksType, PointChangeSourceType, PrizeModifiers, PrizeModifiersKeysNames, PublicLabelSettings, QuizAnswersValueType, QuizMarketPerSport, QuizSportType, RaffleDrawInstanceState, RaffleDrawTypeExecution, RaffleTicketCapVisualization, SAWAcknowledgeType, SAWAcknowledgeTypeName, SAWAcknowledgeTypeNamed, SAWAskForUsername, SAWBuyInType, SAWBuyInTypeName, SAWBuyInTypeNamed, SAWExposeUserSpinId, SAWExposeUserSpinIdName, SAWExposeUserSpinIdNamed, SAWGPMarketType, SAWGameDifficultyType, SAWGameDifficultyTypeName, SAWGameLayout, SAWGameLayoutName, SAWGameLayoutNamed, SAWGameType, SAWGameTypeName, SAWGameTypeNamed, SAWHistoryTransform, SAWPrizeType, SAWSpinErrorCode, SAWTemplatesTransform, SAWUtils, SAWWheelLayout, SAWWinSoundFiles, SAWWinSoundType, SawGameDifficultyTypeNamed, ScheduledMissionType, SmarticoAPI, StoreCategoryTransform, StoreItemPurchaseType, StoreItemPurchasedTransform, StoreItemTransform, StoreItemType, StoreItemTypeName, StoreItemTypeNamed, TournamentInstanceStatus, TournamentInstanceStatusName, TournamentItemsTransform, TournamentRegistrationError, TournamentRegistrationStatus, TournamentRegistrationStatusName, TournamentRegistrationStatusNamed, TournamentRegistrationType, TournamentRegistrationTypeGetName, TournamentType, TournamentUtils, TranslationArea, UICustomSectionTransform, UserAchievementTransform, UserBalanceType, WSAPI, avatarCustomizedTransform, avatarDefinitionTransform, avatarPromptTransform, clanTournamentPlayersTransform, drawRunHistoryTransform, drawRunTransform, drawTransform, enrichUserAchievementsWithBadgeState, getLeaderBoardTransform, marketsInfo, prizeTransform, quizAnswerAwayTeamReplacementText, quizAnswerHomeTeamReplacementText, quizAnswersTrKeys, quizDrawReplacementText, quizEvenReplacementText, quizNoGoalsReplacementText, quizNoReplacementText, quizOddReplacementText, quizOrReplacementText, quizSupportedSports, quizYesReplacementText, raffleClaimPrizeResponseTransform, raffleTransform, ticketsTransform, tournamentInfoItemTransform, winnersTransform };
5557
5748
  //# sourceMappingURL=index.modern.mjs.map