Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several changes to the
api
module, focusing on adding new entities, updating existing data models, and refining data processing. The most important changes include adding new entities for cost and carbon inputs, updating theBaseData
entity to include new fields, and refining the data insertion and update logic in the repository.New Entities:
api/src/modules/model/entities/carbon-input.entity.ts
: Added a newCarbonInputEntity
to represent carbon input data.api/src/modules/model/entities/cost-input.entity.ts
: Added a newCostInput
entity to represent cost input data.Data Model Updates:
api/src/modules/model/base-data.entity.ts
: Updated theBaseData
entity to include new fields such asfeasibilityAnalysis
,conservationPlanningAndAdmin
,ecosystemExtent
,ecosystemLoss
, andrestorableLand
.Data Processing Enhancements:
api/src/modules/import/services/entity.preprocessor.ts
: Enhanced theprocessBaseData
method to handle new fields in theBaseData
entity.api/src/modules/model/base-data.repository.ts
: Refined theinsertData
method to update cost and carbon inputs, and added new mapping logic for these inputs.Configuration Changes:
api/src/modules/config/app-config.service.ts
: Imported new entitiesCostInput
andCarbonInputEntity
and included them in theApiConfigService
class. [1] [2]Dependency Updates:
api/package.json
: Removed the@types/multer
dependency.api/tsconfig.json
: RemovedMulter
from thetypes
array.