All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
successfulFormSubmissionPayment
toapprovalsService.getFormSubmissionApproval()
function responsepaymentService.getDisplayDetailsFromFormSubmissionPayment()
- [BREAKING] updated
FormSubmissionApprovalsResponse
type
formSlug
property toformService.getForm()
options to allow retrieving a form with a slug andformsAppId
-
[BREAKING]
formService.getForm()
parameters to anoptions
object-const form = await formService.getForm(formId, formsAppId, abortSignal) +const form = await formService.getForm({ formId, formsAppId, abortSignal })
-
update @aws-sdk/client-cognito-identity-provider to 3.637.0 (from 3.441.0)
-
update @oneblink/sdk-core to 7.1.0-beta.1 (from 7.0.0-beta.1)
-
update @oneblink/storage to 2.1.1-beta.1 (from 2.1.0-beta.3)
submissionService.editPendingQueueSubmission
submissionService.cancelEditingPendingQueueSubmission
-
update @oneblink/sdk-core to 7.0.0-beta.1 (from 6.3.1-beta.1)
-
no longer depend upon query-string
- update @oneblink/sdk-core to 6.3.1-beta.1 (from 6.3.0-beta.2)
submission
to external id generation request payload
- form submissions and draft downloads to use storage endpoints
- [BREAKING]
approvalsService.getFormApprovalFlowInstanceSubmission()
(usesubmissionService.getSubmissionData()
) - [BREAKING]
approvalsService.getFormSubmissionApprovalSubmission()
(usesubmissionService.getSubmissionData()
)
-
no longer depend upon @aws-sdk/client-s3
-
update @oneblink/storage to 2.1.0-beta.3 (from 2.0.0-beta.2)
- [BREAKING] Westpac QuickWeb payment event
- update @oneblink/sdk-core to 6.3.0-beta.2 (from 6.2.0-beta.5)
authService.getCurrentFormsAppUser()
to call API regardless ofisSAMLUser
- autosave data not being removed after saving a draft offline
- drafts sync process throwing errors while offline
- drafts deleted offline not being removed from drafts if the request to get synced drafts is returned from cache and includes the deleted draft
- update @oneblink/sdk-core to 6.2.0-beta.5 (from 6.1.0-beta.2)
- [BREAKING] drafts to use versioning
-
update @oneblink/storage to 2.0.0-beta.2 (from 1.0.0-beta.13)
-
no longer depend upon lodash.differenceby
- update
searchCivicPlusHCMSContentItems
to call HCMS directly
- Support for the
formsAppId
as an optional second property in theauthService.forgotPassword()
function formService.deleteCivicPlusHCMSContentItem
formService.publishHCMSContentItem
formService.draftHCMSContentItem
- update
searchCivicPlusHCMSContentItems
to call HCMS directly
formService.getGeoscapeReverseGeocoding()
- s3 uploads to
@oneblink/storage
-
no longer depend upon @aws-sdk/lib-storage
-
update @oneblink/sdk-core to 6.1.0-beta.2 (from 6.0.1-beta.2)
-
depend upon @oneblink/storage 1.0.0-beta.13
- When preparing submission, default attachments with unknown type ("") to
contentType: "application/octet-stream"
to match AWS S3's defaultContent-Type
- update @oneblink/sdk-core to 6.0.1-beta.2 (from 6.0.0-beta.3)
formService.CivicPlusHCMSContentItemsResult
typeformService.CivicPlusHCMSContentItem
typeformService.searchCivicPlusHCMSContentItems()
type
- [BREAKING]
localisationService.replaceInjectablesWithElementValues()
andlocalisationService.replaceInjectablesWithSubmissionValues()
return value to be an object with ahadAllInjectablesReplaced
property
- update @oneblink/sdk-core to 6.0.0-beta.3 (from 5.4.0-beta.1)
- update @oneblink/sdk-core to 5.4.0-beta.1 (from 5.3.0-beta.1)
submissionService.getSubmissionData()
- [BREAKING]
formSubmissionService
service (getSubmissionData
is now exported fromsubmissionService
, other exports have been removed)
paymentService.westpacQuickStream
- [BREAKING]
paymentFormUrl
option tosubmissionService.submit()
formSubmissionService
service
- update @oneblink/sdk-core to 5.3.0-beta.1 (from 5.2.0-beta.2)
formService.searchAPINSWLiquorLicences()
formService.getAPINSWLiquorLicence()
- update @oneblink/sdk-core to 5.2.0-beta.2 (from 5.1.0-beta.3)
- [BREAKING]
scheduledTasksService.getTasksForFormsApp()
function signature. Madedate
argument required and changed result. - [BREAKING]
scheduledTasksService.getTaskGroupInstanceTasks()
function signature. Madedate
argument required and changed result. - [BREAKING]
scheduledTasksService.getTaskGroupInstances()
result.
taskActionId
to payload to complete scheduled task requestshortYearlessDate
andlongYearlessDate
tolocalisationService
UploadAttachmentConfiguration.data
toBlob
type
-
update @aws-sdk/client-s3 to 3.441.0 (from 3.363.0)
-
update @aws-sdk/lib-storage to 3.441.0 (from 3.363.0)
-
update @oneblink/sdk-core to 5.1.0-beta.3 (from 5.0.0-beta.2)
-
update @sentry/browser to 7.77.0 (from 6.19.7)
-
update @sentry/tracing to 7.77.0 (from 6.19.7)
-
no longer depend upon aws-sdk
-
update jwt-decode to 4.0.0 (from 3.1.2)
-
no longer depend upon local-storage
-
update query-string to 7.1.3 (from 7.1.1)
-
update ua-parser-js to 1.0.37 (from 1.0.2)
-
depend upon @aws-sdk/client-cognito-identity-provider 3.441.0
taskCompletion
toFormSubmission
type
{TASK_NAME}
,{TASK_GROUP_NAME}
and{TASK_GROUP_INSTANCE_LABEL}
to replaceable parameters
- update @oneblink/sdk-core to 5.0.0-beta.2 (from 4.0.0-beta.1)
- date parsing to use
date-fns
- forgot password flow to use API instead of AWS
scheduledTasksService.deleteCompletedTask()
scheduledTasksService.getTaskGroupInstanceTasks
scheduledTasksService.getTaskGroupInstances
taskCompletion
toexecuteCancelAction
- include taskGroupId and taskGroupInstanceId in
scheduledTasksService.completeTask()
and submission credentials request body
actions
toTaskResponse
- include taskId in submission credentials request body
scheduledTasksService.getTasksForFormsApp()
scheduledTasksService.completeTask()
scheduledTasksUrl
option tosubmissionService.submit()
HCMS_CATEGORIES
form element options set typecreatedBy
andupdatedBy
to drafts
- uploads to S3 being corrupted if a single part fails in the multi-part upload process by setting
leavePartsOnError
autosaveService.deleteAllAutosaveData()
autoSaveService.getAutoSaveKeys()
submissionTitle
toapprovalsService.getFormSubmissionAdministrationApprovals()
localisationService.formatNumber()
to return up to the maximum number of fractional digits as perIntl.NumberFormat
- search for Form Element Lookups on App open
formService.FormElementOptionsSetResult
typeformService.parseFormElementOptions()
formService.getFormElementOptionsSets()
formService.getFreshdeskFields()
formService.parseFreshdeskFieldFormElementOptions()
formService.getFormElementOptionsSetOptions()
formService.loadFormElementDynamicOptions()
runLookupOnClear
andrecords
to response fromformService.getFormElementLookups()
formService.FormElementLookupResult
type
- Submission Error handling to place submissions in pending queue if user has gone offline
- [BREAKING]
formService.getFormElementDynamicOptions()
- [BREAKING]
formService.LoadFormElementOptionsResult
type
- update @oneblink/sdk-core to 4.0.0-beta.1 (from 3.1.0-beta.4)
- Use AWS SDK V3 for
s3Submit
service
-
depend upon @aws-sdk/client-s3 3.363.0
-
depend upon @aws-sdk/lib-storage 3.363.0
- Error handling when retrieving pre-fill credentials
- Make
title
optional inOneBlinkAppsError
and remove default ofWhoops
STATIC_DATA
form element lookup type- payment prevention based on approval clarification request
- support for
GovPay
Payments
- [BREAKING]
paymentService.handlePaymentQuerystring()
return object has changed to supportreceiptItems
- [BREAKING]
submissionService.submit()
function requires more parameters to handle server validation and external ID generation within the function - [BREAKING]
submissionService.submit()
now requires aisPendingQueueEnabled
to have submissions added to the pending queue - options set to list
- update @oneblink/sdk-core to 3.1.0-beta.4 (from 3.0.0-beta.2)
authService.signUp()
- update @oneblink/sdk-core to 3.0.0-beta.2 (from 2.0.0-beta.3)
- [BREAKING]
formService.getFormElementDynamicOptions()
function result has changed to accommodate options sets that support passing a querystring parameter to filter options server side
- support for MFA to cognito logins
authService.setupMfa()
authService.disableMfa()
- optionIds not being set for dynamic options set filtering
localisationService.generateDate()
localisationService.replaceSubmissionValues()
localisationService.replaceSubmissionResultValues()
- update @oneblink/sdk-core to 2.0.0-beta.3 (from 1.0.0-beta.3)
@microsoft/eslint-plugin-sdl
eslint plugin
- update @oneblink/sdk-core to 1.0.0-beta.3 (from 0.4.4-beta.1)
downloadSubmissionPdfUrl
to return type ofsubmissionService.submit
generateExternalId
toformService
lastElementUpdated
toNewDraftSubmission
lastElementUpdated
todraftService.getDraftAndData()
externalId
to be stored in S3 object instead of S3 tags
formApprovalFlowInstanceId
toapprovalsService.getFormSubmissionAdministrationApprovals()
- checking incorrect property for successful CP Pay transactions
- CP Pay redirect to handle v2 query parameters
- time formatting for older iOS devices. Prevents date from repeating.
- depend upon ua-parser-js 1.0.2
- test environment domains to .test.
- An
onProgress
handler option to attachment upload, draft and submission functions attachmentsService
- Reduced default
queueSize
for S3 uploads to cater for slower internet connections, set dynamically if connection type is available - [BREAKING]
draftService.addDraft()
function to single argument - [BREAKING]
draftService.updateDraft()
function to single argument
- [BREAKING]
submissionService.uploadAttachment()
function. Replaced byattachmentsService.uploadAttachment()
approvalsService.closeFormApprovalFlowInstance()
approvalsService.reopenFormApprovalFlowInstance()
approvalsService.reopenFormSubmissionApproval()
- update @oneblink/sdk-core to 0.4.4-beta.1 (from 0.4.2-beta.1)
legacy
storage type for form elements
- Form element dynamic options to support
STATIC
option sets
notificationService.getEmailSubscriptions()
notificationService.updateEmailSubscriptions()
- username to lowercase before sending to Cognito
- update @oneblink/sdk-core to 0.4.2-beta.1 (from 0.4.1-beta.5)
- form submission result being removed from local storage when handling payment query string
approvalsService.createApprovalAdditionalNote()
approvalsService.updateApprovalAdditionalNote()
approvalsService.deleteApprovalAdditionalNote()
authService.getCurrentFormsAppUser()
- integration environment/gateway id to payment requests
- nested
options
to Freshdesk options
- update @oneblink/sdk-core to 0.4.1-beta.5 (from 0.4.0)
unwindRepeatableSets
to form store
- duplicate
"An unknown error has occurred. Please contact support if the problem persists."
error being reported to Sentry - redundant
"Access Denied"
being reported to Sentry
autoSaveKey
property tosubmissionService.submit()
optionsautoSaveKey
property toapprovalsService.submitApprovalForm()
optionsautoSaveKey
argument todraftService.addDraft()
autoSaveKey
argument todraftService.updateDraft()
- Unsynced offline drafts disappearing when being saved
formStoreService
localisationService.getLocale()
localisationService.getFlatpickrFormats()
localisationService.getDateFnsFormats()
abortSignal
param toformService.getForms()
,formService.getForm()
,formService.getFormElementLookups()
andformService.getFormElementLookupById()
- JSON parsing and stringifing to use
JSON
instead ofbig-json
- [BREAKING]
localisationService.locale
function. Replaced bylocalisationService.getLocale()
- [BREAKING]
localisationService.flatpickrDateFormat
function. Replaced bylocalisationService.getFlatpickrFormats().shortDate
- [BREAKING]
localisationService.flatpickrTimeFormat
function. Replaced bylocalisationService.getFlatpickrFormats().time
- [BREAKING]
localisationService.flatpickrDatetimeFormat
function. Replaced bylocalisationService.getFlatpickrFormats().shortDateTime
-
update @oneblink/sdk-core to 0.4.0 (from 0.4.0-beta.2)
-
update @sentry/browser to 6.19.7 (from 6.19.6)
-
update @sentry/tracing to 6.19.7 (from 6.19.6)
-
no longer depend upon big-json
-
no longer depend upon s3-upload-stream
-
depend upon file-saver 2.0.5
-
update @oneblink/sdk-core to 0.4.0-beta.2 (from 0.3.6-beta.3)
-
update @sentry/browser to 6.19.6 (from 6.14.3)
-
update @sentry/tracing to 6.19.6 (from 6.14.3)
-
update query-string to 7.1.1 (from 7.0.1)
createdAt
on drafts being set by client
- code to now use
validatePaymentAmount()
andgetRootElementValueById()
from SDK-core
- update @oneblink/sdk-core to 0.3.6-beta.3 (from 0.3.3-beta.1)
updatedAt
being set on drafts before sync
uploadAttachment
now returnsuploadedAt
stringcontentDisposition
changed to be a SDK-Core function
-
update @oneblink/sdk-core to 0.3.3-beta.1 (from 0.3.2-beta.1)
-
no longer depend upon content-disposition
- update @oneblink/sdk-core to 0.3.2-beta.1 (from 0.2.5-beta.1)
- Logic in handling scheduling and payment submission events
- freshdesk fields to dynamic options sets
- update @oneblink/sdk-core to 0.2.5-beta.1 (from 0.2.4-beta.2)
getForms()
not settinginjectForms
to true
-
update @oneblink/sdk-core to 0.2.4-beta.2 (from 0.1.3-beta.1)
-
update @sentry/browser to 6.14.3 (from 6.11.0)
-
update @sentry/tracing to 6.14.3 (from 6.11.0)
authService
to handle forms app logic
- update @oneblink/sdk-core to 0.1.3-beta.1 (from 0.1.2-beta.2)
- to use
userService
from SDK for parsing JWT payload
- update @oneblink/sdk-core to 0.1.2-beta.2 (from 0.1.1-beta.1)
previousFormSubmissionApprovalId
to replaceable values
- update @oneblink/sdk-core to 0.1.1-beta.1 (from 0.1.0)
ipAddress
to S3 JSON on submissionapprovalsService.reopenFormSubmissionApproval()
updatedAfterDateTime
,updatedBeforeDateTime
andlastUpdatedBy
search paramaters toapprovalsService.getFormApprovalFlowInstanceSubmission()
approvalsService.getFormApprovalUsernames()
- the notifications errors that are sent to Sentry
-
update @oneblink/sdk-core to 0.1.0 (from 0.1.0-beta.3)
-
update @sentry/browser to 6.11.0 (from 6.9.0)
-
update @sentry/tracing to 6.11.0 (from 6.9.0)
-
update localforage to 1.10.0 (from 1.9.0)
Deprecated
- [BREAKING]
approvalsService.retrieveFormSubmissionApprovalSubmission()
getFormApprovalFlows
to approvals servicegetFormSubmissionAdministrationApprovals
to approvals serviceisAdministrator
to auth service
schedulingService
- handling for multiple payment submission events with conditions
- [BREAKING]
paymentService.handlePaymentSubmissionEvent()
- [BREAKING]
formService.forEachFormElementWithOptions()
moved to @oneblink/sdk-core - [BREAKING]
formService.forEachFormElement()
moved to @oneblink/sdk-core - [BREAKING]
formService.forEachFormElement()
moved to @oneblink/sdk-core - [BREAKING]
formService.parseFormElementOptionsSet()
moved to @oneblink/sdk-core
-
update @sentry/browser to 6.9.0 (from 6.7.2)
-
update @sentry/tracing to 6.9.0 (from 6.7.2)
-
depend upon @oneblink/sdk-core 0.1.0-beta.3
- attachments in sections not uploading for offline submissions
searchCivicaStreetNames
to forms servicegetCivicaTitleCodes
to forms service
- check for successful Westpac QuickWeb payments
-
update @sentry/browser to 6.7.2 (from 6.5.0)
-
update @sentry/tracing to 6.7.2 (from 6.5.0)
-
update query-string to 7.0.1 (from 7.0.0)
- Support for
WESTPAC Quick Web
Payments
- time skew error when devices time is incorrect
Content-Disposition
header for attachments
-
update @sentry/browser to 6.5.0 (from 6.4.1)
-
update @sentry/tracing to 6.5.0 (from 6.4.1)
-
depend upon content-disposition 0.5.3
- [BREAKING]
formService.cancelForm()
-
update @sentry/browser to 6.4.1 (from 6.3.6)
-
update @sentry/tracing to 6.4.1 (from 6.3.6)
formsAppId
not being sent in request to get form submission credentials
-
update @sentry/browser to 6.3.6 (from 6.3.5)
-
update @sentry/tracing to 6.3.6 (from 6.3.5)
-
update query-string to 7.0.0 (from 6.14.1)
-
update @sentry/browser to 6.3.5 (from 6.2.5)
-
update @sentry/tracing to 6.3.5 (from 6.2.5)
- [BREAKING]
formService.getFormElementDynamicOptions()
formService.parseFormElementOptionsSet()
formService.forEachFormElementWithOptions()
Sentry
to allow for error capturing- Captured all caught errors in Sentry
-
depend upon @sentry/browser 6.2.5
-
depend upon @sentry/tracing 6.2.5
OneBlinkAppsError.httpStatusCode
not being set
- [BREAKING] Updated approvals-service docs
OneBlinkAppsError.httpStatusCode
not being set
- [BREAKING]
approvalsService.getFormSubmissionApprovals()
result. - [BREAKING]
approvalsService.getFormSubmissionApproval()
result. - [BREAKING]
approvalsService.updateFormSubmissionApproval()
argument and result.
approvalsService
previousFormSubmissionApprovalId
to S3 tags on submission upload
-
update jwt-decode to 3.1.2 (from 3.1.1)
-
update query-string to 6.14.0 (from 6.13.7)
- Invalid Option set properties not being converted to strings
null
as POST request payload when generating draft data credentials
- [BREAKING]
formService.getForm()
arguments:formId
is now the first argument andformsAppId
is the second.formsAppId
has been changed to optional.
crn2
andcrn3
to BPOINT payment configuration
X-OneBlink-User-Token
header not being sent ifAuthorization
header is sent with requests
- Include
X-OneBlink-User-Token
ifuserToken
is provided
- [BREAKING]
paymentService.handlePaymentSubmissionEvent()
argument,formSubmission
property has changed to aformSubmissionResult
. - [BREAKING]
paymentService.handlePaymentSubmissionEvent()
argument,submissionId
property has been removed
- source from Flow to TypeScript
-
update jwt-decode to 3.1.1 (from 2.2.0)
-
update query-string to 6.13.7 (from 6.13.1)
- [BREAKING]
paymentService.handlePaymentSubmissionEvent()
arguments to be a single object
- hard coded
formsAppId
on draft submissions
authService.loginHostedUI()
authService.loginUsernamePassword()
authService.changePassword()
authService.forgotPassword()
authService.registerAuthListener()
username
property on user object usespreferred_username
attribute from SAML provider if available
authService.login
. This has been replaced byauthService.loginHostedUI()
- types for submissions
Initial release