@smartico/public-api 0.0.121 → 0.0.122

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.
Files changed (54) hide show
  1. package/dist/Base/ClassId.d.ts +13 -0
  2. package/dist/Jackpots/GetJackpotsPotsRequest.d.ts +4 -0
  3. package/dist/Jackpots/GetJackpotsPotsResponse.d.ts +5 -0
  4. package/dist/Jackpots/GetJackpotsRequest.d.ts +4 -0
  5. package/dist/Jackpots/GetJackpotsResponse.d.ts +5 -0
  6. package/dist/Jackpots/JackpotContributionType.d.ts +5 -0
  7. package/dist/Jackpots/JackpotDetails.d.ts +17 -0
  8. package/dist/Jackpots/JackpotPot.d.ts +7 -0
  9. package/dist/Jackpots/JackpotPublicMeta.d.ts +6 -0
  10. package/dist/Jackpots/JackpotType.d.ts +4 -0
  11. package/dist/Jackpots/JackpotsOptinRequest.d.ts +4 -0
  12. package/dist/Jackpots/JackpotsOptinResponse.d.ts +3 -0
  13. package/dist/Jackpots/JackpotsOptoutRequest.d.ts +4 -0
  14. package/dist/Jackpots/JackpotsOptoutResponse.d.ts +3 -0
  15. package/dist/MiniGames/SAWGameType.d.ts +3 -1
  16. package/dist/MiniGames/SAWPrizeDropAknowledgeRequest.d.ts +4 -0
  17. package/dist/MiniGames/SAWPrizeDropAknowledgeResponse.d.ts +4 -0
  18. package/dist/MiniGames/SAWPrizeDropWinPush.d.ts +7 -0
  19. package/dist/Quiz/MarketsAnswersType.d.ts +22 -0
  20. package/dist/Quiz/MarketsInfo.d.ts +2 -1
  21. package/dist/Quiz/index.d.ts +1 -0
  22. package/dist/Store/GetStoreHistoryRequest.d.ts +5 -0
  23. package/dist/Store/GetStoreHistoryResponse.d.ts +6 -0
  24. package/dist/Store/StorItemPruchased.d.ts +6 -0
  25. package/dist/index.js +303 -11
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.modern.mjs +305 -12
  28. package/dist/index.modern.mjs.map +1 -1
  29. package/package.json +1 -1
  30. package/src/Base/ClassId.ts +21 -0
  31. package/src/Jackpots/GetJackpotsPotsRequest.ts +5 -0
  32. package/src/Jackpots/GetJackpotsPotsResponse.ts +8 -0
  33. package/src/Jackpots/GetJackpotsRequest.ts +7 -0
  34. package/src/Jackpots/GetJackpotsResponse.ts +9 -0
  35. package/src/Jackpots/JackpotContributionType.ts +7 -0
  36. package/src/Jackpots/JackpotDetails.ts +20 -0
  37. package/src/Jackpots/JackpotPot.ts +10 -0
  38. package/src/Jackpots/JackpotPublicMeta.ts +8 -0
  39. package/src/Jackpots/JackpotType.ts +8 -0
  40. package/src/Jackpots/JackpotsOptinRequest.ts +7 -0
  41. package/src/Jackpots/JackpotsOptinResponse.ts +5 -0
  42. package/src/Jackpots/JackpotsOptoutRequest.ts +7 -0
  43. package/src/Jackpots/JackpotsOptoutResponse.ts +5 -0
  44. package/src/Jackpots/jackpotsWSApi.zip +0 -0
  45. package/src/MiniGames/SAWGameType.ts +5 -2
  46. package/src/MiniGames/SAWPrizeDropAknowledgeRequest.ts +5 -0
  47. package/src/MiniGames/SAWPrizeDropAknowledgeResponse.ts +5 -0
  48. package/src/MiniGames/SAWPrizeDropWinPush.ts +8 -0
  49. package/src/Quiz/MarketsAnswersType.ts +22 -0
  50. package/src/Quiz/MarketsInfo.ts +185 -8
  51. package/src/Quiz/index.ts +2 -1
  52. package/src/Store/GetStoreHistoryRequest.ts +6 -0
  53. package/src/Store/GetStoreHistoryResponse.ts +7 -0
  54. package/src/Store/StorItemPruchased.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.121",
