@smartico/public-api 0.0.151 → 0.0.153

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.
@@ -66,6 +66,8 @@ export declare enum ClassId {
66
66
  ACHIEVEMENT_CLAIM_PRIZE_RESPONSE = 540,
67
67
  ACH_SHOP_ITEM_HISTORY_REQUEST = 541,
68
68
  ACH_SHOP_ITEM_HISTORY_RESPONSE = 542,
69
+ GET_RELATED_ACH_N_TOURNAMENTS_REQUEST = 543,
70
+ GET_RELATED_ACH_N_TOURNAMENTS_RESPONSE = 544,
69
71
  GET_BONUSES_REQUEST = 600,
70
72
  GET_BONUSES_RESPONSE = 601,
71
73
  CLAIM_BONUS_REQUEST = 602,
@@ -81,6 +83,7 @@ export declare enum ClassId {
81
83
  SAW_PRIZE_DROP_WIN_PUSH = 708,
82
84
  SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST = 709,
83
85
  SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE = 710,
86
+ SAW_AKNOWLEDGE_SPIN_PUSH = 711,
84
87
  JP_GET_JACKPOTS_REQUEST = 800,
85
88
  JP_GET_JACKPOTS_RESPONSE = 801,
86
89
  JP_GET_LATEST_POTS_REQUEST = 802,
@@ -0,0 +1,5 @@
1
+ import { ProtocolMessage } from "src/Base/ProtocolMessage";
2
+ export interface SAWAcknowledgeSpinPushRequest extends ProtocolMessage {
3
+ pending_message_id: number;
4
+ saw_template_id: number;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { ProtocolMessage } from "src/Base/ProtocolMessage";
2
+ export interface SAWEventSawPush extends ProtocolMessage {
3
+ pending_message_id: number;
4
+ saw_template_id: number;
5
+ }
@@ -1,3 +1,4 @@
1
1
  export interface AchievementTaskPublicMeta {
2
2
  name?: string;
3
+ display_progress_as_count?: boolean;
3
4
  }
@@ -0,0 +1,4 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface GetRelatedAchTourRequest extends ProtocolMessage {
3
+ related_game_id?: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ import { ProtocolResponse } from "../Base/ProtocolResponse";
2
+ import { Tournament } from "../Tournaments";
3
+ import { UserAchievement } from "./UserAchievement";
4
+ export interface GetAchievementMapResponse extends ProtocolResponse {
5
+ achievements: UserAchievement[];
6
+ tournaments?: Tournament[];
7
+ }
@@ -1,3 +1,5 @@
1
1
  import { ProtocolResponse } from "../Base/ProtocolResponse";
2
+ import { UserAchievement } from "./UserAchievement";
2
3
  export interface ReloadAchievementsEvent extends ProtocolResponse {
4
+ achievements: UserAchievement[];
3
5
  }
package/dist/index.js CHANGED
@@ -82,6 +82,8 @@ exports.ClassId = void 0;
82
82
  ClassId[ClassId["ACHIEVEMENT_CLAIM_PRIZE_RESPONSE"] = 540] = "ACHIEVEMENT_CLAIM_PRIZE_RESPONSE";
83
83
  ClassId[ClassId["ACH_SHOP_ITEM_HISTORY_REQUEST"] = 541] = "ACH_SHOP_ITEM_HISTORY_REQUEST";
84
84
  ClassId[ClassId["ACH_SHOP_ITEM_HISTORY_RESPONSE"] = 542] = "ACH_SHOP_ITEM_HISTORY_RESPONSE";
85
+ ClassId[ClassId["GET_RELATED_ACH_N_TOURNAMENTS_REQUEST"] = 543] = "GET_RELATED_ACH_N_TOURNAMENTS_REQUEST";
86
+ ClassId[ClassId["GET_RELATED_ACH_N_TOURNAMENTS_RESPONSE"] = 544] = "GET_RELATED_ACH_N_TOURNAMENTS_RESPONSE";
85
87
  /*
86
88
  !Important, if adding new messages that are 'acting' on behalf of the client,
87
89
  you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
@@ -101,6 +103,7 @@ exports.ClassId = void 0;
101
103
  ClassId[ClassId["SAW_PRIZE_DROP_WIN_PUSH"] = 708] = "SAW_PRIZE_DROP_WIN_PUSH";
102
104
  ClassId[ClassId["SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST"] = 709] = "SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST";
103
105
  ClassId[ClassId["SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE"] = 710] = "SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE";
106
+ ClassId[ClassId["SAW_AKNOWLEDGE_SPIN_PUSH"] = 711] = "SAW_AKNOWLEDGE_SPIN_PUSH";
104
107
  /*
105
108
  !Important, if adding new messages that are 'acting' on behalf of the client,
106
109
  you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
@@ -861,7 +864,8 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
861
864
  is_completed: t.isCompleted,
862
865
  progress: t.userProgress,
863
866
  execution_count_expected: t.executionCount,
864
- execution_count_actual: t.userExecutedCount
867
+ execution_count_actual: t.userExecutedCount,
868
+ display_progress_as_count: t.task_public_meta.display_progress_as_count
865
869
  };
866
870
  }),
867
871
  related_games: (r.related_games || []).map(function (g) {
@@ -2428,7 +2432,7 @@ var SmarticoAPI = /*#__PURE__*/function () {
2428
2432
  request: message,
2429
2433
  error: e.message
2430
2434
  });
2431
- throw new Error("Failed to make request to smartico channel, L1. " + e.message);
2435
+ throw new Error("Failed to make request to smartico channel, L2 L1. " + e.message);
2432
2436
  });
2433
2437
  return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp));
2434
2438
  } catch (e) {