@smartico/public-api 0.0.186 → 0.0.187

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.
@@ -11,6 +11,8 @@ export interface InboxMessageBody {
11
11
  inbox_cta_text: string;
12
12
  action: string;
13
13
  }[];
14
+ show_preview?: boolean;
15
+ show_duration_sec?: number;
14
16
  }
15
17
  export interface InboxMessage {
16
18
  createDate: string;
@@ -9,4 +9,5 @@ export interface StoreItemPublicMeta {
9
9
  priority: number;
10
10
  related_items: number[];
11
11
  hint_text: string;
12
+ custom_data: string;
12
13
  }
@@ -285,7 +285,7 @@ export declare class WSAPI {
285
285
  * **Visitor mode: not supported**
286
286
  */
287
287
  playMiniGame(template_id: number, { onUpdate }?: {
288
- onUpdate?: (data: TMissionOrBadge[]) => void;
288
+ onUpdate?: (data: TMiniGameTemplate[]) => void;
289
289
  }): Promise<TMiniGamePlayResult>;
290
290
  /**
291
291
  * Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
@@ -359,6 +359,8 @@ export interface TStoreItem {
359
359
  category_ids: number[];
360
360
  /** Number of items in the pool avaliable for the purchase.*/
361
361
  pool?: number;
362
+ /** The custom data of the store item defined by operator. Can be a JSON object, string or number */
363
+ custom_data: any;
362
364
  /** The T&C text for the store item */
363
365
  hint_text?: string;
364
366
  /** Purchase time to show in purchase history screen */
package/dist/index.js CHANGED
@@ -807,7 +807,8 @@ var StoreItemTransform = function StoreItemTransform(items) {
807
807
  type: StoreItemTypeNamed(r.itemTypeId),
808
808
  can_buy: r.canBuy,
809
809
  category_ids: (_r$categoryIds = r.categoryIds) != null ? _r$categoryIds : [],
810
- pool: r.shopPool
810
+ pool: r.shopPool,
811
+ custom_data: IntUtils.JsonOrText(r.itemPublicMeta.custom_data)
811
812
  };
812
813
  return x;
813
814
  });