@smartico/public-api 0.0.121 → 0.0.123

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.
Files changed (77) hide show
  1. package/dist/Base/ClassId.d.ts +15 -0
  2. package/dist/Core/CheckSegmentMatchRequest.d.ts +4 -0
  3. package/dist/Core/CheckSegmentMatchResponse.d.ts +7 -0
  4. package/dist/Jackpots/GetJackpotsPotsRequest.d.ts +4 -0
  5. package/dist/Jackpots/GetJackpotsPotsResponse.d.ts +5 -0
  6. package/dist/Jackpots/GetJackpotsRequest.d.ts +4 -0
  7. package/dist/Jackpots/GetJackpotsResponse.d.ts +5 -0
  8. package/dist/Jackpots/JackpotContributionType.d.ts +5 -0
  9. package/dist/Jackpots/JackpotDetails.d.ts +17 -0
  10. package/dist/Jackpots/JackpotPot.d.ts +7 -0
  11. package/dist/Jackpots/JackpotPublicMeta.d.ts +6 -0
  12. package/dist/Jackpots/JackpotType.d.ts +4 -0
  13. package/dist/Jackpots/JackpotsOptinRequest.d.ts +4 -0
  14. package/dist/Jackpots/JackpotsOptinResponse.d.ts +3 -0
  15. package/dist/Jackpots/JackpotsOptoutRequest.d.ts +4 -0
  16. package/dist/Jackpots/JackpotsOptoutResponse.d.ts +3 -0
  17. package/dist/MiniGames/SAWGameType.d.ts +3 -1
  18. package/dist/MiniGames/SAWPrizeDropAknowledgeRequest.d.ts +4 -0
  19. package/dist/MiniGames/SAWPrizeDropAknowledgeResponse.d.ts +4 -0
  20. package/dist/MiniGames/SAWPrizeDropWinPush.d.ts +9 -0
  21. package/dist/Missions/AchClaimPrizeResponse.d.ts +2 -2
  22. package/dist/Missions/index.d.ts +2 -0
  23. package/dist/Quiz/MarketsAnswersType.d.ts +22 -0
  24. package/dist/Quiz/MarketsInfo.d.ts +2 -1
  25. package/dist/Quiz/index.d.ts +1 -0
  26. package/dist/SmarticoAPI.d.ts +4 -2
  27. package/dist/Store/GetStoreHistoryRequest.d.ts +5 -0
  28. package/dist/Store/GetStoreHistoryResponse.d.ts +6 -0
  29. package/dist/Store/StorItemPruchased.d.ts +6 -0
  30. package/dist/WSAPI/WSAPI.d.ts +7 -1
  31. package/dist/WSAPI/WSAPITypes.d.ts +19 -0
  32. package/dist/index.js +562 -198
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.modern.mjs +352 -13
  35. package/dist/index.modern.mjs.map +1 -1
  36. package/docs/README.md +2 -0
  37. package/docs/classes/WSAPI.md +55 -0
  38. package/docs/enums/SAWGameTypeName.md +6 -0
  39. package/docs/interfaces/TMiniGamePrize.md +9 -1
  40. package/docs/interfaces/TMiniGameTemplate.md +1 -1
  41. package/docs/interfaces/TMissionClaimRewardResult.md +19 -0
  42. package/docs/interfaces/TMissionOrBadge.md +32 -0
  43. package/docs/interfaces/TSegmentCheckResult.md +13 -0
  44. package/package.json +1 -1
  45. package/src/Base/ClassId.ts +24 -0
  46. package/src/Core/CheckSegmentMatchRequest.ts +6 -0
  47. package/src/Core/CheckSegmentMatchResponse.ts +8 -0
  48. package/src/Jackpots/GetJackpotsPotsRequest.ts +5 -0
  49. package/src/Jackpots/GetJackpotsPotsResponse.ts +8 -0
  50. package/src/Jackpots/GetJackpotsRequest.ts +7 -0
  51. package/src/Jackpots/GetJackpotsResponse.ts +9 -0
  52. package/src/Jackpots/JackpotContributionType.ts +7 -0
  53. package/src/Jackpots/JackpotDetails.ts +20 -0
  54. package/src/Jackpots/JackpotPot.ts +10 -0
  55. package/src/Jackpots/JackpotPublicMeta.ts +8 -0
  56. package/src/Jackpots/JackpotType.ts +8 -0
  57. package/src/Jackpots/JackpotsOptinRequest.ts +7 -0
  58. package/src/Jackpots/JackpotsOptinResponse.ts +5 -0
  59. package/src/Jackpots/JackpotsOptoutRequest.ts +7 -0
  60. package/src/Jackpots/JackpotsOptoutResponse.ts +5 -0
  61. package/src/Jackpots/jackpotsWSApi.zip +0 -0
  62. package/src/MiniGames/SAWGameType.ts +5 -2
  63. package/src/MiniGames/SAWPrizeDropAknowledgeRequest.ts +5 -0
  64. package/src/MiniGames/SAWPrizeDropAknowledgeResponse.ts +5 -0
  65. package/src/MiniGames/SAWPrizeDropWinPush.ts +10 -0
  66. package/src/Missions/AchClaimPrizeResponse.ts +2 -3
  67. package/src/Missions/UserAchievement.ts +3 -0
  68. package/src/Missions/index.ts +3 -1
  69. package/src/Quiz/MarketsAnswersType.ts +22 -0
  70. package/src/Quiz/MarketsInfo.ts +185 -8
  71. package/src/Quiz/index.ts +2 -1
  72. package/src/SmarticoAPI.ts +32 -2
  73. package/src/Store/GetStoreHistoryRequest.ts +6 -0
  74. package/src/Store/GetStoreHistoryResponse.ts +7 -0
  75. package/src/Store/StorItemPruchased.ts +8 -0
  76. package/src/WSAPI/WSAPI.ts +30 -1
  77. package/src/WSAPI/WSAPITypes.ts +24 -0
