- 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>
17 lines
552 B
TypeScript
17 lines
552 B
TypeScript
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');
|
|
}
|