@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.
- package/dist/MiniGames/SAWPrizeType.d.ts +5 -1
- package/dist/MiniGames/SAWPrizeUI.d.ts +1 -0
- package/dist/WSAPI/WSAPITypes.d.ts +2 -0
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +9 -2
- package/dist/index.modern.mjs.map +1 -1
- package/docs/enums/MiniGamePrizeTypeName.md +12 -0
- package/docs/interfaces/TMiniGamePrize.md +9 -1
- package/package.json +1 -1
- package/src/MiniGames/SAWGetTemplatesResponse.ts +1 -0
- package/src/MiniGames/SAWPrizeType.ts +6 -0
- package/src/MiniGames/SAWPrizeUI.ts +1 -0
- package/src/WSAPI/WSAPITypes.ts +2 -0
|
@@ -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
|
@@ -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
|
};
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -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
|
/**
|