@ledgerhq/device-core 0.1.1-next.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 (375) hide show
  1. package/.turbo/turbo-build.log +4 -0
  2. package/CHANGELOG.md +12 -0
  3. package/LICENSE.txt +21 -0
  4. package/jest.config.json +13 -0
  5. package/lib/capabilities/isCustomLockScreenSupported.d.ts +5 -0
  6. package/lib/capabilities/isCustomLockScreenSupported.d.ts.map +1 -0
  7. package/lib/capabilities/isCustomLockScreenSupported.js +16 -0
  8. package/lib/capabilities/isCustomLockScreenSupported.js.map +1 -0
  9. package/lib/capabilities/isCustomLockScreenSupported.test.d.ts +2 -0
  10. package/lib/capabilities/isCustomLockScreenSupported.test.d.ts.map +1 -0
  11. package/lib/capabilities/isCustomLockScreenSupported.test.js +22 -0
  12. package/lib/capabilities/isCustomLockScreenSupported.test.js.map +1 -0
  13. package/lib/capabilities/isEditDeviceNameSupported.d.ts +3 -0
  14. package/lib/capabilities/isEditDeviceNameSupported.d.ts.map +1 -0
  15. package/lib/capabilities/isEditDeviceNameSupported.js +9 -0
  16. package/lib/capabilities/isEditDeviceNameSupported.js.map +1 -0
  17. package/lib/capabilities/isEditDeviceNameSupported.test.d.ts +2 -0
  18. package/lib/capabilities/isEditDeviceNameSupported.test.d.ts.map +1 -0
  19. package/lib/capabilities/isEditDeviceNameSupported.test.js +19 -0
  20. package/lib/capabilities/isEditDeviceNameSupported.test.js.map +1 -0
  21. package/lib/capabilities/isSyncOnboardingSupported.d.ts +3 -0
  22. package/lib/capabilities/isSyncOnboardingSupported.d.ts.map +1 -0
  23. package/lib/capabilities/isSyncOnboardingSupported.js +9 -0
  24. package/lib/capabilities/isSyncOnboardingSupported.js.map +1 -0
  25. package/lib/capabilities/isSyncOnboardingSupported.test.d.ts +2 -0
  26. package/lib/capabilities/isSyncOnboardingSupported.test.d.ts.map +1 -0
  27. package/lib/capabilities/isSyncOnboardingSupported.test.js +17 -0
  28. package/lib/capabilities/isSyncOnboardingSupported.test.js.map +1 -0
  29. package/lib/commands/entities/APDU.d.ts +9 -0
  30. package/lib/commands/entities/APDU.d.ts.map +1 -0
  31. package/lib/commands/entities/APDU.js +3 -0
  32. package/lib/commands/entities/APDU.js.map +1 -0
  33. package/lib/commands/entities/FirmwareInfoEntity.d.ts +16 -0
  34. package/lib/commands/entities/FirmwareInfoEntity.d.ts.map +1 -0
  35. package/lib/commands/entities/FirmwareInfoEntity.js +3 -0
  36. package/lib/commands/entities/FirmwareInfoEntity.js.map +1 -0
  37. package/lib/commands/use-cases/getDeviceName.d.ts +3 -0
  38. package/lib/commands/use-cases/getDeviceName.d.ts.map +1 -0
  39. package/lib/commands/use-cases/getDeviceName.js +48 -0
  40. package/lib/commands/use-cases/getDeviceName.js.map +1 -0
  41. package/lib/commands/use-cases/getVersion.d.ts +15 -0
  42. package/lib/commands/use-cases/getVersion.d.ts.map +1 -0
  43. package/lib/commands/use-cases/getVersion.js +31 -0
  44. package/lib/commands/use-cases/getVersion.js.map +1 -0
  45. package/lib/commands/use-cases/isBootloaderVersionSupported.d.ts +7 -0
  46. package/lib/commands/use-cases/isBootloaderVersionSupported.d.ts.map +1 -0
  47. package/lib/commands/use-cases/isBootloaderVersionSupported.js +20 -0
  48. package/lib/commands/use-cases/isBootloaderVersionSupported.js.map +1 -0
  49. package/lib/commands/use-cases/isBootloaderVersionSupported.test.d.ts +2 -0
  50. package/lib/commands/use-cases/isBootloaderVersionSupported.test.d.ts.map +1 -0
  51. package/lib/commands/use-cases/isBootloaderVersionSupported.test.js +53 -0
  52. package/lib/commands/use-cases/isBootloaderVersionSupported.test.js.map +1 -0
  53. package/lib/commands/use-cases/isDeviceLocalizationSupported.d.ts +3 -0
  54. package/lib/commands/use-cases/isDeviceLocalizationSupported.d.ts.map +1 -0
  55. package/lib/commands/use-cases/isDeviceLocalizationSupported.js +15 -0
  56. package/lib/commands/use-cases/isDeviceLocalizationSupported.js.map +1 -0
  57. package/lib/commands/use-cases/isDeviceLocalizationSupported.test.d.ts +2 -0
  58. package/lib/commands/use-cases/isDeviceLocalizationSupported.test.d.ts.map +1 -0
  59. package/lib/commands/use-cases/isDeviceLocalizationSupported.test.js +45 -0
  60. package/lib/commands/use-cases/isDeviceLocalizationSupported.test.js.map +1 -0
  61. package/lib/commands/use-cases/isHardwareVersionSupported.d.ts +7 -0
  62. package/lib/commands/use-cases/isHardwareVersionSupported.d.ts.map +1 -0
  63. package/lib/commands/use-cases/isHardwareVersionSupported.js +16 -0
  64. package/lib/commands/use-cases/isHardwareVersionSupported.js.map +1 -0
  65. package/lib/commands/use-cases/isHardwareVersionSupported.test.d.ts +2 -0
  66. package/lib/commands/use-cases/isHardwareVersionSupported.test.d.ts.map +1 -0
  67. package/lib/commands/use-cases/isHardwareVersionSupported.test.js +36 -0
  68. package/lib/commands/use-cases/isHardwareVersionSupported.test.js.map +1 -0
  69. package/lib/commands/use-cases/parseGetDeviceNameResponse.d.ts +3 -0
  70. package/lib/commands/use-cases/parseGetDeviceNameResponse.d.ts.map +1 -0
  71. package/lib/commands/use-cases/parseGetDeviceNameResponse.js +23 -0
  72. package/lib/commands/use-cases/parseGetDeviceNameResponse.js.map +1 -0
  73. package/lib/commands/use-cases/parseGetDeviceNameResponse.test.d.ts +2 -0
  74. package/lib/commands/use-cases/parseGetDeviceNameResponse.test.d.ts.map +1 -0
  75. package/lib/commands/use-cases/parseGetDeviceNameResponse.test.js +27 -0
  76. package/lib/commands/use-cases/parseGetDeviceNameResponse.test.js.map +1 -0
  77. package/lib/commands/use-cases/parseGetVersionResponse.d.ts +4 -0
  78. package/lib/commands/use-cases/parseGetVersionResponse.d.ts.map +1 -0
  79. package/lib/commands/use-cases/parseGetVersionResponse.js +108 -0
  80. package/lib/commands/use-cases/parseGetVersionResponse.js.map +1 -0
  81. package/lib/commands/use-cases/parseGetVersionResponse.test.d.ts +2 -0
  82. package/lib/commands/use-cases/parseGetVersionResponse.test.d.ts.map +1 -0
  83. package/lib/commands/use-cases/parseGetVersionResponse.test.js +105 -0
  84. package/lib/commands/use-cases/parseGetVersionResponse.test.js.map +1 -0
  85. package/lib/customLockScreen/screenSpecs.d.ts +30 -0
  86. package/lib/customLockScreen/screenSpecs.d.ts.map +1 -0
  87. package/lib/customLockScreen/screenSpecs.js +46 -0
  88. package/lib/customLockScreen/screenSpecs.js.map +1 -0
  89. package/lib/index.d.ts +23 -0
  90. package/lib/index.d.ts.map +1 -0
  91. package/lib/index.js +56 -0
  92. package/lib/index.js.map +1 -0
  93. package/lib/managerApi/entities/AppEntity.d.ts +62 -0
  94. package/lib/managerApi/entities/AppEntity.d.ts.map +1 -0
  95. package/lib/managerApi/entities/AppEntity.js +12 -0
  96. package/lib/managerApi/entities/AppEntity.js.map +1 -0
  97. package/lib/managerApi/entities/DeviceInfoEntity.d.ts +22 -0
  98. package/lib/managerApi/entities/DeviceInfoEntity.d.ts.map +1 -0
  99. package/lib/managerApi/entities/DeviceInfoEntity.js +3 -0
  100. package/lib/managerApi/entities/DeviceInfoEntity.js.map +1 -0
  101. package/lib/managerApi/entities/DeviceVersionEntity.d.ts +17 -0
  102. package/lib/managerApi/entities/DeviceVersionEntity.d.ts.map +1 -0
  103. package/lib/managerApi/entities/DeviceVersionEntity.js +3 -0
  104. package/lib/managerApi/entities/DeviceVersionEntity.js.map +1 -0
  105. package/lib/managerApi/entities/FirmwareUpdateContextEntity.d.ts +42 -0
  106. package/lib/managerApi/entities/FirmwareUpdateContextEntity.d.ts.map +1 -0
  107. package/lib/managerApi/entities/FirmwareUpdateContextEntity.js +3 -0
  108. package/lib/managerApi/entities/FirmwareUpdateContextEntity.js.map +1 -0
  109. package/lib/managerApi/entities/Id.d.ts +2 -0
  110. package/lib/managerApi/entities/Id.d.ts.map +1 -0
  111. package/lib/managerApi/entities/Id.js +3 -0
  112. package/lib/managerApi/entities/Id.js.map +1 -0
  113. package/lib/managerApi/entities/LanguagePackageEntity.d.ts +20 -0
  114. package/lib/managerApi/entities/LanguagePackageEntity.d.ts.map +1 -0
  115. package/lib/managerApi/entities/LanguagePackageEntity.js +3 -0
  116. package/lib/managerApi/entities/LanguagePackageEntity.js.map +1 -0
  117. package/lib/managerApi/entities/mocks/aDeviceInfo.d.ts +3 -0
  118. package/lib/managerApi/entities/mocks/aDeviceInfo.d.ts.map +1 -0
  119. package/lib/managerApi/entities/mocks/aDeviceInfo.js +8 -0
  120. package/lib/managerApi/entities/mocks/aDeviceInfo.js.map +1 -0
  121. package/lib/managerApi/entities/mocks/aDeviceVersion.d.ts +3 -0
  122. package/lib/managerApi/entities/mocks/aDeviceVersion.d.ts.map +1 -0
  123. package/lib/managerApi/entities/mocks/aDeviceVersion.js +8 -0
  124. package/lib/managerApi/entities/mocks/aDeviceVersion.js.map +1 -0
  125. package/lib/managerApi/entities/mocks/aFinalFirmware.d.ts +3 -0
  126. package/lib/managerApi/entities/mocks/aFinalFirmware.d.ts.map +1 -0
  127. package/lib/managerApi/entities/mocks/aFinalFirmware.js +8 -0
  128. package/lib/managerApi/entities/mocks/aFinalFirmware.js.map +1 -0
  129. package/lib/managerApi/entities/mocks/aOsuFirmware.d.ts +19 -0
  130. package/lib/managerApi/entities/mocks/aOsuFirmware.d.ts.map +1 -0
  131. package/lib/managerApi/entities/mocks/aOsuFirmware.js +8 -0
  132. package/lib/managerApi/entities/mocks/aOsuFirmware.js.map +1 -0
  133. package/lib/managerApi/repositories/HttpManagerApiRepository.d.ts +18 -0
  134. package/lib/managerApi/repositories/HttpManagerApiRepository.d.ts.map +1 -0
  135. package/lib/managerApi/repositories/HttpManagerApiRepository.js +204 -0
  136. package/lib/managerApi/repositories/HttpManagerApiRepository.js.map +1 -0
  137. package/lib/managerApi/repositories/HttpManagerApiRepository.test.d.ts +2 -0
  138. package/lib/managerApi/repositories/HttpManagerApiRepository.test.d.ts.map +1 -0
  139. package/lib/managerApi/repositories/HttpManagerApiRepository.test.js +402 -0
  140. package/lib/managerApi/repositories/HttpManagerApiRepository.test.js.map +1 -0
  141. package/lib/managerApi/repositories/ManagerApiRepository.d.ts +54 -0
  142. package/lib/managerApi/repositories/ManagerApiRepository.d.ts.map +1 -0
  143. package/lib/managerApi/repositories/ManagerApiRepository.js +3 -0
  144. package/lib/managerApi/repositories/ManagerApiRepository.js.map +1 -0
  145. package/lib/managerApi/repositories/StubManagerApiRepository.d.ts +15 -0
  146. package/lib/managerApi/repositories/StubManagerApiRepository.d.ts.map +1 -0
  147. package/lib/managerApi/repositories/StubManagerApiRepository.js +44 -0
  148. package/lib/managerApi/repositories/StubManagerApiRepository.js.map +1 -0
  149. package/lib/managerApi/use-cases/fetchMcus.d.ts +3 -0
  150. package/lib/managerApi/use-cases/fetchMcus.d.ts.map +1 -0
  151. package/lib/managerApi/use-cases/fetchMcus.js +8 -0
  152. package/lib/managerApi/use-cases/fetchMcus.js.map +1 -0
  153. package/lib/managerApi/use-cases/getLatestFirmwareForDevice.d.ts +12 -0
  154. package/lib/managerApi/use-cases/getLatestFirmwareForDevice.d.ts.map +1 -0
  155. package/lib/managerApi/use-cases/getLatestFirmwareForDevice.js +62 -0
  156. package/lib/managerApi/use-cases/getLatestFirmwareForDevice.js.map +1 -0
  157. package/lib/managerApi/use-cases/getLatestFirmwareForDevice.test.d.ts +2 -0
  158. package/lib/managerApi/use-cases/getLatestFirmwareForDevice.test.d.ts.map +1 -0
  159. package/lib/managerApi/use-cases/getLatestFirmwareForDevice.test.js +178 -0
  160. package/lib/managerApi/use-cases/getLatestFirmwareForDevice.test.js.map +1 -0
  161. package/lib/managerApi/use-cases/getProviderIdUseCase.d.ts +7 -0
  162. package/lib/managerApi/use-cases/getProviderIdUseCase.d.ts.map +1 -0
  163. package/lib/managerApi/use-cases/getProviderIdUseCase.js +23 -0
  164. package/lib/managerApi/use-cases/getProviderIdUseCase.js.map +1 -0
  165. package/lib/managerApi/use-cases/getUserHashes.d.ts +5 -0
  166. package/lib/managerApi/use-cases/getUserHashes.d.ts.map +1 -0
  167. package/lib/managerApi/use-cases/getUserHashes.js +33 -0
  168. package/lib/managerApi/use-cases/getUserHashes.js.map +1 -0
  169. package/lib-es/capabilities/isCustomLockScreenSupported.d.ts +5 -0
  170. package/lib-es/capabilities/isCustomLockScreenSupported.d.ts.map +1 -0
  171. package/lib-es/capabilities/isCustomLockScreenSupported.js +12 -0
  172. package/lib-es/capabilities/isCustomLockScreenSupported.js.map +1 -0
  173. package/lib-es/capabilities/isCustomLockScreenSupported.test.d.ts +2 -0
  174. package/lib-es/capabilities/isCustomLockScreenSupported.test.d.ts.map +1 -0
  175. package/lib-es/capabilities/isCustomLockScreenSupported.test.js +20 -0
  176. package/lib-es/capabilities/isCustomLockScreenSupported.test.js.map +1 -0
  177. package/lib-es/capabilities/isEditDeviceNameSupported.d.ts +3 -0
  178. package/lib-es/capabilities/isEditDeviceNameSupported.d.ts.map +1 -0
  179. package/lib-es/capabilities/isEditDeviceNameSupported.js +5 -0
  180. package/lib-es/capabilities/isEditDeviceNameSupported.js.map +1 -0
  181. package/lib-es/capabilities/isEditDeviceNameSupported.test.d.ts +2 -0
  182. package/lib-es/capabilities/isEditDeviceNameSupported.test.d.ts.map +1 -0
  183. package/lib-es/capabilities/isEditDeviceNameSupported.test.js +17 -0
  184. package/lib-es/capabilities/isEditDeviceNameSupported.test.js.map +1 -0
  185. package/lib-es/capabilities/isSyncOnboardingSupported.d.ts +3 -0
  186. package/lib-es/capabilities/isSyncOnboardingSupported.d.ts.map +1 -0
  187. package/lib-es/capabilities/isSyncOnboardingSupported.js +5 -0
  188. package/lib-es/capabilities/isSyncOnboardingSupported.js.map +1 -0
  189. package/lib-es/capabilities/isSyncOnboardingSupported.test.d.ts +2 -0
  190. package/lib-es/capabilities/isSyncOnboardingSupported.test.d.ts.map +1 -0
  191. package/lib-es/capabilities/isSyncOnboardingSupported.test.js +15 -0
  192. package/lib-es/capabilities/isSyncOnboardingSupported.test.js.map +1 -0
  193. package/lib-es/commands/entities/APDU.d.ts +9 -0
  194. package/lib-es/commands/entities/APDU.d.ts.map +1 -0
  195. package/lib-es/commands/entities/APDU.js +2 -0
  196. package/lib-es/commands/entities/APDU.js.map +1 -0
  197. package/lib-es/commands/entities/FirmwareInfoEntity.d.ts +16 -0
  198. package/lib-es/commands/entities/FirmwareInfoEntity.d.ts.map +1 -0
  199. package/lib-es/commands/entities/FirmwareInfoEntity.js +2 -0
  200. package/lib-es/commands/entities/FirmwareInfoEntity.js.map +1 -0
  201. package/lib-es/commands/use-cases/getDeviceName.d.ts +3 -0
  202. package/lib-es/commands/use-cases/getDeviceName.d.ts.map +1 -0
  203. package/lib-es/commands/use-cases/getDeviceName.js +44 -0
  204. package/lib-es/commands/use-cases/getDeviceName.js.map +1 -0
  205. package/lib-es/commands/use-cases/getVersion.d.ts +15 -0
  206. package/lib-es/commands/use-cases/getVersion.d.ts.map +1 -0
  207. package/lib-es/commands/use-cases/getVersion.js +27 -0
  208. package/lib-es/commands/use-cases/getVersion.js.map +1 -0
  209. package/lib-es/commands/use-cases/isBootloaderVersionSupported.d.ts +7 -0
  210. package/lib-es/commands/use-cases/isBootloaderVersionSupported.d.ts.map +1 -0
  211. package/lib-es/commands/use-cases/isBootloaderVersionSupported.js +16 -0
  212. package/lib-es/commands/use-cases/isBootloaderVersionSupported.js.map +1 -0
  213. package/lib-es/commands/use-cases/isBootloaderVersionSupported.test.d.ts +2 -0
  214. package/lib-es/commands/use-cases/isBootloaderVersionSupported.test.d.ts.map +1 -0
  215. package/lib-es/commands/use-cases/isBootloaderVersionSupported.test.js +51 -0
  216. package/lib-es/commands/use-cases/isBootloaderVersionSupported.test.js.map +1 -0
  217. package/lib-es/commands/use-cases/isDeviceLocalizationSupported.d.ts +3 -0
  218. package/lib-es/commands/use-cases/isDeviceLocalizationSupported.d.ts.map +1 -0
  219. package/lib-es/commands/use-cases/isDeviceLocalizationSupported.js +11 -0
  220. package/lib-es/commands/use-cases/isDeviceLocalizationSupported.js.map +1 -0
  221. package/lib-es/commands/use-cases/isDeviceLocalizationSupported.test.d.ts +2 -0
  222. package/lib-es/commands/use-cases/isDeviceLocalizationSupported.test.d.ts.map +1 -0
  223. package/lib-es/commands/use-cases/isDeviceLocalizationSupported.test.js +43 -0
  224. package/lib-es/commands/use-cases/isDeviceLocalizationSupported.test.js.map +1 -0
  225. package/lib-es/commands/use-cases/isHardwareVersionSupported.d.ts +7 -0
  226. package/lib-es/commands/use-cases/isHardwareVersionSupported.d.ts.map +1 -0
  227. package/lib-es/commands/use-cases/isHardwareVersionSupported.js +12 -0
  228. package/lib-es/commands/use-cases/isHardwareVersionSupported.js.map +1 -0
  229. package/lib-es/commands/use-cases/isHardwareVersionSupported.test.d.ts +2 -0
  230. package/lib-es/commands/use-cases/isHardwareVersionSupported.test.d.ts.map +1 -0
  231. package/lib-es/commands/use-cases/isHardwareVersionSupported.test.js +34 -0
  232. package/lib-es/commands/use-cases/isHardwareVersionSupported.test.js.map +1 -0
  233. package/lib-es/commands/use-cases/parseGetDeviceNameResponse.d.ts +3 -0
  234. package/lib-es/commands/use-cases/parseGetDeviceNameResponse.d.ts.map +1 -0
  235. package/lib-es/commands/use-cases/parseGetDeviceNameResponse.js +19 -0
  236. package/lib-es/commands/use-cases/parseGetDeviceNameResponse.js.map +1 -0
  237. package/lib-es/commands/use-cases/parseGetDeviceNameResponse.test.d.ts +2 -0
  238. package/lib-es/commands/use-cases/parseGetDeviceNameResponse.test.d.ts.map +1 -0
  239. package/lib-es/commands/use-cases/parseGetDeviceNameResponse.test.js +25 -0
  240. package/lib-es/commands/use-cases/parseGetDeviceNameResponse.test.js.map +1 -0
  241. package/lib-es/commands/use-cases/parseGetVersionResponse.d.ts +4 -0
  242. package/lib-es/commands/use-cases/parseGetVersionResponse.d.ts.map +1 -0
  243. package/lib-es/commands/use-cases/parseGetVersionResponse.js +104 -0
  244. package/lib-es/commands/use-cases/parseGetVersionResponse.js.map +1 -0
  245. package/lib-es/commands/use-cases/parseGetVersionResponse.test.d.ts +2 -0
  246. package/lib-es/commands/use-cases/parseGetVersionResponse.test.d.ts.map +1 -0
  247. package/lib-es/commands/use-cases/parseGetVersionResponse.test.js +103 -0
  248. package/lib-es/commands/use-cases/parseGetVersionResponse.test.js.map +1 -0
  249. package/lib-es/customLockScreen/screenSpecs.d.ts +30 -0
  250. package/lib-es/customLockScreen/screenSpecs.d.ts.map +1 -0
  251. package/lib-es/customLockScreen/screenSpecs.js +40 -0
  252. package/lib-es/customLockScreen/screenSpecs.js.map +1 -0
  253. package/lib-es/index.d.ts +23 -0
  254. package/lib-es/index.d.ts.map +1 -0
  255. package/lib-es/index.js +21 -0
  256. package/lib-es/index.js.map +1 -0
  257. package/lib-es/managerApi/entities/AppEntity.d.ts +62 -0
  258. package/lib-es/managerApi/entities/AppEntity.d.ts.map +1 -0
  259. package/lib-es/managerApi/entities/AppEntity.js +9 -0
  260. package/lib-es/managerApi/entities/AppEntity.js.map +1 -0
  261. package/lib-es/managerApi/entities/DeviceInfoEntity.d.ts +22 -0
  262. package/lib-es/managerApi/entities/DeviceInfoEntity.d.ts.map +1 -0
  263. package/lib-es/managerApi/entities/DeviceInfoEntity.js +2 -0
  264. package/lib-es/managerApi/entities/DeviceInfoEntity.js.map +1 -0
  265. package/lib-es/managerApi/entities/DeviceVersionEntity.d.ts +17 -0
  266. package/lib-es/managerApi/entities/DeviceVersionEntity.d.ts.map +1 -0
  267. package/lib-es/managerApi/entities/DeviceVersionEntity.js +2 -0
  268. package/lib-es/managerApi/entities/DeviceVersionEntity.js.map +1 -0
  269. package/lib-es/managerApi/entities/FirmwareUpdateContextEntity.d.ts +42 -0
  270. package/lib-es/managerApi/entities/FirmwareUpdateContextEntity.d.ts.map +1 -0
  271. package/lib-es/managerApi/entities/FirmwareUpdateContextEntity.js +2 -0
  272. package/lib-es/managerApi/entities/FirmwareUpdateContextEntity.js.map +1 -0
  273. package/lib-es/managerApi/entities/Id.d.ts +2 -0
  274. package/lib-es/managerApi/entities/Id.d.ts.map +1 -0
  275. package/lib-es/managerApi/entities/Id.js +2 -0
  276. package/lib-es/managerApi/entities/Id.js.map +1 -0
  277. package/lib-es/managerApi/entities/LanguagePackageEntity.d.ts +20 -0
  278. package/lib-es/managerApi/entities/LanguagePackageEntity.d.ts.map +1 -0
  279. package/lib-es/managerApi/entities/LanguagePackageEntity.js +2 -0
  280. package/lib-es/managerApi/entities/LanguagePackageEntity.js.map +1 -0
  281. package/lib-es/managerApi/entities/mocks/aDeviceInfo.d.ts +3 -0
  282. package/lib-es/managerApi/entities/mocks/aDeviceInfo.d.ts.map +1 -0
  283. package/lib-es/managerApi/entities/mocks/aDeviceInfo.js +4 -0
  284. package/lib-es/managerApi/entities/mocks/aDeviceInfo.js.map +1 -0
  285. package/lib-es/managerApi/entities/mocks/aDeviceVersion.d.ts +3 -0
  286. package/lib-es/managerApi/entities/mocks/aDeviceVersion.d.ts.map +1 -0
  287. package/lib-es/managerApi/entities/mocks/aDeviceVersion.js +4 -0
  288. package/lib-es/managerApi/entities/mocks/aDeviceVersion.js.map +1 -0
  289. package/lib-es/managerApi/entities/mocks/aFinalFirmware.d.ts +3 -0
  290. package/lib-es/managerApi/entities/mocks/aFinalFirmware.d.ts.map +1 -0
  291. package/lib-es/managerApi/entities/mocks/aFinalFirmware.js +4 -0
  292. package/lib-es/managerApi/entities/mocks/aFinalFirmware.js.map +1 -0
  293. package/lib-es/managerApi/entities/mocks/aOsuFirmware.d.ts +19 -0
  294. package/lib-es/managerApi/entities/mocks/aOsuFirmware.d.ts.map +1 -0
  295. package/lib-es/managerApi/entities/mocks/aOsuFirmware.js +4 -0
  296. package/lib-es/managerApi/entities/mocks/aOsuFirmware.js.map +1 -0
  297. package/lib-es/managerApi/repositories/HttpManagerApiRepository.d.ts +18 -0
  298. package/lib-es/managerApi/repositories/HttpManagerApiRepository.d.ts.map +1 -0
  299. package/lib-es/managerApi/repositories/HttpManagerApiRepository.js +197 -0
  300. package/lib-es/managerApi/repositories/HttpManagerApiRepository.js.map +1 -0
  301. package/lib-es/managerApi/repositories/HttpManagerApiRepository.test.d.ts +2 -0
  302. package/lib-es/managerApi/repositories/HttpManagerApiRepository.test.d.ts.map +1 -0
  303. package/lib-es/managerApi/repositories/HttpManagerApiRepository.test.js +400 -0
  304. package/lib-es/managerApi/repositories/HttpManagerApiRepository.test.js.map +1 -0
  305. package/lib-es/managerApi/repositories/ManagerApiRepository.d.ts +54 -0
  306. package/lib-es/managerApi/repositories/ManagerApiRepository.d.ts.map +1 -0
  307. package/lib-es/managerApi/repositories/ManagerApiRepository.js +2 -0
  308. package/lib-es/managerApi/repositories/ManagerApiRepository.js.map +1 -0
  309. package/lib-es/managerApi/repositories/StubManagerApiRepository.d.ts +15 -0
  310. package/lib-es/managerApi/repositories/StubManagerApiRepository.d.ts.map +1 -0
  311. package/lib-es/managerApi/repositories/StubManagerApiRepository.js +40 -0
  312. package/lib-es/managerApi/repositories/StubManagerApiRepository.js.map +1 -0
  313. package/lib-es/managerApi/use-cases/fetchMcus.d.ts +3 -0
  314. package/lib-es/managerApi/use-cases/fetchMcus.d.ts.map +1 -0
  315. package/lib-es/managerApi/use-cases/fetchMcus.js +4 -0
  316. package/lib-es/managerApi/use-cases/fetchMcus.js.map +1 -0
  317. package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.d.ts +12 -0
  318. package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.d.ts.map +1 -0
  319. package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.js +58 -0
  320. package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.js.map +1 -0
  321. package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.test.d.ts +2 -0
  322. package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.test.d.ts.map +1 -0
  323. package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.test.js +176 -0
  324. package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.test.js.map +1 -0
  325. package/lib-es/managerApi/use-cases/getProviderIdUseCase.d.ts +7 -0
  326. package/lib-es/managerApi/use-cases/getProviderIdUseCase.d.ts.map +1 -0
  327. package/lib-es/managerApi/use-cases/getProviderIdUseCase.js +19 -0
  328. package/lib-es/managerApi/use-cases/getProviderIdUseCase.js.map +1 -0
  329. package/lib-es/managerApi/use-cases/getUserHashes.d.ts +5 -0
  330. package/lib-es/managerApi/use-cases/getUserHashes.d.ts.map +1 -0
  331. package/lib-es/managerApi/use-cases/getUserHashes.js +26 -0
  332. package/lib-es/managerApi/use-cases/getUserHashes.js.map +1 -0
  333. package/package.json +67 -0
  334. package/src/capabilities/isCustomLockScreenSupported.test.ts +25 -0
  335. package/src/capabilities/isCustomLockScreenSupported.ts +17 -0
  336. package/src/capabilities/isEditDeviceNameSupported.test.ts +18 -0
  337. package/src/capabilities/isEditDeviceNameSupported.ts +5 -0
  338. package/src/capabilities/isSyncOnboardingSupported.test.ts +16 -0
  339. package/src/capabilities/isSyncOnboardingSupported.ts +5 -0
  340. package/src/commands/entities/APDU.ts +12 -0
  341. package/src/commands/entities/FirmwareInfoEntity.ts +14 -0
  342. package/src/commands/use-cases/getDeviceName.ts +38 -0
  343. package/src/commands/use-cases/getVersion.ts +23 -0
  344. package/src/commands/use-cases/isBootloaderVersionSupported.test.ts +58 -0
  345. package/src/commands/use-cases/isBootloaderVersionSupported.ts +24 -0
  346. package/src/commands/use-cases/isDeviceLocalizationSupported.test.ts +48 -0
  347. package/src/commands/use-cases/isDeviceLocalizationSupported.ts +20 -0
  348. package/src/commands/use-cases/isHardwareVersionSupported.test.ts +39 -0
  349. package/src/commands/use-cases/isHardwareVersionSupported.ts +20 -0
  350. package/src/commands/use-cases/parseGetDeviceNameResponse.test.ts +35 -0
  351. package/src/commands/use-cases/parseGetDeviceNameResponse.ts +20 -0
  352. package/src/commands/use-cases/parseGetVersionResponse.test.ts +123 -0
  353. package/src/commands/use-cases/parseGetVersionResponse.ts +121 -0
  354. package/src/customLockScreen/screenSpecs.ts +87 -0
  355. package/src/index.ts +33 -0
  356. package/src/managerApi/entities/AppEntity.ts +66 -0
  357. package/src/managerApi/entities/DeviceInfoEntity.ts +26 -0
  358. package/src/managerApi/entities/DeviceVersionEntity.ts +17 -0
  359. package/src/managerApi/entities/FirmwareUpdateContextEntity.ts +44 -0
  360. package/src/managerApi/entities/Id.ts +1 -0
  361. package/src/managerApi/entities/LanguagePackageEntity.ts +21 -0
  362. package/src/managerApi/entities/mocks/aDeviceInfo.ts +16 -0
  363. package/src/managerApi/entities/mocks/aDeviceVersion.ts +22 -0
  364. package/src/managerApi/entities/mocks/aFinalFirmware.ts +25 -0
  365. package/src/managerApi/entities/mocks/aOsuFirmware.ts +22 -0
  366. package/src/managerApi/repositories/HttpManagerApiRepository.test.ts +494 -0
  367. package/src/managerApi/repositories/HttpManagerApiRepository.ts +284 -0
  368. package/src/managerApi/repositories/ManagerApiRepository.ts +68 -0
  369. package/src/managerApi/repositories/StubManagerApiRepository.ts +49 -0
  370. package/src/managerApi/use-cases/fetchMcus.ts +5 -0
  371. package/src/managerApi/use-cases/getLatestFirmwareForDevice.test.ts +196 -0
  372. package/src/managerApi/use-cases/getLatestFirmwareForDevice.ts +66 -0
  373. package/src/managerApi/use-cases/getProviderIdUseCase.ts +24 -0
  374. package/src/managerApi/use-cases/getUserHashes.ts +30 -0
  375. package/tsconfig.json +16 -0
