@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.
- package/.turbo/turbo-build.log +4 -0
- package/CHANGELOG.md +12 -0
- package/LICENSE.txt +21 -0
- package/jest.config.json +13 -0
- package/lib/capabilities/isCustomLockScreenSupported.d.ts +5 -0
- package/lib/capabilities/isCustomLockScreenSupported.d.ts.map +1 -0
- package/lib/capabilities/isCustomLockScreenSupported.js +16 -0
- package/lib/capabilities/isCustomLockScreenSupported.js.map +1 -0
- package/lib/capabilities/isCustomLockScreenSupported.test.d.ts +2 -0
- package/lib/capabilities/isCustomLockScreenSupported.test.d.ts.map +1 -0
- package/lib/capabilities/isCustomLockScreenSupported.test.js +22 -0
- package/lib/capabilities/isCustomLockScreenSupported.test.js.map +1 -0
- package/lib/capabilities/isEditDeviceNameSupported.d.ts +3 -0
- package/lib/capabilities/isEditDeviceNameSupported.d.ts.map +1 -0
- package/lib/capabilities/isEditDeviceNameSupported.js +9 -0
- package/lib/capabilities/isEditDeviceNameSupported.js.map +1 -0
- package/lib/capabilities/isEditDeviceNameSupported.test.d.ts +2 -0
- package/lib/capabilities/isEditDeviceNameSupported.test.d.ts.map +1 -0
- package/lib/capabilities/isEditDeviceNameSupported.test.js +19 -0
- package/lib/capabilities/isEditDeviceNameSupported.test.js.map +1 -0
- package/lib/capabilities/isSyncOnboardingSupported.d.ts +3 -0
- package/lib/capabilities/isSyncOnboardingSupported.d.ts.map +1 -0
- package/lib/capabilities/isSyncOnboardingSupported.js +9 -0
- package/lib/capabilities/isSyncOnboardingSupported.js.map +1 -0
- package/lib/capabilities/isSyncOnboardingSupported.test.d.ts +2 -0
- package/lib/capabilities/isSyncOnboardingSupported.test.d.ts.map +1 -0
- package/lib/capabilities/isSyncOnboardingSupported.test.js +17 -0
- package/lib/capabilities/isSyncOnboardingSupported.test.js.map +1 -0
- package/lib/commands/entities/APDU.d.ts +9 -0
- package/lib/commands/entities/APDU.d.ts.map +1 -0
- package/lib/commands/entities/APDU.js +3 -0
- package/lib/commands/entities/APDU.js.map +1 -0
- package/lib/commands/entities/FirmwareInfoEntity.d.ts +16 -0
- package/lib/commands/entities/FirmwareInfoEntity.d.ts.map +1 -0
- package/lib/commands/entities/FirmwareInfoEntity.js +3 -0
- package/lib/commands/entities/FirmwareInfoEntity.js.map +1 -0
- package/lib/commands/use-cases/getDeviceName.d.ts +3 -0
- package/lib/commands/use-cases/getDeviceName.d.ts.map +1 -0
- package/lib/commands/use-cases/getDeviceName.js +48 -0
- package/lib/commands/use-cases/getDeviceName.js.map +1 -0
- package/lib/commands/use-cases/getVersion.d.ts +15 -0
- package/lib/commands/use-cases/getVersion.d.ts.map +1 -0
- package/lib/commands/use-cases/getVersion.js +31 -0
- package/lib/commands/use-cases/getVersion.js.map +1 -0
- package/lib/commands/use-cases/isBootloaderVersionSupported.d.ts +7 -0
- package/lib/commands/use-cases/isBootloaderVersionSupported.d.ts.map +1 -0
- package/lib/commands/use-cases/isBootloaderVersionSupported.js +20 -0
- package/lib/commands/use-cases/isBootloaderVersionSupported.js.map +1 -0
- package/lib/commands/use-cases/isBootloaderVersionSupported.test.d.ts +2 -0
- package/lib/commands/use-cases/isBootloaderVersionSupported.test.d.ts.map +1 -0
- package/lib/commands/use-cases/isBootloaderVersionSupported.test.js +53 -0
- package/lib/commands/use-cases/isBootloaderVersionSupported.test.js.map +1 -0
- package/lib/commands/use-cases/isDeviceLocalizationSupported.d.ts +3 -0
- package/lib/commands/use-cases/isDeviceLocalizationSupported.d.ts.map +1 -0
- package/lib/commands/use-cases/isDeviceLocalizationSupported.js +15 -0
- package/lib/commands/use-cases/isDeviceLocalizationSupported.js.map +1 -0
- package/lib/commands/use-cases/isDeviceLocalizationSupported.test.d.ts +2 -0
- package/lib/commands/use-cases/isDeviceLocalizationSupported.test.d.ts.map +1 -0
- package/lib/commands/use-cases/isDeviceLocalizationSupported.test.js +45 -0
- package/lib/commands/use-cases/isDeviceLocalizationSupported.test.js.map +1 -0
- package/lib/commands/use-cases/isHardwareVersionSupported.d.ts +7 -0
- package/lib/commands/use-cases/isHardwareVersionSupported.d.ts.map +1 -0
- package/lib/commands/use-cases/isHardwareVersionSupported.js +16 -0
- package/lib/commands/use-cases/isHardwareVersionSupported.js.map +1 -0
- package/lib/commands/use-cases/isHardwareVersionSupported.test.d.ts +2 -0
- package/lib/commands/use-cases/isHardwareVersionSupported.test.d.ts.map +1 -0
- package/lib/commands/use-cases/isHardwareVersionSupported.test.js +36 -0
- package/lib/commands/use-cases/isHardwareVersionSupported.test.js.map +1 -0
- package/lib/commands/use-cases/parseGetDeviceNameResponse.d.ts +3 -0
- package/lib/commands/use-cases/parseGetDeviceNameResponse.d.ts.map +1 -0
- package/lib/commands/use-cases/parseGetDeviceNameResponse.js +23 -0
- package/lib/commands/use-cases/parseGetDeviceNameResponse.js.map +1 -0
- package/lib/commands/use-cases/parseGetDeviceNameResponse.test.d.ts +2 -0
- package/lib/commands/use-cases/parseGetDeviceNameResponse.test.d.ts.map +1 -0
- package/lib/commands/use-cases/parseGetDeviceNameResponse.test.js +27 -0
- package/lib/commands/use-cases/parseGetDeviceNameResponse.test.js.map +1 -0
- package/lib/commands/use-cases/parseGetVersionResponse.d.ts +4 -0
- package/lib/commands/use-cases/parseGetVersionResponse.d.ts.map +1 -0
- package/lib/commands/use-cases/parseGetVersionResponse.js +108 -0
- package/lib/commands/use-cases/parseGetVersionResponse.js.map +1 -0
- package/lib/commands/use-cases/parseGetVersionResponse.test.d.ts +2 -0
- package/lib/commands/use-cases/parseGetVersionResponse.test.d.ts.map +1 -0
- package/lib/commands/use-cases/parseGetVersionResponse.test.js +105 -0
- package/lib/commands/use-cases/parseGetVersionResponse.test.js.map +1 -0
- package/lib/customLockScreen/screenSpecs.d.ts +30 -0
- package/lib/customLockScreen/screenSpecs.d.ts.map +1 -0
- package/lib/customLockScreen/screenSpecs.js +46 -0
- package/lib/customLockScreen/screenSpecs.js.map +1 -0
- package/lib/index.d.ts +23 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +56 -0
- package/lib/index.js.map +1 -0
- package/lib/managerApi/entities/AppEntity.d.ts +62 -0
- package/lib/managerApi/entities/AppEntity.d.ts.map +1 -0
- package/lib/managerApi/entities/AppEntity.js +12 -0
- package/lib/managerApi/entities/AppEntity.js.map +1 -0
- package/lib/managerApi/entities/DeviceInfoEntity.d.ts +22 -0
- package/lib/managerApi/entities/DeviceInfoEntity.d.ts.map +1 -0
- package/lib/managerApi/entities/DeviceInfoEntity.js +3 -0
- package/lib/managerApi/entities/DeviceInfoEntity.js.map +1 -0
- package/lib/managerApi/entities/DeviceVersionEntity.d.ts +17 -0
- package/lib/managerApi/entities/DeviceVersionEntity.d.ts.map +1 -0
- package/lib/managerApi/entities/DeviceVersionEntity.js +3 -0
- package/lib/managerApi/entities/DeviceVersionEntity.js.map +1 -0
- package/lib/managerApi/entities/FirmwareUpdateContextEntity.d.ts +42 -0
- package/lib/managerApi/entities/FirmwareUpdateContextEntity.d.ts.map +1 -0
- package/lib/managerApi/entities/FirmwareUpdateContextEntity.js +3 -0
- package/lib/managerApi/entities/FirmwareUpdateContextEntity.js.map +1 -0
- package/lib/managerApi/entities/Id.d.ts +2 -0
- package/lib/managerApi/entities/Id.d.ts.map +1 -0
- package/lib/managerApi/entities/Id.js +3 -0
- package/lib/managerApi/entities/Id.js.map +1 -0
- package/lib/managerApi/entities/LanguagePackageEntity.d.ts +20 -0
- package/lib/managerApi/entities/LanguagePackageEntity.d.ts.map +1 -0
- package/lib/managerApi/entities/LanguagePackageEntity.js +3 -0
- package/lib/managerApi/entities/LanguagePackageEntity.js.map +1 -0
- package/lib/managerApi/entities/mocks/aDeviceInfo.d.ts +3 -0
- package/lib/managerApi/entities/mocks/aDeviceInfo.d.ts.map +1 -0
- package/lib/managerApi/entities/mocks/aDeviceInfo.js +8 -0
- package/lib/managerApi/entities/mocks/aDeviceInfo.js.map +1 -0
- package/lib/managerApi/entities/mocks/aDeviceVersion.d.ts +3 -0
- package/lib/managerApi/entities/mocks/aDeviceVersion.d.ts.map +1 -0
- package/lib/managerApi/entities/mocks/aDeviceVersion.js +8 -0
- package/lib/managerApi/entities/mocks/aDeviceVersion.js.map +1 -0
- package/lib/managerApi/entities/mocks/aFinalFirmware.d.ts +3 -0
- package/lib/managerApi/entities/mocks/aFinalFirmware.d.ts.map +1 -0
- package/lib/managerApi/entities/mocks/aFinalFirmware.js +8 -0
- package/lib/managerApi/entities/mocks/aFinalFirmware.js.map +1 -0
- package/lib/managerApi/entities/mocks/aOsuFirmware.d.ts +19 -0
- package/lib/managerApi/entities/mocks/aOsuFirmware.d.ts.map +1 -0
- package/lib/managerApi/entities/mocks/aOsuFirmware.js +8 -0
- package/lib/managerApi/entities/mocks/aOsuFirmware.js.map +1 -0
- package/lib/managerApi/repositories/HttpManagerApiRepository.d.ts +18 -0
- package/lib/managerApi/repositories/HttpManagerApiRepository.d.ts.map +1 -0
- package/lib/managerApi/repositories/HttpManagerApiRepository.js +204 -0
- package/lib/managerApi/repositories/HttpManagerApiRepository.js.map +1 -0
- package/lib/managerApi/repositories/HttpManagerApiRepository.test.d.ts +2 -0
- package/lib/managerApi/repositories/HttpManagerApiRepository.test.d.ts.map +1 -0
- package/lib/managerApi/repositories/HttpManagerApiRepository.test.js +402 -0
- package/lib/managerApi/repositories/HttpManagerApiRepository.test.js.map +1 -0
- package/lib/managerApi/repositories/ManagerApiRepository.d.ts +54 -0
- package/lib/managerApi/repositories/ManagerApiRepository.d.ts.map +1 -0
- package/lib/managerApi/repositories/ManagerApiRepository.js +3 -0
- package/lib/managerApi/repositories/ManagerApiRepository.js.map +1 -0
- package/lib/managerApi/repositories/StubManagerApiRepository.d.ts +15 -0
- package/lib/managerApi/repositories/StubManagerApiRepository.d.ts.map +1 -0
- package/lib/managerApi/repositories/StubManagerApiRepository.js +44 -0
- package/lib/managerApi/repositories/StubManagerApiRepository.js.map +1 -0
- package/lib/managerApi/use-cases/fetchMcus.d.ts +3 -0
- package/lib/managerApi/use-cases/fetchMcus.d.ts.map +1 -0
- package/lib/managerApi/use-cases/fetchMcus.js +8 -0
- package/lib/managerApi/use-cases/fetchMcus.js.map +1 -0
- package/lib/managerApi/use-cases/getLatestFirmwareForDevice.d.ts +12 -0
- package/lib/managerApi/use-cases/getLatestFirmwareForDevice.d.ts.map +1 -0
- package/lib/managerApi/use-cases/getLatestFirmwareForDevice.js +62 -0
- package/lib/managerApi/use-cases/getLatestFirmwareForDevice.js.map +1 -0
- package/lib/managerApi/use-cases/getLatestFirmwareForDevice.test.d.ts +2 -0
- package/lib/managerApi/use-cases/getLatestFirmwareForDevice.test.d.ts.map +1 -0
- package/lib/managerApi/use-cases/getLatestFirmwareForDevice.test.js +178 -0
- package/lib/managerApi/use-cases/getLatestFirmwareForDevice.test.js.map +1 -0
- package/lib/managerApi/use-cases/getProviderIdUseCase.d.ts +7 -0
- package/lib/managerApi/use-cases/getProviderIdUseCase.d.ts.map +1 -0
- package/lib/managerApi/use-cases/getProviderIdUseCase.js +23 -0
- package/lib/managerApi/use-cases/getProviderIdUseCase.js.map +1 -0
- package/lib/managerApi/use-cases/getUserHashes.d.ts +5 -0
- package/lib/managerApi/use-cases/getUserHashes.d.ts.map +1 -0
- package/lib/managerApi/use-cases/getUserHashes.js +33 -0
- package/lib/managerApi/use-cases/getUserHashes.js.map +1 -0
- package/lib-es/capabilities/isCustomLockScreenSupported.d.ts +5 -0
- package/lib-es/capabilities/isCustomLockScreenSupported.d.ts.map +1 -0
- package/lib-es/capabilities/isCustomLockScreenSupported.js +12 -0
- package/lib-es/capabilities/isCustomLockScreenSupported.js.map +1 -0
- package/lib-es/capabilities/isCustomLockScreenSupported.test.d.ts +2 -0
- package/lib-es/capabilities/isCustomLockScreenSupported.test.d.ts.map +1 -0
- package/lib-es/capabilities/isCustomLockScreenSupported.test.js +20 -0
- package/lib-es/capabilities/isCustomLockScreenSupported.test.js.map +1 -0
- package/lib-es/capabilities/isEditDeviceNameSupported.d.ts +3 -0
- package/lib-es/capabilities/isEditDeviceNameSupported.d.ts.map +1 -0
- package/lib-es/capabilities/isEditDeviceNameSupported.js +5 -0
- package/lib-es/capabilities/isEditDeviceNameSupported.js.map +1 -0
- package/lib-es/capabilities/isEditDeviceNameSupported.test.d.ts +2 -0
- package/lib-es/capabilities/isEditDeviceNameSupported.test.d.ts.map +1 -0
- package/lib-es/capabilities/isEditDeviceNameSupported.test.js +17 -0
- package/lib-es/capabilities/isEditDeviceNameSupported.test.js.map +1 -0
- package/lib-es/capabilities/isSyncOnboardingSupported.d.ts +3 -0
- package/lib-es/capabilities/isSyncOnboardingSupported.d.ts.map +1 -0
- package/lib-es/capabilities/isSyncOnboardingSupported.js +5 -0
- package/lib-es/capabilities/isSyncOnboardingSupported.js.map +1 -0
- package/lib-es/capabilities/isSyncOnboardingSupported.test.d.ts +2 -0
- package/lib-es/capabilities/isSyncOnboardingSupported.test.d.ts.map +1 -0
- package/lib-es/capabilities/isSyncOnboardingSupported.test.js +15 -0
- package/lib-es/capabilities/isSyncOnboardingSupported.test.js.map +1 -0
- package/lib-es/commands/entities/APDU.d.ts +9 -0
- package/lib-es/commands/entities/APDU.d.ts.map +1 -0
- package/lib-es/commands/entities/APDU.js +2 -0
- package/lib-es/commands/entities/APDU.js.map +1 -0
- package/lib-es/commands/entities/FirmwareInfoEntity.d.ts +16 -0
- package/lib-es/commands/entities/FirmwareInfoEntity.d.ts.map +1 -0
- package/lib-es/commands/entities/FirmwareInfoEntity.js +2 -0
- package/lib-es/commands/entities/FirmwareInfoEntity.js.map +1 -0
- package/lib-es/commands/use-cases/getDeviceName.d.ts +3 -0
- package/lib-es/commands/use-cases/getDeviceName.d.ts.map +1 -0
- package/lib-es/commands/use-cases/getDeviceName.js +44 -0
- package/lib-es/commands/use-cases/getDeviceName.js.map +1 -0
- package/lib-es/commands/use-cases/getVersion.d.ts +15 -0
- package/lib-es/commands/use-cases/getVersion.d.ts.map +1 -0
- package/lib-es/commands/use-cases/getVersion.js +27 -0
- package/lib-es/commands/use-cases/getVersion.js.map +1 -0
- package/lib-es/commands/use-cases/isBootloaderVersionSupported.d.ts +7 -0
- package/lib-es/commands/use-cases/isBootloaderVersionSupported.d.ts.map +1 -0
- package/lib-es/commands/use-cases/isBootloaderVersionSupported.js +16 -0
- package/lib-es/commands/use-cases/isBootloaderVersionSupported.js.map +1 -0
- package/lib-es/commands/use-cases/isBootloaderVersionSupported.test.d.ts +2 -0
- package/lib-es/commands/use-cases/isBootloaderVersionSupported.test.d.ts.map +1 -0
- package/lib-es/commands/use-cases/isBootloaderVersionSupported.test.js +51 -0
- package/lib-es/commands/use-cases/isBootloaderVersionSupported.test.js.map +1 -0
- package/lib-es/commands/use-cases/isDeviceLocalizationSupported.d.ts +3 -0
- package/lib-es/commands/use-cases/isDeviceLocalizationSupported.d.ts.map +1 -0
- package/lib-es/commands/use-cases/isDeviceLocalizationSupported.js +11 -0
- package/lib-es/commands/use-cases/isDeviceLocalizationSupported.js.map +1 -0
- package/lib-es/commands/use-cases/isDeviceLocalizationSupported.test.d.ts +2 -0
- package/lib-es/commands/use-cases/isDeviceLocalizationSupported.test.d.ts.map +1 -0
- package/lib-es/commands/use-cases/isDeviceLocalizationSupported.test.js +43 -0
- package/lib-es/commands/use-cases/isDeviceLocalizationSupported.test.js.map +1 -0
- package/lib-es/commands/use-cases/isHardwareVersionSupported.d.ts +7 -0
- package/lib-es/commands/use-cases/isHardwareVersionSupported.d.ts.map +1 -0
- package/lib-es/commands/use-cases/isHardwareVersionSupported.js +12 -0
- package/lib-es/commands/use-cases/isHardwareVersionSupported.js.map +1 -0
- package/lib-es/commands/use-cases/isHardwareVersionSupported.test.d.ts +2 -0
- package/lib-es/commands/use-cases/isHardwareVersionSupported.test.d.ts.map +1 -0
- package/lib-es/commands/use-cases/isHardwareVersionSupported.test.js +34 -0
- package/lib-es/commands/use-cases/isHardwareVersionSupported.test.js.map +1 -0
- package/lib-es/commands/use-cases/parseGetDeviceNameResponse.d.ts +3 -0
- package/lib-es/commands/use-cases/parseGetDeviceNameResponse.d.ts.map +1 -0
- package/lib-es/commands/use-cases/parseGetDeviceNameResponse.js +19 -0
- package/lib-es/commands/use-cases/parseGetDeviceNameResponse.js.map +1 -0
- package/lib-es/commands/use-cases/parseGetDeviceNameResponse.test.d.ts +2 -0
- package/lib-es/commands/use-cases/parseGetDeviceNameResponse.test.d.ts.map +1 -0
- package/lib-es/commands/use-cases/parseGetDeviceNameResponse.test.js +25 -0
- package/lib-es/commands/use-cases/parseGetDeviceNameResponse.test.js.map +1 -0
- package/lib-es/commands/use-cases/parseGetVersionResponse.d.ts +4 -0
- package/lib-es/commands/use-cases/parseGetVersionResponse.d.ts.map +1 -0
- package/lib-es/commands/use-cases/parseGetVersionResponse.js +104 -0
- package/lib-es/commands/use-cases/parseGetVersionResponse.js.map +1 -0
- package/lib-es/commands/use-cases/parseGetVersionResponse.test.d.ts +2 -0
- package/lib-es/commands/use-cases/parseGetVersionResponse.test.d.ts.map +1 -0
- package/lib-es/commands/use-cases/parseGetVersionResponse.test.js +103 -0
- package/lib-es/commands/use-cases/parseGetVersionResponse.test.js.map +1 -0
- package/lib-es/customLockScreen/screenSpecs.d.ts +30 -0
- package/lib-es/customLockScreen/screenSpecs.d.ts.map +1 -0
- package/lib-es/customLockScreen/screenSpecs.js +40 -0
- package/lib-es/customLockScreen/screenSpecs.js.map +1 -0
- package/lib-es/index.d.ts +23 -0
- package/lib-es/index.d.ts.map +1 -0
- package/lib-es/index.js +21 -0
- package/lib-es/index.js.map +1 -0
- package/lib-es/managerApi/entities/AppEntity.d.ts +62 -0
- package/lib-es/managerApi/entities/AppEntity.d.ts.map +1 -0
- package/lib-es/managerApi/entities/AppEntity.js +9 -0
- package/lib-es/managerApi/entities/AppEntity.js.map +1 -0
- package/lib-es/managerApi/entities/DeviceInfoEntity.d.ts +22 -0
- package/lib-es/managerApi/entities/DeviceInfoEntity.d.ts.map +1 -0
- package/lib-es/managerApi/entities/DeviceInfoEntity.js +2 -0
- package/lib-es/managerApi/entities/DeviceInfoEntity.js.map +1 -0
- package/lib-es/managerApi/entities/DeviceVersionEntity.d.ts +17 -0
- package/lib-es/managerApi/entities/DeviceVersionEntity.d.ts.map +1 -0
- package/lib-es/managerApi/entities/DeviceVersionEntity.js +2 -0
- package/lib-es/managerApi/entities/DeviceVersionEntity.js.map +1 -0
- package/lib-es/managerApi/entities/FirmwareUpdateContextEntity.d.ts +42 -0
- package/lib-es/managerApi/entities/FirmwareUpdateContextEntity.d.ts.map +1 -0
- package/lib-es/managerApi/entities/FirmwareUpdateContextEntity.js +2 -0
- package/lib-es/managerApi/entities/FirmwareUpdateContextEntity.js.map +1 -0
- package/lib-es/managerApi/entities/Id.d.ts +2 -0
- package/lib-es/managerApi/entities/Id.d.ts.map +1 -0
- package/lib-es/managerApi/entities/Id.js +2 -0
- package/lib-es/managerApi/entities/Id.js.map +1 -0
- package/lib-es/managerApi/entities/LanguagePackageEntity.d.ts +20 -0
- package/lib-es/managerApi/entities/LanguagePackageEntity.d.ts.map +1 -0
- package/lib-es/managerApi/entities/LanguagePackageEntity.js +2 -0
- package/lib-es/managerApi/entities/LanguagePackageEntity.js.map +1 -0
- package/lib-es/managerApi/entities/mocks/aDeviceInfo.d.ts +3 -0
- package/lib-es/managerApi/entities/mocks/aDeviceInfo.d.ts.map +1 -0
- package/lib-es/managerApi/entities/mocks/aDeviceInfo.js +4 -0
- package/lib-es/managerApi/entities/mocks/aDeviceInfo.js.map +1 -0
- package/lib-es/managerApi/entities/mocks/aDeviceVersion.d.ts +3 -0
- package/lib-es/managerApi/entities/mocks/aDeviceVersion.d.ts.map +1 -0
- package/lib-es/managerApi/entities/mocks/aDeviceVersion.js +4 -0
- package/lib-es/managerApi/entities/mocks/aDeviceVersion.js.map +1 -0
- package/lib-es/managerApi/entities/mocks/aFinalFirmware.d.ts +3 -0
- package/lib-es/managerApi/entities/mocks/aFinalFirmware.d.ts.map +1 -0
- package/lib-es/managerApi/entities/mocks/aFinalFirmware.js +4 -0
- package/lib-es/managerApi/entities/mocks/aFinalFirmware.js.map +1 -0
- package/lib-es/managerApi/entities/mocks/aOsuFirmware.d.ts +19 -0
- package/lib-es/managerApi/entities/mocks/aOsuFirmware.d.ts.map +1 -0
- package/lib-es/managerApi/entities/mocks/aOsuFirmware.js +4 -0
- package/lib-es/managerApi/entities/mocks/aOsuFirmware.js.map +1 -0
- package/lib-es/managerApi/repositories/HttpManagerApiRepository.d.ts +18 -0
- package/lib-es/managerApi/repositories/HttpManagerApiRepository.d.ts.map +1 -0
- package/lib-es/managerApi/repositories/HttpManagerApiRepository.js +197 -0
- package/lib-es/managerApi/repositories/HttpManagerApiRepository.js.map +1 -0
- package/lib-es/managerApi/repositories/HttpManagerApiRepository.test.d.ts +2 -0
- package/lib-es/managerApi/repositories/HttpManagerApiRepository.test.d.ts.map +1 -0
- package/lib-es/managerApi/repositories/HttpManagerApiRepository.test.js +400 -0
- package/lib-es/managerApi/repositories/HttpManagerApiRepository.test.js.map +1 -0
- package/lib-es/managerApi/repositories/ManagerApiRepository.d.ts +54 -0
- package/lib-es/managerApi/repositories/ManagerApiRepository.d.ts.map +1 -0
- package/lib-es/managerApi/repositories/ManagerApiRepository.js +2 -0
- package/lib-es/managerApi/repositories/ManagerApiRepository.js.map +1 -0
- package/lib-es/managerApi/repositories/StubManagerApiRepository.d.ts +15 -0
- package/lib-es/managerApi/repositories/StubManagerApiRepository.d.ts.map +1 -0
- package/lib-es/managerApi/repositories/StubManagerApiRepository.js +40 -0
- package/lib-es/managerApi/repositories/StubManagerApiRepository.js.map +1 -0
- package/lib-es/managerApi/use-cases/fetchMcus.d.ts +3 -0
- package/lib-es/managerApi/use-cases/fetchMcus.d.ts.map +1 -0
- package/lib-es/managerApi/use-cases/fetchMcus.js +4 -0
- package/lib-es/managerApi/use-cases/fetchMcus.js.map +1 -0
- package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.d.ts +12 -0
- package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.d.ts.map +1 -0
- package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.js +58 -0
- package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.js.map +1 -0
- package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.test.d.ts +2 -0
- package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.test.d.ts.map +1 -0
- package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.test.js +176 -0
- package/lib-es/managerApi/use-cases/getLatestFirmwareForDevice.test.js.map +1 -0
- package/lib-es/managerApi/use-cases/getProviderIdUseCase.d.ts +7 -0
- package/lib-es/managerApi/use-cases/getProviderIdUseCase.d.ts.map +1 -0
- package/lib-es/managerApi/use-cases/getProviderIdUseCase.js +19 -0
- package/lib-es/managerApi/use-cases/getProviderIdUseCase.js.map +1 -0
- package/lib-es/managerApi/use-cases/getUserHashes.d.ts +5 -0
- package/lib-es/managerApi/use-cases/getUserHashes.d.ts.map +1 -0
- package/lib-es/managerApi/use-cases/getUserHashes.js +26 -0
- package/lib-es/managerApi/use-cases/getUserHashes.js.map +1 -0
- package/package.json +67 -0
- package/src/capabilities/isCustomLockScreenSupported.test.ts +25 -0
- package/src/capabilities/isCustomLockScreenSupported.ts +17 -0
- package/src/capabilities/isEditDeviceNameSupported.test.ts +18 -0
- package/src/capabilities/isEditDeviceNameSupported.ts +5 -0
- package/src/capabilities/isSyncOnboardingSupported.test.ts +16 -0
- package/src/capabilities/isSyncOnboardingSupported.ts +5 -0
- package/src/commands/entities/APDU.ts +12 -0
- package/src/commands/entities/FirmwareInfoEntity.ts +14 -0
- package/src/commands/use-cases/getDeviceName.ts +38 -0
- package/src/commands/use-cases/getVersion.ts +23 -0
- package/src/commands/use-cases/isBootloaderVersionSupported.test.ts +58 -0
- package/src/commands/use-cases/isBootloaderVersionSupported.ts +24 -0
- package/src/commands/use-cases/isDeviceLocalizationSupported.test.ts +48 -0
- package/src/commands/use-cases/isDeviceLocalizationSupported.ts +20 -0
- package/src/commands/use-cases/isHardwareVersionSupported.test.ts +39 -0
- package/src/commands/use-cases/isHardwareVersionSupported.ts +20 -0
- package/src/commands/use-cases/parseGetDeviceNameResponse.test.ts +35 -0
- package/src/commands/use-cases/parseGetDeviceNameResponse.ts +20 -0
- package/src/commands/use-cases/parseGetVersionResponse.test.ts +123 -0
- package/src/commands/use-cases/parseGetVersionResponse.ts +121 -0
- package/src/customLockScreen/screenSpecs.ts +87 -0
- package/src/index.ts +33 -0
- package/src/managerApi/entities/AppEntity.ts +66 -0
- package/src/managerApi/entities/DeviceInfoEntity.ts +26 -0
- package/src/managerApi/entities/DeviceVersionEntity.ts +17 -0
- package/src/managerApi/entities/FirmwareUpdateContextEntity.ts +44 -0
- package/src/managerApi/entities/Id.ts +1 -0
- package/src/managerApi/entities/LanguagePackageEntity.ts +21 -0
- package/src/managerApi/entities/mocks/aDeviceInfo.ts +16 -0
- package/src/managerApi/entities/mocks/aDeviceVersion.ts +22 -0
- package/src/managerApi/entities/mocks/aFinalFirmware.ts +25 -0
- package/src/managerApi/entities/mocks/aOsuFirmware.ts +22 -0
- package/src/managerApi/repositories/HttpManagerApiRepository.test.ts +494 -0
- package/src/managerApi/repositories/HttpManagerApiRepository.ts +284 -0
- package/src/managerApi/repositories/ManagerApiRepository.ts +68 -0
- package/src/managerApi/repositories/StubManagerApiRepository.ts +49 -0
- package/src/managerApi/use-cases/fetchMcus.ts +5 -0
- package/src/managerApi/use-cases/getLatestFirmwareForDevice.test.ts +196 -0
- package/src/managerApi/use-cases/getLatestFirmwareForDevice.ts +66 -0
- package/src/managerApi/use-cases/getProviderIdUseCase.ts +24 -0
- package/src/managerApi/use-cases/getUserHashes.ts +30 -0
- 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
|
package/lib/index.js.map
ADDED
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"FirmwareUpdateContextEntity.js","sourceRoot":"","sources":["../../../src/managerApi/entities/FirmwareUpdateContextEntity.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"LanguagePackageEntity.js","sourceRoot":"","sources":["../../../src/managerApi/entities/LanguagePackageEntity.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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"}
|