feat: change language
This commit is contained in:
@@ -54,6 +54,14 @@ export const updateSaveTheDateSentSchema = z.object({
|
||||
sent: z.boolean(),
|
||||
})
|
||||
|
||||
export const updateInvitationLanguageSchema = z.object({
|
||||
invitationId: z.uuid(),
|
||||
language: z.enum(supportedLanguageCodes, {
|
||||
error: "Select a supported language",
|
||||
}),
|
||||
})
|
||||
|
||||
export type CreateInvitationInput = z.infer<typeof createInvitationSchema>
|
||||
export type DeleteInvitationInput = z.infer<typeof deleteInvitationSchema>
|
||||
export type UpdateSaveTheDateSentInput = z.infer<typeof updateSaveTheDateSentSchema>
|
||||
export type UpdateInvitationLanguageInput = z.infer<typeof updateInvitationLanguageSchema>
|
||||
|
||||
Reference in New Issue
Block a user