@smartico/public-api 0.0.212 → 0.0.214

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.
@@ -6,12 +6,16 @@
6
6
 
7
7
  • **ach\_game\_id**: `number`
8
8
 
9
+ ID of the game on Smartico side
10
+
9
11
  ___
10
12
 
11
13
  ### ext\_game\_id
12
14
 
13
15
  • **ext\_game\_id**: `string`
14
16
 
17
+ ID of the game on operator side
18
+
15
19
  ___
16
20
 
17
21
  ### game\_public\_meta
@@ -64,102 +64,144 @@ ___
64
64
 
65
65
  • **position**: `number`
66
66
 
67
+ for scratch card defines position of prize in the list
68
+
69
+ ___
70
+
71
+ ### sectors
72
+
73
+ • **sectors**: `number`[]
74
+
75
+ List of sectors for the prize
76
+
67
77
  ___
68
78
 
69
79
  ### acknowledge\_type
70
80
 
71
81
  • **acknowledge\_type**: `SAWAcknowledgeTypeName`
72
82
 
83
+ Type of acknowledge message for users
84
+
73
85
  ___
74
86
 
75
87
  ### aknowledge\_message
76
88
 
77
89
  • **aknowledge\_message**: `string`
78
90
 
91
+ Message that will be shown to user in modal pop-up
92
+
79
93
  ___
80
94
 
81
95
  ### acknowledge\_dp
82
96
 
83
97
  • **acknowledge\_dp**: `string`
84
98
 
99
+ Deep link that will trigger some action in modal pop-up
100
+
85
101
  ___
86
102
 
87
103
  ### acknowledge\_action\_title
88
104
 
89
105
  • **acknowledge\_action\_title**: `string`
90
106
 
107
+ The name of the action button in modal pop-up
108
+
91
109
  ___
92
110
 
93
111
  ### acknowledge\_dp\_additional
94
112
 
95
113
  • `Optional` **acknowledge\_dp\_additional**: `string`
96
114
 
115
+ Deep link that will trigger some action in modal pop-up (additional)
116
+
97
117
  ___
98
118
 
99
119
  ### acknowledge\_action\_title\_additional
100
120
 
101
121
  • `Optional` **acknowledge\_action\_title\_additional**: `string`
102
122
 
123
+ The name of the action button in modal pop-up (additional)
124
+
103
125
  ___
104
126
 
105
127
  ### out\_of\_stock\_message
106
128
 
107
129
  • `Optional` **out\_of\_stock\_message**: `string`
108
130
 
131
+ Message when the prize pool is empty for that specific prize
132
+
109
133
  ___
110
134
 
111
135
  ### pool
112
136
 
113
137
  • `Optional` **pool**: `number`
114
138
 
139
+ Number of items in stock
140
+
115
141
  ___
116
142
 
117
143
  ### pool\_initial
118
144
 
119
145
  • `Optional` **pool\_initial**: `number`
120
146
 
147
+ Initial number of items in stock
148
+
121
149
  ___
122
150
 
123
151
  ### wins\_count
124
152
 
125
153
  • `Optional` **wins\_count**: `number`
126
154
 
155
+ Number of wins in game
156
+
127
157
  ___
128
158
 
129
159
  ### weekdays
130
160
 
131
161
  • `Optional` **weekdays**: `number`[]
132
162
 
163
+ Number of days of week, when the prize can be available
164
+
133
165
  ___
134
166
 
135
167
  ### active\_from\_ts
136
168
 
137
169
  • `Optional` **active\_from\_ts**: `number`
138
170
 
171
+ Holds time from which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp)
172
+
139
173
  ___
140
174
 
141
175
  ### active\_till\_ts
142
176
 
143
177
  • `Optional` **active\_till\_ts**: `number`
144
178
 
179
+ Holds time till which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp)
180
+
145
181
  ___
146
182
 
147
183
  ### relative\_period\_timezone
148
184
 
149
185
  • `Optional` **relative\_period\_timezone**: `number`
150
186
 
