23 lines
798 B
TypeScript
23 lines
798 B
TypeScript
import { Result } from '@/lib/contracts/Result';
|
|
import { Service, type DomainError } from '@/lib/contracts/services/Service';
|
|
import { type StewardingApiDto } from '@/lib/types/tbd/StewardingApiDto';
|
|
|
|
export class LeagueStewardingService implements Service {
|
|
async getStewardingData(leagueId: string): Promise<Result<StewardingApiDto, DomainError>> {
|
|
// Mock data since backend not implemented
|
|
const mockData: StewardingApiDto = {
|
|
leagueId,
|
|
totalPending: 0,
|
|
totalResolved: 0,
|
|
totalPenalties: 0,
|
|
races: [],
|
|
drivers: []
|
|
};
|
|
return Result.ok(mockData);
|
|
}
|
|
|
|
async getProtestDetailViewModel(_: string, __: string): Promise<Result<any, DomainError>> {
|
|
return Result.err({ type: 'notImplemented', message: 'getProtestDetailViewModel' });
|
|
}
|
|
}
|