@smartico/public-api 0.0.168 → 0.0.170

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.
@@ -1505,6 +1505,13 @@ class WSAPI {
1505
1505
  /**
1506
1506
  * Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
1507
1507
  *
1508
+ * **Example**:
1509
+ * ```
1510
+ * _smartico.api.playMiniGame(55).then((result) => {
1511
+ * console.log(result);
1512
+ * });
1513
+ * ```
1514
+ *
1508
1515
  * **Visitor mode: not supported**
1509
1516
  */
1510
1517
  async playMiniGame(template_id) {
@@ -1518,8 +1525,14 @@ class WSAPI {
1518
1525
  return o;
1519
1526
  }
1520
1527
  /**
1521
- * Plays the specified by template_id mini-game on behalf of user {count} times and returns prizes or err_code
1528
+ * Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
1522
1529
  *
1530
+ * **Example**:
1531
+ * ```
1532
+ * _smartico.api.playMiniGameBatch(55, 10).then((result) => {
1533
+ * console.log(result);
1534
+ * });
1535
+ * ```
1523
1536
  * **Visitor mode: not supported**
1524
1537
  */
1525
1538
  async playMiniGameBatch(template_id, spin_count) {
@@ -2645,7 +2658,7 @@ var SAWGPMarketType;
2645
2658
  SAWGPMarketType[SAWGPMarketType["RedCard"] = 2] = "RedCard";
2646
2659
  SAWGPMarketType[SAWGPMarketType["OneXTwo"] = 3] = "OneXTwo";
2647
2660
  SAWGPMarketType[SAWGPMarketType["OneXTwoHalftime"] = 4] = "OneXTwoHalftime";
2648
- SAWGPMarketType[SAWGPMarketType["HalftimeFulltime"] = 5] = "HalftimeFulltime";
2661
+ // HalftimeFulltime = 5,
2649
2662
  SAWGPMarketType[SAWGPMarketType["FirstGoal"] = 6] = "FirstGoal";
2650
2663
  SAWGPMarketType[SAWGPMarketType["DoubleChance"] = 7] = "DoubleChance";
2651
2664
  SAWGPMarketType[SAWGPMarketType["OverUnder2_5"] = 8] = "OverUnder2_5";
@@ -2744,42 +2757,48 @@ const marketsInfo = [{
2744
2757
  trKey: 'quizQuestion_x2half'
2745
2758
  },
2746
2759
  answers: homeAwayDrawAnswers
2747
- }, {
2748
- type: SAWGPMarketType.HalftimeFulltime,
2749
- name: 'Halftime / Fulltime',
2750
- question: {
2751
- text: 'Who will lead the first half and who will win the match ?',
2752
- trKey: 'quizQuestion__HalftimeFulltime'
2753
- },
2754
- answers: [{
2755
- text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
2756
- value: QuizAnswersValueType.HomeTeamHomeTeam
2757
- }, {
2758
- text: `${quizAnswerHomeTeamReplacementText} / ${quizDrawReplacementText}`,
2759
- value: QuizAnswersValueType.HomeTeamDraw
2760
- }, {
2761
- text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
2762
- value: QuizAnswersValueType.HomeTeamAwayTeam
2763
- }, {
2764
- text: `${quizDrawReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
2765
- value: QuizAnswersValueType.DrawHomeTeam
2766
- }, {
2767
- text: `${quizDrawReplacementText} / ${quizDrawReplacementText}`,
2768
- value: QuizAnswersValueType.DrawDraw
2769
- }, {
2770
- text: `${quizDrawReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
2771
- value: QuizAnswersValueType.DrawAwayTeam
2772
- }, {
2773
- text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
2774
- value: QuizAnswersValueType.AwayTeamHomeTeam
2775
- }, {
2776
- text: `${quizAnswerAwayTeamReplacementText} / ${quizDrawReplacementText}`,
2777
- value: QuizAnswersValueType.AwayTeamDraw
2778
- }, {
2779
- text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
2780
- value: QuizAnswersValueType.AwayTeamAwayTeam
2781
- }]
2782
- }, {
2760
+ },
2761
+ // {
2762
+ // type: SAWGPMarketType.HalftimeFulltime,
2763
+ // name: 'Halftime / Fulltime',
2764
+ // question: { text: 'Who will lead the first half and who will win the match ?', trKey: 'quizQuestion__HalftimeFulltime' },
2765
+ // answers: [
2766
+ // {
2767
+ // text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
2768
+ // value: QuizAnswersValueType.HomeTeamHomeTeam,
2769
+ // },
2770
+ // {
2771
+ // text: `${quizAnswerHomeTeamReplacementText} / ${quizDrawReplacementText}`,
2772
+ // value: QuizAnswersValueType.HomeTeamDraw,
2773
+ // },
2774
+ // {
2775
+ // text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
2776
+ // value: QuizAnswersValueType.HomeTeamAwayTeam,
2777
+ // },
2778
+ // {
2779
+ // text: `${quizDrawReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
2780
+ // value: QuizAnswersValueType.DrawHomeTeam,
2781
+ // },
2782
+ // { text: `${quizDrawReplacementText} / ${quizDrawReplacementText}`, value: QuizAnswersValueType.DrawDraw },
2783
+ // {
2784
+ // text: `${quizDrawReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
2785
+ // value: QuizAnswersValueType.DrawAwayTeam,
2786
+ // },
2787
+ // {
2788
+ // text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
2789
+ // value: QuizAnswersValueType.AwayTeamHomeTeam,
2790
+ // },
2791
+ // {
2792
+ // text: `${quizAnswerAwayTeamReplacementText} / ${quizDrawReplacementText}`,
2793
+ // value: QuizAnswersValueType.AwayTeamDraw,
2794
+ // },
2795
+ // {
2796
+ // text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
2797
+ // value: QuizAnswersValueType.AwayTeamAwayTeam,
2798
+ // },
2799
+ // ],
2800
+ // },
2801
+ {
2783
2802
  type: SAWGPMarketType.FirstGoal,
2784
2803
  name: 'First Goal',
2785
2804
  question: {
@@ -2988,7 +3007,9 @@ const marketsInfo = [{
2988
3007
 
2989
3008
  const QuizMarketPerSport = {
2990
3009
  [QuizSportType.Basketball]: [SAWGPMarketType.One_Two, SAWGPMarketType.Overtime, SAWGPMarketType.OneXTwo, SAWGPMarketType.OddEven, SAWGPMarketType.OddEvenHomeAway, SAWGPMarketType.DoubleChance],
2991
- [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],
3010
+ [QuizSportType.Soccer]: [SAWGPMarketType.OneXTwo, SAWGPMarketType.OneXTwoHalftime,
3011
+ // SAWGPMarketType.HalftimeFulltime,
3012
+ 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],
2992
3013
  [QuizSportType.Tennis]: [SAWGPMarketType.One_Two, SAWGPMarketType.FirstSet, SAWGPMarketType.SecondSet, SAWGPMarketType.ThirdSet, SAWGPMarketType.FourthSet, SAWGPMarketType.FifthSet, SAWGPMarketType.PlayerOneWinsOneSet, SAWGPMarketType.PlayerTwoWinsOneSet, SAWGPMarketType.OddEven]
2993
3014
  };
2994
3015