@smartico/public-api 0.0.274 → 0.0.276

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.
Files changed (100) hide show
  1. package/dist/Jackpots/JackpotPot.d.ts +8 -10
  2. package/dist/MiniGames/SAWSpinErrorCode.d.ts +5 -1
  3. package/dist/Raffle/GetDrawRunResponse.d.ts +1 -0
  4. package/dist/Raffle/GetRaffleDrawRunsHistoryResponse.d.ts +1 -0
  5. package/dist/Raffle/GetRafflesResponse.d.ts +5 -0
  6. package/dist/Raffle/Raffle.d.ts +1 -1
  7. package/dist/Raffle/RaffleClaimPrizeResponse.d.ts +1 -0
  8. package/dist/Raffle/RafflePrize.d.ts +1 -1
  9. package/dist/Raffle/index.d.ts +1 -0
  10. package/dist/Store/BuyStoreItemErrorCode.d.ts +5 -1
  11. package/dist/WSAPI/WSAPITypes.d.ts +2 -2
  12. package/dist/index.js +25 -7
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.modern.mjs +24 -6
  15. package/dist/index.modern.mjs.map +1 -1
  16. package/docs/README.md +11 -128
  17. package/docs/classes/WSAPI.md +1 -1
  18. package/docs/enums/AchCustomSectionType.md +67 -0
  19. package/docs/enums/BuyStoreItemErrorCode.md +16 -0
  20. package/docs/enums/InboxCategories.md +19 -0
  21. package/docs/enums/JackPotTemparature.md +33 -0
  22. package/docs/enums/PrizeModifiers.md +49 -0
  23. package/docs/enums/SAWAcknowledgeTypeName.md +25 -0
  24. package/docs/enums/SAWAskForUsername.md +13 -0
  25. package/docs/enums/SAWGameLayout.md +13 -0
  26. package/docs/enums/SAWSpinErrorCode.md +16 -0
  27. package/docs/interfaces/JackpotPot.md +1 -4
  28. package/docs/interfaces/Raffle.md +1 -1
  29. package/docs/interfaces/RaffleDraw.md +1 -1
  30. package/docs/interfaces/RaffleDrawPublicMeta.md +65 -0
  31. package/docs/interfaces/RaffleDrawRun.md +1 -1
  32. package/docs/interfaces/RafflePrize.md +1 -1
  33. package/docs/interfaces/RafflePrizePublicMeta.md +25 -0
  34. package/docs/interfaces/RafflePublicMeta.md +59 -0
  35. package/docs/interfaces/SAWTemplateUI.md +284 -0
  36. package/docs/interfaces/TInboxMessage.md +1 -1
  37. package/docs/interfaces/TMiniGamePrize.md +2 -2
  38. package/docs/interfaces/TMiniGameTemplate.md +1 -1
  39. package/docs/interfaces/TUICustomSection.md +1 -1
  40. package/package.json +1 -1
  41. package/src/Jackpots/JackpotPot.ts +8 -10
  42. package/src/MiniGames/SAWSpinErrorCode.ts +4 -0
  43. package/src/Raffle/GetDrawRunResponse.ts +1 -1
  44. package/src/Raffle/GetRaffleDrawRunsHistoryResponse.ts +1 -0
  45. package/src/Raffle/GetRafflesResponse.ts +5 -0
  46. package/src/Raffle/Raffle.ts +1 -1
  47. package/src/Raffle/RaffleClaimPrizeResponse.ts +1 -1
  48. package/src/Raffle/RafflePrize.ts +1 -1
  49. package/src/Raffle/index.ts +1 -0
  50. package/src/SmarticoAPI.ts +2 -2
  51. package/src/Store/BuyStoreItemErrorCode.ts +4 -0
  52. package/src/WSAPI/WSAPITypes.ts +5 -3
  53. package/dist/Quiz/MarketsAnswersType.d.ts +0 -22
  54. package/dist/Raffle/GetDrawResponse.d.ts +0 -5
  55. package/dist/SmarticoPublicAPI.d.ts +0 -23
  56. package/dist/Store/BuyShopItemErrorCode.d.ts +0 -10
  57. package/dist/Store/BuyShopItemRequest.d.ts +0 -4
  58. package/dist/Store/BuyShopItemResponse.d.ts +0 -4
  59. package/dist/Store/GetCategoriesShopResponse.d.ts +0 -5
  60. package/dist/Store/GetShopItemsResponse.d.ts +0 -5
  61. package/dist/Store/ShopCategory.d.ts +0 -5
  62. package/dist/Store/ShopCategoryPublicMeta.d.ts +0 -4
  63. package/dist/Store/ShopItem.d.ts +0 -9
  64. package/dist/Store/ShopItemPublicMeta.d.ts +0 -10
  65. package/dist/Store/ShopItemType.d.ts +0 -4
  66. package/dist/Store/StorItemPruchased.d.ts +0 -6
  67. package/dist/service/index.d.ts +0 -5
  68. package/dist/service/types/ErrorCodes.d.ts +0 -13
  69. package/dist/service/types/GRequest.d.ts +0 -16
  70. package/dist/service/types/GResponse.d.ts +0 -10
  71. package/dist/service/types/Game/GameAttemptType.d.ts +0 -6
  72. package/dist/service/types/Game/GameCanPlayType.d.ts +0 -10
  73. package/dist/service/types/Game/GameExternalStatus.d.ts +0 -6
  74. package/dist/service/types/Game/GameInfo.d.ts +0 -9
  75. package/dist/service/types/Game/GamePick.d.ts +0 -90
  76. package/dist/service/types/Game/GameUtil.d.ts +0 -7
  77. package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +0 -7
  78. package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +0 -7
  79. package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +0 -5
  80. package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +0 -6
  81. package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +0 -5
  82. package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +0 -34
  83. package/dist/service/types/SmarticoProto/PublicProperties.d.ts +0 -11
  84. package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +0 -12
  85. package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +0 -5
  86. package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +0 -5
  87. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +0 -5
  88. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +0 -15
  89. package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +0 -10
  90. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +0 -3
  91. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +0 -5
  92. package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +0 -11
  93. package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +0 -8
  94. package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +0 -13
  95. package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +0 -21
  96. package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +0 -31
  97. package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +0 -12
  98. package/dist/service/types/SmarticoProto/TranslationArea.d.ts +0 -9
  99. package/dist/service/types/User/UserInfo.d.ts +0 -10
  100. package/dist/util/Util.d.ts +0 -51
