@smartico/public-api 0.0.140 → 0.0.142

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/index.js CHANGED
@@ -507,6 +507,15 @@ var OCache = /*#__PURE__*/function () {
507
507
  return Promise.reject(e);
508
508
  }
509
509
  };
510
+ OCache.clearAll = function clearAll() {
511
+ try {
512
+ var _this3 = this;
513
+ _this3.cache = {};
514
+ return Promise.resolve();
515
+ } catch (e) {
516
+ return Promise.reject(e);
517
+ }
518
+ };
510
519
  return OCache;
511
520
  }();
512
521
  OCache.cache = {};
@@ -1104,7 +1113,7 @@ var GetLevelMapResponseTransform = function GetLevelMapResponseTransform(levels)
1104
1113
  description: l.level_public_meta.description,
1105
1114
  image: l.level_public_meta.image_url,
1106
1115
  required_points: l.required_points,
1107
- visibility_points: parseInt(l.level_public_meta.visibility_points),
1116
+ visibility_points: l.level_public_meta.visibility_points ? parseInt(l.level_public_meta.visibility_points) : null,
1108
1117
  required_level_counter_1: l.required_level_counter_1,
1109
1118
  required_level_counter_2: l.required_level_counter_2,
1110
1119
  custom_data: IntUtils.JsonOrText((_l$level_public_meta = l.level_public_meta) == null ? void 0 : _l$level_public_meta.custom_data)