187
+ Time zone to ensure each day aligns with your local midnight.
188
+
151
189
  ___
152
190
 
153
191
  ### is\_surcharge
154
192
 
155
193
  • `Optional` **is\_surcharge**: `boolean`
156
194
 
195
+ Flag indicating that the prize is surcharged (available all the time, despite pool numbers)
196
+
157
197
  ___
158
198
 
159
199
  ### is\_deleted
160
200
 
161
201
  • `Optional` **is\_deleted**: `boolean`
162
202
 
203
+ Flag indicating the state of the prize
204
+
163
205
  ___
164
206
 
165
207
  ### custom\_data
@@ -152,36 +152,48 @@ ___
152
152
 
153
153
  • `Optional` **expose\_game\_stat\_on\_api**: `boolean`
154
154
 
155
+ When enabled, the number of items in the pool and number of won items will be exposed in the Retention API and in the UI Widgets
156
+
155
157
  ___
156
158
 
157
159
  ### relative\_period\_timezone
158
160
 
159
161
  • `Optional` **relative\_period\_timezone**: `number`
160
162
 
163
+ Time zone to ensure each day aligns with your local midnight.
164
+
161
165
  ___
162
166
 
163
167
  ### activeFromDate
164
168
 
165
169
  • `Optional` **activeFromDate**: `number`
166
170
 
171
+ Holds time from which template will become available, for the template that are targeted to be available from specific time (UNIX timestamp)
172
+
167
173
  ___
168
174
 
169
175
  ### activeTillDate
170
176
 
171
177
  • `Optional` **activeTillDate**: `number`
172
178
 
179
+ Holds time till which template will become available, for the templates that are targeted to be available from specific time (UNIX timestamp)
180
+
173
181
  ___
174
182
 
175
183
  ### steps\_to\_finish\_game
176
184
 
177
185
  • `Optional` **steps\_to\_finish\_game**: `number`
178
186
 
187
+ The amount of steps to complete the game and gather the prize
188
+
179
189
  ___
180
190
 
181
191
  ### custom\_section\_id
182
192
 
183
193
  • `Optional` **custom\_section\_id**: `number`
184
194
 
195
+ Hold the id of the custom section
196
+
185
197
  ___
186
198
 
187
199
  ### saw\_template\_ui\_definition
@@ -46,30 +46,40 @@ ___
46
46
 
47
47
  • **image1**: `string`
48
48
 
49
+ 1st image URL representing the tournament
50
+
49
51
  ___
50
52
 
51
53
  ### image2
52
54
 
53
55
  • **image2**: `string`
54
56
 
57
+ 2nd image URL representing the tournament
58
+
55
59
  ___
56
60
 
57
61
  ### image2\_mobile
58
62
 
59
63
  • **image2\_mobile**: `string`
60
64
 
65
+ 2nd image URL representing the tournament for mobile
66
+
61
67
  ___
62
68
 
63
69
  ### prize\_pool\_short
64
70
 
65
71
  • **prize\_pool\_short**: `string`
66
72
 
73
+ The message indicating the prize pool of the tournament
74
+
67
75
  ___
68
76
 
69
77
  ### custom\_price\_text
70
78
 
71
79
  • **custom\_price\_text**: `string`
72
80
 
81
+ The message indicating the price to register in the tournament
82
+
73
83
  ___
74
84
 
75
85
  ### segment\_dont\_match\_message
@@ -278,8 +288,12 @@ ___
278
288
 
279
289
  • `Optional` **min\_scores\_win**: `number`
280
290
 
291
+ The minimum amount of score points that the user should get in order to be qualified for the prize
292
+
281
293
  ___
282
294
 
283
295
  ### hide\_leaderboard\_min\_scores
284
296
 
285
297
  • `Optional` **hide\_leaderboard\_min\_scores**: `boolean`
298
+
299
+ When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard
@@ -62,6 +62,8 @@ ___
62
62
 
63
63
  • **image1**: `string`
64
64
 
65
+ 1st image URL representing the tournament
66
+
65
67
  #### Inherited from
