add missing type props: dates, wiki links, editKey, gw stats

This commit is contained in:
Justin Edmund 2025-12-13 14:55:40 -08:00
parent 6f16b41d35
commit a3c5676c4c
4 changed files with 71 additions and 0 deletions

View file

@ -66,6 +66,12 @@ export interface Weapon {
transcendence?: boolean
}
maxLevel?: number
maxSkillLevel?: number
maxAwakeningLevel?: number
limit?: number
extra?: boolean
ax?: boolean
axType?: number
skillLevelCap?: number
weapon_skills?: Array<{
name?: string
@ -94,6 +100,14 @@ export interface Weapon {
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[]
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
kamigame?: string
}
// Date fields
releaseDate?: string
flbDate?: string
ulbDate?: string
transcendenceDate?: string
wiki?: { en?: string; ja?: string }
gamewith?: string
kamigame?: string
}
/**

View file

@ -23,6 +23,8 @@ export interface Weapon {
series: WeaponSeriesRef | null
ax: boolean
axType: number
limit?: number
extra?: boolean
hp: {
minHp: number
maxHp: number
@ -40,8 +42,20 @@ export interface Weapon {
ulb: boolean
transcendence: boolean
}
transcendenceHp?: number
transcendenceAtk?: number
// Available awakenings for this weapon (from :full view)
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
@ -78,6 +92,14 @@ export interface Character {
}
// Available awakenings for this character (from :full view)
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
@ -106,6 +128,17 @@ export interface Summon {
maxAtkFlb: 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

View file

@ -19,6 +19,9 @@ export const GW_ROUND_LABELS: Record<GwRound, string> = {
5: 'Finals Day 4'
}
// GwEvent status
export type GwEventStatus = 'upcoming' | 'active' | 'completed'
// GwEvent from GwEventBlueprint
export interface GwEvent {
id: string
@ -26,6 +29,7 @@ export interface GwEvent {
startDate: string
endDate: string
eventNumber: number // GW #XX
status?: GwEventStatus
createdAt?: string
updatedAt?: string
}
@ -35,6 +39,10 @@ export interface CrewGwParticipation {
id: string
preliminaryRanking: number | null
finalRanking: number | null
// Aggregated stats
totalScore?: number
wins?: number
losses?: number
createdAt?: string
// From :with_event view
gwEvent?: GwEvent

View file

@ -112,6 +112,7 @@ export interface Party {
favorited?: boolean
extra?: boolean
remix?: boolean
editKey?: string
// Relationships
weapons: GridWeapon[]