refactor: extract canonical dataset version types
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
export interface DatasetVersion {
|
||||
dataset_id: string;
|
||||
version: number;
|
||||
tenant_id: string;
|
||||
project_id: string;
|
||||
/** Canonical ST0RE artifact refs that make up this immutable version. */
|
||||
artifact_refs: string[];
|
||||
schema_version: string;
|
||||
record_count?: number;
|
||||
description?: string;
|
||||
created_at: string;
|
||||
created_by: string;
|
||||
correlation_id?: string;
|
||||
}
|
||||
|
||||
export interface CreateDatasetVersionInput {
|
||||
dataset_id: string;
|
||||
tenant_id: string;
|
||||
project_id: string;
|
||||
artifact_refs: string[];
|
||||
schema_version: string;
|
||||
record_count?: number;
|
||||
description?: string;
|
||||
created_by: string;
|
||||
correlation_id?: string;
|
||||
idempotency_key?: string;
|
||||
}
|
||||
|
||||
export interface DatasetExport {
|
||||
export_id: string;
|
||||
dataset_id: string;
|
||||
version: number;
|
||||
tenant_id: string;
|
||||
artifact_ref: string;
|
||||
format: "parquet" | "csv" | "json";
|
||||
created_at: string;
|
||||
}
|
||||
Reference in New Issue
Block a user