@@ -0,0 +1,284 @@
1
+ # Interface: SAWTemplateUI
2
+
3
+ ## Properties
4
+
5
+ ### skin
6
+
7
+ • **skin**: `string`
8
+
9
+ ___
10
+
11
+ ### name
12
+
13
+ • **name**: `string`
14
+
15
+ ___
16
+
17
+ ### description
18
+
19
+ • `Optional` **description**: `string`
20
+
21
+ ___
22
+
23
+ ### over\_limit\_message
24
+
25
+ • `Optional` **over\_limit\_message**: `string`
26
+
27
+ ___
28
+
29
+ ### hide\_prize\_names
30
+
31
+ • `Optional` **hide\_prize\_names**: `string`
32
+
33
+ ___
34
+
35
+ ### no\_attempts\_message
36
+
37
+ • `Optional` **no\_attempts\_message**: `string`
38
+
39
+ ___
40
+
41
+ ### thumbnail
42
+
43
+ • `Optional` **thumbnail**: `string`
44
+
45
+ ___
46
+
47
+ ### sectors\_count
48
+
49
+ • **sectors\_count**: `number`
50
+
51
+ ___
52
+
53
+ ### priority
54
+
55
+ • **priority**: `number`
56
+
57
+ ___
58
+
59
+ ### flow\_builder\_only
60
+
61
+ • **flow\_builder\_only**: `boolean`
62
+
63
+ ___
64
+
65
+ ### background\_image
66
+
67
+ • `Optional` **background\_image**: `string`
68
+
69
+ ___
70
+
71
+ ### background\_image\_mobile
72
+
73
+ • `Optional` **background\_image\_mobile**: `string`
74
+
75
+ ___
76
+
77
+ ### background\_sound
78
+
79
+ • `Optional` **background\_sound**: `string`
80
+
81
+ ___
82
+
83
+ ### spin\_animation\_duration
84
+
85
+ • `Optional` **spin\_animation\_duration**: `number`
86
+
87
+ ___
88
+
89
+ ### wheel\_pointer\_rotation
90
+
91
+ • `Optional` **wheel\_pointer\_rotation**: `number`
92
+
93
+ ___
94
+
95
+ ### scratch\_logo
96
+
97
+ • `Optional` **scratch\_logo**: `string`
98
+
99
+ ___
100
+
101
+ ### scratch\_cover
102
+
103
+ • `Optional` **scratch\_cover**: `string`
104
+
105
+ ___
106
+
107
+ ### scratch\_bg\_desktop
108
+
109
+ • `Optional` **scratch\_bg\_desktop**: `string`
110
+
111
+ ___
112
+
113
+ ### scratch\_bg\_mobile
114
+
115
+ • `Optional` **scratch\_bg\_mobile**: `string`
116
+
117
+ ___
118
+
119
+ ### scratch\_cursor
120
+
121
+ • `Optional` **scratch\_cursor**: `string`
122
+
123
+ ___
124
+
125
+ ### custom\_css
126
+
127
+ • `Optional` **custom\_css**: `string`
128
+
129
+ ___
130
+
131
+ ### custom\_skin\_folder
132
+
133
+ • `Optional` **custom\_skin\_folder**: `string`
134
+
135
+ ___
136
+
137
+ ### jackpot\_symbol
138
+
139
+ • `Optional` **jackpot\_symbol**: `string`
140
+
141
+ ___
142
+
143
+ ### promo\_image
144
+
145
+ • `Optional` **promo\_image**: `string`
146
+
147
+ ___
148
+
149
+ ### promo\_text
150
+
151
+ • `Optional` **promo\_text**: `string`
152
+
153
+ ___
154
+
155
+ ### matchx\_banner
156
+
157
+ • `Optional` **matchx\_banner**: `string`
158
+
159
+ ___
160
+
161
+ ### matchx\_banner\_mobile
162
+
163
+ • `Optional` **matchx\_banner\_mobile**: `string`
164
+
165
+ ___
166
+
167
+ ### matchx\_seasonal\_ranking
168
+
169
+ • `Optional` **matchx\_seasonal\_ranking**: `boolean`
170
+
171
+ ___
172
+
173
+ ### matchx\_is\_completed
174
+
175
+ • `Optional` **matchx\_is\_completed**: `boolean`
176
+
177
+ ___
178
+
179
+ ### matchx\_general\_board\_users\_count
180
+
181
+ • `Optional` **matchx\_general\_board\_users\_count**: `number`
182
+
183
+ ___
184
+
185
+ ### matchx\_hide\_ranking
186
+
187
+ • `Optional` **matchx\_hide\_ranking**: `boolean`
188
+
189
+ ___
190
+
191
+ ### ask\_for\_username
192
+
193
+ • `Optional` **ask\_for\_username**: [`SAWAskForUsername`](../enums/SAWAskForUsername.md)
194
+
195
+ ___
196
+
197
+ ### show\_prize\_board
198
+
199
+ • `Optional` **show\_prize\_board**: `boolean`
200
+
201
+ ___
202
+
203
+ ### max\_spins\_period\_ms
204
+
205
+ • `Optional` **max\_spins\_period\_ms**: `number`
206
+
207
+ ___
208
+
209
+ ### show\_countdown\_for\_next\_availability
210
+
211
+ • `Optional` **show\_countdown\_for\_next\_availability**: `boolean`
212
+
213
+ ___
214
+
215
+ ### disable\_background\_music
216
+
217
+ • `Optional` **disable\_background\_music**: `boolean`
218
+
219
+ ___
220
+
221
+ ### custom\_section\_id
222
+
223
+ • `Optional` **custom\_section\_id**: `number`
224
+
225
+ ___
226
+
227
+ ### only\_in\_custom\_section
228
+
229
+ • `Optional` **only\_in\_custom\_section**: `boolean`
230
+
231
+ ___
232
+
233
+ ### custom\_data
234
+
235
+ • **custom\_data**: `any`
236
+
237
+ ___
238
+
239
+ ### placeholder1
240
+
241
+ • `Optional` **placeholder1**: `string`
242
+
243
+ ___
244
+
245
+ ### placeholder2
246
+
247
+ • `Optional` **placeholder2**: `string`
248
+
249
+ ___
250
+
251
+ ### prize\_drop\_template
252
+
253
+ • `Optional` **prize\_drop\_template**: `Object`
254
+
255
+ #### Type declaration
256
+
257
+ | Name | Type |
258
+ | :------ | :------ |
259
+ | `id` | `string` |
260
+ | `content` | `string` |
261
+
262
+ ___
263
+
264
+ ### game\_layout
265
+
266
+ • `Optional` **game\_layout**: [`SAWGameLayout`](../enums/SAWGameLayout.md)
267
+
268
+ ___
269
+
270
+ ### steps\_to\_finish\_game
271
+
272
+ • `Optional` **steps\_to\_finish\_game**: `number`
273
+
274
+ ___
275
+
276
+ ### wheel\_layout
277
+
278
+ • `Optional` **wheel\_layout**: `SAWWheelLayout`
279
+
280
+ ___
281
+
282
+ ### background\_music\_volume
283
+
284
+ • `Optional` **background\_music\_volume**: `number`
@@ -36,6 +36,6 @@ ___
36
36
 
