aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/open-api/karakeep-openapi-spec.json4
-rw-r--r--packages/shared/types/highlights.ts1
-rw-r--r--packages/trpc/models/highlights.ts1
3 files changed, 6 insertions, 0 deletions
diff --git a/packages/open-api/karakeep-openapi-spec.json b/packages/open-api/karakeep-openapi-spec.json
index 04596bf0..c151f42d 100644
--- a/packages/open-api/karakeep-openapi-spec.json
+++ b/packages/open-api/karakeep-openapi-spec.json
@@ -3159,6 +3159,10 @@
"green",
"blue"
]
+ },
+ "note": {
+ "type": "string",
+ "nullable": true
}
}
}
diff --git a/packages/shared/types/highlights.ts b/packages/shared/types/highlights.ts
index ff4b7e7f..de1d3ec2 100644
--- a/packages/shared/types/highlights.ts
+++ b/packages/shared/types/highlights.ts
@@ -32,6 +32,7 @@ export const zNewHighlightSchema = zHighlightBaseSchema;
export const zUpdateHighlightSchema = z.object({
highlightId: z.string(),
color: zHighlightColorSchema.optional(),
+ note: z.string().nullable().optional(),
});
export const zGetAllHighlightsResponseSchema = z.object({
diff --git a/packages/trpc/models/highlights.ts b/packages/trpc/models/highlights.ts
index 48f0672a..76651c3e 100644
--- a/packages/trpc/models/highlights.ts
+++ b/packages/trpc/models/highlights.ts
@@ -183,6 +183,7 @@ export class Highlight {
.update(highlights)
.set({
color: input.color,
+ note: input.note,
})
.where(
and(