@smartico/public-api 0.0.211 → 0.0.213
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/Base/AchRelatedGame.d.ts +2 -0
- package/dist/MiniGames/SAWPrizeUI.d.ts +1 -0
- package/dist/Quiz/MarketsAnswersType.d.ts +22 -0
- package/dist/SmarticoPublicAPI.d.ts +23 -0
- package/dist/Store/BuyShopItemErrorCode.d.ts +10 -0
- package/dist/Store/BuyShopItemRequest.d.ts +4 -0
- package/dist/Store/BuyShopItemResponse.d.ts +4 -0
- package/dist/Store/GetCategoriesShopResponse.d.ts +5 -0
- package/dist/Store/GetShopItemsResponse.d.ts +5 -0
- package/dist/Store/ShopCategory.d.ts +5 -0
- package/dist/Store/ShopCategoryPublicMeta.d.ts +4 -0
- package/dist/Store/ShopItem.d.ts +9 -0
- package/dist/Store/ShopItemPublicMeta.d.ts +10 -0
- package/dist/Store/ShopItemType.d.ts +4 -0
- package/dist/Store/StorItemPruchased.d.ts +6 -0
- package/dist/Tournaments/Tournament.d.ts +2 -0
- package/dist/WSAPI/WSAPITypes.d.ts +39 -2
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +4 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/service/index.d.ts +5 -0
- package/dist/service/types/ErrorCodes.d.ts +13 -0
- package/dist/service/types/GRequest.d.ts +16 -0
- package/dist/service/types/GResponse.d.ts +10 -0
- package/dist/service/types/Game/GameAttemptType.d.ts +6 -0
- package/dist/service/types/Game/GameCanPlayType.d.ts +10 -0
- package/dist/service/types/Game/GameExternalStatus.d.ts +6 -0
- package/dist/service/types/Game/GameInfo.d.ts +9 -0
- package/dist/service/types/Game/GamePick.d.ts +90 -0
- package/dist/service/types/Game/GameUtil.d.ts +7 -0
- package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +7 -0
- package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +7 -0
- package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +5 -0
- package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +6 -0
- package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +5 -0
- package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +34 -0
- package/dist/service/types/SmarticoProto/PublicProperties.d.ts +11 -0
- package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +12 -0
- package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +15 -0
- package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +10 -0
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +3 -0
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +11 -0
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +8 -0
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +13 -0
- package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +21 -0
- package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +31 -0
- package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +12 -0
- package/dist/service/types/SmarticoProto/TranslationArea.d.ts +9 -0
- package/dist/service/types/User/UserInfo.d.ts +10 -0
- package/dist/util/Util.d.ts +51 -0
- package/docs/enums/MiniGamePrizeTypeName.md +2 -2
- package/docs/interfaces/AchRelatedGame.md +4 -0
- package/docs/interfaces/TMiniGamePrize.md +52 -11
- package/docs/interfaces/TMiniGameTemplate.md +14 -0
- package/docs/interfaces/TTournament.md +10 -0
- package/docs/interfaces/TTournamentDetailed.md +14 -0
- package/package.json +1 -1
- package/src/Base/AchRelatedGame.ts +2 -2
- package/src/MiniGames/SAWGetTemplatesResponse.ts +3 -0
- package/src/MiniGames/SAWPrizeUI.ts +3 -0
- package/src/Tournaments/Tournament.ts +2 -2
- package/src/WSAPI/WSAPITypes.ts +40 -32
|
@@ -64,91 +64,127 @@ ___
|
|
|
64
64
|
|
|
65
65
|
• **position**: `number`
|
|
66
66
|
|
|
67
|
+
for scratch card defines position of prize in the list
|
|
68
|
+
|
|
69
|
+
___
|
|
70
|
+
|
|
71
|
+
### sectors
|
|
72
|
+
|
|
73
|
+
• **sectors**: `number`[]
|
|
74
|
+
|
|
75
|
+
List of sectors for the prize
|
|
76
|
+
|
|
67
77
|
___
|
|
68
78
|
|
|
69
79
|
### acknowledge\_type
|
|
70
80
|
|
|
71
81
|
• **acknowledge\_type**: `SAWAcknowledgeTypeName`
|
|
72
82
|
|
|
83
|
+
Type of acknowledge message for users
|
|
84
|
+
|
|
73
85
|
___
|
|
74
86
|
|
|
75
87
|
### aknowledge\_message
|
|
76
88
|
|
|
77
89
|
• **aknowledge\_message**: `string`
|
|
78
90
|
|
|
91
|
+
Message that will be shown to user in modal pop-up
|
|
92
|
+
|
|
79
93
|
___
|
|
80
94
|
|
|
81
95
|
### acknowledge\_dp
|
|
82
96
|
|
|
83
97
|
• **acknowledge\_dp**: `string`
|
|
84
98
|
|
|
99
|
+
Deep link that will trigger some action in modal pop-up
|
|
100
|
+
|
|
85
101
|
___
|
|
86
102
|
|
|
87
103
|
### acknowledge\_action\_title
|
|
88
104
|
|
|
89
105
|
• **acknowledge\_action\_title**: `string`
|
|
90
106
|
|
|
107
|
+
The name of the action button in modal pop-up
|
|
108
|
+
|
|
91
109
|
___
|
|
92
110
|
|
|
93
111
|
### acknowledge\_dp\_additional
|
|
94
112
|
|
|
95
113
|
• `Optional` **acknowledge\_dp\_additional**: `string`
|
|
96
114
|
|
|
115
|
+
Deep link that will trigger some action in modal pop-up (additional)
|
|
116
|
+
|
|
97
117
|
___
|
|
98
118
|
|
|
99
119
|
### acknowledge\_action\_title\_additional
|
|
100
120
|
|
|
101
121
|
• `Optional` **acknowledge\_action\_title\_additional**: `string`
|
|
102
122
|
|
|
123
|
+
The name of the action button in modal pop-up (additional)
|
|
124
|
+
|
|
125
|
+
___
|
|
126
|
+
|
|
127
|
+
### out\_of\_stock\_message
|
|
128
|
+
|
|
129
|
+
• `Optional` **out\_of\_stock\_message**: `string`
|
|
130
|
+
|
|
131
|
+
Message when the prize pool is empty for that specific prize
|
|
132
|
+
|
|
103
133
|
___
|
|
104
134
|
|
|
105
135
|
### pool
|
|
106
136
|
|
|
107
137
|
• `Optional` **pool**: `number`
|
|
108
138
|
|
|
139
|
+
Number of items in stock
|
|
140
|
+
|
|
109
141
|
___
|
|
110
142
|
|
|
111
143
|
### pool\_initial
|
|
112
144
|
|
|
113
145
|
• `Optional` **pool\_initial**: `number`
|
|
114
146
|
|
|
147
|
+
Initial number of items in stock
|
|
148
|
+
|
|
115
149
|
___
|
|
116
150
|
|
|
117
151
|
### wins\_count
|
|
118
152
|
|
|
119
153
|
• `Optional` **wins\_count**: `number`
|
|
120
154
|
|
|
155
|
+
Number of wins in game
|
|
156
|
+
|
|
121
157
|
___
|
|
122
158
|
|
|
123
159
|
### weekdays
|
|
124
160
|
|
|
125
161
|
• `Optional` **weekdays**: `number`[]
|
|
126
162
|
|
|
163
|
+
Number of days of week, when the prize can be available
|
|
164
|
+
|
|
127
165
|
___
|
|
128
166
|
|
|
129
167
|
### active\_from\_ts
|
|
130
168
|
|
|
131
169
|
• `Optional` **active\_from\_ts**: `number`
|
|
132
170
|
|
|
171
|
+
Holds time from which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp)
|
|
172
|
+
|
|
133
173
|
___
|
|
134
174
|
|
|
135
175
|
### active\_till\_ts
|
|
136
176
|
|
|
137
177
|
• `Optional` **active\_till\_ts**: `number`
|
|
138
178
|
|
|
179
|
+
Holds time till which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp)
|
|
180
|
+
|
|
139
181
|
___
|
|
140
182
|
|
|
141
183
|
### relative\_period\_timezone
|
|
142
184
|
|
|
143
185
|
• `Optional` **relative\_period\_timezone**: `number`
|
|
144
186
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
### out\_of\_stock\_message
|
|
148
|
-
|
|
149
|
-
• `Optional` **out\_of\_stock\_message**: `string`
|
|
150
|
-
|
|
151
|
-
Message when the prize pool is empty for that specific prize
|
|
187
|
+
Time zone to ensure each day aligns with your local midnight.
|
|
152
188
|
|
|
153
189
|
___
|
|
154
190
|
|
|
@@ -160,7 +196,6 @@ Flag indicating that the prize is surcharged (available all the time, despite po
|
|
|
160
196
|
|
|
161
197
|
___
|
|
162
198
|
|
|
163
|
-
|
|
164
199
|
### is\_deleted
|
|
165
200
|
|
|
166
201
|
• `Optional` **is\_deleted**: `boolean`
|
|
@@ -171,7 +206,7 @@ ___
|
|
|
171
206
|
|
|
172
207
|
### custom\_data
|
|
173
208
|
|
|
174
|
-
• **custom\_data**: `any`
|
|
209
|
+
• `Optional` **custom\_data**: `any`
|
|
175
210
|
|
|
176
211
|
The custom data of the mini-game defined by operator in the BackOffice. Can be a JSON object, string or number
|
|
177
212
|
|
|
@@ -179,7 +214,7 @@ ___
|
|
|
179
214
|
|
|
180
215
|
### prize\_modifiers
|
|
181
216
|
|
|
182
|
-
• `Optional` **prize\_modifiers**: `PrizeModifiers`
|
|
217
|
+
• `Optional` **prize\_modifiers**: `PrizeModifiers`[]
|
|
183
218
|
|
|
184
219
|
Prize modifiers that will multiply by 2x, 5x or 10x the current total. This will not affect the final Prize Amount that will be awarded.
|
|
185
220
|
|
|
@@ -191,4 +226,10 @@ ___
|
|
|
191
226
|
|
|
192
227
|
When enabled, you can split prize value by decimal values
|
|
193
228
|
|
|
194
|
-
___
|
|
229
|
+
___
|
|
230
|
+
|
|
231
|
+
### hide\_prize\_from\_history
|
|
232
|
+
|
|
233
|
+
• `Optional` **hide\_prize\_from\_history**: `boolean`
|
|
234
|
+
|
|
235
|
+
When enabled, you can hide prize from prize history
|
|
@@ -187,3 +187,17 @@ ___
|
|
|
187
187
|
The amount of steps to complete the game and gather the prize
|
|
188
188
|
|
|
189
189
|
___
|
|
190
|
+
|
|
191
|
+
### custom\_section\_id
|
|
192
|
+
|
|
193
|
+
• `Optional` **custom\_section\_id**: `number`
|
|
194
|
+
|
|
195
|
+
Hold the id of the custom section
|
|
196
|
+
|
|
197
|
+
___
|
|
198
|
+
|
|
199
|
+
### saw\_template\_ui\_definition
|
|
200
|
+
|
|
201
|
+
• **saw\_template\_ui\_definition**: `SAWTemplateUI`
|
|
202
|
+
|
|
203
|
+
The UI definition of the mini-game
|
|
@@ -46,30 +46,40 @@ ___
|
|
|
46
46
|
|
|
47
47
|
• **image1**: `string`
|
|
48
48
|
|
|
49
|
+
1st image URL representing the tournament
|
|
50
|
+
|
|
49
51
|
___
|
|
50
52
|
|
|
51
53
|
### image2
|
|
52
54
|
|
|
53
55
|
• **image2**: `string`
|
|
54
56
|
|
|
57
|
+
2nd image URL representing the tournament
|
|
58
|
+
|
|
55
59
|
___
|
|
56
60
|
|
|
57
61
|
### image2\_mobile
|
|
58
62
|
|
|
59
63
|
• **image2\_mobile**: `string`
|
|
60
64
|
|
|
65
|
+
2nd image URL representing the tournament for mobile
|
|
66
|
+
|
|
61
67
|
___
|
|
62
68
|
|
|
63
69
|
### prize\_pool\_short
|
|
64
70
|
|
|
65
71
|
• **prize\_pool\_short**: `string`
|
|
66
72
|
|
|
73
|
+
The message indicating the prize pool of the tournament
|
|
74
|
+
|
|
67
75
|
___
|
|
68
76
|
|
|
69
77
|
### custom\_price\_text
|
|
70
78
|
|
|
71
79
|
• **custom\_price\_text**: `string`
|
|
72
80
|
|
|
81
|
+
The message indicating the price to register in the tournament
|
|
82
|
+
|
|
73
83
|
___
|
|
74
84
|
|
|
75
85
|
### segment\_dont\_match\_message
|
|
@@ -62,6 +62,8 @@ ___
|
|
|
62
62
|
|
|
63
63
|
• **image1**: `string`
|
|
64
64
|
|
|
65
|
+
1st image URL representing the tournament
|
|
66
|
+
|
|
65
67
|
#### Inherited from
|
|
66
68
|
|
|
67
69
|
[TTournament](TTournament.md).[image1](TTournament.md#image1)
|
|
@@ -72,6 +74,8 @@ ___
|
|
|
72
74
|
|
|
73
75
|
• **image2**: `string`
|
|
74
76
|
|
|
77
|
+
2nd image URL representing the tournament
|
|
78
|
+
|
|
75
79
|
#### Inherited from
|
|
76
80
|
|
|
77
81
|
[TTournament](TTournament.md).[image2](TTournament.md#image2)
|
|
@@ -82,6 +86,8 @@ ___
|
|
|
82
86
|
|
|
83
87
|
• **image2\_mobile**: `string`
|
|
84
88
|
|
|
89
|
+
2nd image URL representing the tournament for mobile
|
|
90
|
+
|
|
85
91
|
#### Inherited from
|
|
86
92
|
|
|
87
93
|
[TTournament](TTournament.md).[image2_mobile](TTournament.md#image2_mobile)
|
|
@@ -92,6 +98,8 @@ ___
|
|
|
92
98
|
|
|
93
99
|
• **prize\_pool\_short**: `string`
|
|
94
100
|
|
|
101
|
+
The message indicating the prize pool of the tournament
|
|
102
|
+
|
|
95
103
|
#### Inherited from
|
|
96
104
|
|
|
97
105
|
[TTournament](TTournament.md).[prize_pool_short](TTournament.md#prize_pool_short)
|
|
@@ -102,6 +110,8 @@ ___
|
|
|
102
110
|
|
|
103
111
|
• **custom\_price\_text**: `string`
|
|
104
112
|
|
|
113
|
+
The message indicating the price to register in the tournament
|
|
114
|
+
|
|
105
115
|
#### Inherited from
|
|
106
116
|
|
|
107
117
|
[TTournament](TTournament.md).[custom_price_text](TTournament.md#custom_price_text)
|
|
@@ -377,6 +387,8 @@ ___
|
|
|
377
387
|
|
|
378
388
|
• `Optional` **min\_scores\_win**: `number`
|
|
379
389
|
|
|
390
|
+
The minimum amount of score points that the user should get in order to be qualified for the prize
|
|
391
|
+
|
|
380
392
|
#### Inherited from
|
|
381
393
|
|
|
382
394
|
[TTournament](TTournament.md).[min_scores_win](TTournament.md#min_scores_win)
|
|
@@ -387,6 +399,8 @@ ___
|
|
|
387
399
|
|
|
388
400
|
• `Optional` **hide\_leaderboard\_min\_scores**: `boolean`
|
|
389
401
|
|
|
402
|
+
When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard
|
|
403
|
+
|
|
390
404
|
#### Inherited from
|
|
391
405
|
|
|
392
406
|
[TTournament](TTournament.md).[hide_leaderboard_min_scores](TTournament.md#hide_leaderboard_min_scores)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
interface AchRelatedGame {
|
|
2
|
-
|
|
2
|
+
/** ID of the game on Smartico side */
|
|
3
3
|
ach_game_id: number;
|
|
4
|
-
|
|
4
|
+
/** ID of the game on operator side */
|
|
5
5
|
ext_game_id: string;
|
|
6
6
|
game_public_meta: {
|
|
7
7
|
name: string;
|
|
@@ -41,6 +41,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
|
|
|
41
41
|
next_available_spin_ts: r.next_available_spin_ts,
|
|
42
42
|
steps_to_finish_game: r.saw_template_ui_definition.steps_to_finish_game,
|
|
43
43
|
custom_section_id: r.saw_template_ui_definition.custom_section_id,
|
|
44
|
+
saw_template_ui_definition: r.saw_template_ui_definition,
|
|
44
45
|
|
|
45
46
|
prizes: r.prizes.map((p) => {
|
|
46
47
|
const y: TMiniGamePrize = {
|
|
@@ -52,6 +53,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
|
|
|
52
53
|
font_size_mobile: p.saw_prize_ui_definition.font_size_mobile,
|
|
53
54
|
icon: p.saw_prize_ui_definition.icon,
|
|
54
55
|
position: p.saw_prize_ui_definition.position,
|
|
56
|
+
sectors: p.saw_prize_ui_definition.sectors,
|
|
55
57
|
acknowledge_type: SAWAcknowledgeTypeNamed(p.saw_prize_ui_definition.acknowledge_type),
|
|
56
58
|
aknowledge_message: p.saw_prize_ui_definition.aknowledge_message,
|
|
57
59
|
acknowledge_dp: p.saw_prize_ui_definition.acknowledge_dp,
|
|
@@ -71,6 +73,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
|
|
|
71
73
|
custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
|
|
72
74
|
prize_modifiers: p.saw_prize_ui_definition.prize_modifiers,
|
|
73
75
|
allow_split_decimal: p.saw_prize_ui_definition.allow_split_decimal,
|
|
76
|
+
hide_prize_from_history: p.saw_prize_ui_definition.hide_prize_from_history
|
|
74
77
|
};
|
|
75
78
|
return y;
|
|
76
79
|
}),
|
|
@@ -62,9 +62,9 @@ export interface Tournament {
|
|
|
62
62
|
|
|
63
63
|
/** List of casino games (or other types of entities) related to the tournament */
|
|
64
64
|
related_games?: AchRelatedGame[];
|
|
65
|
-
|
|
65
|
+
/** The minimum amount of score points that the user should get in order to be qualified for the prize */
|
|
66
66
|
minScoreToWin?: number;
|
|
67
|
-
|
|
67
|
+
/** When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard. */
|
|
68
68
|
hideLeaderboardsMinScores?: boolean;
|
|
69
69
|
}
|
|
70
70
|
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BuyStoreItemErrorCode } from '../Store';
|
|
2
|
-
import { MiniGamePrizeTypeName, SAWAcknowledgeTypeName, SAWBuyInTypeName, SAWGameTypeName, SAWSpinErrorCode, SAWTemplate } from '../MiniGames';
|
|
2
|
+
import { MiniGamePrizeTypeName, SAWAcknowledgeTypeName, SAWBuyInTypeName, SAWGameTypeName, SAWSpinErrorCode, SAWTemplate, SAWTemplateUI } from '../MiniGames';
|
|
3
3
|
import { TournamentRegistrationError, TournamentRegistrationStatusName, TournamentRegistrationTypeName } from '../Tournaments';
|
|
4
4
|
import { AchCategory, AchievementAvailabilityStatus } from '../Missions';
|
|
5
5
|
import { LeaderBoardPeriodType } from '../Leaderboard';
|
|
@@ -28,39 +28,41 @@ export interface TMiniGamePrize {
|
|
|
28
28
|
font_size_mobile?: number;
|
|
29
29
|
/** The URL of the icon of the prize */
|
|
30
30
|
icon?: string;
|
|
31
|
-
|
|
31
|
+
/** for scratch card defines position of prize in the list */
|
|
32
32
|
position: number;
|
|
33
|
-
|
|
33
|
+
/** List of sectors for the prize */
|
|
34
|
+
sectors: number[];
|
|
35
|
+
/** Type of acknowledge message for users */
|
|
34
36
|
acknowledge_type: SAWAcknowledgeTypeName;
|
|
35
|
-
|
|
37
|
+
/** Message that will be shown to user in modal pop-up */
|
|
36
38
|
aknowledge_message: string;
|
|
37
|
-
|
|
39
|
+
/** Deep link that will trigger some action in modal pop-up */
|
|
38
40
|
acknowledge_dp: string;
|
|
39
|
-
|
|
41
|
+
/** The name of the action button in modal pop-up */
|
|
40
42
|
acknowledge_action_title: string;
|
|
41
|
-
|
|
43
|
+
/** Deep link that will trigger some action in modal pop-up (additional) */
|
|
42
44
|
acknowledge_dp_additional?: string;
|
|
43
|
-
|
|
45
|
+
/** The name of the action button in modal pop-up (additional) */
|
|
44
46
|
acknowledge_action_title_additional?: string;
|
|
45
|
-
|
|
47
|
+
/** Message when the prize pool is empty for that specific prize */
|
|
46
48
|
out_of_stock_message?: string;
|
|
47
|
-
|
|
49
|
+
/** Number of items in stock */
|
|
48
50
|
pool?: number;
|
|
49
|
-
|
|
51
|
+
/** Initial number of items in stock */
|
|
50
52
|
pool_initial?: number;
|
|
51
|
-
|
|
53
|
+
/** Number of wins in game */
|
|
52
54
|
wins_count?: number;
|
|
53
|
-
|
|
55
|
+
/** Number of days of week, when the prize can be available */
|
|
54
56
|
weekdays?: number[];
|
|
55
|
-
|
|
57
|
+
/** Holds time from which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
|
|
56
58
|
active_from_ts?: number;
|
|
57
|
-
|
|
59
|
+
/** Holds time till which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
|
|
58
60
|
active_till_ts?: number;
|
|
59
|
-
|
|
61
|
+
/** Time zone to ensure each day aligns with your local midnight. */
|
|
60
62
|
relative_period_timezone?: number;
|
|
61
|
-
|
|
63
|
+
/** Flag indicating that the prize is surcharged (available all the time, despite pool numbers) */
|
|
62
64
|
is_surcharge?: boolean;
|
|
63
|
-
|
|
65
|
+
/** Flag indicating the state of the prize */
|
|
64
66
|
is_deleted?: boolean;
|
|
65
67
|
/** The custom data of the mini-game defined by operator in the BackOffice. Can be a JSON object, string or number */
|
|
66
68
|
custom_data?: any;
|
|
@@ -68,6 +70,8 @@ export interface TMiniGamePrize {
|
|
|
68
70
|
prize_modifiers?: PrizeModifiers[];
|
|
69
71
|
/** When enabled, you can split prize value by decimal values */
|
|
70
72
|
allow_split_decimal?: boolean;
|
|
73
|
+
/** When enabled, you can hide prize from prize history */
|
|
74
|
+
hide_prize_from_history?:boolean;
|
|
71
75
|
}
|
|
72
76
|
|
|
73
77
|
/**
|
|
@@ -147,19 +151,22 @@ export interface TMiniGameTemplate {
|
|
|
147
151
|
/** List of prizes for mini-games */
|
|
148
152
|
prizes: TMiniGamePrize[];
|
|
149
153
|
|
|
150
|
-
|
|
154
|
+
/** When enabled, the number of items in the pool and number of won items will be exposed in the Retention API and in the UI Widgets */
|
|
151
155
|
expose_game_stat_on_api?: boolean;
|
|
152
156
|
|
|
153
|
-
|
|
157
|
+
/** Time zone to ensure each day aligns with your local midnight. */
|
|
154
158
|
relative_period_timezone?: number;
|
|
155
|
-
|
|
159
|
+
/** Holds time from which template will become available, for the template that are targeted to be available from specific time (UNIX timestamp) */
|
|
156
160
|
activeFromDate?: number;
|
|
157
|
-
|
|
161
|
+
/** Holds time till which template will become available, for the templates that are targeted to be available from specific time (UNIX timestamp) */
|
|
158
162
|
activeTillDate?: number;
|
|
159
|
-
|
|
163
|
+
/** The amount of steps to complete the game and gather the prize */
|
|
160
164
|
steps_to_finish_game?: number;
|
|
161
|
-
|
|
165
|
+
/** Hold the id of the custom section */
|
|
162
166
|
custom_section_id?: number;
|
|
167
|
+
|
|
168
|
+
/** The UI definition of the mini-game */
|
|
169
|
+
saw_template_ui_definition: SAWTemplateUI;
|
|
163
170
|
}
|
|
164
171
|
|
|
165
172
|
/**
|
|
@@ -246,15 +253,15 @@ export interface TTournament {
|
|
|
246
253
|
name: string;
|
|
247
254
|
/** Description of the tournament, translated to the user language */
|
|
248
255
|
description: string;
|
|
249
|
-
|
|
256
|
+
/** 1st image URL representing the tournament */
|
|
250
257
|
image1: string;
|
|
251
|
-
|
|
258
|
+
/** 2nd image URL representing the tournament */
|
|
252
259
|
image2: string;
|
|
253
|
-
|
|
260
|
+
/** 2nd image URL representing the tournament for mobile */
|
|
254
261
|
image2_mobile: string;
|
|
255
|
-
|
|
262
|
+
/** The message indicating the prize pool of the tournament */
|
|
256
263
|
prize_pool_short: string;
|
|
257
|
-
|
|
264
|
+
/** The message indicating the price to register in the tournament */
|
|
258
265
|
custom_price_text: string;
|
|
259
266
|
|
|
260
267
|
/** The message that should be shown to the user when the user cannot register in tournament with error code TOURNAMENT_USER_DONT_MATCH_CONDITIONS */
|
|
@@ -338,9 +345,9 @@ export interface TTournament {
|
|
|
338
345
|
is_in_progress: boolean;
|
|
339
346
|
/** Indicator if tournament instance is upcoming (status PUBLISHED or REGISTER) */
|
|
340
347
|
is_upcoming: boolean;
|
|
341
|
-
|
|
348
|
+
/** The minimum amount of score points that the user should get in order to be qualified for the prize */
|
|
342
349
|
min_scores_win?: number;
|
|
343
|
-
|
|
350
|
+
/** When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard */
|
|
344
351
|
hide_leaderboard_min_scores?: boolean;
|
|
345
352
|
}
|
|
346
353
|
|
|
@@ -689,7 +696,8 @@ export interface TInboxMessageBody {
|
|
|
689
696
|
/** The action that should be performed when user clicks on the message.
|
|
690
697
|
* Can be URL or deep link, e.g. 'dp:deposit'. The most safe to execute CTA is to pass it to _smartico.dp(cta_action);
|
|
691
698
|
* The 'dp' function will handle the CTA and will execute it in the most safe way.
|
|
692
|
-
* If the message has a rich html body - the action will always be 'dp:inbox' which will open the inbox widget when triggered.
|
|
699
|
+
* If the message has a rich html body - the action will always be 'dp:inbox' which will open the inbox widget when triggered.
|
|
700
|
+
*/
|
|
693
701
|
action: string;
|
|
694
702
|
/** Rich HTML body of the message. */
|
|
695
703
|
html_body?: string;
|