diff --git a/packages/reva-api/modules/feasibility/feasibility.features.ts b/packages/reva-api/modules/feasibility/feasibility.features.ts index 113ea58f8..271fe4118 100644 --- a/packages/reva-api/modules/feasibility/feasibility.features.ts +++ b/packages/reva-api/modules/feasibility/feasibility.features.ts @@ -643,7 +643,7 @@ const deleteFeasibilityIDFile = async (feasibilityId: string) => { } }; -export const validateFeasibility = async ({ +const validateFeasibility = async ({ feasibilityId, comment, hasRole, @@ -768,7 +768,7 @@ export const validateFeasibility = async ({ } }; -export const rejectFeasibility = async ({ +const rejectFeasibility = async ({ feasibilityId, comment, hasRole, @@ -883,7 +883,7 @@ export const rejectFeasibility = async ({ } }; -export const markFeasibilityAsIncomplete = async ({ +const markFeasibilityAsIncomplete = async ({ feasibilityId, comment, hasRole, @@ -984,7 +984,7 @@ export const canDownloadFeasibilityFiles = async ({ ); }; -export const isCandidacyOwner = async ( +const isCandidacyOwner = async ( keycloakId: string, candidacyId: string, ): Promise => { @@ -1005,7 +1005,7 @@ export const isCandidacyOwner = async ( return true; }; -export const canManageFeasibility = async ({ +const canManageFeasibility = async ({ hasRole, feasibility, keycloakId, diff --git a/packages/reva-api/modules/jury/jury.types.ts b/packages/reva-api/modules/jury/jury.types.ts index fa7c9224c..395a31f0e 100644 --- a/packages/reva-api/modules/jury/jury.types.ts +++ b/packages/reva-api/modules/jury/jury.types.ts @@ -5,13 +5,13 @@ export interface ExamInfo { actualExamDate: Date | null; } -export type ExamResult = +type ExamResult = | "SUCCESS" | "PARTIAL_SUCCESS" | "PARTIAL_CERTIFICATION_SUCCESS" | "FAILURE"; -export type JuryResult = +type JuryResult = | "FULL_SUCCESS_OF_FULL_CERTIFICATION" | "PARTIAL_SUCCESS_OF_FULL_CERTIFICATION" | "FULL_SUCCESS_OF_PARTIAL_CERTIFICATION" diff --git a/packages/reva-api/modules/referential/features/entreprise.ts b/packages/reva-api/modules/referential/features/entreprise.ts index 369d2daa0..a3b67c1b7 100644 --- a/packages/reva-api/modules/referential/features/entreprise.ts +++ b/packages/reva-api/modules/referential/features/entreprise.ts @@ -4,11 +4,11 @@ import { logger } from "../../shared/logger"; const URL = "https://entreprise.api.gouv.fr/v3"; -export type EtablissemntFindParams = { +type EtablissemntFindParams = { siret: string; }; -export type FormeJuridique = { +type FormeJuridique = { code: string; libelle: string; legalStatus: LegalStatus; @@ -16,18 +16,18 @@ export type FormeJuridique = { type PersonneType = "PERSONNE_PHYSIQUE" | "PERSONNE_MORALE"; -export type MandataireSocial = { +type MandataireSocial = { type: PersonneType; nom: string; fonction: string; }; -export type Kbis = { +type Kbis = { mandatairesSociaux: MandataireSocial[]; formeJuridique: string; }; -export type Etablissement = { +type Etablissement = { siret: string; siegeSocial: boolean; dateFermeture: Date | null; diff --git a/packages/reva-api/modules/referential/referential.types.ts b/packages/reva-api/modules/referential/referential.types.ts index 31d8ec5c8..4783e6fa0 100644 --- a/packages/reva-api/modules/referential/referential.types.ts +++ b/packages/reva-api/modules/referential/referential.types.ts @@ -17,7 +17,7 @@ export const CertificationStatus = { }; export type CertificationStatus = - typeof CertificationStatus[keyof typeof CertificationStatus]; + (typeof CertificationStatus)[keyof typeof CertificationStatus]; export interface Certification { id: string; @@ -83,13 +83,13 @@ export interface UpdateCertificationInput { expiresAt: Date; } -export interface CompetenceInput { +interface CompetenceInput { id?: string; index: number; label: string; } -export interface CompetenceBlocInput { +interface CompetenceBlocInput { id?: string; label: string; isOptional?: boolean;