@@ -36,12 +36,15 @@ The different use cases currently available in the package are classified below,
3636 - [ Get Differences between Two Dataset Versions] ( #get-differences-between-two-dataset-versions )
3737 - [ List All Datasets] ( #list-all-datasets )
3838 - [ Get Dataset Versions Summaries] ( #get-dataset-versions-summaries )
39+ - [ Get Dataset Linked Collections] ( #get-dataset-linked-collections )
3940 - [ Datasets write use cases] ( #datasets-write-use-cases )
4041 - [ Create a Dataset] ( #create-a-dataset )
4142 - [ Update a Dataset] ( #update-a-dataset )
4243 - [ Publish a Dataset] ( #publish-a-dataset )
4344 - [ Deaccession a Dataset] ( #deaccession-a-dataset )
4445 - [ Delete a Draft Dataset] ( #delete-a-draft-dataset )
46+ - [ Link a Dataset] ( #link-a-dataset )
47+ - [ Unlink a Dataset] ( #unlink-a-dataset )
4548- [ Files] ( #Files )
4649 - [ Files read use cases] ( #files-read-use-cases )
4750 - [ Get a File] ( #get-a-file )
@@ -739,6 +742,30 @@ _See [use case](../src/datasets/domain/useCases/GetDatasetVersionsSummaries.ts)
739742
740743The ` datasetId ` parameter can be a string, for persistent identifiers, or a number, for numeric identifiers.
741744
745+ #### Get Dataset Linked Collections
746+
747+ Returns an array of [ DatasetLinkedCollection] ( ../src/datasets/domain/models/DatasetLinkedCollection.ts ) that contains the collections linked to a dataset.
748+
749+ ##### Example call:
750+
751+ ``` typescript
752+ import { getDatasetLinkedCollections } from ' @iqss/dataverse-client-javascript'
753+
754+ /* ... */
755+
756+ const datasetId = ' doi:10.77777/FK2/AAAAAA'
757+
758+ getDatasetLinkedCollections
759+ .execute (datasetId )
760+ .then ((datasetLinkedCollections : DatasetLinkedCollection []) => {
761+ /* ... */
762+ })
763+
764+ /* ... */
765+ ```
766+
767+ _ See [ use case] ( ../src/datasets/domain/useCases/GetDatasetLinkedCollections.ts ) implementation_ .
768+
742769### Datasets Write Use Cases
743770
744771#### Create a Dataset
@@ -948,6 +975,48 @@ The `datasetId` parameter is a number for numeric identifiers or string for pers
948975
949976If you try to delete a dataset without draft version, you will get a not found error.
950977
978+ #### Link a Dataset
979+
980+ Creates a link between a Dataset and a Collection.
981+
982+ ##### Example call:
983+
984+ ``` typescript
985+ import { linkDataset } from ' @iqss/dataverse-client-javascript'
986+
987+ /* ... */
988+
989+ const datasetId = 1
990+ const collectionAlias = ' collection-alias'
991+
992+ linkDataset .execute (datasetId , collectionAlias )
993+
994+ /* ... */
995+ ```
996+
997+ _ See [ use case] ( ../src/datasets/domain/useCases/LinkDataset.ts ) implementation_ .
998+
999+ #### Unlink a Dataset
1000+
1001+ Removes a link between a Dataset and a Collection.
1002+
1003+ ##### Example call:
1004+
1005+ ``` typescript
1006+ import { unlinkDataset } from ' @iqss/dataverse-client-javascript'
1007+
1008+ /* ... */
1009+
1010+ const datasetId = 1
1011+ const collectionAlias = ' collection-alias'
1012+
1013+ unlinkDataset .execute (datasetId , collectionAlias )
1014+
1015+ /* ... */
1016+ ```
1017+
1018+ _ See [ use case] ( ../src/datasets/domain/useCases/UnlinkDataset.ts ) implementation_ .
1019+
9511020#### Get Download Count of a Dataset
9521021
9531022Total number of downloads requested for a dataset, given a dataset numeric identifier,
0 commit comments