99 CenterStageEnums ,
1010 IntoTheDeepEnums ,
1111 FtcDrivetrain ,
12+ ReefscapeEnums ,
1213} from "./Enums" ;
1314import { PitReportData , QuantData , Pitreport , Report , League } from "./Types" ;
1415
@@ -143,6 +144,14 @@ export type StatPair<
143144 label : string ;
144145} ;
145146
147+ export type StatGroup <
148+ TPitData extends PitReportData ,
149+ TQuantData extends QuantData ,
150+ > = {
151+ stats : Stat < TPitData , TQuantData > [ ] ;
152+ label : string ;
153+ } ;
154+
146155export type StatsLayout <
147156 TPitData extends PitReportData ,
148157 TQuantData extends QuantData ,
@@ -204,6 +213,10 @@ export function keyToType(
204213 CenterStageEnums . AutoSidePreference ,
205214 IntoTheDeepEnums . StartedWith ,
206215 IntoTheDeepEnums . EndgameLevelClimbed ,
216+ ReefscapeEnums . AutoCapabilities ,
217+ ReefscapeEnums . Climbing ,
218+ ReefscapeEnums . DriveThroughDeepCage ,
219+ ReefscapeEnums . EndgameClimbStatus ,
207220 ] ;
208221
209222 if ( key === "Defense" ) return Defense ;
@@ -213,6 +226,11 @@ export function keyToType(
213226 if ( key === "EndgameLevelClimbed" )
214227 return IntoTheDeepEnums . EndgameLevelClimbed ;
215228
229+ if ( key == "AutoCapabilities" ) return ReefscapeEnums . AutoCapabilities ;
230+ if ( key == "Climbing" ) return ReefscapeEnums . Climbing ;
231+ if ( key == "DriveThroughDeepCage" ) return ReefscapeEnums . DriveThroughDeepCage ;
232+ if ( key == "EndgameClimbStatus" ) return ReefscapeEnums . EndgameClimbStatus ;
233+
216234 for ( const e of enums ) {
217235 if ( Object . values ( e ) . includes ( exampleData [ key ] ) ) return e ;
218236 }
0 commit comments