From 1d2720f2734c38c263106aaf021f67ad59bdcce1 Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 27 Oct 2026 16:28:48 +0530 Subject: [PATCH] feat: add asset types --- app/types/asset.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app/types/asset.ts diff --git a/app/types/asset.ts b/app/types/asset.ts new file mode 100644 index 0000000..ff7d5a5 --- /dev/null +++ b/app/types/asset.ts @@ -0,0 +1,28 @@ +import type { RecordModel } from 'pocketbase'; +import type { Project } from '~/types/project'; + +export interface ArAsset extends RecordModel { + name: string; + glb_file: string; + glb_url: string; + usdz_file: string; + usdz_url: string; + qr_url: string; + project: string; + branded_qr: boolean; + created: string; + updated: string; + expand?: { project?: Project }; +} + +export interface AssetPage { + items: ArAsset[]; + page: number; + totalPages: number; + totalItems: number; +} + +export interface AssetCounts { + total: number; + unassigned: number; +}