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.
@@ -191,6 +195,65 @@ The `collectionIdOrAlias` is a generic collection identifier, which can be eithe
191
195
192
196
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.
193
197
198
+
#### Get Collection Storage Driver
199
+
200
+
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).
228
+
229
+
The optional `getEffective` parameter defaults to `false`. Set it to `true` to retrieve the effective storage driver after inheritance/default resolution.
230
+
231
+
#### Get Allowed Collection Storage Drivers
232
+
233
+
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).
256
+
194
257
#### Get Collection Facets
195
258
196
259
Returns a [CollectionFacet](../src/collections/domain/models/CollectionFacet.ts) array containing the facets of the requested collection, given the collection identifier or alias.
@@ -461,6 +524,57 @@ The above example creates the new collection in the root collection since no col
461
524
462
525
The use case returns a number, which is the identifier of the created collection.
463
526
527
+
#### Set Collection Storage Driver
528
+
529
+
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).
551
+
552
+
The `driverLabel` parameter must match the storage driver's label, not its id.
553
+
554
+
#### Delete Collection Storage Driver
555
+
556
+
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).
577
+
464
578
#### Update a Collection
465
579
466
580
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.
1609
+
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