@@ -28,6 +28,8 @@ var ClassId;
28
28
  ClassId[ClassId["CLIENT_SET_AVATAR_RESPONSE"] = 158] = "CLIENT_SET_AVATAR_RESPONSE";
29
29
  ClassId[ClassId["CLIENT_SET_CUSTOM_USERNAME_REQUEST"] = 159] = "CLIENT_SET_CUSTOM_USERNAME_REQUEST";
30
30
  ClassId[ClassId["CLIENT_SET_CUSTOM_USERNAME_RESPONSE"] = 160] = "CLIENT_SET_CUSTOM_USERNAME_RESPONSE";
31
+ ClassId[ClassId["CHECK_SEGMENT_MATCH_REQUEST"] = 161] = "CHECK_SEGMENT_MATCH_REQUEST";
32
+ ClassId[ClassId["CHECK_SEGMENT_MATCH_RESPONSE"] = 162] = "CHECK_SEGMENT_MATCH_RESPONSE";
31
33
  // 500-1000 - Achievements
32
34
  ClassId[ClassId["GET_LEVEL_MAP_REQUEST"] = 500] = "GET_LEVEL_MAP_REQUEST";
33
35
  ClassId[ClassId["GET_LEVEL_MAP_RESPONSE"] = 501] = "GET_LEVEL_MAP_RESPONSE";
@@ -68,6 +70,8 @@ var ClassId;
68
70
  ClassId[ClassId["GET_ACH_CATEGORIES_RESPONSE"] = 538] = "GET_ACH_CATEGORIES_RESPONSE";
69
71
  ClassId[ClassId["ACHIEVEMENT_CLAIM_PRIZE_REQUEST"] = 539] = "ACHIEVEMENT_CLAIM_PRIZE_REQUEST";
70
72
  ClassId[ClassId["ACHIEVEMENT_CLAIM_PRIZE_RESPONSE"] = 540] = "ACHIEVEMENT_CLAIM_PRIZE_RESPONSE";
73
+ ClassId[ClassId["ACH_SHOP_ITEM_HISTORY_REQUEST"] = 541] = "ACH_SHOP_ITEM_HISTORY_REQUEST";
74
+ ClassId[ClassId["ACH_SHOP_ITEM_HISTORY_RESPONSE"] = 542] = "ACH_SHOP_ITEM_HISTORY_RESPONSE";
71
75
  ClassId[ClassId["GET_BONUSES_REQUEST"] = 600] = "GET_BONUSES_REQUEST";
