@awarevue/api-types 2.0.131 → 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.
|
@@ -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(),
|
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",
|