@awarevue/api-types 2.0.19 → 2.0.21

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,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 = zod_1.z.object({});
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",