37
37
  ### category\_id
38
38
 
39
- • `Optional` **category\_id**: `InboxCategories`
39
+ • `Optional` **category\_id**: [`InboxCategories`](../enums/InboxCategories.md)
40
40
 
41
41
  Category id per inbox message, can be part of System inboxes, Personal inboxes or General inbox messages
@@ -79,7 +79,7 @@ ___
79
79
 
80
80
  ### acknowledge\_type
81
81
 
82
- • **acknowledge\_type**: `SAWAcknowledgeTypeName`
82
+ • **acknowledge\_type**: [`SAWAcknowledgeTypeName`](../enums/SAWAcknowledgeTypeName.md)
83
83
 
84
84
  Type of acknowledge message for users
85
85
 
@@ -215,7 +215,7 @@ ___
215
215
 
216
216
  ### prize\_modifiers
217
217
 
218
- • `Optional` **prize\_modifiers**: `PrizeModifiers`[]
218
+ • `Optional` **prize\_modifiers**: [`PrizeModifiers`](../enums/PrizeModifiers.md)[]
219
219
 
220
220
  Prize modifiers that will multiply by 2x, 5x or 10x the current total. This will not affect the final Prize Amount that will be awarded.
221
221
 
@@ -214,7 +214,7 @@ ___
214
214
 
