@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.392",
3
+ "version": "0.0.394",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -42,6 +42,7 @@ export const prizeTransform = (items: RafflePrize[]): TRafflePrize[] => {
42
42
  name: item.public_meta.name,
43
43
  description: item.public_meta.description,
44
44
  image_url: item.public_meta.image_url,
45
+ custom_data: item.public_meta.custom_data,
45
46
  prizes_per_run: item.prizes_per_run,
46
47
  prizes_per_run_actual: item.prizes_per_run_actual,
47
48
  chances_to_win_perc: item.chances_to_win_perc,
@@ -74,7 +74,7 @@ export class WSAPI extends WSAPIInbox {
74
74
  data?.props?.ach_points_balance !== undefined ||
75
75
  data?.props?.ach_gems_balance !== undefined ||
76
76
  data?.props?.ach_diamonds_balance !== undefined
77
- ) && OCache.get(onUpdateContextKey.ActivityLog, ECacheContext.WSAPI)) {
77
+ ) && this.onUpdateCallback.get(onUpdateContextKey.ActivityLog)) {
78
78
  this.notifyActivityLogUpdate();
79
79
  }
80
80
  OCache.clear(ECacheContext.WSAPI, onUpdateContextKey.CurrentLevel);
@@ -1402,6 +1402,11 @@ export interface TRafflePrize {
1402
1402
  description: string;
1403
1403
  /** URL of the image that represents the prize, 256x256px */
1404
1404
  image_url: string;
1405
+ /**
1406
+ * Custom data field set in the backoffice prize setup.
1407
+ * Can be used to build custom UI for gamification.
1408
+ */
1409
+ custom_data?: string;
1405
1410
  /**
1406
1411
  * The number of prizes available per run of the draw.
1407
1412
  * E.g. if the draw is run daily, this is the number of prizes available each day, for example 3 iPhones.