@datamonsterr/vdt-dashboard
Version:
11 lines • 844 B
TypeScript
import type { ApiSchema, ApiTable, ApiColumn, ApiForeignKey, CreateSchemaRequest } from '@/types/api';
import type { DatabaseSchema, Table, Column, ForeignKey } from '@/types/database';
export declare function apiColumnToColumn(apiColumn: ApiColumn): Column;
export declare function columnToApiColumn(column: Column): ApiColumn;
export declare function apiTableToTable(apiTable: ApiTable): Table;
export declare function tableToApiTable(table: Table): ApiTable;
export declare function apiForeignKeyToForeignKey(apiFk: ApiForeignKey): ForeignKey;
export declare function foreignKeyToApiForeignKey(fk: ForeignKey): ApiForeignKey;
export declare function apiSchemaToSchema(apiSchema: ApiSchema): DatabaseSchema;
export declare function schemaToCreateRequest(schema: DatabaseSchema): CreateSchemaRequest;
//# sourceMappingURL=transformers.d.ts.map