@smartico/public-api 0.0.381 → 0.0.382

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.381",
3
+ "version": "0.0.382",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,6 +11,7 @@ export enum SAWGameType {
11
11
  Voyager = 10,
12
12
  Plinko = 11,
13
13
  CoinFlip = 12,
14
+ CustomMinigame = 13,
14
15
  }
15
16
 
16
17
  export enum SAWGameTypeName {
@@ -26,6 +27,7 @@ export enum SAWGameTypeName {
26
27
  Voyager = 'voyager',
27
28
  Plinko = 'plinko',
28
29
  CoinFlip = 'coin_flip',
30
+ CustomMinigame = 'custom_minigame',
29
31
  Unknown = 'unknown',
30
32
  }
31
33
 
@@ -45,6 +47,7 @@ export const SAWGameTypeNamed = (type: SAWGameType): SAWGameTypeName => {
45
47
  [SAWGameType.Voyager]: SAWGameTypeName.Voyager,
46
48
  [SAWGameType.Plinko]: SAWGameTypeName.Plinko,
47
49
  [SAWGameType.CoinFlip]: SAWGameTypeName.CoinFlip,
50
+ [SAWGameType.CustomMinigame]: SAWGameTypeName.CustomMinigame,
48
51
  }[type] || SAWGameTypeName.Unknown
49
52
  );
50
53
  };
@@ -455,6 +455,16 @@ export interface SAWTemplateUI {
455
455
  */
456
456
  game_difficulty?: SAWGameDifficultyType;
457
457
 
458
+ // ─── Custom Minigame specific ─────────────────────────────────────────────
459
+
460
+ /**
461
+ * URL of the operator-hosted custom mini-game, loaded inside an iframe by
462
+ * the widget for `SAWGameType.CustomMinigame`. The operator is trusted, so
463
+ * the iframe is rendered without a sandbox.
464
+ * Back-Office label: _"Game URL"_.
465
+ */
466
+ custom_game_url?: string;
467
+
458
468
  /**
459
469
  * Minutes for the Voyager seed window.
460
470
  * The seed window is the range of seeds that can be used to generate the map.