@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.
@@ -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: boolean;
16
- cant_buy_message: string;
17
- discount_prize: number;
18
- discount_prize_ribbon: string;
19
- custom_ribbon_image: string;
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
  }
@@ -55,3 +55,11 @@ ___
55
55
  • **SAW\_VISITOR\_STOP\_SPIN\_REQUEST** = ``-40001``
56
56
 
57
57
  Special code for the 'visitor' mode
58
+
59
+ ___
60
+
61
+ ### SAW\_NOT\_IN\_SEGMENT
62
+
63
+ • **SAW\_NOT\_IN\_SEGMENT** = ``40009``
64
+
65
+ User is not in the segment
@@ -35,3 +35,9 @@ ___
35
35
  ### raf\_won\_id
36
36
 
37
37
  • **raf\_won\_id**: `number`
38
+
39
+ ___
40
+
41
+ ### claimed\_date
42
+
43
+ • **claimed\_date**: `number`
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.250",
3
+ "version": "0.0.252",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,16 +1,18 @@
1
1
  export interface RaffleDrawPublicMeta {
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 icon that represents the draw */
9
- icon_url: string;
10
- /** URL of the background image that will be used in the draw list item */
11
- background_image_url: string;
12
- /** URL of the moible background image that will be used in the draw list item */
13
- background_image_url_mobile: string;
14
- /** Show if the draw is grand and is marked as special */
15
- is_grand: boolean;
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
  }
@@ -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: boolean;
17
- cant_buy_message: string;
18
- discount_prize: number;
19
- discount_prize_ribbon: string;
20
- custom_ribbon_image: string;
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
  }