@cere/rob-cli
Version:
CLI tool for deploying and managing rafts and data sources
74 lines (73 loc) • 1.8 kB
TypeScript
import { AxiosInstance } from 'axios';
interface ApiClientConfig {
baseUrl: string;
apiKey?: string;
timeout?: number;
basicAuth?: {
username: string;
password: string;
};
}
/**
* Configures the API client with the provided configuration
*/
export declare function configureApiClient(config: ApiClientConfig): void;
/**
* Returns the configured API client instance
*/
export declare function getApiClient(): AxiosInstance;
/**
* DataSource API endpoints
*/
export declare const DataSourceApi: {
/**
* Get all data sources
*/
getAllDataSources(dataServiceId?: string): Promise<any[]>;
/**
* Get a data source by ID
*/
getDataSourceById(id: string, dataServiceId?: string): Promise<any>;
/**
* Create a new data source
*/
createDataSource(dataSource: any): Promise<any>;
/**
* Update a data source
*/
updateDataSource(id: string, dataSource: any, dataServiceId?: string): Promise<any>;
/**
* Delete a data source
*/
deleteDataSource(id: string, dataServiceId?: string): Promise<void>;
/**
* Check data source connection
*/
checkConnection(config: any): Promise<boolean>;
};
/**
* Raft API endpoints
*/
export declare const RaftApi: {
/**
* Get all rafts
*/
getAllRafts(dataServiceId: string): Promise<any[]>;
/**
* Get a raft by ID
*/
getRaftById(id: string, dataServiceId?: string): Promise<any>;
/**
* Create a new raft
*/
createRaft(raft: any): Promise<any>;
/**
* Update a raft
*/
updateRaft(id: string, raft: any, dataServiceId?: string): Promise<any>;
/**
* Delete a raft
*/
deleteRaft(id: string, dataServiceId?: string): Promise<void>;
};
export {};