@smartico/public-api 0.0.127 → 0.0.129

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.127",
3
+ "version": "0.0.129",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -4,6 +4,6 @@ import { JackpotDetails } from "./JackpotDetails";
4
4
 
5
5
  export interface GetJackpotsResponse extends ProtocolResponse {
6
6
 
7
- jackpots: JackpotDetails[];
7
+ items: JackpotDetails[];
8
8
  }
9
9
 
@@ -289,11 +289,11 @@ class SmarticoAPI {
289
289
  const message = this.buildMessage<GetJackpotsRequest, GetJackpotsResponse>(user_ext_id, ClassId.JP_GET_JACKPOTS_REQUEST, filter);
290
290
  const response = await this.send<GetJackpotsResponse>(message, ClassId.JP_GET_JACKPOTS_RESPONSE);
291
291
 
292
- return response?.jackpots || [];
292
+ return response?.items || [];
293
293
  }
294
294
 
295
295
  public async potGet(user_ext_id: string, filter: { jp_template_ids: number[] }): Promise<JackpotPot[]> {
296
- const message = this.buildMessage<GetJackpotsPotsRequest, GetJackpotsPotsResponse>(user_ext_id, ClassId.JP_GET_JACKPOTS_REQUEST, filter);
296
+ const message = this.buildMessage<GetJackpotsPotsRequest, GetJackpotsPotsResponse>(user_ext_id, ClassId.JP_GET_LATEST_POTS_REQUEST, filter);
297
297
  const response = await this.send<GetJackpotsPotsResponse>(message, ClassId.JP_GET_LATEST_POTS_RESPONSE);
298
298
 
299
299
  return response?.items || [];