From 8670378e472e265392973d6d04baa5db68998c29 Mon Sep 17 00:00:00 2001 From: jdawg093 <49189518+jdawg093@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:03:53 +1000 Subject: [PATCH] ON-39929 # Added submissionTimestamp for draft submissions --- src/OneBlinkUploader.ts | 2 ++ src/types.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/OneBlinkUploader.ts b/src/OneBlinkUploader.ts index 474ccee..761dbb4 100644 --- a/src/OneBlinkUploader.ts +++ b/src/OneBlinkUploader.ts @@ -227,6 +227,7 @@ export default class OneBlinkUploader { formsAppId, externalId, lastElementUpdated, + submissionTimestamp, onProgress, abortSignal, }: UploadFormSubmissionOptions & { @@ -246,6 +247,7 @@ export default class OneBlinkUploader { lastElementUpdated, externalId, device, + submissionTimestamp, }), key: `forms/${definition.id}/drafts`, tags: generateFormSubmissionTags({ diff --git a/src/types.ts b/src/types.ts index f3ebb8c..9a05478 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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 @@ -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 & {