update attachment endpoint with new types

This commit is contained in:
Andrew Kingston 2024-12-05 12:25:05 +00:00
parent 739cab0c90
commit f8f81fdd6d
No known key found for this signature in database
1 changed files with 11 additions and 6 deletions

View File

@ -1,7 +1,17 @@
import { ProcessAttachmentResponse } from "@budibase/types"
import {
DownloadAttachmentResponse,
ProcessAttachmentResponse,
} from "@budibase/types"
import { BaseAPIClient } from "./types"
export interface AttachmentEndpoints {
downloadAttachment: (
datasourceId: string,
rowId: string,
columnName: string
) => Promise<DownloadAttachmentResponse>
// Missing request or response types
getSignedDatasourceURL: (
datasourceId: string,
bucket: string,
@ -18,11 +28,6 @@ export interface AttachmentEndpoints {
key: string,
data: any
) => Promise<{ publicUrl: string }>
downloadAttachment: (
datasourceId: string,
rowId: string,
columnName: string
) => Promise<any>
}
export const buildAttachmentEndpoints = (