@smartico/public-api 0.0.151 → 0.0.152
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/dist/Missions/AchievementTaskPublicMeta.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +2 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/TMissionOrBadgeTask.md +10 -1
- package/package.json +1 -1
- package/src/Missions/AchievementTaskPublicMeta.ts +1 -0
- package/src/Missions/UserAchievement.ts +1 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Interface: TMissionOrBadgeTask
|
|
2
2
|
|
|
3
|
-
TMissionOrBadgeTask describes the information of tasks that
|
|
3
|
+
TMissionOrBadgeTask describes the information of tasks that belongs to mission or badge. See also TMissionOrBadge
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
@@ -57,3 +57,12 @@ ___
|
|
|
57
57
|
• `Optional` **execution\_count\_actual**: `number`
|
|
58
58
|
|
|
59
59
|
This is the number of times the user has executed 'activity' of the task. e.g. he bet 5 times out of 100. Here will be 5
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
___
|
|
63
|
+
|
|
64
|
+
### display\_progress\_as\_count
|
|
65
|
+
|
|
66
|
+
• `Optional` **display\_progress\_as\_count**: `boolean`
|
|
67
|
+
|
|
68
|
+
If enabled, mission progress will show as a count (35/100) instead of a %. For missions with multiple tasks, each task will display progress as a count, while the overall progress bar will still show a %.
|
package/package.json
CHANGED
|
@@ -86,6 +86,7 @@ export const UserAchievementTransform = (items: UserAchievement[]): TMissionOrBa
|
|
|
86
86
|
progress: t.userProgress,
|
|
87
87
|
execution_count_expected: t.executionCount,
|
|
88
88
|
execution_count_actual: t.userExecutedCount,
|
|
89
|
+
display_progress_as_count: t.task_public_meta.display_progress_as_count,
|
|
89
90
|
})),
|
|
90
91
|
related_games: (r.related_games || []).map(g => ({
|
|
91
92
|
ext_game_id: g.ext_game_id,
|