@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
|
@@ -6,14 +6,14 @@ TMissionClaimRewardResult describes the response of call to _smartico.api.reques
|
|
|
6
6
|
|
|
7
7
|
### err\_code
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
> **err\_code**: `number`
|
|
10
10
|
|
|
11
11
|
Error code that represents outcome of the claim request. Successful claim reward 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
|
|
@@ -6,14 +6,14 @@ TMissionOptInResult describes the response of call to _smartico.api.requestMissi
|
|
|
6
6
|
|
|
7
7
|
### err\_code
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
> **err\_code**: `number`
|
|
10
10
|
|
|
11
11
|
Error code that represents outcome of the opt-in request. Successful opt-in 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
|
|
@@ -6,363 +6,363 @@ TMissionOrBadge describes the information of mission or badge defined in the sys
|
|
|
6
6
|
|
|
7
7
|
### id
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
> **id**: `number`
|
|
10
10
|
|
|
11
11
|
ID of the mission or badge
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
***
|
|
14
14
|
|
|
15
15
|
### type
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
> **type**: `"mission"` \| `"badge"`
|
|
18
18
|
|
|
19
19
|
Type of entity. Can be 'mission' or 'badge'
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
***
|
|
22
22
|
|
|
23
23
|
### name
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
> **name**: `string`
|
|
26
26
|
|
|
27
27
|
Name of the mission or badge, translated to the user language
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
***
|
|
30
30
|
|
|
31
31
|
### sub\_header
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
> **sub\_header**: `string`
|
|
34
34
|
|
|
35
35
|
Sub-header of the mission, translated to the user language
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
***
|
|
38
38
|
|
|
39
39
|
### description
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
> **description**: `string`
|
|
42
42
|
|
|
43
43
|
Description of the mission or badge, translated to the user language
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
***
|
|
46
46
|
|
|
47
47
|
### reward
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
> **reward**: `string`
|
|
50
50
|
|
|
51
51
|
Description of the mission reward if defined
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
***
|
|
54
54
|
|
|
55
55
|
### image
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
> **image**: `string`
|
|
58
58
|
|
|
59
59
|
URL of the image of the mission or badge, 256x256px
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
***
|
|
62
62
|
|
|
63
63
|
### is\_completed
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
> **is\_completed**: `boolean`
|
|
66
66
|
|
|
67
67
|
Indicator if the mission is completed or badge is granted
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
***
|
|
70
70
|
|
|
71
71
|
### is\_locked
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
> **is\_locked**: `boolean`
|
|
74
74
|
|
|
75
75
|
Indicator if the mission is locked. Means that it's visible to the user, but he cannot progress in it until it's unlocked.
|
|
76
76
|
Mission may optionally contain the explanation of what should be done to unlock it in the unlock_mission_description property
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
***
|
|
79
79
|
|
|
80
80
|
### unlock\_mission\_description
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
> **unlock\_mission\_description**: `string`
|
|
83
83
|
|
|
84
84
|
Optional explaination of what should be done to unlock the mission
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
***
|
|
87
87
|
|
|
88
88
|
### is\_requires\_optin
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
> **is\_requires\_optin**: `boolean`
|
|
91
91
|
|
|
92
92
|
Indicator if the mission requires opt-in. Means that user should explicitly opt-in to the mission in order to start progressing in it
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
***
|
|
95
95
|
|
|
96
96
|
### is\_opted\_in
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
> **is\_opted\_in**: `boolean`
|
|
99
99
|
|
|
100
100
|
Indicator if the user opted-in to the mission
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
***
|
|
103
103
|
|
|
104
104
|
### time\_limit\_ms
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
> **time\_limit\_ms**: `number`
|
|
107
107
|
|
|
108
108
|
The amount of time in milliseconds that user has to complete the mission
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
***
|
|
111
111
|
|
|
112
112
|
### active\_from\_ts
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
> **active\_from\_ts**: `number`
|
|
115
115
|
|
|
116
116
|
Holds time from which mission will become available, for the missions that are targeted to be available from specific date/time
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
***
|
|
119
119
|
|
|
120
120
|
### active\_till\_ts
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
> **active\_till\_ts**: `number`
|
|
123
123
|
|
|
124
124
|
Holds time till mission will become unavailable, for the missions that are targeted to be available from specific date/time
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
***
|
|
127
127
|
|
|
128
128
|
### dt\_start
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
> **dt\_start**: `number`
|
|
131
131
|
|
|
132
132
|
The date when the mission was started, relevant for the time limited missions, also indicating opt-it date for mission that requires opt-in and unlock date for Locked mission.
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
***
|
|
135
135
|
|
|
136
136
|
### progress
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
> **progress**: `number`
|
|
139
139
|
|
|
140
140
|
The progress of the mission in percents calculated as the aggregated relative percentage of all tasks
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
***
|
|
143
143
|
|
|
144
144
|
### cta\_action
|
|
145
145
|
|
|
146
|
-
|
|
146
|
+
> **cta\_action**: `string`
|
|
147
147
|
|
|
148
148
|
The action that should be performed when user clicks on the mission or badge
|
|
149
149
|
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);
|
|
150
150
|
The 'dp' function will handle the CTA and will execute it in the most safe way
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
***
|
|
153
153
|
|
|
154
154
|
### cta\_text
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
> **cta\_text**: `string`
|
|
157
157
|
|
|
158
158
|
The text of the CTA button, e.g. 'Make a deposit'
|
|
159
159
|
|
|
160
|
-
|
|
160
|
+
***
|
|
161
161
|
|
|
162
162
|
### custom\_section\_id
|
|
163
163
|
|
|
164
|
-
|
|
164
|
+
> **custom\_section\_id**: `number`
|
|
165
165
|
|
|
166
166
|
The ID of the custom section where the mission or badge is assigned
|
|
167
167
|
The list of custom sections can be retrieved using _smartico.api.getCustomSections() method (TODO-API)
|
|
168
168
|
|
|
169
|
-
|
|
169
|
+
***
|
|
170
170
|
|
|
171
171
|
### only\_in\_custom\_section
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
> **only\_in\_custom\_section**: `boolean`
|
|
174
174
|
|
|
175
175
|
The indicator if the mission or badge is visible only in the custom section and should be hidden from the main overview of missions/badges
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
***
|
|
178
178
|
|
|
179
179
|
### custom\_data
|
|
180
180
|
|
|
181
|
-
|
|
181
|
+
> **custom\_data**: `any`
|
|
182
182
|
|
|
183
183
|
The custom data of the mission or badge defined by operator. Can be a JSON object, string or number
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
***
|
|
186
186
|
|
|
187
187
|
### tasks
|
|
188
188
|
|
|
189
|
-
|
|
189
|
+
> **tasks**: [`TMissionOrBadgeTask`](TMissionOrBadgeTask.md)[]
|
|
190
190
|
|
|
191
191
|
The list of tasks of the mission or badge
|
|
192
192
|
|
|
193
|
-
|
|
193
|
+
***
|
|
194
194
|
|
|
195
|
-
### related\_games
|
|
195
|
+
### related\_games?
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
> `optional` **related\_games?**: [`AchRelatedGame`](AchRelatedGame-1.md)[]
|
|
198
198
|
|
|
199
199
|
List of casino games (or other types of entities) related to the mission or badge
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
***
|
|
202
202
|
|
|
203
203
|
### category\_ids
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
> **category\_ids**: `number`[]
|
|
206
206
|
|
|
207
207
|
The list of IDs of the categories where the badge item is assigned, information about categories can be retrieved with getAchCategories method
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
***
|
|
210
210
|
|
|
211
|
-
### hint\_text
|
|
211
|
+
### hint\_text?
|
|
212
212
|
|
|
213
|
-
|
|
213
|
+
> `optional` **hint\_text?**: `string`
|
|
214
214
|
|
|
215
215
|
The T&C text for the missions
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
***
|
|
218
218
|
|
|
219
|
-
### position
|
|
219
|
+
### position?
|
|
220
220
|
|
|
221
|
-
|
|
221
|
+
> `optional` **position?**: `number`
|
|
222
222
|
|
|
223
223
|
Priority (or position) of the mission in the UI. Low value indicates higher position in the UI
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
***
|
|
226
226
|
|
|
227
|
-
### ribbon
|
|
227
|
+
### ribbon?
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
> `optional` **ribbon?**: `string`
|
|
230
230
|
|
|
231
231
|
The ribbon of the mission/badge item. Can be 'sale', 'hot', 'new', 'vip' or URL to the image in case of custom ribbon, 250x300px
|
|
232
232
|
|
|
233
|
-
|
|
233
|
+
***
|
|
234
234
|
|
|
235
|
-
### ach\_completed\_id
|
|
235
|
+
### ach\_completed\_id?
|
|
236
236
|
|
|
237
|
-
|
|
237
|
+
> `optional` **ach\_completed\_id?**: `number`
|
|
238
238
|
|
|
239
239
|
ID of the completion fact from ach_completed or ach_completed_recurring tables
|
|
240
240
|
|
|
241
|
-
|
|
241
|
+
***
|
|
242
242
|
|
|
243
|
-
### requires\_prize\_claim
|
|
243
|
+
### requires\_prize\_claim?
|
|
244
244
|
|
|
245
|
-
|
|
245
|
+
> `optional` **requires\_prize\_claim?**: `boolean`
|
|
246
246
|
|
|
247
247
|
Flag from achievement if the mission prize will be given only after user claims it
|
|
248
248
|
|
|
249
|
-
|
|
249
|
+
***
|
|
250
250
|
|
|
251
|
-
### prize\_claimed\_date\_ts
|
|
251
|
+
### prize\_claimed\_date\_ts?
|
|
252
252
|
|
|
253
|
-
|
|
253
|
+
> `optional` **prize\_claimed\_date\_ts?**: `number`
|
|
254
254
|
|
|
255
255
|
The date/timestamp indicating when the prize was claimed by the user
|
|
256
256
|
|
|
257
|
-
|
|
257
|
+
***
|
|
258
258
|
|
|
259
|
-
### complete\_date
|
|
259
|
+
### complete\_date?
|
|
260
260
|
|
|
261
|
-
|
|
261
|
+
> `optional` **complete\_date?**: `string`
|
|
262
262
|
|
|
263
263
|
Time in hours that took this player to complete mission
|
|
264
264
|
|
|
265
|
-
|
|
265
|
+
***
|
|
266
266
|
|
|
267
|
-
### complete\_date\_ts
|
|
267
|
+
### complete\_date\_ts?
|
|
268
268
|
|
|
269
|
-
|
|
269
|
+
> `optional` **complete\_date\_ts?**: `number`
|
|
270
270
|
|
|
271
271
|
Time of mission/badge being completed, this property shows the epoch time in UTC
|
|
272
272
|
|
|
273
|
-
|
|
273
|
+
***
|
|
274
274
|
|
|
275
|
-
### completed\_today
|
|
275
|
+
### completed\_today?
|
|
276
276
|
|
|
277
|
-
|
|
277
|
+
> `optional` **completed\_today?**: `boolean`
|
|
278
278
|
|
|
279
279
|
Flag for mission/badge indicating that mission/badge completed today
|
|
280
280
|
|
|
281
|
-
|
|
281
|
+
***
|
|
282
282
|
|
|
283
|
-
### completed\_this\_week
|
|
283
|
+
### completed\_this\_week?
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
> `optional` **completed\_this\_week?**: `boolean`
|
|
286
286
|
|
|
287
287
|
Flag for mission/badge indicating that mission/badge completed this week
|
|
288
288
|
|
|
289
|
-
|
|
289
|
+
***
|
|
290
290
|
|
|
291
|
-
### completed\_this\_month
|
|
291
|
+
### completed\_this\_month?
|
|
292
292
|
|
|
293
|
-
|
|
293
|
+
> `optional` **completed\_this\_month?**: `boolean`
|
|
294
294
|
|
|
295
295
|
Flag for mission/badge indicating that mission/badge completed this month
|
|
296
296
|
|
|
297
|
-
|
|
297
|
+
***
|
|
298
298
|
|
|
299
|
-
### custom\_section\_type\_id
|
|
299
|
+
### custom\_section\_type\_id?
|
|
300
300
|
|
|
301
|
-
|
|
301
|
+
> `optional` **custom\_section\_type\_id?**: `number`
|
|
302
302
|
|
|
303
303
|
ID of specific Custom Section type
|
|
304
304
|
|
|
305
|
-
|
|
305
|
+
***
|
|
306
306
|
|
|
307
|
-
### max\_completion\_count
|
|
307
|
+
### max\_completion\_count?
|
|
308
308
|
|
|
309
|
-
|
|
309
|
+
> `optional` **max\_completion\_count?**: `number`
|
|
310
310
|
|
|
311
311
|
Max number of times the user can complete a mission in case if mission type is Recurring upon completion. NULL equals infinite.
|
|
312
312
|
|
|
313
|
-
|
|
313
|
+
***
|
|
314
314
|
|
|
315
|
-
### completion\_count
|
|
315
|
+
### completion\_count?
|
|
316
316
|
|
|
317
|
-
|
|
317
|
+
> `optional` **completion\_count?**: `number`
|
|
318
318
|
|
|
319
319
|
Current completion count for Recurring upon completion missions
|
|
320
320
|
|
|
321
|
-
|
|
321
|
+
***
|
|
322
322
|
|
|
323
|
-
### next\_recurrence\_date\_ts
|
|
323
|
+
### next\_recurrence\_date\_ts?
|
|
324
324
|
|
|
325
|
-
|
|
325
|
+
> `optional` **next\_recurrence\_date\_ts?**: `number`
|
|
326
326
|
|
|
327
327
|
The date/timestamp for recurring missions, which indicating the time remaining until the next recurrence of the mission.
|
|
328
328
|
Note that if a mission has an "Active till" date defined, this field is not relevant after that date.
|
|
329
329
|
|
|
330
|
-
|
|
330
|
+
***
|
|
331
331
|
|
|
332
|
-
### availability\_status
|
|
332
|
+
### availability\_status?
|
|
333
333
|
|
|
334
|
-
|
|
334
|
+
> `optional` **availability\_status?**: [`AchievementAvailabilityStatus`](../enumerations/AchievementAvailabilityStatus.md)
|
|
335
335
|
|
|
336
336
|
Availability status of the mission depends on the defined time limits
|
|
337
337
|
|
|
338
|
-
|
|
338
|
+
***
|
|
339
339
|
|
|
340
|
-
### claim\_button\_title
|
|
340
|
+
### claim\_button\_title?
|
|
341
341
|
|
|
342
|
-
|
|
342
|
+
> `optional` **claim\_button\_title?**: `string`
|
|
343
343
|
|
|
344
344
|
Title for the claim reward button
|
|
345
345
|
|
|
346
|
-
|
|
346
|
+
***
|
|
347
347
|
|
|
348
|
-
### claim\_button\_action
|
|
348
|
+
### claim\_button\_action?
|
|
349
349
|
|
|
350
|
-
|
|
350
|
+
> `optional` **claim\_button\_action?**: `string`
|
|
351
351
|
|
|
352
352
|
Action for the claim reward button
|
|
353
353
|
|
|
354
|
-
|
|
354
|
+
***
|
|
355
355
|
|
|
356
|
-
### badgeTimeLimitState
|
|
356
|
+
### badgeTimeLimitState?
|
|
357
357
|
|
|
358
|
-
|
|
358
|
+
> `optional` **badgeTimeLimitState?**: [`BadgesTimeLimitStates`](../enumerations/BadgesTimeLimitStates.md)
|
|
359
359
|
|
|
360
360
|
Badge time limit state for badges with time restrictions
|
|
361
361
|
|
|
362
|
-
|
|
362
|
+
***
|
|
363
363
|
|
|
364
|
-
### hide\_locked\_mission
|
|
364
|
+
### hide\_locked\_mission?
|
|
365
365
|
|
|
366
|
-
|
|
366
|
+
> `optional` **hide\_locked\_mission?**: `boolean`
|
|
367
367
|
|
|
368
368
|
Flag from achievement if the mission should be hidden when it is locked, until it's unlocked
|
|
@@ -6,54 +6,54 @@ TMissionOrBadgeTask describes the information of tasks that belings to mission o
|
|
|
6
6
|
|
|
7
7
|
### id
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
> **id**: `number`
|
|
10
10
|
|
|
11
11
|
ID of the task
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
***
|
|
14
14
|
|
|
15
15
|
### name
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
> **name**: `string`
|
|
18
18
|
|
|
19
19
|
Name of the task, translated to the user language
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
***
|
|
22
22
|
|
|
23
23
|
### is\_completed
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
> **is\_completed**: `boolean`
|
|
26
26
|
|
|
27
27
|
Indicator if the task is completed
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
***
|
|
30
30
|
|
|
31
31
|
### progress
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
> **progress**: `number`
|
|
34
34
|
|
|
35
35
|
The progress of the task in percents
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
***
|
|
38
38
|
|
|
39
39
|
### points\_reward
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
> **points\_reward**: `number`
|
|
42
42
|
|
|
43
43
|
Reward for completing the task in points
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
***
|
|
46
46
|
|
|
47
|
-
### execution\_count\_expected
|
|
47
|
+
### execution\_count\_expected?
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
> `optional` **execution\_count\_expected?**: `number`
|
|
50
50
|
|
|
51
51
|
This is the total number of times the user needs to execute to complete task. e.g. he needs to bet 100 times. Here will be 100
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
***
|
|
54
54
|
|
|
55
|
-
### execution\_count\_actual
|
|
55
|
+
### execution\_count\_actual?
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
> `optional` **execution\_count\_actual?**: `number`
|
|
58
58
|
|
|
59
59
|
This is the number of times the user has executed 'activity' of the task. e.g. he bet 5 times out of 100. Here will be 5
|