215
215
  ### saw\_template\_ui\_definition
216
216
 
217
- • **saw\_template\_ui\_definition**: `SAWTemplateUI`
217
+ • **saw\_template\_ui\_definition**: [`SAWTemplateUI`](SAWTemplateUI.md)
218
218
 
219
219
  The UI definition of the mini-game
220
220
 
@@ -44,7 +44,7 @@ ___
44
44
 
45
45
  ### section\_type\_id
46
46
 
47
- • `Optional` **section\_type\_id**: `AchCustomSectionType`
47
+ • `Optional` **section\_type\_id**: [`AchCustomSectionType`](../enums/AchCustomSectionType.md)
48
48
 
49
49
  The particular type of custom section, can be Missions, Tournaments, Lootbox and etc
50
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.274",
3
+ "version": "0.0.276",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,10 +1,12 @@
1
1
  enum JackPotTemparature {
2
- /** cold */
2
+ /** cold, seed amount < current pot < (min amount - seed amount)/2 */
3
3
  COLD = 0,
4
- /** warm */
4
+ /** warm, (min amount - seed amount)/2 < current pot < min amount */
5
5
  WARM = 1,
6
- /** hot */
7
- HOT = 2
6
+ /** hot, current pot > min amount, entered explosion range */
7
+ HOT = 2,
8
+ /** burning, current pot > min amount + 0.5 * (max amount - min amount). E.g. mid of allowed explosion range */
9
+ BURNING = 3,
8
10
  }
