2024-10-23 17:43:27 +02:00
import { TypeEvenement } from "./TypeEvenement" ;
2024-09-07 22:11:20 +02:00
export type TypeEvenementsPenal = ( typeof typesEvenementsPenal ) [ number ] ;
export const typesEvenementsPenal = [
"Mise en demeure de scolarisation" ,
2024-09-16 19:11:59 +02:00
"Gendarmerie/Forces de l'ordre" ,
2024-10-23 17:43:27 +02:00
// Procureur
2024-09-07 22:11:20 +02:00
"Audition procureur" ,
2024-09-16 19:11:59 +02:00
2024-10-23 17:43:27 +02:00
"Refus CRPC" ,
"Acceptation CRPC" , // PLaceholder see does not exist in Notion yet // See https://discord.com/channels/990921361121746984/1245360366322585691/1248260713634336839
"Classement pénal sans suite" ,
2024-09-07 22:11:20 +02:00
"Composition pénale refusée" ,
"Composition pénale acceptée" ,
2024-09-16 19:11:59 +02:00
2024-10-23 17:43:27 +02:00
"Acceptation avertissement pénal probatoire" ,
"Stage parentalité" ,
"Réquisition judiciaire" ,
2024-09-16 19:11:59 +02:00
2024-10-23 17:43:27 +02:00
// Tribunal
2024-09-16 19:11:59 +02:00
"Tribunal correctionnel" ,
2024-09-16 20:27:56 +02:00
"Appel du 1er jugement" ,
2024-12-30 14:27:56 +01:00
"Appel du 2ème jugement" , // placeholder
2024-09-16 19:11:59 +02:00
"Tribunal de police judiciaire" ,
2024-10-23 17:43:27 +02:00
"Administrateur AD'HOC" ,
2024-09-07 22:11:20 +02:00
] as const ;
2024-10-23 17:43:27 +02:00
export function isEvtTypeProcedurePenale ( evtType : TypeEvenement ) : boolean {
return (
typesEvenementsPenal . includes ( evtType as TypeEvenementsPenal ) &&
evtType !== "Mise en demeure de scolarisation"
) ;
}
export const typeEvenementsProcedurePenale = typesEvenementsPenal . filter (
isEvtTypeProcedurePenale
) ;
export function isEvtTypeProcedurePenaleHorsGendarmerie (
evtType : TypeEvenement
) : boolean {
return (
isEvtTypeProcedurePenale ( evtType ) &&
evtType !== "Gendarmerie/Forces de l'ordre"
) ;
}