Checkpoint: Améliorations techniques et documentation complètes :
- Correction des 170 erreurs TypeScript liées aux types templateType dans les procédures rappels.create et rappels.update (passage de z.string() à z.enum() avec les valeurs correctes) - Nettoyage complet des fichiers de migration Drizzle (suppression des 32 anciens fichiers et génération d'une nouvelle migration propre 0000_clean_justice.sql) - Création du guide utilisateur GUIDE_CONFIGURATION_ATTESTATIONS.md expliquant en détail le nouveau workflow de configuration des attestations (modes de génération et d'envoi, workflows recommandés, bonnes pratiques, dépannage)
This commit is contained in:
@@ -1205,7 +1205,7 @@ export const appRouter = router({
|
||||
create: adminProcedure
|
||||
.input(z.object({
|
||||
nom: z.string(),
|
||||
templateType: z.string(),
|
||||
templateType: z.enum(["rappel", "rappelJ1", "rappel3", "rappel4", "rappel5", "rappel6"]),
|
||||
timing: z.enum(["pre_formation", "post_formation"]).default("pre_formation"),
|
||||
joursAvant: z.number(),
|
||||
heureEnvoi: z.string().default("09:00"),
|
||||
@@ -1238,7 +1238,7 @@ export const appRouter = router({
|
||||
.input(z.object({
|
||||
id: z.number(),
|
||||
nom: z.string().optional(),
|
||||
templateType: z.string().optional(),
|
||||
templateType: z.enum(["rappel", "rappelJ1", "rappel3", "rappel4", "rappel5", "rappel6"]).optional(),
|
||||
timing: z.enum(["pre_formation", "post_formation"]).optional(),
|
||||
joursAvant: z.number().optional(),
|
||||
heureEnvoi: z.string().optional(),
|
||||
|
||||
Reference in New Issue
Block a user