@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
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# cache
|
|
2
|
+
|
|
3
|
+
The `sos.offline` API groups together methods used to download and save arbitrary files, which can be accessed even if the device is offline.
|
|
4
|
+
|
|
5
|
+
:::warning
|
|
6
|
+
|
|
7
|
+
Emulator has certain limitations while handling offline files. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405238997138)
|
|
8
|
+
|
|
9
|
+
:::
|
|
10
|
+
|
|
11
|
+
## Methods
|
|
12
|
+
|
|
13
|
+
### decompressFile()
|
|
14
|
+
|
|
15
|
+
The `decompressFile()` decompresses the file specified by `uid` into a new file specified by `destinationUid`.
|
|
16
|
+
|
|
17
|
+
```ts expandable
|
|
18
|
+
decompressFile(uid: string, destinationUid: string, method: 'zip'): Promise<void>;
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
#### Possible errors
|
|
22
|
+
|
|
23
|
+
The method throws an error if the uid does not exist.
|
|
24
|
+
|
|
25
|
+
<Separator />
|
|
26
|
+
|
|
27
|
+
### deleteContent()
|
|
28
|
+
|
|
29
|
+
The `deleteContent() method removes the value specified by `uid` key.
|
|
30
|
+
|
|
31
|
+
```ts expandable
|
|
32
|
+
deleteContent(uid: string): Promise<void>;
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
<Separator />
|
|
36
|
+
|
|
37
|
+
### deleteFile()
|
|
38
|
+
|
|
39
|
+
The `deleteFile()` method removes the file specified by `uid`.
|
|
40
|
+
|
|
41
|
+
```ts expandable
|
|
42
|
+
deleteFile(uid: string): Promise<void>;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### Possible errors
|
|
46
|
+
|
|
47
|
+
The method throws an error if the uid does not exist.
|
|
48
|
+
|
|
49
|
+
<Separator />
|
|
50
|
+
|
|
51
|
+
### getChecksumFile()
|
|
52
|
+
|
|
53
|
+
The `getChecksumFile()` computes a checksum of the file specified by `uid`.
|
|
54
|
+
|
|
55
|
+
```ts expandable
|
|
56
|
+
getChecksumFile(uid: string, hashType: HashAlgorithm): Promise<string>;
|
|
57
|
+
// show-more
|
|
58
|
+
type HashAlgorithm = 'md5' | 'sha1' | 'sha256' | 'sha384' | 'sha512' | 'crc32' | AnyString;
|
|
59
|
+
|
|
60
|
+
type AnyString = string & {};
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
#### Possible errors
|
|
65
|
+
|
|
66
|
+
The method throws an error if the uid does not exist or the hashing algorithm is not supported.
|
|
67
|
+
|
|
68
|
+
<Separator />
|
|
69
|
+
|
|
70
|
+
### listContents()
|
|
71
|
+
|
|
72
|
+
The `listContent()` method lists all values saved by `saveContent()` method.
|
|
73
|
+
|
|
74
|
+
```ts expandable
|
|
75
|
+
listContents(): Promise<string[]>;
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
<Separator />
|
|
79
|
+
|
|
80
|
+
### listFiles()
|
|
81
|
+
|
|
82
|
+
The `listFiles()` method list all currently cached files.
|
|
83
|
+
|
|
84
|
+
```ts expandable
|
|
85
|
+
listFiles(): Promise<string[]>;
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
<Separator />
|
|
89
|
+
|
|
90
|
+
### loadContent()
|
|
91
|
+
|
|
92
|
+
The `loadContent()` method gets the value specified by `uid`, which was previously saved by `saveContent()`.
|
|
93
|
+
|
|
94
|
+
```ts expandable
|
|
95
|
+
loadContent(uid: string): Promise<string>;
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
<Separator />
|
|
99
|
+
|
|
100
|
+
### loadFile()
|
|
101
|
+
|
|
102
|
+
The `loadFile()` method loads cached file, which was previously saved by `saveFile()` or `loadOrSaveFile()` methods.
|
|
103
|
+
|
|
104
|
+
```ts expandable
|
|
105
|
+
loadFile(uid: string): Promise<IFile>;
|
|
106
|
+
// show-more
|
|
107
|
+
interface IFile {
|
|
108
|
+
filePath: string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
#### Possible errors
|
|
114
|
+
|
|
115
|
+
The method throws an error if the uid does not exists
|
|
116
|
+
|
|
117
|
+
<Separator />
|
|
118
|
+
|
|
119
|
+
### loadOrSaveFile()
|
|
120
|
+
|
|
121
|
+
The loadOrSaveFile() method loads the file from the cache, or downloads it if it's not already cached.
|
|
122
|
+
|
|
123
|
+
```ts expandable
|
|
124
|
+
loadOrSaveFile(uid: string, uri: string, headers?: {
|
|
125
|
+
[key: string]: string;
|
|
126
|
+
}): Promise<IFile>;
|
|
127
|
+
// show-more
|
|
128
|
+
interface IFile {
|
|
129
|
+
filePath: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
<Separator />
|
|
135
|
+
|
|
136
|
+
### saveContent()
|
|
137
|
+
|
|
138
|
+
The `saveContent()` method saves a string value to the cache.
|
|
139
|
+
|
|
140
|
+
```ts expandable
|
|
141
|
+
saveContent(uid: string, content: string): Promise<void>;
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
<Separator />
|
|
145
|
+
|
|
146
|
+
### saveFile()
|
|
147
|
+
|
|
148
|
+
The `saveFile()` method downloads file from `uri` and saves it to the offline cache.
|
|
149
|
+
|
|
150
|
+
:::warning
|
|
151
|
+
|
|
152
|
+
`uid` should have the same file extension (e.g.: mp4, svg, jpg) as the original file.
|
|
153
|
+
|
|
154
|
+
:::
|
|
155
|
+
|
|
156
|
+
```ts expandable
|
|
157
|
+
saveFile(uid: string, uri: string, headers?: {
|
|
158
|
+
[key: string]: string;
|
|
159
|
+
}): Promise<void>;
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
#### Possible errors
|
|
163
|
+
|
|
164
|
+
The method throws an error if the network request fails or a file with the same uid is already cached
|
|
165
|
+
|
|
166
|
+
<Separator />
|
|
167
|
+
|
|
168
|
+
### validateChecksumFile()
|
|
169
|
+
|
|
170
|
+
The `validateChecksumFile()` method validates whether the file, specified by `uid`, has the correct checksum.
|
|
171
|
+
|
|
172
|
+
```ts expandable
|
|
173
|
+
validateChecksumFile(uid: string, hash: string, hashType: HashAlgorithm): Promise<boolean>;
|
|
174
|
+
// show-more
|
|
175
|
+
type HashAlgorithm = 'md5' | 'sha1' | 'sha256' | 'sha384' | 'sha512' | 'crc32' | AnyString;
|
|
176
|
+
|
|
177
|
+
type AnyString = string & {};
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
#### Possible errors
|
|
182
|
+
|
|
183
|
+
The method throws an error if the uid does not exist or the hashing algorithm is not supported.
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# offline
|
|
2
|
+
|
|
3
|
+
The `sos.offline` API groups together methods for storing and using JS, CSS and font files.
|
|
4
|
+
|
|
5
|
+
:::warning
|
|
6
|
+
|
|
7
|
+
Emulator has certain limitations while handling offline files. [Read more here](https://docs.signageos.io/hc/en-us/articles/4405238997138)
|
|
8
|
+
|
|
9
|
+
:::
|
|
10
|
+
|
|
11
|
+
## Methods
|
|
12
|
+
|
|
13
|
+
### addFile()
|
|
14
|
+
|
|
15
|
+
The `addFile()` method downloads the specified file and stores it locally.
|
|
16
|
+
|
|
17
|
+
```ts expandable
|
|
18
|
+
addFile(file: ISaveFile): Promise<void>;
|
|
19
|
+
// show-more
|
|
20
|
+
interface ISaveFile {
|
|
21
|
+
uid: string;
|
|
22
|
+
uri: string;
|
|
23
|
+
type: IFileType;
|
|
24
|
+
headers?: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
flags?: IFlag[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type IFileType = 'javascript' | 'css' | 'video';
|
|
31
|
+
|
|
32
|
+
interface IFlag {
|
|
33
|
+
type: 'append';
|
|
34
|
+
element: IElement;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface IElement {
|
|
38
|
+
uid: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
#### Example
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
await sos.offline.addFile({
|
|
47
|
+
// Source URL
|
|
48
|
+
uri: 'https://code.jquery.com/jquery-3.7.1.slim.min.js',
|
|
49
|
+
// Unique identifier of the resource
|
|
50
|
+
uid: 'jquery-3.7.1.slim.min.js',
|
|
51
|
+
// Indicate that the downloaded file is a JavaScript file
|
|
52
|
+
type: sos.offline.types.javascript,
|
|
53
|
+
// After the file is downloaded, it will be appended to document.body
|
|
54
|
+
flags: [sos.offline.flags.append(document.body)],
|
|
55
|
+
});
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
<Separator />
|
|
59
|
+
|
|
60
|
+
### addFiles()
|
|
61
|
+
|
|
62
|
+
The `addFiles()` method downloads the specified files and stores them locally. The order in which the files are downloaded and stored is **not** guaranteed.
|
|
63
|
+
|
|
64
|
+
```ts expandable
|
|
65
|
+
addFiles(files: ISaveFile[]): Promise<void[]>;
|
|
66
|
+
// show-more
|
|
67
|
+
interface ISaveFile {
|
|
68
|
+
uid: string;
|
|
69
|
+
uri: string;
|
|
70
|
+
type: IFileType;
|
|
71
|
+
headers?: {
|
|
72
|
+
[key: string]: string;
|
|
73
|
+
};
|
|
74
|
+
flags?: IFlag[];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
type IFileType = 'javascript' | 'css' | 'video';
|
|
78
|
+
|
|
79
|
+
interface IFlag {
|
|
80
|
+
type: 'append';
|
|
81
|
+
element: IElement;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
interface IElement {
|
|
85
|
+
uid: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
#### Example
|
|
91
|
+
|
|
92
|
+
```ts
|
|
93
|
+
await sos.offline.addFile([{
|
|
94
|
+
uri: 'https://unpkg.com/normalize.css@8.0.1/normalize.css',
|
|
95
|
+
uid: 'normalize.css',
|
|
96
|
+
type: sos.offline.types.css,
|
|
97
|
+
flags: [sos.offline.flags.append(document.head)],
|
|
98
|
+
}, {
|
|
99
|
+
uri: 'https://code.jquery.com/jquery-3.7.1.slim.min.js',
|
|
100
|
+
uid: 'jquery-3.7.1.slim.min.js',
|
|
101
|
+
type: sos.offline.types.javascript,
|
|
102
|
+
flags: [sos.offline.flags.append(document.body)],
|
|
103
|
+
}]);
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
<Separator />
|
|
107
|
+
|
|
108
|
+
### addFilesSync()
|
|
109
|
+
|
|
110
|
+
The `addFilesSync()` method downloads the specified files and stores them locally. The order in which the files are downloaded and stored **is** guaranteed.
|
|
111
|
+
|
|
112
|
+
```ts expandable
|
|
113
|
+
addFilesSync(files: ISaveFile[]): Promise<void>;
|
|
114
|
+
// show-more
|
|
115
|
+
interface ISaveFile {
|
|
116
|
+
uid: string;
|
|
117
|
+
uri: string;
|
|
118
|
+
type: IFileType;
|
|
119
|
+
headers?: {
|
|
120
|
+
[key: string]: string;
|
|
121
|
+
};
|
|
122
|
+
flags?: IFlag[];
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
type IFileType = 'javascript' | 'css' | 'video';
|
|
126
|
+
|
|
127
|
+
interface IFlag {
|
|
128
|
+
type: 'append';
|
|
129
|
+
element: IElement;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
interface IElement {
|
|
133
|
+
uid: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
<Separator />
|
|
139
|
+
|
|
140
|
+
### addFont()
|
|
141
|
+
|
|
142
|
+
The `addFont()` method downloads the specified file and stores it locally. You should use this method for loading fonts instead of
|
|
143
|
+
using `addFile()`, because it also generates appropriate font-face definition.
|
|
144
|
+
|
|
145
|
+
```ts expandable
|
|
146
|
+
addFont(font: IAddFont): Promise<void>;
|
|
147
|
+
// show-more
|
|
148
|
+
interface IAddFont extends IFontFaceProperties {
|
|
149
|
+
uid: string;
|
|
150
|
+
append: HTMLElement;
|
|
151
|
+
formats: IFontFormats;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
interface IFontFormats {
|
|
155
|
+
woff2: string;
|
|
156
|
+
eot?: string;
|
|
157
|
+
woff?: string;
|
|
158
|
+
ttf?: string;
|
|
159
|
+
svg?: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
interface IFontFaceProperties {
|
|
163
|
+
fontFamily: string;
|
|
164
|
+
fontStretch?: string;
|
|
165
|
+
fontStyle?: IFontStyle;
|
|
166
|
+
fontWeight?: string;
|
|
167
|
+
unicodeRange?: string;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
type IFontStyle = `normal` | `italic` | `oblique` | `initial` | `inherit` | AnyString;
|
|
171
|
+
|
|
172
|
+
type AnyString = string & {};
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
#### Params
|
|
177
|
+
|
|
178
|
+
| Name | Type | Description |
|
|
179
|
+
|----------------------------------|----------------|-----------------------------------------------------------------------------------------------------|
|
|
180
|
+
| `font.uid` | `string` | Unique file identifier is used for later file retrieval, must contain a-z,A-Z,0-9 and . characters. |
|
|
181
|
+
| `font.append` | `HTMLElement` | Reference to HTMLElement where the generated font-face will resist. |
|
|
182
|
+
| `font.fontFamily` | `string` | Font family that can be referenced from your CSS. |
|
|
183
|
+
| `font.formats` | `IFontFormats` | URI where these formats will be downloaded from. |
|
|
184
|
+
| `font.fontStretch` *(optional)* | `string` | Allows you to make text wider or narrower. |
|
|
185
|
+
| `font.fontStyle` *(optional)* | `IFontStyle` | Specifies the font style for a text. (Either `normal`, `italic`, `oblique`, `initial` or `inherit`) |
|
|
186
|
+
| `font.fontWeight` *(optional)* | `string` | Sets how thick or thin characters in text should be displayed |
|
|
187
|
+
| `font.unicodeRange` *(optional)* | `string` | Defines the range of unicode characters the font supports, default value is "U+0-10FFFF" |
|
|
188
|
+
| `font.formats` | `IFontFormats` | Dictionary of supported formats with its files |
|
package/docs/sos/osd.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# proofOfPlay
|
|
2
|
+
|
|
3
|
+
## Methods
|
|
4
|
+
|
|
5
|
+
### recordItemPlayed()
|
|
6
|
+
|
|
7
|
+
The `recordItemPlayed()` method dispatches a `sos.command.dispatch()` command. It sends provided information about played content along
|
|
8
|
+
with additional metadata about current applet and device to signageOS.
|
|
9
|
+
|
|
10
|
+
```ts expandable
|
|
11
|
+
recordItemPlayed(options: IRecordItemOptions): Promise<void>;
|
|
12
|
+
// show-more
|
|
13
|
+
interface IRecordItemOptions {
|
|
14
|
+
name: string;
|
|
15
|
+
customId?: string;
|
|
16
|
+
type?: 'video' | 'image' | 'html' | 'custom';
|
|
17
|
+
tags?: string[];
|
|
18
|
+
fileName?: string;
|
|
19
|
+
playbackSuccess?: boolean;
|
|
20
|
+
errorMessage?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
#### Example
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
await sos.proofOfPlay.recordItemPlayed({
|
|
29
|
+
name: 'generic-brand-christmas-coffee-ad',
|
|
30
|
+
customId: 'dBE43bFB3312VFfvd34bgGHJVV334cd2',
|
|
31
|
+
type: 'video',
|
|
32
|
+
tags: ['generic-brand', 'christmas'],
|
|
33
|
+
fileName: 'coffee.mp4',
|
|
34
|
+
playbackSuccess: false,
|
|
35
|
+
errorMessage: 'Unsupported framerate 60fps',
|
|
36
|
+
});
|
|
37
|
+
```
|