package/lib/index.js ADDED
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.supportedDeviceModelIds = exports.isSyncOnboardingSupported = exports.isEditDeviceNameSupported = exports.isCustomLockScreenSupported = exports.getVersion = exports.isBootloaderVersionSupported = exports.isHardwareVersionSupported = exports.getDeviceName = exports.parseGetVersionResponse = exports.GET_VERSION_APDU = exports.aDeviceInfoBuilder = exports.fetchMcus = exports.getProviderIdUseCase = exports.PROVIDERS = exports.isDeviceLocalizationSupported = exports.getLatestFirmwareForDevice = exports.StubManagerApiRepository = exports.HttpManagerApiRepository = void 0;
18
+ var HttpManagerApiRepository_1 = require("./managerApi/repositories/HttpManagerApiRepository");
19
+ Object.defineProperty(exports, "HttpManagerApiRepository", { enumerable: true, get: function () { return HttpManagerApiRepository_1.HttpManagerApiRepository; } });
20
+ var StubManagerApiRepository_1 = require("./managerApi/repositories/StubManagerApiRepository");
21
+ Object.defineProperty(exports, "StubManagerApiRepository", { enumerable: true, get: function () { return StubManagerApiRepository_1.StubManagerApiRepository; } });
22
+ var getLatestFirmwareForDevice_1 = require("./managerApi/use-cases/getLatestFirmwareForDevice");
23
+ Object.defineProperty(exports, "getLatestFirmwareForDevice", { enumerable: true, get: function () { return getLatestFirmwareForDevice_1.getLatestFirmwareForDevice; } });
24
+ var isDeviceLocalizationSupported_1 = require("./commands/use-cases/isDeviceLocalizationSupported");
25
+ Object.defineProperty(exports, "isDeviceLocalizationSupported", { enumerable: true, get: function () { return isDeviceLocalizationSupported_1.isDeviceLocalizationSupported; } });
26
+ var getProviderIdUseCase_1 = require("./managerApi/use-cases/getProviderIdUseCase");
27
+ Object.defineProperty(exports, "PROVIDERS", { enumerable: true, get: function () { return getProviderIdUseCase_1.PROVIDERS; } });
28
+ Object.defineProperty(exports, "getProviderIdUseCase", { enumerable: true, get: function () { return getProviderIdUseCase_1.getProviderIdUseCase; } });
29
+ var fetchMcus_1 = require("./managerApi/use-cases/fetchMcus");
30
+ Object.defineProperty(exports, "fetchMcus", { enumerable: true, get: function () { return fetchMcus_1.fetchMcus; } });
31
+ var aDeviceInfo_1 = require("./managerApi/entities/mocks/aDeviceInfo");
32
+ Object.defineProperty(exports, "aDeviceInfoBuilder", { enumerable: true, get: function () { return aDeviceInfo_1.aDeviceInfoBuilder; } });
33
+ var getVersion_1 = require("./commands/use-cases/getVersion");
34
+ Object.defineProperty(exports, "GET_VERSION_APDU", { enumerable: true, get: function () { return getVersion_1.GET_VERSION_APDU; } });
35
+ var parseGetVersionResponse_1 = require("./commands/use-cases/parseGetVersionResponse");
36
+ Object.defineProperty(exports, "parseGetVersionResponse", { enumerable: true, get: function () { return parseGetVersionResponse_1.parseGetVersionResponse; } });
37
+ var getDeviceName_1 = require("./commands/use-cases/getDeviceName");
38
+ Object.defineProperty(exports, "getDeviceName", { enumerable: true, get: function () { return getDeviceName_1.getDeviceName; } });
39
+ var isHardwareVersionSupported_1 = require("./commands/use-cases/isHardwareVersionSupported");
40
+ Object.defineProperty(exports, "isHardwareVersionSupported", { enumerable: true, get: function () { return isHardwareVersionSupported_1.isHardwareVersionSupported; } });
41
+ var isBootloaderVersionSupported_1 = require("./commands/use-cases/isBootloaderVersionSupported");
42
+ Object.defineProperty(exports, "isBootloaderVersionSupported", { enumerable: true, get: function () { return isBootloaderVersionSupported_1.isBootloaderVersionSupported; } });
43
+ var getVersion_2 = require("./commands/use-cases/getVersion");
44
+ Object.defineProperty(exports, "getVersion", { enumerable: true, get: function () { return getVersion_2.getVersion; } });
45
+ // src/capabilities/
46
+ var isCustomLockScreenSupported_1 = require("./capabilities/isCustomLockScreenSupported");
47
+ Object.defineProperty(exports, "isCustomLockScreenSupported", { enumerable: true, get: function () { return isCustomLockScreenSupported_1.isCustomLockScreenSupported; } });
48
+ var isEditDeviceNameSupported_1 = require("./capabilities/isEditDeviceNameSupported");
49
+ Object.defineProperty(exports, "isEditDeviceNameSupported", { enumerable: true, get: function () { return isEditDeviceNameSupported_1.isEditDeviceNameSupported; } });
50
+ var isSyncOnboardingSupported_1 = require("./capabilities/isSyncOnboardingSupported");
51
+ Object.defineProperty(exports, "isSyncOnboardingSupported", { enumerable: true, get: function () { return isSyncOnboardingSupported_1.isSyncOnboardingSupported; } });
52
+ var isCustomLockScreenSupported_2 = require("./capabilities/isCustomLockScreenSupported");
53
+ Object.defineProperty(exports, "supportedDeviceModelIds", { enumerable: true, get: function () { return isCustomLockScreenSupported_2.supportedDeviceModelIds; } });
54
+ // src/customLockScreen/
55
+ __exportStar(require("./customLockScreen/screenSpecs"), exports);
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAQA,+FAA8F;AAArF,oIAAA,wBAAwB,OAAA;AACjC,+FAA8F;AAArF,oIAAA,wBAAwB,OAAA;AACjC,gGAA+F;AAAtF,wIAAA,0BAA0B,OAAA;AACnC,oGAAmG;AAA1F,8IAAA,6BAA6B,OAAA;AACtC,oFAA8F;AAArF,iHAAA,SAAS,OAAA;AAAE,4HAAA,oBAAoB,OAAA;AACxC,8DAA6D;AAApD,sGAAA,SAAS,OAAA;AAClB,uEAA6E;AAApE,iHAAA,kBAAkB,OAAA;AAG3B,8DAAmE;AAA1D,8GAAA,gBAAgB,OAAA;AACzB,wFAAuF;AAA9E,kIAAA,uBAAuB,OAAA;AAChC,oEAAmE;AAA1D,8GAAA,aAAa,OAAA;AACtB,8FAA6F;AAApF,wIAAA,0BAA0B,OAAA;AACnC,kGAAiG;AAAxF,4IAAA,4BAA4B,OAAA;AACrC,8DAA6D;AAApD,wGAAA,UAAU,OAAA;AACnB,oBAAoB;AACpB,0FAGoD;AADlD,0IAAA,2BAA2B,OAAA;AAE7B,sFAAqF;AAA5E,sIAAA,yBAAyB,OAAA;AAClC,sFAAqF;AAA5E,sIAAA,yBAAyB,OAAA;AAClC,0FAAqF;AAA5E,sIAAA,uBAAuB,OAAA;AAChC,wBAAwB;AACxB,iEAA+C"}
@@ -0,0 +1,62 @@
1
+ import { Id } from "./Id";
2
+ export declare enum AppType {
3
+ app = "app",
4
+ currency = "currency",
5
+ plugin = "plugin",
6
+ tool = "tool",
7
+ swap = "swap"
8
+ }
9
+ /** App is higher level on top of Application and ApplicationVersion
10
+ with all fields Live needs and in normalized form (but still serializable) */
11
+ export type AppEntity = {
12
+ id: Id;
13
+ name: string;
14
+ displayName: string;
15
+ version: string;
16
+ currencyId: string | null | undefined;
17
+ description: string | null | undefined;
18
+ dateModified: string;
19
+ icon: string;
20
+ authorName: string | null | undefined;
21
+ supportURL: string | null | undefined;
22
+ contactURL: string | null | undefined;
23
+ sourceURL: string | null | undefined;
24
+ hash: string;
25
+ perso: string;
26
+ firmware: string;
27
+ firmware_key: string;
28
+ delete: string;
29
+ delete_key: string;
30
+ dependencies: string[];
31
+ bytes: number | null | undefined;
32
+ warning: string | null | undefined;
33
+ indexOfMarketCap: number;
34
+ isDevTools: boolean;
35
+ type: AppType;
36
+ };
37
+ export type ApplicationV2Entity = {
38
+ versionId: Id;
39
+ versionName: string;
40
+ versionDisplayName: string;
41
+ version: string;
42
+ currencyId: string;
43
+ description: string;
44
+ applicationType: AppType;
45
+ dateModified: string;
46
+ icon: string;
47
+ authorName: string;
48
+ supportURL: string;
49
+ contactURL: string;
50
+ sourceURL: string;
51
+ hash: string;
52
+ perso: string;
53
+ parentName: string | null;
54
+ firmware: string;
55
+ firmwareKey: string;
56
+ delete: string;
57
+ deleteKey: string;
58
+ bytes: number;
59
+ warning: string | null;
60
+ isDevTools: boolean;
61
+ };
62
+ //# sourceMappingURL=AppEntity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppEntity.d.ts","sourceRoot":"","sources":["../../../src/managerApi/entities/AppEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAE1B,oBAAY,OAAO;IACjB,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED;6EAC6E;AAC7E,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,EAAE,CAAC;IACP,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IAEnB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAEnC,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,EAAE,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppType = void 0;
4
+ var AppType;
5
+ (function (AppType) {
6
+ AppType["app"] = "app";
7
+ AppType["currency"] = "currency";
8
+ AppType["plugin"] = "plugin";
9
+ AppType["tool"] = "tool";
10
+ AppType["swap"] = "swap";
11
+ })(AppType || (exports.AppType = AppType = {}));
12
+ //# sourceMappingURL=AppEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppEntity.js","sourceRoot":"","sources":["../../../src/managerApi/entities/AppEntity.ts"],"names":[],"mappings":";;;AAEA,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,sBAAW,CAAA;IACX,gCAAqB,CAAA;IACrB,4BAAiB,CAAA;IACjB,wBAAa,CAAA;IACb,wBAAa,CAAA;AACf,CAAC,EANW,OAAO,uBAAP,OAAO,QAMlB"}
@@ -0,0 +1,22 @@
1
+ export type DeviceInfoEntity = {
2
+ mcuVersion: string;
3
+ version: string;
4
+ majMin: string;
5
+ targetId: string | number;
6
+ isBootloader: boolean;
7
+ isRecoveryMode?: boolean;
8
+ isOSU: boolean;
9
+ providerName: string | null | undefined;
10
+ managerAllowed: boolean;
11
+ pinValidated: boolean;
12
+ seVersion?: string;
13
+ mcuBlVersion?: string;
14
+ mcuTargetId?: number;
15
+ seTargetId?: number;
16
+ onboarded?: boolean;
17
+ hasDevFirmware?: boolean;
18
+ bootloaderVersion?: string;
19
+ hardwareVersion?: number;
20
+ languageId?: number;
21
+ };
22
+ //# sourceMappingURL=DeviceInfoEntity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceInfoEntity.d.ts","sourceRoot":"","sources":["../../../src/managerApi/entities/DeviceInfoEntity.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IAEnB,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;IAEf,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAE1B,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DeviceInfoEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceInfoEntity.js","sourceRoot":"","sources":["../../../src/managerApi/entities/DeviceInfoEntity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { Id } from "./Id";
2
+ export type DeviceVersionEntity = {
3
+ id: Id;
4
+ name: string;
5
+ display_name: string;
6
+ target_id: string;
7
+ description: string;
8
+ device: Id;
9
+ providers: Array<Id>;
10
+ mcu_versions: Array<Id>;
11
+ se_firmware_final_versions: Array<Id>;
12
+ osu_versions: Array<Id>;
13
+ application_versions: Array<Id>;
14
+ date_creation: string;
15
+ date_last_modified: string;
16
+ };
17
+ //# sourceMappingURL=DeviceVersionEntity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceVersionEntity.d.ts","sourceRoot":"","sources":["../../../src/managerApi/entities/DeviceVersionEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAE1B,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,EAAE,CAAC;IACP,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,EAAE,CAAC;IACX,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IACrB,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IACxB,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IACtC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IACxB,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DeviceVersionEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceVersionEntity.js","sourceRoot":"","sources":["../../../src/managerApi/entities/DeviceVersionEntity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ import { Id } from "./Id";
2
+ type BaseFirmware = {
3
+ id: Id;
4
+ name: string;
5
+ description: string | null | undefined;
6
+ display_name: string | null | undefined;
7
+ notes: string | null | undefined;
8
+ perso: string;
9
+ firmware: string;
10
+ firmware_key: string;
11
+ hash: string;
12
+ date_creation: string;
13
+ date_last_modified: string;
14
+ device_versions: Array<Id>;
15
+ providers: Array<Id>;
16
+ };
17
+ /**
18
+ *
19
+ */
20
+ export type OsuFirmware = BaseFirmware & {
21
+ next_se_firmware_final_version: Id;
22
+ previous_se_firmware_final_version: Array<Id>;
23
+ };
24
+ /**
25
+ *
26
+ */
27
+ export type FinalFirmware = BaseFirmware & {
28
+ version: string;
29
+ se_firmware: Id;
30
+ osu_versions: Array<OsuFirmware>;
31
+ mcu_versions: Array<Id>;
32
+ application_versions: Array<Id>;
33
+ bytes?: number;
34
+ updateAvailable?: FirmwareUpdateContextEntity | null | undefined;
35
+ };
36
+ export type FirmwareUpdateContextEntity = {
37
+ osu: OsuFirmware;
38
+ final: FinalFirmware;
39
+ shouldFlashMCU: boolean;
40
+ };
41
+ export {};
42
+ //# sourceMappingURL=FirmwareUpdateContextEntity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirmwareUpdateContextEntity.d.ts","sourceRoot":"","sources":["../../../src/managerApi/entities/FirmwareUpdateContextEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAE1B,KAAK,YAAY,GAAG;IAClB,EAAE,EAAE,EAAE,CAAC;IACP,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IAC3B,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG;IACvC,8BAA8B,EAAE,EAAE,CAAC;IACnC,kCAAkC,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,EAAE,CAAC;IAChB,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACjC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IACxB,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,2BAA2B,GAAG,IAAI,GAAG,SAAS,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,GAAG,EAAE,WAAW,CAAC;IACjB,KAAK,EAAE,aAAa,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FirmwareUpdateContextEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirmwareUpdateContextEntity.js","sourceRoot":"","sources":["../../../src/managerApi/entities/FirmwareUpdateContextEntity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type Id = number;
2
+ //# sourceMappingURL=Id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Id.d.ts","sourceRoot":"","sources":["../../../src/managerApi/entities/Id.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,EAAE,GAAG,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Id.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Id.js","sourceRoot":"","sources":["../../../src/managerApi/entities/Id.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ export type Language = "french" | "english" | "spanish";
2
+ export type LanguagePackageEntity = {
3
+ language: Language;
4
+ languagePackageVersionId: number;
5
+ version: string;
6
+ language_package_id: number;
7
+ apdu_install_url: string;
8
+ apdu_uninstall_url: string;
9
+ device_versions: number[];
10
+ se_firmware_final_versions: number[];
11
+ bytes: number;
12
+ date_creation: string;
13
+ date_last_modified: string;
14
+ };
15
+ export type LanguagePackageResponseEntity = {
16
+ id: number;
17
+ language: Language;
18
+ language_package_version: LanguagePackageEntity[];
19
+ };
20
+ //# sourceMappingURL=LanguagePackageEntity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LanguagePackageEntity.d.ts","sourceRoot":"","sources":["../../../src/managerApi/entities/LanguagePackageEntity.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAExD,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,QAAQ,CAAC;IACnB,wBAAwB,EAAE,MAAM,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,0BAA0B,EAAE,MAAM,EAAE,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,QAAQ,CAAC;IACnB,wBAAwB,EAAE,qBAAqB,EAAE,CAAC;CACnD,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LanguagePackageEntity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LanguagePackageEntity.js","sourceRoot":"","sources":["../../../src/managerApi/entities/LanguagePackageEntity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { DeviceInfo } from "@ledgerhq/types-live";
2
+ export declare const aDeviceInfoBuilder: (props?: Partial<DeviceInfo>) => DeviceInfo;
3
+ //# sourceMappingURL=aDeviceInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aDeviceInfo.d.ts","sourceRoot":"","sources":["../../../../src/managerApi/entities/mocks/aDeviceInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,eAAO,MAAM,kBAAkB,WAAY,QAAQ,UAAU,CAAC,KAAG,UAahE,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aDeviceInfoBuilder = void 0;
4
+ const aDeviceInfoBuilder = (props) => {
5
+ return Object.assign({ mcuVersion: "A_MCU_VERSION", version: "A_VERSION", majMin: "A_MAJ_MIN", targetId: "0.0", isBootloader: false, isOSU: true, providerName: undefined, managerAllowed: false, pinValidated: true }, props);
6
+ };
7
+ exports.aDeviceInfoBuilder = aDeviceInfoBuilder;
8
+ //# sourceMappingURL=aDeviceInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aDeviceInfo.js","sourceRoot":"","sources":["../../../../src/managerApi/entities/mocks/aDeviceInfo.ts"],"names":[],"mappings":";;;AAEO,MAAM,kBAAkB,GAAG,CAAC,KAA2B,EAAc,EAAE;IAC5E,uBACE,UAAU,EAAE,eAAe,EAC3B,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,KAAK,EACf,YAAY,EAAE,KAAK,EACnB,KAAK,EAAE,IAAI,EACX,YAAY,EAAE,SAAS,EACvB,cAAc,EAAE,KAAK,EACrB,YAAY,EAAE,IAAI,IACf,KAAK,EACR;AACJ,CAAC,CAAC;AAbW,QAAA,kBAAkB,sBAa7B"}
@@ -0,0 +1,3 @@
1
+ import { DeviceVersionEntity } from "../DeviceVersionEntity";
2
+ export declare const aDeviceVersionBuilder: (props?: Partial<DeviceVersionEntity>) => DeviceVersionEntity;
3
+ //# sourceMappingURL=aDeviceVersion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aDeviceVersion.d.ts","sourceRoot":"","sources":["../../../../src/managerApi/entities/mocks/aDeviceVersion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,eAAO,MAAM,qBAAqB,WACxB,QAAQ,mBAAmB,CAAC,KACnC,mBAiBF,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aDeviceVersionBuilder = void 0;
4
+ const aDeviceVersionBuilder = (props) => {
5
+ return Object.assign({ name: "Ledger Nano S", device: 3, providers: [], id: 5, display_name: "Ledger Nano S", target_id: "0x31100004", description: "Ledger Nano S", mcu_versions: [1.7], se_firmware_final_versions: [1.2], osu_versions: [], application_versions: [], date_creation: "2020-04-30T13:50:00.000Z", date_last_modified: "2020-04-30T13:50:00.000Z" }, props);
6
+ };
7
+ exports.aDeviceVersionBuilder = aDeviceVersionBuilder;
8
+ //# sourceMappingURL=aDeviceVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aDeviceVersion.js","sourceRoot":"","sources":["../../../../src/managerApi/entities/mocks/aDeviceVersion.ts"],"names":[],"mappings":";;;AAEO,MAAM,qBAAqB,GAAG,CACnC,KAAoC,EACf,EAAE;IACvB,uBACE,IAAI,EAAE,eAAe,EACrB,MAAM,EAAE,CAAC,EACT,SAAS,EAAE,EAAE,EACb,EAAE,EAAE,CAAC,EACL,YAAY,EAAE,eAAe,EAC7B,SAAS,EAAE,YAAY,EACvB,WAAW,EAAE,eAAe,EAC5B,YAAY,EAAE,CAAC,GAAG,CAAC,EACnB,0BAA0B,EAAE,CAAC,GAAG,CAAC,EACjC,YAAY,EAAE,EAAE,EAChB,oBAAoB,EAAE,EAAE,EACxB,aAAa,EAAE,0BAA0B,EACzC,kBAAkB,EAAE,0BAA0B,IAC3C,KAAK,EACR;AACJ,CAAC,CAAC;AAnBW,QAAA,qBAAqB,yBAmBhC"}
@@ -0,0 +1,3 @@
1
+ import { FinalFirmware } from "../FirmwareUpdateContextEntity";
2
+ export declare const aFinalFirmwareBuilder: (props?: Partial<FinalFirmware>) => FinalFirmware;
3
+ //# sourceMappingURL=aFinalFirmware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aFinalFirmware.d.ts","sourceRoot":"","sources":["../../../../src/managerApi/entities/mocks/aFinalFirmware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,eAAO,MAAM,qBAAqB,WAAY,QAAQ,aAAa,CAAC,KAAG,aAsBtE,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aFinalFirmwareBuilder = void 0;
4
+ const aFinalFirmwareBuilder = (props) => {
5
+ return Object.assign({ id: 1, name: "FINAL", description: null, display_name: null, notes: null, perso: "", firmware: "", firmware_key: "", hash: "", date_creation: "", date_last_modified: "", device_versions: [], providers: [], version: "0", se_firmware: 1, osu_versions: [], mcu_versions: [], application_versions: [] }, props);
6
+ };
7
+ exports.aFinalFirmwareBuilder = aFinalFirmwareBuilder;
8
+ //# sourceMappingURL=aFinalFirmware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aFinalFirmware.js","sourceRoot":"","sources":["../../../../src/managerApi/entities/mocks/aFinalFirmware.ts"],"names":[],"mappings":";;;AAEO,MAAM,qBAAqB,GAAG,CAAC,KAA8B,EAAiB,EAAE;IACrF,uBACE,EAAE,EAAE,CAAC,EACL,IAAI,EAAE,OAAO,EACb,WAAW,EAAE,IAAI,EACjB,YAAY,EAAE,IAAI,EAClB,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,EAAE,EACT,QAAQ,EAAE,EAAE,EACZ,YAAY,EAAE,EAAE,EAChB,IAAI,EAAE,EAAE,EACR,aAAa,EAAE,EAAE,EACjB,kBAAkB,EAAE,EAAE,EACtB,eAAe,EAAE,EAAE,EACnB,SAAS,EAAE,EAAE,EACb,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,CAAC,EACd,YAAY,EAAE,EAAE,EAChB,YAAY,EAAE,EAAE,EAChB,oBAAoB,EAAE,EAAE,IACrB,KAAK,EACR;AACJ,CAAC,CAAC;AAtBW,QAAA,qBAAqB,yBAsBhC"}
@@ -0,0 +1,19 @@
1
+ import { OsuFirmware } from "../FirmwareUpdateContextEntity";
2
+ export declare function aOsuFirmwareBuilder(props?: Partial<OsuFirmware>): {
3
+ id: number;
4
+ name: string;
5
+ description: string | null;
6
+ display_name: string | null;
7
+ notes: string | null;
8
+ perso: string;
9
+ firmware: string;
10
+ firmware_key: string;
11
+ hash: string;
12
+ date_creation: string;
13
+ date_last_modified: string;
14
+ device_versions: number[];
15
+ providers: number[];
16
+ next_se_firmware_final_version: number;
17
+ previous_se_firmware_final_version: number[];
18
+ };
19
+ //# sourceMappingURL=aOsuFirmware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aOsuFirmware.d.ts","sourceRoot":"","sources":["../../../../src/managerApi/entities/mocks/aOsuFirmware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;EAmB/D"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aOsuFirmwareBuilder = void 0;
4
+ function aOsuFirmwareBuilder(props) {
5
+ return Object.assign({ id: 0, name: "", display_name: "", notes: "", perso: "", firmware: "", firmware_key: "", hash: "", device_versions: [], next_se_firmware_final_version: 0, providers: [], date_creation: "", date_last_modified: "", description: "", previous_se_firmware_final_version: [] }, props);
6
+ }
7
+ exports.aOsuFirmwareBuilder = aOsuFirmwareBuilder;
8
+ //# sourceMappingURL=aOsuFirmware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aOsuFirmware.js","sourceRoot":"","sources":["../../../../src/managerApi/entities/mocks/aOsuFirmware.ts"],"names":[],"mappings":";;;AAEA,SAAgB,mBAAmB,CAAC,KAA4B;IAC9D,uBACE,EAAE,EAAE,CAAC,EACL,IAAI,EAAE,EAAE,EACR,YAAY,EAAE,EAAE,EAChB,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,EAAE,EACT,QAAQ,EAAE,EAAE,EACZ,YAAY,EAAE,EAAE,EAChB,IAAI,EAAE,EAAE,EACR,eAAe,EAAE,EAAE,EACnB,8BAA8B,EAAE,CAAC,EACjC,SAAS,EAAE,EAAE,EACb,aAAa,EAAE,EAAE,EACjB,kBAAkB,EAAE,EAAE,EACtB,WAAW,EAAE,EAAE,EACf,kCAAkC,EAAE,EAAE,IACnC,KAAK,EACR;AACJ,CAAC;AAnBD,kDAmBC"}
@@ -0,0 +1,18 @@
1
+ import { ManagerApiRepository } from "./ManagerApiRepository";
2
+ import { DeviceInfoEntity } from "../entities/DeviceInfoEntity";
3
+ import { LanguagePackageEntity } from "../entities/LanguagePackageEntity";
4
+ export declare class HttpManagerApiRepository implements ManagerApiRepository {
5
+ private readonly managerApiBase;
6
+ private readonly liveCommonVersion;
7
+ constructor(managerApiBase: string, liveCommonVersion: string);
8
+ readonly fetchLatestFirmware: ManagerApiRepository["fetchLatestFirmware"];
9
+ readonly fetchMcus: ManagerApiRepository["fetchMcus"];
10
+ readonly getDeviceVersion: ManagerApiRepository["getDeviceVersion"];
11
+ readonly getCurrentOSU: ManagerApiRepository["getCurrentOSU"];
12
+ readonly getCurrentFirmware: ManagerApiRepository["getCurrentFirmware"];
13
+ readonly getFinalFirmwareById: ManagerApiRepository["getFinalFirmwareById"];
14
+ readonly getAppsByHash: ManagerApiRepository["getAppsByHash"];
15
+ readonly catalogForDevice: ManagerApiRepository["catalogForDevice"];
16
+ readonly getLanguagePackagesForDevice: (deviceInfo: DeviceInfoEntity, forceProvider?: number) => Promise<LanguagePackageEntity[]>;
17
+ }
18
+ //# sourceMappingURL=HttpManagerApiRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HttpManagerApiRepository.d.ts","sourceRoot":"","sources":["../../../src/managerApi/repositories/HttpManagerApiRepository.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EACL,qBAAqB,EAEtB,MAAM,mCAAmC,CAAC;AAG3C,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IACxC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAS;gBAE/B,cAAc,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM;IAQ7D,QAAQ,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,qBAAqB,CAAC,CAiCvE;IAEF,QAAQ,CAAC,SAAS,EAAE,oBAAoB,CAAC,WAAW,CAAC,CAcnD;IAEF,QAAQ,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,CA+BjE;IAEF,QAAQ,CAAC,aAAa,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAmB3D;IAEF,QAAQ,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,oBAAoB,CAAC,CA6BrE;IAEF,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,sBAAsB,CAAC,CAkBzE;IAEF,QAAQ,CAAC,aAAa,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAwB3D;IAEF,QAAQ,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,CA2BjE;IAEF,QAAQ,CAAC,4BAA4B,eACvB,gBAAgB,kBACZ,MAAM,sCAyCtB;CACH"}