@smartico/public-api 0.0.249 → 0.0.251

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.
@@ -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[];
@@ -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
  });