feat(sat): add frontend components for SAT configuration (Phase 8)
- Add FielUploadModal component for FIEL credential upload - Add SyncStatus component showing current sync progress - Add SyncHistory component with pagination and retry - Add SAT configuration page at /configuracion/sat - Add API client functions for FIEL and SAT endpoints Features: - File upload with Base64 encoding - Real-time sync progress tracking - Manual sync trigger (initial/daily) - Sync history with retry capability - FIEL status display with expiration warning Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
16
apps/web/lib/api/fiel.ts
Normal file
16
apps/web/lib/api/fiel.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { apiClient } from './client';
|
||||
import type { FielStatus, FielUploadRequest } from '@horux/shared';
|
||||
|
||||
export async function uploadFiel(data: FielUploadRequest): Promise<{ message: string; status: FielStatus }> {
|
||||
const response = await apiClient.post('/fiel/upload', data);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
export async function getFielStatus(): Promise<FielStatus> {
|
||||
const response = await apiClient.get<FielStatus>('/fiel/status');
|
||||
return response.data;
|
||||
}
|
||||
|
||||
export async function deleteFiel(): Promise<void> {
|
||||
await apiClient.delete('/fiel');
|
||||
}
|
||||
Reference in New Issue
Block a user