@smartico/public-api 0.0.421 → 0.0.422
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 +14 -0
- package/dist/WSAPI/WSAPITypes.d.ts +2 -0
- 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/WSAPI/WSAPITypes.ts +2 -0
package/package.json
CHANGED
|
@@ -47,6 +47,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
|
|
|
47
47
|
earliest_expiration_dt: r.earliest_expiration_dt,
|
|
48
48
|
latest_expiration_dt: r.latest_expiration_dt,
|
|
49
49
|
steps_to_finish_game: r.saw_template_ui_definition.steps_to_finish_game,
|
|
50
|
+
min_steps_to_finish_game: r.saw_template_ui_definition.min_steps_to_finish_game,
|
|
50
51
|
custom_section_id: r.saw_template_ui_definition.custom_section_id,
|
|
51
52
|
saw_template_ui_definition: r.saw_template_ui_definition,
|
|
52
53
|
...(r.saw_game_type_id === SAWGameType.LootboxCalendarDays || r.saw_game_type_id === SAWGameType.LootboxWeekdays
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -222,6 +222,8 @@ export interface TMiniGameTemplate {
|
|
|
222
222
|
activeTillDate?: number;
|
|
223
223
|
/** Number of steps to complete the game and collect the prize (step games — Voyager / Treasure Hunt) */
|
|
224
224
|
steps_to_finish_game?: number;
|
|
225
|
+
/** Minimum number of path steps / collectible prizes a session must include before the game can finish (step games — Voyager / Treasure Hunt). `>= 1` and `<= steps_to_finish_game`; when omitted, no minimum is enforced */
|
|
226
|
+
min_steps_to_finish_game?: number;
|
|
225
227
|
/** ID of the operator-defined custom section (widget menu grouping) the mini-game is assigned to */
|
|
226
228
|
custom_section_id?: number;
|
|
227
229
|
|