feat(frontend): schema-linking types + columns modal
This commit is contained in:
@@ -7,6 +7,24 @@ export interface WidgetOption {
|
||||
opens?: WidgetDescriptor;
|
||||
}
|
||||
|
||||
export interface SchemaColumn {
|
||||
name: string;
|
||||
description?: string;
|
||||
type?: string;
|
||||
pk?: boolean;
|
||||
suggested?: boolean;
|
||||
}
|
||||
|
||||
export interface SchemaTable {
|
||||
id: string;
|
||||
name: string;
|
||||
kind: "promote" | "exclude";
|
||||
recommended?: boolean;
|
||||
description?: string;
|
||||
rationale?: string;
|
||||
columns: SchemaColumn[];
|
||||
}
|
||||
|
||||
export interface WidgetDescriptor {
|
||||
id: string;
|
||||
schema_version?: number;
|
||||
@@ -21,6 +39,7 @@ export interface WidgetDescriptor {
|
||||
artifact?: { kind: string; content?: string; [k: string]: unknown };
|
||||
level?: "info" | "warning" | "error";
|
||||
text?: string;
|
||||
tables?: SchemaTable[];
|
||||
[k: string]: unknown;
|
||||
}
|
||||
|
||||
@@ -31,6 +50,7 @@ export interface UiResponse {
|
||||
text?: string;
|
||||
decision?: { type: string };
|
||||
control?: string;
|
||||
tables?: { id: string; enacted: boolean; columns?: string[] }[];
|
||||
}
|
||||
|
||||
export type StreamEvent =
|
||||
|
||||
Reference in New Issue
Block a user