@smartico/public-api 0.0.422 → 0.0.425

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.
@@ -374,6 +374,22 @@ export interface SAWTemplateUI {
374
374
  * Back-Office label: _"Game URL"_.
375
375
  */
376
376
  custom_game_url?: string;
377
+ /**
378
+ * Whether this template is played as a custom mini-game.
379
+ *
380
+ * A template of any regular game type (wheel, scratch card, treasure hunt,
381
+ * …) can be switched over to a custom game while keeping its own type,
382
+ * prizes and buy-in settings — only the way it is played changes: the
383
+ * widget loads `custom_game_url` in an iframe instead of rendering the
384
+ * built-in game. `saw_game_type_id` still reports the original type, so
385
+ * treat this flag — not the type — as the answer to "is this played as a
386
+ * custom game", together with `SAWGameType.CustomMinigame`, which is always
387
+ * played that way.
388
+ *
389
+ * When `false` or omitted, the template is played as its own game type.
390
+ * Back-Office label: _"Use Custom Game"_.
391
+ */
392
+ use_custom?: boolean;
377
393
  /**
378
394
  * Minutes for the Voyager seed window.
379
395
  * The seed window is the range of seeds that can be used to generate the map.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.422",
3
+ "version": "0.0.425",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -469,6 +469,23 @@ export interface SAWTemplateUI {
469
469
  */
470
470
  custom_game_url?: string;
471
471
 
472
+ /**
473
+ * Whether this template is played as a custom mini-game.
474
+ *
475
+ * A template of any regular game type (wheel, scratch card, treasure hunt,
476
+ * …) can be switched over to a custom game while keeping its own type,
477
+ * prizes and buy-in settings — only the way it is played changes: the
478
+ * widget loads `custom_game_url` in an iframe instead of rendering the
479
+ * built-in game. `saw_game_type_id` still reports the original type, so
480
+ * treat this flag — not the type — as the answer to "is this played as a
481
+ * custom game", together with `SAWGameType.CustomMinigame`, which is always
482
+ * played that way.
483
+ *
484
+ * When `false` or omitted, the template is played as its own game type.
485
+ * Back-Office label: _"Use Custom Game"_.
486
+ */
487
+ use_custom?: boolean;
488
+
472
489
  /**
473
490
  * Minutes for the Voyager seed window.
474
491
  * The seed window is the range of seeds that can be used to generate the map.