@signageos/front-applet 8.0.3 → 8.1.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.
Files changed (57) hide show
  1. package/dist/bundle.js +5 -5
  2. package/dist/bundle.js.map +1 -1
  3. package/docs/fpath/index.md +12 -250
  4. package/docs/sos/fileSystem.md +15 -0
  5. package/docs/sos_management/power.md +105 -0
  6. package/docs/sos_management/screen.md +35 -2
  7. package/docs/sos_management/wifi.md +82 -18
  8. package/es6/FrontApplet/DeviceInfo/IDeviceInfo.d.ts +1 -0
  9. package/es6/FrontApplet/FileSystem/FileSystem.d.ts +9 -0
  10. package/es6/FrontApplet/FileSystem/FileSystem.js +13 -0
  11. package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
  12. package/es6/FrontApplet/FileSystem/IFileSystem.d.ts +1 -0
  13. package/es6/FrontApplet/Management/Power/IPower.d.ts +35 -0
  14. package/es6/FrontApplet/Management/Power/IPower.js +25 -0
  15. package/es6/FrontApplet/Management/Power/IPower.js.map +1 -1
  16. package/es6/FrontApplet/Management/Power/Power.d.ts +56 -2
  17. package/es6/FrontApplet/Management/Power/Power.js +100 -0
  18. package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
  19. package/es6/FrontApplet/Management/Power/PowerHelper.d.ts +3 -0
  20. package/es6/FrontApplet/Management/Power/PowerHelper.js +12 -0
  21. package/es6/FrontApplet/Management/Power/PowerHelper.js.map +1 -0
  22. package/es6/FrontApplet/Management/Screen/IScreen.d.ts +5 -0
  23. package/es6/FrontApplet/Management/Screen/Screen.d.ts +18 -2
  24. package/es6/FrontApplet/Management/Screen/Screen.js +32 -23
  25. package/es6/FrontApplet/Management/Screen/Screen.js.map +1 -1
  26. package/es6/FrontApplet/Management/Wifi/IWifi.d.ts +3 -0
  27. package/es6/FrontApplet/Management/Wifi/IWifi.js +1 -0
  28. package/es6/FrontApplet/Management/Wifi/IWifi.js.map +1 -1
  29. package/es6/FrontApplet/Management/Wifi/Wifi.d.ts +56 -19
  30. package/es6/FrontApplet/Management/Wifi/Wifi.js +59 -20
  31. package/es6/FrontApplet/Management/Wifi/Wifi.js.map +1 -1
  32. package/es6/Monitoring/DeviceInfo/deviceInfoCommands.d.ts +29 -0
  33. package/es6/Monitoring/DeviceInfo/deviceInfoCommands.js +10 -0
  34. package/es6/Monitoring/DeviceInfo/deviceInfoCommands.js.map +1 -0
  35. package/es6/Monitoring/DeviceInfo/handleDeviceInfoRequests.d.ts +5 -0
  36. package/es6/Monitoring/DeviceInfo/handleDeviceInfoRequests.js +30 -0
  37. package/es6/Monitoring/DeviceInfo/handleDeviceInfoRequests.js.map +1 -0
  38. package/es6/Monitoring/FileSystem/fileSystemCommands.d.ts +21 -1
  39. package/es6/Monitoring/FileSystem/fileSystemCommands.js +5 -1
  40. package/es6/Monitoring/FileSystem/fileSystemCommands.js.map +1 -1
  41. package/es6/Monitoring/FileSystem/handleFileSystemRequests.js +14 -0
  42. package/es6/Monitoring/FileSystem/handleFileSystemRequests.js.map +1 -1
  43. package/es6/Monitoring/Management/Power/handlePowerRequests.js +27 -0
  44. package/es6/Monitoring/Management/Power/handlePowerRequests.js.map +1 -1
  45. package/es6/Monitoring/Management/Power/powerCommands.d.ts +41 -1
  46. package/es6/Monitoring/Management/Power/powerCommands.js +9 -1
  47. package/es6/Monitoring/Management/Power/powerCommands.js.map +1 -1
  48. package/es6/Monitoring/Management/Screen/handleScreenRequests.js +3 -1
  49. package/es6/Monitoring/Management/Screen/handleScreenRequests.js.map +1 -1
  50. package/es6/Monitoring/Management/Screen/screenCommands.d.ts +2 -0
  51. package/es6/Monitoring/Management/Screen/screenCommands.js.map +1 -1
  52. package/es6/Monitoring/Monitoring.js +2 -0
  53. package/es6/Monitoring/Monitoring.js.map +1 -1
  54. package/es6/bundle.d.ts +14 -1
  55. package/es6/bundle.js +5 -16
  56. package/es6/bundle.js.map +1 -1
  57. package/package.json +1 -1
@@ -97,6 +97,10 @@ export default class Screen implements IScreen {
97
97
  * @since 3.0.0
98
98
  */
99
99
  getBrightness(): Promise<IBrightness>;
100
+ /**
101
+ * @deprecated Use `takeAndUploadScreenshot(uploadBaseUrl: string, computeHash?: boolean): Promise<{ screenshotUrl: string; aHash?: string }>` instead.
102
+ */
103
+ takeAndUploadScreenshot(uploadBaseUrl: string): Promise<string>;
100
104
  /**
101
105
  * The `takeAndUploadScreenshot()` method takes a screenshot and uploads it to a specified url. This can be either a signageOS upload url
102
106
  * (`https://upload.signageos.io`) or a dedicated server url for uploading screenshots. Format in which the screenshot is uploaded may be
@@ -110,9 +114,21 @@ export default class Screen implements IScreen {
110
114
  * signageOS provides standalone server which is implements all of those methods. It is provided to all of our partners through the
111
115
  * [support ticketing system](https://box.signageos.io/support/).
112
116
  *
117
+ * @param uploadBaseUrl URL to which the screenshot will be uploaded. It can be either a signageOS upload url or a custom server url.
118
+ * @param computeHash Whether to compute a hash of the screenshot and return it in the response.
119
+ *
113
120
  * @since 3.0.0
121
+ *
122
+ * @example
123
+ * const { screenshotUrl, aHash } = await sos.management.screen.takeAndUploadScreenshot(
124
+ * 'https://your.upload.server/upload/file?prefix=screenshot/',
125
+ * true,
126
+ * );
114
127
  */
115
- takeAndUploadScreenshot(uploadBaseUrl: string): Promise<string>;
128
+ takeAndUploadScreenshot(uploadBaseUrl: string, computeHash?: boolean): Promise<{
129
+ screenshotUrl: string;
130
+ aHash?: string;
131
+ }>;
116
132
  /**
117
133
  * The `powerOn()` method turns the screen on.
118
134
  *
@@ -121,7 +137,7 @@ export default class Screen implements IScreen {
121
137
  */
122
138
  powerOn(): Promise<void>;
123
139
  /**
124
- * The `powerOff()` method turn the screen off.
140
+ * The `powerOff()` method turn the screen off. It will turn off the display backlight and the panel, and it will also disable applet.
125
141
  *
126
142
  * :::warning
127
143
  *
@@ -157,28 +157,37 @@ class Screen {
157
157
  });
158
158
  return screenBrightness;
159
159
  }
160
- /**
161
- * The `takeAndUploadScreenshot()` method takes a screenshot and uploads it to a specified url. This can be either a signageOS upload url
162
- * (`https://upload.signageos.io`) or a dedicated server url for uploading screenshots. Format in which the screenshot is uploaded may be
163
- * different for every platform.
164
- *
165
- * To implement a custom screenshot upload server, it needs to implement these endpoints:
166
- * - POST `/upload/file?prefix=screenshot/` - Endpoint for receiving screenshot using form data, with the image set to the `file` field.
167
- * - POST `/upload/raw?prefix=screenshot/` - Endpoint for receiving screenshots as a raw data.
168
- * - POST `/upload/image-data-uri?prefix=screenshot/` - Endpoint for receiving screenshots encoded as a data url.
169
- *
170
- * signageOS provides standalone server which is implements all of those methods. It is provided to all of our partners through the
171
- * [support ticketing system](https://box.signageos.io/support/).
172
- *
173
- * @since 3.0.0
174
- */
175
- async takeAndUploadScreenshot(uploadBaseUrl) {
176
- (0, Validate_1.default)({ uploadBaseUrl }).required().uri();
177
- const { screenshotUrl } = await this.postMessage({
178
- type: this.getMessage('upload_screenshot'),
179
- uploadBaseUrl,
180
- });
181
- return screenshotUrl;
160
+ /** @internal */
161
+ async takeAndUploadScreenshot(...args) {
162
+ if (typeof args[0] === 'string' && typeof args[1] === 'undefined') {
163
+ const [uploadBaseUrl] = args;
164
+ (0, Validate_1.default)({ uploadBaseUrl }).required().uri();
165
+ const response = await this.postMessage({
166
+ type: this.getMessage('upload_screenshot'),
167
+ uploadBaseUrl,
168
+ });
169
+ if (typeof response === 'string') {
170
+ return response; // For backward compatibility, return string directly
171
+ }
172
+ else if (typeof response === 'object' && 'screenshotUrl' in response) {
173
+ const { screenshotUrl } = response;
174
+ return screenshotUrl;
175
+ }
176
+ }
177
+ else {
178
+ const [uploadBaseUrl, computeHash] = args;
179
+ (0, Validate_1.default)({ uploadBaseUrl }).required().uri();
180
+ (0, Validate_1.default)({ computeHash }).boolean();
181
+ const { screenshotUrl, aHash } = await this.postMessage({
182
+ type: this.getMessage('upload_screenshot'),
183
+ uploadBaseUrl,
184
+ computeHash,
185
+ });
186
+ return {
187
+ screenshotUrl,
188
+ aHash,
189
+ };
190
+ }
182
191
  }
183
192
  /**
184
193
  * The `powerOn()` method turns the screen on.
@@ -192,7 +201,7 @@ class Screen {
192
201
  });
193
202
  }
194
203
  /**
195
- * The `powerOff()` method turn the screen off.
204
+ * The `powerOff()` method turn the screen off. It will turn off the display backlight and the panel, and it will also disable applet.
196
205
  *
197
206
  * :::warning
198
207
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Screen.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Screen/Screen.ts"],"names":[],"mappings":";;;;;AAGA,0DAAkE;AAClE,wDAAyE;AACzE,uEAA+C;AAG/C,0DAA0D;AAC1D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAqB,MAAM;IAGjB;IACA;IAHT,gBAAgB;IAChB,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;IACpC,CAAC;IAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACI,KAAK,CAAC,MAAM,CAClB,OAAe,EACf,WAAmB,EACnB,UAAkB,EAClB,cAAsB,EACtB,gBAAyB;QAEzB,IAAA,kBAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC;QACvC,IAAA,kBAAQ,EAAC,EAAE,cAAc,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC;QACjD,IAAI,OAAO,0BAAW,CAAC,WAAuC,CAAC,KAAK,WAAW,EAAE,CAAC;YACjF,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QACxC,CAAC;QACD,IAAI,OAAO,yBAAU,CAAC,UAAqC,CAAC,KAAK,WAAW,EAAE,CAAC;YAC9E,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACvC,CAAC;QACD,IAAI,gBAAgB,IAAI,OAAO,yBAAgB,CAAC,gBAAiD,CAAC,KAAK,WAAW,EAAE,CAAC;YACpH,MAA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' | 'WPA3' | '802.1X_EAP';
24
25
  export interface IWifiConnectOptions {
25
26
  hidden?: boolean;
27
+ securityType?: WifiEncryptionType;
26
28
  }
27
29
  export declare const VIWifiConnectOptions: {
28
30
  hidden: string;
31
+ securityType: string;
29
32
  };
@@ -3,5 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VIWifiConnectOptions = void 0;
4
4
  exports.VIWifiConnectOptions = {
5
5
  hidden: '?boolean',
6
+ securityType: '?string',
6
7
  };
7
8
  //# sourceMappingURL=IWifi.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IWifi.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Wifi/IWifi.ts"],"names":[],"mappings":";;;AA8Ba,QAAA,oBAAoB,GAAG;IACnC,MAAM,EAAE,UAAU;CAClB,CAAC"}
1
+ {"version":3,"file":"IWifi.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Wifi/IWifi.ts"],"names":[],"mappings":";;;AAiCa,QAAA,oBAAoB,GAAG;IACnC,MAAM,EAAE,UAAU;IAClB,YAAY,EAAE,SAAS;CACvB,CAAC"}
@@ -3,11 +3,11 @@ import IWifiMessage, { WifiEvent } from './IWifiEvent';
3
3
  import { IWifiDevice } from '../Network/INetworkInfo';
4
4
  import IWifi, { IScannedDevice, IWifiConnectOptions } from './IWifi';
5
5
  /**
6
- * The `sos.management.wifi` API groups together methods for managing WIFI.
6
+ * The `sos.management.wifi` API groups together methods for managing Wi-Fi.
7
7
  *
8
8
  * :::info
9
9
  *
10
- * Use `sos.management.supports('WIFI')` to check if the device supports managing WIFI setup.
10
+ * Use `sos.management.supports('WIFI')` to check if the device supports managing Wi-Fi setup.
11
11
  *
12
12
  * :::
13
13
  *
@@ -33,54 +33,93 @@ export default class Wifi implements IWifi {
33
33
  /**
34
34
  * The `isClientEnabled()` method checks whether the Wi-Fi is in `client` state.
35
35
  *
36
- * @throws If the Wi-Fi state is in the `ap` state.
36
+ * @throws Error If the Wi-Fi state is in the `ap` state.
37
+ * @returns {Boolean} if client mode is enabled.
37
38
  */
38
39
  isClientEnabled(): Promise<boolean>;
39
40
  /**
40
41
  * The `enabledClient()` method switches the Wi-Fi state from `disabled` to `client` state.
41
42
  *
42
- * @throws If the Wi-Fi state is in the `ap` state.
43
+ * @throws Error If the Wi-Fi state is in the `ap` state.
43
44
  */
44
45
  enableClient(): Promise<void>;
45
46
  /**
46
- * The `isClientEnabled()` method checks whether the Wi-Fi is in `ap` state.
47
+ * The `isAPEnabled()` method checks whether the Wi-Fi is in `ap` state.
48
+ *
49
+ * @returns {Boolean} if AP mode is enabled.
47
50
  */
48
51
  isAPEnabled(): Promise<boolean>;
49
52
  /**
50
- * The `enabledClient()` method switches the Wi-Fi state from `disabled` to `ap` state.
53
+ * The `enableAP()` method switches the Wi-Fi state from `disabled` to `ap` state.
51
54
  *
52
55
  * :::info
53
- *
54
56
  * Use `sos.management.supports('WIFI_AP')` to check if the device is able to be in the `ap` mode.
55
- *
56
57
  * :::
57
58
  *
58
59
  * @param ssid Name of the network, max. allowed length is 32 characters.
59
60
  * @param password Password of the device, must be between 8 and 32 characters.
60
61
  *
61
- * @throws If the Wi-Fi state is in the `client` state.
62
+ * @throws Error If the Wi-Fi state is in the `client` state.
62
63
  */
63
64
  enableAP(ssid: string, password: string): Promise<void>;
64
65
  /**
65
- * The `disable()` method switches the Wi-Fi state to `disabled`. All previously configured networks will be forgotten.
66
+ * The `disable()` method switches the Wi-Fi state to `disabled` and disconnect from connected Wi-Fi.
67
+ *
68
+ * All previously configured networks will be forgotten.
66
69
  */
67
70
  disable(): Promise<void>;
68
71
  /**
69
72
  * The `getConnectedTo()` method returns a network the device is currently connected to.
70
73
  *
71
- * @throws If the Wi-Fi state is not in the `client` state.
74
+ * @throws Error If the Wi-Fi state is not in the `client` state.
75
+ *
76
+ * @returns An object containing the SSID, whether the network is encrypted, and the signal strength.
77
+ * If the device is not connected to any network, it returns `null`.
78
+ *
79
+ * @example
80
+ * // To get the network the device is currently connected to
81
+ * const connectedTo = await sos.management.wifi.getConnectedTo();
82
+ * console.log(`Connected to SSID: ${connectedTo?.ssid}, Strength: ${connectedTo?.strength}`);
72
83
  */
73
84
  getConnectedTo(): Promise<IWifiDevice | null>;
74
85
  /**
75
86
  * The `connect()` method connects the device to a specified network.
76
87
  *
77
- * @throws If the Wi-Fi state is not in the `client` state.
88
+ * :::warning
89
+ * Connecting to a OPEN Wi-Fi network for Tizen and WebOS is different.
90
+ * - For Tizen, make sure that the `password` is an empty string (`''`) and in options you have selected `OPEN` as encryption type.
91
+ * - For WebOS, you can pass `undefined` as the `password` parameter.
92
+ * :::
93
+ *
94
+ * :::info
95
+ * Security type of Wi-Fi is mandatory for Tizen.
96
+ * :::
97
+ *
98
+ * @param ssid Name of the network, max. allowed length is 32 characters.
99
+ * @param password Password of the device, must be between 8 and 32 characters.
100
+ * @param options Additional options for the connection, such as `hidden` or `securityType`.
101
+ *
102
+ * @throws Error If the Wi-Fi state is not in the `client` state.
103
+ * @returns A promise that resolves when the connection is established or if connection fails.
104
+ *
105
+ * @example
106
+ * // To connect on open Wi-Fi network ex. WebOS
107
+ * await sos.management.wifi.connect('MyOpenNetwork');
108
+ *
109
+ * // To connect on open Wi-Fi network with empty password (Tizen)
110
+ * await sos.management.wifi.connect('MyOpenNetwork', '', { securityType: 'OPEN' });
111
+ *
112
+ * // If the network is hidden
113
+ * await sos.management.wifi.connect('MyOpenNetwork', undefined, { hidden: true });
114
+ *
115
+ * // To connect on encrypted Wi-Fi network with WPA2 security
116
+ * await sos.management.wifi.connect('MyEncryptedNetwork', 'my-password', { securityType: 'WPA2' });
78
117
  */
79
118
  connect(ssid: string, password?: string, options?: IWifiConnectOptions): Promise<void>;
80
119
  /**
81
120
  * The `disconnect()` method disconnects the device from Wi-Fi network.
82
121
  *
83
- * @throws If the Wi-Fi state is not in the `client` state.
122
+ * @throws Error If the Wi-Fi state is not in the `client` state.
84
123
  */
85
124
  disconnect(): Promise<void>;
86
125
  /**
@@ -88,7 +127,8 @@ export default class Wifi implements IWifi {
88
127
  * have different regulations, when it comes to the Wi-Fi networks. Under normal circumstances, everything should work with default
89
128
  * settings. However, if you experience any problems, you might want to try changing Wi-Fi country configuration to your country.
90
129
  *
91
- * @throws If the Wi-Fi state is not in the `client` state.
130
+ * @throws Error If the Wi-Fi state is not in the `client` state.
131
+ * @returns The 2-letter country code from the ISO 3166 standard, or `null` if not set.
92
132
  */
93
133
  getCountry(): Promise<string | null>;
94
134
  /**
@@ -97,20 +137,17 @@ export default class Wifi implements IWifi {
97
137
  * settings. However, if you experience any problems, you might want to try changing Wi-Fi country configuration to your country.
98
138
  *
99
139
  * @param countryCode 2-letter country code from the ISO 3166 standard.
100
- *
101
- * @throws If the Wi-Fi state is not in the `client` state.
140
+ * @throws Error If the Wi-Fi state is not in the `client` state.
102
141
  */
103
142
  setCountry(countryCode: string): Promise<void>;
104
143
  /**
105
144
  * The `scanDevices()` method initializes a new network scan and available networks.
106
145
  *
107
146
  * :::info
108
- *
109
147
  * Use `sos.management.supports('WIFI_SCAN')` to check if the device supports scanning for devices.
110
- *
111
148
  * :::
112
149
  *
113
- * @throws If the Wi-Fi state is not in the `client` state.
150
+ * @throws Error If the Wi-Fi state is not in the `client` state.
114
151
  */
115
152
  scanDevices(): Promise<IScannedDevice[]>;
116
153
  /**
@@ -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,KAAK,CAAC,YAAY;QACxB,MAAM,IAAI,CAAC,WAAW,CAAC;YACtB,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;SAC/B,CAAC,CAAC;IACJ,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,WAAW;QACvB,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC;YAClD,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC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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
+ }