@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.
Files changed (457) hide show
  1. package/dist/bundle.js +5 -5
  2. package/dist/bundle.js.map +1 -1
  3. package/docs/fpath/index.md +316 -0
  4. package/docs/index.md +18 -85
  5. package/docs/sos/browser.md +210 -0
  6. package/docs/sos/command.md +68 -0
  7. package/docs/sos/debug.md +25 -0
  8. package/docs/sos/deviceInfo.md +49 -0
  9. package/docs/sos/display.md +21 -0
  10. package/docs/sos/fileSystem.md +594 -0
  11. package/docs/sos/hardware/barcodeScanner.md +40 -0
  12. package/docs/sos/hardware/index.md +64 -0
  13. package/docs/sos/hardware/led.md +14 -0
  14. package/docs/sos/index.md +82 -0
  15. package/docs/sos/input.md +73 -0
  16. package/docs/sos/monitors.md +21 -0
  17. package/docs/sos/native/index.md +5 -0
  18. package/docs/sos/native/mdc.md +240 -0
  19. package/docs/sos/offline/cache.md +183 -0
  20. package/docs/sos/offline/index.md +188 -0
  21. package/docs/sos/osd.md +13 -0
  22. package/docs/sos/proofOfPlay.md +37 -0
  23. package/docs/sos/stream.md +960 -0
  24. package/docs/sos/sync.md +298 -0
  25. package/docs/sos/video.md +285 -0
  26. package/docs/sos_management/app.md +102 -0
  27. package/docs/sos_management/audio.md +29 -0
  28. package/docs/sos_management/debug.md +33 -0
  29. package/docs/sos_management/firmware.md +86 -0
  30. package/docs/sos_management/index.md +212 -0
  31. package/docs/sos_management/network.md +197 -0
  32. package/docs/sos_management/os.md +54 -0
  33. package/docs/sos_management/package.md +33 -0
  34. package/docs/sos_management/power.md +136 -0
  35. package/docs/sos_management/proxy.md +41 -0
  36. package/docs/sos_management/remoteControl.md +72 -0
  37. package/docs/sos_management/screen.md +198 -0
  38. package/docs/sos_management/security.md +47 -0
  39. package/docs/sos_management/time.md +101 -0
  40. package/docs/sos_management/wifi.md +366 -0
  41. package/es6/FrontApplet/Browser/Browser.d.ts +61 -8
  42. package/es6/FrontApplet/Browser/Browser.js +92 -40
  43. package/es6/FrontApplet/Browser/Browser.js.map +1 -1
  44. package/es6/FrontApplet/Browser/IOpenLinkOptions.d.ts +2 -2
  45. package/es6/FrontApplet/Browser/events.d.ts +1 -1
  46. package/es6/FrontApplet/Browser/events.js +2 -2
  47. package/es6/FrontApplet/Browser/events.js.map +1 -1
  48. package/es6/FrontApplet/Browser/messages.d.ts +2 -2
  49. package/es6/FrontApplet/Command/Command.d.ts +37 -3
  50. package/es6/FrontApplet/Command/Command.js +52 -23
  51. package/es6/FrontApplet/Command/Command.js.map +1 -1
  52. package/es6/FrontApplet/Command/ICommandEvent.d.ts +6 -2
  53. package/es6/FrontApplet/Connect/Connect.d.ts +19 -0
  54. package/es6/FrontApplet/Connect/Connect.js +162 -0
  55. package/es6/FrontApplet/Connect/Connect.js.map +1 -0
  56. package/es6/FrontApplet/Connect/IConnectMessage.d.ts +4 -0
  57. package/es6/FrontApplet/{Stream/streamListeners.js → Connect/IConnectMessage.js} +1 -1
  58. package/es6/FrontApplet/Connect/IConnectMessage.js.map +1 -0
  59. package/es6/FrontApplet/Debug/Debug.d.ts +15 -1
  60. package/es6/FrontApplet/Debug/Debug.js +28 -18
  61. package/es6/FrontApplet/Debug/Debug.js.map +1 -1
  62. package/es6/FrontApplet/Debug/debugDecorator.d.ts +3 -3
  63. package/es6/FrontApplet/Debug/debugDecorator.js +15 -9
  64. package/es6/FrontApplet/Debug/debugDecorator.js.map +1 -1
  65. package/es6/FrontApplet/DeviceInfo/DeviceInfo.d.ts +23 -0
  66. package/es6/FrontApplet/DeviceInfo/DeviceInfo.js +36 -27
  67. package/es6/FrontApplet/DeviceInfo/DeviceInfo.js.map +1 -1
  68. package/es6/FrontApplet/Dimensions/coordinationsHelper.js +1 -2
  69. package/es6/FrontApplet/Dimensions/coordinationsHelper.js.map +1 -1
  70. package/es6/FrontApplet/Display/Display.d.ts +25 -3
  71. package/es6/FrontApplet/Display/Display.js +35 -19
  72. package/es6/FrontApplet/Display/Display.js.map +1 -1
  73. package/es6/FrontApplet/Display/IDisplay.d.ts +3 -1
  74. package/es6/FrontApplet/Error/AppletCommandError.js +12 -3
  75. package/es6/FrontApplet/Error/AppletCommandError.js.map +1 -1
  76. package/es6/FrontApplet/Error/AppletError.js +10 -2
  77. package/es6/FrontApplet/Error/AppletError.js.map +1 -1
  78. package/es6/FrontApplet/Error/AppletHardwareError.js +12 -3
  79. package/es6/FrontApplet/Error/AppletHardwareError.js.map +1 -1
  80. package/es6/FrontApplet/Error/AppletOfflineCacheError.js +10 -2
  81. package/es6/FrontApplet/Error/AppletOfflineCacheError.js.map +1 -1
  82. package/es6/FrontApplet/Error/AppletResourcesError.js +12 -3
  83. package/es6/FrontApplet/Error/AppletResourcesError.js.map +1 -1
  84. package/es6/FrontApplet/Error/AppletSecurityError.js +12 -3
  85. package/es6/FrontApplet/Error/AppletSecurityError.js.map +1 -1
  86. package/es6/FrontApplet/Error/AppletStreamError.js +10 -2
  87. package/es6/FrontApplet/Error/AppletStreamError.js.map +1 -1
  88. package/es6/FrontApplet/Error/AppletVideoError.js +12 -3
  89. package/es6/FrontApplet/Error/AppletVideoError.js.map +1 -1
  90. package/es6/FrontApplet/Error/ErrorCodesMessages.js +4 -1
  91. package/es6/FrontApplet/Error/ErrorCodesMessages.js.map +1 -1
  92. package/es6/FrontApplet/Error/ErrorSuggestions.js +1 -0
  93. package/es6/FrontApplet/Error/ErrorSuggestions.js.map +1 -1
  94. package/es6/FrontApplet/Error/FileNotFoundError.js +10 -2
  95. package/es6/FrontApplet/Error/FileNotFoundError.js.map +1 -1
  96. package/es6/FrontApplet/Error/SosError.js +5 -1
  97. package/es6/FrontApplet/Error/SosError.js.map +1 -1
  98. package/es6/FrontApplet/Error/errorHelper.js +5 -6
  99. package/es6/FrontApplet/Error/errorHelper.js.map +1 -1
  100. package/es6/FrontApplet/Exchange/Exchange.js +7 -14
  101. package/es6/FrontApplet/Exchange/Exchange.js.map +1 -1
  102. package/es6/FrontApplet/FileSystem/FileSystem.d.ts +156 -1
  103. package/es6/FrontApplet/FileSystem/FileSystem.js +318 -195
  104. package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
  105. package/es6/FrontApplet/FileSystem/HashAlgorithm.d.ts +2 -0
  106. package/es6/FrontApplet/{Input/IKeyUpEventListener.js → FileSystem/HashAlgorithm.js} +1 -1
  107. package/es6/FrontApplet/FileSystem/HashAlgorithm.js.map +1 -0
  108. package/es6/FrontApplet/Font/fontFaceGenerator.js.map +1 -1
  109. package/es6/FrontApplet/FrontApplet.d.ts +57 -4
  110. package/es6/FrontApplet/FrontApplet.js +129 -49
  111. package/es6/FrontApplet/FrontApplet.js.map +1 -1
  112. package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.d.ts +2 -0
  113. package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js +35 -54
  114. package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js.map +1 -1
  115. package/es6/FrontApplet/Hardware/Hardware.d.ts +16 -2
  116. package/es6/FrontApplet/Hardware/Hardware.js +31 -19
  117. package/es6/FrontApplet/Hardware/Hardware.js.map +1 -1
  118. package/es6/FrontApplet/Hardware/IHardware.d.ts +2 -2
  119. package/es6/FrontApplet/Hardware/ISerialPort.d.ts +16 -0
  120. package/es6/FrontApplet/Hardware/ISerialPortOptions.js +1 -1
  121. package/es6/FrontApplet/Hardware/ISerialPortOptions.js.map +1 -1
  122. package/es6/FrontApplet/Hardware/Led/Led.d.ts +8 -0
  123. package/es6/FrontApplet/Hardware/Led/Led.js +22 -20
  124. package/es6/FrontApplet/Hardware/Led/Led.js.map +1 -1
  125. package/es6/FrontApplet/Hardware/SerialPort.d.ts +1 -1
  126. package/es6/FrontApplet/Hardware/SerialPort.js +15 -23
  127. package/es6/FrontApplet/Hardware/SerialPort.js.map +1 -1
  128. package/es6/FrontApplet/Hash/generator.js +2 -3
  129. package/es6/FrontApplet/Hash/generator.js.map +1 -1
  130. package/es6/FrontApplet/Iframe/Iframe.d.ts +9 -8
  131. package/es6/FrontApplet/Iframe/Iframe.js +10 -0
  132. package/es6/FrontApplet/Iframe/Iframe.js.map +1 -1
  133. package/es6/FrontApplet/Input/IInput.d.ts +1 -2
  134. package/es6/FrontApplet/Input/IKeyUpEvent.d.ts +32 -2
  135. package/es6/FrontApplet/Input/IKeyUpEvent.js +32 -0
  136. package/es6/FrontApplet/Input/IKeyUpEvent.js.map +1 -1
  137. package/es6/FrontApplet/Input/Input.d.ts +19 -3
  138. package/es6/FrontApplet/Input/Input.js +44 -23
  139. package/es6/FrontApplet/Input/Input.js.map +1 -1
  140. package/es6/FrontApplet/Management/App/App.d.ts +48 -10
  141. package/es6/FrontApplet/Management/App/App.js +45 -30
  142. package/es6/FrontApplet/Management/App/App.js.map +1 -1
  143. package/es6/FrontApplet/Management/App/IApp.d.ts +3 -1
  144. package/es6/FrontApplet/Management/Audio/Audio.d.ts +16 -0
  145. package/es6/FrontApplet/Management/Audio/Audio.js +30 -22
  146. package/es6/FrontApplet/Management/Audio/Audio.js.map +1 -1
  147. package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.d.ts +4 -0
  148. package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.js +15 -22
  149. package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.js.map +1 -1
  150. package/es6/FrontApplet/Management/AutoRecovery/IAutoRecovery.d.ts +1 -1
  151. package/es6/FrontApplet/Management/AutoRecovery/IAutoRecovery.js +5 -2
  152. package/es6/FrontApplet/Management/AutoRecovery/IAutoRecovery.js.map +1 -1
  153. package/es6/FrontApplet/Management/Debug/Debug.d.ts +19 -0
  154. package/es6/FrontApplet/Management/Debug/Debug.js +37 -30
  155. package/es6/FrontApplet/Management/Debug/Debug.js.map +1 -1
  156. package/es6/FrontApplet/Management/Firmware/Firmware.d.ts +37 -10
  157. package/es6/FrontApplet/Management/Firmware/Firmware.js +34 -30
  158. package/es6/FrontApplet/Management/Firmware/Firmware.js.map +1 -1
  159. package/es6/FrontApplet/Management/Firmware/IFirmware.d.ts +1 -2
  160. package/es6/FrontApplet/Management/IManagement.d.ts +3 -1
  161. package/es6/FrontApplet/Management/Management.d.ts +106 -15
  162. package/es6/FrontApplet/Management/Management.js +191 -113
  163. package/es6/FrontApplet/Management/Management.js.map +1 -1
  164. package/es6/FrontApplet/Management/Network/INetworkInfo.d.ts +2 -2
  165. package/es6/FrontApplet/Management/Network/Network.d.ts +56 -8
  166. package/es6/FrontApplet/Management/Network/Network.js +86 -68
  167. package/es6/FrontApplet/Management/Network/Network.js.map +1 -1
  168. package/es6/FrontApplet/Management/OS/OS.d.ts +20 -0
  169. package/es6/FrontApplet/Management/OS/OS.js +34 -27
  170. package/es6/FrontApplet/Management/OS/OS.js.map +1 -1
  171. package/es6/FrontApplet/Management/Package/Package.d.ts +20 -0
  172. package/es6/FrontApplet/Management/Package/Package.js +37 -22
  173. package/es6/FrontApplet/Management/Package/Package.js.map +1 -1
  174. package/es6/FrontApplet/Management/PeerRecovery/IPeerRecovery.d.ts +1 -1
  175. package/es6/FrontApplet/Management/PeerRecovery/IPeerRecovery.js +5 -2
  176. package/es6/FrontApplet/Management/PeerRecovery/IPeerRecovery.js.map +1 -1
  177. package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.d.ts +4 -0
  178. package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.js +15 -22
  179. package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.js.map +1 -1
  180. package/es6/FrontApplet/Management/Power/Power.d.ts +64 -0
  181. package/es6/FrontApplet/Management/Power/Power.js +160 -115
  182. package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
  183. package/es6/FrontApplet/Management/Proxy/Proxy.d.ts +21 -0
  184. package/es6/FrontApplet/Management/Proxy/Proxy.js +41 -35
  185. package/es6/FrontApplet/Management/Proxy/Proxy.js.map +1 -1
  186. package/es6/FrontApplet/Management/RemoteControl/RemoteControl.d.ts +43 -0
  187. package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js +63 -39
  188. package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js.map +1 -1
  189. package/es6/FrontApplet/Management/Screen/IOrientation.d.ts +1 -1
  190. package/es6/FrontApplet/Management/Screen/Screen.d.ts +127 -0
  191. package/es6/FrontApplet/Management/Screen/Screen.js +197 -89
  192. package/es6/FrontApplet/Management/Screen/Screen.js.map +1 -1
  193. package/es6/FrontApplet/Management/Security/Security.d.ts +20 -5
  194. package/es6/FrontApplet/Management/Security/Security.js +33 -31
  195. package/es6/FrontApplet/Management/Security/Security.js.map +1 -1
  196. package/es6/FrontApplet/Management/Time/Time.d.ts +31 -5
  197. package/es6/FrontApplet/Management/Time/Time.js +49 -40
  198. package/es6/FrontApplet/Management/Time/Time.js.map +1 -1
  199. package/es6/FrontApplet/Management/Wifi/IWifiEvent.d.ts +19 -1
  200. package/es6/FrontApplet/Management/Wifi/IWifiEvent.js +19 -1
  201. package/es6/FrontApplet/Management/Wifi/IWifiEvent.js.map +1 -1
  202. package/es6/FrontApplet/Management/Wifi/Wifi.d.ts +108 -7
  203. package/es6/FrontApplet/Management/Wifi/Wifi.js +162 -86
  204. package/es6/FrontApplet/Management/Wifi/Wifi.js.map +1 -1
  205. package/es6/FrontApplet/Management/helpers/DeviceHelper.js +2 -2
  206. package/es6/FrontApplet/Management/helpers/DeviceHelper.js.map +1 -1
  207. package/es6/FrontApplet/Management/helpers/ProprietaryTimerHelper.d.ts +1 -1
  208. package/es6/FrontApplet/Management/helpers/SecurityHelper.js +8 -6
  209. package/es6/FrontApplet/Management/helpers/SecurityHelper.js.map +1 -1
  210. package/es6/FrontApplet/Management/helpers/TimerHelper.js +2 -2
  211. package/es6/FrontApplet/Management/helpers/TimerHelper.js.map +1 -1
  212. package/es6/FrontApplet/Management/helpers/UpgradeHelper.js +35 -3
  213. package/es6/FrontApplet/Management/helpers/UpgradeHelper.js.map +1 -1
  214. package/es6/FrontApplet/Management/helpers/VideoHelper.js +1 -1
  215. package/es6/FrontApplet/Management/helpers/VideoHelper.js.map +1 -1
  216. package/es6/FrontApplet/Monitors/Monitors.d.ts +9 -0
  217. package/es6/FrontApplet/Monitors/Monitors.js +16 -16
  218. package/es6/FrontApplet/Monitors/Monitors.js.map +1 -1
  219. package/es6/FrontApplet/NativeCommands/MDC/CodesMDC.js +1 -1
  220. package/es6/FrontApplet/NativeCommands/MDC/CodesMDC.js.map +1 -1
  221. package/es6/FrontApplet/NativeCommands/MDC/Mdc.d.ts +52 -3
  222. package/es6/FrontApplet/NativeCommands/MDC/Mdc.js +79 -38
  223. package/es6/FrontApplet/NativeCommands/MDC/Mdc.js.map +1 -1
  224. package/es6/FrontApplet/NativeCommands/NativeCommands.d.ts +4 -0
  225. package/es6/FrontApplet/NativeCommands/NativeCommands.js +12 -2
  226. package/es6/FrontApplet/NativeCommands/NativeCommands.js.map +1 -1
  227. package/es6/FrontApplet/OSD/OSD.d.ts +9 -0
  228. package/es6/FrontApplet/OSD/OSD.js +15 -15
  229. package/es6/FrontApplet/OSD/OSD.js.map +1 -1
  230. package/es6/FrontApplet/Offline/Cache/Cache.d.ts +91 -2
  231. package/es6/FrontApplet/Offline/Cache/Cache.js +193 -131
  232. package/es6/FrontApplet/Offline/Cache/Cache.js.map +1 -1
  233. package/es6/FrontApplet/Offline/Flags/AppendFlagController.d.ts +1 -1
  234. package/es6/FrontApplet/Offline/Flags/AppendFlagController.js +18 -26
  235. package/es6/FrontApplet/Offline/Flags/AppendFlagController.js.map +1 -1
  236. package/es6/FrontApplet/Offline/Flags/IFlags.d.ts +5 -5
  237. package/es6/FrontApplet/Offline/IAddFont.d.ts +3 -1
  238. package/es6/FrontApplet/Offline/IAddFont.js.map +1 -1
  239. package/es6/FrontApplet/Offline/IFileType.d.ts +1 -1
  240. package/es6/FrontApplet/Offline/ISaveFile.js +5 -2
  241. package/es6/FrontApplet/Offline/ISaveFile.js.map +1 -1
  242. package/es6/FrontApplet/Offline/LoadFile/CssLoadFileController.js +2 -1
  243. package/es6/FrontApplet/Offline/LoadFile/CssLoadFileController.js.map +1 -1
  244. package/es6/FrontApplet/Offline/LoadFile/JavascriptLoadFileController.js +2 -1
  245. package/es6/FrontApplet/Offline/LoadFile/JavascriptLoadFileController.js.map +1 -1
  246. package/es6/FrontApplet/Offline/Offline.d.ts +79 -8
  247. package/es6/FrontApplet/Offline/Offline.js +119 -59
  248. package/es6/FrontApplet/Offline/Offline.js.map +1 -1
  249. package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.d.ts +19 -1
  250. package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js +41 -29
  251. package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js.map +1 -1
  252. package/es6/FrontApplet/Sensors/Proximity.d.ts +4 -3
  253. package/es6/FrontApplet/Sensors/Proximity.js +13 -5
  254. package/es6/FrontApplet/Sensors/Proximity.js.map +1 -1
  255. package/es6/FrontApplet/Sensors/Sensors.d.ts +3 -1
  256. package/es6/FrontApplet/Sensors/Sensors.js +9 -2
  257. package/es6/FrontApplet/Sensors/Sensors.js.map +1 -1
  258. package/es6/FrontApplet/Stream/IStream.d.ts +10 -10
  259. package/es6/FrontApplet/Stream/IStreamMessage.d.ts +1 -1
  260. package/es6/FrontApplet/Stream/IStreamTrackInfo.d.ts +2 -2
  261. package/es6/FrontApplet/Stream/Stream.d.ts +130 -15
  262. package/es6/FrontApplet/Stream/Stream.js +262 -163
  263. package/es6/FrontApplet/Stream/Stream.js.map +1 -1
  264. package/es6/FrontApplet/Stream/StreamProtocol.js.map +1 -1
  265. package/es6/FrontApplet/Stream/streamEvents.d.ts +1 -1
  266. package/es6/FrontApplet/Sync/Sync.d.ts +152 -6
  267. package/es6/FrontApplet/Sync/Sync.js +199 -115
  268. package/es6/FrontApplet/Sync/Sync.js.map +1 -1
  269. package/es6/FrontApplet/Sync/syncEvents.d.ts +3 -1
  270. package/es6/FrontApplet/Sync/syncMessages.js +1 -1
  271. package/es6/FrontApplet/Sync/syncMessages.js.map +1 -1
  272. package/es6/FrontApplet/Timing/Timing.d.ts +1 -0
  273. package/es6/FrontApplet/Timing/Timing.js +9 -2
  274. package/es6/FrontApplet/Timing/Timing.js.map +1 -1
  275. package/es6/FrontApplet/Timing/Triggers/ITimingTriggersMessage.d.ts +1 -1
  276. package/es6/FrontApplet/Timing/Triggers/Triggers.d.ts +9 -0
  277. package/es6/FrontApplet/Timing/Triggers/Triggers.js +16 -18
  278. package/es6/FrontApplet/Timing/Triggers/Triggers.js.map +1 -1
  279. package/es6/FrontApplet/Touch/Touch.d.ts +3 -0
  280. package/es6/FrontApplet/Touch/Touch.js +13 -3
  281. package/es6/FrontApplet/Touch/Touch.js.map +1 -1
  282. package/es6/FrontApplet/Validate/Validate.d.ts +5 -5
  283. package/es6/FrontApplet/Validate/Validate.js +27 -24
  284. package/es6/FrontApplet/Validate/Validate.js.map +1 -1
  285. package/es6/FrontApplet/Validate/ValidateObjectInterface.js +7 -2
  286. package/es6/FrontApplet/Validate/ValidateObjectInterface.js.map +1 -1
  287. package/es6/FrontApplet/Video/IOptions.d.ts +8 -1
  288. package/es6/FrontApplet/Video/IVideo.d.ts +8 -8
  289. package/es6/FrontApplet/Video/IVideoEvent.d.ts +1 -1
  290. package/es6/FrontApplet/Video/IVideoEvent.js +3 -3
  291. package/es6/FrontApplet/Video/IVideoEvent.js.map +1 -1
  292. package/es6/FrontApplet/Video/IVideoMessage.d.ts +1 -1
  293. package/es6/FrontApplet/Video/Video.d.ts +84 -12
  294. package/es6/FrontApplet/Video/Video.js +196 -137
  295. package/es6/FrontApplet/Video/Video.js.map +1 -1
  296. package/es6/FrontApplet/createFrontApplet.js +5 -2
  297. package/es6/FrontApplet/createFrontApplet.js.map +1 -1
  298. package/es6/Monitoring/Console/consoleCommands.d.ts +1 -1
  299. package/es6/Monitoring/Display/displayCommands.d.ts +1 -1
  300. package/es6/Monitoring/Display/handleDisplayRequests.d.ts +2 -2
  301. package/es6/Monitoring/Display/handleDisplayRequests.js +5 -15
  302. package/es6/Monitoring/Display/handleDisplayRequests.js.map +1 -1
  303. package/es6/Monitoring/EmptyObject.d.ts +1 -1
  304. package/es6/Monitoring/FileSystem/fileSystemCommands.d.ts +10 -1
  305. package/es6/Monitoring/FileSystem/fileSystemCommands.js +3 -1
  306. package/es6/Monitoring/FileSystem/fileSystemCommands.js.map +1 -1
  307. package/es6/Monitoring/FileSystem/handleFileSystemRequests.d.ts +2 -2
  308. package/es6/Monitoring/FileSystem/handleFileSystemRequests.js +41 -45
  309. package/es6/Monitoring/FileSystem/handleFileSystemRequests.js.map +1 -1
  310. package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.d.ts +2 -2
  311. package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.js +4 -14
  312. package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.js.map +1 -1
  313. package/es6/Monitoring/Management/App/applicationCommands.d.ts +1 -1
  314. package/es6/Monitoring/Management/App/handleApplicationRequests.d.ts +2 -2
  315. package/es6/Monitoring/Management/App/handleApplicationRequests.js +9 -19
  316. package/es6/Monitoring/Management/App/handleApplicationRequests.js.map +1 -1
  317. package/es6/Monitoring/Management/Audio/audioCommands.d.ts +1 -1
  318. package/es6/Monitoring/Management/Audio/handleAudioRequests.d.ts +2 -2
  319. package/es6/Monitoring/Management/Audio/handleAudioRequests.js +7 -17
  320. package/es6/Monitoring/Management/Audio/handleAudioRequests.js.map +1 -1
  321. package/es6/Monitoring/Management/AutoRecovery/autoRecoveryCommands.d.ts +1 -1
  322. package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.d.ts +2 -2
  323. package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.js +7 -17
  324. package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.js.map +1 -1
  325. package/es6/Monitoring/Management/Debug/debugCommands.d.ts +1 -1
  326. package/es6/Monitoring/Management/Debug/handleDebugRequests.d.ts +2 -2
  327. package/es6/Monitoring/Management/Debug/handleDebugRequests.js +9 -19
  328. package/es6/Monitoring/Management/Debug/handleDebugRequests.js.map +1 -1
  329. package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.d.ts +2 -2
  330. package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.js +11 -21
  331. package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.js.map +1 -1
  332. package/es6/Monitoring/Management/Network/managementNetworkCommands.d.ts +1 -1
  333. package/es6/Monitoring/Management/Os/managementOsRequests.d.ts +2 -2
  334. package/es6/Monitoring/Management/Os/managementOsRequests.js +9 -19
  335. package/es6/Monitoring/Management/Os/managementOsRequests.js.map +1 -1
  336. package/es6/Monitoring/Management/Os/osCommands.d.ts +1 -1
  337. package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.d.ts +2 -2
  338. package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.js +7 -17
  339. package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.js.map +1 -1
  340. package/es6/Monitoring/Management/PeerRecovery/peerRecoveryCommands.d.ts +1 -1
  341. package/es6/Monitoring/Management/Power/handlePowerRequests.d.ts +2 -2
  342. package/es6/Monitoring/Management/Power/handlePowerRequests.js +19 -29
  343. package/es6/Monitoring/Management/Power/handlePowerRequests.js.map +1 -1
  344. package/es6/Monitoring/Management/Power/powerCommands.d.ts +1 -1
  345. package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.d.ts +2 -2
  346. package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.js +15 -25
  347. package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.js.map +1 -1
  348. package/es6/Monitoring/Management/RemoteControl/remoteControlCommands.d.ts +1 -1
  349. package/es6/Monitoring/Management/Screen/handleScreenRequests.d.ts +2 -2
  350. package/es6/Monitoring/Management/Screen/handleScreenRequests.js +19 -29
  351. package/es6/Monitoring/Management/Screen/handleScreenRequests.js.map +1 -1
  352. package/es6/Monitoring/Management/Screen/screenCommands.d.ts +1 -1
  353. package/es6/Monitoring/Management/Security/handleSecurityCommands.d.ts +2 -2
  354. package/es6/Monitoring/Management/Security/handleSecurityCommands.js +9 -19
  355. package/es6/Monitoring/Management/Security/handleSecurityCommands.js.map +1 -1
  356. package/es6/Monitoring/Management/Security/securityCommands.d.ts +1 -1
  357. package/es6/Monitoring/Management/Time/handleTimeCommands.d.ts +2 -2
  358. package/es6/Monitoring/Management/Time/handleTimeCommands.js +9 -19
  359. package/es6/Monitoring/Management/Time/handleTimeCommands.js.map +1 -1
  360. package/es6/Monitoring/Management/Time/timeCommands.d.ts +1 -1
  361. package/es6/Monitoring/Management/handleManagementRequests.d.ts +2 -2
  362. package/es6/Monitoring/Management/handleManagementRequests.js +23 -33
  363. package/es6/Monitoring/Management/handleManagementRequests.js.map +1 -1
  364. package/es6/Monitoring/Management/managementCommands.d.ts +1 -1
  365. package/es6/Monitoring/{Montoring.d.ts → Monitoring.d.ts} +1 -0
  366. package/es6/Monitoring/Monitoring.js +83 -0
  367. package/es6/Monitoring/Monitoring.js.map +1 -0
  368. package/es6/Monitoring/NativeCommands/handleNativeCommands.d.ts +2 -2
  369. package/es6/Monitoring/NativeCommands/handleNativeCommands.js +5 -15
  370. package/es6/Monitoring/NativeCommands/handleNativeCommands.js.map +1 -1
  371. package/es6/Monitoring/NativeCommands/nativeMdcCommands.d.ts +1 -1
  372. package/es6/Monitoring/OSD/handleOsdRequests.d.ts +2 -2
  373. package/es6/Monitoring/OSD/handleOsdRequests.js +5 -15
  374. package/es6/Monitoring/OSD/handleOsdRequests.js.map +1 -1
  375. package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.d.ts +2 -2
  376. package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.js +23 -33
  377. package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.js.map +1 -1
  378. package/es6/Monitoring/Video/handleVideoRequests.d.ts +2 -2
  379. package/es6/Monitoring/Video/handleVideoRequests.js +36 -9
  380. package/es6/Monitoring/Video/handleVideoRequests.js.map +1 -1
  381. package/es6/Monitoring/handleMonitoringRequests.d.ts +2 -2
  382. package/es6/Monitoring/handleMonitoringRequests.js +6 -16
  383. package/es6/Monitoring/handleMonitoringRequests.js.map +1 -1
  384. package/es6/Monitoring/monitoringCommands.d.ts +1 -1
  385. package/es6/Sensors/IButton.js +1 -1
  386. package/es6/Sensors/IButton.js.map +1 -1
  387. package/es6/Sensors/IRfidAntenna.d.ts +1 -1
  388. package/es6/Sensors/IRfidAntenna.js +1 -1
  389. package/es6/Sensors/IRfidAntenna.js.map +1 -1
  390. package/es6/Util/Console/enhancer.d.ts +11 -0
  391. package/es6/Util/Console/enhancer.js +23 -0
  392. package/es6/Util/Console/enhancer.js.map +1 -0
  393. package/es6/bundle.d.ts +1 -1
  394. package/es6/bundle.js +12 -5
  395. package/es6/bundle.js.map +1 -1
  396. package/es6/fpath.d.ts +1 -1
  397. package/es6/fpath.js +34 -1
  398. package/es6/fpath.js.map +1 -1
  399. package/es6/utils/types.d.ts +1 -0
  400. package/es6/{FrontApplet/Video/IVideoEventListener.js → utils/types.js} +1 -1
  401. package/es6/utils/types.js.map +1 -0
  402. package/package.json +28 -26
  403. package/CHANGELOG.md +0 -480
  404. package/docs/applet-basics.md +0 -272
  405. package/docs/content/js-applet-resources.md +0 -154
  406. package/docs/content/js-browser.md +0 -163
  407. package/docs/content/js-command.md +0 -154
  408. package/docs/content/js-debug.md +0 -36
  409. package/docs/content/js-device-info.md +0 -56
  410. package/docs/content/js-display.md +0 -56
  411. package/docs/content/js-file-system.md +0 -670
  412. package/docs/content/js-fonts.md +0 -115
  413. package/docs/content/js-hardware.md +0 -55
  414. package/docs/content/js-iframes.md +0 -66
  415. package/docs/content/js-input.md +0 -71
  416. package/docs/content/js-offline-cache-media-files.md +0 -257
  417. package/docs/content/js-offline-cache-simple-data.md +0 -129
  418. package/docs/content/js-osd.md +0 -32
  419. package/docs/content/js-proof-of-play.md +0 -60
  420. package/docs/content/js-sensors.md +0 -70
  421. package/docs/content/js-serial.md +0 -165
  422. package/docs/content/js-sync-playback.md +0 -384
  423. package/docs/content/js-video-inputs-internal-ports.md +0 -131
  424. package/docs/content/js-video-stream.md +0 -618
  425. package/docs/content/js-video.md +0 -232
  426. package/docs/management/js-management-application.md +0 -107
  427. package/docs/management/js-management-audio.md +0 -44
  428. package/docs/management/js-management-debug.md +0 -40
  429. package/docs/management/js-management-firmware.md +0 -93
  430. package/docs/management/js-management-management.md +0 -178
  431. package/docs/management/js-management-monitoring-commands.md +0 -107
  432. package/docs/management/js-management-monitors.md +0 -55
  433. package/docs/management/js-management-native-commands-mdc.md +0 -90
  434. package/docs/management/js-management-network.md +0 -223
  435. package/docs/management/js-management-os.md +0 -62
  436. package/docs/management/js-management-package.md +0 -48
  437. package/docs/management/js-management-power.md +0 -175
  438. package/docs/management/js-management-proxy.md +0 -81
  439. package/docs/management/js-management-remote-control.md +0 -58
  440. package/docs/management/js-management-screen.md +0 -225
  441. package/docs/management/js-management-security.md +0 -71
  442. package/docs/management/js-management-time.md +0 -161
  443. package/docs/management/js-management-wifi.md +0 -341
  444. package/es6/FrontApplet/Command/ICommandEventListener.d.ts +0 -6
  445. package/es6/FrontApplet/Command/ICommandEventListener.js +0 -3
  446. package/es6/FrontApplet/Command/ICommandEventListener.js.map +0 -1
  447. package/es6/FrontApplet/Input/IKeyUpEventListener.d.ts +0 -5
  448. package/es6/FrontApplet/Input/IKeyUpEventListener.js.map +0 -1
  449. package/es6/FrontApplet/Management/Firmware/FirmwareType.d.ts +0 -4
  450. package/es6/FrontApplet/Management/Firmware/FirmwareType.js +0 -9
  451. package/es6/FrontApplet/Management/Firmware/FirmwareType.js.map +0 -1
  452. package/es6/FrontApplet/Stream/streamListeners.d.ts +0 -10
  453. package/es6/FrontApplet/Stream/streamListeners.js.map +0 -1
  454. package/es6/FrontApplet/Video/IVideoEventListener.d.ts +0 -5
  455. package/es6/FrontApplet/Video/IVideoEventListener.js.map +0 -1
  456. package/es6/Monitoring/Montoring.js +0 -131
  457. package/es6/Monitoring/Montoring.js.map +0 -1
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getEnrichedStack = exports.createError = void 0;
3
+ exports.createError = createError;
4
+ exports.getEnrichedStack = getEnrichedStack;
4
5
  const NO_STACK_MSG = 'Stack trace is not available for this type of error.';
