@smartico/public-api 0.0.428 → 0.0.430

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.428",
3
+ "version": "0.0.430",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -128,6 +128,7 @@ export const UserAchievementTransform = (items: UserAchievement[]): TMissionOrBa
128
128
  is_completed: t.isCompleted,
129
129
  progress: t.userProgress,
130
130
  execution_count_expected: t.executionCount,
131
+ priority: t.task_public_meta.priority ?? 0,
131
132
  execution_count_actual: t.userExecutedCount,
132
133
  display_progress_as_count: t.task_public_meta.display_progress_as_count,
133
134
  stage_image: t.task_public_meta.stage_image,
@@ -54,7 +54,7 @@ export const StoreItemPurchasedTransform = (items: StoreItemPurchased[]): TStore
54
54
  purchased_today: purchasedToday,
55
55
  purchased_this_week: purchasedThisWeek,
56
56
  purchased_this_month: purchasedThisMonth,
57
- custom_data: r.itemPublicMeta.custom_data,
57
+ custom_data: IntUtils.JsonOrText(r.itemPublicMeta.custom_data),
58
58
  show_timer: r.itemPublicMeta.show_timer,
59
59
  related_games: (r.relatedGames?.filter((g) => g.game_public_meta.enabled) || []).map((g, i) => ({
60
60
  ext_game_id: g.ext_game_id,