statistiques/src/data/TypeEvenementsPenal.ts

60 lines
1.8 KiB
TypeScript
Raw Normal View History

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",
"Classement sous condition",
2024-10-23 17:43:27 +02:00
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é ou citoyenneté",
2024-10-23 17:43:27 +02:00
"Réquisition judiciaire",
2024-09-16 19:11:59 +02:00
// Tribunal correctionnel
2024-09-16 19:11:59 +02:00
"Tribunal correctionnel",
"Appel jugement Tribunal Correctionnel",
"Appel du 2ème jugement TC", // placeholder
2024-10-23 17:43:27 +02:00
"Administrateur AD'HOC",
"Relaxe Tribunal correctionnel",
"Vice de procédure tribunal correctionnel",
"Appel du parquet",
"Procès appel TC",
// Tribunal de police
"Tribunal de police judiciaire",
"Relaxe Tribunal de police",
"Appel Tribunal Police opposition ordonnance pénale",
"Procès appel TP",
// [,,,"Amendes",,,,"Classement sous condition","Information non médico-sociale"]
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"
);
}