@signageos/front-applet 8.0.2 → 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.
- package/dist/bundle.js +5 -5
- package/dist/bundle.js.map +1 -1
- package/docs/fpath/index.md +1 -1
- package/docs/sos/browser.md +27 -17
- package/docs/sos/command.md +21 -9
- package/docs/sos/debug.md +17 -0
- package/docs/sos/deviceInfo.md +26 -0
- package/docs/sos/display.md +17 -0
- package/docs/sos/fileSystem.md +62 -1
- package/docs/sos/hardware/index.md +36 -1
- package/docs/sos/hardware/led.md +11 -0
- package/docs/sos/index.md +14 -12
- package/docs/sos/input.md +13 -0
- package/docs/sos/monitors.md +16 -1
- package/docs/sos/native/mdc.md +0 -9
- package/docs/sos/offline/index.md +0 -14
- package/docs/sos/osd.md +15 -0
- package/docs/sos/proofOfPlay.md +14 -21
- package/docs/sos/sync.md +3 -17
- package/docs/sos_management/audio.md +14 -1
- package/docs/sos_management/firmware.md +26 -0
- package/docs/sos_management/index.md +1 -1
- package/docs/sos_management/network.md +3 -3
- package/docs/sos_management/package.md +7 -16
- package/docs/sos_management/power.md +154 -1
- package/docs/sos_management/proxy.md +25 -0
- package/docs/sos_management/remoteControl.md +36 -0
- package/docs/sos_management/screen.md +35 -20
- package/docs/sos_management/time.md +45 -5
- package/docs/sos_management/wifi.md +82 -18
- package/es6/FrontApplet/DeviceInfo/IDeviceInfo.d.ts +1 -0
- package/es6/FrontApplet/FileSystem/FileSystem.d.ts +9 -0
- package/es6/FrontApplet/FileSystem/FileSystem.js +13 -0
- package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
- package/es6/FrontApplet/FileSystem/IFileSystem.d.ts +1 -0
- package/es6/FrontApplet/FrontApplet.d.ts +8 -2
- package/es6/FrontApplet/FrontApplet.js +8 -2
- package/es6/FrontApplet/FrontApplet.js.map +1 -1
- package/es6/FrontApplet/Management/Firmware/Firmware.d.ts +14 -0
- package/es6/FrontApplet/Management/Firmware/Firmware.js +8 -0
- package/es6/FrontApplet/Management/Firmware/Firmware.js.map +1 -1
- package/es6/FrontApplet/Management/Package/Package.d.ts +0 -8
- package/es6/FrontApplet/Management/Package/Package.js +0 -8
- package/es6/FrontApplet/Management/Package/Package.js.map +1 -1
- package/es6/FrontApplet/Management/Power/IPower.d.ts +35 -0
- package/es6/FrontApplet/Management/Power/IPower.js +25 -0
- package/es6/FrontApplet/Management/Power/IPower.js.map +1 -1
- package/es6/FrontApplet/Management/Power/Power.d.ts +80 -2
- package/es6/FrontApplet/Management/Power/Power.js +125 -1
- package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
- package/es6/FrontApplet/Management/Power/PowerHelper.d.ts +3 -0
- package/es6/FrontApplet/Management/Power/PowerHelper.js +12 -0
- package/es6/FrontApplet/Management/Power/PowerHelper.js.map +1 -0
- package/es6/FrontApplet/Management/Proxy/Proxy.d.ts +13 -0
- package/es6/FrontApplet/Management/Proxy/Proxy.js +13 -0
- package/es6/FrontApplet/Management/Proxy/Proxy.js.map +1 -1
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.d.ts +18 -0
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js +18 -0
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js.map +1 -1
- package/es6/FrontApplet/Management/Screen/IScreen.d.ts +5 -0
- package/es6/FrontApplet/Management/Screen/Screen.d.ts +18 -2
- package/es6/FrontApplet/Management/Screen/Screen.js +32 -23
- package/es6/FrontApplet/Management/Screen/Screen.js.map +1 -1
- package/es6/FrontApplet/Management/Time/Time.d.ts +15 -3
- package/es6/FrontApplet/Management/Time/Time.js +9 -0
- package/es6/FrontApplet/Management/Time/Time.js.map +1 -1
- package/es6/FrontApplet/Management/Wifi/IWifi.d.ts +3 -0
- package/es6/FrontApplet/Management/Wifi/IWifi.js +1 -0
- package/es6/FrontApplet/Management/Wifi/IWifi.js.map +1 -1
- package/es6/FrontApplet/Management/Wifi/Wifi.d.ts +56 -19
- package/es6/FrontApplet/Management/Wifi/Wifi.js +59 -20
- package/es6/FrontApplet/Management/Wifi/Wifi.js.map +1 -1
- package/es6/FrontApplet/Monitors/Monitors.d.ts +1 -1
- package/es6/FrontApplet/Monitors/Monitors.js +1 -1
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.d.ts +0 -10
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js +0 -10
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js.map +1 -1
- package/es6/Monitoring/DeviceInfo/deviceInfoCommands.d.ts +29 -0
- package/es6/Monitoring/DeviceInfo/deviceInfoCommands.js +10 -0
- package/es6/Monitoring/DeviceInfo/deviceInfoCommands.js.map +1 -0
- package/es6/Monitoring/DeviceInfo/handleDeviceInfoRequests.d.ts +5 -0
- package/es6/Monitoring/DeviceInfo/handleDeviceInfoRequests.js +30 -0
- package/es6/Monitoring/DeviceInfo/handleDeviceInfoRequests.js.map +1 -0
- package/es6/Monitoring/FileSystem/fileSystemCommands.d.ts +21 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.js +5 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.js.map +1 -1
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.js +14 -0
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.js.map +1 -1
- package/es6/Monitoring/Management/Power/handlePowerRequests.js +27 -0
- package/es6/Monitoring/Management/Power/handlePowerRequests.js.map +1 -1
- package/es6/Monitoring/Management/Power/powerCommands.d.ts +41 -1
- package/es6/Monitoring/Management/Power/powerCommands.js +9 -1
- package/es6/Monitoring/Management/Power/powerCommands.js.map +1 -1
- package/es6/Monitoring/Management/Screen/handleScreenRequests.js +3 -1
- package/es6/Monitoring/Management/Screen/handleScreenRequests.js.map +1 -1
- package/es6/Monitoring/Management/Screen/screenCommands.d.ts +2 -0
- package/es6/Monitoring/Management/Screen/screenCommands.js.map +1 -1
- package/es6/Monitoring/Monitoring.js +2 -0
- package/es6/Monitoring/Monitoring.js.map +1 -1
- package/es6/fpath.d.ts +1 -1
- package/es6/fpath.js +1 -1
- package/package.json +1 -1
|
@@ -157,28 +157,37 @@ class Screen {
|
|
|
157
157
|
});
|
|
158
158
|
return screenBrightness;
|
|
159
159
|
}
|
|
160
|
-
/**
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
uploadBaseUrl
|
|
180
|
-
|
|
181
|
-
|
|
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;YAC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O,IAAI,CAAC,gBAAgB,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC;IAC7C,CAAC;IAEO,gBAAgB;QACvB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC3B,CAAC;CACD;AAhQD,yBAgQC"}
|
|
@@ -19,11 +19,14 @@ export default class Time implements ITime {
|
|
|
19
19
|
/** @deprecated Use `setManual(dateTime, timezone)` instead. */
|
|
20
20
|
setManual(currentDate: Date, timezone: string): Promise<void>;
|
|
21
21
|
/**
|
|
22
|
-
* The `setManual()` method sets the system time and the system timezone.
|
|
22
|
+
* The `setManual()` method sets the system time and the system timezone and disables NTP server settings.
|
|
23
23
|
*
|
|
24
|
-
* :::warning
|
|
24
|
+
* :::warning Setting NTP server and timezone has side effects
|
|
25
25
|
*
|
|
26
|
-
*
|
|
26
|
+
* - **Tizen**: After calling this API, display Reboots!
|
|
27
|
+
* Tizen has limited set of available timezones. Read more here.
|
|
28
|
+
* - **RaspberryPi**: After calling this API, RPi Reboots backend server which can take up to 60 seconds! During the reboot no JS API is
|
|
29
|
+
* available. **Always wait for Promise resolution.**
|
|
27
30
|
*
|
|
28
31
|
* :::
|
|
29
32
|
*
|
|
@@ -36,6 +39,15 @@ export default class Time implements ITime {
|
|
|
36
39
|
/**
|
|
37
40
|
* The `setNTP()` method sets the NTP server and the system timezone.
|
|
38
41
|
*
|
|
42
|
+
* :::warning Setting NTP server and timezone has side effects
|
|
43
|
+
*
|
|
44
|
+
* - **Tizen / WebOS**: After calling this API, display Reboots!
|
|
45
|
+
* Tizen has limited set of available timezones. Read more here.
|
|
46
|
+
* - **RaspberryPi**: After calling this API, RPi Reboots backend server which can take up to 60 seconds! During the reboot no JS API is
|
|
47
|
+
* available. **Always wait for Promise resolution.**
|
|
48
|
+
*
|
|
49
|
+
* :::
|
|
50
|
+
*
|
|
39
51
|
* @param ntpServer The NTP server to set.
|
|
40
52
|
* @param timezone The timezone to set.
|
|
41
53
|
*
|
|
@@ -51,6 +51,15 @@ class Time {
|
|
|
51
51
|
/**
|
|
52
52
|
* The `setNTP()` method sets the NTP server and the system timezone.
|
|
53
53
|
*
|
|
54
|
+
* :::warning Setting NTP server and timezone has side effects
|
|
55
|
+
*
|
|
56
|
+
* - **Tizen / WebOS**: After calling this API, display Reboots!
|
|
57
|
+
* Tizen has limited set of available timezones. Read more here.
|
|
58
|
+
* - **RaspberryPi**: After calling this API, RPi Reboots backend server which can take up to 60 seconds! During the reboot no JS API is
|
|
59
|
+
* available. **Always wait for Promise resolution.**
|
|
60
|
+
*
|
|
61
|
+
* :::
|
|
62
|
+
*
|
|
54
63
|
* @param ntpServer The NTP server to set.
|
|
55
64
|
* @param timezone The timezone to set.
|
|
56
65
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Time.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Time/Time.ts"],"names":[],"mappings":";;;;;AACA,uEAA+C;AAC/C,mCAA+D;AAE/D,+IAA+I;AAC/I;;GAEG;AACH,MAAqB,IAAI;IAGf;IACA;IAHT,gBAAgB;IAChB,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;IACpC,CAAC;IAEJ;;;;OAIG;IACI,KAAK,CAAC,GAAG;QACf,MAAM,EAAE,uBAAuB,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC;YAC1D,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,gCAAgC,CAAC;SACvD,CAAC,CAAC;QAEH,OAAO,uBAAuB,CAAC;IAChC,CAAC;IAED,+DAA+D;IACxD,GAAG,CAAC,WAAiB,EAAE,QAAgB;QAC7C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;
|
|
1
|
+
{"version":3,"file":"Time.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Time/Time.ts"],"names":[],"mappings":";;;;;AACA,uEAA+C;AAC/C,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MAAM,CAAC,SAAiB,EAAE,QAAgB;QACtD,IAAA,kBAAQ,EAAC,EAAE,SAAS,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC;QAC5C,IAAA,kBAAQ,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC;QAC3C,MAAM,IAAI,CAAC,WAAW,CAAC;YACtB,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,4BAA4B,CAAC;YACnD,SAAS;YACT,QAAQ;SACR,CAAC,CAAC;IACJ,CAAC;IAEO,UAAU,CAAC,IAAY;QAC9B,OAAO,IAAI,CAAC,aAAa,GAAG,GAAG,GAAG,IAAI,CAAC;IACxC,CAAC;CACD;AA/FD,uBA+FC"}
|
|
@@ -21,9 +21,12 @@ export interface IScannedDevice {
|
|
|
21
21
|
ssid: string;
|
|
22
22
|
encrypted: boolean;
|
|
23
23
|
}
|
|
24
|
+
export type WifiEncryptionType = 'OPEN' | 'WEP' | 'WPA2' | 'WPA2_WPA_MIXED' | '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
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IWifi.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Wifi/IWifi.ts"],"names":[],"mappings":";;;
|
|
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
|
|
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
|
|
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 `
|
|
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 `
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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 `
|
|
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 `
|
|
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
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
|
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;;;;;OA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gBAAgB,CAAC,CAAC;YAC5D,KAAK,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,sBAAS,CAAC,uBAAuB,CAAC,CAAC;YACnE,KAAK,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,sBAAS,CAAC,mBAAmB,CAAC,CAAC;YAC/D,KAAK,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,sBAAS,CAAC,UAAU,CAAC,CAAC;YACtD,KAAK,IAAI,CAAC,UAAU,CAAC,QAAQ,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import IPostMessage from '../IPostMessage';
|
|
2
2
|
import IMonitor, { IConnectedMonitor } from './IMonitor';
|
|
3
3
|
/**
|
|
4
|
-
* The `sos.
|
|
4
|
+
* The `sos.monitors` API groups together methods for providing information about monitors connected to the device.
|
|
5
5
|
*/
|
|
6
6
|
declare class Monitors implements IMonitor {
|
|
7
7
|
private messagePrefix;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/**
|
|
4
|
-
* The `sos.
|
|
4
|
+
* The `sos.monitors` API groups together methods for providing information about monitors connected to the device.
|
|
5
5
|
*/
|
|
6
6
|
class Monitors {
|
|
7
7
|
messagePrefix;
|
|
@@ -11,16 +11,6 @@ export default class ProofOfPlay implements IProofOfPlay {
|
|
|
11
11
|
*
|
|
12
12
|
* @since 5.5.1
|
|
13
13
|
*
|
|
14
|
-
* @example
|
|
15
|
-
* await sos.proofOfPlay.recordItemPlayed({
|
|
16
|
-
* name: 'generic-brand-christmas-coffee-ad',
|
|
17
|
-
* customId: 'dBE43bFB3312VFfvd34bgGHJVV334cd2',
|
|
18
|
-
* type: 'video',
|
|
19
|
-
* tags: ['generic-brand', 'christmas'],
|
|
20
|
-
* fileName: 'coffee.mp4',
|
|
21
|
-
* playbackSuccess: false,
|
|
22
|
-
* errorMessage: 'Unsupported framerate 60fps',
|
|
23
|
-
* });
|
|
24
14
|
*/
|
|
25
15
|
recordItemPlayed(options: IRecordItemOptions): Promise<void>;
|
|
26
16
|
}
|
|
@@ -17,16 +17,6 @@ class ProofOfPlay {
|
|
|
17
17
|
*
|
|
18
18
|
* @since 5.5.1
|
|
19
19
|
*
|
|
20
|
-
* @example
|
|
21
|
-
* await sos.proofOfPlay.recordItemPlayed({
|
|
22
|
-
* name: 'generic-brand-christmas-coffee-ad',
|
|
23
|
-
* customId: 'dBE43bFB3312VFfvd34bgGHJVV334cd2',
|
|
24
|
-
* type: 'video',
|
|
25
|
-
* tags: ['generic-brand', 'christmas'],
|
|
26
|
-
* fileName: 'coffee.mp4',
|
|
27
|
-
* playbackSuccess: false,
|
|
28
|
-
* errorMessage: 'Unsupported framerate 60fps',
|
|
29
|
-
* });
|
|
30
20
|
*/
|
|
31
21
|
async recordItemPlayed(options) {
|
|
32
22
|
const { name, customId, type, tags, fileName, playbackSuccess, errorMessage } = options;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProofOfPlay.js","sourceRoot":"","sources":["../../../src/FrontApplet/ProofOfPlay/ProofOfPlay.ts"],"names":[],"mappings":";;;;;AAEA,oEAA4C;AAC5C,wEAAgD;AAGhD,MAAqB,WAAW;IAE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Q,EAAE,IAAI;YACd,QAAQ;YACR,QAAQ,EAAE,IAAI;YACd,QAAQ,EAAE,IAAI;YACd,QAAQ;YACR,eAAe;YACf,YAAY;SACZ,CAAC,CAAC;IACJ,CAAC;CACD;AAhCD,8BAgCC"}
|
|
@@ -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"}
|