@smartico/public-api 0.0.119 → 0.0.121
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 +2 -0
- package/dist/Inbox/GetInboxMessagesResponse.d.ts +1 -1
- package/dist/Inbox/InboxMessage.d.ts +2 -2
- package/dist/Leaderboard/LeaderBoards.d.ts +1 -1
- package/dist/Missions/AchClaimPrizeRequest.d.ts +5 -0
- package/dist/Missions/AchClaimPrizeResponse.d.ts +3 -0
- package/dist/Missions/UserAchievement.d.ts +3 -0
- package/dist/Quiz/MarketsInfo.d.ts +13 -0
- package/dist/Quiz/MarketsPerSport.d.ts +6 -0
- package/dist/Quiz/MarketsType.d.ts +27 -0
- package/dist/Quiz/ScoreResultTypes.d.ts +28 -0
- package/dist/Quiz/SportTypes.d.ts +6 -0
- package/dist/Quiz/index.d.ts +5 -0
- package/dist/WSAPI/WSAPI.d.ts +1 -1
- package/dist/WSAPI/WSAPITypes.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +68 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +69 -3
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/TLevel.md +1 -1
- package/package.json +1 -1
- package/src/Base/ClassId.ts +3 -0
- package/src/Inbox/GetInboxMessagesResponse.ts +1 -1
- package/src/Inbox/InboxMessage.ts +2 -2
- package/src/Leaderboard/LeaderBoards.ts +1 -1
- package/src/Level/GetLevelMapResponse.ts +1 -1
- package/src/Missions/AchClaimPrizeRequest.ts +7 -0
- package/src/Missions/AchClaimPrizeResponse.ts +6 -0
- package/src/Missions/UserAchievement.ts +4 -0
- package/src/Quiz/MarketsInfo.ts +17 -0
- package/src/Quiz/MarketsPerSport.ts +39 -0
- package/src/Quiz/MarketsType.ts +27 -0
- package/src/Quiz/ScoreResultTypes.ts +32 -0
- package/src/Quiz/SportTypes.ts +7 -0
- package/src/Quiz/index.ts +5 -0
- package/src/SmarticoAPI.ts +2 -2
- package/src/Tournaments/GetTournamentInfoResponse.ts +0 -1
- package/src/Tournaments/TournamentUtils.ts +1 -1
- package/src/WSAPI/WSAPI.ts +1 -1
- package/src/WSAPI/WSAPITypes.ts +3 -3
- package/src/index.ts +2 -1
package/dist/index.modern.mjs
CHANGED
|
@@ -66,6 +66,8 @@ var ClassId;
|
|
|
66
66
|
ClassId[ClassId["MARK_INBOX_DELETED_RESPONSE"] = 536] = "MARK_INBOX_DELETED_RESPONSE";
|
|
67
67
|
ClassId[ClassId["GET_ACH_CATEGORIES_REQUEST"] = 537] = "GET_ACH_CATEGORIES_REQUEST";
|
|
68
68
|
ClassId[ClassId["GET_ACH_CATEGORIES_RESPONSE"] = 538] = "GET_ACH_CATEGORIES_RESPONSE";
|
|
69
|
+
ClassId[ClassId["ACHIEVEMENT_CLAIM_PRIZE_REQUEST"] = 539] = "ACHIEVEMENT_CLAIM_PRIZE_REQUEST";
|
|
70
|
+
ClassId[ClassId["ACHIEVEMENT_CLAIM_PRIZE_RESPONSE"] = 540] = "ACHIEVEMENT_CLAIM_PRIZE_RESPONSE";
|
|
69
71
|
ClassId[ClassId["GET_BONUSES_REQUEST"] = 600] = "GET_BONUSES_REQUEST";
|
|
70
72
|
ClassId[ClassId["GET_BONUSES_RESPONSE"] = 601] = "GET_BONUSES_RESPONSE";
|
|
71
73
|
ClassId[ClassId["CLAIM_BONUS_REQUEST"] = 602] = "CLAIM_BONUS_REQUEST";
|
|
@@ -1334,12 +1336,12 @@ class SmarticoAPI {
|
|
|
1334
1336
|
this.logger.always('HTTP time, ms:' + (timeEnd - timeStart));
|
|
1335
1337
|
}
|
|
1336
1338
|
} catch (e) {
|
|
1337
|
-
this.logger.error(`Failed to make request to smartico channel. ${e.message}`, {
|
|
1339
|
+
this.logger.error(`Failed to make request to smartico channel, L2. ${e.message}`, {
|
|
1338
1340
|
url: this.publicUrl,
|
|
1339
1341
|
request: message,
|
|
1340
1342
|
error: e.message
|
|
1341
1343
|
});
|
|
1342
|
-
throw new Error(`Failed to make request to smartico channel. ${e.message}`);
|
|
1344
|
+
throw new Error(`Failed to make request to smartico channel, L1. ${e.message}`);
|
|
1343
1345
|
}
|
|
1344
1346
|
if (this.logCIDs.includes(message.cid)) {
|
|
1345
1347
|
this.logger.info('RES', result);
|
|
@@ -1764,5 +1766,69 @@ class CookieStore {
|
|
|
1764
1766
|
}
|
|
1765
1767
|
CookieStore.cookieStore = new TSMap();
|
|
1766
1768
|
|
|
1767
|
-
|
|
1769
|
+
var QuizSportType;
|
|
1770
|
+
(function (QuizSportType) {
|
|
1771
|
+
QuizSportType[QuizSportType["Soccer"] = 1] = "Soccer";
|
|
1772
|
+
QuizSportType[QuizSportType["Tennis"] = 5] = "Tennis";
|
|
1773
|
+
QuizSportType[QuizSportType["Basketball"] = 6] = "Basketball";
|
|
1774
|
+
})(QuizSportType || (QuizSportType = {}));
|
|
1775
|
+
const quizSupportedSports = [QuizSportType.Basketball, QuizSportType.Soccer, QuizSportType.Tennis];
|
|
1776
|
+
|
|
1777
|
+
var QuizMarketType;
|
|
1778
|
+
(function (QuizMarketType) {
|
|
1779
|
+
QuizMarketType[QuizMarketType["TwoTeamsWithScore"] = 1] = "TwoTeamsWithScore";
|
|
1780
|
+
QuizMarketType[QuizMarketType["RedCard"] = 2] = "RedCard";
|
|
1781
|
+
QuizMarketType[QuizMarketType["OneXTwo"] = 3] = "OneXTwo";
|
|
1782
|
+
QuizMarketType[QuizMarketType["OneXTwoHalftime"] = 4] = "OneXTwoHalftime";
|
|
1783
|
+
QuizMarketType[QuizMarketType["HalftimeFulltime"] = 5] = "HalftimeFulltime";
|
|
1784
|
+
QuizMarketType[QuizMarketType["FirstGoal"] = 6] = "FirstGoal";
|
|
1785
|
+
QuizMarketType[QuizMarketType["DoubleChance"] = 7] = "DoubleChance";
|
|
1786
|
+
QuizMarketType[QuizMarketType["OverUnder2_5"] = 8] = "OverUnder2_5";
|
|
1787
|
+
QuizMarketType[QuizMarketType["OverUnder1_5Halftime"] = 9] = "OverUnder1_5Halftime";
|
|
1788
|
+
QuizMarketType[QuizMarketType["OverUnder1_5__2ndHalf"] = 10] = "OverUnder1_5__2ndHalf";
|
|
1789
|
+
QuizMarketType[QuizMarketType["TotalCorners8_5"] = 11] = "TotalCorners8_5";
|
|
1790
|
+
QuizMarketType[QuizMarketType["TotalCorners9_5"] = 12] = "TotalCorners9_5";
|
|
1791
|
+
QuizMarketType[QuizMarketType["Corners1x2"] = 13] = "Corners1x2";
|
|
1792
|
+
QuizMarketType[QuizMarketType["One_Two"] = 14] = "One_Two";
|
|
1793
|
+
QuizMarketType[QuizMarketType["Overtime"] = 15] = "Overtime";
|
|
1794
|
+
QuizMarketType[QuizMarketType["OddEven"] = 16] = "OddEven";
|
|
1795
|
+
QuizMarketType[QuizMarketType["OddEvenHomeAway"] = 17] = "OddEvenHomeAway";
|
|
1796
|
+
QuizMarketType[QuizMarketType["FirstSet"] = 18] = "FirstSet";
|
|
1797
|
+
QuizMarketType[QuizMarketType["SecondSet"] = 19] = "SecondSet";
|
|
1798
|
+
QuizMarketType[QuizMarketType["ThirdSet"] = 20] = "ThirdSet";
|
|
1799
|
+
QuizMarketType[QuizMarketType["FourthSet"] = 21] = "FourthSet";
|
|
1800
|
+
QuizMarketType[QuizMarketType["FifthSet"] = 22] = "FifthSet";
|
|
1801
|
+
QuizMarketType[QuizMarketType["PlayerOneWinsOneSet"] = 23] = "PlayerOneWinsOneSet";
|
|
1802
|
+
QuizMarketType[QuizMarketType["PlayerTwoWinsOneSet"] = 24] = "PlayerTwoWinsOneSet";
|
|
1803
|
+
QuizMarketType[QuizMarketType["LastGoal"] = 25] = "LastGoal";
|
|
1804
|
+
})(QuizMarketType || (QuizMarketType = {}));
|
|
1805
|
+
|
|
1806
|
+
const quizAnswerHomeTeamReplacementText = '%HomeTeam%';
|
|
1807
|
+
const quizAnswerAwayTeamReplacementText = '%AwayTeam%';
|
|
1808
|
+
const marketsInfo = [{
|
|
1809
|
+
type: QuizMarketType.OneXTwo,
|
|
1810
|
+
name: '1X2',
|
|
1811
|
+
question: {
|
|
1812
|
+
text: 'Who will win the match ?',
|
|
1813
|
+
trKey: 'quiz_answer_1x2'
|
|
1814
|
+
},
|
|
1815
|
+
answers: [{
|
|
1816
|
+
text: quizAnswerHomeTeamReplacementText,
|
|
1817
|
+
trKey: 'quiz_answer_1x2_home'
|
|
1818
|
+
}, {
|
|
1819
|
+
text: 'Draw',
|
|
1820
|
+
trKey: 'quiz_answer_1x2_draw'
|
|
1821
|
+
}, {
|
|
1822
|
+
text: quizAnswerAwayTeamReplacementText,
|
|
1823
|
+
trKey: 'quiz_answer_1x2_away'
|
|
1824
|
+
}]
|
|
1825
|
+
}];
|
|
1826
|
+
|
|
1827
|
+
const QuizMarketPerSport = {
|
|
1828
|
+
[QuizSportType.Basketball]: [QuizMarketType.One_Two, QuizMarketType.Overtime, QuizMarketType.OneXTwo, QuizMarketType.OddEven, QuizMarketType.OddEvenHomeAway, QuizMarketType.DoubleChance],
|
|
1829
|
+
[QuizSportType.Soccer]: [QuizMarketType.OneXTwo, QuizMarketType.OneXTwoHalftime, QuizMarketType.HalftimeFulltime, QuizMarketType.FirstGoal, QuizMarketType.LastGoal, QuizMarketType.DoubleChance, QuizMarketType.OverUnder2_5, QuizMarketType.OverUnder1_5Halftime, QuizMarketType.OverUnder1_5__2ndHalf, QuizMarketType.RedCard, QuizMarketType.TotalCorners8_5, QuizMarketType.TotalCorners9_5, QuizMarketType.Corners1x2],
|
|
1830
|
+
[QuizSportType.Tennis]: [QuizMarketType.One_Two, QuizMarketType.FirstSet, QuizMarketType.SecondSet, QuizMarketType.ThirdSet, QuizMarketType.FourthSet, QuizMarketType.FifthSet, QuizMarketType.PlayerOneWinsOneSet, QuizMarketType.PlayerTwoWinsOneSet, QuizMarketType.OddEven]
|
|
1831
|
+
};
|
|
1832
|
+
|
|
1833
|
+
export { AchCategoryTransform, AchievementStatus, AchievementTaskType, AchievementType, ActivityTypeLimited, BuyStoreItemErrorCode, ClassId, CookieStore, CoreUtils, GetLevelMapResponseTransform, InboxMessageBodyTransform, InboxMessageType, InboxMessagesTransform, LeaderBoardPeriodType, MiniGamePrizeTypeName, MiniGamePrizeTypeNamed, PublicLabelSettings, QuizMarketPerSport, QuizMarketType, QuizSportType, SAWAcknowledgeType, SAWAskForUsername, SAWBuyInType, SAWBuyInTypeName, SAWBuyInTypeNamed, SAWGameType, SAWGameTypeName, SAWGameTypeNamed, SAWPrizeType, SAWSpinErrorCode, SAWTemplatesTransform, SAWUtils, SAWWinSoundFiles, SAWWinSoundType, ScheduledMissionType, SmarticoAPI, StoreCategoryTransform, StoreItemTransform, StoreItemType, TournamentInstanceStatus, TournamentInstanceStatusName, TournamentItemsTransform, TournamentRegistrationError, TournamentRegistrationStatus, TournamentRegistrationStatusName, TournamentRegistrationStatusNamed, TournamentRegistrationType, TournamentRegistrationTypeGetName, TournamentType, TournamentUtils, TranslationArea, UserAchievementTransform, marketsInfo, quizSupportedSports, tournamentInfoItemTransform };
|
|
1768
1834
|
//# sourceMappingURL=index.modern.mjs.map
|