From aa0729b1cbf2bdb3758568eee32bed2d4b1fc338 Mon Sep 17 00:00:00 2001 From: Dany Date: Tue, 13 Feb 2024 18:23:04 +0100 Subject: [PATCH] Add upgrade key to plugins --- .changeset/tidy-terms-sing.md | 5 +++++ api/models/Plugin.ts | 1 + catapi.json | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 .changeset/tidy-terms-sing.md diff --git a/.changeset/tidy-terms-sing.md b/.changeset/tidy-terms-sing.md new file mode 100644 index 0000000..6b93aae --- /dev/null +++ b/.changeset/tidy-terms-sing.md @@ -0,0 +1,5 @@ +--- +"ccat-api": patch +--- + +Add upgrade key to plugins diff --git a/api/models/Plugin.ts b/api/models/Plugin.ts index 9ab24dc..8f1710a 100644 --- a/api/models/Plugin.ts +++ b/api/models/Plugin.ts @@ -15,6 +15,7 @@ export type Plugin = { version: string; active?: boolean; url?: string; + upgrade?: string; hooks?: Array<{ name: string; priority: number; diff --git a/catapi.json b/catapi.json index 3dfe9a2..f4e214b 100644 --- a/catapi.json +++ b/catapi.json @@ -1667,6 +1667,10 @@ "title": "Install URL", "type": "string" }, + "upgrade": { + "title": "Upgrade", + "type": "string" + }, "hooks": { "title": "Hooks", "type": "array",