Files
gridpilot.gg/apps/website/lib/view-models/CompleteOnboardingViewModel.ts
2025-12-18 13:56:05 +01:00

19 lines
480 B
TypeScript

import { CompleteOnboardingOutputDTO } from '../types/generated/CompleteOnboardingOutputDTO';
/**
* Complete onboarding view model
* UI representation of onboarding completion result
*/
export class CompleteOnboardingViewModel {
success: boolean;
driverId?: string;
constructor(dto: CompleteOnboardingOutputDTO) {
this.success = dto.success;
}
/** UI-specific: Whether onboarding was successful */
get isSuccessful(): boolean {
return this.success;
}
}