@smartico/public-api 0.0.305 → 0.0.307
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/Bonuses/BonusTemplateMetaMap.d.ts +1 -0
- package/dist/WSAPI/WSAPITypes.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/BonusTemplateMetaMap.md +8 -0
- package/package.json +1 -1
- package/src/Bonuses/BonusTemplateMetaMap.ts +1 -0
- package/src/Missions/UserAchievement.ts +1 -1
- package/src/WSAPI/WSAPITypes.ts +2 -0
|
@@ -854,6 +854,8 @@ export interface BonusTemplateMetaMap {
|
|
|
854
854
|
acknowledge: string;
|
|
855
855
|
/** Image URL of the bonus template*/
|
|
856
856
|
image_url: string;
|
|
857
|
+
/** Redirect URL of the bonus template*/
|
|
858
|
+
redirect_url?: string;
|
|
857
859
|
}
|
|
858
860
|
export interface BonusMetaMap {
|
|
859
861
|
/** Label and description of the bonus sent to the player*/
|
package/dist/index.js
CHANGED
|
@@ -1358,7 +1358,7 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
|
|
|
1358
1358
|
claim_button_action: r.ach_public_meta.claim_button_action
|
|
1359
1359
|
};
|
|
1360
1360
|
if (r.ach_status_id === exports.AchievementStatus.Recurring) {
|
|
1361
|
-
x.next_recurrence_date_ts = r.
|
|
1361
|
+
x.next_recurrence_date_ts = Date.now() + (r == null ? void 0 : r.milliseconds_till_available);
|
|
1362
1362
|
}
|
|
1363
1363
|
if (r.ach_status_id === exports.AchievementStatus.RecurringUponCompletion) {
|
|
1364
1364
|
x.completion_count = r.completed_count;
|