@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.
- package/dist/WSAPI/WSAPITypes.d.ts +3 -1
- 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/TMissionOrBadge.md +2 -2
- package/docs/interfaces/TMissionOrBadgeTask.md +8 -0
- package/package.json +1 -1
- package/src/Missions/UserAchievement.ts +2 -1
- package/src/WSAPI/WSAPITypes.ts +3 -1
|
@@ -290,7 +290,7 @@ export interface TMissionOrBadge {
|
|
|
290
290
|
/** Name of the mission or badge, translated to the user language */
|
|
291
291
|
name: string;
|
|
292
292
|
/** Description of the mission or badge, translated to the user language */
|
|
293
|
-
|
|
293
|
+
description: string;
|
|
294
294
|
/** Description of the mission reward if defined */
|
|
295
295
|
reward: string;
|
|
296
296
|
/** URL of the image of the mission or badge */
|
|
@@ -345,6 +345,8 @@ export interface TMissionOrBadgeTask {
|
|
|
345
345
|
is_completed: boolean;
|
|
346
346
|
/** The progress of the task in percents */
|
|
347
347
|
progress: number;
|
|
348
|
+
/** Reward for completing the task in points */
|
|
349
|
+
points_reward: number;
|
|
348
350
|
}
|
|
349
351
|
/**
|
|
350
352
|
* TMissionOptInResult describes the response of call to _smartico.api.requestMissionOptIn(mission_id) method
|
package/dist/index.js
CHANGED
|
@@ -598,7 +598,7 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
|
|
|
598
598
|
return {
|
|
599
599
|
id: r.ach_id,
|
|
600
600
|
name: r.ach_public_meta.name,
|
|
601
|
-
|
|
601
|
+
description: r.ach_public_meta.description,
|
|
602
602
|
unlock_mission_description: r.ach_public_meta.unlock_mission_description,
|
|
603
603
|
image: r.ach_public_meta.image_url,
|
|
604
604
|
is_completed: r.isCompleted,
|
|
@@ -622,6 +622,7 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
|
|
|
622
622
|
return {
|
|
623
623
|
id: t.task_id,
|
|
624
624
|
name: (_t$task_public_meta = t.task_public_meta) == null ? void 0 : _t$task_public_meta.name,
|
|
625
|
+
points_reward: t.points_reward,
|
|
625
626
|
is_completed: t.isCompleted,
|
|
626
627
|
progress: t.userProgress
|
|
627
628
|
};
|