* Add Awakening type and remove old defs We remove the flat list of awakening data, as we will be pulling data from the database * Update types to use new Awakening type * Update WeaponUnit for Grand weapon awakenings * Update object modals We needed to update CharacterModal and WeaponModal to display awakenings from the new data format. However, the component used (`SelectWithInput`) was tied to AX Skills in a way that would take exponentially more time to resolve. Instead, we forked `SelectWithInput` into `AwakeningSelectWithInput` and did our work there. `AwakeningSelect` was found to be redundant, so it was removed. * Update hovercards
94 lines
1.8 KiB
TypeScript
94 lines
1.8 KiB
TypeScript
export type SearchableObject =
|
|
| Character
|
|
| Weapon
|
|
| Summon
|
|
| JobSkill
|
|
| Guidebook
|
|
export type SearchableObjectArray = (Character | Weapon | Summon | JobSkill)[]
|
|
export type JobSkillObject = {
|
|
[key: number]: JobSkill | undefined
|
|
0: JobSkill | undefined
|
|
1: JobSkill | undefined
|
|
2: JobSkill | undefined
|
|
3: JobSkill | undefined
|
|
}
|
|
|
|
export type FilterObject = {
|
|
raid?: string
|
|
element?: number
|
|
recency?: number
|
|
}
|
|
|
|
export type PaginationObject = {
|
|
count: number
|
|
totalPages: number
|
|
perPage: number
|
|
}
|
|
|
|
export type DetailsObject = {
|
|
[key: string]: boolean | number | string | string[] | Raid | undefined
|
|
fullAuto?: boolean
|
|
autoGuard?: boolean
|
|
autoSummon?: boolean
|
|
chargeAttack?: boolean
|
|
clearTime?: number
|
|
buttonCount?: number
|
|
turnCount?: number
|
|
chainCount?: number
|
|
name?: string
|
|
description?: string
|
|
raid?: Raid
|
|
job?: Job
|
|
extra?: boolean
|
|
guidebooks?: string[]
|
|
}
|
|
|
|
export type ExtendedMastery = {
|
|
modifier?: number
|
|
strength?: number
|
|
}
|
|
|
|
export type CharacterOverMastery = {
|
|
[key: number]: ExtendedMastery
|
|
1: ExtendedMastery
|
|
2: ExtendedMastery
|
|
3: ExtendedMastery
|
|
4: ExtendedMastery
|
|
}
|
|
|
|
interface GridCharacterObject {
|
|
character: {
|
|
ring1: ExtendedMastery
|
|
ring2: ExtendedMastery
|
|
ring3: ExtendedMastery
|
|
ring4: ExtendedMastery
|
|
earring: ExtendedMastery
|
|
awakening_id?: string
|
|
awakening_level?: number
|
|
transcendence_step: number
|
|
perpetuity: boolean
|
|
}
|
|
}
|
|
|
|
interface PerpetuityObject {
|
|
character: {
|
|
perpetuity: boolean
|
|
}
|
|
}
|
|
|
|
interface PageContextObj {
|
|
user?: User
|
|
teams?: Party[]
|
|
party?: Party
|
|
jobs?: Job[]
|
|
jobSkills?: JobSkill[]
|
|
raidGroups: RaidGroup[]
|
|
weaponKeys?: GroupedWeaponKeys
|
|
pagination?: PaginationObject
|
|
meta?: { [key: string]: string }
|
|
}
|
|
|
|
interface ResponseStatus {
|
|
code: number
|
|
text: string
|
|
}
|