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
{{ message }}
Repository navigation
Commit d098005
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+22-11Lines changed: 22 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,16 +8,6 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
8
8
9
9
### Added
10
10
11
-
- Guestbooks: Added `editGuestbook` use case.
12
-
- Guestbooks: Added `getGuestbookResponsesByGuestbookId` use case and repository support for retrieving paginated guestbook responses with total count as structured JSON.
13
-
- Guestbooks: Added `downloadGuestbookResponsesByCollectionId` and `downloadGuestbookResponsesOfAGuestbook` use cases and repository support for exporting guestbook responses as raw CSV content.
14
-
- Guestbooks: Added optional `includeStats` support to `getGuestbooksByCollectionId`, returning `usageCount` and `responseCount` when requested.
15
-
- Files: Added `getFileCitationByFormat` use case, repository method, and `FileCitationFormat` enum to support Dataverse file citation exports in `EndNote`, `RIS`, `BibTeX`, `CSL`, and `Internal` formats.
16
-
- Datasets: Added `getDatasetReviews` use case and repository method to support Dataverse endpoint `GET /datasets/{identifier}/reviews`, for retrieving review datasets associated with a dataset by persistent id or numeric id.
17
-
- Datasets: Added `exportDatasetMetadata` use case, repository method, and `ExportedDatasetMetadata` response type to support exporting dataset metadata by numeric id or persistent id through Dataverse endpoint `GET /datasets/export`.
18
-
- Collections: Added `allowedDatasetTypes` field to the [Collection](./src/collections/domain/models/Collection.ts) model. This field is optional and only populated the feature is enabled on the installation and configured on the collection.
19
-
- Collections: Added theme information when retrieving a collection using `getCollection`.
20
-
- Collections: Added `setDefaultContributorRole` use case.
21
11
- Datasets: `listDatasetTreeNode` use case and repository method backing `GET /datasets/{id}/versions/{versionId}/tree` for paginated, lazy listing of folders/files inside a dataset version. Returns `FileTreePage` with folder-first ordering, opaque keyset cursors, and per-file `downloadUrl`. The per-file `access` marker is one of `retentionExpired`, `restricted`, `embargoed`, or `public` (resolved in that order), and folder `counts` carry the matching mutually exclusive `restricted`/`embargoed`/`retentionExpired` buckets.
22
12
- Datasets: `iterateDatasetTreeNode` async generator that walks the cursor chain so callers can consume one folder's children without driving pagination by hand.
23
13
- Core: re-export `DataverseApiAuthMechanism` from the public surface so consumers of the standalone reusable bundles (e.g. `dv-tree-view`, `dv-uploader`) can import it without reaching into `core/...`.
@@ -32,6 +22,27 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
32
22
33
23
### Removed
34
24
25
+
## [v2.3.0] -- 2026-10-08
26
+
27
+
### Added
28
+
29
+
- Datasets: Added optional `templateId` support to `createDataset` requests and `getDataset` responses.
30
+
- Guestbooks: Added `editGuestbook` use case.
31
+
- Guestbooks: Added `getGuestbookResponsesByGuestbookId` use case and repository support for retrieving paginated guestbook responses with total count as structured JSON.
32
+
- Guestbooks: Added `downloadGuestbookResponsesByCollectionId` and `downloadGuestbookResponsesOfAGuestbook` use cases and repository support for exporting guestbook responses as raw CSV content.
33
+
- Guestbooks: Added optional `includeStats` support to `getGuestbooksByCollectionId`, returning `usageCount` and `responseCount` when requested.
34
+
- Files: Added `getFileCitationByFormat` use case, repository method, and `FileCitationFormat` enum to support Dataverse file citation exports in `EndNote`, `RIS`, `BibTeX`, `CSL`, and `Internal` formats.
35
+
- Datasets: Added `getDatasetReviews` use case and repository method to support Dataverse endpoint `GET /datasets/{identifier}/reviews`, for retrieving review datasets associated with a dataset by persistent id or numeric id.
36
+
- Datasets: Added `exportDatasetMetadata` use case, repository method, and `ExportedDatasetMetadata` response type to support exporting dataset metadata by numeric id or persistent id through Dataverse endpoint `GET /datasets/export`.
37
+
- Datasets: Added `getDatasetVersions` use case.
38
+
- Collections: Added `allowedDatasetTypes` field to the [Collection](./src/collections/domain/models/Collection.ts) model. This field is optional and only populated the feature is enabled on the installation and configured on the collection.
39
+
- Collections: Added theme information when retrieving a collection using `getCollection`.
40
+
- Collections: Added `setDefaultContributorRole` use case.
41
+
42
+
### Changed
43
+
44
+
- Files: Added an optional dataset `version` parameter to `getFileCitationByFormat` for version-specific file citation exports.
45
+
35
46
## [v2.2.0] -- 2026-04-24
36
47
37
48
### Added
@@ -59,7 +70,7 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
59
70
60
71
### Changed
61
72
62
-
- Add pagination query parameters to Dataset Version Summaries and File Version Summaries use cases.
73
+
- Add pagination query parameters to Dataset Version Summeries and File Version Summaries use cases.
63
74
- Templates: Rename `CreateDatasetTemplateDTO` to `CreateTemplateDTO`.
64
75
- Templates: Rename `createDatasetTemplate` repository method to `createTemplate`.
65
76
- Templates: Rename `getDatasetTemplates` repository method to `getTemplatesByCollectionId`.
-[Get Dataset Available Categories](#get-dataset-available-categories)
@@ -999,6 +1000,8 @@ There is an optional third parameter called `includeDeaccessioned`, which indica
999
1000
1000
1001
There is an optional fourth parameter called `keepRawFields`, which indicates whether or not to keep the metadata fields as they are and avoid the transformation to Markdown. The default value is `false`.
1001
1002
1003
+
When the dataset is associated with a template, the returned `Dataset` includes the optional `templateId` field containing that template's numeric identifier.
1004
+
1002
1005
#### Get Dataset By Private URL Token
1003
1006
1004
1007
Returns a [Dataset](../src/datasets/domain/models/Dataset.ts) instance, given an associated Private URL Token.
@@ -1286,6 +1289,34 @@ Note that `collectionId` is an optional parameter to filter datasets by collecti
1286
1289
1287
1290
The `DatasetPreviewSubset`returned instance contains a property called `totalDatasetCount` which is necessary for pagination.
1288
1291
1292
+
#### Get Dataset Versions
1293
+
1294
+
Returns an array of [Dataset](../src/datasets/domain/models/Dataset.ts) that contains information about every specific version.
- Note that the **excludeFiles** parameter, which is available on Dataverse's "List Versions of a Dataset" API, is not available here. The list of files can be retrieved using the separate use case [List Files in a Dataset](#list-files-in-a-dataset).
1319
+
1289
1320
#### Get Dataset Versions Summaries
1290
1321
1291
1322
Returns the total count of versions and an array of [DatasetVersionSummaryInfo](../src/datasets/domain/models/DatasetVersionSummaryInfo.ts) that contains information about what changed in every specific version.
The above example creates the new dataset in the root collection since no collection identifier is specified. If you want to create the dataset in a different collection, you must add the collection identifier as a second parameter in the use case call. If you want the dataset type to be anything other than dataset, first [check available dataset types](#get-dataset-available-dataset-types) and then add the name of the dataset type as the third parameter.
1485
+
The above example creates the new dataset in the root collection since no collection identifier is specified. If you want to create the dataset in a different collection, you must add the collection identifier as a second parameter in the use case call. If you want the dataset type to be anything other than dataset, first [check available dataset types](#get-dataset-available-dataset-types) and then add the name of the dataset type as the third parameter. To create from an applicable metadata template, set its numeric identifier as `datasetDTO.templateId`; the SDK sends it as the top-level `templateId` field in the request body.
1455
1486
1456
1487
The use case returns a [CreatedDatasetIdentifiers](../src/datasets/domain/models/CreatedDatasetIdentifiers.ts) object, which includes the persistent and numeric identifiers of the created dataset.
The `fileId` parameter can be a string, for persistent identifiers, or a number, for numeric identifiers.
2106
2139
2140
+
The optional third parameter, `version`, selects the **dataset version** whose file metadata is used in the citation. It accepts a numbered version such as `1.0`, or `DatasetNotNumberedVersion.DRAFT`, `LATEST`, or `LATEST_PUBLISHED` (`:draft`, `:latest`, `:latest-published`). When omitted, no version query parameter is sent, it will return the `:latest`.
2141
+
2107
2142
The `format` parameter must be one of the available [FileCitationFormat](../src/files/domain/models/FileCitationFormat.ts) enum values: `FileCitationFormat.ENDNOTE`, `FileCitationFormat.RIS`, `FileCitationFormat.BIBTEX`, `FileCitationFormat.CSL`, or `FileCitationFormat.INTERNAL`.
Copy file name to clipboardExpand all lines: src/datasets/domain/useCases/CreateDataset.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ export class CreateDataset extends DatasetWriteUseCase<CreatedDatasetIdentifiers
18
18
/**
19
19
* Creates a new Dataset in a collection, given a DatasetDTO object and an optional collection identifier, which defaults to :root.
20
20
*
21
-
* @param {DatasetDTO} [newDataset] - DatasetDTO object including the new dataset metadata field values for each metadata block.
21
+
* @param {DatasetDTO} [newDataset] - DatasetDTO object including the new dataset metadata field values for each metadata block and, optionally, the template ID to apply.
22
22
* @param {string} [collectionId] - Specifies the collection identifier where the new dataset should be created (optional, defaults to :root).
23
23
* @param {string} [datasetType] - Specifies the dataset type (optional, when omitted, defaults to "dataset").
0 commit comments