cleanup
This commit is contained in:
parent
d7979500eb
commit
ce5fa9da4a
25 changed files with 68 additions and 175 deletions
|
|
@ -8,7 +8,7 @@ export interface ApiResponse<T = unknown> {
|
|||
}
|
||||
|
||||
// Base entity types
|
||||
export interface BaseEntity {
|
||||
interface BaseEntity {
|
||||
id: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
|
|
@ -126,29 +126,11 @@ export interface FormErrors {
|
|||
}
|
||||
|
||||
// Dialog props interfaces
|
||||
export interface BaseDialogProps {
|
||||
interface BaseDialogProps {
|
||||
isOpen: boolean;
|
||||
onClose: () => void;
|
||||
}
|
||||
|
||||
export interface AddExchangeDialogProps extends BaseDialogProps {
|
||||
onCreateExchange: (request: CreateExchangeRequest) => Promise<void>;
|
||||
}
|
||||
|
||||
export interface AddProviderMappingDialogProps extends BaseDialogProps {
|
||||
exchangeId: string;
|
||||
exchangeName: string;
|
||||
onCreateMapping: (
|
||||
request: CreateProviderMappingRequest
|
||||
) => Promise<unknown>;
|
||||
}
|
||||
|
||||
export interface DeleteExchangeDialogProps extends BaseDialogProps {
|
||||
exchangeId: string;
|
||||
exchangeName: string;
|
||||
providerMappingCount: number;
|
||||
onConfirmDelete: (exchangeId: string) => Promise<boolean>;
|
||||
}
|
||||
|
||||
// Legacy compatibility - can be removed later
|
||||
export type ExchangesApiResponse<T = unknown> = ApiResponse<T>;
|
||||
}
|
||||
|
|
@ -32,17 +32,6 @@ export interface ProviderMappingStats {
|
|||
coveragePercentage: number;
|
||||
}
|
||||
|
||||
export interface SyncStatus {
|
||||
lastSync?: {
|
||||
symbols?: string;
|
||||
exchanges?: string;
|
||||
providerMappings?: string;
|
||||
};
|
||||
pendingJobs?: number;
|
||||
activeJobs?: number;
|
||||
completedJobs?: number;
|
||||
failedJobs?: number;
|
||||
}
|
||||
|
||||
export type DataClearType = 'exchanges' | 'provider_mappings' | 'all';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue