diff --git a/src/services/index.ts b/src/services/index.ts index b2d2bf3d..b19ca184 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -7,7 +7,7 @@ export * from './file'; export * from './flag'; export * from './h5p'; export * from './invitation'; -export * from './item-favorite'; +export * from './item-bookmark'; export * from './item-like'; export * from './item-login'; export * from './item-memberships'; diff --git a/src/services/item-favorite/index.ts b/src/services/item-bookmark/index.ts similarity index 100% rename from src/services/item-favorite/index.ts rename to src/services/item-bookmark/index.ts diff --git a/src/services/item-favorite/types.ts b/src/services/item-bookmark/types.ts similarity index 56% rename from src/services/item-favorite/types.ts rename to src/services/item-bookmark/types.ts index 0eaeae54..1b3edc0d 100644 --- a/src/services/item-favorite/types.ts +++ b/src/services/item-bookmark/types.ts @@ -1,8 +1,13 @@ import { DiscriminatedItem } from '../index'; import { UUID } from '@/types'; -export type ItemFavorite = { +export type ItemBookmark = { id: UUID; item: DiscriminatedItem; createdAt: string; }; + +/** + * @deprecated use ItemBookmark + */ +export type ItemFavorite = ItemBookmark;