From 99fcb3283c4ea95d45a6ab93bc7041a5149047e1 Mon Sep 17 00:00:00 2001 From: patrickwebsdev Date: Fri, 8 Nov 2024 12:10:44 -0300 Subject: [PATCH] fix: types --- src/types/Requests.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/types/Requests.ts b/src/types/Requests.ts index 184276ea..cea04e6d 100644 --- a/src/types/Requests.ts +++ b/src/types/Requests.ts @@ -3,7 +3,7 @@ import { Database } from './database'; export type HelpRequestType = 'necesita' | 'ofrece'; export type HelpRequestUrgencyType = 'alta' | 'media' | 'baja'; export type HelpRequestStatusType = 'pending' | 'in_progress' | 'active'; -export type HelpRequestData = Database['public']['Tables']['help_requests']['Row']; +export type HelpRequestData = Database['public']['Tables']['help_requests']['Row'] & { special_situations:string, user_id: string}; export type HelpRequestUpdate = Database['public']['Tables']['help_requests']['Update']; export type HelpRequestAssignmentData = Database['public']['Tables']['help_request_assignments']['Row']; export type HelpRequestAssignmentInsert = Database['public']['Tables']['help_request_assignments']['Insert']; @@ -12,3 +12,7 @@ export type HelpRequestAdditionalInfo = { special_situations?: string; email?: string; }; + +export type CollectionPointType = 'permanente' | 'temporal'; +export type CollectionPointStatus = 'active' | 'inactive'; +export type CollectionPointData = Database['public']['Tables']['collection_points']['Row'];