dataverse-client-javascript
dataverse-client-javascript copied to clipboard
feat: add optional datasetType to DatasetDTO and include in transform…
This pull request introduces support for handling the datasetType property in the dataset DTO and ensures it is correctly included in payload transformations. The main changes are grouped by DTO updates and transformer logic enhancements.
DTO updates:
- Added an optional
datasetTypeproperty to theDatasetDTOinterface insrc/datasets/domain/dtos/DatasetDTO.ts, allowing datasets to specify their type.
Transformer logic enhancements:
- Updated the
transformDatasetModelToNewDatasetRequestPayloadfunction insrc/datasets/infra/repositories/transformers/datasetTransformers.tsto conditionally includedatasetTypein the payload if it is present in the dataset.