@smartico/public-api 0.0.151 → 0.0.153
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/Base/ClassId.d.ts +3 -0
- package/dist/MiniGames/SAWAcknowledgeSpinPushRequest.d.ts +5 -0
- package/dist/MiniGames/SAWEventSawPush.d.ts +5 -0
- package/dist/Missions/AchievementTaskPublicMeta.d.ts +1 -0
- package/dist/Missions/GetRelatedAchTourRequest.d.ts +4 -0
- package/dist/Missions/GetRelatedAchTourResponse.d.ts +7 -0
- package/dist/Missions/ReloadAchievementsEvent.d.ts +2 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +6 -2
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/TMissionOrBadgeTask.md +10 -1
- package/package.json +1 -1
- package/src/Base/ClassId.ts +4 -0
- package/src/MiniGames/SAWAcknowledgeSpinPushRequest.ts +7 -0
- package/src/MiniGames/SAWEventSawPush.ts +7 -0
- package/src/Missions/AchievementTaskPublicMeta.ts +1 -0
- package/src/Missions/GetRelatedAchTourRequest.ts +6 -0
- package/src/Missions/GetRelatedAchTourResponse.ts +10 -0
- package/src/Missions/ReloadAchievementsEvent.ts +4 -1
- package/src/Missions/UserAchievement.ts +1 -0
- package/src/SmarticoAPI.ts +1 -1
package/dist/index.modern.mjs
CHANGED
|
@@ -82,6 +82,8 @@ var ClassId;
|
|
|
82
82
|
ClassId[ClassId["ACHIEVEMENT_CLAIM_PRIZE_RESPONSE"] = 540] = "ACHIEVEMENT_CLAIM_PRIZE_RESPONSE";
|
|
83
83
|
ClassId[ClassId["ACH_SHOP_ITEM_HISTORY_REQUEST"] = 541] = "ACH_SHOP_ITEM_HISTORY_REQUEST";
|
|
84
84
|
ClassId[ClassId["ACH_SHOP_ITEM_HISTORY_RESPONSE"] = 542] = "ACH_SHOP_ITEM_HISTORY_RESPONSE";
|
|
85
|
+
ClassId[ClassId["GET_RELATED_ACH_N_TOURNAMENTS_REQUEST"] = 543] = "GET_RELATED_ACH_N_TOURNAMENTS_REQUEST";
|
|
86
|
+
ClassId[ClassId["GET_RELATED_ACH_N_TOURNAMENTS_RESPONSE"] = 544] = "GET_RELATED_ACH_N_TOURNAMENTS_RESPONSE";
|
|
85
87
|
/*
|
|
86
88
|
!Important, if adding new messages that are 'acting' on behalf of the client,
|
|
87
89
|
you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
|
|
@@ -101,6 +103,7 @@ var ClassId;
|
|
|
101
103
|
ClassId[ClassId["SAW_PRIZE_DROP_WIN_PUSH"] = 708] = "SAW_PRIZE_DROP_WIN_PUSH";
|
|
102
104
|
ClassId[ClassId["SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST"] = 709] = "SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST";
|
|
103
105
|
ClassId[ClassId["SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE"] = 710] = "SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE";
|
|
106
|
+
ClassId[ClassId["SAW_AKNOWLEDGE_SPIN_PUSH"] = 711] = "SAW_AKNOWLEDGE_SPIN_PUSH";
|
|
104
107
|
/*
|
|
105
108
|
!Important, if adding new messages that are 'acting' on behalf of the client,
|
|
106
109
|
you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
|
|
@@ -820,7 +823,8 @@ const UserAchievementTransform = items => {
|
|
|
820
823
|
is_completed: t.isCompleted,
|
|
821
824
|
progress: t.userProgress,
|
|
822
825
|
execution_count_expected: t.executionCount,
|
|
823
|
-
execution_count_actual: t.userExecutedCount
|
|
826
|
+
execution_count_actual: t.userExecutedCount,
|
|
827
|
+
display_progress_as_count: t.task_public_meta.display_progress_as_count
|
|
824
828
|
};
|
|
825
829
|
}),
|
|
826
830
|
related_games: (r.related_games || []).map(g => ({
|
|
@@ -1991,7 +1995,7 @@ class SmarticoAPI {
|
|
|
1991
1995
|
request: message,
|
|
1992
1996
|
error: e.message
|
|
1993
1997
|
});
|
|
1994
|
-
throw new Error(`Failed to make request to smartico channel, L1. ${e.message}`);
|
|
1998
|
+
throw new Error(`Failed to make request to smartico channel, L2 L1. ${e.message}`);
|
|
1995
1999
|
}
|
|
1996
2000
|
if (this.logCIDs.includes(message.cid)) {
|
|
1997
2001
|
this.logger.info('RES', result);
|