@signageos/front-applet 7.2.0 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +8 -4
- package/dist/bundle.js.map +1 -1
- package/docs/fpath/index.md +316 -0
- package/docs/index.md +19 -85
- package/docs/sos/browser.md +210 -0
- package/docs/sos/command.md +68 -0
- package/docs/sos/debug.md +25 -0
- package/docs/sos/deviceInfo.md +49 -0
- package/docs/sos/display.md +21 -0
- package/docs/sos/fileSystem.md +594 -0
- package/docs/sos/hardware/barcodeScanner.md +40 -0
- package/docs/sos/hardware/index.md +64 -0
- package/docs/sos/hardware/led.md +14 -0
- package/docs/sos/index.md +82 -0
- package/docs/sos/input.md +73 -0
- package/docs/sos/monitors.md +21 -0
- package/docs/sos/native/index.md +5 -0
- package/docs/sos/native/mdc.md +240 -0
- package/docs/sos/offline/cache.md +183 -0
- package/docs/sos/offline/index.md +188 -0
- package/docs/sos/osd.md +13 -0
- package/docs/sos/proofOfPlay.md +37 -0
- package/docs/sos/stream.md +960 -0
- package/docs/sos/sync.md +298 -0
- package/docs/sos/video.md +285 -0
- package/docs/sos_management/app.md +102 -0
- package/docs/sos_management/audio.md +29 -0
- package/docs/sos_management/debug.md +33 -0
- package/docs/sos_management/firmware.md +86 -0
- package/docs/sos_management/index.md +212 -0
- package/docs/sos_management/network.md +197 -0
- package/docs/sos_management/os.md +54 -0
- package/docs/sos_management/package.md +33 -0
- package/docs/sos_management/power.md +136 -0
- package/docs/sos_management/proxy.md +41 -0
- package/docs/sos_management/remoteControl.md +72 -0
- package/docs/sos_management/screen.md +198 -0
- package/docs/sos_management/security.md +47 -0
- package/docs/sos_management/time.md +101 -0
- package/docs/sos_management/wifi.md +366 -0
- package/es6/FrontApplet/Browser/Browser.d.ts +61 -8
- package/es6/FrontApplet/Browser/Browser.js +91 -39
- package/es6/FrontApplet/Browser/Browser.js.map +1 -1
- package/es6/FrontApplet/Browser/events.js +2 -2
- package/es6/FrontApplet/Browser/events.js.map +1 -1
- package/es6/FrontApplet/Command/Command.d.ts +37 -3
- package/es6/FrontApplet/Command/Command.js +49 -20
- package/es6/FrontApplet/Command/Command.js.map +1 -1
- package/es6/FrontApplet/Command/ICommandEvent.d.ts +6 -2
- package/es6/FrontApplet/Connect/Connect.d.ts +3 -0
- package/es6/FrontApplet/Connect/Connect.js +55 -7
- package/es6/FrontApplet/Connect/Connect.js.map +1 -1
- package/es6/FrontApplet/Connect/IConnectMessage.d.ts +1 -1
- package/es6/FrontApplet/Debug/Debug.d.ts +15 -1
- package/es6/FrontApplet/Debug/Debug.js +27 -17
- package/es6/FrontApplet/Debug/Debug.js.map +1 -1
- package/es6/FrontApplet/Debug/debugDecorator.d.ts +3 -3
- package/es6/FrontApplet/Debug/debugDecorator.js +13 -7
- package/es6/FrontApplet/Debug/debugDecorator.js.map +1 -1
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.d.ts +23 -0
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js +36 -27
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js.map +1 -1
- package/es6/FrontApplet/Dimensions/coordinationsHelper.js +1 -2
- package/es6/FrontApplet/Dimensions/coordinationsHelper.js.map +1 -1
- package/es6/FrontApplet/Display/Display.d.ts +25 -3
- package/es6/FrontApplet/Display/Display.js +35 -19
- package/es6/FrontApplet/Display/Display.js.map +1 -1
- package/es6/FrontApplet/Display/IDisplay.d.ts +3 -1
- package/es6/FrontApplet/Error/AppletCommandError.js +12 -3
- package/es6/FrontApplet/Error/AppletCommandError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletError.js +10 -2
- package/es6/FrontApplet/Error/AppletError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletHardwareError.js +12 -3
- package/es6/FrontApplet/Error/AppletHardwareError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletOfflineCacheError.js +10 -2
- package/es6/FrontApplet/Error/AppletOfflineCacheError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletResourcesError.js +12 -3
- package/es6/FrontApplet/Error/AppletResourcesError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletSecurityError.js +12 -3
- package/es6/FrontApplet/Error/AppletSecurityError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletStreamError.js +10 -2
- package/es6/FrontApplet/Error/AppletStreamError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletVideoError.js +12 -3
- package/es6/FrontApplet/Error/AppletVideoError.js.map +1 -1
- package/es6/FrontApplet/Error/ErrorCodesMessages.js +4 -1
- package/es6/FrontApplet/Error/ErrorCodesMessages.js.map +1 -1
- package/es6/FrontApplet/Error/ErrorSuggestions.js +1 -0
- package/es6/FrontApplet/Error/ErrorSuggestions.js.map +1 -1
- package/es6/FrontApplet/Error/FileNotFoundError.js +10 -2
- package/es6/FrontApplet/Error/FileNotFoundError.js.map +1 -1
- package/es6/FrontApplet/Error/SosError.js +4 -0
- package/es6/FrontApplet/Error/SosError.js.map +1 -1
- package/es6/FrontApplet/Error/errorHelper.js +5 -6
- package/es6/FrontApplet/Error/errorHelper.js.map +1 -1
- package/es6/FrontApplet/Exchange/Exchange.js +7 -14
- package/es6/FrontApplet/Exchange/Exchange.js.map +1 -1
- package/es6/FrontApplet/FileSystem/FileSystem.d.ts +156 -1
- package/es6/FrontApplet/FileSystem/FileSystem.js +316 -193
- package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
- package/es6/FrontApplet/FileSystem/HashAlgorithm.d.ts +2 -0
- package/es6/FrontApplet/{Stream/streamListeners.js → FileSystem/HashAlgorithm.js} +1 -1
- package/es6/FrontApplet/FileSystem/HashAlgorithm.js.map +1 -0
- package/es6/FrontApplet/Font/fontFaceGenerator.js.map +1 -1
- package/es6/FrontApplet/FrontApplet.d.ts +55 -4
- package/es6/FrontApplet/FrontApplet.js +124 -47
- package/es6/FrontApplet/FrontApplet.js.map +1 -1
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.d.ts +2 -0
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js +35 -54
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js.map +1 -1
- package/es6/FrontApplet/Hardware/Hardware.d.ts +16 -2
- package/es6/FrontApplet/Hardware/Hardware.js +31 -19
- package/es6/FrontApplet/Hardware/Hardware.js.map +1 -1
- package/es6/FrontApplet/Hardware/IHardware.d.ts +2 -2
- package/es6/FrontApplet/Hardware/ISerialPort.d.ts +16 -0
- package/es6/FrontApplet/Hardware/ISerialPortOptions.js +1 -1
- package/es6/FrontApplet/Hardware/ISerialPortOptions.js.map +1 -1
- package/es6/FrontApplet/Hardware/Led/Led.d.ts +8 -0
- package/es6/FrontApplet/Hardware/Led/Led.js +20 -18
- package/es6/FrontApplet/Hardware/Led/Led.js.map +1 -1
- package/es6/FrontApplet/Hardware/SerialPort.d.ts +1 -1
- package/es6/FrontApplet/Hardware/SerialPort.js +15 -23
- package/es6/FrontApplet/Hardware/SerialPort.js.map +1 -1
- package/es6/FrontApplet/Hash/generator.js +1 -2
- package/es6/FrontApplet/Hash/generator.js.map +1 -1
- package/es6/FrontApplet/Iframe/Iframe.d.ts +9 -8
- package/es6/FrontApplet/Iframe/Iframe.js +10 -0
- package/es6/FrontApplet/Iframe/Iframe.js.map +1 -1
- package/es6/FrontApplet/Input/IInput.d.ts +1 -2
- package/es6/FrontApplet/Input/IKeyUpEvent.d.ts +32 -2
- package/es6/FrontApplet/Input/IKeyUpEvent.js +32 -0
- package/es6/FrontApplet/Input/IKeyUpEvent.js.map +1 -1
- package/es6/FrontApplet/Input/Input.d.ts +19 -3
- package/es6/FrontApplet/Input/Input.js +43 -22
- package/es6/FrontApplet/Input/Input.js.map +1 -1
- package/es6/FrontApplet/Management/App/App.d.ts +48 -10
- package/es6/FrontApplet/Management/App/App.js +45 -30
- package/es6/FrontApplet/Management/App/App.js.map +1 -1
- package/es6/FrontApplet/Management/App/IApp.d.ts +3 -1
- package/es6/FrontApplet/Management/Audio/Audio.d.ts +16 -0
- package/es6/FrontApplet/Management/Audio/Audio.js +30 -22
- package/es6/FrontApplet/Management/Audio/Audio.js.map +1 -1
- package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.d.ts +4 -0
- package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.js +15 -22
- package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/AutoRecovery/IAutoRecovery.js +4 -1
- package/es6/FrontApplet/Management/AutoRecovery/IAutoRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/Debug/Debug.d.ts +19 -0
- package/es6/FrontApplet/Management/Debug/Debug.js +37 -30
- package/es6/FrontApplet/Management/Debug/Debug.js.map +1 -1
- package/es6/FrontApplet/Management/Firmware/Firmware.d.ts +37 -10
- package/es6/FrontApplet/Management/Firmware/Firmware.js +34 -30
- package/es6/FrontApplet/Management/Firmware/Firmware.js.map +1 -1
- package/es6/FrontApplet/Management/Firmware/IFirmware.d.ts +1 -2
- package/es6/FrontApplet/Management/IManagement.d.ts +3 -1
- package/es6/FrontApplet/Management/Management.d.ts +106 -15
- package/es6/FrontApplet/Management/Management.js +191 -113
- package/es6/FrontApplet/Management/Management.js.map +1 -1
- package/es6/FrontApplet/Management/Network/INetworkInfo.d.ts +1 -1
- package/es6/FrontApplet/Management/Network/Network.d.ts +56 -8
- package/es6/FrontApplet/Management/Network/Network.js +85 -67
- package/es6/FrontApplet/Management/Network/Network.js.map +1 -1
- package/es6/FrontApplet/Management/OS/OS.d.ts +20 -0
- package/es6/FrontApplet/Management/OS/OS.js +34 -27
- package/es6/FrontApplet/Management/OS/OS.js.map +1 -1
- package/es6/FrontApplet/Management/Package/Package.d.ts +20 -0
- package/es6/FrontApplet/Management/Package/Package.js +37 -22
- package/es6/FrontApplet/Management/Package/Package.js.map +1 -1
- package/es6/FrontApplet/Management/PeerRecovery/IPeerRecovery.js +4 -1
- package/es6/FrontApplet/Management/PeerRecovery/IPeerRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.d.ts +4 -0
- package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.js +15 -22
- package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/Power/Power.d.ts +64 -0
- package/es6/FrontApplet/Management/Power/Power.js +160 -115
- package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
- package/es6/FrontApplet/Management/Proxy/Proxy.d.ts +21 -0
- package/es6/FrontApplet/Management/Proxy/Proxy.js +41 -35
- package/es6/FrontApplet/Management/Proxy/Proxy.js.map +1 -1
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.d.ts +43 -0
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js +63 -39
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js.map +1 -1
- package/es6/FrontApplet/Management/Screen/Screen.d.ts +127 -0
- package/es6/FrontApplet/Management/Screen/Screen.js +197 -89
- package/es6/FrontApplet/Management/Screen/Screen.js.map +1 -1
- package/es6/FrontApplet/Management/Security/Security.d.ts +20 -5
- package/es6/FrontApplet/Management/Security/Security.js +33 -31
- package/es6/FrontApplet/Management/Security/Security.js.map +1 -1
- package/es6/FrontApplet/Management/Time/Time.d.ts +31 -5
- package/es6/FrontApplet/Management/Time/Time.js +49 -40
- package/es6/FrontApplet/Management/Time/Time.js.map +1 -1
- package/es6/FrontApplet/Management/Wifi/IWifiEvent.d.ts +18 -0
- package/es6/FrontApplet/Management/Wifi/IWifiEvent.js +19 -1
- package/es6/FrontApplet/Management/Wifi/IWifiEvent.js.map +1 -1
- package/es6/FrontApplet/Management/Wifi/Wifi.d.ts +108 -7
- package/es6/FrontApplet/Management/Wifi/Wifi.js +162 -86
- package/es6/FrontApplet/Management/Wifi/Wifi.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/DeviceHelper.js +2 -2
- package/es6/FrontApplet/Management/helpers/DeviceHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/SecurityHelper.js +8 -6
- package/es6/FrontApplet/Management/helpers/SecurityHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/TimerHelper.js +2 -2
- package/es6/FrontApplet/Management/helpers/TimerHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/UpgradeHelper.js +35 -3
- package/es6/FrontApplet/Management/helpers/UpgradeHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/VideoHelper.js +1 -1
- package/es6/FrontApplet/Management/helpers/VideoHelper.js.map +1 -1
- package/es6/FrontApplet/Monitors/Monitors.d.ts +9 -0
- package/es6/FrontApplet/Monitors/Monitors.js +16 -16
- package/es6/FrontApplet/Monitors/Monitors.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/CodesMDC.js +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/CodesMDC.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.d.ts +51 -2
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.js +79 -38
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/NativeCommands.d.ts +4 -0
- package/es6/FrontApplet/NativeCommands/NativeCommands.js +12 -2
- package/es6/FrontApplet/NativeCommands/NativeCommands.js.map +1 -1
- package/es6/FrontApplet/OSD/OSD.d.ts +9 -0
- package/es6/FrontApplet/OSD/OSD.js +15 -15
- package/es6/FrontApplet/OSD/OSD.js.map +1 -1
- package/es6/FrontApplet/Offline/Cache/Cache.d.ts +91 -2
- package/es6/FrontApplet/Offline/Cache/Cache.js +192 -130
- package/es6/FrontApplet/Offline/Cache/Cache.js.map +1 -1
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.d.ts +1 -1
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.js +17 -25
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.js.map +1 -1
- package/es6/FrontApplet/Offline/Flags/IFlags.d.ts +4 -4
- package/es6/FrontApplet/Offline/IAddFont.d.ts +3 -1
- package/es6/FrontApplet/Offline/IAddFont.js.map +1 -1
- package/es6/FrontApplet/Offline/ISaveFile.js +5 -2
- package/es6/FrontApplet/Offline/ISaveFile.js.map +1 -1
- package/es6/FrontApplet/Offline/LoadFile/CssLoadFileController.js +2 -1
- package/es6/FrontApplet/Offline/LoadFile/CssLoadFileController.js.map +1 -1
- package/es6/FrontApplet/Offline/LoadFile/JavascriptLoadFileController.js +2 -1
- package/es6/FrontApplet/Offline/LoadFile/JavascriptLoadFileController.js.map +1 -1
- package/es6/FrontApplet/Offline/Offline.d.ts +75 -4
- package/es6/FrontApplet/Offline/Offline.js +116 -56
- package/es6/FrontApplet/Offline/Offline.js.map +1 -1
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.d.ts +19 -1
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js +41 -29
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js.map +1 -1
- package/es6/FrontApplet/Sensors/Proximity.d.ts +4 -3
- package/es6/FrontApplet/Sensors/Proximity.js +12 -4
- package/es6/FrontApplet/Sensors/Proximity.js.map +1 -1
- package/es6/FrontApplet/Sensors/Sensors.d.ts +2 -0
- package/es6/FrontApplet/Sensors/Sensors.js +9 -2
- package/es6/FrontApplet/Sensors/Sensors.js.map +1 -1
- package/es6/FrontApplet/Stream/IStream.d.ts +10 -10
- package/es6/FrontApplet/Stream/Stream.d.ts +130 -15
- package/es6/FrontApplet/Stream/Stream.js +229 -130
- package/es6/FrontApplet/Stream/Stream.js.map +1 -1
- package/es6/FrontApplet/Stream/StreamProtocol.js.map +1 -1
- package/es6/FrontApplet/Sync/Sync.d.ts +152 -6
- package/es6/FrontApplet/Sync/Sync.js +196 -112
- package/es6/FrontApplet/Sync/Sync.js.map +1 -1
- package/es6/FrontApplet/Sync/syncEvents.d.ts +3 -1
- package/es6/FrontApplet/Sync/syncMessages.js +1 -1
- package/es6/FrontApplet/Sync/syncMessages.js.map +1 -1
- package/es6/FrontApplet/Timing/Timing.d.ts +1 -0
- package/es6/FrontApplet/Timing/Timing.js +9 -2
- package/es6/FrontApplet/Timing/Timing.js.map +1 -1
- package/es6/FrontApplet/Timing/Triggers/ITimingTriggersMessage.d.ts +1 -1
- package/es6/FrontApplet/Timing/Triggers/Triggers.d.ts +9 -0
- package/es6/FrontApplet/Timing/Triggers/Triggers.js +16 -18
- package/es6/FrontApplet/Timing/Triggers/Triggers.js.map +1 -1
- package/es6/FrontApplet/Touch/Touch.d.ts +3 -0
- package/es6/FrontApplet/Touch/Touch.js +13 -3
- package/es6/FrontApplet/Touch/Touch.js.map +1 -1
- package/es6/FrontApplet/Validate/Validate.js +14 -11
- package/es6/FrontApplet/Validate/Validate.js.map +1 -1
- package/es6/FrontApplet/Validate/ValidateObjectInterface.js +7 -2
- package/es6/FrontApplet/Validate/ValidateObjectInterface.js.map +1 -1
- package/es6/FrontApplet/Video/IOptions.d.ts +8 -1
- package/es6/FrontApplet/Video/IVideo.d.ts +8 -8
- package/es6/FrontApplet/Video/IVideoEvent.js +3 -3
- package/es6/FrontApplet/Video/IVideoEvent.js.map +1 -1
- package/es6/FrontApplet/Video/Video.d.ts +84 -12
- package/es6/FrontApplet/Video/Video.js +161 -102
- package/es6/FrontApplet/Video/Video.js.map +1 -1
- package/es6/FrontApplet/createFrontApplet.js +5 -2
- package/es6/FrontApplet/createFrontApplet.js.map +1 -1
- package/es6/Monitoring/Display/handleDisplayRequests.d.ts +2 -2
- package/es6/Monitoring/Display/handleDisplayRequests.js +5 -15
- package/es6/Monitoring/Display/handleDisplayRequests.js.map +1 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.d.ts +10 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.js +3 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.js.map +1 -1
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.d.ts +2 -2
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.js +41 -45
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.js.map +1 -1
- package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.d.ts +2 -2
- package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.js +4 -14
- package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.js.map +1 -1
- package/es6/Monitoring/Management/App/handleApplicationRequests.d.ts +2 -2
- package/es6/Monitoring/Management/App/handleApplicationRequests.js +9 -19
- package/es6/Monitoring/Management/App/handleApplicationRequests.js.map +1 -1
- package/es6/Monitoring/Management/Audio/handleAudioRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Audio/handleAudioRequests.js +7 -17
- package/es6/Monitoring/Management/Audio/handleAudioRequests.js.map +1 -1
- package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.d.ts +2 -2
- package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.js +7 -17
- package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.js.map +1 -1
- package/es6/Monitoring/Management/Debug/handleDebugRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Debug/handleDebugRequests.js +9 -19
- package/es6/Monitoring/Management/Debug/handleDebugRequests.js.map +1 -1
- package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.js +11 -21
- package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.js.map +1 -1
- package/es6/Monitoring/Management/Os/managementOsRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Os/managementOsRequests.js +9 -19
- package/es6/Monitoring/Management/Os/managementOsRequests.js.map +1 -1
- package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.d.ts +2 -2
- package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.js +7 -17
- package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.js.map +1 -1
- package/es6/Monitoring/Management/Power/handlePowerRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Power/handlePowerRequests.js +19 -29
- package/es6/Monitoring/Management/Power/handlePowerRequests.js.map +1 -1
- package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.d.ts +2 -2
- package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.js +15 -25
- package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.js.map +1 -1
- package/es6/Monitoring/Management/Screen/handleScreenRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Screen/handleScreenRequests.js +19 -29
- package/es6/Monitoring/Management/Screen/handleScreenRequests.js.map +1 -1
- package/es6/Monitoring/Management/Security/handleSecurityCommands.d.ts +2 -2
- package/es6/Monitoring/Management/Security/handleSecurityCommands.js +9 -19
- package/es6/Monitoring/Management/Security/handleSecurityCommands.js.map +1 -1
- package/es6/Monitoring/Management/Time/handleTimeCommands.d.ts +2 -2
- package/es6/Monitoring/Management/Time/handleTimeCommands.js +9 -19
- package/es6/Monitoring/Management/Time/handleTimeCommands.js.map +1 -1
- package/es6/Monitoring/Management/handleManagementRequests.d.ts +2 -2
- package/es6/Monitoring/Management/handleManagementRequests.js +23 -33
- package/es6/Monitoring/Management/handleManagementRequests.js.map +1 -1
- package/es6/Monitoring/{Montoring.d.ts → Monitoring.d.ts} +1 -0
- package/es6/Monitoring/{Montoring.js → Monitoring.js} +12 -23
- package/es6/Monitoring/Monitoring.js.map +1 -0
- package/es6/Monitoring/NativeCommands/handleNativeCommands.d.ts +2 -2
- package/es6/Monitoring/NativeCommands/handleNativeCommands.js +5 -15
- package/es6/Monitoring/NativeCommands/handleNativeCommands.js.map +1 -1
- package/es6/Monitoring/OSD/handleOsdRequests.d.ts +2 -2
- package/es6/Monitoring/OSD/handleOsdRequests.js +5 -15
- package/es6/Monitoring/OSD/handleOsdRequests.js.map +1 -1
- package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.d.ts +2 -2
- package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.js +23 -33
- package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.js.map +1 -1
- package/es6/Monitoring/Video/handleVideoRequests.d.ts +2 -2
- package/es6/Monitoring/Video/handleVideoRequests.js +36 -9
- package/es6/Monitoring/Video/handleVideoRequests.js.map +1 -1
- package/es6/Monitoring/handleMonitoringRequests.d.ts +2 -2
- package/es6/Monitoring/handleMonitoringRequests.js +6 -16
- package/es6/Monitoring/handleMonitoringRequests.js.map +1 -1
- package/es6/Sensors/IButton.js +1 -1
- package/es6/Sensors/IButton.js.map +1 -1
- package/es6/Sensors/IRfidAntenna.js +1 -1
- package/es6/Sensors/IRfidAntenna.js.map +1 -1
- package/es6/Util/Console/enhancer.js +1 -2
- package/es6/Util/Console/enhancer.js.map +1 -1
- package/es6/bundle.d.ts +1 -1
- package/es6/bundle.js +6 -3
- package/es6/bundle.js.map +1 -1
- package/es6/fpath.js +34 -1
- package/es6/fpath.js.map +1 -1
- package/es6/utils/types.d.ts +1 -0
- package/es6/{FrontApplet/Input/IKeyUpEventListener.js → utils/types.js} +1 -1
- package/es6/utils/types.js.map +1 -0
- package/package.json +27 -25
- package/CHANGELOG.md +0 -484
- package/docs/README.md +0 -5
- package/docs/applet-basics.md +0 -272
- package/docs/content/js-applet-resources.md +0 -154
- package/docs/content/js-browser.md +0 -163
- package/docs/content/js-command.md +0 -154
- package/docs/content/js-debug.md +0 -36
- package/docs/content/js-device-info.md +0 -56
- package/docs/content/js-display.md +0 -56
- package/docs/content/js-file-system.md +0 -670
- package/docs/content/js-fonts.md +0 -115
- package/docs/content/js-hardware.md +0 -55
- package/docs/content/js-iframes.md +0 -66
- package/docs/content/js-input.md +0 -71
- package/docs/content/js-offline-cache-media-files.md +0 -257
- package/docs/content/js-offline-cache-simple-data.md +0 -129
- package/docs/content/js-osd.md +0 -32
- package/docs/content/js-proof-of-play.md +0 -60
- package/docs/content/js-sensors.md +0 -70
- package/docs/content/js-serial.md +0 -165
- package/docs/content/js-sync-playback.md +0 -384
- package/docs/content/js-video-inputs-internal-ports.md +0 -131
- package/docs/content/js-video-stream.md +0 -618
- package/docs/content/js-video.md +0 -232
- package/docs/management/js-management-application.md +0 -107
- package/docs/management/js-management-audio.md +0 -44
- package/docs/management/js-management-debug.md +0 -40
- package/docs/management/js-management-firmware.md +0 -93
- package/docs/management/js-management-management.md +0 -178
- package/docs/management/js-management-monitoring-commands.md +0 -107
- package/docs/management/js-management-monitors.md +0 -55
- package/docs/management/js-management-native-commands-mdc.md +0 -90
- package/docs/management/js-management-network.md +0 -223
- package/docs/management/js-management-os.md +0 -62
- package/docs/management/js-management-package.md +0 -48
- package/docs/management/js-management-power.md +0 -175
- package/docs/management/js-management-proxy.md +0 -81
- package/docs/management/js-management-remote-control.md +0 -58
- package/docs/management/js-management-screen.md +0 -225
- package/docs/management/js-management-security.md +0 -71
- package/docs/management/js-management-time.md +0 -161
- package/docs/management/js-management-wifi.md +0 -341
- package/es6/FrontApplet/Command/ICommandEventListener.d.ts +0 -6
- package/es6/FrontApplet/Command/ICommandEventListener.js +0 -3
- package/es6/FrontApplet/Command/ICommandEventListener.js.map +0 -1
- package/es6/FrontApplet/Input/IKeyUpEventListener.d.ts +0 -5
- package/es6/FrontApplet/Input/IKeyUpEventListener.js.map +0 -1
- package/es6/FrontApplet/Management/Firmware/FirmwareType.d.ts +0 -4
- package/es6/FrontApplet/Management/Firmware/FirmwareType.js +0 -9
- package/es6/FrontApplet/Management/Firmware/FirmwareType.js.map +0 -1
- package/es6/FrontApplet/Stream/streamListeners.d.ts +0 -10
- package/es6/FrontApplet/Stream/streamListeners.js.map +0 -1
- package/es6/FrontApplet/Video/IVideoEventListener.d.ts +0 -5
- package/es6/FrontApplet/Video/IVideoEventListener.js +0 -3
- package/es6/FrontApplet/Video/IVideoEventListener.js.map +0 -1
- package/es6/Monitoring/Montoring.js.map +0 -1
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
# fpath
|
|
2
|
+
|
|
3
|
+
fpath utility mirrors node path module, but accepts IFilePath type instead of strings.
|
|
4
|
+
|
|
5
|
+
Not implemented functions:
|
|
6
|
+
- format
|
|
7
|
+
- matchesGlob
|
|
8
|
+
- parse
|
|
9
|
+
- relative
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### path
|
|
14
|
+
|
|
15
|
+
Underlying path polyfill
|
|
16
|
+
|
|
17
|
+
```ts expandable
|
|
18
|
+
path: path.Path;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### sep
|
|
22
|
+
|
|
23
|
+
Separator used for joining path segments
|
|
24
|
+
|
|
25
|
+
```ts expandable
|
|
26
|
+
sep: string;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Methods
|
|
30
|
+
|
|
31
|
+
### basename()
|
|
32
|
+
|
|
33
|
+
Return the last portion of path, since it is not a valid path, a string is returned.
|
|
34
|
+
|
|
35
|
+
```ts expandable
|
|
36
|
+
basename(filePath: IFilePath, suffix?: string): string;
|
|
37
|
+
// show-more
|
|
38
|
+
interface IFilePath {
|
|
39
|
+
storageUnit: IStorageUnit;
|
|
40
|
+
filePath: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface IStorageUnit {
|
|
44
|
+
type: string;
|
|
45
|
+
capacity: number;
|
|
46
|
+
freeSpace: number;
|
|
47
|
+
usableSpace: number;
|
|
48
|
+
removable: boolean;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
#### Example
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
const path = { filePath: "images/picture.png", storageUnit: ... };
|
|
57
|
+
fpath.basename(path); // "picture.png"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
<Separator />
|
|
61
|
+
|
|
62
|
+
### concat()
|
|
63
|
+
|
|
64
|
+
Concatenate fp with paths without adding separator
|
|
65
|
+
|
|
66
|
+
```ts expandable
|
|
67
|
+
concat(filePath: IFilePath, ...paths: string[]): IFilePath;
|
|
68
|
+
// show-more
|
|
69
|
+
interface IFilePath {
|
|
70
|
+
storageUnit: IStorageUnit;
|
|
71
|
+
filePath: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface IStorageUnit {
|
|
75
|
+
type: string;
|
|
76
|
+
capacity: number;
|
|
77
|
+
freeSpace: number;
|
|
78
|
+
usableSpace: number;
|
|
79
|
+
removable: boolean;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
#### Example
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
const path = { filePath: "uploads/archive.tar", storageUnit: ... };
|
|
88
|
+
fpath.concat(path, "_extracted"); // { filePath: "uploads/archive.tar_extracted", storageUnit: ... }
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
<Separator />
|
|
92
|
+
|
|
93
|
+
### dirname()
|
|
94
|
+
|
|
95
|
+
Removes the last portion of path, returning the parent directory of the path. Ignores trailing slashes
|
|
96
|
+
|
|
97
|
+
```ts expandable
|
|
98
|
+
dirname(filePath: IFilePath): IFilePath;
|
|
99
|
+
// show-more
|
|
100
|
+
interface IFilePath {
|
|
101
|
+
storageUnit: IStorageUnit;
|
|
102
|
+
filePath: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface IStorageUnit {
|
|
106
|
+
type: string;
|
|
107
|
+
capacity: number;
|
|
108
|
+
freeSpace: number;
|
|
109
|
+
usableSpace: number;
|
|
110
|
+
removable: boolean;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
#### Example
|
|
116
|
+
|
|
117
|
+
```ts
|
|
118
|
+
const path = { filePath: "images/picture.png", storageUnit: ... };
|
|
119
|
+
fpath.dirname(path); // { filePath: "images", storageUnit: ... }
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
<Separator />
|
|
123
|
+
|
|
124
|
+
### extname()
|
|
125
|
+
|
|
126
|
+
Returns extension of the path, from the last period, including the period.
|
|
127
|
+
|
|
128
|
+
```ts expandable
|
|
129
|
+
extname(filePath: IFilePath): string;
|
|
130
|
+
// show-more
|
|
131
|
+
interface IFilePath {
|
|
132
|
+
storageUnit: IStorageUnit;
|
|
133
|
+
filePath: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
interface IStorageUnit {
|
|
137
|
+
type: string;
|
|
138
|
+
capacity: number;
|
|
139
|
+
freeSpace: number;
|
|
140
|
+
usableSpace: number;
|
|
141
|
+
removable: boolean;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
#### Example
|
|
147
|
+
|
|
148
|
+
```ts
|
|
149
|
+
const path = { filePath: "images/picture.png", storageUnit: ... };
|
|
150
|
+
fpath.dirname(path); // .png
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
<Separator />
|
|
154
|
+
|
|
155
|
+
### isAbsolute()
|
|
156
|
+
|
|
157
|
+
Always returns true, because all file paths are absolute
|
|
158
|
+
|
|
159
|
+
```ts expandable
|
|
160
|
+
isAbsolute(_: IFilePath): boolean;
|
|
161
|
+
// show-more
|
|
162
|
+
interface IFilePath {
|
|
163
|
+
storageUnit: IStorageUnit;
|
|
164
|
+
filePath: string;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
interface IStorageUnit {
|
|
168
|
+
type: string;
|
|
169
|
+
capacity: number;
|
|
170
|
+
freeSpace: number;
|
|
171
|
+
usableSpace: number;
|
|
172
|
+
removable: boolean;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
<Separator />
|
|
178
|
+
|
|
179
|
+
### join()
|
|
180
|
+
|
|
181
|
+
Returns new filePath with paths appended to it and normalized (resolved . and ..)
|
|
182
|
+
|
|
183
|
+
```ts expandable
|
|
184
|
+
join(filePath: IFilePath, ...paths: string[]): IFilePath;
|
|
185
|
+
// show-more
|
|
186
|
+
interface IFilePath {
|
|
187
|
+
storageUnit: IStorageUnit;
|
|
188
|
+
filePath: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
interface IStorageUnit {
|
|
192
|
+
type: string;
|
|
193
|
+
capacity: number;
|
|
194
|
+
freeSpace: number;
|
|
195
|
+
usableSpace: number;
|
|
196
|
+
removable: boolean;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
#### Example
|
|
202
|
+
|
|
203
|
+
```ts
|
|
204
|
+
const path = { filePath: "images", storageUnit: ... };
|
|
205
|
+
fpath.join(path, "racoons", ".", "picture.png"); // { filePath: "images/racoons/picture.png", storageUnit: ... }
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
<Separator />
|
|
209
|
+
|
|
210
|
+
### normalize()
|
|
211
|
+
|
|
212
|
+
Resolves . and .. in the path and removes multiple slashes
|
|
213
|
+
|
|
214
|
+
```ts expandable
|
|
215
|
+
normalize(filePath: IFilePath): IFilePath;
|
|
216
|
+
// show-more
|
|
217
|
+
interface IFilePath {
|
|
218
|
+
storageUnit: IStorageUnit;
|
|
219
|
+
filePath: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
interface IStorageUnit {
|
|
223
|
+
type: string;
|
|
224
|
+
capacity: number;
|
|
225
|
+
freeSpace: number;
|
|
226
|
+
usableSpace: number;
|
|
227
|
+
removable: boolean;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
#### Example
|
|
233
|
+
|
|
234
|
+
```ts
|
|
235
|
+
const path = { filePath: "images//test/../test2/./", storageUnit: ... };
|
|
236
|
+
fpath.normalize(path); // { filePath: "images/test2/", storageUnit: ... }
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
<Separator />
|
|
240
|
+
|
|
241
|
+
### resolve()
|
|
242
|
+
|
|
243
|
+
Same as fpath.join()
|
|
244
|
+
|
|
245
|
+
```ts expandable
|
|
246
|
+
resolve(filePath: IFilePath, ...paths: string[]): IFilePath;
|
|
247
|
+
// show-more
|
|
248
|
+
interface IFilePath {
|
|
249
|
+
storageUnit: IStorageUnit;
|
|
250
|
+
filePath: string;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
interface IStorageUnit {
|
|
254
|
+
type: string;
|
|
255
|
+
capacity: number;
|
|
256
|
+
freeSpace: number;
|
|
257
|
+
usableSpace: number;
|
|
258
|
+
removable: boolean;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
<Separator />
|
|
264
|
+
|
|
265
|
+
### safeJoin()
|
|
266
|
+
|
|
267
|
+
Similar to fpath.join, but resulting path will always be subdirectory of base
|
|
268
|
+
|
|
269
|
+
```ts expandable
|
|
270
|
+
safeJoin(base: IFilePath, ...paths: string[]): IFilePath;
|
|
271
|
+
// show-more
|
|
272
|
+
interface IFilePath {
|
|
273
|
+
storageUnit: IStorageUnit;
|
|
274
|
+
filePath: string;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
interface IStorageUnit {
|
|
278
|
+
type: string;
|
|
279
|
+
capacity: number;
|
|
280
|
+
freeSpace: number;
|
|
281
|
+
usableSpace: number;
|
|
282
|
+
removable: boolean;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
#### Example
|
|
288
|
+
|
|
289
|
+
```ts
|
|
290
|
+
const path = { filePath: "uploads/userA", storageUnit: ... };
|
|
291
|
+
fpath.safeJoin(path, "..", "userB", "picture.png"); // { filePath: "uploads/userA/userB/picture.png", storageUnit: ... }
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
<Separator />
|
|
295
|
+
|
|
296
|
+
### stringify()
|
|
297
|
+
|
|
298
|
+
Convert filePath to string, this string is not guaranteed to be unique and should be only used for debugging/logging
|
|
299
|
+
|
|
300
|
+
```ts expandable
|
|
301
|
+
stringify(filePath: IFilePath): string;
|
|
302
|
+
// show-more
|
|
303
|
+
interface IFilePath {
|
|
304
|
+
storageUnit: IStorageUnit;
|
|
305
|
+
filePath: string;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
interface IStorageUnit {
|
|
309
|
+
type: string;
|
|
310
|
+
capacity: number;
|
|
311
|
+
freeSpace: number;
|
|
312
|
+
usableSpace: number;
|
|
313
|
+
removable: boolean;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
```
|
package/docs/index.md
CHANGED
|
@@ -1,97 +1,31 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
3
|
-
author:
|
|
4
|
-
|
|
5
|
-
type: rest-api
|
|
6
|
-
tags:
|
|
7
|
-
- rest_api
|
|
8
|
-
- js_api
|
|
9
|
-
- api
|
|
10
|
-
description: "[Content JS API] General introduction to signageOS JS API"
|
|
2
|
+
title: Introduction
|
|
3
|
+
author: Alfonz Homolík
|
|
4
|
+
sidebar_position: 0
|
|
11
5
|
---
|
|
12
|
-
# Javascript SDK for Applet development
|
|
13
6
|
|
|
14
|
-
|
|
7
|
+
# Applet JS SDK
|
|
15
8
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
Applet JS SDK provides device's native features and functionalities with unified API for all supported platforms. This SDK is only usable
|
|
10
|
+
inside of [signageOS applets](https://docs.signageos.io/hc/en-us/articles/4405068855570-Introduction-to-Applets) and allows you to create
|
|
11
|
+
lightweight applets and deploy them on any device.
|
|
19
12
|
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
```ts
|
|
14
|
+
import sos from '@signageos/front-applet';
|
|
22
15
|
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
sos.onReady(async () => {
|
|
17
|
+
await sos.management.audio.setVolume(75);
|
|
18
|
+
});
|
|
19
|
+
```
|
|
25
20
|
|
|
26
|
-
##
|
|
21
|
+
## Getting started
|
|
27
22
|
|
|
28
|
-
|
|
23
|
+
The Getting started page summarizes key concept of applet development and will guide you through creating your first applet.
|
|
29
24
|
|
|
30
|
-
|
|
25
|
+
## Guides
|
|
31
26
|
|
|
32
|
-
|
|
33
|
-
| ------ | ----------- |
|
|
34
|
-
| [Applet Resources](content/js-applet-resources) | Pre-load necessary files required by your HTML5 player/Applet |
|
|
35
|
-
| [Browser](content/js-browser) | Opening managed web-browser on Android devices inc. whitelisting, blacklisting and other features |
|
|
36
|
-
| [Command](content/js-command) | Sending business or technical logs through signageOS in secured offline-ready way |
|
|
37
|
-
| [Debug](content/js-debug) | Start debug session |
|
|
38
|
-
| [Device Info](content/js-device-info) | Device-related informations |
|
|
39
|
-
| [Display](content/js-display) | Query features supported by the display |
|
|
40
|
-
| [File system](content/js-file-system) | Full-featured file system API including ZIP and folder management |
|
|
41
|
-
| [Fonts](content/js-fonts) | Make it easy to load additional fonts into SoC devices |
|
|
42
|
-
| [Hardware](content/js-hardware) | Hardware-specific APIs like LED lights on Philips 10BDL |
|
|
43
|
-
| [Inputs](content/js-input) | Controller inputs like IR remote unified under one API |
|
|
44
|
-
| [iFrames](content/js-iframes) | Using JS SDK in iFrames |
|
|
45
|
-
| [Proof of Play](content/js-proof-of-play) | Proof of Play API |
|
|
46
|
-
| [Sensors](content/js-sensors) | Using sensors and IoT devices in your application |
|
|
47
|
-
| [Serial Port](content/js-serial) | Control external devices via serial |
|
|
48
|
-
| [Synchronized playback](content/js-sync-playback) | API for creating synced playback and videowalls |
|
|
49
|
-
| [Video Inputs aka PiP](content/js-video-inputs-internal-ports) | Show HDMI/DP/VGA as a part of your content via PiP feature |
|
|
50
|
-
| [Video Playback](content/js-video) | Playing accelerated gapless videos via native video player |
|
|
51
|
-
| [Video Streams](content/js-video-stream) | Playing video streams (RTSP, HLS, UDP) via native video player
|
|
27
|
+
In Guides section contains articles which describe how to use the SDK with explanation and examples.
|
|
52
28
|
|
|
53
|
-
##
|
|
29
|
+
## API Reference
|
|
54
30
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
:::tip
|
|
58
|
-
For **Device Management** we strongly recommend using REST APIs. [See the REST API documentation here](https://developers.signageos.io/api/).
|
|
59
|
-
:::
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
| Domain | Description |
|
|
63
|
-
| ------ | ----------- |
|
|
64
|
-
| [Application](management/js-management-application) | Get application version and upgrade application from remote location |
|
|
65
|
-
| [Audio](management/js-management-audio) | Control system volume level |
|
|
66
|
-
| [Debug](management/js-management-debug) | Enable/disable debug mode |
|
|
67
|
-
| [Firmware](management/js-management-firmware) | Get FW version and upgrade FW from remote location |
|
|
68
|
-
| [Management](management/js-management-management) | Information about the device and power action like Reboot, Restart,.. |
|
|
69
|
-
| [Monitors](management/js-management-monitors) | Information about monitors |
|
|
70
|
-
| [Network](management/js-management-network) | Manage network settings |
|
|
71
|
-
| [OS](management/js-management-os) | Get system information like CPU and Memory usage |
|
|
72
|
-
| [Package](management/js-management-package) | Install and manage packages |
|
|
73
|
-
| [Power](management/js-management-power) | Manage display power - timers, restart and reboot |
|
|
74
|
-
| [Proxy](management/js-management-proxy) | Manage display network proxy setup |
|
|
75
|
-
| [IR Remote Control](management/js-management-remote-control) | Manage IR Remote control functionality |
|
|
76
|
-
| [Screen](management/js-management-screen) | Manage brightness, orientation and resolution, display on/off |
|
|
77
|
-
| [Security](management/js-management-security) | Control system security (PIN code) |
|
|
78
|
-
| [Time](management/js-management-time) | Set time, timezone and get current settings |
|
|
79
|
-
| [Wi-Fi](management/js-management-wifi) | Manage Wi-Fi
|
|
80
|
-
|
|
81
|
-
# Testing Framework SDK
|
|
82
|
-
|
|
83
|
-
Write and then run **automated tests** for your applet on physical devices, streamlining your development and QA efforts.
|
|
84
|
-
|
|
85
|
-
See full [documentation on GitHub](https://github.com/signageos/test-framework)
|
|
86
|
-
|
|
87
|
-
# Node.JS SDK
|
|
88
|
-
|
|
89
|
-
Library which allows you to fully manage signageOS applets, devices, management & monitoring using Node.JS and REST API.
|
|
90
|
-
|
|
91
|
-
See full [documentation on GitHub](https://github.com/signageos/sdk)
|
|
92
|
-
|
|
93
|
-
# REST API
|
|
94
|
-
|
|
95
|
-
Large collection of REST API endpoints for device management and monitoring.
|
|
96
|
-
|
|
97
|
-
See full [documentation on Postman](https://developers.signageos.io/api/)
|
|
31
|
+
Our API reference offers a complete list of APIs in the SDK with a description what it does and what is possible with it.
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# browser
|
|
2
|
+
|
|
3
|
+
The `sos.browser` API groups together methods for working with the integrated web browser.
|
|
4
|
+
|
|
5
|
+
:::info
|
|
6
|
+
|
|
7
|
+
**This API is currently available on:**
|
|
8
|
+
- Android devices with Android 5+ (Philips, Benq, Sharp, generic Android device)
|
|
9
|
+
|
|
10
|
+
**With some limitation you can use this API also on**
|
|
11
|
+
- Samsung Tizen (SSSP 4 and above); where the website is just in fullscreen without an address bar or theme options (headless mode)
|
|
12
|
+
- LG webOS (webOS 3.0 and above); where the website is just in fullscreen without an address bar or theme options (headless mode)
|
|
13
|
+
- Linux (Fedora, Ubuntu), Raspberry Pi, NEC Compute Module; where the website is just in fullscreen without an address bar or theme options (headless mode)
|
|
14
|
+
- BrightSign; where the website is just in fullscreen without an address bar or theme options (headless mode)
|
|
15
|
+
|
|
16
|
+
:::
|
|
17
|
+
|
|
18
|
+
## Methods
|
|
19
|
+
|
|
20
|
+
### close()
|
|
21
|
+
|
|
22
|
+
The `close()` method closes the browser window opened by the `open()` method.
|
|
23
|
+
|
|
24
|
+
```ts expandable
|
|
25
|
+
close(): Promise<void>;
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
<Separator />
|
|
29
|
+
|
|
30
|
+
### onClose()
|
|
31
|
+
|
|
32
|
+
The `onClose()` method sets up a listener, which is called whenever a browser window is closed. This can happen by an API call, by a
|
|
33
|
+
user request or after a timeout. This doesn't fire between `open` calls or on subsequent `close` calls.
|
|
34
|
+
|
|
35
|
+
```ts expandable
|
|
36
|
+
onClose(listener: (event: CloseEvent) => void): () => void;
|
|
37
|
+
// show-more
|
|
38
|
+
interface CloseEvent extends Event<EventType.CLOSE> {
|
|
39
|
+
reason: CloseReason;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
enum EventType {
|
|
43
|
+
CLOSE = "close"
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
enum CloseReason {
|
|
47
|
+
API = "API",
|
|
48
|
+
USER = "USER",
|
|
49
|
+
TIMEOUT = "TIMEOUT"
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type Event<TType extends EventType = EventType> = {
|
|
53
|
+
type: TType;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
#### Return value
|
|
59
|
+
|
|
60
|
+
A callback which removes the listener.
|
|
61
|
+
|
|
62
|
+
<Separator />
|
|
63
|
+
|
|
64
|
+
### open()
|
|
65
|
+
|
|
66
|
+
The `open()` method opens the specified url in a browser window.
|
|
67
|
+
|
|
68
|
+
```ts expandable
|
|
69
|
+
open(uri: string, options?: IOpenLinkOptions): Promise<void>;
|
|
70
|
+
// show-more
|
|
71
|
+
interface IOpenLinkOptions {
|
|
72
|
+
aclDomains?: string[];
|
|
73
|
+
aclMode?: 'blacklist' | 'whitelist';
|
|
74
|
+
readOnlyAddressBar?: boolean;
|
|
75
|
+
idleTimeout?: number;
|
|
76
|
+
coordinates?: {
|
|
77
|
+
x: number;
|
|
78
|
+
y: number;
|
|
79
|
+
width: number;
|
|
80
|
+
height: number;
|
|
81
|
+
};
|
|
82
|
+
theme?: ITheme;
|
|
83
|
+
headlessMode?: boolean;
|
|
84
|
+
clearData?: boolean;
|
|
85
|
+
canUserClose?: boolean;
|
|
86
|
+
method?: 'native' | 'iframe';
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
type ITheme = {
|
|
90
|
+
base?: 'light' | 'dark';
|
|
91
|
+
shape?: {
|
|
92
|
+
cornerSize?: number;
|
|
93
|
+
};
|
|
94
|
+
colors?: {
|
|
95
|
+
primary?: Color;
|
|
96
|
+
background?: Color;
|
|
97
|
+
control?: Color;
|
|
98
|
+
};
|
|
99
|
+
widgets?: {
|
|
100
|
+
editAddress?: {
|
|
101
|
+
colors?: {
|
|
102
|
+
background?: Color;
|
|
103
|
+
text?: Color;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
buttonClose?: {
|
|
107
|
+
colors?: {
|
|
108
|
+
background?: Color | '@primary';
|
|
109
|
+
text?: Color;
|
|
110
|
+
icon?: Color;
|
|
111
|
+
};
|
|
112
|
+
icon?: 'none' | 'exit_to_app' | 'close' | 'cancel';
|
|
113
|
+
text?: string;
|
|
114
|
+
};
|
|
115
|
+
progress?: {
|
|
116
|
+
color?: Color | '@primary';
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
#### Params
|
|
124
|
+
|
|
125
|
+
| Name | Type | Description |
|
|
126
|
+
|-------------------------------------------|------------------------------------------------------------|-----------------------------------------------------------------------------------------|
|
|
127
|
+
| `options.aclDomains` *(optional)* | `string[]` | List of domains to be interpreted according to `aclMode`. |
|
|
128
|
+
| `options.aclMode` *(optional)* | `"blacklist" \| "whitelist"` | Either "blacklist" or "whitelist". |
|
|
129
|
+
| `options.readOnlyAddressBar` *(optional)* | `boolean` | Should the address bar be readonly. |
|
|
130
|
+
| `options.idleTimeout` *(optional)* | `number` | Close browser after specified period if idle. |
|
|
131
|
+
| `options.coordinates` *(optional)* | `{ x: number; y: number; width: number; height: number; }` | Size and position of the browser window. Defaults to fullscreen. |
|
|
132
|
+
| `options.theme` *(optional)* | `ITheme` | Specify custom UI theme. (Android only) |
|
|
133
|
+
| `options.headlessMode` *(optional)* | `boolean` | Headless mode hides the entire address bar. (Android only) |
|
|
134
|
+
| `options.canUserClose` *(optional)* | `boolean` | Whether the user can manually close the browser. (default if headless false, else true) |
|
|
135
|
+
| `options.clearData` *(optional)* | `boolean` | Clear cache after the browser closes. (default if headless false, else true) |
|
|
136
|
+
| `options.method` *(optional)* | `"native" \| "iframe"` | Either "native" or "iframe" |
|
|
137
|
+
|
|
138
|
+
#### Example
|
|
139
|
+
|
|
140
|
+
```ts
|
|
141
|
+
sos.browser.open('https://www.signageos.io', {
|
|
142
|
+
aclDomains: ['google.com', 'yahoo.com'],
|
|
143
|
+
aclMode: 'blacklist', // or 'whitelist'
|
|
144
|
+
readOnlyAddressBar: true,
|
|
145
|
+
coordinates: { // Supported only on Linux and Android
|
|
146
|
+
x: 0,
|
|
147
|
+
y: 0,
|
|
148
|
+
height: 500,
|
|
149
|
+
width: 500,
|
|
150
|
+
},
|
|
151
|
+
// theme: { ... }
|
|
152
|
+
headlessMode: false,
|
|
153
|
+
});
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
<Separator />
|
|
157
|
+
|
|
158
|
+
### ~openLink()~
|
|
159
|
+
|
|
160
|
+
:::danger
|
|
161
|
+
|
|
162
|
+
This method was deprecated. use `sos.browser.open()` instead
|
|
163
|
+
|
|
164
|
+
:::
|
|
165
|
+
|
|
166
|
+
```ts expandable
|
|
167
|
+
openLink(uri: string, options?: IDeprecatedOpenLinkOptions): Promise<void>;
|
|
168
|
+
// show-more
|
|
169
|
+
/** @deprecated */
|
|
170
|
+
interface IDeprecatedOpenLinkOptions {
|
|
171
|
+
acl?: RegExp[];
|
|
172
|
+
aclMode?: 'blacklist' | 'whitelist';
|
|
173
|
+
readOnlyAddressBar?: boolean;
|
|
174
|
+
idleTimeout?: number;
|
|
175
|
+
theme?: ITheme;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
type ITheme = {
|
|
179
|
+
base?: 'light' | 'dark';
|
|
180
|
+
shape?: {
|
|
181
|
+
cornerSize?: number;
|
|
182
|
+
};
|
|
183
|
+
colors?: {
|
|
184
|
+
primary?: Color;
|
|
185
|
+
background?: Color;
|
|
186
|
+
control?: Color;
|
|
187
|
+
};
|
|
188
|
+
widgets?: {
|
|
189
|
+
editAddress?: {
|
|
190
|
+
colors?: {
|
|
191
|
+
background?: Color;
|
|
192
|
+
text?: Color;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
buttonClose?: {
|
|
196
|
+
colors?: {
|
|
197
|
+
background?: Color | '@primary';
|
|
198
|
+
text?: Color;
|
|
199
|
+
icon?: Color;
|
|
200
|
+
};
|
|
201
|
+
icon?: 'none' | 'exit_to_app' | 'close' | 'cancel';
|
|
202
|
+
text?: string;
|
|
203
|
+
};
|
|
204
|
+
progress?: {
|
|
205
|
+
color?: Color | '@primary';
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
```
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# command
|
|
2
|
+
|
|
3
|
+
The `sos.command` API groups together methods for sending logs and receiving commands from signageOS.
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
### dispatch()
|
|
8
|
+
|
|
9
|
+
The `dispatch()` method dispatches a new log record to the signageOS.
|
|
10
|
+
|
|
11
|
+
:::warning[Dispatch throttling]
|
|
12
|
+
|
|
13
|
+
Sending commands from an applet is throttled, this means that after if the dispatch frequency is too high, some commands may be
|
|
14
|
+
discarded. Currently the limit is 30 commands per 30 seconds, although this may not be fully accurate and it's not possible to know the
|
|
15
|
+
exact limit.
|
|
16
|
+
|
|
17
|
+
:::
|
|
18
|
+
|
|
19
|
+
```ts expandable
|
|
20
|
+
dispatch<TCommand extends ICommand>(command: TCommand): Promise<void>;
|
|
21
|
+
// show-more
|
|
22
|
+
interface ICommand {
|
|
23
|
+
type: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
#### Example
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
await sos.command.dispatch({
|
|
32
|
+
type: 'Files.StartLoading',
|
|
33
|
+
fileName: 'my-file',
|
|
34
|
+
fileType: 'txt'
|
|
35
|
+
});
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
:::note[GitHub Example]
|
|
39
|
+
|
|
40
|
+
- [Sending commands](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/command/sending/)
|
|
41
|
+
|
|
42
|
+
:::
|
|
43
|
+
|
|
44
|
+
<Separator />
|
|
45
|
+
|
|
46
|
+
### onCommand()
|
|
47
|
+
|
|
48
|
+
The `onCommand()` method sets up a listener, which is called whenever a new command from signageOS is received.
|
|
49
|
+
|
|
50
|
+
```ts expandable
|
|
51
|
+
onCommand(listener: (command: ICommandEvent) => void): void;
|
|
52
|
+
// show-more
|
|
53
|
+
interface ICommandEvent {
|
|
54
|
+
type: 'command';
|
|
55
|
+
command: ICommand;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface ICommand {
|
|
59
|
+
type: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
:::note[GitHub Example]
|
|
65
|
+
|
|
66
|
+
- [Receiving commands](https://github.com/signageos/applet-examples/blob/master/examples/content-js-api/command/receiving)
|
|
67
|
+
|
|
68
|
+
:::
|