import { OneBlinkDownloader } from '@oneblink/storage'
const downloader = new OneBlinkDownloader({
apiOrigin: 'https://auth-api.blinkm.io',
region: 'ap-southeast-2',
getBearerToken: () => getAccessToken(),
})
Download a draft form submission.
const result = await downloader.downloadDraftSubmission({
formSubmissionDraftVersionId: '5ad46e62-f466-451c-8cd6-29ba23ac50b7',
formId: 1,
abortSignal: new AbortController().signal,
})
The submission upload data and options
The submission
Download pre-fill form submission data.
const result = await downloader.downloadPrefillData({
preFillFormDataId: '5ad46e62-f466-451c-8cd6-29ba23ac50b7',
formId: 1,
abortSignal: new AbortController().signal,
})
The submission upload data and options
The submission
Download a form submission.
const result = await downloader.downloadSubmission({
submissionId: '5ad46e62-f466-451c-8cd6-29ba23ac50b7',
formId: 1,
abortSignal: new AbortController().signal,
})
The submission upload data and options
The submission
Used to create an instance of the OneBlinkDownloader, exposing methods to download submissions and other types of files