@smartico/public-api 0.0.392 → 0.0.394
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/WSAPI/WSAPITypes.d.ts +5 -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/Raffle/GetRafflesResponse.ts +1 -0
- package/src/WSAPI/WSAPI.ts +1 -1
- package/src/WSAPI/WSAPITypes.ts +5 -0
|
@@ -1328,6 +1328,11 @@ export interface TRafflePrize {
|
|
|
1328
1328
|
description: string;
|
|
1329
1329
|
/** URL of the image that represents the prize, 256x256px */
|
|
1330
1330
|
image_url: string;
|
|
1331
|
+
/**
|
|
1332
|
+
* Custom data field set in the backoffice prize setup.
|
|
1333
|
+
* Can be used to build custom UI for gamification.
|
|
1334
|
+
*/
|
|
1335
|
+
custom_data?: string;
|
|
1331
1336
|
/**
|
|
1332
1337
|
* The number of prizes available per run of the draw.
|
|
1333
1338
|
* E.g. if the draw is run daily, this is the number of prizes available each day, for example 3 iPhones.
|
package/dist/index.js
CHANGED
|
@@ -2290,6 +2290,7 @@ var prizeTransform = function prizeTransform(items) {
|
|
|
2290
2290
|
name: item.public_meta.name,
|
|
2291
2291
|
description: item.public_meta.description,
|
|
2292
2292
|
image_url: item.public_meta.image_url,
|
|
2293
|
+
custom_data: item.public_meta.custom_data,
|
|
2293
2294
|
prizes_per_run: item.prizes_per_run,
|
|
2294
2295
|
prizes_per_run_actual: item.prizes_per_run_actual,
|
|
2295
2296
|
chances_to_win_perc: item.chances_to_win_perc,
|
|
@@ -9932,7 +9933,7 @@ var WSAPI = /*#__PURE__*/function (_WSAPIInbox) {
|
|
|
9932
9933
|
if ((data == null || (_data$props = data.props) == null ? void 0 : _data$props.core_inbox_unread_count) !== undefined && (data == null || (_data$props2 = data.props) == null ? void 0 : _data$props2.core_inbox_unread_count) !== null) {
|
|
9933
9934
|
_this.updateInboxUnreadCount(data.props.core_inbox_unread_count);
|
|
9934
9935
|
}
|
|
9935
|
-
if (((data == null || (_data$props3 = data.props) == null ? void 0 : _data$props3.ach_points_balance) !== undefined || (data == null || (_data$props4 = data.props) == null ? void 0 : _data$props4.ach_gems_balance) !== undefined || (data == null || (_data$props5 = data.props) == null ? void 0 : _data$props5.ach_diamonds_balance) !== undefined) &&
|
|
9936
|
+
if (((data == null || (_data$props3 = data.props) == null ? void 0 : _data$props3.ach_points_balance) !== undefined || (data == null || (_data$props4 = data.props) == null ? void 0 : _data$props4.ach_gems_balance) !== undefined || (data == null || (_data$props5 = data.props) == null ? void 0 : _data$props5.ach_diamonds_balance) !== undefined) && _this.onUpdateCallback.get(onUpdateContextKey.ActivityLog)) {
|
|
9936
9937
|
_this.notifyActivityLogUpdate();
|
|
9937
9938
|
}
|
|
9938
9939
|
OCache.clear(exports.ECacheContext.WSAPI, onUpdateContextKey.CurrentLevel);
|