beam: integrate model attachments with Beam viewer
This commit is contained in:
@@ -6,11 +6,32 @@
|
||||
|
||||
import type { TFileSignedURLResponse } from "../file";
|
||||
|
||||
export type TBeamViewerAttachment = {
|
||||
backend: "beam-viewer-local" | "beam-viewer";
|
||||
conversion?: {
|
||||
componentTreeRequired: boolean;
|
||||
message?: string;
|
||||
sourceFormat: string;
|
||||
status: "conversion_required" | "processing" | "ready" | "failed";
|
||||
targetFormat: "glb" | "xkt";
|
||||
};
|
||||
downloadUrl: string;
|
||||
originalFilename: string;
|
||||
previewAvailable: boolean;
|
||||
src: string;
|
||||
type: string;
|
||||
uploadedAt: string;
|
||||
viewerUrl?: string;
|
||||
};
|
||||
|
||||
export type TIssueAttachment = {
|
||||
id: string;
|
||||
attributes: {
|
||||
beamViewer?: TBeamViewerAttachment;
|
||||
name: string;
|
||||
size: number;
|
||||
type?: string;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
asset_url: string;
|
||||
issue_id: string;
|
||||
|
||||
Reference in New Issue
Block a user