@signageos/front-applet 7.1.1 → 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 +5 -5
- 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 +92 -40
- package/es6/FrontApplet/Browser/Browser.js.map +1 -1
- package/es6/FrontApplet/Browser/IOpenLinkOptions.d.ts +2 -2
- package/es6/FrontApplet/Browser/events.d.ts +1 -1
- package/es6/FrontApplet/Browser/events.js +2 -2
- package/es6/FrontApplet/Browser/events.js.map +1 -1
- package/es6/FrontApplet/Browser/messages.d.ts +2 -2
- package/es6/FrontApplet/Command/Command.d.ts +37 -3
- package/es6/FrontApplet/Command/Command.js +52 -23
- 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 +19 -0
- package/es6/FrontApplet/Connect/Connect.js +162 -0
- package/es6/FrontApplet/Connect/Connect.js.map +1 -0
- package/es6/FrontApplet/Connect/IConnectMessage.d.ts +4 -0
- package/es6/FrontApplet/{Stream/streamListeners.js → Connect/IConnectMessage.js} +1 -1
- package/es6/FrontApplet/Connect/IConnectMessage.js.map +1 -0
- package/es6/FrontApplet/Debug/Debug.d.ts +15 -1
- package/es6/FrontApplet/Debug/Debug.js +28 -18
- package/es6/FrontApplet/Debug/Debug.js.map +1 -1
- package/es6/FrontApplet/Debug/debugDecorator.d.ts +3 -3
- package/es6/FrontApplet/Debug/debugDecorator.js +15 -9
- 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 +5 -1
- 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 +318 -195
- package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
- package/es6/FrontApplet/FileSystem/HashAlgorithm.d.ts +2 -0
- package/es6/FrontApplet/{Input/IKeyUpEventListener.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 +57 -4
- package/es6/FrontApplet/FrontApplet.js +129 -49
- 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 +22 -20
- 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 +2 -3
- 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 +44 -23
- 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.d.ts +1 -1
- package/es6/FrontApplet/Management/AutoRecovery/IAutoRecovery.js +5 -2
- 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 +2 -2
- package/es6/FrontApplet/Management/Network/Network.d.ts +56 -8
- package/es6/FrontApplet/Management/Network/Network.js +86 -68
- 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.d.ts +1 -1
- package/es6/FrontApplet/Management/PeerRecovery/IPeerRecovery.js +5 -2
- 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/IOrientation.d.ts +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 +19 -1
- 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/ProprietaryTimerHelper.d.ts +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 +52 -3
- 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 +193 -131
- 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 +18 -26
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.js.map +1 -1
- package/es6/FrontApplet/Offline/Flags/IFlags.d.ts +5 -5
- package/es6/FrontApplet/Offline/IAddFont.d.ts +3 -1
- package/es6/FrontApplet/Offline/IAddFont.js.map +1 -1
- package/es6/FrontApplet/Offline/IFileType.d.ts +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 +79 -8
- package/es6/FrontApplet/Offline/Offline.js +119 -59
- 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 +13 -5
- package/es6/FrontApplet/Sensors/Proximity.js.map +1 -1
- package/es6/FrontApplet/Sensors/Sensors.d.ts +3 -1
- 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/IStreamMessage.d.ts +1 -1
- package/es6/FrontApplet/Stream/IStreamTrackInfo.d.ts +2 -2
- package/es6/FrontApplet/Stream/Stream.d.ts +130 -15
- package/es6/FrontApplet/Stream/Stream.js +262 -163
- package/es6/FrontApplet/Stream/Stream.js.map +1 -1
- package/es6/FrontApplet/Stream/StreamProtocol.js.map +1 -1
- package/es6/FrontApplet/Stream/streamEvents.d.ts +1 -1
- package/es6/FrontApplet/Sync/Sync.d.ts +152 -6
- package/es6/FrontApplet/Sync/Sync.js +199 -115
- 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.d.ts +5 -5
- package/es6/FrontApplet/Validate/Validate.js +27 -24
- 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.d.ts +1 -1
- package/es6/FrontApplet/Video/IVideoEvent.js +3 -3
- package/es6/FrontApplet/Video/IVideoEvent.js.map +1 -1
- package/es6/FrontApplet/Video/IVideoMessage.d.ts +1 -1
- package/es6/FrontApplet/Video/Video.d.ts +84 -12
- package/es6/FrontApplet/Video/Video.js +196 -137
- 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/Console/consoleCommands.d.ts +1 -1
- package/es6/Monitoring/Display/displayCommands.d.ts +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/EmptyObject.d.ts +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/applicationCommands.d.ts +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/audioCommands.d.ts +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/autoRecoveryCommands.d.ts +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/debugCommands.d.ts +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/Network/managementNetworkCommands.d.ts +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/Os/osCommands.d.ts +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/PeerRecovery/peerRecoveryCommands.d.ts +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/Power/powerCommands.d.ts +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/RemoteControl/remoteControlCommands.d.ts +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/Screen/screenCommands.d.ts +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/Security/securityCommands.d.ts +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/Time/timeCommands.d.ts +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/Management/managementCommands.d.ts +1 -1
- package/es6/Monitoring/{Montoring.d.ts → Monitoring.d.ts} +1 -0
- package/es6/Monitoring/Monitoring.js +83 -0
- 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/NativeCommands/nativeMdcCommands.d.ts +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/Monitoring/monitoringCommands.d.ts +1 -1
- package/es6/Sensors/IButton.js +1 -1
- package/es6/Sensors/IButton.js.map +1 -1
- package/es6/Sensors/IRfidAntenna.d.ts +1 -1
- package/es6/Sensors/IRfidAntenna.js +1 -1
- package/es6/Sensors/IRfidAntenna.js.map +1 -1
- package/es6/Util/Console/enhancer.d.ts +11 -0
- package/es6/Util/Console/enhancer.js +23 -0
- package/es6/Util/Console/enhancer.js.map +1 -0
- package/es6/bundle.d.ts +1 -1
- package/es6/bundle.js +12 -5
- package/es6/bundle.js.map +1 -1
- package/es6/fpath.d.ts +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/Video/IVideoEventListener.js → utils/types.js} +1 -1
- package/es6/utils/types.js.map +1 -0
- package/package.json +28 -26
- package/CHANGELOG.md +0 -480
- 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.map +0 -1
- package/es6/Monitoring/Montoring.js +0 -131
- package/es6/Monitoring/Montoring.js.map +0 -1
|
@@ -1,222 +1,346 @@
|
|
|
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 events_1 = require("events");
|
|
13
7
|
const types_1 = require("./types");
|
|
14
|
-
const Validate_1 = require("../Validate/Validate");
|
|
8
|
+
const Validate_1 = __importDefault(require("../Validate/Validate"));
|
|
15
9
|
const EVENT_STORAGE_UNITS_CHANGED = 'storage_units_changed';
|
|
10
|
+
/**
|
|
11
|
+
* The `sos.fileSystem` API groups together methods for low-level access to the file system. The File System API supports both internal and
|
|
12
|
+
* external storage.
|
|
13
|
+
*
|
|
14
|
+
* :::warning
|
|
15
|
+
*
|
|
16
|
+
* File System directory structure is **PERSISTENT** and is **NOT** automatically deleted through `Applet Reload` power action!
|
|
17
|
+
* Applet Reload only deletes `/data` directory which is reserved for simplified [Offline Cache API](./offline). Use
|
|
18
|
+
* `deleteFile()` to clear the device storage file system.
|
|
19
|
+
*
|
|
20
|
+
* :::
|
|
21
|
+
*/
|
|
16
22
|
class FileSystem {
|
|
23
|
+
messagePrefix;
|
|
24
|
+
postMessage;
|
|
25
|
+
static MESSAGE_PREFIX = 'file_system';
|
|
26
|
+
eventEmitter;
|
|
27
|
+
/** @internal */
|
|
17
28
|
constructor(messagePrefix, postMessage) {
|
|
18
29
|
this.messagePrefix = messagePrefix;
|
|
19
30
|
this.postMessage = postMessage;
|
|
20
31
|
this.eventEmitter = new events_1.EventEmitter();
|
|
21
32
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
33
|
+
/**
|
|
34
|
+
* The `listStorageUnits()` method lists all available storage units. All devices always have one internal storage device (with
|
|
35
|
+
* `removable: false`) and zero or more external devices. The capacity values are in bytes.
|
|
36
|
+
*/
|
|
37
|
+
async listStorageUnits() {
|
|
38
|
+
const { storageUnits } = await this.postMessage({
|
|
39
|
+
type: this.getMessage('list_storage_units'),
|
|
28
40
|
});
|
|
41
|
+
return storageUnits;
|
|
29
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* A shorthand method for listing only the internal storage units (i.e. those with the `removable: false`). The capacity values are in bytes.
|
|
45
|
+
*/
|
|
46
|
+
async listInternalStorageUnits() {
|
|
47
|
+
const allStorageUnits = await this.listStorageUnits();
|
|
48
|
+
return allStorageUnits.filter((storageUnit) => !storageUnit.removable);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The `onStorageUnitsChanged()` method sets up a listener, which is called whenever the list of storage units changes.
|
|
52
|
+
*/
|
|
30
53
|
onStorageUnitsChanged(listener) {
|
|
31
|
-
Validate_1.default({ listener }).required().function();
|
|
54
|
+
(0, Validate_1.default)({ listener }).required().function();
|
|
32
55
|
this.eventEmitter.addListener(EVENT_STORAGE_UNITS_CHANGED, listener);
|
|
33
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* The `removeStorageUnitsChangedListener()` method removes a listener, previously added by `onStorageUnitsChanged()`
|
|
59
|
+
*/
|
|
34
60
|
removeStorageUnitsChangedListener(listener) {
|
|
35
|
-
Validate_1.default({ listener }).required().function();
|
|
61
|
+
(0, Validate_1.default)({ listener }).required().function();
|
|
36
62
|
this.eventEmitter.removeListener(EVENT_STORAGE_UNITS_CHANGED, listener);
|
|
37
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* The `removeAllListeners()` method removes all listeners, previously added by `removeAllListeners()`
|
|
66
|
+
*/
|
|
38
67
|
removeAllListeners() {
|
|
39
68
|
this.eventEmitter.removeAllListeners(EVENT_STORAGE_UNITS_CHANGED);
|
|
40
69
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
70
|
+
/**
|
|
71
|
+
* The `listFiles()` method lists all files and directories in the specified path (nested files are not included).
|
|
72
|
+
*
|
|
73
|
+
* @throws If the path does not exist or it is a file.
|
|
74
|
+
*/
|
|
75
|
+
async listFiles(directoryPath) {
|
|
76
|
+
(0, Validate_1.default)({ directoryPath }).required().object(types_1.VIFilePath);
|
|
77
|
+
const { files } = await this.postMessage({
|
|
78
|
+
type: this.getMessage('list_files'),
|
|
79
|
+
directoryPath,
|
|
80
|
+
});
|
|
81
|
+
return files;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* The `exists()` method checks whether a file or directory exists.
|
|
85
|
+
*/
|
|
86
|
+
async exists(filePath) {
|
|
87
|
+
(0, Validate_1.default)({ filePath }).required().object(types_1.VIFilePath);
|
|
88
|
+
const { exists } = await this.postMessage({
|
|
89
|
+
type: this.getMessage('exists'),
|
|
90
|
+
filePath,
|
|
91
|
+
});
|
|
92
|
+
return exists;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The `getFile()` method returns runtime information about a file path, such as local url, last modified date or size.
|
|
96
|
+
*/
|
|
97
|
+
async getFile(filePath) {
|
|
98
|
+
(0, Validate_1.default)({ filePath }).required().object(types_1.VIFilePath);
|
|
99
|
+
const { file } = await this.postMessage({
|
|
100
|
+
type: this.getMessage('get_file'),
|
|
101
|
+
filePath,
|
|
102
|
+
});
|
|
103
|
+
if (!file) {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
...file,
|
|
108
|
+
...filePath,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* The `writeFile()` method writes string content to the file specified by `filePath`. If the file does exist, it is created. If the directory
|
|
113
|
+
* does not exist, an error is thrown.
|
|
114
|
+
*
|
|
115
|
+
* @throws If the parent directory does not exist or the `filePath` is a directory.
|
|
116
|
+
*/
|
|
117
|
+
async writeFile(filePath, contents) {
|
|
118
|
+
(0, Validate_1.default)({ filePath }).required().object(types_1.VIFilePath);
|
|
119
|
+
await this.postMessage({
|
|
120
|
+
type: this.getMessage('write_file'),
|
|
121
|
+
filePath,
|
|
122
|
+
contents,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The `writeFile()` method appends string content to the file specified by `filePath`. If the file does exist, it is created. If the directory
|
|
127
|
+
* does not exist, an error is thrown.
|
|
128
|
+
*
|
|
129
|
+
* @throws If the parent directory does not exist or the `filePath` is a directory.
|
|
130
|
+
*/
|
|
131
|
+
async appendFile(filePath, contents) {
|
|
132
|
+
(0, Validate_1.default)({ filePath }).required().object(types_1.VIFilePath);
|
|
133
|
+
await this.postMessage({
|
|
134
|
+
type: this.getMessage('append_file'),
|
|
135
|
+
filePath,
|
|
136
|
+
contents,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* The `readFile()` method returns content of the file specified by `filePath`. The file has to be a text file, otherwise the content will be
|
|
141
|
+
* mangled.
|
|
142
|
+
*
|
|
143
|
+
* @throws If the file does not exist.
|
|
144
|
+
*/
|
|
145
|
+
async readFile(filePath) {
|
|
146
|
+
(0, Validate_1.default)({ filePath }).required().object(types_1.VIFilePath);
|
|
147
|
+
const { contents } = await this.postMessage({
|
|
148
|
+
type: this.getMessage('read_file'),
|
|
149
|
+
filePath,
|
|
150
|
+
});
|
|
151
|
+
return contents;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* The `copyFile()` method creates a copy of file at `sourceFilePath` to `destinationFilePath`.
|
|
155
|
+
*
|
|
156
|
+
* @param options.overwrite If not set or set to `false`, an error will be thrown if `destinationFilePath` already exists.
|
|
157
|
+
*
|
|
158
|
+
* @throws If the source file does not exists or parent of the destination file path does not exists. It also throws if the
|
|
159
|
+
* `options.overwrite` is not set and the destination file path already exists.
|
|
160
|
+
*/
|
|
161
|
+
async copyFile(sourceFilePath, destinationFilePath, options = {}) {
|
|
162
|
+
(0, Validate_1.default)({ sourceFilePath }).required().object(types_1.VIFilePath);
|
|
163
|
+
(0, Validate_1.default)({ destinationFilePath }).required().object(types_1.VIFilePath);
|
|
164
|
+
(0, Validate_1.default)({ options }).required().object(types_1.VICopyFileOptions);
|
|
165
|
+
await this.postMessage({
|
|
166
|
+
type: this.getMessage('copy_file'),
|
|
167
|
+
sourceFilePath,
|
|
168
|
+
destinationFilePath,
|
|
169
|
+
options,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* The `moveFile()` method moves a file from `sourceFilePath` to `destinationFilePath`.
|
|
174
|
+
*
|
|
175
|
+
* @throws If the source file does not exists or parent of the destination file path does not exists. It also throws if the
|
|
176
|
+
* `options.overwrite` is not set and the destination file path already exists.
|
|
177
|
+
*/
|
|
178
|
+
async moveFile(sourceFilePath, destinationFilePath, options = {}) {
|
|
179
|
+
(0, Validate_1.default)({ sourceFilePath }).required().object(types_1.VIFilePath);
|
|
180
|
+
(0, Validate_1.default)({ destinationFilePath }).required().object(types_1.VIFilePath);
|
|
181
|
+
(0, Validate_1.default)({ options }).required().object(types_1.VIMoveFileOptions);
|
|
182
|
+
await this.postMessage({
|
|
183
|
+
type: this.getMessage('move_file'),
|
|
184
|
+
sourceFilePath,
|
|
185
|
+
destinationFilePath,
|
|
186
|
+
options,
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* The `deleteFile()` method deletes the file specified by `filePath`. To remove a directory set `recursive` to `true`.
|
|
191
|
+
*
|
|
192
|
+
* @throws If the file does not exists or if `recursive` is set to false and the file path is a directory.
|
|
193
|
+
*/
|
|
194
|
+
async deleteFile(filePath, recursive) {
|
|
195
|
+
(0, Validate_1.default)({ filePath }).required().object(types_1.VIFilePath);
|
|
196
|
+
(0, Validate_1.default)({ recursive }).required().boolean();
|
|
197
|
+
await this.postMessage({
|
|
198
|
+
type: this.getMessage('delete_file'),
|
|
199
|
+
filePath,
|
|
200
|
+
recursive,
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* The `downloadFile()` method download a file from `sourceUri` and saves it to the specified path. If the file already exists it is
|
|
205
|
+
* overwritten. Optionally, headers for the download request may be specified. A HEAD request is always sent first to get `content-length`
|
|
206
|
+
* of the downloaded file.
|
|
207
|
+
*
|
|
208
|
+
* :::warning
|
|
209
|
+
* - For every download request, our app makes HEAD request for `content-length` header on that downloaded file.
|
|
210
|
+
* - Windows platform can download only files smaller then 4GB.
|
|
211
|
+
* :::
|
|
212
|
+
*
|
|
213
|
+
* #### Encoding
|
|
214
|
+
*
|
|
215
|
+
* All downloads respect a standard of `Encoding` with optional compression of files. See [Mozilla standard Accept Encoding](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding) and [Content Encoding](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding).
|
|
216
|
+
*
|
|
217
|
+
* Download file method is always sending optional following headers:
|
|
218
|
+
* ```
|
|
219
|
+
* Accept-Encoding: gzip
|
|
220
|
+
* Accept-Encoding: compress
|
|
221
|
+
* Accept-Encoding: deflate
|
|
222
|
+
* Accept-Encoding: br
|
|
223
|
+
* Accept-Encoding: identity
|
|
224
|
+
* Accept-Encoding: *
|
|
225
|
+
* ```
|
|
226
|
+
*
|
|
227
|
+
* If the server understands the `Encoding` standard, it compresses files using `gzip` algorithm before the files are sent to the client. If so, the response will contain the following headers:
|
|
228
|
+
* ```
|
|
229
|
+
* Content-Encoding: gzip
|
|
230
|
+
* Content-Encoding: compress
|
|
231
|
+
* Content-Encoding: deflate
|
|
232
|
+
* Content-Encoding: br
|
|
233
|
+
* ```
|
|
234
|
+
* So the data communication is compressed under the hood. The client will automatically decompress data before it's saved to a specified location path. So from JS API point of view, there is no requirement to decompress data by itself.
|
|
235
|
+
*
|
|
236
|
+
* The standard is supported on all following platforms:
|
|
237
|
+
*
|
|
238
|
+
* - WebOS 3+
|
|
239
|
+
* - Tizen 2.4+
|
|
240
|
+
* - Brightsign
|
|
241
|
+
* - Raspberry Pi
|
|
242
|
+
* - Windows
|
|
243
|
+
*
|
|
244
|
+
* @throws If the network request fails, parent directory does not exist, or the file path is a directory.
|
|
245
|
+
*/
|
|
246
|
+
async downloadFile(filePath, sourceUri, headers) {
|
|
247
|
+
(0, Validate_1.default)({ filePath }).required().object(types_1.VIFilePath);
|
|
248
|
+
(0, Validate_1.default)({ sourceUri }).required().uri();
|
|
249
|
+
(0, Validate_1.default)({ headers }).object();
|
|
250
|
+
await this.postMessage({
|
|
251
|
+
type: this.getMessage('download_file'),
|
|
252
|
+
filePath,
|
|
253
|
+
sourceUri,
|
|
254
|
+
headers,
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* The `decompressFile()` method decompresses the file at `archiveFilePath` into a new file specified by `destinationDirectoryPath`.
|
|
259
|
+
*
|
|
260
|
+
* @throws If the archive file path does not exist, it is not a valid archive file or the destination directory does not exist.
|
|
261
|
+
*/
|
|
262
|
+
async extractFile(archiveFilePath, destinationDirectoryPath, method) {
|
|
263
|
+
(0, Validate_1.default)({ archiveFilePath }).required().object(types_1.VIFilePath);
|
|
264
|
+
(0, Validate_1.default)({ destinationDirectoryPath }).object(types_1.VIFilePath);
|
|
265
|
+
(0, Validate_1.default)({ method }).required().string();
|
|
266
|
+
await this.postMessage({
|
|
267
|
+
type: this.getMessage('extract_file'),
|
|
268
|
+
archiveFilePath,
|
|
269
|
+
destinationDirectoryPath,
|
|
270
|
+
method,
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* The `createArchive()` method creates an arch file at `archiveFilePath` from `archiveEntries` files.
|
|
275
|
+
*
|
|
276
|
+
* :::warning
|
|
277
|
+
*
|
|
278
|
+
* This function is available only on Tizen devices.
|
|
279
|
+
*
|
|
280
|
+
* :::
|
|
281
|
+
*/
|
|
282
|
+
async createArchive(archiveFilePath, archiveEntries) {
|
|
283
|
+
(0, Validate_1.default)({ archiveFilePath }).required().object(types_1.VIFilePath);
|
|
284
|
+
(0, Validate_1.default)({ archiveEntries }).required().array('object');
|
|
285
|
+
await this.postMessage({
|
|
286
|
+
type: this.getMessage('create_archive_file'),
|
|
287
|
+
archiveFilePath,
|
|
288
|
+
archiveEntries,
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* The `getChecksumFile()` method computes a checksum of the file specified by `filePath`.
|
|
293
|
+
*
|
|
294
|
+
* @throws If the file does not exist or it is a directory.
|
|
295
|
+
*/
|
|
296
|
+
async getFileChecksum(filePath, hashType) {
|
|
297
|
+
(0, Validate_1.default)({ filePath }).required().object(types_1.VIFilePath);
|
|
298
|
+
(0, Validate_1.default)({ hashType }).required().string();
|
|
299
|
+
const { checksum } = await this.postMessage({
|
|
300
|
+
type: this.getMessage('get_file_checksum'),
|
|
301
|
+
filePath,
|
|
302
|
+
hashType,
|
|
303
|
+
});
|
|
304
|
+
return checksum;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* The `createDirectory()` method create a new directory at specified path.
|
|
308
|
+
*
|
|
309
|
+
* @throws If the directory already exists or its parent directory does not exist.
|
|
310
|
+
*/
|
|
311
|
+
async createDirectory(directoryPath) {
|
|
312
|
+
(0, Validate_1.default)({ directoryPath }).required().object(types_1.VIFilePath);
|
|
313
|
+
await this.postMessage({
|
|
314
|
+
type: this.getMessage('create_directory'),
|
|
315
|
+
directoryPath,
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* The `isDirectory()` method checks whether the file path points to a directory.
|
|
320
|
+
*
|
|
321
|
+
* @throws If the file path does not exist.
|
|
322
|
+
*/
|
|
323
|
+
async isDirectory(filePath) {
|
|
324
|
+
(0, Validate_1.default)({ filePath }).required().object(types_1.VIFilePath);
|
|
325
|
+
const { isDirectory } = await this.postMessage({
|
|
326
|
+
type: this.getMessage('is_directory'),
|
|
327
|
+
filePath,
|
|
328
|
+
});
|
|
329
|
+
return isDirectory;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* The `link()` method creates a symbolic link to `sourceFilePath` (existing path) from `destinationFilePath` (new path).
|
|
333
|
+
*/
|
|
334
|
+
async link(sourceFilePath, destinationFilePath) {
|
|
335
|
+
(0, Validate_1.default)({ sourceFilePath }).required().object(types_1.VIFilePath);
|
|
336
|
+
(0, Validate_1.default)({ destinationFilePath }).required().object(types_1.VIFilePath);
|
|
337
|
+
await this.postMessage({
|
|
338
|
+
type: this.getMessage('link'),
|
|
339
|
+
sourceFilePath,
|
|
340
|
+
destinationFilePath,
|
|
218
341
|
});
|
|
219
342
|
}
|
|
343
|
+
/** @internal */
|
|
220
344
|
handleMessageData(data) {
|
|
221
345
|
switch (data.type) {
|
|
222
346
|
case this.getMessage('storage_units_changed'):
|
|
@@ -230,5 +354,4 @@ class FileSystem {
|
|
|
230
354
|
}
|
|
231
355
|
}
|
|
232
356
|
exports.default = FileSystem;
|
|
233
|
-
FileSystem.MESSAGE_PREFIX = 'file_system';
|
|
234
357
|
//# sourceMappingURL=FileSystem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileSystem.js","sourceRoot":"","sources":["../../../src/FrontApplet/FileSystem/FileSystem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileSystem.js","sourceRoot":"","sources":["../../../src/FrontApplet/FileSystem/FileSystem.ts"],"names":[],"mappings":";;;;;AAAA,mCAAsC;AAEtC,mCAUiB;AAEjB,oEAA4C;AAI5C,MAAM,2BAA2B,GAAG,uBAAuB,CAAC;AAE5D;;;;;;;;;;;GAWG;AACH,MAAqB,UAAU;IAOrB;IACA;IAPF,MAAM,CAAC,cAAc,GAAW,aAAa,CAAC;IAE7C,YAAY,CAAe;IAEnC,gBAAgB;IAChB,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;QAEtC,IAAI,CAAC,YAAY,GAAG,IAAI,qBAAY,EAAE,CAAC;IACxC,C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,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,kBAAU,CAAC,CAAC;QAC3D,IAAA,kBAAQ,EAAC,EAAE,mBAAmB,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,kBAAU,CAAC,CAAC;QAChE,MAAM,IAAI,CAAC,WAAW,CAAC;YACtB,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAC7B,cAAc;YACd,mBAAmB;SACnB,CAAC,CAAC;IACJ,CAAC;IAED,gBAAgB;IACT,iBAAiB,CAAC,IAAgC;QACxD,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;gBAC5C,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;gBACpD,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC;IAEO,UAAU,CAAC,IAAY;QAC9B,OAAO,IAAI,CAAC,aAAa,GAAG,GAAG,GAAG,UAAU,CAAC,cAAc,GAAG,GAAG,GAAG,IAAI,CAAC;IAC1E,CAAC;;AApWF,6BAqWC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HashAlgorithm.js","sourceRoot":"","sources":["../../../src/FrontApplet/FileSystem/HashAlgorithm.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fontFaceGenerator.js","sourceRoot":"","sources":["../../../src/FrontApplet/Font/fontFaceGenerator.ts"],"names":[],"mappings":";;;AAEO,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,MAA0B,EAAE,EAAE,CAAC,GAAG,GAAG,GAAG,GAAG,MAAM,CAAC;AAAlF,QAAA,eAAe,mBAAmE;AAExF,MAAM,iBAAiB,GAAG,CAAC,MAAc,EAAE,aAAkC,EAAE,EAAE;IACvF,MAAM,UAAU,GAAG,iBAAiB,aAAa,CAAC,UAAU,IAAI,CAAC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