@smartico/public-api 0.0.205 → 0.0.207
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/SAWPrize.d.ts +1 -0
- package/dist/WSAPI/WSAPI.d.ts +2 -2
- package/dist/WSAPI/WSAPITypes.d.ts +1 -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/docs/interfaces/TMiniGamePrize.md +9 -0
- package/package.json +1 -1
- package/src/MiniGames/SAWGetTemplatesResponse.ts +1 -0
- package/src/MiniGames/SAWPrize.ts +1 -0
- package/src/WSAPI/WSAPI.ts +2 -1
- package/src/WSAPI/WSAPITypes.ts +2 -0
|
@@ -160,6 +160,15 @@ Flag indicating that the prize is surcharged (available all the time, despite po
|
|
|
160
160
|
|
|
161
161
|
___
|
|
162
162
|
|
|
163
|
+
|
|
164
|
+
### is\_deleted
|
|
165
|
+
|
|
166
|
+
• `Optional` **is\_deleted**: `boolean`
|
|
167
|
+
|
|
168
|
+
Flag indicating the state of the prize
|
|
169
|
+
|
|
170
|
+
___
|
|
171
|
+
|
|
163
172
|
### custom\_data
|
|
164
173
|
|
|
165
174
|
• **custom\_data**: `any`
|
package/package.json
CHANGED
|
@@ -66,6 +66,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
|
|
|
66
66
|
active_till_ts: p.active_till_ts,
|
|
67
67
|
relative_period_timezone: p.relative_period_timezone,
|
|
68
68
|
is_surcharge: p.is_surcharge,
|
|
69
|
+
is_deleted: p.is_deleted,
|
|
69
70
|
custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
|
|
70
71
|
prize_modifiers: p.saw_prize_ui_definition.prize_modifiers,
|
|
71
72
|
allow_split_decimal: p.saw_prize_ui_definition.allow_split_decimal,
|
package/src/WSAPI/WSAPI.ts
CHANGED
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
} from '../Jackpots';
|
|
42
42
|
import { GetTournamentsResponse } from '../Tournaments';
|
|
43
43
|
import { GetAchievementMapResponse } from '../Missions';
|
|
44
|
+
import { GetRelatedAchTourResponse } from 'src/Missions/GetRelatedAchTourResponse';
|
|
44
45
|
|
|
45
46
|
/** @hidden */
|
|
46
47
|
const CACHE_DATA_SEC = 30;
|
|
@@ -1004,7 +1005,7 @@ export class WSAPI {
|
|
|
1004
1005
|
* });
|
|
1005
1006
|
* ```
|
|
1006
1007
|
*/
|
|
1007
|
-
public async getRelatedItemsForGame(related_game_id: string): Promise<
|
|
1008
|
+
public async getRelatedItemsForGame(related_game_id: string): Promise<GetRelatedAchTourResponse> {
|
|
1008
1009
|
|
|
1009
1010
|
const result = await this.api.getRelatedItemsForGame(null, related_game_id);
|
|
1010
1011
|
return result;
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -60,6 +60,8 @@ export interface TMiniGamePrize {
|
|
|
60
60
|
relative_period_timezone?: number;
|
|
61
61
|
/* Flag indicating that the prize is surcharged (available all the time, despite pool numbers) */
|
|
62
62
|
is_surcharge?: boolean;
|
|
63
|
+
/* Flag indicating the state of the prize */
|
|
64
|
+
is_deleted?: boolean;
|
|
63
65
|
/** The custom data of the mini-game defined by operator in the BackOffice. Can be a JSON object, string or number */
|
|
64
66
|
custom_data?: any;
|
|
65
67
|
/** Prize modifiers that will multiply by 2x, 5x or 10x the current total. This will not affect the final Prize Amount that will be awarded. */
|