@ledgerhq/device-management-kit 0.0.0-20241212001220
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/LICENSE.MD +202 -0
- package/README.md +322 -0
- package/lib/cjs/index.js +2 -0
- package/lib/cjs/index.js.map +7 -0
- package/lib/cjs/package.json +65 -0
- package/lib/cjs/src/api/DeviceManagementKit.js +2 -0
- package/lib/cjs/src/api/DeviceManagementKit.js.map +7 -0
- package/lib/cjs/src/api/DeviceManagementKit.test.js +2 -0
- package/lib/cjs/src/api/DeviceManagementKit.test.js.map +7 -0
- package/lib/cjs/src/api/DeviceManagementKitBuilder.js +2 -0
- package/lib/cjs/src/api/DeviceManagementKitBuilder.js.map +7 -0
- package/lib/cjs/src/api/DeviceManagementKitBuilder.test.js +2 -0
- package/lib/cjs/src/api/DeviceManagementKitBuilder.test.js.map +7 -0
- package/lib/cjs/src/api/DmkConfig.js +2 -0
- package/lib/cjs/src/api/DmkConfig.js.map +7 -0
- package/lib/cjs/src/api/Error.js +2 -0
- package/lib/cjs/src/api/Error.js.map +7 -0
- package/lib/cjs/src/api/apdu/model/Apdu.js +2 -0
- package/lib/cjs/src/api/apdu/model/Apdu.js.map +7 -0
- package/lib/cjs/src/api/apdu/model/Apdu.test.js +2 -0
- package/lib/cjs/src/api/apdu/model/Apdu.test.js.map +7 -0
- package/lib/cjs/src/api/apdu/utils/ApduBuilder.js +2 -0
- package/lib/cjs/src/api/apdu/utils/ApduBuilder.js.map +7 -0
- package/lib/cjs/src/api/apdu/utils/ApduBuilder.test.js +2 -0
- package/lib/cjs/src/api/apdu/utils/ApduBuilder.test.js.map +7 -0
- package/lib/cjs/src/api/apdu/utils/ApduParser.js +2 -0
- package/lib/cjs/src/api/apdu/utils/ApduParser.js.map +7 -0
- package/lib/cjs/src/api/apdu/utils/ApduParser.test.js +2 -0
- package/lib/cjs/src/api/apdu/utils/ApduParser.test.js.map +7 -0
- package/lib/cjs/src/api/apdu/utils/AppBuilderError.js +2 -0
- package/lib/cjs/src/api/apdu/utils/AppBuilderError.js.map +7 -0
- package/lib/cjs/src/api/apdu/utils/ByteArrayBuilder.js +2 -0
- package/lib/cjs/src/api/apdu/utils/ByteArrayBuilder.js.map +7 -0
- package/lib/cjs/src/api/apdu/utils/ByteArrayBuilder.test.js +2 -0
- package/lib/cjs/src/api/apdu/utils/ByteArrayBuilder.test.js.map +7 -0
- package/lib/cjs/src/api/apdu/utils/ByteArrayParser.js +2 -0
- package/lib/cjs/src/api/apdu/utils/ByteArrayParser.js.map +7 -0
- package/lib/cjs/src/api/apdu/utils/ByteArrayParser.test.js +2 -0
- package/lib/cjs/src/api/apdu/utils/ByteArrayParser.test.js.map +7 -0
- package/lib/cjs/src/api/command/Command.js +2 -0
- package/lib/cjs/src/api/command/Command.js.map +7 -0
- package/lib/cjs/src/api/command/Errors.js +2 -0
- package/lib/cjs/src/api/command/Errors.js.map +7 -0
- package/lib/cjs/src/api/command/di/commandModule.js +2 -0
- package/lib/cjs/src/api/command/di/commandModule.js.map +7 -0
- package/lib/cjs/src/api/command/di/commandModule.test.js +2 -0
- package/lib/cjs/src/api/command/di/commandModule.test.js.map +7 -0
- package/lib/cjs/src/api/command/di/commandTypes.js +2 -0
- package/lib/cjs/src/api/command/di/commandTypes.js.map +7 -0
- package/lib/cjs/src/api/command/model/CommandResult.js +2 -0
- package/lib/cjs/src/api/command/model/CommandResult.js.map +7 -0
- package/lib/cjs/src/api/command/model/CommandResult.test.js +2 -0
- package/lib/cjs/src/api/command/model/CommandResult.test.js.map +7 -0
- package/lib/cjs/src/api/command/os/CloseAppCommand.js +2 -0
- package/lib/cjs/src/api/command/os/CloseAppCommand.js.map +7 -0
- package/lib/cjs/src/api/command/os/CloseAppCommand.test.js +2 -0
- package/lib/cjs/src/api/command/os/CloseAppCommand.test.js.map +7 -0
- package/lib/cjs/src/api/command/os/GetAppAndVersionCommand.js +2 -0
- package/lib/cjs/src/api/command/os/GetAppAndVersionCommand.js.map +7 -0
- package/lib/cjs/src/api/command/os/GetAppAndVersionCommand.test.js +2 -0
- package/lib/cjs/src/api/command/os/GetAppAndVersionCommand.test.js.map +7 -0
- package/lib/cjs/src/api/command/os/GetBatteryStatusCommand.js +2 -0
- package/lib/cjs/src/api/command/os/GetBatteryStatusCommand.js.map +7 -0
- package/lib/cjs/src/api/command/os/GetBatteryStatusCommand.test.js +2 -0
- package/lib/cjs/src/api/command/os/GetBatteryStatusCommand.test.js.map +7 -0
- package/lib/cjs/src/api/command/os/GetOsVersionCommand.js +2 -0
- package/lib/cjs/src/api/command/os/GetOsVersionCommand.js.map +7 -0
- package/lib/cjs/src/api/command/os/GetOsVersionCommand.test.js +2 -0
- package/lib/cjs/src/api/command/os/GetOsVersionCommand.test.js.map +7 -0
- package/lib/cjs/src/api/command/os/ListAppsCommand.js +2 -0
- package/lib/cjs/src/api/command/os/ListAppsCommand.js.map +7 -0
- package/lib/cjs/src/api/command/os/ListAppsCommand.test.js +2 -0
- package/lib/cjs/src/api/command/os/ListAppsCommand.test.js.map +7 -0
- package/lib/cjs/src/api/command/os/OpenAppCommand.js +2 -0
- package/lib/cjs/src/api/command/os/OpenAppCommand.js.map +7 -0
- package/lib/cjs/src/api/command/os/OpenAppCommand.test.js +2 -0
- package/lib/cjs/src/api/command/os/OpenAppCommand.test.js.map +7 -0
- package/lib/cjs/src/api/command/os/__mocks__/GetOsVersionCommand.js +2 -0
- package/lib/cjs/src/api/command/os/__mocks__/GetOsVersionCommand.js.map +7 -0
- package/lib/cjs/src/api/command/use-case/SendCommandUseCase.js +2 -0
- package/lib/cjs/src/api/command/use-case/SendCommandUseCase.js.map +7 -0
- package/lib/cjs/src/api/command/use-case/SendCommandUseCase.test.js +2 -0
- package/lib/cjs/src/api/command/use-case/SendCommandUseCase.test.js.map +7 -0
- package/lib/cjs/src/api/command/utils/CommandErrors.js +2 -0
- package/lib/cjs/src/api/command/utils/CommandErrors.js.map +7 -0
- package/lib/cjs/src/api/command/utils/CommandUtils.js +2 -0
- package/lib/cjs/src/api/command/utils/CommandUtils.js.map +7 -0
- package/lib/cjs/src/api/command/utils/CommandUtils.test.js +2 -0
- package/lib/cjs/src/api/command/utils/CommandUtils.test.js.map +7 -0
- package/lib/cjs/src/api/command/utils/GlobalCommandError.js +2 -0
- package/lib/cjs/src/api/command/utils/GlobalCommandError.js.map +7 -0
- package/lib/cjs/src/api/command/utils/GlobalCommandError.test.js +2 -0
- package/lib/cjs/src/api/command/utils/GlobalCommandError.test.js.map +7 -0
- package/lib/cjs/src/api/device/DeviceModel.js +2 -0
- package/lib/cjs/src/api/device/DeviceModel.js.map +7 -0
- package/lib/cjs/src/api/device/DeviceStatus.js +2 -0
- package/lib/cjs/src/api/device/DeviceStatus.js.map +7 -0
- package/lib/cjs/src/api/device-action/DeviceAction.js +2 -0
- package/lib/cjs/src/api/device-action/DeviceAction.js.map +7 -0
- package/lib/cjs/src/api/device-action/__test-utils__/data.js +2 -0
- package/lib/cjs/src/api/device-action/__test-utils__/data.js.map +7 -0
- package/lib/cjs/src/api/device-action/__test-utils__/makeInternalApi.js +2 -0
- package/lib/cjs/src/api/device-action/__test-utils__/makeInternalApi.js.map +7 -0
- package/lib/cjs/src/api/device-action/__test-utils__/setupTestMachine.js +2 -0
- package/lib/cjs/src/api/device-action/__test-utils__/setupTestMachine.js.map +7 -0
- package/lib/cjs/src/api/device-action/__test-utils__/testDeviceActionStates.js +2 -0
- package/lib/cjs/src/api/device-action/__test-utils__/testDeviceActionStates.js.map +7 -0
- package/lib/cjs/src/api/device-action/di/deviceActionModule.js +2 -0
- package/lib/cjs/src/api/device-action/di/deviceActionModule.js.map +7 -0
- package/lib/cjs/src/api/device-action/di/deviceActionModule.test.js +2 -0
- package/lib/cjs/src/api/device-action/di/deviceActionModule.test.js.map +7 -0
- package/lib/cjs/src/api/device-action/di/deviceActionTypes.js +2 -0
- package/lib/cjs/src/api/device-action/di/deviceActionTypes.js.map +7 -0
- package/lib/cjs/src/api/device-action/model/DeviceActionState.js +2 -0
- package/lib/cjs/src/api/device-action/model/DeviceActionState.js.map +7 -0
- package/lib/cjs/src/api/device-action/model/UserInteractionRequired.js +2 -0
- package/lib/cjs/src/api/device-action/model/UserInteractionRequired.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/Const.js +2 -0
- package/lib/cjs/src/api/device-action/os/Const.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/Errors.js +2 -0
- package/lib/cjs/src/api/device-action/os/Errors.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/GetDeviceStatus/GetDeviceStatusDeviceAction.js +2 -0
- package/lib/cjs/src/api/device-action/os/GetDeviceStatus/GetDeviceStatusDeviceAction.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/GetDeviceStatus/GetDeviceStatusDeviceAction.test.js +2 -0
- package/lib/cjs/src/api/device-action/os/GetDeviceStatus/GetDeviceStatusDeviceAction.test.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/GetDeviceStatus/types.js +2 -0
- package/lib/cjs/src/api/device-action/os/GetDeviceStatus/types.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/GoToDashboard/GoToDashboardDeviceAction.js +2 -0
- package/lib/cjs/src/api/device-action/os/GoToDashboard/GoToDashboardDeviceAction.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/GoToDashboard/GoToDashboardDeviceAction.test.js +2 -0
- package/lib/cjs/src/api/device-action/os/GoToDashboard/GoToDashboardDeviceAction.test.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/GoToDashboard/types.js +2 -0
- package/lib/cjs/src/api/device-action/os/GoToDashboard/types.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/ListApps/ListAppsDeviceAction.js +2 -0
- package/lib/cjs/src/api/device-action/os/ListApps/ListAppsDeviceAction.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/ListApps/ListAppsDeviceAction.test.js +2 -0
- package/lib/cjs/src/api/device-action/os/ListApps/ListAppsDeviceAction.test.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/ListApps/types.js +2 -0
- package/lib/cjs/src/api/device-action/os/ListApps/types.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/ListAppsWithMetadata/ListAppsWithMetadataDeviceAction.js +2 -0
- package/lib/cjs/src/api/device-action/os/ListAppsWithMetadata/ListAppsWithMetadataDeviceAction.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/ListAppsWithMetadata/ListAppsWithMetadataDeviceAction.test.js +2 -0
- package/lib/cjs/src/api/device-action/os/ListAppsWithMetadata/ListAppsWithMetadataDeviceAction.test.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/ListAppsWithMetadata/types.js +2 -0
- package/lib/cjs/src/api/device-action/os/ListAppsWithMetadata/types.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/OpenAppDeviceAction/OpenAppDeviceAction.js +2 -0
- package/lib/cjs/src/api/device-action/os/OpenAppDeviceAction/OpenAppDeviceAction.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/OpenAppDeviceAction/OpenAppDeviceAction.test.js +2 -0
- package/lib/cjs/src/api/device-action/os/OpenAppDeviceAction/OpenAppDeviceAction.test.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/OpenAppDeviceAction/types.js +2 -0
- package/lib/cjs/src/api/device-action/os/OpenAppDeviceAction/types.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceAction.js +2 -0
- package/lib/cjs/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceAction.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceAction.test.js +2 -0
- package/lib/cjs/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceAction.test.js.map +7 -0
- package/lib/cjs/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceActionTypes.js +2 -0
- package/lib/cjs/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceActionTypes.js.map +7 -0
- package/lib/cjs/src/api/device-action/use-case/ExecuteDeviceActionUseCase.js +2 -0
- package/lib/cjs/src/api/device-action/use-case/ExecuteDeviceActionUseCase.js.map +7 -0
- package/lib/cjs/src/api/device-action/xstate-utils/StateMachineTypes.js +2 -0
- package/lib/cjs/src/api/device-action/xstate-utils/StateMachineTypes.js.map +7 -0
- package/lib/cjs/src/api/device-action/xstate-utils/XStateDeviceAction.js +2 -0
- package/lib/cjs/src/api/device-action/xstate-utils/XStateDeviceAction.js.map +7 -0
- package/lib/cjs/src/api/device-model/data/DeviceModelDataSource.js +2 -0
- package/lib/cjs/src/api/device-model/data/DeviceModelDataSource.js.map +7 -0
- package/lib/cjs/src/api/device-model/data/StaticDeviceModelDataSource.js +2 -0
- package/lib/cjs/src/api/device-model/data/StaticDeviceModelDataSource.js.map +7 -0
- package/lib/cjs/src/api/device-model/data/StaticDeviceModelDataSource.test.js +2 -0
- package/lib/cjs/src/api/device-model/data/StaticDeviceModelDataSource.test.js.map +7 -0
- package/lib/cjs/src/api/device-model/model/BleDeviceInfos.js +2 -0
- package/lib/cjs/src/api/device-model/model/BleDeviceInfos.js.map +7 -0
- package/lib/cjs/src/api/device-model/model/DeviceModel.js +2 -0
- package/lib/cjs/src/api/device-model/model/DeviceModel.js.map +7 -0
- package/lib/cjs/src/api/device-model/model/DeviceModel.stub.js +2 -0
- package/lib/cjs/src/api/device-model/model/DeviceModel.stub.js.map +7 -0
- package/lib/cjs/src/api/device-model/model/DeviceModel.test.js +2 -0
- package/lib/cjs/src/api/device-model/model/DeviceModel.test.js.map +7 -0
- package/lib/cjs/src/api/device-session/ApduResponse.js +2 -0
- package/lib/cjs/src/api/device-session/ApduResponse.js.map +7 -0
- package/lib/cjs/src/api/device-session/ApduResponse.stub.js +2 -0
- package/lib/cjs/src/api/device-session/ApduResponse.stub.js.map +7 -0
- package/lib/cjs/src/api/device-session/DeviceSessionState.js +2 -0
- package/lib/cjs/src/api/device-session/DeviceSessionState.js.map +7 -0
- package/lib/cjs/src/api/device-session/data/FramerConst.js +2 -0
- package/lib/cjs/src/api/device-session/data/FramerConst.js.map +7 -0
- package/lib/cjs/src/api/device-session/service/ApduReceiverService.js +2 -0
- package/lib/cjs/src/api/device-session/service/ApduReceiverService.js.map +7 -0
- package/lib/cjs/src/api/device-session/service/ApduSenderService.js +2 -0
- package/lib/cjs/src/api/device-session/service/ApduSenderService.js.map +7 -0
- package/lib/cjs/src/api/device-session/service/DefaultApduReceiverService.stub.js +2 -0
- package/lib/cjs/src/api/device-session/service/DefaultApduReceiverService.stub.js.map +7 -0
- package/lib/cjs/src/api/device-session/service/DefaultApduSenderService.stub.js +2 -0
- package/lib/cjs/src/api/device-session/service/DefaultApduSenderService.stub.js.map +7 -0
- package/lib/cjs/src/api/device-session/types.js +2 -0
- package/lib/cjs/src/api/device-session/types.js.map +7 -0
- package/lib/cjs/src/api/device-session/use-case/ToggleDeviceSessionRefresher.js +2 -0
- package/lib/cjs/src/api/device-session/use-case/ToggleDeviceSessionRefresher.js.map +7 -0
- package/lib/cjs/src/api/device-session/use-case/ToggleDeviceSessionRefresher.test.js +2 -0
- package/lib/cjs/src/api/device-session/use-case/ToggleDeviceSessionRefresher.test.js.map +7 -0
- package/lib/cjs/src/api/device-session/utils/FramerUtils.js +2 -0
- package/lib/cjs/src/api/device-session/utils/FramerUtils.js.map +7 -0
- package/lib/cjs/src/api/device-session/utils/FramerUtils.test.js +2 -0
- package/lib/cjs/src/api/device-session/utils/FramerUtils.test.js.map +7 -0
- package/lib/cjs/src/api/discovery/ConnectionType.js +2 -0
- package/lib/cjs/src/api/discovery/ConnectionType.js.map +7 -0
- package/lib/cjs/src/api/index.js +2 -0
- package/lib/cjs/src/api/index.js.map +7 -0
- package/lib/cjs/src/api/logger-publisher/service/LoggerPublisherService.js +2 -0
- package/lib/cjs/src/api/logger-publisher/service/LoggerPublisherService.js.map +7 -0
- package/lib/cjs/src/api/logger-subscriber/model/LogLevel.js +2 -0
- package/lib/cjs/src/api/logger-subscriber/model/LogLevel.js.map +7 -0
- package/lib/cjs/src/api/logger-subscriber/model/LogSubscriberOptions.js +2 -0
- package/lib/cjs/src/api/logger-subscriber/model/LogSubscriberOptions.js.map +7 -0
- package/lib/cjs/src/api/logger-subscriber/service/ConsoleLogger.js +2 -0
- package/lib/cjs/src/api/logger-subscriber/service/ConsoleLogger.js.map +7 -0
- package/lib/cjs/src/api/logger-subscriber/service/ConsoleLogger.test.js +2 -0
- package/lib/cjs/src/api/logger-subscriber/service/ConsoleLogger.test.js.map +7 -0
- package/lib/cjs/src/api/logger-subscriber/service/LoggerSubscriberService.js +2 -0
- package/lib/cjs/src/api/logger-subscriber/service/LoggerSubscriberService.js.map +7 -0
- package/lib/cjs/src/api/logger-subscriber/service/WebLogsExporterLogger.js +2 -0
- package/lib/cjs/src/api/logger-subscriber/service/WebLogsExporterLogger.js.map +7 -0
- package/lib/cjs/src/api/logger-subscriber/service/WebLogsExporterLogger.test.js +2 -0
- package/lib/cjs/src/api/logger-subscriber/service/WebLogsExporterLogger.test.js.map +7 -0
- package/lib/cjs/src/api/logger-subscriber/service/__mocks__/ConsoleLogger.js +2 -0
- package/lib/cjs/src/api/logger-subscriber/service/__mocks__/ConsoleLogger.js.map +7 -0
- package/lib/cjs/src/api/transport/model/ConnectedDevice.js +2 -0
- package/lib/cjs/src/api/transport/model/ConnectedDevice.js.map +7 -0
- package/lib/cjs/src/api/transport/model/DeviceConnection.js +2 -0
- package/lib/cjs/src/api/transport/model/DeviceConnection.js.map +7 -0
- package/lib/cjs/src/api/transport/model/DeviceConnectionFactory.stub.js +2 -0
- package/lib/cjs/src/api/transport/model/DeviceConnectionFactory.stub.js.map +7 -0
- package/lib/cjs/src/api/transport/model/DiscoveredDevice.js +2 -0
- package/lib/cjs/src/api/transport/model/DiscoveredDevice.js.map +7 -0
- package/lib/cjs/src/api/transport/model/Errors.js +2 -0
- package/lib/cjs/src/api/transport/model/Errors.js.map +7 -0
- package/lib/cjs/src/api/transport/model/Transport.js +2 -0
- package/lib/cjs/src/api/transport/model/Transport.js.map +7 -0
- package/lib/cjs/src/api/transport/model/TransportConnectedDevice.js +2 -0
- package/lib/cjs/src/api/transport/model/TransportConnectedDevice.js.map +7 -0
- package/lib/cjs/src/api/transport/model/TransportConnectedDevice.stub.js +2 -0
- package/lib/cjs/src/api/transport/model/TransportConnectedDevice.stub.js.map +7 -0
- package/lib/cjs/src/api/transport/model/TransportConnectedDevice.test.js +2 -0
- package/lib/cjs/src/api/transport/model/TransportConnectedDevice.test.js.map +7 -0
- package/lib/cjs/src/api/transport/model/TransportDiscoveredDevice.js +2 -0
- package/lib/cjs/src/api/transport/model/TransportDiscoveredDevice.js.map +7 -0
- package/lib/cjs/src/api/transport/model/TransportIdentifier.js +2 -0
- package/lib/cjs/src/api/transport/model/TransportIdentifier.js.map +7 -0
- package/lib/cjs/src/api/transport/model/__mocks__/TransportMock.js +2 -0
- package/lib/cjs/src/api/transport/model/__mocks__/TransportMock.js.map +7 -0
- package/lib/cjs/src/api/types.js +2 -0
- package/lib/cjs/src/api/types.js.map +7 -0
- package/lib/cjs/src/api/utils/Base64String.js +2 -0
- package/lib/cjs/src/api/utils/Base64String.js.map +7 -0
- package/lib/cjs/src/api/utils/Base64String.test.js +2 -0
- package/lib/cjs/src/api/utils/Base64String.test.js.map +7 -0
- package/lib/cjs/src/api/utils/HexaString.js +2 -0
- package/lib/cjs/src/api/utils/HexaString.js.map +7 -0
- package/lib/cjs/src/api/utils/HexaString.test.js +2 -0
- package/lib/cjs/src/api/utils/HexaString.test.js.map +7 -0
- package/lib/cjs/src/di.js +2 -0
- package/lib/cjs/src/di.js.map +7 -0
- package/lib/cjs/src/di.stub.js +2 -0
- package/lib/cjs/src/di.stub.js.map +7 -0
- package/lib/cjs/src/index.js +2 -0
- package/lib/cjs/src/index.js.map +7 -0
- package/lib/cjs/src/internal/config/data/ConfigDataSource.js +2 -0
- package/lib/cjs/src/internal/config/data/ConfigDataSource.js.map +7 -0
- package/lib/cjs/src/internal/config/data/Dto.js +2 -0
- package/lib/cjs/src/internal/config/data/Dto.js.map +7 -0
- package/lib/cjs/src/internal/config/data/LocalConfigDataSource.js +2 -0
- package/lib/cjs/src/internal/config/data/LocalConfigDataSource.js.map +7 -0
- package/lib/cjs/src/internal/config/data/LocalConfigDataSource.stub.js +2 -0
- package/lib/cjs/src/internal/config/data/LocalConfigDataSource.stub.js.map +7 -0
- package/lib/cjs/src/internal/config/data/LocalConfigDataSource.test.js +2 -0
- package/lib/cjs/src/internal/config/data/LocalConfigDataSource.test.js.map +7 -0
- package/lib/cjs/src/internal/config/data/RemoteConfigDataSource.js +2 -0
- package/lib/cjs/src/internal/config/data/RemoteConfigDataSource.js.map +7 -0
- package/lib/cjs/src/internal/config/data/RemoteConfigDataSource.stub.js +2 -0
- package/lib/cjs/src/internal/config/data/RemoteConfigDataSource.stub.js.map +7 -0
- package/lib/cjs/src/internal/config/data/RemoteConfigDataSource.test.js +2 -0
- package/lib/cjs/src/internal/config/data/RemoteConfigDataSource.test.js.map +7 -0
- package/lib/cjs/src/internal/config/data/__mocks__/LocalConfigDataSource.js +2 -0
- package/lib/cjs/src/internal/config/data/__mocks__/LocalConfigDataSource.js.map +7 -0
- package/lib/cjs/src/internal/config/data/__mocks__/RemoteConfigDataSource.js +2 -0
- package/lib/cjs/src/internal/config/data/__mocks__/RemoteConfigDataSource.js.map +7 -0
- package/lib/cjs/src/internal/config/di/configModule.js +2 -0
- package/lib/cjs/src/internal/config/di/configModule.js.map +7 -0
- package/lib/cjs/src/internal/config/di/configModule.test.js +2 -0
- package/lib/cjs/src/internal/config/di/configModule.test.js.map +7 -0
- package/lib/cjs/src/internal/config/di/configTypes.js +2 -0
- package/lib/cjs/src/internal/config/di/configTypes.js.map +7 -0
- package/lib/cjs/src/internal/config/model/Config.js +2 -0
- package/lib/cjs/src/internal/config/model/Config.js.map +7 -0
- package/lib/cjs/src/internal/config/model/Errors.js +2 -0
- package/lib/cjs/src/internal/config/model/Errors.js.map +7 -0
- package/lib/cjs/src/internal/config/service/ConfigService.js +2 -0
- package/lib/cjs/src/internal/config/service/ConfigService.js.map +7 -0
- package/lib/cjs/src/internal/config/service/DefaultConfigService.js +2 -0
- package/lib/cjs/src/internal/config/service/DefaultConfigService.js.map +7 -0
- package/lib/cjs/src/internal/config/service/DefaultConfigService.test.js +2 -0
- package/lib/cjs/src/internal/config/service/DefaultConfigService.test.js.map +7 -0
- package/lib/cjs/src/internal/config/use-case/GetDmkVersionUseCase.js +2 -0
- package/lib/cjs/src/internal/config/use-case/GetDmkVersionUseCase.js.map +7 -0
- package/lib/cjs/src/internal/config/use-case/GetDmkVersionUseCase.test.js +2 -0
- package/lib/cjs/src/internal/config/use-case/GetDmkVersionUseCase.test.js.map +7 -0
- package/lib/cjs/src/internal/device-model/di/deviceModelModule.js +2 -0
- package/lib/cjs/src/internal/device-model/di/deviceModelModule.js.map +7 -0
- package/lib/cjs/src/internal/device-model/di/deviceModelModule.test.js +2 -0
- package/lib/cjs/src/internal/device-model/di/deviceModelModule.test.js.map +7 -0
- package/lib/cjs/src/internal/device-model/di/deviceModelTypes.js +2 -0
- package/lib/cjs/src/internal/device-model/di/deviceModelTypes.js.map +7 -0
- package/lib/cjs/src/internal/device-session/data/ApduResponseConst.js +2 -0
- package/lib/cjs/src/internal/device-session/data/ApduResponseConst.js.map +7 -0
- package/lib/cjs/src/internal/device-session/data/DeviceSessionRefresherConst.js +2 -0
- package/lib/cjs/src/internal/device-session/data/DeviceSessionRefresherConst.js.map +7 -0
- package/lib/cjs/src/internal/device-session/di/deviceSessionModule.js +2 -0
- package/lib/cjs/src/internal/device-session/di/deviceSessionModule.js.map +7 -0
- package/lib/cjs/src/internal/device-session/di/deviceSessionModule.test.js +2 -0
- package/lib/cjs/src/internal/device-session/di/deviceSessionModule.test.js.map +7 -0
- package/lib/cjs/src/internal/device-session/di/deviceSessionTypes.js +2 -0
- package/lib/cjs/src/internal/device-session/di/deviceSessionTypes.js.map +7 -0
- package/lib/cjs/src/internal/device-session/model/DeviceSession.js +2 -0
- package/lib/cjs/src/internal/device-session/model/DeviceSession.js.map +7 -0
- package/lib/cjs/src/internal/device-session/model/DeviceSession.stub.js +2 -0
- package/lib/cjs/src/internal/device-session/model/DeviceSession.stub.js.map +7 -0
- package/lib/cjs/src/internal/device-session/model/DeviceSessionRefresher.js +2 -0
- package/lib/cjs/src/internal/device-session/model/DeviceSessionRefresher.js.map +7 -0
- package/lib/cjs/src/internal/device-session/model/DeviceSessionRefresher.test.js +2 -0
- package/lib/cjs/src/internal/device-session/model/DeviceSessionRefresher.test.js.map +7 -0
- package/lib/cjs/src/internal/device-session/model/Errors.js +2 -0
- package/lib/cjs/src/internal/device-session/model/Errors.js.map +7 -0
- package/lib/cjs/src/internal/device-session/model/Frame.js +2 -0
- package/lib/cjs/src/internal/device-session/model/Frame.js.map +7 -0
- package/lib/cjs/src/internal/device-session/model/FrameHeader.js +2 -0
- package/lib/cjs/src/internal/device-session/model/FrameHeader.js.map +7 -0
- package/lib/cjs/src/internal/device-session/service/DefaultApduReceiverService.js +2 -0
- package/lib/cjs/src/internal/device-session/service/DefaultApduReceiverService.js.map +7 -0
- package/lib/cjs/src/internal/device-session/service/DefaultApduReceiverService.test.js +2 -0
- package/lib/cjs/src/internal/device-session/service/DefaultApduReceiverService.test.js.map +7 -0
- package/lib/cjs/src/internal/device-session/service/DefaultApduSenderService.js +2 -0
- package/lib/cjs/src/internal/device-session/service/DefaultApduSenderService.js.map +7 -0
- package/lib/cjs/src/internal/device-session/service/DefaultApduSenderService.test.js +2 -0
- package/lib/cjs/src/internal/device-session/service/DefaultApduSenderService.test.js.map +7 -0
- package/lib/cjs/src/internal/device-session/service/DefaultDeviceSessionService.js +2 -0
- package/lib/cjs/src/internal/device-session/service/DefaultDeviceSessionService.js.map +7 -0
- package/lib/cjs/src/internal/device-session/service/DefaultDeviceSessionService.test.js +2 -0
- package/lib/cjs/src/internal/device-session/service/DefaultDeviceSessionService.test.js.map +7 -0
- package/lib/cjs/src/internal/device-session/service/DeviceSessionService.js +2 -0
- package/lib/cjs/src/internal/device-session/service/DeviceSessionService.js.map +7 -0
- package/lib/cjs/src/internal/device-session/use-case/CloseSessionsUseCase.js +2 -0
- package/lib/cjs/src/internal/device-session/use-case/CloseSessionsUseCase.js.map +7 -0
- package/lib/cjs/src/internal/device-session/use-case/CloseSessionsUseCase.test.js +2 -0
- package/lib/cjs/src/internal/device-session/use-case/CloseSessionsUseCase.test.js.map +7 -0
- package/lib/cjs/src/internal/device-session/use-case/GetDeviceSessionStateUseCase.js +2 -0
- package/lib/cjs/src/internal/device-session/use-case/GetDeviceSessionStateUseCase.js.map +7 -0
- package/lib/cjs/src/internal/device-session/use-case/GetDeviceSessionStateUseCase.test.js +2 -0
- package/lib/cjs/src/internal/device-session/use-case/GetDeviceSessionStateUseCase.test.js.map +7 -0
- package/lib/cjs/src/internal/discovery/di/discoveryModule.js +2 -0
- package/lib/cjs/src/internal/discovery/di/discoveryModule.js.map +7 -0
- package/lib/cjs/src/internal/discovery/di/discoveryModule.test.js +2 -0
- package/lib/cjs/src/internal/discovery/di/discoveryModule.test.js.map +7 -0
- package/lib/cjs/src/internal/discovery/di/discoveryTypes.js +2 -0
- package/lib/cjs/src/internal/discovery/di/discoveryTypes.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/ConnectUseCase.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/ConnectUseCase.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/ConnectUseCase.test.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/ConnectUseCase.test.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/DisconnectUseCase.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/DisconnectUseCase.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/DisconnectUseCase.test.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/DisconnectUseCase.test.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/GetConnectedDeviceUseCase.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/GetConnectedDeviceUseCase.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/GetConnectedDeviceUseCase.test.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/GetConnectedDeviceUseCase.test.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/ListConnectedDevicesUseCase.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/ListConnectedDevicesUseCase.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/ListConnectedDevicesUseCase.test.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/ListConnectedDevicesUseCase.test.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/ListenToConnectedDeviceUseCase.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/ListenToConnectedDeviceUseCase.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/ListenToConnectedDeviceUseCase.test.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/ListenToConnectedDeviceUseCase.test.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/ListenToKnownDevicesUseCase.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/ListenToKnownDevicesUseCase.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/ListenToKnownDevicesUseCase.test.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/ListenToKnownDevicesUseCase.test.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/StartDiscoveringUseCase.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/StartDiscoveringUseCase.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/StartDiscoveringUseCase.test.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/StartDiscoveringUseCase.test.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/StopDiscoveringUseCase.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/StopDiscoveringUseCase.js.map +7 -0
- package/lib/cjs/src/internal/discovery/use-case/StopDiscoveringUseCase.test.js +2 -0
- package/lib/cjs/src/internal/discovery/use-case/StopDiscoveringUseCase.test.js.map +7 -0
- package/lib/cjs/src/internal/logger-publisher/di/loggerModule.js +2 -0
- package/lib/cjs/src/internal/logger-publisher/di/loggerModule.js.map +7 -0
- package/lib/cjs/src/internal/logger-publisher/di/loggerModule.test.js +2 -0
- package/lib/cjs/src/internal/logger-publisher/di/loggerModule.test.js.map +7 -0
- package/lib/cjs/src/internal/logger-publisher/di/loggerTypes.js +2 -0
- package/lib/cjs/src/internal/logger-publisher/di/loggerTypes.js.map +7 -0
- package/lib/cjs/src/internal/logger-publisher/model/LogPublisherOptions.js +2 -0
- package/lib/cjs/src/internal/logger-publisher/model/LogPublisherOptions.js.map +7 -0
- package/lib/cjs/src/internal/logger-publisher/service/DefaultLoggerPublisherService.js +2 -0
- package/lib/cjs/src/internal/logger-publisher/service/DefaultLoggerPublisherService.js.map +7 -0
- package/lib/cjs/src/internal/logger-publisher/service/DefaultLoggerPublisherService.stub.js +2 -0
- package/lib/cjs/src/internal/logger-publisher/service/DefaultLoggerPublisherService.stub.js.map +7 -0
- package/lib/cjs/src/internal/logger-publisher/service/DefaultLoggerPublisherService.test.js +2 -0
- package/lib/cjs/src/internal/logger-publisher/service/DefaultLoggerPublisherService.test.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/data/AxiosManagerApiDataSource.js +2 -0
- package/lib/cjs/src/internal/manager-api/data/AxiosManagerApiDataSource.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/data/AxiosManagerApiDataSource.test.js +2 -0
- package/lib/cjs/src/internal/manager-api/data/AxiosManagerApiDataSource.test.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/data/ManagerApiDataSource.js +2 -0
- package/lib/cjs/src/internal/manager-api/data/ManagerApiDataSource.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/data/ManagerApiDto.js +2 -0
- package/lib/cjs/src/internal/manager-api/data/ManagerApiDto.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/data/__mocks__/AxiosManagerApiDataSource.js +2 -0
- package/lib/cjs/src/internal/manager-api/data/__mocks__/AxiosManagerApiDataSource.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/di/managerApiModule.js +2 -0
- package/lib/cjs/src/internal/manager-api/di/managerApiModule.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/di/managerApiModule.test.js +2 -0
- package/lib/cjs/src/internal/manager-api/di/managerApiModule.test.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/di/managerApiTypes.js +2 -0
- package/lib/cjs/src/internal/manager-api/di/managerApiTypes.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/model/Application.js +2 -0
- package/lib/cjs/src/internal/manager-api/model/Application.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/model/Const.js +2 -0
- package/lib/cjs/src/internal/manager-api/model/Const.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/model/Device.js +2 -0
- package/lib/cjs/src/internal/manager-api/model/Device.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/model/Errors.js +2 -0
- package/lib/cjs/src/internal/manager-api/model/Errors.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/model/Firmware.js +2 -0
- package/lib/cjs/src/internal/manager-api/model/Firmware.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/service/DefaultManagerApiService.js +2 -0
- package/lib/cjs/src/internal/manager-api/service/DefaultManagerApiService.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/service/DefaultManagerApiService.test.js +2 -0
- package/lib/cjs/src/internal/manager-api/service/DefaultManagerApiService.test.js.map +7 -0
- package/lib/cjs/src/internal/manager-api/service/ManagerApiService.js +2 -0
- package/lib/cjs/src/internal/manager-api/service/ManagerApiService.js.map +7 -0
- package/lib/cjs/src/internal/send/di/sendModule.js +2 -0
- package/lib/cjs/src/internal/send/di/sendModule.js.map +7 -0
- package/lib/cjs/src/internal/send/di/sendModule.test.js +2 -0
- package/lib/cjs/src/internal/send/di/sendModule.test.js.map +7 -0
- package/lib/cjs/src/internal/send/di/sendTypes.js +2 -0
- package/lib/cjs/src/internal/send/di/sendTypes.js.map +7 -0
- package/lib/cjs/src/internal/send/use-case/SendApduUseCase.js +2 -0
- package/lib/cjs/src/internal/send/use-case/SendApduUseCase.js.map +7 -0
- package/lib/cjs/src/internal/send/use-case/SendApduUseCase.test.js +2 -0
- package/lib/cjs/src/internal/send/use-case/SendApduUseCase.test.js.map +7 -0
- package/lib/cjs/src/internal/transport/di/transportDiTypes.js +2 -0
- package/lib/cjs/src/internal/transport/di/transportDiTypes.js.map +7 -0
- package/lib/cjs/src/internal/transport/di/transportModule.js +2 -0
- package/lib/cjs/src/internal/transport/di/transportModule.js.map +7 -0
- package/lib/cjs/src/internal/transport/di/transportModule.test.js +2 -0
- package/lib/cjs/src/internal/transport/di/transportModule.test.js.map +7 -0
- package/lib/cjs/src/internal/transport/service/DefaultTransportService.js +2 -0
- package/lib/cjs/src/internal/transport/service/DefaultTransportService.js.map +7 -0
- package/lib/cjs/src/internal/transport/service/DefaultTransportService.test.js +2 -0
- package/lib/cjs/src/internal/transport/service/DefaultTransportService.test.js.map +7 -0
- package/lib/cjs/src/internal/transport/service/TransportService.js +2 -0
- package/lib/cjs/src/internal/transport/service/TransportService.js.map +7 -0
- package/lib/cjs/src/internal/transport/service/__mocks__/DefaultTransportService.js +2 -0
- package/lib/cjs/src/internal/transport/service/__mocks__/DefaultTransportService.js.map +7 -0
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +7 -0
- package/lib/esm/package.json +65 -0
- package/lib/esm/src/api/DeviceManagementKit.js +2 -0
- package/lib/esm/src/api/DeviceManagementKit.js.map +7 -0
- package/lib/esm/src/api/DeviceManagementKit.test.js +2 -0
- package/lib/esm/src/api/DeviceManagementKit.test.js.map +7 -0
- package/lib/esm/src/api/DeviceManagementKitBuilder.js +2 -0
- package/lib/esm/src/api/DeviceManagementKitBuilder.js.map +7 -0
- package/lib/esm/src/api/DeviceManagementKitBuilder.test.js +2 -0
- package/lib/esm/src/api/DeviceManagementKitBuilder.test.js.map +7 -0
- package/lib/esm/src/api/DmkConfig.js +1 -0
- package/lib/esm/src/api/DmkConfig.js.map +7 -0
- package/lib/esm/src/api/Error.js +2 -0
- package/lib/esm/src/api/Error.js.map +7 -0
- package/lib/esm/src/api/apdu/model/Apdu.js +2 -0
- package/lib/esm/src/api/apdu/model/Apdu.js.map +7 -0
- package/lib/esm/src/api/apdu/model/Apdu.test.js +2 -0
- package/lib/esm/src/api/apdu/model/Apdu.test.js.map +7 -0
- package/lib/esm/src/api/apdu/utils/ApduBuilder.js +2 -0
- package/lib/esm/src/api/apdu/utils/ApduBuilder.js.map +7 -0
- package/lib/esm/src/api/apdu/utils/ApduBuilder.test.js +2 -0
- package/lib/esm/src/api/apdu/utils/ApduBuilder.test.js.map +7 -0
- package/lib/esm/src/api/apdu/utils/ApduParser.js +2 -0
- package/lib/esm/src/api/apdu/utils/ApduParser.js.map +7 -0
- package/lib/esm/src/api/apdu/utils/ApduParser.test.js +2 -0
- package/lib/esm/src/api/apdu/utils/ApduParser.test.js.map +7 -0
- package/lib/esm/src/api/apdu/utils/AppBuilderError.js +2 -0
- package/lib/esm/src/api/apdu/utils/AppBuilderError.js.map +7 -0
- package/lib/esm/src/api/apdu/utils/ByteArrayBuilder.js +2 -0
- package/lib/esm/src/api/apdu/utils/ByteArrayBuilder.js.map +7 -0
- package/lib/esm/src/api/apdu/utils/ByteArrayBuilder.test.js +2 -0
- package/lib/esm/src/api/apdu/utils/ByteArrayBuilder.test.js.map +7 -0
- package/lib/esm/src/api/apdu/utils/ByteArrayParser.js +2 -0
- package/lib/esm/src/api/apdu/utils/ByteArrayParser.js.map +7 -0
- package/lib/esm/src/api/apdu/utils/ByteArrayParser.test.js +2 -0
- package/lib/esm/src/api/apdu/utils/ByteArrayParser.test.js.map +7 -0
- package/lib/esm/src/api/command/Command.js +1 -0
- package/lib/esm/src/api/command/Command.js.map +7 -0
- package/lib/esm/src/api/command/Errors.js +2 -0
- package/lib/esm/src/api/command/Errors.js.map +7 -0
- package/lib/esm/src/api/command/di/commandModule.js +2 -0
- package/lib/esm/src/api/command/di/commandModule.js.map +7 -0
- package/lib/esm/src/api/command/di/commandModule.test.js +2 -0
- package/lib/esm/src/api/command/di/commandModule.test.js.map +7 -0
- package/lib/esm/src/api/command/di/commandTypes.js +2 -0
- package/lib/esm/src/api/command/di/commandTypes.js.map +7 -0
- package/lib/esm/src/api/command/model/CommandResult.js +2 -0
- package/lib/esm/src/api/command/model/CommandResult.js.map +7 -0
- package/lib/esm/src/api/command/model/CommandResult.test.js +2 -0
- package/lib/esm/src/api/command/model/CommandResult.test.js.map +7 -0
- package/lib/esm/src/api/command/os/CloseAppCommand.js +2 -0
- package/lib/esm/src/api/command/os/CloseAppCommand.js.map +7 -0
- package/lib/esm/src/api/command/os/CloseAppCommand.test.js +2 -0
- package/lib/esm/src/api/command/os/CloseAppCommand.test.js.map +7 -0
- package/lib/esm/src/api/command/os/GetAppAndVersionCommand.js +2 -0
- package/lib/esm/src/api/command/os/GetAppAndVersionCommand.js.map +7 -0
- package/lib/esm/src/api/command/os/GetAppAndVersionCommand.test.js +2 -0
- package/lib/esm/src/api/command/os/GetAppAndVersionCommand.test.js.map +7 -0
- package/lib/esm/src/api/command/os/GetBatteryStatusCommand.js +2 -0
- package/lib/esm/src/api/command/os/GetBatteryStatusCommand.js.map +7 -0
- package/lib/esm/src/api/command/os/GetBatteryStatusCommand.test.js +2 -0
- package/lib/esm/src/api/command/os/GetBatteryStatusCommand.test.js.map +7 -0
- package/lib/esm/src/api/command/os/GetOsVersionCommand.js +2 -0
- package/lib/esm/src/api/command/os/GetOsVersionCommand.js.map +7 -0
- package/lib/esm/src/api/command/os/GetOsVersionCommand.test.js +2 -0
- package/lib/esm/src/api/command/os/GetOsVersionCommand.test.js.map +7 -0
- package/lib/esm/src/api/command/os/ListAppsCommand.js +2 -0
- package/lib/esm/src/api/command/os/ListAppsCommand.js.map +7 -0
- package/lib/esm/src/api/command/os/ListAppsCommand.test.js +2 -0
- package/lib/esm/src/api/command/os/ListAppsCommand.test.js.map +7 -0
- package/lib/esm/src/api/command/os/OpenAppCommand.js +2 -0
- package/lib/esm/src/api/command/os/OpenAppCommand.js.map +7 -0
- package/lib/esm/src/api/command/os/OpenAppCommand.test.js +2 -0
- package/lib/esm/src/api/command/os/OpenAppCommand.test.js.map +7 -0
- package/lib/esm/src/api/command/os/__mocks__/GetOsVersionCommand.js +2 -0
- package/lib/esm/src/api/command/os/__mocks__/GetOsVersionCommand.js.map +7 -0
- package/lib/esm/src/api/command/use-case/SendCommandUseCase.js +2 -0
- package/lib/esm/src/api/command/use-case/SendCommandUseCase.js.map +7 -0
- package/lib/esm/src/api/command/use-case/SendCommandUseCase.test.js +2 -0
- package/lib/esm/src/api/command/use-case/SendCommandUseCase.test.js.map +7 -0
- package/lib/esm/src/api/command/utils/CommandErrors.js +2 -0
- package/lib/esm/src/api/command/utils/CommandErrors.js.map +7 -0
- package/lib/esm/src/api/command/utils/CommandUtils.js +2 -0
- package/lib/esm/src/api/command/utils/CommandUtils.js.map +7 -0
- package/lib/esm/src/api/command/utils/CommandUtils.test.js +2 -0
- package/lib/esm/src/api/command/utils/CommandUtils.test.js.map +7 -0
- package/lib/esm/src/api/command/utils/GlobalCommandError.js +2 -0
- package/lib/esm/src/api/command/utils/GlobalCommandError.js.map +7 -0
- package/lib/esm/src/api/command/utils/GlobalCommandError.test.js +2 -0
- package/lib/esm/src/api/command/utils/GlobalCommandError.test.js.map +7 -0
- package/lib/esm/src/api/device/DeviceModel.js +2 -0
- package/lib/esm/src/api/device/DeviceModel.js.map +7 -0
- package/lib/esm/src/api/device/DeviceStatus.js +2 -0
- package/lib/esm/src/api/device/DeviceStatus.js.map +7 -0
- package/lib/esm/src/api/device-action/DeviceAction.js +1 -0
- package/lib/esm/src/api/device-action/DeviceAction.js.map +7 -0
- package/lib/esm/src/api/device-action/__test-utils__/data.js +2 -0
- package/lib/esm/src/api/device-action/__test-utils__/data.js.map +7 -0
- package/lib/esm/src/api/device-action/__test-utils__/makeInternalApi.js +2 -0
- package/lib/esm/src/api/device-action/__test-utils__/makeInternalApi.js.map +7 -0
- package/lib/esm/src/api/device-action/__test-utils__/setupTestMachine.js +2 -0
- package/lib/esm/src/api/device-action/__test-utils__/setupTestMachine.js.map +7 -0
- package/lib/esm/src/api/device-action/__test-utils__/testDeviceActionStates.js +2 -0
- package/lib/esm/src/api/device-action/__test-utils__/testDeviceActionStates.js.map +7 -0
- package/lib/esm/src/api/device-action/di/deviceActionModule.js +2 -0
- package/lib/esm/src/api/device-action/di/deviceActionModule.js.map +7 -0
- package/lib/esm/src/api/device-action/di/deviceActionModule.test.js +2 -0
- package/lib/esm/src/api/device-action/di/deviceActionModule.test.js.map +7 -0
- package/lib/esm/src/api/device-action/di/deviceActionTypes.js +2 -0
- package/lib/esm/src/api/device-action/di/deviceActionTypes.js.map +7 -0
- package/lib/esm/src/api/device-action/model/DeviceActionState.js +2 -0
- package/lib/esm/src/api/device-action/model/DeviceActionState.js.map +7 -0
- package/lib/esm/src/api/device-action/model/UserInteractionRequired.js +2 -0
- package/lib/esm/src/api/device-action/model/UserInteractionRequired.js.map +7 -0
- package/lib/esm/src/api/device-action/os/Const.js +2 -0
- package/lib/esm/src/api/device-action/os/Const.js.map +7 -0
- package/lib/esm/src/api/device-action/os/Errors.js +2 -0
- package/lib/esm/src/api/device-action/os/Errors.js.map +7 -0
- package/lib/esm/src/api/device-action/os/GetDeviceStatus/GetDeviceStatusDeviceAction.js +2 -0
- package/lib/esm/src/api/device-action/os/GetDeviceStatus/GetDeviceStatusDeviceAction.js.map +7 -0
- package/lib/esm/src/api/device-action/os/GetDeviceStatus/GetDeviceStatusDeviceAction.test.js +2 -0
- package/lib/esm/src/api/device-action/os/GetDeviceStatus/GetDeviceStatusDeviceAction.test.js.map +7 -0
- package/lib/esm/src/api/device-action/os/GetDeviceStatus/types.js +1 -0
- package/lib/esm/src/api/device-action/os/GetDeviceStatus/types.js.map +7 -0
- package/lib/esm/src/api/device-action/os/GoToDashboard/GoToDashboardDeviceAction.js +2 -0
- package/lib/esm/src/api/device-action/os/GoToDashboard/GoToDashboardDeviceAction.js.map +7 -0
- package/lib/esm/src/api/device-action/os/GoToDashboard/GoToDashboardDeviceAction.test.js +2 -0
- package/lib/esm/src/api/device-action/os/GoToDashboard/GoToDashboardDeviceAction.test.js.map +7 -0
- package/lib/esm/src/api/device-action/os/GoToDashboard/types.js +1 -0
- package/lib/esm/src/api/device-action/os/GoToDashboard/types.js.map +7 -0
- package/lib/esm/src/api/device-action/os/ListApps/ListAppsDeviceAction.js +2 -0
- package/lib/esm/src/api/device-action/os/ListApps/ListAppsDeviceAction.js.map +7 -0
- package/lib/esm/src/api/device-action/os/ListApps/ListAppsDeviceAction.test.js +2 -0
- package/lib/esm/src/api/device-action/os/ListApps/ListAppsDeviceAction.test.js.map +7 -0
- package/lib/esm/src/api/device-action/os/ListApps/types.js +1 -0
- package/lib/esm/src/api/device-action/os/ListApps/types.js.map +7 -0
- package/lib/esm/src/api/device-action/os/ListAppsWithMetadata/ListAppsWithMetadataDeviceAction.js +2 -0
- package/lib/esm/src/api/device-action/os/ListAppsWithMetadata/ListAppsWithMetadataDeviceAction.js.map +7 -0
- package/lib/esm/src/api/device-action/os/ListAppsWithMetadata/ListAppsWithMetadataDeviceAction.test.js +2 -0
- package/lib/esm/src/api/device-action/os/ListAppsWithMetadata/ListAppsWithMetadataDeviceAction.test.js.map +7 -0
- package/lib/esm/src/api/device-action/os/ListAppsWithMetadata/types.js +1 -0
- package/lib/esm/src/api/device-action/os/ListAppsWithMetadata/types.js.map +7 -0
- package/lib/esm/src/api/device-action/os/OpenAppDeviceAction/OpenAppDeviceAction.js +2 -0
- package/lib/esm/src/api/device-action/os/OpenAppDeviceAction/OpenAppDeviceAction.js.map +7 -0
- package/lib/esm/src/api/device-action/os/OpenAppDeviceAction/OpenAppDeviceAction.test.js +2 -0
- package/lib/esm/src/api/device-action/os/OpenAppDeviceAction/OpenAppDeviceAction.test.js.map +7 -0
- package/lib/esm/src/api/device-action/os/OpenAppDeviceAction/types.js +1 -0
- package/lib/esm/src/api/device-action/os/OpenAppDeviceAction/types.js.map +7 -0
- package/lib/esm/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceAction.js +2 -0
- package/lib/esm/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceAction.js.map +7 -0
- package/lib/esm/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceAction.test.js +2 -0
- package/lib/esm/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceAction.test.js.map +7 -0
- package/lib/esm/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceActionTypes.js +1 -0
- package/lib/esm/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceActionTypes.js.map +7 -0
- package/lib/esm/src/api/device-action/use-case/ExecuteDeviceActionUseCase.js +2 -0
- package/lib/esm/src/api/device-action/use-case/ExecuteDeviceActionUseCase.js.map +7 -0
- package/lib/esm/src/api/device-action/xstate-utils/StateMachineTypes.js +1 -0
- package/lib/esm/src/api/device-action/xstate-utils/StateMachineTypes.js.map +7 -0
- package/lib/esm/src/api/device-action/xstate-utils/XStateDeviceAction.js +2 -0
- package/lib/esm/src/api/device-action/xstate-utils/XStateDeviceAction.js.map +7 -0
- package/lib/esm/src/api/device-model/data/DeviceModelDataSource.js +1 -0
- package/lib/esm/src/api/device-model/data/DeviceModelDataSource.js.map +7 -0
- package/lib/esm/src/api/device-model/data/StaticDeviceModelDataSource.js +2 -0
- package/lib/esm/src/api/device-model/data/StaticDeviceModelDataSource.js.map +7 -0
- package/lib/esm/src/api/device-model/data/StaticDeviceModelDataSource.test.js +2 -0
- package/lib/esm/src/api/device-model/data/StaticDeviceModelDataSource.test.js.map +7 -0
- package/lib/esm/src/api/device-model/model/BleDeviceInfos.js +2 -0
- package/lib/esm/src/api/device-model/model/BleDeviceInfos.js.map +7 -0
- package/lib/esm/src/api/device-model/model/DeviceModel.js +2 -0
- package/lib/esm/src/api/device-model/model/DeviceModel.js.map +7 -0
- package/lib/esm/src/api/device-model/model/DeviceModel.stub.js +2 -0
- package/lib/esm/src/api/device-model/model/DeviceModel.stub.js.map +7 -0
- package/lib/esm/src/api/device-model/model/DeviceModel.test.js +2 -0
- package/lib/esm/src/api/device-model/model/DeviceModel.test.js.map +7 -0
- package/lib/esm/src/api/device-session/ApduResponse.js +2 -0
- package/lib/esm/src/api/device-session/ApduResponse.js.map +7 -0
- package/lib/esm/src/api/device-session/ApduResponse.stub.js +2 -0
- package/lib/esm/src/api/device-session/ApduResponse.stub.js.map +7 -0
- package/lib/esm/src/api/device-session/DeviceSessionState.js +2 -0
- package/lib/esm/src/api/device-session/DeviceSessionState.js.map +7 -0
- package/lib/esm/src/api/device-session/data/FramerConst.js +2 -0
- package/lib/esm/src/api/device-session/data/FramerConst.js.map +7 -0
- package/lib/esm/src/api/device-session/service/ApduReceiverService.js +1 -0
- package/lib/esm/src/api/device-session/service/ApduReceiverService.js.map +7 -0
- package/lib/esm/src/api/device-session/service/ApduSenderService.js +1 -0
- package/lib/esm/src/api/device-session/service/ApduSenderService.js.map +7 -0
- package/lib/esm/src/api/device-session/service/DefaultApduReceiverService.stub.js +2 -0
- package/lib/esm/src/api/device-session/service/DefaultApduReceiverService.stub.js.map +7 -0
- package/lib/esm/src/api/device-session/service/DefaultApduSenderService.stub.js +2 -0
- package/lib/esm/src/api/device-session/service/DefaultApduSenderService.stub.js.map +7 -0
- package/lib/esm/src/api/device-session/types.js +1 -0
- package/lib/esm/src/api/device-session/types.js.map +7 -0
- package/lib/esm/src/api/device-session/use-case/ToggleDeviceSessionRefresher.js +2 -0
- package/lib/esm/src/api/device-session/use-case/ToggleDeviceSessionRefresher.js.map +7 -0
- package/lib/esm/src/api/device-session/use-case/ToggleDeviceSessionRefresher.test.js +2 -0
- package/lib/esm/src/api/device-session/use-case/ToggleDeviceSessionRefresher.test.js.map +7 -0
- package/lib/esm/src/api/device-session/utils/FramerUtils.js +2 -0
- package/lib/esm/src/api/device-session/utils/FramerUtils.js.map +7 -0
- package/lib/esm/src/api/device-session/utils/FramerUtils.test.js +2 -0
- package/lib/esm/src/api/device-session/utils/FramerUtils.test.js.map +7 -0
- package/lib/esm/src/api/discovery/ConnectionType.js +1 -0
- package/lib/esm/src/api/discovery/ConnectionType.js.map +7 -0
- package/lib/esm/src/api/index.js +2 -0
- package/lib/esm/src/api/index.js.map +7 -0
- package/lib/esm/src/api/logger-publisher/service/LoggerPublisherService.js +1 -0
- package/lib/esm/src/api/logger-publisher/service/LoggerPublisherService.js.map +7 -0
- package/lib/esm/src/api/logger-subscriber/model/LogLevel.js +2 -0
- package/lib/esm/src/api/logger-subscriber/model/LogLevel.js.map +7 -0
- package/lib/esm/src/api/logger-subscriber/model/LogSubscriberOptions.js +1 -0
- package/lib/esm/src/api/logger-subscriber/model/LogSubscriberOptions.js.map +7 -0
- package/lib/esm/src/api/logger-subscriber/service/ConsoleLogger.js +2 -0
- package/lib/esm/src/api/logger-subscriber/service/ConsoleLogger.js.map +7 -0
- package/lib/esm/src/api/logger-subscriber/service/ConsoleLogger.test.js +2 -0
- package/lib/esm/src/api/logger-subscriber/service/ConsoleLogger.test.js.map +7 -0
- package/lib/esm/src/api/logger-subscriber/service/LoggerSubscriberService.js +1 -0
- package/lib/esm/src/api/logger-subscriber/service/LoggerSubscriberService.js.map +7 -0
- package/lib/esm/src/api/logger-subscriber/service/WebLogsExporterLogger.js +2 -0
- package/lib/esm/src/api/logger-subscriber/service/WebLogsExporterLogger.js.map +7 -0
- package/lib/esm/src/api/logger-subscriber/service/WebLogsExporterLogger.test.js +2 -0
- package/lib/esm/src/api/logger-subscriber/service/WebLogsExporterLogger.test.js.map +7 -0
- package/lib/esm/src/api/logger-subscriber/service/__mocks__/ConsoleLogger.js +2 -0
- package/lib/esm/src/api/logger-subscriber/service/__mocks__/ConsoleLogger.js.map +7 -0
- package/lib/esm/src/api/transport/model/ConnectedDevice.js +2 -0
- package/lib/esm/src/api/transport/model/ConnectedDevice.js.map +7 -0
- package/lib/esm/src/api/transport/model/DeviceConnection.js +1 -0
- package/lib/esm/src/api/transport/model/DeviceConnection.js.map +7 -0
- package/lib/esm/src/api/transport/model/DeviceConnectionFactory.stub.js +2 -0
- package/lib/esm/src/api/transport/model/DeviceConnectionFactory.stub.js.map +7 -0
- package/lib/esm/src/api/transport/model/DiscoveredDevice.js +1 -0
- package/lib/esm/src/api/transport/model/DiscoveredDevice.js.map +7 -0
- package/lib/esm/src/api/transport/model/Errors.js +2 -0
- package/lib/esm/src/api/transport/model/Errors.js.map +7 -0
- package/lib/esm/src/api/transport/model/Transport.js +1 -0
- package/lib/esm/src/api/transport/model/Transport.js.map +7 -0
- package/lib/esm/src/api/transport/model/TransportConnectedDevice.js +2 -0
- package/lib/esm/src/api/transport/model/TransportConnectedDevice.js.map +7 -0
- package/lib/esm/src/api/transport/model/TransportConnectedDevice.stub.js +2 -0
- package/lib/esm/src/api/transport/model/TransportConnectedDevice.stub.js.map +7 -0
- package/lib/esm/src/api/transport/model/TransportConnectedDevice.test.js +2 -0
- package/lib/esm/src/api/transport/model/TransportConnectedDevice.test.js.map +7 -0
- package/lib/esm/src/api/transport/model/TransportDiscoveredDevice.js +1 -0
- package/lib/esm/src/api/transport/model/TransportDiscoveredDevice.js.map +7 -0
- package/lib/esm/src/api/transport/model/TransportIdentifier.js +1 -0
- package/lib/esm/src/api/transport/model/TransportIdentifier.js.map +7 -0
- package/lib/esm/src/api/transport/model/__mocks__/TransportMock.js +2 -0
- package/lib/esm/src/api/transport/model/__mocks__/TransportMock.js.map +7 -0
- package/lib/esm/src/api/types.js +1 -0
- package/lib/esm/src/api/types.js.map +7 -0
- package/lib/esm/src/api/utils/Base64String.js +2 -0
- package/lib/esm/src/api/utils/Base64String.js.map +7 -0
- package/lib/esm/src/api/utils/Base64String.test.js +2 -0
- package/lib/esm/src/api/utils/Base64String.test.js.map +7 -0
- package/lib/esm/src/api/utils/HexaString.js +2 -0
- package/lib/esm/src/api/utils/HexaString.js.map +7 -0
- package/lib/esm/src/api/utils/HexaString.test.js +2 -0
- package/lib/esm/src/api/utils/HexaString.test.js.map +7 -0
- package/lib/esm/src/di.js +2 -0
- package/lib/esm/src/di.js.map +7 -0
- package/lib/esm/src/di.stub.js +2 -0
- package/lib/esm/src/di.stub.js.map +7 -0
- package/lib/esm/src/index.js +2 -0
- package/lib/esm/src/index.js.map +7 -0
- package/lib/esm/src/internal/config/data/ConfigDataSource.js +1 -0
- package/lib/esm/src/internal/config/data/ConfigDataSource.js.map +7 -0
- package/lib/esm/src/internal/config/data/Dto.js +1 -0
- package/lib/esm/src/internal/config/data/Dto.js.map +7 -0
- package/lib/esm/src/internal/config/data/LocalConfigDataSource.js +2 -0
- package/lib/esm/src/internal/config/data/LocalConfigDataSource.js.map +7 -0
- package/lib/esm/src/internal/config/data/LocalConfigDataSource.stub.js +2 -0
- package/lib/esm/src/internal/config/data/LocalConfigDataSource.stub.js.map +7 -0
- package/lib/esm/src/internal/config/data/LocalConfigDataSource.test.js +2 -0
- package/lib/esm/src/internal/config/data/LocalConfigDataSource.test.js.map +7 -0
- package/lib/esm/src/internal/config/data/RemoteConfigDataSource.js +2 -0
- package/lib/esm/src/internal/config/data/RemoteConfigDataSource.js.map +7 -0
- package/lib/esm/src/internal/config/data/RemoteConfigDataSource.stub.js +2 -0
- package/lib/esm/src/internal/config/data/RemoteConfigDataSource.stub.js.map +7 -0
- package/lib/esm/src/internal/config/data/RemoteConfigDataSource.test.js +2 -0
- package/lib/esm/src/internal/config/data/RemoteConfigDataSource.test.js.map +7 -0
- package/lib/esm/src/internal/config/data/__mocks__/LocalConfigDataSource.js +2 -0
- package/lib/esm/src/internal/config/data/__mocks__/LocalConfigDataSource.js.map +7 -0
- package/lib/esm/src/internal/config/data/__mocks__/RemoteConfigDataSource.js +2 -0
- package/lib/esm/src/internal/config/data/__mocks__/RemoteConfigDataSource.js.map +7 -0
- package/lib/esm/src/internal/config/di/configModule.js +2 -0
- package/lib/esm/src/internal/config/di/configModule.js.map +7 -0
- package/lib/esm/src/internal/config/di/configModule.test.js +2 -0
- package/lib/esm/src/internal/config/di/configModule.test.js.map +7 -0
- package/lib/esm/src/internal/config/di/configTypes.js +2 -0
- package/lib/esm/src/internal/config/di/configTypes.js.map +7 -0
- package/lib/esm/src/internal/config/model/Config.js +2 -0
- package/lib/esm/src/internal/config/model/Config.js.map +7 -0
- package/lib/esm/src/internal/config/model/Errors.js +2 -0
- package/lib/esm/src/internal/config/model/Errors.js.map +7 -0
- package/lib/esm/src/internal/config/service/ConfigService.js +1 -0
- package/lib/esm/src/internal/config/service/ConfigService.js.map +7 -0
- package/lib/esm/src/internal/config/service/DefaultConfigService.js +2 -0
- package/lib/esm/src/internal/config/service/DefaultConfigService.js.map +7 -0
- package/lib/esm/src/internal/config/service/DefaultConfigService.test.js +2 -0
- package/lib/esm/src/internal/config/service/DefaultConfigService.test.js.map +7 -0
- package/lib/esm/src/internal/config/use-case/GetDmkVersionUseCase.js +2 -0
- package/lib/esm/src/internal/config/use-case/GetDmkVersionUseCase.js.map +7 -0
- package/lib/esm/src/internal/config/use-case/GetDmkVersionUseCase.test.js +2 -0
- package/lib/esm/src/internal/config/use-case/GetDmkVersionUseCase.test.js.map +7 -0
- package/lib/esm/src/internal/device-model/di/deviceModelModule.js +2 -0
- package/lib/esm/src/internal/device-model/di/deviceModelModule.js.map +7 -0
- package/lib/esm/src/internal/device-model/di/deviceModelModule.test.js +2 -0
- package/lib/esm/src/internal/device-model/di/deviceModelModule.test.js.map +7 -0
- package/lib/esm/src/internal/device-model/di/deviceModelTypes.js +2 -0
- package/lib/esm/src/internal/device-model/di/deviceModelTypes.js.map +7 -0
- package/lib/esm/src/internal/device-session/data/ApduResponseConst.js +2 -0
- package/lib/esm/src/internal/device-session/data/ApduResponseConst.js.map +7 -0
- package/lib/esm/src/internal/device-session/data/DeviceSessionRefresherConst.js +2 -0
- package/lib/esm/src/internal/device-session/data/DeviceSessionRefresherConst.js.map +7 -0
- package/lib/esm/src/internal/device-session/di/deviceSessionModule.js +2 -0
- package/lib/esm/src/internal/device-session/di/deviceSessionModule.js.map +7 -0
- package/lib/esm/src/internal/device-session/di/deviceSessionModule.test.js +2 -0
- package/lib/esm/src/internal/device-session/di/deviceSessionModule.test.js.map +7 -0
- package/lib/esm/src/internal/device-session/di/deviceSessionTypes.js +2 -0
- package/lib/esm/src/internal/device-session/di/deviceSessionTypes.js.map +7 -0
- package/lib/esm/src/internal/device-session/model/DeviceSession.js +2 -0
- package/lib/esm/src/internal/device-session/model/DeviceSession.js.map +7 -0
- package/lib/esm/src/internal/device-session/model/DeviceSession.stub.js +2 -0
- package/lib/esm/src/internal/device-session/model/DeviceSession.stub.js.map +7 -0
- package/lib/esm/src/internal/device-session/model/DeviceSessionRefresher.js +2 -0
- package/lib/esm/src/internal/device-session/model/DeviceSessionRefresher.js.map +7 -0
- package/lib/esm/src/internal/device-session/model/DeviceSessionRefresher.test.js +2 -0
- package/lib/esm/src/internal/device-session/model/DeviceSessionRefresher.test.js.map +7 -0
- package/lib/esm/src/internal/device-session/model/Errors.js +2 -0
- package/lib/esm/src/internal/device-session/model/Errors.js.map +7 -0
- package/lib/esm/src/internal/device-session/model/Frame.js +2 -0
- package/lib/esm/src/internal/device-session/model/Frame.js.map +7 -0
- package/lib/esm/src/internal/device-session/model/FrameHeader.js +2 -0
- package/lib/esm/src/internal/device-session/model/FrameHeader.js.map +7 -0
- package/lib/esm/src/internal/device-session/service/DefaultApduReceiverService.js +2 -0
- package/lib/esm/src/internal/device-session/service/DefaultApduReceiverService.js.map +7 -0
- package/lib/esm/src/internal/device-session/service/DefaultApduReceiverService.test.js +2 -0
- package/lib/esm/src/internal/device-session/service/DefaultApduReceiverService.test.js.map +7 -0
- package/lib/esm/src/internal/device-session/service/DefaultApduSenderService.js +2 -0
- package/lib/esm/src/internal/device-session/service/DefaultApduSenderService.js.map +7 -0
- package/lib/esm/src/internal/device-session/service/DefaultApduSenderService.test.js +2 -0
- package/lib/esm/src/internal/device-session/service/DefaultApduSenderService.test.js.map +7 -0
- package/lib/esm/src/internal/device-session/service/DefaultDeviceSessionService.js +2 -0
- package/lib/esm/src/internal/device-session/service/DefaultDeviceSessionService.js.map +7 -0
- package/lib/esm/src/internal/device-session/service/DefaultDeviceSessionService.test.js +2 -0
- package/lib/esm/src/internal/device-session/service/DefaultDeviceSessionService.test.js.map +7 -0
- package/lib/esm/src/internal/device-session/service/DeviceSessionService.js +1 -0
- package/lib/esm/src/internal/device-session/service/DeviceSessionService.js.map +7 -0
- package/lib/esm/src/internal/device-session/use-case/CloseSessionsUseCase.js +2 -0
- package/lib/esm/src/internal/device-session/use-case/CloseSessionsUseCase.js.map +7 -0
- package/lib/esm/src/internal/device-session/use-case/CloseSessionsUseCase.test.js +2 -0
- package/lib/esm/src/internal/device-session/use-case/CloseSessionsUseCase.test.js.map +7 -0
- package/lib/esm/src/internal/device-session/use-case/GetDeviceSessionStateUseCase.js +2 -0
- package/lib/esm/src/internal/device-session/use-case/GetDeviceSessionStateUseCase.js.map +7 -0
- package/lib/esm/src/internal/device-session/use-case/GetDeviceSessionStateUseCase.test.js +2 -0
- package/lib/esm/src/internal/device-session/use-case/GetDeviceSessionStateUseCase.test.js.map +7 -0
- package/lib/esm/src/internal/discovery/di/discoveryModule.js +2 -0
- package/lib/esm/src/internal/discovery/di/discoveryModule.js.map +7 -0
- package/lib/esm/src/internal/discovery/di/discoveryModule.test.js +2 -0
- package/lib/esm/src/internal/discovery/di/discoveryModule.test.js.map +7 -0
- package/lib/esm/src/internal/discovery/di/discoveryTypes.js +2 -0
- package/lib/esm/src/internal/discovery/di/discoveryTypes.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/ConnectUseCase.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/ConnectUseCase.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/ConnectUseCase.test.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/ConnectUseCase.test.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/DisconnectUseCase.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/DisconnectUseCase.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/DisconnectUseCase.test.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/DisconnectUseCase.test.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/GetConnectedDeviceUseCase.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/GetConnectedDeviceUseCase.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/GetConnectedDeviceUseCase.test.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/GetConnectedDeviceUseCase.test.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/ListConnectedDevicesUseCase.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/ListConnectedDevicesUseCase.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/ListConnectedDevicesUseCase.test.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/ListConnectedDevicesUseCase.test.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/ListenToConnectedDeviceUseCase.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/ListenToConnectedDeviceUseCase.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/ListenToConnectedDeviceUseCase.test.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/ListenToConnectedDeviceUseCase.test.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/ListenToKnownDevicesUseCase.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/ListenToKnownDevicesUseCase.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/ListenToKnownDevicesUseCase.test.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/ListenToKnownDevicesUseCase.test.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/StartDiscoveringUseCase.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/StartDiscoveringUseCase.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/StartDiscoveringUseCase.test.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/StartDiscoveringUseCase.test.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/StopDiscoveringUseCase.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/StopDiscoveringUseCase.js.map +7 -0
- package/lib/esm/src/internal/discovery/use-case/StopDiscoveringUseCase.test.js +2 -0
- package/lib/esm/src/internal/discovery/use-case/StopDiscoveringUseCase.test.js.map +7 -0
- package/lib/esm/src/internal/logger-publisher/di/loggerModule.js +2 -0
- package/lib/esm/src/internal/logger-publisher/di/loggerModule.js.map +7 -0
- package/lib/esm/src/internal/logger-publisher/di/loggerModule.test.js +2 -0
- package/lib/esm/src/internal/logger-publisher/di/loggerModule.test.js.map +7 -0
- package/lib/esm/src/internal/logger-publisher/di/loggerTypes.js +2 -0
- package/lib/esm/src/internal/logger-publisher/di/loggerTypes.js.map +7 -0
- package/lib/esm/src/internal/logger-publisher/model/LogPublisherOptions.js +1 -0
- package/lib/esm/src/internal/logger-publisher/model/LogPublisherOptions.js.map +7 -0
- package/lib/esm/src/internal/logger-publisher/service/DefaultLoggerPublisherService.js +2 -0
- package/lib/esm/src/internal/logger-publisher/service/DefaultLoggerPublisherService.js.map +7 -0
- package/lib/esm/src/internal/logger-publisher/service/DefaultLoggerPublisherService.stub.js +2 -0
- package/lib/esm/src/internal/logger-publisher/service/DefaultLoggerPublisherService.stub.js.map +7 -0
- package/lib/esm/src/internal/logger-publisher/service/DefaultLoggerPublisherService.test.js +2 -0
- package/lib/esm/src/internal/logger-publisher/service/DefaultLoggerPublisherService.test.js.map +7 -0
- package/lib/esm/src/internal/manager-api/data/AxiosManagerApiDataSource.js +2 -0
- package/lib/esm/src/internal/manager-api/data/AxiosManagerApiDataSource.js.map +7 -0
- package/lib/esm/src/internal/manager-api/data/AxiosManagerApiDataSource.test.js +2 -0
- package/lib/esm/src/internal/manager-api/data/AxiosManagerApiDataSource.test.js.map +7 -0
- package/lib/esm/src/internal/manager-api/data/ManagerApiDataSource.js +1 -0
- package/lib/esm/src/internal/manager-api/data/ManagerApiDataSource.js.map +7 -0
- package/lib/esm/src/internal/manager-api/data/ManagerApiDto.js +2 -0
- package/lib/esm/src/internal/manager-api/data/ManagerApiDto.js.map +7 -0
- package/lib/esm/src/internal/manager-api/data/__mocks__/AxiosManagerApiDataSource.js +2 -0
- package/lib/esm/src/internal/manager-api/data/__mocks__/AxiosManagerApiDataSource.js.map +7 -0
- package/lib/esm/src/internal/manager-api/di/managerApiModule.js +2 -0
- package/lib/esm/src/internal/manager-api/di/managerApiModule.js.map +7 -0
- package/lib/esm/src/internal/manager-api/di/managerApiModule.test.js +2 -0
- package/lib/esm/src/internal/manager-api/di/managerApiModule.test.js.map +7 -0
- package/lib/esm/src/internal/manager-api/di/managerApiTypes.js +2 -0
- package/lib/esm/src/internal/manager-api/di/managerApiTypes.js.map +7 -0
- package/lib/esm/src/internal/manager-api/model/Application.js +2 -0
- package/lib/esm/src/internal/manager-api/model/Application.js.map +7 -0
- package/lib/esm/src/internal/manager-api/model/Const.js +2 -0
- package/lib/esm/src/internal/manager-api/model/Const.js.map +7 -0
- package/lib/esm/src/internal/manager-api/model/Device.js +1 -0
- package/lib/esm/src/internal/manager-api/model/Device.js.map +7 -0
- package/lib/esm/src/internal/manager-api/model/Errors.js +2 -0
- package/lib/esm/src/internal/manager-api/model/Errors.js.map +7 -0
- package/lib/esm/src/internal/manager-api/model/Firmware.js +1 -0
- package/lib/esm/src/internal/manager-api/model/Firmware.js.map +7 -0
- package/lib/esm/src/internal/manager-api/service/DefaultManagerApiService.js +2 -0
- package/lib/esm/src/internal/manager-api/service/DefaultManagerApiService.js.map +7 -0
- package/lib/esm/src/internal/manager-api/service/DefaultManagerApiService.test.js +2 -0
- package/lib/esm/src/internal/manager-api/service/DefaultManagerApiService.test.js.map +7 -0
- package/lib/esm/src/internal/manager-api/service/ManagerApiService.js +1 -0
- package/lib/esm/src/internal/manager-api/service/ManagerApiService.js.map +7 -0
- package/lib/esm/src/internal/send/di/sendModule.js +2 -0
- package/lib/esm/src/internal/send/di/sendModule.js.map +7 -0
- package/lib/esm/src/internal/send/di/sendModule.test.js +2 -0
- package/lib/esm/src/internal/send/di/sendModule.test.js.map +7 -0
- package/lib/esm/src/internal/send/di/sendTypes.js +2 -0
- package/lib/esm/src/internal/send/di/sendTypes.js.map +7 -0
- package/lib/esm/src/internal/send/use-case/SendApduUseCase.js +2 -0
- package/lib/esm/src/internal/send/use-case/SendApduUseCase.js.map +7 -0
- package/lib/esm/src/internal/send/use-case/SendApduUseCase.test.js +2 -0
- package/lib/esm/src/internal/send/use-case/SendApduUseCase.test.js.map +7 -0
- package/lib/esm/src/internal/transport/di/transportDiTypes.js +2 -0
- package/lib/esm/src/internal/transport/di/transportDiTypes.js.map +7 -0
- package/lib/esm/src/internal/transport/di/transportModule.js +2 -0
- package/lib/esm/src/internal/transport/di/transportModule.js.map +7 -0
- package/lib/esm/src/internal/transport/di/transportModule.test.js +2 -0
- package/lib/esm/src/internal/transport/di/transportModule.test.js.map +7 -0
- package/lib/esm/src/internal/transport/service/DefaultTransportService.js +2 -0
- package/lib/esm/src/internal/transport/service/DefaultTransportService.js.map +7 -0
- package/lib/esm/src/internal/transport/service/DefaultTransportService.test.js +2 -0
- package/lib/esm/src/internal/transport/service/DefaultTransportService.test.js.map +7 -0
- package/lib/esm/src/internal/transport/service/TransportService.js +1 -0
- package/lib/esm/src/internal/transport/service/TransportService.js.map +7 -0
- package/lib/esm/src/internal/transport/service/__mocks__/DefaultTransportService.js +2 -0
- package/lib/esm/src/internal/transport/service/__mocks__/DefaultTransportService.js.map +7 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/src/api/DeviceManagementKit.d.ts +119 -0
- package/lib/types/src/api/DeviceManagementKit.d.ts.map +1 -0
- package/lib/types/src/api/DeviceManagementKit.test.d.ts +2 -0
- package/lib/types/src/api/DeviceManagementKit.test.d.ts.map +1 -0
- package/lib/types/src/api/DeviceManagementKitBuilder.d.ts +32 -0
- package/lib/types/src/api/DeviceManagementKitBuilder.d.ts.map +1 -0
- package/lib/types/src/api/DeviceManagementKitBuilder.test.d.ts +2 -0
- package/lib/types/src/api/DeviceManagementKitBuilder.test.d.ts.map +1 -0
- package/lib/types/src/api/DmkConfig.d.ts +5 -0
- package/lib/types/src/api/DmkConfig.d.ts.map +1 -0
- package/lib/types/src/api/Error.d.ts +26 -0
- package/lib/types/src/api/Error.d.ts.map +1 -0
- package/lib/types/src/api/apdu/model/Apdu.d.ts +33 -0
- package/lib/types/src/api/apdu/model/Apdu.d.ts.map +1 -0
- package/lib/types/src/api/apdu/model/Apdu.test.d.ts +2 -0
- package/lib/types/src/api/apdu/model/Apdu.test.d.ts.map +1 -0
- package/lib/types/src/api/apdu/utils/ApduBuilder.d.ts +113 -0
- package/lib/types/src/api/apdu/utils/ApduBuilder.d.ts.map +1 -0
- package/lib/types/src/api/apdu/utils/ApduBuilder.test.d.ts +2 -0
- package/lib/types/src/api/apdu/utils/ApduBuilder.test.d.ts.map +1 -0
- package/lib/types/src/api/apdu/utils/ApduParser.d.ts +79 -0
- package/lib/types/src/api/apdu/utils/ApduParser.d.ts.map +1 -0
- package/lib/types/src/api/apdu/utils/ApduParser.test.d.ts +2 -0
- package/lib/types/src/api/apdu/utils/ApduParser.test.d.ts.map +1 -0
- package/lib/types/src/api/apdu/utils/AppBuilderError.d.ts +28 -0
- package/lib/types/src/api/apdu/utils/AppBuilderError.d.ts.map +1 -0
- package/lib/types/src/api/apdu/utils/ByteArrayBuilder.d.ts +194 -0
- package/lib/types/src/api/apdu/utils/ByteArrayBuilder.d.ts.map +1 -0
- package/lib/types/src/api/apdu/utils/ByteArrayBuilder.test.d.ts +2 -0
- package/lib/types/src/api/apdu/utils/ByteArrayBuilder.test.d.ts.map +1 -0
- package/lib/types/src/api/apdu/utils/ByteArrayParser.d.ts +152 -0
- package/lib/types/src/api/apdu/utils/ByteArrayParser.d.ts.map +1 -0
- package/lib/types/src/api/apdu/utils/ByteArrayParser.test.d.ts +2 -0
- package/lib/types/src/api/apdu/utils/ByteArrayParser.test.d.ts.map +1 -0
- package/lib/types/src/api/command/Command.d.ts +33 -0
- package/lib/types/src/api/command/Command.d.ts.map +1 -0
- package/lib/types/src/api/command/Errors.d.ts +27 -0
- package/lib/types/src/api/command/Errors.d.ts.map +1 -0
- package/lib/types/src/api/command/di/commandModule.d.ts +7 -0
- package/lib/types/src/api/command/di/commandModule.d.ts.map +1 -0
- package/lib/types/src/api/command/di/commandModule.test.d.ts +2 -0
- package/lib/types/src/api/command/di/commandModule.test.d.ts.map +1 -0
- package/lib/types/src/api/command/di/commandTypes.d.ts +4 -0
- package/lib/types/src/api/command/di/commandTypes.d.ts.map +1 -0
- package/lib/types/src/api/command/model/CommandResult.d.ts +26 -0
- package/lib/types/src/api/command/model/CommandResult.d.ts.map +1 -0
- package/lib/types/src/api/command/model/CommandResult.test.d.ts +2 -0
- package/lib/types/src/api/command/model/CommandResult.test.d.ts.map +1 -0
- package/lib/types/src/api/command/os/CloseAppCommand.d.ts +15 -0
- package/lib/types/src/api/command/os/CloseAppCommand.d.ts.map +1 -0
- package/lib/types/src/api/command/os/CloseAppCommand.test.d.ts +2 -0
- package/lib/types/src/api/command/os/CloseAppCommand.test.d.ts.map +1 -0
- package/lib/types/src/api/command/os/GetAppAndVersionCommand.d.ts +29 -0
- package/lib/types/src/api/command/os/GetAppAndVersionCommand.d.ts.map +1 -0
- package/lib/types/src/api/command/os/GetAppAndVersionCommand.test.d.ts +2 -0
- package/lib/types/src/api/command/os/GetAppAndVersionCommand.test.d.ts.map +1 -0
- package/lib/types/src/api/command/os/GetBatteryStatusCommand.d.ts +63 -0
- package/lib/types/src/api/command/os/GetBatteryStatusCommand.d.ts.map +1 -0
- package/lib/types/src/api/command/os/GetBatteryStatusCommand.test.d.ts +2 -0
- package/lib/types/src/api/command/os/GetBatteryStatusCommand.test.d.ts.map +1 -0
- package/lib/types/src/api/command/os/GetOsVersionCommand.d.ts +59 -0
- package/lib/types/src/api/command/os/GetOsVersionCommand.d.ts.map +1 -0
- package/lib/types/src/api/command/os/GetOsVersionCommand.test.d.ts +2 -0
- package/lib/types/src/api/command/os/GetOsVersionCommand.test.d.ts.map +1 -0
- package/lib/types/src/api/command/os/ListAppsCommand.d.ts +30 -0
- package/lib/types/src/api/command/os/ListAppsCommand.d.ts.map +1 -0
- package/lib/types/src/api/command/os/ListAppsCommand.test.d.ts +2 -0
- package/lib/types/src/api/command/os/ListAppsCommand.test.d.ts.map +1 -0
- package/lib/types/src/api/command/os/OpenAppCommand.d.ts +24 -0
- package/lib/types/src/api/command/os/OpenAppCommand.d.ts.map +1 -0
- package/lib/types/src/api/command/os/OpenAppCommand.test.d.ts +2 -0
- package/lib/types/src/api/command/os/OpenAppCommand.test.d.ts.map +1 -0
- package/lib/types/src/api/command/os/__mocks__/GetOsVersionCommand.d.ts +4 -0
- package/lib/types/src/api/command/os/__mocks__/GetOsVersionCommand.d.ts.map +1 -0
- package/lib/types/src/api/command/use-case/SendCommandUseCase.d.ts +31 -0
- package/lib/types/src/api/command/use-case/SendCommandUseCase.d.ts.map +1 -0
- package/lib/types/src/api/command/use-case/SendCommandUseCase.test.d.ts +2 -0
- package/lib/types/src/api/command/use-case/SendCommandUseCase.test.d.ts.map +1 -0
- package/lib/types/src/api/command/utils/CommandErrors.d.ts +13 -0
- package/lib/types/src/api/command/utils/CommandErrors.d.ts.map +1 -0
- package/lib/types/src/api/command/utils/CommandUtils.d.ts +7 -0
- package/lib/types/src/api/command/utils/CommandUtils.d.ts.map +1 -0
- package/lib/types/src/api/command/utils/CommandUtils.test.d.ts +2 -0
- package/lib/types/src/api/command/utils/CommandUtils.test.d.ts.map +1 -0
- package/lib/types/src/api/command/utils/GlobalCommandError.d.ts +28 -0
- package/lib/types/src/api/command/utils/GlobalCommandError.d.ts.map +1 -0
- package/lib/types/src/api/command/utils/GlobalCommandError.test.d.ts +2 -0
- package/lib/types/src/api/command/utils/GlobalCommandError.test.d.ts.map +1 -0
- package/lib/types/src/api/device/DeviceModel.d.ts +29 -0
- package/lib/types/src/api/device/DeviceModel.d.ts.map +1 -0
- package/lib/types/src/api/device/DeviceStatus.d.ts +7 -0
- package/lib/types/src/api/device/DeviceStatus.d.ts.map +1 -0
- package/lib/types/src/api/device-action/DeviceAction.d.ts +26 -0
- package/lib/types/src/api/device-action/DeviceAction.d.ts.map +1 -0
- package/lib/types/src/api/device-action/__test-utils__/data.d.ts +94 -0
- package/lib/types/src/api/device-action/__test-utils__/data.d.ts.map +1 -0
- package/lib/types/src/api/device-action/__test-utils__/makeInternalApi.d.ts +3 -0
- package/lib/types/src/api/device-action/__test-utils__/makeInternalApi.d.ts.map +1 -0
- package/lib/types/src/api/device-action/__test-utils__/setupTestMachine.d.ts +11 -0
- package/lib/types/src/api/device-action/__test-utils__/setupTestMachine.d.ts.map +1 -0
- package/lib/types/src/api/device-action/__test-utils__/testDeviceActionStates.d.ts +15 -0
- package/lib/types/src/api/device-action/__test-utils__/testDeviceActionStates.d.ts.map +1 -0
- package/lib/types/src/api/device-action/di/deviceActionModule.d.ts +7 -0
- package/lib/types/src/api/device-action/di/deviceActionModule.d.ts.map +1 -0
- package/lib/types/src/api/device-action/di/deviceActionModule.test.d.ts +2 -0
- package/lib/types/src/api/device-action/di/deviceActionModule.test.d.ts.map +1 -0
- package/lib/types/src/api/device-action/di/deviceActionTypes.d.ts +4 -0
- package/lib/types/src/api/device-action/di/deviceActionTypes.d.ts.map +1 -0
- package/lib/types/src/api/device-action/model/DeviceActionState.d.ts +25 -0
- package/lib/types/src/api/device-action/model/DeviceActionState.d.ts.map +1 -0
- package/lib/types/src/api/device-action/model/UserInteractionRequired.d.ts +16 -0
- package/lib/types/src/api/device-action/model/UserInteractionRequired.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/Const.d.ts +2 -0
- package/lib/types/src/api/device-action/os/Const.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/Errors.d.ts +17 -0
- package/lib/types/src/api/device-action/os/Errors.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/GetDeviceStatus/GetDeviceStatusDeviceAction.d.ts +31 -0
- package/lib/types/src/api/device-action/os/GetDeviceStatus/GetDeviceStatusDeviceAction.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/GetDeviceStatus/GetDeviceStatusDeviceAction.test.d.ts +2 -0
- package/lib/types/src/api/device-action/os/GetDeviceStatus/GetDeviceStatusDeviceAction.test.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/GetDeviceStatus/types.d.ts +18 -0
- package/lib/types/src/api/device-action/os/GetDeviceStatus/types.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/GoToDashboard/GoToDashboardDeviceAction.d.ts +23 -0
- package/lib/types/src/api/device-action/os/GoToDashboard/GoToDashboardDeviceAction.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/GoToDashboard/GoToDashboardDeviceAction.test.d.ts +2 -0
- package/lib/types/src/api/device-action/os/GoToDashboard/GoToDashboardDeviceAction.test.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/GoToDashboard/types.d.ts +14 -0
- package/lib/types/src/api/device-action/os/GoToDashboard/types.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/ListApps/ListAppsDeviceAction.d.ts +21 -0
- package/lib/types/src/api/device-action/os/ListApps/ListAppsDeviceAction.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/ListApps/ListAppsDeviceAction.test.d.ts +2 -0
- package/lib/types/src/api/device-action/os/ListApps/ListAppsDeviceAction.test.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/ListApps/types.d.ts +15 -0
- package/lib/types/src/api/device-action/os/ListApps/types.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/ListAppsWithMetadata/ListAppsWithMetadataDeviceAction.d.ts +27 -0
- package/lib/types/src/api/device-action/os/ListAppsWithMetadata/ListAppsWithMetadataDeviceAction.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/ListAppsWithMetadata/ListAppsWithMetadataDeviceAction.test.d.ts +2 -0
- package/lib/types/src/api/device-action/os/ListAppsWithMetadata/ListAppsWithMetadataDeviceAction.test.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/ListAppsWithMetadata/types.d.ts +17 -0
- package/lib/types/src/api/device-action/os/ListAppsWithMetadata/types.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/OpenAppDeviceAction/OpenAppDeviceAction.d.ts +46 -0
- package/lib/types/src/api/device-action/os/OpenAppDeviceAction/OpenAppDeviceAction.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/OpenAppDeviceAction/OpenAppDeviceAction.test.d.ts +2 -0
- package/lib/types/src/api/device-action/os/OpenAppDeviceAction/OpenAppDeviceAction.test.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/OpenAppDeviceAction/types.d.ts +17 -0
- package/lib/types/src/api/device-action/os/OpenAppDeviceAction/types.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceAction.d.ts +41 -0
- package/lib/types/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceAction.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceAction.test.d.ts +2 -0
- package/lib/types/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceAction.test.d.ts.map +1 -0
- package/lib/types/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceActionTypes.d.ts +18 -0
- package/lib/types/src/api/device-action/os/SendCommandInAppDeviceAction/SendCommandInAppDeviceActionTypes.d.ts.map +1 -0
- package/lib/types/src/api/device-action/use-case/ExecuteDeviceActionUseCase.d.ts +31 -0
- package/lib/types/src/api/device-action/use-case/ExecuteDeviceActionUseCase.d.ts.map +1 -0
- package/lib/types/src/api/device-action/xstate-utils/StateMachineTypes.d.ts +16 -0
- package/lib/types/src/api/device-action/xstate-utils/StateMachineTypes.d.ts.map +1 -0
- package/lib/types/src/api/device-action/xstate-utils/XStateDeviceAction.d.ts +40 -0
- package/lib/types/src/api/device-action/xstate-utils/XStateDeviceAction.d.ts.map +1 -0
- package/lib/types/src/api/device-model/data/DeviceModelDataSource.d.ts +16 -0
- package/lib/types/src/api/device-model/data/DeviceModelDataSource.d.ts.map +1 -0
- package/lib/types/src/api/device-model/data/StaticDeviceModelDataSource.d.ts +21 -0
- package/lib/types/src/api/device-model/data/StaticDeviceModelDataSource.d.ts.map +1 -0
- package/lib/types/src/api/device-model/data/StaticDeviceModelDataSource.test.d.ts +2 -0
- package/lib/types/src/api/device-model/data/StaticDeviceModelDataSource.test.d.ts.map +1 -0
- package/lib/types/src/api/device-model/model/BleDeviceInfos.d.ts +10 -0
- package/lib/types/src/api/device-model/model/BleDeviceInfos.d.ts.map +1 -0
- package/lib/types/src/api/device-model/model/DeviceModel.d.ts +36 -0
- package/lib/types/src/api/device-model/model/DeviceModel.d.ts.map +1 -0
- package/lib/types/src/api/device-model/model/DeviceModel.stub.d.ts +3 -0
- package/lib/types/src/api/device-model/model/DeviceModel.stub.d.ts.map +1 -0
- package/lib/types/src/api/device-model/model/DeviceModel.test.d.ts +2 -0
- package/lib/types/src/api/device-model/model/DeviceModel.test.d.ts.map +1 -0
- package/lib/types/src/api/device-session/ApduResponse.d.ts +10 -0
- package/lib/types/src/api/device-session/ApduResponse.d.ts.map +1 -0
- package/lib/types/src/api/device-session/ApduResponse.stub.d.ts +5 -0
- package/lib/types/src/api/device-session/ApduResponse.stub.d.ts.map +1 -0
- package/lib/types/src/api/device-session/DeviceSessionState.d.ts +107 -0
- package/lib/types/src/api/device-session/DeviceSessionState.d.ts.map +1 -0
- package/lib/types/src/api/device-session/data/FramerConst.d.ts +6 -0
- package/lib/types/src/api/device-session/data/FramerConst.d.ts.map +1 -0
- package/lib/types/src/api/device-session/service/ApduReceiverService.d.ts +11 -0
- package/lib/types/src/api/device-session/service/ApduReceiverService.d.ts.map +1 -0
- package/lib/types/src/api/device-session/service/ApduSenderService.d.ts +12 -0
- package/lib/types/src/api/device-session/service/ApduSenderService.d.ts.map +1 -0
- package/lib/types/src/api/device-session/service/DefaultApduReceiverService.stub.d.ts +5 -0
- package/lib/types/src/api/device-session/service/DefaultApduReceiverService.stub.d.ts.map +1 -0
- package/lib/types/src/api/device-session/service/DefaultApduSenderService.stub.d.ts +5 -0
- package/lib/types/src/api/device-session/service/DefaultApduSenderService.stub.d.ts.map +1 -0
- package/lib/types/src/api/device-session/types.d.ts +5 -0
- package/lib/types/src/api/device-session/types.d.ts.map +1 -0
- package/lib/types/src/api/device-session/use-case/ToggleDeviceSessionRefresher.d.ts +17 -0
- package/lib/types/src/api/device-session/use-case/ToggleDeviceSessionRefresher.d.ts.map +1 -0
- package/lib/types/src/api/device-session/use-case/ToggleDeviceSessionRefresher.test.d.ts +2 -0
- package/lib/types/src/api/device-session/use-case/ToggleDeviceSessionRefresher.test.d.ts.map +1 -0
- package/lib/types/src/api/device-session/utils/FramerUtils.d.ts +7 -0
- package/lib/types/src/api/device-session/utils/FramerUtils.d.ts.map +1 -0
- package/lib/types/src/api/device-session/utils/FramerUtils.test.d.ts +2 -0
- package/lib/types/src/api/device-session/utils/FramerUtils.test.d.ts.map +1 -0
- package/lib/types/src/api/discovery/ConnectionType.d.ts +2 -0
- package/lib/types/src/api/discovery/ConnectionType.d.ts.map +1 -0
- package/lib/types/src/api/index.d.ts +53 -0
- package/lib/types/src/api/index.d.ts.map +1 -0
- package/lib/types/src/api/logger-publisher/service/LoggerPublisherService.d.ts +10 -0
- package/lib/types/src/api/logger-publisher/service/LoggerPublisherService.d.ts.map +1 -0
- package/lib/types/src/api/logger-subscriber/model/LogLevel.d.ts +8 -0
- package/lib/types/src/api/logger-subscriber/model/LogLevel.d.ts.map +1 -0
- package/lib/types/src/api/logger-subscriber/model/LogSubscriberOptions.d.ts +7 -0
- package/lib/types/src/api/logger-subscriber/model/LogSubscriberOptions.d.ts.map +1 -0
- package/lib/types/src/api/logger-subscriber/service/ConsoleLogger.d.ts +9 -0
- package/lib/types/src/api/logger-subscriber/service/ConsoleLogger.d.ts.map +1 -0
- package/lib/types/src/api/logger-subscriber/service/ConsoleLogger.test.d.ts +2 -0
- package/lib/types/src/api/logger-subscriber/service/ConsoleLogger.test.d.ts.map +1 -0
- package/lib/types/src/api/logger-subscriber/service/LoggerSubscriberService.d.ts +17 -0
- package/lib/types/src/api/logger-subscriber/service/LoggerSubscriberService.d.ts.map +1 -0
- package/lib/types/src/api/logger-subscriber/service/WebLogsExporterLogger.d.ts +18 -0
- package/lib/types/src/api/logger-subscriber/service/WebLogsExporterLogger.d.ts.map +1 -0
- package/lib/types/src/api/logger-subscriber/service/WebLogsExporterLogger.test.d.ts +2 -0
- package/lib/types/src/api/logger-subscriber/service/WebLogsExporterLogger.test.d.ts.map +1 -0
- package/lib/types/src/api/logger-subscriber/service/__mocks__/ConsoleLogger.d.ts +4 -0
- package/lib/types/src/api/logger-subscriber/service/__mocks__/ConsoleLogger.d.ts.map +1 -0
- package/lib/types/src/api/transport/model/ConnectedDevice.d.ts +18 -0
- package/lib/types/src/api/transport/model/ConnectedDevice.d.ts.map +1 -0
- package/lib/types/src/api/transport/model/DeviceConnection.d.ts +10 -0
- package/lib/types/src/api/transport/model/DeviceConnection.d.ts.map +1 -0
- package/lib/types/src/api/transport/model/DeviceConnectionFactory.stub.d.ts +5 -0
- package/lib/types/src/api/transport/model/DeviceConnectionFactory.stub.d.ts.map +1 -0
- package/lib/types/src/api/transport/model/DiscoveredDevice.d.ts +11 -0
- package/lib/types/src/api/transport/model/DiscoveredDevice.d.ts.map +1 -0
- package/lib/types/src/api/transport/model/Errors.d.ts +73 -0
- package/lib/types/src/api/transport/model/Errors.d.ts.map +1 -0
- package/lib/types/src/api/transport/model/Transport.d.ts +49 -0
- package/lib/types/src/api/transport/model/Transport.d.ts.map +1 -0
- package/lib/types/src/api/transport/model/TransportConnectedDevice.d.ts +24 -0
- package/lib/types/src/api/transport/model/TransportConnectedDevice.d.ts.map +1 -0
- package/lib/types/src/api/transport/model/TransportConnectedDevice.stub.d.ts +3 -0
- package/lib/types/src/api/transport/model/TransportConnectedDevice.stub.d.ts.map +1 -0
- package/lib/types/src/api/transport/model/TransportConnectedDevice.test.d.ts +2 -0
- package/lib/types/src/api/transport/model/TransportConnectedDevice.test.d.ts.map +1 -0
- package/lib/types/src/api/transport/model/TransportDiscoveredDevice.d.ts +19 -0
- package/lib/types/src/api/transport/model/TransportDiscoveredDevice.d.ts.map +1 -0
- package/lib/types/src/api/transport/model/TransportIdentifier.d.ts +2 -0
- package/lib/types/src/api/transport/model/TransportIdentifier.d.ts.map +1 -0
- package/lib/types/src/api/transport/model/__mocks__/TransportMock.d.ts +12 -0
- package/lib/types/src/api/transport/model/__mocks__/TransportMock.d.ts.map +1 -0
- package/lib/types/src/api/types.d.ts +43 -0
- package/lib/types/src/api/types.d.ts.map +1 -0
- package/lib/types/src/api/utils/Base64String.d.ts +3 -0
- package/lib/types/src/api/utils/Base64String.d.ts.map +1 -0
- package/lib/types/src/api/utils/Base64String.test.d.ts +2 -0
- package/lib/types/src/api/utils/Base64String.test.d.ts.map +1 -0
- package/lib/types/src/api/utils/HexaString.d.ts +5 -0
- package/lib/types/src/api/utils/HexaString.d.ts.map +1 -0
- package/lib/types/src/api/utils/HexaString.test.d.ts +2 -0
- package/lib/types/src/api/utils/HexaString.test.d.ts.map +1 -0
- package/lib/types/src/di.d.ts +12 -0
- package/lib/types/src/di.d.ts.map +1 -0
- package/lib/types/src/di.stub.d.ts +4 -0
- package/lib/types/src/di.stub.d.ts.map +1 -0
- package/lib/types/src/index.d.ts +3 -0
- package/lib/types/src/index.d.ts.map +1 -0
- package/lib/types/src/internal/config/data/ConfigDataSource.d.ts +10 -0
- package/lib/types/src/internal/config/data/ConfigDataSource.d.ts.map +1 -0
- package/lib/types/src/internal/config/data/Dto.d.ts +6 -0
- package/lib/types/src/internal/config/data/Dto.d.ts.map +1 -0
- package/lib/types/src/internal/config/data/LocalConfigDataSource.d.ts +13 -0
- package/lib/types/src/internal/config/data/LocalConfigDataSource.d.ts.map +1 -0
- package/lib/types/src/internal/config/data/LocalConfigDataSource.stub.d.ts +12 -0
- package/lib/types/src/internal/config/data/LocalConfigDataSource.stub.d.ts.map +1 -0
- package/lib/types/src/internal/config/data/LocalConfigDataSource.test.d.ts +2 -0
- package/lib/types/src/internal/config/data/LocalConfigDataSource.test.d.ts.map +1 -0
- package/lib/types/src/internal/config/data/RemoteConfigDataSource.d.ts +14 -0
- package/lib/types/src/internal/config/data/RemoteConfigDataSource.d.ts.map +1 -0
- package/lib/types/src/internal/config/data/RemoteConfigDataSource.stub.d.ts +11 -0
- package/lib/types/src/internal/config/data/RemoteConfigDataSource.stub.d.ts.map +1 -0
- package/lib/types/src/internal/config/data/RemoteConfigDataSource.test.d.ts +2 -0
- package/lib/types/src/internal/config/data/RemoteConfigDataSource.test.d.ts.map +1 -0
- package/lib/types/src/internal/config/data/__mocks__/LocalConfigDataSource.d.ts +5 -0
- package/lib/types/src/internal/config/data/__mocks__/LocalConfigDataSource.d.ts.map +1 -0
- package/lib/types/src/internal/config/data/__mocks__/RemoteConfigDataSource.d.ts +7 -0
- package/lib/types/src/internal/config/data/__mocks__/RemoteConfigDataSource.d.ts.map +1 -0
- package/lib/types/src/internal/config/di/configModule.d.ts +7 -0
- package/lib/types/src/internal/config/di/configModule.d.ts.map +1 -0
- package/lib/types/src/internal/config/di/configModule.test.d.ts +2 -0
- package/lib/types/src/internal/config/di/configModule.test.d.ts.map +1 -0
- package/lib/types/src/internal/config/di/configTypes.d.ts +7 -0
- package/lib/types/src/internal/config/di/configTypes.d.ts.map +1 -0
- package/lib/types/src/internal/config/model/Config.d.ts +11 -0
- package/lib/types/src/internal/config/model/Config.d.ts.map +1 -0
- package/lib/types/src/internal/config/model/Errors.d.ts +27 -0
- package/lib/types/src/internal/config/model/Errors.d.ts.map +1 -0
- package/lib/types/src/internal/config/service/ConfigService.d.ts +5 -0
- package/lib/types/src/internal/config/service/ConfigService.d.ts.map +1 -0
- package/lib/types/src/internal/config/service/DefaultConfigService.d.ts +12 -0
- package/lib/types/src/internal/config/service/DefaultConfigService.d.ts.map +1 -0
- package/lib/types/src/internal/config/service/DefaultConfigService.test.d.ts +2 -0
- package/lib/types/src/internal/config/service/DefaultConfigService.test.d.ts.map +1 -0
- package/lib/types/src/internal/config/use-case/GetDmkVersionUseCase.d.ts +12 -0
- package/lib/types/src/internal/config/use-case/GetDmkVersionUseCase.d.ts.map +1 -0
- package/lib/types/src/internal/config/use-case/GetDmkVersionUseCase.test.d.ts +2 -0
- package/lib/types/src/internal/config/use-case/GetDmkVersionUseCase.test.d.ts.map +1 -0
- package/lib/types/src/internal/device-model/di/deviceModelModule.d.ts +7 -0
- package/lib/types/src/internal/device-model/di/deviceModelModule.d.ts.map +1 -0
- package/lib/types/src/internal/device-model/di/deviceModelModule.test.d.ts +2 -0
- package/lib/types/src/internal/device-model/di/deviceModelModule.test.d.ts.map +1 -0
- package/lib/types/src/internal/device-model/di/deviceModelTypes.d.ts +4 -0
- package/lib/types/src/internal/device-model/di/deviceModelTypes.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/data/ApduResponseConst.d.ts +2 -0
- package/lib/types/src/internal/device-session/data/ApduResponseConst.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/data/DeviceSessionRefresherConst.d.ts +2 -0
- package/lib/types/src/internal/device-session/data/DeviceSessionRefresherConst.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/di/deviceSessionModule.d.ts +6 -0
- package/lib/types/src/internal/device-session/di/deviceSessionModule.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/di/deviceSessionModule.test.d.ts +2 -0
- package/lib/types/src/internal/device-session/di/deviceSessionModule.test.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/di/deviceSessionTypes.d.ts +9 -0
- package/lib/types/src/internal/device-session/di/deviceSessionTypes.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/model/DeviceSession.d.ts +40 -0
- package/lib/types/src/internal/device-session/model/DeviceSession.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/model/DeviceSession.stub.d.ts +5 -0
- package/lib/types/src/internal/device-session/model/DeviceSession.stub.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/model/DeviceSessionRefresher.d.ts +83 -0
- package/lib/types/src/internal/device-session/model/DeviceSessionRefresher.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/model/DeviceSessionRefresher.test.d.ts +2 -0
- package/lib/types/src/internal/device-session/model/DeviceSessionRefresher.test.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/model/Errors.d.ts +32 -0
- package/lib/types/src/internal/device-session/model/Errors.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/model/Frame.d.ts +16 -0
- package/lib/types/src/internal/device-session/model/Frame.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/model/FrameHeader.d.ts +25 -0
- package/lib/types/src/internal/device-session/model/FrameHeader.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/service/DefaultApduReceiverService.d.ts +17 -0
- package/lib/types/src/internal/device-session/service/DefaultApduReceiverService.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/service/DefaultApduReceiverService.test.d.ts +2 -0
- package/lib/types/src/internal/device-session/service/DefaultApduReceiverService.test.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/service/DefaultApduSenderService.d.ts +60 -0
- package/lib/types/src/internal/device-session/service/DefaultApduSenderService.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/service/DefaultApduSenderService.test.d.ts +2 -0
- package/lib/types/src/internal/device-session/service/DefaultApduSenderService.test.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/service/DefaultDeviceSessionService.d.ts +18 -0
- package/lib/types/src/internal/device-session/service/DefaultDeviceSessionService.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/service/DefaultDeviceSessionService.test.d.ts +2 -0
- package/lib/types/src/internal/device-session/service/DefaultDeviceSessionService.test.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/service/DeviceSessionService.d.ts +13 -0
- package/lib/types/src/internal/device-session/service/DeviceSessionService.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/use-case/CloseSessionsUseCase.d.ts +7 -0
- package/lib/types/src/internal/device-session/use-case/CloseSessionsUseCase.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/use-case/CloseSessionsUseCase.test.d.ts +2 -0
- package/lib/types/src/internal/device-session/use-case/CloseSessionsUseCase.test.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/use-case/GetDeviceSessionStateUseCase.d.ts +16 -0
- package/lib/types/src/internal/device-session/use-case/GetDeviceSessionStateUseCase.d.ts.map +1 -0
- package/lib/types/src/internal/device-session/use-case/GetDeviceSessionStateUseCase.test.d.ts +2 -0
- package/lib/types/src/internal/device-session/use-case/GetDeviceSessionStateUseCase.test.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/di/discoveryModule.d.ts +7 -0
- package/lib/types/src/internal/discovery/di/discoveryModule.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/di/discoveryModule.test.d.ts +2 -0
- package/lib/types/src/internal/discovery/di/discoveryModule.test.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/di/discoveryTypes.d.ts +11 -0
- package/lib/types/src/internal/discovery/di/discoveryTypes.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/ConnectUseCase.d.ts +29 -0
- package/lib/types/src/internal/discovery/use-case/ConnectUseCase.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/ConnectUseCase.test.d.ts +2 -0
- package/lib/types/src/internal/discovery/use-case/ConnectUseCase.test.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/DisconnectUseCase.d.ts +24 -0
- package/lib/types/src/internal/discovery/use-case/DisconnectUseCase.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/DisconnectUseCase.test.d.ts +2 -0
- package/lib/types/src/internal/discovery/use-case/DisconnectUseCase.test.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/GetConnectedDeviceUseCase.d.ts +17 -0
- package/lib/types/src/internal/discovery/use-case/GetConnectedDeviceUseCase.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/GetConnectedDeviceUseCase.test.d.ts +2 -0
- package/lib/types/src/internal/discovery/use-case/GetConnectedDeviceUseCase.test.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/ListConnectedDevicesUseCase.d.ts +13 -0
- package/lib/types/src/internal/discovery/use-case/ListConnectedDevicesUseCase.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/ListConnectedDevicesUseCase.test.d.ts +2 -0
- package/lib/types/src/internal/discovery/use-case/ListConnectedDevicesUseCase.test.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/ListenToConnectedDeviceUseCase.d.ts +14 -0
- package/lib/types/src/internal/discovery/use-case/ListenToConnectedDeviceUseCase.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/ListenToConnectedDeviceUseCase.test.d.ts +2 -0
- package/lib/types/src/internal/discovery/use-case/ListenToConnectedDeviceUseCase.test.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/ListenToKnownDevicesUseCase.d.ts +13 -0
- package/lib/types/src/internal/discovery/use-case/ListenToKnownDevicesUseCase.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/ListenToKnownDevicesUseCase.test.d.ts +2 -0
- package/lib/types/src/internal/discovery/use-case/ListenToKnownDevicesUseCase.test.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/StartDiscoveringUseCase.d.ts +23 -0
- package/lib/types/src/internal/discovery/use-case/StartDiscoveringUseCase.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/StartDiscoveringUseCase.test.d.ts +2 -0
- package/lib/types/src/internal/discovery/use-case/StartDiscoveringUseCase.test.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/StopDiscoveringUseCase.d.ts +10 -0
- package/lib/types/src/internal/discovery/use-case/StopDiscoveringUseCase.d.ts.map +1 -0
- package/lib/types/src/internal/discovery/use-case/StopDiscoveringUseCase.test.d.ts +2 -0
- package/lib/types/src/internal/discovery/use-case/StopDiscoveringUseCase.test.d.ts.map +1 -0
- package/lib/types/src/internal/logger-publisher/di/loggerModule.d.ts +8 -0
- package/lib/types/src/internal/logger-publisher/di/loggerModule.d.ts.map +1 -0
- package/lib/types/src/internal/logger-publisher/di/loggerModule.test.d.ts +2 -0
- package/lib/types/src/internal/logger-publisher/di/loggerModule.test.d.ts.map +1 -0
- package/lib/types/src/internal/logger-publisher/di/loggerTypes.d.ts +4 -0
- package/lib/types/src/internal/logger-publisher/di/loggerTypes.d.ts.map +1 -0
- package/lib/types/src/internal/logger-publisher/model/LogPublisherOptions.d.ts +7 -0
- package/lib/types/src/internal/logger-publisher/model/LogPublisherOptions.d.ts.map +1 -0
- package/lib/types/src/internal/logger-publisher/service/DefaultLoggerPublisherService.d.ts +15 -0
- package/lib/types/src/internal/logger-publisher/service/DefaultLoggerPublisherService.d.ts.map +1 -0
- package/lib/types/src/internal/logger-publisher/service/DefaultLoggerPublisherService.stub.d.ts +11 -0
- package/lib/types/src/internal/logger-publisher/service/DefaultLoggerPublisherService.stub.d.ts.map +1 -0
- package/lib/types/src/internal/logger-publisher/service/DefaultLoggerPublisherService.test.d.ts +2 -0
- package/lib/types/src/internal/logger-publisher/service/DefaultLoggerPublisherService.test.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/data/AxiosManagerApiDataSource.d.ts +17 -0
- package/lib/types/src/internal/manager-api/data/AxiosManagerApiDataSource.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/data/AxiosManagerApiDataSource.test.d.ts +2 -0
- package/lib/types/src/internal/manager-api/data/AxiosManagerApiDataSource.test.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/data/ManagerApiDataSource.d.ts +11 -0
- package/lib/types/src/internal/manager-api/data/ManagerApiDataSource.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/data/ManagerApiDto.d.ts +33 -0
- package/lib/types/src/internal/manager-api/data/ManagerApiDto.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/data/__mocks__/AxiosManagerApiDataSource.d.ts +7 -0
- package/lib/types/src/internal/manager-api/data/__mocks__/AxiosManagerApiDataSource.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/di/managerApiModule.d.ts +9 -0
- package/lib/types/src/internal/manager-api/di/managerApiModule.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/di/managerApiModule.test.d.ts +2 -0
- package/lib/types/src/internal/manager-api/di/managerApiModule.test.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/di/managerApiTypes.d.ts +6 -0
- package/lib/types/src/internal/manager-api/di/managerApiTypes.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/model/Application.d.ts +32 -0
- package/lib/types/src/internal/manager-api/model/Application.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/model/Const.d.ts +3 -0
- package/lib/types/src/internal/manager-api/model/Const.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/model/Device.d.ts +4 -0
- package/lib/types/src/internal/manager-api/model/Device.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/model/Errors.d.ts +8 -0
- package/lib/types/src/internal/manager-api/model/Errors.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/model/Firmware.d.ts +5 -0
- package/lib/types/src/internal/manager-api/model/Firmware.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/service/DefaultManagerApiService.d.ts +16 -0
- package/lib/types/src/internal/manager-api/service/DefaultManagerApiService.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/service/DefaultManagerApiService.test.d.ts +2 -0
- package/lib/types/src/internal/manager-api/service/DefaultManagerApiService.test.d.ts.map +1 -0
- package/lib/types/src/internal/manager-api/service/ManagerApiService.d.ts +13 -0
- package/lib/types/src/internal/manager-api/service/ManagerApiService.d.ts.map +1 -0
- package/lib/types/src/internal/send/di/sendModule.d.ts +7 -0
- package/lib/types/src/internal/send/di/sendModule.d.ts.map +1 -0
- package/lib/types/src/internal/send/di/sendModule.test.d.ts +2 -0
- package/lib/types/src/internal/send/di/sendModule.test.d.ts.map +1 -0
- package/lib/types/src/internal/send/di/sendTypes.d.ts +4 -0
- package/lib/types/src/internal/send/di/sendTypes.d.ts.map +1 -0
- package/lib/types/src/internal/send/use-case/SendApduUseCase.d.ts +27 -0
- package/lib/types/src/internal/send/use-case/SendApduUseCase.d.ts.map +1 -0
- package/lib/types/src/internal/send/use-case/SendApduUseCase.test.d.ts +2 -0
- package/lib/types/src/internal/send/use-case/SendApduUseCase.test.d.ts.map +1 -0
- package/lib/types/src/internal/transport/di/transportDiTypes.d.ts +6 -0
- package/lib/types/src/internal/transport/di/transportDiTypes.d.ts.map +1 -0
- package/lib/types/src/internal/transport/di/transportModule.d.ts +11 -0
- package/lib/types/src/internal/transport/di/transportModule.d.ts.map +1 -0
- package/lib/types/src/internal/transport/di/transportModule.test.d.ts +2 -0
- package/lib/types/src/internal/transport/di/transportModule.test.d.ts.map +1 -0
- package/lib/types/src/internal/transport/service/DefaultTransportService.d.ts +25 -0
- package/lib/types/src/internal/transport/service/DefaultTransportService.d.ts.map +1 -0
- package/lib/types/src/internal/transport/service/DefaultTransportService.test.d.ts +2 -0
- package/lib/types/src/internal/transport/service/DefaultTransportService.test.d.ts.map +1 -0
- package/lib/types/src/internal/transport/service/TransportService.d.ts +9 -0
- package/lib/types/src/internal/transport/service/TransportService.d.ts.map +1 -0
- package/lib/types/src/internal/transport/service/__mocks__/DefaultTransportService.d.ts +19 -0
- package/lib/types/src/internal/transport/service/__mocks__/DefaultTransportService.d.ts.map +1 -0
- package/lib/types/tsconfig.prod.tsbuildinfo +1 -0
- package/package.json +64 -0
package/LICENSE.MD
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2024-present Ledger
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
# Device Development Kit Library Documentation
|
|
2
|
+
|
|
3
|
+
> [!CAUTION]
|
|
4
|
+
> This is still under development and we are free to make new interfaces which may lead to Device Development Kit breaking changes.
|
|
5
|
+
|
|
6
|
+
- [Device Development Kit Library Documentation](#device-development-kit-library-documentation)
|
|
7
|
+
- [Description](#description)
|
|
8
|
+
- [Installation](#installation)
|
|
9
|
+
- [Usage](#usage)
|
|
10
|
+
- [Compatibility](#compatibility)
|
|
11
|
+
- [Pre-requisites](#pre-requisites)
|
|
12
|
+
- [Main Features](#main-features)
|
|
13
|
+
- [Setting up the SDK](#setting-up-the-sdk)
|
|
14
|
+
- [Connecting to a Device](#connecting-to-a-device)
|
|
15
|
+
- [Sending an APDU](#sending-an-apdu)
|
|
16
|
+
- [Sending a Pre-defined Command](#sending-a-pre-defined-command)
|
|
17
|
+
- [Open App](#open-app)
|
|
18
|
+
- [Close App](#close-app)
|
|
19
|
+
- [Get OS Version](#get-os-version)
|
|
20
|
+
- [Get App and Version](#get-app-and-version)
|
|
21
|
+
- [Building a Custom Command](#building-a-custom-command)
|
|
22
|
+
- [Executing a device action](#executing-a-device-action)
|
|
23
|
+
- [Open App Device Action](#open-app-device-action)
|
|
24
|
+
- [Example in React](#example-in-react)
|
|
25
|
+
|
|
26
|
+
## Description
|
|
27
|
+
|
|
28
|
+
This package contains the core of the Device Management Kit. It provides a simple interface to handle Ledger devices and features the Device Management Kit's entry points, classes, types, structures, and models.
|
|
29
|
+
|
|
30
|
+
## Installation
|
|
31
|
+
|
|
32
|
+
To install the core package, run the following command:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
npm install @ledgerhq/device-management-kit
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
|
|
40
|
+
### Compatibility
|
|
41
|
+
|
|
42
|
+
This library works in [any browser supporting the WebHID API](https://developer.mozilla.org/en-US/docs/Web/API/WebHID_API#browser_compatibility).
|
|
43
|
+
|
|
44
|
+
### Pre-requisites
|
|
45
|
+
|
|
46
|
+
Some of the APIs exposed return objects of type `Observable` from RxJS. Ensure you are familiar with the basics of the Observer pattern and RxJS before using this SDK. You can refer to [RxJS documentation](https://rxjs.dev/guide/overview) for more information.
|
|
47
|
+
|
|
48
|
+
### Main Features
|
|
49
|
+
|
|
50
|
+
- Discovering and connecting to Ledger devices via USB, through [WebHID](https://developer.mozilla.org/en-US/docs/Web/API/WebHID_API).
|
|
51
|
+
- Observing the state of a connected device.
|
|
52
|
+
- Sending custom APDU commands to Ledger devices.
|
|
53
|
+
- Sending a set of pre-defined commands to Ledger devices.
|
|
54
|
+
- Get OS version
|
|
55
|
+
- Get app and version
|
|
56
|
+
- Open app
|
|
57
|
+
- Close app
|
|
58
|
+
- Get battery status
|
|
59
|
+
|
|
60
|
+
> [!NOTE]
|
|
61
|
+
> At the moment we do not provide the possibility to distinguish two devices of the same model, via USB and to avoid connection to the same device twice.
|
|
62
|
+
|
|
63
|
+
### Setting up the SDK
|
|
64
|
+
|
|
65
|
+
The core package exposes an SDK builder `DeviceSdkBuilder` which will be used to initialise the SDK with your configuration.
|
|
66
|
+
|
|
67
|
+
For now it allows you to add one or more custom loggers.
|
|
68
|
+
|
|
69
|
+
In the following example, we add a console logger (`.addLogger(new ConsoleLogger())`). Then we build the SDK with `.build()`.
|
|
70
|
+
|
|
71
|
+
**The returned object will be the entrypoint for all your interactions with the SDK.**
|
|
72
|
+
|
|
73
|
+
The SDK should be built only once in your application runtime so keep a reference of this object somewhere.
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
import {
|
|
77
|
+
ConsoleLogger,
|
|
78
|
+
DeviceSdk,
|
|
79
|
+
DeviceSdkBuilder,
|
|
80
|
+
} from "@ledgerhq/device-management-kit";
|
|
81
|
+
|
|
82
|
+
export const sdk = new DeviceSdkBuilder()
|
|
83
|
+
.addLogger(new ConsoleLogger())
|
|
84
|
+
.build();
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Connecting to a Device
|
|
88
|
+
|
|
89
|
+
There are two steps to connecting to a device:
|
|
90
|
+
|
|
91
|
+
- **Discovery**: `sdk.startDiscovering()`
|
|
92
|
+
- Returns an observable which will emit a new `DiscoveredDevice` for every scanned device.
|
|
93
|
+
- The `DiscoveredDevice` objects contain information about the device model.
|
|
94
|
+
- Use one of these values to connect to a given discovered device.
|
|
95
|
+
- **Connection**: `sdk.connect({ deviceId: device.id })`
|
|
96
|
+
- Returns a Promise resolving in a device session identifier `DeviceSessionId`.
|
|
97
|
+
- **Keep this device session identifier to further interact with the device.**
|
|
98
|
+
- Then, `sdk.getConnectedDevice({ sessionId })` returns the `ConnectedDevice`, which contains information about the device model and its name.
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
sdk.startDiscovering().subscribe({
|
|
102
|
+
next: (device) => {
|
|
103
|
+
sdk.connect({ deviceId: device.id }).then((sessionId) => {
|
|
104
|
+
const connectedDevice = sdk.getConnectedDevice({ sessionId });
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
error: (error) => {
|
|
108
|
+
console.error(error);
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Then once a device is connected:
|
|
114
|
+
|
|
115
|
+
- **Disconnection**: `sdk.disconnect({ sessionId })`
|
|
116
|
+
- **Observe the device session state**: `sdk.getDeviceSessionState({ sessionId })`
|
|
117
|
+
- This will return an `Observable<DeviceSessionState>` to listen to the known information about the device:
|
|
118
|
+
- device status:
|
|
119
|
+
- ready to process a command
|
|
120
|
+
- busy
|
|
121
|
+
- locked
|
|
122
|
+
- disconnected
|
|
123
|
+
- device name
|
|
124
|
+
- information on the OS
|
|
125
|
+
- battery status
|
|
126
|
+
- currently opened app
|
|
127
|
+
|
|
128
|
+
### Sending an APDU
|
|
129
|
+
|
|
130
|
+
Once you have a connected device, you can send it APDU commands.
|
|
131
|
+
|
|
132
|
+
> ℹ️ It is recommended to use the [pre-defined commands](#sending-a-pre-defined-command) when possible, or [build your own command](#building-a-new-command), to avoid dealing with the APDU directly. It will make your code more reusable.
|
|
133
|
+
|
|
134
|
+
```ts
|
|
135
|
+
import {
|
|
136
|
+
ApduBuilder,
|
|
137
|
+
ApduParser,
|
|
138
|
+
CommandUtils,
|
|
139
|
+
} from "@ledgerhq/device-management-kit";
|
|
140
|
+
|
|
141
|
+
// ### 1. Building the APDU
|
|
142
|
+
// Use `ApduBuilder` to easily build the APDU and add data to its data field.
|
|
143
|
+
|
|
144
|
+
// Build the APDU to open the Bitcoin app
|
|
145
|
+
const openAppApduArgs = {
|
|
146
|
+
cla: 0xe0,
|
|
147
|
+
ins: 0xd8,
|
|
148
|
+
p1: 0x00,
|
|
149
|
+
p2: 0x00,
|
|
150
|
+
};
|
|
151
|
+
const apdu = new ApduBuilder(openAppApduArgs)
|
|
152
|
+
.addAsciiStringToData("Bitcoin")
|
|
153
|
+
.build();
|
|
154
|
+
|
|
155
|
+
// ### 2. Sending the APDU
|
|
156
|
+
|
|
157
|
+
const apduResponse = await sdk.sendApdu({ sessionId, apdu });
|
|
158
|
+
|
|
159
|
+
// ### 3. Parsing the result
|
|
160
|
+
|
|
161
|
+
const parser = new ApduParser(apduResponse);
|
|
162
|
+
|
|
163
|
+
if (!CommandUtils.isSuccessResponse(apduResponse)) {
|
|
164
|
+
throw new Error(
|
|
165
|
+
`Unexpected status word: ${parser.encodeToHexaString(
|
|
166
|
+
apduResponse.statusCode,
|
|
167
|
+
)}`,
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Sending a Pre-defined Command
|
|
173
|
+
|
|
174
|
+
There are some pre-defined commands that you can send to a connected device.
|
|
175
|
+
|
|
176
|
+
The `sendCommand` method will take care of building the APDU, sending it to the device and returning the parsed response.
|
|
177
|
+
|
|
178
|
+
> ### ❗️ Error Responses
|
|
179
|
+
>
|
|
180
|
+
> Most of the commands will reject with an error if the device is locked.
|
|
181
|
+
> Ensure that the device is unlocked before sending commands. You can check the device session state (`sdk.getDeviceSessionState`) to know if the device is locked.
|
|
182
|
+
>
|
|
183
|
+
> Most of the commands will reject with an error if the response status word is not `0x9000` (success response from the device).
|
|
184
|
+
|
|
185
|
+
#### Open App
|
|
186
|
+
|
|
187
|
+
This command will open the app with the given name. If the device is unlocked, it will not resolve/reject until the user has confirmed or denied the app opening on the device.
|
|
188
|
+
|
|
189
|
+
```ts
|
|
190
|
+
import { OpenAppCommand } from "@ledgerhq/device-management-kit";
|
|
191
|
+
|
|
192
|
+
const command = new OpenAppCommand("Bitcoin"); // Open the Bitcoin app
|
|
193
|
+
|
|
194
|
+
await sdk.sendCommand({ sessionId, command });
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
#### Close App
|
|
198
|
+
|
|
199
|
+
This command will close the currently opened app.
|
|
200
|
+
|
|
201
|
+
```ts
|
|
202
|
+
import { CloseAppCommand } from "@ledgerhq/device-management-kit";
|
|
203
|
+
|
|
204
|
+
const command = new CloseAppCommand();
|
|
205
|
+
|
|
206
|
+
await sdk.sendCommand({ sessionId, command });
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
#### Get OS Version
|
|
210
|
+
|
|
211
|
+
This command will return information about the currently installed OS on the device.
|
|
212
|
+
|
|
213
|
+
> ℹ️ If you want this information you can simply get it from the device session state by observing it with `sdk.getDeviceSessionState({ sessionId })`.
|
|
214
|
+
|
|
215
|
+
```ts
|
|
216
|
+
import { GetOsVersionCommand } from "@ledgerhq/device-management-kit";
|
|
217
|
+
|
|
218
|
+
const command = new GetOsVersionCommand();
|
|
219
|
+
|
|
220
|
+
const { seVersion, mcuSephVersion, mcuBootloaderVersion } =
|
|
221
|
+
await sdk.sendCommand({ sessionId, command });
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
#### Get App and Version
|
|
225
|
+
|
|
226
|
+
This command will return the name and version of the currently running app on the device.
|
|
227
|
+
|
|
228
|
+
> ℹ️ If you want this information you can simply get it from the device session state by observing it with `sdk.getDeviceSessionState({ sessionId })`.
|
|
229
|
+
|
|
230
|
+
```ts
|
|
231
|
+
import { GetAppAndVersionCommand } from "@ledgerhq/device-management-kit";
|
|
232
|
+
|
|
233
|
+
const command = new GetAppAndVersionCommand();
|
|
234
|
+
|
|
235
|
+
const { name, version } = await sdk.sendCommand({ sessionId, command });
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### Building a Custom Command
|
|
239
|
+
|
|
240
|
+
You can build your own command simply by extending the `Command` class and implementing the `getApdu` and `parseResponse` methods.
|
|
241
|
+
|
|
242
|
+
Then you can use the `sendCommand` method to send it to a connected device.
|
|
243
|
+
|
|
244
|
+
This is strongly recommended over direct usage of `sendApdu`.
|
|
245
|
+
|
|
246
|
+
Check the existing commands for a variety of examples.
|
|
247
|
+
|
|
248
|
+
### Executing a device action
|
|
249
|
+
|
|
250
|
+
Device actions define a succession of commands to be sent to the device.
|
|
251
|
+
|
|
252
|
+
They are useful for actions that require user interaction, like opening an app,
|
|
253
|
+
or approving a transaction.
|
|
254
|
+
|
|
255
|
+
The result of a device action execution is an observable that will emit different states of the action execution. These states contain information about the current status of the action, some intermediate values like the user action required, and the final result.
|
|
256
|
+
|
|
257
|
+
#### Open App Device Action
|
|
258
|
+
|
|
259
|
+
```ts
|
|
260
|
+
import {
|
|
261
|
+
OpenAppDeviceAction,
|
|
262
|
+
OpenAppDAState,
|
|
263
|
+
} from "@ledgerhq/device-management-kit";
|
|
264
|
+
|
|
265
|
+
const openAppDeviceAction = new OpenAppDeviceAction({ appName: "Bitcoin" });
|
|
266
|
+
|
|
267
|
+
const { observable, cancel } = await sdk.executeDeviceAction({
|
|
268
|
+
deviceAction: openAppDeviceAction,
|
|
269
|
+
command,
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
observable.subscribe({
|
|
273
|
+
next: (state: OpenAppDAState) => {
|
|
274
|
+
switch (state.status) {
|
|
275
|
+
case DeviceActionStatus.NotStarted:
|
|
276
|
+
console.log("Action not started yet");
|
|
277
|
+
break;
|
|
278
|
+
case DeviceActionStatus.Pending:
|
|
279
|
+
const {
|
|
280
|
+
intermediateValue: { userActionRequired },
|
|
281
|
+
} = state;
|
|
282
|
+
switch (userActionRequired) {
|
|
283
|
+
case UserActionRequiredType.None:
|
|
284
|
+
console.log("No user action required");
|
|
285
|
+
break;
|
|
286
|
+
case UserActionRequiredType.ConfirmOpenApp:
|
|
287
|
+
console.log(
|
|
288
|
+
"The user should confirm the app opening on the device",
|
|
289
|
+
);
|
|
290
|
+
break;
|
|
291
|
+
case UserActionRequiredType.UnlockDevice:
|
|
292
|
+
console.log("The user should unlock the device");
|
|
293
|
+
break;
|
|
294
|
+
default:
|
|
295
|
+
/**
|
|
296
|
+
* you should make sure that you handle all the possible user action
|
|
297
|
+
* required types by displaying them to the user.
|
|
298
|
+
*/
|
|
299
|
+
throw new Exception("Unhandled user action required");
|
|
300
|
+
break;
|
|
301
|
+
}
|
|
302
|
+
console.log("Action is pending");
|
|
303
|
+
break;
|
|
304
|
+
case DeviceActionStatus.Stopped:
|
|
305
|
+
console.log("Action has been stopped");
|
|
306
|
+
break;
|
|
307
|
+
case DeviceActionStatus.Completed:
|
|
308
|
+
const { output } = state;
|
|
309
|
+
console.log("Action has been completed", output);
|
|
310
|
+
break;
|
|
311
|
+
case DeviceActionStatus.Error:
|
|
312
|
+
const { error } = state;
|
|
313
|
+
console.log("An error occurred during the action", error);
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
});
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### Example in React
|
|
321
|
+
|
|
322
|
+
Check [the sample app](https://github.com/LedgerHQ/device-sdk-ts/tree/develop/apps/sample) for an advanced example showcasing all possible usages of the Device Management Kit in a React app.
|
package/lib/cjs/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(r,o,f,x)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of c(o))!d.call(r,e)&&e!==f&&a(r,e,{get:()=>o[e],enumerable:!(x=b(o,e))||x.enumerable});return r},t=(r,o,f)=>(p(r,o,"default"),f&&p(f,o,"default"));var g=r=>p(a({},"__esModule",{value:!0}),r);var m={};module.exports=g(m);t(m,require("./src"),module.exports);0&&(module.exports={...require("./src")});
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ledgerhq/device-management-kit",
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./lib/types/index.d.ts",
|
|
8
|
+
"import": "./lib/esm/index.js",
|
|
9
|
+
"require": "./lib/cjs/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./*": {
|
|
12
|
+
"types": "./lib/types/*",
|
|
13
|
+
"import": "./lib/esm/*",
|
|
14
|
+
"require": "./lib/cjs/*"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"./lib",
|
|
19
|
+
"package.json"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"prebuild": "rimraf lib",
|
|
23
|
+
"build": "pnpm lmdk-build --entryPoints index.ts,src/**/*.ts --tsconfig tsconfig.prod.json",
|
|
24
|
+
"dev": "concurrently \"pnpm watch:builds\" \"pnpm watch:types\"",
|
|
25
|
+
"watch:builds": "pnpm lmdk-watch --entryPoints index.ts,src/**/*.ts --tsconfig tsconfig.prod.json",
|
|
26
|
+
"watch:types": "concurrently \"tsc --watch -p tsconfig.prod.json\" \"tsc-alias --watch -p tsconfig.prod.json\"",
|
|
27
|
+
"lint": "eslint",
|
|
28
|
+
"lint:fix": "pnpm lint --fix",
|
|
29
|
+
"postpack": "find . -name '*.tgz' -exec cp {} ../../dist/ \\; ",
|
|
30
|
+
"prettier": "prettier . --check",
|
|
31
|
+
"prettier:fix": "prettier . --write",
|
|
32
|
+
"test": "jest",
|
|
33
|
+
"test:watch": "pnpm test -- --watch",
|
|
34
|
+
"test:coverage": "pnpm test -- --coverage",
|
|
35
|
+
"typecheck": "tsc --noEmit",
|
|
36
|
+
"module:create": "pnpm hygen core-module with-prompt"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@ledgerhq/device-mockserver-client": "workspace:*",
|
|
40
|
+
"@sentry/minimal": "^6.19.7",
|
|
41
|
+
"@statelyai/inspect": "^0.4.0",
|
|
42
|
+
"axios": "^1.7.9",
|
|
43
|
+
"inversify": "^6.1.6",
|
|
44
|
+
"inversify-logger-middleware": "^3.1.0",
|
|
45
|
+
"purify-ts": "^2.1.0",
|
|
46
|
+
"reflect-metadata": "^0.2.2",
|
|
47
|
+
"semver": "^7.6.3",
|
|
48
|
+
"uuid": "^11.0.3",
|
|
49
|
+
"xstate": "^5.19.0"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"rxjs": "^7.8.1"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@ledgerhq/esbuild-tools": "workspace:*",
|
|
56
|
+
"@ledgerhq/eslint-config-dsdk": "workspace:*",
|
|
57
|
+
"@ledgerhq/jest-config-dsdk": "workspace:*",
|
|
58
|
+
"@ledgerhq/prettier-config-dsdk": "workspace:*",
|
|
59
|
+
"@ledgerhq/tsconfig-dsdk": "workspace:*",
|
|
60
|
+
"@types/semver": "^7.5.8",
|
|
61
|
+
"@types/uuid": "^10.0.0",
|
|
62
|
+
"rxjs": "^7.8.1",
|
|
63
|
+
"ts-node": "^10.9.2"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var c=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var U=(t,e)=>{for(var n in e)c(t,n,{get:e[n],enumerable:!0})},g=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of D(e))!u.call(t,o)&&o!==n&&c(t,o,{get:()=>e[o],enumerable:!(i=v(e,o))||i.enumerable});return t};var y=t=>g(c({},"__esModule",{value:!0}),t);var f={};U(f,{DeviceManagementKit:()=>S});module.exports=y(f);var a=require("./command/di/commandTypes"),C=require("../internal/config/di/configTypes"),r=require("../internal/device-session/di/deviceSessionTypes"),s=require("../internal/discovery/di/discoveryTypes"),m=require("../internal/send/di/sendTypes"),p=require("../../src/di"),d=require("./device-action/di/deviceActionTypes");class S{container;constructor({stub:e,transports:n,loggers:i,config:o}={}){this.container=(0,p.makeContainer)({stub:e,transports:n,loggers:i,config:o})}getVersion(){return this.container.get(C.configTypes.GetDmkVersionUseCase).getDmkVersion()}startDiscovering(e){return this.container.get(s.discoveryTypes.StartDiscoveringUseCase).execute(e)}stopDiscovering(){return this.container.get(s.discoveryTypes.StopDiscoveringUseCase).execute()}listenToKnownDevices(){return this.container.get(s.discoveryTypes.ListenToKnownDevicesUseCase).execute()}connect(e){return this.container.get(s.discoveryTypes.ConnectUseCase).execute(e)}disconnect(e){return this.container.get(s.discoveryTypes.DisconnectUseCase).execute(e)}sendApdu(e){return this.container.get(m.sendTypes.SendApduUseCase).execute(e)}sendCommand(e){return this.container.get(a.commandTypes.SendCommandUseCase).execute(e)}executeDeviceAction(e){return this.container.get(d.deviceActionTypes.ExecuteDeviceActionUseCase).execute(e)}getConnectedDevice(e){return this.container.get(s.discoveryTypes.GetConnectedDeviceUseCase).execute(e)}getDeviceSessionState(e){return this.container.get(r.deviceSessionTypes.GetDeviceSessionStateUseCase).execute(e)}close(){return this.container.get(r.deviceSessionTypes.CloseSessionsUseCase).execute()}listConnectedDevices(){return this.container.get(s.discoveryTypes.ListConnectedDevicesUseCase).execute()}listenToConnectedDevice(){return this.container.get(s.discoveryTypes.ListenToConnectedDeviceUseCase).execute()}toggleDeviceSessionRefresher(e){return this.container.get(r.deviceSessionTypes.ToggleDeviceSessionRefresherUseCase).execute(e)}}0&&(module.exports={DeviceManagementKit});
|
|
2
|
+
//# sourceMappingURL=DeviceManagementKit.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/api/DeviceManagementKit.ts"],
|
|
4
|
+
"sourcesContent": ["import { type Container } from \"inversify\";\nimport { type Observable } from \"rxjs\";\n\nimport { commandTypes } from \"@api/command/di/commandTypes\";\nimport { type CommandResult } from \"@api/command/model/CommandResult\";\nimport {\n type SendCommandUseCase,\n type SendCommandUseCaseArgs,\n} from \"@api/command/use-case/SendCommandUseCase\";\nimport {\n type ExecuteDeviceActionUseCase,\n type ExecuteDeviceActionUseCaseArgs,\n} from \"@api/device-action/use-case/ExecuteDeviceActionUseCase\";\nimport { type ApduResponse } from \"@api/device-session/ApduResponse\";\nimport { type DeviceSessionState } from \"@api/device-session/DeviceSessionState\";\nimport { type DeviceSessionId } from \"@api/device-session/types\";\nimport { type ConnectedDevice } from \"@api/transport/model/ConnectedDevice\";\nimport {\n type ConnectUseCaseArgs,\n type DisconnectUseCaseArgs,\n type DiscoveredDevice,\n type GetConnectedDeviceUseCaseArgs,\n type SendApduUseCaseArgs,\n type StartDiscoveringUseCaseArgs,\n} from \"@api/types\";\nimport { configTypes } from \"@internal/config/di/configTypes\";\nimport { type GetDmkVersionUseCase } from \"@internal/config/use-case/GetDmkVersionUseCase\";\nimport { deviceSessionTypes } from \"@internal/device-session/di/deviceSessionTypes\";\nimport { type CloseSessionsUseCase } from \"@internal/device-session/use-case/CloseSessionsUseCase\";\nimport { type GetDeviceSessionStateUseCase } from \"@internal/device-session/use-case/GetDeviceSessionStateUseCase\";\nimport { discoveryTypes } from \"@internal/discovery/di/discoveryTypes\";\nimport { type ConnectUseCase } from \"@internal/discovery/use-case/ConnectUseCase\";\nimport { type DisconnectUseCase } from \"@internal/discovery/use-case/DisconnectUseCase\";\nimport { type GetConnectedDeviceUseCase } from \"@internal/discovery/use-case/GetConnectedDeviceUseCase\";\nimport { type ListConnectedDevicesUseCase } from \"@internal/discovery/use-case/ListConnectedDevicesUseCase\";\nimport { type ListenToConnectedDeviceUseCase } from \"@internal/discovery/use-case/ListenToConnectedDeviceUseCase\";\nimport { type ListenToKnownDevicesUseCase } from \"@internal/discovery/use-case/ListenToKnownDevicesUseCase\";\nimport type { StartDiscoveringUseCase } from \"@internal/discovery/use-case/StartDiscoveringUseCase\";\nimport type { StopDiscoveringUseCase } from \"@internal/discovery/use-case/StopDiscoveringUseCase\";\nimport { sendTypes } from \"@internal/send/di/sendTypes\";\nimport { type SendApduUseCase } from \"@internal/send/use-case/SendApduUseCase\";\nimport { makeContainer, type MakeContainerProps } from \"@root/src/di\";\n\nimport {\n type DeviceActionIntermediateValue,\n type ExecuteDeviceActionReturnType,\n} from \"./device-action/DeviceAction\";\nimport { deviceActionTypes } from \"./device-action/di/deviceActionTypes\";\nimport { type ToggleDeviceSessionRefresherUseCase } from \"./device-session/use-case/ToggleDeviceSessionRefresher\";\nimport { type DmkError } from \"./Error\";\n\n/**\n * The main class to interact with the Device Management Kit.\n *\n * NB: do not instantiate this class directly, instead, use `LedgerDMKBuilder`.\n */\nexport class DeviceManagementKit {\n readonly container: Container;\n /** @internal */\n constructor({\n stub,\n transports,\n loggers,\n config,\n }: Partial<MakeContainerProps> = {}) {\n // NOTE: MakeContainerProps might not be the exact type here\n // For the init of the project this is sufficient, but we might need to\n // update the constructor arguments as we go (we might have more than just the container config)\n this.container = makeContainer({\n stub,\n transports,\n loggers,\n config,\n });\n }\n\n /**\n * Returns a promise resolving to the version of the SDK.\n */\n getVersion(): Promise<string> {\n return this.container\n .get<GetDmkVersionUseCase>(configTypes.GetDmkVersionUseCase)\n .getDmkVersion();\n }\n\n /**\n * Starts discovering devices connected.\n *\n * For the WeHID implementation, this use-case needs to be called as a result\n * of an user interaction (button \"click\" event for ex).\n *\n * @param {StartDiscoveringUseCaseArgs} args - The transport to use for discover, or undefined to discover from all transports.\n * @returns {Observable<DiscoveredDevice>} An observable of discovered devices.\n */\n startDiscovering(\n args: StartDiscoveringUseCaseArgs,\n ): Observable<DiscoveredDevice> {\n return this.container\n .get<StartDiscoveringUseCase>(discoveryTypes.StartDiscoveringUseCase)\n .execute(args);\n }\n\n /**\n * Stops discovering devices connected.\n */\n stopDiscovering() {\n return this.container\n .get<StopDiscoveringUseCase>(discoveryTypes.StopDiscoveringUseCase)\n .execute();\n }\n\n /**\n * Listen to list of known discovered devices (and later BLE).\n *\n * @returns {Observable<DiscoveredDevice[]>} An observable of known discovered devices.\n */\n listenToKnownDevices(): Observable<DiscoveredDevice[]> {\n return this.container\n .get<ListenToKnownDevicesUseCase>(\n discoveryTypes.ListenToKnownDevicesUseCase,\n )\n .execute();\n }\n\n /**\n * Connects to a device previously discovered with `DeviceManagementKit.startDiscovering`.\n * Creates a new device session which:\n * - Represents the connection to the device.\n * - Is terminated upon disconnection of the device.\n * - Exposes the device state through an observable (see `DeviceManagementKit.getDeviceSessionState`)\n * - Should be used for all subsequent communication with the device.\n *\n * @param {ConnectUseCaseArgs} args - The device ID (obtained in discovery) to connect to.\n * @returns The session ID to use for further communication with the device.\n */\n connect(args: ConnectUseCaseArgs): Promise<DeviceSessionId> {\n return this.container\n .get<ConnectUseCase>(discoveryTypes.ConnectUseCase)\n .execute(args);\n }\n\n /**\n * Disconnects to a discovered device.\n *\n * @param {DisconnectUseCaseArgs} args - The session ID to disconnect.\n */\n disconnect(args: DisconnectUseCaseArgs): Promise<void> {\n return this.container\n .get<DisconnectUseCase>(discoveryTypes.DisconnectUseCase)\n .execute(args);\n }\n\n /**\n * Sends an APDU command to a device through a device session.\n *\n * @param {SendApduUseCaseArgs} args - The device session ID and APDU command to send.\n */\n sendApdu(args: SendApduUseCaseArgs): Promise<ApduResponse> {\n return this.container\n .get<SendApduUseCase>(sendTypes.SendApduUseCase)\n .execute(args);\n }\n\n /**\n * Sends a command to a device through a device session.\n *\n * @param {SendCommandUseCaseArgs<Response, Args, ErrorCodes>} args - The device session ID, command, command error codes and command parameters to send.\n * @returns A promise resolving with the response from the command.\n */\n sendCommand<Response, Args, ErrorCodes>(\n args: SendCommandUseCaseArgs<Response, Args, ErrorCodes>,\n ): Promise<CommandResult<Response, ErrorCodes>> {\n return this.container\n .get<SendCommandUseCase>(commandTypes.SendCommandUseCase)\n .execute(args);\n }\n\n executeDeviceAction<\n Output,\n Input,\n Error extends DmkError,\n IntermediateValue extends DeviceActionIntermediateValue,\n >(\n args: ExecuteDeviceActionUseCaseArgs<\n Output,\n Input,\n Error,\n IntermediateValue\n >,\n ): ExecuteDeviceActionReturnType<Output, Error, IntermediateValue> {\n return this.container\n .get<ExecuteDeviceActionUseCase>(\n deviceActionTypes.ExecuteDeviceActionUseCase,\n )\n .execute(args);\n }\n\n /**\n * Gets the connected from its device session ID.\n *\n * @param {GetConnectedDeviceUseCaseArgs} args - The device session ID.\n * @returns {ConnectedDevice} The connected device.\n */\n getConnectedDevice(args: GetConnectedDeviceUseCaseArgs): ConnectedDevice {\n return this.container\n .get<GetConnectedDeviceUseCase>(discoveryTypes.GetConnectedDeviceUseCase)\n .execute(args);\n }\n\n /**\n * Gets the device state of a session.\n *\n * @param {{DeviceSessionId}} args - The device session ID.\n * @returns {Observable<DeviceSessionState>} An observable of the session device state.\n */\n getDeviceSessionState(args: {\n sessionId: DeviceSessionId;\n }): Observable<DeviceSessionState> {\n return this.container\n .get<GetDeviceSessionStateUseCase>(\n deviceSessionTypes.GetDeviceSessionStateUseCase,\n )\n .execute(args);\n }\n\n /**\n * Close the Device Management kit.\n *\n */\n close() {\n return this.container\n .get<CloseSessionsUseCase>(deviceSessionTypes.CloseSessionsUseCase)\n .execute();\n }\n\n /**\n * Lists all connected devices.\n *\n * @returns {ConnectedDevice[]} The list of device sessions.\n */\n listConnectedDevices(): ConnectedDevice[] {\n return this.container\n .get<ListConnectedDevicesUseCase>(\n discoveryTypes.ListConnectedDevicesUseCase,\n )\n .execute();\n }\n\n /**\n * Listen to connected device.\n *\n * @returns {Observable<ConnectedDevice>} An observable of connected device.\n */\n listenToConnectedDevice(): Observable<ConnectedDevice> {\n return this.container\n .get<ListenToConnectedDeviceUseCase>(\n discoveryTypes.ListenToConnectedDeviceUseCase,\n )\n .execute();\n }\n\n /**\n * Toggle the device session refresher.\n *\n * @param {DeviceSessionId} args - The device session ID.\n */\n toggleDeviceSessionRefresher(args: {\n sessionId: DeviceSessionId;\n enabled: boolean;\n }) {\n return this.container\n .get<ToggleDeviceSessionRefresherUseCase>(\n deviceSessionTypes.ToggleDeviceSessionRefresherUseCase,\n )\n .execute(args);\n }\n}\n"],
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,yBAAAE,IAAA,eAAAC,EAAAH,GAGA,IAAAI,EAA6B,wCAsB7BC,EAA4B,2CAE5BC,EAAmC,0DAGnCC,EAA+B,iDAS/BC,EAA0B,uCAE1BC,EAAuD,wBAMvDC,EAAkC,gDAS3B,MAAMR,CAAoB,CACtB,UAET,YAAY,CACV,KAAAS,EACA,WAAAC,EACA,QAAAC,EACA,OAAAC,CACF,EAAiC,CAAC,EAAG,CAInC,KAAK,aAAY,iBAAc,CAC7B,KAAAH,EACA,WAAAC,EACA,QAAAC,EACA,OAAAC,CACF,CAAC,CACH,CAKA,YAA8B,CAC5B,OAAO,KAAK,UACT,IAA0B,cAAY,oBAAoB,EAC1D,cAAc,CACnB,CAWA,iBACEC,EAC8B,CAC9B,OAAO,KAAK,UACT,IAA6B,iBAAe,uBAAuB,EACnE,QAAQA,CAAI,CACjB,CAKA,iBAAkB,CAChB,OAAO,KAAK,UACT,IAA4B,iBAAe,sBAAsB,EACjE,QAAQ,CACb,CAOA,sBAAuD,CACrD,OAAO,KAAK,UACT,IACC,iBAAe,2BACjB,EACC,QAAQ,CACb,CAaA,QAAQA,EAAoD,CAC1D,OAAO,KAAK,UACT,IAAoB,iBAAe,cAAc,EACjD,QAAQA,CAAI,CACjB,CAOA,WAAWA,EAA4C,CACrD,OAAO,KAAK,UACT,IAAuB,iBAAe,iBAAiB,EACvD,QAAQA,CAAI,CACjB,CAOA,SAASA,EAAkD,CACzD,OAAO,KAAK,UACT,IAAqB,YAAU,eAAe,EAC9C,QAAQA,CAAI,CACjB,CAQA,YACEA,EAC8C,CAC9C,OAAO,KAAK,UACT,IAAwB,eAAa,kBAAkB,EACvD,QAAQA,CAAI,CACjB,CAEA,oBAMEA,EAMiE,CACjE,OAAO,KAAK,UACT,IACC,oBAAkB,0BACpB,EACC,QAAQA,CAAI,CACjB,CAQA,mBAAmBA,EAAsD,CACvE,OAAO,KAAK,UACT,IAA+B,iBAAe,yBAAyB,EACvE,QAAQA,CAAI,CACjB,CAQA,sBAAsBA,EAEa,CACjC,OAAO,KAAK,UACT,IACC,qBAAmB,4BACrB,EACC,QAAQA,CAAI,CACjB,CAMA,OAAQ,CACN,OAAO,KAAK,UACT,IAA0B,qBAAmB,oBAAoB,EACjE,QAAQ,CACb,CAOA,sBAA0C,CACxC,OAAO,KAAK,UACT,IACC,iBAAe,2BACjB,EACC,QAAQ,CACb,CAOA,yBAAuD,CACrD,OAAO,KAAK,UACT,IACC,iBAAe,8BACjB,EACC,QAAQ,CACb,CAOA,6BAA6BA,EAG1B,CACD,OAAO,KAAK,UACT,IACC,qBAAmB,mCACrB,EACC,QAAQA,CAAI,CACjB,CACF",
|
|
6
|
+
"names": ["DeviceManagementKit_exports", "__export", "DeviceManagementKit", "__toCommonJS", "import_commandTypes", "import_configTypes", "import_deviceSessionTypes", "import_discoveryTypes", "import_sendTypes", "import_di", "import_deviceActionTypes", "stub", "transports", "loggers", "config", "args"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var D=Object.create;var a=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var S=(t,o,n,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of b(o))!B.call(t,i)&&i!==n&&a(t,i,{get:()=>o[i],enumerable:!(r=C(o,i))||r.enumerable});return t};var U=(t,o,n)=>(n=t!=null?D(x(t)):{},S(o||!t||!t.__esModule?a(n,"default",{value:t,enumerable:!0}):n,t));var m=require("../internal/config/data/LocalConfigDataSource.stub"),p=require("../internal/config/di/configTypes"),f=require("../internal/device-session/di/deviceSessionTypes"),s=require("../internal/discovery/di/discoveryTypes"),u=require("../internal/send/di/sendTypes"),l=U(require("../../package.json")),h=require("../../src/di.stub"),g=require("./command/di/commandTypes"),v=require("./logger-subscriber/service/ConsoleLogger"),c=require("./DeviceManagementKit");jest.mock("./logger-subscriber/service/ConsoleLogger");let e,d;describe("DeviceManagementKit",()=>{describe("clean",()=>{beforeEach(()=>{d=new v.ConsoleLogger,e=new c.DeviceManagementKit({stub:!1,loggers:[d],config:{managerApiUrl:"http://fake.url",mockUrl:"http://fake-mock.url"}})}),it("should create an instance",()=>{expect(e).toBeDefined(),expect(e).toBeInstanceOf(c.DeviceManagementKit)}),it("should return a clean `version`",async()=>{expect(await e.getVersion()).toBe(l.default.version)}),it("should have startDiscovery method",()=>{expect(e.startDiscovering).toBeDefined()}),it("should have stopDiscovery method",()=>{expect(e.stopDiscovering).toBeDefined()}),it("should have connect method",()=>{expect(e.connect).toBeDefined()}),it("should have sendApdu method",()=>{expect(e.sendApdu).toBeDefined()}),it("should have getConnectedDevice method",()=>{expect(e.getConnectedDevice).toBeDefined()}),it("should have sendCommand method",()=>{expect(e.sendCommand).toBeDefined()}),it("should have listConnectedDevices method",()=>{expect(e.listConnectedDevices).toBeDefined()}),it("should have listenToConnectedDevice method",()=>{expect(e.listenToConnectedDevice).toBeDefined()}),it("should have toggleDeviceSessionRefresher method",()=>{expect(e.toggleDeviceSessionRefresher).toBeDefined()})}),describe("stubbed",()=>{beforeEach(()=>{e=new c.DeviceManagementKit({stub:!0,loggers:[],config:{managerApiUrl:"http://fake.url",mockUrl:"http://fake-mock.url"}})}),it("should create a stubbed dmk",()=>{expect(e).toBeDefined(),expect(e).toBeInstanceOf(c.DeviceManagementKit)}),it("should return a stubbed config",()=>{expect(e.container.get(p.configTypes.LocalConfigDataSource)).toBeInstanceOf(m.StubLocalConfigDataSource)}),it("should return a stubbed version",async()=>{expect(await e.getVersion()).toBe("0.0.0-stub.1")}),it.each([[s.discoveryTypes.StartDiscoveringUseCase],[s.discoveryTypes.StopDiscoveringUseCase],[s.discoveryTypes.ConnectUseCase],[u.sendTypes.SendApduUseCase],[g.commandTypes.SendCommandUseCase],[s.discoveryTypes.GetConnectedDeviceUseCase],[s.discoveryTypes.DisconnectUseCase],[f.deviceSessionTypes.GetDeviceSessionStateUseCase],[s.discoveryTypes.ListConnectedDevicesUseCase],[s.discoveryTypes.ListenToConnectedDeviceUseCase]])("should have %p use case",t=>{const o=e.container.get(t);expect(o).toBeInstanceOf(h.StubUseCase),expect(o.execute()).toBe("stub")})})});
|
|
2
|
+
//# sourceMappingURL=DeviceManagementKit.test.js.map
|