12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- export type IEditorSQLRound = {
- db_name: string;
- round: number;
- round_name: string;
- };
- export type GetEditorSQLRoundRequest = IEditorSQLRound[];
- export type PostEditorSQLRunParams = {
- db_name: string;
- sql: string;
- };
- export type PostEditorChartRunParams = {
- db_name: string;
- sql?: string;
- chart_type?: string;
- };
- export type PostEditorChartRunResponse = {
- sql_data: {
- result_info: string;
- run_cost: string;
- colunms: string[];
- values: Record<string, any>[];
- };
- chart_values: Record<string, any>[];
- chart_type: string;
- };
- export type PostSQLEditorSubmitParams = {
- conv_uid: string;
- db_name: string;
- conv_round?: string | number | null;
- old_sql?: string;
- old_speak?: string;
- new_sql?: string;
- new_speak?: string;
- };
- export type PostEditorSqlParams = {
- con_uid: string;
- round: string | number;
- };
- // eslint-disable-next-line @typescript-eslint/no-empty-object-type
- export type PostEditorSqlRequest = {};
- export type GetEditorySqlParams = { con_uid: string; round: string | number };
|