From f8eccde99bf597cbdeb589008b17649d2654b0aa Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Tue, 12 Sep 2023 17:20:10 -0700 Subject: [PATCH] refactor(web): callback OsRelease type --- web/store/callback.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/web/store/callback.ts b/web/store/callback.ts index e5612634d..e4c81b4ed 100644 --- a/web/store/callback.ts +++ b/web/store/callback.ts @@ -34,6 +34,16 @@ export type PurchaseActionTypes = Purchase | Redeem | Upgrade; export type ServerActionTypes = AccountActionTypes | AccountKeyActionTypes | PurchaseActionTypes; +export interface OsRelease { + basefile: string; // "unRAIDServer-6.12.4-x86_64.zip" + changelog: string; // "https://unraid-dl.sfo2.cdn.digitaloceanspaces.com/stable/unRAIDServer-6.12.4-x86_64.txt" + date: string; // "2023-08-31" + md5: string; // "df6e5859d28c14617efde36d59458206" + name: string; // "Unraid 6.12.4" + size: string; // "439999418" + url: string; // "https://unraid-dl.sfo2.cdn.digitaloceanspaces.com/stable/unRAIDServer-6.12.4-x86_64.zip" +} + /** * Represents a server, payload comes from the server to account.unraid.net */ @@ -79,7 +89,7 @@ export interface ExternalKeyActions { export interface ExternalUpdateOsAction { type: UpdateOs; - plgUrl: string; + release: OsRelease; } export interface ServerPayload {