File size: 2,304 Bytes
c101b9c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// Enums matching OpenAPI spec
export type ExperienceLevel = 'beginner' | 'intermediate' | 'advanced' | 'expert';
export type DeviceType = 'desktop' | 'laptop' | 'tablet' | 'mobile' | 'embedded';
export type OperatingSystem = 'windows' | 'macos' | 'linux' | 'other';
export type SystemCapability = 'low' | 'medium' | 'high';

// Predefined options for multi-select fields
export const PROGRAMMING_LANGUAGES = [
  'Python',
  'JavaScript/TypeScript',
  'C/C++',
  'Java',
  'Go',
  'Rust',
  'Other',
] as const;

export const FRAMEWORKS_PLATFORMS = [
  'ROS/ROS 2',
  'TensorFlow',
  'PyTorch',
  'OpenCV',
  'Arduino/Embedded',
  'Web Development',
  'Mobile Development',
  'Other',
] as const;

export const EXPERIENCE_LEVELS: ExperienceLevel[] = ['beginner', 'intermediate', 'advanced', 'expert'];
export const DEVICE_TYPES: DeviceType[] = ['desktop', 'laptop', 'tablet', 'mobile', 'embedded'];
export const OPERATING_SYSTEMS: OperatingSystem[] = ['windows', 'macos', 'linux', 'other'];
export const SYSTEM_CAPABILITIES: SystemCapability[] = ['low', 'medium', 'high'];

// Software Background
export interface SoftwareBackground {
  programming_languages: string[];
  frameworks_platforms: string[];
  experience_level: ExperienceLevel;
}

// Hardware Background
export interface HardwareBackground {
  device_type: DeviceType;
  operating_system: OperatingSystem;
  system_capability: SystemCapability;
}

// Create Profile Request
export interface CreateProfileRequest {
  software_background: SoftwareBackground;
  hardware_background: HardwareBackground;
}

// Update Profile Request
export interface UpdateProfileRequest {
  software_background?: Partial<SoftwareBackground>;
  hardware_background?: Partial<HardwareBackground>;
}

// Profile Response
export interface ProfileResponse {
  auth_user_id: string;
  email: string;
  software_background: SoftwareBackground;
  hardware_background: HardwareBackground;
  created_at: string;
  updated_at: string;
}

// Create Profile Response
export interface CreateProfileResponse {
  profile_id: string;
  created_at: string;
}

// Update Profile Response
export interface UpdateProfileResponse {
  message: string;
  updated_at: string;
}

// Error Response
export interface ErrorResponse {
  error: string;
  field?: string;
  message: string;
}