@awarevue/api-types 2.0.47 → 2.0.48
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/api/rest/camera.d.ts +55 -0
- package/dist/api/rest/camera.js +24 -0
- package/dist/api/rest/index.d.ts +1 -0
- package/dist/api/rest/index.js +1 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sAddCameraRq: z.ZodObject<{
|
|
3
|
+
displayName: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
displayName: string;
|
|
6
|
+
}, {
|
|
7
|
+
displayName: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const sAddCameraRs: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
id: string;
|
|
13
|
+
}, {
|
|
14
|
+
id: string;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const sAddCameraStreamRq: z.ZodObject<{
|
|
17
|
+
cameraId: z.ZodString;
|
|
18
|
+
displayName: z.ZodString;
|
|
19
|
+
rtspUrl: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
displayName: string;
|
|
22
|
+
rtspUrl: string | null;
|
|
23
|
+
cameraId: string;
|
|
24
|
+
}, {
|
|
25
|
+
displayName: string;
|
|
26
|
+
rtspUrl: string | null;
|
|
27
|
+
cameraId: string;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const sAddCameraStreamRs: z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
ffmpegCommandTemplate: z.ZodString;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
id: string;
|
|
34
|
+
ffmpegCommandTemplate: string;
|
|
35
|
+
}, {
|
|
36
|
+
id: string;
|
|
37
|
+
ffmpegCommandTemplate: string;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const sDeleteCameraStreamRq: z.ZodObject<{
|
|
40
|
+
cameraId: z.ZodString;
|
|
41
|
+
streamId: z.ZodString;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
streamId: string;
|
|
44
|
+
cameraId: string;
|
|
45
|
+
}, {
|
|
46
|
+
streamId: string;
|
|
47
|
+
cameraId: string;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const sDeleteCameraStreamRs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
50
|
+
export type AddCameraRq = z.infer<typeof sAddCameraRq>;
|
|
51
|
+
export type AddCameraRs = z.infer<typeof sAddCameraRs>;
|
|
52
|
+
export type AddCameraStreamRq = z.infer<typeof sAddCameraStreamRq>;
|
|
53
|
+
export type AddCameraStreamRs = z.infer<typeof sAddCameraStreamRs>;
|
|
54
|
+
export type DeleteCameraStreamRq = z.infer<typeof sDeleteCameraStreamRq>;
|
|
55
|
+
export type DeleteCameraStreamRs = z.infer<typeof sDeleteCameraStreamRs>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sDeleteCameraStreamRs = exports.sDeleteCameraStreamRq = exports.sAddCameraStreamRs = exports.sAddCameraStreamRq = exports.sAddCameraRs = exports.sAddCameraRq = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.sAddCameraRq = zod_1.z.object({
|
|
6
|
+
displayName: zod_1.z.string().nonempty(),
|
|
7
|
+
});
|
|
8
|
+
exports.sAddCameraRs = zod_1.z.object({
|
|
9
|
+
id: zod_1.z.string().nonempty(),
|
|
10
|
+
});
|
|
11
|
+
exports.sAddCameraStreamRq = zod_1.z.object({
|
|
12
|
+
cameraId: zod_1.z.string().nonempty(),
|
|
13
|
+
displayName: zod_1.z.string().nonempty(),
|
|
14
|
+
rtspUrl: zod_1.z.string().nonempty().nullable(),
|
|
15
|
+
});
|
|
16
|
+
exports.sAddCameraStreamRs = zod_1.z.object({
|
|
17
|
+
id: zod_1.z.string().nonempty(),
|
|
18
|
+
ffmpegCommandTemplate: zod_1.z.string().nonempty(),
|
|
19
|
+
});
|
|
20
|
+
exports.sDeleteCameraStreamRq = zod_1.z.object({
|
|
21
|
+
cameraId: zod_1.z.string().nonempty(),
|
|
22
|
+
streamId: zod_1.z.string().nonempty(),
|
|
23
|
+
});
|
|
24
|
+
exports.sDeleteCameraStreamRs = zod_1.z.object({});
|
package/dist/api/rest/index.d.ts
CHANGED
package/dist/api/rest/index.js
CHANGED
package/dist/package.json
CHANGED