koishi-plugin-warframe 1.15.0 → 1.15.1
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/lib/index.d.ts +222 -153
- package/lib/index.js +1821 -1759
- package/lib/index.tsbuildinfo +1 -1
- package/lib/warframe/assets/zh.json +10389 -8971
- package/package.json +5 -5
package/lib/index.d.ts
CHANGED
|
@@ -736,17 +736,6 @@ declare module "warframe/assets/index" {
|
|
|
736
736
|
export const BaroParsed: BaroParsedItem[];
|
|
737
737
|
export const warframeAlias: Record<string, string[]>;
|
|
738
738
|
}
|
|
739
|
-
declare module "warframe/data/wf/arbitrationSchedule" {
|
|
740
|
-
import type { ArbitrationShort } from "warframe/types/index";
|
|
741
|
-
export const arbitrationSchedule: ArbitrationShort[];
|
|
742
|
-
}
|
|
743
|
-
declare module "warframe/data/wf/archonHunt" {
|
|
744
|
-
export function getArchonHuntModeName(): string;
|
|
745
|
-
export function getArchonHuntEnemyLevels(index: number): {
|
|
746
|
-
minLevel: number;
|
|
747
|
-
maxLevel: number;
|
|
748
|
-
};
|
|
749
|
-
}
|
|
750
739
|
declare module "warframe/infrastructure/wf/wf-api" {
|
|
751
740
|
import type WorldState from 'warframe-worldstate-parser';
|
|
752
741
|
import type { OracleBountyCycle, RawCalendarSeason, RawInvasion, RawSeasonInfo, RawSortie, RawSyndicateMission, RawWorldEvent } from "warframe/types/index";
|
|
@@ -776,11 +765,6 @@ declare module "warframe/infrastructure/wf/wf-api" {
|
|
|
776
765
|
[itemName: string]: VoidTraderItem;
|
|
777
766
|
}
|
|
778
767
|
}
|
|
779
|
-
declare module "warframe/data/wf/globalOracleBountyCycle" {
|
|
780
|
-
import type { AsyncCache, OracleBountyCycle } from "warframe/types/index";
|
|
781
|
-
export let globalOracleBountyCycle: AsyncCache<OracleBountyCycle | undefined>;
|
|
782
|
-
export function overrideGlobalOracleBountyCycle(cache: AsyncCache<OracleBountyCycle | undefined>): void;
|
|
783
|
-
}
|
|
784
768
|
declare module "warframe/infrastructure/wf/wf-export-adapter" {
|
|
785
769
|
import type { IRegion } from 'warframe-public-export-plus';
|
|
786
770
|
import type { RelicQuality, WFRegionShort } from "warframe/types/index";
|
|
@@ -842,44 +826,165 @@ declare module "warframe/infrastructure/wf/wfcd-adapter" {
|
|
|
842
826
|
}
|
|
843
827
|
declare module "warframe/data/wf/globalWorldState" {
|
|
844
828
|
import type WorldState from 'warframe-worldstate-parser';
|
|
845
|
-
import type { Fissure, RawCalendarSeason, RawSeasonInfo, RawSyndicateMission, RawWorldEvent } from "warframe/types/index";
|
|
829
|
+
import type { AsyncCache, Fissure, RawCalendarSeason, RawInvasion, RawSeasonInfo, RawSortie, RawSyndicateMission, RawWorldEvent } from "warframe/types/index";
|
|
846
830
|
type ParsedFissure = WorldState['fissures'][number];
|
|
847
|
-
export
|
|
848
|
-
export const globalWorldState: import("warframe").AsyncCache<{
|
|
831
|
+
export interface GlobalWorldStateData {
|
|
849
832
|
raw: WorldState;
|
|
850
833
|
syndicateMissionsRaw: RawSyndicateMission[];
|
|
851
834
|
seasonInfoRaw: RawSeasonInfo | undefined;
|
|
852
|
-
sortieRaw:
|
|
853
|
-
invasionsRaw:
|
|
835
|
+
sortieRaw: RawSortie | undefined;
|
|
836
|
+
invasionsRaw: RawInvasion[];
|
|
854
837
|
calendarRaw: RawCalendarSeason | undefined;
|
|
855
838
|
eventsRaw: RawWorldEvent[];
|
|
856
839
|
fissures: Fissure[];
|
|
857
840
|
spFissures: Fissure[];
|
|
858
841
|
rjFissures: Fissure[];
|
|
859
|
-
}
|
|
842
|
+
}
|
|
843
|
+
export function adaptFissure(fissure: ParsedFissure): Promise<Fissure>;
|
|
844
|
+
export function globalWorldStateFactory(json?: string): Promise<GlobalWorldStateData>;
|
|
845
|
+
export let globalWorldState: AsyncCache<GlobalWorldStateData>;
|
|
846
|
+
export function overrideGlobalWorldState(cache: AsyncCache<GlobalWorldStateData>): void;
|
|
847
|
+
}
|
|
848
|
+
declare module "warframe/infrastructure/wf/bounty-adapter" {
|
|
849
|
+
import type { BountyBoard, BountyLocation, BountyRewardRarity, OracleBountyCycle, RawSyndicateMission } from "warframe/types/index";
|
|
850
|
+
export const bountyLocationTag: Record<BountyLocation, string>;
|
|
851
|
+
/** Locations whose Jobs are empty in official WorldState; use browse.wf Oracle. */
|
|
852
|
+
export const oracleBountyLocations: Set<BountyLocation>;
|
|
853
|
+
/**
|
|
854
|
+
* Map drop probability to 铜/银/金 within one stage.
|
|
855
|
+
* Highest unique probability → bronze, lowest → gold, middle → silver.
|
|
856
|
+
* With only two buckets: highest → bronze, lower → silver.
|
|
857
|
+
*/
|
|
858
|
+
export function rarityFromStageProbabilities(probability: number, uniqueSortedDesc: number[]): BountyRewardRarity;
|
|
859
|
+
export function resolveExportItemNameZh(sourceKey: string): string;
|
|
860
|
+
export function adaptBountyBoard(location: BountyLocation, mission: RawSyndicateMission | undefined): BountyBoard | undefined;
|
|
861
|
+
export function findRawSyndicateMission(missions: RawSyndicateMission[], location: BountyLocation): RawSyndicateMission | undefined;
|
|
862
|
+
export function formatOracleChallenge(challengePath: string): string;
|
|
863
|
+
export function adaptOracleBountyBoard(location: 'zariman' | 'cavia' | 'hex', cycle: OracleBountyCycle | undefined): BountyBoard | undefined;
|
|
864
|
+
}
|
|
865
|
+
declare module "warframe/services/wf-service/wf-service.alert" {
|
|
866
|
+
import type { AlertBoard, WarframeResult } from "warframe/types/index";
|
|
867
|
+
export function adaptAlerts(alerts?: readonly {
|
|
868
|
+
expiry?: Date;
|
|
869
|
+
mission?: {
|
|
870
|
+
nodeKey?: string;
|
|
871
|
+
typeKey?: string;
|
|
872
|
+
minEnemyLevel?: number;
|
|
873
|
+
maxEnemyLevel?: number;
|
|
874
|
+
nightmare?: boolean;
|
|
875
|
+
reward?: {
|
|
876
|
+
items?: string[];
|
|
877
|
+
countedItems?: Array<{
|
|
878
|
+
type?: string;
|
|
879
|
+
key?: string;
|
|
880
|
+
count?: number;
|
|
881
|
+
}>;
|
|
882
|
+
credits?: number;
|
|
883
|
+
};
|
|
884
|
+
};
|
|
885
|
+
}[], now?: number): Promise<AlertBoard>;
|
|
886
|
+
export function getAlerts(): Promise<WarframeResult<AlertBoard>>;
|
|
887
|
+
}
|
|
888
|
+
declare module "warframe/data/wf/arbitrationSchedule" {
|
|
889
|
+
import type { ArbitrationShort } from "warframe/types/index";
|
|
890
|
+
export const arbitrationSchedule: ArbitrationShort[];
|
|
891
|
+
}
|
|
892
|
+
declare module "warframe/services/wf-service/wf-service.arbitration" {
|
|
893
|
+
import type { Arbitration, WarframeResult } from "warframe/types/index";
|
|
894
|
+
export function getArbitrations(day?: number): WarframeResult<Arbitration[]>;
|
|
895
|
+
}
|
|
896
|
+
declare module "warframe/data/wf/globalOracleBountyCycle" {
|
|
897
|
+
import type { AsyncCache, OracleBountyCycle } from "warframe/types/index";
|
|
898
|
+
export let globalOracleBountyCycle: AsyncCache<OracleBountyCycle | undefined>;
|
|
899
|
+
export function overrideGlobalOracleBountyCycle(cache: AsyncCache<OracleBountyCycle | undefined>): void;
|
|
900
|
+
}
|
|
901
|
+
declare module "warframe/services/wf-service/wf-service.bounty" {
|
|
902
|
+
import type { BountyBoard, BountyLocation, WarframeResult } from "warframe/types/index";
|
|
903
|
+
export function getBounty(location: BountyLocation): Promise<WarframeResult<BountyBoard>>;
|
|
904
|
+
}
|
|
905
|
+
declare module "warframe/infrastructure/wf/calendar-adapter" {
|
|
906
|
+
import type { CalendarBoard, RawCalendarSeason, RawMongoDate } from "warframe/types/index";
|
|
907
|
+
export function calendarTimestampMs(value?: RawMongoDate): number;
|
|
908
|
+
/** Strip Lotus color pipes and HTML-like markup tags. */
|
|
909
|
+
export function stripLotusMarkup(text: string): string;
|
|
910
|
+
export function adaptCalendar(raw: RawCalendarSeason | undefined, now?: number): CalendarBoard;
|
|
911
|
+
}
|
|
912
|
+
declare module "warframe/services/wf-service/wf-service.calendar" {
|
|
913
|
+
import type { CalendarBoard, RawCalendarSeason, WarframeResult } from "warframe/types/index";
|
|
914
|
+
export function adaptCalendar(raw: RawCalendarSeason | undefined, now?: number): CalendarBoard;
|
|
915
|
+
export function getCalendarFrom(snapshot?: {
|
|
916
|
+
raw?: unknown;
|
|
917
|
+
calendarRaw?: RawCalendarSeason;
|
|
918
|
+
}, now?: number): Promise<WarframeResult<CalendarBoard>>;
|
|
919
|
+
export function getCalendar(): Promise<WarframeResult<CalendarBoard>>;
|
|
920
|
+
}
|
|
921
|
+
declare module "warframe/services/wf-service/wf-service.circuit" {
|
|
922
|
+
export function getCircuitWeek(): {
|
|
923
|
+
currentIncarnons: number;
|
|
924
|
+
currentWarframes: number;
|
|
925
|
+
allIncarnons: string[][];
|
|
926
|
+
allWarframes: string[][];
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
declare module "warframe/services/wf-service/wf-service.environment" {
|
|
930
|
+
export function getEnvironment(): Promise<string>;
|
|
931
|
+
}
|
|
932
|
+
declare module "warframe/services/wf-service/wf-service.event" {
|
|
933
|
+
import type { EventBoard, RawWorldEvent, WarframeResult } from "warframe/types/index";
|
|
934
|
+
export function adaptEvents(rawEvents?: readonly RawWorldEvent[], now?: number): EventBoard;
|
|
935
|
+
export function getEventsFrom(snapshot?: {
|
|
936
|
+
raw?: unknown;
|
|
937
|
+
eventsRaw?: RawWorldEvent[];
|
|
938
|
+
}, now?: number): Promise<WarframeResult<EventBoard>>;
|
|
939
|
+
export function getEvents(): Promise<WarframeResult<EventBoard>>;
|
|
940
|
+
}
|
|
941
|
+
declare module "warframe/services/wf-service/wf-service.fissure" {
|
|
942
|
+
import type { Fissure, WarframeResult } from "warframe/types/index";
|
|
943
|
+
export function getFissures(): Promise<WarframeResult<Fissure[]>>;
|
|
944
|
+
export function getSteelPathFissures(): Promise<WarframeResult<Fissure[]>>;
|
|
945
|
+
export function getRailjackFissures(): Promise<WarframeResult<Fissure[]>>;
|
|
946
|
+
}
|
|
947
|
+
declare module "warframe/services/wf-service/wf-service.invasion" {
|
|
948
|
+
import type { InvasionBoard, RawInvasion, WarframeResult } from "warframe/types/index";
|
|
949
|
+
export function adaptInvasions(rawInvasions: RawInvasion[]): Promise<InvasionBoard>;
|
|
950
|
+
export function getInvasionsFrom(snapshot?: {
|
|
951
|
+
raw?: unknown;
|
|
952
|
+
invasionsRaw?: RawInvasion[];
|
|
953
|
+
}): Promise<WarframeResult<InvasionBoard>>;
|
|
954
|
+
export function getInvasions(): Promise<WarframeResult<InvasionBoard>>;
|
|
955
|
+
}
|
|
956
|
+
declare module "warframe/infrastructure/wf/nightwave-adapter" {
|
|
957
|
+
import type { NightwaveBoard, RawSeasonInfo } from "warframe/types/index";
|
|
958
|
+
export function adaptNightwave(raw: RawSeasonInfo, now?: number): NightwaveBoard;
|
|
959
|
+
}
|
|
960
|
+
declare module "warframe/services/wf-service/wf-service.nightwave" {
|
|
961
|
+
import type { NightwaveBoard, RawSeasonInfo, WarframeResult } from "warframe/types/index";
|
|
962
|
+
export function resolveNightwave(raw: RawSeasonInfo | undefined, now?: number): WarframeResult<NightwaveBoard>;
|
|
963
|
+
export function getNightwave(): Promise<WarframeResult<NightwaveBoard>>;
|
|
860
964
|
}
|
|
861
965
|
declare module "warframe/data/wf/relics" {
|
|
862
966
|
import type { Relic } from "warframe/types/index";
|
|
863
967
|
export const relics: Record<string, Relic>;
|
|
864
968
|
}
|
|
969
|
+
declare module "warframe/services/wf-service/wf-service.relic" {
|
|
970
|
+
import type { Relic, WarframeResult } from "warframe/types/index";
|
|
971
|
+
export function getRelic(input: string): Promise<WarframeResult<Relic>>;
|
|
972
|
+
}
|
|
865
973
|
declare module "warframe/data/wf/rivenBaseValues" {
|
|
866
|
-
export
|
|
974
|
+
export type RivenAttrValueDict = Record<string, Record<string, number>>;
|
|
975
|
+
export function buildRivenAttrValueDict(source: RivenAttrValueDict): RivenAttrValueDict;
|
|
976
|
+
export const rivenAttrValueDict: RivenAttrValueDict;
|
|
867
977
|
}
|
|
868
978
|
declare module "warframe/data/wf/rivenDisposition" {
|
|
979
|
+
import type { IWeapon } from 'warframe-public-export-plus';
|
|
869
980
|
import type { RivenWeaponDisposition } from "warframe/types/index";
|
|
981
|
+
export function buildWeaponRivenDispositionDict(calcWeapons: RivenWeaponDisposition['calc'][], exportWeapons: Record<string, IWeapon>, dictEn: Record<string, string>, dictZh: Record<string, string>): Record<string, RivenWeaponDisposition>;
|
|
870
982
|
export const weaponRivenDispositionDict: Record<string, RivenWeaponDisposition>;
|
|
871
983
|
}
|
|
872
984
|
declare module "warframe/data/wf/rivenStatData" {
|
|
873
985
|
import type { RivenStatFixFactorMap } from "warframe/types/index";
|
|
874
986
|
export const rivenStatFixFactor: RivenStatFixFactorMap;
|
|
875
987
|
}
|
|
876
|
-
declare module "warframe/data/wf/sortie" {
|
|
877
|
-
export function getSortieModeName(): string;
|
|
878
|
-
export function getSortieEnemyLevels(index: number): {
|
|
879
|
-
minLevel: number;
|
|
880
|
-
maxLevel: number;
|
|
881
|
-
};
|
|
882
|
-
}
|
|
883
988
|
declare module "warframe/infrastructure/wfm-client" {
|
|
884
989
|
import type { WfmApiClient, WfmFetcher, WfmPlugin } from 'wfm-api-client';
|
|
885
990
|
/** Warframe-local: map request failures to `undefined` (not part of upstream client). */
|
|
@@ -1016,58 +1121,41 @@ declare module "warframe/infrastructure/ocr-api" {
|
|
|
1016
1121
|
import type { OcrAPISecret } from "warframe/types/index";
|
|
1017
1122
|
export function extractTextFromImage(image: string | Blob, secret: OcrAPISecret): Promise<string[] | undefined>;
|
|
1018
1123
|
}
|
|
1019
|
-
declare module "warframe/
|
|
1020
|
-
import type { BountyBoard, BountyLocation, BountyRewardRarity, OracleBountyCycle, RawSyndicateMission } from "warframe/types/index";
|
|
1021
|
-
export const bountyLocationTag: Record<BountyLocation, string>;
|
|
1022
|
-
/** Locations whose Jobs are empty in official WorldState; use browse.wf Oracle. */
|
|
1023
|
-
export const oracleBountyLocations: Set<BountyLocation>;
|
|
1024
|
-
/**
|
|
1025
|
-
* Map drop probability to 铜/银/金 within one stage.
|
|
1026
|
-
* Highest unique probability → bronze, lowest → gold, middle → silver.
|
|
1027
|
-
* With only two buckets: highest → bronze, lower → silver.
|
|
1028
|
-
*/
|
|
1029
|
-
export function rarityFromStageProbabilities(probability: number, uniqueSortedDesc: number[]): BountyRewardRarity;
|
|
1030
|
-
export function resolveExportItemNameZh(sourceKey: string): string;
|
|
1031
|
-
export function adaptBountyBoard(location: BountyLocation, mission: RawSyndicateMission | undefined): BountyBoard | undefined;
|
|
1032
|
-
export function findRawSyndicateMission(missions: RawSyndicateMission[], location: BountyLocation): RawSyndicateMission | undefined;
|
|
1033
|
-
export function formatOracleChallenge(challengePath: string): string;
|
|
1034
|
-
export function adaptOracleBountyBoard(location: 'zariman' | 'cavia' | 'hex', cycle: OracleBountyCycle | undefined): BountyBoard | undefined;
|
|
1035
|
-
}
|
|
1036
|
-
declare module "warframe/infrastructure/wf/calendar-adapter" {
|
|
1037
|
-
import type { CalendarBoard, RawCalendarSeason, RawMongoDate } from "warframe/types/index";
|
|
1038
|
-
export function calendarTimestampMs(value?: RawMongoDate): number;
|
|
1039
|
-
/** Strip Lotus color pipes and HTML-like markup tags. */
|
|
1040
|
-
export function stripLotusMarkup(text: string): string;
|
|
1041
|
-
export function adaptCalendar(raw: RawCalendarSeason | undefined, now?: number): CalendarBoard;
|
|
1042
|
-
}
|
|
1043
|
-
declare module "warframe/infrastructure/wf/nightwave-adapter" {
|
|
1044
|
-
import type { NightwaveBoard, RawSeasonInfo } from "warframe/types/index";
|
|
1045
|
-
export function adaptNightwave(raw: RawSeasonInfo, now?: number): NightwaveBoard;
|
|
1046
|
-
}
|
|
1047
|
-
declare module "warframe/services/wf-service/wf-service.event" {
|
|
1048
|
-
import type { EventBoard, RawWorldEvent, WarframeResult } from "warframe/types/index";
|
|
1049
|
-
export function adaptEvents(rawEvents?: readonly RawWorldEvent[], now?: number): EventBoard;
|
|
1050
|
-
export function getEventsFrom(snapshot?: {
|
|
1051
|
-
raw?: unknown;
|
|
1052
|
-
eventsRaw?: RawWorldEvent[];
|
|
1053
|
-
}, now?: number): Promise<WarframeResult<EventBoard>>;
|
|
1054
|
-
export function getEvents(): Promise<WarframeResult<EventBoard>>;
|
|
1055
|
-
}
|
|
1056
|
-
declare module "warframe/services/wf-service/index" {
|
|
1124
|
+
declare module "warframe/services/wf-service/wf-service.riven" {
|
|
1057
1125
|
import type { WeeklyRiven } from 'warframe-weekly-rivens';
|
|
1058
|
-
import type {
|
|
1126
|
+
import type { OcrAPISecret, RivenAttribute, RivenStatAnalyzeResult, RivenStatResult, WarframeResult } from "warframe/types/index";
|
|
1059
1127
|
import { weaponRivenDispositionDict } from "warframe/data/wf/rivenDisposition";
|
|
1060
|
-
export
|
|
1061
|
-
export function
|
|
1062
|
-
export function
|
|
1063
|
-
export function
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1128
|
+
export function getAnalyzedRiven(secret: OcrAPISecret, url: string): Promise<WarframeResult<RivenStatAnalyzeResult>>;
|
|
1129
|
+
export function filterWeeklyRivens(data: WeeklyRiven[], minPrice: number, minPop?: number): WeeklyRiven[];
|
|
1130
|
+
export function getWeeklyRivens(minPrice: number): Promise<WeeklyRiven[]>;
|
|
1131
|
+
export function getStaticRivenStats(weaponType: string, statType: string, disposition: number): Promise<WarframeResult<RivenStatResult>>;
|
|
1132
|
+
export function getWeaponRivenDisposition(name: string): (typeof weaponRivenDispositionDict)[string] | undefined;
|
|
1133
|
+
export function parseOCRResult(ocrResult: string[]): Promise<{
|
|
1134
|
+
name: string;
|
|
1135
|
+
attributes: {
|
|
1136
|
+
attr: RivenAttribute;
|
|
1137
|
+
value: number;
|
|
1138
|
+
prefix: string;
|
|
1139
|
+
}[];
|
|
1140
|
+
} | undefined>;
|
|
1141
|
+
export function analyzeRivenStat(parseResult: {
|
|
1142
|
+
name: string;
|
|
1143
|
+
attributes: {
|
|
1144
|
+
attr: RivenAttribute;
|
|
1145
|
+
value: number;
|
|
1146
|
+
prefix: string;
|
|
1147
|
+
}[];
|
|
1148
|
+
}): WarframeResult<RivenStatAnalyzeResult>;
|
|
1149
|
+
}
|
|
1150
|
+
declare module "warframe/data/wf/sortie" {
|
|
1151
|
+
export function getSortieModeName(): string;
|
|
1152
|
+
export function getSortieEnemyLevels(index: number): {
|
|
1153
|
+
minLevel: number;
|
|
1154
|
+
maxLevel: number;
|
|
1155
|
+
};
|
|
1156
|
+
}
|
|
1157
|
+
declare module "warframe/services/wf-service/wf-service.sortie" {
|
|
1158
|
+
import type { RawSortie, Sortie, WarframeResult } from "warframe/types/index";
|
|
1071
1159
|
export function adaptSortie(source: RawSortie, dates?: {
|
|
1072
1160
|
activation?: Date;
|
|
1073
1161
|
expiry?: Date;
|
|
@@ -1082,53 +1170,9 @@ declare module "warframe/services/wf-service/index" {
|
|
|
1082
1170
|
sortieRaw?: RawSortie;
|
|
1083
1171
|
}): Promise<WarframeResult<Sortie>>;
|
|
1084
1172
|
export function getSortie(): Promise<WarframeResult<Sortie>>;
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
temporalArchimedea: ArchiMedea;
|
|
1089
|
-
}>>;
|
|
1090
|
-
export function resolveNightwave(raw: RawSeasonInfo | undefined, now?: number): WarframeResult<NightwaveBoard>;
|
|
1091
|
-
export function getNightwave(): Promise<WarframeResult<NightwaveBoard>>;
|
|
1092
|
-
export function getEnvironment(): Promise<string>;
|
|
1093
|
-
export function getBounty(location: BountyLocation): Promise<WarframeResult<BountyBoard>>;
|
|
1094
|
-
export function getCircuitWeek(): {
|
|
1095
|
-
currentIncarnons: number;
|
|
1096
|
-
currentWarframes: number;
|
|
1097
|
-
allIncarnons: string[][];
|
|
1098
|
-
allWarframes: string[][];
|
|
1099
|
-
};
|
|
1100
|
-
export function adaptInvasions(rawInvasions: RawInvasion[]): Promise<InvasionBoard>;
|
|
1101
|
-
export function getInvasionsFrom(snapshot?: {
|
|
1102
|
-
raw?: unknown;
|
|
1103
|
-
invasionsRaw?: RawInvasion[];
|
|
1104
|
-
}): Promise<WarframeResult<InvasionBoard>>;
|
|
1105
|
-
export function getInvasions(): Promise<WarframeResult<InvasionBoard>>;
|
|
1106
|
-
export function adaptAlerts(alerts?: readonly {
|
|
1107
|
-
expiry?: Date;
|
|
1108
|
-
mission?: {
|
|
1109
|
-
nodeKey?: string;
|
|
1110
|
-
typeKey?: string;
|
|
1111
|
-
minEnemyLevel?: number;
|
|
1112
|
-
maxEnemyLevel?: number;
|
|
1113
|
-
nightmare?: boolean;
|
|
1114
|
-
reward?: {
|
|
1115
|
-
items?: string[];
|
|
1116
|
-
countedItems?: Array<{
|
|
1117
|
-
type?: string;
|
|
1118
|
-
key?: string;
|
|
1119
|
-
count?: number;
|
|
1120
|
-
}>;
|
|
1121
|
-
credits?: number;
|
|
1122
|
-
};
|
|
1123
|
-
};
|
|
1124
|
-
}[], now?: number): Promise<AlertBoard>;
|
|
1125
|
-
export function getAlerts(): Promise<WarframeResult<AlertBoard>>;
|
|
1126
|
-
export function adaptCalendar(raw: RawCalendarSeason | undefined, now?: number): CalendarBoard;
|
|
1127
|
-
export function getCalendarFrom(snapshot?: {
|
|
1128
|
-
raw?: unknown;
|
|
1129
|
-
calendarRaw?: RawCalendarSeason;
|
|
1130
|
-
}, now?: number): Promise<WarframeResult<CalendarBoard>>;
|
|
1131
|
-
export function getCalendar(): Promise<WarframeResult<CalendarBoard>>;
|
|
1173
|
+
}
|
|
1174
|
+
declare module "warframe/services/wf-service/wf-service.steel-essence" {
|
|
1175
|
+
import type { RawSteelPathOfferings, SteelEssenceBoard, WarframeResult } from "warframe/types/index";
|
|
1132
1176
|
export function adaptSteelEssence(raw?: RawSteelPathOfferings, now?: number): Promise<SteelEssenceBoard>;
|
|
1133
1177
|
export function getSteelEssenceFrom(snapshot?: {
|
|
1134
1178
|
raw?: {
|
|
@@ -1136,31 +1180,51 @@ declare module "warframe/services/wf-service/index" {
|
|
|
1136
1180
|
};
|
|
1137
1181
|
}, now?: number): Promise<WarframeResult<SteelEssenceBoard>>;
|
|
1138
1182
|
export function getSteelEssence(): Promise<WarframeResult<SteelEssenceBoard>>;
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
export function getAnalyzedRiven(secret: OcrAPISecret, url: string): Promise<WarframeResult<RivenStatAnalyzeResult>>;
|
|
1183
|
+
}
|
|
1184
|
+
declare module "warframe/services/wf-service/wf-service.void-trader" {
|
|
1185
|
+
import type { VoidTrader, WarframeResult } from "warframe/types/index";
|
|
1143
1186
|
export function getVoidTrader(): Promise<WarframeResult<VoidTrader>>;
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
export function
|
|
1147
|
-
export function
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1187
|
+
}
|
|
1188
|
+
declare module "warframe/data/wf/archonHunt" {
|
|
1189
|
+
export function getArchonHuntModeName(): string;
|
|
1190
|
+
export function getArchonHuntEnemyLevels(index: number): {
|
|
1191
|
+
minLevel: number;
|
|
1192
|
+
maxLevel: number;
|
|
1193
|
+
};
|
|
1194
|
+
}
|
|
1195
|
+
declare module "warframe/services/wf-service/wf-service.weekly" {
|
|
1196
|
+
import type { ArchiMedea, ArchonHunt, WarframeResult } from "warframe/types/index";
|
|
1197
|
+
export function adaptArchonHunt(source: {
|
|
1198
|
+
boss: string;
|
|
1199
|
+
missions?: Array<{
|
|
1200
|
+
type: string;
|
|
1201
|
+
node?: string;
|
|
1202
|
+
nodeKey: string;
|
|
1203
|
+
}>;
|
|
1204
|
+
}): Promise<ArchonHunt>;
|
|
1205
|
+
export function getWeekly(): Promise<WarframeResult<{
|
|
1206
|
+
archonHunt: ArchonHunt;
|
|
1207
|
+
deepArchimedea: ArchiMedea;
|
|
1208
|
+
temporalArchimedea: ArchiMedea;
|
|
1209
|
+
}>>;
|
|
1210
|
+
}
|
|
1211
|
+
declare module "warframe/services/wf-service/index" {
|
|
1212
|
+
export { adaptAlerts, getAlerts } from "warframe/services/wf-service/wf-service.alert";
|
|
1213
|
+
export { getArbitrations } from "warframe/services/wf-service/wf-service.arbitration";
|
|
1214
|
+
export { getBounty } from "warframe/services/wf-service/wf-service.bounty";
|
|
1215
|
+
export { adaptCalendar, getCalendar, getCalendarFrom } from "warframe/services/wf-service/wf-service.calendar";
|
|
1216
|
+
export { getCircuitWeek } from "warframe/services/wf-service/wf-service.circuit";
|
|
1217
|
+
export { getEnvironment } from "warframe/services/wf-service/wf-service.environment";
|
|
1218
|
+
export { adaptEvents, getEvents, getEventsFrom } from "warframe/services/wf-service/wf-service.event";
|
|
1219
|
+
export { getFissures, getRailjackFissures, getSteelPathFissures, } from "warframe/services/wf-service/wf-service.fissure";
|
|
1220
|
+
export { adaptInvasions, getInvasions, getInvasionsFrom } from "warframe/services/wf-service/wf-service.invasion";
|
|
1221
|
+
export { getNightwave, resolveNightwave } from "warframe/services/wf-service/wf-service.nightwave";
|
|
1222
|
+
export { getRelic } from "warframe/services/wf-service/wf-service.relic";
|
|
1223
|
+
export { analyzeRivenStat, filterWeeklyRivens, getAnalyzedRiven, getStaticRivenStats, getWeaponRivenDisposition, getWeeklyRivens, parseOCRResult, } from "warframe/services/wf-service/wf-service.riven";
|
|
1224
|
+
export { adaptSortie, getSortie, getSortieFrom } from "warframe/services/wf-service/wf-service.sortie";
|
|
1225
|
+
export { adaptSteelEssence, getSteelEssence, getSteelEssenceFrom, } from "warframe/services/wf-service/wf-service.steel-essence";
|
|
1226
|
+
export { getVoidTrader } from "warframe/services/wf-service/wf-service.void-trader";
|
|
1227
|
+
export { adaptArchonHunt, getWeekly } from "warframe/services/wf-service/wf-service.weekly";
|
|
1164
1228
|
}
|
|
1165
1229
|
declare module "warframe/data/wfm/globalItem" {
|
|
1166
1230
|
import type { AsyncCache, ItemShort } from "warframe/types/index";
|
|
@@ -1239,6 +1303,11 @@ declare module "warframe/services/wfm-service/wfm-service.item-matcher" {
|
|
|
1239
1303
|
}
|
|
1240
1304
|
declare module "warframe/data/wfm/globalDucatnator" {
|
|
1241
1305
|
import type { AsyncCache, Ducatnator } from "warframe/types/index";
|
|
1306
|
+
interface DucatnatorSnapshot {
|
|
1307
|
+
hour: Ducatnator[];
|
|
1308
|
+
day?: Ducatnator[];
|
|
1309
|
+
}
|
|
1310
|
+
export function globalDucatnatorIDDictFactory(data?: DucatnatorSnapshot): Promise<Record<string, Ducatnator> | undefined>;
|
|
1242
1311
|
export let globalDucatnatorIDDict: AsyncCache<Record<string, Ducatnator> | undefined>;
|
|
1243
1312
|
export function overrideGlobalDucatnatorIDDict(cache: AsyncCache<Record<string, Ducatnator> | undefined>): void;
|
|
1244
1313
|
}
|
|
@@ -1283,9 +1352,9 @@ declare module "warframe/services/wfm-service/index" {
|
|
|
1283
1352
|
export const primedModHistory: import("warframe").AsyncCache<PrimedModHistoryItem[]>;
|
|
1284
1353
|
}
|
|
1285
1354
|
declare module "warframe/services/world-state-refresh" {
|
|
1355
|
+
import type { GlobalWorldStateData } from "warframe/data/wf/globalWorldState";
|
|
1286
1356
|
import type { VoidTraderItem, WFRegionShort } from "warframe/types/index";
|
|
1287
|
-
|
|
1288
|
-
export type WorldStateSnapshot = Awaited<ReturnType<typeof globalWorldState.get>>;
|
|
1357
|
+
export type WorldStateSnapshot = GlobalWorldStateData;
|
|
1289
1358
|
export type WorldStateNotification = {
|
|
1290
1359
|
type: 'fissure';
|
|
1291
1360
|
id: string;
|