Skip to content

Commit

Permalink
🔀 Intégration des modifications de la release 3.40 (#2735)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjlevesque authored Feb 14, 2025
2 parents 4ea8711 + 6752c13 commit 0cb86f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
gouvernancePartagéeCsvSchema,
historiqueAbandonCsvSchema,
motifEliminationSchema,
typeGfSchema,
typeGarantiesFinancieresCsvSchema,
dateEchéanceGfCsvSchema,
territoireProjetCsvSchema,
notifiedOnCsvSchema,
Expand Down Expand Up @@ -123,7 +123,7 @@ const candidatureCsvRowSchema = z
[colonnes.historiqueAbandon]: historiqueAbandonCsvSchema,
// columns with refines
[colonnes.motifÉlimination]: motifEliminationSchema, // see refine below
[colonnes.typeGf]: typeGfSchema, // see refine below
[colonnes.typeGf]: typeGarantiesFinancieresCsvSchema, // see refine below
[colonnes.dateÉchéanceGf]: dateEchéanceGfCsvSchema, // see refine below
[colonnes.territoireProjet]: territoireProjetCsvSchema, // see refines below
notifiedOn: notifiedOnCsvSchema,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {

export const appelOffreSchema = requiredStringSchema;
export const périodeSchema = requiredStringSchema;
export const familleSchema = requiredStringSchema;
export const familleSchema = optionalStringSchema;
export const numéroCRESchema = requiredStringSchema;
export const nomProjetSchema = requiredStringSchema;
export const sociétéMèreSchema = optionalStringSchema;
Expand Down Expand Up @@ -46,7 +46,6 @@ export const motifEliminationSchema = optionalStringSchema.transform((val) => va
export const typeGarantiesFinancieresSchema = optionalEnum(
z.enum(Candidature.TypeGarantiesFinancières.types),
);
export const typeGfSchema = z.enum(['1', '2', '3', '4']);
export const statutSchema = z.enum(Candidature.StatutCandidature.statuts).optional(); // plus modifiable une fois notifiée
export const puissanceALaPointeSchema = booleanSchema;
export const évaluationCarboneSimplifiéeSchema = strictlyPositiveNumberSchema;
Expand Down Expand Up @@ -76,6 +75,7 @@ export const dateEchéanceGfCsvSchema = dateSchema.optional();
export const financementCollectifCsvSchema = ouiNonSchema;
export const gouvernancePartagéeCsvSchema = ouiNonSchema;
export const historiqueAbandonCsvSchema = z.enum(['1', '2', '3', '4']);
export const typeGarantiesFinancieresCsvSchema = optionalEnum(z.enum(['1', '2', '3']));
export const territoireProjetCsvSchema = optionalStringSchema;
export const notifiedOnCsvSchema = z.undefined({
invalid_type_error: 'Le champs notifiedOn ne peut pas être présent',
Expand Down

0 comments on commit 0cb86f4

Please sign in to comment.