@smartico/public-api 0.0.142 → 0.0.144
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/README.md +14 -1
- package/dist/CustomSections/AchCustomSection.d.ts +27 -0
- package/dist/CustomSections/GetCustomSectionsRequest.d.ts +3 -0
- package/dist/CustomSections/GetCustomSectionsResponse.d.ts +7 -0
- package/dist/CustomSections/UICustomSection.d.ts +15 -0
- package/dist/CustomSections/index.d.ts +4 -0
- package/dist/Missions/AchievementPublicMeta.d.ts +1 -0
- package/dist/Missions/UserAchievement.d.ts +1 -0
- package/dist/Quiz/MarketsAnswers.d.ts +38 -0
- package/dist/Quiz/MarketsInfo.d.ts +4 -12
- package/dist/Quiz/MarketsPerSport.d.ts +4 -4
- package/dist/Quiz/MarketsType.d.ts +1 -1
- package/dist/Quiz/index.d.ts +1 -1
- package/dist/SmarticoAPI.d.ts +4 -1
- package/dist/WSAPI/WSAPI.d.ts +22 -1
- package/dist/WSAPI/WSAPITypes.d.ts +25 -0
- package/dist/index.js +310 -203
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +199 -109
- package/dist/index.modern.mjs.map +1 -1
- package/docs/README.md +1 -0
- package/docs/classes/WSAPI.md +28 -0
- package/docs/interfaces/TMissionOrBadge.md +8 -0
- package/docs/interfaces/TUICustomSection.md +81 -0
- package/package.json +1 -1
- package/src/Core/CoreUtils.ts +2 -2
- package/src/CustomSections/AchCustomSection.ts +30 -0
- package/src/CustomSections/GetCustomSectionsRequest.ts +5 -0
- package/src/CustomSections/GetCustomSectionsResponse.ts +7 -0
- package/src/CustomSections/UICustomSection.ts +34 -0
- package/src/CustomSections/index.ts +4 -0
- package/src/Missions/AchievementPublicMeta.ts +1 -0
- package/src/Missions/UserAchievement.ts +3 -1
- package/src/Quiz/MarketsAnswers.ts +40 -0
- package/src/Quiz/MarketsInfo.ts +50 -59
- package/src/Quiz/MarketsPerSport.ts +29 -29
- package/src/Quiz/MarketsType.ts +1 -1
- package/src/Quiz/index.ts +1 -1
- package/src/SmarticoAPI.ts +12 -2
- package/src/WSAPI/WSAPI.ts +26 -1
- package/src/WSAPI/WSAPITypes.ts +27 -0
- package/src/Quiz/MarketsAnswersType.ts +0 -22
package/dist/index.modern.mjs
CHANGED
|
@@ -494,7 +494,7 @@ var ActivityTypeLimited;
|
|
|
494
494
|
class CoreUtils {
|
|
495
495
|
static currencySymbol(currency) {
|
|
496
496
|
return {
|
|
497
|
-
[currency.toUpperCase()]: currency.toUpperCase(),
|
|
497
|
+
[currency == null ? void 0 : currency.toUpperCase()]: currency == null ? void 0 : currency.toUpperCase(),
|
|
498
498
|
USD: "$",
|
|
499
499
|
EUR: "€",
|
|
500
500
|
JPY: "¥",
|
|
@@ -515,7 +515,7 @@ class CoreUtils {
|
|
|
515
515
|
RUB: "₽",
|
|
516
516
|
BRL: "R$",
|
|
517
517
|
ZAR: "R" // South African Rand
|
|
518
|
-
}[currency.toUpperCase()];
|
|
518
|
+
}[currency == null ? void 0 : currency.toUpperCase()];
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
CoreUtils.avatarUrl = (avatar_id, avatarDomain) => {
|
|
@@ -802,7 +802,8 @@ const UserAchievementTransform = items => {
|
|
|
802
802
|
complete_date_ts: r.complete_date_ts,
|
|
803
803
|
completed_today: completedToday,
|
|
804
804
|
completed_this_week: completedThisWeek,
|
|
805
|
-
completed_this_month: completedThisMonth
|
|
805
|
+
completed_this_month: completedThisMonth,
|
|
806
|
+
custom_section_type_id: r.ach_public_meta.custom_section_type_id
|
|
806
807
|
};
|
|
807
808
|
return x;
|
|
808
809
|
});
|
|
@@ -1115,6 +1116,7 @@ var onUpdateContextKey;
|
|
|
1115
1116
|
onUpdateContextKey["StoreHistory"] = "storeHistory";
|
|
1116
1117
|
onUpdateContextKey["Jackpots"] = "jackpots";
|
|
1117
1118
|
onUpdateContextKey["Pots"] = "Pots";
|
|
1119
|
+
onUpdateContextKey["CustomSections"] = "customSections";
|
|
1118
1120
|
})(onUpdateContextKey || (onUpdateContextKey = {}));
|
|
1119
1121
|
/** @group General API */
|
|
1120
1122
|
class WSAPI {
|
|
@@ -1275,6 +1277,7 @@ class WSAPI {
|
|
|
1275
1277
|
* _smartico.vapi('EN').getStoreItems().then((result) => {
|
|
1276
1278
|
* console.log(result);
|
|
1277
1279
|
* });
|
|
1280
|
+
* ```
|
|
1278
1281
|
*/
|
|
1279
1282
|
async getStoreItems() {
|
|
1280
1283
|
return OCache.use(onUpdateContextKey.StoreItems, ECacheContext.WSAPI, () => this.api.storeGetItemsT(null), CACHE_DATA_SEC);
|
|
@@ -1313,6 +1316,7 @@ class WSAPI {
|
|
|
1313
1316
|
* _smartico.vapi('EN').getStoreCategories().then((result) => {
|
|
1314
1317
|
* console.log(result);
|
|
1315
1318
|
* });
|
|
1319
|
+
* ```
|
|
1316
1320
|
*/
|
|
1317
1321
|
async getStoreCategories() {
|
|
1318
1322
|
return OCache.use(onUpdateContextKey.StoreCategories, ECacheContext.WSAPI, () => this.api.storeGetCategoriesT(null), CACHE_DATA_SEC);
|
|
@@ -1362,6 +1366,27 @@ class WSAPI {
|
|
|
1362
1366
|
async getAchCategories() {
|
|
1363
1367
|
return OCache.use(onUpdateContextKey.AchCategories, ECacheContext.WSAPI, () => this.api.achGetCategoriesT(null), CACHE_DATA_SEC);
|
|
1364
1368
|
}
|
|
1369
|
+
/**
|
|
1370
|
+
* Returns list of custom sections
|
|
1371
|
+
*
|
|
1372
|
+
* **Example**:
|
|
1373
|
+
* ```
|
|
1374
|
+
* _smartico.api.getCustomSections().then((result) => {
|
|
1375
|
+
* console.log(result);
|
|
1376
|
+
* });
|
|
1377
|
+
* ```
|
|
1378
|
+
*
|
|
1379
|
+
* **Example in the Visitor mode**:
|
|
1380
|
+
* ```
|
|
1381
|
+
* _smartico.vapi('EN').getCustomSections().then((result) => {
|
|
1382
|
+
* console.log(result);
|
|
1383
|
+
* });
|
|
1384
|
+
* ```
|
|
1385
|
+
*
|
|
1386
|
+
* */
|
|
1387
|
+
async getCustomSections() {
|
|
1388
|
+
return OCache.use(onUpdateContextKey.CustomSections, ECacheContext.WSAPI, () => this.api.getCustomSectionsT(null), CACHE_DATA_SEC);
|
|
1389
|
+
}
|
|
1365
1390
|
/**
|
|
1366
1391
|
* Returns the list of mini-games available for user
|
|
1367
1392
|
* The returned list of mini-games is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getMiniGames with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
@@ -1799,6 +1824,56 @@ const getLeaderBoardTransform = board => {
|
|
|
1799
1824
|
return null;
|
|
1800
1825
|
};
|
|
1801
1826
|
|
|
1827
|
+
var AchCustomSectionType;
|
|
1828
|
+
(function (AchCustomSectionType) {
|
|
1829
|
+
AchCustomSectionType[AchCustomSectionType["HTML_PAGE"] = 1] = "HTML_PAGE";
|
|
1830
|
+
AchCustomSectionType[AchCustomSectionType["MISSIONS_CATEGORY"] = 2] = "MISSIONS_CATEGORY";
|
|
1831
|
+
AchCustomSectionType[AchCustomSectionType["TOURNAMENTS_CATEGORY"] = 3] = "TOURNAMENTS_CATEGORY";
|
|
1832
|
+
AchCustomSectionType[AchCustomSectionType["LEVELS"] = 4] = "LEVELS";
|
|
1833
|
+
AchCustomSectionType[AchCustomSectionType["MINI_GAMES"] = 5] = "MINI_GAMES";
|
|
1834
|
+
AchCustomSectionType[AchCustomSectionType["MISSION_CUSTOM_LAYOUT"] = 6] = "MISSION_CUSTOM_LAYOUT";
|
|
1835
|
+
AchCustomSectionType[AchCustomSectionType["MATCH_X"] = 7] = "MATCH_X";
|
|
1836
|
+
})(AchCustomSectionType || (AchCustomSectionType = {}));
|
|
1837
|
+
var AchCustomLayoutTheme;
|
|
1838
|
+
(function (AchCustomLayoutTheme) {
|
|
1839
|
+
AchCustomLayoutTheme["VALENTINES_LIGHT"] = "valentines-light";
|
|
1840
|
+
AchCustomLayoutTheme["VALENTINES_DARK"] = "valentines-dark";
|
|
1841
|
+
AchCustomLayoutTheme["EURO_2024"] = "euro-2024";
|
|
1842
|
+
AchCustomLayoutTheme["GENERIC"] = "generic";
|
|
1843
|
+
})(AchCustomLayoutTheme || (AchCustomLayoutTheme = {}));
|
|
1844
|
+
var AchMissionsTabsOptions;
|
|
1845
|
+
(function (AchMissionsTabsOptions) {
|
|
1846
|
+
AchMissionsTabsOptions[AchMissionsTabsOptions["ONLY_OVERVIEW"] = 1] = "ONLY_OVERVIEW";
|
|
1847
|
+
AchMissionsTabsOptions[AchMissionsTabsOptions["NO_OVERVIEW"] = 2] = "NO_OVERVIEW";
|
|
1848
|
+
AchMissionsTabsOptions[AchMissionsTabsOptions["ALL"] = 3] = "ALL";
|
|
1849
|
+
})(AchMissionsTabsOptions || (AchMissionsTabsOptions = {}));
|
|
1850
|
+
var AchOverviewMissionsFilter;
|
|
1851
|
+
(function (AchOverviewMissionsFilter) {
|
|
1852
|
+
AchOverviewMissionsFilter[AchOverviewMissionsFilter["ANY"] = 1] = "ANY";
|
|
1853
|
+
AchOverviewMissionsFilter[AchOverviewMissionsFilter["ALL_MISSIONS"] = 2] = "ALL_MISSIONS";
|
|
1854
|
+
AchOverviewMissionsFilter[AchOverviewMissionsFilter["ALL_EXCEPT_COMPLETED"] = 3] = "ALL_EXCEPT_COMPLETED";
|
|
1855
|
+
AchOverviewMissionsFilter[AchOverviewMissionsFilter["ALL_EXCEPT_LOCKED"] = 4] = "ALL_EXCEPT_LOCKED";
|
|
1856
|
+
AchOverviewMissionsFilter[AchOverviewMissionsFilter["ALL_EXCEPT_COMPLETED_AND_LOCKED"] = 5] = "ALL_EXCEPT_COMPLETED_AND_LOCKED";
|
|
1857
|
+
})(AchOverviewMissionsFilter || (AchOverviewMissionsFilter = {}));
|
|
1858
|
+
|
|
1859
|
+
const UICustomSectionTransform = items => {
|
|
1860
|
+
return items.filter(r => r.section_type_id !== undefined && r.section_type_id >= 1).map(r => {
|
|
1861
|
+
const x = {
|
|
1862
|
+
body: r.body,
|
|
1863
|
+
menu_img: r.menu_img,
|
|
1864
|
+
menu_name: r.menu_name,
|
|
1865
|
+
section_type_id: r.section_type_id,
|
|
1866
|
+
custom_skin_images: r.custom_skin_images,
|
|
1867
|
+
generic_custom_css: r.generic_custom_css,
|
|
1868
|
+
mission_tabs_options: r.mission_tabs_options,
|
|
1869
|
+
overview_missions_count: r.overview_missions_count,
|
|
1870
|
+
overview_missions_filter: r.overview_missions_filter,
|
|
1871
|
+
theme: r.theme
|
|
1872
|
+
};
|
|
1873
|
+
return x;
|
|
1874
|
+
});
|
|
1875
|
+
};
|
|
1876
|
+
|
|
1802
1877
|
const PUBLIC_API_URL = 'https://papi{ENV_ID}.smartico.ai/services/public';
|
|
1803
1878
|
const C_SOCKET_PROD = 'wss://api{ENV_ID}.smartico.ai/websocket/services';
|
|
1804
1879
|
const AVATAR_DOMAIN = 'https://img{ENV_ID}.smr.vc';
|
|
@@ -2254,6 +2329,13 @@ class SmarticoAPI {
|
|
|
2254
2329
|
async levelsGetT(user_ext_id) {
|
|
2255
2330
|
return GetLevelMapResponseTransform(await this.levelsGet(user_ext_id));
|
|
2256
2331
|
}
|
|
2332
|
+
async getCustomSections(user_ext_id) {
|
|
2333
|
+
const message = this.buildMessage(user_ext_id, ClassId.GET_CUSTOM_SECTIONS_REQUEST);
|
|
2334
|
+
return await this.send(message, ClassId.GET_CUSTOM_SECTIONS_RESPONSE);
|
|
2335
|
+
}
|
|
2336
|
+
async getCustomSectionsT(user_ext_id) {
|
|
2337
|
+
return UICustomSectionTransform(Object.values((await this.getCustomSections(user_ext_id)).customSections));
|
|
2338
|
+
}
|
|
2257
2339
|
async getTranslationsT(user_ext_id, lang_code, areas, cacheSec = 60) {
|
|
2258
2340
|
return await this.coreGetTranslations(user_ext_id, lang_code, areas, 30);
|
|
2259
2341
|
}
|
|
@@ -2352,61 +2434,60 @@ var QuizSportType;
|
|
|
2352
2434
|
})(QuizSportType || (QuizSportType = {}));
|
|
2353
2435
|
const quizSupportedSports = [QuizSportType.Basketball, QuizSportType.Soccer, QuizSportType.Tennis];
|
|
2354
2436
|
|
|
2355
|
-
var
|
|
2356
|
-
(function (
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
})(
|
|
2385
|
-
|
|
2386
|
-
var MarketsValueType;
|
|
2387
|
-
(function (MarketsValueType) {
|
|
2388
|
-
MarketsValueType["HomeTeam"] = "1";
|
|
2389
|
-
MarketsValueType["AwayTeam"] = "2";
|
|
2390
|
-
MarketsValueType["Draw"] = "x";
|
|
2391
|
-
MarketsValueType["HomeTeamHomeTeam"] = "1/1";
|
|
2392
|
-
MarketsValueType["HomeTeamDraw"] = "1/x";
|
|
2393
|
-
MarketsValueType["HomeTeamAwayTeam"] = "1/2";
|
|
2394
|
-
MarketsValueType["DrawHomeTeam"] = "x/1";
|
|
2395
|
-
MarketsValueType["DrawDraw"] = "x/x";
|
|
2396
|
-
MarketsValueType["DrawAwayTeam"] = "x/2";
|
|
2397
|
-
MarketsValueType["AwayTeamHomeTeam"] = "2/1";
|
|
2398
|
-
MarketsValueType["AwayTeamDraw"] = "2/x";
|
|
2399
|
-
MarketsValueType["AwayTeamAwayTeam"] = "2/2";
|
|
2400
|
-
MarketsValueType["Yes"] = "yes";
|
|
2401
|
-
MarketsValueType["No"] = "no";
|
|
2402
|
-
MarketsValueType["Odd"] = "odd";
|
|
2403
|
-
MarketsValueType["Even"] = "even";
|
|
2404
|
-
MarketsValueType["HomeOdd"] = "1/odd";
|
|
2405
|
-
MarketsValueType["HomeEven"] = "1/even";
|
|
2406
|
-
MarketsValueType["AwayOdd"] = "2/odd";
|
|
2407
|
-
MarketsValueType["AwayEven"] = "2/even";
|
|
2408
|
-
})(MarketsValueType || (MarketsValueType = {}));
|
|
2437
|
+
var SAWGPMarketType;
|
|
2438
|
+
(function (SAWGPMarketType) {
|
|
2439
|
+
SAWGPMarketType[SAWGPMarketType["TwoTeamsWithScore"] = 1] = "TwoTeamsWithScore";
|
|
2440
|
+
SAWGPMarketType[SAWGPMarketType["RedCard"] = 2] = "RedCard";
|
|
2441
|
+
SAWGPMarketType[SAWGPMarketType["OneXTwo"] = 3] = "OneXTwo";
|
|
2442
|
+
SAWGPMarketType[SAWGPMarketType["OneXTwoHalftime"] = 4] = "OneXTwoHalftime";
|
|
2443
|
+
SAWGPMarketType[SAWGPMarketType["HalftimeFulltime"] = 5] = "HalftimeFulltime";
|
|
2444
|
+
SAWGPMarketType[SAWGPMarketType["FirstGoal"] = 6] = "FirstGoal";
|
|
2445
|
+
SAWGPMarketType[SAWGPMarketType["DoubleChance"] = 7] = "DoubleChance";
|
|
2446
|
+
SAWGPMarketType[SAWGPMarketType["OverUnder2_5"] = 8] = "OverUnder2_5";
|
|
2447
|
+
SAWGPMarketType[SAWGPMarketType["OverUnder1_5Halftime"] = 9] = "OverUnder1_5Halftime";
|
|
2448
|
+
SAWGPMarketType[SAWGPMarketType["OverUnder1_5__2ndHalf"] = 10] = "OverUnder1_5__2ndHalf";
|
|
2449
|
+
SAWGPMarketType[SAWGPMarketType["TotalCorners8_5"] = 11] = "TotalCorners8_5";
|
|
2450
|
+
SAWGPMarketType[SAWGPMarketType["TotalCorners9_5"] = 12] = "TotalCorners9_5";
|
|
2451
|
+
SAWGPMarketType[SAWGPMarketType["Corners1x2"] = 13] = "Corners1x2";
|
|
2452
|
+
SAWGPMarketType[SAWGPMarketType["One_Two"] = 14] = "One_Two";
|
|
2453
|
+
SAWGPMarketType[SAWGPMarketType["Overtime"] = 15] = "Overtime";
|
|
2454
|
+
SAWGPMarketType[SAWGPMarketType["OddEven"] = 16] = "OddEven";
|
|
2455
|
+
SAWGPMarketType[SAWGPMarketType["OddEvenHomeAway"] = 17] = "OddEvenHomeAway";
|
|
2456
|
+
SAWGPMarketType[SAWGPMarketType["FirstSet"] = 18] = "FirstSet";
|
|
2457
|
+
SAWGPMarketType[SAWGPMarketType["SecondSet"] = 19] = "SecondSet";
|
|
2458
|
+
SAWGPMarketType[SAWGPMarketType["ThirdSet"] = 20] = "ThirdSet";
|
|
2459
|
+
SAWGPMarketType[SAWGPMarketType["FourthSet"] = 21] = "FourthSet";
|
|
2460
|
+
SAWGPMarketType[SAWGPMarketType["FifthSet"] = 22] = "FifthSet";
|
|
2461
|
+
SAWGPMarketType[SAWGPMarketType["PlayerOneWinsOneSet"] = 23] = "PlayerOneWinsOneSet";
|
|
2462
|
+
SAWGPMarketType[SAWGPMarketType["PlayerTwoWinsOneSet"] = 24] = "PlayerTwoWinsOneSet";
|
|
2463
|
+
SAWGPMarketType[SAWGPMarketType["LastGoal"] = 25] = "LastGoal";
|
|
2464
|
+
SAWGPMarketType[SAWGPMarketType["CustomSport"] = 26] = "CustomSport";
|
|
2465
|
+
SAWGPMarketType[SAWGPMarketType["CustomNonSport"] = 27] = "CustomNonSport";
|
|
2466
|
+
})(SAWGPMarketType || (SAWGPMarketType = {}));
|
|
2409
2467
|
|
|
2468
|
+
var QuizAnswersValueType;
|
|
2469
|
+
(function (QuizAnswersValueType) {
|
|
2470
|
+
QuizAnswersValueType["HomeTeam"] = "1";
|
|
2471
|
+
QuizAnswersValueType["AwayTeam"] = "2";
|
|
2472
|
+
QuizAnswersValueType["Draw"] = "x";
|
|
2473
|
+
QuizAnswersValueType["HomeTeamHomeTeam"] = "1/1";
|
|
2474
|
+
QuizAnswersValueType["HomeTeamDraw"] = "1/x";
|
|
2475
|
+
QuizAnswersValueType["HomeTeamAwayTeam"] = "1/2";
|
|
2476
|
+
QuizAnswersValueType["DrawHomeTeam"] = "x/1";
|
|
2477
|
+
QuizAnswersValueType["DrawDraw"] = "x/x";
|
|
2478
|
+
QuizAnswersValueType["DrawAwayTeam"] = "x/2";
|
|
2479
|
+
QuizAnswersValueType["AwayTeamHomeTeam"] = "2/1";
|
|
2480
|
+
QuizAnswersValueType["AwayTeamDraw"] = "2/x";
|
|
2481
|
+
QuizAnswersValueType["AwayTeamAwayTeam"] = "2/2";
|
|
2482
|
+
QuizAnswersValueType["Yes"] = "yes";
|
|
2483
|
+
QuizAnswersValueType["No"] = "no";
|
|
2484
|
+
QuizAnswersValueType["Odd"] = "odd";
|
|
2485
|
+
QuizAnswersValueType["Even"] = "even";
|
|
2486
|
+
QuizAnswersValueType["HomeOdd"] = "1/odd";
|
|
2487
|
+
QuizAnswersValueType["HomeEven"] = "1/even";
|
|
2488
|
+
QuizAnswersValueType["AwayOdd"] = "2/odd";
|
|
2489
|
+
QuizAnswersValueType["AwayEven"] = "2/even";
|
|
2490
|
+
})(QuizAnswersValueType || (QuizAnswersValueType = {}));
|
|
2410
2491
|
const quizAnswerHomeTeamReplacementText = '{quiz_home_team}';
|
|
2411
2492
|
const quizAnswerAwayTeamReplacementText = '{quiz_away_team}';
|
|
2412
2493
|
const quizDrawReplacementText = '{quiz_draw}';
|
|
@@ -2415,26 +2496,35 @@ const quizNoReplacementText = '{no}';
|
|
|
2415
2496
|
const quizOddReplacementText = '{odd}';
|
|
2416
2497
|
const quizEvenReplacementText = '{even}';
|
|
2417
2498
|
const quizOrReplacementText = '{or}';
|
|
2499
|
+
const quizAnswersTrKeys = {
|
|
2500
|
+
[quizDrawReplacementText]: 'quizAnswer_draw',
|
|
2501
|
+
[quizYesReplacementText]: 'quizAnswer_yes',
|
|
2502
|
+
[quizNoReplacementText]: 'quizAnswer_no',
|
|
2503
|
+
[quizOddReplacementText]: 'quizAnswer_odd',
|
|
2504
|
+
[quizEvenReplacementText]: 'quizAnswer_even',
|
|
2505
|
+
[quizOrReplacementText]: 'quizAnswer_or'
|
|
2506
|
+
};
|
|
2507
|
+
|
|
2418
2508
|
const yesNoAnswers = [{
|
|
2419
2509
|
text: quizYesReplacementText,
|
|
2420
|
-
value:
|
|
2510
|
+
value: QuizAnswersValueType.Yes
|
|
2421
2511
|
}, {
|
|
2422
2512
|
text: quizNoReplacementText,
|
|
2423
|
-
value:
|
|
2513
|
+
value: QuizAnswersValueType.No
|
|
2424
2514
|
}];
|
|
2425
2515
|
const homeAwayAnswers = [{
|
|
2426
2516
|
text: quizAnswerHomeTeamReplacementText,
|
|
2427
|
-
value:
|
|
2517
|
+
value: QuizAnswersValueType.HomeTeam
|
|
2428
2518
|
}, {
|
|
2429
2519
|
text: quizAnswerAwayTeamReplacementText,
|
|
2430
|
-
value:
|
|
2520
|
+
value: QuizAnswersValueType.AwayTeam
|
|
2431
2521
|
}];
|
|
2432
2522
|
const homeAwayDrawAnswers = [...homeAwayAnswers, {
|
|
2433
2523
|
text: quizDrawReplacementText,
|
|
2434
|
-
value:
|
|
2524
|
+
value: QuizAnswersValueType.Draw
|
|
2435
2525
|
}];
|
|
2436
2526
|
const marketsInfo = [{
|
|
2437
|
-
type:
|
|
2527
|
+
type: SAWGPMarketType.OneXTwo,
|
|
2438
2528
|
name: '1x2',
|
|
2439
2529
|
question: {
|
|
2440
2530
|
text: 'Who will win the match ?',
|
|
@@ -2442,7 +2532,7 @@ const marketsInfo = [{
|
|
|
2442
2532
|
},
|
|
2443
2533
|
answers: homeAwayDrawAnswers
|
|
2444
2534
|
}, {
|
|
2445
|
-
type:
|
|
2535
|
+
type: SAWGPMarketType.OneXTwoHalftime,
|
|
2446
2536
|
name: '1x2 Halftime',
|
|
2447
2537
|
question: {
|
|
2448
2538
|
text: 'Who will lead the first half of the match ?',
|
|
@@ -2450,7 +2540,7 @@ const marketsInfo = [{
|
|
|
2450
2540
|
},
|
|
2451
2541
|
answers: homeAwayDrawAnswers
|
|
2452
2542
|
}, {
|
|
2453
|
-
type:
|
|
2543
|
+
type: SAWGPMarketType.HalftimeFulltime,
|
|
2454
2544
|
name: 'Halftime / Fulltime',
|
|
2455
2545
|
question: {
|
|
2456
2546
|
text: 'Who will lead the first half and who will win the match ?',
|
|
@@ -2458,34 +2548,34 @@ const marketsInfo = [{
|
|
|
2458
2548
|
},
|
|
2459
2549
|
answers: [{
|
|
2460
2550
|
text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
|
|
2461
|
-
value:
|
|
2551
|
+
value: QuizAnswersValueType.HomeTeamHomeTeam
|
|
2462
2552
|
}, {
|
|
2463
2553
|
text: `${quizAnswerHomeTeamReplacementText} / ${quizDrawReplacementText}`,
|
|
2464
|
-
value:
|
|
2554
|
+
value: QuizAnswersValueType.HomeTeamDraw
|
|
2465
2555
|
}, {
|
|
2466
2556
|
text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
|
|
2467
|
-
value:
|
|
2557
|
+
value: QuizAnswersValueType.HomeTeamAwayTeam
|
|
2468
2558
|
}, {
|
|
2469
2559
|
text: `${quizDrawReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
|
|
2470
|
-
value:
|
|
2560
|
+
value: QuizAnswersValueType.DrawHomeTeam
|
|
2471
2561
|
}, {
|
|
2472
2562
|
text: `${quizDrawReplacementText} / ${quizDrawReplacementText}`,
|
|
2473
|
-
value:
|
|
2563
|
+
value: QuizAnswersValueType.DrawDraw
|
|
2474
2564
|
}, {
|
|
2475
2565
|
text: `${quizDrawReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
|
|
2476
|
-
value:
|
|
2566
|
+
value: QuizAnswersValueType.DrawAwayTeam
|
|
2477
2567
|
}, {
|
|
2478
2568
|
text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
|
|
2479
|
-
value:
|
|
2569
|
+
value: QuizAnswersValueType.AwayTeamHomeTeam
|
|
2480
2570
|
}, {
|
|
2481
2571
|
text: `${quizAnswerAwayTeamReplacementText} / ${quizDrawReplacementText}`,
|
|
2482
|
-
value:
|
|
2572
|
+
value: QuizAnswersValueType.AwayTeamDraw
|
|
2483
2573
|
}, {
|
|
2484
2574
|
text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
|
|
2485
|
-
value:
|
|
2575
|
+
value: QuizAnswersValueType.AwayTeamAwayTeam
|
|
2486
2576
|
}]
|
|
2487
2577
|
}, {
|
|
2488
|
-
type:
|
|
2578
|
+
type: SAWGPMarketType.FirstGoal,
|
|
2489
2579
|
name: 'First Goal',
|
|
2490
2580
|
question: {
|
|
2491
2581
|
text: 'Who will score the first goal ?',
|
|
@@ -2493,7 +2583,7 @@ const marketsInfo = [{
|
|
|
2493
2583
|
},
|
|
2494
2584
|
answers: homeAwayDrawAnswers
|
|
2495
2585
|
}, {
|
|
2496
|
-
type:
|
|
2586
|
+
type: SAWGPMarketType.LastGoal,
|
|
2497
2587
|
name: 'Last Goal',
|
|
2498
2588
|
question: {
|
|
2499
2589
|
text: 'Who will score the last goal ?',
|
|
@@ -2501,24 +2591,24 @@ const marketsInfo = [{
|
|
|
2501
2591
|
},
|
|
2502
2592
|
answers: homeAwayAnswers
|
|
2503
2593
|
}, {
|
|
2504
|
-
type:
|
|
2594
|
+
type: SAWGPMarketType.DoubleChance,
|
|
2505
2595
|
name: 'Double Chance',
|
|
2506
2596
|
question: {
|
|
2507
|
-
text: 'Who will win the match? Choose a combination:
|
|
2597
|
+
text: 'Who will win the match? Choose a combination:',
|
|
2508
2598
|
trKey: 'quizQuestion_doubleChance'
|
|
2509
2599
|
},
|
|
2510
2600
|
answers: [{
|
|
2511
2601
|
text: `${quizDrawReplacementText} ${quizOrReplacementText} ${quizAnswerHomeTeamReplacementText}`,
|
|
2512
|
-
value:
|
|
2602
|
+
value: QuizAnswersValueType.HomeTeamDraw
|
|
2513
2603
|
}, {
|
|
2514
2604
|
text: `${quizAnswerHomeTeamReplacementText} ${quizOrReplacementText} ${quizAnswerAwayTeamReplacementText}`,
|
|
2515
|
-
value:
|
|
2605
|
+
value: QuizAnswersValueType.HomeTeamAwayTeam
|
|
2516
2606
|
}, {
|
|
2517
2607
|
text: `${quizDrawReplacementText} ${quizOrReplacementText} ${quizAnswerAwayTeamReplacementText}`,
|
|
2518
|
-
value:
|
|
2608
|
+
value: QuizAnswersValueType.AwayTeamDraw
|
|
2519
2609
|
}]
|
|
2520
2610
|
}, {
|
|
2521
|
-
type:
|
|
2611
|
+
type: SAWGPMarketType.OverUnder2_5,
|
|
2522
2612
|
name: 'Over/Under 2.5',
|
|
2523
2613
|
question: {
|
|
2524
2614
|
text: 'Will there be 3 or more goals in the match?',
|
|
@@ -2526,7 +2616,7 @@ const marketsInfo = [{
|
|
|
2526
2616
|
},
|
|
2527
2617
|
answers: yesNoAnswers
|
|
2528
2618
|
}, {
|
|
2529
|
-
type:
|
|
2619
|
+
type: SAWGPMarketType.OverUnder1_5Halftime,
|
|
2530
2620
|
name: 'Over/Under 1.5 Halftime',
|
|
2531
2621
|
question: {
|
|
2532
2622
|
text: 'Will there be 2 or more goals in the first half?',
|
|
@@ -2534,7 +2624,7 @@ const marketsInfo = [{
|
|
|
2534
2624
|
},
|
|
2535
2625
|
answers: yesNoAnswers
|
|
2536
2626
|
}, {
|
|
2537
|
-
type:
|
|
2627
|
+
type: SAWGPMarketType.OverUnder1_5__2ndHalf,
|
|
2538
2628
|
name: 'Over/Under 1.5 2nd Half',
|
|
2539
2629
|
question: {
|
|
2540
2630
|
text: 'Will there be 2 or more goals in the second half?',
|
|
@@ -2542,7 +2632,7 @@ const marketsInfo = [{
|
|
|
2542
2632
|
},
|
|
2543
2633
|
answers: yesNoAnswers
|
|
2544
2634
|
}, {
|
|
2545
|
-
type:
|
|
2635
|
+
type: SAWGPMarketType.RedCard,
|
|
2546
2636
|
name: 'Red Card',
|
|
2547
2637
|
question: {
|
|
2548
2638
|
text: 'Will there be a red card in the match?',
|
|
@@ -2550,7 +2640,7 @@ const marketsInfo = [{
|
|
|
2550
2640
|
},
|
|
2551
2641
|
answers: yesNoAnswers
|
|
2552
2642
|
}, {
|
|
2553
|
-
type:
|
|
2643
|
+
type: SAWGPMarketType.TotalCorners8_5,
|
|
2554
2644
|
name: 'Total Corners 8.5',
|
|
2555
2645
|
question: {
|
|
2556
2646
|
text: 'Will there be 9 or more corners in the match?',
|
|
@@ -2558,7 +2648,7 @@ const marketsInfo = [{
|
|
|
2558
2648
|
},
|
|
2559
2649
|
answers: yesNoAnswers
|
|
2560
2650
|
}, {
|
|
2561
|
-
type:
|
|
2651
|
+
type: SAWGPMarketType.TotalCorners9_5,
|
|
2562
2652
|
name: 'Total Corners 9.5',
|
|
2563
2653
|
question: {
|
|
2564
2654
|
text: 'Will there be 10 or more corners in the match?',
|
|
@@ -2566,7 +2656,7 @@ const marketsInfo = [{
|
|
|
2566
2656
|
},
|
|
2567
2657
|
answers: yesNoAnswers
|
|
2568
2658
|
}, {
|
|
2569
|
-
type:
|
|
2659
|
+
type: SAWGPMarketType.Corners1x2,
|
|
2570
2660
|
name: 'Corners 1x2',
|
|
2571
2661
|
question: {
|
|
2572
2662
|
text: 'Which team will have more corners in the match?',
|
|
@@ -2574,7 +2664,7 @@ const marketsInfo = [{
|
|
|
2574
2664
|
},
|
|
2575
2665
|
answers: homeAwayAnswers
|
|
2576
2666
|
}, {
|
|
2577
|
-
type:
|
|
2667
|
+
type: SAWGPMarketType.One_Two,
|
|
2578
2668
|
name: '1-2',
|
|
2579
2669
|
question: {
|
|
2580
2670
|
text: 'Who will win the match ?',
|
|
@@ -2582,7 +2672,7 @@ const marketsInfo = [{
|
|
|
2582
2672
|
},
|
|
2583
2673
|
answers: homeAwayAnswers
|
|
2584
2674
|
}, {
|
|
2585
|
-
type:
|
|
2675
|
+
type: SAWGPMarketType.Overtime,
|
|
2586
2676
|
name: 'Overtime',
|
|
2587
2677
|
question: {
|
|
2588
2678
|
text: 'Will there be overtime in the match?',
|
|
@@ -2590,7 +2680,7 @@ const marketsInfo = [{
|
|
|
2590
2680
|
},
|
|
2591
2681
|
answers: yesNoAnswers
|
|
2592
2682
|
}, {
|
|
2593
|
-
type:
|
|
2683
|
+
type: SAWGPMarketType.OddEven,
|
|
2594
2684
|
name: 'Odd/Even',
|
|
2595
2685
|
question: {
|
|
2596
2686
|
text: 'Is the sum of all points scored in the game going to be an odd number or even?',
|
|
@@ -2598,13 +2688,13 @@ const marketsInfo = [{
|
|
|
2598
2688
|
},
|
|
2599
2689
|
answers: [{
|
|
2600
2690
|
text: quizOddReplacementText,
|
|
2601
|
-
value:
|
|
2691
|
+
value: QuizAnswersValueType.Odd
|
|
2602
2692
|
}, {
|
|
2603
2693
|
text: quizEvenReplacementText,
|
|
2604
|
-
value:
|
|
2694
|
+
value: QuizAnswersValueType.Even
|
|
2605
2695
|
}]
|
|
2606
2696
|
}, {
|
|
2607
|
-
type:
|
|
2697
|
+
type: SAWGPMarketType.OddEvenHomeAway,
|
|
2608
2698
|
name: 'Odd/Even Home/Away',
|
|
2609
2699
|
question: {
|
|
2610
2700
|
text: 'Which team will win and what will be the sum of the points (Odd or Even)?',
|
|
@@ -2612,19 +2702,19 @@ const marketsInfo = [{
|
|
|
2612
2702
|
},
|
|
2613
2703
|
answers: [{
|
|
2614
2704
|
text: `${quizAnswerHomeTeamReplacementText} - ${quizOddReplacementText}`,
|
|
2615
|
-
value:
|
|
2705
|
+
value: QuizAnswersValueType.HomeOdd
|
|
2616
2706
|
}, {
|
|
2617
2707
|
text: `${quizAnswerHomeTeamReplacementText} - ${quizEvenReplacementText}`,
|
|
2618
|
-
value:
|
|
2708
|
+
value: QuizAnswersValueType.HomeEven
|
|
2619
2709
|
}, {
|
|
2620
2710
|
text: `${quizAnswerAwayTeamReplacementText} - ${quizOddReplacementText}`,
|
|
2621
|
-
value:
|
|
2711
|
+
value: QuizAnswersValueType.AwayOdd
|
|
2622
2712
|
}, {
|
|
2623
2713
|
text: `${quizAnswerAwayTeamReplacementText} - ${quizEvenReplacementText}`,
|
|
2624
|
-
value:
|
|
2714
|
+
value: QuizAnswersValueType.AwayEven
|
|
2625
2715
|
}]
|
|
2626
2716
|
}, {
|
|
2627
|
-
type:
|
|
2717
|
+
type: SAWGPMarketType.FirstSet,
|
|
2628
2718
|
name: 'First Set',
|
|
2629
2719
|
question: {
|
|
2630
2720
|
text: 'Who will win the first set ?',
|
|
@@ -2632,7 +2722,7 @@ const marketsInfo = [{
|
|
|
2632
2722
|
},
|
|
2633
2723
|
answers: homeAwayAnswers
|
|
2634
2724
|
}, {
|
|
2635
|
-
type:
|
|
2725
|
+
type: SAWGPMarketType.SecondSet,
|
|
2636
2726
|
name: 'Second Set',
|
|
2637
2727
|
question: {
|
|
2638
2728
|
text: 'Who will win the second set ?',
|
|
@@ -2640,7 +2730,7 @@ const marketsInfo = [{
|
|
|
2640
2730
|
},
|
|
2641
2731
|
answers: homeAwayAnswers
|
|
2642
2732
|
}, {
|
|
2643
|
-
type:
|
|
2733
|
+
type: SAWGPMarketType.ThirdSet,
|
|
2644
2734
|
name: 'Third Set',
|
|
2645
2735
|
question: {
|
|
2646
2736
|
text: 'Who will win the third set ?',
|
|
@@ -2648,7 +2738,7 @@ const marketsInfo = [{
|
|
|
2648
2738
|
},
|
|
2649
2739
|
answers: homeAwayAnswers
|
|
2650
2740
|
}, {
|
|
2651
|
-
type:
|
|
2741
|
+
type: SAWGPMarketType.FourthSet,
|
|
2652
2742
|
name: 'Fourth Set',
|
|
2653
2743
|
question: {
|
|
2654
2744
|
text: 'Who will win the fourth set ?',
|
|
@@ -2656,7 +2746,7 @@ const marketsInfo = [{
|
|
|
2656
2746
|
},
|
|
2657
2747
|
answers: homeAwayAnswers
|
|
2658
2748
|
}, {
|
|
2659
|
-
type:
|
|
2749
|
+
type: SAWGPMarketType.FifthSet,
|
|
2660
2750
|
name: 'Fifth Set',
|
|
2661
2751
|
question: {
|
|
2662
2752
|
text: 'Who will win the fifth set ?',
|
|
@@ -2664,7 +2754,7 @@ const marketsInfo = [{
|
|
|
2664
2754
|
},
|
|
2665
2755
|
answers: homeAwayAnswers
|
|
2666
2756
|
}, {
|
|
2667
|
-
type:
|
|
2757
|
+
type: SAWGPMarketType.PlayerOneWinsOneSet,
|
|
2668
2758
|
name: 'Player One Wins One Set',
|
|
2669
2759
|
question: {
|
|
2670
2760
|
text: 'Will Player One win at least one set?',
|
|
@@ -2672,7 +2762,7 @@ const marketsInfo = [{
|
|
|
2672
2762
|
},
|
|
2673
2763
|
answers: yesNoAnswers
|
|
2674
2764
|
}, {
|
|
2675
|
-
type:
|
|
2765
|
+
type: SAWGPMarketType.PlayerTwoWinsOneSet,
|
|
2676
2766
|
name: 'Player Two Wins One Set',
|
|
2677
2767
|
question: {
|
|
2678
2768
|
text: 'Will Player Two win at least one set?',
|
|
@@ -2682,9 +2772,9 @@ const marketsInfo = [{
|
|
|
2682
2772
|
}];
|
|
2683
2773
|
|
|
2684
2774
|
const QuizMarketPerSport = {
|
|
2685
|
-
[QuizSportType.Basketball]: [
|
|
2686
|
-
[QuizSportType.Soccer]: [
|
|
2687
|
-
[QuizSportType.Tennis]: [
|
|
2775
|
+
[QuizSportType.Basketball]: [SAWGPMarketType.One_Two, SAWGPMarketType.Overtime, SAWGPMarketType.OneXTwo, SAWGPMarketType.OddEven, SAWGPMarketType.OddEvenHomeAway, SAWGPMarketType.DoubleChance],
|
|
2776
|
+
[QuizSportType.Soccer]: [SAWGPMarketType.OneXTwo, SAWGPMarketType.OneXTwoHalftime, SAWGPMarketType.HalftimeFulltime, SAWGPMarketType.FirstGoal, SAWGPMarketType.LastGoal, SAWGPMarketType.DoubleChance, SAWGPMarketType.OverUnder2_5, SAWGPMarketType.OverUnder1_5Halftime, SAWGPMarketType.OverUnder1_5__2ndHalf, SAWGPMarketType.RedCard, SAWGPMarketType.TotalCorners8_5, SAWGPMarketType.TotalCorners9_5, SAWGPMarketType.Corners1x2],
|
|
2777
|
+
[QuizSportType.Tennis]: [SAWGPMarketType.One_Two, SAWGPMarketType.FirstSet, SAWGPMarketType.SecondSet, SAWGPMarketType.ThirdSet, SAWGPMarketType.FourthSet, SAWGPMarketType.FifthSet, SAWGPMarketType.PlayerOneWinsOneSet, SAWGPMarketType.PlayerTwoWinsOneSet, SAWGPMarketType.OddEven]
|
|
2688
2778
|
};
|
|
2689
2779
|
|
|
2690
2780
|
var JackpotContributionType;
|
|
@@ -2698,5 +2788,5 @@ var JackpotType;
|
|
|
2698
2788
|
JackpotType[JackpotType["Main"] = 1] = "Main";
|
|
2699
2789
|
})(JackpotType || (JackpotType = {}));
|
|
2700
2790
|
|
|
2701
|
-
export { AchCategoryTransform, AchievementStatus, AchievementTaskType, AchievementType, ActivityTypeLimited, BuyStoreItemErrorCode, ClassId, CookieStore, CoreUtils, ECacheContext, GetLevelMapResponseTransform, InboxMessageBodyTransform, InboxMessageType, InboxMessagesTransform, JackpotContributionType, JackpotType, LeaderBoardPeriodType,
|
|
2791
|
+
export { AchCategoryTransform, AchievementStatus, AchievementTaskType, AchievementType, ActivityTypeLimited, BuyStoreItemErrorCode, ClassId, CookieStore, CoreUtils, ECacheContext, GetLevelMapResponseTransform, InboxMessageBodyTransform, InboxMessageType, InboxMessagesTransform, JackpotContributionType, JackpotType, LeaderBoardPeriodType, MiniGamePrizeTypeName, MiniGamePrizeTypeNamed, OCache, PublicLabelSettings, QuizAnswersValueType, QuizMarketPerSport, QuizSportType, SAWAcknowledgeType, SAWAskForUsername, SAWBuyInType, SAWBuyInTypeName, SAWBuyInTypeNamed, SAWGPMarketType, SAWGameType, SAWGameTypeName, SAWGameTypeNamed, SAWPrizeType, SAWSpinErrorCode, SAWTemplatesTransform, SAWUtils, SAWWinSoundFiles, SAWWinSoundType, ScheduledMissionType, SmarticoAPI, StoreCategoryTransform, StoreItemPurchasedTransform, StoreItemTransform, StoreItemType, StoreItemTypeName, StoreItemTypeNamed, TournamentInstanceStatus, TournamentInstanceStatusName, TournamentItemsTransform, TournamentRegistrationError, TournamentRegistrationStatus, TournamentRegistrationStatusName, TournamentRegistrationStatusNamed, TournamentRegistrationType, TournamentRegistrationTypeGetName, TournamentType, TournamentUtils, TranslationArea, UserAchievementTransform, marketsInfo, quizAnswerAwayTeamReplacementText, quizAnswerHomeTeamReplacementText, quizAnswersTrKeys, quizDrawReplacementText, quizEvenReplacementText, quizNoReplacementText, quizOddReplacementText, quizOrReplacementText, quizSupportedSports, quizYesReplacementText, tournamentInfoItemTransform };
|
|
2702
2792
|
//# sourceMappingURL=index.modern.mjs.map
|