@awarevue/api-types 1.0.66 → 1.0.68
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.responseSchemasByType = exports.requestSchemasByType = exports.sObjectThumbnailResponse = exports.sObjectSnapshotResponse = exports.sScenePreviewClipResponse = exports.sCameraLatestFrameResponse = exports.sPreviewImageResponse = exports.sRtspDataResponse = exports.sMediaSearchResponse = exports.sMediaSearchMatch = exports.sRecordingsResponse = exports.sObjectThumbnailArgs = exports.sObjectSnapshotArgs = exports.sScenePreviewClipArgs = exports.sCameraLatestFrameArgs = exports.sPreviewImageArgs = exports.sRtspDataArgs = exports.sMediaSearchArgs = exports.sRecordingsByTimeRangeArgs = exports.QUERY_OBJECT_THUMBNAIL = exports.QUERY_OBJECT_SNAPSHOT = exports.QUERY_SCENE_PREVIEW_CLIP = exports.QUERY_CAMERA_LATEST_FRAME = exports.QUERY_PREVIEW_IMAGE = exports.QUERY_RTSP_DATA = exports.QUERY_MEDIA_SEARCH = exports.QUERY_RECORDINGS_BY_TIME_RANGE = void 0;
|
|
4
|
-
const api_1 = require("
|
|
4
|
+
const api_1 = require("../api");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
// Query constants
|
|
7
7
|
exports.QUERY_RECORDINGS_BY_TIME_RANGE = 'cctv:recordings-by-time-range';
|
package/dist/device-event.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { PanicButtonEvent } from './device/panic-button';
|
|
|
9
9
|
import { PresenceTrackerEvent } from './device/presence-tracker';
|
|
10
10
|
import { ReaderEvent } from './device/reader/index';
|
|
11
11
|
import { ServerEvent } from './device/server';
|
|
12
|
+
import { DeviceType } from './device/any-device';
|
|
12
13
|
export interface DeviceCommandTriggered {
|
|
13
14
|
kind: 'device-command';
|
|
14
15
|
userId?: string;
|
|
@@ -660,6 +661,7 @@ export declare const eventSchemaByKind: {
|
|
|
660
661
|
kind: "alarm-rearmed";
|
|
661
662
|
}>;
|
|
662
663
|
};
|
|
664
|
+
export declare const eventsByDeviceType: Partial<Record<DeviceType, DeviceEvent['kind'][]>>;
|
|
663
665
|
export declare const isDeviceEvent: (event: unknown) => event is AnyDeviceEvent;
|
|
664
666
|
export interface EventSearchQueryDto {
|
|
665
667
|
deviceId?: string[];
|
package/dist/device-event.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isDeviceEvent = exports.eventSchemaByKind = exports.eventKindLabels = exports.sEventHeader = void 0;
|
|
3
|
+
exports.isDeviceEvent = exports.eventsByDeviceType = exports.eventSchemaByKind = exports.eventKindLabels = exports.sEventHeader = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const alarm_1 = require("./device/alarm");
|
|
6
6
|
const camera_1 = require("./device/camera");
|
|
@@ -69,6 +69,18 @@ exports.eventSchemaByKind = {
|
|
|
69
69
|
...presence_tracker_1.presenceTrackerEventSchemaByKind,
|
|
70
70
|
...index_1.readerEventSchemaByKind,
|
|
71
71
|
};
|
|
72
|
+
exports.eventsByDeviceType = {
|
|
73
|
+
camera: [
|
|
74
|
+
...Object.keys(camera_1.cameraEventSchemasByKind),
|
|
75
|
+
'motion-detected',
|
|
76
|
+
],
|
|
77
|
+
door: Object.keys(door_1.doorEventSchemaByKind),
|
|
78
|
+
'io-board': Object.keys(io_board_1.ioBoardEventSchemaByKind),
|
|
79
|
+
'panic-button': Object.keys(panic_button_1.panicButtonEventSchemaByKind),
|
|
80
|
+
'presence-tracker': Object.keys(presence_tracker_1.presenceTrackerEventSchemaByKind),
|
|
81
|
+
reader: Object.keys(index_1.readerEventSchemaByKind),
|
|
82
|
+
'motion-sensor': ['motion-detected'],
|
|
83
|
+
};
|
|
72
84
|
const isDeviceEvent = (event) => {
|
|
73
85
|
if (typeof event !== 'object' || event === null)
|
|
74
86
|
return false;
|
package/dist/package.json
CHANGED