eufy-security-client 2.4.2 → 2.4.4
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/README.md +12 -0
- package/build/error.d.ts +57 -57
- package/build/error.js +155 -155
- package/build/eufysecurity.d.ts +162 -161
- package/build/eufysecurity.js +2104 -2091
- package/build/eufysecurity.js.map +1 -1
- package/build/http/api.d.ts +90 -90
- package/build/http/api.js +1407 -1407
- package/build/http/api.js.map +1 -1
- package/build/http/cache.d.ts +8 -8
- package/build/http/cache.js +33 -33
- package/build/http/const.d.ts +3 -3
- package/build/http/const.js +8545 -8545
- package/build/http/device.d.ts +360 -360
- package/build/http/device.js +2793 -2793
- package/build/http/device.js.map +1 -1
- package/build/http/error.d.ts +28 -28
- package/build/http/error.js +76 -76
- package/build/http/index.d.ts +10 -10
- package/build/http/index.js +29 -29
- package/build/http/interfaces.d.ts +202 -202
- package/build/http/interfaces.js +2 -2
- package/build/http/models.d.ts +561 -561
- package/build/http/models.js +2 -2
- package/build/http/parameter.d.ts +5 -5
- package/build/http/parameter.js +75 -75
- package/build/http/station.d.ts +292 -292
- package/build/http/station.js +6780 -6780
- package/build/http/station.js.map +1 -1
- package/build/http/types.d.ts +945 -945
- package/build/http/types.js +6070 -6070
- package/build/http/utils.d.ts +37 -37
- package/build/http/utils.js +370 -370
- package/build/index.d.ts +7 -7
- package/build/index.js +25 -25
- package/build/interfaces.d.ts +113 -113
- package/build/interfaces.js +2 -2
- package/build/mqtt/interface.d.ts +6 -6
- package/build/mqtt/interface.js +2 -2
- package/build/mqtt/model.d.ts +24 -24
- package/build/mqtt/model.js +2 -2
- package/build/mqtt/service.d.ts +30 -30
- package/build/mqtt/service.js +168 -168
- package/build/mqtt/service.js.map +1 -1
- package/build/p2p/ble.d.ts +47 -47
- package/build/p2p/ble.js +188 -188
- package/build/p2p/ble.js.map +1 -1
- package/build/p2p/error.d.ts +24 -24
- package/build/p2p/error.js +67 -67
- package/build/p2p/index.d.ts +8 -8
- package/build/p2p/index.js +27 -27
- package/build/p2p/interfaces.d.ts +162 -162
- package/build/p2p/interfaces.js +2 -2
- package/build/p2p/models.d.ts +146 -146
- package/build/p2p/models.js +2 -2
- package/build/p2p/session.d.ts +168 -168
- package/build/p2p/session.js +2087 -2087
- package/build/p2p/session.js.map +1 -1
- package/build/p2p/talkback.d.ts +10 -10
- package/build/p2p/talkback.js +22 -22
- package/build/p2p/types.d.ts +923 -923
- package/build/p2p/types.js +957 -957
- package/build/p2p/utils.d.ts +56 -56
- package/build/p2p/utils.js +653 -653
- package/build/push/client.d.ts +51 -51
- package/build/push/client.js +311 -311
- package/build/push/client.js.map +1 -1
- package/build/push/index.d.ts +5 -5
- package/build/push/index.js +24 -24
- package/build/push/interfaces.d.ts +19 -19
- package/build/push/interfaces.js +2 -2
- package/build/push/models.d.ts +292 -292
- package/build/push/models.js +30 -30
- package/build/push/parser.d.ts +28 -28
- package/build/push/parser.js +215 -215
- package/build/push/parser.js.map +1 -1
- package/build/push/service.d.ts +45 -45
- package/build/push/service.js +643 -643
- package/build/push/service.js.map +1 -1
- package/build/push/types.d.ts +176 -176
- package/build/push/types.js +192 -192
- package/build/push/utils.d.ts +7 -7
- package/build/push/utils.js +102 -102
- package/build/utils.d.ts +16 -13
- package/build/utils.js +207 -191
- package/build/utils.js.map +1 -1
- package/package.json +10 -10
package/build/push/types.js
CHANGED
|
@@ -1,193 +1,193 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationStyle = exports.IndoorPushMessageType = exports.HB3HDDType = exports.HB3PairedDeviceMessageType = exports.HB3PairedDevicePushEvent = exports.SmartSafeEvent = exports.IndoorPushEvent = exports.LockPushEvent = exports.DoorbellPushEvent = exports.ServerPushEvent = exports.CusPushMode = exports.CusPushAlarmType = exports.CusPushEvent = void 0;
|
|
4
|
-
var CusPushEvent;
|
|
5
|
-
(function (CusPushEvent) {
|
|
6
|
-
CusPushEvent[CusPushEvent["SECURITY"] = 1] = "SECURITY";
|
|
7
|
-
CusPushEvent[CusPushEvent["TFCARD"] = 2] = "TFCARD";
|
|
8
|
-
CusPushEvent[CusPushEvent["DOOR_SENSOR"] = 3] = "DOOR_SENSOR";
|
|
9
|
-
CusPushEvent[CusPushEvent["CAM_STATE"] = 4] = "CAM_STATE";
|
|
10
|
-
CusPushEvent[CusPushEvent["GSENSOR"] = 5] = "GSENSOR";
|
|
11
|
-
CusPushEvent[CusPushEvent["BATTERY_LOW"] = 6] = "BATTERY_LOW";
|
|
12
|
-
CusPushEvent[CusPushEvent["BATTERY_HOT"] = 7] = "BATTERY_HOT";
|
|
13
|
-
CusPushEvent[CusPushEvent["LIGHT_STATE"] = 8] = "LIGHT_STATE";
|
|
14
|
-
CusPushEvent[CusPushEvent["MODE_SWITCH"] = 9] = "MODE_SWITCH";
|
|
15
|
-
CusPushEvent[CusPushEvent["ALARM"] = 10] = "ALARM";
|
|
16
|
-
CusPushEvent[CusPushEvent["BATTERY_FULL"] = 11] = "BATTERY_FULL";
|
|
17
|
-
CusPushEvent[CusPushEvent["REPEATER_RSSI_WEAK"] = 12] = "REPEATER_RSSI_WEAK";
|
|
18
|
-
CusPushEvent[CusPushEvent["UPGRADE_STATUS"] = 13] = "UPGRADE_STATUS";
|
|
19
|
-
CusPushEvent[CusPushEvent["MOTION_SENSOR_PIR"] = 14] = "MOTION_SENSOR_PIR";
|
|
20
|
-
CusPushEvent[CusPushEvent["ALARM_DELAY"] = 16] = "ALARM_DELAY";
|
|
21
|
-
CusPushEvent[CusPushEvent["HUB_BATT_POWERED"] = 17] = "HUB_BATT_POWERED";
|
|
22
|
-
CusPushEvent[CusPushEvent["SENSOR_NO_OPEN"] = 18] = "SENSOR_NO_OPEN";
|
|
23
|
-
})(CusPushEvent = exports.CusPushEvent || (exports.CusPushEvent = {}));
|
|
24
|
-
var CusPushAlarmType;
|
|
25
|
-
(function (CusPushAlarmType) {
|
|
26
|
-
CusPushAlarmType[CusPushAlarmType["HUB_STOP"] = 0] = "HUB_STOP";
|
|
27
|
-
CusPushAlarmType[CusPushAlarmType["DEV_STOP"] = 1] = "DEV_STOP";
|
|
28
|
-
CusPushAlarmType[CusPushAlarmType["GSENSOR"] = 2] = "GSENSOR";
|
|
29
|
-
CusPushAlarmType[CusPushAlarmType["PIR"] = 3] = "PIR";
|
|
30
|
-
CusPushAlarmType[CusPushAlarmType["APP"] = 4] = "APP";
|
|
31
|
-
CusPushAlarmType[CusPushAlarmType["HOT"] = 5] = "HOT";
|
|
32
|
-
CusPushAlarmType[CusPushAlarmType["DOOR"] = 6] = "DOOR";
|
|
33
|
-
CusPushAlarmType[CusPushAlarmType["CAMERA"] = 7] = "CAMERA";
|
|
34
|
-
CusPushAlarmType[CusPushAlarmType["MOTION_SENSOR"] = 8] = "MOTION_SENSOR";
|
|
35
|
-
CusPushAlarmType[CusPushAlarmType["CAMERA_GSENSOR"] = 9] = "CAMERA_GSENSOR";
|
|
36
|
-
CusPushAlarmType[CusPushAlarmType["CAMERA_APP"] = 10] = "CAMERA_APP";
|
|
37
|
-
CusPushAlarmType[CusPushAlarmType["CAMERA_LINKAGE"] = 11] = "CAMERA_LINKAGE";
|
|
38
|
-
CusPushAlarmType[CusPushAlarmType["HUB_LINKAGE"] = 12] = "HUB_LINKAGE";
|
|
39
|
-
CusPushAlarmType[CusPushAlarmType["HUB_KEYPAD_PANIC_BUTTON"] = 13] = "HUB_KEYPAD_PANIC_BUTTON";
|
|
40
|
-
CusPushAlarmType[CusPushAlarmType["HUB_KEYPAD_EMERGENCY_CODE"] = 14] = "HUB_KEYPAD_EMERGENCY_CODE";
|
|
41
|
-
CusPushAlarmType[CusPushAlarmType["HUB_STOP_BY_KEYPAD"] = 15] = "HUB_STOP_BY_KEYPAD";
|
|
42
|
-
CusPushAlarmType[CusPushAlarmType["HUB_STOP_BY_APP"] = 16] = "HUB_STOP_BY_APP";
|
|
43
|
-
CusPushAlarmType[CusPushAlarmType["HUB_STOP_BY_HUB"] = 17] = "HUB_STOP_BY_HUB";
|
|
44
|
-
CusPushAlarmType[CusPushAlarmType["HUB_KEYPAD_CUSTOM_NOT_MAP"] = 18] = "HUB_KEYPAD_CUSTOM_NOT_MAP";
|
|
45
|
-
})(CusPushAlarmType = exports.CusPushAlarmType || (exports.CusPushAlarmType = {}));
|
|
46
|
-
var CusPushMode;
|
|
47
|
-
(function (CusPushMode) {
|
|
48
|
-
CusPushMode[CusPushMode["SWITCH_FROM_KEYPAD"] = 1] = "SWITCH_FROM_KEYPAD";
|
|
49
|
-
CusPushMode[CusPushMode["SWITCH_FROM_APP"] = 2] = "SWITCH_FROM_APP";
|
|
50
|
-
CusPushMode[CusPushMode["SWITCH"] = 9] = "SWITCH";
|
|
51
|
-
})(CusPushMode = exports.CusPushMode || (exports.CusPushMode = {}));
|
|
52
|
-
var ServerPushEvent;
|
|
53
|
-
(function (ServerPushEvent) {
|
|
54
|
-
ServerPushEvent[ServerPushEvent["INVITE_DEVICE"] = 10300] = "INVITE_DEVICE";
|
|
55
|
-
ServerPushEvent[ServerPushEvent["REMOVE_DEVICE"] = 10200] = "REMOVE_DEVICE";
|
|
56
|
-
ServerPushEvent[ServerPushEvent["REMOVE_HOMEBASE"] = 10100] = "REMOVE_HOMEBASE";
|
|
57
|
-
ServerPushEvent[ServerPushEvent["VERIFICATION"] = 10500] = "VERIFICATION";
|
|
58
|
-
ServerPushEvent[ServerPushEvent["WEB_ACTION"] = 10800] = "WEB_ACTION";
|
|
59
|
-
ServerPushEvent[ServerPushEvent["ALARM_NOTIFY"] = 10900] = "ALARM_NOTIFY";
|
|
60
|
-
ServerPushEvent[ServerPushEvent["ALARM_GUEST_NOTIFY"] = 11000] = "ALARM_GUEST_NOTIFY";
|
|
61
|
-
ServerPushEvent[ServerPushEvent["HOUSE_ADDED"] = 11400] = "HOUSE_ADDED";
|
|
62
|
-
ServerPushEvent[ServerPushEvent["HOUSE_INVITE"] = 11300] = "HOUSE_INVITE";
|
|
63
|
-
ServerPushEvent[ServerPushEvent["HOUSE_REMOVE"] = 11200] = "HOUSE_REMOVE";
|
|
64
|
-
})(ServerPushEvent = exports.ServerPushEvent || (exports.ServerPushEvent = {}));
|
|
65
|
-
var DoorbellPushEvent;
|
|
66
|
-
(function (DoorbellPushEvent) {
|
|
67
|
-
DoorbellPushEvent[DoorbellPushEvent["BACKGROUND_ACTIVE"] = 3100] = "BACKGROUND_ACTIVE";
|
|
68
|
-
DoorbellPushEvent[DoorbellPushEvent["MOTION_DETECTION"] = 3101] = "MOTION_DETECTION";
|
|
69
|
-
DoorbellPushEvent[DoorbellPushEvent["FACE_DETECTION"] = 3102] = "FACE_DETECTION";
|
|
70
|
-
DoorbellPushEvent[DoorbellPushEvent["PRESS_DOORBELL"] = 3103] = "PRESS_DOORBELL";
|
|
71
|
-
DoorbellPushEvent[DoorbellPushEvent["OFFLINE"] = 3106] = "OFFLINE";
|
|
72
|
-
DoorbellPushEvent[DoorbellPushEvent["ONLINE"] = 3107] = "ONLINE";
|
|
73
|
-
DoorbellPushEvent[DoorbellPushEvent["PACKAGE_DELIVERED"] = 3301] = "PACKAGE_DELIVERED";
|
|
74
|
-
DoorbellPushEvent[DoorbellPushEvent["PACKAGE_TAKEN"] = 3302] = "PACKAGE_TAKEN";
|
|
75
|
-
DoorbellPushEvent[DoorbellPushEvent["FAMILY_DETECTION"] = 3303] = "FAMILY_DETECTION";
|
|
76
|
-
DoorbellPushEvent[DoorbellPushEvent["PACKAGE_STRANDED"] = 3304] = "PACKAGE_STRANDED";
|
|
77
|
-
DoorbellPushEvent[DoorbellPushEvent["SOMEONE_LOITERING"] = 3305] = "SOMEONE_LOITERING";
|
|
78
|
-
DoorbellPushEvent[DoorbellPushEvent["RADAR_MOTION_DETECTION"] = 3306] = "RADAR_MOTION_DETECTION";
|
|
79
|
-
})(DoorbellPushEvent = exports.DoorbellPushEvent || (exports.DoorbellPushEvent = {}));
|
|
80
|
-
var LockPushEvent;
|
|
81
|
-
(function (LockPushEvent) {
|
|
82
|
-
LockPushEvent[LockPushEvent["APP_LOCK"] = 264] = "APP_LOCK";
|
|
83
|
-
LockPushEvent[LockPushEvent["APP_UNLOCK"] = 261] = "APP_UNLOCK";
|
|
84
|
-
LockPushEvent[LockPushEvent["AUTO_LOCK"] = 265] = "AUTO_LOCK";
|
|
85
|
-
LockPushEvent[LockPushEvent["AUTO_UNLOCK"] = 258] = "AUTO_UNLOCK";
|
|
86
|
-
LockPushEvent[LockPushEvent["FINGERPRINT_UNLOCK"] = 260] = "FINGERPRINT_UNLOCK";
|
|
87
|
-
LockPushEvent[LockPushEvent["FINGER_LOCK"] = 267] = "FINGER_LOCK";
|
|
88
|
-
LockPushEvent[LockPushEvent["KEYPAD_LOCK"] = 263] = "KEYPAD_LOCK";
|
|
89
|
-
LockPushEvent[LockPushEvent["LOCK_MECHANICAL_ANOMALY"] = 519] = "LOCK_MECHANICAL_ANOMALY";
|
|
90
|
-
LockPushEvent[LockPushEvent["LOCK_OFFLINE"] = 516] = "LOCK_OFFLINE";
|
|
91
|
-
LockPushEvent[LockPushEvent["LOW_POWER"] = 513] = "LOW_POWER";
|
|
92
|
-
LockPushEvent[LockPushEvent["MANUAL_LOCK"] = 262] = "MANUAL_LOCK";
|
|
93
|
-
LockPushEvent[LockPushEvent["MANUAL_UNLOCK"] = 257] = "MANUAL_UNLOCK";
|
|
94
|
-
LockPushEvent[LockPushEvent["MECHANICAL_ANOMALY"] = 517] = "MECHANICAL_ANOMALY";
|
|
95
|
-
LockPushEvent[LockPushEvent["MULTIPLE_ERRORS"] = 515] = "MULTIPLE_ERRORS";
|
|
96
|
-
LockPushEvent[LockPushEvent["PW_LOCK"] = 266] = "PW_LOCK";
|
|
97
|
-
LockPushEvent[LockPushEvent["PW_UNLOCK"] = 259] = "PW_UNLOCK";
|
|
98
|
-
LockPushEvent[LockPushEvent["TEMPORARY_PW_LOCK"] = 268] = "TEMPORARY_PW_LOCK";
|
|
99
|
-
LockPushEvent[LockPushEvent["TEMPORARY_PW_UNLOCK"] = 269] = "TEMPORARY_PW_UNLOCK";
|
|
100
|
-
LockPushEvent[LockPushEvent["VERY_LOW_POWER"] = 514] = "VERY_LOW_POWER";
|
|
101
|
-
LockPushEvent[LockPushEvent["VIOLENT_DESTRUCTION"] = 518] = "VIOLENT_DESTRUCTION";
|
|
102
|
-
LockPushEvent[LockPushEvent["LOCK_ONLINE"] = 771] = "LOCK_ONLINE";
|
|
103
|
-
LockPushEvent[LockPushEvent["OTA_STATUS"] = 770] = "OTA_STATUS";
|
|
104
|
-
LockPushEvent[LockPushEvent["STATUS_CHANGE"] = 769] = "STATUS_CHANGE";
|
|
105
|
-
})(LockPushEvent = exports.LockPushEvent || (exports.LockPushEvent = {}));
|
|
106
|
-
var IndoorPushEvent;
|
|
107
|
-
(function (IndoorPushEvent) {
|
|
108
|
-
IndoorPushEvent[IndoorPushEvent["MOTION_DETECTION"] = 3101] = "MOTION_DETECTION";
|
|
109
|
-
IndoorPushEvent[IndoorPushEvent["FACE_DETECTION"] = 3102] = "FACE_DETECTION";
|
|
110
|
-
IndoorPushEvent[IndoorPushEvent["CRYING_DETECTION"] = 3104] = "CRYING_DETECTION";
|
|
111
|
-
IndoorPushEvent[IndoorPushEvent["SOUND_DETECTION"] = 3105] = "SOUND_DETECTION";
|
|
112
|
-
IndoorPushEvent[IndoorPushEvent["PET_DETECTION"] = 3106] = "PET_DETECTION";
|
|
113
|
-
IndoorPushEvent[IndoorPushEvent["VEHICLE_DETECTION"] = 3107] = "VEHICLE_DETECTION";
|
|
114
|
-
})(IndoorPushEvent = exports.IndoorPushEvent || (exports.IndoorPushEvent = {}));
|
|
115
|
-
var SmartSafeEvent;
|
|
116
|
-
(function (SmartSafeEvent) {
|
|
117
|
-
SmartSafeEvent[SmartSafeEvent["ALARM_911"] = 1946161152] = "ALARM_911";
|
|
118
|
-
SmartSafeEvent[SmartSafeEvent["BASE"] = 1946161152] = "BASE";
|
|
119
|
-
SmartSafeEvent[SmartSafeEvent["LOCK_STATUS"] = 1946161153] = "LOCK_STATUS";
|
|
120
|
-
SmartSafeEvent[SmartSafeEvent["SHAKE_ALARM"] = 1946161154] = "SHAKE_ALARM";
|
|
121
|
-
SmartSafeEvent[SmartSafeEvent["BATTERY_STATUS"] = 1946161155] = "BATTERY_STATUS";
|
|
122
|
-
SmartSafeEvent[SmartSafeEvent["LONG_TIME_NOT_CLOSE"] = 1946161156] = "LONG_TIME_NOT_CLOSE";
|
|
123
|
-
SmartSafeEvent[SmartSafeEvent["FORCE_FIGURE"] = 1946161157] = "FORCE_FIGURE";
|
|
124
|
-
SmartSafeEvent[SmartSafeEvent["LOW_POWER"] = 1946161158] = "LOW_POWER";
|
|
125
|
-
SmartSafeEvent[SmartSafeEvent["INPUT_ERR_MAX"] = 1946161159] = "INPUT_ERR_MAX";
|
|
126
|
-
SmartSafeEvent[SmartSafeEvent["SHUTDOWN"] = 1946161160] = "SHUTDOWN";
|
|
127
|
-
})(SmartSafeEvent = exports.SmartSafeEvent || (exports.SmartSafeEvent = {}));
|
|
128
|
-
var HB3PairedDevicePushEvent;
|
|
129
|
-
(function (HB3PairedDevicePushEvent) {
|
|
130
|
-
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["MOTION_DETECTION"] = 3101] = "MOTION_DETECTION";
|
|
131
|
-
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["FACE_DETECTION"] = 3102] = "FACE_DETECTION";
|
|
132
|
-
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["CRYING_DETECTION"] = 3104] = "CRYING_DETECTION";
|
|
133
|
-
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["SOUND_DETECTION"] = 3105] = "SOUND_DETECTION";
|
|
134
|
-
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["PET_DETECTION"] = 3106] = "PET_DETECTION";
|
|
135
|
-
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["VEHICLE_DETECTION"] = 3107] = "VEHICLE_DETECTION";
|
|
136
|
-
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["DOG_DETECTION"] = 3108] = "DOG_DETECTION";
|
|
137
|
-
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["DOG_LICK_DETECTION"] = 3109] = "DOG_LICK_DETECTION";
|
|
138
|
-
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["DOG_POOP_DETECTION"] = 3110] = "DOG_POOP_DETECTION";
|
|
139
|
-
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["IDENTITY_PERSON_DETECTION"] = 3111] = "IDENTITY_PERSON_DETECTION";
|
|
140
|
-
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["STRANGER_PERSON_DETECTION"] = 3112] = "STRANGER_PERSON_DETECTION";
|
|
141
|
-
})(HB3PairedDevicePushEvent = exports.HB3PairedDevicePushEvent || (exports.HB3PairedDevicePushEvent = {}));
|
|
142
|
-
var HB3PairedDeviceMessageType;
|
|
143
|
-
(function (HB3PairedDeviceMessageType) {
|
|
144
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["SECURITY_EVT"] = 1] = "SECURITY_EVT";
|
|
145
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["TFCARD_EVT"] = 2] = "TFCARD_EVT";
|
|
146
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["DOOR_SENSOR_EVT"] = 3] = "DOOR_SENSOR_EVT";
|
|
147
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["CAM_STATE_EVT"] = 4] = "CAM_STATE_EVT";
|
|
148
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["GSENSOR_EVT"] = 5] = "GSENSOR_EVT";
|
|
149
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["BATTERY_LOW_EVT"] = 6] = "BATTERY_LOW_EVT";
|
|
150
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["BATTERY_HOT_EVT"] = 7] = "BATTERY_HOT_EVT";
|
|
151
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["LIGHT_STATE_EVT"] = 8] = "LIGHT_STATE_EVT";
|
|
152
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["ARMING_EVT"] = 9] = "ARMING_EVT";
|
|
153
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["ALARM_EVT"] = 10] = "ALARM_EVT";
|
|
154
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["BATTERY_FULL_EVT"] = 11] = "BATTERY_FULL_EVT";
|
|
155
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["REPEATER_RSSI_WEAK_EVT"] = 12] = "REPEATER_RSSI_WEAK_EVT";
|
|
156
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["UPGRADE_STATUS"] = 13] = "UPGRADE_STATUS";
|
|
157
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["MOTION_SENSOR_EVT"] = 14] = "MOTION_SENSOR_EVT";
|
|
158
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["BAT_DOORBELL_EVT"] = 15] = "BAT_DOORBELL_EVT";
|
|
159
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["ALARM_DELAY_EVT"] = 16] = "ALARM_DELAY_EVT";
|
|
160
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["HUB_BATT_POWERED_EVT"] = 17] = "HUB_BATT_POWERED_EVT";
|
|
161
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["INDOOR_EVT"] = 18] = "INDOOR_EVT";
|
|
162
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["SMARTLOCK_EVT"] = 19] = "SMARTLOCK_EVT";
|
|
163
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["LOCK_EVT"] = 20] = "LOCK_EVT";
|
|
164
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["BBM_SOCK_EVT"] = 21] = "BBM_SOCK_EVT";
|
|
165
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["DOOR_STATUS_EVT"] = 22] = "DOOR_STATUS_EVT";
|
|
166
|
-
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["HHD_EVT"] = 23] = "HHD_EVT";
|
|
167
|
-
})(HB3PairedDeviceMessageType = exports.HB3PairedDeviceMessageType || (exports.HB3PairedDeviceMessageType = {}));
|
|
168
|
-
var HB3HDDType;
|
|
169
|
-
(function (HB3HDDType) {
|
|
170
|
-
HB3HDDType[HB3HDDType["NODISK"] = 0] = "NODISK";
|
|
171
|
-
HB3HDDType[HB3HDDType["READY"] = 1] = "READY";
|
|
172
|
-
HB3HDDType[HB3HDDType["PROCESSING"] = 2] = "PROCESSING";
|
|
173
|
-
HB3HDDType[HB3HDDType["NO_PARTED"] = 3] = "NO_PARTED";
|
|
174
|
-
HB3HDDType[HB3HDDType["NO_ANKER_DISK"] = 4] = "NO_ANKER_DISK";
|
|
175
|
-
HB3HDDType[HB3HDDType["NOT_FORMAT"] = 5] = "NOT_FORMAT";
|
|
176
|
-
HB3HDDType[HB3HDDType["OTHER_USER_DISK"] = 6] = "OTHER_USER_DISK";
|
|
177
|
-
HB3HDDType[HB3HDDType["BAD"] = 7] = "BAD";
|
|
178
|
-
HB3HDDType[HB3HDDType["WAIT_NETWOR"] = 8] = "WAIT_NETWOR";
|
|
179
|
-
HB3HDDType[HB3HDDType["PARTED_DONE"] = 9] = "PARTED_DONE";
|
|
180
|
-
HB3HDDType[HB3HDDType["FULL"] = 32] = "FULL";
|
|
181
|
-
})(HB3HDDType = exports.HB3HDDType || (exports.HB3HDDType = {}));
|
|
182
|
-
var IndoorPushMessageType;
|
|
183
|
-
(function (IndoorPushMessageType) {
|
|
184
|
-
IndoorPushMessageType[IndoorPushMessageType["INDOOR"] = 18] = "INDOOR";
|
|
185
|
-
IndoorPushMessageType[IndoorPushMessageType["TFCARD"] = 2] = "TFCARD";
|
|
186
|
-
})(IndoorPushMessageType = exports.IndoorPushMessageType || (exports.IndoorPushMessageType = {}));
|
|
187
|
-
var NotificationStyle;
|
|
188
|
-
(function (NotificationStyle) {
|
|
189
|
-
NotificationStyle[NotificationStyle["TEXT"] = 1] = "TEXT";
|
|
190
|
-
NotificationStyle[NotificationStyle["THUMB"] = 2] = "THUMB";
|
|
191
|
-
NotificationStyle[NotificationStyle["ALL"] = 3] = "ALL";
|
|
192
|
-
})(NotificationStyle = exports.NotificationStyle || (exports.NotificationStyle = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationStyle = exports.IndoorPushMessageType = exports.HB3HDDType = exports.HB3PairedDeviceMessageType = exports.HB3PairedDevicePushEvent = exports.SmartSafeEvent = exports.IndoorPushEvent = exports.LockPushEvent = exports.DoorbellPushEvent = exports.ServerPushEvent = exports.CusPushMode = exports.CusPushAlarmType = exports.CusPushEvent = void 0;
|
|
4
|
+
var CusPushEvent;
|
|
5
|
+
(function (CusPushEvent) {
|
|
6
|
+
CusPushEvent[CusPushEvent["SECURITY"] = 1] = "SECURITY";
|
|
7
|
+
CusPushEvent[CusPushEvent["TFCARD"] = 2] = "TFCARD";
|
|
8
|
+
CusPushEvent[CusPushEvent["DOOR_SENSOR"] = 3] = "DOOR_SENSOR";
|
|
9
|
+
CusPushEvent[CusPushEvent["CAM_STATE"] = 4] = "CAM_STATE";
|
|
10
|
+
CusPushEvent[CusPushEvent["GSENSOR"] = 5] = "GSENSOR";
|
|
11
|
+
CusPushEvent[CusPushEvent["BATTERY_LOW"] = 6] = "BATTERY_LOW";
|
|
12
|
+
CusPushEvent[CusPushEvent["BATTERY_HOT"] = 7] = "BATTERY_HOT";
|
|
13
|
+
CusPushEvent[CusPushEvent["LIGHT_STATE"] = 8] = "LIGHT_STATE";
|
|
14
|
+
CusPushEvent[CusPushEvent["MODE_SWITCH"] = 9] = "MODE_SWITCH";
|
|
15
|
+
CusPushEvent[CusPushEvent["ALARM"] = 10] = "ALARM";
|
|
16
|
+
CusPushEvent[CusPushEvent["BATTERY_FULL"] = 11] = "BATTERY_FULL";
|
|
17
|
+
CusPushEvent[CusPushEvent["REPEATER_RSSI_WEAK"] = 12] = "REPEATER_RSSI_WEAK";
|
|
18
|
+
CusPushEvent[CusPushEvent["UPGRADE_STATUS"] = 13] = "UPGRADE_STATUS";
|
|
19
|
+
CusPushEvent[CusPushEvent["MOTION_SENSOR_PIR"] = 14] = "MOTION_SENSOR_PIR";
|
|
20
|
+
CusPushEvent[CusPushEvent["ALARM_DELAY"] = 16] = "ALARM_DELAY";
|
|
21
|
+
CusPushEvent[CusPushEvent["HUB_BATT_POWERED"] = 17] = "HUB_BATT_POWERED";
|
|
22
|
+
CusPushEvent[CusPushEvent["SENSOR_NO_OPEN"] = 18] = "SENSOR_NO_OPEN";
|
|
23
|
+
})(CusPushEvent = exports.CusPushEvent || (exports.CusPushEvent = {}));
|
|
24
|
+
var CusPushAlarmType;
|
|
25
|
+
(function (CusPushAlarmType) {
|
|
26
|
+
CusPushAlarmType[CusPushAlarmType["HUB_STOP"] = 0] = "HUB_STOP";
|
|
27
|
+
CusPushAlarmType[CusPushAlarmType["DEV_STOP"] = 1] = "DEV_STOP";
|
|
28
|
+
CusPushAlarmType[CusPushAlarmType["GSENSOR"] = 2] = "GSENSOR";
|
|
29
|
+
CusPushAlarmType[CusPushAlarmType["PIR"] = 3] = "PIR";
|
|
30
|
+
CusPushAlarmType[CusPushAlarmType["APP"] = 4] = "APP";
|
|
31
|
+
CusPushAlarmType[CusPushAlarmType["HOT"] = 5] = "HOT";
|
|
32
|
+
CusPushAlarmType[CusPushAlarmType["DOOR"] = 6] = "DOOR";
|
|
33
|
+
CusPushAlarmType[CusPushAlarmType["CAMERA"] = 7] = "CAMERA";
|
|
34
|
+
CusPushAlarmType[CusPushAlarmType["MOTION_SENSOR"] = 8] = "MOTION_SENSOR";
|
|
35
|
+
CusPushAlarmType[CusPushAlarmType["CAMERA_GSENSOR"] = 9] = "CAMERA_GSENSOR";
|
|
36
|
+
CusPushAlarmType[CusPushAlarmType["CAMERA_APP"] = 10] = "CAMERA_APP";
|
|
37
|
+
CusPushAlarmType[CusPushAlarmType["CAMERA_LINKAGE"] = 11] = "CAMERA_LINKAGE";
|
|
38
|
+
CusPushAlarmType[CusPushAlarmType["HUB_LINKAGE"] = 12] = "HUB_LINKAGE";
|
|
39
|
+
CusPushAlarmType[CusPushAlarmType["HUB_KEYPAD_PANIC_BUTTON"] = 13] = "HUB_KEYPAD_PANIC_BUTTON";
|
|
40
|
+
CusPushAlarmType[CusPushAlarmType["HUB_KEYPAD_EMERGENCY_CODE"] = 14] = "HUB_KEYPAD_EMERGENCY_CODE";
|
|
41
|
+
CusPushAlarmType[CusPushAlarmType["HUB_STOP_BY_KEYPAD"] = 15] = "HUB_STOP_BY_KEYPAD";
|
|
42
|
+
CusPushAlarmType[CusPushAlarmType["HUB_STOP_BY_APP"] = 16] = "HUB_STOP_BY_APP";
|
|
43
|
+
CusPushAlarmType[CusPushAlarmType["HUB_STOP_BY_HUB"] = 17] = "HUB_STOP_BY_HUB";
|
|
44
|
+
CusPushAlarmType[CusPushAlarmType["HUB_KEYPAD_CUSTOM_NOT_MAP"] = 18] = "HUB_KEYPAD_CUSTOM_NOT_MAP";
|
|
45
|
+
})(CusPushAlarmType = exports.CusPushAlarmType || (exports.CusPushAlarmType = {}));
|
|
46
|
+
var CusPushMode;
|
|
47
|
+
(function (CusPushMode) {
|
|
48
|
+
CusPushMode[CusPushMode["SWITCH_FROM_KEYPAD"] = 1] = "SWITCH_FROM_KEYPAD";
|
|
49
|
+
CusPushMode[CusPushMode["SWITCH_FROM_APP"] = 2] = "SWITCH_FROM_APP";
|
|
50
|
+
CusPushMode[CusPushMode["SWITCH"] = 9] = "SWITCH";
|
|
51
|
+
})(CusPushMode = exports.CusPushMode || (exports.CusPushMode = {}));
|
|
52
|
+
var ServerPushEvent;
|
|
53
|
+
(function (ServerPushEvent) {
|
|
54
|
+
ServerPushEvent[ServerPushEvent["INVITE_DEVICE"] = 10300] = "INVITE_DEVICE";
|
|
55
|
+
ServerPushEvent[ServerPushEvent["REMOVE_DEVICE"] = 10200] = "REMOVE_DEVICE";
|
|
56
|
+
ServerPushEvent[ServerPushEvent["REMOVE_HOMEBASE"] = 10100] = "REMOVE_HOMEBASE";
|
|
57
|
+
ServerPushEvent[ServerPushEvent["VERIFICATION"] = 10500] = "VERIFICATION";
|
|
58
|
+
ServerPushEvent[ServerPushEvent["WEB_ACTION"] = 10800] = "WEB_ACTION";
|
|
59
|
+
ServerPushEvent[ServerPushEvent["ALARM_NOTIFY"] = 10900] = "ALARM_NOTIFY";
|
|
60
|
+
ServerPushEvent[ServerPushEvent["ALARM_GUEST_NOTIFY"] = 11000] = "ALARM_GUEST_NOTIFY";
|
|
61
|
+
ServerPushEvent[ServerPushEvent["HOUSE_ADDED"] = 11400] = "HOUSE_ADDED";
|
|
62
|
+
ServerPushEvent[ServerPushEvent["HOUSE_INVITE"] = 11300] = "HOUSE_INVITE";
|
|
63
|
+
ServerPushEvent[ServerPushEvent["HOUSE_REMOVE"] = 11200] = "HOUSE_REMOVE";
|
|
64
|
+
})(ServerPushEvent = exports.ServerPushEvent || (exports.ServerPushEvent = {}));
|
|
65
|
+
var DoorbellPushEvent;
|
|
66
|
+
(function (DoorbellPushEvent) {
|
|
67
|
+
DoorbellPushEvent[DoorbellPushEvent["BACKGROUND_ACTIVE"] = 3100] = "BACKGROUND_ACTIVE";
|
|
68
|
+
DoorbellPushEvent[DoorbellPushEvent["MOTION_DETECTION"] = 3101] = "MOTION_DETECTION";
|
|
69
|
+
DoorbellPushEvent[DoorbellPushEvent["FACE_DETECTION"] = 3102] = "FACE_DETECTION";
|
|
70
|
+
DoorbellPushEvent[DoorbellPushEvent["PRESS_DOORBELL"] = 3103] = "PRESS_DOORBELL";
|
|
71
|
+
DoorbellPushEvent[DoorbellPushEvent["OFFLINE"] = 3106] = "OFFLINE";
|
|
72
|
+
DoorbellPushEvent[DoorbellPushEvent["ONLINE"] = 3107] = "ONLINE";
|
|
73
|
+
DoorbellPushEvent[DoorbellPushEvent["PACKAGE_DELIVERED"] = 3301] = "PACKAGE_DELIVERED";
|
|
74
|
+
DoorbellPushEvent[DoorbellPushEvent["PACKAGE_TAKEN"] = 3302] = "PACKAGE_TAKEN";
|
|
75
|
+
DoorbellPushEvent[DoorbellPushEvent["FAMILY_DETECTION"] = 3303] = "FAMILY_DETECTION";
|
|
76
|
+
DoorbellPushEvent[DoorbellPushEvent["PACKAGE_STRANDED"] = 3304] = "PACKAGE_STRANDED";
|
|
77
|
+
DoorbellPushEvent[DoorbellPushEvent["SOMEONE_LOITERING"] = 3305] = "SOMEONE_LOITERING";
|
|
78
|
+
DoorbellPushEvent[DoorbellPushEvent["RADAR_MOTION_DETECTION"] = 3306] = "RADAR_MOTION_DETECTION";
|
|
79
|
+
})(DoorbellPushEvent = exports.DoorbellPushEvent || (exports.DoorbellPushEvent = {}));
|
|
80
|
+
var LockPushEvent;
|
|
81
|
+
(function (LockPushEvent) {
|
|
82
|
+
LockPushEvent[LockPushEvent["APP_LOCK"] = 264] = "APP_LOCK";
|
|
83
|
+
LockPushEvent[LockPushEvent["APP_UNLOCK"] = 261] = "APP_UNLOCK";
|
|
84
|
+
LockPushEvent[LockPushEvent["AUTO_LOCK"] = 265] = "AUTO_LOCK";
|
|
85
|
+
LockPushEvent[LockPushEvent["AUTO_UNLOCK"] = 258] = "AUTO_UNLOCK";
|
|
86
|
+
LockPushEvent[LockPushEvent["FINGERPRINT_UNLOCK"] = 260] = "FINGERPRINT_UNLOCK";
|
|
87
|
+
LockPushEvent[LockPushEvent["FINGER_LOCK"] = 267] = "FINGER_LOCK";
|
|
88
|
+
LockPushEvent[LockPushEvent["KEYPAD_LOCK"] = 263] = "KEYPAD_LOCK";
|
|
89
|
+
LockPushEvent[LockPushEvent["LOCK_MECHANICAL_ANOMALY"] = 519] = "LOCK_MECHANICAL_ANOMALY";
|
|
90
|
+
LockPushEvent[LockPushEvent["LOCK_OFFLINE"] = 516] = "LOCK_OFFLINE";
|
|
91
|
+
LockPushEvent[LockPushEvent["LOW_POWER"] = 513] = "LOW_POWER";
|
|
92
|
+
LockPushEvent[LockPushEvent["MANUAL_LOCK"] = 262] = "MANUAL_LOCK";
|
|
93
|
+
LockPushEvent[LockPushEvent["MANUAL_UNLOCK"] = 257] = "MANUAL_UNLOCK";
|
|
94
|
+
LockPushEvent[LockPushEvent["MECHANICAL_ANOMALY"] = 517] = "MECHANICAL_ANOMALY";
|
|
95
|
+
LockPushEvent[LockPushEvent["MULTIPLE_ERRORS"] = 515] = "MULTIPLE_ERRORS";
|
|
96
|
+
LockPushEvent[LockPushEvent["PW_LOCK"] = 266] = "PW_LOCK";
|
|
97
|
+
LockPushEvent[LockPushEvent["PW_UNLOCK"] = 259] = "PW_UNLOCK";
|
|
98
|
+
LockPushEvent[LockPushEvent["TEMPORARY_PW_LOCK"] = 268] = "TEMPORARY_PW_LOCK";
|
|
99
|
+
LockPushEvent[LockPushEvent["TEMPORARY_PW_UNLOCK"] = 269] = "TEMPORARY_PW_UNLOCK";
|
|
100
|
+
LockPushEvent[LockPushEvent["VERY_LOW_POWER"] = 514] = "VERY_LOW_POWER";
|
|
101
|
+
LockPushEvent[LockPushEvent["VIOLENT_DESTRUCTION"] = 518] = "VIOLENT_DESTRUCTION";
|
|
102
|
+
LockPushEvent[LockPushEvent["LOCK_ONLINE"] = 771] = "LOCK_ONLINE";
|
|
103
|
+
LockPushEvent[LockPushEvent["OTA_STATUS"] = 770] = "OTA_STATUS";
|
|
104
|
+
LockPushEvent[LockPushEvent["STATUS_CHANGE"] = 769] = "STATUS_CHANGE";
|
|
105
|
+
})(LockPushEvent = exports.LockPushEvent || (exports.LockPushEvent = {}));
|
|
106
|
+
var IndoorPushEvent;
|
|
107
|
+
(function (IndoorPushEvent) {
|
|
108
|
+
IndoorPushEvent[IndoorPushEvent["MOTION_DETECTION"] = 3101] = "MOTION_DETECTION";
|
|
109
|
+
IndoorPushEvent[IndoorPushEvent["FACE_DETECTION"] = 3102] = "FACE_DETECTION";
|
|
110
|
+
IndoorPushEvent[IndoorPushEvent["CRYING_DETECTION"] = 3104] = "CRYING_DETECTION";
|
|
111
|
+
IndoorPushEvent[IndoorPushEvent["SOUND_DETECTION"] = 3105] = "SOUND_DETECTION";
|
|
112
|
+
IndoorPushEvent[IndoorPushEvent["PET_DETECTION"] = 3106] = "PET_DETECTION";
|
|
113
|
+
IndoorPushEvent[IndoorPushEvent["VEHICLE_DETECTION"] = 3107] = "VEHICLE_DETECTION";
|
|
114
|
+
})(IndoorPushEvent = exports.IndoorPushEvent || (exports.IndoorPushEvent = {}));
|
|
115
|
+
var SmartSafeEvent;
|
|
116
|
+
(function (SmartSafeEvent) {
|
|
117
|
+
SmartSafeEvent[SmartSafeEvent["ALARM_911"] = 1946161152] = "ALARM_911";
|
|
118
|
+
SmartSafeEvent[SmartSafeEvent["BASE"] = 1946161152] = "BASE";
|
|
119
|
+
SmartSafeEvent[SmartSafeEvent["LOCK_STATUS"] = 1946161153] = "LOCK_STATUS";
|
|
120
|
+
SmartSafeEvent[SmartSafeEvent["SHAKE_ALARM"] = 1946161154] = "SHAKE_ALARM";
|
|
121
|
+
SmartSafeEvent[SmartSafeEvent["BATTERY_STATUS"] = 1946161155] = "BATTERY_STATUS";
|
|
122
|
+
SmartSafeEvent[SmartSafeEvent["LONG_TIME_NOT_CLOSE"] = 1946161156] = "LONG_TIME_NOT_CLOSE";
|
|
123
|
+
SmartSafeEvent[SmartSafeEvent["FORCE_FIGURE"] = 1946161157] = "FORCE_FIGURE";
|
|
124
|
+
SmartSafeEvent[SmartSafeEvent["LOW_POWER"] = 1946161158] = "LOW_POWER";
|
|
125
|
+
SmartSafeEvent[SmartSafeEvent["INPUT_ERR_MAX"] = 1946161159] = "INPUT_ERR_MAX";
|
|
126
|
+
SmartSafeEvent[SmartSafeEvent["SHUTDOWN"] = 1946161160] = "SHUTDOWN";
|
|
127
|
+
})(SmartSafeEvent = exports.SmartSafeEvent || (exports.SmartSafeEvent = {}));
|
|
128
|
+
var HB3PairedDevicePushEvent;
|
|
129
|
+
(function (HB3PairedDevicePushEvent) {
|
|
130
|
+
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["MOTION_DETECTION"] = 3101] = "MOTION_DETECTION";
|
|
131
|
+
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["FACE_DETECTION"] = 3102] = "FACE_DETECTION";
|
|
132
|
+
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["CRYING_DETECTION"] = 3104] = "CRYING_DETECTION";
|
|
133
|
+
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["SOUND_DETECTION"] = 3105] = "SOUND_DETECTION";
|
|
134
|
+
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["PET_DETECTION"] = 3106] = "PET_DETECTION";
|
|
135
|
+
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["VEHICLE_DETECTION"] = 3107] = "VEHICLE_DETECTION";
|
|
136
|
+
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["DOG_DETECTION"] = 3108] = "DOG_DETECTION";
|
|
137
|
+
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["DOG_LICK_DETECTION"] = 3109] = "DOG_LICK_DETECTION";
|
|
138
|
+
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["DOG_POOP_DETECTION"] = 3110] = "DOG_POOP_DETECTION";
|
|
139
|
+
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["IDENTITY_PERSON_DETECTION"] = 3111] = "IDENTITY_PERSON_DETECTION";
|
|
140
|
+
HB3PairedDevicePushEvent[HB3PairedDevicePushEvent["STRANGER_PERSON_DETECTION"] = 3112] = "STRANGER_PERSON_DETECTION";
|
|
141
|
+
})(HB3PairedDevicePushEvent = exports.HB3PairedDevicePushEvent || (exports.HB3PairedDevicePushEvent = {}));
|
|
142
|
+
var HB3PairedDeviceMessageType;
|
|
143
|
+
(function (HB3PairedDeviceMessageType) {
|
|
144
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["SECURITY_EVT"] = 1] = "SECURITY_EVT";
|
|
145
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["TFCARD_EVT"] = 2] = "TFCARD_EVT";
|
|
146
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["DOOR_SENSOR_EVT"] = 3] = "DOOR_SENSOR_EVT";
|
|
147
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["CAM_STATE_EVT"] = 4] = "CAM_STATE_EVT";
|
|
148
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["GSENSOR_EVT"] = 5] = "GSENSOR_EVT";
|
|
149
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["BATTERY_LOW_EVT"] = 6] = "BATTERY_LOW_EVT";
|
|
150
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["BATTERY_HOT_EVT"] = 7] = "BATTERY_HOT_EVT";
|
|
151
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["LIGHT_STATE_EVT"] = 8] = "LIGHT_STATE_EVT";
|
|
152
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["ARMING_EVT"] = 9] = "ARMING_EVT";
|
|
153
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["ALARM_EVT"] = 10] = "ALARM_EVT";
|
|
154
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["BATTERY_FULL_EVT"] = 11] = "BATTERY_FULL_EVT";
|
|
155
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["REPEATER_RSSI_WEAK_EVT"] = 12] = "REPEATER_RSSI_WEAK_EVT";
|
|
156
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["UPGRADE_STATUS"] = 13] = "UPGRADE_STATUS";
|
|
157
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["MOTION_SENSOR_EVT"] = 14] = "MOTION_SENSOR_EVT";
|
|
158
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["BAT_DOORBELL_EVT"] = 15] = "BAT_DOORBELL_EVT";
|
|
159
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["ALARM_DELAY_EVT"] = 16] = "ALARM_DELAY_EVT";
|
|
160
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["HUB_BATT_POWERED_EVT"] = 17] = "HUB_BATT_POWERED_EVT";
|
|
161
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["INDOOR_EVT"] = 18] = "INDOOR_EVT";
|
|
162
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["SMARTLOCK_EVT"] = 19] = "SMARTLOCK_EVT";
|
|
163
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["LOCK_EVT"] = 20] = "LOCK_EVT";
|
|
164
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["BBM_SOCK_EVT"] = 21] = "BBM_SOCK_EVT";
|
|
165
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["DOOR_STATUS_EVT"] = 22] = "DOOR_STATUS_EVT";
|
|
166
|
+
HB3PairedDeviceMessageType[HB3PairedDeviceMessageType["HHD_EVT"] = 23] = "HHD_EVT";
|
|
167
|
+
})(HB3PairedDeviceMessageType = exports.HB3PairedDeviceMessageType || (exports.HB3PairedDeviceMessageType = {}));
|
|
168
|
+
var HB3HDDType;
|
|
169
|
+
(function (HB3HDDType) {
|
|
170
|
+
HB3HDDType[HB3HDDType["NODISK"] = 0] = "NODISK";
|
|
171
|
+
HB3HDDType[HB3HDDType["READY"] = 1] = "READY";
|
|
172
|
+
HB3HDDType[HB3HDDType["PROCESSING"] = 2] = "PROCESSING";
|
|
173
|
+
HB3HDDType[HB3HDDType["NO_PARTED"] = 3] = "NO_PARTED";
|
|
174
|
+
HB3HDDType[HB3HDDType["NO_ANKER_DISK"] = 4] = "NO_ANKER_DISK";
|
|
175
|
+
HB3HDDType[HB3HDDType["NOT_FORMAT"] = 5] = "NOT_FORMAT";
|
|
176
|
+
HB3HDDType[HB3HDDType["OTHER_USER_DISK"] = 6] = "OTHER_USER_DISK";
|
|
177
|
+
HB3HDDType[HB3HDDType["BAD"] = 7] = "BAD";
|
|
178
|
+
HB3HDDType[HB3HDDType["WAIT_NETWOR"] = 8] = "WAIT_NETWOR";
|
|
179
|
+
HB3HDDType[HB3HDDType["PARTED_DONE"] = 9] = "PARTED_DONE";
|
|
180
|
+
HB3HDDType[HB3HDDType["FULL"] = 32] = "FULL";
|
|
181
|
+
})(HB3HDDType = exports.HB3HDDType || (exports.HB3HDDType = {}));
|
|
182
|
+
var IndoorPushMessageType;
|
|
183
|
+
(function (IndoorPushMessageType) {
|
|
184
|
+
IndoorPushMessageType[IndoorPushMessageType["INDOOR"] = 18] = "INDOOR";
|
|
185
|
+
IndoorPushMessageType[IndoorPushMessageType["TFCARD"] = 2] = "TFCARD";
|
|
186
|
+
})(IndoorPushMessageType = exports.IndoorPushMessageType || (exports.IndoorPushMessageType = {}));
|
|
187
|
+
var NotificationStyle;
|
|
188
|
+
(function (NotificationStyle) {
|
|
189
|
+
NotificationStyle[NotificationStyle["TEXT"] = 1] = "TEXT";
|
|
190
|
+
NotificationStyle[NotificationStyle["THUMB"] = 2] = "THUMB";
|
|
191
|
+
NotificationStyle[NotificationStyle["ALL"] = 3] = "ALL";
|
|
192
|
+
})(NotificationStyle = exports.NotificationStyle || (exports.NotificationStyle = {}));
|
|
193
193
|
//# sourceMappingURL=types.js.map
|
package/build/push/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CheckinResponse } from "./models";
|
|
2
|
-
export declare const VALID_FID_PATTERN: RegExp;
|
|
3
|
-
export declare function generateFid(): string;
|
|
4
|
-
export declare const buildCheckinRequest: () => Promise<Uint8Array>;
|
|
5
|
-
export declare const parseCheckinResponse: (data: Buffer) => Promise<CheckinResponse>;
|
|
6
|
-
export declare const sleep: (ms: number) => Promise<void>;
|
|
7
|
-
export declare function convertTimestampMs(timestamp: number): number;
|
|
1
|
+
import { CheckinResponse } from "./models";
|
|
2
|
+
export declare const VALID_FID_PATTERN: RegExp;
|
|
3
|
+
export declare function generateFid(): string;
|
|
4
|
+
export declare const buildCheckinRequest: () => Promise<Uint8Array>;
|
|
5
|
+
export declare const parseCheckinResponse: (data: Buffer) => Promise<CheckinResponse>;
|
|
6
|
+
export declare const sleep: (ms: number) => Promise<void>;
|
|
7
|
+
export declare function convertTimestampMs(timestamp: number): number;
|
package/build/push/utils.js
CHANGED
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.convertTimestampMs = exports.sleep = exports.parseCheckinResponse = exports.buildCheckinRequest = exports.generateFid = exports.VALID_FID_PATTERN = void 0;
|
|
27
|
-
const crypto_1 = require("crypto");
|
|
28
|
-
const path = __importStar(require("path"));
|
|
29
|
-
const protobuf_typescript_1 = require("protobuf-typescript");
|
|
30
|
-
exports.VALID_FID_PATTERN = /^[cdef][\w-]{21}$/;
|
|
31
|
-
function generateFid() {
|
|
32
|
-
const fidByteArray = new Uint8Array(17);
|
|
33
|
-
fidByteArray.set((0, crypto_1.randomBytes)(fidByteArray.length));
|
|
34
|
-
// Replace the first 4 random bits with the constant FID header of 0b0111.
|
|
35
|
-
fidByteArray[0] = 0b01110000 + (fidByteArray[0] % 0b00010000);
|
|
36
|
-
const b64 = Buffer.from(fidByteArray).toString("base64");
|
|
37
|
-
const b64_safe = b64.replace(/\+/g, "-").replace(/\//g, "_");
|
|
38
|
-
const fid = b64_safe.substr(0, 22);
|
|
39
|
-
if (exports.VALID_FID_PATTERN.test(fid)) {
|
|
40
|
-
return fid;
|
|
41
|
-
}
|
|
42
|
-
throw new Error(`Generated FID is invalid?!`);
|
|
43
|
-
}
|
|
44
|
-
exports.generateFid = generateFid;
|
|
45
|
-
const buildCheckinRequest = async () => {
|
|
46
|
-
const root = await (0, protobuf_typescript_1.load)(path.join(__dirname, "./proto/checkin.proto"));
|
|
47
|
-
const CheckinRequestModel = root.lookupType("CheckinRequest");
|
|
48
|
-
const payload = {
|
|
49
|
-
imei: "109269993813709",
|
|
50
|
-
androidId: 0,
|
|
51
|
-
checkin: {
|
|
52
|
-
build: {
|
|
53
|
-
fingerprint: "google/razor/flo:5.0.1/LRX22C/1602158:user/release-keys",
|
|
54
|
-
hardware: "flo",
|
|
55
|
-
brand: "google",
|
|
56
|
-
radio: "FLO-04.04",
|
|
57
|
-
clientId: "android-google",
|
|
58
|
-
},
|
|
59
|
-
lastCheckinMs: 0,
|
|
60
|
-
},
|
|
61
|
-
locale: "en",
|
|
62
|
-
loggingId: 1234567890,
|
|
63
|
-
macAddress: ["A1B2C3D4E5F6"],
|
|
64
|
-
meid: "109269993813709",
|
|
65
|
-
accountCookie: [],
|
|
66
|
-
timeZone: "GMT",
|
|
67
|
-
version: 3,
|
|
68
|
-
otaCert: ["71Q6Rn2DDZl1zPDVaaeEHItd+Yg="],
|
|
69
|
-
esn: "ABCDEF01",
|
|
70
|
-
macAddressType: ["wifi"],
|
|
71
|
-
fragment: 0,
|
|
72
|
-
userSerialNumber: 0,
|
|
73
|
-
};
|
|
74
|
-
const message = CheckinRequestModel.create(payload);
|
|
75
|
-
return CheckinRequestModel.encode(message).finish();
|
|
76
|
-
};
|
|
77
|
-
exports.buildCheckinRequest = buildCheckinRequest;
|
|
78
|
-
const parseCheckinResponse = async (data) => {
|
|
79
|
-
const root = await (0, protobuf_typescript_1.load)(path.join(__dirname, "./proto/checkin.proto"));
|
|
80
|
-
const CheckinResponseModel = root.lookupType("CheckinResponse");
|
|
81
|
-
const message = CheckinResponseModel.decode(data);
|
|
82
|
-
const object = CheckinResponseModel.toObject(message, {
|
|
83
|
-
longs: String,
|
|
84
|
-
enums: String,
|
|
85
|
-
bytes: String,
|
|
86
|
-
});
|
|
87
|
-
return object;
|
|
88
|
-
};
|
|
89
|
-
exports.parseCheckinResponse = parseCheckinResponse;
|
|
90
|
-
const sleep = async (ms) => {
|
|
91
|
-
return new Promise((resolve) => {
|
|
92
|
-
setTimeout(resolve, ms);
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
exports.sleep = sleep;
|
|
96
|
-
function convertTimestampMs(timestamp) {
|
|
97
|
-
if (timestamp.toString().length === 10) {
|
|
98
|
-
return timestamp * 1000;
|
|
99
|
-
}
|
|
100
|
-
return timestamp;
|
|
101
|
-
}
|
|
102
|
-
exports.convertTimestampMs = convertTimestampMs;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.convertTimestampMs = exports.sleep = exports.parseCheckinResponse = exports.buildCheckinRequest = exports.generateFid = exports.VALID_FID_PATTERN = void 0;
|
|
27
|
+
const crypto_1 = require("crypto");
|
|
28
|
+
const path = __importStar(require("path"));
|
|
29
|
+
const protobuf_typescript_1 = require("protobuf-typescript");
|
|
30
|
+
exports.VALID_FID_PATTERN = /^[cdef][\w-]{21}$/;
|
|
31
|
+
function generateFid() {
|
|
32
|
+
const fidByteArray = new Uint8Array(17);
|
|
33
|
+
fidByteArray.set((0, crypto_1.randomBytes)(fidByteArray.length));
|
|
34
|
+
// Replace the first 4 random bits with the constant FID header of 0b0111.
|
|
35
|
+
fidByteArray[0] = 0b01110000 + (fidByteArray[0] % 0b00010000);
|
|
36
|
+
const b64 = Buffer.from(fidByteArray).toString("base64");
|
|
37
|
+
const b64_safe = b64.replace(/\+/g, "-").replace(/\//g, "_");
|
|
38
|
+
const fid = b64_safe.substr(0, 22);
|
|
39
|
+
if (exports.VALID_FID_PATTERN.test(fid)) {
|
|
40
|
+
return fid;
|
|
41
|
+
}
|
|
42
|
+
throw new Error(`Generated FID is invalid?!`);
|
|
43
|
+
}
|
|
44
|
+
exports.generateFid = generateFid;
|
|
45
|
+
const buildCheckinRequest = async () => {
|
|
46
|
+
const root = await (0, protobuf_typescript_1.load)(path.join(__dirname, "./proto/checkin.proto"));
|
|
47
|
+
const CheckinRequestModel = root.lookupType("CheckinRequest");
|
|
48
|
+
const payload = {
|
|
49
|
+
imei: "109269993813709",
|
|
50
|
+
androidId: 0,
|
|
51
|
+
checkin: {
|
|
52
|
+
build: {
|
|
53
|
+
fingerprint: "google/razor/flo:5.0.1/LRX22C/1602158:user/release-keys",
|
|
54
|
+
hardware: "flo",
|
|
55
|
+
brand: "google",
|
|
56
|
+
radio: "FLO-04.04",
|
|
57
|
+
clientId: "android-google",
|
|
58
|
+
},
|
|
59
|
+
lastCheckinMs: 0,
|
|
60
|
+
},
|
|
61
|
+
locale: "en",
|
|
62
|
+
loggingId: 1234567890,
|
|
63
|
+
macAddress: ["A1B2C3D4E5F6"],
|
|
64
|
+
meid: "109269993813709",
|
|
65
|
+
accountCookie: [],
|
|
66
|
+
timeZone: "GMT",
|
|
67
|
+
version: 3,
|
|
68
|
+
otaCert: ["71Q6Rn2DDZl1zPDVaaeEHItd+Yg="],
|
|
69
|
+
esn: "ABCDEF01",
|
|
70
|
+
macAddressType: ["wifi"],
|
|
71
|
+
fragment: 0,
|
|
72
|
+
userSerialNumber: 0,
|
|
73
|
+
};
|
|
74
|
+
const message = CheckinRequestModel.create(payload);
|
|
75
|
+
return CheckinRequestModel.encode(message).finish();
|
|
76
|
+
};
|
|
77
|
+
exports.buildCheckinRequest = buildCheckinRequest;
|
|
78
|
+
const parseCheckinResponse = async (data) => {
|
|
79
|
+
const root = await (0, protobuf_typescript_1.load)(path.join(__dirname, "./proto/checkin.proto"));
|
|
80
|
+
const CheckinResponseModel = root.lookupType("CheckinResponse");
|
|
81
|
+
const message = CheckinResponseModel.decode(data);
|
|
82
|
+
const object = CheckinResponseModel.toObject(message, {
|
|
83
|
+
longs: String,
|
|
84
|
+
enums: String,
|
|
85
|
+
bytes: String,
|
|
86
|
+
});
|
|
87
|
+
return object;
|
|
88
|
+
};
|
|
89
|
+
exports.parseCheckinResponse = parseCheckinResponse;
|
|
90
|
+
const sleep = async (ms) => {
|
|
91
|
+
return new Promise((resolve) => {
|
|
92
|
+
setTimeout(resolve, ms);
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
exports.sleep = sleep;
|
|
96
|
+
function convertTimestampMs(timestamp) {
|
|
97
|
+
if (timestamp.toString().length === 10) {
|
|
98
|
+
return timestamp * 1000;
|
|
99
|
+
}
|
|
100
|
+
return timestamp;
|
|
101
|
+
}
|
|
102
|
+
exports.convertTimestampMs = convertTimestampMs;
|
|
103
103
|
//# sourceMappingURL=utils.js.map
|