@cloud-os/sandbox-app-standard-bridge 20251215.0.2 → 20251215.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,5 +5,6 @@ export interface SystemBridgePayload {
|
|
|
5
5
|
handleGetAllApplications: () => Promise<ApplicationInfo[]>;
|
|
6
6
|
handleInstallApplication: (info: InstallApplicationInfo) => Promise<string | null>;
|
|
7
7
|
handleUninstallApplication: (info: ApplicationInfo) => Promise<boolean>;
|
|
8
|
+
handleUpgradeApplication: (app: ApplicationInfo, info: InstallApplicationInfo) => Promise<boolean>;
|
|
8
9
|
handleGetRunningApplications: () => Promise<RunningApplciationInfo[]>;
|
|
9
10
|
}
|
|
@@ -4,6 +4,7 @@ import { SystemBridgePayload } from "./Payload/SystemBridgePayload";
|
|
|
4
4
|
export default class SystemBridge implements SystemEvent {
|
|
5
5
|
private readonly payload;
|
|
6
6
|
constructor(payload: SystemBridgePayload);
|
|
7
|
+
upgradeApplicationAsync(app: ApplicationInfo, info: InstallApplicationInfo): Promise<boolean>;
|
|
7
8
|
startApplications(...infos: ProcessInfo[]): RunningApplciationInfo[];
|
|
8
9
|
stopApplications(...pids: string[]): boolean[];
|
|
9
10
|
getAllApplicationsAsync(): Promise<ApplicationInfo[]>;
|
|
@@ -3,6 +3,9 @@ export default class SystemBridge {
|
|
|
3
3
|
constructor(payload) {
|
|
4
4
|
this.payload = payload;
|
|
5
5
|
}
|
|
6
|
+
upgradeApplicationAsync(app, info) {
|
|
7
|
+
return this.payload.handleUpgradeApplication(app, info);
|
|
8
|
+
}
|
|
6
9
|
startApplications(...infos) {
|
|
7
10
|
return this.payload.handleStartApplications(...infos);
|
|
8
11
|
}
|
|
@@ -5,5 +5,6 @@ export interface SystemEvent {
|
|
|
5
5
|
getAllApplicationsAsync(): Promise<ApplicationInfo[]>;
|
|
6
6
|
installApplicationAsync(info: InstallApplicationInfo): Promise<string | null>;
|
|
7
7
|
uninstallApplicationAsync(info: ApplicationInfo): Promise<boolean>;
|
|
8
|
+
upgradeApplicationAsync(app: ApplicationInfo, info: InstallApplicationInfo): Promise<boolean>;
|
|
8
9
|
getRunningApplicationsAsync(): Promise<RunningApplciationInfo[]>;
|
|
9
10
|
}
|