72
76
  ClassId[ClassId["GET_BONUSES_RESPONSE"] = 601] = "GET_BONUSES_RESPONSE";
73
77
  ClassId[ClassId["CLAIM_BONUS_REQUEST"] = 602] = "CLAIM_BONUS_REQUEST";
@@ -80,6 +84,18 @@ var ClassId;
80
84
  ClassId[ClassId["SAW_AKNOWLEDGE_RESPONSE"] = 705] = "SAW_AKNOWLEDGE_RESPONSE";
81
85
  ClassId[ClassId["SAW_SPINS_COUNT_PUSH"] = 706] = "SAW_SPINS_COUNT_PUSH";
82
86
  ClassId[ClassId["SAW_SHOW_SPIN_PUSH"] = 707] = "SAW_SHOW_SPIN_PUSH";
87
+ ClassId[ClassId["SAW_PRIZE_DROP_WIN_PUSH"] = 708] = "SAW_PRIZE_DROP_WIN_PUSH";
88
+ ClassId[ClassId["SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST"] = 709] = "SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST";
89
+ ClassId[ClassId["SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE"] = 710] = "SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE";
90
+ ClassId[ClassId["JP_GET_JACKPOTS_REQUEST"] = 800] = "JP_GET_JACKPOTS_REQUEST";
91
+ ClassId[ClassId["JP_GET_JACKPOTS_RESPONSE"] = 801] = "JP_GET_JACKPOTS_RESPONSE";
92
+ ClassId[ClassId["JP_GET_LATEST_POTS_REQUEST"] = 802] = "JP_GET_LATEST_POTS_REQUEST";
93
+ ClassId[ClassId["JP_GET_LATEST_POTS_RESPONSE"] = 803] = "JP_GET_LATEST_POTS_RESPONSE";
94
+ ClassId[ClassId["JP_OPTIN_REQUEST"] = 804] = "JP_OPTIN_REQUEST";
95
+ ClassId[ClassId["JP_OPTIN_RESPONSE"] = 805] = "JP_OPTIN_RESPONSE";
96
+ ClassId[ClassId["JP_OPTOUT_REQUEST"] = 806] = "JP_OPTOUT_REQUEST";
97
+ ClassId[ClassId["JP_OPTOUT_RESPONSE"] = 807] = "JP_OPTOUT_RESPONSE";
98
+ // JP_WIN_PUSH = 808,
83
99
  ClassId[ClassId["REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ"] = 1003] = "REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ";
84
100
  ClassId[ClassId["REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP"] = 2003] = "REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP";
85
101
  ClassId[ClassId["CLIENT_DEBUG_REQUEST"] = 77777] = "CLIENT_DEBUG_REQUEST";
@@ -207,6 +223,7 @@ var SAWGameType;
207
223
  SAWGameType[SAWGameType["ScratchCard"] = 2] = "ScratchCard";
208
224
  SAWGameType[SAWGameType["MatchX"] = 3] = "MatchX";
209
225
  SAWGameType[SAWGameType["GiftBox"] = 4] = "GiftBox";
226
+ SAWGameType[SAWGameType["PrizeDrop"] = 5] = "PrizeDrop";
210
227
  })(SAWGameType || (SAWGameType = {}));
211
228
  var SAWGameTypeName;
212
229
  (function (SAWGameTypeName) {
@@ -214,6 +231,7 @@ var SAWGameTypeName;
214
231
  SAWGameTypeName["ScratchCard"] = "scratch";
215
232
  SAWGameTypeName["MatchX"] = "matchx";
216
233
  SAWGameTypeName["GiftBox"] = "giftbox";
234
+ SAWGameTypeName["PrizeDrop"] = "prizedrop";
217
235
  SAWGameTypeName["Unknown"] = "unknown";
218
236
  })(SAWGameTypeName || (SAWGameTypeName = {}));
219
237
  /** @hidden */
@@ -222,7 +240,8 @@ const SAWGameTypeNamed = type => {
222
240
  [SAWGameType.SpinAWheel]: SAWGameTypeName.SpinAWheel,
223
241
  [SAWGameType.ScratchCard]: SAWGameTypeName.ScratchCard,
224
242
  [SAWGameType.MatchX]: SAWGameTypeName.MatchX,
225
- [SAWGameType.GiftBox]: SAWGameTypeName.GiftBox
243
+ [SAWGameType.GiftBox]: SAWGameTypeName.GiftBox,
244
+ [SAWGameType.PrizeDrop]: SAWGameTypeName.PrizeDrop
226
245
  }[type] || SAWGameTypeName.Unknown;
