@smartico/public-api 0.0.146 → 0.0.148

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.
@@ -29,5 +29,7 @@ interface JackpotDetails {
29
29
  pot: JackpotPot;
30
30
  /** indication if the current user is opted in to the jackpot */
31
31
  is_opted_in: boolean;
32
+ /** indicates whether all games are eligible for the jackpot */
33
+ ach_related_game_allow_all: boolean;
32
34
  }
33
35
  export { JackpotDetails };
@@ -7,6 +7,7 @@ export interface UserAchievementTask {
7
7
  task_type_id: AchievementTaskType;
8
8
  isCompleted?: boolean;
9
9
  userExecutedCount?: number;
10
+ executionCount?: number;
10
11
  userProgress?: number;
11
12
  lastExecutionDate: string;
12
13
  unlocked_by_mission_id?: number;
@@ -474,6 +474,10 @@ export interface TMissionOrBadgeTask {
474
474
  progress: number;
475
475
  /** Reward for completing the task in points */
476
476
  points_reward: number;
477
+ /** This is the total number of times the user needs to execute to complete task. e.g. he needs to bet 100 times. Here will be 100 */
478
+ execution_count_expected?: number;
479
+ /** This is the number of times the user has executed 'activity' of the task. e.g. he bet 5 times out of 100. Here will be 5 */
480
+ execution_count_actual?: number;
477
481
  }
478
482
  /**
479
483
  * TMissionOptInResult describes the response of call to _smartico.api.requestMissionOptIn(mission_id) method
package/dist/index.js CHANGED
@@ -16,6 +16,10 @@ exports.ClassId = void 0;
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 @@ exports.ClassId = void 0;
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 @@ exports.ClassId = void 0;
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 @@ exports.ClassId = void 0;
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 @@ exports.ClassId = void 0;
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 @@ exports.ClassId = void 0;
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
  })(exports.ClassId || (exports.ClassId = {}));
102
130
 
@@ -824,7 +852,9 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
824
852
  name: (_t$task_public_meta = t.task_public_meta) == null ? void 0 : _t$task_public_meta.name,
825
853
  points_reward: t.points_reward,
826
854
  is_completed: t.isCompleted,
827
- progress: t.userProgress
855
+ progress: t.userProgress,
856
+ execution_count_expected: t.executionCount,
857
+ execution_count_actual: t.userExecutedCount
828
858
  };
829
859
  }),
830
860
  related_games: (r.related_games || []).map(function (g) {