Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel

### Fixed

- Allow partial CollectionDTO for UpdateCollection use case

- In GetAllNotificationsByUser use case, additionalInfo field is returned as an object instead of a string.
- In GetAllNotificationsByUser use case, added support for filtering unread messages and pagination.


### Removed

- Removed date fields validations in create and update dataset use cases, since validation is already handled in the backend and SPA frontend (other clients should perform client side validation also). This avoids duplicated logic and keeps the package focused on its core responsibility.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export interface ICollectionsRepository {
): Promise<MyDataCollectionItemSubset>
updateCollection(
collectionIdOrAlias: number | string,
updatedCollection: CollectionDTO
updatedCollection: Partial<CollectionDTO>
): Promise<void>
getCollectionFeaturedItems(collectionIdOrAlias: number | string): Promise<FeaturedItem[]>
updateCollectionFeaturedItems(
Expand Down
2 changes: 1 addition & 1 deletion src/collections/domain/useCases/UpdateCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class UpdateCollection implements UseCase<void> {
*/
async execute(
collectionIdOrAlias: number | string,
updatedCollection: CollectionDTO
updatedCollection: Partial<CollectionDTO>
): Promise<void> {
return await this.collectionsRepository.updateCollection(collectionIdOrAlias, updatedCollection)
}
Expand Down