9
11
 
10
12
  interface JackpotPot {
@@ -18,12 +20,8 @@ interface JackpotPot {
18
20
  current_pot_amount_user_currency: number;
19
21
  /** the date/time when this pot exploded */
20
22
  explode_date_ts: number;
21
- /** current pot temperature
22
- * 0 - cold. seed amount < current pot < (min amount - seed amount)/2
23
- * 1 - warm. (min amount - seed amount)/2 < current pot < min amount
24
- * 2 - hot. current pot > min amount
25
- */
23
+ /** current pot temperature */
26
24
  current_pot_temperature: JackPotTemparature;
27
25
  }
28
26
 
29
- export { JackpotPot };
27
+ export { JackpotPot, JackPotTemparature };
@@ -18,4 +18,8 @@ export enum SAWSpinErrorCode {
18
18
  SAW_VISITOR_STOP_SPIN_REQUEST = -40001,
19
19
  /** User is not in the segment */
20
20
  SAW_NOT_IN_SEGMENT = 40009,
21
+ /** User doesn't have enough gems to play. In case buy in type for the game is 'gems' based */
22
+ SAW_NO_BALANCE_GEMS = 40011,
23
+ /** User doesn't have enough diamonds to play. In case buy in type for the game is 'diamonds' based */
24
+ SAW_NO_BALANCE_DIAMONDS = 40012,
21
25
  }
@@ -7,7 +7,7 @@ export interface GetDrawRunResponse extends ProtocolResponse {
7
7
  draw: RaffleDraw;
8
8
  }
9
9
 
10
-
10
+ /** @hidden */
11
11
  export const drawRunTransform = (res: GetDrawRunResponse): TRaffleDraw => {
12
12
  return {
13
13
  id: res.draw.draw_id,
@@ -6,6 +6,7 @@ export interface GetRaffleDrawRunsHistoryResponse extends ProtocolResponse {
6
6
  draw_runs: RaffleDrawRun[];
7
7
  }
8
8
 
9
+ /** @hidden */
9
10
  export const drawRunHistoryTransform = (res: GetRaffleDrawRunsHistoryResponse): TRaffleDrawRun[] => {
10
11
  return res.draw_runs.map((item) => {
11
12
  return {
@@ -10,6 +10,7 @@ export interface GetRafflesResponse extends ProtocolResponse {
10
10
  items: Raffle[];
11
11
  }
12
12
 
13
+ /** @hidden */
13
14
  export const ticketsTransform = (items: RaffleTicket[]): TRaffleTicket[] => {
14
15
  return items.map((item) => {
15
16
  return {
@@ -19,6 +20,7 @@ export const ticketsTransform = (items: RaffleTicket[]): TRaffleTicket[] => {
19
20
  });
20
21
  };
21
22
 
23
+ /** @hidden */
22
24
  export const winnersTransform = (items: RafflePrizeWinner[]): TRafflePrizeWinner[] => {
23
25
  return items.map((item) => {
24
26
  return {
@@ -32,6 +34,7 @@ export const winnersTransform = (items: RafflePrizeWinner[]): TRafflePrizeWinner
32
34
  });
33
35
  };
34
36
 
37
+ /** @hidden */
35
38
  export const prizeTransform = (items: RafflePrize[]): TRafflePrize[] => {
36
39
  return items.map((item) => {
37
40
  return {
@@ -54,6 +57,7 @@ export const prizeTransform = (items: RafflePrize[]): TRafflePrize[] => {
54
57
  });
55
58
  };
56
59
 
60
+ /** @hidden */
57
61
  export const drawTransform = (items: RaffleDraw[]): TRaffleDraw[] => {
58
62
  return items.map((item) => {
59
63
  return {
@@ -82,6 +86,7 @@ export const drawTransform = (items: RaffleDraw[]): TRaffleDraw[] => {
82
86
  });
83
87
  };
84
88
 
89
+ /** @hidden */
85
90
  export const raffleTransform = (items: Raffle[]): TRaffle[] => {
86
91
  return items.map((item) => {
87
92
  return {
@@ -48,4 +48,4 @@ interface Raffle {
48
48
 
49
49
  }
50
50
 
51
- export { Raffle };
51
+ export { Raffle, RafflePublicMeta };
@@ -6,7 +6,7 @@ export interface RaffleClaimPrizeResponse extends ProtocolResponse {
6
6
  errMsg?: string
7
7
  }
8
8
 
9
-
9
+ /** @hidden */
10
10
  export const raffleClaimPrizeResponseTransform = (info: RaffleClaimPrizeResponse): TransformedRaffleClaimPrizeResponse => {
11
11
  return {
12
12
  errorCode: info.errCode,
@@ -119,4 +119,4 @@ interface RafflePrize {
119
119
  winners: RafflePrizeWinner[];
120
120
  }
121
121
 
122
- export { RafflePrize }
122
+ export { RafflePrize, RafflePrizePublicMeta, RafflePrizeWinner }
@@ -12,3 +12,4 @@ export * from './GetRaffleDrawRunsHistoryRequest';
12
12
  export * from './GetRaffleDrawRunsHistoryResponse';
13
13
  export * from './RaffleClaimPrizeRequest';
14
14
  export * from './RaffleClaimPrizeResponse';
15
+ export * from './RaffleDrawPublicMeta';
@@ -377,7 +377,7 @@ class SmarticoAPI {
377
377
  ClassId.GET_TRANSLATIONS_REQUEST,
378
378
  {
379
379
  lang_code: DEFAULT_LANG_EN,
380
- hash_code: 0,
380
+ hash_code: null,
381
381
  areas,
382
382
  },
383
383
  );
@@ -390,7 +390,7 @@ class SmarticoAPI {
390
390
  ClassId.GET_TRANSLATIONS_REQUEST,
391
391
  {
392
392
  lang_code,
393
- hash_code: 0,
393
+ hash_code: null,
394
394
  areas,
395
395
  },
396
396
  );
@@ -15,4 +15,8 @@ export enum BuyStoreItemErrorCode {
15
15
  SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006,
16
16
  /** Failed to buy item because no more items are available */
17
17
  SHOP_FAILED_POOL_EMPTY = 11009,
18
+ /** User doesn't have enough gems on balance */
19
+ SHOP_NO_BALANCE_GEMS = 11011,
20
+ /** User doesn't have enough diamonds on balance */
21
+ SHOP_NO_BALANCE_DIAMONDS = 11012,
18
22
  }
@@ -1,7 +1,7 @@
1
1
  import { BuyStoreItemErrorCode } from '../Store';
2
- import { MiniGamePrizeTypeName, SAWAcknowledgeTypeName, SAWBuyInTypeName, SAWGameTypeName, SAWSpinErrorCode, SAWTemplate, SAWTemplateUI } from '../MiniGames';
3
- import { TournamentRegistrationError, TournamentRegistrationStatusName, TournamentRegistrationTypeName } from '../Tournaments';
4
- import { AchCategory, AchievementAvailabilityStatus } from '../Missions';
2
+ import { MiniGamePrizeTypeName, SAWAcknowledgeTypeName, SAWAskForUsername, SAWBuyInType, SAWBuyInTypeName, SAWDoAknowledgeResponse, SAWGameLayout, SAWGameType, SAWGameTypeName, SAWPrize, SAWSpinErrorCode, SAWTemplate, SAWTemplateUI, SAWWheelLayout } from '../MiniGames';
3
+ import { Tournament, TournamentRegistrationError, TournamentRegistrationStatusName, TournamentRegistrationTypeName } from '../Tournaments';
4
+ import { AchCategory, AchievementAvailabilityStatus, UserAchievement } from '../Missions';
5
5
  import { LeaderBoardPeriodType } from '../Leaderboard';
6
6
  import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter } from '../CustomSections';
7
7
  import { BonusStatus , BonusTemplateMetaMap, BonusMetaMap} from '../Bonuses';
@@ -9,6 +9,7 @@ import { PrizeModifiers } from '../MiniGames/PrizeModifiers';
9
9
  import { InboxCategories } from '../Inbox/InboxCategories';
10
10
  import { RaffleDrawInstanceState, RaffleDrawTypeExecution } from '../Raffle';
11
11
  import { JackPotWinner } from '../Jackpots/JackPotWinner';
12
+ import { GetRelatedAchTourResponse } from '../Missions/GetRelatedAchTourResponse';
12
13
 
13
14
 
14
15
  type TRibbon = 'sale' | 'hot' | 'new' | 'vip' | string;
@@ -1189,3 +1190,4 @@ export interface TransformedRaffleClaimPrizeResponse {
1189
1190
  }
1190
1191
 
1191
1192
 
1193
+ export { SAWAcknowledgeTypeName, PrizeModifiers, SAWTemplateUI, InboxCategories, AchCustomSectionType, SAWAskForUsername, SAWGameLayout }
@@ -1,22 +0,0 @@
1
- export declare enum MarketsValueType {
2
- HomeTeam = "1",
3
- AwayTeam = "2",
4
- Draw = "x",
5
- HomeTeamHomeTeam = "1/1",
6
- HomeTeamDraw = "1/x",
7
- HomeTeamAwayTeam = "1/2",
8
- DrawHomeTeam = "x/1",
9
- DrawDraw = "x/x",
10
- DrawAwayTeam = "x/2",
11
- AwayTeamHomeTeam = "2/1",
12
- AwayTeamDraw = "2/x",
13
- AwayTeamAwayTeam = "2/2",
14
- Yes = "yes",
15
- No = "no",
16
- Odd = "odd",
17
- Even = "even",
18
- HomeOdd = "1/odd",
19
- HomeEven = "1/even",
20
- AwayOdd = "2/odd",
21
- AwayEven = "2/even"
22
- }
@@ -1,5 +0,0 @@
1
- import { ProtocolResponse } from '../Base/ProtocolResponse';
2
- import { RaffleDraw } from './RaffleDraw';
3
- export interface GetDrawResponse extends ProtocolResponse {
4
- draw: RaffleDraw;
5
- }
@@ -1,23 +0,0 @@
1
- import { ClassId } from "./Base/ClassId";
2
- import { SAWGetTemplatesResponse } from './MiniGames/SAWGetTemplatesResponse';
3
- import { SAWTemplate } from './MiniGames/SAWTemplate';
4
- import { ILogger } from './ILogger';
5
- interface IOptions {
6
- logger?: ILogger;
7
- logCIDs?: ClassId[];
8
- logHTTPTiming?: boolean;
9
- }
10
- declare class SmarticoPublicApi {
11
- private label_api_key;
12
- private brand_api_key;
13
- private publicUrl;
14
- private logger;
15
- private logCIDs;
16
- private logHTTPTiming;
17
- constructor(label_api_key: string, brand_api_key: string, options?: IOptions);
18
- private send;
19
- private buildMessage;
20
- miniGamesGetTemplates(user_ext_id: string): Promise<SAWGetTemplatesResponse>;
21
- miniGamesFormatTemplatesForWidget(templates: SAWTemplate[], pointsBalance: number): any[];
22
- }
23
- export { SmarticoPublicApi };
@@ -1,10 +0,0 @@
1
- export declare enum BuyShopItemErrorCode {
2
- FAILED_TO_BUY_SHOP_ITEM = 121,
3
- SHOP_NO_BALANCE = 11000,
4
- SHOP_WRONG_LABEL = 11001,
5
- SHOP_FAILED_TO_BUY_BONUS = 11002,
6
- SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION = 11003,
7
- SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION_PURSHASE = 11004,
8
- SHOP_FAILED_TO_BUY_MATCHING_BONUS = 11005,
9
- SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006
10
- }
@@ -1,4 +0,0 @@
1
- import { ProtocolMessage } from "../Base/ProtocolMessage";
2
- export interface BuyShopItemRequest extends ProtocolMessage {
3
- itemId: number;
4
- }
@@ -1,4 +0,0 @@
1
- import { ProtocolResponse } from "../Base/ProtocolResponse";
2
- export interface BuyShopItemResponse extends ProtocolResponse {
3
- success?: boolean;
4
- }
@@ -1,5 +0,0 @@
1
- import { ProtocolResponse } from "../Base/ProtocolResponse";
2
- import { ShopCategory } from "./ShopCategory";
3
- export interface GetCategoriesShopResponse extends ProtocolResponse {
4
- categories: ShopCategory[];
5
- }
@@ -1,5 +0,0 @@
1
- import { ProtocolResponse } from "../Base/ProtocolResponse";
2
- import { ShopItem } from "./ShopItem";
3
- export interface GetShopItemsResponse extends ProtocolResponse {
4
- items: ShopItem[];
5
- }
@@ -1,5 +0,0 @@
1
- import { ShopCategoryPublicMeta } from "./ShopCategoryPublicMeta";
2
- export interface ShopCategory {
3
- id?: number;
4
- publicMeta?: ShopCategoryPublicMeta;
5
- }
@@ -1,4 +0,0 @@
1
- export interface ShopCategoryPublicMeta {
2
- name?: string;
3
- order?: number;
4
- }
@@ -1,9 +0,0 @@
1
- import { ShopItemPublicMeta } from "./ShopItemPublicMeta";
2
- import { ShopItemType } from "./ShopItemType";
3
- export interface ShopItem {
4
- id: number;
5
- itemTypeId: ShopItemType;
6
- itemPublicMeta: ShopItemPublicMeta;
7
- categoryIds?: number[];
8
- canBuy?: boolean;
9
- }
@@ -1,10 +0,0 @@
1
- export interface ShopItemPublicMeta {
2
- price: string;
3
- image_url: string;
4
- name: string;
5
- description: string;
6
- label_tag: string;
7
- limit_message: string;
8
- priority: number;
9
- related_items: number[];
10
- }
@@ -1,4 +0,0 @@
1
- export declare enum ShopItemType {
2
- Bonus = 1,
3
- Manual = 2
4
- }
@@ -1,6 +0,0 @@
1
- import { StoreItem } from "./StoreItem";
2
- interface StorItemPruchased extends StoreItem {
3
- purchase_ts: number;
4
- purchase_points_amount: number;
5
- }
6
- export { StorItemPruchased };
@@ -1,5 +0,0 @@
1
- import { ErrorCodes, ErrorCodesGame } from './types/ErrorCodes';
2
- import { GBaseRequest } from './types/GRequest';
3
- import { GResponseBase, GResponse } from './types/GResponse';
4
- import { SAWSpinErrorCode } from './types/SmarticoProto/SAW/SAWDoSpinResponse';
5
- export { ErrorCodes, ErrorCodesGame, SAWSpinErrorCode, GBaseRequest, GResponseBase, GResponse, };