@awarevue/api-types 2.0.130 → 2.0.132
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/queries/all.d.ts +2 -1
- package/dist/api/queries/nvr-exporter.d.ts +8 -3
- package/dist/api/queries/nvr-exporter.js +10 -2
- package/dist/api/ws/web-rtc-signaling.d.ts +6 -3
- package/dist/api/ws/web-rtc-signaling.js +2 -1
- package/dist/objects/device/nvr-recorder.d.ts +1 -0
- package/dist/objects/device/nvr-recorder.js +1 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -620,7 +620,8 @@ export declare const responseSchemasByType: {
|
|
|
620
620
|
endTime: z.ZodNumber;
|
|
621
621
|
startTime: z.ZodNumber;
|
|
622
622
|
id: z.ZodString;
|
|
623
|
-
status: z.
|
|
623
|
+
status: z.ZodLiteral<"error" | "in-progress" | "ready" | "cancelled" | "other">;
|
|
624
|
+
statusRaw: z.ZodOptional<z.ZodString>;
|
|
624
625
|
progress: z.ZodOptional<z.ZodNumber>;
|
|
625
626
|
size: z.ZodOptional<z.ZodString>;
|
|
626
627
|
expires: z.ZodOptional<z.ZodNumber>;
|
|
@@ -11,12 +11,15 @@ export type GetExportLinkArgs = z.infer<typeof sGetExportLinkArgs>;
|
|
|
11
11
|
export type GetExportLinkResponse = z.infer<typeof sGetExportLinkResponse>;
|
|
12
12
|
export declare const QUERY_GET_EXPORTS = "cctv:get-exports";
|
|
13
13
|
export declare const sGetExportsArgs: z.ZodObject<{}, z.core.$strip>;
|
|
14
|
+
export declare const sExportStatus: z.ZodLiteral<"error" | "in-progress" | "ready" | "cancelled" | "other">;
|
|
15
|
+
export type ExportStatus = z.infer<typeof sExportStatus>;
|
|
14
16
|
export declare const sExportItem: z.ZodObject<{
|
|
15
17
|
name: z.ZodString;
|
|
16
18
|
endTime: z.ZodNumber;
|
|
17
19
|
startTime: z.ZodNumber;
|
|
18
20
|
id: z.ZodString;
|
|
19
|
-
status: z.
|
|
21
|
+
status: z.ZodLiteral<"error" | "in-progress" | "ready" | "cancelled" | "other">;
|
|
22
|
+
statusRaw: z.ZodOptional<z.ZodString>;
|
|
20
23
|
progress: z.ZodOptional<z.ZodNumber>;
|
|
21
24
|
size: z.ZodOptional<z.ZodString>;
|
|
22
25
|
expires: z.ZodOptional<z.ZodNumber>;
|
|
@@ -26,7 +29,8 @@ export declare const sGetExportsResponse: z.ZodArray<z.ZodObject<{
|
|
|
26
29
|
endTime: z.ZodNumber;
|
|
27
30
|
startTime: z.ZodNumber;
|
|
28
31
|
id: z.ZodString;
|
|
29
|
-
status: z.
|
|
32
|
+
status: z.ZodLiteral<"error" | "in-progress" | "ready" | "cancelled" | "other">;
|
|
33
|
+
statusRaw: z.ZodOptional<z.ZodString>;
|
|
30
34
|
progress: z.ZodOptional<z.ZodNumber>;
|
|
31
35
|
size: z.ZodOptional<z.ZodString>;
|
|
32
36
|
expires: z.ZodOptional<z.ZodNumber>;
|
|
@@ -50,7 +54,8 @@ export declare const nvrExporterResponseSchemas: {
|
|
|
50
54
|
endTime: z.ZodNumber;
|
|
51
55
|
startTime: z.ZodNumber;
|
|
52
56
|
id: z.ZodString;
|
|
53
|
-
status: z.
|
|
57
|
+
status: z.ZodLiteral<"error" | "in-progress" | "ready" | "cancelled" | "other">;
|
|
58
|
+
statusRaw: z.ZodOptional<z.ZodString>;
|
|
54
59
|
progress: z.ZodOptional<z.ZodNumber>;
|
|
55
60
|
size: z.ZodOptional<z.ZodString>;
|
|
56
61
|
expires: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nvrExporterResponseSchemas = exports.nvrExporterRequestSchemas = exports.sGetExportsResponse = exports.sExportItem = exports.sGetExportsArgs = exports.QUERY_GET_EXPORTS = exports.sGetExportLinkResponse = exports.sGetExportLinkArgs = exports.QUERY_GET_EXPORT_LINK = void 0;
|
|
3
|
+
exports.nvrExporterResponseSchemas = exports.nvrExporterRequestSchemas = exports.sGetExportsResponse = exports.sExportItem = exports.sExportStatus = exports.sGetExportsArgs = exports.QUERY_GET_EXPORTS = exports.sGetExportLinkResponse = exports.sGetExportLinkArgs = exports.QUERY_GET_EXPORT_LINK = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
// QUERIES
|
|
6
6
|
// -- Get Export Link
|
|
@@ -15,12 +15,20 @@ exports.sGetExportLinkResponse = zod_1.z.object({
|
|
|
15
15
|
// -- Get Exports
|
|
16
16
|
exports.QUERY_GET_EXPORTS = 'cctv:get-exports';
|
|
17
17
|
exports.sGetExportsArgs = zod_1.z.object({});
|
|
18
|
+
exports.sExportStatus = zod_1.z.literal([
|
|
19
|
+
'in-progress',
|
|
20
|
+
'ready',
|
|
21
|
+
'cancelled',
|
|
22
|
+
'error',
|
|
23
|
+
'other',
|
|
24
|
+
]);
|
|
18
25
|
exports.sExportItem = zod_1.z.object({
|
|
19
26
|
name: zod_1.z.string().nonempty(),
|
|
20
27
|
endTime: zod_1.z.number().int().nonnegative(),
|
|
21
28
|
startTime: zod_1.z.number().int().nonnegative(),
|
|
22
29
|
id: zod_1.z.string().nonempty(),
|
|
23
|
-
status:
|
|
30
|
+
status: exports.sExportStatus,
|
|
31
|
+
statusRaw: zod_1.z.string().optional(),
|
|
24
32
|
progress: zod_1.z.number().optional(),
|
|
25
33
|
size: zod_1.z.string().nonempty().optional(),
|
|
26
34
|
expires: zod_1.z.number().int().nonnegative().optional(),
|
|
@@ -18,7 +18,8 @@ export declare const sWebRtcPlaybackParams: z.ZodObject<{
|
|
|
18
18
|
export type WebRtcPlaybackParams = z.infer<typeof sWebRtcPlaybackParams>;
|
|
19
19
|
export declare const sWebRtcPlaybackTrackParams: z.ZodObject<{
|
|
20
20
|
controllerId: z.ZodString;
|
|
21
|
-
|
|
21
|
+
cameraId: z.ZodString;
|
|
22
|
+
streamId: z.ZodString;
|
|
22
23
|
}, z.core.$strip>;
|
|
23
24
|
export type WebRtcPlaybackTrackParams = z.infer<typeof sWebRtcPlaybackTrackParams>;
|
|
24
25
|
export declare const sWebRtcPlaybackControllerParams: z.ZodObject<{
|
|
@@ -40,7 +41,8 @@ export declare const sWebRtcServiceDescription: z.ZodUnion<readonly [z.ZodObject
|
|
|
40
41
|
service: z.ZodLiteral<"playback-track">;
|
|
41
42
|
serviceParams: z.ZodObject<{
|
|
42
43
|
controllerId: z.ZodString;
|
|
43
|
-
|
|
44
|
+
cameraId: z.ZodString;
|
|
45
|
+
streamId: z.ZodString;
|
|
44
46
|
}, z.core.$strip>;
|
|
45
47
|
}, z.core.$strip>, z.ZodObject<{
|
|
46
48
|
service: z.ZodLiteral<"playback-controller">;
|
|
@@ -64,7 +66,8 @@ export declare const sWebRtcNewSessionPayload: z.ZodIntersection<z.ZodUnion<read
|
|
|
64
66
|
service: z.ZodLiteral<"playback-track">;
|
|
65
67
|
serviceParams: z.ZodObject<{
|
|
66
68
|
controllerId: z.ZodString;
|
|
67
|
-
|
|
69
|
+
cameraId: z.ZodString;
|
|
70
|
+
streamId: z.ZodString;
|
|
68
71
|
}, z.core.$strip>;
|
|
69
72
|
}, z.core.$strip>, z.ZodObject<{
|
|
70
73
|
service: z.ZodLiteral<"playback-controller">;
|
|
@@ -19,7 +19,8 @@ exports.sWebRtcPlaybackParams = zod_1.default.object({
|
|
|
19
19
|
});
|
|
20
20
|
exports.sWebRtcPlaybackTrackParams = zod_1.default.object({
|
|
21
21
|
controllerId: zod_1.default.string().nonempty(),
|
|
22
|
-
|
|
22
|
+
cameraId: zod_1.default.string().nonempty(),
|
|
23
|
+
streamId: zod_1.default.string().nonempty(),
|
|
23
24
|
});
|
|
24
25
|
exports.sWebRtcPlaybackControllerParams = zod_1.default.object({
|
|
25
26
|
controllerId: zod_1.default.string().nonempty(),
|
|
@@ -4,6 +4,7 @@ export declare const sRecorderSpecs: z.ZodObject<{}, z.core.$strip>;
|
|
|
4
4
|
export type RecorderSpecs = z.infer<typeof sRecorderSpecs>;
|
|
5
5
|
export declare const sRecorderStateDto: z.ZodObject<{
|
|
6
6
|
connected: z.ZodBoolean;
|
|
7
|
+
usedDiskSpace: z.ZodNullable<z.ZodNumber>;
|
|
7
8
|
availableDiskSpace: z.ZodNullable<z.ZodNumber>;
|
|
8
9
|
totalDiskSpace: z.ZodNullable<z.ZodNumber>;
|
|
9
10
|
highWatermark: z.ZodNullable<z.ZodNumber>;
|
|
@@ -6,6 +6,7 @@ exports.NVR_RECORDER = 'nvr-recorder';
|
|
|
6
6
|
exports.sRecorderSpecs = zod_1.z.object({});
|
|
7
7
|
exports.sRecorderStateDto = zod_1.z.object({
|
|
8
8
|
connected: zod_1.z.boolean(),
|
|
9
|
+
usedDiskSpace: zod_1.z.number().nullable(),
|
|
9
10
|
availableDiskSpace: zod_1.z.number().nullable(),
|
|
10
11
|
totalDiskSpace: zod_1.z.number().nullable(),
|
|
11
12
|
highWatermark: zod_1.z.number().nullable(),
|
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.132",
|
|
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.132",
|
|
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",
|