@awarevue/api-types 2.0.61 → 2.0.62
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.
|
@@ -20,12 +20,12 @@ export declare const sCommandError: z.ZodObject<{
|
|
|
20
20
|
error: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
22
|
timestamp: number;
|
|
23
|
-
requestId: string;
|
|
24
23
|
error: {};
|
|
24
|
+
requestId: string;
|
|
25
25
|
}, {
|
|
26
26
|
timestamp: number;
|
|
27
|
-
requestId: string;
|
|
28
27
|
error: {};
|
|
28
|
+
requestId: string;
|
|
29
29
|
}>;
|
|
30
30
|
export type CommandErrorPayload = z.infer<typeof sCommandError>;
|
|
31
31
|
export declare const sStateUpdate: z.ZodObject<{
|
|
@@ -2,11 +2,40 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const NVR_RECORDER = "nvr-recorder";
|
|
3
3
|
export declare const sRecorderSpecs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
4
4
|
export type RecorderSpecs = z.infer<typeof sRecorderSpecs>;
|
|
5
|
+
export declare const sRecorderStreamStateDto: z.ZodObject<{
|
|
6
|
+
upstream: z.ZodEnum<["connecting", "connected", "disconnected", "error"]>;
|
|
7
|
+
isRecording: z.ZodBoolean;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
upstream: "connecting" | "connected" | "disconnected" | "error";
|
|
10
|
+
isRecording: boolean;
|
|
11
|
+
}, {
|
|
12
|
+
upstream: "connecting" | "connected" | "disconnected" | "error";
|
|
13
|
+
isRecording: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
export type RecorderStreamStateDto = z.infer<typeof sRecorderStreamStateDto>;
|
|
5
16
|
export declare const sRecorderStateDto: z.ZodObject<{
|
|
6
17
|
connected: z.ZodBoolean;
|
|
18
|
+
cameras: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
19
|
+
upstream: z.ZodEnum<["connecting", "connected", "disconnected", "error"]>;
|
|
20
|
+
isRecording: z.ZodBoolean;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
upstream: "connecting" | "connected" | "disconnected" | "error";
|
|
23
|
+
isRecording: boolean;
|
|
24
|
+
}, {
|
|
25
|
+
upstream: "connecting" | "connected" | "disconnected" | "error";
|
|
26
|
+
isRecording: boolean;
|
|
27
|
+
}>>;
|
|
7
28
|
}, "strip", z.ZodTypeAny, {
|
|
8
29
|
connected: boolean;
|
|
30
|
+
cameras: Record<string, {
|
|
31
|
+
upstream: "connecting" | "connected" | "disconnected" | "error";
|
|
32
|
+
isRecording: boolean;
|
|
33
|
+
}>;
|
|
9
34
|
}, {
|
|
10
35
|
connected: boolean;
|
|
36
|
+
cameras: Record<string, {
|
|
37
|
+
upstream: "connecting" | "connected" | "disconnected" | "error";
|
|
38
|
+
isRecording: boolean;
|
|
39
|
+
}>;
|
|
11
40
|
}>;
|
|
12
41
|
export type RecorderStateDto = z.infer<typeof sRecorderStateDto>;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sRecorderStateDto = exports.sRecorderSpecs = exports.NVR_RECORDER = void 0;
|
|
3
|
+
exports.sRecorderStateDto = exports.sRecorderStreamStateDto = exports.sRecorderSpecs = exports.NVR_RECORDER = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.NVR_RECORDER = 'nvr-recorder';
|
|
6
6
|
exports.sRecorderSpecs = zod_1.z.object({});
|
|
7
|
+
exports.sRecorderStreamStateDto = zod_1.z.object({
|
|
8
|
+
upstream: zod_1.z.enum(['connecting', 'connected', 'disconnected', 'error']),
|
|
9
|
+
isRecording: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
7
11
|
exports.sRecorderStateDto = zod_1.z.object({
|
|
8
12
|
connected: zod_1.z.boolean(),
|
|
13
|
+
cameras: zod_1.z.record(zod_1.z.string(), exports.sRecorderStreamStateDto),
|
|
9
14
|
});
|
package/dist/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.62",
|
|
8
8
|
"description": "Common types between backend, agent(s) and frontend(s)",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.62",
|
|
8
8
|
"description": "Common types between backend, agent(s) and frontend(s)",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|