-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
152 lines (139 loc) · 3.51 KB
/
types.ts
File metadata and controls
152 lines (139 loc) · 3.51 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// Removed incorrect external Refugee import; Refugee type is defined below in this file
export type Page =
| 'dashboard'
| 'register'
| 'assessment'
| 'analytics'
| 'protection'
| 'health'
| 'education'
| 'livelihood'
| 'aid'
| 'resettlement'
| 'database'
| 'notifications'
| 'jobs';
export interface Notification {
id: string;
type: 'Protection' | 'Resettlement' | 'Aid' | 'Health' | 'System';
title: string;
description: string;
timestamp: string;
read: boolean;
}
export interface SentimentAnalysisResult {
sentiment: 'High Distress' | 'Moderate Distress' | 'Neutral' | 'Hopeful' | 'Positive';
confidenceScore: number;
summary: string;
keyConcerns: string[];
}
export interface HealthRecommendationResult {
recommendation: string;
suggestedReferral: string;
urgency: 'Routine' | 'Priority' | 'Urgent';
}
export interface ResettlementRecommendationResult {
summary: string;
keyFactors: string[];
urgency: 'Standard' | 'Elevated' | 'Critical';
}
export interface Location {
camp: string;
zone: string;
block: string;
shelter: string;
}
export interface ProtectionCase {
id: string;
type: 'GBV' | 'Harassment' | 'Theft' | 'Child Protection' | 'Other';
dateReported: string;
status: 'Open' | 'Closed' | 'Referred';
priority: 'High' | 'Medium' | 'Low';
refugeeName?: string;
refugeeId?: string;
description?: string;
referredTo?: string;
}
export interface Resettlement {
status: 'Pending IOM' | 'Interview Scheduled' | 'Approved' | 'Rejected' | 'Departed';
targetCountry: string;
iomFileNumber: string;
interviewDate?: string;
departureDate?: string;
}
export interface Refugee {
id: string;
caseNumber: string;
unhcrId: string;
individualNumber: string;
rationCardNumber: string;
fullName: string;
gender: 'Male' | 'Female' | 'Other';
dateOfBirth: string;
countryOfOrigin: string;
arrivalDate: string;
location: Location;
vulnerabilityStatus: 'None' | 'Orphan' | 'Single Parent' | 'Elderly' | 'Unaccompanied Minor' | 'Disability';
healthNotes: string;
healthReferral?: {
office: string;
notes: string;
};
psychosocialAssessment?: string;
hasConsent?: boolean;
skills: string[];
isJobSeeker: boolean;
hasSmallBusiness: boolean;
familyId: string;
relationshipToHoH: 'Focal Point' | 'Spouse' | 'Child' | 'Other';
profilePictureUrl: string;
phoneNumber: string;
email?: string;
protectionCases?: ProtectionCase[];
resettlement?: Resettlement;
enrollmentStatus?: 'Enrolled' | 'Not Enrolled' | 'Graduated';
scholarship?: boolean;
hasBiometrics: boolean;
}
export interface Appointment {
id: string;
refugeeId: string;
refugeeName: string;
type: string;
date: string;
time: string;
doctor: string;
isToday: boolean;
notes?: string;
presentingComplaint?: string;
clinicalExamination?: string;
diagnosticTests?: string;
diagnosis?: string;
treatmentPlan?: string;
}
export interface AidDistribution {
id: string;
householdId: string;
type: 'Cash Assistance' | 'Food Basket' | 'NFI Kit' | 'Shelter Kit';
date: string;
amount?: number;
quantity?: number;
partnerNgo: string;
recipients: Refugee[];
}
export interface Job {
id: string;
title: string;
company: string;
location: string;
country: string;
type: 'Full-time' | 'Part-time' | 'Contract' | 'Internship' | 'Remote';
description: string;
requirements: string[];
postedDate: string;
applyLink: string;
}
export interface ChatMessage {
role: 'user' | 'model';
text: string;
}