@smartico/public-api 0.0.80 → 0.0.83

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.
@@ -33,3 +33,11 @@ ___
33
33
  • **progress**: `number`
34
34
 
35
35
  The progress of the task in percents
36
+
37
+ ___
38
+
39
+ ### points\_reward
40
+
41
+ • **points\_reward**: `number`
42
+
43
+ Reward for completing the task in points
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.80",
3
+ "version": "0.0.83",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -55,6 +55,7 @@ export const UserAchievementTransform = (items: UserAchievement[]): TMissionOrBa
55
55
  .map( t => ({
56
56
  id: t.task_id,
57
57
  name: t.task_public_meta?.name,
58
+ points_reward: t.points_reward,
58
59
  is_completed: t.isCompleted,
59
60
  progress: t.userProgress,
60
61
  }))
@@ -25,6 +25,8 @@ export interface TournamentPublicMeta {
25
25
 
26
26
  featured?: boolean;
27
27
 
28
+ position?: number;
29
+
28
30
  // custom data as string or JSON string that can be used in UIWidget
29
31
  custom_data?: string;
30
32
  }
@@ -389,6 +389,8 @@ export interface TMissionOrBadgeTask {
389
389
  is_completed: boolean,
390
390
  /** The progress of the task in percents */
391
391
  progress: number
392
+ /** Reward for completing the task in points */
393
+ points_reward: number
392
394
  }
393
395
 
394
396
  /**