Skip to content

Commit 647055e

Browse files
committed
Ran code cleanup
1 parent 18ce3d6 commit 647055e

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

frontend/src/APIClients/taskAPIClient.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ export interface BackendTask {
66
participantName: string | null;
77
participantEmail: string | null;
88
participantRoleId: number | null;
9-
type: 'intake_form_review' | 'volunteer_app_review' | 'profile_update' | 'matching' | 'user_opt_out';
9+
type:
10+
| 'intake_form_review'
11+
| 'volunteer_app_review'
12+
| 'profile_update'
13+
| 'matching'
14+
| 'user_opt_out';
1015
priority: 'no_status' | 'low' | 'medium' | 'high';
1116
status: 'pending' | 'in_progress' | 'completed';
1217
assigneeId: string | null;
@@ -26,7 +31,12 @@ export interface TaskListResponse {
2631

2732
export interface UpdateTaskRequest {
2833
participantId?: string;
29-
type?: 'intake_form_review' | 'volunteer_app_review' | 'profile_update' | 'matching' | 'user_opt_out';
34+
type?:
35+
| 'intake_form_review'
36+
| 'volunteer_app_review'
37+
| 'profile_update'
38+
| 'matching'
39+
| 'user_opt_out';
3040
priority?: 'no_status' | 'low' | 'medium' | 'high';
3141
status?: 'pending' | 'in_progress' | 'completed';
3242
assigneeId?: string | null;

frontend/src/types/adminTypes.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,24 @@ export interface Task {
22
id: string;
33
name: string;
44
participantId?: string;
5-
type: 'Intake Form Review' | 'Ranking / Secondary App Review' | 'Matching' | 'Profile Update' | 'User Opt Out';
5+
type:
6+
| 'Intake Form Review'
7+
| 'Ranking / Secondary App Review'
8+
| 'Matching'
9+
| 'Profile Update'
10+
| 'User Opt Out';
611
startDate: string;
712
endDate: string;
813
priority: 'High' | 'Medium' | 'Low' | 'Add status';
914
assignee?: string;
1015
completed: boolean;
1116
userType: 'Participant' | 'Volunteer';
12-
category: 'intake_screening' | 'secondary_app' | 'matching_requests' | 'profile_updates' | 'user_opt_outs';
17+
category:
18+
| 'intake_screening'
19+
| 'secondary_app'
20+
| 'matching_requests'
21+
| 'profile_updates'
22+
| 'user_opt_outs';
1323
description?: string;
1424
}
1525

0 commit comments

Comments
 (0)