@smartico/public-api 0.0.169 → 0.0.171
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/Jackpots/JackpotPot.d.ts +14 -0
- package/dist/Quiz/MarketsType.d.ts +0 -1
- package/dist/index.js +56 -38
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +56 -38
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/JackpotPot.md +11 -0
- package/package.json +1 -1
- package/src/Jackpots/JackpotPot.ts +15 -0
- package/src/Quiz/MarketsInfo.ts +40 -40
- package/src/Quiz/MarketsPerSport.ts +1 -1
- package/src/Quiz/MarketsType.ts +1 -1
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
declare enum JackPotTemparature {
|
|
2
|
+
/** cold */
|
|
3
|
+
COLD = 0,
|
|
4
|
+
/** warm */
|
|
5
|
+
WARM = 1,
|
|
6
|
+
/** hot */
|
|
7
|
+
HOT = 2
|
|
8
|
+
}
|
|
1
9
|
interface JackpotPot {
|
|
2
10
|
/** ID of the jackpot template */
|
|
3
11
|
jp_template_id: number;
|
|
@@ -9,5 +17,11 @@ interface JackpotPot {
|
|
|
9
17
|
current_pot_amount_user_currency: number;
|
|
10
18
|
/** the date/time when this pot exploded */
|
|
11
19
|
explode_date_ts: number;
|
|
20
|
+
/** current pot temperature
|
|
21
|
+
* 0 - cold. seed amount < current pot < (min amount - seed amount)/2
|
|
22
|
+
* 1 - warm. (min amount - seed amount)/2 < current pot < min amount
|
|
23
|
+
* 2 - hot. current pot > min amount
|
|
24
|
+
*/
|
|
25
|
+
current_pot_temperature: JackPotTemparature;
|
|
12
26
|
}
|
|
13
27
|
export { JackpotPot };
|
package/dist/index.js
CHANGED
|
@@ -3483,7 +3483,7 @@ exports.SAWGPMarketType = void 0;
|
|
|
3483
3483
|
SAWGPMarketType[SAWGPMarketType["RedCard"] = 2] = "RedCard";
|
|
3484
3484
|
SAWGPMarketType[SAWGPMarketType["OneXTwo"] = 3] = "OneXTwo";
|
|
3485
3485
|
SAWGPMarketType[SAWGPMarketType["OneXTwoHalftime"] = 4] = "OneXTwoHalftime";
|
|
3486
|
-
|
|
3486
|
+
// HalftimeFulltime = 5,
|
|
3487
3487
|
SAWGPMarketType[SAWGPMarketType["FirstGoal"] = 6] = "FirstGoal";
|
|
3488
3488
|
SAWGPMarketType[SAWGPMarketType["DoubleChance"] = 7] = "DoubleChance";
|
|
3489
3489
|
SAWGPMarketType[SAWGPMarketType["OverUnder2_5"] = 8] = "OverUnder2_5";
|
|
@@ -3576,42 +3576,48 @@ var marketsInfo = [{
|
|
|
3576
3576
|
trKey: 'quizQuestion_x2half'
|
|
3577
3577
|
},
|
|
3578
3578
|
answers: homeAwayDrawAnswers
|
|
3579
|
-
},
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
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
|
+
{
|
|
3615
3621
|
type: exports.SAWGPMarketType.FirstGoal,
|
|
3616
3622
|
name: 'First Goal',
|
|
3617
3623
|
question: {
|
|
@@ -3819,7 +3825,9 @@ var marketsInfo = [{
|
|
|
3819
3825
|
}];
|
|
3820
3826
|
|
|
3821
3827
|
var _QuizMarketPerSport;
|
|
3822
|
-
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,
|
|
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);
|
|
3823
3831
|
|
|
3824
3832
|
exports.JackpotContributionType = void 0;
|
|
3825
3833
|
(function (JackpotContributionType) {
|
|
@@ -3827,6 +3835,16 @@ exports.JackpotContributionType = void 0;
|
|
|
3827
3835
|
JackpotContributionType[JackpotContributionType["Percentage"] = 2] = "Percentage";
|
|
3828
3836
|
})(exports.JackpotContributionType || (exports.JackpotContributionType = {}));
|
|
3829
3837
|
|
|
3838
|
+
var JackPotTemparature;
|
|
3839
|
+
(function (JackPotTemparature) {
|
|
3840
|
+
/** cold */
|
|
3841
|
+
JackPotTemparature[JackPotTemparature["COLD"] = 0] = "COLD";
|
|
3842
|
+
/** warm */
|
|
3843
|
+
JackPotTemparature[JackPotTemparature["WARM"] = 1] = "WARM";
|
|
3844
|
+
/** hot */
|
|
3845
|
+
JackPotTemparature[JackPotTemparature["HOT"] = 2] = "HOT";
|
|
3846
|
+
})(JackPotTemparature || (JackPotTemparature = {}));
|
|
3847
|
+
|
|
3830
3848
|
exports.JackpotType = void 0;
|
|
3831
3849
|
(function (JackpotType) {
|
|
3832
3850
|
JackpotType[JackpotType["Main"] = 1] = "Main";
|