feat: add weapon history types
parent
89b1ac32dd
commit
8d376cfd38
59
src/types.ts
59
src/types.ts
|
|
@ -106,18 +106,23 @@ export type PlayerGear = {
|
||||||
id: string;
|
id: string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
export type PlayerWeapon = {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
image: Image;
|
||||||
|
subWeapon: {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
image: Image;
|
||||||
|
};
|
||||||
|
};
|
||||||
export type VsPlayer = {
|
export type VsPlayer = {
|
||||||
id: string;
|
id: string;
|
||||||
nameId: string | null;
|
nameId: string | null;
|
||||||
name: string;
|
name: string;
|
||||||
isMyself: boolean;
|
isMyself: boolean;
|
||||||
byname: string;
|
byname: string;
|
||||||
weapon: {
|
weapon: PlayerWeapon;
|
||||||
id: string;
|
|
||||||
subWeapon: {
|
|
||||||
id: string;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
species: "INKLING" | "OCTOLING";
|
species: "INKLING" | "OCTOLING";
|
||||||
result: {
|
result: {
|
||||||
kill: number;
|
kill: number;
|
||||||
|
|
@ -422,12 +427,38 @@ export type RespMap = {
|
||||||
udemaeMax: string;
|
udemaeMax: string;
|
||||||
winCountTotal: number;
|
winCountTotal: number;
|
||||||
paintPointTotal: number;
|
paintPointTotal: number;
|
||||||
battleNumTotal: number;
|
|
||||||
|
|
||||||
xMatchMaxAr: XRank;
|
xMatchMaxAr: XRank;
|
||||||
xMatchMaxCl: XRank;
|
xMatchMaxCl: XRank;
|
||||||
xMatchMaxGl: XRank;
|
xMatchMaxGl: XRank;
|
||||||
xMatchMaxLf: XRank;
|
xMatchMaxLf: XRank;
|
||||||
|
frequentlyUsedWeapons: Pick<PlayerWeapon, "id" | "name" | "image">[];
|
||||||
|
badges: { id: string }[];
|
||||||
|
recentBadges: Badge[];
|
||||||
|
allBadges: Badge[];
|
||||||
|
weaponHistory: {
|
||||||
|
nodes: {
|
||||||
|
seasonName: string;
|
||||||
|
isMonthly: boolean;
|
||||||
|
startTime: string;
|
||||||
|
endTime: string;
|
||||||
|
weaponCategories: {
|
||||||
|
weaponCategory: {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
category: string;
|
||||||
|
};
|
||||||
|
utilRatio: number;
|
||||||
|
weapons: (WeaponWithRatio & {
|
||||||
|
weaponCategory: {
|
||||||
|
category: string;
|
||||||
|
id: string;
|
||||||
|
};
|
||||||
|
})[];
|
||||||
|
}[];
|
||||||
|
weapons: WeaponWithRatio[];
|
||||||
|
}[];
|
||||||
|
};
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
[Queries.ConfigureAnalyticsQuery]: {
|
[Queries.ConfigureAnalyticsQuery]: {
|
||||||
|
|
@ -444,6 +475,20 @@ export type RespMap = {
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
export type WeaponWithRatio = {
|
||||||
|
weapon: {
|
||||||
|
name: string;
|
||||||
|
image: Image;
|
||||||
|
weaponId: number;
|
||||||
|
id: string;
|
||||||
|
};
|
||||||
|
utilRatio: number;
|
||||||
|
};
|
||||||
|
export type Badge = {
|
||||||
|
id: string;
|
||||||
|
description: string;
|
||||||
|
image: Image;
|
||||||
|
};
|
||||||
export type HistoryGear = Pick<
|
export type HistoryGear = Pick<
|
||||||
PlayerGear,
|
PlayerGear,
|
||||||
"name" | "primaryGearPower" | "additionalGearPowers" | "image"
|
"name" | "primaryGearPower" | "additionalGearPowers" | "image"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue