Apply prettier changes

This commit is contained in:
AMelonInsideLemon 2024-06-10 17:18:29 +00:00 committed by github-actions[bot]
parent 82555d1f97
commit a05a9d90c0
4 changed files with 19 additions and 14 deletions

View File

@ -45,7 +45,7 @@ import {
IOperatorConfigDatabase, IOperatorConfigDatabase,
IPolarity, IPolarity,
IEquipmentDatabase, IEquipmentDatabase,
IOperatorConfigClient, IOperatorConfigClient
} from "@/src/types/inventoryTypes/commonInventoryTypes"; } from "@/src/types/inventoryTypes/commonInventoryTypes";
import { toMongoDate, toOid } from "@/src/helpers/inventoryHelpers"; import { toMongoDate, toOid } from "@/src/helpers/inventoryHelpers";
@ -202,7 +202,7 @@ const EquipmentSchema = new Schema<IEquipmentDatabase>(
UnlockLevel: Number, UnlockLevel: Number,
Expiry: Date, Expiry: Date,
SkillTree: String, SkillTree: String,
ArchonCrystalUpgrades: [Schema.Types.Mixed], //TODO ArchonCrystalUpgrades: [Schema.Types.Mixed] //TODO
}, },
{ id: false } { id: false }
); );

View File

@ -83,7 +83,6 @@ export interface IEquipmentClient extends Omit<IEquipmentDatabase, "_id"> {
} }
export interface IEquipmentDatabase { export interface IEquipmentDatabase {
ItemType: string; ItemType: string;
ItemName?: string; ItemName?: string;
Configs: IItemConfig[]; Configs: IItemConfig[];

View File

@ -60,7 +60,14 @@ export interface ITypeCount {
ItemCount: number; ItemCount: number;
} }
export type IEquipmenItemKey = "Suits" | "LongGuns" | "Pistols" | "Melee" | "SpecialItems" | "Sentinels" | "SentinelWeapons"; export type IEquipmenItemKey =
| "Suits"
| "LongGuns"
| "Pistols"
| "Melee"
| "SpecialItems"
| "Sentinels"
| "SentinelWeapons";
export interface IDuviriInfo { export interface IDuviriInfo {
Seed: number; Seed: number;
@ -431,11 +438,11 @@ export interface ICrewshipWeapon {
} }
export interface IPortGuns { export interface IPortGuns {
PRIMARY_A: IEquipmentSelection PRIMARY_A: IEquipmentSelection;
} }
export interface IPilot extends IPortGuns { export interface IPilot extends IPortGuns {
SECONDARY_A: IEquipmentSelection SECONDARY_A: IEquipmentSelection;
} }
export interface IDiscoveredMarker { export interface IDiscoveredMarker {
@ -624,12 +631,12 @@ export interface ILoadoutConfig {
PresetIcon?: string; PresetIcon?: string;
Favorite?: boolean; Favorite?: boolean;
n?: string; // Loadout name n?: string; // Loadout name
s?: IEquipmentSelection // Suit s?: IEquipmentSelection; // Suit
p?: IEquipmentSelection p?: IEquipmentSelection;
l?: IEquipmentSelection // Primary weapon l?: IEquipmentSelection; // Primary weapon
m?: IEquipmentSelection // Melee weapon m?: IEquipmentSelection; // Melee weapon
h?: IEquipmentSelection // Gravimag weapon h?: IEquipmentSelection; // Gravimag weapon
a?: IEquipmentSelection a?: IEquipmentSelection;
ItemId: IOid; ItemId: IOid;
Remove?: boolean; // when client wants to remove a config, it only includes ItemId & Remove. Remove?: boolean; // when client wants to remove a config, it only includes ItemId & Remove.
} }
@ -655,7 +662,6 @@ export interface IMission {
RewardsCooldownTime?: IMongoDate; RewardsCooldownTime?: IMongoDate;
} }
export interface INemesisHistory { export interface INemesisHistory {
fp: number; fp: number;
manifest: Manifest; manifest: Manifest;

View File

@ -8,7 +8,7 @@ import {
IMiscItem, IMiscItem,
IMission, IMission,
IRawUpgrade, IRawUpgrade,
ISeasonChallenge, ISeasonChallenge
} from "./inventoryTypes/inventoryTypes"; } from "./inventoryTypes/inventoryTypes";
export interface IArtifactsRequest { export interface IArtifactsRequest {