@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.147",
3
+ "version": "0.0.149",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,6 +18,11 @@ export enum ClassId {
18
18
  GET_TRANSLATIONS_REQUEST = 13,
19
19
  GET_TRANSLATIONS_RESPONSE = 14,
20
20
 
21
+ /*
22
+ !Important, if adding new messages that are 'acting' on behalf of the client,
23
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
24
+ */
25
+
21
26
  CLIENT_ENGAGEMENT_IMPRESSION_REQUEST = 103,
22
27
  CLIENT_ENGAGEMENT_ACTION_REQUEST = 104,
23
28
  CLIENT_EXECUTE_DEEPLINK_EVENT = 105,
@@ -36,6 +41,11 @@ export enum ClassId {
36
41
  CHECK_SEGMENT_MATCH_REQUEST = 161,
37
42
  CHECK_SEGMENT_MATCH_RESPONSE = 162,
38
43
 
44
+ /*
45
+ !Important, if adding new messages that are 'acting' on behalf of the client,
46
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
47
+ */
48
+
39
49
  // 500-1000 - Achievements
40
50
  GET_LEVEL_MAP_REQUEST = 500,
41
51
  GET_LEVEL_MAP_RESPONSE = 501,
@@ -63,6 +73,11 @@ export enum ClassId {
63
73
  MISSION_OPTIN_REQUEST = 525,
64
74
  MISSION_OPTIN_RESPONSE = 526,
65
75
 
76
+ /*
77
+ !Important, if adding new messages that are 'acting' on behalf of the client,
78
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
79
+ */
80
+
66
81
  GET_ACHIEVEMENT_USER_REQUEST = 527,
67
82
  GET_ACHIEVEMENT_USER_RESPONSE = 528,
68
83
 
@@ -82,6 +97,11 @@ export enum ClassId {
82
97
  ACH_SHOP_ITEM_HISTORY_REQUEST = 541,
83
98
  ACH_SHOP_ITEM_HISTORY_RESPONSE = 542,
84
99
 
100
+ /*
101
+ !Important, if adding new messages that are 'acting' on behalf of the client,
102
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
103
+ */
104
+
85
105
  GET_BONUSES_REQUEST = 600,
86
106
  GET_BONUSES_RESPONSE = 601,
87
107
  CLAIM_BONUS_REQUEST = 602,
@@ -99,6 +119,11 @@ export enum ClassId {
99
119
  SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST = 709,
100
120
  SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE = 710,
101
121
 
122
+ /*
123
+ !Important, if adding new messages that are 'acting' on behalf of the client,
124
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
125
+ */
126
+
102
127
 
103
128
  JP_GET_JACKPOTS_REQUEST = 800,
104
129
  JP_GET_JACKPOTS_RESPONSE = 801,
@@ -114,12 +139,21 @@ export enum ClassId {
114
139
 
115
140
  JP_WIN_PUSH = 808,
116
141
 
142
+ /*
143
+ !Important, if adding new messages that are 'acting' on behalf of the client,
144
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
145
+ */
146
+
117
147
  REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ = 1003,
118
148
  REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP = 2003,
119
149
 
120
150
  CLIENT_DEBUG_REQUEST = 77777,
121
151
 
122
152
 
153
+ /*
154
+ !Important, if adding new messages that are 'acting' on behalf of the client,
155
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
156
+ */
123
157
 
124
158
  UNSUPPORTED_COMMAND = 99999,
125
159
  }
@@ -84,6 +84,8 @@ export const UserAchievementTransform = (items: UserAchievement[]): TMissionOrBa
84
84
  points_reward: t.points_reward,
85
85
  is_completed: t.isCompleted,
86
86
  progress: t.userProgress,
87
+ execution_count_expected: t.executionCount,
88
+ execution_count_actual: t.userExecutedCount,
87
89
  })),
88
90
  related_games: (r.related_games || []).map(g => ({
89
91
  ext_game_id: g.ext_game_id,
@@ -8,7 +8,8 @@ export interface UserAchievementTask {
8
8
  points_reward?: number;
9
9
  task_type_id: AchievementTaskType;
10
10
  isCompleted?: boolean;
11
- userExecutedCount?: number;
11
+ userExecutedCount?: number; // 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
12
+ executionCount?: number; // 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
12
13
  userProgress?: number;
13
14
  lastExecutionDate: string;
14
15
  unlocked_by_mission_id?: number;
@@ -538,15 +538,19 @@ export interface AchRelatedGame {
538
538
  */
539
539
  export interface TMissionOrBadgeTask {
540
540
  /** ID of the task */
541
- id: number,
541
+ id: number;
542
542
  /** Name of the task, translated to the user language */
543
- name: string,
543
+ name: string;
544
544
  /** Indicator if the task is completed */
545
- is_completed: boolean,
545
+ is_completed: boolean;
546
546
  /** The progress of the task in percents */
547
- progress: number
547
+ progress: number;
548
548
  /** Reward for completing the task in points */
549
- points_reward: number
549
+ points_reward: number;
550
+ /** 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 */
551
+ execution_count_expected?: number;
552
+ /** 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 */
553
+ execution_count_actual?: number;
550
554
  }
551
555
 
552
556
  /**