Prepare Kalendartool for MPM and disable invites

This commit is contained in:
Kühn
2026-10-08 15:06:22 +02:00
parent bc49c3074e
commit 556202575e
50 changed files with 905 additions and 836 deletions

View File

@@ -46,7 +46,6 @@ export const registerSchema = z
email: emailSchema,
password: passwordSchema,
username: usernameSchema.optional(),
inviteToken: z.string().trim().min(10).max(200).optional(),
})
.strict();
@@ -117,16 +116,8 @@ export const updateReservationSchema = z
})
.strict();
export const createInviteSchema = z
.object({
calendarId: z.string().trim().min(1),
expiresInDays: z.number().int().min(1).max(90).optional(),
})
.strict();
/**
* Mitglied per E-Mail zu einem Kalender hinzufuegen (DB-basiertes
* Einladungssystem, ersetzt den Token-Link-Flow in der Verwaltung).
* Vorhandenen Benutzer per E-Mail zu einem Kalender hinzufuegen.
*/
export const addMemberSchema = z
.object({
@@ -156,4 +147,4 @@ export const updateUsernameSchema = z
.object({
username: usernameSchema.nullable(),
})
.strict();
.strict();