Initial commit: Full project structure
- Backend: NestJS with Docker - Frontend: Next.js with Docker - Nginx configuration for reverse proxy - PostgreSQL setup - Docker compose for orchestration - Development environment configuration
This commit is contained in:
46
frontend/src/types/index.ts
Normal file
46
frontend/src/types/index.ts
Normal file
@@ -0,0 +1,46 @@
|
||||
// src/types/index.ts
|
||||
export interface User {
|
||||
id: string;
|
||||
email: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface Organization {
|
||||
id: string;
|
||||
name: string;
|
||||
type: 'CLINIC' | 'LAB';
|
||||
isOwner: boolean;
|
||||
plan?: {
|
||||
name: string;
|
||||
maxUsers: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface AuthResponse {
|
||||
success: boolean;
|
||||
data: {
|
||||
accessToken: string;
|
||||
refreshToken: string;
|
||||
user: User;
|
||||
organizations: Organization[];
|
||||
};
|
||||
}
|
||||
|
||||
export interface TrialRegistrationData {
|
||||
email: string;
|
||||
password: string;
|
||||
name: string;
|
||||
organizationName: string;
|
||||
organizationType: 'CLINIC' | 'LAB';
|
||||
}
|
||||
|
||||
export interface LoginData {
|
||||
email: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
export interface ApiError {
|
||||
statusCode: number;
|
||||
message: string | string[];
|
||||
error?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user