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
@@ -53,6 +53,7 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
53
53
- Templates: Rename `createDatasetTemplate` repository method to `createTemplate`.
54
54
- Templates: Rename `getDatasetTemplates` repository method to `getTemplatesByCollectionId`.
55
55
- Files: `DirectUploadClient` constructor now accepts a `DirectUploadClientConfig` object instead of a plain number for `maxMultipartRetries`.
56
+
- 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.
@@ -192,6 +196,65 @@ The `collectionIdOrAlias` is a generic collection identifier, which can be eithe
192
196
193
197
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.
194
198
199
+
#### Get Collection Storage Driver
200
+
201
+
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).
229
+
230
+
The optional `getEffective` parameter defaults to `false`. Set it to `true` to retrieve the effective storage driver after inheritance/default resolution.
231
+
232
+
#### Get Allowed Collection Storage Drivers
233
+
234
+
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).
257
+
195
258
#### Get Collection Facets
196
259
197
260
Returns a [CollectionFacet](../src/collections/domain/models/CollectionFacet.ts) array containing the facets of the requested collection, given the collection identifier or alias.
@@ -462,6 +525,57 @@ The above example creates the new collection in the root collection since no col
462
525
463
526
The use case returns a number, which is the identifier of the created collection.
464
527
528
+
#### Set Collection Storage Driver
529
+
530
+
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).
552
+
553
+
The `driverLabel` parameter must match the storage driver's label, not its id.
554
+
555
+
#### Delete Collection Storage Driver
556
+
557
+
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).
578
+
465
579
#### Update a Collection
466
580
467
581
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.
1610
+
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