From 85ffd38af267dec2e192a00c50679e3910523d38 Mon Sep 17 00:00:00 2001 From: alexeh Date: Thu, 21 Nov 2024 14:53:01 +0100 Subject: [PATCH] add assumption names to dto map --- shared/schemas/assumptions/assumptions.enums.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/shared/schemas/assumptions/assumptions.enums.ts b/shared/schemas/assumptions/assumptions.enums.ts index 4958c908..1f7909bf 100644 --- a/shared/schemas/assumptions/assumptions.enums.ts +++ b/shared/schemas/assumptions/assumptions.enums.ts @@ -16,3 +16,16 @@ export const COMMON_OVERRIDABLE_ASSUMPTION_NAMES = [ "Discount rate", "Verification frequency", ] as const; + +export const ASSUMPTIONS_NAME_TO_DTO_MAP = { + "Baseline reassessment frequency": "baselineReassessmentFrequency", + Buffer: "buffer", + "Carbon price increase": "carbonPriceIncrease", + "Discount rate": "discountRate", + "Verification frequency": "verificationFrequency", + "Mangrove restoration rate": "restorationRate", + "Seagrass restoration rate": "restorationRate", + "Salt marsh restoration rate": "restorationRate", + "Conservation project length": "projectLength", + "Restoration project length": "projectLength", +} as const;