Skip to content

Commit

Permalink
feat: add config for summary and workqueues
Browse files Browse the repository at this point in the history
  • Loading branch information
makelicious committed Dec 10, 2024
1 parent 9b888ef commit dbf65c8
Showing 1 changed file with 107 additions and 0 deletions.
107 changes: 107 additions & 0 deletions src/form/tennis-club-membership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,113 @@ export const tennisClubMembershipEvent = defineConfig({
description: 'This is what this event is referred as in the system',
id: 'event.tennis-club-membership.label'
},
summary: {

Check failure on line 21 in src/form/tennis-club-membership.ts

View workflow job for this annotation

GitHub Actions / test

Argument of type '{ id: string; label: { defaultMessage: string; description: string; id: string; }; summary: { title: { defaultMessage: string; description: string; id: string; }; fields: { id: string; }[]; }; workqueues: { id: string; title: { ...; }; fields: { ...; }[]; filters: { ...; }[]; }[]; actions: { ...; }[]; }' is not assignable to parameter of type '{ id: string; label: { id: string; description: string; defaultMessage: string; }; actions: ({ type: "CREATE"; label: { id: string; description: string; defaultMessage: string; }; forms: { active: boolean; version: { ...; }; label: { ...; }; pages: { ...; }[]; }[]; } | { ...; } | { ...; })[]; }'.
title: {
defaultMessage: '{applicant.firstname} {applicant.surname}',
description: 'This is the title of the summary',
id: 'event.tennis-club-membership.summary.title'
},
fields: [
{
id: 'applicant.firstname'
},
{
id: 'applicant.surname'
},
{
id: 'recommender.firstname'
},
{
id: 'recommender.surname'
},
{
id: 'recommender.id'
}
]
},
workqueues: [
{
id: 'in-progress',
title: {
defaultMessage: 'In progress',
description: 'Label for in progress workqueue',
id: 'event.tennis-club-membership.workqueue.in-progress.label'
},
fields: [
{
id: 'applicant.firstname'
},
{
id: 'event.type'
},
{
id: 'event.createdAt'
},
{
id: 'event.modifiedAt'
}
],
filters: [
{
status: ['CREATED']
}
]
},
{
id: 'ready-for-review',
title: {
defaultMessage: 'Ready for review',
description: 'Label for in review workqueue',
id: 'event.tennis-club-membership.workqueue.in-review.label'
},
fields: [
{
id: 'applicant.firstname'
},
{
id: 'event.type'
},
{
id: 'event.createdAt'
},
{
id: 'event.modifiedAt'
}
],
filters: [
{
status: ['DECLARED']
}
]
},
{
id: 'registered',
title: {
defaultMessage: 'Ready to print',
description: 'Label for registered workqueue',
id: 'event.tennis-club-membership.workqueue.registered.label'
},
fields: [
{
id: 'applicant.firstname'
},
{
id: 'event.type'
},
{
id: 'event.createdAt'
},
{
id: 'event.modifiedAt'
}
],
filters: [
{
status: ['REGISTERED']
}
]
}
],
actions: [
{
type: 'DECLARE',
Expand Down

0 comments on commit dbf65c8

Please sign in to comment.