@smartico/public-api 0.0.189 → 0.0.191

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.
@@ -38,6 +38,18 @@ ___
38
38
 
39
39
  ___
40
40
 
41
+ ### CHANGE_LEVEL
42
+
43
+ • **CHANGE_LEVEL** = ``"change-level"``
44
+
45
+ ___
46
+
47
+ ### MISSION
48
+
49
+ • **MISSION** = ``"mission"``
50
+
51
+ ___
52
+
41
53
  ### UNKNOWN
42
54
 
43
55
  • **UNKNOWN** = ``"unknown"``
@@ -156,4 +156,12 @@ ___
156
156
 
157
157
  • `Optional` **is\_surcharge**: `boolean`
158
158
 
159
- Flag indicating that the prize is surcharged (available all the time, despite pool numbers)
159
+ Flag indicating that the prize is surcharged (available all the time, despite pool numbers)
160
+
161
+ ___
162
+
163
+ ### custom\_data
164
+
165
+ • **custom\_data**: `any`
166
+
167
+ The custom data of the mini-game defined by operator in the BackOffice. Can be a JSON object, string or number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.189",
3
+ "version": "0.0.191",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -63,6 +63,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
63
63
  active_till_ts: p.active_till_ts,
64
64
  relative_period_timezone: p.relative_period_timezone,
65
65
  is_surcharge: p.is_surcharge,
66
+ custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
66
67
  };
67
68
  return y;
68
69
  }),
@@ -6,6 +6,8 @@ export enum SAWPrizeType {
6
6
  MANUAL = 4,
7
7
  SPIN = 5,
8
8
  JACKPOT = 6,
9
+ CHANGE_LEVEL = 7,
10
+ MISSION = 8,
9
11
  }
10
12
 
11
13
  export enum MiniGamePrizeTypeName {
@@ -15,6 +17,8 @@ export enum MiniGamePrizeTypeName {
15
17
  MANUAL = 'manual',
16
18
  SPIN = 'spin',
17
19
  JACKPOT = 'jackpot',
20
+ CHANGE_LEVEL = 'change-level',
21
+ MISSION = 'mission',
18
22
  UNKNOWN = 'unknown',
19
23
  }
20
24
 
@@ -28,6 +32,8 @@ export const MiniGamePrizeTypeNamed = (type: SAWPrizeType): MiniGamePrizeTypeNam
28
32
  [SAWPrizeType.MANUAL]: MiniGamePrizeTypeName.MANUAL,
29
33
  [SAWPrizeType.SPIN]: MiniGamePrizeTypeName.SPIN,
30
34
  [SAWPrizeType.JACKPOT]: MiniGamePrizeTypeName.JACKPOT,
35
+ [SAWPrizeType.CHANGE_LEVEL]: MiniGamePrizeTypeName.CHANGE_LEVEL,
36
+ [SAWPrizeType.MISSION]: MiniGamePrizeTypeName.MISSION,
31
37
  }[type] || MiniGamePrizeTypeName.UNKNOWN
32
38
  );
33
39
  };
@@ -19,4 +19,5 @@ export interface SAWPrizeUI {
19
19
  acknowledge_action_title?: string;
20
20
  custom_win_sound?: string;
21
21
  out_of_stock_message?: string;
22
+ custom_data?: any;
22
23
  }
@@ -59,6 +59,8 @@ export interface TMiniGamePrize {
59
59
  relative_period_timezone?: number;
60
60
  /* Flag indicating that the prize is surcharged (available all the time, despite pool numbers) */
61
61
  is_surcharge?: boolean;
62
+ /** The custom data of the mini-game defined by operator in the BackOffice. Can be a JSON object, string or number */
63
+ custom_data: any;
62
64
  }
63
65
 
64
66
  /**