@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.
@@ -8,5 +8,6 @@ export interface StoreItem {
8
8
  categoryIds?: number[];
9
9
  canBuy?: boolean;
10
10
  shopPool: number;
11
+ activeTillDate?: number;
11
12
  }
12
13
  export declare const StoreItemTransform: (items: StoreItem[]) => TStoreItem[];
@@ -12,4 +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
20
  }
@@ -439,6 +439,8 @@ export interface TStoreItem {
439
439
  purchased_this_month?: boolean;
440
440
  /** The type of the purchase */
441
441
  purchase_type: 'points' | 'gems' | 'diamonds';
442
+ /** The date when the store item will be available till */
443
+ active_till_date?: number;
442
444
  }
443
445
  /**
444
446
  * TAchCategory describes the badge category item. Each badge item can be assigned to 1 or more categories
package/dist/index.js CHANGED
@@ -929,7 +929,8 @@ var StoreItemTransform = function StoreItemTransform(items) {
929
929
  can_buy: r.canBuy,
930
930
  category_ids: (_r$categoryIds = r.categoryIds) != null ? _r$categoryIds : [],
931
931
  pool: r.shopPool,
932
- custom_data: IntUtils.JsonOrText(r.itemPublicMeta.custom_data)
932
+ custom_data: IntUtils.JsonOrText(r.itemPublicMeta.custom_data),
933
+ active_till_date: r.activeTillDate
933
934
  };
934
935
  return x;
935
936
  });