more types merged

This commit is contained in:
dutlist 2024-06-15 10:39:04 +02:00
parent 3dcd40dd6f
commit 805b8c0ddf
3 changed files with 22 additions and 72 deletions

View File

@ -188,7 +188,6 @@ const EquipmentSchema = new Schema<IEquipmentDatabase>(
Configs: [ItemConfigSchema], Configs: [ItemConfigSchema],
UpgradeVer: Number, UpgradeVer: Number,
XP: Number, XP: Number,
InfestationDate: Date,
Features: Number, Features: Number,
Polarized: Number, Polarized: Number,
Polarity: [polaritySchema], Polarity: [polaritySchema],
@ -198,13 +197,15 @@ const EquipmentSchema = new Schema<IEquipmentDatabase>(
UpgradeType: Schema.Types.Mixed, //todo UpgradeType: Schema.Types.Mixed, //todo
UpgradeFingerprint: String, UpgradeFingerprint: String,
ItemName: String, ItemName: String,
InfestationDate: Date,
InfestationDays: Number,
InfestationType: String,
ModularParts: [String], ModularParts: [String],
UnlockLevel: Number, UnlockLevel: Number,
Expiry: Date, Expiry: Date,
SkillTree: String, SkillTree: String,
ArchonCrystalUpgrades: [Schema.Types.Mixed] //TODO ArchonCrystalUpgrades: [Schema.Types.Mixed] //TODO
}, }
{ id: false }
); );
EquipmentSchema.virtual("ItemId").get(function () { EquipmentSchema.virtual("ItemId").get(function () {
@ -248,7 +249,7 @@ RawUpgrades.set("toJSON", {
}); });
//TODO: find out what this is //TODO: find out what this is
const upgrqadesSchema = new Schema( const upgradesSchema = new Schema(
{ {
UpgradeFingerprint: String, UpgradeFingerprint: String,
ItemType: String ItemType: String
@ -256,11 +257,11 @@ const upgrqadesSchema = new Schema(
{ id: false } { id: false }
); );
upgrqadesSchema.virtual("ItemId").get(function () { upgradesSchema.virtual("ItemId").get(function () {
return toOid(this._id); return toOid(this._id);
}); });
upgrqadesSchema.set("toJSON", { upgradesSchema.set("toJSON", {
virtuals: true, virtuals: true,
transform(_document, returnedObject) { transform(_document, returnedObject) {
delete returnedObject._id; delete returnedObject._id;
@ -614,7 +615,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
//Non Upgrade Mods Example:I have 999 item WeaponElectricityDamageMod (only "ItemCount"+"ItemType") //Non Upgrade Mods Example:I have 999 item WeaponElectricityDamageMod (only "ItemCount"+"ItemType")
RawUpgrades: [RawUpgrades], RawUpgrades: [RawUpgrades],
//Upgrade Mods\Riven\Arcane Example:"UpgradeFingerprint"+"ItemType"+"" //Upgrade Mods\Riven\Arcane Example:"UpgradeFingerprint"+"ItemType"+""
Upgrades: [upgrqadesSchema], Upgrades: [upgradesSchema],
//Warframe //Warframe
Suits: [EquipmentSchema], Suits: [EquipmentSchema],
@ -634,11 +635,11 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
//Any /Sentinels/SentinelWeapons/ (like warframe weapon) //Any /Sentinels/SentinelWeapons/ (like warframe weapon)
SentinelWeapons: [EquipmentSchema], SentinelWeapons: [EquipmentSchema],
//Modular Pets //Modular Pets
MoaPets: [Schema.Types.Mixed], MoaPets: [EquipmentSchema],
KubrowPetEggs: [Schema.Types.Mixed], KubrowPetEggs: [Schema.Types.Mixed],
//Like PowerSuit Cat\Kubrow or etc Pets //Like PowerSuit Cat\Kubrow or etc Pets
KubrowPets: [Schema.Types.Mixed], KubrowPets: [EquipmentSchema],
//Prints Cat(3 Prints)\Kubrow(2 Prints) Pets //Prints Cat(3 Prints)\Kubrow(2 Prints) Pets
KubrowPetPrints: [Schema.Types.Mixed], KubrowPetPrints: [Schema.Types.Mixed],
@ -660,12 +661,12 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
//Mech need Suits+SpaceGuns+SpecialItem //Mech need Suits+SpaceGuns+SpecialItem
MechSuits: [EquipmentSchema], MechSuits: [EquipmentSchema],
///Restoratives/HoverboardSummon (like Suit) ///Restoratives/HoverboardSummon (like Suit)
Hoverboards: [Schema.Types.Mixed], Hoverboards: [EquipmentSchema],
//Use Operator\Drifter //Use Operator\Drifter
UseAdultOperatorLoadout: Boolean, UseAdultOperatorLoadout: Boolean,
//Operator\Drifter Weapon //Operator\Drifter Weapon
OperatorAmps: [Schema.Types.Mixed], OperatorAmps: [EquipmentSchema],
//Operator //Operator
OperatorLoadOuts: [operatorConfigSchema], OperatorLoadOuts: [operatorConfigSchema],
//Drifter //Drifter
@ -681,7 +682,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
ShipDecorations: [typeCountSchema], ShipDecorations: [typeCountSchema],
//RailJack Setting(Mods,Skin,Weapon,etc) //RailJack Setting(Mods,Skin,Weapon,etc)
CrewShipHarnesses: [Schema.Types.Mixed], CrewShipHarnesses: [EquipmentSchema],
//Railjack/Components(https://warframe.fandom.com/wiki/Railjack/Components) //Railjack/Components(https://warframe.fandom.com/wiki/Railjack/Components)
CrewShipRawSalvage: [Schema.Types.Mixed], CrewShipRawSalvage: [Schema.Types.Mixed],

View File

@ -50,7 +50,7 @@ export interface IItemConfig {
Upgrades?: string[]; Upgrades?: string[];
Name?: string; Name?: string;
OperatorAmp?: IOid; OperatorAmp?: IOid;
Songs: ISong[]; Songs?: ISong[];
AbilityOverride?: IAbilityOverride; AbilityOverride?: IAbilityOverride;
PvpUpgrades?: string[]; PvpUpgrades?: string[];
ugly?: boolean; ugly?: boolean;
@ -88,7 +88,6 @@ export interface IEquipmentDatabase {
Configs: IItemConfig[]; Configs: IItemConfig[];
UpgradeVer?: number; UpgradeVer?: number;
XP?: number; XP?: number;
InfestationDate?: Date;
Features?: number; Features?: number;
Polarized?: number; Polarized?: number;
Polarity?: IPolarity[]; Polarity?: IPolarity[];
@ -97,6 +96,9 @@ export interface IEquipmentDatabase {
CustomizationSlotPurchases?: number; CustomizationSlotPurchases?: number;
UpgradeType?: string; UpgradeType?: string;
UpgradeFingerprint?: string; UpgradeFingerprint?: string;
InfestationDate?: IMongoDate;
InfestationDays?: number;
InfestationType?: string;
ModularParts?: string[]; ModularParts?: string[];
UnlockLevel?: number; UnlockLevel?: number;
Expiry?: IMongoDate; Expiry?: IMongoDate;

View File

@ -4,7 +4,6 @@ import { IOid, IMongoDate } from "../commonTypes";
import { import {
IColor, IColor,
FocusSchool, FocusSchool,
IPolarity,
IItemConfig, IItemConfig,
IOperatorConfigClient, IOperatorConfigClient,
IEquipmentSelection, IEquipmentSelection,
@ -165,7 +164,7 @@ export interface IInventoryResponse {
FactionScores: number[]; FactionScores: number[];
SpaceSuits: IEquipmentDatabase[]; SpaceSuits: IEquipmentDatabase[];
SpaceMelee: IEquipmentDatabase[]; SpaceMelee: IEquipmentDatabase[];
SpaceGuns: ISpaceGun[]; SpaceGuns: IEquipmentDatabase[];
ArchwingEnabled: boolean; ArchwingEnabled: boolean;
PendingSpectreLoadouts: any[]; PendingSpectreLoadouts: any[];
SpectreLoadouts: ISpectreLoadout[]; SpectreLoadouts: ISpectreLoadout[];
@ -181,7 +180,7 @@ export interface IInventoryResponse {
Drones: IDrone[]; Drones: IDrone[];
StepSequencers: IStepSequencer[]; StepSequencers: IStepSequencer[];
ActiveAvatarImageType: string; ActiveAvatarImageType: string;
KubrowPets: IKubrowPet[]; KubrowPets: IEquipmentDatabase[];
ShipDecorations: IConsumable[]; ShipDecorations: IConsumable[];
DailyAffiliationCetus: number; DailyAffiliationCetus: number;
DailyAffiliationQuills: number; DailyAffiliationQuills: number;
@ -207,7 +206,7 @@ export interface IInventoryResponse {
DailyAffiliationVentkids: number; DailyAffiliationVentkids: number;
DailyAffiliationVox: number; DailyAffiliationVox: number;
RecentVendorPurchases: Array<number | string>; RecentVendorPurchases: Array<number | string>;
Hoverboards: IHoverboard[]; Hoverboards: IEquipmentDatabase[];
NodeIntrosCompleted: string[]; NodeIntrosCompleted: string[];
GuildId?: IOid; GuildId?: IOid;
CompletedJobChains: ICompletedJobChain[]; CompletedJobChains: ICompletedJobChain[];
@ -235,7 +234,7 @@ export interface IInventoryResponse {
MechSuits: IEquipmentDatabase[]; MechSuits: IEquipmentDatabase[];
InfestedFoundry: IInfestedFoundry; InfestedFoundry: IInfestedFoundry;
BlessingCooldown: IMongoDate; BlessingCooldown: IMongoDate;
CrewShipHarnesses: ICrewShipHarness[]; CrewShipHarnesses: IEquipmentDatabase[];
CrewShipRawSalvage: IConsumable[]; CrewShipRawSalvage: IConsumable[];
CrewMembers: ICrewMember[]; CrewMembers: ICrewMember[];
AdultOperatorLoadOuts: IOperatorConfigClient[]; AdultOperatorLoadOuts: IOperatorConfigClient[];
@ -356,17 +355,6 @@ export interface ICombat {
Assigned: number; Assigned: number;
} }
export interface ICrewShipHarness {
ItemType: string;
Configs: IItemConfig[];
Features: number;
UpgradeVer: number;
XP: number;
Polarity: IPolarity[];
Polarized: number;
ItemId: IOid;
}
export enum InventorySlot { export enum InventorySlot {
SUITS = "SuitBin", SUITS = "SuitBin",
WEAPONS = "WeaponBin", WEAPONS = "WeaponBin",
@ -405,6 +393,7 @@ export interface ICrewShip {
RailjackImage: IFlavourItem; RailjackImage: IFlavourItem;
CrewMembers: ICrewMembers; CrewMembers: ICrewMembers;
ItemId: IOid; ItemId: IOid;
_id: Types.ObjectId;
} }
export interface ICrewMembers { export interface ICrewMembers {
@ -492,18 +481,6 @@ export interface IFusionTreasure {
Sockets: number; Sockets: number;
} }
export interface IHoverboard {
ItemType: string;
Configs: IItemConfig[];
ModularParts: string[];
ItemName?: string;
Polarity?: IPolarity[];
UpgradeVer: number;
XP: number;
Features: number;
ItemId: IOid;
}
export interface IInfestedFoundry { export interface IInfestedFoundry {
Name: string; Name: string;
Resources: ITypeCount[]; Resources: ITypeCount[];
@ -563,22 +540,6 @@ export enum KubrowPetPrintItemType {
LotusTypesGameKubrowPetImprintedTraitPrint = "/Lotus/Types/Game/KubrowPet/ImprintedTraitPrint" LotusTypesGameKubrowPetImprintedTraitPrint = "/Lotus/Types/Game/KubrowPet/ImprintedTraitPrint"
} }
export interface IKubrowPet {
ItemType: string;
Configs: IItemConfig[];
UpgradeVer: number;
Details: IDetails;
XP?: number;
Polarized?: number;
Polarity?: IPolarity[];
Features?: number;
InfestationDate?: IMongoDate;
InfestationDays?: number;
InfestationType?: string;
ItemId: IOid;
ModularParts?: string[];
}
export interface IDetails { export interface IDetails {
Name: string; Name: string;
IsPuppy: boolean; IsPuppy: boolean;
@ -856,20 +817,6 @@ export interface IShipInventory {
ItemId: IOid; ItemId: IOid;
} }
export interface ISpaceGun {
ItemType: string;
Configs: IItemConfig[];
XP?: number;
UpgradeVer?: number;
ItemId: IOid;
Features?: number;
Polarized?: number;
Polarity?: IPolarity[];
UpgradeType?: UpgradeType;
UpgradeFingerprint?: string;
ItemName?: string;
}
export interface ISpectreLoadout { export interface ISpectreLoadout {
LongGuns: string; LongGuns: string;
Melee: string; Melee: string;