@awarevue/api-types 2.0.7 → 2.0.9
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 +20 -20
- package/dist/agent-communication/queries.d.ts +15 -15
- package/dist/device/any-device.d.ts +20 -20
- package/dist/device/any-device.js +8 -8
- package/dist/device/index.d.ts +1 -1
- package/dist/device/index.js +1 -1
- package/dist/device/nvr-exporter.d.ts +14 -14
- package/dist/device/nvr-recorder.d.ts +30 -30
- package/dist/device/{other.d.ts → system.d.ts} +7 -7
- package/dist/device/{other.js → system.js} +5 -5
- package/dist/device-command.d.ts +7 -7
- package/dist/device-event.d.ts +2 -2
- package/dist/device-event.js +2 -2
- package/dist/device-import.d.ts +18 -18
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/notifications.d.ts +21 -0
- package/dist/notifications.js +8 -1
- package/dist/package.json +1 -1
- package/dist/permissions.d.ts +3 -3
- package/dist/permissions.js +1 -3
- package/dist/primitives.d.ts +6 -6
- package/dist/user.d.ts +12 -12
- package/package.json +1 -1
|
@@ -783,11 +783,11 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
783
783
|
}, {
|
|
784
784
|
type: "nvr-analytics-server";
|
|
785
785
|
}>, z.ZodObject<{
|
|
786
|
-
type: z.ZodLiteral<"
|
|
786
|
+
type: z.ZodLiteral<"system">;
|
|
787
787
|
}, "strip", z.ZodTypeAny, {
|
|
788
|
-
type: "
|
|
788
|
+
type: "system";
|
|
789
789
|
}, {
|
|
790
|
-
type: "
|
|
790
|
+
type: "system";
|
|
791
791
|
}>]>>;
|
|
792
792
|
command: z.ZodString;
|
|
793
793
|
batchId: z.ZodOptional<z.ZodString>;
|
|
@@ -873,7 +873,7 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
873
873
|
} | {
|
|
874
874
|
type: "nvr-analytics-server";
|
|
875
875
|
} | {
|
|
876
|
-
type: "
|
|
876
|
+
type: "system";
|
|
877
877
|
});
|
|
878
878
|
params?: Record<string, unknown> | undefined;
|
|
879
879
|
batchId?: string | undefined;
|
|
@@ -958,7 +958,7 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
958
958
|
} | {
|
|
959
959
|
type: "nvr-analytics-server";
|
|
960
960
|
} | {
|
|
961
|
-
type: "
|
|
961
|
+
type: "system";
|
|
962
962
|
});
|
|
963
963
|
params?: Record<string, unknown> | undefined;
|
|
964
964
|
batchId?: string | undefined;
|
|
@@ -1223,11 +1223,11 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1223
1223
|
}, {
|
|
1224
1224
|
type: "nvr-analytics-server";
|
|
1225
1225
|
}>, z.ZodObject<{
|
|
1226
|
-
type: z.ZodLiteral<"
|
|
1226
|
+
type: z.ZodLiteral<"system">;
|
|
1227
1227
|
}, "strip", z.ZodTypeAny, {
|
|
1228
|
-
type: "
|
|
1228
|
+
type: "system";
|
|
1229
1229
|
}, {
|
|
1230
|
-
type: "
|
|
1230
|
+
type: "system";
|
|
1231
1231
|
}>]>>;
|
|
1232
1232
|
args: z.ZodUnknown;
|
|
1233
1233
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1310,7 +1310,7 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1310
1310
|
} | {
|
|
1311
1311
|
type: "nvr-analytics-server";
|
|
1312
1312
|
} | {
|
|
1313
|
-
type: "
|
|
1313
|
+
type: "system";
|
|
1314
1314
|
});
|
|
1315
1315
|
query: string;
|
|
1316
1316
|
args?: unknown;
|
|
@@ -1394,7 +1394,7 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1394
1394
|
} | {
|
|
1395
1395
|
type: "nvr-analytics-server";
|
|
1396
1396
|
} | {
|
|
1397
|
-
type: "
|
|
1397
|
+
type: "system";
|
|
1398
1398
|
});
|
|
1399
1399
|
query: string;
|
|
1400
1400
|
args?: unknown;
|
|
@@ -1665,11 +1665,11 @@ export declare const sPushFile: z.ZodObject<{
|
|
|
1665
1665
|
}, {
|
|
1666
1666
|
type: "nvr-analytics-server";
|
|
1667
1667
|
}>, z.ZodObject<{
|
|
1668
|
-
type: z.ZodLiteral<"
|
|
1668
|
+
type: z.ZodLiteral<"system">;
|
|
1669
1669
|
}, "strip", z.ZodTypeAny, {
|
|
1670
|
-
type: "
|
|
1670
|
+
type: "system";
|
|
1671
1671
|
}, {
|
|
1672
|
-
type: "
|
|
1672
|
+
type: "system";
|
|
1673
1673
|
}>]>>;
|
|
1674
1674
|
args: z.ZodUnknown;
|
|
1675
1675
|
url: z.ZodString;
|
|
@@ -1754,7 +1754,7 @@ export declare const sPushFile: z.ZodObject<{
|
|
|
1754
1754
|
} | {
|
|
1755
1755
|
type: "nvr-analytics-server";
|
|
1756
1756
|
} | {
|
|
1757
|
-
type: "
|
|
1757
|
+
type: "system";
|
|
1758
1758
|
});
|
|
1759
1759
|
query: string;
|
|
1760
1760
|
args?: unknown;
|
|
@@ -1839,7 +1839,7 @@ export declare const sPushFile: z.ZodObject<{
|
|
|
1839
1839
|
} | {
|
|
1840
1840
|
type: "nvr-analytics-server";
|
|
1841
1841
|
} | {
|
|
1842
|
-
type: "
|
|
1842
|
+
type: "system";
|
|
1843
1843
|
});
|
|
1844
1844
|
query: string;
|
|
1845
1845
|
args?: unknown;
|
|
@@ -2178,11 +2178,11 @@ export declare const sGetAvailableDevicesRs: z.ZodIntersection<z.ZodObject<{
|
|
|
2178
2178
|
}, {
|
|
2179
2179
|
type: "nvr-analytics-server";
|
|
2180
2180
|
}>, z.ZodObject<{
|
|
2181
|
-
type: z.ZodLiteral<"
|
|
2181
|
+
type: z.ZodLiteral<"system">;
|
|
2182
2182
|
}, "strip", z.ZodTypeAny, {
|
|
2183
|
-
type: "
|
|
2183
|
+
type: "system";
|
|
2184
2184
|
}, {
|
|
2185
|
-
type: "
|
|
2185
|
+
type: "system";
|
|
2186
2186
|
}>]>>, "many">;
|
|
2187
2187
|
relations: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
2188
2188
|
leftId: z.ZodString;
|
|
@@ -2284,7 +2284,7 @@ export declare const sGetAvailableDevicesRs: z.ZodIntersection<z.ZodObject<{
|
|
|
2284
2284
|
} | {
|
|
2285
2285
|
type: "nvr-analytics-server";
|
|
2286
2286
|
} | {
|
|
2287
|
-
type: "
|
|
2287
|
+
type: "system";
|
|
2288
2288
|
}))[];
|
|
2289
2289
|
relations: ({
|
|
2290
2290
|
kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy" | "records" | "isRecordedBy" | "reads" | "isReadBy";
|
|
@@ -2376,7 +2376,7 @@ export declare const sGetAvailableDevicesRs: z.ZodIntersection<z.ZodObject<{
|
|
|
2376
2376
|
} | {
|
|
2377
2377
|
type: "nvr-analytics-server";
|
|
2378
2378
|
} | {
|
|
2379
|
-
type: "
|
|
2379
|
+
type: "system";
|
|
2380
2380
|
}))[];
|
|
2381
2381
|
relations: ({
|
|
2382
2382
|
kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy" | "records" | "isRecordedBy" | "reads" | "isReadBy";
|
|
@@ -319,11 +319,11 @@ export declare const requestSchemasByType: {
|
|
|
319
319
|
}, {
|
|
320
320
|
type: "nvr-analytics-server";
|
|
321
321
|
}>, import("zod").ZodObject<{
|
|
322
|
-
type: import("zod").ZodLiteral<"
|
|
322
|
+
type: import("zod").ZodLiteral<"system">;
|
|
323
323
|
}, "strip", import("zod").ZodTypeAny, {
|
|
324
|
-
type: "
|
|
324
|
+
type: "system";
|
|
325
325
|
}, {
|
|
326
|
-
type: "
|
|
326
|
+
type: "system";
|
|
327
327
|
}>]>>]>;
|
|
328
328
|
timeFrom: import("zod").ZodNumber;
|
|
329
329
|
timeTo: import("zod").ZodNumber;
|
|
@@ -406,7 +406,7 @@ export declare const requestSchemasByType: {
|
|
|
406
406
|
} | {
|
|
407
407
|
type: "nvr-analytics-server";
|
|
408
408
|
} | {
|
|
409
|
-
type: "
|
|
409
|
+
type: "system";
|
|
410
410
|
}));
|
|
411
411
|
timeFrom: number;
|
|
412
412
|
timeTo: number;
|
|
@@ -489,7 +489,7 @@ export declare const requestSchemasByType: {
|
|
|
489
489
|
} | {
|
|
490
490
|
type: "nvr-analytics-server";
|
|
491
491
|
} | {
|
|
492
|
-
type: "
|
|
492
|
+
type: "system";
|
|
493
493
|
}));
|
|
494
494
|
timeFrom: number;
|
|
495
495
|
timeTo: number;
|
|
@@ -742,11 +742,11 @@ export declare const requestSchemasByType: {
|
|
|
742
742
|
}, {
|
|
743
743
|
type: "nvr-analytics-server";
|
|
744
744
|
}>, import("zod").ZodObject<{
|
|
745
|
-
type: import("zod").ZodLiteral<"
|
|
745
|
+
type: import("zod").ZodLiteral<"system">;
|
|
746
746
|
}, "strip", import("zod").ZodTypeAny, {
|
|
747
|
-
type: "
|
|
747
|
+
type: "system";
|
|
748
748
|
}, {
|
|
749
|
-
type: "
|
|
749
|
+
type: "system";
|
|
750
750
|
}>]>>]>;
|
|
751
751
|
time: import("zod").ZodNumber;
|
|
752
752
|
height: import("zod").ZodNumber;
|
|
@@ -831,7 +831,7 @@ export declare const requestSchemasByType: {
|
|
|
831
831
|
} | {
|
|
832
832
|
type: "nvr-analytics-server";
|
|
833
833
|
} | {
|
|
834
|
-
type: "
|
|
834
|
+
type: "system";
|
|
835
835
|
}));
|
|
836
836
|
}, {
|
|
837
837
|
time: number;
|
|
@@ -914,7 +914,7 @@ export declare const requestSchemasByType: {
|
|
|
914
914
|
} | {
|
|
915
915
|
type: "nvr-analytics-server";
|
|
916
916
|
} | {
|
|
917
|
-
type: "
|
|
917
|
+
type: "system";
|
|
918
918
|
}));
|
|
919
919
|
}>;
|
|
920
920
|
readonly "cctv:latest-frame": import("zod").ZodObject<{
|
|
@@ -1165,11 +1165,11 @@ export declare const requestSchemasByType: {
|
|
|
1165
1165
|
}, {
|
|
1166
1166
|
type: "nvr-analytics-server";
|
|
1167
1167
|
}>, import("zod").ZodObject<{
|
|
1168
|
-
type: import("zod").ZodLiteral<"
|
|
1168
|
+
type: import("zod").ZodLiteral<"system">;
|
|
1169
1169
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1170
|
-
type: "
|
|
1170
|
+
type: "system";
|
|
1171
1171
|
}, {
|
|
1172
|
-
type: "
|
|
1172
|
+
type: "system";
|
|
1173
1173
|
}>]>>]>;
|
|
1174
1174
|
width: import("zod").ZodNumber;
|
|
1175
1175
|
height: import("zod").ZodNumber;
|
|
@@ -1254,7 +1254,7 @@ export declare const requestSchemasByType: {
|
|
|
1254
1254
|
} | {
|
|
1255
1255
|
type: "nvr-analytics-server";
|
|
1256
1256
|
} | {
|
|
1257
|
-
type: "
|
|
1257
|
+
type: "system";
|
|
1258
1258
|
}));
|
|
1259
1259
|
}, {
|
|
1260
1260
|
height: number;
|
|
@@ -1337,7 +1337,7 @@ export declare const requestSchemasByType: {
|
|
|
1337
1337
|
} | {
|
|
1338
1338
|
type: "nvr-analytics-server";
|
|
1339
1339
|
} | {
|
|
1340
|
-
type: "
|
|
1340
|
+
type: "system";
|
|
1341
1341
|
}));
|
|
1342
1342
|
}>;
|
|
1343
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", "system"];
|
|
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", "system"]>;
|
|
4
4
|
export declare const sDisplaySpecsWithType: z.ZodObject<{
|
|
5
5
|
type: z.ZodLiteral<"display">;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -29,12 +29,12 @@ export declare const sNvrAnalyticsServerSpecsWithType: z.ZodObject<{
|
|
|
29
29
|
}, {
|
|
30
30
|
type: "nvr-analytics-server";
|
|
31
31
|
}>;
|
|
32
|
-
export declare const
|
|
33
|
-
type: z.ZodLiteral<"
|
|
32
|
+
export declare const sSystemDeviceSpecsWithType: z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<"system">;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
type: "
|
|
35
|
+
type: "system";
|
|
36
36
|
}, {
|
|
37
|
-
type: "
|
|
37
|
+
type: "system";
|
|
38
38
|
}>;
|
|
39
39
|
export declare const sAnyDeviceSpecs: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
40
40
|
type: z.ZodLiteral<"alarm">;
|
|
@@ -264,11 +264,11 @@ export declare const sAnyDeviceSpecs: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
264
264
|
}, {
|
|
265
265
|
type: "nvr-analytics-server";
|
|
266
266
|
}>, z.ZodObject<{
|
|
267
|
-
type: z.ZodLiteral<"
|
|
267
|
+
type: z.ZodLiteral<"system">;
|
|
268
268
|
}, "strip", z.ZodTypeAny, {
|
|
269
|
-
type: "
|
|
269
|
+
type: "system";
|
|
270
270
|
}, {
|
|
271
|
-
type: "
|
|
271
|
+
type: "system";
|
|
272
272
|
}>]>;
|
|
273
273
|
export declare const sProviderMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
|
|
274
274
|
export declare const sPresetDto: z.ZodObject<{
|
|
@@ -633,11 +633,11 @@ export declare const sDeviceDto: z.ZodIntersection<z.ZodIntersection<z.ZodDiscri
|
|
|
633
633
|
}, {
|
|
634
634
|
type: "nvr-analytics-server";
|
|
635
635
|
}>, z.ZodObject<{
|
|
636
|
-
type: z.ZodLiteral<"
|
|
636
|
+
type: z.ZodLiteral<"system">;
|
|
637
637
|
}, "strip", z.ZodTypeAny, {
|
|
638
|
-
type: "
|
|
638
|
+
type: "system";
|
|
639
639
|
}, {
|
|
640
|
-
type: "
|
|
640
|
+
type: "system";
|
|
641
641
|
}>]>, z.ZodObject<{
|
|
642
642
|
id: z.ZodString;
|
|
643
643
|
presets: z.ZodArray<z.ZodObject<{
|
|
@@ -2917,12 +2917,12 @@ export declare const sNvrAnalyticsServerDto: z.ZodIntersection<z.ZodIntersection
|
|
|
2917
2917
|
[k: string]: unknown;
|
|
2918
2918
|
};
|
|
2919
2919
|
}>>;
|
|
2920
|
-
export declare const
|
|
2921
|
-
type: z.ZodLiteral<"
|
|
2920
|
+
export declare const sSystemDeviceDto: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
2921
|
+
type: z.ZodLiteral<"system">;
|
|
2922
2922
|
}, "strip", z.ZodTypeAny, {
|
|
2923
|
-
type: "
|
|
2923
|
+
type: "system";
|
|
2924
2924
|
}, {
|
|
2925
|
-
type: "
|
|
2925
|
+
type: "system";
|
|
2926
2926
|
}>, z.ZodObject<{
|
|
2927
2927
|
id: z.ZodString;
|
|
2928
2928
|
presets: z.ZodArray<z.ZodObject<{
|
|
@@ -3048,11 +3048,11 @@ export declare const sAddDeviceRequest: z.ZodObject<{
|
|
|
3048
3048
|
id: z.ZodString;
|
|
3049
3049
|
kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
|
|
3050
3050
|
}, z.ZodUnknown, "strip">>, "many">;
|
|
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", "
|
|
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", "system"]>;
|
|
3052
3052
|
specs: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>>;
|
|
3053
3053
|
}, "strip", z.ZodTypeAny, {
|
|
3054
3054
|
name: string;
|
|
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" | "
|
|
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" | "system";
|
|
3056
3056
|
foreignRef: string;
|
|
3057
3057
|
tags: string[];
|
|
3058
3058
|
provider: string;
|
|
@@ -3067,7 +3067,7 @@ export declare const sAddDeviceRequest: z.ZodObject<{
|
|
|
3067
3067
|
specs?: z.objectOutputType<{}, z.ZodUnknown, "strip"> | undefined;
|
|
3068
3068
|
}, {
|
|
3069
3069
|
name: string;
|
|
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" | "
|
|
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" | "system";
|
|
3071
3071
|
foreignRef: string;
|
|
3072
3072
|
tags: string[];
|
|
3073
3073
|
provider: string;
|
|
@@ -3290,7 +3290,7 @@ export type DisplayDto = z.infer<typeof sDisplayDto>;
|
|
|
3290
3290
|
export type RecorderDto = z.infer<typeof sRecorderDto>;
|
|
3291
3291
|
export type NvrExporterDto = z.infer<typeof sNvrExporterDto>;
|
|
3292
3292
|
export type NvrAnalyticsServerDto = z.infer<typeof sNvrAnalyticsServerDto>;
|
|
3293
|
-
export type
|
|
3293
|
+
export type SystemDeviceDto = z.infer<typeof sSystemDeviceDto>;
|
|
3294
3294
|
export type AddDeviceRequest = z.infer<typeof sAddDeviceRequest>;
|
|
3295
3295
|
export type UpdateDeviceRequest = z.infer<typeof sUpdateDeviceRequest>;
|
|
3296
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.
|
|
3
|
+
exports.sSetUnsetRelationRequest = exports.sGetEventCatalogResponse = exports.sEventDescription = exports.sEventVariantDescription = exports.sRemoveDevicePresetRequest = exports.sUpdateDevicePresetRequest = exports.sAddDevicePresetRequest = exports.sOverrideDeviceSpecsRequest = exports.sUpdateDeviceRequest = exports.sAddDeviceRequest = exports.sSystemDeviceDto = 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.sSystemDeviceSpecsWithType = 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,7 +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
|
|
23
|
+
const system_1 = require("./system");
|
|
24
24
|
exports.DEVICE_TYPES = [
|
|
25
25
|
alarm_1.ALARM,
|
|
26
26
|
server_1.SERVER,
|
|
@@ -40,7 +40,7 @@ exports.DEVICE_TYPES = [
|
|
|
40
40
|
nvr_recorder_1.NVR_RECORDER,
|
|
41
41
|
nvr_exporter_1.NVR_EXPORTER,
|
|
42
42
|
nvr_analytics_server_1.NVR_ANALYTICS_SERVER,
|
|
43
|
-
|
|
43
|
+
system_1.SYSTEM,
|
|
44
44
|
];
|
|
45
45
|
const sDeviceType = zod_1.z.enum(exports.DEVICE_TYPES);
|
|
46
46
|
const sAlarmSpecsWithType = alarm_1.sAlarmSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(alarm_1.ALARM) }));
|
|
@@ -71,9 +71,9 @@ exports.sNvrExporterSpecsWithType = nvr_exporter_1.sExporterSpecs.merge(zod_1.z.
|
|
|
71
71
|
exports.sNvrAnalyticsServerSpecsWithType = nvr_analytics_server_1.sAnalyticsServerSpecs.merge(zod_1.z.object({
|
|
72
72
|
type: zod_1.z.literal(nvr_analytics_server_1.NVR_ANALYTICS_SERVER),
|
|
73
73
|
}));
|
|
74
|
-
exports.
|
|
75
|
-
.object({ type: zod_1.z.literal(
|
|
76
|
-
.merge(
|
|
74
|
+
exports.sSystemDeviceSpecsWithType = zod_1.z
|
|
75
|
+
.object({ type: zod_1.z.literal(system_1.SYSTEM) })
|
|
76
|
+
.merge(system_1.sSystemDeviceSpecs);
|
|
77
77
|
exports.sAnyDeviceSpecs = zod_1.z.discriminatedUnion('type', [
|
|
78
78
|
sAlarmSpecsWithType,
|
|
79
79
|
sCameraSpecsWithType,
|
|
@@ -93,7 +93,7 @@ exports.sAnyDeviceSpecs = zod_1.z.discriminatedUnion('type', [
|
|
|
93
93
|
exports.sRecorderSpecsWithType,
|
|
94
94
|
exports.sNvrExporterSpecsWithType,
|
|
95
95
|
exports.sNvrAnalyticsServerSpecsWithType,
|
|
96
|
-
exports.
|
|
96
|
+
exports.sSystemDeviceSpecsWithType,
|
|
97
97
|
]);
|
|
98
98
|
exports.sProviderMetadata = zod_1.z.object({}).catchall(zod_1.z.unknown());
|
|
99
99
|
exports.sPresetDto = zod_1.z.object({
|
|
@@ -180,7 +180,7 @@ exports.sNvrExporterDto = exports.sNvrExporterSpecsWithType
|
|
|
180
180
|
exports.sNvrAnalyticsServerDto = exports.sNvrAnalyticsServerSpecsWithType
|
|
181
181
|
.and(exports.sDeviceMgmtInfo)
|
|
182
182
|
.and(exports.sForeignDeviceInfo);
|
|
183
|
-
exports.
|
|
183
|
+
exports.sSystemDeviceDto = exports.sSystemDeviceSpecsWithType
|
|
184
184
|
.and(exports.sDeviceMgmtInfo)
|
|
185
185
|
.and(exports.sForeignDeviceInfo);
|
|
186
186
|
exports.sAddDeviceRequest = zod_1.z.object({
|
package/dist/device/index.d.ts
CHANGED
package/dist/device/index.js
CHANGED
|
@@ -33,4 +33,4 @@ __exportStar(require("./display"), exports);
|
|
|
33
33
|
__exportStar(require("./nvr-recorder"), exports);
|
|
34
34
|
__exportStar(require("./nvr-exporter"), exports);
|
|
35
35
|
__exportStar(require("./nvr-analytics-server"), exports);
|
|
36
|
-
__exportStar(require("./
|
|
36
|
+
__exportStar(require("./system"), exports);
|
|
@@ -264,11 +264,11 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
264
264
|
}, {
|
|
265
265
|
type: "nvr-analytics-server";
|
|
266
266
|
}>, z.ZodObject<{
|
|
267
|
-
type: z.ZodLiteral<"
|
|
267
|
+
type: z.ZodLiteral<"system">;
|
|
268
268
|
}, "strip", z.ZodTypeAny, {
|
|
269
|
-
type: "
|
|
269
|
+
type: "system";
|
|
270
270
|
}, {
|
|
271
|
-
type: "
|
|
271
|
+
type: "system";
|
|
272
272
|
}>]>>]>;
|
|
273
273
|
timeFrom: z.ZodNumber;
|
|
274
274
|
timeTo: z.ZodNumber;
|
|
@@ -354,7 +354,7 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
354
354
|
} | {
|
|
355
355
|
type: "nvr-analytics-server";
|
|
356
356
|
} | {
|
|
357
|
-
type: "
|
|
357
|
+
type: "system";
|
|
358
358
|
}));
|
|
359
359
|
timeFrom: number;
|
|
360
360
|
timeTo: number;
|
|
@@ -439,7 +439,7 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
439
439
|
} | {
|
|
440
440
|
type: "nvr-analytics-server";
|
|
441
441
|
} | {
|
|
442
|
-
type: "
|
|
442
|
+
type: "system";
|
|
443
443
|
}));
|
|
444
444
|
timeFrom: number;
|
|
445
445
|
timeTo: number;
|
|
@@ -526,7 +526,7 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
526
526
|
} | {
|
|
527
527
|
type: "nvr-analytics-server";
|
|
528
528
|
} | {
|
|
529
|
-
type: "
|
|
529
|
+
type: "system";
|
|
530
530
|
}));
|
|
531
531
|
timeFrom: number;
|
|
532
532
|
timeTo: number;
|
|
@@ -614,7 +614,7 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
614
614
|
} | {
|
|
615
615
|
type: "nvr-analytics-server";
|
|
616
616
|
} | {
|
|
617
|
-
type: "
|
|
617
|
+
type: "system";
|
|
618
618
|
}));
|
|
619
619
|
timeFrom: number;
|
|
620
620
|
timeTo: number;
|
|
@@ -896,11 +896,11 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
896
896
|
}, {
|
|
897
897
|
type: "nvr-analytics-server";
|
|
898
898
|
}>, z.ZodObject<{
|
|
899
|
-
type: z.ZodLiteral<"
|
|
899
|
+
type: z.ZodLiteral<"system">;
|
|
900
900
|
}, "strip", z.ZodTypeAny, {
|
|
901
|
-
type: "
|
|
901
|
+
type: "system";
|
|
902
902
|
}, {
|
|
903
|
-
type: "
|
|
903
|
+
type: "system";
|
|
904
904
|
}>]>>]>;
|
|
905
905
|
timeFrom: z.ZodNumber;
|
|
906
906
|
timeTo: z.ZodNumber;
|
|
@@ -986,7 +986,7 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
986
986
|
} | {
|
|
987
987
|
type: "nvr-analytics-server";
|
|
988
988
|
} | {
|
|
989
|
-
type: "
|
|
989
|
+
type: "system";
|
|
990
990
|
}));
|
|
991
991
|
timeFrom: number;
|
|
992
992
|
timeTo: number;
|
|
@@ -1071,7 +1071,7 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
1071
1071
|
} | {
|
|
1072
1072
|
type: "nvr-analytics-server";
|
|
1073
1073
|
} | {
|
|
1074
|
-
type: "
|
|
1074
|
+
type: "system";
|
|
1075
1075
|
}));
|
|
1076
1076
|
timeFrom: number;
|
|
1077
1077
|
timeTo: number;
|
|
@@ -1158,7 +1158,7 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
1158
1158
|
} | {
|
|
1159
1159
|
type: "nvr-analytics-server";
|
|
1160
1160
|
} | {
|
|
1161
|
-
type: "
|
|
1161
|
+
type: "system";
|
|
1162
1162
|
}));
|
|
1163
1163
|
timeFrom: number;
|
|
1164
1164
|
timeTo: number;
|
|
@@ -1246,7 +1246,7 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
1246
1246
|
} | {
|
|
1247
1247
|
type: "nvr-analytics-server";
|
|
1248
1248
|
} | {
|
|
1249
|
-
type: "
|
|
1249
|
+
type: "system";
|
|
1250
1250
|
}));
|
|
1251
1251
|
timeFrom: number;
|
|
1252
1252
|
timeTo: number;
|