You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
44
44
- Templates: Rename `CreateDatasetTemplateDTO` to `CreateTemplateDTO`.
45
45
- Templates: Rename `createDatasetTemplate` repository method to `createTemplate`.
46
46
- Templates: Rename `getDatasetTemplates` repository method to `getTemplatesByCollectionId`.
47
+
- Collections: `updateCollection` now supports partial updates by accepting `Partial<CollectionDTO>`. Only explicitly provided fields are sent in update requests, aligning with Dataverse API semantics. Metadata blocks handling was adjusted to respect inheritance flags and avoid invalid field combinations.
@@ -190,6 +194,65 @@ The `collectionIdOrAlias` is a generic collection identifier, which can be eithe
190
194
191
195
If no collection identifier is specified, the default collection identifier; `:root` will be used. If you want to search for a different collection, you must add the collection identifier as a parameter in the use case call.
192
196
197
+
#### Get Collection Storage Driver
198
+
199
+
Returns a [StorageDriver](../src/core/domain/models/StorageDriver.ts) instance describing the collection's assigned storage driver.
The `collectionIdOrAlias` is a generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId).
227
+
228
+
The optional `getEffective` parameter defaults to `false`. Set it to `true` to retrieve the effective storage driver after inheritance/default resolution.
229
+
230
+
#### Get Allowed Collection Storage Drivers
231
+
232
+
Returns an [AllowedStorageDrivers](../src/collections/domain/models/AllowedStorageDrivers.ts) object whose keys are driver labels and whose values are storage driver ids.
The `collectionIdOrAlias` is a generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId).
255
+
193
256
#### Get Collection Facets
194
257
195
258
Returns a [CollectionFacet](../src/collections/domain/models/CollectionFacet.ts) array containing the facets of the requested collection, given the collection identifier or alias.
@@ -460,6 +523,57 @@ The above example creates the new collection in the root collection since no col
460
523
461
524
The use case returns a number, which is the identifier of the created collection.
462
525
526
+
#### Set Collection Storage Driver
527
+
528
+
Assigns a storage driver to a collection by driver label and returns the backend success message.
The `collectionIdOrAlias` is a generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId).
550
+
551
+
The `driverLabel` parameter must match the storage driver's label, not its id.
552
+
553
+
#### Delete Collection Storage Driver
554
+
555
+
Clears the directly assigned storage driver from a collection so it falls back to inherited/default storage, and returns the backend success message.
The `collectionIdOrAlias` is a generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId).
576
+
463
577
#### Update a Collection
464
578
465
579
Updates an existing collection, given a collection identifier and a [CollectionDTO](../src/collections/domain/dtos/CollectionDTO.ts) including the updated collection data.
Returns a [StorageDriver](../src/datasets/domain/models/StorageDriver.ts) instance with storage driver configuration for a dataset, including properties like name, type, label, and upload/download capabilities.
1608
+
Returns a [StorageDriver](../src/core/domain/models/StorageDriver.ts) instance with storage driver configuration for a dataset, including properties like name, type, label, and upload/download capabilities.
0 commit comments