@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.
package/package.json
CHANGED
|
@@ -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,
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -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.
|