@awarevue/api-types 2.0.6 → 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 +40 -0
- package/dist/agent-communication/queries.d.ts +30 -0
- 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 +28 -0
- package/dist/device/nvr-recorder.d.ts +60 -0
- package/dist/device/other.d.ts +48 -0
- package/dist/device/other.js +21 -0
- package/dist/device-command.d.ts +14 -0
- 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 -0
- package/dist/primitives.js +2 -1
- package/dist/user.d.ts +12 -12
- package/package.json +1 -1
|
@@ -782,6 +782,12 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
782
782
|
type: "nvr-analytics-server";
|
|
783
783
|
}, {
|
|
784
784
|
type: "nvr-analytics-server";
|
|
785
|
+
}>, z.ZodObject<{
|
|
786
|
+
type: z.ZodLiteral<"device-other">;
|
|
787
|
+
}, "strip", z.ZodTypeAny, {
|
|
788
|
+
type: "device-other";
|
|
789
|
+
}, {
|
|
790
|
+
type: "device-other";
|
|
785
791
|
}>]>>;
|
|
786
792
|
command: z.ZodString;
|
|
787
793
|
batchId: z.ZodOptional<z.ZodString>;
|
|
@@ -866,6 +872,8 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
866
872
|
type: "nvr-exporter";
|
|
867
873
|
} | {
|
|
868
874
|
type: "nvr-analytics-server";
|
|
875
|
+
} | {
|
|
876
|
+
type: "device-other";
|
|
869
877
|
});
|
|
870
878
|
params?: Record<string, unknown> | undefined;
|
|
871
879
|
batchId?: string | undefined;
|
|
@@ -949,6 +957,8 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
949
957
|
type: "nvr-exporter";
|
|
950
958
|
} | {
|
|
951
959
|
type: "nvr-analytics-server";
|
|
960
|
+
} | {
|
|
961
|
+
type: "device-other";
|
|
952
962
|
});
|
|
953
963
|
params?: Record<string, unknown> | undefined;
|
|
954
964
|
batchId?: string | undefined;
|
|
@@ -1212,6 +1222,12 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1212
1222
|
type: "nvr-analytics-server";
|
|
1213
1223
|
}, {
|
|
1214
1224
|
type: "nvr-analytics-server";
|
|
1225
|
+
}>, z.ZodObject<{
|
|
1226
|
+
type: z.ZodLiteral<"device-other">;
|
|
1227
|
+
}, "strip", z.ZodTypeAny, {
|
|
1228
|
+
type: "device-other";
|
|
1229
|
+
}, {
|
|
1230
|
+
type: "device-other";
|
|
1215
1231
|
}>]>>;
|
|
1216
1232
|
args: z.ZodUnknown;
|
|
1217
1233
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1293,6 +1309,8 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1293
1309
|
type: "nvr-exporter";
|
|
1294
1310
|
} | {
|
|
1295
1311
|
type: "nvr-analytics-server";
|
|
1312
|
+
} | {
|
|
1313
|
+
type: "device-other";
|
|
1296
1314
|
});
|
|
1297
1315
|
query: string;
|
|
1298
1316
|
args?: unknown;
|
|
@@ -1375,6 +1393,8 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1375
1393
|
type: "nvr-exporter";
|
|
1376
1394
|
} | {
|
|
1377
1395
|
type: "nvr-analytics-server";
|
|
1396
|
+
} | {
|
|
1397
|
+
type: "device-other";
|
|
1378
1398
|
});
|
|
1379
1399
|
query: string;
|
|
1380
1400
|
args?: unknown;
|
|
@@ -1644,6 +1664,12 @@ export declare const sPushFile: z.ZodObject<{
|
|
|
1644
1664
|
type: "nvr-analytics-server";
|
|
1645
1665
|
}, {
|
|
1646
1666
|
type: "nvr-analytics-server";
|
|
1667
|
+
}>, z.ZodObject<{
|
|
1668
|
+
type: z.ZodLiteral<"device-other">;
|
|
1669
|
+
}, "strip", z.ZodTypeAny, {
|
|
1670
|
+
type: "device-other";
|
|
1671
|
+
}, {
|
|
1672
|
+
type: "device-other";
|
|
1647
1673
|
}>]>>;
|
|
1648
1674
|
args: z.ZodUnknown;
|
|
1649
1675
|
url: z.ZodString;
|
|
@@ -1727,6 +1753,8 @@ export declare const sPushFile: z.ZodObject<{
|
|
|
1727
1753
|
type: "nvr-exporter";
|
|
1728
1754
|
} | {
|
|
1729
1755
|
type: "nvr-analytics-server";
|
|
1756
|
+
} | {
|
|
1757
|
+
type: "device-other";
|
|
1730
1758
|
});
|
|
1731
1759
|
query: string;
|
|
1732
1760
|
args?: unknown;
|
|
@@ -1810,6 +1838,8 @@ export declare const sPushFile: z.ZodObject<{
|
|
|
1810
1838
|
type: "nvr-exporter";
|
|
1811
1839
|
} | {
|
|
1812
1840
|
type: "nvr-analytics-server";
|
|
1841
|
+
} | {
|
|
1842
|
+
type: "device-other";
|
|
1813
1843
|
});
|
|
1814
1844
|
query: string;
|
|
1815
1845
|
args?: unknown;
|
|
@@ -2147,6 +2177,12 @@ export declare const sGetAvailableDevicesRs: z.ZodIntersection<z.ZodObject<{
|
|
|
2147
2177
|
type: "nvr-analytics-server";
|
|
2148
2178
|
}, {
|
|
2149
2179
|
type: "nvr-analytics-server";
|
|
2180
|
+
}>, z.ZodObject<{
|
|
2181
|
+
type: z.ZodLiteral<"device-other">;
|
|
2182
|
+
}, "strip", z.ZodTypeAny, {
|
|
2183
|
+
type: "device-other";
|
|
2184
|
+
}, {
|
|
2185
|
+
type: "device-other";
|
|
2150
2186
|
}>]>>, "many">;
|
|
2151
2187
|
relations: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
2152
2188
|
leftId: z.ZodString;
|
|
@@ -2247,6 +2283,8 @@ export declare const sGetAvailableDevicesRs: z.ZodIntersection<z.ZodObject<{
|
|
|
2247
2283
|
type: "nvr-exporter";
|
|
2248
2284
|
} | {
|
|
2249
2285
|
type: "nvr-analytics-server";
|
|
2286
|
+
} | {
|
|
2287
|
+
type: "device-other";
|
|
2250
2288
|
}))[];
|
|
2251
2289
|
relations: ({
|
|
2252
2290
|
kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy" | "records" | "isRecordedBy" | "reads" | "isReadBy";
|
|
@@ -2337,6 +2375,8 @@ export declare const sGetAvailableDevicesRs: z.ZodIntersection<z.ZodObject<{
|
|
|
2337
2375
|
type: "nvr-exporter";
|
|
2338
2376
|
} | {
|
|
2339
2377
|
type: "nvr-analytics-server";
|
|
2378
|
+
} | {
|
|
2379
|
+
type: "device-other";
|
|
2340
2380
|
}))[];
|
|
2341
2381
|
relations: ({
|
|
2342
2382
|
kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy" | "records" | "isRecordedBy" | "reads" | "isReadBy";
|
|
@@ -318,6 +318,12 @@ export declare const requestSchemasByType: {
|
|
|
318
318
|
type: "nvr-analytics-server";
|
|
319
319
|
}, {
|
|
320
320
|
type: "nvr-analytics-server";
|
|
321
|
+
}>, import("zod").ZodObject<{
|
|
322
|
+
type: import("zod").ZodLiteral<"device-other">;
|
|
323
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
324
|
+
type: "device-other";
|
|
325
|
+
}, {
|
|
326
|
+
type: "device-other";
|
|
321
327
|
}>]>>]>;
|
|
322
328
|
timeFrom: import("zod").ZodNumber;
|
|
323
329
|
timeTo: import("zod").ZodNumber;
|
|
@@ -399,6 +405,8 @@ export declare const requestSchemasByType: {
|
|
|
399
405
|
type: "nvr-exporter";
|
|
400
406
|
} | {
|
|
401
407
|
type: "nvr-analytics-server";
|
|
408
|
+
} | {
|
|
409
|
+
type: "device-other";
|
|
402
410
|
}));
|
|
403
411
|
timeFrom: number;
|
|
404
412
|
timeTo: number;
|
|
@@ -480,6 +488,8 @@ export declare const requestSchemasByType: {
|
|
|
480
488
|
type: "nvr-exporter";
|
|
481
489
|
} | {
|
|
482
490
|
type: "nvr-analytics-server";
|
|
491
|
+
} | {
|
|
492
|
+
type: "device-other";
|
|
483
493
|
}));
|
|
484
494
|
timeFrom: number;
|
|
485
495
|
timeTo: number;
|
|
@@ -731,6 +741,12 @@ export declare const requestSchemasByType: {
|
|
|
731
741
|
type: "nvr-analytics-server";
|
|
732
742
|
}, {
|
|
733
743
|
type: "nvr-analytics-server";
|
|
744
|
+
}>, import("zod").ZodObject<{
|
|
745
|
+
type: import("zod").ZodLiteral<"device-other">;
|
|
746
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
747
|
+
type: "device-other";
|
|
748
|
+
}, {
|
|
749
|
+
type: "device-other";
|
|
734
750
|
}>]>>]>;
|
|
735
751
|
time: import("zod").ZodNumber;
|
|
736
752
|
height: import("zod").ZodNumber;
|
|
@@ -814,6 +830,8 @@ export declare const requestSchemasByType: {
|
|
|
814
830
|
type: "nvr-exporter";
|
|
815
831
|
} | {
|
|
816
832
|
type: "nvr-analytics-server";
|
|
833
|
+
} | {
|
|
834
|
+
type: "device-other";
|
|
817
835
|
}));
|
|
818
836
|
}, {
|
|
819
837
|
time: number;
|
|
@@ -895,6 +913,8 @@ export declare const requestSchemasByType: {
|
|
|
895
913
|
type: "nvr-exporter";
|
|
896
914
|
} | {
|
|
897
915
|
type: "nvr-analytics-server";
|
|
916
|
+
} | {
|
|
917
|
+
type: "device-other";
|
|
898
918
|
}));
|
|
899
919
|
}>;
|
|
900
920
|
readonly "cctv:latest-frame": import("zod").ZodObject<{
|
|
@@ -1144,6 +1164,12 @@ export declare const requestSchemasByType: {
|
|
|
1144
1164
|
type: "nvr-analytics-server";
|
|
1145
1165
|
}, {
|
|
1146
1166
|
type: "nvr-analytics-server";
|
|
1167
|
+
}>, import("zod").ZodObject<{
|
|
1168
|
+
type: import("zod").ZodLiteral<"device-other">;
|
|
1169
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1170
|
+
type: "device-other";
|
|
1171
|
+
}, {
|
|
1172
|
+
type: "device-other";
|
|
1147
1173
|
}>]>>]>;
|
|
1148
1174
|
width: import("zod").ZodNumber;
|
|
1149
1175
|
height: import("zod").ZodNumber;
|
|
@@ -1227,6 +1253,8 @@ export declare const requestSchemasByType: {
|
|
|
1227
1253
|
type: "nvr-exporter";
|
|
1228
1254
|
} | {
|
|
1229
1255
|
type: "nvr-analytics-server";
|
|
1256
|
+
} | {
|
|
1257
|
+
type: "device-other";
|
|
1230
1258
|
}));
|
|
1231
1259
|
}, {
|
|
1232
1260
|
height: number;
|
|
@@ -1308,6 +1336,8 @@ export declare const requestSchemasByType: {
|
|
|
1308
1336
|
type: "nvr-exporter";
|
|
1309
1337
|
} | {
|
|
1310
1338
|
type: "nvr-analytics-server";
|
|
1339
|
+
} | {
|
|
1340
|
+
type: "device-other";
|
|
1311
1341
|
}));
|
|
1312
1342
|
}>;
|
|
1313
1343
|
};
|
|
@@ -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
|
@@ -263,6 +263,12 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
263
263
|
type: "nvr-analytics-server";
|
|
264
264
|
}, {
|
|
265
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";
|
|
266
272
|
}>]>>]>;
|
|
267
273
|
timeFrom: z.ZodNumber;
|
|
268
274
|
timeTo: z.ZodNumber;
|
|
@@ -347,6 +353,8 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
347
353
|
type: "nvr-exporter";
|
|
348
354
|
} | {
|
|
349
355
|
type: "nvr-analytics-server";
|
|
356
|
+
} | {
|
|
357
|
+
type: "device-other";
|
|
350
358
|
}));
|
|
351
359
|
timeFrom: number;
|
|
352
360
|
timeTo: number;
|
|
@@ -430,6 +438,8 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
430
438
|
type: "nvr-exporter";
|
|
431
439
|
} | {
|
|
432
440
|
type: "nvr-analytics-server";
|
|
441
|
+
} | {
|
|
442
|
+
type: "device-other";
|
|
433
443
|
}));
|
|
434
444
|
timeFrom: number;
|
|
435
445
|
timeTo: number;
|
|
@@ -515,6 +525,8 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
515
525
|
type: "nvr-exporter";
|
|
516
526
|
} | {
|
|
517
527
|
type: "nvr-analytics-server";
|
|
528
|
+
} | {
|
|
529
|
+
type: "device-other";
|
|
518
530
|
}));
|
|
519
531
|
timeFrom: number;
|
|
520
532
|
timeTo: number;
|
|
@@ -601,6 +613,8 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
601
613
|
type: "nvr-exporter";
|
|
602
614
|
} | {
|
|
603
615
|
type: "nvr-analytics-server";
|
|
616
|
+
} | {
|
|
617
|
+
type: "device-other";
|
|
604
618
|
}));
|
|
605
619
|
timeFrom: number;
|
|
606
620
|
timeTo: number;
|
|
@@ -881,6 +895,12 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
881
895
|
type: "nvr-analytics-server";
|
|
882
896
|
}, {
|
|
883
897
|
type: "nvr-analytics-server";
|
|
898
|
+
}>, z.ZodObject<{
|
|
899
|
+
type: z.ZodLiteral<"device-other">;
|
|
900
|
+
}, "strip", z.ZodTypeAny, {
|
|
901
|
+
type: "device-other";
|
|
902
|
+
}, {
|
|
903
|
+
type: "device-other";
|
|
884
904
|
}>]>>]>;
|
|
885
905
|
timeFrom: z.ZodNumber;
|
|
886
906
|
timeTo: z.ZodNumber;
|
|
@@ -965,6 +985,8 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
965
985
|
type: "nvr-exporter";
|
|
966
986
|
} | {
|
|
967
987
|
type: "nvr-analytics-server";
|
|
988
|
+
} | {
|
|
989
|
+
type: "device-other";
|
|
968
990
|
}));
|
|
969
991
|
timeFrom: number;
|
|
970
992
|
timeTo: number;
|
|
@@ -1048,6 +1070,8 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
1048
1070
|
type: "nvr-exporter";
|
|
1049
1071
|
} | {
|
|
1050
1072
|
type: "nvr-analytics-server";
|
|
1073
|
+
} | {
|
|
1074
|
+
type: "device-other";
|
|
1051
1075
|
}));
|
|
1052
1076
|
timeFrom: number;
|
|
1053
1077
|
timeTo: number;
|
|
@@ -1133,6 +1157,8 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
1133
1157
|
type: "nvr-exporter";
|
|
1134
1158
|
} | {
|
|
1135
1159
|
type: "nvr-analytics-server";
|
|
1160
|
+
} | {
|
|
1161
|
+
type: "device-other";
|
|
1136
1162
|
}));
|
|
1137
1163
|
timeFrom: number;
|
|
1138
1164
|
timeTo: number;
|
|
@@ -1219,6 +1245,8 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
1219
1245
|
type: "nvr-exporter";
|
|
1220
1246
|
} | {
|
|
1221
1247
|
type: "nvr-analytics-server";
|
|
1248
|
+
} | {
|
|
1249
|
+
type: "device-other";
|
|
1222
1250
|
}));
|
|
1223
1251
|
timeFrom: number;
|
|
1224
1252
|
timeTo: number;
|