Compare commits

..

No commits in common. "9fd2a9e6742affda0ff47c168aa874ab84dd79de" and "d63bab1bf43265ab20a75b612140c04d3434041b" have entirely different histories.

3 changed files with 7 additions and 11 deletions

8
package-lock.json generated
View File

@ -12,7 +12,7 @@
"copyfiles": "^2.4.1", "copyfiles": "^2.4.1",
"express": "^5", "express": "^5",
"mongoose": "^8.11.0", "mongoose": "^8.11.0",
"warframe-public-export-plus": "^0.5.38", "warframe-public-export-plus": "^0.5.37",
"warframe-riven-info": "^0.1.2", "warframe-riven-info": "^0.1.2",
"winston": "^3.17.0", "winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0" "winston-daily-rotate-file": "^5.0.0"
@ -4083,9 +4083,9 @@
} }
}, },
"node_modules/warframe-public-export-plus": { "node_modules/warframe-public-export-plus": {
"version": "0.5.38", "version": "0.5.37",
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.38.tgz", "resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.37.tgz",
"integrity": "sha512-yvc86eOmYPSnnU8LzLBhg/lR1AS1RHID24TqFHVcZuOzMYc934NL8Cv7rtllyefWAMyl7iA5x9tyXSuJWbi6CA==" "integrity": "sha512-atpTQ0IV0HF17rO2+Z+Vdv8nnnUxh5HhkcXBjc5iwY8tlvRgRWwHemq4PdA1bxR4tYFU5xoYjlgDe5D8ZfM4ew=="
}, },
"node_modules/warframe-riven-info": { "node_modules/warframe-riven-info": {
"version": "0.1.2", "version": "0.1.2",

View File

@ -17,7 +17,7 @@
"copyfiles": "^2.4.1", "copyfiles": "^2.4.1",
"express": "^5", "express": "^5",
"mongoose": "^8.11.0", "mongoose": "^8.11.0",
"warframe-public-export-plus": "^0.5.38", "warframe-public-export-plus": "^0.5.37",
"warframe-riven-info": "^0.1.2", "warframe-riven-info": "^0.1.2",
"winston": "^3.17.0", "winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0" "winston-daily-rotate-file": "^5.0.0"

View File

@ -29,11 +29,9 @@ import {
ExportWarframes, ExportWarframes,
ExportWeapons, ExportWeapons,
IInboxMessage, IInboxMessage,
IMissionReward,
IPowersuit, IPowersuit,
IRecipe, IRecipe,
IRegion, IRegion
TReward
} from "warframe-public-export-plus"; } from "warframe-public-export-plus";
import questCompletionItems from "@/static/fixed_responses/questCompletionRewards.json"; import questCompletionItems from "@/static/fixed_responses/questCompletionRewards.json";
@ -166,9 +164,7 @@ export const getKeyChainItems = ({ KeyChain, ChainStage }: IKeyChainRequest): st
return keyChainStage.itemsToGiveWhenTriggered; return keyChainStage.itemsToGiveWhenTriggered;
}; };
export const getLevelKeyRewards = ( export const getLevelKeyRewards = (levelKey: string) => {
levelKey: string
): { levelKeyRewards?: IMissionReward; levelKeyRewards2?: TReward[] } => {
if (!(levelKey in ExportKeys)) { if (!(levelKey in ExportKeys)) {
throw new Error(`LevelKey ${levelKey} not found`); throw new Error(`LevelKey ${levelKey} not found`);
} }