@smartico/public-api 0.0.364 → 0.0.366
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 +561 -290
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +193 -2
- 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/Raffle/GetRafflesResponse.ts +1 -1
- 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
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -478,6 +478,137 @@ export interface TTournamentDetailed extends TTournament {
|
|
|
478
478
|
/** if the prize is points related, indicates amount of points */
|
|
479
479
|
points?: number;
|
|
480
480
|
}[];
|
|
481
|
+
|
|
482
|
+
/** True when this tournament groups participants by clan */
|
|
483
|
+
is_clan_based?: boolean;
|
|
484
|
+
/** Ranked list of clans in this tournament; null for non-clan tournaments */
|
|
485
|
+
clan_leaderboard?: {
|
|
486
|
+
clan_id: number;
|
|
487
|
+
public_meta: { name: string; description: string; image_url: string };
|
|
488
|
+
position: number;
|
|
489
|
+
total_score: number;
|
|
490
|
+
contributing_members: number;
|
|
491
|
+
}[] | null;
|
|
492
|
+
/** The clan ID the current user belongs to; null when clanless or non-clan tournament */
|
|
493
|
+
user_clan_id?: number | null;
|
|
494
|
+
/** The user's rank within their own clan; null when clanless or not registered */
|
|
495
|
+
user_position_in_clan?: number | null;
|
|
496
|
+
/** The user's score contribution to their clan; null when clanless or not registered */
|
|
497
|
+
user_score_in_clan?: number | null;
|
|
498
|
+
/** Per-clan prize structure; null for non-clan tournaments */
|
|
499
|
+
clan_prize_structure?: {
|
|
500
|
+
clan_place: number;
|
|
501
|
+
/** 1 = Fixed, 2 = Dynamic */
|
|
502
|
+
prize_type_id: number;
|
|
503
|
+
prize_pool_amount: number | null;
|
|
504
|
+
activity_type_id: number | null;
|
|
505
|
+
details_json: Record<string, any>;
|
|
506
|
+
public_meta: { name: string; description: string; image_url: string } | null;
|
|
507
|
+
tiers: {
|
|
508
|
+
player_place_from: number;
|
|
509
|
+
player_place_to: number;
|
|
510
|
+
pool_amount: number | null;
|
|
511
|
+
/** 1 = ScoreWeighted, 2 = EqualSplit; null for Fixed */
|
|
512
|
+
distribution_type: number | null;
|
|
513
|
+
activity_type_id: number;
|
|
514
|
+
details_json: Record<string, any>;
|
|
515
|
+
public_meta: { name: string; description: string; image_url: string } | null;
|
|
516
|
+
}[];
|
|
517
|
+
}[] | null;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* TClanTournamentPlayers describes the players of a specific clan in a clan-based tournament.
|
|
522
|
+
*/
|
|
523
|
+
export interface TClanTournamentPlayers {
|
|
524
|
+
/** Clan ID */
|
|
525
|
+
clan_id: number;
|
|
526
|
+
/** Clan display metadata */
|
|
527
|
+
clan_public_meta: { name: string; image_url: string };
|
|
528
|
+
/** Top players of this clan ranked by score DESC */
|
|
529
|
+
players: {
|
|
530
|
+
user_id: number;
|
|
531
|
+
public_username: string;
|
|
532
|
+
avatar_id: string;
|
|
533
|
+
avatar_real_id: number;
|
|
534
|
+
avatar_url?: string;
|
|
535
|
+
position: number;
|
|
536
|
+
scores: number;
|
|
537
|
+
is_me: boolean;
|
|
538
|
+
clean_ext_user_id: string;
|
|
539
|
+
}[];
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* TClan describes one clan item from the clans list.
|
|
544
|
+
*/
|
|
545
|
+
export interface TClan {
|
|
546
|
+
/** Clan ID */
|
|
547
|
+
clan_id: number;
|
|
548
|
+
/** Translated clan metadata */
|
|
549
|
+
public_meta: {
|
|
550
|
+
name: string;
|
|
551
|
+
description: string;
|
|
552
|
+
image_url: string;
|
|
553
|
+
};
|
|
554
|
+
/** Current number of members in clan */
|
|
555
|
+
member_count: number;
|
|
556
|
+
/** Max number of members allowed in clan */
|
|
557
|
+
capacity_limit: number;
|
|
558
|
+
/** ShopPurchaseType: 0=Points, 1=Gems, 2=Diamonds, 3=Free */
|
|
559
|
+
entry_fee_currency_type_id: number;
|
|
560
|
+
/** Numeric value for entry fee */
|
|
561
|
+
entry_fee_amount: number;
|
|
562
|
+
/** F1 rank ASC, 1=best */
|
|
563
|
+
rating_position: number;
|
|
564
|
+
/** Clan rating score */
|
|
565
|
+
rating_score: number;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* TClans describes the clans payload returned by the API.
|
|
570
|
+
*/
|
|
571
|
+
export interface TClans {
|
|
572
|
+
/** List of active clans available to the user */
|
|
573
|
+
clans: TClan[];
|
|
574
|
+
/** The clan ID the current user belongs to; null if clanless */
|
|
575
|
+
user_clan_id: number | null;
|
|
576
|
+
/** Cooldown-until date string; null if no cooldown */
|
|
577
|
+
cooldown_until: string | null;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* TClanInfo describes the detailed info of a single clan including its members.
|
|
582
|
+
*/
|
|
583
|
+
export interface TClanInfo {
|
|
584
|
+
clan_id: number;
|
|
585
|
+
public_meta: { name: string; description: string; image_url: string };
|
|
586
|
+
member_count: number;
|
|
587
|
+
capacity_limit: number;
|
|
588
|
+
entry_fee_currency_type_id: number;
|
|
589
|
+
entry_fee_amount: number;
|
|
590
|
+
rating_position: number;
|
|
591
|
+
rating_score: number;
|
|
592
|
+
cooldown_until: string | null;
|
|
593
|
+
members: {
|
|
594
|
+
user_id: number;
|
|
595
|
+
public_username: string;
|
|
596
|
+
avatar_id: string;
|
|
597
|
+
avatar_real_id: number;
|
|
598
|
+
avatar_url?: string;
|
|
599
|
+
position: number;
|
|
600
|
+
contribution_score: number;
|
|
601
|
+
is_me?: boolean;
|
|
602
|
+
clean_ext_user_id?: string;
|
|
603
|
+
}[];
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* TClanJoinResult describes the result of a join clan request.
|
|
608
|
+
*/
|
|
609
|
+
export interface TClanJoinResult {
|
|
610
|
+
errCode: number;
|
|
611
|
+
errMsg: string;
|
|
481
612
|
}
|
|
482
613
|
|
|
483
614
|
/**
|
package/src/index.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"src/Tournaments/TournamentPlayer.ts",
|
|
27
27
|
"src/Tournaments/TournamentPrize.ts",
|
|
28
28
|
"src/Tournaments/GetTournamentInfoResponse.ts",
|
|
29
|
+
"src/Tournaments/TournamentClan.ts",
|
|
29
30
|
"src/Bonuses/BonusStatus.ts",
|
|
30
31
|
"src/Bonuses/Bonus.ts",
|
|
31
32
|
"src/Bonuses/BonusMetaMap.ts",
|
|
@@ -66,17 +67,18 @@
|
|
|
66
67
|
"src/Inbox/InboxMessage.ts",
|
|
67
68
|
"src/Inbox/InboxMessageType.ts",
|
|
68
69
|
"src/Inbox/OpenLinksType.ts",
|
|
69
|
-
"src/Inbox/InboxReadStatus.ts"
|
|
70
|
+
"src/Inbox/InboxReadStatus.ts",
|
|
71
|
+
"src/Clans/Clan.ts"
|
|
70
72
|
],
|
|
71
73
|
"out": "docs/api",
|
|
72
74
|
"plugin": ["typedoc-plugin-markdown", "typedoc-plugin-merge-modules"],
|
|
73
|
-
"
|
|
75
|
+
"entryFileName": "README.md",
|
|
74
76
|
"disableSources": true,
|
|
75
77
|
"excludePrivate": true,
|
|
76
78
|
"readme": "none",
|
|
77
79
|
"cleanOutputDir": true,
|
|
78
80
|
"hideBreadcrumbs": true,
|
|
79
|
-
"
|
|
81
|
+
"hidePageHeader": true,
|
|
80
82
|
"sort": "source-order"
|
|
81
83
|
}
|
|
82
84
|
}
|
package/docs/api/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# Enumeration: AchCustomLayoutTheme
|
|
2
|
-
|
|
3
|
-
## Enumeration Members
|
|
4
|
-
|
|
5
|
-
### VALENTINES\_LIGHT
|
|
6
|
-
|
|
7
|
-
• **VALENTINES\_LIGHT** = ``"valentines-light"``
|
|
8
|
-
|
|
9
|
-
___
|
|
10
|
-
|
|
11
|
-
### VALENTINES\_DARK
|
|
12
|
-
|
|
13
|
-
• **VALENTINES\_DARK** = ``"valentines-dark"``
|
|
14
|
-
|
|
15
|
-
___
|
|
16
|
-
|
|
17
|
-
### EURO\_2024
|
|
18
|
-
|
|
19
|
-
• **EURO\_2024** = ``"euro-2024"``
|
|
20
|
-
|
|
21
|
-
___
|
|
22
|
-
|
|
23
|
-
### GENERIC
|
|
24
|
-
|
|
25
|
-
• **GENERIC** = ``"generic"``
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# Enumeration: AchCustomSectionType
|
|
2
|
-
|
|
3
|
-
## Enumeration Members
|
|
4
|
-
|
|
5
|
-
### HTML\_PAGE
|
|
6
|
-
|
|
7
|
-
• **HTML\_PAGE** = ``1``
|
|
8
|
-
|
|
9
|
-
___
|
|
10
|
-
|
|
11
|
-
### MISSIONS\_CATEGORY
|
|
12
|
-
|
|
13
|
-
• **MISSIONS\_CATEGORY** = ``2``
|
|
14
|
-
|
|
15
|
-
___
|
|
16
|
-
|
|
17
|
-
### TOURNAMENTS\_CATEGORY
|
|
18
|
-
|
|
19
|
-
• **TOURNAMENTS\_CATEGORY** = ``3``
|
|
20
|
-
|
|
21
|
-
___
|
|
22
|
-
|
|
23
|
-
### LEVELS
|
|
24
|
-
|
|
25
|
-
• **LEVELS** = ``4``
|
|
26
|
-
|
|
27
|
-
___
|
|
28
|
-
|
|
29
|
-
### MINI\_GAMES
|
|
30
|
-
|
|
31
|
-
• **MINI\_GAMES** = ``5``
|
|
32
|
-
|
|
33
|
-
___
|
|
34
|
-
|
|
35
|
-
### MISSION\_CUSTOM\_LAYOUT
|
|
36
|
-
|
|
37
|
-
• **MISSION\_CUSTOM\_LAYOUT** = ``6``
|
|
38
|
-
|
|
39
|
-
___
|
|
40
|
-
|
|
41
|
-
### MATCH\_X\_AND\_QUIZ
|
|
42
|
-
|
|
43
|
-
• **MATCH\_X\_AND\_QUIZ** = ``7``
|
|
44
|
-
|
|
45
|
-
___
|
|
46
|
-
|
|
47
|
-
### REDIRECT\_LINK
|
|
48
|
-
|
|
49
|
-
• **REDIRECT\_LINK** = ``9``
|
|
50
|
-
|
|
51
|
-
___
|
|
52
|
-
|
|
53
|
-
### LOOTBOX\_WEEKLY
|
|
54
|
-
|
|
55
|
-
• **LOOTBOX\_WEEKLY** = ``10``
|
|
56
|
-
|
|
57
|
-
___
|
|
58
|
-
|
|
59
|
-
### LOOTBOX\_CALENDAR\_DAYS
|
|
60
|
-
|
|
61
|
-
• **LOOTBOX\_CALENDAR\_DAYS** = ``11``
|
|
62
|
-
|
|
63
|
-
___
|
|
64
|
-
|
|
65
|
-
### STORE
|
|
66
|
-
|
|
67
|
-
• **STORE** = ``12``
|
|
68
|
-
|
|
69
|
-
___
|
|
70
|
-
|
|
71
|
-
### RAFFLE
|
|
72
|
-
|
|
73
|
-
• **RAFFLE** = ``13``
|
|
74
|
-
|
|
75
|
-
___
|
|
76
|
-
|
|
77
|
-
### BADGES
|
|
78
|
-
|
|
79
|
-
• **BADGES** = ``14``
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Enumeration: AchievementStatus
|
|
2
|
-
|
|
3
|
-
## Enumeration Members
|
|
4
|
-
|
|
5
|
-
### Draft
|
|
6
|
-
|
|
7
|
-
• **Draft** = ``1``
|
|
8
|
-
|
|
9
|
-
___
|
|
10
|
-
|
|
11
|
-
### AvailableUnlocked
|
|
12
|
-
|
|
13
|
-
• **AvailableUnlocked** = ``2``
|
|
14
|
-
|
|
15
|
-
___
|
|
16
|
-
|
|
17
|
-
### AvailableLocked
|
|
18
|
-
|
|
19
|
-
• **AvailableLocked** = ``3``
|
|
20
|
-
|
|
21
|
-
___
|
|
22
|
-
|
|
23
|
-
### Archived
|
|
24
|
-
|
|
25
|
-
• **Archived** = ``4``
|
|
26
|
-
|
|
27
|
-
___
|
|
28
|
-
|
|
29
|
-
### FeaturedManually
|
|
30
|
-
|
|
31
|
-
• **FeaturedManually** = ``5``
|
|
32
|
-
|
|
33
|
-
___
|
|
34
|
-
|
|
35
|
-
### FeaturedAI
|
|
36
|
-
|
|
37
|
-
• **FeaturedAI** = ``6``
|
|
38
|
-
|
|
39
|
-
___
|
|
40
|
-
|
|
41
|
-
### Recurring
|
|
42
|
-
|
|
43
|
-
• **Recurring** = ``7``
|
|
44
|
-
|
|
45
|
-
___
|
|
46
|
-
|
|
47
|
-
### RecurringUponCompletion
|
|
48
|
-
|
|
49
|
-
• **RecurringUponCompletion** = ``8``
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
# Enumeration: ActivityTypeLimited
|
|
2
|
-
|
|
3
|
-
## Enumeration Members
|
|
4
|
-
|
|
5
|
-
### DoNothing
|
|
6
|
-
|
|
7
|
-
• **DoNothing** = ``8``
|
|
8
|
-
|
|
9
|
-
___
|
|
10
|
-
|
|
11
|
-
### Points
|
|
12
|
-
|
|
13
|
-
• **Points** = ``12``
|
|
14
|
-
|
|
15
|
-
___
|
|
16
|
-
|
|
17
|
-
### GiveMission
|
|
18
|
-
|
|
19
|
-
• **GiveMission** = ``14``
|
|
20
|
-
|
|
21
|
-
___
|
|
22
|
-
|
|
23
|
-
### StartAnotherCampaign
|
|
24
|
-
|
|
25
|
-
• **StartAnotherCampaign** = ``15``
|
|
26
|
-
|
|
27
|
-
___
|
|
28
|
-
|
|
29
|
-
### MiniGameAttempt
|
|
30
|
-
|
|
31
|
-
• **MiniGameAttempt** = ``16``
|
|
32
|
-
|
|
33
|
-
___
|
|
34
|
-
|
|
35
|
-
### DeductPoints
|
|
36
|
-
|
|
37
|
-
• **DeductPoints** = ``21``
|
|
38
|
-
|
|
39
|
-
___
|
|
40
|
-
|
|
41
|
-
### ResetPoints
|
|
42
|
-
|
|
43
|
-
• **ResetPoints** = ``22``
|
|
44
|
-
|
|
45
|
-
___
|
|
46
|
-
|
|
47
|
-
### AddGemsAndDiamonds
|
|
48
|
-
|
|
49
|
-
• **AddGemsAndDiamonds** = ``25``
|
|
50
|
-
|
|
51
|
-
___
|
|
52
|
-
|
|
53
|
-
### DeductGemsAndDiamonds
|
|
54
|
-
|
|
55
|
-
• **DeductGemsAndDiamonds** = ``26``
|
|
56
|
-
|
|
57
|
-
___
|
|
58
|
-
|
|
59
|
-
### ResetGemsAndDiamonds
|
|
60
|
-
|
|
61
|
-
• **ResetGemsAndDiamonds** = ``27``
|
|
62
|
-
|
|
63
|
-
___
|
|
64
|
-
|
|
65
|
-
### Popup
|
|
66
|
-
|
|
67
|
-
• **Popup** = ``30``
|
|
68
|
-
|
|
69
|
-
___
|
|
70
|
-
|
|
71
|
-
### Inbox
|
|
72
|
-
|
|
73
|
-
• **Inbox** = ``31``
|
|
74
|
-
|
|
75
|
-
___
|
|
76
|
-
|
|
77
|
-
### Slack
|
|
78
|
-
|
|
79
|
-
• **Slack** = ``70``
|
|
80
|
-
|
|
81
|
-
___
|
|
82
|
-
|
|
83
|
-
### Email\_To\_Customer\_Support
|
|
84
|
-
|
|
85
|
-
• **Email\_To\_Customer\_Support** = ``80``
|
|
86
|
-
|
|
87
|
-
___
|
|
88
|
-
|
|
89
|
-
### Email\_To\_Risk\_Operator
|
|
90
|
-
|
|
91
|
-
• **Email\_To\_Risk\_Operator** = ``90``
|
|
92
|
-
|
|
93
|
-
___
|
|
94
|
-
|
|
95
|
-
### Bonus
|
|
96
|
-
|
|
97
|
-
• **Bonus** = ``100``
|
|
98
|
-
|
|
99
|
-
___
|
|
100
|
-
|
|
101
|
-
### WebHook
|
|
102
|
-
|
|
103
|
-
• **WebHook** = ``200``
|
|
104
|
-
|
|
105
|
-
___
|
|
106
|
-
|
|
107
|
-
### TagCustomer
|
|
108
|
-
|
|
109
|
-
• **TagCustomer** = ``504``
|
|
110
|
-
|
|
111
|
-
___
|
|
112
|
-
|
|
113
|
-
### UnTagCustomer
|
|
114
|
-
|
|
115
|
-
• **UnTagCustomer** = ``505``
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# Enumeration: BonusStatus
|
|
2
|
-
|
|
3
|
-
## Enumeration Members
|
|
4
|
-
|
|
5
|
-
### New
|
|
6
|
-
|
|
7
|
-
• **New** = ``1``
|
|
8
|
-
|
|
9
|
-
___
|
|
10
|
-
|
|
11
|
-
### COUPON\_ISSUED
|
|
12
|
-
|
|
13
|
-
• **COUPON\_ISSUED** = ``2``
|
|
14
|
-
|
|
15
|
-
___
|
|
16
|
-
|
|
17
|
-
### REDEEMED
|
|
18
|
-
|
|
19
|
-
• **REDEEMED** = ``3``
|
|
20
|
-
|
|
21
|
-
___
|
|
22
|
-
|
|
23
|
-
### REDEEM\_FAILED
|
|
24
|
-
|
|
25
|
-
• **REDEEM\_FAILED** = ``4``
|
|
26
|
-
|
|
27
|
-
___
|
|
28
|
-
|
|
29
|
-
### COUPON\_ISSUE\_FAILED
|
|
30
|
-
|
|
31
|
-
• **COUPON\_ISSUE\_FAILED** = ``5``
|
|
32
|
-
|
|
33
|
-
___
|
|
34
|
-
|
|
35
|
-
### EXPIRED
|
|
36
|
-
|
|
37
|
-
• **EXPIRED** = ``6``
|