report installed version from update install

This commit is contained in:
Will Wang
2026-06-23 12:45:53 -07:00
parent f0e0092d80
commit bd4bb1c8a7
8 changed files with 106 additions and 12 deletions
@@ -20251,6 +20251,18 @@
},
"UpdateInstallResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"installedVersion": {
"type": "string"
},
"success": {
"type": "boolean"
}
},
"required": [
"installedVersion",
"success"
],
"title": "UpdateInstallResponse",
"type": "object"
},
@@ -18030,6 +18030,18 @@
},
"UpdateInstallResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"installedVersion": {
"type": "string"
},
"success": {
"type": "boolean"
}
},
"required": [
"installedVersion",
"success"
],
"title": "UpdateInstallResponse",
"type": "object"
},
@@ -1,5 +1,17 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"installedVersion": {
"type": "string"
},
"success": {
"type": "boolean"
}
},
"required": [
"installedVersion",
"success"
],
"title": "UpdateInstallResponse",
"type": "object"
}
@@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type UpdateInstallResponse = Record<string, never>;
export type UpdateInstallResponse = { installedVersion: string, success: boolean, };
@@ -28,4 +28,7 @@ pub struct UpdateCheckResponse {
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct UpdateInstallResponse {}
pub struct UpdateInstallResponse {
pub installed_version: String,
pub success: bool,
}