@smartico/public-api 0.0.363 → 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.
- package/dist/Base/ClassId.d.ts +8 -0
- package/dist/Clans/Clan.d.ts +17 -0
- package/dist/Clans/GetClanInfoRequest.d.ts +5 -0
- package/dist/Clans/GetClanInfoResponse.d.ts +22 -0
- package/dist/Clans/GetClanListRequest.d.ts +4 -0
- package/dist/Clans/GetClanListResponse.d.ts +9 -0
- package/dist/Clans/JoinClanRequest.d.ts +5 -0
- package/dist/Clans/JoinClanResponse.d.ts +5 -0
- package/dist/Clans/index.d.ts +7 -0
- package/dist/SmarticoAPI.d.ts +8 -1
- package/dist/SmarticoLib/index.d.ts +196 -0
- package/dist/Tournaments/GetClanTournamentPlayersRequest.d.ts +6 -0
- package/dist/Tournaments/GetClanTournamentPlayersResponse.d.ts +40 -0
- package/dist/Tournaments/GetTournamentInfoResponse.d.ts +11 -0
- package/dist/Tournaments/Tournament.d.ts +2 -0
- package/dist/Tournaments/TournamentClan.d.ts +27 -0
- package/dist/Tournaments/index.d.ts +3 -0
- package/dist/WSAPI/WSAPI.d.ts +34 -1
- package/dist/WSAPI/WSAPITypes.d.ts +144 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +583 -293
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +213 -5
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/README.md +99 -330
- package/docs/api/classes/SAWUtils.md +25 -11
- package/docs/api/classes/WSAPI.md +737 -379
- package/docs/api/enumerations/AchCustomLayoutTheme.md +25 -0
- package/docs/api/enumerations/AchCustomSectionType.md +79 -0
- package/docs/api/{enums → enumerations}/AchMissionsTabsOptions.md +5 -5
- package/docs/api/{enums → enumerations}/AchOverviewMissionsFilter.md +9 -9
- package/docs/api/{enums → enumerations}/AchievementAvailabilityStatus.md +29 -29
- package/docs/api/enumerations/AchievementStatus.md +49 -0
- package/docs/api/{enums → enumerations}/AchievementTaskType.md +3 -3
- package/docs/api/{enums → enumerations}/AchievementType.md +3 -3
- package/docs/api/enumerations/ActivityTypeLimited.md +115 -0
- package/docs/api/{enums → enumerations}/AttemptPeriodType.md +7 -7
- package/docs/api/{enums → enumerations}/BadgesTimeLimitStates.md +11 -11
- package/docs/api/{enums → enumerations}/BonusStatus-1.md +11 -11
- package/docs/api/enumerations/BonusStatus.md +37 -0
- package/docs/api/{enums → enumerations}/BuyStoreItemErrorCode.md +21 -21
- package/docs/api/{enums → enumerations}/GPRoundStatus.md +9 -9
- package/docs/api/{enums → enumerations}/GamePickMarketType.md +3 -3
- package/docs/api/{enums → enumerations}/GamePickResolutionType.md +7 -7
- package/docs/api/{enums → enumerations}/GamePickScoreType.md +3 -3
- package/docs/api/enumerations/GamePickSportType.md +375 -0
- package/docs/api/{enums → enumerations}/GameRoundOrderType.md +7 -7
- package/docs/api/{enums → enumerations}/InboxCategories.md +5 -5
- package/docs/api/enumerations/InboxMessageType.md +55 -0
- package/docs/api/{enums → enumerations}/InboxReadStatus.md +3 -3
- package/docs/api/{enums → enumerations}/JackPotTemparature.md +7 -7
- package/docs/api/{enums → enumerations}/JackpotContributionType.md +3 -3
- package/docs/api/{enums → enumerations}/JackpotType.md +3 -3
- package/docs/api/{enums → enumerations}/LeaderBoardPeriodType.md +5 -5
- package/docs/api/enumerations/LiquidEntityData.md +73 -0
- package/docs/api/enumerations/MiniGamePrizeTypeName.md +67 -0
- package/docs/api/{enums → enumerations}/OpenLinksType.md +3 -3
- package/docs/api/enumerations/PointChangeSourceType.md +109 -0
- package/docs/api/enumerations/PrizeModifiers.md +49 -0
- package/docs/api/enumerations/QuizAnswersValueType.md +121 -0
- package/docs/api/{enums → enumerations}/RaffleDrawInstanceState.md +5 -5
- package/docs/api/{enums → enumerations}/RaffleDrawTypeExecution.md +5 -5
- package/docs/api/{enums → enumerations}/RaffleTicketCapVisualization.md +5 -5
- package/docs/api/{enums → enumerations}/SAWAcknowledgeType.md +7 -7
- package/docs/api/enumerations/SAWAcknowledgeTypeName.md +25 -0
- package/docs/api/{enums → enumerations}/SAWAskForUsername.md +3 -3
- package/docs/api/enumerations/SAWBuyInType.md +31 -0
- package/docs/api/enumerations/SAWBuyInTypeName.md +37 -0
- package/docs/api/{enums → enumerations}/SAWExposeUserSpinId.md +3 -3
- package/docs/api/{enums → enumerations}/SAWExposeUserSpinIdName.md +3 -3
- package/docs/api/enumerations/SAWGPMarketType.md +157 -0
- package/docs/api/{enums → enumerations}/SAWGameDifficultyType.md +5 -5
- package/docs/api/{enums → enumerations}/SAWGameDifficultyTypeName.md +5 -5
- package/docs/api/{enums → enumerations}/SAWGameLayout.md +3 -3
- package/docs/api/{enums → enumerations}/SAWGameLayoutName.md +3 -3
- package/docs/api/enumerations/SAWGameType.md +73 -0
- package/docs/api/enumerations/SAWGameTypeName.md +79 -0
- package/docs/api/enumerations/SAWPrizeType.md +61 -0
- package/docs/api/{enums → enumerations}/SAWSpinErrorCode.md +19 -19
- package/docs/api/{enums → enumerations}/SAWWheelLayout.md +7 -7
- package/docs/api/enumerations/SAWWinSoundType.md +31 -0
- package/docs/api/{enums → enumerations}/ScheduledMissionType.md +5 -5
- package/docs/api/{enums → enumerations}/StoreItemPurchaseType.md +5 -5
- package/docs/api/enumerations/StoreItemType.md +37 -0
- package/docs/api/enumerations/StoreItemTypeName.md +43 -0
- package/docs/api/enumerations/TournamentInstanceStatus.md +43 -0
- package/docs/api/enumerations/TournamentRegistrationError.md +55 -0
- package/docs/api/enumerations/TournamentRegistrationStatus.md +43 -0
- package/docs/api/enumerations/TournamentRegistrationStatusName.md +49 -0
- package/docs/api/enumerations/TournamentRegistrationType.md +43 -0
- package/docs/api/{enums → enumerations}/TournamentType.md +5 -5
- package/docs/api/{enums → enumerations}/UserBalanceType.md +5 -5
- package/docs/api/functions/AchCategoryTransform.md +13 -0
- package/docs/api/functions/BonusItemsTransform.md +13 -0
- package/docs/api/functions/InboxMessageBodyTransform.md +13 -0
- package/docs/api/functions/SAWHistoryTransform.md +13 -0
- package/docs/api/functions/SAWTemplatesTransform.md +13 -0
- package/docs/api/functions/StoreCategoryTransform.md +13 -0
- package/docs/api/functions/StoreItemTransform.md +13 -0
- package/docs/api/functions/StoreItemTypeNamed.md +13 -0
- package/docs/api/functions/TournamentInstanceStatusName.md +13 -0
- package/docs/api/functions/TournamentItemsTransform.md +13 -0
- package/docs/api/functions/UICustomSectionTransform.md +13 -0
- package/docs/api/functions/UserAchievementTransform.md +13 -0
- package/docs/api/functions/enrichUserAchievementsWithBadgeState.md +13 -0
- package/docs/api/functions/tournamentInfoItemTransform.md +13 -0
- package/docs/api/interfaces/AchCategory.md +5 -5
- package/docs/api/interfaces/AchCategoryPublicMeta.md +5 -5
- package/docs/api/interfaces/AchRelatedGame-1.md +50 -15
- package/docs/api/interfaces/AchRelatedGame.md +35 -16
- package/docs/api/interfaces/AchievementPublicMeta.md +65 -65
- package/docs/api/interfaces/AchievementTaskPublicMeta.md +16 -16
- package/docs/api/interfaces/AffectsProgress.md +7 -7
- package/docs/api/interfaces/Bonus.md +37 -37
- package/docs/api/interfaces/BonusMetaMap-1.md +2 -2
- package/docs/api/interfaces/BonusMetaMap.md +2 -2
- package/docs/api/interfaces/BonusTemplateMetaMap-1.md +8 -8
- package/docs/api/interfaces/BonusTemplateMetaMap.md +8 -8
- package/docs/api/interfaces/Clan.md +53 -0
- package/docs/api/interfaces/ClanLeaderboardEntry.md +31 -0
- package/docs/api/interfaces/ClanPrizeStructureEntry.md +45 -0
- package/docs/api/interfaces/ClanPrizeTier.md +43 -0
- package/docs/api/interfaces/ClanPublicMeta.md +19 -0
- package/docs/api/interfaces/GamePickBoardUser.md +17 -17
- package/docs/api/interfaces/GamePickEvent.md +40 -38
- package/docs/api/interfaces/GamePickEventMeta.md +79 -59
- package/docs/api/interfaces/GamePickGameInfo.md +5 -5
- package/docs/api/interfaces/GamePickRequestParams.md +10 -12
- package/docs/api/interfaces/GamePickRound.md +96 -98
- package/docs/api/interfaces/GamePickRoundBase.md +58 -61
- package/docs/api/interfaces/GamePickRoundBoard.md +88 -90
- package/docs/api/interfaces/GamePickRoundPublicMeta.md +26 -26
- package/docs/api/interfaces/GamePickRoundRequestParams.md +15 -17
- package/docs/api/interfaces/GamePickUserInfo.md +34 -34
- package/docs/api/interfaces/GamesApiResponse.md +11 -11
- package/docs/api/interfaces/GetCustomSectionsResponse.md +23 -25
- package/docs/api/interfaces/GetDrawRunRequest.md +21 -23
- package/docs/api/interfaces/GetDrawRunResponse.md +21 -23
- package/docs/api/interfaces/GetJackpotEligibleGamesRequest.md +13 -15
- package/docs/api/interfaces/GetJackpotEligibleGamesResponse.md +21 -23
- package/docs/api/interfaces/GetJackpotWinnersRequest.md +26 -28
- package/docs/api/interfaces/GetJackpotWinnersResponse.md +23 -25
- package/docs/api/interfaces/GetJackpotsPotsRequest.md +13 -15
- package/docs/api/interfaces/GetJackpotsPotsResponse.md +21 -23
- package/docs/api/interfaces/GetJackpotsRequest.md +17 -19
- package/docs/api/interfaces/GetJackpotsResponse.md +21 -23
- package/docs/api/interfaces/GetRaffleDrawRunsHistoryRequest.md +16 -18
- package/docs/api/interfaces/GetRaffleDrawRunsHistoryResponse.md +21 -23
- package/docs/api/interfaces/GetRafflesRequest.md +14 -16
- package/docs/api/interfaces/GetRafflesResponse.md +21 -23
- package/docs/api/interfaces/GetRelatedAchTourResponse.md +24 -26
- package/docs/api/interfaces/GetTournamentInfoResponse.md +68 -38
- package/docs/api/interfaces/InboxMarkMessageAction.md +3 -3
- package/docs/api/interfaces/InboxMessage.md +18 -18
- package/docs/api/interfaces/InboxMessageBody.md +37 -29
- package/docs/api/interfaces/JackPotWinner.md +11 -11
- package/docs/api/interfaces/JackpotDetails.md +23 -23
- package/docs/api/interfaces/JackpotEligibleGame.md +19 -19
- package/docs/api/interfaces/JackpotHtmlTemplate.md +3 -3
- package/docs/api/interfaces/JackpotPot.md +11 -11
- package/docs/api/interfaces/JackpotPublicMeta.md +15 -15
- package/docs/api/interfaces/JackpotWinPush.md +15 -17
- package/docs/api/interfaces/JackpotWinnerHistory.md +5 -5
- package/docs/api/interfaces/JackpotsOptinRequest.md +13 -15
- package/docs/api/interfaces/JackpotsOptinResponse.md +19 -21
- package/docs/api/interfaces/JackpotsOptoutRequest.md +13 -15
- package/docs/api/interfaces/JackpotsOptoutResponse.md +19 -21
- package/docs/api/interfaces/LeaderBoardDetailsT.md +16 -16
- package/docs/api/interfaces/LeaderBoardUserT.md +9 -9
- package/docs/api/interfaces/LeaderBoardsRewardsT.md +3 -3
- package/docs/api/interfaces/Level.md +15 -15
- package/docs/api/interfaces/LevelPublicMeta.md +31 -24
- package/docs/api/interfaces/QuizEventMeta.md +34 -14
- package/docs/api/interfaces/Raffle.md +13 -13
- package/docs/api/interfaces/RaffleClaimPrizeRequest.md +13 -15
- package/docs/api/interfaces/RaffleClaimPrizeResponse.md +18 -20
- package/docs/api/interfaces/RaffleDraw.md +44 -44
- package/docs/api/interfaces/RaffleDrawPublicMeta.md +15 -15
- package/docs/api/interfaces/RaffleDrawRun.md +15 -15
- package/docs/api/interfaces/RaffleOptinRequest.md +17 -19
- package/docs/api/interfaces/RaffleOptinResponse.md +19 -21
- package/docs/api/interfaces/RafflePrize.md +31 -31
- package/docs/api/interfaces/RafflePrizePublicMeta.md +7 -7
- package/docs/api/interfaces/RafflePrizeWinner.md +15 -15
- package/docs/api/interfaces/RafflePublicMeta.md +16 -16
- package/docs/api/interfaces/RaffleTicket.md +3 -3
- package/docs/api/interfaces/SAWAcknowledgeSpinPushRequest.md +24 -26
- package/docs/api/interfaces/SAWDoAknowledgeRequest.md +13 -15
- package/docs/api/interfaces/SAWDoAknowledgeResponse.md +13 -15
- package/docs/api/interfaces/SAWDoSpinRequest.md +24 -26
- package/docs/api/interfaces/SAWDoSpinResponse.md +33 -35
- package/docs/api/interfaces/SAWEventSawPush.md +17 -19
- package/docs/api/interfaces/SAWGetTemplatesRequest.md +26 -28
- package/docs/api/interfaces/SAWGetTemplatesResponse.md +21 -23
- package/docs/api/interfaces/SAWPrize.md +52 -52
- package/docs/api/interfaces/SAWPrizeDropAknowledgeRequest.md +17 -19
- package/docs/api/interfaces/SAWPrizeDropAknowledgeResponse.md +13 -15
- package/docs/api/interfaces/SAWPrizeDropWinPush.md +21 -23
- package/docs/api/interfaces/SAWPrizeUI.md +78 -78
- package/docs/api/interfaces/SAWPrizesHistory.md +15 -15
- package/docs/api/interfaces/SAWSpinsCountPush.md +15 -17
- package/docs/api/interfaces/SAWTemplate.md +70 -63
- package/docs/api/interfaces/SAWTemplateUI.md +155 -150
- package/docs/api/interfaces/SAWWinningHistoryRequest.md +21 -23
- package/docs/api/interfaces/SAWWinningHistoryResponse.md +23 -25
- package/docs/api/interfaces/StoreCategory.md +5 -5
- package/docs/api/interfaces/StoreCategoryPublicMeta.md +5 -5
- package/docs/api/interfaces/StoreItem.md +19 -19
- package/docs/api/interfaces/StoreItemPublicMeta.md +51 -51
- package/docs/api/interfaces/TAchCategory.md +5 -5
- package/docs/api/interfaces/TActivityLog.md +16 -16
- package/docs/api/interfaces/TAvatarCustomized.md +27 -0
- package/docs/api/interfaces/TAvatarDefinition.md +101 -0
- package/docs/api/interfaces/TAvatarPrompt.md +44 -0
- package/docs/api/interfaces/TBonus.md +22 -22
- package/docs/api/interfaces/TBuyStoreItemResult.md +3 -3
- package/docs/api/interfaces/TClaimBonusResult.md +6 -6
- package/docs/api/interfaces/TClan.md +79 -0
- package/docs/api/interfaces/TClanInfo.md +111 -0
- package/docs/api/interfaces/TClanJoinResult.md +15 -0
- package/docs/api/interfaces/TClanTournamentPlayers.md +71 -0
- package/docs/api/interfaces/TClans.md +27 -0
- package/docs/api/interfaces/TGetJackpotEligibleGamesResponse.md +1 -1
- package/docs/api/interfaces/TGetTranslations.md +3 -3
- package/docs/api/interfaces/TInboxMessage.md +13 -13
- package/docs/api/interfaces/TInboxMessageBody.md +28 -16
- package/docs/api/interfaces/TLevel.md +21 -23
- package/docs/api/interfaces/TLevelCurrent.md +32 -34
- package/docs/api/interfaces/TMiniGamePlayBatchResult.md +12 -12
- package/docs/api/interfaces/TMiniGamePlayResult.md +5 -5
- package/docs/api/interfaces/TMiniGamePrize.md +83 -83
- package/docs/api/interfaces/TMiniGameTemplate.md +81 -81
- package/docs/api/interfaces/TMissionClaimRewardResult.md +3 -3
- package/docs/api/interfaces/TMissionOptInResult.md +3 -3
- package/docs/api/interfaces/TMissionOrBadge.md +110 -110
- package/docs/api/interfaces/TMissionOrBadgeTask.md +15 -15
- package/docs/api/interfaces/TRaffle.md +25 -25
- package/docs/api/interfaces/TRaffleDraw.md +61 -61
- package/docs/api/interfaces/TRaffleDrawRun.md +39 -39
- package/docs/api/interfaces/TRaffleOptinResponse.md +4 -4
- package/docs/api/interfaces/TRafflePrize.md +35 -35
- package/docs/api/interfaces/TRafflePrizeWinner.md +13 -13
- package/docs/api/interfaces/TRaffleTicket.md +3 -3
- package/docs/api/interfaces/TSawHistory.md +15 -15
- package/docs/api/interfaces/TSegmentCheckResult.md +3 -3
- package/docs/api/interfaces/TSetAvatarResult.md +19 -0
- package/docs/api/interfaces/TStoreCategory.md +5 -5
- package/docs/api/interfaces/TStoreItem.md +77 -77
- package/docs/api/interfaces/TTournament.md +165 -97
- package/docs/api/interfaces/TTournamentDetailed.md +378 -140
- package/docs/api/interfaces/TTournamentRegistrationResult.md +3 -3
- package/docs/api/interfaces/TUICustomSection.md +52 -52
- package/docs/api/interfaces/TUserProfile.md +32 -32
- package/docs/api/interfaces/Tournament.md +87 -81
- package/docs/api/interfaces/TournamentPlayer.md +18 -18
- package/docs/api/interfaces/TournamentPrize.md +17 -17
- package/docs/api/interfaces/TournamentPublicMeta.md +47 -47
- package/docs/api/interfaces/TransformedRaffleClaimPrizeResponse.md +4 -4
- package/docs/api/interfaces/UICustomSection.md +50 -50
- package/docs/api/interfaces/UserAchievement.md +101 -101
- package/docs/api/interfaces/UserAchievementTask.md +38 -38
- package/docs/api/interfaces/UserLevelExtraCountersT.md +5 -5
- package/docs/api/type-aliases/TournamentRegistrationTypeName.md +3 -0
- package/docs/api/variables/AllRoundsGameBoardID.md +5 -0
- package/docs/api/variables/PrizeModifiersKeysNames.md +37 -0
- package/docs/api/variables/SAWWinSoundFiles.md +21 -0
- package/package.json +1 -1
- package/src/Base/ClassId.ts +12 -0
- package/src/Clans/Clan.ts +18 -0
- package/src/Clans/GetClanInfoRequest.ts +6 -0
- package/src/Clans/GetClanInfoResponse.ts +24 -0
- package/src/Clans/GetClanListRequest.ts +5 -0
- package/src/Clans/GetClanListResponse.ts +10 -0
- package/src/Clans/JoinClanRequest.ts +6 -0
- package/src/Clans/JoinClanResponse.ts +6 -0
- package/src/Clans/index.ts +7 -0
- package/src/Missions/MissionsUtils.ts +32 -4
- package/src/SmarticoAPI.ts +95 -0
- package/src/SmarticoLib/index.ts +163 -0
- package/src/Tournaments/GetClanTournamentPlayersRequest.ts +7 -0
- package/src/Tournaments/GetClanTournamentPlayersResponse.ts +58 -0
- package/src/Tournaments/GetTournamentInfoResponse.ts +52 -0
- package/src/Tournaments/Tournament.ts +2 -0
- package/src/Tournaments/TournamentClan.ts +30 -0
- package/src/Tournaments/index.ts +3 -0
- package/src/WSAPI/WSAPI.ts +61 -2
- package/src/WSAPI/WSAPITypes.ts +131 -0
- package/src/index.ts +2 -1
- package/tsconfig.json +5 -3
- package/docs/api/.nojekyll +0 -1
- package/docs/api/enums/AchCustomLayoutTheme.md +0 -25
- package/docs/api/enums/AchCustomSectionType.md +0 -79
- package/docs/api/enums/AchievementStatus.md +0 -49
- package/docs/api/enums/ActivityTypeLimited.md +0 -115
- package/docs/api/enums/BonusStatus.md +0 -37
- package/docs/api/enums/GamePickSportType.md +0 -375
- package/docs/api/enums/InboxMessageType.md +0 -55
- package/docs/api/enums/LiquidEntityData.md +0 -73
- package/docs/api/enums/MiniGamePrizeTypeName.md +0 -67
- package/docs/api/enums/PointChangeSourceType.md +0 -109
- package/docs/api/enums/PrizeModifiers.md +0 -49
- package/docs/api/enums/QuizAnswersValueType.md +0 -121
- package/docs/api/enums/SAWAcknowledgeTypeName.md +0 -25
- package/docs/api/enums/SAWBuyInType.md +0 -31
- package/docs/api/enums/SAWBuyInTypeName.md +0 -37
- package/docs/api/enums/SAWGPMarketType.md +0 -157
- package/docs/api/enums/SAWGameType.md +0 -73
- package/docs/api/enums/SAWGameTypeName.md +0 -79
- package/docs/api/enums/SAWPrizeType.md +0 -61
- package/docs/api/enums/SAWWinSoundType.md +0 -31
- package/docs/api/enums/StoreItemType.md +0 -37
- package/docs/api/enums/StoreItemTypeName.md +0 -43
- package/docs/api/enums/TournamentInstanceStatus.md +0 -43
- package/docs/api/enums/TournamentRegistrationError.md +0 -55
- package/docs/api/enums/TournamentRegistrationStatus.md +0 -43
- package/docs/api/enums/TournamentRegistrationStatusName.md +0 -49
- package/docs/api/enums/TournamentRegistrationType.md +0 -43
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Interface: TAvatarPrompt
|
|
2
|
+
|
|
3
|
+
TAvatarPrompt describes an AI style prompt available for avatar customization.
|
|
4
|
+
Fields from the raw `public_meta` object are flattened to the top level.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
### prompt\_id
|
|
9
|
+
|
|
10
|
+
> **prompt\_id**: `number`
|
|
11
|
+
|
|
12
|
+
Unique identifier of the AI customization prompt
|
|
13
|
+
|
|
14
|
+
***
|
|
15
|
+
|
|
16
|
+
### name
|
|
17
|
+
|
|
18
|
+
> **name**: `string`
|
|
19
|
+
|
|
20
|
+
Display name of the prompt style, e.g. "Cartoon", "Watercolor" (from public_meta)
|
|
21
|
+
|
|
22
|
+
***
|
|
23
|
+
|
|
24
|
+
### icon\_url
|
|
25
|
+
|
|
26
|
+
> **icon\_url**: `string`
|
|
27
|
+
|
|
28
|
+
Full CDN URL of the prompt style icon image (from public_meta)
|
|
29
|
+
|
|
30
|
+
***
|
|
31
|
+
|
|
32
|
+
### cost\_currency\_type\_id
|
|
33
|
+
|
|
34
|
+
> **cost\_currency\_type\_id**: `number`
|
|
35
|
+
|
|
36
|
+
Currency type used to pay for this customization (0=points, 1=gems, 2=diamonds)
|
|
37
|
+
|
|
38
|
+
***
|
|
39
|
+
|
|
40
|
+
### cost\_value
|
|
41
|
+
|
|
42
|
+
> **cost\_value**: `number`
|
|
43
|
+
|
|
44
|
+
Cost amount in the given currency
|
|
@@ -4,62 +4,62 @@
|
|
|
4
4
|
|
|
5
5
|
### bonus\_id
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
> **bonus\_id**: `number`
|
|
8
8
|
|
|
9
9
|
ID of the bonus
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
***
|
|
12
12
|
|
|
13
|
-
### is\_redeemable
|
|
13
|
+
### is\_redeemable?
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
> `optional` **is\_redeemable?**: `boolean`
|
|
16
16
|
|
|
17
17
|
Can the bonus be redeemed (if bonus is redeemable the user needs to claim it)
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
***
|
|
20
20
|
|
|
21
|
-
### create\_date
|
|
21
|
+
### create\_date?
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
> `optional` **create\_date?**: `string`
|
|
24
24
|
|
|
25
25
|
Date of creation
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
***
|
|
28
28
|
|
|
29
|
-
### redeem\_date
|
|
29
|
+
### redeem\_date?
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
> `optional` **redeem\_date?**: `string`
|
|
32
32
|
|
|
33
33
|
Date of redemption
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
***
|
|
36
36
|
|
|
37
|
-
### label\_bonus\_template\_id
|
|
37
|
+
### label\_bonus\_template\_id?
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
> `optional` **label\_bonus\_template\_id?**: `number`
|
|
40
40
|
|
|
41
41
|
ID of template used
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
***
|
|
44
44
|
|
|
45
|
-
### bonus\_status\_id
|
|
45
|
+
### bonus\_status\_id?
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
> `optional` **bonus\_status\_id?**: [`BonusStatus`](../enumerations/BonusStatus-1.md)
|
|
48
48
|
|
|
49
49
|
ID of the bonus status
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
***
|
|
52
52
|
|
|
53
|
-
### label\_bonus\_template\_meta\_map
|
|
53
|
+
### label\_bonus\_template\_meta\_map?
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
> `optional` **label\_bonus\_template\_meta\_map?**: [`BonusTemplateMetaMap`](BonusTemplateMetaMap-1.md)
|
|
56
56
|
|
|
57
57
|
Additional information about the bonus(edscription, image,name, acknowledge)
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
***
|
|
60
60
|
|
|
61
|
-
### bonus\_meta\_map
|
|
61
|
+
### bonus\_meta\_map?
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
> `optional` **bonus\_meta\_map?**: [`BonusMetaMap`](BonusMetaMap-1.md)
|
|
64
64
|
|
|
65
65
|
Additional information presented to the player when the bonus is redeemed
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
### err\_code
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
> **err\_code**: [`BuyStoreItemErrorCode`](../enumerations/BuyStoreItemErrorCode.md)
|
|
8
8
|
|
|
9
9
|
Error code representing the result of the purchase of the shop item. Successful purchase if err_code is 0
|
|
10
10
|
|
|
@@ -17,10 +17,10 @@ SmarticoAPI.buyStoreItem(item_id).then(res => {
|
|
|
17
17
|
});
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
***
|
|
21
21
|
|
|
22
22
|
### err\_message
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
> **err\_message**: `string`
|
|
25
25
|
|
|
26
26
|
Optional error message
|
|
@@ -6,22 +6,22 @@ TClaimBonusResult describes the response of call to _smartico.api.claimBonus(bon
|
|
|
6
6
|
|
|
7
7
|
### err\_code
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
> **err\_code**: [`SAWSpinErrorCode`](../enumerations/SAWSpinErrorCode.md)
|
|
10
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
12
|
|
|
13
|
-
|
|
13
|
+
***
|
|
14
14
|
|
|
15
15
|
### err\_message
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
> **err\_message**: `string`
|
|
18
18
|
|
|
19
19
|
Optional error message
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
***
|
|
22
22
|
|
|
23
|
-
### success
|
|
23
|
+
### success?
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
> `optional` **success?**: `boolean`
|
|
26
26
|
|
|
27
27
|
If the bonus was claimed successfully, then success is true
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Interface: TClan
|
|
2
|
+
|
|
3
|
+
TClan describes one clan item from the clans list.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### clan\_id
|
|
8
|
+
|
|
9
|
+
> **clan\_id**: `number`
|
|
10
|
+
|
|
11
|
+
Clan ID
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### public\_meta
|
|
16
|
+
|
|
17
|
+
> **public\_meta**: `object`
|
|
18
|
+
|
|
19
|
+
Translated clan metadata
|
|
20
|
+
|
|
21
|
+
#### name
|
|
22
|
+
|
|
23
|
+
> **name**: `string`
|
|
24
|
+
|
|
25
|
+
#### description
|
|
26
|
+
|
|
27
|
+
> **description**: `string`
|
|
28
|
+
|
|
29
|
+
#### image\_url
|
|
30
|
+
|
|
31
|
+
> **image\_url**: `string`
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### member\_count
|
|
36
|
+
|
|
37
|
+
> **member\_count**: `number`
|
|
38
|
+
|
|
39
|
+
Current number of members in clan
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
|
|
43
|
+
### capacity\_limit
|
|
44
|
+
|
|
45
|
+
> **capacity\_limit**: `number`
|
|
46
|
+
|
|
47
|
+
Max number of members allowed in clan
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### entry\_fee\_currency\_type\_id
|
|
52
|
+
|
|
53
|
+
> **entry\_fee\_currency\_type\_id**: `number`
|
|
54
|
+
|
|
55
|
+
ShopPurchaseType: 0=Points, 1=Gems, 2=Diamonds, 3=Free
|
|
56
|
+
|
|
57
|
+
***
|
|
58
|
+
|
|
59
|
+
### entry\_fee\_amount
|
|
60
|
+
|
|
61
|
+
> **entry\_fee\_amount**: `number`
|
|
62
|
+
|
|
63
|
+
Numeric value for entry fee
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### rating\_position
|
|
68
|
+
|
|
69
|
+
> **rating\_position**: `number`
|
|
70
|
+
|
|
71
|
+
F1 rank ASC, 1=best
|
|
72
|
+
|
|
73
|
+
***
|
|
74
|
+
|
|
75
|
+
### rating\_score
|
|
76
|
+
|
|
77
|
+
> **rating\_score**: `number`
|
|
78
|
+
|
|
79
|
+
Clan rating score
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Interface: TClanInfo
|
|
2
|
+
|
|
3
|
+
TClanInfo describes the detailed info of a single clan including its members.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### clan\_id
|
|
8
|
+
|
|
9
|
+
> **clan\_id**: `number`
|
|
10
|
+
|
|
11
|
+
***
|
|
12
|
+
|
|
13
|
+
### public\_meta
|
|
14
|
+
|
|
15
|
+
> **public\_meta**: `object`
|
|
16
|
+
|
|
17
|
+
#### name
|
|
18
|
+
|
|
19
|
+
> **name**: `string`
|
|
20
|
+
|
|
21
|
+
#### description
|
|
22
|
+
|
|
23
|
+
> **description**: `string`
|
|
24
|
+
|
|
25
|
+
#### image\_url
|
|
26
|
+
|
|
27
|
+
> **image\_url**: `string`
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### member\_count
|
|
32
|
+
|
|
33
|
+
> **member\_count**: `number`
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
### capacity\_limit
|
|
38
|
+
|
|
39
|
+
> **capacity\_limit**: `number`
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
|
|
43
|
+
### entry\_fee\_currency\_type\_id
|
|
44
|
+
|
|
45
|
+
> **entry\_fee\_currency\_type\_id**: `number`
|
|
46
|
+
|
|
47
|
+
***
|
|
48
|
+
|
|
49
|
+
### entry\_fee\_amount
|
|
50
|
+
|
|
51
|
+
> **entry\_fee\_amount**: `number`
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### rating\_position
|
|
56
|
+
|
|
57
|
+
> **rating\_position**: `number`
|
|
58
|
+
|
|
59
|
+
***
|
|
60
|
+
|
|
61
|
+
### rating\_score
|
|
62
|
+
|
|
63
|
+
> **rating\_score**: `number`
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### cooldown\_until
|
|
68
|
+
|
|
69
|
+
> **cooldown\_until**: `string`
|
|
70
|
+
|
|
71
|
+
***
|
|
72
|
+
|
|
73
|
+
### members
|
|
74
|
+
|
|
75
|
+
> **members**: `object`[]
|
|
76
|
+
|
|
77
|
+
#### user\_id
|
|
78
|
+
|
|
79
|
+
> **user\_id**: `number`
|
|
80
|
+
|
|
81
|
+
#### public\_username
|
|
82
|
+
|
|
83
|
+
> **public\_username**: `string`
|
|
84
|
+
|
|
85
|
+
#### avatar\_id
|
|
86
|
+
|
|
87
|
+
> **avatar\_id**: `string`
|
|
88
|
+
|
|
89
|
+
#### avatar\_real\_id
|
|
90
|
+
|
|
91
|
+
> **avatar\_real\_id**: `number`
|
|
92
|
+
|
|
93
|
+
#### avatar\_url?
|
|
94
|
+
|
|
95
|
+
> `optional` **avatar\_url?**: `string`
|
|
96
|
+
|
|
97
|
+
#### position
|
|
98
|
+
|
|
99
|
+
> **position**: `number`
|
|
100
|
+
|
|
101
|
+
#### contribution\_score
|
|
102
|
+
|
|
103
|
+
> **contribution\_score**: `number`
|
|
104
|
+
|
|
105
|
+
#### is\_me?
|
|
106
|
+
|
|
107
|
+
> `optional` **is\_me?**: `boolean`
|
|
108
|
+
|
|
109
|
+
#### clean\_ext\_user\_id?
|
|
110
|
+
|
|
111
|
+
> `optional` **clean\_ext\_user\_id?**: `string`
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Interface: TClanTournamentPlayers
|
|
2
|
+
|
|
3
|
+
TClanTournamentPlayers describes the players of a specific clan in a clan-based tournament.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### clan\_id
|
|
8
|
+
|
|
9
|
+
> **clan\_id**: `number`
|
|
10
|
+
|
|
11
|
+
Clan ID
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### clan\_public\_meta
|
|
16
|
+
|
|
17
|
+
> **clan\_public\_meta**: `object`
|
|
18
|
+
|
|
19
|
+
Clan display metadata
|
|
20
|
+
|
|
21
|
+
#### name
|
|
22
|
+
|
|
23
|
+
> **name**: `string`
|
|
24
|
+
|
|
25
|
+
#### image\_url
|
|
26
|
+
|
|
27
|
+
> **image\_url**: `string`
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### players
|
|
32
|
+
|
|
33
|
+
> **players**: `object`[]
|
|
34
|
+
|
|
35
|
+
Top players of this clan ranked by score DESC
|
|
36
|
+
|
|
37
|
+
#### user\_id
|
|
38
|
+
|
|
39
|
+
> **user\_id**: `number`
|
|
40
|
+
|
|
41
|
+
#### public\_username
|
|
42
|
+
|
|
43
|
+
> **public\_username**: `string`
|
|
44
|
+
|
|
45
|
+
#### avatar\_id
|
|
46
|
+
|
|
47
|
+
> **avatar\_id**: `string`
|
|
48
|
+
|
|
49
|
+
#### avatar\_real\_id
|
|
50
|
+
|
|
51
|
+
> **avatar\_real\_id**: `number`
|
|
52
|
+
|
|
53
|
+
#### avatar\_url?
|
|
54
|
+
|
|
55
|
+
> `optional` **avatar\_url?**: `string`
|
|
56
|
+
|
|
57
|
+
#### position
|
|
58
|
+
|
|
59
|
+
> **position**: `number`
|
|
60
|
+
|
|
61
|
+
#### scores
|
|
62
|
+
|
|
63
|
+
> **scores**: `number`
|
|
64
|
+
|
|
65
|
+
#### is\_me
|
|
66
|
+
|
|
67
|
+
> **is\_me**: `boolean`
|
|
68
|
+
|
|
69
|
+
#### clean\_ext\_user\_id
|
|
70
|
+
|
|
71
|
+
> **clean\_ext\_user\_id**: `string`
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Interface: TClans
|
|
2
|
+
|
|
3
|
+
TClans describes the clans payload returned by the API.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### clans
|
|
8
|
+
|
|
9
|
+
> **clans**: [`TClan`](TClan.md)[]
|
|
10
|
+
|
|
11
|
+
List of active clans available to the user
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### user\_clan\_id
|
|
16
|
+
|
|
17
|
+
> **user\_clan\_id**: `number`
|
|
18
|
+
|
|
19
|
+
The clan ID the current user belongs to; null if clanless
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### cooldown\_until
|
|
24
|
+
|
|
25
|
+
> **cooldown\_until**: `string`
|
|
26
|
+
|
|
27
|
+
Cooldown-until date string; null if no cooldown
|
|
@@ -4,46 +4,46 @@
|
|
|
4
4
|
|
|
5
5
|
### message\_guid
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
> **message\_guid**: `string`
|
|
8
8
|
|
|
9
9
|
Uniq identifier of the message. It is needed to request the message body, mark the message as read/deleted/favorite.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
***
|
|
12
12
|
|
|
13
13
|
### sent\_date
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
> **sent\_date**: `string`
|
|
16
16
|
|
|
17
17
|
Date when the message was sent
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
***
|
|
20
20
|
|
|
21
21
|
### read
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
> **read**: `boolean`
|
|
24
24
|
|
|
25
25
|
Indicator if a message is read
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
***
|
|
28
28
|
|
|
29
29
|
### favorite
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
> **favorite**: `boolean`
|
|
32
32
|
|
|
33
33
|
Indicator if a message is added to favorites
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
***
|
|
36
36
|
|
|
37
|
-
### category\_id
|
|
37
|
+
### category\_id?
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
> `optional` **category\_id?**: [`InboxCategories`](../enumerations/InboxCategories.md)
|
|
40
40
|
|
|
41
41
|
Category id per inbox message, can be part of System inboxes, Personal inboxes or General inbox messages
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
***
|
|
44
44
|
|
|
45
|
-
### expire\_on\_dt
|
|
45
|
+
### expire\_on\_dt?
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
> `optional` **expire\_on\_dt?**: `number`
|
|
48
48
|
|
|
49
49
|
The epoch timestamp, with milliseconds, when the message is going to be expired
|
|
@@ -4,57 +4,69 @@
|
|
|
4
4
|
|
|
5
5
|
### title
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
> **title**: `string`
|
|
8
8
|
|
|
9
9
|
Message title
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
***
|
|
12
12
|
|
|
13
13
|
### preview\_body
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
> **preview\_body**: `string`
|
|
16
16
|
|
|
17
17
|
Short preview body of the message
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
***
|
|
20
20
|
|
|
21
21
|
### icon
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
> **icon**: `string`
|
|
24
24
|
|
|
25
25
|
Message icon, 128x128px
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
***
|
|
28
28
|
|
|
29
29
|
### action
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
> **action**: `string`
|
|
32
32
|
|
|
33
33
|
The action that should be performed when user clicks on the message.
|
|
34
34
|
Can be URL or deep link, e.g. 'dp:deposit'. The most safe to execute CTA is to pass it to _smartico.dp(cta_action);
|
|
35
35
|
The 'dp' function will handle the CTA and will execute it in the most safe way.
|
|
36
36
|
If the message has a rich html body - the action will always be 'dp:inbox' which will open the inbox widget when triggered.
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
***
|
|
39
39
|
|
|
40
|
-
### html\_body
|
|
40
|
+
### html\_body?
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
> `optional` **html\_body?**: `string`
|
|
43
43
|
|
|
44
44
|
Rich HTML body of the message.
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
***
|
|
47
47
|
|
|
48
|
-
### buttons
|
|
48
|
+
### buttons?
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
> `optional` **buttons?**: `object`[]
|
|
51
51
|
|
|
52
52
|
Optional additional buttons to show in the message, available only if message has rich HTML body. Max count - 2.
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
#### action
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
> **action**: `string`
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
The action that should be performed when user clicks on the button. The logic is the same as for message actions
|
|
59
|
+
|
|
60
|
+
#### text
|
|
61
|
+
|
|
62
|
+
> **text**: `string`
|
|
63
|
+
|
|
64
|
+
Button text
|
|
65
|
+
|
|
66
|
+
***
|
|
67
|
+
|
|
68
|
+
### custom\_data?
|
|
69
|
+
|
|
70
|
+
> `optional` **custom\_data?**: `string`
|
|
59
71
|
|
|
60
72
|
The custom data of the inbox message defined by operator. Can be a JSON object, string or number
|