feat: add asset types
This commit is contained in:
parent
8fa53668ee
commit
1d2720f273
28
app/types/asset.ts
Normal file
28
app/types/asset.ts
Normal file
@ -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;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user