@awarevue/api-types 2.0.5 → 2.0.7
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 +52 -210
- package/dist/agent-communication/queries.d.ts +42 -210
- package/dist/device/any-device.d.ts +139 -5
- package/dist/device/any-device.js +10 -1
- package/dist/device/index.d.ts +1 -0
- package/dist/device/index.js +1 -0
- package/dist/device/nvr-exporter.d.ts +44 -188
- package/dist/device/nvr-recorder.d.ts +84 -420
- package/dist/device/other.d.ts +48 -0
- package/dist/device/other.js +21 -0
- package/dist/device-command.d.ts +22 -94
- package/dist/device-event.d.ts +21 -1
- package/dist/device-event.js +3 -0
- package/dist/device-import.d.ts +36 -0
- package/dist/notifications.d.ts +29 -0
- package/dist/notifications.js +15 -0
- package/dist/package.json +1 -1
- package/dist/permissions.d.ts +3 -3
- package/dist/permissions.js +3 -0
- package/dist/primitives.d.ts +14 -92
- package/dist/primitives.js +3 -2
- package/dist/user.d.ts +12 -12
- package/package.json +1 -1
|
@@ -72,7 +72,7 @@ export declare const requestSchemasByType: {
|
|
|
72
72
|
}>;
|
|
73
73
|
readonly "cctv:get-exports": import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
|
|
74
74
|
readonly "cctv:recordings-by-time-range": import("zod").ZodObject<{
|
|
75
|
-
device: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").
|
|
75
|
+
device: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
76
76
|
name: import("zod").ZodString;
|
|
77
77
|
foreignRef: import("zod").ZodString;
|
|
78
78
|
provider: import("zod").ZodString;
|
|
@@ -318,57 +318,17 @@ export declare const requestSchemasByType: {
|
|
|
318
318
|
type: "nvr-analytics-server";
|
|
319
319
|
}, {
|
|
320
320
|
type: "nvr-analytics-server";
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
id: import("zod").ZodString;
|
|
324
|
-
name: import("zod").ZodString;
|
|
325
|
-
params: import("zod").ZodUnknown;
|
|
326
|
-
isDefault: import("zod").ZodBoolean;
|
|
327
|
-
assignedRef: import("zod").ZodNullable<import("zod").ZodString>;
|
|
328
|
-
createdOn: import("zod").ZodString;
|
|
329
|
-
lastModifiedOn: import("zod").ZodString;
|
|
330
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
331
|
-
name: string;
|
|
332
|
-
id: string;
|
|
333
|
-
isDefault: boolean;
|
|
334
|
-
assignedRef: string | null;
|
|
335
|
-
createdOn: string;
|
|
336
|
-
lastModifiedOn: string;
|
|
337
|
-
params?: unknown;
|
|
338
|
-
}, {
|
|
339
|
-
name: string;
|
|
340
|
-
id: string;
|
|
341
|
-
isDefault: boolean;
|
|
342
|
-
assignedRef: string | null;
|
|
343
|
-
createdOn: string;
|
|
344
|
-
lastModifiedOn: string;
|
|
345
|
-
params?: unknown;
|
|
346
|
-
}>, "many">;
|
|
321
|
+
}>, import("zod").ZodObject<{
|
|
322
|
+
type: import("zod").ZodLiteral<"device-other">;
|
|
347
323
|
}, "strip", import("zod").ZodTypeAny, {
|
|
348
|
-
|
|
349
|
-
name: string;
|
|
350
|
-
id: string;
|
|
351
|
-
isDefault: boolean;
|
|
352
|
-
assignedRef: string | null;
|
|
353
|
-
createdOn: string;
|
|
354
|
-
lastModifiedOn: string;
|
|
355
|
-
params?: unknown;
|
|
356
|
-
}[];
|
|
324
|
+
type: "device-other";
|
|
357
325
|
}, {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
id: string;
|
|
361
|
-
isDefault: boolean;
|
|
362
|
-
assignedRef: string | null;
|
|
363
|
-
createdOn: string;
|
|
364
|
-
lastModifiedOn: string;
|
|
365
|
-
params?: unknown;
|
|
366
|
-
}[];
|
|
367
|
-
}>>]>;
|
|
326
|
+
type: "device-other";
|
|
327
|
+
}>]>>]>;
|
|
368
328
|
timeFrom: import("zod").ZodNumber;
|
|
369
329
|
timeTo: import("zod").ZodNumber;
|
|
370
330
|
}, "strip", import("zod").ZodTypeAny, {
|
|
371
|
-
device: string | (
|
|
331
|
+
device: string | ({
|
|
372
332
|
name: string;
|
|
373
333
|
foreignRef: string;
|
|
374
334
|
provider: string;
|
|
@@ -445,21 +405,13 @@ export declare const requestSchemasByType: {
|
|
|
445
405
|
type: "nvr-exporter";
|
|
446
406
|
} | {
|
|
447
407
|
type: "nvr-analytics-server";
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
id: string;
|
|
452
|
-
isDefault: boolean;
|
|
453
|
-
assignedRef: string | null;
|
|
454
|
-
createdOn: string;
|
|
455
|
-
lastModifiedOn: string;
|
|
456
|
-
params?: unknown;
|
|
457
|
-
}[];
|
|
458
|
-
});
|
|
408
|
+
} | {
|
|
409
|
+
type: "device-other";
|
|
410
|
+
}));
|
|
459
411
|
timeFrom: number;
|
|
460
412
|
timeTo: number;
|
|
461
413
|
}, {
|
|
462
|
-
device: string | (
|
|
414
|
+
device: string | ({
|
|
463
415
|
name: string;
|
|
464
416
|
foreignRef: string;
|
|
465
417
|
provider: string;
|
|
@@ -536,22 +488,14 @@ export declare const requestSchemasByType: {
|
|
|
536
488
|
type: "nvr-exporter";
|
|
537
489
|
} | {
|
|
538
490
|
type: "nvr-analytics-server";
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
id: string;
|
|
543
|
-
isDefault: boolean;
|
|
544
|
-
assignedRef: string | null;
|
|
545
|
-
createdOn: string;
|
|
546
|
-
lastModifiedOn: string;
|
|
547
|
-
params?: unknown;
|
|
548
|
-
}[];
|
|
549
|
-
});
|
|
491
|
+
} | {
|
|
492
|
+
type: "device-other";
|
|
493
|
+
}));
|
|
550
494
|
timeFrom: number;
|
|
551
495
|
timeTo: number;
|
|
552
496
|
}>;
|
|
553
497
|
readonly "cctv:preview-image": import("zod").ZodObject<{
|
|
554
|
-
device: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").
|
|
498
|
+
device: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
555
499
|
name: import("zod").ZodString;
|
|
556
500
|
foreignRef: import("zod").ZodString;
|
|
557
501
|
provider: import("zod").ZodString;
|
|
@@ -797,59 +741,19 @@ export declare const requestSchemasByType: {
|
|
|
797
741
|
type: "nvr-analytics-server";
|
|
798
742
|
}, {
|
|
799
743
|
type: "nvr-analytics-server";
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
id: import("zod").ZodString;
|
|
803
|
-
name: import("zod").ZodString;
|
|
804
|
-
params: import("zod").ZodUnknown;
|
|
805
|
-
isDefault: import("zod").ZodBoolean;
|
|
806
|
-
assignedRef: import("zod").ZodNullable<import("zod").ZodString>;
|
|
807
|
-
createdOn: import("zod").ZodString;
|
|
808
|
-
lastModifiedOn: import("zod").ZodString;
|
|
809
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
810
|
-
name: string;
|
|
811
|
-
id: string;
|
|
812
|
-
isDefault: boolean;
|
|
813
|
-
assignedRef: string | null;
|
|
814
|
-
createdOn: string;
|
|
815
|
-
lastModifiedOn: string;
|
|
816
|
-
params?: unknown;
|
|
817
|
-
}, {
|
|
818
|
-
name: string;
|
|
819
|
-
id: string;
|
|
820
|
-
isDefault: boolean;
|
|
821
|
-
assignedRef: string | null;
|
|
822
|
-
createdOn: string;
|
|
823
|
-
lastModifiedOn: string;
|
|
824
|
-
params?: unknown;
|
|
825
|
-
}>, "many">;
|
|
744
|
+
}>, import("zod").ZodObject<{
|
|
745
|
+
type: import("zod").ZodLiteral<"device-other">;
|
|
826
746
|
}, "strip", import("zod").ZodTypeAny, {
|
|
827
|
-
|
|
828
|
-
name: string;
|
|
829
|
-
id: string;
|
|
830
|
-
isDefault: boolean;
|
|
831
|
-
assignedRef: string | null;
|
|
832
|
-
createdOn: string;
|
|
833
|
-
lastModifiedOn: string;
|
|
834
|
-
params?: unknown;
|
|
835
|
-
}[];
|
|
747
|
+
type: "device-other";
|
|
836
748
|
}, {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
id: string;
|
|
840
|
-
isDefault: boolean;
|
|
841
|
-
assignedRef: string | null;
|
|
842
|
-
createdOn: string;
|
|
843
|
-
lastModifiedOn: string;
|
|
844
|
-
params?: unknown;
|
|
845
|
-
}[];
|
|
846
|
-
}>>]>;
|
|
749
|
+
type: "device-other";
|
|
750
|
+
}>]>>]>;
|
|
847
751
|
time: import("zod").ZodNumber;
|
|
848
752
|
height: import("zod").ZodNumber;
|
|
849
753
|
}, "strip", import("zod").ZodTypeAny, {
|
|
850
754
|
time: number;
|
|
851
755
|
height: number;
|
|
852
|
-
device: string | (
|
|
756
|
+
device: string | ({
|
|
853
757
|
name: string;
|
|
854
758
|
foreignRef: string;
|
|
855
759
|
provider: string;
|
|
@@ -926,21 +830,13 @@ export declare const requestSchemasByType: {
|
|
|
926
830
|
type: "nvr-exporter";
|
|
927
831
|
} | {
|
|
928
832
|
type: "nvr-analytics-server";
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
id: string;
|
|
933
|
-
isDefault: boolean;
|
|
934
|
-
assignedRef: string | null;
|
|
935
|
-
createdOn: string;
|
|
936
|
-
lastModifiedOn: string;
|
|
937
|
-
params?: unknown;
|
|
938
|
-
}[];
|
|
939
|
-
});
|
|
833
|
+
} | {
|
|
834
|
+
type: "device-other";
|
|
835
|
+
}));
|
|
940
836
|
}, {
|
|
941
837
|
time: number;
|
|
942
838
|
height: number;
|
|
943
|
-
device: string | (
|
|
839
|
+
device: string | ({
|
|
944
840
|
name: string;
|
|
945
841
|
foreignRef: string;
|
|
946
842
|
provider: string;
|
|
@@ -1017,20 +913,12 @@ export declare const requestSchemasByType: {
|
|
|
1017
913
|
type: "nvr-exporter";
|
|
1018
914
|
} | {
|
|
1019
915
|
type: "nvr-analytics-server";
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
id: string;
|
|
1024
|
-
isDefault: boolean;
|
|
1025
|
-
assignedRef: string | null;
|
|
1026
|
-
createdOn: string;
|
|
1027
|
-
lastModifiedOn: string;
|
|
1028
|
-
params?: unknown;
|
|
1029
|
-
}[];
|
|
1030
|
-
});
|
|
916
|
+
} | {
|
|
917
|
+
type: "device-other";
|
|
918
|
+
}));
|
|
1031
919
|
}>;
|
|
1032
920
|
readonly "cctv:latest-frame": import("zod").ZodObject<{
|
|
1033
|
-
device: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").
|
|
921
|
+
device: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
1034
922
|
name: import("zod").ZodString;
|
|
1035
923
|
foreignRef: import("zod").ZodString;
|
|
1036
924
|
provider: import("zod").ZodString;
|
|
@@ -1276,59 +1164,19 @@ export declare const requestSchemasByType: {
|
|
|
1276
1164
|
type: "nvr-analytics-server";
|
|
1277
1165
|
}, {
|
|
1278
1166
|
type: "nvr-analytics-server";
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
id: import("zod").ZodString;
|
|
1282
|
-
name: import("zod").ZodString;
|
|
1283
|
-
params: import("zod").ZodUnknown;
|
|
1284
|
-
isDefault: import("zod").ZodBoolean;
|
|
1285
|
-
assignedRef: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1286
|
-
createdOn: import("zod").ZodString;
|
|
1287
|
-
lastModifiedOn: import("zod").ZodString;
|
|
1288
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
1289
|
-
name: string;
|
|
1290
|
-
id: string;
|
|
1291
|
-
isDefault: boolean;
|
|
1292
|
-
assignedRef: string | null;
|
|
1293
|
-
createdOn: string;
|
|
1294
|
-
lastModifiedOn: string;
|
|
1295
|
-
params?: unknown;
|
|
1296
|
-
}, {
|
|
1297
|
-
name: string;
|
|
1298
|
-
id: string;
|
|
1299
|
-
isDefault: boolean;
|
|
1300
|
-
assignedRef: string | null;
|
|
1301
|
-
createdOn: string;
|
|
1302
|
-
lastModifiedOn: string;
|
|
1303
|
-
params?: unknown;
|
|
1304
|
-
}>, "many">;
|
|
1167
|
+
}>, import("zod").ZodObject<{
|
|
1168
|
+
type: import("zod").ZodLiteral<"device-other">;
|
|
1305
1169
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1306
|
-
|
|
1307
|
-
name: string;
|
|
1308
|
-
id: string;
|
|
1309
|
-
isDefault: boolean;
|
|
1310
|
-
assignedRef: string | null;
|
|
1311
|
-
createdOn: string;
|
|
1312
|
-
lastModifiedOn: string;
|
|
1313
|
-
params?: unknown;
|
|
1314
|
-
}[];
|
|
1170
|
+
type: "device-other";
|
|
1315
1171
|
}, {
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
id: string;
|
|
1319
|
-
isDefault: boolean;
|
|
1320
|
-
assignedRef: string | null;
|
|
1321
|
-
createdOn: string;
|
|
1322
|
-
lastModifiedOn: string;
|
|
1323
|
-
params?: unknown;
|
|
1324
|
-
}[];
|
|
1325
|
-
}>>]>;
|
|
1172
|
+
type: "device-other";
|
|
1173
|
+
}>]>>]>;
|
|
1326
1174
|
width: import("zod").ZodNumber;
|
|
1327
1175
|
height: import("zod").ZodNumber;
|
|
1328
1176
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1329
1177
|
height: number;
|
|
1330
1178
|
width: number;
|
|
1331
|
-
device: string | (
|
|
1179
|
+
device: string | ({
|
|
1332
1180
|
name: string;
|
|
1333
1181
|
foreignRef: string;
|
|
1334
1182
|
provider: string;
|
|
@@ -1405,21 +1253,13 @@ export declare const requestSchemasByType: {
|
|
|
1405
1253
|
type: "nvr-exporter";
|
|
1406
1254
|
} | {
|
|
1407
1255
|
type: "nvr-analytics-server";
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
id: string;
|
|
1412
|
-
isDefault: boolean;
|
|
1413
|
-
assignedRef: string | null;
|
|
1414
|
-
createdOn: string;
|
|
1415
|
-
lastModifiedOn: string;
|
|
1416
|
-
params?: unknown;
|
|
1417
|
-
}[];
|
|
1418
|
-
});
|
|
1256
|
+
} | {
|
|
1257
|
+
type: "device-other";
|
|
1258
|
+
}));
|
|
1419
1259
|
}, {
|
|
1420
1260
|
height: number;
|
|
1421
1261
|
width: number;
|
|
1422
|
-
device: string | (
|
|
1262
|
+
device: string | ({
|
|
1423
1263
|
name: string;
|
|
1424
1264
|
foreignRef: string;
|
|
1425
1265
|
provider: string;
|
|
@@ -1496,17 +1336,9 @@ export declare const requestSchemasByType: {
|
|
|
1496
1336
|
type: "nvr-exporter";
|
|
1497
1337
|
} | {
|
|
1498
1338
|
type: "nvr-analytics-server";
|
|
1499
|
-
}
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
id: string;
|
|
1503
|
-
isDefault: boolean;
|
|
1504
|
-
assignedRef: string | null;
|
|
1505
|
-
createdOn: string;
|
|
1506
|
-
lastModifiedOn: string;
|
|
1507
|
-
params?: unknown;
|
|
1508
|
-
}[];
|
|
1509
|
-
});
|
|
1339
|
+
} | {
|
|
1340
|
+
type: "device-other";
|
|
1341
|
+
}));
|
|
1510
1342
|
}>;
|
|
1511
1343
|
};
|
|
1512
1344
|
export declare const responseSchemasByType: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const DEVICE_TYPES: readonly ["alarm", "server", "camera", "door", "reader", "io-board", "camera-lift", "motion-sensor", "panic-button", "intercom-operator", "intercom-terminal", "pbx", "device-gateway", "presence-tracker", "display", "nvr-recorder", "nvr-exporter", "nvr-analytics-server"];
|
|
3
|
-
declare const sDeviceType: z.ZodEnum<["alarm", "server", "camera", "door", "reader", "io-board", "camera-lift", "motion-sensor", "panic-button", "intercom-operator", "intercom-terminal", "pbx", "device-gateway", "presence-tracker", "display", "nvr-recorder", "nvr-exporter", "nvr-analytics-server"]>;
|
|
2
|
+
export declare const DEVICE_TYPES: readonly ["alarm", "server", "camera", "door", "reader", "io-board", "camera-lift", "motion-sensor", "panic-button", "intercom-operator", "intercom-terminal", "pbx", "device-gateway", "presence-tracker", "display", "nvr-recorder", "nvr-exporter", "nvr-analytics-server", "device-other"];
|
|
3
|
+
declare const sDeviceType: z.ZodEnum<["alarm", "server", "camera", "door", "reader", "io-board", "camera-lift", "motion-sensor", "panic-button", "intercom-operator", "intercom-terminal", "pbx", "device-gateway", "presence-tracker", "display", "nvr-recorder", "nvr-exporter", "nvr-analytics-server", "device-other"]>;
|
|
4
4
|
export declare const sDisplaySpecsWithType: z.ZodObject<{
|
|
5
5
|
type: z.ZodLiteral<"display">;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -29,6 +29,13 @@ export declare const sNvrAnalyticsServerSpecsWithType: z.ZodObject<{
|
|
|
29
29
|
}, {
|
|
30
30
|
type: "nvr-analytics-server";
|
|
31
31
|
}>;
|
|
32
|
+
export declare const sOtherSpecsWithType: z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<"device-other">;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
type: "device-other";
|
|
36
|
+
}, {
|
|
37
|
+
type: "device-other";
|
|
38
|
+
}>;
|
|
32
39
|
export declare const sAnyDeviceSpecs: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
33
40
|
type: z.ZodLiteral<"alarm">;
|
|
34
41
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -256,6 +263,12 @@ export declare const sAnyDeviceSpecs: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
256
263
|
type: "nvr-analytics-server";
|
|
257
264
|
}, {
|
|
258
265
|
type: "nvr-analytics-server";
|
|
266
|
+
}>, z.ZodObject<{
|
|
267
|
+
type: z.ZodLiteral<"device-other">;
|
|
268
|
+
}, "strip", z.ZodTypeAny, {
|
|
269
|
+
type: "device-other";
|
|
270
|
+
}, {
|
|
271
|
+
type: "device-other";
|
|
259
272
|
}>]>;
|
|
260
273
|
export declare const sProviderMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
|
|
261
274
|
export declare const sPresetDto: z.ZodObject<{
|
|
@@ -619,6 +632,12 @@ export declare const sDeviceDto: z.ZodIntersection<z.ZodIntersection<z.ZodDiscri
|
|
|
619
632
|
type: "nvr-analytics-server";
|
|
620
633
|
}, {
|
|
621
634
|
type: "nvr-analytics-server";
|
|
635
|
+
}>, z.ZodObject<{
|
|
636
|
+
type: z.ZodLiteral<"device-other">;
|
|
637
|
+
}, "strip", z.ZodTypeAny, {
|
|
638
|
+
type: "device-other";
|
|
639
|
+
}, {
|
|
640
|
+
type: "device-other";
|
|
622
641
|
}>]>, z.ZodObject<{
|
|
623
642
|
id: z.ZodString;
|
|
624
643
|
presets: z.ZodArray<z.ZodObject<{
|
|
@@ -2898,6 +2917,120 @@ export declare const sNvrAnalyticsServerDto: z.ZodIntersection<z.ZodIntersection
|
|
|
2898
2917
|
[k: string]: unknown;
|
|
2899
2918
|
};
|
|
2900
2919
|
}>>;
|
|
2920
|
+
export declare const sDeviceOtherDto: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
2921
|
+
type: z.ZodLiteral<"device-other">;
|
|
2922
|
+
}, "strip", z.ZodTypeAny, {
|
|
2923
|
+
type: "device-other";
|
|
2924
|
+
}, {
|
|
2925
|
+
type: "device-other";
|
|
2926
|
+
}>, z.ZodObject<{
|
|
2927
|
+
id: z.ZodString;
|
|
2928
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
2929
|
+
id: z.ZodString;
|
|
2930
|
+
name: z.ZodString;
|
|
2931
|
+
params: z.ZodUnknown;
|
|
2932
|
+
isDefault: z.ZodBoolean;
|
|
2933
|
+
assignedRef: z.ZodNullable<z.ZodString>;
|
|
2934
|
+
createdOn: z.ZodString;
|
|
2935
|
+
lastModifiedOn: z.ZodString;
|
|
2936
|
+
}, "strip", z.ZodTypeAny, {
|
|
2937
|
+
name: string;
|
|
2938
|
+
id: string;
|
|
2939
|
+
isDefault: boolean;
|
|
2940
|
+
assignedRef: string | null;
|
|
2941
|
+
createdOn: string;
|
|
2942
|
+
lastModifiedOn: string;
|
|
2943
|
+
params?: unknown;
|
|
2944
|
+
}, {
|
|
2945
|
+
name: string;
|
|
2946
|
+
id: string;
|
|
2947
|
+
isDefault: boolean;
|
|
2948
|
+
assignedRef: string | null;
|
|
2949
|
+
createdOn: string;
|
|
2950
|
+
lastModifiedOn: string;
|
|
2951
|
+
params?: unknown;
|
|
2952
|
+
}>, "many">;
|
|
2953
|
+
providerAssignedName: z.ZodString;
|
|
2954
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2955
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
2956
|
+
relations: z.ZodArray<z.ZodObject<{
|
|
2957
|
+
id: z.ZodString;
|
|
2958
|
+
kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
|
|
2959
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
2960
|
+
id: z.ZodString;
|
|
2961
|
+
kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
|
|
2962
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
2963
|
+
id: z.ZodString;
|
|
2964
|
+
kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
|
|
2965
|
+
}, z.ZodUnknown, "strip">>, "many">;
|
|
2966
|
+
groups: z.ZodArray<z.ZodString, "many">;
|
|
2967
|
+
enabled: z.ZodBoolean;
|
|
2968
|
+
createdOn: z.ZodString;
|
|
2969
|
+
lastModifiedOn: z.ZodString;
|
|
2970
|
+
}, "strip", z.ZodTypeAny, {
|
|
2971
|
+
groups: string[];
|
|
2972
|
+
id: string;
|
|
2973
|
+
createdOn: string;
|
|
2974
|
+
lastModifiedOn: string;
|
|
2975
|
+
tags: string[];
|
|
2976
|
+
relations: z.objectOutputType<{
|
|
2977
|
+
id: z.ZodString;
|
|
2978
|
+
kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
|
|
2979
|
+
}, z.ZodUnknown, "strip">[];
|
|
2980
|
+
presets: {
|
|
2981
|
+
name: string;
|
|
2982
|
+
id: string;
|
|
2983
|
+
isDefault: boolean;
|
|
2984
|
+
assignedRef: string | null;
|
|
2985
|
+
createdOn: string;
|
|
2986
|
+
lastModifiedOn: string;
|
|
2987
|
+
params?: unknown;
|
|
2988
|
+
}[];
|
|
2989
|
+
providerAssignedName: string;
|
|
2990
|
+
notes: string | null;
|
|
2991
|
+
enabled: boolean;
|
|
2992
|
+
}, {
|
|
2993
|
+
groups: string[];
|
|
2994
|
+
id: string;
|
|
2995
|
+
createdOn: string;
|
|
2996
|
+
lastModifiedOn: string;
|
|
2997
|
+
tags: string[];
|
|
2998
|
+
relations: z.objectInputType<{
|
|
2999
|
+
id: z.ZodString;
|
|
3000
|
+
kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
|
|
3001
|
+
}, z.ZodUnknown, "strip">[];
|
|
3002
|
+
presets: {
|
|
3003
|
+
name: string;
|
|
3004
|
+
id: string;
|
|
3005
|
+
isDefault: boolean;
|
|
3006
|
+
assignedRef: string | null;
|
|
3007
|
+
createdOn: string;
|
|
3008
|
+
lastModifiedOn: string;
|
|
3009
|
+
params?: unknown;
|
|
3010
|
+
}[];
|
|
3011
|
+
providerAssignedName: string;
|
|
3012
|
+
notes: string | null;
|
|
3013
|
+
enabled: boolean;
|
|
3014
|
+
}>>, z.ZodObject<{
|
|
3015
|
+
name: z.ZodString;
|
|
3016
|
+
foreignRef: z.ZodString;
|
|
3017
|
+
provider: z.ZodString;
|
|
3018
|
+
providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
|
|
3019
|
+
}, "strip", z.ZodTypeAny, {
|
|
3020
|
+
name: string;
|
|
3021
|
+
foreignRef: string;
|
|
3022
|
+
provider: string;
|
|
3023
|
+
providerMetadata: {} & {
|
|
3024
|
+
[k: string]: unknown;
|
|
3025
|
+
};
|
|
3026
|
+
}, {
|
|
3027
|
+
name: string;
|
|
3028
|
+
foreignRef: string;
|
|
3029
|
+
provider: string;
|
|
3030
|
+
providerMetadata: {} & {
|
|
3031
|
+
[k: string]: unknown;
|
|
3032
|
+
};
|
|
3033
|
+
}>>;
|
|
2901
3034
|
export declare const sAddDeviceRequest: z.ZodObject<{
|
|
2902
3035
|
name: z.ZodString;
|
|
2903
3036
|
foreignRef: z.ZodString;
|
|
@@ -2915,11 +3048,11 @@ export declare const sAddDeviceRequest: z.ZodObject<{
|
|
|
2915
3048
|
id: z.ZodString;
|
|
2916
3049
|
kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
|
|
2917
3050
|
}, z.ZodUnknown, "strip">>, "many">;
|
|
2918
|
-
type: z.ZodEnum<["alarm", "server", "camera", "door", "reader", "io-board", "camera-lift", "motion-sensor", "panic-button", "intercom-operator", "intercom-terminal", "pbx", "device-gateway", "presence-tracker", "display", "nvr-recorder", "nvr-exporter", "nvr-analytics-server"]>;
|
|
3051
|
+
type: z.ZodEnum<["alarm", "server", "camera", "door", "reader", "io-board", "camera-lift", "motion-sensor", "panic-button", "intercom-operator", "intercom-terminal", "pbx", "device-gateway", "presence-tracker", "display", "nvr-recorder", "nvr-exporter", "nvr-analytics-server", "device-other"]>;
|
|
2919
3052
|
specs: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>>;
|
|
2920
3053
|
}, "strip", z.ZodTypeAny, {
|
|
2921
3054
|
name: string;
|
|
2922
|
-
type: "camera" | "server" | "display" | "door" | "io-board" | "camera-lift" | "motion-sensor" | "panic-button" | "intercom-operator" | "intercom-terminal" | "pbx" | "alarm" | "device-gateway" | "presence-tracker" | "reader" | "nvr-recorder" | "nvr-exporter" | "nvr-analytics-server";
|
|
3055
|
+
type: "camera" | "server" | "display" | "door" | "io-board" | "camera-lift" | "motion-sensor" | "panic-button" | "intercom-operator" | "intercom-terminal" | "pbx" | "alarm" | "device-gateway" | "presence-tracker" | "reader" | "nvr-recorder" | "nvr-exporter" | "nvr-analytics-server" | "device-other";
|
|
2923
3056
|
foreignRef: string;
|
|
2924
3057
|
tags: string[];
|
|
2925
3058
|
provider: string;
|
|
@@ -2934,7 +3067,7 @@ export declare const sAddDeviceRequest: z.ZodObject<{
|
|
|
2934
3067
|
specs?: z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
|
|
2935
3068
|
}, {
|
|
2936
3069
|
name: string;
|
|
2937
|
-
type: "camera" | "server" | "display" | "door" | "io-board" | "camera-lift" | "motion-sensor" | "panic-button" | "intercom-operator" | "intercom-terminal" | "pbx" | "alarm" | "device-gateway" | "presence-tracker" | "reader" | "nvr-recorder" | "nvr-exporter" | "nvr-analytics-server";
|
|
3070
|
+
type: "camera" | "server" | "display" | "door" | "io-board" | "camera-lift" | "motion-sensor" | "panic-button" | "intercom-operator" | "intercom-terminal" | "pbx" | "alarm" | "device-gateway" | "presence-tracker" | "reader" | "nvr-recorder" | "nvr-exporter" | "nvr-analytics-server" | "device-other";
|
|
2938
3071
|
foreignRef: string;
|
|
2939
3072
|
tags: string[];
|
|
2940
3073
|
provider: string;
|
|
@@ -3157,6 +3290,7 @@ export type DisplayDto = z.infer<typeof sDisplayDto>;
|
|
|
3157
3290
|
export type RecorderDto = z.infer<typeof sRecorderDto>;
|
|
3158
3291
|
export type NvrExporterDto = z.infer<typeof sNvrExporterDto>;
|
|
3159
3292
|
export type NvrAnalyticsServerDto = z.infer<typeof sNvrAnalyticsServerDto>;
|
|
3293
|
+
export type OtherDto = z.infer<typeof sDeviceOtherDto>;
|
|
3160
3294
|
export type AddDeviceRequest = z.infer<typeof sAddDeviceRequest>;
|
|
3161
3295
|
export type UpdateDeviceRequest = z.infer<typeof sUpdateDeviceRequest>;
|
|
3162
3296
|
export type OverrideDeviceSpecsRequest = z.infer<typeof sOverrideDeviceSpecsRequest>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sSetUnsetRelationRequest = exports.sGetEventCatalogResponse = exports.sEventDescription = exports.sEventVariantDescription = exports.sRemoveDevicePresetRequest = exports.sUpdateDevicePresetRequest = exports.sAddDevicePresetRequest = exports.sOverrideDeviceSpecsRequest = exports.sUpdateDeviceRequest = exports.sAddDeviceRequest = exports.sNvrAnalyticsServerDto = exports.sNvrExporterDto = exports.sRecorderDto = exports.sDisplayDto = exports.sIntercomOperatorDto = exports.sAlarmDto = exports.sServerDto = exports.sPresenceTrackerDto = exports.sDeviceGatewayDto = exports.sPbxDto = exports.sIntercomTerminalDto = exports.sPanicButtonDto = exports.sMotionSensorDto = exports.sCameraLiftDto = exports.sIoBoardDto = exports.sReaderDto = exports.sDoorDto = exports.sCameraDto = exports.sDeviceDto = exports.sForeignDeviceInfo = exports.sDeviceMgmtInfo = exports.sPresetDto = exports.sProviderMetadata = exports.sAnyDeviceSpecs = exports.sNvrAnalyticsServerSpecsWithType = exports.sNvrExporterSpecsWithType = exports.sRecorderSpecsWithType = exports.sDisplaySpecsWithType = exports.DEVICE_TYPES = void 0;
|
|
3
|
+
exports.sSetUnsetRelationRequest = exports.sGetEventCatalogResponse = exports.sEventDescription = exports.sEventVariantDescription = exports.sRemoveDevicePresetRequest = exports.sUpdateDevicePresetRequest = exports.sAddDevicePresetRequest = exports.sOverrideDeviceSpecsRequest = exports.sUpdateDeviceRequest = exports.sAddDeviceRequest = exports.sDeviceOtherDto = exports.sNvrAnalyticsServerDto = exports.sNvrExporterDto = exports.sRecorderDto = exports.sDisplayDto = exports.sIntercomOperatorDto = exports.sAlarmDto = exports.sServerDto = exports.sPresenceTrackerDto = exports.sDeviceGatewayDto = exports.sPbxDto = exports.sIntercomTerminalDto = exports.sPanicButtonDto = exports.sMotionSensorDto = exports.sCameraLiftDto = exports.sIoBoardDto = exports.sReaderDto = exports.sDoorDto = exports.sCameraDto = exports.sDeviceDto = exports.sForeignDeviceInfo = exports.sDeviceMgmtInfo = exports.sPresetDto = exports.sProviderMetadata = exports.sAnyDeviceSpecs = exports.sOtherSpecsWithType = exports.sNvrAnalyticsServerSpecsWithType = exports.sNvrExporterSpecsWithType = exports.sRecorderSpecsWithType = exports.sDisplaySpecsWithType = exports.DEVICE_TYPES = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const camera_1 = require("./camera");
|
|
6
6
|
const door_1 = require("./door");
|
|
@@ -20,6 +20,7 @@ const display_1 = require("./display");
|
|
|
20
20
|
const nvr_recorder_1 = require("./nvr-recorder");
|
|
21
21
|
const nvr_exporter_1 = require("./nvr-exporter");
|
|
22
22
|
const nvr_analytics_server_1 = require("./nvr-analytics-server");
|
|
23
|
+
const other_1 = require("./other");
|
|
23
24
|
exports.DEVICE_TYPES = [
|
|
24
25
|
alarm_1.ALARM,
|
|
25
26
|
server_1.SERVER,
|
|
@@ -39,6 +40,7 @@ exports.DEVICE_TYPES = [
|
|
|
39
40
|
nvr_recorder_1.NVR_RECORDER,
|
|
40
41
|
nvr_exporter_1.NVR_EXPORTER,
|
|
41
42
|
nvr_analytics_server_1.NVR_ANALYTICS_SERVER,
|
|
43
|
+
other_1.DEVICE_OTHER,
|
|
42
44
|
];
|
|
43
45
|
const sDeviceType = zod_1.z.enum(exports.DEVICE_TYPES);
|
|
44
46
|
const sAlarmSpecsWithType = alarm_1.sAlarmSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(alarm_1.ALARM) }));
|
|
@@ -69,6 +71,9 @@ exports.sNvrExporterSpecsWithType = nvr_exporter_1.sExporterSpecs.merge(zod_1.z.
|
|
|
69
71
|
exports.sNvrAnalyticsServerSpecsWithType = nvr_analytics_server_1.sAnalyticsServerSpecs.merge(zod_1.z.object({
|
|
70
72
|
type: zod_1.z.literal(nvr_analytics_server_1.NVR_ANALYTICS_SERVER),
|
|
71
73
|
}));
|
|
74
|
+
exports.sOtherSpecsWithType = zod_1.z
|
|
75
|
+
.object({ type: zod_1.z.literal(other_1.DEVICE_OTHER) })
|
|
76
|
+
.merge(other_1.sDeviceOtherSpecs);
|
|
72
77
|
exports.sAnyDeviceSpecs = zod_1.z.discriminatedUnion('type', [
|
|
73
78
|
sAlarmSpecsWithType,
|
|
74
79
|
sCameraSpecsWithType,
|
|
@@ -88,6 +93,7 @@ exports.sAnyDeviceSpecs = zod_1.z.discriminatedUnion('type', [
|
|
|
88
93
|
exports.sRecorderSpecsWithType,
|
|
89
94
|
exports.sNvrExporterSpecsWithType,
|
|
90
95
|
exports.sNvrAnalyticsServerSpecsWithType,
|
|
96
|
+
exports.sOtherSpecsWithType,
|
|
91
97
|
]);
|
|
92
98
|
exports.sProviderMetadata = zod_1.z.object({}).catchall(zod_1.z.unknown());
|
|
93
99
|
exports.sPresetDto = zod_1.z.object({
|
|
@@ -174,6 +180,9 @@ exports.sNvrExporterDto = exports.sNvrExporterSpecsWithType
|
|
|
174
180
|
exports.sNvrAnalyticsServerDto = exports.sNvrAnalyticsServerSpecsWithType
|
|
175
181
|
.and(exports.sDeviceMgmtInfo)
|
|
176
182
|
.and(exports.sForeignDeviceInfo);
|
|
183
|
+
exports.sDeviceOtherDto = exports.sOtherSpecsWithType
|
|
184
|
+
.and(exports.sDeviceMgmtInfo)
|
|
185
|
+
.and(exports.sForeignDeviceInfo);
|
|
177
186
|
exports.sAddDeviceRequest = zod_1.z.object({
|
|
178
187
|
name: zod_1.z.string().nonempty(),
|
|
179
188
|
foreignRef: zod_1.z.string().nonempty(),
|
package/dist/device/index.d.ts
CHANGED
package/dist/device/index.js
CHANGED