Skip to content
577 changes: 289 additions & 288 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/event-schemas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@
},
"type": "commonjs",
"types": "./dist/index.d.ts",
"version": "1.4.6"
"version": "1.4.7"
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"items": {
"$ref": "#/$defs/CascadeGroupOverride"
},
"description": "Config defining non-default cascade groups and the conditons under which they will be used"
"description": "Config defining non-default cascade groups and the conditions under which they will be used"
}
},
"required": [
Expand Down Expand Up @@ -213,10 +213,13 @@
]
},
"accessibleFormat": {
"description": "Communication preference override for the template",
"description": "Communication preference override for the template - q1:Braille, q4:British Sign Language, x1:Large Print, x3:Audio",
"type": "string",
"enum": [
"x1"
"q1",
"q4",
"x1",
"x3"
]
},
"supplierReferences": {
Expand Down
9 changes: 6 additions & 3 deletions packages/event-schemas/schemas/RoutingConfigDeleted/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"items": {
"$ref": "#/$defs/CascadeGroupOverride"
},
"description": "Config defining non-default cascade groups and the conditons under which they will be used"
"description": "Config defining non-default cascade groups and the conditions under which they will be used"
}
},
"required": [
Expand Down Expand Up @@ -220,10 +220,13 @@
]
},
"accessibleFormat": {
"description": "Communication preference override for the template",
"description": "Communication preference override for the template - q1:Braille, q4:British Sign Language, x1:Large Print, x3:Audio",
"type": "string",
"enum": [
"x1"
"q1",
"q4",
"x1",
"x3"
]
},
"supplierReferences": {
Expand Down
9 changes: 6 additions & 3 deletions packages/event-schemas/schemas/RoutingConfigDrafted/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"items": {
"$ref": "#/$defs/CascadeGroupOverride"
},
"description": "Config defining non-default cascade groups and the conditons under which they will be used"
"description": "Config defining non-default cascade groups and the conditions under which they will be used"
}
},
"required": [
Expand Down Expand Up @@ -220,10 +220,13 @@
]
},
"accessibleFormat": {
"description": "Communication preference override for the template",
"description": "Communication preference override for the template - q1:Braille, q4:British Sign Language, x1:Large Print, x3:Audio",
"type": "string",
"enum": [
"x1"
"q1",
"q4",
"x1",
"x3"
]
},
"supplierReferences": {
Expand Down
6 changes: 4 additions & 2 deletions packages/event-schemas/schemas/TemplateCompleted/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,13 @@
"letterType": {
"type": "string",
"enum": [
"q1",
"q4",
"x0",
"x1"
"x1",
"x3"
],
"description": "Letter type - q4:British Sign Language, x1:Large Print, x0:Standard"
"description": "Letter type - q1:Braille, q4:British Sign Language, x0:Standard, x1:Large Print, x3:Audio"
},
"personalisationParameters": {
"type": "array",
Expand Down
6 changes: 4 additions & 2 deletions packages/event-schemas/schemas/TemplateDeleted/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,13 @@
"letterType": {
"type": "string",
"enum": [
"q1",
"q4",
"x0",
"x1"
"x1",
"x3"
],
"description": "Letter type - q4:British Sign Language, x1:Large Print, x0:Standard"
"description": "Letter type - q1:Braille, q4:British Sign Language, x0:Standard, x1:Large Print, x3:Audio"
},
"personalisationParameters": {
"type": "array",
Expand Down
6 changes: 4 additions & 2 deletions packages/event-schemas/schemas/TemplateDrafted/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,13 @@
"letterType": {
"type": "string",
"enum": [
"q1",
"q4",
"x0",
"x1"
"x1",
"x3"
],
"description": "Letter type - q4:British Sign Language, x1:Large Print, x0:Standard"
"description": "Letter type - q1:Braille, q4:British Sign Language, x0:Standard, x1:Large Print, x3:Audio"
},
"personalisationParameters": {
"type": "array",
Expand Down
7 changes: 4 additions & 3 deletions packages/event-schemas/src/routing-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const $RoutingConfigEventChannel = z.enum([
'LETTER',
]);

const accessibleFormats = ['x1'];
const accessibleFormats = ['q1', 'q4', 'x1', 'x3'];

export type RoutingConfigEventChannel = z.infer<
typeof $RoutingConfigEventChannel
Expand All @@ -25,7 +25,8 @@ const $RoutingConfigEventConditionalTemplate = z
description: 'Language override for the template',
}),
accessibleFormat: z.enum(accessibleFormats).optional().meta({
description: 'Communication preference override for the template',
description:
'Communication preference override for the template - q1:Braille, q4:British Sign Language, x1:Large Print, x3:Audio',
}),
supplierReferences: z.record(z.string(), z.string()).optional().meta({
description: 'Supplier references that identify the template',
Expand Down Expand Up @@ -141,7 +142,7 @@ export const $BaseRoutingConfigEventData = z.object({
}),
cascadeGroupOverrides: z.array($CascadeGroupOverride).meta({
description:
'Config defining non-default cascade groups and the conditons under which they will be used',
'Config defining non-default cascade groups and the conditions under which they will be used',
}),
});

Expand Down
4 changes: 2 additions & 2 deletions packages/event-schemas/src/template.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { z } from 'zod';
import { languages } from './common';

const letterTypes = ['q4', 'x0', 'x1'];
const letterTypes = ['q1', 'q4', 'x0', 'x1', 'x3'];

const $TemplateEventV1BaseData = z.object({
owner: z.string().meta({
Expand Down Expand Up @@ -100,7 +100,7 @@ const $LetterTemplateEventV1Data = $TemplateEventV1BaseData
}),
letterType: z.enum(letterTypes).meta({
description:
'Letter type - q4:British Sign Language, x1:Large Print, x0:Standard',
'Letter type - q1:Braille, q4:British Sign Language, x0:Standard, x1:Large Print, x3:Audio',
}),
personalisationParameters: z.array(z.string().max(1000)).meta({
description: 'List of personalisation parameters used in the template',
Expand Down
Loading