Skip to content

Commit

Permalink
ON-39929 # Added submissionTimestamp for draft submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdawg093 committed Apr 30, 2024
1 parent 990ed63 commit 8670378
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/OneBlinkUploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ export default class OneBlinkUploader {
formsAppId,
externalId,
lastElementUpdated,
submissionTimestamp,
onProgress,
abortSignal,
}: UploadFormSubmissionOptions & {
Expand All @@ -246,6 +247,7 @@ export default class OneBlinkUploader {
lastElementUpdated,
externalId,
device,
submissionTimestamp,
}),
key: `forms/${definition.id}/drafts`,
tags: generateFormSubmissionTags({
Expand Down
4 changes: 3 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export type UploadFormSubmissionOptions = UploadOptions & {
device?: SubmissionTypes.NewS3SubmissionData['device']
/** The identifier for the forms app that is being submitted from */
formsAppId: number
/** An encrypted token that repraesents the user */
/** An encrypted token that represents the user */
userToken?: string
/** The external identifier that represents the submission */
externalId?: string
Expand All @@ -47,6 +47,8 @@ export type UploadFormSubmissionOptions = UploadOptions & {
previousFormSubmissionApprovalId?: string
/** The identifier of the job that will be marked as submitted */
jobId?: string
/** The iso string from when the submission took place */
submissionTimestamp?: string
}

export type UploadAssetOptions = UploadOptions & {
Expand Down

0 comments on commit 8670378

Please sign in to comment.