66
68
 
67
69
  [TTournament](TTournament.md).[image1](TTournament.md#image1)
@@ -72,6 +74,8 @@ ___
72
74
 
73
75
  • **image2**: `string`
74
76
 
77
+ 2nd image URL representing the tournament
78
+
75
79
  #### Inherited from
76
80
 
77
81
  [TTournament](TTournament.md).[image2](TTournament.md#image2)
@@ -82,6 +86,8 @@ ___
82
86
 
83
87
  • **image2\_mobile**: `string`
84
88
 
89
+ 2nd image URL representing the tournament for mobile
90
+
85
91
  #### Inherited from
86
92
 
87
93
  [TTournament](TTournament.md).[image2_mobile](TTournament.md#image2_mobile)
@@ -92,6 +98,8 @@ ___
92
98
 
93
99
  • **prize\_pool\_short**: `string`
94
100
 
101
+ The message indicating the prize pool of the tournament
102
+
95
103
  #### Inherited from
96
104
 
97
105
  [TTournament](TTournament.md).[prize_pool_short](TTournament.md#prize_pool_short)
@@ -102,6 +110,8 @@ ___
102
110
 
103
111
  • **custom\_price\_text**: `string`
104
112
 
113
+ The message indicating the price to register in the tournament
114
+
105
115
  #### Inherited from
106
116
 
107
117
  [TTournament](TTournament.md).[custom_price_text](TTournament.md#custom_price_text)
@@ -377,6 +387,8 @@ ___
377
387
 
378
388
  • `Optional` **min\_scores\_win**: `number`
379
389
 
390
+ The minimum amount of score points that the user should get in order to be qualified for the prize
391
+
380
392
  #### Inherited from
381
393
 
382
394
  [TTournament](TTournament.md).[min_scores_win](TTournament.md#min_scores_win)
@@ -387,6 +399,8 @@ ___
387
399
 
388
400
  • `Optional` **hide\_leaderboard\_min\_scores**: `boolean`
389
401
 
402
+ When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard
403
+
390
404
  #### Inherited from
391
405
 
392
406
  [TTournament](TTournament.md).[hide_leaderboard_min_scores](TTournament.md#hide_leaderboard_min_scores)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.212",
3
+ "version": "0.0.214",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  interface AchRelatedGame {
2
- /* ID of the game on Smartico side */
2
+ /** ID of the game on Smartico side */
3
3
  ach_game_id: number;
4
- /* ID of the game on operator side */
4
+ /** ID of the game on operator side */
5
5
  ext_game_id: string;
6
6
  game_public_meta: {
7
7
  name: string;
@@ -42,6 +42,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
42
42
  steps_to_finish_game: r.saw_template_ui_definition.steps_to_finish_game,
43
43
  custom_section_id: r.saw_template_ui_definition.custom_section_id,
44
44
  saw_template_ui_definition: r.saw_template_ui_definition,
45
+ show_prize_history: r.show_prize_history,
45
46
 
46
47
  prizes: r.prizes.map((p) => {
47
48
  const y: TMiniGamePrize = {
@@ -53,6 +54,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
53
54
  font_size_mobile: p.saw_prize_ui_definition.font_size_mobile,
54
55
  icon: p.saw_prize_ui_definition.icon,
55
56
  position: p.saw_prize_ui_definition.position,
57
+ sectors: p.saw_prize_ui_definition.sectors,
56
58
  acknowledge_type: SAWAcknowledgeTypeNamed(p.saw_prize_ui_definition.acknowledge_type),
57
59
  aknowledge_message: p.saw_prize_ui_definition.aknowledge_message,
58
60
  acknowledge_dp: p.saw_prize_ui_definition.acknowledge_dp,
@@ -43,4 +43,5 @@ export interface SAWTemplate {
43
43
  requires_prize_claim?: boolean;
44
44
 
45
45
  relative_period_timezone?: number;
46
+ show_prize_history?:boolean;
46
47
  }
@@ -4,6 +4,7 @@ import { SAWTemplate } from "./SAWTemplate";
4
4
 
5
5
  export interface SAWWinningHistoryResponse extends ProtocolResponse {
6
6
  prizes: SAWPrizesHistory[];
7
+ hasMore: boolean;
7
8
  }
8
9
 
9
10
  export interface SAWPrizesHistory {
@@ -62,9 +62,9 @@ export interface Tournament {
62
62
 
63
63
  /** List of casino games (or other types of entities) related to the tournament */
64
64
  related_games?: AchRelatedGame[];
65
- /* The minimum amount of score points that the user should get in order to be qualified for the prize */
65
+ /** The minimum amount of score points that the user should get in order to be qualified for the prize */
66
66
  minScoreToWin?: number;
67
- /* When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard. */
67
+ /** When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard. */
68
68
  hideLeaderboardsMinScores?: boolean;
69
69
  }
70
70
 
@@ -28,39 +28,41 @@ export interface TMiniGamePrize {
28
28
  font_size_mobile?: number;
29
29
  /** The URL of the icon of the prize */
30
30
  icon?: string;
31
- /* for scratch card defines position of prize in the list */
31
+ /** for scratch card defines position of prize in the list */
32
32
  position: number;
33
- /* Type of acknowledge message for users */
33
+ /** List of sectors for the prize */
34
+ sectors: number[];
35
+ /** Type of acknowledge message for users */
34
36
  acknowledge_type: SAWAcknowledgeTypeName;
35
- /* Message that will be shown to user in modal pop-up */
37
+ /** Message that will be shown to user in modal pop-up */
36
38
  aknowledge_message: string;
37
- /* Deep link that will trigger some action in modal pop-up */
39
+ /** Deep link that will trigger some action in modal pop-up */
38
40
  acknowledge_dp: string;
39
- /* The name of the action button in modal pop-up */
41
+ /** The name of the action button in modal pop-up */
40
42
  acknowledge_action_title: string;
41
- /* Deep link that will trigger some action in modal pop-up (additional) */
43
+ /** Deep link that will trigger some action in modal pop-up (additional) */
42
44
  acknowledge_dp_additional?: string;
43
- /* The name of the action button in modal pop-up (additional) */
45
+ /** The name of the action button in modal pop-up (additional) */
44
46
  acknowledge_action_title_additional?: string;
45
- /* Message when the prize pool is empty for that specific prize */
47
+ /** Message when the prize pool is empty for that specific prize */
46
48
  out_of_stock_message?: string;
47
- /* Number of items in stock */
49
+ /** Number of items in stock */
48
50
  pool?: number;
49
- /* Initial number of items in stock */
51
+ /** Initial number of items in stock */
50
52
  pool_initial?: number;
51
- /* Number of wins in game */
53
+ /** Number of wins in game */
52
54
  wins_count?: number;
53
- /* Number of days of week, when the prize can be available */
55
+ /** Number of days of week, when the prize can be available */
54
56
  weekdays?: number[];
55
- /* Holds time from which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
57
+ /** Holds time from which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
56
58
  active_from_ts?: number;
57
- /* Holds time till which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
59
+ /** Holds time till which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
58
60
  active_till_ts?: number;
59
- /* Time zone to ensure each day aligns with your local midnight. */
61
+ /** Time zone to ensure each day aligns with your local midnight. */
60
62
  relative_period_timezone?: number;
61
- /* Flag indicating that the prize is surcharged (available all the time, despite pool numbers) */
63
+ /** Flag indicating that the prize is surcharged (available all the time, despite pool numbers) */
62
64
  is_surcharge?: boolean;
63
- /* Flag indicating the state of the prize */
65
+ /** Flag indicating the state of the prize */
64
66
  is_deleted?: boolean;
65
67
  /** The custom data of the mini-game defined by operator in the BackOffice. Can be a JSON object, string or number */
66
68
  custom_data?: any;
@@ -149,22 +151,24 @@ export interface TMiniGameTemplate {
149
151
  /** List of prizes for mini-games */
150
152
  prizes: TMiniGamePrize[];
151
153
 
152
- /* When enabled, the number of items in the pool and number of won items will be exposed in the Retention API and in the UI Widgets */
154
+ /** When enabled, the number of items in the pool and number of won items will be exposed in the Retention API and in the UI Widgets */
153
155
  expose_game_stat_on_api?: boolean;
154
156
 
155
- /* Time zone to ensure each day aligns with your local midnight. */
157
+ /** Time zone to ensure each day aligns with your local midnight. */
156
158
  relative_period_timezone?: number;
157
- /* Holds time from which template will become available, for the template that are targeted to be available from specific time (UNIX timestamp) */
159
+ /** Holds time from which template will become available, for the template that are targeted to be available from specific time (UNIX timestamp) */
158
160
  activeFromDate?: number;
159
- /* Holds time till which template will become available, for the templates that are targeted to be available from specific time (UNIX timestamp) */
161
+ /** Holds time till which template will become available, for the templates that are targeted to be available from specific time (UNIX timestamp) */
160
162
  activeTillDate?: number;
161
- /* The amount of steps to complete the game and gather the prize */
163
+ /** The amount of steps to complete the game and gather the prize */
162
164
  steps_to_finish_game?: number;
163
- /* Hold the id of the custom section */
165
+ /** Hold the id of the custom section */
164
166
  custom_section_id?: number;
165
167
 
166
168
  /** The UI definition of the mini-game */
167
169
  saw_template_ui_definition: SAWTemplateUI;
170
+ /* When enabled the prize history icon is visible on a certain template */
171
+ show_prize_history?:boolean;
168
172
  }
169
173
 
170
174
  /**
@@ -251,15 +255,15 @@ export interface TTournament {
251
255
  name: string;
252
256
  /** Description of the tournament, translated to the user language */
253
257
  description: string;
254
- /* 1st image URL representing the tournament */
258
+ /** 1st image URL representing the tournament */
255
259
  image1: string;
256
- /* 2nd image URL representing the tournament */
260
+ /** 2nd image URL representing the tournament */
257
261
  image2: string;
258
- /* 2nd image URL representing the tournament for mobile */
262
+ /** 2nd image URL representing the tournament for mobile */
259
263
  image2_mobile: string;
260
- /* The message indicating the prize pool of the tournament */
264
+ /** The message indicating the prize pool of the tournament */
261
265
  prize_pool_short: string;
262
- /* The message indicating the price to register in the tournament */
266
+ /** The message indicating the price to register in the tournament */
263
267
  custom_price_text: string;
264
268
 
265
269
  /** The message that should be shown to the user when the user cannot register in tournament with error code TOURNAMENT_USER_DONT_MATCH_CONDITIONS */
@@ -343,9 +347,9 @@ export interface TTournament {
343
347
  is_in_progress: boolean;
344
348
  /** Indicator if tournament instance is upcoming (status PUBLISHED or REGISTER) */
345
349
  is_upcoming: boolean;
346
- /* The minimum amount of score points that the user should get in order to be qualified for the prize */
350
+ /** The minimum amount of score points that the user should get in order to be qualified for the prize */
347
351
  min_scores_win?: number;
348
- /* When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard */
352
+ /** When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard */
349
353
  hide_leaderboard_min_scores?: boolean;
350
354
  }
351
355
 
@@ -694,7 +698,8 @@ export interface TInboxMessageBody {
694
698
  /** The action that should be performed when user clicks on the message.
695
699
  * Can be URL or deep link, e.g. 'dp:deposit'. The most safe to execute CTA is to pass it to _smartico.dp(cta_action);
696
700
  * The 'dp' function will handle the CTA and will execute it in the most safe way.
697
- * If the message has a rich html body - the action will always be 'dp:inbox' which will open the inbox widget when triggered. */
701
+ * If the message has a rich html body - the action will always be 'dp:inbox' which will open the inbox widget when triggered.
702
+ */
698
703
  action: string;
699
704
  /** Rich HTML body of the message. */
700
705
  html_body?: string;