feat: add asset variants endpoint

This commit is contained in:
William Valentin
2026-02-01 16:47:50 -08:00
parent 5058afc980
commit 8479f50daa
3 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
type VariantRow = {
kind: string;
size: number;
key: string;
};
type VariantShape = {
kind: string;
size: number;
key: string;
};
export function shapeVariants(rows: VariantRow[]): VariantShape[] {
return rows.map((row) => ({
kind: row.kind,
size: row.size,
key: row.key,
}));
}