@smartico/public-api 0.0.123 → 0.0.124

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.123",
3
+ "version": "0.0.124",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -114,7 +114,7 @@ export enum ClassId {
114
114
  JP_OPTOUT_REQUEST = 806,
115
115
  JP_OPTOUT_RESPONSE = 807,
116
116
 
117
- // JP_WIN_PUSH = 808,
117
+ JP_WIN_PUSH = 808,
118
118
 
119
119
  REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ = 1003,
120
120
  REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP = 2003,
@@ -1,5 +1,5 @@
1
1
  import { ProtocolMessage } from "../Base/ProtocolMessage";
2
2
 
3
3
  export interface GetJackpotsPotsRequest extends ProtocolMessage {
4
- pot_ids: number[];
4
+ jp_template_ids: number[];
5
5
  }
@@ -3,6 +3,6 @@ import { JackpotPot } from "./JackpotPot";
3
3
 
4
4
  export interface GetJackpotsPotsResponse extends ProtocolResponse {
5
5
 
6
- pots: JackpotPot[];
6
+ items: JackpotPot[];
7
7
  }
8
8
 
@@ -3,5 +3,5 @@ import { ProtocolMessage } from "../Base/ProtocolMessage";
3
3
 
4
4
  export interface GetJackpotsRequest extends ProtocolMessage {
5
5
 
6
- related_game_id?: string[];
6
+ related_game_id?: string;
7
7
  }
@@ -0,0 +1,10 @@
1
+
2
+ interface JackPotWinner {
3
+ is_me: boolean;
4
+ public_username: string; // masked for all except "is_me"
5
+ winning_amount_jp_currency: number;
6
+ winning_amount_wallet_currency: number;
7
+ winning_position: number
8
+ }
9
+
10
+ export { JackPotWinner }
@@ -0,0 +1,8 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ import { JackPotWinner } from "./JackPotWinner";
3
+ import { JackpotDetails } from "./JackpotDetails";
4
+
5
+ export interface JackpotWinPush extends ProtocolMessage {
6
+ jackpot: JackpotDetails;
7
+ winners: JackPotWinner[];
8
+ }
@@ -40,4 +40,14 @@ export interface SAWTemplateUI {
40
40
  only_in_custom_section?: boolean;
41
41
 
42
42
  custom_data: any;
43
+
44
+
45
+ // prize drop specific
46
+ placeholder_1?: string;
47
+ placeholder_2?: string;
48
+ prize_drop_template?: {
49
+ id: string;
50
+ content: string;
51
+ }
52
+
43
53
  }
@@ -16,4 +16,5 @@ export * from "./SAWTemplateUI";
16
16
  export * from "./SAWWinSoundType";
17
17
  export * from "./SAWDoAknowledgeRequest";
18
18
  export * from "./SAWDoAknowledgeResponse";
19
- export * from "./SAWSpinsCountPush";
19
+ export * from "./SAWSpinsCountPush";
20
+ export * from "./SAWPrizeDropWinPush";
Binary file