5
6
  function createError(errorTransferObject) {
6
7
  const { message } = errorTransferObject;
@@ -12,7 +13,6 @@ function createError(errorTransferObject) {
12
13
  });
13
14
  return errorToReturn;
14
15
  }
15
- exports.createError = createError;
16
16
  function getEnrichedStack(error) {
17
17
  const { type, message, code, stackTrace, pathToDocs, origin, originStack } = error;
18
18
  const suggestion = getErrorSuggestion(code, error.suggestion, pathToDocs);
@@ -29,16 +29,15 @@ function getEnrichedStack(error) {
29
29
  stringToReturn += stackTrace ? 'Stack' + ': ' + stackTrace : 'Stack' + ': ' + NO_STACK_MSG;
30
30
  return stringToReturn;
31
31
  }
32
- exports.getEnrichedStack = getEnrichedStack;
33
32
  function getErrorSuggestion(code, suggestion, pathToDocs) {
34
- const DOCS_HOST_URL = 'https://docs.signageos.io';
33
+ const DEVELOPER_DOCS_HOST_URL = 'https://developers.signageos.io';
35
34
  const BEFORE_LINK_MSG = 'More information on';
36
35
  let LINK_TO_ERROR;
37
36
  if (pathToDocs) {
38
- LINK_TO_ERROR = `${DOCS_HOST_URL}${pathToDocs}`;
37
+ LINK_TO_ERROR = `${DEVELOPER_DOCS_HOST_URL}${pathToDocs}`;
39
38
  }
40
39
  else {
41
- LINK_TO_ERROR = `${DOCS_HOST_URL}/search?key=error%20${code}`;
40
+ LINK_TO_ERROR = `${DEVELOPER_DOCS_HOST_URL}/search?key=error%20${code}`;
42
41
  }
43
42
  let suggestionToReturn = suggestion ? suggestion + '\n' : '';
44
43
  suggestionToReturn += `${BEFORE_LINK_MSG} ${LINK_TO_ERROR}`;
@@ -1 +1 @@
1
- {"version":3,"file":"errorHelper.js","sourceRoot":"","sources":["../../../src/FrontAp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C;AACvB,CAAC;AAED,SAAS,kBAAkB,CAAC,IAAY,EAAE,UAAmB,EAAE,UAAmB;IACjF,MAAM,uBAAuB,GAAG,iCAAiC,CAAC;IAClE,MAAM,eAAe,GAAG,qBAAqB,CAAC;IAC9C,IAAI,aAAqB,CAAC;IAE1B,IAAI,UAAU,EAAE,CAAC;QAChB,aAAa,GAAG,GAAG,uBAAuB,GAAG,UAAU,EAAE,CAAC;IAC3D,CAAC;SAAM,CAAC;QACP,aAAa,GAAG,GAAG,uBAAuB,uBAAuB,IAAI,EAAE,CAAC;IACzE,CAAC;IAED,IAAI,kBAAkB,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7D,kBAAkB,IAAI,GAAG,eAAe,IAAI,aAAa,EAAE,CAAC;IAE5D,OAAO,kBAAkB,CAAC;AAC3B,CAAC"}
@@ -1,29 +1,22 @@
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
- exports.createExchange = void 0;
3
+ exports.createExchange = createExchange;
13
4
  function createExchange(messagePrefix, postMessage) {
14
5
  const messageNameToType = (name) => {
15
6
  return [messagePrefix, name].join('.');
16
7
  };
17
- const typedPostMessage = (message) => __awaiter(this, void 0, void 0, function* () {
8
+ const typedPostMessage = async (message) => {
18
9
  const type = messageNameToType(message.type);
19
- message = Object.assign(Object.assign({}, message), { type });
10
+ message = {
11
+ ...message,
12
+ type,
13
+ };
20
14
  return postMessage(message);
21
- });
15
+ };
22
16
  return {
23
17
  messageNameToType,
24
18
  postMessage: typedPostMessage,
25
19
  createNamespaced: (namespace) => createExchange(messageNameToType(namespace), postMessage),
26
20
  };
27
21
  }
28
- exports.createExchange = createExchange;
29
22
  //# sourceMappingURL=Exchange.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Exchange.js","sourceRoot":"","sources":["../../../src/FrontApplet/Exchange/Exchange.ts"],"names":[],"mappings":";;;;;;;;;;;;AASA,SAAgB,cAAc,CAAY,aAAqB,EAAE,WAA8B;IAC9F,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAE,EAAE;QAC1C,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACxC,CAAC,CAAC;IACF,MAAM,gBAAgB,GAAG,CAAO,OAAiB,EAAsB,EAAE;QACxE,MAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7C,OAAO,mCACH,OAAO,KACV,IAAI,GACJ,CAAC;QACF,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC,CAAA,CAAC;IACF,OAAO;QACN,iBAAiB;QACjB,WAAW,EAAE,gBAAgB;QAC7B,gBAAgB,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,cAAc,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC;KAClG,CAAC;AACH,CAAC;AAjBD,wCAiBC"}
1
+ {"version":3,"file":"Exchange.js","sourceRoot":"","sources":["../../../src/FrontApplet/Exchange/Exchange.ts"],"names":[],"mappings":";;AASA,wCAiBC;AAjBD,SAAgB,cAAc,CAAY,aAAqB,EAAE,WAA8B;IAC9F,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAE,EAAE;QAC1C,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACxC,CAAC,CAAC;IACF,MAAM,gBAAgB,GAAG,KAAK,EAAE,OAAiB,EAAsB,EAAE;QACxE,MAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7C,OAAO,GAAG;YACT,GAAG,OAAO;YACV,IAAI;SACJ,CAAC;QACF,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC,CAAC;IACF,OAAO;QACN,iBAAiB;QACjB,WAAW,EAAE,gBAAgB;QAC7B,gBAAgB,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,cAAc,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC;KAClG,CAAC;AACH,CAAC"}
@@ -2,32 +2,187 @@ import IPostMessage from '../IPostMessage';
2
2
  import { IStorageUnit, IFilePath, IFile, IHeaders, ICopyFileOptions, IMoveFileOptions } from './types';
3
3
  import StorageUnitsChangedMessage from './StorageUnitsChangedMessage';
4
4
  import IFileSystem from './IFileSystem';
5
+ import { HashAlgorithm } from './HashAlgorithm';
6
+ /**
7
+ * The `sos.fileSystem` API groups together methods for low-level access to the file system. The File System API supports both internal and
8
+ * external storage.
9
+ *
10
+ * :::warning
11
+ *
12
+ * File System directory structure is **PERSISTENT** and is **NOT** automatically deleted through `Applet Reload` power action!
13
+ * Applet Reload only deletes `/data` directory which is reserved for simplified [Offline Cache API](./offline). Use
14
+ * `deleteFile()` to clear the device storage file system.
15
+ *
16
+ * :::
17
+ */
5
18
  export default class FileSystem implements IFileSystem {
6
19
  private messagePrefix;
7
20
  private postMessage;
8
21
  static MESSAGE_PREFIX: string;
9
22
  private eventEmitter;
23
+ /** @internal */
10
24
  constructor(messagePrefix: string, postMessage: IPostMessage<any>);
25
+ /**
26
+ * The `listStorageUnits()` method lists all available storage units. All devices always have one internal storage device (with
27
+ * `removable: false`) and zero or more external devices. The capacity values are in bytes.
28
+ */
11
29
  listStorageUnits(): Promise<IStorageUnit[]>;
30
+ /**
31
+ * A shorthand method for listing only the internal storage units (i.e. those with the `removable: false`). The capacity values are in bytes.
32
+ */
33
+ listInternalStorageUnits(): Promise<IStorageUnit[]>;
34
+ /**
35
+ * The `onStorageUnitsChanged()` method sets up a listener, which is called whenever the list of storage units changes.
36
+ */
12
37
  onStorageUnitsChanged(listener: () => void): void;
38
+ /**
39
+ * The `removeStorageUnitsChangedListener()` method removes a listener, previously added by `onStorageUnitsChanged()`
40
+ */
13
41
  removeStorageUnitsChangedListener(listener: () => void): void;
42
+ /**
43
+ * The `removeAllListeners()` method removes all listeners, previously added by `removeAllListeners()`
44
+ */
14
45
  removeAllListeners(): void;
46
+ /**
47
+ * The `listFiles()` method lists all files and directories in the specified path (nested files are not included).
48
+ *
49
+ * @throws If the path does not exist or it is a file.
50
+ */
15
51
  listFiles(directoryPath: IFilePath): Promise<IFilePath[]>;
52
+ /**
53
+ * The `exists()` method checks whether a file or directory exists.
54
+ */
16
55
  exists(filePath: IFilePath): Promise<boolean>;
56
+ /**
57
+ * The `getFile()` method returns runtime information about a file path, such as local url, last modified date or size.
58
+ */
17
59
  getFile(filePath: IFilePath): Promise<IFile | null>;
60
+ /**
61
+ * The `writeFile()` method writes string content to the file specified by `filePath`. If the file does exist, it is created. If the directory
62
+ * does not exist, an error is thrown.
63
+ *
64
+ * @throws If the parent directory does not exist or the `filePath` is a directory.
65
+ */
18
66
  writeFile(filePath: IFilePath, contents: string): Promise<void>;
67
+ /**
68
+ * The `writeFile()` method appends string content to the file specified by `filePath`. If the file does exist, it is created. If the directory
69
+ * does not exist, an error is thrown.
70
+ *
71
+ * @throws If the parent directory does not exist or the `filePath` is a directory.
72
+ */
19
73
  appendFile(filePath: IFilePath, contents: string): Promise<void>;
74
+ /**
75
+ * The `readFile()` method returns content of the file specified by `filePath`. The file has to be a text file, otherwise the content will be
76
+ * mangled.
77
+ *
78
+ * @throws If the file does not exist.
79
+ */
20
80
  readFile(filePath: IFilePath): Promise<string>;
81
+ /**
82
+ * The `copyFile()` method creates a copy of file at `sourceFilePath` to `destinationFilePath`.
83
+ *
84
+ * @param options.overwrite If not set or set to `false`, an error will be thrown if `destinationFilePath` already exists.
85
+ *
86
+ * @throws If the source file does not exists or parent of the destination file path does not exists. It also throws if the
87
+ * `options.overwrite` is not set and the destination file path already exists.
88
+ */
21
89
  copyFile(sourceFilePath: IFilePath, destinationFilePath: IFilePath, options?: ICopyFileOptions): Promise<void>;
90
+ /**
91
+ * The `moveFile()` method moves a file from `sourceFilePath` to `destinationFilePath`.
92
+ *
93
+ * @throws If the source file does not exists or parent of the destination file path does not exists. It also throws if the
94
+ * `options.overwrite` is not set and the destination file path already exists.
95
+ */
22
96
  moveFile(sourceFilePath: IFilePath, destinationFilePath: IFilePath, options?: IMoveFileOptions): Promise<void>;
97
+ /**
98
+ * The `deleteFile()` method deletes the file specified by `filePath`. To remove a directory set `recursive` to `true`.
99
+ *
100
+ * @throws If the file does not exists or if `recursive` is set to false and the file path is a directory.
101
+ */
23
102
  deleteFile(filePath: IFilePath, recursive: boolean): Promise<void>;
103
+ /**
104
+ * The `downloadFile()` method download a file from `sourceUri` and saves it to the specified path. If the file already exists it is
105
+ * overwritten. Optionally, headers for the download request may be specified. A HEAD request is always sent first to get `content-length`
106
+ * of the downloaded file.
107
+ *
108
+ * :::warning
109
+ * - For every download request, our app makes HEAD request for `content-length` header on that downloaded file.
110
+ * - Windows platform can download only files smaller then 4GB.
111
+ * :::
112
+ *
113
+ * #### Encoding
114
+ *
115
+ * 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).
116
+ *
117
+ * Download file method is always sending optional following headers:
118
+ * ```
119
+ * Accept-Encoding: gzip
120
+ * Accept-Encoding: compress
121
+ * Accept-Encoding: deflate
122
+ * Accept-Encoding: br
123
+ * Accept-Encoding: identity
124
+ * Accept-Encoding: *
125
+ * ```
126
+ *
127
+ * 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:
128
+ * ```
129
+ * Content-Encoding: gzip
130
+ * Content-Encoding: compress
131
+ * Content-Encoding: deflate
132
+ * Content-Encoding: br
133
+ * ```
134
+ * 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.
135
+ *
136
+ * The standard is supported on all following platforms:
137
+ *
138
+ * - WebOS 3+
139
+ * - Tizen 2.4+
140
+ * - Brightsign
141
+ * - Raspberry Pi
142
+ * - Windows
143
+ *
144
+ * @throws If the network request fails, parent directory does not exist, or the file path is a directory.
145
+ */
24
146
  downloadFile(filePath: IFilePath, sourceUri: string, headers?: IHeaders): Promise<void>;
147
+ /**
148
+ * The `decompressFile()` method decompresses the file at `archiveFilePath` into a new file specified by `destinationDirectoryPath`.
149
+ *
150
+ * @throws If the archive file path does not exist, it is not a valid archive file or the destination directory does not exist.
151
+ */
25
152
  extractFile(archiveFilePath: IFilePath, destinationDirectoryPath: IFilePath, method: string): Promise<void>;
153
+ /**
154
+ * The `createArchive()` method creates an arch file at `archiveFilePath` from `archiveEntries` files.
155
+ *
156
+ * :::warning
157
+ *
158
+ * This function is available only on Tizen devices.
159
+ *
160
+ * :::
161
+ */
26
162
  createArchive(archiveFilePath: IFilePath, archiveEntries: IFilePath[]): Promise<void>;
27
- getFileChecksum(filePath: IFilePath, hashType: string): Promise<string>;
163
+ /**
164
+ * The `getChecksumFile()` method computes a checksum of the file specified by `filePath`.
165
+ *
166
+ * @throws If the file does not exist or it is a directory.
167
+ */
168
+ getFileChecksum(filePath: IFilePath, hashType: HashAlgorithm): Promise<string>;
169
+ /**
170
+ * The `createDirectory()` method create a new directory at specified path.
171
+ *
172
+ * @throws If the directory already exists or its parent directory does not exist.
173
+ */
28
174
  createDirectory(directoryPath: IFilePath): Promise<void>;
175
+ /**
176
+ * The `isDirectory()` method checks whether the file path points to a directory.
177
+ *
178
+ * @throws If the file path does not exist.
179
+ */
29
180
  isDirectory(filePath: IFilePath): Promise<boolean>;
181
+ /**
182
+ * The `link()` method creates a symbolic link to `sourceFilePath` (existing path) from `destinationFilePath` (new path).
183
+ */
30
184
  link(sourceFilePath: IFilePath, destinationFilePath: IFilePath): Promise<void>;
185
+ /** @internal */
31
186
  handleMessageData(data: StorageUnitsChangedMessage): void;
32
187
  private getMessage;
33
188
  }