@onekeyfe/hd-shared 0.1.56 → 0.1.58
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 +19 -0
package/dist/HardwareError.d.ts
CHANGED
|
@@ -43,6 +43,9 @@ export declare const HardwareErrorCode: {
|
|
|
43
43
|
readonly CallMethodNeedUpgradeFirmware: 407;
|
|
44
44
|
readonly CallMethodDeprecated: 408;
|
|
45
45
|
readonly FirmwareUpdateLimitOneDevice: 409;
|
|
46
|
+
readonly FirmwareUpdateManuallyEnterBoot: 410;
|
|
47
|
+
readonly FirmwareUpdateAutoEnterBootFailure: 411;
|
|
48
|
+
readonly NewFirmwareUnRelease: 412;
|
|
46
49
|
readonly NetworkError: 500;
|
|
47
50
|
readonly TransportNotConfigured: 600;
|
|
48
51
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuQpB,CAAC;AAEX,eAAO,MAAM,wBAAwB,EAAE,+BAiG7B,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
|
@@ -52,6 +52,9 @@ declare const HardwareErrorCode: {
|
|
|
52
52
|
readonly CallMethodNeedUpgradeFirmware: 407;
|
|
53
53
|
readonly CallMethodDeprecated: 408;
|
|
54
54
|
readonly FirmwareUpdateLimitOneDevice: 409;
|
|
55
|
+
readonly FirmwareUpdateManuallyEnterBoot: 410;
|
|
56
|
+
readonly FirmwareUpdateAutoEnterBootFailure: 411;
|
|
57
|
+
readonly NewFirmwareUnRelease: 412;
|
|
55
58
|
readonly NetworkError: 500;
|
|
56
59
|
readonly TransportNotConfigured: 600;
|
|
57
60
|
readonly TransportCallInProgress: 601;
|
package/dist/index.js
CHANGED
|
@@ -112,6 +112,9 @@ const HardwareErrorCode = {
|
|
|
112
112
|
CallMethodNeedUpgradeFirmware: 407,
|
|
113
113
|
CallMethodDeprecated: 408,
|
|
114
114
|
FirmwareUpdateLimitOneDevice: 409,
|
|
115
|
+
FirmwareUpdateManuallyEnterBoot: 410,
|
|
116
|
+
FirmwareUpdateAutoEnterBootFailure: 411,
|
|
117
|
+
NewFirmwareUnRelease: 412,
|
|
115
118
|
NetworkError: 500,
|
|
116
119
|
TransportNotConfigured: 600,
|
|
117
120
|
TransportCallInProgress: 601,
|
|
@@ -173,6 +176,9 @@ const HardwareErrorCodeMessage = {
|
|
|
173
176
|
[HardwareErrorCode.CallMethodNeedUpgradeFirmware]: 'Call method need upgrade firmware',
|
|
174
177
|
[HardwareErrorCode.CallMethodDeprecated]: 'Call method is deprecated',
|
|
175
178
|
[HardwareErrorCode.FirmwareUpdateLimitOneDevice]: 'Only one device can be connected during firmware upgrade',
|
|
179
|
+
[HardwareErrorCode.FirmwareUpdateManuallyEnterBoot]: 'You need to manually enter boot',
|
|
180
|
+
[HardwareErrorCode.FirmwareUpdateAutoEnterBootFailure]: 'Description Failed to automatically enter boot',
|
|
181
|
+
[HardwareErrorCode.NewFirmwareUnRelease]: 'new firmware has not been released yet',
|
|
176
182
|
[HardwareErrorCode.NetworkError]: 'Network request error',
|
|
177
183
|
[HardwareErrorCode.TransportNotConfigured]: 'Transport not configured',
|
|
178
184
|
[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.58",
|
|
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": "bf3eba53bcfdb27466f20a7392970764bcb9237b"
|
|
29
29
|
}
|
package/src/HardwareError.ts
CHANGED
|
@@ -188,6 +188,21 @@ export const HardwareErrorCode = {
|
|
|
188
188
|
*/
|
|
189
189
|
FirmwareUpdateLimitOneDevice: 409,
|
|
190
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
|
+
|
|
201
|
+
/**
|
|
202
|
+
* The new firmware has not been released yet
|
|
203
|
+
*/
|
|
204
|
+
NewFirmwareUnRelease: 412,
|
|
205
|
+
|
|
191
206
|
/**
|
|
192
207
|
* Netword request error
|
|
193
208
|
*/
|
|
@@ -338,6 +353,10 @@ export const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping = {
|
|
|
338
353
|
[HardwareErrorCode.CallMethodDeprecated]: 'Call method is deprecated',
|
|
339
354
|
[HardwareErrorCode.FirmwareUpdateLimitOneDevice]:
|
|
340
355
|
'Only one device can be connected during firmware upgrade',
|
|
356
|
+
[HardwareErrorCode.FirmwareUpdateManuallyEnterBoot]: 'You need to manually enter boot',
|
|
357
|
+
[HardwareErrorCode.FirmwareUpdateAutoEnterBootFailure]:
|
|
358
|
+
'Description Failed to automatically enter boot',
|
|
359
|
+
[HardwareErrorCode.NewFirmwareUnRelease]: 'new firmware has not been released yet',
|
|
341
360
|
|
|
342
361
|
/**
|
|
343
362
|
* Network Errors
|