227
246
  };
228
247
 
@@ -661,7 +680,10 @@ const UserAchievementTransform = items => {
661
680
  game_provider: g.game_public_meta.game_provider
662
681
  }
663
682
  })),
664
- category_ids: (_r$ach_categories = r.ach_categories) != null ? _r$ach_categories : []
683
+ category_ids: (_r$ach_categories = r.ach_categories) != null ? _r$ach_categories : [],
684
+ ach_completed_id: r.ach_completed_id,
685
+ requires_prize_claim: r.requires_prize_claim,
686
+ prize_claimed_date_ts: r.prize_claimed_date_ts
665
687
  };
666
688
  return x;
667
689
  });
@@ -967,6 +989,7 @@ var onUpdateContextKey;
967
989
  onUpdateContextKey["AchCategories"] = "achCategories";
968
990
  onUpdateContextKey["LeaderBoards"] = "leaderBoards";
969
991
  onUpdateContextKey["LevelExtraCounters"] = "levelExtraCounters";
992
+ onUpdateContextKey["Segments"] = "segments";
970
993
  })(onUpdateContextKey || (onUpdateContextKey = {}));
971
994
  /** @group General API */
972
995
  class WSAPI {
@@ -995,6 +1018,19 @@ class WSAPI {
995
1018
  throw new Error('Tracker is not initialized, cannot getUserProfile');
996
1019
  }
997
1020
  }
1021
+ /** Check if user belongs to specific segments */
1022
+ async checkSegmentMatch(segment_id) {
1023
+ const r = await this.api.coreCheckSegments(null, [segment_id]);
1024
+ if (r && r.find(s => s.segment_id === segment_id && s.is_matching)) {
1025
+ return true;
1026
+ } else {
1027
+ return false;
1028
+ }
1029
+ }
1030
+ /** Check if user belongs to specific list of segments */
1031
+ async checkSegmentListMatch(segment_ids) {
1032
+ return await this.api.coreCheckSegments(null, segment_ids);
1033
+ }
998
1034
  /** Returns all the levels available the current user */
999
1035
  async getLevels() {
1000
1036
  return OCache.use(onUpdateContextKey.Levels, ECacheContext.WSAPI, () => this.api.levelsGetT(null), CACHE_DATA_SEC);
@@ -1077,6 +1113,15 @@ class WSAPI {
1077
1113
  };
1078
1114
  return o;
1079
1115
  }
1116
+ /** Request for claim reward for the specified mission id. Returns the err_code. */
1117
+ async requestMissionClaimReward(mission_id, ach_completed_id) {
1118
+ const r = await this.api.missionClaimPrize(null, mission_id, ach_completed_id);
1119
+ const o = {
1120
+ err_code: r.errCode,
1121
+ err_message: r.errMsg
1122
+ };
1123
+ return o;
1124
+ }
1080
1125
  /** Returns all the active instances of tournaments
1081
1126
  * The returned list is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getTournamentsList with a new onUpdate callback, the old one will be overwritten by the new one.
1082
1127
  * The onUpdate callback will be called when the user has registered in a tournament. Updated list will be passed to onUpdate callback.*/
@@ -1457,6 +1502,13 @@ class SmarticoAPI {
1457
1502
  });
1458
1503
  return await this.send(message, ClassId.CLIENT_SET_CUSTOM_USERNAME_RESPONSE);
1459
1504
  }
