beam: persist ready viewer attachments

This commit is contained in:
DCCONSTRUCTIONS
2026-06-05 01:36:34 +03:00
parent 677916389f
commit 31dca29560
5 changed files with 111 additions and 6 deletions
@@ -76,6 +76,23 @@ export class IssueAttachmentService extends APIService {
});
}
async updateBeamIssueAttachmentReference(
workspaceSlug: string,
projectId: string,
issueId: string,
attachmentId: string,
beamViewer: TBeamViewerAttachment
): Promise<TIssueAttachment> {
return this.patch(
`/api/assets/v2/workspaces/${workspaceSlug}/projects/${projectId}/${this.serviceType}/${issueId}/attachments/${attachmentId}/`,
{ beamViewer }
)
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data ?? error;
});
}
async uploadIssueAttachment(
workspaceSlug: string,
projectId: string,