@signageos/front-applet 7.2.0 → 8.0.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 +8 -4
- package/dist/bundle.js.map +1 -1
- package/docs/fpath/index.md +316 -0
- package/docs/index.md +18 -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/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
|
@@ -2,17 +2,81 @@ import IPostMessage from '../../IPostMessage';
|
|
|
2
2
|
import { TimerType, ITimer } from '../helpers/TimerHelper';
|
|
3
3
|
import { IProprietaryTimer, ProprietaryTimerType } from '../helpers/ProprietaryTimerHelper';
|
|
4
4
|
import IPower from './IPower';
|
|
5
|
+
/**
|
|
6
|
+
* The `sos.management.power` API groups together methods related to the power state of the device. Such as rebooting, shutting down,
|
|
7
|
+
* setting timers.
|
|
8
|
+
*/
|
|
5
9
|
export default class Power implements IPower {
|
|
6
10
|
private messagePrefix;
|
|
7
11
|
private postMessage;
|
|
12
|
+
/** @internal */
|
|
8
13
|
constructor(messagePrefix: string, postMessage: IPostMessage<any>);
|
|
14
|
+
/**
|
|
15
|
+
* The `systemReboot()` method initializes a system reboot.
|
|
16
|
+
*
|
|
17
|
+
* @since 3.0.0
|
|
18
|
+
*/
|
|
9
19
|
systemReboot(): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* The `appRestart()` method initializes a restart of the signageOS app.
|
|
22
|
+
*
|
|
23
|
+
* @since 3.0.0
|
|
24
|
+
*/
|
|
10
25
|
appRestart(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* The `getTimers()` method returns a list of currently set native timers.
|
|
28
|
+
*
|
|
29
|
+
* @since 4.0.0
|
|
30
|
+
*/
|
|
11
31
|
getTimers(): Promise<ITimer[]>;
|
|
32
|
+
/**
|
|
33
|
+
* The `setTimers()` method creates or updates a native timer.
|
|
34
|
+
*
|
|
35
|
+
* @param type The type of the timer (`TIMER_1`, ..., `TIMER_7`).
|
|
36
|
+
* @param timeOn The time when the device should turn on.
|
|
37
|
+
* @param timeOff The time when the device should turn off.
|
|
38
|
+
* @param weekdays The days of the week when the timer should be active (`mon`, ..., `sun`).
|
|
39
|
+
* @param volume The volume level set when the device is turned on.
|
|
40
|
+
*
|
|
41
|
+
* @since 3.0.0
|
|
42
|
+
*/
|
|
12
43
|
setTimer(type: keyof typeof TimerType, timeOn: string | null, timeOff: string | null, weekdays: string[], volume: number): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* The `unsetTimer()` method removes the specified native timer.
|
|
46
|
+
*
|
|
47
|
+
* @param type The type of the timer (`TIMER_1`, ..., `TIMER_7`).
|
|
48
|
+
*
|
|
49
|
+
* @since 4.0.0
|
|
50
|
+
*/
|
|
13
51
|
unsetTimer(type: keyof typeof TimerType): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* The `getProprietaryTimers()` method returns a list of currently set
|
|
54
|
+
* [proprietary timers](https://docs.signageos.io/hc/en-us/articles/4416384202642-Timers#h_01HCD14GEDP96AZV58NRSN2HNQ).
|
|
55
|
+
*
|
|
56
|
+
* @since 5.10.0
|
|
57
|
+
*/
|
|
14
58
|
getProprietaryTimers(): Promise<IProprietaryTimer[]>;
|
|
59
|
+
/**
|
|
60
|
+
* The `setProprietaryTimer()` method creates or updates a
|
|
61
|
+
* [proprietary timer](https://docs.signageos.io/hc/en-us/articles/4416384202642-Timers#h_01HCD14GEDP96AZV58NRSN2HNQ).
|
|
62
|
+
*
|
|
63
|
+
* @param type The type of the timer (`TIMER_1`, ..., `TIMER_7`).
|
|
64
|
+
* @param timeOn The time when the device should turn on.
|
|
65
|
+
* @param timeOff The time when the device should turn off.
|
|
66
|
+
* @param weekdays The days of the week when the timer should be active (`mon`, ..., `sun`).
|
|
67
|
+
* @param keepAppletRunning If `true`, the applet will be kept running when the timer is active on certain devices.
|
|
68
|
+
*
|
|
69
|
+
* @since 5.10.0
|
|
70
|
+
*/
|
|
15
71
|
setProprietaryTimer(type: ProprietaryTimerType, timeOn: string | null, timeOff: string | null, weekdays: string[], keepAppletRunning?: boolean): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* The `unsetProprietaryTimer()` method removes the specified
|
|
74
|
+
* [proprietary timer](https://docs.signageos.io/hc/en-us/articles/4416384202642-Timers#h_01HCD14GEDP96AZV58NRSN2HNQ).
|
|
75
|
+
*
|
|
76
|
+
* @param type The type of the timer (`TIMER_1`, ..., `TIMER_7`).
|
|
77
|
+
*
|
|
78
|
+
* @since 5.10.0
|
|
79
|
+
*/
|
|
16
80
|
unsetProprietaryTimer(type: ProprietaryTimerType): Promise<void>;
|
|
17
81
|
private getMessage;
|
|
18
82
|
}
|
|
@@ -1,142 +1,187 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
4
|
};
|
|
11
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
6
|
const TimerHelper_1 = require("../helpers/TimerHelper");
|
|
13
|
-
const Validate_1 = require("../../Validate/Validate");
|
|
7
|
+
const Validate_1 = __importDefault(require("../../Validate/Validate"));
|
|
8
|
+
// TODO: maybe a better description
|
|
9
|
+
/**
|
|
10
|
+
* The `sos.management.power` API groups together methods related to the power state of the device. Such as rebooting, shutting down,
|
|
11
|
+
* setting timers.
|
|
12
|
+
*/
|
|
14
13
|
class Power {
|
|
14
|
+
messagePrefix;
|
|
15
|
+
postMessage;
|
|
16
|
+
/** @internal */
|
|
15
17
|
constructor(messagePrefix, postMessage) {
|
|
16
18
|
this.messagePrefix = messagePrefix;
|
|
17
19
|
this.postMessage = postMessage;
|
|
18
20
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
/**
|
|
22
|
+
* The `systemReboot()` method initializes a system reboot.
|
|
23
|
+
*
|
|
24
|
+
* @since 3.0.0
|
|
25
|
+
*/
|
|
26
|
+
async systemReboot() {
|
|
27
|
+
await this.postMessage({
|
|
28
|
+
type: this.getMessage('reboot_system'),
|
|
24
29
|
});
|
|
25
30
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
/**
|
|
32
|
+
* The `appRestart()` method initializes a restart of the signageOS app.
|
|
33
|
+
*
|
|
34
|
+
* @since 3.0.0
|
|
35
|
+
*/
|
|
36
|
+
async appRestart() {
|
|
37
|
+
await this.postMessage({
|
|
38
|
+
type: this.getMessage('restart_app'),
|
|
31
39
|
});
|
|
32
40
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
/**
|
|
42
|
+
* The `getTimers()` method returns a list of currently set native timers.
|
|
43
|
+
*
|
|
44
|
+
* @since 4.0.0
|
|
45
|
+
*/
|
|
46
|
+
async getTimers() {
|
|
47
|
+
const { timers } = await this.postMessage({
|
|
48
|
+
type: this.getMessage('get_timers'),
|
|
39
49
|
});
|
|
50
|
+
return timers;
|
|
40
51
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
52
|
+
/**
|
|
53
|
+
* The `setTimers()` method creates or updates a native timer.
|
|
54
|
+
*
|
|
55
|
+
* @param type The type of the timer (`TIMER_1`, ..., `TIMER_7`).
|
|
56
|
+
* @param timeOn The time when the device should turn on.
|
|
57
|
+
* @param timeOff The time when the device should turn off.
|
|
58
|
+
* @param weekdays The days of the week when the timer should be active (`mon`, ..., `sun`).
|
|
59
|
+
* @param volume The volume level set when the device is turned on.
|
|
60
|
+
*
|
|
61
|
+
* @since 3.0.0
|
|
62
|
+
*/
|
|
63
|
+
async setTimer(type, timeOn, timeOff, weekdays, volume) {
|
|
64
|
+
if (typeof TimerHelper_1.TimerType[type] === 'undefined') {
|
|
65
|
+
throw new Error('Invalid timer type');
|
|
66
|
+
}
|
|
67
|
+
(0, Validate_1.default)({ timeOn })
|
|
68
|
+
.canBeNull()
|
|
69
|
+
.required()
|
|
70
|
+
.string()
|
|
71
|
+
.matchRegExp(/\d{2}:\d{2}:\d{2}/)
|
|
72
|
+
.timerTime();
|
|
73
|
+
(0, Validate_1.default)({ timeOff })
|
|
74
|
+
.canBeNull()
|
|
75
|
+
.required()
|
|
76
|
+
.string()
|
|
77
|
+
.matchRegExp(/\d{2}:\d{2}:\d{2}/)
|
|
78
|
+
.timerTime();
|
|
79
|
+
(0, Validate_1.default)({ weekdays }).required().array('string');
|
|
80
|
+
(0, Validate_1.default)({ volume }).required().number().min(0).max(100);
|
|
81
|
+
for (const weekday of weekdays) {
|
|
82
|
+
if (typeof TimerHelper_1.TimerWeekday[weekday] === 'undefined') {
|
|
83
|
+
throw new Error('Invalid timer weekday');
|
|
64
84
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
85
|
+
}
|
|
86
|
+
await this.postMessage({
|
|
87
|
+
type: this.getMessage('set_timer'),
|
|
88
|
+
timerType: type,
|
|
89
|
+
timeOn,
|
|
90
|
+
timeOff,
|
|
91
|
+
weekdays,
|
|
92
|
+
volume,
|
|
73
93
|
});
|
|
74
94
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
95
|
+
/**
|
|
96
|
+
* The `unsetTimer()` method removes the specified native timer.
|
|
97
|
+
*
|
|
98
|
+
* @param type The type of the timer (`TIMER_1`, ..., `TIMER_7`).
|
|
99
|
+
*
|
|
100
|
+
* @since 4.0.0
|
|
101
|
+
*/
|
|
102
|
+
async unsetTimer(type) {
|
|
103
|
+
if (typeof TimerHelper_1.TimerType[type] === 'undefined') {
|
|
104
|
+
console.warn('Invalid timer type');
|
|
105
|
+
}
|
|
106
|
+
await this.setTimer(type, null, null, [], 0);
|
|
82
107
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
108
|
+
/**
|
|
109
|
+
* The `getProprietaryTimers()` method returns a list of currently set
|
|
110
|
+
* [proprietary timers](https://docs.signageos.io/hc/en-us/articles/4416384202642-Timers#h_01HCD14GEDP96AZV58NRSN2HNQ).
|
|
111
|
+
*
|
|
112
|
+
* @since 5.10.0
|
|
113
|
+
*/
|
|
114
|
+
async getProprietaryTimers() {
|
|
115
|
+
const { timers } = await this.postMessage({
|
|
116
|
+
type: this.getMessage('get_proprietary_timers'),
|
|
89
117
|
});
|
|
118
|
+
return timers;
|
|
90
119
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
120
|
+
/**
|
|
121
|
+
* The `setProprietaryTimer()` method creates or updates a
|
|
122
|
+
* [proprietary timer](https://docs.signageos.io/hc/en-us/articles/4416384202642-Timers#h_01HCD14GEDP96AZV58NRSN2HNQ).
|
|
123
|
+
*
|
|
124
|
+
* @param type The type of the timer (`TIMER_1`, ..., `TIMER_7`).
|
|
125
|
+
* @param timeOn The time when the device should turn on.
|
|
126
|
+
* @param timeOff The time when the device should turn off.
|
|
127
|
+
* @param weekdays The days of the week when the timer should be active (`mon`, ..., `sun`).
|
|
128
|
+
* @param keepAppletRunning If `true`, the applet will be kept running when the timer is active on certain devices.
|
|
129
|
+
*
|
|
130
|
+
* @since 5.10.0
|
|
131
|
+
*/
|
|
132
|
+
async setProprietaryTimer(type, timeOn, timeOff, weekdays, keepAppletRunning = false) {
|
|
133
|
+
(0, Validate_1.default)({ type })
|
|
134
|
+
.required()
|
|
135
|
+
.string()
|
|
136
|
+
.matchRegExp(/^TIMER_\d+$/);
|
|
137
|
+
(0, Validate_1.default)({ timeOn })
|
|
138
|
+
.canBeNull()
|
|
139
|
+
.required()
|
|
140
|
+
.string()
|
|
141
|
+
.matchRegExp(/\d{2}:\d{2}:\d{2}/)
|
|
142
|
+
.timerTime();
|
|
143
|
+
(0, Validate_1.default)({ timeOff })
|
|
144
|
+
.canBeNull()
|
|
145
|
+
.required()
|
|
146
|
+
.string()
|
|
147
|
+
.matchRegExp(/\d{2}:\d{2}:\d{2}/)
|
|
148
|
+
.timerTime();
|
|
149
|
+
(0, Validate_1.default)({ weekdays }).required().array('string');
|
|
150
|
+
(0, Validate_1.default)({ keepAppletRunning }).required().boolean();
|
|
151
|
+
for (const weekday of weekdays) {
|
|
152
|
+
if (typeof TimerHelper_1.TimerWeekday[weekday] === 'undefined') {
|
|
153
|
+
throw new Error('Invalid timer weekday');
|
|
115
154
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
155
|
+
}
|
|
156
|
+
await this.postMessage({
|
|
157
|
+
type: this.getMessage('set_proprietary_timer'),
|
|
158
|
+
timerType: type,
|
|
159
|
+
timeOn,
|
|
160
|
+
timeOff,
|
|
161
|
+
weekdays,
|
|
162
|
+
keepAppletRunning,
|
|
124
163
|
});
|
|
125
164
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
165
|
+
/**
|
|
166
|
+
* The `unsetProprietaryTimer()` method removes the specified
|
|
167
|
+
* [proprietary timer](https://docs.signageos.io/hc/en-us/articles/4416384202642-Timers#h_01HCD14GEDP96AZV58NRSN2HNQ).
|
|
168
|
+
*
|
|
169
|
+
* @param type The type of the timer (`TIMER_1`, ..., `TIMER_7`).
|
|
170
|
+
*
|
|
171
|
+
* @since 5.10.0
|
|
172
|
+
*/
|
|
173
|
+
async unsetProprietaryTimer(type) {
|
|
174
|
+
try {
|
|
175
|
+
await this.postMessage({
|
|
176
|
+
type: this.getMessage('delete_proprietary_timer'),
|
|
177
|
+
timerType: type,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
catch (error) {
|
|
181
|
+
// Use failover method if delete fails that is supported in older front-display versions
|
|
182
|
+
// It can be removed in some front-applet najor version
|
|
183
|
+
await this.setProprietaryTimer(type, null, null, []);
|
|
184
|
+
}
|
|
140
185
|
}
|
|
141
186
|
getMessage(name) {
|
|
142
187
|
return this.messagePrefix + '.' + name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Power.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Power/Power.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Power.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Power/Power.ts"],"names":[],"mappings":";;;;;AACA,wDAAyE;AACzE,uEAA+C;AAI/C,mCAAmC;AACnC;;;GAGG;AACH,MAAqB,KAAK;IAGhB;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,YAAY;QACxB,MAAM,IAAI,CAAC,WAAW,CAAC;YACtB,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;SACtC,CAAC,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,UAAU;QACt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D;AApMD,wBAoMC"}
|
|
@@ -3,10 +3,31 @@ import IProxy from './IProxy';
|
|
|
3
3
|
export default class Proxy implements IProxy {
|
|
4
4
|
private messagePrefix;
|
|
5
5
|
private postMessage;
|
|
6
|
+
/** @internal */
|
|
6
7
|
constructor(messagePrefix: string, postMessage: IPostMessage<any>);
|
|
8
|
+
/**
|
|
9
|
+
* The `isEnabled()` method returns whether the proxy is enabled on the device.
|
|
10
|
+
*
|
|
11
|
+
* @since 5.4.0
|
|
12
|
+
*/
|
|
7
13
|
isEnabled(): Promise<boolean>;
|
|
14
|
+
/**
|
|
15
|
+
* The `setManual()` method sets the proxy on the device.
|
|
16
|
+
*
|
|
17
|
+
* @since 5.4.0
|
|
18
|
+
*/
|
|
8
19
|
setManual(uri: string, port: number, username?: string, password?: string): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* The `disable()` method disables the proxy on the device.
|
|
22
|
+
*
|
|
23
|
+
* @since 5.4.0
|
|
24
|
+
*/
|
|
9
25
|
disable(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* The `getConnectedTo()` methods returns the current connected proxy server uri on the device.
|
|
28
|
+
*
|
|
29
|
+
* @since 5.4.0
|
|
30
|
+
*/
|
|
10
31
|
getConnectedTo(): Promise<string>;
|
|
11
32
|
private getMessage;
|
|
12
33
|
}
|
|
@@ -1,52 +1,58 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
class Proxy {
|
|
4
|
+
messagePrefix;
|
|
5
|
+
postMessage;
|
|
6
|
+
/** @internal */
|
|
13
7
|
constructor(messagePrefix, postMessage) {
|
|
14
8
|
this.messagePrefix = messagePrefix;
|
|
15
9
|
this.postMessage = postMessage;
|
|
16
10
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The `isEnabled()` method returns whether the proxy is enabled on the device.
|
|
13
|
+
*
|
|
14
|
+
* @since 5.4.0
|
|
15
|
+
*/
|
|
16
|
+
async isEnabled() {
|
|
17
|
+
const { isEnabled } = await this.postMessage({
|
|
18
|
+
type: this.getMessage('proxy_is_enabled'),
|
|
23
19
|
});
|
|
20
|
+
return isEnabled;
|
|
24
21
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
/**
|
|
23
|
+
* The `setManual()` method sets the proxy on the device.
|
|
24
|
+
*
|
|
25
|
+
* @since 5.4.0
|
|
26
|
+
*/
|
|
27
|
+
async setManual(uri, port, username, password) {
|
|
28
|
+
await this.postMessage({
|
|
29
|
+
type: this.getMessage('proxy_set_manual'),
|
|
30
|
+
uri,
|
|
31
|
+
port,
|
|
32
|
+
username,
|
|
33
|
+
password,
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
/**
|
|
37
|
+
* The `disable()` method disables the proxy on the device.
|
|
38
|
+
*
|
|
39
|
+
* @since 5.4.0
|
|
40
|
+
*/
|
|
41
|
+
async disable() {
|
|
42
|
+
await this.postMessage({
|
|
43
|
+
type: this.getMessage('proxy_disable'),
|
|
41
44
|
});
|
|
42
45
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
/**
|
|
47
|
+
* The `getConnectedTo()` methods returns the current connected proxy server uri on the device.
|
|
48
|
+
*
|
|
49
|
+
* @since 5.4.0
|
|
50
|
+
*/
|
|
51
|
+
async getConnectedTo() {
|
|
52
|
+
const { connectedTo } = await this.postMessage({
|
|
53
|
+
type: this.getMessage('proxy_get_connected_to'),
|
|
49
54
|
});
|
|
55
|
+
return connectedTo;
|
|
50
56
|
}
|
|
51
57
|
getMessage(name) {
|
|
52
58
|
return this.messagePrefix + '.' + name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Proxy.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Proxy/Proxy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Proxy.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Proxy/Proxy.ts"],"names":[],"mappings":";;AAGA,MAAqB,KAAK;IAGhB;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,SAAS;QACrB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC;YAC5C,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;SACzC,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,SAAS,CAAC,GAAW,EAAE,IAAY,EAAE,QAAiB,EAAE,QAAiB;QACrF,MAAM,IAAI,CAAC,WAAW,CAAC;YACtB,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;YACzC,GAAG;YACH,IAAI;YACJ,QAAQ;YACR,QAAQ;SACR,CAAC,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,OAAO;QACnB,MAAM,IAAI,CAAC,WAAW,CAAC;YACtB,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;SACtC,CAAC,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,cAAc;QAC1B,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC;YAC9C,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;SAC/C,CAAC,CAAC;QACH,OAAO,WAAW,CAAC;IACpB,CAAC;IAEO,UAAU,CAAC,IAAY;QAC9B,OAAO,IAAI,CAAC,aAAa,GAAG,GAAG,GAAG,IAAI,CAAC;IACxC,CAAC;CACD;AA7DD,wBA6DC"}
|
|
@@ -1,14 +1,57 @@
|
|
|
1
1
|
import IPostMessage from '../../IPostMessage';
|
|
2
2
|
import IRemoteControl from './IRemoteControl';
|
|
3
|
+
/**
|
|
4
|
+
* The `sos.management.remoteControl` groups together methods for enabling or disabling control of the device using IR remote controller (TV controller).
|
|
5
|
+
*/
|
|
3
6
|
export default class RemoteControl implements IRemoteControl {
|
|
4
7
|
private messagePrefix;
|
|
5
8
|
private postMessage;
|
|
9
|
+
/** @internal */
|
|
6
10
|
constructor(messagePrefix: string, postMessage: IPostMessage<any>);
|
|
11
|
+
/**
|
|
12
|
+
* The `enable()` method enables remote control.
|
|
13
|
+
*
|
|
14
|
+
* :::warning
|
|
15
|
+
*
|
|
16
|
+
* **Android:** In order to prevent Android from displaying Android homepage and thus not showing your content, you
|
|
17
|
+
* must Enable Kiosk Mode (or Lock Remote Control) either through Box device settings or through API.
|
|
18
|
+
*
|
|
19
|
+
* Always set the Remote Control Lock to `enable` after the deployment.
|
|
20
|
+
*
|
|
21
|
+
* :::
|
|
22
|
+
*
|
|
23
|
+
* @since 3.0.0
|
|
24
|
+
*/
|
|
7
25
|
enable(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* The `disable()` method disables remote control.
|
|
28
|
+
*
|
|
29
|
+
* @since 3.0.0
|
|
30
|
+
*/
|
|
8
31
|
disable(): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* The `isEnabled()` method returns whether the remote control is enabled.
|
|
34
|
+
*
|
|
35
|
+
* @since 4.0.0
|
|
36
|
+
*/
|
|
9
37
|
isEnabled(): Promise<boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* The `lock()` method is an alias for the `disable()` method.
|
|
40
|
+
*
|
|
41
|
+
* @since 4.0.0
|
|
42
|
+
*/
|
|
10
43
|
lock(): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* The `unlock()` method is an alias for the `enable()` method.
|
|
46
|
+
*
|
|
47
|
+
* @since 4.0.0
|
|
48
|
+
*/
|
|
11
49
|
unlock(): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* The `isLocked()` method returns whether the remote control is locked (disabled).
|
|
52
|
+
*
|
|
53
|
+
* @since 4.0.0
|
|
54
|
+
*/
|
|
12
55
|
isLocked(): Promise<boolean>;
|
|
13
56
|
private setEnabled;
|
|
14
57
|
private getMessage;
|