1505
+ async coreCheckSegments(user_ext_id, segment_id) {
1506
+ const message = this.buildMessage(user_ext_id, ClassId.CHECK_SEGMENT_MATCH_REQUEST, {
1507
+ segment_id
1508
+ });
1509
+ const results = await this.send(message, ClassId.CHECK_SEGMENT_MATCH_RESPONSE);
1510
+ return results.segments || [];
1511
+ }
1460
1512
  async sawGetTemplates(user_ext_id, lang, is_visitor_mode = false) {
1461
1513
  const message = this.buildMessage(user_ext_id, ClassId.SAW_GET_SPINS_REQUEST, lang ? {
1462
1514
  force_language: lang,
@@ -1529,6 +1581,17 @@ class SmarticoAPI {
1529
1581
  const res = await this.send(message, ClassId.MISSION_OPTIN_RESPONSE);
1530
1582
  return res;
1531
1583
  }
1584
+ async missionClaimPrize(user_ext_id, mission_id, ach_completed_id) {
1585
+ if (!mission_id) {
1586
+ throw new Error('Missing mission id');
1587
+ }
1588
+ const message = this.buildMessage(user_ext_id, ClassId.ACHIEVEMENT_CLAIM_PRIZE_REQUEST, {
1589
+ ach_id: mission_id,
1590
+ ach_completed_id: ach_completed_id
1591
+ });
1592
+ const res = await this.send(message, ClassId.ACHIEVEMENT_CLAIM_PRIZE_RESPONSE);
1593
+ return res;
1594
+ }
1532
1595
  async registerInTournament(user_ext_id, tournamentInstanceId) {
1533
1596
  if (!tournamentInstanceId) {
1534
1597
  throw new Error('Missing tournament instance id');
@@ -1803,25 +1866,301 @@ var QuizMarketType;
1803
1866
  QuizMarketType[QuizMarketType["LastGoal"] = 25] = "LastGoal";
1804
1867
  })(QuizMarketType || (QuizMarketType = {}));
1805
1868
 
1806
- const quizAnswerHomeTeamReplacementText = '%HomeTeam%';
1807
- const quizAnswerAwayTeamReplacementText = '%AwayTeam%';
1869
+ var MarketsValueType;
1870
+ (function (MarketsValueType) {
1871
+ MarketsValueType["HomeTeam"] = "1";
1872
+ MarketsValueType["AwayTeam"] = "2";
1873
+ MarketsValueType["Draw"] = "x";
1874
+ MarketsValueType["HomeTeamHomeTeam"] = "1/1";
1875
+ MarketsValueType["HomeTeamDraw"] = "1/x";
1876
+ MarketsValueType["HomeTeamAwayTeam"] = "1/2";
1877
+ MarketsValueType["DrawHomeTeam"] = "x/1";
1878
+ MarketsValueType["DrawDraw"] = "x/x";
1879
+ MarketsValueType["DrawAwayTeam"] = "x/2";
1880
+ MarketsValueType["AwayTeamHomeTeam"] = "2/1";
1881
+ MarketsValueType["AwayTeamDraw"] = "2/x";
1882
+ MarketsValueType["AwayTeamAwayTeam"] = "2/2";
1883
+ MarketsValueType["Yes"] = "yes";
1884
+ MarketsValueType["No"] = "no";
1885
+ MarketsValueType["Odd"] = "odd";
1886
+ MarketsValueType["Even"] = "even";
1887
+ MarketsValueType["HomeOdd"] = "1/odd";
1888
+ MarketsValueType["HomeEven"] = "1/even";
1889
+ MarketsValueType["AwayOdd"] = "2/odd";
1890
+ MarketsValueType["AwayEven"] = "2/even";
1891
+ })(MarketsValueType || (MarketsValueType = {}));
1892
+
1893
+ const quizAnswerHomeTeamReplacementText = '{quiz_home_team}';
1894
+ const quizAnswerAwayTeamReplacementText = '{quiz_away_team}';
1895
+ const drawReplacementText = '{quiz_draw}';
1896
+ const quizYesReplacementText = '{yes}';
1897
+ const quizNoReplacementText = '{no}';
1898
+ const quizOddReplacementText = '{odd}';
1899
+ const quizEvenReplacementText = '{even}';
1900
+ const yesNoAnswers = [{
1901
+ text: quizYesReplacementText,
1902
+ value: MarketsValueType.Yes
1903
+ }, {
1904
+ text: quizNoReplacementText,
1905
+ value: MarketsValueType.No
1906
+ }];
1907
+ const homeAwayAnswers = [{
1908
+ text: quizAnswerHomeTeamReplacementText,
1909
+ value: MarketsValueType.HomeTeam
1910
+ }, {
1911
+ text: quizAnswerAwayTeamReplacementText,
1912
+ value: MarketsValueType.AwayTeam
1913
+ }];
1914
+ const homeAwayDrawAnswers = [...homeAwayAnswers, {
1915
+ text: drawReplacementText,
1916
+ value: MarketsValueType.Draw
1917
+ }];
1808
1918
  const marketsInfo = [{
1809
1919
  type: QuizMarketType.OneXTwo,
1810
- name: '1X2',
1920
+ name: '1x2',
1921
+ question: {
1922
+ text: 'Who will win the match ?',
1923
+ trKey: 'quizQuestion_1x2'
1924
+ },
1925
+ answers: homeAwayDrawAnswers
1926
+ }, {
1927
+ type: QuizMarketType.OneXTwoHalftime,
1928
+ name: '1x2 Halftime',
1929
+ question: {
1930
+ text: 'Who will lead the first half of the match ?',
1931
+ trKey: 'quizQuestion_x2half'
1932
+ },
1933
+ answers: homeAwayDrawAnswers
1934
+ }, {
1935
+ type: QuizMarketType.HalftimeFulltime,
1936
+ name: 'Halftime / Fulltime',
1937
+ question: {
1938
+ text: 'Who will lead the first half and who will win the match ?',
1939
+ trKey: 'quizQuestion__HalftimeFulltime'
1940
+ },
1941
+ answers: [{
1942
+ text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
1943
+ value: MarketsValueType.HomeTeamHomeTeam
1944
+ }, {
1945
+ text: `${quizAnswerHomeTeamReplacementText} / ${drawReplacementText}`,
1946
+ value: MarketsValueType.HomeTeamDraw
1947
+ }, {
1948
+ text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
1949
+ value: MarketsValueType.HomeTeamAwayTeam
1950
+ }, {
1951
+ text: `${drawReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
1952
+ value: MarketsValueType.DrawHomeTeam
1953
+ }, {
1954
+ text: `${drawReplacementText} / ${drawReplacementText}`,
1955
+ value: MarketsValueType.DrawDraw
1956
+ }, {
1957
+ text: `${drawReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
1958
+ value: MarketsValueType.DrawAwayTeam
1959
+ }, {
1960
+ text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
1961
+ value: MarketsValueType.AwayTeamHomeTeam
1962
+ }, {
1963
+ text: `${quizAnswerAwayTeamReplacementText} / ${drawReplacementText}`,
1964
+ value: MarketsValueType.AwayTeamDraw
1965
+ }, {
1966
+ text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
1967
+ value: MarketsValueType.AwayTeamAwayTeam
1968
+ }]
1969
+ }, {
1970
+ type: QuizMarketType.FirstGoal,
1971
+ name: 'First Goal',
1972
+ question: {
1973
+ text: 'Who will score the first goal ?',
1974
+ trKey: 'quizQuestion_firstGoal'
1975
+ },
1976
+ answers: homeAwayDrawAnswers
1977
+ }, {
1978
+ type: QuizMarketType.LastGoal,
1979
+ name: 'Last Goal',
1980
+ question: {
1981
+ text: 'Who will score the last goal ?',
1982
+ trKey: 'quizQuestion_lastGoal'
1983
+ },
1984
+ answers: homeAwayAnswers
1985
+ }, {
1986
+ type: QuizMarketType.DoubleChance,
1987
+ name: 'Double Chance',
1988
+ question: {
1989
+ text: 'Who will win the match? Choose a combination: ?',
1990
+ trKey: 'quizQuestion_doubleChance'
1991
+ },
1992
+ answers: [{
1993
+ text: `${drawReplacementText} or ${quizAnswerHomeTeamReplacementText}`,
1994
+ value: MarketsValueType.HomeTeamDraw
1995
+ }, {
1996
+ text: `${quizAnswerHomeTeamReplacementText} or ${quizAnswerAwayTeamReplacementText}`,
1997
+ value: MarketsValueType.HomeTeamAwayTeam
1998
+ }, {
1999
+ text: `${drawReplacementText} or ${quizAnswerAwayTeamReplacementText}`,
2000
+ value: MarketsValueType.AwayTeamDraw
2001
+ }]
2002
+ }, {
2003
+ type: QuizMarketType.OverUnder2_5,
2004
+ name: 'Over/Under 2.5',
2005
+ question: {
2006
+ text: 'Will there be 3 or more goals in the match?',
2007
+ trKey: 'quizQuestion_overUnder2_5'
2008
+ },
2009
+ answers: yesNoAnswers
2010
+ }, {
2011
+ type: QuizMarketType.OverUnder1_5Halftime,
2012
+ name: 'Over/Under 1.5 Halftime',
2013
+ question: {
2014
+ text: 'Will there be 2 or more goals in the first half?',
2015
+ trKey: 'quizQuestion_overUnder1_5Halftime'
2016
+ },
2017
+ answers: yesNoAnswers
2018
+ }, {
2019
+ type: QuizMarketType.OverUnder1_5__2ndHalf,
2020
+ name: 'Over/Under 1.5 2nd Half',
2021
+ question: {
2022
+ text: 'Will there be 2 or more goals in the second half?',
2023
+ trKey: 'quizQuestion_overUnder1_5__2ndHalf'
2024
+ },
2025
+ answers: yesNoAnswers
2026
+ }, {
2027
+ type: QuizMarketType.RedCard,
2028
+ name: 'Red Card',
2029
+ question: {
2030
+ text: 'Will there be a red card in the match?',
2031
+ trKey: 'quizQuestion_redCard'
2032
+ },
2033
+ answers: yesNoAnswers
2034
+ }, {
2035
+ type: QuizMarketType.TotalCorners8_5,
2036
+ name: 'Total Corners 8.5',
2037
+ question: {
2038
+ text: 'Will there be 9 or more corners in the match?',
2039
+ trKey: 'quizQuestion_totalCorners8_5'
2040
+ },
2041
+ answers: yesNoAnswers
2042
+ }, {
2043
+ type: QuizMarketType.TotalCorners9_5,
2044
+ name: 'Total Corners 9.5',
2045
+ question: {
2046
+ text: 'Will there be 10 or more corners in the match?',
2047
+ trKey: 'quizQuestion_totalCorners9_5'
2048
+ },
2049
+ answers: yesNoAnswers
2050
+ }, {
2051
+ type: QuizMarketType.Corners1x2,
2052
+ name: 'Corners 1x2',
2053
+ question: {
2054
+ text: 'Which team will have more corners in the match?',
2055
+ trKey: 'quizQuestion_corners1x2'
2056
+ },
2057
+ answers: homeAwayAnswers
2058
+ }, {
2059
+ type: QuizMarketType.One_Two,
2060
+ name: '1-2',
1811
2061
  question: {
1812
2062
  text: 'Who will win the match ?',
1813
- trKey: 'quiz_answer_1x2'
2063
+ trKey: 'quizQuestion_1-2'
2064
+ },
2065
+ answers: homeAwayAnswers
2066
+ }, {
2067
+ type: QuizMarketType.Overtime,
2068
+ name: 'Overtime',
2069
+ question: {
2070
+ text: 'Will there be overtime in the match?',
2071
+ trKey: 'quizQuestion_overtime'
2072
+ },
2073
+ answers: yesNoAnswers
2074
+ }, {
2075
+ type: QuizMarketType.OddEven,
2076
+ name: 'Odd/Even',
2077
+ question: {
2078
+ text: 'Is the sum of all points scored in the game going to be an odd number or even?',
2079
+ trKey: 'quizQuestion_oddEven'
1814
2080
  },
1815
2081
  answers: [{
1816
- text: quizAnswerHomeTeamReplacementText,
1817
- trKey: 'quiz_answer_1x2_home'
2082
+ text: quizOddReplacementText,
2083
+ value: MarketsValueType.Odd
1818
2084
  }, {
1819
- text: 'Draw',
1820
- trKey: 'quiz_answer_1x2_draw'
2085
+ text: quizEvenReplacementText,
2086
+ value: MarketsValueType.Even
2087
+ }]
2088
+ }, {
2089
+ type: QuizMarketType.OddEvenHomeAway,
2090
+ name: 'Odd/Even Home/Away',
2091
+ question: {
2092
+ text: 'Which team will win and what will be the sum of the points (Odd or Even)?',
2093
+ trKey: 'quizQuestion_oddEvenHomeAway'
2094
+ },
2095
+ answers: [{
2096
+ text: `${quizAnswerHomeTeamReplacementText} - ${quizOddReplacementText}`,
2097
+ value: MarketsValueType.HomeOdd
1821
2098
  }, {
1822
- text: quizAnswerAwayTeamReplacementText,
1823
- trKey: 'quiz_answer_1x2_away'
2099
+ text: `${quizAnswerHomeTeamReplacementText} - ${quizEvenReplacementText}`,
2100
+ value: MarketsValueType.HomeEven
2101
+ }, {
2102
+ text: `${quizAnswerAwayTeamReplacementText} - ${quizOddReplacementText}`,
2103
+ value: MarketsValueType.AwayOdd
2104
+ }, {
2105
+ text: `${quizAnswerAwayTeamReplacementText} - ${quizEvenReplacementText}`,
2106
+ value: MarketsValueType.AwayEven
1824
2107
  }]
2108
+ }, {
2109
+ type: QuizMarketType.FirstSet,
2110
+ name: 'First Set',
2111
+ question: {
2112
+ text: 'Who will win the first set ?',
2113
+ trKey: 'quizQuestion_firstSet'
2114
+ },
2115
+ answers: homeAwayAnswers
2116
+ }, {
2117
+ type: QuizMarketType.SecondSet,
2118
+ name: 'Second Set',
2119
+ question: {
2120
+ text: 'Who will win the second set ?',
2121
+ trKey: 'quizQuestion_secondSet'
2122
+ },
2123
+ answers: homeAwayAnswers
2124
+ }, {
2125
+ type: QuizMarketType.ThirdSet,
2126
+ name: 'Third Set',
2127
+ question: {
2128
+ text: 'Who will win the third set ?',
2129
+ trKey: 'quizQuestion_thirdSet'
2130
+ },
2131
+ answers: homeAwayAnswers
2132
+ }, {
2133
+ type: QuizMarketType.FourthSet,
2134
+ name: 'Fourth Set',
2135
+ question: {
2136
+ text: 'Who will win the fourth set ?',
2137
+ trKey: 'quizQuestion_fourthSet'
2138
+ },
2139
+ answers: homeAwayAnswers
2140
+ }, {
2141
+ type: QuizMarketType.FifthSet,
2142
+ name: 'Fifth Set',
2143
+ question: {
2144
+ text: 'Who will win the fifth set ?',
2145
+ trKey: 'quizQuestion_fifthSet'
2146
+ },
2147
+ answers: homeAwayAnswers
2148
+ }, {
2149
+ type: QuizMarketType.PlayerOneWinsOneSet,
2150
+ name: 'Player One Wins One Set',
2151
+ question: {
2152
+ text: 'Will Player One win at least one set?',
2153
+ trKey: 'quizQuestion_playerOneWinsOneSet'
2154
+ },
2155
+ answers: yesNoAnswers
2156
+ }, {
2157
+ type: QuizMarketType.PlayerTwoWinsOneSet,
2158
+ name: 'Player Two Wins One Set',
2159
+ question: {
2160
+ text: 'Will Player Two win at least one set?',
2161
+ trKey: 'quizQuestion_playerTwoWinsOneSet'
2162
+ },
2163
+ answers: yesNoAnswers
1825
2164
  }];
1826
2165
 
1827
2166
  const QuizMarketPerSport = {
@@ -1830,5 +2169,5 @@ const QuizMarketPerSport = {
1830
2169
  [QuizSportType.Tennis]: [QuizMarketType.One_Two, QuizMarketType.FirstSet, QuizMarketType.SecondSet, QuizMarketType.ThirdSet, QuizMarketType.FourthSet, QuizMarketType.FifthSet, QuizMarketType.PlayerOneWinsOneSet, QuizMarketType.PlayerTwoWinsOneSet, QuizMarketType.OddEven]
1831
2170
  };
1832
2171
 
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 };
2172
+ export { AchCategoryTransform, AchievementStatus, AchievementTaskType, AchievementType, ActivityTypeLimited, BuyStoreItemErrorCode, ClassId, CookieStore, CoreUtils, GetLevelMapResponseTransform, InboxMessageBodyTransform, InboxMessageType, InboxMessagesTransform, LeaderBoardPeriodType, MarketsValueType, 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 };
1834
2173
  //# sourceMappingURL=index.modern.mjs.map