@smartico/public-api 0.0.147 → 0.0.149

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.
@@ -16,6 +16,10 @@ var ClassId;
16
16
  ClassId[ClassId["LOGOUT_RESPONSE"] = 12] = "LOGOUT_RESPONSE";
17
17
  ClassId[ClassId["GET_TRANSLATIONS_REQUEST"] = 13] = "GET_TRANSLATIONS_REQUEST";
18
18
  ClassId[ClassId["GET_TRANSLATIONS_RESPONSE"] = 14] = "GET_TRANSLATIONS_RESPONSE";
19
+ /*
20
+ !Important, if adding new messages that are 'acting' on behalf of the client,
21
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
22
+ */
19
23
  ClassId[ClassId["CLIENT_ENGAGEMENT_IMPRESSION_REQUEST"] = 103] = "CLIENT_ENGAGEMENT_IMPRESSION_REQUEST";
20
24
  ClassId[ClassId["CLIENT_ENGAGEMENT_ACTION_REQUEST"] = 104] = "CLIENT_ENGAGEMENT_ACTION_REQUEST";
21
25
  ClassId[ClassId["CLIENT_EXECUTE_DEEPLINK_EVENT"] = 105] = "CLIENT_EXECUTE_DEEPLINK_EVENT";
@@ -30,6 +34,10 @@ var ClassId;
30
34
  ClassId[ClassId["CLIENT_SET_CUSTOM_USERNAME_RESPONSE"] = 160] = "CLIENT_SET_CUSTOM_USERNAME_RESPONSE";
31
35
  ClassId[ClassId["CHECK_SEGMENT_MATCH_REQUEST"] = 161] = "CHECK_SEGMENT_MATCH_REQUEST";
32
36
  ClassId[ClassId["CHECK_SEGMENT_MATCH_RESPONSE"] = 162] = "CHECK_SEGMENT_MATCH_RESPONSE";
37
+ /*
38
+ !Important, if adding new messages that are 'acting' on behalf of the client,
39
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
40
+ */
33
41
  // 500-1000 - Achievements
34
42
  ClassId[ClassId["GET_LEVEL_MAP_REQUEST"] = 500] = "GET_LEVEL_MAP_REQUEST";
35
43
  ClassId[ClassId["GET_LEVEL_MAP_RESPONSE"] = 501] = "GET_LEVEL_MAP_RESPONSE";
@@ -56,6 +64,10 @@ var ClassId;
56
64
  ClassId[ClassId["GET_CUSTOM_SECTIONS_RESPONSE"] = 524] = "GET_CUSTOM_SECTIONS_RESPONSE";
57
65
  ClassId[ClassId["MISSION_OPTIN_REQUEST"] = 525] = "MISSION_OPTIN_REQUEST";
58
66
  ClassId[ClassId["MISSION_OPTIN_RESPONSE"] = 526] = "MISSION_OPTIN_RESPONSE";
67
+ /*
68
+ !Important, if adding new messages that are 'acting' on behalf of the client,
69
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
70
+ */
59
71
  ClassId[ClassId["GET_ACHIEVEMENT_USER_REQUEST"] = 527] = "GET_ACHIEVEMENT_USER_REQUEST";
60
72
  ClassId[ClassId["GET_ACHIEVEMENT_USER_RESPONSE"] = 528] = "GET_ACHIEVEMENT_USER_RESPONSE";
61
73
  ClassId[ClassId["MARK_INBOX_READ_REQUEST"] = 529] = "MARK_INBOX_READ_REQUEST";
@@ -70,6 +82,10 @@ var ClassId;
70
82
  ClassId[ClassId["ACHIEVEMENT_CLAIM_PRIZE_RESPONSE"] = 540] = "ACHIEVEMENT_CLAIM_PRIZE_RESPONSE";
71
83
  ClassId[ClassId["ACH_SHOP_ITEM_HISTORY_REQUEST"] = 541] = "ACH_SHOP_ITEM_HISTORY_REQUEST";
72
84
  ClassId[ClassId["ACH_SHOP_ITEM_HISTORY_RESPONSE"] = 542] = "ACH_SHOP_ITEM_HISTORY_RESPONSE";
85
+ /*
86
+ !Important, if adding new messages that are 'acting' on behalf of the client,
87
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
88
+ */
73
89
  ClassId[ClassId["GET_BONUSES_REQUEST"] = 600] = "GET_BONUSES_REQUEST";
74
90
  ClassId[ClassId["GET_BONUSES_RESPONSE"] = 601] = "GET_BONUSES_RESPONSE";
75
91
  ClassId[ClassId["CLAIM_BONUS_REQUEST"] = 602] = "CLAIM_BONUS_REQUEST";
@@ -85,6 +101,10 @@ var ClassId;
85
101
  ClassId[ClassId["SAW_PRIZE_DROP_WIN_PUSH"] = 708] = "SAW_PRIZE_DROP_WIN_PUSH";
86
102
  ClassId[ClassId["SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST"] = 709] = "SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST";
87
103
  ClassId[ClassId["SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE"] = 710] = "SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE";
104
+ /*
105
+ !Important, if adding new messages that are 'acting' on behalf of the client,
106
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
107
+ */
88
108
  ClassId[ClassId["JP_GET_JACKPOTS_REQUEST"] = 800] = "JP_GET_JACKPOTS_REQUEST";
89
109
  ClassId[ClassId["JP_GET_JACKPOTS_RESPONSE"] = 801] = "JP_GET_JACKPOTS_RESPONSE";
90
110
  ClassId[ClassId["JP_GET_LATEST_POTS_REQUEST"] = 802] = "JP_GET_LATEST_POTS_REQUEST";
@@ -94,9 +114,17 @@ var ClassId;
94
114
  ClassId[ClassId["JP_OPTOUT_REQUEST"] = 806] = "JP_OPTOUT_REQUEST";
95
115
  ClassId[ClassId["JP_OPTOUT_RESPONSE"] = 807] = "JP_OPTOUT_RESPONSE";
96
116
  ClassId[ClassId["JP_WIN_PUSH"] = 808] = "JP_WIN_PUSH";
117
+ /*
118
+ !Important, if adding new messages that are 'acting' on behalf of the client,
119
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
120
+ */
97
121
  ClassId[ClassId["REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ"] = 1003] = "REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ";
98
122
  ClassId[ClassId["REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP"] = 2003] = "REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP";
99
123
  ClassId[ClassId["CLIENT_DEBUG_REQUEST"] = 77777] = "CLIENT_DEBUG_REQUEST";
124
+ /*
125
+ !Important, if adding new messages that are 'acting' on behalf of the client,
126
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
127
+ */
100
128
  ClassId[ClassId["UNSUPPORTED_COMMAND"] = 99999] = "UNSUPPORTED_COMMAND";
101
129
  })(ClassId || (ClassId = {}));
102
130
 
@@ -783,7 +811,9 @@ const UserAchievementTransform = items => {
783
811
  name: (_t$task_public_meta = t.task_public_meta) == null ? void 0 : _t$task_public_meta.name,
784
812
  points_reward: t.points_reward,
785
813
  is_completed: t.isCompleted,
786
- progress: t.userProgress
814
+ progress: t.userProgress,
815
+ execution_count_expected: t.executionCount,
816
+ execution_count_actual: t.userExecutedCount
787
817
  };
788
818
  }),
789
819
  related_games: (r.related_games || []).map(g => ({