SpaceNinjaServer/src/types/requestTypes.ts

123 lines
3.3 KiB
TypeScript
Raw Normal View History

import { IOid } from "./commonTypes";
import { ArtifactPolarity, IPolarity, IEquipmentClient } from "@/src/types/inventoryTypes/commonInventoryTypes";
2023-09-10 00:10:21 +04:00
import {
IBooster,
IChallengeProgress,
IEvolutionProgress,
2024-06-22 17:56:36 +02:00
ITypeCount,
2023-09-10 00:10:21 +04:00
IMission,
IRawUpgrade,
2024-06-22 18:40:51 +02:00
ISeasonChallenge,
TSolarMapRegion,
2024-07-03 23:01:35 +02:00
TEquipmentKey,
2025-01-24 14:13:21 +01:00
IFusionTreasure,
IQuestKeyClient
2023-09-10 00:10:21 +04:00
} from "./inventoryTypes/inventoryTypes";
2024-04-04 01:55:51 +03:00
export interface IThemeUpdateRequest {
Style?: string;
Background?: string;
Sounds?: string;
}
export interface IAffiliationChange {
Tag: string;
Standing: number;
Title: number;
}
export interface IUpdateChallengeProgressRequest {
ChallengeProgress: IChallengeProgress[];
SeasonChallengeHistory: ISeasonChallenge[];
SeasonChallengeCompletions: ISeasonChallenge[];
}
2025-01-24 14:13:21 +01:00
export type IMissionInventoryUpdateRequest = {
AffiliationChanges?: IAffiliationChange[];
crossPlaySetting?: string;
2023-09-10 00:10:21 +04:00
rewardsMultiplier?: number;
2025-01-24 14:13:21 +01:00
GoalTag: string;
LevelKeyName: string;
2023-09-10 00:10:21 +04:00
ActiveBoosters?: IBooster[];
2024-06-22 17:56:36 +02:00
FusionBundles?: ITypeCount[];
2023-09-10 00:10:21 +04:00
RawUpgrades?: IRawUpgrade[];
2025-01-24 14:13:21 +01:00
MiscItems?: ITypeCount[];
Consumables?: ITypeCount[];
2024-07-03 23:01:35 +02:00
FusionTreasures?: IFusionTreasure[];
2025-01-24 14:13:21 +01:00
Recipes?: ITypeCount[];
QuestKeys?: IQuestKeyClient[];
2023-09-10 00:10:21 +04:00
RegularCredits?: number;
2025-01-24 14:13:21 +01:00
MissionFailed: boolean;
MissionStatus: IMissionStatus;
AliveTime: number;
MissionTime: number;
2023-09-10 00:10:21 +04:00
Missions?: IMission;
LastRegionPlayed?: TSolarMapRegion;
2025-01-24 14:13:21 +01:00
GameModeId: number;
hosts: string[];
currentClients: unknown[];
ChallengeProgress: IChallengeProgress[];
PS: string;
ActiveDojoColorResearch: string;
RewardInfo?: IRewardInfo;
ReceivedCeremonyMsg: boolean;
LastCeremonyResetDate: number;
MissionPTS: number;
RepHash: string;
EndOfMatchUpload: boolean;
ObjectiveReached: boolean;
sharedSessionId: string;
FpsAvg: number;
FpsMin: number;
FpsMax: number;
FpsSamples: number;
EvolutionProgress?: IEvolutionProgress[];
} & {
[K in TEquipmentKey]?: IEquipmentClient[];
2025-01-24 14:13:21 +01:00
};
2024-06-22 17:56:36 +02:00
2025-01-24 14:13:21 +01:00
export interface IRewardInfo {
2023-09-10 00:10:21 +04:00
node: string;
2024-06-22 23:19:42 +02:00
VaultsCracked?: number; // for Spy missions
2023-09-10 00:10:21 +04:00
rewardTier?: number;
nightmareMode?: boolean;
useVaultManifest?: boolean;
EnemyCachesFound?: number;
toxinOk?: boolean;
lostTargetWave?: number;
defenseTargetCount?: number;
EOM_AFK?: number;
rewardQualifications?: string; // did a Survival for 5 minutes and this was "1"
2023-09-10 00:10:21 +04:00
PurgatoryRewardQualifications?: string;
rewardSeed?: number;
}
2025-01-24 14:13:21 +01:00
export type IMissionStatus = "GS_SUCCESS" | "GS_FAILURE" | "GS_DUMPED" | "GS_QUIT" | "GS_INTERRUPTED";
export interface IInventorySlotsRequest {
Bin: "PveBonusLoadoutBin";
}
export interface IUpdateGlyphRequest {
AvatarImageType: string;
AvatarImage: string;
}
export interface IUpgradesRequest {
2024-06-22 18:40:51 +02:00
ItemCategory: TEquipmentKey;
ItemId: IOid;
ItemFeatures: number;
UpgradeVersion: number;
Operations: IUpgradeOperation[];
}
export interface IUpgradeOperation {
OperationType: string;
UpgradeRequirement: string; // uniqueName of item being consumed
PolarizeSlot: number;
PolarizeValue: ArtifactPolarity;
PolarityRemap: IPolarity[];
}
2025-01-24 14:13:21 +01:00
export interface IUnlockShipFeatureRequest {
Feature: string;
KeyChain: string;
ChainStage: number;
}