@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/dist/Store/StoreItem.d.ts +1 -0
- package/dist/Store/StoreItemPublicMeta.d.ts +5 -0
- 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/Store/StoreItem.ts +2 -0
- package/src/Store/StoreItemPublicMeta.ts +5 -0
- package/src/WSAPI/WSAPITypes.ts +2 -0
|
@@ -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
|
});
|