homebridge-adt-pulse 3.0.0-beta.3 → 3.0.0-beta.5
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/build/config.schema.json +237 -0
- package/build/src/index.js +6 -0
- package/build/src/index.js.map +1 -0
- package/build/src/lib/accessory.js +216 -0
- package/build/src/lib/accessory.js.map +1 -0
- package/build/src/lib/api.js +1876 -0
- package/build/src/lib/api.js.map +1 -0
- package/build/src/lib/detect.js +443 -0
- package/build/src/lib/detect.js.map +1 -0
- package/build/src/lib/platform.js +419 -0
- package/build/src/lib/platform.js.map +1 -0
- package/{src/lib/regex.ts → build/src/lib/regex.js} +1 -143
- package/build/src/lib/regex.js.map +1 -0
- package/build/src/lib/schema.js +29 -0
- package/build/src/lib/schema.js.map +1 -0
- package/build/src/lib/utility.js +434 -0
- package/build/src/lib/utility.js.map +1 -0
- package/build/src/scripts/repl.js +173 -0
- package/build/src/scripts/repl.js.map +1 -0
- package/build/src/scripts/test-api.js +171 -0
- package/build/src/scripts/test-api.js.map +1 -0
- package/package.json +4 -4
- package/src/index.ts +0 -18
- package/src/lib/accessory.ts +0 -405
- package/src/lib/api.ts +0 -3483
- package/src/lib/detect.ts +0 -728
- package/src/lib/platform.ts +0 -890
- package/src/lib/schema.ts +0 -34
- package/src/lib/utility.ts +0 -933
- package/src/scripts/repl.ts +0 -300
- package/src/scripts/test-api.ts +0 -278
- package/src/types/constant.d.ts +0 -308
- package/src/types/index.d.ts +0 -1472
- package/src/types/shared.d.ts +0 -517
package/src/types/shared.d.ts
DELETED
|
@@ -1,517 +0,0 @@
|
|
|
1
|
-
import type { AxiosResponse } from 'axios';
|
|
2
|
-
import type { Logger } from 'homebridge';
|
|
3
|
-
import type http from 'http';
|
|
4
|
-
import type { JSDOM } from 'jsdom';
|
|
5
|
-
import type { ErrorObject } from 'serialize-error';
|
|
6
|
-
|
|
7
|
-
import type {
|
|
8
|
-
PluginConfigPlatform,
|
|
9
|
-
PluginDeviceCategory,
|
|
10
|
-
PluginDeviceId,
|
|
11
|
-
PluginDeviceType,
|
|
12
|
-
PortalDeviceStatus,
|
|
13
|
-
PortalPanelArmButtonHref,
|
|
14
|
-
PortalPanelArmButtonId,
|
|
15
|
-
PortalPanelArmButtonLoadingText,
|
|
16
|
-
PortalPanelArmButtonRelativeUrl,
|
|
17
|
-
PortalPanelArmButtonText,
|
|
18
|
-
PortalPanelArmStateClean,
|
|
19
|
-
PortalPanelArmStateDirty,
|
|
20
|
-
PortalPanelArmStateForce,
|
|
21
|
-
PortalPanelArmValue,
|
|
22
|
-
PortalPanelForceArmButtonHref,
|
|
23
|
-
PortalPanelForceArmButtonRelativeUrl,
|
|
24
|
-
PortalPanelState,
|
|
25
|
-
PortalPanelStatus,
|
|
26
|
-
PortalSensorDeviceType,
|
|
27
|
-
PortalSensorStatusIcon,
|
|
28
|
-
PortalSensorStatusText,
|
|
29
|
-
PortalSubdomain,
|
|
30
|
-
PortalVersion,
|
|
31
|
-
} from '@/types/constant.d.ts';
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Api response.
|
|
35
|
-
*
|
|
36
|
-
* @since 1.0.0
|
|
37
|
-
*/
|
|
38
|
-
export type ApiResponseAction =
|
|
39
|
-
'ARM_DISARM_HANDLER'
|
|
40
|
-
| 'FORCE_ARM_HANDLER'
|
|
41
|
-
| 'GET_GATEWAY_INFORMATION'
|
|
42
|
-
| 'GET_PANEL_INFORMATION'
|
|
43
|
-
| 'GET_PANEL_STATUS'
|
|
44
|
-
| 'GET_SENSORS_INFORMATION'
|
|
45
|
-
| 'GET_SENSORS_STATUS'
|
|
46
|
-
| 'IS_PORTAL_ACCESSIBLE'
|
|
47
|
-
| 'LOGIN'
|
|
48
|
-
| 'LOGOUT'
|
|
49
|
-
| 'PERFORM_KEEP_ALIVE'
|
|
50
|
-
| 'PERFORM_SYNC_CHECK'
|
|
51
|
-
| 'SET_PANEL_STATUS';
|
|
52
|
-
|
|
53
|
-
export type ApiResponseSuccessSuccess = true;
|
|
54
|
-
|
|
55
|
-
export type ApiResponseSuccessInfo = object | null;
|
|
56
|
-
|
|
57
|
-
export type ApiResponseSuccess<Action extends ApiResponseAction, Info extends ApiResponseSuccessInfo> = {
|
|
58
|
-
action: Action,
|
|
59
|
-
success: ApiResponseSuccessSuccess,
|
|
60
|
-
info: Info,
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export type ApiResponseFailSuccess = false;
|
|
64
|
-
|
|
65
|
-
export type ApiResponseFailInfoError = ErrorObject;
|
|
66
|
-
|
|
67
|
-
export type ApiResponseFailInfoMessage = string;
|
|
68
|
-
|
|
69
|
-
export type ApiResponseFailInfo = {
|
|
70
|
-
error?: ApiResponseFailInfoError,
|
|
71
|
-
message?: ApiResponseFailInfoMessage;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export type ApiResponseFail<Action extends ApiResponseAction> = {
|
|
75
|
-
action: Action,
|
|
76
|
-
success: ApiResponseFailSuccess,
|
|
77
|
-
info: ApiResponseFailInfo,
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export type ApiResponse<Action extends ApiResponseAction, Info extends ApiResponseSuccessInfo> =
|
|
81
|
-
ApiResponseSuccess<Action, Info>
|
|
82
|
-
| ApiResponseFail<Action>;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Axios response with request.
|
|
86
|
-
*
|
|
87
|
-
* @since 1.0.0
|
|
88
|
-
*/
|
|
89
|
-
export interface AxiosResponseWithRequest<T = any, D = any> extends AxiosResponse<T, D> {
|
|
90
|
-
request?: http.ClientRequest;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Config.
|
|
95
|
-
*
|
|
96
|
-
* @since 1.0.0
|
|
97
|
-
*/
|
|
98
|
-
export type ConfigPlatform = PluginConfigPlatform;
|
|
99
|
-
|
|
100
|
-
export type ConfigName = string;
|
|
101
|
-
|
|
102
|
-
export type ConfigSubdomain = PortalSubdomain;
|
|
103
|
-
|
|
104
|
-
export type ConfigUsername = string;
|
|
105
|
-
|
|
106
|
-
export type ConfigPassword = string;
|
|
107
|
-
|
|
108
|
-
export type ConfigFingerprint = string;
|
|
109
|
-
|
|
110
|
-
export type ConfigSensorName = string;
|
|
111
|
-
|
|
112
|
-
export type ConfigSensorAdtName = string;
|
|
113
|
-
|
|
114
|
-
export type ConfigSensorAdtType = Exclude<PluginDeviceType, 'gateway' | 'panel'>;
|
|
115
|
-
|
|
116
|
-
export type ConfigSensorAdtZone = number;
|
|
117
|
-
|
|
118
|
-
export type ConfigSensor = {
|
|
119
|
-
name?: ConfigSensorName;
|
|
120
|
-
adtName: ConfigSensorAdtName;
|
|
121
|
-
adtType: ConfigSensorAdtType;
|
|
122
|
-
adtZone: ConfigSensorAdtZone;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
export type ConfigSensors = ConfigSensor[];
|
|
126
|
-
|
|
127
|
-
export type ConfigPause = boolean;
|
|
128
|
-
|
|
129
|
-
export type ConfigReset = boolean;
|
|
130
|
-
|
|
131
|
-
export type Config = {
|
|
132
|
-
platform: ConfigPlatform;
|
|
133
|
-
name?: ConfigName;
|
|
134
|
-
subdomain: ConfigSubdomain;
|
|
135
|
-
username: ConfigUsername;
|
|
136
|
-
password: ConfigPassword;
|
|
137
|
-
fingerprint: ConfigFingerprint;
|
|
138
|
-
sensors: ConfigSensors;
|
|
139
|
-
pause?: ConfigPause;
|
|
140
|
-
reset?: ConfigReset;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Devices.
|
|
145
|
-
*
|
|
146
|
-
* @since 1.0.0
|
|
147
|
-
*/
|
|
148
|
-
export type DeviceId = PluginDeviceId;
|
|
149
|
-
|
|
150
|
-
export type DeviceName = string;
|
|
151
|
-
|
|
152
|
-
export type DeviceType = PluginDeviceType;
|
|
153
|
-
|
|
154
|
-
export type DeviceZone = number | null;
|
|
155
|
-
|
|
156
|
-
export type DeviceCategory = PluginDeviceCategory;
|
|
157
|
-
|
|
158
|
-
export type DeviceManufacturer = string | null;
|
|
159
|
-
|
|
160
|
-
export type DeviceModel = string | null;
|
|
161
|
-
|
|
162
|
-
export type DeviceSerial = string | null;
|
|
163
|
-
|
|
164
|
-
export type DeviceFirmware = string | null;
|
|
165
|
-
|
|
166
|
-
export type DeviceHardware = string | null;
|
|
167
|
-
|
|
168
|
-
export type DeviceSoftware = string | null;
|
|
169
|
-
|
|
170
|
-
export type DeviceUuid = UUID;
|
|
171
|
-
|
|
172
|
-
export type Device = {
|
|
173
|
-
id: DeviceId;
|
|
174
|
-
name: DeviceName;
|
|
175
|
-
type: DeviceType;
|
|
176
|
-
zone: DeviceZone;
|
|
177
|
-
category: DeviceCategory;
|
|
178
|
-
manufacturer: DeviceManufacturer;
|
|
179
|
-
model: DeviceModel;
|
|
180
|
-
serial: DeviceSerial;
|
|
181
|
-
firmware: DeviceFirmware;
|
|
182
|
-
hardware: DeviceHardware;
|
|
183
|
-
software: DeviceSoftware;
|
|
184
|
-
uuid: DeviceUuid;
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
export type Devices = Device[];
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Do submit handlers.
|
|
191
|
-
*
|
|
192
|
-
* @since 1.0.0
|
|
193
|
-
*/
|
|
194
|
-
export type DoSubmitHandlerRelativeUrl = PortalPanelForceArmButtonRelativeUrl;
|
|
195
|
-
|
|
196
|
-
export type DoSubmitHandlerUrlParamsArm = Exclude<PortalPanelArmValue, 'off'> | null;
|
|
197
|
-
|
|
198
|
-
export type DoSubmitHandlerUrlParamsArmState = PortalPanelArmStateForce | null;
|
|
199
|
-
|
|
200
|
-
export type DoSubmitHandlerUrlParamsHref = PortalPanelForceArmButtonHref;
|
|
201
|
-
|
|
202
|
-
export type DoSubmitHandlerUrlParamsSat = UUID;
|
|
203
|
-
|
|
204
|
-
export type DoSubmitHandlerUrlParams = {
|
|
205
|
-
arm: DoSubmitHandlerUrlParamsArm;
|
|
206
|
-
armState: DoSubmitHandlerUrlParamsArmState;
|
|
207
|
-
href: DoSubmitHandlerUrlParamsHref;
|
|
208
|
-
sat: DoSubmitHandlerUrlParamsSat;
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
export type DoSubmitHandler = {
|
|
212
|
-
relativeUrl: DoSubmitHandlerRelativeUrl;
|
|
213
|
-
urlParams: DoSubmitHandlerUrlParams;
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
export type DoSubmitHandlers = DoSubmitHandler[];
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Gateway information.
|
|
220
|
-
*
|
|
221
|
-
* @since 1.0.0
|
|
222
|
-
*/
|
|
223
|
-
export type GatewayInformationCommunicationPrimaryConnectionType = string | null;
|
|
224
|
-
|
|
225
|
-
export type GatewayInformationCommunicationBroadbandConnectionStatus = string | null;
|
|
226
|
-
|
|
227
|
-
export type GatewayInformationCommunicationCellularConnectionStatus = string | null;
|
|
228
|
-
|
|
229
|
-
export type GatewayInformationCommunicationCellularSignalStrength = string | null;
|
|
230
|
-
|
|
231
|
-
export type GatewayInformationCommunication = {
|
|
232
|
-
primaryConnectionType: GatewayInformationCommunicationPrimaryConnectionType;
|
|
233
|
-
broadbandConnectionStatus: GatewayInformationCommunicationBroadbandConnectionStatus;
|
|
234
|
-
cellularConnectionStatus: GatewayInformationCommunicationCellularConnectionStatus;
|
|
235
|
-
cellularSignalStrength: GatewayInformationCommunicationCellularSignalStrength;
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
export type GatewayInformationManufacturer = string | null;
|
|
239
|
-
|
|
240
|
-
export type GatewayInformationModel = string | null;
|
|
241
|
-
|
|
242
|
-
export type GatewayInformationNetworkBroadbandIp = string | null;
|
|
243
|
-
|
|
244
|
-
export type GatewayInformationNetworkBroadbandMac = string | null;
|
|
245
|
-
|
|
246
|
-
export type GatewayInformationNetworkBroadband = {
|
|
247
|
-
ip: GatewayInformationNetworkBroadbandIp;
|
|
248
|
-
mac: GatewayInformationNetworkBroadbandMac;
|
|
249
|
-
};
|
|
250
|
-
|
|
251
|
-
export type GatewayInformationNetworkDeviceIp = string | null;
|
|
252
|
-
|
|
253
|
-
export type GatewayInformationNetworkDeviceMac = string | null;
|
|
254
|
-
|
|
255
|
-
export type GatewayInformationNetworkDevice = {
|
|
256
|
-
ip: GatewayInformationNetworkDeviceIp;
|
|
257
|
-
mac: GatewayInformationNetworkDeviceMac;
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
export type GatewayInformationNetworkRouterLanIp = string | null;
|
|
261
|
-
|
|
262
|
-
export type GatewayInformationNetworkRouterWanIp = string | null;
|
|
263
|
-
|
|
264
|
-
export type GatewayInformationNetworkRouter = {
|
|
265
|
-
lanIp: GatewayInformationNetworkRouterLanIp;
|
|
266
|
-
wanIp: GatewayInformationNetworkRouterWanIp;
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
export type GatewayInformationNetwork = {
|
|
270
|
-
broadband: GatewayInformationNetworkBroadband;
|
|
271
|
-
device: GatewayInformationNetworkDevice;
|
|
272
|
-
router: GatewayInformationNetworkRouter;
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
export type GatewayInformationSerialNumber = string | null;
|
|
276
|
-
|
|
277
|
-
export type GatewayInformationStatus = PortalDeviceStatus | null;
|
|
278
|
-
|
|
279
|
-
export type GatewayInformationUpdateLast = string | null;
|
|
280
|
-
|
|
281
|
-
export type GatewayInformationUpdateNext = string | null;
|
|
282
|
-
|
|
283
|
-
export type GatewayInformationUpdate = {
|
|
284
|
-
last: GatewayInformationUpdateLast;
|
|
285
|
-
next: GatewayInformationUpdateNext;
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
export type GatewayInformationVersionsFirmware = string | null;
|
|
289
|
-
|
|
290
|
-
export type GatewayInformationVersionsHardware = string | null;
|
|
291
|
-
|
|
292
|
-
export type GatewayInformationVersions = {
|
|
293
|
-
firmware: GatewayInformationVersionsFirmware;
|
|
294
|
-
hardware: GatewayInformationVersionsHardware;
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
export type GatewayInformation = {
|
|
298
|
-
communication: GatewayInformationCommunication;
|
|
299
|
-
manufacturer: GatewayInformationManufacturer;
|
|
300
|
-
model: GatewayInformationModel;
|
|
301
|
-
network: GatewayInformationNetwork;
|
|
302
|
-
serialNumber: GatewayInformationSerialNumber;
|
|
303
|
-
status: GatewayInformationStatus;
|
|
304
|
-
update: GatewayInformationUpdate;
|
|
305
|
-
versions: GatewayInformationVersions;
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Internal config.
|
|
310
|
-
*
|
|
311
|
-
* @since 1.0.0
|
|
312
|
-
*/
|
|
313
|
-
export type InternalConfigBaseUrl = `https://${string}`;
|
|
314
|
-
|
|
315
|
-
export type InternalConfigDebug = boolean;
|
|
316
|
-
|
|
317
|
-
export type InternalConfigLogger = Logger | null;
|
|
318
|
-
|
|
319
|
-
export type InternalConfigTestModeEnabled = boolean;
|
|
320
|
-
|
|
321
|
-
export type InternalConfigTestModeIsDisarmChecked = boolean;
|
|
322
|
-
|
|
323
|
-
export type InternalConfigTestMode = {
|
|
324
|
-
enabled?: InternalConfigTestModeEnabled;
|
|
325
|
-
isDisarmChecked?: InternalConfigTestModeIsDisarmChecked;
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
export type InternalConfig = {
|
|
329
|
-
baseUrl?: InternalConfigBaseUrl;
|
|
330
|
-
debug?: InternalConfigDebug;
|
|
331
|
-
logger?: InternalConfigLogger;
|
|
332
|
-
testMode?: InternalConfigTestMode;
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Network id.
|
|
337
|
-
*
|
|
338
|
-
* @since 1.0.0
|
|
339
|
-
*/
|
|
340
|
-
export type NetworkId = string;
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Orb security buttons.
|
|
344
|
-
*
|
|
345
|
-
* @since 1.0.0
|
|
346
|
-
*/
|
|
347
|
-
export type OrbSecurityButtonBaseButtonId = PortalPanelArmButtonId | null;
|
|
348
|
-
|
|
349
|
-
export type OrbSecurityButtonBase = {
|
|
350
|
-
buttonId: OrbSecurityButtonBaseButtonId;
|
|
351
|
-
};
|
|
352
|
-
|
|
353
|
-
export type OrbSecurityButtonReadyButtonDisabled = false;
|
|
354
|
-
|
|
355
|
-
export type OrbSecurityButtonReadyButtonIndex = number;
|
|
356
|
-
|
|
357
|
-
export type OrbSecurityButtonReadyButtonText = PortalPanelArmButtonText | null;
|
|
358
|
-
|
|
359
|
-
export type OrbSecurityButtonReadyChangeAccessCode = boolean;
|
|
360
|
-
|
|
361
|
-
export type OrbSecurityButtonReadyLoadingText = PortalPanelArmButtonLoadingText;
|
|
362
|
-
|
|
363
|
-
export type OrbSecurityButtonReadyRelativeUrl = PortalPanelArmButtonRelativeUrl;
|
|
364
|
-
|
|
365
|
-
export type OrbSecurityButtonReadyTotalButtons = number;
|
|
366
|
-
|
|
367
|
-
export type OrbSecurityButtonReadyUrlParamsArm = PortalPanelArmValue;
|
|
368
|
-
|
|
369
|
-
export type OrbSecurityButtonReadyUrlParamsArmState = PortalPanelArmStateClean | PortalPanelArmStateDirty;
|
|
370
|
-
|
|
371
|
-
export type OrbSecurityButtonReadyUrlParamsHref = PortalPanelArmButtonHref;
|
|
372
|
-
|
|
373
|
-
export type OrbSecurityButtonReadyUrlParamsSat = UUID;
|
|
374
|
-
|
|
375
|
-
export type OrbSecurityButtonReadyUrlParams = {
|
|
376
|
-
arm: OrbSecurityButtonReadyUrlParamsArm;
|
|
377
|
-
armState: OrbSecurityButtonReadyUrlParamsArmState;
|
|
378
|
-
href: OrbSecurityButtonReadyUrlParamsHref;
|
|
379
|
-
sat: OrbSecurityButtonReadyUrlParamsSat;
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
export type OrbSecurityButtonReady = {
|
|
383
|
-
buttonDisabled: OrbSecurityButtonReadyButtonDisabled,
|
|
384
|
-
buttonIndex: OrbSecurityButtonReadyButtonIndex;
|
|
385
|
-
buttonText: OrbSecurityButtonReadyButtonText;
|
|
386
|
-
changeAccessCode: OrbSecurityButtonReadyChangeAccessCode;
|
|
387
|
-
loadingText: OrbSecurityButtonReadyLoadingText;
|
|
388
|
-
relativeUrl: OrbSecurityButtonReadyRelativeUrl;
|
|
389
|
-
totalButtons: OrbSecurityButtonReadyTotalButtons;
|
|
390
|
-
urlParams: OrbSecurityButtonReadyUrlParams;
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
export type OrbSecurityButtonPendingButtonDisabled = true;
|
|
394
|
-
|
|
395
|
-
export type OrbSecurityButtonPendingButtonText = PortalPanelArmButtonLoadingText | null;
|
|
396
|
-
|
|
397
|
-
export type OrbSecurityButtonPending = {
|
|
398
|
-
buttonDisabled: OrbSecurityButtonPendingButtonDisabled,
|
|
399
|
-
buttonText: OrbSecurityButtonPendingButtonText;
|
|
400
|
-
};
|
|
401
|
-
|
|
402
|
-
export type OrbSecurityButton = (OrbSecurityButtonBase & OrbSecurityButtonReady) | (OrbSecurityButtonBase & OrbSecurityButtonPending);
|
|
403
|
-
|
|
404
|
-
export type OrbSecurityButtons = OrbSecurityButton[];
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* Panel information.
|
|
408
|
-
*
|
|
409
|
-
* @since 1.0.0
|
|
410
|
-
*/
|
|
411
|
-
export type PanelInformationEmergencyKeys = RegExpMatchArray | null;
|
|
412
|
-
|
|
413
|
-
export type PanelInformationManufacturer = string | null;
|
|
414
|
-
|
|
415
|
-
export type PanelInformationMasterCode = string | null;
|
|
416
|
-
|
|
417
|
-
export type PanelInformationModel = string | null;
|
|
418
|
-
|
|
419
|
-
export type PanelInformationProvider = string | null;
|
|
420
|
-
|
|
421
|
-
export type PanelInformationStatus = PortalDeviceStatus | null;
|
|
422
|
-
|
|
423
|
-
export type PanelInformationType = string | null;
|
|
424
|
-
|
|
425
|
-
export type PanelInformation = {
|
|
426
|
-
emergencyKeys: PanelInformationEmergencyKeys;
|
|
427
|
-
manufacturer: PanelInformationManufacturer;
|
|
428
|
-
masterCode: PanelInformationMasterCode;
|
|
429
|
-
model: PanelInformationModel;
|
|
430
|
-
provider: PanelInformationProvider;
|
|
431
|
-
status: PanelInformationStatus;
|
|
432
|
-
type: PanelInformationType;
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* Panel status.
|
|
437
|
-
*
|
|
438
|
-
* @since 1.0.0
|
|
439
|
-
*/
|
|
440
|
-
export type PanelStatusState = PortalPanelState | null;
|
|
441
|
-
|
|
442
|
-
export type PanelStatusStatus = Exclude<PortalPanelStatus, ''> | null;
|
|
443
|
-
|
|
444
|
-
export type PanelStatus = {
|
|
445
|
-
state: PanelStatusState;
|
|
446
|
-
status: PanelStatusStatus;
|
|
447
|
-
};
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* Portal version content.
|
|
451
|
-
*
|
|
452
|
-
* @since 1.0.0
|
|
453
|
-
*/
|
|
454
|
-
export type PortalVersionContent = {
|
|
455
|
-
version: PortalVersion | null;
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* Sensors information.
|
|
460
|
-
*
|
|
461
|
-
* @since 1.0.0
|
|
462
|
-
*/
|
|
463
|
-
export type SensorInformationDeviceId = number;
|
|
464
|
-
|
|
465
|
-
export type SensorInformationDeviceType = PortalSensorDeviceType;
|
|
466
|
-
|
|
467
|
-
export type SensorInformationName = string;
|
|
468
|
-
|
|
469
|
-
export type SensorInformationStatus = PortalDeviceStatus;
|
|
470
|
-
|
|
471
|
-
export type SensorInformationZone = number;
|
|
472
|
-
|
|
473
|
-
export type SensorInformation = {
|
|
474
|
-
deviceId: SensorInformationDeviceId;
|
|
475
|
-
deviceType: SensorInformationDeviceType;
|
|
476
|
-
name: SensorInformationName;
|
|
477
|
-
status: SensorInformationStatus;
|
|
478
|
-
zone: SensorInformationZone;
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
export type SensorsInformation = SensorInformation[];
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* Sensors status.
|
|
485
|
-
*
|
|
486
|
-
* @since 1.0.0
|
|
487
|
-
*/
|
|
488
|
-
export type SensorStatusIcon = PortalSensorStatusIcon;
|
|
489
|
-
|
|
490
|
-
export type SensorStatusName = string;
|
|
491
|
-
|
|
492
|
-
export type SensorStatusStatus = PortalSensorStatusText;
|
|
493
|
-
|
|
494
|
-
export type SensorStatusZone = number;
|
|
495
|
-
|
|
496
|
-
export type SensorStatus = {
|
|
497
|
-
icon: SensorStatusIcon;
|
|
498
|
-
name: SensorStatusName;
|
|
499
|
-
status: SensorStatusStatus;
|
|
500
|
-
zone: SensorStatusZone;
|
|
501
|
-
};
|
|
502
|
-
|
|
503
|
-
export type SensorsStatus = SensorStatus[];
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* Sessions.
|
|
507
|
-
*
|
|
508
|
-
* @since 1.0.0
|
|
509
|
-
*/
|
|
510
|
-
export type Sessions<Shape extends Record<string, AxiosResponseWithRequest<unknown, unknown> | JSDOM>> = Shape;
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* UUID.
|
|
514
|
-
*
|
|
515
|
-
* @since 1.0.0
|
|
516
|
-
*/
|
|
517
|
-
export type UUID = string;
|