@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.
- package/dist/Inbox/InboxMessage.d.ts +2 -0
- package/dist/Store/StoreItemPublicMeta.d.ts +1 -0
- package/dist/WSAPI/WSAPI.d.ts +1 -1
- package/dist/WSAPI/WSAPITypes.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +2 -1
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Inbox/InboxMessage.ts +18 -0
- package/src/Store/StoreItem.ts +2 -0
- package/src/Store/StoreItemPublicMeta.ts +1 -0
- package/src/WSAPI/WSAPI.ts +1 -1
- package/src/WSAPI/WSAPITypes.ts +3 -0
package/dist/WSAPI/WSAPI.d.ts
CHANGED
|
@@ -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:
|
|
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
|
});
|