@awarevue/api-types 2.0.2 → 2.0.4
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/media.d.ts +25 -0
- package/dist/api/media.js +10 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/api/media.d.ts
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const sCreateExportRequest: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
deviceId: z.ZodString;
|
|
5
|
+
timeFrom: z.ZodNumber;
|
|
6
|
+
timeTo: z.ZodNumber;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
name: string;
|
|
9
|
+
deviceId: string;
|
|
10
|
+
timeFrom: number;
|
|
11
|
+
timeTo: number;
|
|
12
|
+
}, {
|
|
13
|
+
name: string;
|
|
14
|
+
deviceId: string;
|
|
15
|
+
timeFrom: number;
|
|
16
|
+
timeTo: number;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const sCreateExportResponse: z.ZodObject<{
|
|
19
|
+
exportId: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
exportId: string;
|
|
22
|
+
}, {
|
|
23
|
+
exportId: string;
|
|
24
|
+
}>;
|
|
2
25
|
export declare const sRecordingSequence: z.ZodObject<{
|
|
3
26
|
start: z.ZodNumber;
|
|
4
27
|
end: z.ZodNumber;
|
|
@@ -160,6 +183,8 @@ export declare const sGetLatestFrameRequest: z.ZodObject<{
|
|
|
160
183
|
width: number;
|
|
161
184
|
deviceId: string;
|
|
162
185
|
}>;
|
|
186
|
+
export type CreateExportRequest = z.infer<typeof sCreateExportRequest>;
|
|
187
|
+
export type CreateExportResponse = z.infer<typeof sCreateExportResponse>;
|
|
163
188
|
export type RecordingSequence = z.infer<typeof sRecordingSequence>;
|
|
164
189
|
export type GetRecordingsRequest = z.infer<typeof sGetRecordingsRequest>;
|
|
165
190
|
export type GetRecordingsResponse = z.infer<typeof sGetRecordingsResponse>;
|
package/dist/api/media.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sGetLatestFrameRequest = exports.sMediaSearchQueryDto = exports.sSortOptions = exports.sGetObjectThumbnailRequest = exports.sGetObjectSnapshotRequest = exports.sGetScenePreviewClipRequest = exports.sGetPreviewImageRequest = exports.sGetRecordingsResponse = exports.sGetRecordingsRequest = exports.sRecordingSequence = void 0;
|
|
3
|
+
exports.sGetLatestFrameRequest = exports.sMediaSearchQueryDto = exports.sSortOptions = exports.sGetObjectThumbnailRequest = exports.sGetObjectSnapshotRequest = exports.sGetScenePreviewClipRequest = exports.sGetPreviewImageRequest = exports.sGetRecordingsResponse = exports.sGetRecordingsRequest = exports.sRecordingSequence = exports.sCreateExportResponse = exports.sCreateExportRequest = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const query_1 = require("./query");
|
|
6
|
+
exports.sCreateExportRequest = zod_1.z.object({
|
|
7
|
+
name: zod_1.z.string().nonempty(),
|
|
8
|
+
deviceId: zod_1.z.string().nonempty(),
|
|
9
|
+
timeFrom: zod_1.z.number().nonnegative(),
|
|
10
|
+
timeTo: zod_1.z.number().nonnegative(),
|
|
11
|
+
});
|
|
12
|
+
exports.sCreateExportResponse = zod_1.z.object({
|
|
13
|
+
exportId: zod_1.z.string().nonempty(),
|
|
14
|
+
});
|
|
6
15
|
exports.sRecordingSequence = zod_1.z.object({
|
|
7
16
|
start: zod_1.z.number().nonnegative(),
|
|
8
17
|
end: zod_1.z.number().nonnegative(),
|
package/dist/package.json
CHANGED