add missing type props: dates, wiki links, editKey, gw stats
This commit is contained in:
parent
6f16b41d35
commit
a3c5676c4c
4 changed files with 71 additions and 0 deletions
|
|
@ -66,6 +66,12 @@ export interface Weapon {
|
||||||
transcendence?: boolean
|
transcendence?: boolean
|
||||||
}
|
}
|
||||||
maxLevel?: number
|
maxLevel?: number
|
||||||
|
maxSkillLevel?: number
|
||||||
|
maxAwakeningLevel?: number
|
||||||
|
limit?: number
|
||||||
|
extra?: boolean
|
||||||
|
ax?: boolean
|
||||||
|
axType?: number
|
||||||
skillLevelCap?: number
|
skillLevelCap?: number
|
||||||
weapon_skills?: Array<{
|
weapon_skills?: Array<{
|
||||||
name?: string
|
name?: string
|
||||||
|
|
@ -94,6 +100,14 @@ export interface Weapon {
|
||||||
ja?: string
|
ja?: string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Date fields
|
||||||
|
releaseDate?: string
|
||||||
|
flbDate?: string
|
||||||
|
ulbDate?: string
|
||||||
|
transcendenceDate?: string
|
||||||
|
wiki?: { en?: string; ja?: string }
|
||||||
|
gamewith?: string
|
||||||
|
kamigame?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -166,6 +180,13 @@ export interface Character {
|
||||||
promotions: number[]
|
promotions: number[]
|
||||||
promotionNames: string[]
|
promotionNames: string[]
|
||||||
}
|
}
|
||||||
|
// Date fields
|
||||||
|
releaseDate?: string
|
||||||
|
flbDate?: string
|
||||||
|
ulbDate?: string
|
||||||
|
wiki?: { en?: string; ja?: string }
|
||||||
|
gamewith?: string
|
||||||
|
kamigame?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -259,6 +280,14 @@ export interface Summon {
|
||||||
gamewith?: string
|
gamewith?: string
|
||||||
kamigame?: string
|
kamigame?: string
|
||||||
}
|
}
|
||||||
|
// Date fields
|
||||||
|
releaseDate?: string
|
||||||
|
flbDate?: string
|
||||||
|
ulbDate?: string
|
||||||
|
transcendenceDate?: string
|
||||||
|
wiki?: { en?: string; ja?: string }
|
||||||
|
gamewith?: string
|
||||||
|
kamigame?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,8 @@ export interface Weapon {
|
||||||
series: WeaponSeriesRef | null
|
series: WeaponSeriesRef | null
|
||||||
ax: boolean
|
ax: boolean
|
||||||
axType: number
|
axType: number
|
||||||
|
limit?: number
|
||||||
|
extra?: boolean
|
||||||
hp: {
|
hp: {
|
||||||
minHp: number
|
minHp: number
|
||||||
maxHp: number
|
maxHp: number
|
||||||
|
|
@ -40,8 +42,20 @@ export interface Weapon {
|
||||||
ulb: boolean
|
ulb: boolean
|
||||||
transcendence: boolean
|
transcendence: boolean
|
||||||
}
|
}
|
||||||
|
transcendenceHp?: number
|
||||||
|
transcendenceAtk?: number
|
||||||
// Available awakenings for this weapon (from :full view)
|
// Available awakenings for this weapon (from :full view)
|
||||||
awakenings?: Awakening[]
|
awakenings?: Awakening[]
|
||||||
|
// Database/admin fields
|
||||||
|
releaseDate?: string
|
||||||
|
flbDate?: string
|
||||||
|
ulbDate?: string
|
||||||
|
transcendenceDate?: string
|
||||||
|
wiki?: { en?: string; ja?: string }
|
||||||
|
gamewith?: string
|
||||||
|
kamigame?: string
|
||||||
|
nicknames?: { en?: string[]; ja?: string[] }
|
||||||
|
recruits?: string | { id: string; granblueId: string; name: LocalizedName }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Character entity from CharacterBlueprint
|
// Character entity from CharacterBlueprint
|
||||||
|
|
@ -78,6 +92,14 @@ export interface Character {
|
||||||
}
|
}
|
||||||
// Available awakenings for this character (from :full view)
|
// Available awakenings for this character (from :full view)
|
||||||
awakenings?: Awakening[]
|
awakenings?: Awakening[]
|
||||||
|
// Database/admin fields
|
||||||
|
releaseDate?: string
|
||||||
|
flbDate?: string
|
||||||
|
ulbDate?: string
|
||||||
|
wiki?: { en?: string; ja?: string }
|
||||||
|
gamewith?: string
|
||||||
|
kamigame?: string
|
||||||
|
nicknames?: { en?: string[]; ja?: string[] }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Summon entity from SummonBlueprint
|
// Summon entity from SummonBlueprint
|
||||||
|
|
@ -106,6 +128,17 @@ export interface Summon {
|
||||||
maxAtkFlb: number
|
maxAtkFlb: number
|
||||||
maxAtkUlb: number
|
maxAtkUlb: number
|
||||||
}
|
}
|
||||||
|
transcendenceHp?: number
|
||||||
|
transcendenceAtk?: number
|
||||||
|
// Database/admin fields
|
||||||
|
releaseDate?: string
|
||||||
|
flbDate?: string
|
||||||
|
ulbDate?: string
|
||||||
|
transcendenceDate?: string
|
||||||
|
wiki?: { en?: string; ja?: string }
|
||||||
|
gamewith?: string
|
||||||
|
kamigame?: string
|
||||||
|
nicknames?: { en?: string[]; ja?: string[] }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Raw data response from separate /raw endpoint
|
// Raw data response from separate /raw endpoint
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,9 @@ export const GW_ROUND_LABELS: Record<GwRound, string> = {
|
||||||
5: 'Finals Day 4'
|
5: 'Finals Day 4'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GwEvent status
|
||||||
|
export type GwEventStatus = 'upcoming' | 'active' | 'completed'
|
||||||
|
|
||||||
// GwEvent from GwEventBlueprint
|
// GwEvent from GwEventBlueprint
|
||||||
export interface GwEvent {
|
export interface GwEvent {
|
||||||
id: string
|
id: string
|
||||||
|
|
@ -26,6 +29,7 @@ export interface GwEvent {
|
||||||
startDate: string
|
startDate: string
|
||||||
endDate: string
|
endDate: string
|
||||||
eventNumber: number // GW #XX
|
eventNumber: number // GW #XX
|
||||||
|
status?: GwEventStatus
|
||||||
createdAt?: string
|
createdAt?: string
|
||||||
updatedAt?: string
|
updatedAt?: string
|
||||||
}
|
}
|
||||||
|
|
@ -35,6 +39,10 @@ export interface CrewGwParticipation {
|
||||||
id: string
|
id: string
|
||||||
preliminaryRanking: number | null
|
preliminaryRanking: number | null
|
||||||
finalRanking: number | null
|
finalRanking: number | null
|
||||||
|
// Aggregated stats
|
||||||
|
totalScore?: number
|
||||||
|
wins?: number
|
||||||
|
losses?: number
|
||||||
createdAt?: string
|
createdAt?: string
|
||||||
// From :with_event view
|
// From :with_event view
|
||||||
gwEvent?: GwEvent
|
gwEvent?: GwEvent
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,7 @@ export interface Party {
|
||||||
favorited?: boolean
|
favorited?: boolean
|
||||||
extra?: boolean
|
extra?: boolean
|
||||||
remix?: boolean
|
remix?: boolean
|
||||||
|
editKey?: string
|
||||||
|
|
||||||
// Relationships
|
// Relationships
|
||||||
weapons: GridWeapon[]
|
weapons: GridWeapon[]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue