@signageos/front-applet 8.0.3 → 8.1.0

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.
Files changed (53) hide show
  1. package/dist/bundle.js +5 -5
  2. package/dist/bundle.js.map +1 -1
  3. package/docs/sos/fileSystem.md +15 -0
  4. package/docs/sos_management/power.md +105 -0
  5. package/docs/sos_management/screen.md +35 -2
  6. package/docs/sos_management/wifi.md +82 -18
  7. package/es6/FrontApplet/DeviceInfo/IDeviceInfo.d.ts +1 -0
  8. package/es6/FrontApplet/FileSystem/FileSystem.d.ts +9 -0
  9. package/es6/FrontApplet/FileSystem/FileSystem.js +13 -0
  10. package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
  11. package/es6/FrontApplet/FileSystem/IFileSystem.d.ts +1 -0
  12. package/es6/FrontApplet/Management/Power/IPower.d.ts +35 -0
  13. package/es6/FrontApplet/Management/Power/IPower.js +25 -0
  14. package/es6/FrontApplet/Management/Power/IPower.js.map +1 -1
  15. package/es6/FrontApplet/Management/Power/Power.d.ts +56 -2
  16. package/es6/FrontApplet/Management/Power/Power.js +100 -0
  17. package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
  18. package/es6/FrontApplet/Management/Power/PowerHelper.d.ts +3 -0
  19. package/es6/FrontApplet/Management/Power/PowerHelper.js +12 -0
  20. package/es6/FrontApplet/Management/Power/PowerHelper.js.map +1 -0
  21. package/es6/FrontApplet/Management/Screen/IScreen.d.ts +5 -0
  22. package/es6/FrontApplet/Management/Screen/Screen.d.ts +18 -2
  23. package/es6/FrontApplet/Management/Screen/Screen.js +32 -23
  24. package/es6/FrontApplet/Management/Screen/Screen.js.map +1 -1
  25. package/es6/FrontApplet/Management/Wifi/IWifi.d.ts +3 -0
  26. package/es6/FrontApplet/Management/Wifi/IWifi.js +1 -0
  27. package/es6/FrontApplet/Management/Wifi/IWifi.js.map +1 -1
  28. package/es6/FrontApplet/Management/Wifi/Wifi.d.ts +56 -19
  29. package/es6/FrontApplet/Management/Wifi/Wifi.js +59 -20
  30. package/es6/FrontApplet/Management/Wifi/Wifi.js.map +1 -1
  31. package/es6/Monitoring/DeviceInfo/deviceInfoCommands.d.ts +29 -0
  32. package/es6/Monitoring/DeviceInfo/deviceInfoCommands.js +10 -0
  33. package/es6/Monitoring/DeviceInfo/deviceInfoCommands.js.map +1 -0
  34. package/es6/Monitoring/DeviceInfo/handleDeviceInfoRequests.d.ts +5 -0
  35. package/es6/Monitoring/DeviceInfo/handleDeviceInfoRequests.js +30 -0
  36. package/es6/Monitoring/DeviceInfo/handleDeviceInfoRequests.js.map +1 -0
  37. package/es6/Monitoring/FileSystem/fileSystemCommands.d.ts +21 -1
  38. package/es6/Monitoring/FileSystem/fileSystemCommands.js +5 -1
  39. package/es6/Monitoring/FileSystem/fileSystemCommands.js.map +1 -1
  40. package/es6/Monitoring/FileSystem/handleFileSystemRequests.js +14 -0
  41. package/es6/Monitoring/FileSystem/handleFileSystemRequests.js.map +1 -1
  42. package/es6/Monitoring/Management/Power/handlePowerRequests.js +27 -0
  43. package/es6/Monitoring/Management/Power/handlePowerRequests.js.map +1 -1
  44. package/es6/Monitoring/Management/Power/powerCommands.d.ts +41 -1
  45. package/es6/Monitoring/Management/Power/powerCommands.js +9 -1
  46. package/es6/Monitoring/Management/Power/powerCommands.js.map +1 -1
  47. package/es6/Monitoring/Management/Screen/handleScreenRequests.js +3 -1
  48. package/es6/Monitoring/Management/Screen/handleScreenRequests.js.map +1 -1
  49. package/es6/Monitoring/Management/Screen/screenCommands.d.ts +2 -0
  50. package/es6/Monitoring/Management/Screen/screenCommands.js.map +1 -1
  51. package/es6/Monitoring/Monitoring.js +2 -0
  52. package/es6/Monitoring/Monitoring.js.map +1 -1
  53. package/package.json +1 -1
@@ -8,11 +8,11 @@ const IWifiEvent_1 = require("./IWifiEvent");
8
8
  const Validate_1 = __importDefault(require("../../Validate/Validate"));
9
9
  const IWifi_1 = require("./IWifi");
10
10
  /**
11
- * The `sos.management.wifi` API groups together methods for managing WIFI.
11
+ * The `sos.management.wifi` API groups together methods for managing Wi-Fi.
12
12
  *
13
13
  * :::info
14
14
  *
15
- * Use `sos.management.supports('WIFI')` to check if the device supports managing WIFI setup.
15
+ * Use `sos.management.supports('WIFI')` to check if the device supports managing Wi-Fi setup.
16
16
  *
17
17
  * :::
18
18
  *
@@ -42,7 +42,8 @@ class Wifi {
42
42
  /**
43
43
  * The `isClientEnabled()` method checks whether the Wi-Fi is in `client` state.
44
44
  *
45
- * @throws If the Wi-Fi state is in the `ap` state.
45
+ * @throws Error If the Wi-Fi state is in the `ap` state.
46
+ * @returns {Boolean} if client mode is enabled.
46
47
  */
