@ledgerhq/types-devices
Advanced tools
Comparing version 6.22.3 to 6.22.4-nightly.0
# @ledgerhq/types-devices | ||
## 6.22.4-nightly.0 | ||
### Patch Changes | ||
- [#2012](https://github.com/LedgerHQ/ledger-live/pull/2012) [`f6947ccc8f`](https://github.com/LedgerHQ/ledger-live/commit/f6947ccc8faceef656929e5fdde1fa6f52619efb) Thanks [@juan-cortes](https://github.com/juan-cortes)! - Added types for battery status | ||
* [#2012](https://github.com/LedgerHQ/ledger-live/pull/2012) [`93bd602206`](https://github.com/LedgerHQ/ledger-live/commit/93bd602206137e10e5d5c8aa61d9b5aefef993ce) Thanks [@juan-cortes](https://github.com/juan-cortes)! - Added support for Battery status APDU + CLI command and tests | ||
## 6.22.3 | ||
@@ -4,0 +12,0 @@ |
@@ -34,2 +34,19 @@ /// <reference types="node" /> | ||
*/ | ||
export declare enum ChargingModes { | ||
NONE = 0, | ||
USB = 1, | ||
QI = 2 | ||
} | ||
/** | ||
* Series of flags to represent the health status of the Ledger hardware wallet battery. | ||
*/ | ||
export interface BatteryStatusFlags { | ||
charging: ChargingModes; | ||
issueCharging: boolean; | ||
issueTemperature: boolean; | ||
issueBattery: boolean; | ||
} | ||
/** | ||
* | ||
*/ | ||
export interface BluetoothInfos { | ||
@@ -36,0 +53,0 @@ deviceModel: DeviceModel; |
@@ -12,2 +12,11 @@ /** | ||
})(DeviceModelId || (DeviceModelId = {})); | ||
/** | ||
* | ||
*/ | ||
export var ChargingModes; | ||
(function (ChargingModes) { | ||
ChargingModes[ChargingModes["NONE"] = 0] = "NONE"; | ||
ChargingModes[ChargingModes["USB"] = 1] = "USB"; | ||
ChargingModes[ChargingModes["QI"] = 2] = "QI"; | ||
})(ChargingModes || (ChargingModes = {})); | ||
//# sourceMappingURL=index.js.map |
@@ -34,2 +34,19 @@ /// <reference types="node" /> | ||
*/ | ||
export declare enum ChargingModes { | ||
NONE = 0, | ||
USB = 1, | ||
QI = 2 | ||
} | ||
/** | ||
* Series of flags to represent the health status of the Ledger hardware wallet battery. | ||
*/ | ||
export interface BatteryStatusFlags { | ||
charging: ChargingModes; | ||
issueCharging: boolean; | ||
issueTemperature: boolean; | ||
issueBattery: boolean; | ||
} | ||
/** | ||
* | ||
*/ | ||
export interface BluetoothInfos { | ||
@@ -36,0 +53,0 @@ deviceModel: DeviceModel; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.DeviceModelId = void 0; | ||
exports.ChargingModes = exports.DeviceModelId = void 0; | ||
/** | ||
@@ -15,2 +15,11 @@ * DeviceModelId is a unique identifier to identify the model of a Ledger hardware wallet. | ||
})(DeviceModelId = exports.DeviceModelId || (exports.DeviceModelId = {})); | ||
/** | ||
* | ||
*/ | ||
var ChargingModes; | ||
(function (ChargingModes) { | ||
ChargingModes[ChargingModes["NONE"] = 0] = "NONE"; | ||
ChargingModes[ChargingModes["USB"] = 1] = "USB"; | ||
ChargingModes[ChargingModes["QI"] = 2] = "QI"; | ||
})(ChargingModes = exports.ChargingModes || (exports.ChargingModes = {})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@ledgerhq/types-devices", | ||
"version": "6.22.3", | ||
"version": "6.22.4-nightly.0", | ||
"description": "Ledger types for devices and transport.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -15,2 +15,4 @@ <img src="https://user-images.githubusercontent.com/4631227/191834116-59cf590e-25cc-4956-ae5c-812ea464f324.png" height="100" /> | ||
* [DeviceModel](#devicemodel) | ||
* [ChargingModes](#chargingmodes) | ||
* [BatteryStatusFlags](#batterystatusflags) | ||
* [BluetoothInfos](#bluetoothinfos) | ||
@@ -36,2 +38,8 @@ * [Subscription](#subscription) | ||
### ChargingModes | ||
### BatteryStatusFlags | ||
Series of flags to represent the health status of the Ledger hardware wallet battery. | ||
### BluetoothInfos | ||
@@ -38,0 +46,0 @@ |
@@ -34,2 +34,21 @@ /** | ||
*/ | ||
export enum ChargingModes { | ||
NONE = 0x00, | ||
USB = 0x01, | ||
QI = 0x02, | ||
} | ||
/** | ||
* Series of flags to represent the health status of the Ledger hardware wallet battery. | ||
*/ | ||
export interface BatteryStatusFlags { | ||
charging: ChargingModes; | ||
issueCharging: boolean; | ||
issueTemperature: boolean; | ||
issueBattery: boolean; | ||
} | ||
/** | ||
* | ||
*/ | ||
export interface BluetoothInfos { | ||
@@ -36,0 +55,0 @@ deviceModel: DeviceModel; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27019
429
108
1