Skip to content

Commit c439f93

Browse files
committed
add GetCollectionLinks to index.ts
1 parent 3a969cb commit c439f93

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/collections/domain/useCases/GetCollectionLinks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { UseCase } from '../../../core/domain/useCases/UseCase'
22
import { ICollectionsRepository } from '../repositories/ICollectionsRepository'
33
import { CollectionLinks } from '../models/CollectionLinks'
44

5-
export class GetCollectionItems implements UseCase<CollectionLinks> {
5+
export class GetCollectionLinks implements UseCase<CollectionLinks> {
66
private collectionsRepository: ICollectionsRepository
77

88
constructor(collectionsRepository: ICollectionsRepository) {

src/collections/domain/useCases/LinkCollection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class LinkCollection implements UseCase<void> {
99
}
1010

1111
/**
12-
* Deletes the Dataverse collection whose database ID or alias is given:
12+
* Creates a link between two collections. The linked collection will be linked to the linking collection.:
1313
*
1414
* @param {number| string} [linkedCollectionIdOrAlias] - The collection to be linked. Can be either a string (collection alias), or a number (collection id)
1515
* @param { number | string} [linkingCollectionIdOrAlias] - The collection that will be linking to the linked collection. Can be either a string (collection alias), or a number (collection id)

src/collections/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { GetMyDataCollectionItems } from './domain/useCases/GetMyDataCollectionI
1414
import { DeleteCollectionFeaturedItem } from './domain/useCases/DeleteCollectionFeaturedItem'
1515
import { LinkCollection } from './domain/useCases/LinkCollection'
1616
import { UnlinkCollection } from './domain/useCases/UnlinkCollection'
17+
import { GetCollectionLinks } from './domain/useCases/GetCollectionLinks'
1718

1819
const collectionsRepository = new CollectionsRepository()
1920

@@ -32,6 +33,7 @@ const deleteCollection = new DeleteCollection(collectionsRepository)
3233
const deleteCollectionFeaturedItem = new DeleteCollectionFeaturedItem(collectionsRepository)
3334
const linkCollection = new LinkCollection(collectionsRepository)
3435
const unlinkCollection = new UnlinkCollection(collectionsRepository)
36+
const getCollectionLinks = new GetCollectionLinks(collectionsRepository)
3537

3638
export {
3739
getCollection,
@@ -48,7 +50,8 @@ export {
4850
deleteCollection,
4951
deleteCollectionFeaturedItem,
5052
linkCollection,
51-
unlinkCollection
53+
unlinkCollection,
54+
getCollectionLinks
5255
}
5356
export { Collection, CollectionInputLevel } from './domain/models/Collection'
5457
export { CollectionFacet } from './domain/models/CollectionFacet'

0 commit comments

Comments
 (0)