remove demo code

This commit is contained in:
2026-01-03 11:38:51 +01:00
parent 2f21dc4595
commit 9a7efa496f
38 changed files with 1535 additions and 1157 deletions

View File

@@ -4,7 +4,6 @@ import { LoginParamsDTO } from '../../types/generated/LoginParamsDTO';
import { SignupParamsDTO } from '../../types/generated/SignupParamsDTO';
import { ForgotPasswordDTO } from '../../types/generated/ForgotPasswordDTO';
import { ResetPasswordDTO } from '../../types/generated/ResetPasswordDTO';
import { DemoLoginDTO } from '../../types/generated/DemoLoginDTO';
/**
* Auth API Client
@@ -43,9 +42,4 @@ export class AuthApiClient extends BaseApiClient {
resetPassword(params: ResetPasswordDTO): Promise<{ message: string }> {
return this.post<{ message: string }>('/auth/reset-password', params);
}
/** Demo login (development only) */
demoLogin(params: DemoLoginDTO): Promise<AuthSessionDTO> {
return this.post<AuthSessionDTO>('/auth/demo-login', params);
}
}
}

View File

@@ -83,7 +83,6 @@ export function getPublicRoutes(): readonly string[] {
'/api/auth/login',
'/api/auth/forgot-password',
'/api/auth/reset-password',
'/api/auth/demo-login',
'/api/auth/session',
'/api/auth/logout',
'/auth/login',

View File

@@ -4,7 +4,6 @@ import type { LoginParamsDTO } from '../../types/generated/LoginParamsDTO';
import type { SignupParamsDTO } from '../../types/generated/SignupParamsDTO';
import type { ForgotPasswordDTO } from '../../types/generated/ForgotPasswordDTO';
import type { ResetPasswordDTO } from '../../types/generated/ResetPasswordDTO';
import type { DemoLoginDTO } from '../../types/generated/DemoLoginDTO';
/**
* Auth Service
@@ -73,16 +72,4 @@ export class AuthService {
throw error;
}
}
/**
* Demo login (development only)
*/
async demoLogin(params: DemoLoginDTO): Promise<SessionViewModel> {
try {
const dto = await this.apiClient.demoLogin(params);
return new SessionViewModel(dto.user);
} catch (error) {
throw error;
}
}
}

View File

@@ -1,7 +0,0 @@
import { describe, it, expect } from 'vitest';
describe('types/generated/DemoLoginDTO', () => {
it('should be defined', () => {
expect(true).toBe(true);
});
});

View File

@@ -1,11 +0,0 @@
/**
* Auto-generated DTO from OpenAPI spec
* Spec SHA256: 486d4cc42e94a6bbc53e2ed3b770a221d7e7a6e41f684929fd050ca0f62b5849
* This file is generated by scripts/generate-api-types.ts
* Do not edit manually - regenerate using: npm run api:generate-types
*/
export interface DemoLoginDTO {
role: string;
rememberMe?: boolean;
}

View File

@@ -46,7 +46,6 @@ export type { DashboardRaceSummaryDTO } from './DashboardRaceSummaryDTO';
export type { DashboardRecentResultDTO } from './DashboardRecentResultDTO';
export type { DeleteMediaOutputDTO } from './DeleteMediaOutputDTO';
export type { DeletePrizeResultDTO } from './DeletePrizeResultDTO';
export type { DemoLoginDTO } from './DemoLoginDTO';
export type { DriverDTO } from './DriverDTO';
export type { DriverLeaderboardItemDTO } from './DriverLeaderboardItemDTO';
export type { DriverProfileAchievementDTO } from './DriverProfileAchievementDTO';
@@ -247,4 +246,4 @@ export type { WizardErrorsDTO } from './WizardErrorsDTO';
export type { WizardErrorsScoringDTO } from './WizardErrorsScoringDTO';
export type { WizardErrorsStructureDTO } from './WizardErrorsStructureDTO';
export type { WizardErrorsTimingsDTO } from './WizardErrorsTimingsDTO';
export type { WizardStepDTO } from './WizardStepDTO';
export type { WizardStepDTO } from './WizardStepDTO';