@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.
@@ -3,7 +3,6 @@ export declare enum SAWGPMarketType {
3
3
  RedCard = 2,
4
4
  OneXTwo = 3,
5
5
  OneXTwoHalftime = 4,
6
- HalftimeFulltime = 5,
7
6
  FirstGoal = 6,
8
7
  DoubleChance = 7,
9
8
  OverUnder2_5 = 8,
@@ -0,0 +1,3 @@
1
+ import { TUserProfile } from "src/WSAPI/WSAPITypes";
2
+ export interface UserProfile extends TUserProfile {
3
+ }
@@ -0,0 +1 @@
1
+ export * from './UserProfile';
@@ -253,12 +253,25 @@ export declare class WSAPI {
253
253
  /**
254
254
  * Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
255
255
  *
256
+ * **Example**:
257
+ * ```
258
+ * _smartico.api.playMiniGame(55).then((result) => {
259
+ * console.log(result);
260
+ * });
261
+ * ```
262
+ *
256
263
  * **Visitor mode: not supported**
257
264
  */
258
265
  playMiniGame(template_id: number): Promise<TMiniGamePlayResult>;
259
266
  /**
260
- * Plays the specified by template_id mini-game on behalf of user {count} times and returns prizes or err_code
267
+ * Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
261
268
  *
269
+ * **Example**:
270
+ * ```
271
+ * _smartico.api.playMiniGameBatch(55, 10).then((result) => {
272
+ * console.log(result);
273
+ * });
274
+ * ```
262
275
  * **Visitor mode: not supported**
263
276
  */
264
277
  playMiniGameBatch(template_id: number, spin_count: number): Promise<TMiniGamePlayBatchResult[]>;
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './ILogger';
3
3
  export * from './SmarticoAPI';
4
4
  export * from './CookieStore';
5
5
  export * from './Core';
6
+ export * from './UserProfile';
6
7
  export * from './Inbox';
7
8
  export * from './Leaderboard';
8
9
  export * from './MiniGames';
package/dist/index.js CHANGED
@@ -1679,6 +1679,13 @@ var WSAPI = /*#__PURE__*/function () {
1679
1679
  /**
1680
1680
  * Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
1681
1681
  *
1682
+ * **Example**:
1683
+ * ```
1684
+ * _smartico.api.playMiniGame(55).then((result) => {
1685
+ * console.log(result);
1686
+ * });
1687
+ * ```
1688
+ *
1682
1689
  * **Visitor mode: not supported**
1683
1690
  */
1684
1691
  ;
@@ -1699,8 +1706,14 @@ var WSAPI = /*#__PURE__*/function () {
1699
1706
  }
1700
1707
  }
1701
1708
  /**
1702
- * Plays the specified by template_id mini-game on behalf of user {count} times and returns prizes or err_code
1709
+ * Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
1703
1710
  *
1711
+ * **Example**:
1712
+ * ```
1713
+ * _smartico.api.playMiniGameBatch(55, 10).then((result) => {
1714
+ * console.log(result);
1715
+ * });
1716
+ * ```
1704
1717
  * **Visitor mode: not supported**
1705
1718
  */
1706
1719
  ;
@@ -3470,7 +3483,7 @@ exports.SAWGPMarketType = void 0;
3470
3483
  SAWGPMarketType[SAWGPMarketType["RedCard"] = 2] = "RedCard";
3471
3484
  SAWGPMarketType[SAWGPMarketType["OneXTwo"] = 3] = "OneXTwo";
3472
3485
  SAWGPMarketType[SAWGPMarketType["OneXTwoHalftime"] = 4] = "OneXTwoHalftime";
3473
- SAWGPMarketType[SAWGPMarketType["HalftimeFulltime"] = 5] = "HalftimeFulltime";
3486
+ // HalftimeFulltime = 5,
3474
3487
  SAWGPMarketType[SAWGPMarketType["FirstGoal"] = 6] = "FirstGoal";
3475
3488
  SAWGPMarketType[SAWGPMarketType["DoubleChance"] = 7] = "DoubleChance";
3476
3489
  SAWGPMarketType[SAWGPMarketType["OverUnder2_5"] = 8] = "OverUnder2_5";
@@ -3563,42 +3576,48 @@ var marketsInfo = [{
3563
3576
  trKey: 'quizQuestion_x2half'
3564
3577
  },
3565
3578
  answers: homeAwayDrawAnswers
3566
- }, {
3567
- type: exports.SAWGPMarketType.HalftimeFulltime,
3568
- name: 'Halftime / Fulltime',
3569
- question: {
3570
- text: 'Who will lead the first half and who will win the match ?',
3571
- trKey: 'quizQuestion__HalftimeFulltime'
3572
- },
3573
- answers: [{
3574
- text: quizAnswerHomeTeamReplacementText + " / " + quizAnswerHomeTeamReplacementText,
3575
- value: exports.QuizAnswersValueType.HomeTeamHomeTeam
3576
- }, {
3577
- text: quizAnswerHomeTeamReplacementText + " / " + quizDrawReplacementText,
3578
- value: exports.QuizAnswersValueType.HomeTeamDraw
3579
- }, {
3580
- text: quizAnswerHomeTeamReplacementText + " / " + quizAnswerAwayTeamReplacementText,
3581
- value: exports.QuizAnswersValueType.HomeTeamAwayTeam
3582
- }, {
3583
- text: quizDrawReplacementText + " / " + quizAnswerHomeTeamReplacementText,
3584
- value: exports.QuizAnswersValueType.DrawHomeTeam
3585
- }, {
3586
- text: quizDrawReplacementText + " / " + quizDrawReplacementText,
3587
- value: exports.QuizAnswersValueType.DrawDraw
3588
- }, {
3589
- text: quizDrawReplacementText + " / " + quizAnswerAwayTeamReplacementText,
3590
- value: exports.QuizAnswersValueType.DrawAwayTeam
3591
- }, {
3592
- text: quizAnswerAwayTeamReplacementText + " / " + quizAnswerHomeTeamReplacementText,
3593
- value: exports.QuizAnswersValueType.AwayTeamHomeTeam
3594
- }, {
3595
- text: quizAnswerAwayTeamReplacementText + " / " + quizDrawReplacementText,
3596
- value: exports.QuizAnswersValueType.AwayTeamDraw
3597
- }, {
3598
- text: quizAnswerAwayTeamReplacementText + " / " + quizAnswerAwayTeamReplacementText,
3599
- value: exports.QuizAnswersValueType.AwayTeamAwayTeam
3600
- }]
3601
- }, {
3579
+ },
3580
+ // {
3581
+ // type: SAWGPMarketType.HalftimeFulltime,
3582
+ // name: 'Halftime / Fulltime',
3583
+ // question: { text: 'Who will lead the first half and who will win the match ?', trKey: 'quizQuestion__HalftimeFulltime' },
3584
+ // answers: [
3585
+ // {
3586
+ // text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
3587
+ // value: QuizAnswersValueType.HomeTeamHomeTeam,
3588
+ // },
3589
+ // {
3590
+ // text: `${quizAnswerHomeTeamReplacementText} / ${quizDrawReplacementText}`,
3591
+ // value: QuizAnswersValueType.HomeTeamDraw,
3592
+ // },
3593
+ // {
3594
+ // text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
3595
+ // value: QuizAnswersValueType.HomeTeamAwayTeam,
3596
+ // },
3597
+ // {
3598
+ // text: `${quizDrawReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
3599
+ // value: QuizAnswersValueType.DrawHomeTeam,
3600
+ // },
3601
+ // { text: `${quizDrawReplacementText} / ${quizDrawReplacementText}`, value: QuizAnswersValueType.DrawDraw },
3602
+ // {
3603
+ // text: `${quizDrawReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
3604
+ // value: QuizAnswersValueType.DrawAwayTeam,
3605
+ // },
3606
+ // {
3607
+ // text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`,
3608
+ // value: QuizAnswersValueType.AwayTeamHomeTeam,
3609
+ // },
3610
+ // {
3611
+ // text: `${quizAnswerAwayTeamReplacementText} / ${quizDrawReplacementText}`,
3612
+ // value: QuizAnswersValueType.AwayTeamDraw,
3613
+ // },
3614
+ // {
3615
+ // text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`,
3616
+ // value: QuizAnswersValueType.AwayTeamAwayTeam,
3617
+ // },
3618
+ // ],
3619
+ // },
3620
+ {
3602
3621
  type: exports.SAWGPMarketType.FirstGoal,
3603
3622
  name: 'First Goal',
3604
3623
  question: {
@@ -3806,7 +3825,9 @@ var marketsInfo = [{
3806
3825
  }];
3807
3826
 
3808
3827
  var _QuizMarketPerSport;
3809
- var QuizMarketPerSport = (_QuizMarketPerSport = {}, _QuizMarketPerSport[exports.QuizSportType.Basketball] = [exports.SAWGPMarketType.One_Two, exports.SAWGPMarketType.Overtime, exports.SAWGPMarketType.OneXTwo, exports.SAWGPMarketType.OddEven, exports.SAWGPMarketType.OddEvenHomeAway, exports.SAWGPMarketType.DoubleChance], _QuizMarketPerSport[exports.QuizSportType.Soccer] = [exports.SAWGPMarketType.OneXTwo, exports.SAWGPMarketType.OneXTwoHalftime, exports.SAWGPMarketType.HalftimeFulltime, exports.SAWGPMarketType.FirstGoal, exports.SAWGPMarketType.LastGoal, exports.SAWGPMarketType.DoubleChance, exports.SAWGPMarketType.OverUnder2_5, exports.SAWGPMarketType.OverUnder1_5Halftime, exports.SAWGPMarketType.OverUnder1_5__2ndHalf, exports.SAWGPMarketType.RedCard, exports.SAWGPMarketType.TotalCorners8_5, exports.SAWGPMarketType.TotalCorners9_5, exports.SAWGPMarketType.Corners1x2], _QuizMarketPerSport[exports.QuizSportType.Tennis] = [exports.SAWGPMarketType.One_Two, exports.SAWGPMarketType.FirstSet, exports.SAWGPMarketType.SecondSet, exports.SAWGPMarketType.ThirdSet, exports.SAWGPMarketType.FourthSet, exports.SAWGPMarketType.FifthSet, exports.SAWGPMarketType.PlayerOneWinsOneSet, exports.SAWGPMarketType.PlayerTwoWinsOneSet, exports.SAWGPMarketType.OddEven], _QuizMarketPerSport);
3828
+ var QuizMarketPerSport = (_QuizMarketPerSport = {}, _QuizMarketPerSport[exports.QuizSportType.Basketball] = [exports.SAWGPMarketType.One_Two, exports.SAWGPMarketType.Overtime, exports.SAWGPMarketType.OneXTwo, exports.SAWGPMarketType.OddEven, exports.SAWGPMarketType.OddEvenHomeAway, exports.SAWGPMarketType.DoubleChance], _QuizMarketPerSport[exports.QuizSportType.Soccer] = [exports.SAWGPMarketType.OneXTwo, exports.SAWGPMarketType.OneXTwoHalftime,
3829
+ // SAWGPMarketType.HalftimeFulltime,
3830
+ exports.SAWGPMarketType.FirstGoal, exports.SAWGPMarketType.LastGoal, exports.SAWGPMarketType.DoubleChance, exports.SAWGPMarketType.OverUnder2_5, exports.SAWGPMarketType.OverUnder1_5Halftime, exports.SAWGPMarketType.OverUnder1_5__2ndHalf, exports.SAWGPMarketType.RedCard, exports.SAWGPMarketType.TotalCorners8_5, exports.SAWGPMarketType.TotalCorners9_5, exports.SAWGPMarketType.Corners1x2], _QuizMarketPerSport[exports.QuizSportType.Tennis] = [exports.SAWGPMarketType.One_Two, exports.SAWGPMarketType.FirstSet, exports.SAWGPMarketType.SecondSet, exports.SAWGPMarketType.ThirdSet, exports.SAWGPMarketType.FourthSet, exports.SAWGPMarketType.FifthSet, exports.SAWGPMarketType.PlayerOneWinsOneSet, exports.SAWGPMarketType.PlayerTwoWinsOneSet, exports.SAWGPMarketType.OddEven], _QuizMarketPerSport);
3810
3831
 
3811
3832
  exports.JackpotContributionType = void 0;
3812
3833
  (function (JackpotContributionType) {