interface BookmarksModule {
    createBookmark(command: CreateBookmarkCommand): Promise<string>;
    deleteBookmark(bookmarkUri: string): Promise<void>;
    discoverStorage(webId: string): Promise<BookmarkStorage>;
    listBookmarks(storageUrl: string): Promise<Bookmark[]>;
    updateBookmark(command: UpdateBookmarkCommand): Promise<void>;
}

Implemented by

Methods

  • Deletes the given bookmark

    Parameters

    • bookmarkUri: string

      The URI of the bookmark resource to delete

    Returns Promise<void>

  • Discover configured storages for Bookmarks (containers and/or documents) from private and public type indexes of the given WebID

    Parameters

    • webId: string

      The WebID whose indexes to search

    Returns Promise<BookmarkStorage>

  • List all bookmarks stored at the given location

    Parameters

    • storageUrl: string

      The URL of the container or document to look into for bookmarks

    Returns Promise<Bookmark[]>

  • Updates a given bookmark to new values

    Parameters

    Returns Promise<void>