Skip to content

Commit

Permalink
add default deduplication rule for client's config example
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Jan 14, 2025
1 parent 2b228d4 commit add0282
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/client/src/v2-events/features/events/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,5 +241,25 @@ export const tennisClubMembershipEvent = {
},
forms: [DEFAULT_FORM]
}
],
deduplication: [
{
id: 'STANDARD CHECK',
label: {
defaultMessage: 'Standard check',
description:
'This could be shown to the user in a reason for duplicate detected',
id: '...'
},
query: {
type: 'and',
clauses: [
{
fieldId: 'applicant.firstname',
type: 'strict'
}
]
}
}
]
} satisfies EventConfig

0 comments on commit add0282

Please sign in to comment.