services refactor
This commit is contained in:
@@ -4,6 +4,7 @@ import type {
|
||||
CompleteOnboardingInputDto,
|
||||
CompleteOnboardingOutputDto,
|
||||
DriverDto,
|
||||
DriverRegistrationStatusDto,
|
||||
} from '../../dtos';
|
||||
|
||||
/**
|
||||
@@ -26,4 +27,9 @@ export class DriversApiClient extends BaseApiClient {
|
||||
getCurrent(): Promise<DriverDto | null> {
|
||||
return this.get<DriverDto | null>('/drivers/current');
|
||||
}
|
||||
|
||||
/** Get driver registration status for a specific race */
|
||||
getRegistrationStatus(driverId: string, raceId: string): Promise<DriverRegistrationStatusDto> {
|
||||
return this.get<DriverRegistrationStatusDto>(`/drivers/${driverId}/races/${raceId}/registration-status`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user