3
+ "version": "0.0.122",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -78,6 +78,9 @@ export enum ClassId {
78
78
  ACHIEVEMENT_CLAIM_PRIZE_REQUEST = 539,
79
79
  ACHIEVEMENT_CLAIM_PRIZE_RESPONSE = 540,
80
80
 
81
+ ACH_SHOP_ITEM_HISTORY_REQUEST = 541,
82
+ ACH_SHOP_ITEM_HISTORY_RESPONSE = 542,
83
+
81
84
  GET_BONUSES_REQUEST = 600,
82
85
  GET_BONUSES_RESPONSE = 601,
83
86
  CLAIM_BONUS_REQUEST = 602,
@@ -91,6 +94,24 @@ export enum ClassId {
91
94
  SAW_AKNOWLEDGE_RESPONSE = 705,
92
95
  SAW_SPINS_COUNT_PUSH = 706,
93
96
  SAW_SHOW_SPIN_PUSH = 707,
97
+ SAW_PRIZE_DROP_WIN_PUSH = 708,
98
+ SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST = 709,
99
+ SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE = 710,
100
+
101
+
102
+ JP_GET_JACKPOTS_REQUEST = 800,
103
+ JP_GET_JACKPOTS_RESPONSE = 801,
104
+
105
+ JP_GET_LATEST_POTS_REQUEST = 802,
106
+ JP_GET_LATEST_POTS_RESPONSE = 803,
107
+
108
+ JP_OPTIN_REQUEST = 804,
109
+ JP_OPTIN_RESPONSE = 805,
110
+
111
+ JP_OPTOUT_REQUEST = 806,
112
+ JP_OPTOUT_RESPONSE = 807,
113
+
114
+ // JP_WIN_PUSH = 808,
94
115
 
95
116
  REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ = 1003,
96
117
  REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP = 2003,
@@ -0,0 +1,5 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+
3
+ export interface GetJackpotsPotsRequest extends ProtocolMessage {
4
+ pot_ids: number[];
5
+ }
@@ -0,0 +1,8 @@
1
+ import { ProtocolResponse } from "../Base/ProtocolResponse";
2
+ import { JackpotPot } from "./JackpotPot";
3
+
4
+ export interface GetJackpotsPotsResponse extends ProtocolResponse {
5
+
6
+ pots: JackpotPot[];
7
+ }
8
+
@@ -0,0 +1,7 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+
3
+
4
+ export interface GetJackpotsRequest extends ProtocolMessage {
5
+
6
+ related_game_id?: string[];
7
+ }
@@ -0,0 +1,9 @@
1
+ import { AchRelatedGame } from "../Base/AchRelatedGame";
2
+ import { ProtocolResponse } from "../Base/ProtocolResponse";
3
+ import { JackpotDetails } from "./JackpotDetails";
4
+
5
+ export interface GetJackpotsResponse extends ProtocolResponse {
6
+
7
+ jackpots: JackpotDetails[];
8
+ }
9
+
@@ -0,0 +1,7 @@
1
+ enum JackpotContributionType {
2
+ Fixed = 1,
3
+ Percentage = 2
4
+ }
5
+
6
+
7
+ export { JackpotContributionType }
@@ -0,0 +1,20 @@
1
+ import { AchRelatedGame } from "../Base/AchRelatedGame";
2
+ import { JackpotContributionType } from "./JackpotContributionType";
3
+ import { JackpotPot } from "./JackpotPot";
4
+ import { JackpotPublicMeta } from "./JackpotPublicMeta";
5
+ import { JackpotType } from "./JackpotType";
6
+
7
+ interface JackpotDetails {
8
+ jp_template_id: number;
9
+ jp_type_id: JackpotType;
10
+ jp_public_meta: JackpotPublicMeta;
11
+ jp_currency: string;
12
+ related_games?: AchRelatedGame[];
13
+ contribution_type: JackpotContributionType;
14
+ contribution_value: number;
15
+ pot: JackpotPot;
16
+ is_opted_in: boolean;
17
+
18
+ }
19
+
20
+ export { JackpotDetails }
@@ -0,0 +1,10 @@
1
+
2
+ interface JackpotPot {
3
+ jp_template_id: number;
4
+ jp_pot_id: number;
5
+ current_pot_amount: number;
6
+ explode_date_ts: number;
7
+ // last_exploded_pot?: JackpotPot;
8
+ }
9
+
10
+ export { JackpotPot }
@@ -0,0 +1,8 @@
1
+ interface JackpotPublicMeta {
2
+ name: string;
3
+ description: string;
4
+ image_url: string;
5
+ }
6
+
7
+
8
+ export { JackpotPublicMeta }
@@ -0,0 +1,8 @@
1
+
2
+
3
+ enum JackpotType {
4
+ Main = 1
5
+ }
6
+
7
+
8
+ export { JackpotType }
@@ -0,0 +1,7 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+
3
+
4
+ export interface JackpotsOptinRequest extends ProtocolMessage {
5
+
6
+ jp_template_id: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { ProtocolResponse } from "../Base/ProtocolResponse";
2
+
3
+ export interface JackpotsOptinResponse extends ProtocolResponse {
4
+
5
+ }
@@ -0,0 +1,7 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+
3
+
4
+ export interface JackpotsOptoutRequest extends ProtocolMessage {
5
+
6
+ jp_template_id: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { ProtocolResponse } from "../Base/ProtocolResponse";
2
+
3
+ export interface JackpotsOptoutResponse extends ProtocolResponse {
4
+
5
+ }
Binary file
@@ -4,7 +4,8 @@ export enum SAWGameType {
4
4
  SpinAWheel = 1,
5
5
  ScratchCard = 2,
6
6
  MatchX = 3,
7
- GiftBox = 4
7
+ GiftBox = 4,
8
+ PrizeDrop = 5
8
9
  }
9
10
 
10
11
  export enum SAWGameTypeName {
@@ -12,6 +13,7 @@ export enum SAWGameTypeName {
12
13
  ScratchCard = "scratch",
13
14
  MatchX = "matchx",
14
15
  GiftBox = "giftbox",
16
+ PrizeDrop = "prizedrop",
15
17
  Unknown = "unknown"
16
18
  }
17
19
 
@@ -21,6 +23,7 @@ export const SAWGameTypeNamed = (type: SAWGameType): SAWGameTypeName => {
21
23
  [SAWGameType.SpinAWheel]: SAWGameTypeName.SpinAWheel,
22
24
  [SAWGameType.ScratchCard]: SAWGameTypeName.ScratchCard,
23
25
  [SAWGameType.MatchX]: SAWGameTypeName.MatchX,
24
- [SAWGameType.GiftBox]: SAWGameTypeName.GiftBox
26
+ [SAWGameType.GiftBox]: SAWGameTypeName.GiftBox,
27
+ [SAWGameType.PrizeDrop]: SAWGameTypeName.PrizeDrop
25
28
  }[type] || SAWGameTypeName.Unknown;
26
29
  }
@@ -0,0 +1,5 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+
3
+ export interface SAWPrizeDropAknowledgeRequest extends ProtocolMessage {
4
+ request_id: string; // guid
5
+ }
@@ -0,0 +1,5 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+
3
+ export interface SAWPrizeDropAknowledgeResponse extends ProtocolMessage {
4
+ request_id: string; // guid
5
+ }
@@ -0,0 +1,8 @@
1
+ import { ProtocolMessage } from ".././Base/ProtocolMessage";
2
+ import { SAWPrize } from "./SAWPrize";
3
+
4
+ export interface SAWPrizeDropWinPush extends ProtocolMessage {
5
+ request_id: string; // guid
6
+ saw_template_id: number;
7
+ saw_prize: SAWPrize;
8
+ }
@@ -0,0 +1,22 @@
1
+ export enum MarketsValueType {
2
+ HomeTeam = '1',
3
+ AwayTeam = '2',
4
+ Draw = 'x',
5
+ HomeTeamHomeTeam = '1/1',
6
+ HomeTeamDraw = '1/x',
7
+ HomeTeamAwayTeam = '1/2',
8
+ DrawHomeTeam = 'x/1',
9
+ DrawDraw = 'x/x',
10
+ DrawAwayTeam = 'x/2',
11
+ AwayTeamHomeTeam = '2/1',
12
+ AwayTeamDraw = '2/x',
13
+ AwayTeamAwayTeam = '2/2',
14
+ Yes = 'yes',
15
+ No = 'no',
16
+ Odd = 'odd',
17
+ Even = 'even',
18
+ HomeOdd = '1/odd',
19
+ HomeEven = '1/even',
20
+ AwayOdd = '2/odd',
21
+ AwayEven = '2/even',
22
+ }
@@ -1,17 +1,194 @@
1
+ import { MarketsValueType } from "./MarketsAnswersType";
1
2
  import { QuizMarketType } from "./MarketsType";
2
3
 
3
- const quizAnswerHomeTeamReplacementText = '%HomeTeam%';
4
- const quizAnswerAwayTeamReplacementText = '%AwayTeam%';
4
+ const quizAnswerHomeTeamReplacementText = '{quiz_home_team}';
5
+ const quizAnswerAwayTeamReplacementText = '{quiz_away_team}';
6
+ const drawReplacementText = '{quiz_draw}';
7
+ const quizYesReplacementText = '{yes}';
8
+ const quizNoReplacementText = '{no}';
9
+ const quizOddReplacementText = '{odd}';
10
+ const quizEvenReplacementText = '{even}';
11
+
12
+ const yesNoAnswers = [
13
+ { text: quizYesReplacementText, value: MarketsValueType.Yes },
14
+ { text: quizNoReplacementText, value: MarketsValueType.No }
15
+ ]
16
+
17
+ const homeAwayAnswers = [
18
+ { text: quizAnswerHomeTeamReplacementText, value: MarketsValueType.HomeTeam },
19
+ { text: quizAnswerAwayTeamReplacementText, value: MarketsValueType.AwayTeam }
20
+ ]
21
+
22
+ const homeAwayDrawAnswers = [
23
+ ...homeAwayAnswers,
24
+ { text: drawReplacementText, value: MarketsValueType.Draw },
25
+ ]
5
26
 
6
27
  export const marketsInfo = [
7
28
  {
8
29
  type: QuizMarketType.OneXTwo,
9
- name: '1X2',
10
- question: { text: 'Who will win the match ?', trKey: 'quiz_answer_1x2' },
30
+ name: '1x2',
31
+ question: { text: 'Who will win the match ?', trKey: 'quizQuestion_1x2'},
32
+ answers: homeAwayDrawAnswers
33
+ },
34
+ {
35
+ type: QuizMarketType.OneXTwoHalftime,
36
+ name: '1x2 Halftime',
37
+ question: { text: 'Who will lead the first half of the match ?', trKey: 'quizQuestion_x2half' },
38
+ answers: homeAwayDrawAnswers
39
+ },
40
+ {
41
+ type: QuizMarketType.HalftimeFulltime,
42
+ name: 'Halftime / Fulltime',
43
+ question: { text: 'Who will lead the first half and who will win the match ?', trKey: 'quizQuestion__HalftimeFulltime' },
44
+ answers: [
45
+ { text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`, value: MarketsValueType.HomeTeamHomeTeam },
46
+ { text: `${quizAnswerHomeTeamReplacementText} / ${drawReplacementText}`, value: MarketsValueType.HomeTeamDraw },
47
+ { text: `${quizAnswerHomeTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`, value: MarketsValueType.HomeTeamAwayTeam },
48
+ { text: `${drawReplacementText} / ${quizAnswerHomeTeamReplacementText}`, value: MarketsValueType.DrawHomeTeam },
49
+ { text: `${drawReplacementText} / ${drawReplacementText}`, value: MarketsValueType.DrawDraw },
50
+ { text: `${drawReplacementText} / ${quizAnswerAwayTeamReplacementText}`, value: MarketsValueType.DrawAwayTeam },
51
+ { text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerHomeTeamReplacementText}`, value: MarketsValueType.AwayTeamHomeTeam },
52
+ { text: `${quizAnswerAwayTeamReplacementText} / ${drawReplacementText}`, value: MarketsValueType.AwayTeamDraw },
53
+ { text: `${quizAnswerAwayTeamReplacementText} / ${quizAnswerAwayTeamReplacementText}`, value: MarketsValueType.AwayTeamAwayTeam }
54
+ ]
55
+ },
56
+ {
57
+ type: QuizMarketType.FirstGoal,
58
+ name: 'First Goal',
59
+ question: { text: 'Who will score the first goal ?', trKey: 'quizQuestion_firstGoal' },
60
+ answers: homeAwayDrawAnswers
61
+ },
62
+ {
63
+ type: QuizMarketType.LastGoal,
64
+ name: 'Last Goal',
65
+ question: { text: 'Who will score the last goal ?', trKey: 'quizQuestion_lastGoal' },
66
+ answers: homeAwayAnswers
67
+ },
68
+ {
69
+ type: QuizMarketType.DoubleChance,
70
+ name: 'Double Chance',
71
+ question: { text: 'Who will win the match? Choose a combination: ?', trKey: 'quizQuestion_doubleChance' },
72
+ answers: [
73
+ { text: `${drawReplacementText} or ${quizAnswerHomeTeamReplacementText}`, value: MarketsValueType.HomeTeamDraw },
74
+ { text: `${quizAnswerHomeTeamReplacementText} or ${quizAnswerAwayTeamReplacementText}`, value: MarketsValueType.HomeTeamAwayTeam },
75
+ { text: `${drawReplacementText} or ${quizAnswerAwayTeamReplacementText}`, value: MarketsValueType.AwayTeamDraw }
76
+ ]
77
+ },
78
+ {
79
+ type: QuizMarketType.OverUnder2_5,
80
+ name: 'Over/Under 2.5',
81
+ question: { text: 'Will there be 3 or more goals in the match?', trKey: 'quizQuestion_overUnder2_5' },
82
+ answers: yesNoAnswers
83
+ },
84
+ {
85
+ type: QuizMarketType.OverUnder1_5Halftime,
86
+ name: 'Over/Under 1.5 Halftime',
87
+ question: { text: 'Will there be 2 or more goals in the first half?', trKey: 'quizQuestion_overUnder1_5Halftime' },
88
+ answers: yesNoAnswers
89
+ },
90
+ {
91
+ type: QuizMarketType.OverUnder1_5__2ndHalf,
92
+ name: 'Over/Under 1.5 2nd Half',
93
+ question: { text: 'Will there be 2 or more goals in the second half?', trKey: 'quizQuestion_overUnder1_5__2ndHalf' },
94
+ answers: yesNoAnswers
95
+ },
96
+ {
97
+ type: QuizMarketType.RedCard,
98
+ name: 'Red Card',
99
+ question: { text: 'Will there be a red card in the match?', trKey: 'quizQuestion_redCard' },
100
+ answers: yesNoAnswers
101
+ },
102
+ {
103
+ type: QuizMarketType.TotalCorners8_5,
104
+ name: 'Total Corners 8.5',
105
+ question: { text: 'Will there be 9 or more corners in the match?', trKey: 'quizQuestion_totalCorners8_5' },
106
+ answers: yesNoAnswers
107
+ },
108
+ {
109
+ type: QuizMarketType.TotalCorners9_5,
110
+ name: 'Total Corners 9.5',
111
+ question: { text: 'Will there be 10 or more corners in the match?', trKey: 'quizQuestion_totalCorners9_5' },
112
+ answers: yesNoAnswers
113
+ },
114
+ {
115
+ type: QuizMarketType.Corners1x2,
116
+ name: 'Corners 1x2',
117
+ question: { text: 'Which team will have more corners in the match?', trKey: 'quizQuestion_corners1x2' },
118
+ answers: homeAwayAnswers
119
+ },
120
+ {
121
+ type: QuizMarketType.One_Two,
122
+ name: '1-2',
123
+ question: { text: 'Who will win the match ?', trKey: 'quizQuestion_1-2'},
124
+ answers: homeAwayAnswers
125
+ },
126
+ {
127
+ type: QuizMarketType.Overtime,
128
+ name: 'Overtime',
129
+ question: { text: 'Will there be overtime in the match?', trKey: 'quizQuestion_overtime' },
130
+ answers: yesNoAnswers
131
+ },
132
+ {
133
+ type: QuizMarketType.OddEven,
134
+ name: 'Odd/Even',
135
+ question: { text: 'Is the sum of all points scored in the game going to be an odd number or even?', trKey: 'quizQuestion_oddEven' },
136
+ answers: [
137
+ { text: quizOddReplacementText, value: MarketsValueType.Odd },
138
+ { text: quizEvenReplacementText, value: MarketsValueType.Even }
139
+ ]
140
+ },
141
+ {
142
+ type: QuizMarketType.OddEvenHomeAway,
143
+ name: 'Odd/Even Home/Away',
144
+ question: { text: 'Which team will win and what will be the sum of the points (Odd or Even)?', trKey: 'quizQuestion_oddEvenHomeAway' },
11
145
  answers: [
12
- { text: quizAnswerHomeTeamReplacementText, trKey: 'quiz_answer_1x2_home' },
13
- { text: 'Draw', trKey: 'quiz_answer_1x2_draw' },
14
- { text: quizAnswerAwayTeamReplacementText, trKey: 'quiz_answer_1x2_away' }
146
+ { text: `${quizAnswerHomeTeamReplacementText} - ${quizOddReplacementText}`, value: MarketsValueType.HomeOdd },
147
+ { text: `${quizAnswerHomeTeamReplacementText} - ${quizEvenReplacementText}`, value: MarketsValueType.HomeEven },
148
+ { text: `${quizAnswerAwayTeamReplacementText} - ${quizOddReplacementText}`, value: MarketsValueType.AwayOdd },
149
+ { text: `${quizAnswerAwayTeamReplacementText} - ${quizEvenReplacementText}`, value: MarketsValueType.AwayEven }
15
150
  ]
16
- }
151
+ },
152
+ {
153
+ type: QuizMarketType.FirstSet,
154
+ name: 'First Set',
155
+ question: { text: 'Who will win the first set ?', trKey: 'quizQuestion_firstSet' },
156
+ answers: homeAwayAnswers
157
+ },
158
+ {
159
+ type: QuizMarketType.SecondSet,
160
+ name: 'Second Set',
161
+ question: { text: 'Who will win the second set ?', trKey: 'quizQuestion_secondSet' },
162
+ answers: homeAwayAnswers
163
+ },
164
+ {
165
+ type: QuizMarketType.ThirdSet,
166
+ name: 'Third Set',
167
+ question: { text: 'Who will win the third set ?', trKey: 'quizQuestion_thirdSet' },
168
+ answers: homeAwayAnswers
169
+ },
170
+ {
171
+ type: QuizMarketType.FourthSet,
172
+ name: 'Fourth Set',
173
+ question: { text: 'Who will win the fourth set ?', trKey: 'quizQuestion_fourthSet' },
174
+ answers: homeAwayAnswers
175
+ },
176
+ {
177
+ type: QuizMarketType.FifthSet,
178
+ name: 'Fifth Set',
179
+ question: { text: 'Who will win the fifth set ?', trKey: 'quizQuestion_fifthSet' },
180
+ answers: homeAwayAnswers
181
+ },
182
+ {
183
+ type: QuizMarketType.PlayerOneWinsOneSet,
184
+ name: 'Player One Wins One Set',
185
+ question: { text: 'Will Player One win at least one set?', trKey: 'quizQuestion_playerOneWinsOneSet' },
186
+ answers: yesNoAnswers
187
+ },
188
+ {
189
+ type: QuizMarketType.PlayerTwoWinsOneSet,
190
+ name: 'Player Two Wins One Set',
191
+ question: { text: 'Will Player Two win at least one set?', trKey: 'quizQuestion_playerTwoWinsOneSet' },
192
+ answers: yesNoAnswers
193
+ },
17
194
  ]
package/src/Quiz/index.ts CHANGED
@@ -2,4 +2,5 @@ export * from './SportTypes';
2
2
  export * from './MarketsType';
3
3
  export * from './ScoreResultTypes';
4
4
  export * from './MarketsInfo';
5
- export * from './MarketsPerSport';
5
+ export * from './MarketsPerSport';
6
+ export * from './MarketsAnswersType';
@@ -0,0 +1,6 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+
3
+ export interface GetStoreHistoryRequest extends ProtocolMessage {
4
+ offset: number;
5
+ limit: number;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ import { StorItemPruchased } from "./StorItemPruchased";
3
+
4
+ export interface GetStoreHistoryResponse extends ProtocolMessage {
5
+ items: StorItemPruchased[];
6
+ hasMore: boolean;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { StoreItem } from "./StoreItem";
2
+
3
+ interface StorItemPruchased extends StoreItem {
4
+ purchase_ts: number;
5
+ purchase_points_amount: number;
6
+ }
7
+
8
+ export { StorItemPruchased }