@smartico/public-api 0.0.82 → 0.0.84

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.
@@ -28,9 +28,9 @@ Name of the mission or badge, translated to the user language
28
28
 
29
29
  ___
30
30
 
31
- ### desription
31
+ ### description
32
32
 
33
- • **desription**: `string`
33
+ • **description**: `string`
34
34
 
35
35
  Description of the mission or badge, translated to the user language
36
36
 
@@ -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.82",
3
+ "version": "0.0.84",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,7 +33,7 @@ export const UserAchievementTransform = (items: UserAchievement[]): TMissionOrBa
33
33
  {
34
34
  id: r.ach_id,
35
35
  name: r.ach_public_meta.name,
36
- desription: r.ach_public_meta.description,
36
+ description: r.ach_public_meta.description,
37
37
  unlock_mission_description: r.ach_public_meta.unlock_mission_description,
38
38
  image: r.ach_public_meta.image_url,
39
39
  is_completed: r.isCompleted,
@@ -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
  }))
@@ -332,7 +332,7 @@ export interface TMissionOrBadge {
332
332
  /** Name of the mission or badge, translated to the user language */
333
333
  name: string;
334
334
  /** Description of the mission or badge, translated to the user language */
335
- desription: string;
335
+ description: string;
336
336
  /** Description of the mission reward if defined */
337
337
  reward: string;
338
338
  /** URL of the image of the mission or badge */
@@ -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
  /**