@onekeyfe/hd-shared 0.1.53 → 0.1.55
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/dist/HardwareError.d.ts +3 -0
- package/dist/HardwareError.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +6 -0
- package/package.json +2 -2
- package/src/HardwareError.ts +20 -0
package/dist/HardwareError.d.ts
CHANGED
|
@@ -42,6 +42,9 @@ export declare const HardwareErrorCode: {
|
|
|
42
42
|
readonly FirmwareUpdateDownloadFailed: 406;
|
|
43
43
|
readonly CallMethodNeedUpgradeFirmware: 407;
|
|
44
44
|
readonly CallMethodDeprecated: 408;
|
|
45
|
+
readonly FirmwareUpdateLimitOneDevice: 409;
|
|
46
|
+
readonly FirmwareUpdateManuallyEnterBoot: 410;
|
|
47
|
+
readonly FirmwareUpdateAutoEnterBootFailure: 411;
|
|
45
48
|
readonly NetworkError: 500;
|
|
46
49
|
readonly TransportNotConfigured: 600;
|
|
47
50
|
readonly TransportCallInProgress: 601;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HardwareError.d.ts","sourceRoot":"","sources":["../src/HardwareError.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,OAAO,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED,aAAK,OAAO,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAE5C,aAAK,+BAA+B,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,OAAO,iBAAiB,CAAC,GAAG,MAAM;CAAE,CAAC;AAE5F,aAAK,cAAc,GAAG,OAAO,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAOxD,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAS,EAAE,cAAc,CAAkC;IAE3D,OAAO,SAAM;IAEb,MAAM,EAAE,GAAG,CAAM;gBAEL,aAAa,EAAE,cAAc,GAAG,MAAM;CAmBnD;AAED,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"HardwareError.d.ts","sourceRoot":"","sources":["../src/HardwareError.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,OAAO,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED,aAAK,OAAO,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAE5C,aAAK,+BAA+B,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,OAAO,iBAAiB,CAAC,GAAG,MAAM;CAAE,CAAC;AAE5F,aAAK,cAAc,GAAG,OAAO,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAOxD,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAS,EAAE,cAAc,CAAkC;IAE3D,OAAO,SAAM;IAEb,MAAM,EAAE,GAAG,CAAM;gBAEL,aAAa,EAAE,cAAc,GAAG,MAAM;CAmBnD;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkQpB,CAAC;AAEX,eAAO,MAAM,wBAAwB,EAAE,+BAgG7B,CAAC;AAEX,eAAO,MAAM,UAAU,kBACN,cAAc,GAAG,MAAM,yCAE7B,GAAG,kBAMb,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,GAAG,QAY1C,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAAa,MAAM,KAAG,aAOtD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -51,6 +51,9 @@ declare const HardwareErrorCode: {
|
|
|
51
51
|
readonly FirmwareUpdateDownloadFailed: 406;
|
|
52
52
|
readonly CallMethodNeedUpgradeFirmware: 407;
|
|
53
53
|
readonly CallMethodDeprecated: 408;
|
|
54
|
+
readonly FirmwareUpdateLimitOneDevice: 409;
|
|
55
|
+
readonly FirmwareUpdateManuallyEnterBoot: 410;
|
|
56
|
+
readonly FirmwareUpdateAutoEnterBootFailure: 411;
|
|
54
57
|
readonly NetworkError: 500;
|
|
55
58
|
readonly TransportNotConfigured: 600;
|
|
56
59
|
readonly TransportCallInProgress: 601;
|
package/dist/index.js
CHANGED
|
@@ -111,6 +111,9 @@ const HardwareErrorCode = {
|
|
|
111
111
|
FirmwareUpdateDownloadFailed: 406,
|
|
112
112
|
CallMethodNeedUpgradeFirmware: 407,
|
|
113
113
|
CallMethodDeprecated: 408,
|
|
114
|
+
FirmwareUpdateLimitOneDevice: 409,
|
|
115
|
+
FirmwareUpdateManuallyEnterBoot: 410,
|
|
116
|
+
FirmwareUpdateAutoEnterBootFailure: 411,
|
|
114
117
|
NetworkError: 500,
|
|
115
118
|
TransportNotConfigured: 600,
|
|
116
119
|
TransportCallInProgress: 601,
|
|
@@ -171,6 +174,9 @@ const HardwareErrorCodeMessage = {
|
|
|
171
174
|
[HardwareErrorCode.FirmwareUpdateDownloadFailed]: 'Firmware update download failed',
|
|
172
175
|
[HardwareErrorCode.CallMethodNeedUpgradeFirmware]: 'Call method need upgrade firmware',
|
|
173
176
|
[HardwareErrorCode.CallMethodDeprecated]: 'Call method is deprecated',
|
|
177
|
+
[HardwareErrorCode.FirmwareUpdateLimitOneDevice]: 'Only one device can be connected during firmware upgrade',
|
|
178
|
+
[HardwareErrorCode.FirmwareUpdateManuallyEnterBoot]: 'You need to manually enter boot',
|
|
179
|
+
[HardwareErrorCode.FirmwareUpdateAutoEnterBootFailure]: 'Description Failed to automatically enter boot',
|
|
174
180
|
[HardwareErrorCode.NetworkError]: 'Network request error',
|
|
175
181
|
[HardwareErrorCode.TransportNotConfigured]: 'Transport not configured',
|
|
176
182
|
[HardwareErrorCode.TransportCallInProgress]: 'Transport call in progress',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-shared",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.55",
|
|
4
4
|
"description": "Hardware SDK's shared tool library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Hardware-SDK",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"lint": "eslint .",
|
|
26
26
|
"lint:fix": "eslint . --fix"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "79fa201d009fc80a31946cd40f889b37f1ec53b0"
|
|
29
29
|
}
|
package/src/HardwareError.ts
CHANGED
|
@@ -183,6 +183,21 @@ export const HardwareErrorCode = {
|
|
|
183
183
|
*/
|
|
184
184
|
CallMethodDeprecated: 408,
|
|
185
185
|
|
|
186
|
+
/**
|
|
187
|
+
* Only one device can be connected during firmware upgrade
|
|
188
|
+
*/
|
|
189
|
+
FirmwareUpdateLimitOneDevice: 409,
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* You need to manually enter boot
|
|
193
|
+
*/
|
|
194
|
+
FirmwareUpdateManuallyEnterBoot: 410,
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Manual entry fails. You must manually enter the boot
|
|
198
|
+
*/
|
|
199
|
+
FirmwareUpdateAutoEnterBootFailure: 411,
|
|
200
|
+
|
|
186
201
|
/**
|
|
187
202
|
* Netword request error
|
|
188
203
|
*/
|
|
@@ -331,6 +346,11 @@ export const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping = {
|
|
|
331
346
|
[HardwareErrorCode.FirmwareUpdateDownloadFailed]: 'Firmware update download failed',
|
|
332
347
|
[HardwareErrorCode.CallMethodNeedUpgradeFirmware]: 'Call method need upgrade firmware',
|
|
333
348
|
[HardwareErrorCode.CallMethodDeprecated]: 'Call method is deprecated',
|
|
349
|
+
[HardwareErrorCode.FirmwareUpdateLimitOneDevice]:
|
|
350
|
+
'Only one device can be connected during firmware upgrade',
|
|
351
|
+
[HardwareErrorCode.FirmwareUpdateManuallyEnterBoot]: 'You need to manually enter boot',
|
|
352
|
+
[HardwareErrorCode.FirmwareUpdateAutoEnterBootFailure]:
|
|
353
|
+
'Description Failed to automatically enter boot',
|
|
334
354
|
|
|
335
355
|
/**
|
|
336
356
|
* Network Errors
|