da6bd071ee
tx.fm.count calls + fmsImplicating fields were missed in the main FM removal pass. Drops the field from Category/Manufacturer/PartModel insights types, services, tests, and detail-page stat cards. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
49 lines
1018 B
TypeScript
49 lines
1018 B
TypeScript
export interface CategoryPriceStats {
|
|
total: number;
|
|
average: number;
|
|
min: number | null;
|
|
max: number | null;
|
|
countWithPrice: number;
|
|
}
|
|
|
|
export interface CategoryFailureStats {
|
|
repairs: number;
|
|
distinctFailedParts: number;
|
|
}
|
|
|
|
export interface CategoryManufacturerCount {
|
|
manufacturerId: string;
|
|
manufacturerName: string;
|
|
count: number;
|
|
}
|
|
|
|
export interface CategoryModelCount {
|
|
partModelId: string;
|
|
mpn: string;
|
|
count: number;
|
|
}
|
|
|
|
export interface CategoryModelFailureCount {
|
|
partModelId: string;
|
|
mpn: string;
|
|
repairs: number;
|
|
}
|
|
|
|
export interface CategoryPastEolModel {
|
|
partModelId: string;
|
|
mpn: string;
|
|
eolDate: string;
|
|
deployedCount: number;
|
|
}
|
|
|
|
export interface CategoryInsights {
|
|
totalPartModels: number;
|
|
totalParts: number;
|
|
priceStats: CategoryPriceStats;
|
|
failures: CategoryFailureStats;
|
|
byManufacturer: CategoryManufacturerCount[];
|
|
topModelsByUnits: CategoryModelCount[];
|
|
failuresByModel: CategoryModelFailureCount[];
|
|
pastEolModels: CategoryPastEolModel[];
|
|
}
|