Skip to content

Commit

Permalink
feat(api): #3021 data integration lille
Browse files Browse the repository at this point in the history
  • Loading branch information
461OceanBd committed Dec 31, 2024
1 parent 574aebf commit 2bbc7ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/api/src/modules/providers/scdl/scdl.mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { BeforeAdaptation } from "../../../@types";
import { ScdlGrantSchema } from "./@types/ScdlGrantSchema";

const OFFICIAL_MAPPER = {
allocatorName: "nomAttribuant",
allocatorSiret: "idAttribuant",
exercice: "exercice",
conventionDate: "dateConvention",
decisionReference: "referenceDecision",
Expand Down Expand Up @@ -66,9 +68,9 @@ const removeTrailingDotZero = value => {
};

export const SCDL_MAPPER: ScdlGrantSchema = {
allocatorName: { path: [["nomAttribuant", "Nom de l'attribuant", "nom Attribuant"]] },
allocatorName: { path: [[...getMapperVariants("allocatorName"), "Nom de l'attribuant", "nom Attribuant"]] },
allocatorSiret: {
path: [["idAttribuant", "Identification de l'attribuant (SIRET)", "id Attribuant"]],
path: [[...getMapperVariants("allocatorSiret"), "Identification de l'attribuant (SIRET)", "id Attribuant"]],
adapter: v => removeTrailingDotZero(v?.toString()),
},
exercice: {
Expand Down

0 comments on commit 2bbc7ee

Please sign in to comment.