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 identifier of the draft form submission version.
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 identifier of the form associated with the pre-fill data.
The identifier of the pre-fill data.
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 identifier of the form associated with the submission.
The identifier of the submission.
The submission
Used to create an instance of the OneBlinkDownloader, exposing methods to download submissions and other types of files