@awarevue/api-types 2.0.18 → 2.0.20
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/queries/all.js
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.responseSchemasByType = exports.requestSchemasByType = void 0;
|
|
3
|
+
exports.responseSchemasByType = exports.requestSchemasByType = exports.sEventCapsQueryResponse = exports.QUERY_EVENT_CAPS = exports.sEventCapsQueryArgs = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
4
5
|
const camera_1 = require("./camera");
|
|
5
6
|
const nvr_analytics_server_1 = require("./nvr-analytics-server");
|
|
6
7
|
const nvr_exporter_1 = require("./nvr-exporter");
|
|
7
8
|
const nvr_recorder_1 = require("./nvr-recorder");
|
|
9
|
+
// queries that apply to all devices
|
|
10
|
+
exports.sEventCapsQueryArgs = {};
|
|
11
|
+
exports.QUERY_EVENT_CAPS = 'device:event-caps';
|
|
12
|
+
exports.sEventCapsQueryResponse = zod_1.z.array(zod_1.z.string());
|
|
8
13
|
// Dictionary of request schemas by query type
|
|
9
14
|
exports.requestSchemasByType = {
|
|
10
15
|
...nvr_recorder_1.nvrRecorderRequestSchemas,
|
|
11
16
|
...nvr_exporter_1.nvrExporterRequestSchemas,
|
|
12
17
|
...nvr_analytics_server_1.nvrAnalyticsRequestSchemas,
|
|
13
18
|
...camera_1.cameraRequestSchemas,
|
|
19
|
+
[exports.QUERY_EVENT_CAPS]: exports.sEventCapsQueryArgs,
|
|
14
20
|
};
|
|
15
21
|
// Dictionary of response schemas by query type
|
|
16
22
|
exports.responseSchemasByType = {
|
|
@@ -18,4 +24,5 @@ exports.responseSchemasByType = {
|
|
|
18
24
|
...nvr_exporter_1.nvrExporterResponseSchemas,
|
|
19
25
|
...nvr_analytics_server_1.nvrAnalyticsResponseSchemas,
|
|
20
26
|
...camera_1.cameraResponseSchemas,
|
|
27
|
+
[exports.QUERY_EVENT_CAPS]: exports.sEventCapsQueryResponse,
|
|
21
28
|
};
|
|
@@ -159,6 +159,11 @@ export declare const sObjectThumbnailResponse: z.ZodNullable<z.ZodObject<{
|
|
|
159
159
|
}>>;
|
|
160
160
|
export type ObjectThumbnailArgs = z.infer<typeof sObjectThumbnailArgs>;
|
|
161
161
|
export type ObjectThumbnailResponse = z.infer<typeof sObjectThumbnailResponse>;
|
|
162
|
+
export declare const QUERY_OBJECT_LABELS = "cctv:object-labels";
|
|
163
|
+
export declare const sObjectLabelsArgs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
164
|
+
export type ObjectLabelsArgs = z.infer<typeof sObjectLabelsArgs>;
|
|
165
|
+
export declare const sObjectLabelResponse: z.ZodArray<z.ZodString, "many">;
|
|
166
|
+
export type ObjectLabelsResponse = z.infer<typeof sObjectLabelResponse>;
|
|
162
167
|
export declare const nvrAnalyticsRequestSchemas: {
|
|
163
168
|
readonly "cctv:media-search": z.ZodObject<{
|
|
164
169
|
devices: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
|
|
@@ -221,6 +226,7 @@ export declare const nvrAnalyticsRequestSchemas: {
|
|
|
221
226
|
}, {
|
|
222
227
|
providerAssignedRef: string;
|
|
223
228
|
}>;
|
|
229
|
+
readonly "cctv:object-labels": z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
224
230
|
};
|
|
225
231
|
export declare const nvrAnalyticsResponseSchemas: {
|
|
226
232
|
readonly "cctv:media-search": z.ZodArray<z.ZodObject<{
|
|
@@ -281,16 +287,19 @@ export declare const nvrAnalyticsResponseSchemas: {
|
|
|
281
287
|
data: string;
|
|
282
288
|
mimeType: string;
|
|
283
289
|
}>>;
|
|
290
|
+
readonly "cctv:object-labels": z.ZodArray<z.ZodString, "many">;
|
|
284
291
|
};
|
|
285
292
|
export type NvrAnalyticsQueryRequestMap = {
|
|
286
293
|
[QUERY_MEDIA_SEARCH]: MediaSearchArgs;
|
|
287
294
|
[QUERY_SCENE_PREVIEW_CLIP]: ScenePreviewClipArgs;
|
|
288
295
|
[QUERY_OBJECT_SNAPSHOT]: ObjectSnapshotArgs;
|
|
289
296
|
[QUERY_OBJECT_THUMBNAIL]: ObjectThumbnailArgs;
|
|
297
|
+
[QUERY_OBJECT_LABELS]: ObjectLabelsArgs;
|
|
290
298
|
};
|
|
291
299
|
export type NvrAnalyticsQueryResponseMap = {
|
|
292
300
|
[QUERY_MEDIA_SEARCH]: MediaSearchResponse;
|
|
293
301
|
[QUERY_SCENE_PREVIEW_CLIP]: ScenePreviewClipResponse;
|
|
294
302
|
[QUERY_OBJECT_SNAPSHOT]: ObjectSnapshotResponse;
|
|
295
303
|
[QUERY_OBJECT_THUMBNAIL]: ObjectThumbnailResponse;
|
|
304
|
+
[QUERY_OBJECT_LABELS]: ObjectLabelsResponse;
|
|
296
305
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nvrAnalyticsResponseSchemas = exports.nvrAnalyticsRequestSchemas = exports.sObjectThumbnailResponse = exports.sObjectThumbnailArgs = exports.QUERY_OBJECT_THUMBNAIL = exports.sObjectSnapshotResponse = exports.sObjectSnapshotArgs = exports.QUERY_OBJECT_SNAPSHOT = exports.sScenePreviewClipResponse = exports.sScenePreviewClipArgs = exports.QUERY_SCENE_PREVIEW_CLIP = exports.sMediaSearchResponse = exports.sMediaSearchMatch = exports.sMediaSearchArgs = exports.QUERY_MEDIA_SEARCH = void 0;
|
|
3
|
+
exports.nvrAnalyticsResponseSchemas = exports.nvrAnalyticsRequestSchemas = exports.sObjectLabelResponse = exports.sObjectLabelsArgs = exports.QUERY_OBJECT_LABELS = exports.sObjectThumbnailResponse = exports.sObjectThumbnailArgs = exports.QUERY_OBJECT_THUMBNAIL = exports.sObjectSnapshotResponse = exports.sObjectSnapshotArgs = exports.QUERY_OBJECT_SNAPSHOT = exports.sScenePreviewClipResponse = exports.sScenePreviewClipArgs = exports.QUERY_SCENE_PREVIEW_CLIP = exports.sMediaSearchResponse = exports.sMediaSearchMatch = exports.sMediaSearchArgs = exports.QUERY_MEDIA_SEARCH = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const primitives_1 = require("../primitives");
|
|
6
6
|
const api_1 = require("../api");
|
|
@@ -52,12 +52,19 @@ exports.sObjectThumbnailArgs = zod_1.z.object({
|
|
|
52
52
|
providerAssignedRef: zod_1.z.string(),
|
|
53
53
|
});
|
|
54
54
|
exports.sObjectThumbnailResponse = primitives_1.sFileResponse;
|
|
55
|
+
// -- Object Labels
|
|
56
|
+
exports.QUERY_OBJECT_LABELS = 'cctv:object-labels';
|
|
57
|
+
// (No args or response schema defined for this query in the provided code)
|
|
58
|
+
exports.sObjectLabelsArgs = zod_1.z.object({});
|
|
59
|
+
exports.sObjectLabelResponse = zod_1.z.array(zod_1.z.string());
|
|
60
|
+
// SCHEMA DICTIONARIES AND TYPE MAPS
|
|
55
61
|
// Dictionary of request schemas by query type
|
|
56
62
|
exports.nvrAnalyticsRequestSchemas = {
|
|
57
63
|
[exports.QUERY_MEDIA_SEARCH]: exports.sMediaSearchArgs,
|
|
58
64
|
[exports.QUERY_SCENE_PREVIEW_CLIP]: exports.sScenePreviewClipArgs,
|
|
59
65
|
[exports.QUERY_OBJECT_SNAPSHOT]: exports.sObjectSnapshotArgs,
|
|
60
66
|
[exports.QUERY_OBJECT_THUMBNAIL]: exports.sObjectThumbnailArgs,
|
|
67
|
+
[exports.QUERY_OBJECT_LABELS]: exports.sObjectLabelsArgs,
|
|
61
68
|
};
|
|
62
69
|
// Dictionary of response schemas by query type
|
|
63
70
|
exports.nvrAnalyticsResponseSchemas = {
|
|
@@ -65,4 +72,5 @@ exports.nvrAnalyticsResponseSchemas = {
|
|
|
65
72
|
[exports.QUERY_SCENE_PREVIEW_CLIP]: exports.sScenePreviewClipResponse,
|
|
66
73
|
[exports.QUERY_OBJECT_SNAPSHOT]: exports.sObjectSnapshotResponse,
|
|
67
74
|
[exports.QUERY_OBJECT_THUMBNAIL]: exports.sObjectThumbnailResponse,
|
|
75
|
+
[exports.QUERY_OBJECT_LABELS]: exports.sObjectLabelResponse,
|
|
68
76
|
};
|