creates application

This commit is contained in:
simon.franken
2026-02-16 10:15:27 +01:00
parent 791c661395
commit 7d678c1c4d
65 changed files with 10389 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
import { Request } from 'express';
export interface AuthenticatedUser {
id: string;
username: string;
email: string;
}
export interface AuthenticatedRequest extends Request {
user?: AuthenticatedUser;
}
export interface CreateClientInput {
name: string;
description?: string;
}
export interface UpdateClientInput {
name?: string;
description?: string;
}
export interface CreateProjectInput {
name: string;
description?: string;
color?: string;
clientId: string;
}
export interface UpdateProjectInput {
name?: string;
description?: string;
color?: string;
clientId?: string;
}
export interface CreateTimeEntryInput {
startTime: string;
endTime: string;
description?: string;
projectId: string;
}
export interface UpdateTimeEntryInput {
startTime?: string;
endTime?: string;
description?: string;
projectId?: string;
}
export interface TimeEntryFilters {
startDate?: string;
endDate?: string;
projectId?: string;
clientId?: string;
page?: number;
limit?: number;
}
export interface StartTimerInput {
projectId?: string;
}
export interface UpdateTimerInput {
projectId?: string | null;
}
export interface StopTimerInput {
projectId?: string;
}

10
backend/src/types/session.d.ts vendored Normal file
View File

@@ -0,0 +1,10 @@
import 'express-session';
import type { AuthenticatedUser } from './index';
import type { AuthSession } from '../auth/oidc';
declare module 'express-session' {
interface SessionData {
user?: AuthenticatedUser;
oidc?: AuthSession;
}
}