@smartico/public-api 0.0.355 → 0.0.356
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/SmarticoAPI.d.ts +1 -1
- package/dist/WSAPI/WSAPI.d.ts +1 -30
- package/dist/WSAPI/WSAPITypes.d.ts +515 -32
- package/dist/index.d.ts +0 -1
- package/dist/index.js +66 -205
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -133
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/README.md +27 -0
- package/docs/api/classes/WSAPI.md +27 -47
- package/docs/api/enums/GPRoundStatus.md +43 -0
- package/docs/api/enums/GamePickMarketType.md +19 -0
- package/docs/api/enums/GamePickResolutionType.md +35 -0
- package/docs/api/enums/GamePickScoreType.md +19 -0
- package/docs/api/enums/GamePickSportType.md +375 -0
- package/docs/api/enums/GameRoundOrderType.md +35 -0
- package/docs/api/enums/PointChangeSourceType.md +6 -0
- package/docs/api/interfaces/AchRelatedGame-1.md +1 -1
- package/docs/api/interfaces/BonusTemplateMetaMap.md +1 -1
- package/docs/api/interfaces/GamePickBoardUser.md +75 -0
- package/docs/api/interfaces/GamePickEvent.md +121 -0
- package/docs/api/interfaces/GamePickEventMeta.md +181 -0
- package/docs/api/interfaces/GamePickGameInfo.md +27 -0
- package/docs/api/interfaces/GamePickRequestParams.md +41 -0
- package/docs/api/interfaces/GamePickRound.md +385 -0
- package/docs/api/interfaces/GamePickRoundBase.md +235 -0
- package/docs/api/interfaces/GamePickRoundBoard.md +361 -0
- package/docs/api/interfaces/GamePickRoundPublicMeta.md +103 -0
- package/docs/api/interfaces/GamePickRoundRequestParams.md +65 -0
- package/docs/api/interfaces/GamePickUserInfo.md +107 -0
- package/docs/api/interfaces/GamesApiResponse.md +33 -0
- package/docs/api/interfaces/QuizEventMeta.md +41 -0
- package/docs/api/interfaces/TInboxMessageBody.md +1 -1
- package/docs/api/interfaces/TLevel.md +1 -1
- package/docs/api/interfaces/TLevelCurrent.md +1 -1
- package/docs/api/interfaces/TMiniGamePrize.md +1 -1
- package/docs/api/interfaces/TMiniGameTemplate.md +2 -2
- package/docs/api/interfaces/TMissionOrBadge.md +2 -2
- package/docs/api/interfaces/TRaffle.md +2 -2
- package/docs/api/interfaces/TRaffleDraw.md +14 -2
- package/docs/api/interfaces/TRaffleDrawRun.md +20 -0
- package/docs/api/interfaces/TRafflePrize.md +1 -1
- package/docs/api/interfaces/TStoreItem.md +3 -3
- package/docs/api/interfaces/TTournament.md +4 -4
- package/docs/api/interfaces/TTournamentDetailed.md +4 -4
- package/docs/api/interfaces/TUICustomSection.md +1 -1
- package/package.json +6 -6
- package/src/SmarticoAPI.ts +1 -1
- package/src/WSAPI/WSAPI.ts +1 -37
- package/src/WSAPI/WSAPITypes.ts +525 -32
- package/src/index.ts +1 -2
- package/dist/GamePick/GPTypes.d.ts +0 -268
- package/dist/GamePick/index.d.ts +0 -1
- package/src/GamePick/GPTypes.ts +0 -277
- package/src/GamePick/index.ts +0 -1
package/dist/index.modern.mjs
CHANGED
|
@@ -3329,39 +3329,6 @@ class WSAPI {
|
|
|
3329
3329
|
}
|
|
3330
3330
|
return this.api.gpGetGameInfo(props.saw_template_id);
|
|
3331
3331
|
}
|
|
3332
|
-
/**
|
|
3333
|
-
* Returns translations for the MatchX/Quiz game UI.
|
|
3334
|
-
* Translations are returned as a key-value map for the Gamification and RetentionGames areas,
|
|
3335
|
-
* resolved to the current user's language.
|
|
3336
|
-
*
|
|
3337
|
-
* @param props.saw_template_id - The ID of the MatchX or Quiz game template
|
|
3338
|
-
*
|
|
3339
|
-
* **Response** `GamesApiResponse<any>`:
|
|
3340
|
-
* - `errCode` - 0 on success
|
|
3341
|
-
* - `data`:
|
|
3342
|
-
* - `translations` - Key-value map of translation strings (e.g. `rgSubmitSelection`, `rgLeaderboardTitle`, `quizConfirmAnswer`, etc.)
|
|
3343
|
-
* - `hash_code` - Hash for cache invalidation
|
|
3344
|
-
* - `lang_code` - Resolved language code (e.g. 'EN')
|
|
3345
|
-
*
|
|
3346
|
-
* **Example**:
|
|
3347
|
-
* ```
|
|
3348
|
-
* _smartico.api.getGamePickTranslations({
|
|
3349
|
-
* saw_template_id: 1083,
|
|
3350
|
-
* }).then((result) => {
|
|
3351
|
-
* const tr = result.data.translations;
|
|
3352
|
-
* console.log(tr.rgSubmitSelection); // "Submit selection"
|
|
3353
|
-
* console.log(tr.rgLeaderboardTitle); // "Leaderboard"
|
|
3354
|
-
* });
|
|
3355
|
-
* ```
|
|
3356
|
-
*
|
|
3357
|
-
* **Visitor mode: not supported**
|
|
3358
|
-
*/
|
|
3359
|
-
async getGamePickTranslations(props) {
|
|
3360
|
-
if (!props.saw_template_id) {
|
|
3361
|
-
throw new Error('saw_template_id is required');
|
|
3362
|
-
}
|
|
3363
|
-
return this.api.gpGetTranslations(props.saw_template_id);
|
|
3364
|
-
}
|
|
3365
3332
|
/**
|
|
3366
3333
|
* Returns round data with events and picks for a specific user (identified by their internal user ID).
|
|
3367
3334
|
* Useful for viewing another user's predictions from the leaderboard.
|
|
@@ -5365,104 +5332,5 @@ var JackpotType;
|
|
|
5365
5332
|
JackpotType[JackpotType["Personal"] = 2] = "Personal";
|
|
5366
5333
|
})(JackpotType || (JackpotType = {}));
|
|
5367
5334
|
|
|
5368
|
-
|
|
5369
|
-
(function (GamePickMarketType) {
|
|
5370
|
-
GamePickMarketType[GamePickMarketType["Goals"] = 1] = "Goals";
|
|
5371
|
-
GamePickMarketType[GamePickMarketType["Winner"] = 2] = "Winner";
|
|
5372
|
-
})(GamePickMarketType || (GamePickMarketType = {}));
|
|
5373
|
-
var GamePickResolutionType;
|
|
5374
|
-
(function (GamePickResolutionType) {
|
|
5375
|
-
GamePickResolutionType[GamePickResolutionType["None"] = 0] = "None";
|
|
5376
|
-
GamePickResolutionType[GamePickResolutionType["Lost"] = 2] = "Lost";
|
|
5377
|
-
GamePickResolutionType[GamePickResolutionType["PartialWin"] = 3] = "PartialWin";
|
|
5378
|
-
GamePickResolutionType[GamePickResolutionType["FullWin"] = 4] = "FullWin";
|
|
5379
|
-
})(GamePickResolutionType || (GamePickResolutionType = {}));
|
|
5380
|
-
var GPRoundStatus;
|
|
5381
|
-
(function (GPRoundStatus) {
|
|
5382
|
-
GPRoundStatus[GPRoundStatus["Other"] = -1] = "Other";
|
|
5383
|
-
GPRoundStatus[GPRoundStatus["NoEventsDefined"] = 1] = "NoEventsDefined";
|
|
5384
|
-
GPRoundStatus[GPRoundStatus["NoMoreBetsAllowed"] = 2] = "NoMoreBetsAllowed";
|
|
5385
|
-
GPRoundStatus[GPRoundStatus["AllEventsResolved_ButNotRound"] = 3] = "AllEventsResolved_ButNotRound";
|
|
5386
|
-
GPRoundStatus[GPRoundStatus["RoundResolved"] = 4] = "RoundResolved";
|
|
5387
|
-
})(GPRoundStatus || (GPRoundStatus = {}));
|
|
5388
|
-
var GamePickScoreType;
|
|
5389
|
-
(function (GamePickScoreType) {
|
|
5390
|
-
GamePickScoreType[GamePickScoreType["ExactScore"] = 1] = "ExactScore";
|
|
5391
|
-
GamePickScoreType[GamePickScoreType["PointsDifference"] = 2] = "PointsDifference";
|
|
5392
|
-
})(GamePickScoreType || (GamePickScoreType = {}));
|
|
5393
|
-
var GamePickSportType;
|
|
5394
|
-
(function (GamePickSportType) {
|
|
5395
|
-
GamePickSportType[GamePickSportType["Golf"] = 9] = "Golf";
|
|
5396
|
-
GamePickSportType[GamePickSportType["Cycling"] = 17] = "Cycling";
|
|
5397
|
-
GamePickSportType[GamePickSportType["Specials"] = 18] = "Specials";
|
|
5398
|
-
GamePickSportType[GamePickSportType["TouringCarRacing"] = 188] = "TouringCarRacing";
|
|
5399
|
-
GamePickSportType[GamePickSportType["StockCarRacing"] = 191] = "StockCarRacing";
|
|
5400
|
-
GamePickSportType[GamePickSportType["IndyRacing"] = 129] = "IndyRacing";
|
|
5401
|
-
GamePickSportType[GamePickSportType["Biathlon"] = 44] = "Biathlon";
|
|
5402
|
-
GamePickSportType[GamePickSportType["Speedway"] = 131] = "Speedway";
|
|
5403
|
-
GamePickSportType[GamePickSportType["Motorsport"] = 11] = "Motorsport";
|
|
5404
|
-
GamePickSportType[GamePickSportType["AlpineSkiing"] = 43] = "AlpineSkiing";
|
|
5405
|
-
GamePickSportType[GamePickSportType["SkiJumping"] = 48] = "SkiJumping";
|
|
5406
|
-
GamePickSportType[GamePickSportType["Lacrosse"] = 39] = "Lacrosse";
|
|
5407
|
-
GamePickSportType[GamePickSportType["CrossCountry"] = 46] = "CrossCountry";
|
|
5408
|
-
GamePickSportType[GamePickSportType["NordicCombined"] = 47] = "NordicCombined";
|
|
5409
|
-
GamePickSportType[GamePickSportType["Chess"] = 33] = "Chess";
|
|
5410
|
-
GamePickSportType[GamePickSportType["Athletics"] = 36] = "Athletics";
|
|
5411
|
-
GamePickSportType[GamePickSportType["ESportOverwatch"] = 121] = "ESportOverwatch";
|
|
5412
|
-
GamePickSportType[GamePickSportType["MMA"] = 117] = "MMA";
|
|
5413
|
-
GamePickSportType[GamePickSportType["Futsal"] = 29] = "Futsal";
|
|
5414
|
-
GamePickSportType[GamePickSportType["IceHockey"] = 4] = "IceHockey";
|
|
5415
|
-
GamePickSportType[GamePickSportType["Kabaddi"] = 138] = "Kabaddi";
|
|
5416
|
-
GamePickSportType[GamePickSportType["BeachVolley"] = 34] = "BeachVolley";
|
|
5417
|
-
GamePickSportType[GamePickSportType["Formula1"] = 40] = "Formula1";
|
|
5418
|
-
GamePickSportType[GamePickSportType["ESporteBasketball"] = 153] = "ESporteBasketball";
|
|
5419
|
-
GamePickSportType[GamePickSportType["MotorcycleRacing"] = 190] = "MotorcycleRacing";
|
|
5420
|
-
GamePickSportType[GamePickSportType["Bowls"] = 32] = "Bowls";
|
|
5421
|
-
GamePickSportType[GamePickSportType["Boxing"] = 10] = "Boxing";
|
|
5422
|
-
GamePickSportType[GamePickSportType["Floorball"] = 7] = "Floorball";
|
|
5423
|
-
GamePickSportType[GamePickSportType["GaelicHurling"] = 136] = "GaelicHurling";
|
|
5424
|
-
GamePickSportType[GamePickSportType["Bandy"] = 15] = "Bandy";
|
|
5425
|
-
GamePickSportType[GamePickSportType["Handball"] = 6] = "Handball";
|
|
5426
|
-
GamePickSportType[GamePickSportType["Waterpolo"] = 26] = "Waterpolo";
|
|
5427
|
-
GamePickSportType[GamePickSportType["Rugby"] = 12] = "Rugby";
|
|
5428
|
-
GamePickSportType[GamePickSportType["ESporteSoccer"] = 137] = "ESporteSoccer";
|
|
5429
|
-
GamePickSportType[GamePickSportType["FieldHockey"] = 24] = "FieldHockey";
|
|
5430
|
-
GamePickSportType[GamePickSportType["Pesapallo"] = 61] = "Pesapallo";
|
|
5431
|
-
GamePickSportType[GamePickSportType["Snooker"] = 19] = "Snooker";
|
|
5432
|
-
GamePickSportType[GamePickSportType["Badminton"] = 31] = "Badminton";
|
|
5433
|
-
GamePickSportType[GamePickSportType["Cricket"] = 21] = "Cricket";
|
|
5434
|
-
GamePickSportType[GamePickSportType["BeachSoccer"] = 60] = "BeachSoccer";
|
|
5435
|
-
GamePickSportType[GamePickSportType["Baseball"] = 3] = "Baseball";
|
|
5436
|
-
GamePickSportType[GamePickSportType["StarCraft"] = 112] = "StarCraft";
|
|
5437
|
-
GamePickSportType[GamePickSportType["ESportCounterStrike"] = 109] = "ESportCounterStrike";
|
|
5438
|
-
GamePickSportType[GamePickSportType["ESportArenaofValor"] = 158] = "ESportArenaofValor";
|
|
5439
|
-
GamePickSportType[GamePickSportType["Curling"] = 28] = "Curling";
|
|
5440
|
-
GamePickSportType[GamePickSportType["Squash"] = 37] = "Squash";
|
|
5441
|
-
GamePickSportType[GamePickSportType["Darts"] = 22] = "Darts";
|
|
5442
|
-
GamePickSportType[GamePickSportType["TableTennis"] = 20] = "TableTennis";
|
|
5443
|
-
GamePickSportType[GamePickSportType["Basketball3x3"] = 155] = "Basketball3x3";
|
|
5444
|
-
GamePickSportType[GamePickSportType["AussieRules"] = 13] = "AussieRules";
|
|
5445
|
-
GamePickSportType[GamePickSportType["GaelicFootball"] = 135] = "GaelicFootball";
|
|
5446
|
-
GamePickSportType[GamePickSportType["CallOfDuty"] = 118] = "CallOfDuty";
|
|
5447
|
-
GamePickSportType[GamePickSportType["Soccer"] = 1] = "Soccer";
|
|
5448
|
-
GamePickSportType[GamePickSportType["Tennis"] = 5] = "Tennis";
|
|
5449
|
-
GamePickSportType[GamePickSportType["ESportDota"] = 111] = "ESportDota";
|
|
5450
|
-
GamePickSportType[GamePickSportType["Basketball"] = 2] = "Basketball";
|
|
5451
|
-
GamePickSportType[GamePickSportType["ESportLeagueofLegends"] = 110] = "ESportLeagueofLegends";
|
|
5452
|
-
GamePickSportType[GamePickSportType["AmericanFootball"] = 16] = "AmericanFootball";
|
|
5453
|
-
GamePickSportType[GamePickSportType["Volleyball"] = 23] = "Volleyball";
|
|
5454
|
-
GamePickSportType[GamePickSportType["Netball"] = 35] = "Netball";
|
|
5455
|
-
GamePickSportType[GamePickSportType["ESportRocketLeague"] = 128] = "ESportRocketLeague";
|
|
5456
|
-
GamePickSportType[GamePickSportType["Schwingen"] = 56] = "Schwingen";
|
|
5457
|
-
})(GamePickSportType || (GamePickSportType = {}));
|
|
5458
|
-
var GameRoundOrderType;
|
|
5459
|
-
(function (GameRoundOrderType) {
|
|
5460
|
-
GameRoundOrderType[GameRoundOrderType["HowAdded"] = 1] = "HowAdded";
|
|
5461
|
-
GameRoundOrderType[GameRoundOrderType["HowAddedReversed"] = 2] = "HowAddedReversed";
|
|
5462
|
-
GameRoundOrderType[GameRoundOrderType["EventDateAscending"] = 3] = "EventDateAscending";
|
|
5463
|
-
GameRoundOrderType[GameRoundOrderType["EventDateDescending"] = 4] = "EventDateDescending";
|
|
5464
|
-
})(GameRoundOrderType || (GameRoundOrderType = {}));
|
|
5465
|
-
const AllRoundsGameBoardID = -1;
|
|
5466
|
-
|
|
5467
|
-
export { AchCategoryTransform, AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter, AchievementAvailabilityStatus, AchievementStatus, AchievementTaskType, AchievementType, ActivityLogTransform, ActivityTypeLimited, AllRoundsGameBoardID, AnalyticsInboxSubScreenNameId, AnalyticsInterfaceType, AnalyticsScreenNameId, AnalyticsTournamentsLobbySubScreenNameId, AttemptPeriodType, BadgesTimeLimitStates, BonusItemsTransform, BonusStatus, BuyStoreItemErrorCode, ClassId, CookieStore, CoreUtils, ECacheContext, GPRoundStatus, GamePickMarketType, GamePickResolutionType, GamePickScoreType, GamePickSportType, GameRoundOrderType, GetJackpotEligibleGamesResponseTransform, GetJackpotWinnersResponseTransform, GetLevelMapResponseTransform, InboxCategories, InboxMessageBodyTransform, InboxMessageType, InboxMessagesTransform, InboxReadStatus, JackPotTemparature, JackpotContributionType, JackpotType, LeaderBoardPeriodType, LiquidEntityData, MiniGamePrizeTypeName, MiniGamePrizeTypeNamed, MissionCategory, MissionUtils, OCache, OpenLinksType, PointChangeSourceType, PrizeModifiers, PrizeModifiersKeysNames, PublicLabelSettings, QuizAnswersValueType, QuizMarketPerSport, QuizSportType, RaffleDrawInstanceState, RaffleDrawTypeExecution, RaffleTicketCapVisualization, SAWAcknowledgeType, SAWAcknowledgeTypeName, SAWAcknowledgeTypeNamed, SAWAskForUsername, SAWBuyInType, SAWBuyInTypeName, SAWBuyInTypeNamed, SAWExposeUserSpinId, SAWExposeUserSpinIdName, SAWExposeUserSpinIdNamed, SAWGPMarketType, SAWGameDifficultyType, SAWGameDifficultyTypeName, SAWGameLayout, SAWGameLayoutName, SAWGameLayoutNamed, SAWGameType, SAWGameTypeName, SAWGameTypeNamed, SAWHistoryTransform, SAWPrizeType, SAWSpinErrorCode, SAWTemplatesTransform, SAWUtils, SAWWheelLayout, SAWWinSoundFiles, SAWWinSoundType, SawGameDifficultyTypeNamed, ScheduledMissionType, SmarticoAPI, StoreCategoryTransform, StoreItemPurchaseType, StoreItemPurchasedTransform, StoreItemTransform, StoreItemType, StoreItemTypeName, StoreItemTypeNamed, TournamentInstanceStatus, TournamentInstanceStatusName, TournamentItemsTransform, TournamentRegistrationError, TournamentRegistrationStatus, TournamentRegistrationStatusName, TournamentRegistrationStatusNamed, TournamentRegistrationType, TournamentRegistrationTypeGetName, TournamentType, TournamentUtils, TranslationArea, UICustomSectionTransform, UserAchievementTransform, UserBalanceType, WSAPI, drawRunHistoryTransform, drawRunTransform, drawTransform, enrichUserAchievementsWithBadgeState, getLeaderBoardTransform, marketsInfo, prizeTransform, quizAnswerAwayTeamReplacementText, quizAnswerHomeTeamReplacementText, quizAnswersTrKeys, quizDrawReplacementText, quizEvenReplacementText, quizNoGoalsReplacementText, quizNoReplacementText, quizOddReplacementText, quizOrReplacementText, quizSupportedSports, quizYesReplacementText, raffleClaimPrizeResponseTransform, raffleTransform, ticketsTransform, tournamentInfoItemTransform, winnersTransform };
|
|
5335
|
+
export { AchCategoryTransform, AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter, AchievementAvailabilityStatus, AchievementStatus, AchievementTaskType, AchievementType, ActivityLogTransform, ActivityTypeLimited, AnalyticsInboxSubScreenNameId, AnalyticsInterfaceType, AnalyticsScreenNameId, AnalyticsTournamentsLobbySubScreenNameId, AttemptPeriodType, BadgesTimeLimitStates, BonusItemsTransform, BonusStatus, BuyStoreItemErrorCode, ClassId, CookieStore, CoreUtils, ECacheContext, GetJackpotEligibleGamesResponseTransform, GetJackpotWinnersResponseTransform, GetLevelMapResponseTransform, InboxCategories, InboxMessageBodyTransform, InboxMessageType, InboxMessagesTransform, InboxReadStatus, JackPotTemparature, JackpotContributionType, JackpotType, LeaderBoardPeriodType, LiquidEntityData, MiniGamePrizeTypeName, MiniGamePrizeTypeNamed, MissionCategory, MissionUtils, OCache, OpenLinksType, PointChangeSourceType, PrizeModifiers, PrizeModifiersKeysNames, PublicLabelSettings, QuizAnswersValueType, QuizMarketPerSport, QuizSportType, RaffleDrawInstanceState, RaffleDrawTypeExecution, RaffleTicketCapVisualization, SAWAcknowledgeType, SAWAcknowledgeTypeName, SAWAcknowledgeTypeNamed, SAWAskForUsername, SAWBuyInType, SAWBuyInTypeName, SAWBuyInTypeNamed, SAWExposeUserSpinId, SAWExposeUserSpinIdName, SAWExposeUserSpinIdNamed, SAWGPMarketType, SAWGameDifficultyType, SAWGameDifficultyTypeName, SAWGameLayout, SAWGameLayoutName, SAWGameLayoutNamed, SAWGameType, SAWGameTypeName, SAWGameTypeNamed, SAWHistoryTransform, SAWPrizeType, SAWSpinErrorCode, SAWTemplatesTransform, SAWUtils, SAWWheelLayout, SAWWinSoundFiles, SAWWinSoundType, SawGameDifficultyTypeNamed, ScheduledMissionType, SmarticoAPI, StoreCategoryTransform, StoreItemPurchaseType, StoreItemPurchasedTransform, StoreItemTransform, StoreItemType, StoreItemTypeName, StoreItemTypeNamed, TournamentInstanceStatus, TournamentInstanceStatusName, TournamentItemsTransform, TournamentRegistrationError, TournamentRegistrationStatus, TournamentRegistrationStatusName, TournamentRegistrationStatusNamed, TournamentRegistrationType, TournamentRegistrationTypeGetName, TournamentType, TournamentUtils, TranslationArea, UICustomSectionTransform, UserAchievementTransform, UserBalanceType, WSAPI, drawRunHistoryTransform, drawRunTransform, drawTransform, enrichUserAchievementsWithBadgeState, getLeaderBoardTransform, marketsInfo, prizeTransform, quizAnswerAwayTeamReplacementText, quizAnswerHomeTeamReplacementText, quizAnswersTrKeys, quizDrawReplacementText, quizEvenReplacementText, quizNoGoalsReplacementText, quizNoReplacementText, quizOddReplacementText, quizOrReplacementText, quizSupportedSports, quizYesReplacementText, raffleClaimPrizeResponseTransform, raffleTransform, ticketsTransform, tournamentInfoItemTransform, winnersTransform };
|
|
5468
5336
|
//# sourceMappingURL=index.modern.mjs.map
|