@awarevue/api-types 2.0.4 → 2.0.6
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/agent-communication/protocol.d.ts +18 -216
- package/dist/agent-communication/queries.d.ts +18 -216
- package/dist/device/nvr-exporter.d.ts +627 -96
- package/dist/device/nvr-exporter.js +5 -1
- package/dist/device/nvr-recorder.d.ts +36 -432
- package/dist/device-command.d.ts +616 -1
- package/dist/device-command.js +10 -0
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +4 -96
- package/dist/primitives.js +1 -1
- package/package.json +1 -1
package/dist/primitives.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const sFileResponse: z.ZodNullable<z.ZodObject<{
|
|
|
17
17
|
data: string;
|
|
18
18
|
mimeType: string;
|
|
19
19
|
}>>;
|
|
20
|
-
export declare const sAgentDeviceInfo: z.ZodIntersection<z.
|
|
20
|
+
export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodObject<{
|
|
21
21
|
name: z.ZodString;
|
|
22
22
|
foreignRef: z.ZodString;
|
|
23
23
|
provider: z.ZodString;
|
|
@@ -263,54 +263,8 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
263
263
|
type: "nvr-analytics-server";
|
|
264
264
|
}, {
|
|
265
265
|
type: "nvr-analytics-server";
|
|
266
|
-
}>]
|
|
267
|
-
|
|
268
|
-
id: z.ZodString;
|
|
269
|
-
name: z.ZodString;
|
|
270
|
-
params: z.ZodUnknown;
|
|
271
|
-
isDefault: z.ZodBoolean;
|
|
272
|
-
assignedRef: z.ZodNullable<z.ZodString>;
|
|
273
|
-
createdOn: z.ZodString;
|
|
274
|
-
lastModifiedOn: z.ZodString;
|
|
275
|
-
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
name: string;
|
|
277
|
-
id: string;
|
|
278
|
-
isDefault: boolean;
|
|
279
|
-
assignedRef: string | null;
|
|
280
|
-
createdOn: string;
|
|
281
|
-
lastModifiedOn: string;
|
|
282
|
-
params?: unknown;
|
|
283
|
-
}, {
|
|
284
|
-
name: string;
|
|
285
|
-
id: string;
|
|
286
|
-
isDefault: boolean;
|
|
287
|
-
assignedRef: string | null;
|
|
288
|
-
createdOn: string;
|
|
289
|
-
lastModifiedOn: string;
|
|
290
|
-
params?: unknown;
|
|
291
|
-
}>, "many">;
|
|
292
|
-
}, "strip", z.ZodTypeAny, {
|
|
293
|
-
presets: {
|
|
294
|
-
name: string;
|
|
295
|
-
id: string;
|
|
296
|
-
isDefault: boolean;
|
|
297
|
-
assignedRef: string | null;
|
|
298
|
-
createdOn: string;
|
|
299
|
-
lastModifiedOn: string;
|
|
300
|
-
params?: unknown;
|
|
301
|
-
}[];
|
|
302
|
-
}, {
|
|
303
|
-
presets: {
|
|
304
|
-
name: string;
|
|
305
|
-
id: string;
|
|
306
|
-
isDefault: boolean;
|
|
307
|
-
assignedRef: string | null;
|
|
308
|
-
createdOn: string;
|
|
309
|
-
lastModifiedOn: string;
|
|
310
|
-
params?: unknown;
|
|
311
|
-
}[];
|
|
312
|
-
}>>;
|
|
313
|
-
export declare const sDeviceParam: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
266
|
+
}>]>>;
|
|
267
|
+
export declare const sDeviceParam: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
314
268
|
name: z.ZodString;
|
|
315
269
|
foreignRef: z.ZodString;
|
|
316
270
|
provider: z.ZodString;
|
|
@@ -556,50 +510,4 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.
|
|
|
556
510
|
type: "nvr-analytics-server";
|
|
557
511
|
}, {
|
|
558
512
|
type: "nvr-analytics-server";
|
|
559
|
-
}>]
|
|
560
|
-
presets: z.ZodArray<z.ZodObject<{
|
|
561
|
-
id: z.ZodString;
|
|
562
|
-
name: z.ZodString;
|
|
563
|
-
params: z.ZodUnknown;
|
|
564
|
-
isDefault: z.ZodBoolean;
|
|
565
|
-
assignedRef: z.ZodNullable<z.ZodString>;
|
|
566
|
-
createdOn: z.ZodString;
|
|
567
|
-
lastModifiedOn: z.ZodString;
|
|
568
|
-
}, "strip", z.ZodTypeAny, {
|
|
569
|
-
name: string;
|
|
570
|
-
id: string;
|
|
571
|
-
isDefault: boolean;
|
|
572
|
-
assignedRef: string | null;
|
|
573
|
-
createdOn: string;
|
|
574
|
-
lastModifiedOn: string;
|
|
575
|
-
params?: unknown;
|
|
576
|
-
}, {
|
|
577
|
-
name: string;
|
|
578
|
-
id: string;
|
|
579
|
-
isDefault: boolean;
|
|
580
|
-
assignedRef: string | null;
|
|
581
|
-
createdOn: string;
|
|
582
|
-
lastModifiedOn: string;
|
|
583
|
-
params?: unknown;
|
|
584
|
-
}>, "many">;
|
|
585
|
-
}, "strip", z.ZodTypeAny, {
|
|
586
|
-
presets: {
|
|
587
|
-
name: string;
|
|
588
|
-
id: string;
|
|
589
|
-
isDefault: boolean;
|
|
590
|
-
assignedRef: string | null;
|
|
591
|
-
createdOn: string;
|
|
592
|
-
lastModifiedOn: string;
|
|
593
|
-
params?: unknown;
|
|
594
|
-
}[];
|
|
595
|
-
}, {
|
|
596
|
-
presets: {
|
|
597
|
-
name: string;
|
|
598
|
-
id: string;
|
|
599
|
-
isDefault: boolean;
|
|
600
|
-
assignedRef: string | null;
|
|
601
|
-
createdOn: string;
|
|
602
|
-
lastModifiedOn: string;
|
|
603
|
-
params?: unknown;
|
|
604
|
-
}[];
|
|
605
|
-
}>>]>;
|
|
513
|
+
}>]>>]>;
|
package/dist/primitives.js
CHANGED
|
@@ -18,7 +18,7 @@ exports.sFileResponse = zod_1.z
|
|
|
18
18
|
data: zod_1.z.string().nonempty(),
|
|
19
19
|
})
|
|
20
20
|
.nullable();
|
|
21
|
-
exports.sAgentDeviceInfo =
|
|
21
|
+
exports.sAgentDeviceInfo = zod_1.z.intersection(device_1.sForeignDeviceInfo, device_1.sAnyDeviceSpecs, zod_1.z.object({
|
|
22
22
|
presets: zod_1.z.array(device_1.sPresetDto),
|
|
23
23
|
}));
|
|
24
24
|
// reusable device argument. This schema can be checked at runtime to see if it's a device ID or full device info and substituted accordingly.
|