@smartico/public-api 0.0.207 → 0.0.209
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/MiniGames/SAWPrizeUI.d.ts +1 -1
- package/dist/WSAPI/WSAPITypes.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -0
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/MiniGames/SAWGetTemplatesResponse.ts +1 -0
- package/src/MiniGames/SAWPrizeUI.ts +1 -1
- package/src/WSAPI/WSAPITypes.ts +3 -1
package/package.json
CHANGED
|
@@ -40,6 +40,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
|
|
|
40
40
|
activeTillDate: r.activeTillDate,
|
|
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
|
+
custom_section_id: r.saw_template_ui_definition.custom_section_id,
|
|
43
44
|
|
|
44
45
|
prizes: r.prizes.map((p) => {
|
|
45
46
|
const y: TMiniGamePrize = {
|
|
@@ -21,6 +21,6 @@ export interface SAWPrizeUI {
|
|
|
21
21
|
custom_win_sound?: string;
|
|
22
22
|
out_of_stock_message?: string;
|
|
23
23
|
custom_data?: any;
|
|
24
|
-
prize_modifiers?: PrizeModifiers; // treasure hunt specific
|
|
24
|
+
prize_modifiers?: PrizeModifiers[]; // treasure hunt specific
|
|
25
25
|
allow_split_decimal?: boolean; // treasure hunt specific
|
|
26
26
|
}
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -65,7 +65,7 @@ export interface TMiniGamePrize {
|
|
|
65
65
|
/** The custom data of the mini-game defined by operator in the BackOffice. Can be a JSON object, string or number */
|
|
66
66
|
custom_data?: any;
|
|
67
67
|
/** 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. */
|
|
68
|
-
prize_modifiers?: PrizeModifiers;
|
|
68
|
+
prize_modifiers?: PrizeModifiers[];
|
|
69
69
|
/** When enabled, you can split prize value by decimal values */
|
|
70
70
|
allow_split_decimal?: boolean;
|
|
71
71
|
}
|
|
@@ -158,6 +158,8 @@ export interface TMiniGameTemplate {
|
|
|
158
158
|
activeTillDate?: number;
|
|
159
159
|
/* The amount of steps to complete the game and gather the prize */
|
|
160
160
|
steps_to_finish_game?: number;
|
|
161
|
+
/* Hold the id of the custom section */
|
|
162
|
+
custom_section_id?: number;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
165
|
/**
|