@smartico/public-api 0.0.250 → 0.0.252
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/dist/Raffle/RaffleDrawPublicMeta.d.ts +2 -0
- package/dist/SmarticoLib/index.d.ts +6 -0
- package/dist/Store/StoreItemPublicMeta.d.ts +5 -5
- package/docs/enums/SAWSpinErrorCode.md +8 -0
- package/docs/interfaces/RafflePrizeWinner.md +6 -0
- package/docs/interfaces/TMiniGamePrize.md +8 -0
- package/docs/interfaces/TStoreItem.md +8 -0
- package/package.json +1 -1
- package/src/Raffle/RaffleDrawPublicMeta.ts +16 -14
- package/src/SmarticoLib/index.ts +6 -0
- package/src/Store/StoreItemPublicMeta.ts +5 -5
|
@@ -5,6 +5,8 @@ export interface RaffleDrawPublicMeta {
|
|
|
5
5
|
description: string;
|
|
6
6
|
/** URL of the image that represents the draw */
|
|
7
7
|
image_url: string;
|
|
8
|
+
/** URL of the moible image that represents the draw */
|
|
9
|
+
image_url_mobile: string;
|
|
8
10
|
/** URL of the icon that represents the draw */
|
|
9
11
|
icon_url: string;
|
|
10
12
|
/** URL of the background image that will be used in the draw list item */
|
|
@@ -263,6 +263,11 @@ export interface StoreItemPublicMeta {
|
|
|
263
263
|
priority: number;
|
|
264
264
|
related_items: number[];
|
|
265
265
|
hint_text: string;
|
|
266
|
+
show_timer?: boolean;
|
|
267
|
+
cant_buy_message?: string;
|
|
268
|
+
discount_prize?: number;
|
|
269
|
+
discount_prize_ribbon?: string;
|
|
270
|
+
custom_ribbon_image?: string;
|
|
266
271
|
}
|
|
267
272
|
declare enum StoreItemType {
|
|
268
273
|
Bonus = 1,
|
|
@@ -275,6 +280,7 @@ export interface StoreItem {
|
|
|
275
280
|
categoryIds?: number[];
|
|
276
281
|
canBuy?: boolean;
|
|
277
282
|
shopPool: number;
|
|
283
|
+
activeTillDate?: number;
|
|
278
284
|
}
|
|
279
285
|
export interface GetStoreItemsResponse extends ProtocolResponse {
|
|
280
286
|
items: StoreItem[];
|
|
@@ -12,9 +12,9 @@ export interface StoreItemPublicMeta {
|
|
|
12
12
|
related_items: number[];
|
|
13
13
|
hint_text: string;
|
|
14
14
|
custom_data: string;
|
|
15
|
-
show_timer
|
|
16
|
-
cant_buy_message
|
|
17
|
-
discount_prize
|
|
18
|
-
discount_prize_ribbon
|
|
19
|
-
custom_ribbon_image
|
|
15
|
+
show_timer?: boolean;
|
|
16
|
+
cant_buy_message?: string;
|
|
17
|
+
discount_prize?: number;
|
|
18
|
+
discount_prize_ribbon?: string;
|
|
19
|
+
custom_ribbon_image?: string;
|
|
20
20
|
}
|
|
@@ -234,3 +234,11 @@ ___
|
|
|
234
234
|
• `Optional` **hide\_prize\_from\_history**: `boolean`
|
|
235
235
|
|
|
236
236
|
When enabled, you can hide prize from prize history
|
|
237
|
+
|
|
238
|
+
___
|
|
239
|
+
|
|
240
|
+
### requirements\_to\_get\_prize
|
|
241
|
+
|
|
242
|
+
• `Optional` **requirements\_to\_get\_prize**: `string`
|
|
243
|
+
|
|
244
|
+
Requirements to claim the prize (lootbox specific)
|
|
@@ -172,3 +172,11 @@ ___
|
|
|
172
172
|
• **purchase\_type**: ``"points"`` \| ``"gems"`` \| ``"diamonds"``
|
|
173
173
|
|
|
174
174
|
The type of the purchase
|
|
175
|
+
|
|
176
|
+
___
|
|
177
|
+
|
|
178
|
+
### active\_till\_date
|
|
179
|
+
|
|
180
|
+
• `Optional` **active\_till\_date**: `number`
|
|
181
|
+
|
|
182
|
+
The date when the store item will be available till
|
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
export interface RaffleDrawPublicMeta {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
/** Name of the draw, e.g. 'Daily draw' */
|
|
3
|
+
name: string;
|
|
4
|
+
/** Description of the draw */
|
|
5
|
+
description: string;
|
|
6
|
+
/** URL of the image that represents the draw */
|
|
7
|
+
image_url: string;
|
|
8
|
+
/** URL of the moible image that represents the draw */
|
|
9
|
+
image_url_mobile: string;
|
|
10
|
+
/** URL of the icon that represents the draw */
|
|
11
|
+
icon_url: string;
|
|
12
|
+
/** URL of the background image that will be used in the draw list item */
|
|
13
|
+
background_image_url: string;
|
|
14
|
+
/** URL of the moible background image that will be used in the draw list item */
|
|
15
|
+
background_image_url_mobile: string;
|
|
16
|
+
/** Show if the draw is grand and is marked as special */
|
|
17
|
+
is_grand: boolean;
|
|
16
18
|
}
|
package/src/SmarticoLib/index.ts
CHANGED
|
@@ -265,6 +265,11 @@ export interface StoreItemPublicMeta {
|
|
|
265
265
|
priority: number;
|
|
266
266
|
related_items: number[];
|
|
267
267
|
hint_text: string;
|
|
268
|
+
show_timer?: boolean;
|
|
269
|
+
cant_buy_message?: string;
|
|
270
|
+
discount_prize?: number;
|
|
271
|
+
discount_prize_ribbon?: string;
|
|
272
|
+
custom_ribbon_image?: string;
|
|
268
273
|
}
|
|
269
274
|
declare enum StoreItemType {
|
|
270
275
|
Bonus = 1,
|
|
@@ -277,6 +282,7 @@ export interface StoreItem {
|
|
|
277
282
|
categoryIds?: number[];
|
|
278
283
|
canBuy?: boolean;
|
|
279
284
|
shopPool: number;
|
|
285
|
+
activeTillDate?: number;
|
|
280
286
|
}
|
|
281
287
|
export interface GetStoreItemsResponse extends ProtocolResponse {
|
|
282
288
|
items: StoreItem[];
|
|
@@ -13,9 +13,9 @@ export interface StoreItemPublicMeta {
|
|
|
13
13
|
related_items: number[];
|
|
14
14
|
hint_text: string;
|
|
15
15
|
custom_data: string;
|
|
16
|
-
show_timer
|
|
17
|
-
cant_buy_message
|
|
18
|
-
discount_prize
|
|
19
|
-
discount_prize_ribbon
|
|
20
|
-
custom_ribbon_image
|
|
16
|
+
show_timer?: boolean;
|
|
17
|
+
cant_buy_message?: string;
|
|
18
|
+
discount_prize?: number;
|
|
19
|
+
discount_prize_ribbon?: string;
|
|
20
|
+
custom_ribbon_image?: string;
|
|
21
21
|
}
|