@smartico/public-api 0.0.249 → 0.0.250

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.249",
3
+ "version": "0.0.250",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,6 +11,7 @@ export interface StoreItem {
11
11
  categoryIds?: number[];
12
12
  canBuy?: boolean;
13
13
  shopPool: number;
14
+ activeTillDate?: number;
14
15
  }
15
16
 
16
17
  const mapPurchaseType = (purchaseType: StoreItemPurchaseType) => {
@@ -47,6 +48,7 @@ export const StoreItemTransform = (items: StoreItem[]): TStoreItem[] => {
47
48
  category_ids: r.categoryIds ?? [],
48
49
  pool: r.shopPool,
49
50
  custom_data: IntUtils.JsonOrText(r.itemPublicMeta.custom_data),
51
+ active_till_date: r.activeTillDate
50
52
  };
51
53
  return x;
52
54
  });
@@ -13,4 +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
21
  }
@@ -474,6 +474,8 @@ export interface TStoreItem {
474
474
  purchased_this_month?: boolean;
475
475
  /** The type of the purchase */
476
476
  purchase_type: 'points' | 'gems' | 'diamonds';
477
+ /** The date when the store item will be available till */
478
+ active_till_date?: number;
477
479
  }
478
480
 
479
481
  /**