@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.
@@ -82,6 +82,8 @@ var ClassId;
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 @@ var ClassId;
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
@@ -820,7 +823,8 @@ const UserAchievementTransform = items => {
820
823
  is_completed: t.isCompleted,
821
824
  progress: t.userProgress,
822
825
  execution_count_expected: t.executionCount,
823
- execution_count_actual: t.userExecutedCount
826
+ execution_count_actual: t.userExecutedCount,
827
+ display_progress_as_count: t.task_public_meta.display_progress_as_count
824
828
  };
825
829
  }),
826
830
  related_games: (r.related_games || []).map(g => ({
@@ -1991,7 +1995,7 @@ class SmarticoAPI {
1991
1995
  request: message,
1992
1996
  error: e.message
1993
1997
  });
1994
- throw new Error(`Failed to make request to smartico channel, L1. ${e.message}`);
1998
+ throw new Error(`Failed to make request to smartico channel, L2 L1. ${e.message}`);
1995
1999
  }
1996
2000
  if (this.logCIDs.includes(message.cid)) {
1997
2001
  this.logger.info('RES', result);