@smartico/public-api 0.0.410 → 0.0.411
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/README.md +1 -1
- package/dist/MiniGames/SAWPrize.d.ts +9 -0
- package/dist/MiniGames/SAWPrizeUI.d.ts +1 -0
- package/dist/MiniGames/SAWTemplate.d.ts +23 -0
- package/dist/WSAPI/WSAPIMiniGames.d.ts +7 -1
- package/dist/WSAPI/WSAPITypes.d.ts +33 -32
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +9 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/classes/WSAPIMiniGames.md +7 -1
- package/docs/api/interfaces/SAWPrize.md +18 -0
- package/docs/api/interfaces/SAWPrizeUI.md +2 -0
- package/docs/api/interfaces/SAWTemplate.md +46 -0
- package/docs/api/interfaces/TMiniGamePrize.md +28 -20
- package/docs/api/interfaces/TMiniGameTemplate.md +12 -13
- package/docs/capabilities/getMiniGames.md +30 -29
- package/docs/capabilities/miniGameWinAcknowledgeRequest.md +7 -1
- package/docs/native/PROTOCOL.md +4 -0
- package/docs/ui/minigames/UIGuide_getMiniGames.md +22 -0
- package/docs/ui/minigames/UIGuide_miniGameWinAcknowledgeRequest.md +90 -0
- package/docs/ui/minigames/UIGuide_playMiniGame.md +12 -3
- package/package.json +1 -1
- package/src/MiniGames/SAWGetTemplatesResponse.ts +1 -0
- package/src/MiniGames/SAWPrize.ts +9 -0
- package/src/MiniGames/SAWPrizeUI.ts +2 -1
- package/src/MiniGames/SAWTemplate.ts +26 -4
- package/src/SmarticoAPI.ts +5 -0
- package/src/WSAPI/WSAPIMiniGames.ts +7 -1
- package/src/WSAPI/WSAPITypes.ts +35 -34
|
@@ -546,7 +546,11 @@ next [getMiniGamesHistory](#getminigameshistory) fetch the row shows `is_claimed
|
|
|
546
546
|
true` with no prize attached. Use this for game mechanics where the
|
|
547
547
|
player can decline or forfeit the drawn prize — e.g. a
|
|
548
548
|
gamble/discard step, or a client-driven game where the user's final
|
|
549
|
-
action decides whether the pre-drawn prize is actually won
|
|
549
|
+
action decides whether the pre-drawn prize is actually won (the
|
|
550
|
+
default Smartico UI does this for the Voyager game: failing the
|
|
551
|
+
star-collection run finalises the spin as lost). When configured,
|
|
552
|
+
the prize's `aknowledge_message_lose` is the operator's result copy
|
|
553
|
+
for this case — show it instead of `aknowledge_message`. It only
|
|
550
554
|
works on a spin that is not yet finalised, so it requires playing
|
|
551
555
|
with `acknowledge: false` and calling promptly — once the automatic
|
|
552
556
|
acknowledge or the server-side fallback (below) has finalised the
|
|
@@ -576,6 +580,8 @@ call here.
|
|
|
576
580
|
- Either way the spin's `is_claimed` flips to `true` on the next
|
|
577
581
|
[getMiniGamesHistory](#getminigameshistory) fetch.
|
|
578
582
|
|
|
583
|
+
**UI guidance**: see [UI Guide — `miniGameWinAcknowledgeRequest`](../_media/UIGuide_miniGameWinAcknowledgeRequest.md).
|
|
584
|
+
|
|
579
585
|
**Visitor mode**: not supported.
|
|
580
586
|
|
|
581
587
|
#### Example
|
|
@@ -6,42 +6,56 @@
|
|
|
6
6
|
|
|
7
7
|
> **saw\_prize\_id**: `number`
|
|
8
8
|
|
|
9
|
+
ID of the prize
|
|
10
|
+
|
|
9
11
|
***
|
|
10
12
|
|
|
11
13
|
### saw\_prize\_ui\_definition
|
|
12
14
|
|
|
13
15
|
> **saw\_prize\_ui\_definition**: [`SAWPrizeUI`](SAWPrizeUI.md)
|
|
14
16
|
|
|
17
|
+
Visual definition of the prize (name, icon, win-modal buttons, per-game rendering hints)
|
|
18
|
+
|
|
15
19
|
***
|
|
16
20
|
|
|
17
21
|
### prize\_value?
|
|
18
22
|
|
|
19
23
|
> `optional` **prize\_value?**: `number`
|
|
20
24
|
|
|
25
|
+
Numeric value for 'points' / 'spin' prize types (e.g. 100 for "100 points"); not relevant for other types
|
|
26
|
+
|
|
21
27
|
***
|
|
22
28
|
|
|
23
29
|
### prize\_type\_id
|
|
24
30
|
|
|
25
31
|
> **prize\_type\_id**: [`SAWPrizeType`](../enumerations/SAWPrizeType.md)
|
|
26
32
|
|
|
33
|
+
The type of the prize — see [SAWPrizeType](../enumerations/SAWPrizeType.md)
|
|
34
|
+
|
|
27
35
|
***
|
|
28
36
|
|
|
29
37
|
### place\_from?
|
|
30
38
|
|
|
31
39
|
> `optional` **place\_from?**: `number`
|
|
32
40
|
|
|
41
|
+
Competition games (MatchX / Quiz): first finishing place this prize applies to
|
|
42
|
+
|
|
33
43
|
***
|
|
34
44
|
|
|
35
45
|
### place\_to?
|
|
36
46
|
|
|
37
47
|
> `optional` **place\_to?**: `number`
|
|
38
48
|
|
|
49
|
+
Competition games (MatchX / Quiz): last finishing place this prize applies to; equals `place_from` for a single-place prize
|
|
50
|
+
|
|
39
51
|
***
|
|
40
52
|
|
|
41
53
|
### sawUniqueWinId?
|
|
42
54
|
|
|
43
55
|
> `optional` **sawUniqueWinId?**: `string`
|
|
44
56
|
|
|
57
|
+
Client-side only — unique id of a win instance generated by the default Smartico UI to dedupe render effects; never sent by the server
|
|
58
|
+
|
|
45
59
|
***
|
|
46
60
|
|
|
47
61
|
### pool?
|
|
@@ -120,6 +134,8 @@ Always `false` in API responses — deleted prizes are excluded server-side
|
|
|
120
134
|
|
|
121
135
|
> `optional` **prize\_details\_json?**: `object`
|
|
122
136
|
|
|
137
|
+
Type-specific prize details — e.g. `gems` / `_gems_diamonds_type` for gems-and-diamonds prizes, `tickets_count` for raffle-ticket prizes
|
|
138
|
+
|
|
123
139
|
#### Index Signature
|
|
124
140
|
|
|
125
141
|
\[`key`: `string`\]: `any`
|
|
@@ -129,3 +145,5 @@ Always `false` in API responses — deleted prizes are excluded server-side
|
|
|
129
145
|
### max\_give\_period\_type\_id?
|
|
130
146
|
|
|
131
147
|
> `optional` **max\_give\_period\_type\_id?**: [`AttemptPeriodType`](../enumerations/AttemptPeriodType.md)
|
|
148
|
+
|
|
149
|
+
Period basis for the prize availability restriction — see [AttemptPeriodType](../enumerations/AttemptPeriodType.md)
|
|
@@ -6,108 +6,144 @@
|
|
|
6
6
|
|
|
7
7
|
> **saw\_template\_id**: `number`
|
|
8
8
|
|
|
9
|
+
ID of the mini-game template
|
|
10
|
+
|
|
9
11
|
***
|
|
10
12
|
|
|
11
13
|
### saw\_game\_type\_id
|
|
12
14
|
|
|
13
15
|
> **saw\_game\_type\_id**: [`SAWGameType`](../enumerations/SAWGameType.md)
|
|
14
16
|
|
|
17
|
+
The type of the game — see [SAWGameType](../enumerations/SAWGameType.md)
|
|
18
|
+
|
|
15
19
|
***
|
|
16
20
|
|
|
17
21
|
### saw\_template\_ui\_definition
|
|
18
22
|
|
|
19
23
|
> **saw\_template\_ui\_definition**: [`SAWTemplateUI`](SAWTemplateUI.md)
|
|
20
24
|
|
|
25
|
+
Full UI definition of the mini-game (name, description, skin, colors, per-game visual settings)
|
|
26
|
+
|
|
21
27
|
***
|
|
22
28
|
|
|
23
29
|
### saw\_buyin\_type\_id
|
|
24
30
|
|
|
25
31
|
> **saw\_buyin\_type\_id**: [`SAWBuyInType`](../enumerations/SAWBuyInType.md)
|
|
26
32
|
|
|
33
|
+
How the user is charged per attempt — see [SAWBuyInType](../enumerations/SAWBuyInType.md)
|
|
34
|
+
|
|
27
35
|
***
|
|
28
36
|
|
|
29
37
|
### buyin\_cost\_points?
|
|
30
38
|
|
|
31
39
|
> `optional` **buyin\_cost\_points?**: `number`
|
|
32
40
|
|
|
41
|
+
Cost per attempt in the buy-in currency (points, gems or diamonds per `saw_buyin_type_id`)
|
|
42
|
+
|
|
33
43
|
***
|
|
34
44
|
|
|
35
45
|
### visibile\_when\_can\_spin
|
|
36
46
|
|
|
37
47
|
> **visibile\_when\_can\_spin**: `boolean`
|
|
38
48
|
|
|
49
|
+
Operator hint: show the game only while the user can actually play it (has attempts / sufficient balance)
|
|
50
|
+
|
|
39
51
|
***
|
|
40
52
|
|
|
41
53
|
### spin\_count?
|
|
42
54
|
|
|
43
55
|
> `optional` **spin\_count?**: `number`
|
|
44
56
|
|
|
57
|
+
Number of spin attempts the user currently has (initial value; later changes arrive as spin-count pushes)
|
|
58
|
+
|
|
45
59
|
***
|
|
46
60
|
|
|
47
61
|
### prizes
|
|
48
62
|
|
|
49
63
|
> **prizes**: [`SAWPrize`](SAWPrize.md)[]
|
|
50
64
|
|
|
65
|
+
Prizes configured for this game — see [SAWPrize](SAWPrize.md)
|
|
66
|
+
|
|
51
67
|
***
|
|
52
68
|
|
|
53
69
|
### is\_visible
|
|
54
70
|
|
|
55
71
|
> **is\_visible**: `boolean`
|
|
56
72
|
|
|
73
|
+
Operator visibility flag for the template
|
|
74
|
+
|
|
57
75
|
***
|
|
58
76
|
|
|
59
77
|
### activeFromDate?
|
|
60
78
|
|
|
61
79
|
> `optional` **activeFromDate?**: `number`
|
|
62
80
|
|
|
81
|
+
Time from which the template becomes available (epoch ms); absent when not restricted
|
|
82
|
+
|
|
63
83
|
***
|
|
64
84
|
|
|
65
85
|
### activeTillDate?
|
|
66
86
|
|
|
67
87
|
> `optional` **activeTillDate?**: `number`
|
|
68
88
|
|
|
89
|
+
Time until which the template stays available (epoch ms); absent when not restricted
|
|
90
|
+
|
|
69
91
|
***
|
|
70
92
|
|
|
71
93
|
### jackpot\_add\_on\_attempt
|
|
72
94
|
|
|
73
95
|
> **jackpot\_add\_on\_attempt**: `number`
|
|
74
96
|
|
|
97
|
+
Amount added to the jackpot on every play (abstract contribution — nothing is deducted from the player)
|
|
98
|
+
|
|
75
99
|
***
|
|
76
100
|
|
|
77
101
|
### jackpot\_current
|
|
78
102
|
|
|
79
103
|
> **jackpot\_current**: `number`
|
|
80
104
|
|
|
105
|
+
Current jackpot accumulator value
|
|
106
|
+
|
|
81
107
|
***
|
|
82
108
|
|
|
83
109
|
### jackpot\_guaranteed
|
|
84
110
|
|
|
85
111
|
> **jackpot\_guaranteed**: `number`
|
|
86
112
|
|
|
113
|
+
Seed value of the jackpot — the accumulator starts at (and resets to) this amount after a jackpot win
|
|
114
|
+
|
|
87
115
|
***
|
|
88
116
|
|
|
89
117
|
### maxActiveSpinsAllowed
|
|
90
118
|
|
|
91
119
|
> **maxActiveSpinsAllowed**: `number`
|
|
92
120
|
|
|
121
|
+
Maximum number of unspent spin attempts a user can accumulate
|
|
122
|
+
|
|
93
123
|
***
|
|
94
124
|
|
|
95
125
|
### maxSpinsCount
|
|
96
126
|
|
|
97
127
|
> **maxSpinsCount**: `number`
|
|
98
128
|
|
|
129
|
+
Maximum number of attempts a user can make during `maxSpinsPediodMs`
|
|
130
|
+
|
|
99
131
|
***
|
|
100
132
|
|
|
101
133
|
### maxSpinsPediodMs
|
|
102
134
|
|
|
103
135
|
> **maxSpinsPediodMs**: `number`
|
|
104
136
|
|
|
137
|
+
Length of the attempt-limit period in ms (note the field-name spelling)
|
|
138
|
+
|
|
105
139
|
***
|
|
106
140
|
|
|
107
141
|
### next\_available\_spin\_ts?
|
|
108
142
|
|
|
109
143
|
> `optional` **next\_available\_spin\_ts?**: `number`
|
|
110
144
|
|
|
145
|
+
Epoch-ms time when the next attempt becomes available; populated only when the operator enabled the "show time to the next available spin" setting and max attempts per period is 1
|
|
146
|
+
|
|
111
147
|
***
|
|
112
148
|
|
|
113
149
|
### earliest\_expiration\_dt?
|
|
@@ -130,12 +166,16 @@ Latest-expiring spin's expiration time for this user (epoch ms); `null`/absent w
|
|
|
130
166
|
|
|
131
167
|
> **saw\_skin\_key**: `string`
|
|
132
168
|
|
|
169
|
+
Key of the visual skin the operator selected for the game
|
|
170
|
+
|
|
133
171
|
***
|
|
134
172
|
|
|
135
173
|
### saw\_skin\_ui\_definition
|
|
136
174
|
|
|
137
175
|
> **saw\_skin\_ui\_definition**: `object`
|
|
138
176
|
|
|
177
|
+
Skin assets of the game: `skin_folder` is the base URL for the skin's images, `skin_css` custom CSS overrides, plus optional popup/animation tweaks
|
|
178
|
+
|
|
139
179
|
#### skin\_folder
|
|
140
180
|
|
|
141
181
|
> **skin\_folder**: `string`
|
|
@@ -166,14 +206,20 @@ Operator template setting. When enabled, the per-prize stock statistics (`pool`,
|
|
|
166
206
|
|
|
167
207
|
> `optional` **requires\_prize\_claim?**: `boolean`
|
|
168
208
|
|
|
209
|
+
Prize Drop only: when true, the pushed prize requires an explicit claim by the user before it is credited
|
|
210
|
+
|
|
169
211
|
***
|
|
170
212
|
|
|
171
213
|
### relative\_period\_timezone?
|
|
172
214
|
|
|
173
215
|
> `optional` **relative\_period\_timezone?**: `number`
|
|
174
216
|
|
|
217
|
+
Timezone offset in minutes used to evaluate the template's period-based rules (UTC minus local, as in JS `Date.getTimezoneOffset()`)
|
|
218
|
+
|
|
175
219
|
***
|
|
176
220
|
|
|
177
221
|
### show\_prize\_history?
|
|
178
222
|
|
|
179
223
|
> `optional` **show\_prize\_history?**: `boolean`
|
|
224
|
+
|
|
225
|
+
Operator setting: show a prize-history entry point (icon / button) on this game's view
|
|
@@ -16,7 +16,7 @@ ID of the prize
|
|
|
16
16
|
|
|
17
17
|
> **name**: `string`
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Display name of the prize, pre-translated; any jackpot placeholder in it arrives resolved to the live jackpot value
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ The visual name of the prize
|
|
|
24
24
|
|
|
25
25
|
> **prize\_type**: [`MiniGamePrizeTypeName`](../enumerations/MiniGamePrizeTypeName.md)
|
|
26
26
|
|
|
27
|
-
The type of the prize
|
|
27
|
+
The type of the prize — see [MiniGamePrizeTypeName](../enumerations/MiniGamePrizeTypeName.md) ('no-prize', 'points', 'gems-and-diamonds', 'spin', 'bonus', 'jackpot', 'raffle-ticket', 'mission', 'change-level', 'manual')
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
@@ -32,7 +32,7 @@ The type of the prize, no-prize, points, bonus, manual, spin, jackpot
|
|
|
32
32
|
|
|
33
33
|
> `optional` **prize\_value?**: `number`
|
|
34
34
|
|
|
35
|
-
Numeric value of the prize in case it's 'points' or 'spin' type. For other types of prizes this value is not relevant.
|
|
35
|
+
Numeric value of the prize in case it's 'points' or 'spin' type. For other types of prizes this value is not relevant.
|
|
36
36
|
For example for prize '100 points' the prize_value will be 100. For '100 free spins' the prize_value will be 100.
|
|
37
37
|
|
|
38
38
|
***
|
|
@@ -41,7 +41,7 @@ For example for prize '100 points' the prize_value will be 100. For '100 free s
|
|
|
41
41
|
|
|
42
42
|
> `optional` **font\_size?**: `number`
|
|
43
43
|
|
|
44
|
-
Custom font size for the prize (desktop
|
|
44
|
+
Custom font size in px for rendering the prize name on the game surface (e.g. a wheel sector), desktop
|
|
45
45
|
|
|
46
46
|
***
|
|
47
47
|
|
|
@@ -49,7 +49,7 @@ Custom font size for the prize (desktop)
|
|
|
49
49
|
|
|
50
50
|
> `optional` **font\_size\_mobile?**: `number`
|
|
51
51
|
|
|
52
|
-
Custom font size for the prize
|
|
52
|
+
Custom font size in px for the prize name, mobile; falls back to `font_size` when absent
|
|
53
53
|
|
|
54
54
|
***
|
|
55
55
|
|
|
@@ -65,7 +65,7 @@ The URL of the icon of the prize, aspect ratio 1:1
|
|
|
65
65
|
|
|
66
66
|
> **position**: `number`
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
For Scratch Card games — relative order of the prize in the scratch grid (lower first). May be absent for other game types
|
|
69
69
|
|
|
70
70
|
***
|
|
71
71
|
|
|
@@ -73,7 +73,7 @@ for scratch card defines position of prize in the list
|
|
|
73
73
|
|
|
74
74
|
> **sectors**: `number`[]
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
For Spin-a-Wheel games — wheel sector indices this prize occupies. Absent for non-wheel games
|
|
77
77
|
|
|
78
78
|
***
|
|
79
79
|
|
|
@@ -81,7 +81,7 @@ List of sectors for the prize
|
|
|
81
81
|
|
|
82
82
|
> **acknowledge\_type**: [`SAWAcknowledgeTypeName`](../enumerations/SAWAcknowledgeTypeName.md)
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
Which win modal the prize uses — see [SAWAcknowledgeTypeName](../enumerations/SAWAcknowledgeTypeName.md) (Silent / QuickMessage / FullMessage / ExplicitAcknowledge)
|
|
85
85
|
|
|
86
86
|
***
|
|
87
87
|
|
|
@@ -93,11 +93,19 @@ Message that will be shown to user in modal pop-up
|
|
|
93
93
|
|
|
94
94
|
***
|
|
95
95
|
|
|
96
|
+
### aknowledge\_message\_lose?
|
|
97
|
+
|
|
98
|
+
> `optional` **aknowledge\_message\_lose?**: `string`
|
|
99
|
+
|
|
100
|
+
Message shown instead of `aknowledge_message` when the spin is finalised as lost (`lose: true` acknowledge flows — games with a client-decided outcome, e.g. Voyager). Absent unless configured
|
|
101
|
+
|
|
102
|
+
***
|
|
103
|
+
|
|
96
104
|
### acknowledge\_dp
|
|
97
105
|
|
|
98
106
|
> **acknowledge\_dp**: `string`
|
|
99
107
|
|
|
100
|
-
Deep link
|
|
108
|
+
Deep link executed when the user taps the main action button in the win modal (run it via `_smartico.dp()`)
|
|
101
109
|
|
|
102
110
|
***
|
|
103
111
|
|
|
@@ -105,7 +113,7 @@ Deep link that will trigger some action in modal pop-up
|
|
|
105
113
|
|
|
106
114
|
> **acknowledge\_action\_title**: `string`
|
|
107
115
|
|
|
108
|
-
|
|
116
|
+
Label of the main action button in the win modal
|
|
109
117
|
|
|
110
118
|
***
|
|
111
119
|
|
|
@@ -113,7 +121,7 @@ The name of the action button in modal pop-up
|
|
|
113
121
|
|
|
114
122
|
> `optional` **acknowledge\_dp\_additional?**: `string`
|
|
115
123
|
|
|
116
|
-
Deep link
|
|
124
|
+
Deep link of the additional action button in the win modal
|
|
117
125
|
|
|
118
126
|
***
|
|
119
127
|
|
|
@@ -121,7 +129,7 @@ Deep link that will trigger some action in modal pop-up (additional)
|
|
|
121
129
|
|
|
122
130
|
> `optional` **acknowledge\_action\_title\_additional?**: `string`
|
|
123
131
|
|
|
124
|
-
|
|
132
|
+
Label of the additional action button in the win modal
|
|
125
133
|
|
|
126
134
|
***
|
|
127
135
|
|
|
@@ -129,7 +137,7 @@ The name of the action button in modal pop-up (additional)
|
|
|
129
137
|
|
|
130
138
|
> `optional` **second\_btn?**: `string`
|
|
131
139
|
|
|
132
|
-
Deep link
|
|
140
|
+
Deep link of the secondary button in the win modal
|
|
133
141
|
|
|
134
142
|
***
|
|
135
143
|
|
|
@@ -137,7 +145,7 @@ Deep link that will trigger some action in modal pop-up (second button)
|
|
|
137
145
|
|
|
138
146
|
> `optional` **second\_btn\_action\_title?**: `string`
|
|
139
147
|
|
|
140
|
-
|
|
148
|
+
Label of the secondary button in the win modal
|
|
141
149
|
|
|
142
150
|
***
|
|
143
151
|
|
|
@@ -225,7 +233,7 @@ Always `false` in API responses — deleted prizes are excluded server-side
|
|
|
225
233
|
|
|
226
234
|
> `optional` **custom\_data?**: `any`
|
|
227
235
|
|
|
228
|
-
The custom data of the
|
|
236
|
+
The custom data of the prize defined by the operator. Can be a JSON object, string or number
|
|
229
237
|
|
|
230
238
|
***
|
|
231
239
|
|
|
@@ -233,7 +241,7 @@ The custom data of the mini-game defined by operator in the BackOffice. Can be a
|
|
|
233
241
|
|
|
234
242
|
> `optional` **prize\_modifiers?**: [`PrizeModifiers`](../enumerations/PrizeModifiers.md)[]
|
|
235
243
|
|
|
236
|
-
|
|
244
|
+
Step-modifier tiles for step games (Treasure Hunt / Voyager) — see [PrizeModifiers](../enumerations/PrizeModifiers.md) (2x / 5x / 10x, /2 / /5 / /10, 0, reset) applied to the running total revealed during the game. Presentation only — the awarded amount is still `prize_value`
|
|
237
245
|
|
|
238
246
|
***
|
|
239
247
|
|
|
@@ -241,7 +249,7 @@ Prize modifiers that will multiply by 2x, 5x or 10x the current total. This will
|
|
|
241
249
|
|
|
242
250
|
> `optional` **allow\_split\_decimal?**: `boolean`
|
|
243
251
|
|
|
244
|
-
|
|
252
|
+
Step games (Treasure Hunt / Voyager): when true, the per-step revealed amounts of the prize value may be fractional; when false the split uses whole numbers
|
|
245
253
|
|
|
246
254
|
***
|
|
247
255
|
|
|
@@ -249,7 +257,7 @@ When enabled, you can split prize value by decimal values
|
|
|
249
257
|
|
|
250
258
|
> `optional` **hide\_prize\_from\_history?**: `boolean`
|
|
251
259
|
|
|
252
|
-
|
|
260
|
+
Operator hint to hide this prize when rendering prize-history UIs. Informational only — API responses are not filtered by it
|
|
253
261
|
|
|
254
262
|
***
|
|
255
263
|
|
|
@@ -257,7 +265,7 @@ When enabled, you can hide prize from prize history
|
|
|
257
265
|
|
|
258
266
|
> `optional` **requirements\_to\_get\_prize?**: `string`
|
|
259
267
|
|
|
260
|
-
|
|
268
|
+
Operator text describing what the user must do to be eligible for this prize (lootbox games); shown when the prize is not yet available to the user
|
|
261
269
|
|
|
262
270
|
***
|
|
263
271
|
|
|
@@ -265,4 +273,4 @@ Requirements to claim the prize (lootbox specific)
|
|
|
265
273
|
|
|
266
274
|
> `optional` **max\_give\_period\_type\_id?**: [`AttemptPeriodType`](../enumerations/AttemptPeriodType.md)
|
|
267
275
|
|
|
268
|
-
|
|
276
|
+
Period basis for the prize availability restriction — see [AttemptPeriodType](../enumerations/AttemptPeriodType.md). `CalendarDaysUserTimeZone` evaluates `weekdays` / the active window in the user's timezone; the other types use `relative_period_timezone`
|
|
@@ -96,10 +96,9 @@ in case of charging type 'Spin attempts', shows the current number of spin attem
|
|
|
96
96
|
|
|
97
97
|
> **next\_available\_spin\_ts**: `number`
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
Important: this field will not be populated if “Max number of attempts a user can do” is set to value different from 1
|
|
99
|
+
If the game limits the number of attempts per period of time, the epoch-ms time (UTC) when the next attempt becomes available.
|
|
100
|
+
Populated only when the operator enabled the "show time to the next available spin" template setting, and only when the
|
|
101
|
+
template's maximum attempts per period is 1.
|
|
103
102
|
|
|
104
103
|
***
|
|
105
104
|
|
|
@@ -144,7 +143,7 @@ The message that should be shown to the user when he cannot play the game becaus
|
|
|
144
143
|
|
|
145
144
|
> **jackpot\_current**: `number`
|
|
146
145
|
|
|
147
|
-
Current
|
|
146
|
+
Current jackpot amount, if jackpot is enabled.
|
|
148
147
|
|
|
149
148
|
***
|
|
150
149
|
|
|
@@ -192,7 +191,7 @@ The custom data of the mini-game defined by operator in the BackOffice. Can be a
|
|
|
192
191
|
|
|
193
192
|
> **prizes**: [`TMiniGamePrize`](TMiniGamePrize.md)[]
|
|
194
193
|
|
|
195
|
-
|
|
194
|
+
Prizes configured for this game — see [TMiniGamePrize](TMiniGamePrize.md)
|
|
196
195
|
|
|
197
196
|
***
|
|
198
197
|
|
|
@@ -208,7 +207,7 @@ Operator template setting. When enabled, the per-prize stock statistics (`pool`,
|
|
|
208
207
|
|
|
209
208
|
> `optional` **relative\_period\_timezone?**: `number`
|
|
210
209
|
|
|
211
|
-
|
|
210
|
+
Timezone offset in minutes used to evaluate the template's period-based rules (UTC minus local, as in JS `Date.getTimezoneOffset()` — e.g. `-180` for UTC+3)
|
|
212
211
|
|
|
213
212
|
***
|
|
214
213
|
|
|
@@ -216,7 +215,7 @@ Time zone to ensure each day aligns with your local midnight.
|
|
|
216
215
|
|
|
217
216
|
> `optional` **activeFromDate?**: `number`
|
|
218
217
|
|
|
219
|
-
|
|
218
|
+
Time from which the template becomes available (epoch ms); absent when not restricted
|
|
220
219
|
|
|
221
220
|
***
|
|
222
221
|
|
|
@@ -224,7 +223,7 @@ Holds time from which template will become available, for the template that are
|
|
|
224
223
|
|
|
225
224
|
> `optional` **activeTillDate?**: `number`
|
|
226
225
|
|
|
227
|
-
|
|
226
|
+
Time until which the template stays available (epoch ms); absent when not restricted
|
|
228
227
|
|
|
229
228
|
***
|
|
230
229
|
|
|
@@ -232,7 +231,7 @@ Holds time till which template will become available, for the templates that are
|
|
|
232
231
|
|
|
233
232
|
> `optional` **steps\_to\_finish\_game?**: `number`
|
|
234
233
|
|
|
235
|
-
|
|
234
|
+
Number of steps to complete the game and collect the prize (step games — Voyager / Treasure Hunt)
|
|
236
235
|
|
|
237
236
|
***
|
|
238
237
|
|
|
@@ -248,7 +247,7 @@ ID of the operator-defined custom section (widget menu grouping) the mini-game i
|
|
|
248
247
|
|
|
249
248
|
> **saw\_template\_ui\_definition**: [`SAWTemplateUI`](SAWTemplateUI.md)
|
|
250
249
|
|
|
251
|
-
|
|
250
|
+
Full raw UI definition of the mini-game (skin, colors, per-game visual settings) — see [SAWTemplateUI](SAWTemplateUI.md). The commonly needed values are already lifted onto this template object
|
|
252
251
|
|
|
253
252
|
***
|
|
254
253
|
|
|
@@ -256,7 +255,7 @@ The UI definition of the mini-game
|
|
|
256
255
|
|
|
257
256
|
> `optional` **game\_layout?**: [`SAWGameLayoutName`](../enumerations/SAWGameLayoutName.md)
|
|
258
257
|
|
|
259
|
-
|
|
258
|
+
Grid layout of the game. Populated only for Lootbox game types (LootboxWeekdays / LootboxCalendarDays)
|
|
260
259
|
|
|
261
260
|
***
|
|
262
261
|
|
|
@@ -264,7 +263,7 @@ The layout of the game
|
|
|
264
263
|
|
|
265
264
|
> `optional` **show\_prize\_history?**: `boolean`
|
|
266
265
|
|
|
267
|
-
|
|
266
|
+
Operator setting: show a prize-history entry point (icon / button) on this game's view
|
|
268
267
|
|
|
269
268
|
***
|
|
270
269
|
|