@smartico/public-api 0.0.393 → 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.
@@ -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,