From 9bbf5023a2094a3632827e4fa6927bd1de98382a Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Wed, 5 Apr 2023 21:51:46 +0800 Subject: [PATCH] add highlight type --- src/util.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/util.ts b/src/util.ts index 49a0334..b71a914 100644 --- a/src/util.ts +++ b/src/util.ts @@ -74,6 +74,12 @@ export interface Label { name: string; } +export enum HighlightType { + Highlight = "HIGHLIGHT", + Note = "NOTE", + Redaction = "REDACTION", +} + export interface Highlight { id: string; quote: string; @@ -81,6 +87,7 @@ export interface Highlight { patch: string; updatedAt: string; labels?: Label[]; + type: HighlightType; } export interface HighlightPoint { @@ -149,6 +156,7 @@ export const loadArticles = async ( annotation patch updatedAt + type labels { name }