@cloud-os/sandbox-app-standard-bridge 20251209.0.3 → 20251210.0.1
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.
- package/dist/Bridge/Communication/Payload/CommunicationBridgePayload.d.ts +1 -2
- package/dist/Bridge/Communication/index.d.ts +1 -2
- package/dist/Bridge/Communication/index.js +0 -3
- package/dist/Bridge/System/Payload/SystemBridgePayload.d.ts +6 -0
- package/dist/Bridge/System/Payload/SystemBridgePayload.js +1 -0
- package/dist/Bridge/System/index.d.ts +9 -0
- package/dist/Bridge/System/index.js +15 -0
- package/dist/Event/Communication/CommunicationEvent.d.ts +1 -2
- package/dist/Event/System/SystemEvent.d.ts +7 -0
- package/dist/Event/System/SystemEvent.js +1 -0
- package/dist/Event/index.d.ts +1 -0
- package/dist/Interface/System/ApplicationInfo.d.ts +7 -0
- package/dist/Interface/System/ApplicationInfo.js +1 -0
- package/dist/Interface/System/InstallApplicationInfo.d.ts +5 -0
- package/dist/Interface/System/InstallApplicationInfo.js +1 -0
- package/dist/Interface/index.d.ts +2 -1
- package/dist/Props/Application/index.d.ts +5 -0
- package/dist/Props/Application/index.js +1 -0
- package/dist/Props/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DateTimeInfo, WeatherInfo } from "../../../index";
|
|
2
2
|
export interface CommunicationBridgePayload {
|
|
3
|
-
handleGetAllApplications: () => Promise<ApplicationInfo[]>;
|
|
4
3
|
handleGetDateTime: () => Promise<DateTimeInfo>;
|
|
5
4
|
handleGetWeather: () => Promise<WeatherInfo>;
|
|
6
5
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { DateTimeInfo, WeatherInfo,
|
|
1
|
+
import { DateTimeInfo, WeatherInfo, CommunicationEvent } from "../../index";
|
|
2
2
|
import { CommunicationBridgePayload } from "./Payload/CommunicationBridgePayload";
|
|
3
3
|
export default class CommunicationBridge implements CommunicationEvent {
|
|
4
4
|
private readonly payload;
|
|
5
5
|
constructor(payload: CommunicationBridgePayload);
|
|
6
6
|
getDateTimeInfoAsync(): Promise<DateTimeInfo>;
|
|
7
7
|
getWeatherInfoAsync(): Promise<WeatherInfo>;
|
|
8
|
-
getAllApplicationsAsync(): Promise<ApplicationInfo[]>;
|
|
9
8
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ApplicationInfo, InstallApplicationInfo } from "../../../index";
|
|
2
|
+
export interface SystemBridgePayload {
|
|
3
|
+
handleGetAllApplications: () => Promise<ApplicationInfo[]>;
|
|
4
|
+
handleInstallApplication: (info: InstallApplicationInfo) => Promise<boolean>;
|
|
5
|
+
handleUninstallApplication: (name: string) => Promise<boolean>;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApplicationInfo, InstallApplicationInfo, SystemEvent } from "../../index";
|
|
2
|
+
import { SystemBridgePayload } from "./Payload/SystemBridgePayload";
|
|
3
|
+
export default class SystemBridge implements SystemEvent {
|
|
4
|
+
private readonly payload;
|
|
5
|
+
constructor(payload: SystemBridgePayload);
|
|
6
|
+
getAllApplicationsAsync(): Promise<ApplicationInfo[]>;
|
|
7
|
+
installApplicationAsync(info: InstallApplicationInfo): Promise<boolean>;
|
|
8
|
+
uninstallApplicationAsync(name: string): Promise<boolean>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default class SystemBridge {
|
|
2
|
+
payload;
|
|
3
|
+
constructor(payload) {
|
|
4
|
+
this.payload = payload;
|
|
5
|
+
}
|
|
6
|
+
getAllApplicationsAsync() {
|
|
7
|
+
return this.payload.handleGetAllApplications();
|
|
8
|
+
}
|
|
9
|
+
installApplicationAsync(info) {
|
|
10
|
+
return this.payload.handleInstallApplication(info);
|
|
11
|
+
}
|
|
12
|
+
uninstallApplicationAsync(name) {
|
|
13
|
+
return this.payload.handleUninstallApplication(name);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DateTimeInfo, WeatherInfo } from "../../index";
|
|
2
2
|
export interface CommunicationEvent {
|
|
3
3
|
getDateTimeInfoAsync(): Promise<DateTimeInfo>;
|
|
4
4
|
getWeatherInfoAsync(): Promise<WeatherInfo>;
|
|
5
|
-
getAllApplicationsAsync(): Promise<ApplicationInfo[]>;
|
|
6
5
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ApplicationInfo } from "../../index";
|
|
2
|
+
import { InstallApplicationInfo } from "../../Interface/System/InstallApplicationInfo";
|
|
3
|
+
export interface SystemEvent {
|
|
4
|
+
getAllApplicationsAsync(): Promise<ApplicationInfo[]>;
|
|
5
|
+
installApplicationAsync(info: InstallApplicationInfo): Promise<boolean>;
|
|
6
|
+
uninstallApplicationAsync(name: string): Promise<boolean>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/Event/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { SandboxApplication } from "./SandboxApplication/SandboxApplication";
|
|
2
|
-
export { ApplicationInfo } from "./
|
|
2
|
+
export { ApplicationInfo } from "./System/ApplicationInfo";
|
|
3
3
|
export { WeatherInfo } from "./Communication/WeatherInfo";
|
|
4
4
|
export { DateTimeInfo } from "./Communication/DateTimeInfo";
|
|
5
|
+
export { InstallApplicationInfo } from "./System/InstallApplicationInfo";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/Props/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ApplicationProps } from "./Application/index";
|