tweaked PR 111

- added zod validation to backend. updated front end based on validation
  schema types
- cleaned up logic to be more uniform and idiomatic
This commit is contained in:
David Bauch
2025-07-24 19:58:24 -04:00
parent e5dd82034a
commit e21bc7fe2e
26 changed files with 202 additions and 227 deletions

View File

@@ -23,6 +23,7 @@ export function useGetFiles({ parentId, pageSize, pageToken, returnedValues }: G
});
return await response.json();
},
enabled: !!providerId && !!accountId,
retry: 2,
});
}
@@ -39,6 +40,7 @@ export function useGetFile({ fileId, returnedValues }: GetFileByIdSchema) {
});
return await response.json();
},
enabled: !!providerId && !!accountId,
retry: 2,
});
}