summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-04-29 16:13:44 +0200
committerSebastian Holmin <sebastian.holmin@mullvad.net>2025-05-28 13:25:32 +0200
commit0b17e6fee7b8f97a200f388d9ae246c8145ce962 (patch)
tree0f1e9bcba205f68def09d2ab154ccd20421eafe7
parentad767e841cf36b685527a7bafae81951b7c790b5 (diff)
downloadmullvadvpn-0b17e6fee7b8f97a200f388d9ae246c8145ce962.tar.xz
mullvadvpn-0b17e6fee7b8f97a200f388d9ae246c8145ce962.zip
Update AppUpgradeEventStatus types
Add manual and automatic statuses
-rw-r--r--desktop/packages/mullvad-vpn/src/shared/app-upgrade.ts26
1 files changed, 18 insertions, 8 deletions
diff --git a/desktop/packages/mullvad-vpn/src/shared/app-upgrade.ts b/desktop/packages/mullvad-vpn/src/shared/app-upgrade.ts
index 7b108e4c59..e3f070853d 100644
--- a/desktop/packages/mullvad-vpn/src/shared/app-upgrade.ts
+++ b/desktop/packages/mullvad-vpn/src/shared/app-upgrade.ts
@@ -1,26 +1,36 @@
import { DaemonAppUpgradeError, DaemonAppUpgradeEventStatus } from './daemon-rpc-types';
-export type AppUpgradeEventStatusStartingInstaller = {
- type: 'APP_UPGRADE_STATUS_STARTING_INSTALLER';
+export type AppUpgradeEventStatusAutomaticStartingInstaller = {
+ type: 'APP_UPGRADE_STATUS_AUTOMATIC_STARTING_INSTALLER';
};
export type AppUpgradeEventStatusStartedInstaller = {
type: 'APP_UPGRADE_STATUS_STARTED_INSTALLER';
};
-export type AppUpgradeEventStatusExitedInstaller = {
- type: 'APP_UPGRADE_STATUS_EXITED_INSTALLER';
-};
-
export type AppUpgradeEventStatusDownloadInitiated = {
type: 'APP_UPGRADE_STATUS_DOWNLOAD_INITIATED';
};
+export type AppUpgradeEventStatusManualStartInstaller = {
+ type: 'APP_UPGRADE_STATUS_MANUAL_START_INSTALLER';
+};
+
+export type AppUpgradeEventStatusManualStartingInstaller = {
+ type: 'APP_UPGRADE_STATUS_MANUAL_STARTING_INSTALLER';
+};
+
+export type AppUpgradeEventStatusExitedInstaller = {
+ type: 'APP_UPGRADE_STATUS_EXITED_INSTALLER';
+};
+
export type AppUpgradeEventStatus =
+ | AppUpgradeEventStatusStartedInstaller
+ | AppUpgradeEventStatusAutomaticStartingInstaller
| AppUpgradeEventStatusDownloadInitiated
| AppUpgradeEventStatusExitedInstaller
- | AppUpgradeEventStatusStartingInstaller
- | AppUpgradeEventStatusStartedInstaller;
+ | AppUpgradeEventStatusManualStartingInstaller
+ | AppUpgradeEventStatusManualStartInstaller;
export type AppUpgradeEvent = DaemonAppUpgradeEventStatus | AppUpgradeEventStatus;