Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions model/src/form/form-definition/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ export interface PageSummary extends PageBase {
components?: ComponentDef[]
}

export interface PageSummaryWithConfirmationEmail extends PageBase {
path: ControllerPath.Summary | string
controller: ControllerType.SummaryWithConfirmationEmail
section?: undefined
components?: ComponentDef[]
}

export interface PageStatus extends PageBase {
path: ControllerPath.Status | string
controller: ControllerType.Status
Expand All @@ -118,6 +125,7 @@ export type Page =
| PageFileUpload
| PageRepeat
| PageSummary
| PageSummaryWithConfirmationEmail
| PageStatus

export interface Section {
Expand Down
4 changes: 4 additions & 0 deletions model/src/pages/controller-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export const ControllerTypes = [
name: ControllerType.Summary,
path: './pages/summary.js'
},
{
name: ControllerType.SummaryWithConfirmationEmail,
path: './pages/summary-with-confirmation-email.js'
},
{
name: ControllerType.Status,
path: './pages/status.js'
Expand Down
1 change: 1 addition & 0 deletions model/src/pages/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ export enum ControllerType {
FileUpload = 'FileUploadPageController',
Terminal = 'TerminalPageController',
Summary = 'SummaryPageController',
SummaryWithConfirmationEmail = 'SummaryPageWithConfirmationEmailController',
Status = 'StatusPageController'
}
7 changes: 7 additions & 0 deletions model/src/pages/page-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ export const PageTypes: readonly Page[] = Object.freeze([
section: undefined,
components: []
},
{
title: 'Summary page',
path: ControllerPath.Summary,
controller: ControllerType.SummaryWithConfirmationEmail,
section: undefined,
components: []
},
{
title: 'Status page',
path: ControllerPath.Status,
Expand Down
Loading