Skip to content

Commit 43bcbb8

Browse files
committed
MS-1324 # Add isAIBuilderSupported to form schema
1 parent 6466b71 commit 43bcbb8

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- `isAIBuilderSupported` to form schema
13+
14+
### Added
15+
1216
- `font` to custom pdf mapping
1317

1418
### Changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@aws-sdk/client-s3": "^3.637.0",
2222
"@microsoft/eslint-plugin-sdl": "^0.2.2",
2323
"@oneblink/release-cli": "^3.4.0",
24-
"@oneblink/types": "github:oneblink/types",
24+
"@oneblink/types": "github:oneblink/types#MS-1308",
2525
"@types/content-disposition": "^0.5.8",
2626
"@types/jest": "^29.5.12",
2727
"@types/joi": "^17.2.3",

src/lib/forms-schema/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,7 @@ const formSchema = Joi.object().keys({
820820
.required(),
821821
}),
822822
),
823+
isAIBuilderSupported: Joi.boolean().default(false),
823824
})
824825

825826
export const formEventTypes: SubmissionEventTypes.FormEventType[] = [

tests/forms-schema/forms-schema.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5898,6 +5898,7 @@ describe('invalid property removal', () => {
58985898
elements: [],
58995899
isAuthenticated: false,
59005900
isMultiPage: false,
5901+
isAIBuilderSupported: false,
59015902
})
59025903
})
59035904

@@ -5932,6 +5933,7 @@ describe('invalid property removal', () => {
59325933
elements: [],
59335934
isAuthenticated: false,
59345935
isMultiPage: false,
5936+
isAIBuilderSupported: false,
59355937
})
59365938
})
59375939
test('should allow `postSubmissionReceipt.allowPDFDownload` if `postSubmissionAction` is not "URL"', () => {
@@ -5984,6 +5986,7 @@ describe('invalid property removal', () => {
59845986
elements: [],
59855987
isAuthenticated: false,
59865988
isMultiPage: false,
5989+
isAIBuilderSupported: false,
59875990
})
59885991
})
59895992
test('should throw error for `postSubmissionReceipt.allowPdfDownload.excludedElementIds` contains element ids that do not exist on the form', () => {

0 commit comments

Comments
 (0)