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.
- custom pdf read only validation
- Civic Rec Workflow Event validation
Forms.getForm()
using legacy endpoint.
- custom pdf validation to form
- [BREAKING]
Forms.validateFormEvent()
arguments. See diff below to migrate:- Forms.validateFormEvent(formElements, workflowEvent) + Forms.validateFormEvent(workflowEvent, { + formElements, + customPDFs: [] + })
- form workflow event allowing
undefined
forconfiguration.mapping
property
- update @oneblink/sdk-core to 7.4.0-beta.3 (from 7.3.2-beta.1)
- 10
SHAREPOINT_CREATE_LIST_ITEM
andSHAREPOINT_STORE_FILES
form workflow event to validation
layout
property toRepeatableSetElement
isArchived
toForm
styles
toFormsAppEnvironment
- update @oneblink/storage to 3.0.0-beta.1 (from 2.1.2-beta.3)
- legacy nylas
imageUrl
to optionsdisableAutosave
to Form schema
-
update @oneblink/sdk-core to 7.3.2-beta.1 (from 7.3.1-beta.1)
-
update @oneblink/storage to 2.1.2-beta.3 (from 2.1.1-beta.1)
NYLAS
form scheduling workflow event
- [BREAKING]
FormsApps.updateStyles()
Thestyles
property can be set usingFormsApps.createFormsApp()
and updated usingFormsApps.updateFormsApp()
- update @oneblink/sdk-core to 7.3.1-beta.1 (from 7.3.0-beta.2)
sequentialNumber
toreceiptComponents
typestartingSequentialNumber
toexternalIdGeneration
configuration
enableSubmission
to Form schema
- form slug validation allowing a number as the first character
autocompleteAttributes
to form elements
- [BREAKING]
TeamMembers
class
- update @oneblink/sdk-core to 7.3.0-beta.2 (from 7.1.0-beta.1)
slug
to form
-
update @aws-sdk/client-sesv2 to 3.637.0 (from 3.606.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)
-isHidden
prop to all elements
- validation of date and location form element references
- update @oneblink/sdk-core to 7.0.0-beta.1 (from 6.3.1-beta.1)
- [BREAKING]
Forms.encryptUserToken
- [BREAKING]
Forms.decryptUserToken
- Permissions required for functions
- allow
postSubmissionReceipt
ifpostSubmissionAction
isURL
generateFormUrl
function to include theusername
property into the JWT payload
isSubmitted
not being sent when searching for jobs if passingfalse
- update @oneblink/sdk-core to 6.3.1-beta.1 (from 6.3.0-beta.2)
canCollapseFromBottom
to section element
- form submissions and draft downloads to use storage endpoints
-
no longer depend upon @aws-sdk/client-s3
-
update @aws-sdk/client-sesv2 to 3.606.0 (from 3.521.0)
-
update @oneblink/storage to 2.1.0-beta.3 (from 2.0.0-beta.2)
- Removed ALLOW_TAG_PREFIX from release workflow
allowGeoscapeAddresses
to formCP_INTEGRATION_HUB_WEBHOOK
workflow event
secret
toorganisationManagedSecretId
in forms definition validation
pointAddressEnvironmentId
to formADDRESS_PROPERTY
to conditional predicates schema
- [BREAKING] support for NodeJS 16
- update @oneblink/sdk-core to 6.3.0-beta.2 (from 6.2.0-beta.5)
excludedAttachmentElementIds
to email and PDF eventsexecuteWorkflowEvent
to Forms class
googleAddress
element validation
- update @oneblink/sdk-core to 6.2.0-beta.5 (from 6.1.0-beta.2)
- support for
approvalForms
inmigrateForm
- update @oneblink/storage to 2.0.0-beta.2 (from 1.0.0-beta.13)
includeCalendarBookingInPdf
config to be added toPDF
events
FORM
type to conditional predicates schema- LocationElement validation for
showStreetAddress
andformattedAddressElementId
- unique elementId constraint from form event and approval step validation
-
no longer depend upon @aws-sdk/lib-storage
-
no longer depend upon @aws-sdk/s3-request-presigner
-
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
pendingApprovalsReminder
to form
notificationElementId
to HCMS form workflow eventdecorativeImage
to image element validation
- update @oneblink/sdk-core to 6.0.1-beta.2 (from 6.0.0-beta.3)
-
update @aws-sdk/client-s3 to 3.521.0 (from 3.504.0)
-
update @aws-sdk/client-sesv2 to 3.521.0 (from 3.504.0)
-
update @aws-sdk/lib-storage to 3.521.0 (from 3.504.0)
-
update @aws-sdk/s3-request-presigner to 3.521.0 (from 3.504.0)
-
update @oneblink/sdk-core to 6.0.0-beta.3 (from 5.4.0-beta.1)
-
update joi to 17.12.2 (from 17.12.1)
-
update nodemailer to 6.9.10 (from 6.9.9)
Forms.validateEndpointConfiguration()
- [BREAKING]
Forms.validateForm()
andForms.validateFormEvent()
to return an object with a result or an error instead of throwing errors - [BREAKING]
Forms.validateForm()
to return aNewForm
(aForm
without theid
,createdAt
andupdatedAt
properties)
- [BREAKING]
Forms.validateApiRequest()
- [BREAKING]
Forms.validateConditionalPredicates()
arcGISWebMap
form element
- update @oneblink/sdk-core to 5.4.0-beta.1 (from 5.3.0)
isRetryable
to form workflow events
-
update @aws-sdk/client-s3 to 3.504.0 (from 3.474.0)
-
update @aws-sdk/client-sesv2 to 3.504.0 (from 3.474.0)
-
update @aws-sdk/lib-storage to 3.504.0 (from 3.474.0)
-
update @aws-sdk/s3-request-presigner to 3.504.0 (from 3.474.0)
-
update @oneblink/sdk-core to 5.3.0 (from 5.2.0-beta.2)
-
update joi to 17.12.1 (from 17.11.0)
-
update nodemailer to 6.9.9 (from 6.9.7)
WESTPAC_QUICK_STREAM
payment event to form schema
- PDF config validation to include PDF Page size
- Form validation to include
customCssClasses
prop forms.getSubmissionData
to return undefined when anAccessDenied
error is thrown
nswAPILiquorLicence
form elementuploadEmailAttachment
toForms
classemailAttachmentsEndpoint
to email form workflow events validation
-
update @aws-sdk/client-s3 to 3.474.0 (from 3.433.0)
-
update @aws-sdk/client-sesv2 to 3.474.0 (from 3.433.0)
-
update @aws-sdk/lib-storage to 3.474.0 (from 3.433.0)
-
update @aws-sdk/s3-request-presigner to 3.474.0 (from 3.433.0)
-
update @oneblink/sdk-core to 5.2.0-beta.2 (from 3.1.0-beta.4)
-
update joi to 17.11.0 (from 17.9.2)
-
update jsonwebtoken to 9.0.2 (from 9.0.0)
-
update node-fetch to 2.7.0 (from 2.6.11)
-
update nodemailer to 6.9.7 (from 6.9.3)
externalId
not being used as search param insearchSubmissions()
- URI Encoding for Asset Upload
- public file URL for S3 assets
continueWithAutosave
to forms validationgeneratePdfFromSubmissionData()
function toPDF
classexternalId
as option forsearchSubmissions()
- [BREAKING]
sendEmail()
result
-
depend upon @aws-sdk/client-s3 3.433.0
-
depend upon @aws-sdk/client-sesv2 3.433.0
-
depend upon @aws-sdk/lib-storage 3.433.0
-
depend upon @aws-sdk/s3-request-presigner 3.433.0
REPEATABLESET
type to conditional predicates
- CI job for building docs
- [BREAKING]
definition
fromDataManager.searchRecords()
result
submissionTitle
toForm
typesubmissionTitle
toforms.searchSubmissions()
- legacy receipt generation and personalisation code
runLookupOnClear
toFormElementLookup
type
submissionId
typed asnumber
instead ofstring
generateWorkflowAttachmentLink()
function toForms
class
FormElementLookups
classFormElementLists
classlookupButton
prop to form elements
- summary form element validation not allowing referenced elements from outside the scope of the summary element when using repeatable sets
-
update joi to 17.9.2 (from 17.8.3)
-
update node-fetch to 2.6.11 (from 2.6.9)
-
update nodemailer to 6.9.3 (from 6.9.1)
defaultPreventPaymentOnClarificationRequest
to formNSW_GOV_PAY
payment event added to validation
- update @oneblink/sdk-core to 3.1.0-beta.4 (from 3.0.0-beta.1)
- [BREAKING] support for NodeJS 14
- email validation now allows
{USER:email}
includeExternalIdInPdf
topdfSubmissionEventConfiguration
- update @oneblink/sdk-core to 3.0.0-beta.1 (from 0.4.6)
searchQuerystringParameter
toautocomplete
form elementexternalIdGenerationOnSubmit
andpersonalisation
to form validation
- nested form elements to Freshdesk ticket creation form event
unpublishedUserMessage
property to form validation
displayAlways
to options sets option attribute for use with Autocomplete elementstags
andcategories
to CivicPlus HCMS form workflow event
- Element ID validation for min and max entry properties on 'repeatableSet` elements
@microsoft/eslint-plugin-sdl
eslint pluginSUBMISSION_ID
andEXTERNAL_ID
to FreshDesk mapping in form workflow events
- elementId validation for date/datetime elements
- validate elements inside repeatable sets
- remove requirement for conditionalPredicates to be unique on elementId
excludedCSSClasses
topdfSubmissionEventConfiguration
RECEIPT_ID
option to external id generation for formspostSubmissionReceipt
property to form validationhintPosition
property to element validationtoEmail
,ccEmail
andbccEmail
toemailSubmissionEventConfiguration
- html string validation to form element hint
- Deprecated
emailSubmissionEventConfiguration.email
formApprovalFlowInstanceId
toApprovals.searchFormSubmissionAdministrationApprovals()
requiredAll
to checkbox form element
-
update @oneblink/sdk-core to 0.4.6 (from 0.4.4)
-
update joi to 17.8.3 (from 17.7.0)
-
update jsonwebtoken to 9.0.0 (from 8.5.1)
-
update node-fetch to 2.6.9 (from 2.6.7)
-
update nodemailer to 6.9.1 (from 6.8.0)
'oneblink:access'
claim to JWT for signed URL to submit an authenticated form
disallowApprovingWhenAwaitingClarification
toapprovalConfiguration
- BREAKING
searchForms
to use/v2/forms
(see migration guide)
isInfoPage
prop from Forms
- Validation for TRIM to optionally require
location
andactionDefinition
- timezone to Organisation
- BREAKING drop support for NodeJS 12
FormsApps.verifyJWT()
to use cognito directly
(new FormsApps()).verifyJWT()
instance function
-
update @oneblink/sdk-core to 0.4.4 (from 0.4.4-beta.1)
-
update joi to 17.7.0 (from 17.6.0)
-
update nodemailer to 6.8.0 (from 6.7.7)
- verifyJWT to call API instead of using cognito
- no longer depend upon jwks-rsa
getSubmissionAttachmentMeta
toForms
class
- test environment domains to
.test.
- form events and post submission actions to exports
- Preset Response Keys to be unique
autoDenyAfterClarificationRequest
toapprovalConfiguration
on form validation
secret
validation toserverValidation
prop on formisValid
property tosearchSubmissions
paramsapprovalConfiguration
property toForm
DataManager
class
- update @oneblink/sdk-core to 0.4.4-beta.1 (from 0.4.2)
- form element validation to convert legacy storage type to private
meta
property to all Form ElementscustomCssClasses
to form element validationrequireMessage
to form element validationlabel
to form workflow event validationPOWER_AUTOMATE_FLOW
workflow event
-
update @oneblink/sdk-core to 0.4.2 (from 0.4.1-beta.5)
-
update nodemailer to 6.7.7 (from 6.7.5)
Forms.validateFormEvent
function to validate form eventsformSubmissionWorkflowEvents
andformSubmissionSchedulingBooking
to result fromForms.getFormSubmissionMeta()
- PDF configuration options to allow appropriate submission events, including the new configuration
includePaymentInPdf
approvals.getFormSubmissionApproval()
docs
freshdeskDependentField
form element
- update @oneblink/sdk-core to 0.4.1-beta.5 (from 0.4.0)
- email templates to cater for multiple environments
- PDF origin to API origin
-
update @oneblink/sdk-core to 0.4.0 (from 0.4.0-beta.2)
-
update node-fetch to 2.6.7 (from 2.6.5)
-
update nodemailer to 6.7.5 (from 6.7.3)
formSubmissionPayments
to result fromForms.getFormSubmissionMeta()
formSubmissionmeta
type renamed toformSubmissionMeta
FRESHDESK_ADD_NOTE_TO_TICKET
to form validation
- Element validation to trim whitespace on name and option set value
compareWith
property to Conditional Predicates
-
update @oneblink/sdk-core to 0.4.0-beta.2 (from 0.3.3-beta.1)
-
update joi to 17.6.0 (from 17.4.2)
-
update nodemailer to 6.7.3 (from 6.6.5)
FormsApps.setSendingAddress()
now returns theFormsAppSendingAddressResponse
type instead of theFormsAppSendingAddress
.
FormsApps.getSendingAddress()
clarificationRequestEmailTemplateId
toApprovalSteps
- move
aws-sdk
from dependencies to peerDependencies
- no longer depend upon aws-sdk
Forms.createForm()
no longer requirescreatedAt
andupdatedAt
properties
createSubmissionAttachment
now returnsuploadedAt
- Switch migrateForm() param type to
EnvironmentTypes.FormMigrationData
and now return the migrated form contentDisposition
to use SDK-Core function instead
-
update @oneblink/sdk-core to 0.3.3-beta.1 (from 0.2.4-beta.2)
-
no longer depend upon content-disposition
approvalFormsInclusion
property to configuration for approval events that generate a PDFapprovalFormId
to approvalStepsForms.getFormSubmissionMeta()
method
migrateForm
function to Forms
submissionEvents
in toformEvents
.
approvalSteps
to form definition
- ABN Element Validation
- submission event for Freshdesk ticket creation
FRESHDESK_FIELD
options type for form elements
createFormsApp
type to omitstyles
- Submission Event for only emails
- File Elements to disallow extensionless files
- hint and conditional logic to BSB element
EmailTemplates
class
- update @oneblink/sdk-core to 0.2.4-beta.2 (from 0.1.3)
emailTemplate
to"PDF"
submission eventFormsAppEnvironments
class
- Updated
Forms.search()
toForms.searchForms()
.
- Lookup element schema to
files
element type
usePagesAsBreaks
property to submission events which can generate a PDF
groupFiles
property to'TRIM'
form submission event
-
update @oneblink/sdk-core to 0.1.3 (from 0.1.3-beta.1)
-
update node-fetch to 2.6.5 (from 2.6.1)
-
update nodemailer to 6.6.5 (from 6.6.3)
BSB
form element
- update @oneblink/sdk-core to 0.1.3-beta.1 (from 0.1.0)
validateApiRequest()
functiongetFormSubmissionApproval()
functiongetFormApprovalFlowInstance()
function
- summary element validation not allowing nested form elements
updatedAfterDateTime
andupdatedBeforeDateTime
query parameters toapprovals.getFormSubmissionAdministrationApprovals
lastUpdatedBy
query parameter toapprovals.getFormSubmissionAdministrationApprovals
isDescription
property toform.submissionEvents[].configuration.mapping[]
-
update @oneblink/sdk-core to 0.1.0 (from 0.1.0-beta.1)
-
update joi to 17.4.2 (from 17.4.0)
-
update nodemailer to 6.6.3 (from 6.6.1)
Approvals
classexternalIdGeneration
property to form schema
serverValidation
property to form schema
- conditional predicate submission event validation
- extra validation for form (copied out of API)
generateSubmissionAttachmentUrl()
- drop support for NodeJS 10
- depend upon @oneblink/sdk-core 0.1.0-beta.1
defaultValue
tofiles
form element validationexcludedElementIds
topdf.generateFormSubmissionPDF()
Section
form elementBoolean
form elementCIVICA_CRM
form submission eventcivicaStreetName
form elementcivicaRecordName
form element
canToggleAll
property to checkbox and multi select elementsWESTPAC_QUICK_WEB
submission event to form schema
- Form element schemas to support regex properties.
Content-Disposition
header for attachment uploads
-
update joi to 17.4.0 (from 14.3.1)
-
depend upon content-disposition 0.5.3
toDate
andfromDate
to return raw data in form schema
encryptPdf
property toCP_HCMS
submission event typetoDateDaysOffset
,fromDateDaysOffset
anddefaultValueDaysOffset
properties to docscancelAction
property to Form
- network request's that fail without a JSON response attempting to parse the text as JSON
- documentation for
recaptchaIntegrationDomainId
property
displayAsCurrency
to form element schemastorageType
to form element schemacreateSubmissionAttachment()
getSubmissionAttachmentBuffer()
getSubmissionAttachmentStream()
author
to submission events schema
isClientLoggingEnabled
to forms app docszoom
property tolocation
form element submission data docs
pointAddress
form element to form element schema
-
depend upon nodemailer 6.5.0
- Compliance form element
hint
property to Form schema
form.submissionEvent[].configuration
allowingnull
- source to typescript
-
no longer depend upon axios
-
depend upon node-fetch 2.6.1
- Allow
previousFormSubmissionApprovalId
to be included ingenerateFormUrl()
- Forms Apps docs to reflect separate app types
- Allow
excludedElementIds
to be an empty array
excludedElementIds
to PDF Submission event configurationgeoscapeAddress
form element to form element schema
- Added
includeSubmissionIdInPdf
to PDF and Trim Submission event properties - Added
crn2
andcrn3
as BPoint Submission event properties
encryptedElementIds
toCP_HCMS
submission event type
userToken
to form URLsForms.decryptUserToken()
andForms.encryptUserToken()
functions
setSendingAddress()
functiondeleteSendingAddress()
function
- SPOTTO submission event
- minLength/maxLength props for text & textarea elements
isInteger
tonumber
element typeincludeTimestampWatermark
tocamera
element type
- BETWEEN type to conditional logic predicates
- Solution prop to RolePrivilege type
uploadAsset
toOrganisations
class
form.submissionEvents
allowingnull
andundefined
- Conditional execute properties to submission events
- Allowed 'NOW' for date, time and DateTime defaultValues
- Update
Forms-App
docs
environmentId
to BPOINT and TRIM submission event configuration
- Publish start and end date
- Added tags for form def
- Types and validation for placeholderValue on form elements
- added
overrideLock
parameter to update and delete form functions - docs for all available search parameters when searching for forms
gatewayId
toFormSubmissionEventConfiguration
generatePageElement
toForms
class
- removed
tenant
argument from all classes. This has been replaced by specifying the tenant in therequire()
path. See the Tenants documentation for more details.
- static verifyJWT function in FormsApps Class
BPOINT
submission event to form schemaCP_HCMS
submission event to form schemaSEARCH
andsearchUrl
documentation for Autocomplete elements
- Summary Element to Element types
slug
property to Forms Appsslug
property to Organisations
- Drop support for Node 8
CP_PAY
submission event to form schemacreateForm()
functionupdateForm()
functiondeleteForm()
functionrequired
tolocation
form element type
url
,username
andpassword
fromTRIM
submission event
0.4.4
being published with--tag beta
- Regex for apiId in the form submission
TRIM
submission event to forms schema
- Added
searchSubmissions()
function to Form class
Files
elementpriority
as optional parameter tocreateJob
functiondevice
property to example of form submission data
- Added
search()
function to Jobs class
- Added form schema validation for
formsAppEnvironmentId
in Forms and FormsApps
- element and data lookup configuration
- Added
restrictFileTypes
andrestrictedFileTypes
properties for file element
- Added
SEARCH
options type andsearchUrl
property for autocomplete element
isDraft
property to form submission eventsisDraft
parameter toForms.getSubmissionData()
TeamMembers
class
formsAppId
options toForms.generateFormUrl()
Forms.generateFormUrl()
) now takes an object with the following propertiesformId
externalId
preFillData
expiryInSeconds
const OneBlink = require('@oneblink/sdk')
const options = {
accessKey: '123455678901ABCDEFGHIJKL',
secretKey: '123455678901ABCDEFGHIJKL123455678901ABCDEFGHIJKL'
}
const formsSDK = new OneBlink.Forms(options)
-const formId = 1
-const externalId = 'My Custom Identifier'
-const preFillData = {
- 'FieldName1' : 'A Machine',
- 'FieldName2' : 'Room B'
-}
-formsSDK.generateFormUrl(formId, externalId, preFillData)
+formsSDK.generateFormUrl({
+ formId: 1,
+ externalId: 'My Custom Identifier',
+ preFillData: {
+ 'FieldName1' : 'A Machine',
+ 'FieldName2' : 'Room B'
+ }
+})
getMyFormsApp()
functioninjectForms
parameter togetForm()
function
- ON-4090 # added
form
andinfoPage
element types - ON-4098 # Strip out unwanted properties from form elements
FormsApps
class
- ON-4044 # added
validateForm()
function for validating a form schema - ON-4039 # added
generateFormElement()
function for generating & validating a form element
Jobs
class withcreateJob()
anddeleteJob()
functions
-
update jsonwebtoken to 8.4.0 (from 8.3.0)
- Changed
generateFormUrl()
function to get hostname viaappId
forms.generateSubmissionDataUrl()
function
forms.getForm()
function
Organisations
classesKeys
class
- Pre filled data argument to
forms.generateFormUrl()
function
- Path of forms renderer URL to match
/forms/{formId}
forms.generateFormUrl(formId, externalId)
to return a promise that will resolve with the same value as before
isAuthenticated
search parameter to Formssearch()
functionname
search parameter to Formssearch()
function
organisationId
search parameter from Formssearch()
function