@@ -1144,50 +1153,55 @@ var WSAPI = /*#__PURE__*/function () {
1144
1153
  this.onUpdateCallback = new Map();
1145
1154
  this.jackpotGetSignature = '';
1146
1155
  this.api = api;
1147
- var on = this.api.tracker.on;
1148
- on(exports.ClassId.SAW_SPINS_COUNT_PUSH, function (data) {
1149
- return _this.updateOnSpin(data);
1150
- });
1151
- on(exports.ClassId.SAW_SHOW_SPIN_PUSH, function () {
1152
- return _this.updateOnAddSpin();
1153
- });
1154
- on(exports.ClassId.SAW_DO_SPIN_RESPONSE, function (data) {
1155
- return on(exports.ClassId.SAW_AKNOWLEDGE_RESPONSE, function () {
1156
- return _this.updateOnPrizeWin(data);
1156
+ OCache.clearAll();
1157
+ if (this.api.tracker) {
1158
+ var on = this.api.tracker.on;
1159
+ on(exports.ClassId.SAW_SPINS_COUNT_PUSH, function (data) {
1160
+ return _this.updateOnSpin(data);
1157
1161
  });
1158
- });
1159
- on(exports.ClassId.MISSION_OPTIN_RESPONSE, function () {
1160
- return _this.updateMissionsOnOptIn();
1161
- });
1162
- on(exports.ClassId.TOURNAMENT_REGISTER_RESPONSE, function () {
1163
- return _this.updateTournamentsOnRegistration();
1164
- });
1165
- on(exports.ClassId.CLIENT_ENGAGEMENT_EVENT_NEW, function () {
1166
- return _this.updateInboxMessages();
1167
- });
1168
- on(exports.ClassId.LOGOUT_RESPONSE, function () {
1169
- return OCache.clearContext(exports.ECacheContext.WSAPI);
1170
- });
1171
- on(exports.ClassId.IDENTIFY_RESPONSE, function () {
1172
- return OCache.clearContext(exports.ECacheContext.WSAPI);
1173
- });
1174
- on(exports.ClassId.JP_WIN_PUSH, function (data) {
1175
- return _this.jackpotClearCache();
1176
- });
1177
- on(exports.ClassId.JP_OPTOUT_RESPONSE, function (data) {
1178
- return _this.jackpotClearCache();
1179
- });
1180
- on(exports.ClassId.JP_OPTIN_RESPONSE, function (data) {
1181
- return _this.jackpotClearCache();
1182
- });
1162
+ on(exports.ClassId.SAW_SHOW_SPIN_PUSH, function () {
1163
+ return _this.updateOnAddSpin();
1164
+ });
1165
+ on(exports.ClassId.SAW_DO_SPIN_RESPONSE, function (data) {
1166
+ return on(exports.ClassId.SAW_AKNOWLEDGE_RESPONSE, function () {
1167
+ return _this.updateOnPrizeWin(data);
1168
+ });
1169
+ });
1170
+ on(exports.ClassId.MISSION_OPTIN_RESPONSE, function () {
1171
+ return _this.updateMissionsOnOptIn();
1172
+ });
1173
+ on(exports.ClassId.TOURNAMENT_REGISTER_RESPONSE, function () {
1174
+ return _this.updateTournamentsOnRegistration();
1175
+ });
1176
+ on(exports.ClassId.CLIENT_ENGAGEMENT_EVENT_NEW, function () {
1177
+ return _this.updateInboxMessages();
1178
+ });
1179
+ on(exports.ClassId.LOGOUT_RESPONSE, function () {
1180
+ return OCache.clearContext(exports.ECacheContext.WSAPI);
1181
+ });
1182
+ on(exports.ClassId.IDENTIFY_RESPONSE, function () {
1183
+ return OCache.clearContext(exports.ECacheContext.WSAPI);
1184
+ });
1185
+ on(exports.ClassId.JP_WIN_PUSH, function (data) {
1186
+ return _this.jackpotClearCache();
1187
+ });
1188
+ on(exports.ClassId.JP_OPTOUT_RESPONSE, function (data) {
1189
+ return _this.jackpotClearCache();
1190
+ });
1191
+ on(exports.ClassId.JP_OPTIN_RESPONSE, function (data) {
1192
+ return _this.jackpotClearCache();
1193
+ });
1194
+ }
1183
1195
  }
1184
1196
  /** Returns information about current user
1185
- * Example usage:
1197
+ *
1198
+ * **Example**:
1186
1199
  * ```
1187
1200
  * _smartico.api.getUserProfile().then((result) => {
1188
1201
  * console.log(result);
1189
1202
  * });
1190
1203
  * ```
1204
+ * **Visitor mode: not supported**
1191
1205
  * */
1192
1206
  var _proto = WSAPI.prototype;
1193
1207
  _proto.getUserProfile = function getUserProfile() {
@@ -1200,12 +1214,14 @@ var WSAPI = /*#__PURE__*/function () {
1200
1214
  }
1201
1215
  }
1202
1216
  /** Check if user belongs to specific segments
1203
- * Example usage:
1217
+ * **Example**:
1204
1218
  * ```
1205
1219
  * _smartico.api.checkSegmentMatch(1).then((result) => {
1206
1220
  * console.log(result);
1207
1221
  * });
1208
1222
  * ```
1223
+ *
1224
+ * **Visitor mode: not supported**
1209
1225
  */;
1210
1226
  _proto.checkSegmentMatch = function checkSegmentMatch(segment_id) {
1211
1227
  try {
@@ -1224,12 +1240,13 @@ var WSAPI = /*#__PURE__*/function () {
1224
1240
  }
1225
1241
  }
1226
1242
  /** Check if user belongs to specific list of segments
1227
- * Example usage:
1243
+ * **Example**:
1228
1244
  * ```
1229
1245
  * _smartico.api.checkSegmentListMatch([1, 2, 3]).then((result) => {
1230
1246
  * console.log(result);
1231
1247
  * });
1232
1248
  * ```
1249
+ * **Visitor mode: not supported**
1233
1250
  */
1234
1251
  ;
1235
1252
  _proto.checkSegmentListMatch = function checkSegmentListMatch(segment_ids) {
@@ -1241,10 +1258,17 @@ var WSAPI = /*#__PURE__*/function () {
1241
1258
  }
1242
1259
  }
1243
1260
  /** Returns all the levels available the current user
1244
- * Example usage:
1261
+ * **Example**:
1245
1262
  * ```
1246
1263
  * _smartico.api.getLevels().then((result) => {
1247
- * console.log(result);
1264
+ * console.log(result);
1265
+ * });
1266
+ * ```
1267
+ *
1268
+ * **Example in the Visitor mode**:
1269
+ * ```
1270
+ * _smartico.vapi('EN').getLevels().then((result) => {
1271
+ * console.log(result);
1248
1272
  * });
1249
1273
  * ```
1250
1274
  */
@@ -1263,14 +1287,20 @@ var WSAPI = /*#__PURE__*/function () {
1263
1287
  * The returned missions are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
1264
1288
  * Note that each time you call getMissions with a new onUpdate callback, the old one will be overwritten by the new one.
1265
1289
  * The onUpdate callback will be called on mission OptIn and the updated missions will be passed to it.
1266
- * Example usage:
1290
+ *
1291
+ * **Example**:
1267
1292
  * ```
1268
1293
  * _smartico.api.getMissions().then((result) => {
1269
- * console.log(result);
1294
+ * console.log(result);
1295
+ * });
1296
+ * ```
1297
+ *
1298
+ * **Example in the Visitor mode**:
1299
+ * ```
1300
+ * _smartico.vapi('EN').getMissions().then((result) => {
1301
+ * console.log(result);
1270
1302
  * });
1271
1303
  * ```
1272
- /**
1273
- * @param params
1274
1304
  */
1275
1305
  ;
1276
1306
  _proto.getMissions = function getMissions(_temp) {
@@ -1287,7 +1317,13 @@ var WSAPI = /*#__PURE__*/function () {
1287
1317
  } catch (e) {
1288
1318
  return Promise.reject(e);
1289
1319
  }
1290
- } /** Returns all the badges available the current user */;
1320
+ }
1321
+ /**
1322
+ * Returns all the badges available the current user
1323
+ *
1324
+ * **Visitor mode: not supported**
1325
+ */
1326
+ ;
1291
1327
  _proto.getBadges = function getBadges() {
1292
1328
  try {
1293
1329
  var _this6 = this;
@@ -1302,12 +1338,15 @@ var WSAPI = /*#__PURE__*/function () {
1302
1338
  * Returns the extra counters for the current user level.
1303
1339
  * These are counters that are configured for each Smartico client separatly by request.
1304
1340
  * For example 1st counter could be total wagering amount, 2nd counter could be total deposit amount, etc.
1305
- * Example usage:
1341
+ *
1342
+ * **Example**:
1306
1343
  * ```
1307
1344
  * _smartico.api.getUserLevelExtraCounters().then((result) => {
1308
1345
  * console.log(result);
1309
1346
  * });
1310
1347
  * ```
1348
+ *
1349
+ * **Visitor mode: not supported**
1311
1350
  */
1312
1351
  ;
1313
1352
  _proto.getUserLevelExtraCounters = function getUserLevelExtraCounters() {
@@ -1320,12 +1359,22 @@ var WSAPI = /*#__PURE__*/function () {
1320
1359
  return Promise.reject(e);
1321
1360
  }
1322
1361
  }
1323
- /** Returns all the store items available the current user
1324
- * Example usage:
1362
+ /**
1363
+ *
1364
+ * Returns all the store items available the current user
1365
+ *
1366
+ * **Example**:
1325
1367
  * ```
1326
1368
  * _smartico.api.getStoreItems().then((result) => {
1327
1369
  * console.log(result);
1328
1370
  * });
1371
+ * ```
1372
+ *
1373
+ * **Example in the Visitor mode**:
1374
+ * ```
1375
+ * _smartico.vapi('EN').getStoreItems().then((result) => {
1376
+ * console.log(result);
1377
+ * });
1329
1378
  */
1330
1379
  ;
1331
1380
  _proto.getStoreItems = function getStoreItems() {
@@ -1339,11 +1388,14 @@ var WSAPI = /*#__PURE__*/function () {
1339
1388
  }
1340
1389
  }
1341
1390
  /** Buy the specific shop item by item_id. Returns the err_code in case of success or error.
1342
- * Example usage:
1391
+ * **Example**:
1343
1392
  * ```
1344
1393
  * _smartico.api.buyStoreItem(1).then((result) => {
1345
1394
  * console.log(result);
1346
1395
  * });
1396
+ * ```
1397
+ *
1398
+ * **Visitor mode: not supported**
1347
1399
  */
1348
1400
  ;
1349
1401
  _proto.buyStoreItem = function buyStoreItem(item_id) {
@@ -1359,7 +1411,25 @@ var WSAPI = /*#__PURE__*/function () {
1359
1411
  } catch (e) {
1360
1412
  return Promise.reject(e);
1361
1413
  }
1362
- } /** Returns store categories */;
1414
+ }
1415
+ /**
1416
+ *
1417
+ * Returns store categories
1418
+ *
1419
+ * **Example**:
1420
+ * ```
1421
+ * _smartico.api.getStoreCategories().then((result) => {
1422
+ * console.log(result);
1423
+ * });
1424
+ * ```
1425
+ *
1426
+ * **Example in the Visitor mode**:
1427
+ * ```
1428
+ * _smartico.vapi('EN').getStoreCategories().then((result) => {
1429
+ * console.log(result);
1430
+ * });
1431
+ */
1432
+ ;
1363
1433
  _proto.getStoreCategories = function getStoreCategories() {
1364
1434
  try {
1365
1435
  var _this10 = this;
@@ -1370,15 +1440,19 @@ var WSAPI = /*#__PURE__*/function () {
1370
1440
  return Promise.reject(e);
1371
1441
  }
1372
1442
  }
1373
- /** Returns purchased items based on the provided parameters. "Limit" and "offset" indicate the range of items to be fetched.
1443
+ /**
1444
+ * Returns purchased items based on the provided parameters. "Limit" and "offset" indicate the range of items to be fetched.
1374
1445
  * The maximum number of items per request is limited to 20.
1375
1446
  * You can leave this params empty and by default it will return list of purchased items ranging from 0 to 20.
1376
- * Example usage:
1447
+ *
1448
+ * **Example**:
1377
1449
  * ```
1378
1450
  * _smartico.api.getStorePurchasedItems().then((result) => {
1379
1451
  * console.log(result);
1380
1452
  * });
1381
1453
  * ```
1454
+ *
1455
+ * **Visitor mode: not supported**
1382
1456
  */
1383
1457
  ;
1384
1458
  _proto.getStorePurchasedItems = function getStorePurchasedItems(_temp2) {
@@ -1397,7 +1471,26 @@ var WSAPI = /*#__PURE__*/function () {
1397
1471
  } catch (e) {
1398
1472
  return Promise.reject(e);
1399
1473
  }
1400
- } /** Returns missions & badges categories */;
1474
+ }
1475
+ /**
1476
+ * Returns missions & badges categories
1477
+ *
1478
+ * **Example**:
1479
+ * ```
1480
+ * _smartico.api.getAchCategories().then((result) => {
1481
+ * console.log(result);
1482
+ * });
1483
+ * ```
1484
+ *
1485
+ * **Example in the Visitor mode**:
1486
+ * ```
1487
+ * _smartico.vapi('EN').getAchCategories().then((result) => {
1488
+ * console.log(result);
1489
+ * });
1490
+ * ```
1491
+ *
1492
+ * */
1493
+ ;
1401
1494
  _proto.getAchCategories = function getAchCategories() {
1402
1495
  try {
1403
1496
  var _this12 = this;
@@ -1408,12 +1501,25 @@ var WSAPI = /*#__PURE__*/function () {
1408
1501
  return Promise.reject(e);
1409
1502
  }
1410
1503
  }
1411
- /** Returns the list of mini-games available for user
1412
- * 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.
1413
- * The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or wined prize is spin/jackpot and if max count of the available user spin equal one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback. */
1414
- /**
1415
1504
  /**
1416
- * @param params
1505
+ * Returns the list of mini-games available for user
1506
+ * 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.
1507
+ * The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or wined prize is spin/jackpot and if max count of the available user spin equal one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback.
1508
+ *
1509
+ * **Example**:
1510
+ * ```
1511
+ * _smartico.api.getMiniGames().then((result) => {
1512
+ * console.log(result);
1513
+ * });
1514
+ * ```
1515
+ *
1516
+ * **Example in the Visitor mode**:
1517
+ * ```
1518
+ * _smartico.vapi('EN').getMiniGames().then((result) => {
1519
+ * console.log(result);
1520
+ * });
1521
+ * ```
1522
+ *
1417
1523
  */
1418
1524
  ;
1419
1525
  _proto.getMiniGames = function getMiniGames(_temp3) {
@@ -1430,7 +1536,13 @@ var WSAPI = /*#__PURE__*/function () {
1430
1536
  } catch (e) {
1431
1537
  return Promise.reject(e);
1432
1538
  }
1433
- } /** Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code */;
1539
+ }
1540
+ /**
1541
+ * Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
1542
+ *
1543
+ * **Visitor mode: not supported**
1544
+ */
1545
+ ;
1434
1546
  _proto.playMiniGame = function playMiniGame(template_id) {
1435
1547
  try {
1436
1548
  var _this14 = this;
@@ -1446,7 +1558,13 @@ var WSAPI = /*#__PURE__*/function () {
1446
1558
  } catch (e) {
1447
1559
  return Promise.reject(e);
1448
1560
  }
1449
- } /** Requests an opt-in for the specified mission_id. Returns the err_code. */;
1561
+ }
1562
+ /**
1563
+ * Requests an opt-in for the specified mission_id. Returns the err_code.
1564
+ *
1565
+ * **Visitor mode: not supported**
1566
+ */
1567
+ ;
1450
1568
  _proto.requestMissionOptIn = function requestMissionOptIn(mission_id) {
1451
1569
  try {
1452
1570
  var _this15 = this;
@@ -1460,7 +1578,13 @@ var WSAPI = /*#__PURE__*/function () {
1460
1578
  } catch (e) {
1461
1579
  return Promise.reject(e);
1462
1580
  }
1463
- } /** Request for claim reward for the specified mission id. Returns the err_code. */;
1581
+ }
1582
+ /**
1583
+ * Request for claim reward for the specified mission id. Returns the err_code.
1584
+ *
1585
+ * **Visitor mode: not supported**
1586
+ */
1587
+ ;
1464
1588
  _proto.requestMissionClaimReward = function requestMissionClaimReward(mission_id, ach_completed_id) {
1465
1589
  try {
1466
1590
  var _this16 = this;
@@ -1477,10 +1601,22 @@ var WSAPI = /*#__PURE__*/function () {
1477
1601
  }
1478
1602
  /** Returns all the active instances of tournaments
1479
1603
  * 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.
1480
- * The onUpdate callback will be called when the user has registered in a tournament. Updated list will be passed to onUpdate callback.*/
1481
- /**
1482
- * @param params
1483
- */
1604
+ * The onUpdate callback will be called when the user has registered in a tournament. Updated list will be passed to onUpdate callback.
1605
+ *
1606
+ * **Example**:
1607
+ * ```
1608
+ * _smartico.api.getTournamentsList().then((result) => {
1609
+ * console.log(result);
1610
+ * });
1611
+ * ```
1612
+ *
1613
+ * **Example in the Visitor mode**:
1614
+ * ```
1615
+ * _smartico.vapi('EN').getTournamentsList().then((result) => {
1616
+ * console.log(result);
1617
+ * });
1618
+ * ```
1619
+ * */
1484
1620
  ;
1485
1621
  _proto.getTournamentsList = function getTournamentsList(_temp4) {
1486
1622
  var _ref4 = _temp4 === void 0 ? {} : _temp4,
@@ -1496,7 +1632,33 @@ var WSAPI = /*#__PURE__*/function () {
1496
1632
  } catch (e) {
1497
1633
  return Promise.reject(e);
1498
1634
  }
1499
- } /** Returns details information of specific tournament instance, the response will include tournament info and the leaderboard of players */;
1635
+ }
1636
+ /**
1637
+ * Returns details information of specific tournament instance, the response will include tournament info and the leaderboard of players
1638
+ *
1639
+ * **Example**:
1640
+ * ```
1641
+ * _smartico.api.getTournamentsList().then((result) => {
1642
+ * if (result.length > 0) {
1643
+ * _smartico.api.getTournamentInstanceInfo(result[0].instance_id).then((result) => {
1644
+ * console.log(result);
1645
+ * });
1646
+ * }
1647
+ * });
1648
+ * ```
1649
+ *
1650
+ * **Example in the Visitor mode**:
1651
+ * ```
1652
+ * _smartico.vapi('EN').getTournamentsList().then((result) => {
1653
+ * if (result.length > 0) {
1654
+ * _smartico.vapi('EN').getTournamentInstanceInfo(result[0].instance_id).then((result) => {
1655
+ * console.log(result);
1656
+ * });
1657
+ * }
1658
+ * });
1659
+ * ```
1660
+ */
1661
+ ;
1500
1662
  _proto.getTournamentInstanceInfo = function getTournamentInstanceInfo(tournamentInstanceId) {
1501
1663
  try {
1502
1664
  var _this18 = this;
@@ -1504,7 +1666,13 @@ var WSAPI = /*#__PURE__*/function () {
1504
1666
  } catch (e) {
1505
1667
  return Promise.reject(e);
1506
1668
  }
1507
- } /** Requests registration for the specified tournament instance. Returns the err_code. */;
1669
+ }
1670
+ /**
1671
+ * Requests registration for the specified tournament instance. Returns the err_code.
1672
+ *
1673
+ * **Visitor mode: not supported**
1674
+ */
1675
+ ;
1508
1676
  _proto.registerInTournament = function registerInTournament(tournamentInstanceId) {
1509
1677
  try {
1510
1678
  var _this19 = this;
@@ -1519,8 +1687,23 @@ var WSAPI = /*#__PURE__*/function () {
1519
1687
  return Promise.reject(e);
1520
1688
  }
1521
1689
  }
1522
- /** Returns the leaderboard for the current type (default is Daily). If getPreviousPeriod is passed as true, a leaderboard for the previous period for the current type will be returned.
1523
- For example, if the type is Weekly and getPreviousPeriod is true, a leaderboard for the previous week will be returned.
1690
+ /**
1691
+ * Returns the leaderboard for the current type (default is Daily). If getPreviousPeriod is passed as true, a leaderboard for the previous period for the current type will be returned.
1692
+ * For example, if the type is Weekly and getPreviousPeriod is true, a leaderboard for the previous week will be returned.
1693
+ *
1694
+ * **Example**:
1695
+ * ```
1696
+ * _smartico.api.getLeaderBoard(1).then((result) => {
1697
+ * console.log(result);
1698
+ * });
1699
+ * ```
1700
+ *
1701
+ * **Example in the Visitor mode**:
1702
+ * ```
1703
+ * _smartico.vapi('EN').getLeaderBoard(1).then((result) => {
1704
+ * console.log(result);
1705
+ * });
1706
+ * ```
1524
1707
  */
1525
1708
  ;
1526
1709
  _proto.getLeaderBoard = function getLeaderBoard(periodType, getPreviousPeriod) {
@@ -1539,8 +1722,10 @@ var WSAPI = /*#__PURE__*/function () {
1539
1722
  * This functions return list of messages without the body of the message.
1540
1723
  * To get the body of the message you need to call getInboxMessageBody function and pass the message guid contained in each message of this request.
1541
1724
  * All other action like mark as read, favorite, delete, etc. can be done using this message GUID.
1542
- * The "onUpdate" callback will be triggered when the user receives a new message. It will provide an updated list of messages, ranging from 0 to 20, to the onUpdate callback function. */
1543
- /**
1725
+ * The "onUpdate" callback will be triggered when the user receives a new message. It will provide an updated list of messages, ranging from 0 to 20, to the onUpdate callback function.
1726
+ *
1727
+ * **Visitor mode: not supported**
1728
+ *
1544
1729
  * @param params
1545
1730
  */
1546
1731
  ;
@@ -1559,7 +1744,13 @@ var WSAPI = /*#__PURE__*/function () {
1559
1744
  } catch (e) {
1560
1745
  return Promise.reject(e);
1561
1746
  }
1562
- } /** Returns the message body of the specified message guid. */;
1747
+ }
1748
+ /**
1749
+ * Returns the message body of the specified message guid.
1750
+ *
1751
+ * **Visitor mode: not supported**
1752
+ */
1753
+ ;
1563
1754
  _proto.getInboxMessageBody = function getInboxMessageBody(messageGuid) {
1564
1755
  try {
1565
1756
  var _this22 = this;
@@ -1567,7 +1758,13 @@ var WSAPI = /*#__PURE__*/function () {
1567
1758
  } catch (e) {
1568
1759
  return Promise.reject(e);
1569
1760
  }
1570
- } /** Requests to mark inbox message with specified guid as read */;
1761
+ }
1762
+ /**
1763
+ * Requests to mark inbox message with specified guid as read
1764
+ *
1765
+ * **Visitor mode: not supported**
1766
+ */
1767
+ ;
1571
1768
  _proto.markInboxMessageAsRead = function markInboxMessageAsRead(messageGuid) {
1572
1769
  try {
1573
1770
  var _this23 = this;
@@ -1580,7 +1777,13 @@ var WSAPI = /*#__PURE__*/function () {
1580
1777
  } catch (e) {
1581
1778
  return Promise.reject(e);
1582
1779
  }
1583
- } /** Requests to mark all inbox messages as read */;
1780
+ }
1781
+ /**
1782
+ * Requests to mark all inbox messages as rea
1783
+ *
1784
+ * **Visitor mode: not supported**
1785
+ */
1786
+ ;
1584
1787
  _proto.markAllInboxMessagesAsRead = function markAllInboxMessagesAsRead() {
1585
1788
  try {
1586
1789
  var _this24 = this;
@@ -1593,7 +1796,13 @@ var WSAPI = /*#__PURE__*/function () {
1593
1796
  } catch (e) {
1594
1797
  return Promise.reject(e);
1595
1798
  }
1596
- } /** Requests to mark inbox message with specified guid as favorite. Pass mark true to add message to favorite and false to remove. */;
1799
+ }
1800
+ /**
1801
+ * Requests to mark inbox message with specified guid as favorite. Pass mark true to add message to favorite and false to remove.
1802
+ *
1803
+ * **Visitor mode: not supported**
1804
+ */
1805
+ ;
1597
1806
  _proto.markUnmarkInboxMessageAsFavorite = function markUnmarkInboxMessageAsFavorite(messageGuid, mark) {
1598
1807
  try {
1599
1808
  var _this25 = this;
@@ -1606,7 +1815,13 @@ var WSAPI = /*#__PURE__*/function () {
1606
1815
  } catch (e) {
1607
1816
  return Promise.reject(e);
1608
1817
  }
1609
- } /** Requests to delete inbox message */;
1818
+ }
1819
+ /**
1820
+ * Requests to delete inbox message
1821
+ *
1822
+ * **Visitor mode: not supported**
1823
+ */
1824
+ ;
1610
1825
  _proto.deleteInboxMessage = function deleteInboxMessage(messageGuid) {
1611
1826
  try {
1612
1827
  var _this26 = this;
@@ -1619,7 +1834,13 @@ var WSAPI = /*#__PURE__*/function () {
1619
1834
  } catch (e) {
1620
1835
  return Promise.reject(e);
1621
1836
  }
1622
- } /** Requests to delete all inbox messages */;
1837
+ }
1838
+ /**
1839
+ * Requests to delete all inbox messages
1840
+ *
1841
+ * **Visitor mode: not supported**
1842
+ */
1843
+ ;
1623
1844
  _proto.deleteAllInboxMessages = function deleteAllInboxMessages() {
1624
1845
  try {
1625
1846
  var _this27 = this;
@@ -1632,7 +1853,11 @@ var WSAPI = /*#__PURE__*/function () {
1632
1853
  } catch (e) {
1633
1854
  return Promise.reject(e);
1634
1855
  }
1635
- } /** Requests translations for the given language. Returns the object including translation key/translation value pairs. All possible translation keys defined in the back office. */;
1856
+ }
1857
+ /**
1858
+ * Requests translations for the given language. Returns the object including translation key/translation value pairs. All possible translation keys defined in the back office.
1859
+ */
1860
+ ;
1636
1861
  _proto.getTranslations = function getTranslations(lang_code) {
1637
1862
  try {
1638
1863
  var _this28 = this;
@@ -1760,12 +1985,20 @@ var WSAPI = /*#__PURE__*/function () {
1760
1985
  * If filter is not provided, all active jackpots will be returned.
1761
1986
  * Filter can be used to get jackpots related to specific game or specific jackpot template.
1762
1987
  * You can call this method every second in order to get up to date information about current value of the jackpot(s) and present them to the end-users
1763
- * Example usage:
1988
+ *
1989
+ * **Example**:
1764
1990
  * ```
1765
1991
  * _smartico.api.jackpotGet({ related_game_id: 'wooko-slot' }).then((result) => {
1766
1992
  * console.log(result);
1767
1993
  * });
1768
1994
  * ```
1995
+ *
1996
+ * **Example in the Visitor mode**:
1997
+ * ```
1998
+ * _smartico.vapi('EN').jackpotGet({ related_game_id: 'wooko-slot' }).then((result) => {
1999
+ * console.log(result);
2000
+ * });
2001
+ * ```
1769
2002
  */
1770
2003
  ;
1771
2004
  _proto.jackpotGet = function jackpotGet(filter) {
@@ -1781,11 +2014,11 @@ var WSAPI = /*#__PURE__*/function () {
1781
2014
  return Promise.resolve(OCache.use(onUpdateContextKey.Jackpots, exports.ECacheContext.WSAPI, function () {
1782
2015
  try {
1783
2016
  return Promise.resolve(_this36.api.jackpotGet(null, filter)).then(function (_jackpots) {
1784
- var _pots = _jackpots.map(function (jp) {
2017
+ var _pots = _jackpots.items.map(function (jp) {
1785
2018
  return jp.pot;
1786
2019
  });
1787
2020
  OCache.set(onUpdateContextKey.Pots, _pots, exports.ECacheContext.WSAPI, JACKPOT_POT_CACHE_SEC);
1788
- return _jackpots;
2021
+ return _jackpots.items;
1789
2022
  });
1790
2023
  } catch (e) {
1791
2024
  return Promise.reject(e);
@@ -1811,7 +2044,9 @@ var WSAPI = /*#__PURE__*/function () {
1811
2044
  });
1812
2045
  return Promise.resolve(_this36.api.potGet(null, {
1813
2046
  jp_template_ids: jp_template_ids
1814
- }));
2047
+ })).then(function (_this36$api$potGet) {
2048
+ return _this36$api$potGet.items;
2049
+ });
1815
2050
  } catch (e) {
1816
2051
  return Promise.reject(e);
1817
2052
  }
@@ -1826,14 +2061,19 @@ var WSAPI = /*#__PURE__*/function () {
1826
2061
  return Promise.reject(e);
1827
2062
  }
1828
2063
  }
1829
- /** Opt-in currently logged in user to the jackpot with the specified jp_template_id.
2064
+ /**
2065
+ * Opt-in currently logged in user to the jackpot with the specified jp_template_id.
1830
2066
  * You may call jackpotGet method after doing optin to see that user is opted in to the jackpot.
1831
- * Example usage:
2067
+ *
2068
+ * **Example**:
1832
2069
  * ```
1833
2070
  * _smartico.api.jackpotOptIn({ jp_template_id: 123 }).then((result) => {
1834
2071
  * console.log('Opted in to the jackpot');
1835
2072
  * });
1836
2073
  * ```
2074
+ *
2075
+ * **Visitor mode: not supported**
2076
+ *
1837
2077
  */
1838
2078
  ;
1839
2079
  _proto.jackpotOptIn = function jackpotOptIn(filter) {
@@ -1848,14 +2088,19 @@ var WSAPI = /*#__PURE__*/function () {
1848
2088
  return Promise.reject(e);
1849
2089
  }
1850
2090
  }
1851
- /** Opt-out currently logged in user from the jackpot with the specified jp_template_id.
2091
+ /**
2092
+ * Opt-out currently logged in user from the jackpot with the specified jp_template_id.
1852
2093
  * You may call jackpotGet method after doing optout to see that user is not opted in to the jackpot.
1853
- * Example usage:
2094
+ *
2095
+ * **Example**:
1854
2096
  * ```
1855
2097
  * _smartico.api.jackpotOptOut({ jp_template_id: 123 }).then((result) => {
1856
2098
  * console.log('Opted out from the jackpot');
1857
2099
  * });
1858
2100
  * ```
2101
+ *
2102
+ * **Visitor mode: not supported**
2103
+ *
1859
2104
  */
1860
2105
  ;
1861
2106
  _proto.jackpotOptOut = function jackpotOptOut(filter) {
@@ -1990,7 +2235,7 @@ var SmarticoAPI = /*#__PURE__*/function () {
1990
2235
  return AVATAR_DOMAIN.replace('{ENV_ID}', SmarticoAPI.getEnvDnsSuffix(label_api_key));
1991
2236
  };
1992
2237
  var _proto = SmarticoAPI.prototype;
1993
- _proto.send = function send(message, expectCID) {
2238
+ _proto.send = function send(message, expectCID, force_language) {
1994
2239
  try {
1995
2240
  var _temp2 = function _temp2(_result) {
1996
2241
  if (_exit) return _result;
@@ -2039,6 +2284,9 @@ var SmarticoAPI = /*#__PURE__*/function () {
2039
2284
  if (_this.logCIDs.includes(message.cid)) {
2040
2285
  _this.logger.info('REQ', message);
2041
2286
  }
2287
+ if (force_language) {
2288
+ message.force_language = force_language;
2289
+ }
2042
2290
  var result;
2043
2291
  var _temp = _catch(function () {
2044
2292
  var timeStart = new Date().getTime();
@@ -2199,13 +2447,11 @@ var SmarticoAPI = /*#__PURE__*/function () {
2199
2447
  return Promise.reject(e);
2200
2448
  }
2201
2449
  };
2202
- _proto.jackpotGet = function jackpotGet(user_ext_id, filter) {
2450
+ _proto.jackpotGet = function jackpotGet(user_ext_id, filter, force_language) {
2203
2451
  try {
2204
2452
  var _this8 = this;
2205
2453
  var message = _this8.buildMessage(user_ext_id, exports.ClassId.JP_GET_JACKPOTS_REQUEST, filter);
2206
- return Promise.resolve(_this8.send(message, exports.ClassId.JP_GET_JACKPOTS_RESPONSE)).then(function (response) {
2207
- return (response == null ? void 0 : response.items) || [];
2208
- });
2454
+ return Promise.resolve(_this8.send(message, exports.ClassId.JP_GET_JACKPOTS_RESPONSE, force_language));
2209
2455
  } catch (e) {
2210
2456
  return Promise.reject(e);
2211
2457
  }
@@ -2214,9 +2460,7 @@ var SmarticoAPI = /*#__PURE__*/function () {
2214
2460
  try {
2215
2461
  var _this9 = this;
2216
2462
  var message = _this9.buildMessage(user_ext_id, exports.ClassId.JP_GET_LATEST_POTS_REQUEST, filter);
2217
- return Promise.resolve(_this9.send(message, exports.ClassId.JP_GET_LATEST_POTS_RESPONSE)).then(function (response) {
2218
- return (response == null ? void 0 : response.items) || [];
2219
- });
2463
+ return Promise.resolve(_this9.send(message, exports.ClassId.JP_GET_LATEST_POTS_RESPONSE));
2220
2464
  } catch (e) {
2221
2465
  return Promise.reject(e);
2222
2466
  }
@@ -2239,19 +2483,16 @@ var SmarticoAPI = /*#__PURE__*/function () {
2239
2483
  return Promise.reject(e);
2240
2484
  }
2241
2485
  };
2242
- _proto.sawGetTemplates = function sawGetTemplates(user_ext_id, lang, is_visitor_mode) {
2486
+ _proto.sawGetTemplates = function sawGetTemplates(user_ext_id, force_language, is_visitor_mode) {
2243
2487
  if (is_visitor_mode === void 0) {
2244
2488
  is_visitor_mode = false;
2245
2489
  }
2246
2490
  try {
2247
2491
  var _this12 = this;
2248
- var message = _this12.buildMessage(user_ext_id, exports.ClassId.SAW_GET_SPINS_REQUEST, lang ? {
2249
- force_language: lang,
2250
- is_visitor_mode: is_visitor_mode
2251
- } : {
2492
+ var message = _this12.buildMessage(user_ext_id, exports.ClassId.SAW_GET_SPINS_REQUEST, {
2252
2493
  is_visitor_mode: is_visitor_mode
2253
2494
  });
2254
- return Promise.resolve(_this12.send(message, exports.ClassId.SAW_GET_SPINS_RESPONSE)).then(function (response) {
2495
+ return Promise.resolve(_this12.send(message, exports.ClassId.SAW_GET_SPINS_RESPONSE, force_language)).then(function (response) {
2255
2496
  if (response && response.templates) {
2256
2497
  response.templates.forEach(function (t) {
2257
2498
  if (t.jackpot_current !== undefined && t.jackpot_current !== null) {
@@ -2399,11 +2640,11 @@ var SmarticoAPI = /*#__PURE__*/function () {
2399
2640
  return Promise.reject(e);
2400
2641
  }
2401
2642
  };
2402
- _proto.storeGetItems = function storeGetItems(user_ext_id) {
2643
+ _proto.storeGetItems = function storeGetItems(user_ext_id, force_language) {
2403
2644
  try {
2404
2645
  var _this21 = this;
2405
2646
  var message = _this21.buildMessage(user_ext_id, exports.ClassId.GET_SHOP_ITEMS_REQUEST);
2406
- return Promise.resolve(_this21.send(message, exports.ClassId.GET_SHOP_ITEMS_RESPONSE));
2647
+ return Promise.resolve(_this21.send(message, exports.ClassId.GET_SHOP_ITEMS_RESPONSE, force_language));
2407
2648
  } catch (e) {
2408
2649
  return Promise.reject(e);
2409
2650
  }
@@ -2418,11 +2659,11 @@ var SmarticoAPI = /*#__PURE__*/function () {
2418
2659
  return Promise.reject(e);
2419
2660
  }
2420
2661
  };
2421
- _proto.storeGetCategories = function storeGetCategories(user_ext_id) {
2662
+ _proto.storeGetCategories = function storeGetCategories(user_ext_id, force_language) {
2422
2663
  try {
2423
2664
  var _this23 = this;
2424
2665
  var message = _this23.buildMessage(user_ext_id, exports.ClassId.GET_SHOP_CATEGORIES_REQUEST);
2425
- return Promise.resolve(_this23.send(message, exports.ClassId.GET_SHOP_CATEGORIES_RESPONSE));
2666
+ return Promise.resolve(_this23.send(message, exports.ClassId.GET_SHOP_CATEGORIES_RESPONSE, force_language));
2426
2667
  } catch (e) {
2427
2668
  return Promise.reject(e);
2428
2669
  }
@@ -2465,11 +2706,11 @@ var SmarticoAPI = /*#__PURE__*/function () {
2465
2706
  return Promise.reject(e);
2466
2707
  }
2467
2708
  };
2468
- _proto.missionsGetItems = function missionsGetItems(user_ext_id) {
2709
+ _proto.missionsGetItems = function missionsGetItems(user_ext_id, force_language) {
2469
2710
  try {
2470
2711
  var _this27 = this;
2471
2712
  var message = _this27.buildMessage(user_ext_id, exports.ClassId.GET_ACHIEVEMENT_MAP_REQUEST);
2472
- return Promise.resolve(_this27.send(message, exports.ClassId.GET_ACHIEVEMENT_MAP_RESPONSE)).then(function (response) {
2713
+ return Promise.resolve(_this27.send(message, exports.ClassId.GET_ACHIEVEMENT_MAP_RESPONSE, force_language)).then(function (response) {
2473
2714
  // we need to clone response to avoid changing original object,for cases when its called together with badgesGetItems (e.g. in Promise.all)
2474
2715
  var responseClone = _extends({}, response);
2475
2716
  if (responseClone.achievements) {
@@ -2515,11 +2756,11 @@ var SmarticoAPI = /*#__PURE__*/function () {
2515
2756
  return Promise.reject(e);
2516
2757
  }
2517
2758
  };
2518
- _proto.achGetCategories = function achGetCategories(user_ext_id) {
2759
+ _proto.achGetCategories = function achGetCategories(user_ext_id, force_language) {
2519
2760
  try {
2520
2761
  var _this31 = this;
2521
2762
  var message = _this31.buildMessage(user_ext_id, exports.ClassId.GET_ACH_CATEGORIES_REQUEST);
2522
- return Promise.resolve(_this31.send(message, exports.ClassId.GET_ACH_CATEGORIES_RESPONSE));
2763
+ return Promise.resolve(_this31.send(message, exports.ClassId.GET_ACH_CATEGORIES_RESPONSE, force_language));
2523
2764
  } catch (e) {
2524
2765
  return Promise.reject(e);
2525
2766
  }
@@ -2534,11 +2775,11 @@ var SmarticoAPI = /*#__PURE__*/function () {
2534
2775
  return Promise.reject(e);
2535
2776
  }
2536
2777
  };
2537
- _proto.badgetsGetItems = function badgetsGetItems(user_ext_id) {
2778
+ _proto.badgetsGetItems = function badgetsGetItems(user_ext_id, force_language) {
2538
2779
  try {
2539
2780
  var _this33 = this;
2540
2781
  var message = _this33.buildMessage(user_ext_id, exports.ClassId.GET_ACHIEVEMENT_MAP_REQUEST);
2541
- return Promise.resolve(_this33.send(message, exports.ClassId.GET_ACHIEVEMENT_MAP_RESPONSE)).then(function (response) {
2782
+ return Promise.resolve(_this33.send(message, exports.ClassId.GET_ACHIEVEMENT_MAP_RESPONSE, force_language)).then(function (response) {
2542
2783
  // we need to clone response to avoid changing original object,for cases when its called together with missionsGetItems (e.g. in Promise.all)
2543
2784
  var responseClone = _extends({}, response);
2544
2785
  if (responseClone.achievements) {
@@ -2562,11 +2803,11 @@ var SmarticoAPI = /*#__PURE__*/function () {
2562
2803
  return Promise.reject(e);
2563
2804
  }
2564
2805
  };
2565
- _proto.tournamentsGetLobby = function tournamentsGetLobby(user_ext_id) {
2806
+ _proto.tournamentsGetLobby = function tournamentsGetLobby(user_ext_id, force_language) {
2566
2807
  try {
2567
2808
  var _this35 = this;
2568
2809
  var message = _this35.buildMessage(user_ext_id, exports.ClassId.GET_TOURNAMENT_LOBBY_REQUEST);
2569
- return Promise.resolve(_this35.send(message, exports.ClassId.GET_TOURNAMENT_LOBBY_RESPONSE));
2810
+ return Promise.resolve(_this35.send(message, exports.ClassId.GET_TOURNAMENT_LOBBY_RESPONSE, force_language));
2570
2811
  } catch (e) {
2571
2812
  return Promise.reject(e);
2572
2813
  }
@@ -2581,13 +2822,13 @@ var SmarticoAPI = /*#__PURE__*/function () {
2581
2822
  return Promise.reject(e);
2582
2823
  }
2583
2824
  };
2584
- _proto.tournamentsGetInfo = function tournamentsGetInfo(user_ext_id, tournamentInstanceId) {
2825
+ _proto.tournamentsGetInfo = function tournamentsGetInfo(user_ext_id, tournamentInstanceId, force_language) {
2585
2826
  try {
2586
2827
  var _this37 = this;
2587
2828
  var message = _this37.buildMessage(user_ext_id, exports.ClassId.GET_TOURNAMENT_INFO_REQUEST, {
2588
2829
  tournamentInstanceId: tournamentInstanceId
2589
2830
  });
2590
- return Promise.resolve(_this37.send(message, exports.ClassId.GET_TOURNAMENT_INFO_RESPONSE)).then(function (response) {
2831
+ return Promise.resolve(_this37.send(message, exports.ClassId.GET_TOURNAMENT_INFO_RESPONSE, force_language)).then(function (response) {
2591
2832
  var _response$userPositio, _response$tournamentI;
2592
2833
  if ((_response$userPositio = response.userPosition) != null && _response$userPositio.avatar_id) {
2593
2834
  response.userPosition.avatar_url = CoreUtils.avatarUrl(response.userPosition.avatar_id, _this37.avatarDomain);
@@ -2614,7 +2855,7 @@ var SmarticoAPI = /*#__PURE__*/function () {
2614
2855
  return Promise.reject(e);
2615
2856
  }
2616
2857
  };
2617
- _proto.leaderboardGet = function leaderboardGet(user_ext_id, period_type_id, prevPeriod) {
2858
+ _proto.leaderboardGet = function leaderboardGet(user_ext_id, period_type_id, prevPeriod, force_language) {
2618
2859
  if (prevPeriod === void 0) {
2619
2860
  prevPeriod = false;
2620
2861
  }
@@ -2625,7 +2866,7 @@ var SmarticoAPI = /*#__PURE__*/function () {
2625
2866
  snapshot_offset: prevPeriod ? 1 : 0,
2626
2867
  include_users: true
2627
2868
  });
2628
- return Promise.resolve(_this39.send(message, exports.ClassId.GET_LEADERS_BOARD_RESPONSE)).then(function (response) {
2869
+ return Promise.resolve(_this39.send(message, exports.ClassId.GET_LEADERS_BOARD_RESPONSE, force_language)).then(function (response) {
2629
2870
  var _response$map$boardKe, _response$map$boardKe2, _response$map$boardKe3, _response$map$boardKe4;
2630
2871
  var boardKey = Object.keys(response.map).find(function (k) {
2631
2872
  return period_type_id === undefined || k === (period_type_id == null ? void 0 : period_type_id.toString());
@@ -2659,11 +2900,11 @@ var SmarticoAPI = /*#__PURE__*/function () {
2659
2900
  return Promise.reject(e);
2660
2901
  }
2661
2902
  };
2662
- _proto.levelsGet = function levelsGet(user_ext_id) {
2903
+ _proto.levelsGet = function levelsGet(user_ext_id, force_language) {
2663
2904
  try {
2664
2905
  var _this41 = this;
2665
2906
  var message = _this41.buildMessage(user_ext_id, exports.ClassId.GET_LEVEL_MAP_REQUEST);
2666
- return Promise.resolve(_this41.send(message, exports.ClassId.GET_LEVEL_MAP_RESPONSE));
2907
+ return Promise.resolve(_this41.send(message, exports.ClassId.GET_LEVEL_MAP_RESPONSE, force_language));
2667
2908
  } catch (e) {
2668
2909
  return Promise.reject(e);
2669
2910
  }
@@ -2873,6 +3114,8 @@ exports.QuizMarketType = void 0;
2873
3114
  QuizMarketType[QuizMarketType["PlayerOneWinsOneSet"] = 23] = "PlayerOneWinsOneSet";
2874
3115
  QuizMarketType[QuizMarketType["PlayerTwoWinsOneSet"] = 24] = "PlayerTwoWinsOneSet";
2875
3116
  QuizMarketType[QuizMarketType["LastGoal"] = 25] = "LastGoal";
3117
+ QuizMarketType[QuizMarketType["CustomSport"] = 26] = "CustomSport";
3118
+ QuizMarketType[QuizMarketType["CustomNonSport"] = 27] = "CustomNonSport";
2876
3119
  })(exports.QuizMarketType || (exports.QuizMarketType = {}));
2877
3120
 
2878
3121
  exports.MarketsValueType = void 0;
@@ -2901,11 +3144,12 @@ exports.MarketsValueType = void 0;
2901
3144
 
2902
3145
  var quizAnswerHomeTeamReplacementText = '{quiz_home_team}';
2903
3146
  var quizAnswerAwayTeamReplacementText = '{quiz_away_team}';
2904
- var drawReplacementText = '{quiz_draw}';
3147
+ var quizDrawReplacementText = '{quiz_draw}';
2905
3148
  var quizYesReplacementText = '{yes}';
2906
3149
  var quizNoReplacementText = '{no}';
2907
3150
  var quizOddReplacementText = '{odd}';
2908
3151
  var quizEvenReplacementText = '{even}';
3152
+ var quizOrReplacementText = '{or}';
2909
3153
  var yesNoAnswers = [{
2910
3154
  text: quizYesReplacementText,
2911
3155
  value: exports.MarketsValueType.Yes
@@ -2921,7 +3165,7 @@ var homeAwayAnswers = [{
2921
3165
  value: exports.MarketsValueType.AwayTeam
2922
3166
  }];
2923
3167
  var homeAwayDrawAnswers = [].concat(homeAwayAnswers, [{
2924
- text: drawReplacementText,
3168
+ text: quizDrawReplacementText,
2925
3169
  value: exports.MarketsValueType.Draw
2926
3170
  }]);
2927
3171
  var marketsInfo = [{
@@ -2951,25 +3195,25 @@ var marketsInfo = [{
2951
3195
  text: quizAnswerHomeTeamReplacementText + " / " + quizAnswerHomeTeamReplacementText,
2952
3196
  value: exports.MarketsValueType.HomeTeamHomeTeam
2953
3197
  }, {
2954
- text: quizAnswerHomeTeamReplacementText + " / " + drawReplacementText,
3198
+ text: quizAnswerHomeTeamReplacementText + " / " + quizDrawReplacementText,
2955
3199
  value: exports.MarketsValueType.HomeTeamDraw
2956
3200
  }, {
2957
3201
  text: quizAnswerHomeTeamReplacementText + " / " + quizAnswerAwayTeamReplacementText,
2958
3202
  value: exports.MarketsValueType.HomeTeamAwayTeam
2959
3203
  }, {
2960
- text: drawReplacementText + " / " + quizAnswerHomeTeamReplacementText,
3204
+ text: quizDrawReplacementText + " / " + quizAnswerHomeTeamReplacementText,
2961
3205
  value: exports.MarketsValueType.DrawHomeTeam
2962
3206
  }, {
2963
- text: drawReplacementText + " / " + drawReplacementText,
3207
+ text: quizDrawReplacementText + " / " + quizDrawReplacementText,
2964
3208
  value: exports.MarketsValueType.DrawDraw
2965
3209
  }, {
2966
- text: drawReplacementText + " / " + quizAnswerAwayTeamReplacementText,
3210
+ text: quizDrawReplacementText + " / " + quizAnswerAwayTeamReplacementText,
2967
3211
  value: exports.MarketsValueType.DrawAwayTeam
2968
3212
  }, {
2969
3213
  text: quizAnswerAwayTeamReplacementText + " / " + quizAnswerHomeTeamReplacementText,
2970
3214
  value: exports.MarketsValueType.AwayTeamHomeTeam
2971
3215
  }, {
2972
- text: quizAnswerAwayTeamReplacementText + " / " + drawReplacementText,
3216
+ text: quizAnswerAwayTeamReplacementText + " / " + quizDrawReplacementText,
2973
3217
  value: exports.MarketsValueType.AwayTeamDraw
2974
3218
  }, {
2975
3219
  text: quizAnswerAwayTeamReplacementText + " / " + quizAnswerAwayTeamReplacementText,
@@ -2999,13 +3243,13 @@ var marketsInfo = [{
2999
3243
  trKey: 'quizQuestion_doubleChance'
3000
3244
  },
3001
3245
  answers: [{
3002
- text: drawReplacementText + " or " + quizAnswerHomeTeamReplacementText,
3246
+ text: quizDrawReplacementText + " " + quizOrReplacementText + " " + quizAnswerHomeTeamReplacementText,
3003
3247
  value: exports.MarketsValueType.HomeTeamDraw
3004
3248
  }, {
3005
- text: quizAnswerHomeTeamReplacementText + " or " + quizAnswerAwayTeamReplacementText,
3249
+ text: quizAnswerHomeTeamReplacementText + " " + quizOrReplacementText + " " + quizAnswerAwayTeamReplacementText,
3006
3250
  value: exports.MarketsValueType.HomeTeamAwayTeam
3007
3251
  }, {
3008
- text: drawReplacementText + " or " + quizAnswerAwayTeamReplacementText,
3252
+ text: quizDrawReplacementText + " " + quizOrReplacementText + " " + quizAnswerAwayTeamReplacementText,
3009
3253
  value: exports.MarketsValueType.AwayTeamDraw
3010
3254
  }]
3011
3255
  }, {
@@ -3212,6 +3456,14 @@ exports.TournamentRegistrationTypeGetName = TournamentRegistrationTypeGetName;
3212
3456
  exports.TournamentUtils = TournamentUtils;
3213
3457
  exports.UserAchievementTransform = UserAchievementTransform;
3214
3458
  exports.marketsInfo = marketsInfo;
3459
+ exports.quizAnswerAwayTeamReplacementText = quizAnswerAwayTeamReplacementText;
3460
+ exports.quizAnswerHomeTeamReplacementText = quizAnswerHomeTeamReplacementText;
3461
+ exports.quizDrawReplacementText = quizDrawReplacementText;
3462
+ exports.quizEvenReplacementText = quizEvenReplacementText;
3463
+ exports.quizNoReplacementText = quizNoReplacementText;
3464
+ exports.quizOddReplacementText = quizOddReplacementText;
3465
+ exports.quizOrReplacementText = quizOrReplacementText;
3215
3466
  exports.quizSupportedSports = quizSupportedSports;
3467
+ exports.quizYesReplacementText = quizYesReplacementText;
3216
3468
  exports.tournamentInfoItemTransform = tournamentInfoItemTransform;
3217
3469
  //# sourceMappingURL=index.js.map