IQSS / dataverse-client-javascript

A Dataverse client for JavaScript and TypeScript
MIT License
15 stars 8 forks source link

Get collection metadata blocks #141

Closed GPortas closed 4 months ago

GPortas commented 5 months ago

What this PR does / why we need it:

Adds new use case to the package for retrieving the metadata blocks configured in a collection.

Extends the current MetadataBlock model to include the new displayOnCreate boolean flag and new enum types.

Refactored the ApiRepository class a bit, as it included collection-specific logic that should be placed in CollectionsRepository.

Which issue(s) this PR closes:

Related Dataverse PRs:

Special notes for your reviewer:

Suggestions on how to test this:

Visual inspection of the code and review GitHub actions.