47
48
  async isClientEnabled() {
48
49
  const { isWifiEnabled } = await this.postMessage({
@@ -53,7 +54,7 @@ class Wifi {
53
54
  /**
54
55
  * The `enabledClient()` method switches the Wi-Fi state from `disabled` to `client` state.
55
56
  *
56
- * @throws If the Wi-Fi state is in the `ap` state.
57
+ * @throws Error If the Wi-Fi state is in the `ap` state.
57
58
  */
58
59
  async enableClient() {
59
60
  await this.postMessage({
@@ -61,7 +62,9 @@ class Wifi {
61
62
  });
62
63
  }
63
64
  /**
64
- * The `isClientEnabled()` method checks whether the Wi-Fi is in `ap` state.
65
+ * The `isAPEnabled()` method checks whether the Wi-Fi is in `ap` state.
66
+ *
67
+ * @returns {Boolean} if AP mode is enabled.
65
68
  */
66
69
  async isAPEnabled() {
67
70
  const { isWifiAPEnabled } = await this.postMessage({
@@ -70,18 +73,16 @@ class Wifi {
70
73
  return isWifiAPEnabled;
71
74
  }
72
75
  /**
73
- * The `enabledClient()` method switches the Wi-Fi state from `disabled` to `ap` state.
76
+ * The `enableAP()` method switches the Wi-Fi state from `disabled` to `ap` state.
74
77
  *
75
78
  * :::info
76
- *
77
79
  * Use `sos.management.supports('WIFI_AP')` to check if the device is able to be in the `ap` mode.
78
- *
79
80
  * :::
80
81
  *
81
82
  * @param ssid Name of the network, max. allowed length is 32 characters.
82
83
  * @param password Password of the device, must be between 8 and 32 characters.
83
84
  *
84
- * @throws If the Wi-Fi state is in the `client` state.
85
+ * @throws Error If the Wi-Fi state is in the `client` state.
85
86
  */
86
87
  async enableAP(ssid, password) {
87
88
  (0, Validate_1.default)({ ssid }).required().string();
@@ -93,7 +94,9 @@ class Wifi {
93
94
  });
94
95
  }
95
96
  /**
96
- * The `disable()` method switches the Wi-Fi state to `disabled`. All previously configured networks will be forgotten.
97
+ * The `disable()` method switches the Wi-Fi state to `disabled` and disconnect from connected Wi-Fi.
98
+ *
99
+ * All previously configured networks will be forgotten.
97
100
  */
98
101
  async disable() {
99
102
  await this.postMessage({
@@ -103,7 +106,15 @@ class Wifi {
103
106
  /**
104
107
  * The `getConnectedTo()` method returns a network the device is currently connected to.
105
108
  *
106
- * @throws If the Wi-Fi state is not in the `client` state.
109
+ * @throws Error If the Wi-Fi state is not in the `client` state.
110
+ *
111
+ * @returns An object containing the SSID, whether the network is encrypted, and the signal strength.
112
+ * If the device is not connected to any network, it returns `null`.
113
+ *
114
+ * @example
115
+ * // To get the network the device is currently connected to
116
+ * const connectedTo = await sos.management.wifi.getConnectedTo();
117
+ * console.log(`Connected to SSID: ${connectedTo?.ssid}, Strength: ${connectedTo?.strength}`);
107
118
  */
108
119
  async getConnectedTo() {
109
120
  const wifiDevice = await this.postMessage({
@@ -114,11 +125,41 @@ class Wifi {
114
125
  /**
115
126
  * The `connect()` method connects the device to a specified network.
116
127
  *
117
- * @throws If the Wi-Fi state is not in the `client` state.
128
+ * :::warning
129
+ * Connecting to a OPEN Wi-Fi network for Tizen and WebOS is different.
130
+ * - For Tizen, make sure that the `password` is an empty string (`''`) and in options you have selected `OPEN` as encryption type.
131
+ * - For WebOS, you can pass `undefined` as the `password` parameter.
132
+ * :::
133
+ *
134
+ * :::info
135
+ * Security type of Wi-Fi is mandatory for Tizen.
136
+ * :::
137
+ *
138
+ * @param ssid Name of the network, max. allowed length is 32 characters.
139
+ * @param password Password of the device, must be between 8 and 32 characters.
140
+ * @param options Additional options for the connection, such as `hidden` or `securityType`.
141
+ *
142
+ * @throws Error If the Wi-Fi state is not in the `client` state.
143
+ * @returns A promise that resolves when the connection is established or if connection fails.
144
+ *
145
+ * @example
146
+ * // To connect on open Wi-Fi network ex. WebOS
147
+ * await sos.management.wifi.connect('MyOpenNetwork');
148
+ *
149
+ * // To connect on open Wi-Fi network with empty password (Tizen)
150
+ * await sos.management.wifi.connect('MyOpenNetwork', '', { securityType: 'OPEN' });
151
+ *
152
+ * // If the network is hidden
153
+ * await sos.management.wifi.connect('MyOpenNetwork', undefined, { hidden: true });
154
+ *
155
+ * // To connect on encrypted Wi-Fi network with WPA2 security
156
+ * await sos.management.wifi.connect('MyEncryptedNetwork', 'my-password', { securityType: 'WPA2' });
118
157
  */
119
158
  async connect(ssid, password, options = {}) {
120
159
  (0, Validate_1.default)({ ssid }).required().string();
121
- (0, Validate_1.default)({ password }).string();
160
+ if (password !== undefined) {
161
+ (0, Validate_1.default)({ password }).string();
162
+ }
122
163
  (0, Validate_1.default)({ options }).object(IWifi_1.VIWifiConnectOptions);
123
164
  await this.postMessage({
124
165
  type: this.getMessage('connect'),
@@ -130,7 +171,7 @@ class Wifi {
130
171
  /**
131
172
  * The `disconnect()` method disconnects the device from Wi-Fi network.
132
173
  *
133
- * @throws If the Wi-Fi state is not in the `client` state.
174
+ * @throws Error If the Wi-Fi state is not in the `client` state.
134
175
  */
135
176
  async disconnect() {
136
177
  await this.postMessage({
@@ -142,7 +183,8 @@ class Wifi {
142
183
  * have different regulations, when it comes to the Wi-Fi networks. Under normal circumstances, everything should work with default
143
184
  * settings. However, if you experience any problems, you might want to try changing Wi-Fi country configuration to your country.
144
185
  *
145
- * @throws If the Wi-Fi state is not in the `client` state.
186
+ * @throws Error If the Wi-Fi state is not in the `client` state.
187
+ * @returns The 2-letter country code from the ISO 3166 standard, or `null` if not set.
146
188
  */
147
189
  async getCountry() {
148
190
  const { countryCode } = await this.postMessage({
@@ -156,8 +198,7 @@ class Wifi {
156
198
  * settings. However, if you experience any problems, you might want to try changing Wi-Fi country configuration to your country.
157
199
  *
158
200
  * @param countryCode 2-letter country code from the ISO 3166 standard.
159
- *
160
- * @throws If the Wi-Fi state is not in the `client` state.
201
+ * @throws Error If the Wi-Fi state is not in the `client` state.
161
202
  */
162
203
  async setCountry(countryCode) {
163
204
  (0, Validate_1.default)({ countryCode }).required().string();
@@ -170,12 +211,10 @@ class Wifi {
170
211
  * The `scanDevices()` method initializes a new network scan and available networks.
171
212
  *
172
213
  * :::info
173
- *
174
214
  * Use `sos.management.supports('WIFI_SCAN')` to check if the device supports scanning for devices.
175
- *
176
215
  * :::
177
216
  *
178
- * @throws If the Wi-Fi state is not in the `client` state.
217
+ * @throws Error If the Wi-Fi state is not in the `client` state.
179
218
  */
180
219
  async scanDevices() {
181
220
  const { devices } = await this.postMessage({
@@ -1 +1 @@
1
- {"version":3,"file":"Wifi.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Wifi/Wifi.ts"],"names":[],"mappings":";;;;;AAAA,mCAAsC;AAEtC,6CAAuD;AACvD,uEAA+C;AAE/C,mCAA2F;AAE3F;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAqB,IAAI;IAOf;IACA;IAPF,MAAM,CAAC,cAAc,GAAW,MAAM,CAAC;IAEtC,YAAY,CAAe;IAEnC,gBAAgB;IAChB,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;QAEtC,IAAI,CAAC,YAAY,GAAG,IAAI,qBAAY,EAAE,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,eAAe;QAC3B,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC;YAChD,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;SACnC,CAAC,CAAC;QACH,OAAO,aAAa,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACI,KAA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AAQ,GAAG,sBAAS,CAAC,QAAQ,CAAC;gBAClD,MAAM,sBAAsB,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;gBACzD,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;gBACjE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAC9B,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC;IAEO,UAAU,CAAC,IAAY;QAC9B,OAAO,IAAI,CAAC,aAAa,GAAG,GAAG,GAAG,IAAI,CAAC,cAAc,GAAG,GAAG,GAAG,IAAI,CAAC;IACpE,CAAC;;AAlQF,uBAmQC"}
@@ -0,0 +1,29 @@
1
+ import { IDeviceLocation, IOrganizationTag } from '../../FrontApplet/DeviceInfo/IDeviceInfo';
2
+ export type DeviceInfoRequests = DeviceInfoGetLocationRequest | DeviceInfoGetOrganizationTagsRequest | DeviceInfoGetDeviceNameRequest;
3
+ export declare const DeviceInfoGetLocationRequest = "sos.Monitoring.DeviceInfo.GetLocationRequest";
4
+ export interface DeviceInfoGetLocationRequest {
5
+ type: typeof DeviceInfoGetLocationRequest;
6
+ }
7
+ export declare const DeviceInfoGetLocationResult = "sos.Monitoring.DeviceInfo.GetLocationResult";
8
+ export interface DeviceInfoGetLocationResult {
9
+ type: typeof DeviceInfoGetLocationResult;
10
+ result: IDeviceLocation | null;
11
+ }
12
+ export declare const DeviceInfoGetOrganizationTagsRequest = "sos.Monitoring.DeviceInfo.GetOrganizationTagsRequest";
13
+ export interface DeviceInfoGetOrganizationTagsRequest {
14
+ type: typeof DeviceInfoGetOrganizationTagsRequest;
15
+ }
16
+ export declare const DeviceInfoGetOrganizationTagsResult = "sos.Monitoring.DeviceInfo.GetOrganizationTagsResult";
17
+ export interface DeviceInfoGetOrganizationTagsResult {
18
+ type: typeof DeviceInfoGetOrganizationTagsResult;
19
+ result: IOrganizationTag[];
20
+ }
21
+ export declare const DeviceInfoGetDeviceNameRequest = "sos.Monitoring.DeviceInfo.GetNameRequest";
22
+ export interface DeviceInfoGetDeviceNameRequest {
23
+ type: typeof DeviceInfoGetDeviceNameRequest;
24
+ }
25
+ export declare const DeviceInfoGetDeviceNameResult = "sos.Monitoring.DeviceInfo.GetNameResult";
26
+ export interface DeviceInfoGetDeviceNameResult {
27
+ type: typeof DeviceInfoGetDeviceNameResult;
28
+ result: string;
29
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeviceInfoGetDeviceNameResult = exports.DeviceInfoGetDeviceNameRequest = exports.DeviceInfoGetOrganizationTagsResult = exports.DeviceInfoGetOrganizationTagsRequest = exports.DeviceInfoGetLocationResult = exports.DeviceInfoGetLocationRequest = void 0;
4
+ exports.DeviceInfoGetLocationRequest = 'sos.Monitoring.DeviceInfo.GetLocationRequest';
5
+ exports.DeviceInfoGetLocationResult = 'sos.Monitoring.DeviceInfo.GetLocationResult';
6
+ exports.DeviceInfoGetOrganizationTagsRequest = 'sos.Monitoring.DeviceInfo.GetOrganizationTagsRequest';
7
+ exports.DeviceInfoGetOrganizationTagsResult = 'sos.Monitoring.DeviceInfo.GetOrganizationTagsResult';
8
+ exports.DeviceInfoGetDeviceNameRequest = 'sos.Monitoring.DeviceInfo.GetNameRequest';
9
+ exports.DeviceInfoGetDeviceNameResult = 'sos.Monitoring.DeviceInfo.GetNameResult';
10
+ //# sourceMappingURL=deviceInfoCommands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceInfoCommands.js","sourceRoot":"","sources":["../../../src/Monitoring/DeviceInfo/deviceInfoCommands.ts"],"names":[],"mappings":";;;AAIa,QAAA,4BAA4B,GAAG,8CAA8C,CAAC;AAK9E,QAAA,2BAA2B,GAAG,6CAA6C,CAAC;AAM5E,QAAA,oCAAoC,GAAG,sDAAsD,CAAC;AAK9F,QAAA,mCAAmC,GAAG,qDAAqD,CAAC;AAM5F,QAAA,8BAA8B,GAAG,0CAA0C,CAAC;AAK5E,QAAA,6BAA6B,GAAG,yCAAyC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { ITypedCommandEvent } from '../../FrontApplet/Command/ICommandEvent';
2
+ import ICommand from '../../FrontApplet/Command/ICommand';
3
+ import FrontApplet from '../../FrontApplet/FrontApplet';
4
+ import { DeviceInfoRequests } from './deviceInfoCommands';
5
+ export declare function handleDeviceInfoRequests(onCommand: (callback: (commandEvent: ITypedCommandEvent<DeviceInfoRequests>) => Promise<void>) => void, dispatch: <TCommand extends ICommand>(command: TCommand) => Promise<void>, frontApplet: FrontApplet): void;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handleDeviceInfoRequests = handleDeviceInfoRequests;
4
+ const deviceInfoCommands_1 = require("./deviceInfoCommands");
5
+ function handleDeviceInfoRequests(onCommand, dispatch, frontApplet) {
6
+ onCommand(async (commandEvent) => {
7
+ switch (commandEvent.command.type) {
8
+ case deviceInfoCommands_1.DeviceInfoGetLocationRequest:
9
+ await dispatch({
10
+ type: deviceInfoCommands_1.DeviceInfoGetLocationResult,
11
+ result: await frontApplet.deviceInfo.getLocation(),
12
+ });
13
+ break;
14
+ case deviceInfoCommands_1.DeviceInfoGetOrganizationTagsRequest:
15
+ await dispatch({
16
+ type: deviceInfoCommands_1.DeviceInfoGetOrganizationTagsResult,
17
+ result: await frontApplet.deviceInfo.getOrganizationTags(),
18
+ });
19
+ break;
20
+ case deviceInfoCommands_1.DeviceInfoGetDeviceNameRequest:
21
+ await dispatch({
22
+ type: deviceInfoCommands_1.DeviceInfoGetDeviceNameResult,
23
+ result: await frontApplet.deviceInfo.getDeviceName(),
24
+ });
25
+ break;
26
+ default:
27
+ }
28
+ });
29
+ }
30
+ //# sourceMappingURL=handleDeviceInfoRequests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleDeviceInfoRequests.js","sourceRoot":"","sources":["../../../src/Monitoring/DeviceInfo/handleDeviceInfoRequests.ts"],"names":[],"mappings":";;AAaA,4DA4BC;AAtCD,6DAQ8B;AAE9B,SAAgB,wBAAwB,CACvC,SAAsG,EACtG,QAAyE,EACzE,WAAwB;IAExB,SAAS,CAAC,KAAK,EAAE,YAAoD,EAAE,EAAE;QACxE,QAAQ,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACnC,KAAK,iDAA4B;gBAChC,MAAM,QAAQ,CAA8B;oBAC3C,IAAI,EAAE,gDAA2B;oBACjC,MAAM,EAAE,MAAM,WAAW,CAAC,UAAU,CAAC,WAAW,EAAE;iBAClD,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,yDAAoC;gBACxC,MAAM,QAAQ,CAAsC;oBACnD,IAAI,EAAE,wDAAmC;oBACzC,MAAM,EAAE,MAAM,WAAW,CAAC,UAAU,CAAC,mBAAmB,EAAE;iBAC1D,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,mDAA8B;gBAClC,MAAM,QAAQ,CAAgC;oBAC7C,IAAI,EAAE,kDAA6B;oBACnC,MAAM,EAAE,MAAM,WAAW,CAAC,UAAU,CAAC,aAAa,EAAE;iBACpD,CAAC,CAAC;gBACH,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { ICopyFileOptions, IFile, IFilePath, IHeaders, IMoveFileOptions, IStorageUnit } from '../../FrontApplet/FileSystem/types';
2
2
  import { EmptyObject } from '../EmptyObject';
3
- export declare type FileSystemRequests = FileSystemListOfStorageUnitsRequest | FileSystemListOfInternalStorageUnitsRequest | FileSystemListFilesRequest | FileSystemIsDirectoryRequest | FileSystemExistsRequest | FileSystemDeleteFileRequest | FileSystemCreateDirectoryRequest | FileSystemDownloadFileRequest | FileSystemWriteFileRequest | FileSystemReadFileRequest | FileSystemMoveFileRequest | FileSystemCopyFileRequest | FileSystemGetFileChecksumRequest | FileSystemExtractFileRequest | FileSystemGetFileRequest | FileSystemAppendFileRequest | FileSystemCreateArchiveFileRequest;
3
+ export declare type FileSystemRequests = FileSystemListOfStorageUnitsRequest | FileSystemListOfInternalStorageUnitsRequest | FileSystemListFilesRequest | FileSystemIsDirectoryRequest | FileSystemExistsRequest | FileSystemDeleteFileRequest | FileSystemCreateDirectoryRequest | FileSystemDownloadFileRequest | FileSystemWriteFileRequest | FileSystemReadFileRequest | FileSystemMoveFileRequest | FileSystemCopyFileRequest | FileSystemGetFileChecksumRequest | FileSystemExtractFileRequest | FileSystemGetFileRequest | FileSystemAppendFileRequest | FileSystemCreateArchiveFileRequest | FileSystemWipeoutRequest | FileSystemLinkRequest;
4
4
  export declare const FileSystemListOfStorageUnitsRequest = "sos.Monitoring.FileSystem.FileSystemListOfStorageUnitsRequest";
5
5
  export interface FileSystemListOfStorageUnitsRequest {
6
6
  type: typeof FileSystemListOfStorageUnitsRequest;
@@ -182,3 +182,23 @@ export interface FileSystemAppendFileResult {
182
182
  type: typeof FileSystemAppendFileResult;
183
183
  result: EmptyObject;
184
184
  }
185
+ export declare const FileSystemWipeoutRequest = "sos.Monitoring.FileSystem.FileSystemWipeoutRequest";
186
+ export interface FileSystemWipeoutRequest {
187
+ type: typeof FileSystemWipeoutRequest;
188
+ }
189
+ export declare const FileSystemWipeoutResult = "sos.Monitoring.FileSystem.FileSystemWipeoutResult";
190
+ export interface FileSystemWipeoutResult {
191
+ type: typeof FileSystemWipeoutResult;
192
+ result: EmptyObject;
193
+ }
194
+ export declare const FileSystemLinkRequest = "sos.Monitoring.FileSystem.FileSystemLinkRequest";
195
+ export interface FileSystemLinkRequest {
196
+ type: typeof FileSystemLinkRequest;
197
+ sourceFilePath: IFilePath;
198
+ destinationFilePath: IFilePath;
199
+ }
200
+ export declare const FileSystemLinkResult = "sos.Monitoring.FileSystem.FileSystemLinkResult";
201
+ export interface FileSystemLinkResult {
202
+ type: typeof FileSystemLinkResult;
203
+ result: EmptyObject;
204
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FileSystemAppendFileResult = exports.FileSystemAppendFileRequest = exports.FileSystemGetFileResult = exports.FileSystemGetFileRequest = exports.FileSystemExtractFileResult = exports.FileSystemCreateArchiveFileResult = exports.FileSystemCreateArchiveFileRequest = exports.FileSystemExtractFileRequest = exports.FileSystemGetFileChecksumResult = exports.FileSystemGetFileChecksumRequest = exports.FileSystemCopyFileResult = exports.FileSystemCopyFileRequest = exports.FileSystemMoveFileResult = exports.FileSystemMoveFileRequest = exports.FileSystemReadFileResult = exports.FileSystemReadFileRequest = exports.FileSystemWriteFileResult = exports.FileSystemWriteFileRequest = exports.FileSystemDownloadFileResult = exports.FileSystemDownloadFileRequest = exports.FileSystemCreateDirectoryResult = exports.FileSystemCreateDirectoryRequest = exports.FileSystemDeleteFileResult = exports.FileSystemDeleteFileRequest = exports.FileSystemExistsResult = exports.FileSystemExistsRequest = exports.FileSystemIsDirectoryResult = exports.FileSystemIsDirectoryRequest = exports.FileSystemListFilesResult = exports.FileSystemListFilesRequest = exports.FileSystemListOfInternalStorageUnitsResult = exports.FileSystemListOfInternalStorageUnitsRequest = exports.FileSystemListOfStorageUnitsResult = exports.FileSystemListOfStorageUnitsRequest = void 0;
3
+ exports.FileSystemLinkResult = exports.FileSystemLinkRequest = exports.FileSystemWipeoutResult = exports.FileSystemWipeoutRequest = exports.FileSystemAppendFileResult = exports.FileSystemAppendFileRequest = exports.FileSystemGetFileResult = exports.FileSystemGetFileRequest = exports.FileSystemExtractFileResult = exports.FileSystemCreateArchiveFileResult = exports.FileSystemCreateArchiveFileRequest = exports.FileSystemExtractFileRequest = exports.FileSystemGetFileChecksumResult = exports.FileSystemGetFileChecksumRequest = exports.FileSystemCopyFileResult = exports.FileSystemCopyFileRequest = exports.FileSystemMoveFileResult = exports.FileSystemMoveFileRequest = exports.FileSystemReadFileResult = exports.FileSystemReadFileRequest = exports.FileSystemWriteFileResult = exports.FileSystemWriteFileRequest = exports.FileSystemDownloadFileResult = exports.FileSystemDownloadFileRequest = exports.FileSystemCreateDirectoryResult = exports.FileSystemCreateDirectoryRequest = exports.FileSystemDeleteFileResult = exports.FileSystemDeleteFileRequest = exports.FileSystemExistsResult = exports.FileSystemExistsRequest = exports.FileSystemIsDirectoryResult = exports.FileSystemIsDirectoryRequest = exports.FileSystemListFilesResult = exports.FileSystemListFilesRequest = exports.FileSystemListOfInternalStorageUnitsResult = exports.FileSystemListOfInternalStorageUnitsRequest = exports.FileSystemListOfStorageUnitsResult = exports.FileSystemListOfStorageUnitsRequest = void 0;
4
4
  exports.FileSystemListOfStorageUnitsRequest = 'sos.Monitoring.FileSystem.FileSystemListOfStorageUnitsRequest';
5
5
  exports.FileSystemListOfStorageUnitsResult = 'sos.Monitoring.FileSystem.FileSystemListOfStorageUnitsResult';
6
6
  exports.FileSystemListOfInternalStorageUnitsRequest = 'sos.Monitoring.FileSystem.FileSystemListOfInternalStorageUnitsRequest';
@@ -35,4 +35,8 @@ exports.FileSystemGetFileRequest = 'sos.Monitoring.FileSystem.FileSystemGetFileR
35
35
  exports.FileSystemGetFileResult = 'sos.Monitoring.FileSystem.FileSystemGetFileResult';
36
36
  exports.FileSystemAppendFileRequest = 'sos.Monitoring.FileSystem.FileSystemAppendFileRequest';
37
37
  exports.FileSystemAppendFileResult = 'sos.Monitoring.FileSystem.FileSystemAppendFileResult';
38
+ exports.FileSystemWipeoutRequest = 'sos.Monitoring.FileSystem.FileSystemWipeoutRequest';
39
+ exports.FileSystemWipeoutResult = 'sos.Monitoring.FileSystem.FileSystemWipeoutResult';
40
+ exports.FileSystemLinkRequest = 'sos.Monitoring.FileSystem.FileSystemLinkRequest';
41
+ exports.FileSystemLinkResult = 'sos.Monitoring.FileSystem.FileSystemLinkResult';
38
42
  //# sourceMappingURL=fileSystemCommands.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fileSystemCommands.js","sourceRoot":"","sources":["../../../src/Monitoring/FileS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A,wBAAwB,GAAG,oDAAoD,CAAC;AAMhF,QAAA,yBAAyB,GAAG,qDAAqD,CAAC;AAQlF,QAAA,wBAAwB,GAAG,oDAAoD,CAAC;AAMhF,QAAA,gCAAgC,GAAG,4DAA4D,CAAC;AAOhG,QAAA,+BAA+B,GAAG,2DAA2D,CAAC;AAM9F,QAAA,4BAA4B,GAAG,wDAAwD,CAAC;AAQxF,QAAA,kCAAkC,GAAG,8DAA8D,CAAC;AAOpG,QAAA,iCAAiC,GAAG,6DAA6D,CAAC;AAMlG,QAAA,2BAA2B,GAAG,uDAAuD,CAAC;AAMtF,QAAA,wBAAwB,GAAG,oDAAoD,CAAC;AAMhF,QAAA,uBAAuB,GAAG,mDAAmD,CAAC;AAM9E,QAAA,2BAA2B,GAAG,uDAAuD,CAAC;AAOtF,QAAA,0BAA0B,GAAG,sDAAsD,CAAC;AAMpF,QAAA,wBAAwB,GAAG,oDAAoD,CAAC;AAKhF,QAAA,uBAAuB,GAAG,mDAAmD,CAAC;AAM9E,QAAA,qBAAqB,GAAG,iDAAiD,CAAC;AAO1E,QAAA,oBAAoB,GAAG,gDAAgD,CAAC"}
@@ -116,6 +116,20 @@ function handleFileSystemRequests(onCommand, dispatch, frontApplet) {
116
116
  data: await frontApplet.fileSystem.readFile(commandEvent.command.filePath),
117
117
  });
118
118
  break;
119
+ case fileSystemCommands_1.FileSystemWipeoutRequest:
120
+ await frontApplet.fileSystem.wipeout();
121
+ await dispatch({
122
+ type: fileSystemCommands_1.FileSystemWipeoutResult,
123
+ result: {},
124
+ });
125
+ break;
126
+ case fileSystemCommands_1.FileSystemLinkRequest:
127
+ await frontApplet.fileSystem.link(commandEvent.command.sourceFilePath, commandEvent.command.destinationFilePath);
128
+ await dispatch({
129
+ type: fileSystemCommands_1.FileSystemLinkResult,
130
+ result: {},
131
+ });
132
+ break;
119
133
  default:
120
134
  }
121
135
  });
@@ -1 +1 @@
1
- {"version":3,"file":"handleFileSystemRequests.js","sourceRoot":"","sources":["../../../src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,QAAQ,EAAE,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACpG,MAAM,QAAQ,CAA4B;oBACzC,IAAI,EAAE,8CAAyB;oBAC/B,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,gDAA2B;gBAC/B,MAAM,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACrG,MAAM,QAAQ,CAA6B;oBAC1C,IAAI,EAAE,+CAA0B;oBAChC,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,8CAAyB;gBAC7B,MAAM,QAAQ,CAA2B;oBACxC,IAAI,EAAE,6CAAwB;oBAC9B,IAAI,EAAE,MAAM,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC;iBAC1E,CAAC,CAAC;gBACH,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"handleFileSystemRequests.js","sourceRoot":"","sources":["../../../src/Monitoring/FileSystem/handleFileSystemRequests.ts"],"names":[],"mappings":";;AA6CA,4DAuJC;AAjMD,6DAwC8B;AAE9B,SAAgB,wBAAwB,CACvC,SAAsG,EACtG,QAAyE,EACzE,WAAwB;IAExB,SAAS,CAAC,KAAK,EAAE,YAAoD,EAAE,EAAE;QACxE,QAAQ,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACnC,KAAK,wDAAmC;gBACvC,MAAM,QAAQ,CAAqC;oBAClD,IAAI,EAAE,uDAAkC;oBACxC,YAAY,EAAE,MAAM,WAAW,CAAC,UAAU,CAAC,gBAAgB,EAAE;iBAC7D,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,gEAA2C;gBAC/C,MAAM,QAAQ,CAA6C;oBAC1D,IAA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ACxC,IAAI,EAAE,6CAAwB;oBAC9B,IAAI,EAAE,MAAM,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC;iBAC1E,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,6CAAwB;gBAC5B,MAAM,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;gBACvC,MAAM,QAAQ,CAA0B;oBACvC,IAAI,EAAE,4CAAuB;oBAC7B,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,0CAAqB;gBACzB,MAAM,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,cAAc,EAAE,YAAY,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;gBACjH,MAAM,QAAQ,CAAuB;oBACpC,IAAI,EAAE,yCAAoB;oBAC1B,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC"}
@@ -59,6 +59,33 @@ function handleManagementPowerRequests(onCommand, dispatch, frontApplet) {
59
59
  result: {},
60
60
  });
61
61
  break;
62
+ case powerCommands_1.ManagementPowerClearScheduledRebootsRequest:
63
+ await frontApplet.management.power.clearScheduledReboots();
64
+ await dispatch({
65
+ type: powerCommands_1.ManagementPowerClearScheduledRebootsResult,
66
+ result: {},
67
+ });
68
+ break;
69
+ case powerCommands_1.ManagementPowerGetScheduledRebootsRequest:
70
+ await dispatch({
71
+ type: powerCommands_1.ManagementPowerGetScheduledRebootsResult,
72
+ result: await frontApplet.management.power.getScheduledReboots(),
73
+ });
74
+ break;
75
+ case powerCommands_1.ManagementPowerRemoveScheduledRebootRequest:
76
+ await frontApplet.management.power.removeScheduledReboot(commandEvent.command.id);
77
+ await dispatch({
78
+ type: powerCommands_1.ManagementPowerRemoveScheduledRebootResult,
79
+ result: {},
80
+ });
81
+ break;
82
+ case powerCommands_1.ManagementPowerSetScheduledRebootRequest:
83
+ await frontApplet.management.power.setScheduledReboot(commandEvent.command.weekdays, commandEvent.command.time);
84
+ await dispatch({
85
+ type: powerCommands_1.ManagementPowerSetScheduledRebootResult,
86
+ result: {},
87
+ });
88
+ break;
62
89
  default:
63
90
  }
64
91
  });
@@ -1 +1 @@
1
- {"version":3,"file":"handlePowerRequests.js","sourceRoot":"","sources":["../../../../src/Monitoring/Management/Power/handlePowerRequests.ts"],"names":[],"mappings":";;AAuBA,sEA4EC;AAhGD,mDAkByB;AAEzB,SAAgB,6BAA6B,CAC5C,SAAiG,EACjG,QAAyE,EACzE,WAAwB;IAExB,SAAS,CAAC,KAAK,EAAE,YAA+C,EAAE,EAAE;QACnE,QAAQ,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACnC,KAAK,wCAAwB;gBAC5B,MAAM,QAAQ,CAA0B;oBACvC,IAAI,EAAE,uCAAuB;oBAC7B,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;gBAClD,MAAM;YACP,KAAK,sCAAsB;gBAC1B,MAAM,QAAQ,CAAwB;oBACrC,IAAI,EAAE,qCAAqB;oBAC3B,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;gBAChD,MAAM;YACP,KAAK,+CAA+B;gBACnC,MAAM,QAAQ,CAAiC;oBAC9C,IAAI,EAAE,8CAA8B;oBACpC,MAAM,EAAE,MAAM,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,SAAS,EAAE;iBACtD,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,8CAA8B;gBAClC,MAAM,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,CAC1C,YAAY,CAAC,OAAO,CAAC,SAAS,EAC9B,YAAY,CAAC,OAAO,CA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DAA0C;oBAChD,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"handlePowerRequests.js","sourceRoot":"","sources":["../../../../src/Monitoring/Management/Power/handlePowerRequests.ts"],"names":[],"mappings":";;AA+BA,sEAuGC;AAnID,mDA0ByB;AAEzB,SAAgB,6BAA6B,CAC5C,SAAiG,EACjG,QAAyE,EACzE,WAAwB;IAExB,SAAS,CAAC,KAAK,EAAE,YAA+C,EAAE,EAAE;QACnE,QAAQ,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACnC,KAAK,wCAAwB;gBAC5B,MAAM,QAAQ,CAA0B;oBACvC,IAAI,EAAE,uCAAuB;oBAC7B,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;gBAClD,MAAM;YACP,KAAK,sCAAsB;gBAC1B,MAAM,QAAQ,CAAwB;oBACrC,IAAI,EAAE,qCAAqB;oBAC3B,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;gBAChD,MAAM;YACP,KAAK,+CAA+B;gBACnC,MAAM,QAAQ,CAAiC;oBAC9C,IAAI,EAAE,8CAA8B;oBACpC,MAAM,EAAE,MAAM,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,SAAS,EAAE;iBACtD,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,8CAA8B;gBAClC,MAAM,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,CAC1C,YAAY,CAAC,OAAO,CAAC,SAAS,EAC9B,YAAY,CAAC,OAAO,CAAC,MAAM,EAC3B,YAAY,CAAC,OAAO,CAAC,OAAO,EAC5B,YAAY,CAAC,OAAO,CAAC,QAAQ,EAC7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MAAM,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,qBAAqB,EAAE,CAAC;gBAC3D,MAAM,QAAQ,CAA6C;oBAC1D,IAAI,EAAE,0DAA0C;oBAChD,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,yDAAyC;gBAC7C,MAAM,QAAQ,CAA2C;oBACxD,IAAI,EAAE,wDAAwC;oBAC9C,MAAM,EAAE,MAAM,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,mBAAmB,EAAE;iBAChE,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,2DAA2C;gBAC/C,MAAM,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,qBAAqB,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;gBAClF,MAAM,QAAQ,CAA6C;oBAC1D,IAAI,EAAE,0DAA0C;oBAChD,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,wDAAwC;gBAC5C,MAAM,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,kBAAkB,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBAChH,MAAM,QAAQ,CAA0C;oBACvD,IAAI,EAAE,uDAAuC;oBAC7C,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { ITimer, TimerType } from '../../../FrontApplet/Management/helpers/TimerHelper';
2
2
  import { IProprietaryTimer } from '../../../FrontApplet/Management/helpers/ProprietaryTimerHelper';
3
3
  import { EmptyObject } from '../../EmptyObject';
4
- export type PowerRequests = PowerSystemRebootRequest | PowerSystemRebootResult | PowerAppRestartRequest | ManagementPowerGetTimersRequest | ManagementPowerSetTimerRequest | ManagementPowerUnsetTimerRequest | ManagementPowerGetProprietaryTimersRequest | ManagementPowerSetProprietaryTimerRequest | ManagementPowerUnsetProprietaryTimerRequest;
4
+ import { IScheduledRebootActions, WeekdayType } from '../../../FrontApplet/Management/Power/IPower';
5
+ export type PowerRequests = PowerSystemRebootRequest | PowerSystemRebootResult | PowerAppRestartRequest | ManagementPowerGetTimersRequest | ManagementPowerSetTimerRequest | ManagementPowerUnsetTimerRequest | ManagementPowerGetProprietaryTimersRequest | ManagementPowerSetProprietaryTimerRequest | ManagementPowerUnsetProprietaryTimerRequest | ManagementPowerClearScheduledRebootsRequest | ManagementPowerGetScheduledRebootsRequest | ManagementPowerRemoveScheduledRebootRequest | ManagementPowerSetScheduledRebootRequest;
5
6
  export declare const PowerSystemRebootRequest = "sos.Monitoring.Management.Power.PowerSystemRebootRequest";
6
7
  export interface PowerSystemRebootRequest {
7
8
  type: typeof PowerSystemRebootRequest;
@@ -86,3 +87,42 @@ export interface ManagementPowerUnsetProprietaryTimerResult {
86
87
  type: typeof ManagementPowerUnsetProprietaryTimerResult;
87
88
  result: EmptyObject;
88
89
  }
90
+ export declare const ManagementPowerClearScheduledRebootsRequest = "sos.Monitoring.Management.Power.ManagementPowerClearScheduledRebootsRequest";
91
+ export interface ManagementPowerClearScheduledRebootsRequest {
92
+ type: typeof ManagementPowerClearScheduledRebootsRequest;
93
+ }
94
+ export declare const ManagementPowerClearScheduledRebootsResult = "sos.Monitoring.Management.Power.ManagementPowerClearScheduledRebootsResult";
95
+ export interface ManagementPowerClearScheduledRebootsResult {
96
+ type: typeof ManagementPowerClearScheduledRebootsResult;
97
+ result: EmptyObject;
98
+ }
99
+ export declare const ManagementPowerGetScheduledRebootsRequest = "sos.Monitoring.Management.Power.ManagementPowerGetScheduledRebootsRequest";
100
+ export interface ManagementPowerGetScheduledRebootsRequest {
101
+ type: typeof ManagementPowerGetScheduledRebootsRequest;
102
+ }
103
+ export declare const ManagementPowerGetScheduledRebootsResult = "sos.Monitoring.Management.Power.ManagementPowerGetScheduledRebootsResult";
104
+ export interface ManagementPowerGetScheduledRebootsResult {
105
+ type: typeof ManagementPowerGetScheduledRebootsResult;
106
+ result: IScheduledRebootActions[];
107
+ }
108
+ export declare const ManagementPowerRemoveScheduledRebootRequest = "sos.Monitoring.Management.Power.ManagementPowerRemoveScheduledRebootRequest";
109
+ export interface ManagementPowerRemoveScheduledRebootRequest {
110
+ type: typeof ManagementPowerRemoveScheduledRebootRequest;
111
+ id: string;
112
+ }
113
+ export declare const ManagementPowerRemoveScheduledRebootResult = "sos.Monitoring.Management.Power.ManagementPowerRemoveScheduledRebootResult";
114
+ export interface ManagementPowerRemoveScheduledRebootResult {
115
+ type: typeof ManagementPowerRemoveScheduledRebootResult;
116
+ result: EmptyObject;
117
+ }
118
+ export declare const ManagementPowerSetScheduledRebootRequest = "sos.Monitoring.Management.Power.ManagementPowerSetScheduledRebootRequest";
119
+ export interface ManagementPowerSetScheduledRebootRequest {
120
+ type: typeof ManagementPowerSetScheduledRebootRequest;
121
+ weekdays: WeekdayType[];
122
+ time: string;
123
+ }
124
+ export declare const ManagementPowerSetScheduledRebootResult = "sos.Monitoring.Management.Power.ManagementPowerSetScheduledRebootResult";
125
+ export interface ManagementPowerSetScheduledRebootResult {
126
+ type: typeof ManagementPowerSetScheduledRebootResult;
127
+ result: EmptyObject;
128
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ManagementPowerUnsetProprietaryTimerResult = exports.ManagementPowerUnsetProprietaryTimerRequest = exports.ManagementPowerSetProprietaryTimerResult = exports.ManagementPowerSetProprietaryTimerRequest = exports.ManagementPowerGetProprietaryTimersResult = exports.ManagementPowerGetProprietaryTimersRequest = exports.ManagementPowerUnsetTimerResult = exports.ManagementPowerUnsetTimerRequest = exports.ManagementPowerSetTimerResult = exports.ManagementPowerSetTimerRequest = exports.ManagementPowerGetTimersResult = exports.ManagementPowerGetTimersRequest = exports.PowerAppRestartResult = exports.PowerAppRestartRequest = exports.PowerSystemRebootResult = exports.PowerSystemRebootRequest = void 0;
3
+ exports.ManagementPowerSetScheduledRebootResult = exports.ManagementPowerSetScheduledRebootRequest = exports.ManagementPowerRemoveScheduledRebootResult = exports.ManagementPowerRemoveScheduledRebootRequest = exports.ManagementPowerGetScheduledRebootsResult = exports.ManagementPowerGetScheduledRebootsRequest = exports.ManagementPowerClearScheduledRebootsResult = exports.ManagementPowerClearScheduledRebootsRequest = exports.ManagementPowerUnsetProprietaryTimerResult = exports.ManagementPowerUnsetProprietaryTimerRequest = exports.ManagementPowerSetProprietaryTimerResult = exports.ManagementPowerSetProprietaryTimerRequest = exports.ManagementPowerGetProprietaryTimersResult = exports.ManagementPowerGetProprietaryTimersRequest = exports.ManagementPowerUnsetTimerResult = exports.ManagementPowerUnsetTimerRequest = exports.ManagementPowerSetTimerResult = exports.ManagementPowerSetTimerRequest = exports.ManagementPowerGetTimersResult = exports.ManagementPowerGetTimersRequest = exports.PowerAppRestartResult = exports.PowerAppRestartRequest = exports.PowerSystemRebootResult = exports.PowerSystemRebootRequest = void 0;
4
4
  exports.PowerSystemRebootRequest = 'sos.Monitoring.Management.Power.PowerSystemRebootRequest';
5
5
  exports.PowerSystemRebootResult = 'sos.Monitoring.Management.Power.PowerSystemRebootResult';
6
6
  exports.PowerAppRestartRequest = 'sos.Monitoring.Management.Power.PowerAppRestartRequest';
@@ -17,4 +17,12 @@ exports.ManagementPowerSetProprietaryTimerRequest = 'sos.Monitoring.Management.P
17
17
  exports.ManagementPowerSetProprietaryTimerResult = 'sos.Monitoring.Management.Power.ManagementPowerSetProprietaryTimerResult';
18
18
  exports.ManagementPowerUnsetProprietaryTimerRequest = 'sos.Monitoring.Management.Power.ManagementPowerUnsetProprietaryTimerRequest';
19
19
  exports.ManagementPowerUnsetProprietaryTimerResult = 'sos.Monitoring.Management.Power.ManagementPowerUnsetProprietaryTimerResult';
20
+ exports.ManagementPowerClearScheduledRebootsRequest = 'sos.Monitoring.Management.Power.ManagementPowerClearScheduledRebootsRequest';
21
+ exports.ManagementPowerClearScheduledRebootsResult = 'sos.Monitoring.Management.Power.ManagementPowerClearScheduledRebootsResult';
22
+ exports.ManagementPowerGetScheduledRebootsRequest = 'sos.Monitoring.Management.Power.ManagementPowerGetScheduledRebootsRequest';
23
+ exports.ManagementPowerGetScheduledRebootsResult = 'sos.Monitoring.Management.Power.ManagementPowerGetScheduledRebootsResult';
24
+ exports.ManagementPowerRemoveScheduledRebootRequest = 'sos.Monitoring.Management.Power.ManagementPowerRemoveScheduledRebootRequest';
25
+ exports.ManagementPowerRemoveScheduledRebootResult = 'sos.Monitoring.Management.Power.ManagementPowerRemoveScheduledRebootResult';
26
+ exports.ManagementPowerSetScheduledRebootRequest = 'sos.Monitoring.Management.Power.ManagementPowerSetScheduledRebootRequest';
27
+ exports.ManagementPowerSetScheduledRebootResult = 'sos.Monitoring.Management.Power.ManagementPowerSetScheduledRebootResult';
20
28
  //# sourceMappingURL=powerCommands.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"powerCommands.js","sourceRoot":"","sources":["../../../../src/Monitoring/Management/Power/powerCommands.ts"],"names":[],"mappings":";;;AAea,QAAA,wBAAwB,GAAG,0DAA0D,CAAC;AAKtF,QAAA,uBAAuB,GAAG,yDAAyD,CAAC;AAMpF,QAAA,sBAAsB,GAAG,wDAAwD,CAAC;AAKlF,QAAA,qBAAqB,GAAG,uDAAuD,CAAC;AAMhF,QAAA,+BAA+B,GAAG,iEAAiE,CAAC;AAKpG,QAAA,8BAA8B,GAAG,gEAAgE,CAAC;AAMlG,QAAA,8BAA8B,GAAG,gEAAgE,CAAC;AAUlG,QAAA,6BAA6B,GAAG,+DAA+D,CAAC;AAMhG,QAAA,gCAAgC,GAAG,kEAAkE,CAAC;AAMtG,QAAA,+BAA+B,GAAG,iEAAiE,CAAC;AAMpG,QAAA,0CAA0C,GAAG,4EAA4E,CAAC;AAK1H,QAAA,yCAAyC,GAAG,2EAA2E,CAAC;AAMxH,QAAA,yCAAyC,GAAG,2EAA2E,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AAC"}
@@ -32,9 +32,11 @@ function handleManagementScreenRequests(onCommand, dispatch, frontApplet) {
32
32
  });
33
33
  break;
34
34
  case screenCommands_1.ManagementScreenTakeScreenshotRequest:
35
+ const data = await frontApplet.management.screen.takeAndUploadScreenshot(commandEvent.command.uploadBaseUrl, commandEvent.command.computeHash);
35
36
  await dispatch({
36
37
  type: screenCommands_1.ManagementScreenTakeScreenshotResult,
37
- screenshotUrl: await frontApplet.management.screen.takeAndUploadScreenshot(commandEvent.command.uploadBaseUrl),
38
+ screenshotUrl: data.screenshotUrl,
39
+ aHash: data.aHash,
38
40
  });
39
41
  break;
40
42
  case screenCommands_1.ManagementScreenPowerOnRequest:
@@ -1 +1 @@
1
- {"version":3,"file":"handleScreenRequests.js","sourceRoot":"","sources":["../../../../src/Monitoring/Management/Screen/handleScreenRequests.ts"],"names":[],"mappings":";;AAuBA,wEAyEC;AA7FD,qDAkB0B;AAE1B,SAAgB,8BAA8B,CAC7C,SAA4G,EAC5G,QAAyE,EACzE,WAAwB;IAExB,SAAS,CAAC,KAAK,EAAE,YAA0D,EAAE,EAAE;QAC9E,QAAQ,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACnC,KAAK,8CAA6B;gBACjC,MAAM,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CACzC,YAAY,CAAC,OAAO,CAAC,OAAO,EAC5B,YAAY,CAAC,OAAO,CAAC,WAAW,EAChC,YAAY,CAAC,OAAO,CAAC,UAAU,EAC/B,YAAY,CAAC,OAAO,CAAC,cAAc,EACnC,YAAY,CAAC,OAAO,CAAC,gBAAgB,CACrC,CAAC;gBACF,MAAM,QAAQ,CAA+B;oBAC5C,IAAI,EAAE,6CAA4B;oBAClC,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,sDAAqC;gBACzC,MAAM,QAAQ,CAAuC;oBACpD,IAAI,EAAE,qDAAoC;oBAC1C,MAAM,EAAE,MAAM,WAAW,CAA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C;gBACtC,MAAM,QAAQ,CAAoC;oBACjD,IAAI,EAAE,kDAAiC;oBACvC,MAAM,EAAE,MAAM,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,EAAE;iBACzD,CAAC,CAAC;gBACH,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"handleScreenRequests.js","sourceRoot":"","sources":["../../../../src/Monitoring/Management/Screen/handleScreenRequests.ts"],"names":[],"mappings":";;AAuBA,wEA8EC;AAlGD,qDAkB0B;AAE1B,SAAgB,8BAA8B,CAC7C,SAA4G,EAC5G,QAAyE,EACzE,WAAwB;IAExB,SAAS,CAAC,KAAK,EAAE,YAA0D,EAAE,EAAE;QAC9E,QAAQ,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACnC,KAAK,8CAA6B;gBACjC,MAAM,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CACzC,YAAY,CAAC,OAAO,CAAC,OAAO,EAC5B,YAAY,CAAC,OAAO,CAAC,WAAW,EAChC,YAAY,CAAC,OAAO,CAAC,UAAU,EAC/B,YAAY,CAAC,OAAO,CAAC,cAAc,EACnC,YAAY,CAAC,OAAO,CAAC,gBAAgB,CACrC,CAAC;gBACF,MAAM,QAAQ,CAA+B;oBAC5C,IAAI,EAAE,6CAA4B;oBAClC,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,sDAAqC;gBACzC,MAAM,QAAQ,CAAuC;oBACpD,IAAI,EAAE,qDAAoC;oBAC1C,MAAM,EAAE,MAAM,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,cAAc,EAAE;iBAC5D,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,qDAAoC;gBACxC,MAAM,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,aAAa,CAChD,YAAY,CAAC,OAAO,CAAC,SAAS,EAC9B,YAAY,CAAC,OAAO,CAAC,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C,UAAU,CAAC,MAAM,CAAC,WAAW,EAAE;iBACzD,CAAC,CAAC;gBACH,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC"}
@@ -51,11 +51,13 @@ export declare const ManagementScreenTakeScreenshotRequest = "sos.Monitoring.Man
51
51
  export interface ManagementScreenTakeScreenshotRequest {
52
52
  type: typeof ManagementScreenTakeScreenshotRequest;
53
53
  uploadBaseUrl: string;
54
+ computeHash?: boolean;
54
55
  }
55
56
  export declare const ManagementScreenTakeScreenshotResult = "sos.Monitoring.Management.ManagementScreenTakeScreenshotResult";
56
57
  export interface ManagementScreenTakeScreenshotResult {
57
58
  type: typeof ManagementScreenTakeScreenshotResult;
58
59
  screenshotUrl: string;
60
+ aHash?: string;
59
61
  }
60
62
  export declare const ManagementScreenPowerOnRequest = "sos.Monitoring.Management.ManagementScreenPowerOnRequest";
61
63
  export interface ManagementScreenPowerOnRequest {
@@ -1 +1 @@
1
- {"version":3,"file":"screenCommands.js","sourceRoot":"","sources":["../../../../src/Monitoring/Management/Screen/screenCommands.ts"],"names":[],"mappings":";;;AAca,QAAA,6BAA6B,GAAG,yDAAyD,CAAC;AAU1F,QAAA,4BAA4B,GAAG,wDAAwD,CAAC;AAMxF,QAAA,qCAAqC,GAAG,iEAAiE,CAAC;AAK1G,QAAA,oCAAoC,GAAG,gEAAgE,CAAC;AAMxG,QAAA,oCAAoC,GAAG,gEAAgE,CAAC;AASxG,QAAA,mCAAmC,GAAG,+DAA+D,CAAC;AAMtG,QAAA,oCAAoC,GAAG,gEAAgE,CAAC;AAKxG,QAAA,mCAAmC,GAAG,+DAA+D,CAAC;AAMtG,QAAA,qCAAqC,GAAG,iEAAiE,CAAC;AAM1G,QAAA,oCAAoC,GAAG,gEAAgE,CAAC;AAMxG,QAAA,8BAA8B,GAAG,0DAA0D,CAAC;AAK5F,QAAA,6BAA6B,GAAG,yDAAyD,CAAC;AAM1F,QAAA,+BAA+B,GAAG,2DAA2D,CAAC;AAK9F,QAAA,8BAA8B,GAAG,0DAA0D,CAAC;AAM5F,QAAA,kCAAkC,GAAG,8DAA8D,CAAC;AAKpG,QAAA,iCAAiC,GAAG,6DAA6D,CAAC"}
1
+ {"version":3,"file":"screenCommands.js","sourceRoot":"","sources":["../../../../src/Monitoring/Management/Screen/screenCommands.ts"],"names":[],"mappings":";;;AAca,QAAA,6BAA6B,GAAG,yDAAyD,CAAC;AAU1F,QAAA,4BAA4B,GAAG,wDAAwD,CAAC;AAMxF,QAAA,qCAAqC,GAAG,iEAAiE,CAAC;AAK1G,QAAA,oCAAoC,GAAG,gEAAgE,CAAC;AAMxG,QAAA,oCAAoC,GAAG,gEAAgE,CAAC;AASxG,QAAA,mCAAmC,GAAG,+DAA+D,CAAC;AAMtG,QAAA,oCAAoC,GAAG,gEAAgE,CAAC;AAKxG,QAAA,mCAAmC,GAAG,+DAA+D,CAAC;AAMtG,QAAA,qCAAqC,GAAG,iEAAiE,CAAC;AAO1G,QAAA,oCAAoC,GAAG,gEAAgE,CAAC;AAOxG,QAAA,8BAA8B,GAAG,0DAA0D,CAAC;AAK5F,QAAA,6BAA6B,GAAG,yDAAyD,CAAC;AAM1F,QAAA,+BAA+B,GAAG,2DAA2D,CAAC;AAK9F,QAAA,8BAA8B,GAAG,0DAA0D,CAAC;AAM5F,QAAA,kCAAkC,GAAG,8DAA8D,CAAC;AAKpG,QAAA,iCAAiC,GAAG,6DAA6D,CAAC"}
@@ -24,6 +24,7 @@ const handleManagementNetworkRequests_1 = require("./Management/Network/handleMa
24
24
  const handlePeerRecoveryRequests_1 = require("./Management/PeerRecovery/handlePeerRecoveryRequests");
25
25
  const handleAutoRecoveryRequests_1 = require("./Management/AutoRecovery/handleAutoRecoveryRequests");
26
26
  const enhancer_1 = require("../Util/Console/enhancer");
27
+ const handleDeviceInfoRequests_1 = require("./DeviceInfo/handleDeviceInfoRequests");
27
28
  class Monitoring {
28
29
  frontApplet;
29
30
  /** @internal */
@@ -52,6 +53,7 @@ class Monitoring {
52
53
  (0, handleManagementNetworkRequests_1.handleManagementNetworkRequests)(this.onCommand.bind(this), this.dispatch.bind(this), this.frontApplet);
53
54
  (0, handlePeerRecoveryRequests_1.handleManagementPeerRecoveryRequests)(this.onCommand.bind(this), this.dispatch.bind(this), this.frontApplet);
54
55
  (0, handleAutoRecoveryRequests_1.handleManagementAutoRecoveryRequests)(this.onCommand.bind(this), this.dispatch.bind(this), this.frontApplet);
56
+ (0, handleDeviceInfoRequests_1.handleDeviceInfoRequests)(this.onCommand.bind(this), this.dispatch.bind(this), this.frontApplet);
55
57
  }
56
58
  onCommand(listener) {
57
59
  this.frontApplet.command.onCommand((command) => {