@awarevue/api-types 1.1.15 → 2.0.2
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/access-control/person-agreement.d.ts +2 -2
- package/dist/access-control/person.d.ts +4 -4
- package/dist/agent-communication/protocol.d.ts +108 -308
- package/dist/agent-communication/protocol.js +5 -8
- package/dist/agent-communication/queries.d.ts +1312 -1045
- package/dist/agent-communication/queries.js +11 -109
- package/dist/api/media.d.ts +6 -14
- package/dist/api/media.js +1 -4
- package/dist/device/alarm.d.ts +24 -24
- package/dist/device/any-device.d.ts +537 -269
- package/dist/device/any-device.js +22 -4
- package/dist/device/camera.d.ts +97 -0
- package/dist/device/camera.js +24 -1
- package/dist/device/index.d.ts +3 -1
- package/dist/device/index.js +3 -1
- package/dist/device/intercom-terminal.d.ts +4 -4
- package/dist/device/nvr-analytics-server.d.ts +307 -0
- package/dist/device/nvr-analytics-server.js +73 -0
- package/dist/device/nvr-exporter.d.ts +892 -0
- package/dist/device/nvr-exporter.js +77 -0
- package/dist/device/nvr-recorder.d.ts +2981 -0
- package/dist/device/nvr-recorder.js +47 -0
- package/dist/device/presence-tracker.d.ts +8 -8
- package/dist/device-event.d.ts +43 -19
- package/dist/device-event.js +5 -0
- package/dist/device-import.d.ts +123 -51
- package/dist/device-relation.d.ts +7 -7
- package/dist/device-relation.js +12 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/messages/web-rtc-signaling.d.ts +10 -10
- package/dist/package.json +1 -1
- package/dist/permissions.d.ts +3 -3
- package/dist/permissions.js +9 -1
- package/dist/primitives.d.ts +596 -0
- package/dist/primitives.js +13 -1
- package/dist/user.d.ts +16 -16
- package/package.json +1 -1
- package/dist/device/recorder.d.ts +0 -12
- package/dist/device/recorder.js +0 -9
- package/dist/export.d.ts +0 -30
- package/dist/export.js +0 -14
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.nvrRecorderResponseSchemas = exports.nvrRecorderRequestSchemas = exports.sCameraLatestFrameResponse = exports.sCameraLatestFrameArgs = exports.QUERY_CAMERA_LATEST_FRAME = exports.sPreviewImageResponse = exports.sPreviewImageArgs = exports.QUERY_PREVIEW_IMAGE = exports.sRecordingsResponse = exports.sRecordingsByTimeRangeArgs = exports.QUERY_RECORDINGS_BY_TIME_RANGE = exports.sRecorderStateDto = exports.sRecorderSpecs = exports.NVR_RECORDER = void 0;
|
|
4
|
+
const api_1 = require("../api");
|
|
5
|
+
const primitives_1 = require("../primitives");
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
exports.NVR_RECORDER = 'nvr-recorder';
|
|
8
|
+
exports.sRecorderSpecs = zod_1.z.object({});
|
|
9
|
+
exports.sRecorderStateDto = zod_1.z.object({
|
|
10
|
+
connected: zod_1.z.boolean(),
|
|
11
|
+
});
|
|
12
|
+
// QUERIES
|
|
13
|
+
// -- Recordings by Time Range
|
|
14
|
+
exports.QUERY_RECORDINGS_BY_TIME_RANGE = 'cctv:recordings-by-time-range';
|
|
15
|
+
exports.sRecordingsByTimeRangeArgs = zod_1.z.object({
|
|
16
|
+
device: primitives_1.sDeviceParam,
|
|
17
|
+
timeFrom: zod_1.z.number(),
|
|
18
|
+
timeTo: zod_1.z.number(),
|
|
19
|
+
});
|
|
20
|
+
exports.sRecordingsResponse = zod_1.z.array(api_1.sRecordingSequence);
|
|
21
|
+
// -- Preview Image
|
|
22
|
+
exports.QUERY_PREVIEW_IMAGE = 'cctv:preview-image';
|
|
23
|
+
exports.sPreviewImageArgs = zod_1.z.object({
|
|
24
|
+
device: primitives_1.sDeviceParam,
|
|
25
|
+
time: zod_1.z.number(),
|
|
26
|
+
height: zod_1.z.number(),
|
|
27
|
+
});
|
|
28
|
+
exports.sPreviewImageResponse = primitives_1.sFileResponse;
|
|
29
|
+
// -- Camera Latest Frame
|
|
30
|
+
exports.QUERY_CAMERA_LATEST_FRAME = 'cctv:latest-frame';
|
|
31
|
+
exports.sCameraLatestFrameArgs = zod_1.z.object({
|
|
32
|
+
device: primitives_1.sDeviceParam,
|
|
33
|
+
width: zod_1.z.number(),
|
|
34
|
+
height: zod_1.z.number(),
|
|
35
|
+
});
|
|
36
|
+
exports.sCameraLatestFrameResponse = primitives_1.sFileResponse;
|
|
37
|
+
exports.nvrRecorderRequestSchemas = {
|
|
38
|
+
[exports.QUERY_RECORDINGS_BY_TIME_RANGE]: exports.sRecordingsByTimeRangeArgs,
|
|
39
|
+
[exports.QUERY_PREVIEW_IMAGE]: exports.sPreviewImageArgs,
|
|
40
|
+
[exports.QUERY_CAMERA_LATEST_FRAME]: exports.sCameraLatestFrameArgs,
|
|
41
|
+
};
|
|
42
|
+
// Dictionary of response schemas by query type
|
|
43
|
+
exports.nvrRecorderResponseSchemas = {
|
|
44
|
+
[exports.QUERY_RECORDINGS_BY_TIME_RANGE]: exports.sRecordingsResponse,
|
|
45
|
+
[exports.QUERY_PREVIEW_IMAGE]: exports.sPreviewImageResponse,
|
|
46
|
+
[exports.QUERY_CAMERA_LATEST_FRAME]: exports.sCameraLatestFrameResponse,
|
|
47
|
+
};
|
|
@@ -184,20 +184,20 @@ export declare const sPersonIn: z.ZodObject<{
|
|
|
184
184
|
personId: string;
|
|
185
185
|
securityChecked: boolean;
|
|
186
186
|
zoneId: string | null;
|
|
187
|
+
personType: string;
|
|
187
188
|
personFirstName: string;
|
|
188
189
|
personLastName: string;
|
|
189
190
|
personAvatarId: string | null;
|
|
190
|
-
personType: string;
|
|
191
191
|
personPosition: string | null;
|
|
192
192
|
}, {
|
|
193
193
|
kind: "person-in";
|
|
194
194
|
personId: string;
|
|
195
195
|
securityChecked: boolean;
|
|
196
196
|
zoneId: string | null;
|
|
197
|
+
personType: string;
|
|
197
198
|
personFirstName: string;
|
|
198
199
|
personLastName: string;
|
|
199
200
|
personAvatarId: string | null;
|
|
200
|
-
personType: string;
|
|
201
201
|
personPosition: string | null;
|
|
202
202
|
}>;
|
|
203
203
|
export declare const sPersonOut: z.ZodObject<{
|
|
@@ -217,10 +217,10 @@ export declare const sPersonOut: z.ZodObject<{
|
|
|
217
217
|
securityChecked: boolean;
|
|
218
218
|
isLeave: boolean;
|
|
219
219
|
zoneId: string | null;
|
|
220
|
+
personType: string;
|
|
220
221
|
personFirstName: string;
|
|
221
222
|
personLastName: string;
|
|
222
223
|
personAvatarId: string | null;
|
|
223
|
-
personType: string;
|
|
224
224
|
personPosition: string | null;
|
|
225
225
|
}, {
|
|
226
226
|
kind: "person-out";
|
|
@@ -228,10 +228,10 @@ export declare const sPersonOut: z.ZodObject<{
|
|
|
228
228
|
securityChecked: boolean;
|
|
229
229
|
isLeave: boolean;
|
|
230
230
|
zoneId: string | null;
|
|
231
|
+
personType: string;
|
|
231
232
|
personFirstName: string;
|
|
232
233
|
personLastName: string;
|
|
233
234
|
personAvatarId: string | null;
|
|
234
|
-
personType: string;
|
|
235
235
|
personPosition: string | null;
|
|
236
236
|
}>;
|
|
237
237
|
export declare const presenceTrackerEventSchemaByKind: {
|
|
@@ -250,20 +250,20 @@ export declare const presenceTrackerEventSchemaByKind: {
|
|
|
250
250
|
personId: string;
|
|
251
251
|
securityChecked: boolean;
|
|
252
252
|
zoneId: string | null;
|
|
253
|
+
personType: string;
|
|
253
254
|
personFirstName: string;
|
|
254
255
|
personLastName: string;
|
|
255
256
|
personAvatarId: string | null;
|
|
256
|
-
personType: string;
|
|
257
257
|
personPosition: string | null;
|
|
258
258
|
}, {
|
|
259
259
|
kind: "person-in";
|
|
260
260
|
personId: string;
|
|
261
261
|
securityChecked: boolean;
|
|
262
262
|
zoneId: string | null;
|
|
263
|
+
personType: string;
|
|
263
264
|
personFirstName: string;
|
|
264
265
|
personLastName: string;
|
|
265
266
|
personAvatarId: string | null;
|
|
266
|
-
personType: string;
|
|
267
267
|
personPosition: string | null;
|
|
268
268
|
}>;
|
|
269
269
|
readonly 'person-out': z.ZodObject<{
|
|
@@ -283,10 +283,10 @@ export declare const presenceTrackerEventSchemaByKind: {
|
|
|
283
283
|
securityChecked: boolean;
|
|
284
284
|
isLeave: boolean;
|
|
285
285
|
zoneId: string | null;
|
|
286
|
+
personType: string;
|
|
286
287
|
personFirstName: string;
|
|
287
288
|
personLastName: string;
|
|
288
289
|
personAvatarId: string | null;
|
|
289
|
-
personType: string;
|
|
290
290
|
personPosition: string | null;
|
|
291
291
|
}, {
|
|
292
292
|
kind: "person-out";
|
|
@@ -294,10 +294,10 @@ export declare const presenceTrackerEventSchemaByKind: {
|
|
|
294
294
|
securityChecked: boolean;
|
|
295
295
|
isLeave: boolean;
|
|
296
296
|
zoneId: string | null;
|
|
297
|
+
personType: string;
|
|
297
298
|
personFirstName: string;
|
|
298
299
|
personLastName: string;
|
|
299
300
|
personAvatarId: string | null;
|
|
300
|
-
personType: string;
|
|
301
301
|
personPosition: string | null;
|
|
302
302
|
}>;
|
|
303
303
|
};
|
package/dist/device-event.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { PresenceTrackerEvent } from './device/presence-tracker';
|
|
|
10
10
|
import { ReaderEvent } from './device/reader/index';
|
|
11
11
|
import { ServerEvent } from './device/server';
|
|
12
12
|
import { DeviceType } from './device/any-device';
|
|
13
|
+
import { NvrExporterEvent } from './device/nvr-exporter';
|
|
13
14
|
export interface DeviceCommandTriggered {
|
|
14
15
|
kind: 'device-command';
|
|
15
16
|
userId?: string;
|
|
@@ -32,7 +33,7 @@ export interface DeviceDisconnectedEvent {
|
|
|
32
33
|
kind: 'device-disconnected';
|
|
33
34
|
clientId?: number;
|
|
34
35
|
}
|
|
35
|
-
export type AnyDeviceEvent = DeviceCommandTriggered | CameraEvent | DoorEvent | AlarmEvent | MotionDetectedEvent | ReaderEvent | PanicButtonEvent | DeviceConnectedEvent | DeviceDisconnectedEvent | IntercomTerminalEvent | ServerEvent | DeviceGatewayEvent | PresenceTrackerEvent | IoBoardEvent;
|
|
36
|
+
export type AnyDeviceEvent = DeviceCommandTriggered | CameraEvent | DoorEvent | AlarmEvent | MotionDetectedEvent | ReaderEvent | PanicButtonEvent | DeviceConnectedEvent | DeviceDisconnectedEvent | IntercomTerminalEvent | ServerEvent | DeviceGatewayEvent | PresenceTrackerEvent | IoBoardEvent | NvrExporterEvent;
|
|
36
37
|
export declare const sEventHeader: z.ZodObject<{
|
|
37
38
|
id: z.ZodString;
|
|
38
39
|
timestamp: z.ZodNumber;
|
|
@@ -60,6 +61,29 @@ export declare const eventSchemaByKind: {
|
|
|
60
61
|
}, {
|
|
61
62
|
kind: "motion-detected";
|
|
62
63
|
}>;
|
|
64
|
+
'nvr-export-started': z.ZodObject<{
|
|
65
|
+
kind: z.ZodLiteral<"nvr-export-started">;
|
|
66
|
+
exportId: z.ZodString;
|
|
67
|
+
requestId: z.ZodString;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
kind: "nvr-export-started";
|
|
70
|
+
requestId: string;
|
|
71
|
+
exportId: string;
|
|
72
|
+
}, {
|
|
73
|
+
kind: "nvr-export-started";
|
|
74
|
+
requestId: string;
|
|
75
|
+
exportId: string;
|
|
76
|
+
}>;
|
|
77
|
+
'nvr-export-deleted': z.ZodObject<{
|
|
78
|
+
kind: z.ZodLiteral<"nvr-export-deleted">;
|
|
79
|
+
exportId: z.ZodString;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
kind: "nvr-export-deleted";
|
|
82
|
+
exportId: string;
|
|
83
|
+
}, {
|
|
84
|
+
kind: "nvr-export-deleted";
|
|
85
|
+
exportId: string;
|
|
86
|
+
}>;
|
|
63
87
|
'reader-auth': z.ZodObject<{
|
|
64
88
|
kind: z.ZodLiteral<"reader-auth">;
|
|
65
89
|
token: z.ZodNullable<z.ZodString>;
|
|
@@ -91,20 +115,20 @@ export declare const eventSchemaByKind: {
|
|
|
91
115
|
personId: string;
|
|
92
116
|
securityChecked: boolean;
|
|
93
117
|
zoneId: string | null;
|
|
118
|
+
personType: string;
|
|
94
119
|
personFirstName: string;
|
|
95
120
|
personLastName: string;
|
|
96
121
|
personAvatarId: string | null;
|
|
97
|
-
personType: string;
|
|
98
122
|
personPosition: string | null;
|
|
99
123
|
}, {
|
|
100
124
|
kind: "person-in";
|
|
101
125
|
personId: string;
|
|
102
126
|
securityChecked: boolean;
|
|
103
127
|
zoneId: string | null;
|
|
128
|
+
personType: string;
|
|
104
129
|
personFirstName: string;
|
|
105
130
|
personLastName: string;
|
|
106
131
|
personAvatarId: string | null;
|
|
107
|
-
personType: string;
|
|
108
132
|
personPosition: string | null;
|
|
109
133
|
}>;
|
|
110
134
|
'person-out': z.ZodObject<{
|
|
@@ -124,10 +148,10 @@ export declare const eventSchemaByKind: {
|
|
|
124
148
|
securityChecked: boolean;
|
|
125
149
|
isLeave: boolean;
|
|
126
150
|
zoneId: string | null;
|
|
151
|
+
personType: string;
|
|
127
152
|
personFirstName: string;
|
|
128
153
|
personLastName: string;
|
|
129
154
|
personAvatarId: string | null;
|
|
130
|
-
personType: string;
|
|
131
155
|
personPosition: string | null;
|
|
132
156
|
}, {
|
|
133
157
|
kind: "person-out";
|
|
@@ -135,10 +159,10 @@ export declare const eventSchemaByKind: {
|
|
|
135
159
|
securityChecked: boolean;
|
|
136
160
|
isLeave: boolean;
|
|
137
161
|
zoneId: string | null;
|
|
162
|
+
personType: string;
|
|
138
163
|
personFirstName: string;
|
|
139
164
|
personLastName: string;
|
|
140
165
|
personAvatarId: string | null;
|
|
141
|
-
personType: string;
|
|
142
166
|
personPosition: string | null;
|
|
143
167
|
}>;
|
|
144
168
|
'panic-button-pressed': z.ZodObject<{
|
|
@@ -175,8 +199,8 @@ export declare const eventSchemaByKind: {
|
|
|
175
199
|
direction: "incoming" | "outgoing";
|
|
176
200
|
kind: "call-state-changed";
|
|
177
201
|
callId: string;
|
|
178
|
-
userId?: string | undefined;
|
|
179
202
|
peer?: string | undefined;
|
|
203
|
+
userId?: string | undefined;
|
|
180
204
|
sipAccount?: string | undefined;
|
|
181
205
|
sipCallId?: string | undefined;
|
|
182
206
|
}, {
|
|
@@ -184,8 +208,8 @@ export declare const eventSchemaByKind: {
|
|
|
184
208
|
direction: "incoming" | "outgoing";
|
|
185
209
|
kind: "call-state-changed";
|
|
186
210
|
callId: string;
|
|
187
|
-
userId?: string | undefined;
|
|
188
211
|
peer?: string | undefined;
|
|
212
|
+
userId?: string | undefined;
|
|
189
213
|
sipAccount?: string | undefined;
|
|
190
214
|
sipCallId?: string | undefined;
|
|
191
215
|
}>;
|
|
@@ -585,13 +609,13 @@ export declare const eventSchemaByKind: {
|
|
|
585
609
|
}, "strip", z.ZodTypeAny, {
|
|
586
610
|
kind: "alarm-acknowledged";
|
|
587
611
|
alarmId: string;
|
|
588
|
-
userId?: string | undefined;
|
|
589
612
|
personId?: string | undefined;
|
|
613
|
+
userId?: string | undefined;
|
|
590
614
|
}, {
|
|
591
615
|
kind: "alarm-acknowledged";
|
|
592
616
|
alarmId: string;
|
|
593
|
-
userId?: string | undefined;
|
|
594
617
|
personId?: string | undefined;
|
|
618
|
+
userId?: string | undefined;
|
|
595
619
|
}>;
|
|
596
620
|
'alarm-armed-all': z.ZodObject<{
|
|
597
621
|
kind: z.ZodLiteral<"alarm-armed-all">;
|
|
@@ -599,12 +623,12 @@ export declare const eventSchemaByKind: {
|
|
|
599
623
|
personId: z.ZodOptional<z.ZodString>;
|
|
600
624
|
}, "strip", z.ZodTypeAny, {
|
|
601
625
|
kind: "alarm-armed-all";
|
|
602
|
-
userId?: string | undefined;
|
|
603
626
|
personId?: string | undefined;
|
|
627
|
+
userId?: string | undefined;
|
|
604
628
|
}, {
|
|
605
629
|
kind: "alarm-armed-all";
|
|
606
|
-
userId?: string | undefined;
|
|
607
630
|
personId?: string | undefined;
|
|
631
|
+
userId?: string | undefined;
|
|
608
632
|
}>;
|
|
609
633
|
'alarm-disarmed-all': z.ZodObject<{
|
|
610
634
|
kind: z.ZodLiteral<"alarm-disarmed-all">;
|
|
@@ -612,12 +636,12 @@ export declare const eventSchemaByKind: {
|
|
|
612
636
|
personId: z.ZodOptional<z.ZodString>;
|
|
613
637
|
}, "strip", z.ZodTypeAny, {
|
|
614
638
|
kind: "alarm-disarmed-all";
|
|
615
|
-
userId?: string | undefined;
|
|
616
639
|
personId?: string | undefined;
|
|
640
|
+
userId?: string | undefined;
|
|
617
641
|
}, {
|
|
618
642
|
kind: "alarm-disarmed-all";
|
|
619
|
-
userId?: string | undefined;
|
|
620
643
|
personId?: string | undefined;
|
|
644
|
+
userId?: string | undefined;
|
|
621
645
|
}>;
|
|
622
646
|
'alarm-armed': z.ZodObject<{
|
|
623
647
|
kind: z.ZodLiteral<"alarm-armed">;
|
|
@@ -627,13 +651,13 @@ export declare const eventSchemaByKind: {
|
|
|
627
651
|
}, "strip", z.ZodTypeAny, {
|
|
628
652
|
kind: "alarm-armed";
|
|
629
653
|
subjects: string[];
|
|
630
|
-
userId?: string | undefined;
|
|
631
654
|
personId?: string | undefined;
|
|
655
|
+
userId?: string | undefined;
|
|
632
656
|
}, {
|
|
633
657
|
kind: "alarm-armed";
|
|
634
658
|
subjects: string[];
|
|
635
|
-
userId?: string | undefined;
|
|
636
659
|
personId?: string | undefined;
|
|
660
|
+
userId?: string | undefined;
|
|
637
661
|
}>;
|
|
638
662
|
'alarm-disarmed': z.ZodObject<{
|
|
639
663
|
kind: z.ZodLiteral<"alarm-disarmed">;
|
|
@@ -643,13 +667,13 @@ export declare const eventSchemaByKind: {
|
|
|
643
667
|
}, "strip", z.ZodTypeAny, {
|
|
644
668
|
kind: "alarm-disarmed";
|
|
645
669
|
subjects: string[];
|
|
646
|
-
userId?: string | undefined;
|
|
647
670
|
personId?: string | undefined;
|
|
671
|
+
userId?: string | undefined;
|
|
648
672
|
}, {
|
|
649
673
|
kind: "alarm-disarmed";
|
|
650
674
|
subjects: string[];
|
|
651
|
-
userId?: string | undefined;
|
|
652
675
|
personId?: string | undefined;
|
|
676
|
+
userId?: string | undefined;
|
|
653
677
|
}>;
|
|
654
678
|
'alarm-arm-released': z.ZodObject<{
|
|
655
679
|
kind: z.ZodLiteral<"alarm-arm-released">;
|
|
@@ -657,12 +681,12 @@ export declare const eventSchemaByKind: {
|
|
|
657
681
|
personId: z.ZodOptional<z.ZodString>;
|
|
658
682
|
}, "strip", z.ZodTypeAny, {
|
|
659
683
|
kind: "alarm-arm-released";
|
|
660
|
-
userId?: string | undefined;
|
|
661
684
|
personId?: string | undefined;
|
|
685
|
+
userId?: string | undefined;
|
|
662
686
|
}, {
|
|
663
687
|
kind: "alarm-arm-released";
|
|
664
|
-
userId?: string | undefined;
|
|
665
688
|
personId?: string | undefined;
|
|
689
|
+
userId?: string | undefined;
|
|
666
690
|
}>;
|
|
667
691
|
'alarm-rearmed': z.ZodObject<{
|
|
668
692
|
kind: z.ZodLiteral<"alarm-rearmed">;
|
package/dist/device-event.js
CHANGED
|
@@ -10,6 +10,7 @@ const io_board_1 = require("./device/io-board");
|
|
|
10
10
|
const panic_button_1 = require("./device/panic-button");
|
|
11
11
|
const presence_tracker_1 = require("./device/presence-tracker");
|
|
12
12
|
const index_1 = require("./device/reader/index");
|
|
13
|
+
const nvr_exporter_1 = require("./device/nvr-exporter");
|
|
13
14
|
exports.sMotionDetected = zod_1.z.object({
|
|
14
15
|
kind: zod_1.z.literal('motion-detected'),
|
|
15
16
|
});
|
|
@@ -62,6 +63,8 @@ exports.eventKindLabels = {
|
|
|
62
63
|
'agent-stopped': 'Agent Stopped',
|
|
63
64
|
'door-opened': 'Door Opened',
|
|
64
65
|
'door-closed': 'Door Closed',
|
|
66
|
+
'nvr-export-started': 'NVR Export Started',
|
|
67
|
+
'nvr-export-deleted': 'NVR Export Deleted',
|
|
65
68
|
};
|
|
66
69
|
exports.eventSchemaByKind = {
|
|
67
70
|
...alarm_1.alarmEventSchemasByKind,
|
|
@@ -72,6 +75,7 @@ exports.eventSchemaByKind = {
|
|
|
72
75
|
...panic_button_1.panicButtonEventSchemaByKind,
|
|
73
76
|
...presence_tracker_1.presenceTrackerEventSchemaByKind,
|
|
74
77
|
...index_1.readerEventSchemaByKind,
|
|
78
|
+
...nvr_exporter_1.nvrExporterEventSchemasByKind,
|
|
75
79
|
'motion-detected': exports.sMotionDetected,
|
|
76
80
|
};
|
|
77
81
|
exports.eventsByDeviceType = {
|
|
@@ -85,6 +89,7 @@ exports.eventsByDeviceType = {
|
|
|
85
89
|
'presence-tracker': Object.keys(presence_tracker_1.presenceTrackerEventSchemaByKind),
|
|
86
90
|
reader: Object.keys(index_1.readerEventSchemaByKind),
|
|
87
91
|
'motion-sensor': ['motion-detected'],
|
|
92
|
+
'nvr-exporter': Object.keys(nvr_exporter_1.nvrExporterEventSchemasByKind),
|
|
88
93
|
};
|
|
89
94
|
const isDeviceEvent = (event) => {
|
|
90
95
|
if (typeof event !== 'object' || event === null)
|