camstreamerlib 4.0.0-beta.86 → 4.0.0-beta.87
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/cjs/CamStreamerAPI.d.ts +112 -42
- package/cjs/PlaneTrackerAPI.d.ts +3 -1
- package/cjs/PlaneTrackerAPI.js +7 -0
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +1120 -357
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +68 -21
- package/cjs/types/CamStreamerAPI/hlsSchema.d.ts +68 -21
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +68 -21
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +68 -21
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +68 -21
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +165 -36
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +12 -6
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +68 -21
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +68 -21
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +69 -3
- package/cjs/types/ws/PlaneTrackerEvents.js +11 -0
- package/esm/PlaneTrackerAPI.js +8 -1
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +12 -6
- package/esm/types/ws/PlaneTrackerEvents.js +11 -0
- package/package.json +1 -1
- package/types/CamStreamerAPI.d.ts +112 -42
- package/types/PlaneTrackerAPI.d.ts +3 -1
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +1120 -357
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +68 -21
- package/types/types/CamStreamerAPI/hlsSchema.d.ts +68 -21
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +68 -21
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +68 -21
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +68 -21
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +165 -36
- package/types/types/CamStreamerAPI/windySchema.d.ts +68 -21
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +68 -21
- package/types/types/ws/PlaneTrackerEvents.d.ts +69 -3
|
@@ -11,6 +11,7 @@ declare const apiFlightDataSchema: z.ZodObject<{
|
|
|
11
11
|
whiteListed: z.ZodBoolean;
|
|
12
12
|
blackListed: z.ZodBoolean;
|
|
13
13
|
priorityListed: z.ZodBoolean;
|
|
14
|
+
typePriorityListed: z.ZodDefault<z.ZodBoolean>;
|
|
14
15
|
autoSelectionIgnored: z.ZodBoolean;
|
|
15
16
|
signalQuality: z.ZodNumber;
|
|
16
17
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -29,6 +30,7 @@ declare const apiFlightDataSchema: z.ZodObject<{
|
|
|
29
30
|
whiteListed: boolean;
|
|
30
31
|
blackListed: boolean;
|
|
31
32
|
priorityListed: boolean;
|
|
33
|
+
typePriorityListed: boolean;
|
|
32
34
|
autoSelectionIgnored: boolean;
|
|
33
35
|
signalQuality: number;
|
|
34
36
|
emitterCategorySet: number;
|
|
@@ -51,6 +53,7 @@ declare const apiFlightDataSchema: z.ZodObject<{
|
|
|
51
53
|
signalQuality: number;
|
|
52
54
|
emergencyState: boolean;
|
|
53
55
|
emergencyStatusMessage: string;
|
|
56
|
+
typePriorityListed?: boolean | undefined;
|
|
54
57
|
emitterCategorySet?: number | undefined;
|
|
55
58
|
emitterCategory?: number | undefined;
|
|
56
59
|
}>;
|
|
@@ -96,6 +99,7 @@ export declare enum PlaneTrackerUserActions {
|
|
|
96
99
|
TRACK_ICAO = "trackIcao.cgi",
|
|
97
100
|
RESET_ICAO = "resetIcao.cgi",
|
|
98
101
|
SET_PRIORITY_LIST = "setPriorityList.cgi",
|
|
102
|
+
SET_TYPE_PRIORITY_LIST = "setTypePriorityList.cgi",
|
|
99
103
|
SET_BLACK_LIST = "setBlackList.cgi",
|
|
100
104
|
SET_WHITE_LIST = "setWhiteList.cgi",
|
|
101
105
|
GO_TO_COORDINATES = "goToCoordinates.cgi",
|
|
@@ -220,6 +224,51 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
|
|
|
220
224
|
postJsonBody: {
|
|
221
225
|
priorityList: string[];
|
|
222
226
|
};
|
|
227
|
+
}>, z.ZodObject<{
|
|
228
|
+
cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST>;
|
|
229
|
+
ip: z.ZodString;
|
|
230
|
+
params: z.ZodObject<{
|
|
231
|
+
userId: z.ZodString;
|
|
232
|
+
userName: z.ZodString;
|
|
233
|
+
userPriority: z.ZodString;
|
|
234
|
+
}, "strip", z.ZodTypeAny, {
|
|
235
|
+
userId: string;
|
|
236
|
+
userName: string;
|
|
237
|
+
userPriority: string;
|
|
238
|
+
}, {
|
|
239
|
+
userId: string;
|
|
240
|
+
userName: string;
|
|
241
|
+
userPriority: string;
|
|
242
|
+
}>;
|
|
243
|
+
postJsonBody: z.ZodObject<{
|
|
244
|
+
typePriorityList: z.ZodArray<z.ZodString, "many">;
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
typePriorityList: string[];
|
|
247
|
+
}, {
|
|
248
|
+
typePriorityList: string[];
|
|
249
|
+
}>;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
params: {
|
|
252
|
+
userId: string;
|
|
253
|
+
userName: string;
|
|
254
|
+
userPriority: string;
|
|
255
|
+
};
|
|
256
|
+
ip: string;
|
|
257
|
+
cgi: PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST;
|
|
258
|
+
postJsonBody: {
|
|
259
|
+
typePriorityList: string[];
|
|
260
|
+
};
|
|
261
|
+
}, {
|
|
262
|
+
params: {
|
|
263
|
+
userId: string;
|
|
264
|
+
userName: string;
|
|
265
|
+
userPriority: string;
|
|
266
|
+
};
|
|
267
|
+
ip: string;
|
|
268
|
+
cgi: PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST;
|
|
269
|
+
postJsonBody: {
|
|
270
|
+
typePriorityList: string[];
|
|
271
|
+
};
|
|
223
272
|
}>, z.ZodObject<{
|
|
224
273
|
cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_BLACK_LIST>;
|
|
225
274
|
ip: z.ZodString;
|
|
@@ -711,6 +760,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
711
760
|
whiteListed: z.ZodBoolean;
|
|
712
761
|
blackListed: z.ZodBoolean;
|
|
713
762
|
priorityListed: z.ZodBoolean;
|
|
763
|
+
typePriorityListed: z.ZodDefault<z.ZodBoolean>;
|
|
714
764
|
autoSelectionIgnored: z.ZodBoolean;
|
|
715
765
|
signalQuality: z.ZodNumber;
|
|
716
766
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -729,6 +779,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
729
779
|
whiteListed: boolean;
|
|
730
780
|
blackListed: boolean;
|
|
731
781
|
priorityListed: boolean;
|
|
782
|
+
typePriorityListed: boolean;
|
|
732
783
|
autoSelectionIgnored: boolean;
|
|
733
784
|
signalQuality: number;
|
|
734
785
|
emitterCategorySet: number;
|
|
@@ -751,6 +802,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
751
802
|
signalQuality: number;
|
|
752
803
|
emergencyState: boolean;
|
|
753
804
|
emergencyStatusMessage: string;
|
|
805
|
+
typePriorityListed?: boolean | undefined;
|
|
754
806
|
emitterCategorySet?: number | undefined;
|
|
755
807
|
emitterCategory?: number | undefined;
|
|
756
808
|
}>, "many">;
|
|
@@ -768,6 +820,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
768
820
|
whiteListed: boolean;
|
|
769
821
|
blackListed: boolean;
|
|
770
822
|
priorityListed: boolean;
|
|
823
|
+
typePriorityListed: boolean;
|
|
771
824
|
autoSelectionIgnored: boolean;
|
|
772
825
|
signalQuality: number;
|
|
773
826
|
emitterCategorySet: number;
|
|
@@ -793,6 +846,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
793
846
|
signalQuality: number;
|
|
794
847
|
emergencyState: boolean;
|
|
795
848
|
emergencyStatusMessage: string;
|
|
849
|
+
typePriorityListed?: boolean | undefined;
|
|
796
850
|
emitterCategorySet?: number | undefined;
|
|
797
851
|
emitterCategory?: number | undefined;
|
|
798
852
|
}[];
|
|
@@ -822,7 +876,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
822
876
|
lat?: string | undefined;
|
|
823
877
|
lon?: string | undefined;
|
|
824
878
|
}>;
|
|
825
|
-
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_BLACK_LIST, PlaneTrackerUserActions.SET_WHITE_LIST, PlaneTrackerUserActions.GO_TO_COORDINATES, PlaneTrackerUserActions.SET_TRACKING_MODE, PlaneTrackerUserActions.SET_ZONES, PlaneTrackerUserActions.RESET_PTZ_CALIBRATION, PlaneTrackerUserActions.LOCK_API, PlaneTrackerUserActions.UNLOCK_API]>;
|
|
879
|
+
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST, PlaneTrackerUserActions.SET_BLACK_LIST, PlaneTrackerUserActions.SET_WHITE_LIST, PlaneTrackerUserActions.GO_TO_COORDINATES, PlaneTrackerUserActions.SET_TRACKING_MODE, PlaneTrackerUserActions.SET_ZONES, PlaneTrackerUserActions.RESET_PTZ_CALIBRATION, PlaneTrackerUserActions.LOCK_API, PlaneTrackerUserActions.UNLOCK_API]>;
|
|
826
880
|
postJsonBody: z.ZodAny;
|
|
827
881
|
}, "strip", z.ZodTypeAny, {
|
|
828
882
|
params: {
|
|
@@ -986,6 +1040,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
986
1040
|
whiteListed: z.ZodBoolean;
|
|
987
1041
|
blackListed: z.ZodBoolean;
|
|
988
1042
|
priorityListed: z.ZodBoolean;
|
|
1043
|
+
typePriorityListed: z.ZodDefault<z.ZodBoolean>;
|
|
989
1044
|
autoSelectionIgnored: z.ZodBoolean;
|
|
990
1045
|
signalQuality: z.ZodNumber;
|
|
991
1046
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1004,6 +1059,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1004
1059
|
whiteListed: boolean;
|
|
1005
1060
|
blackListed: boolean;
|
|
1006
1061
|
priorityListed: boolean;
|
|
1062
|
+
typePriorityListed: boolean;
|
|
1007
1063
|
autoSelectionIgnored: boolean;
|
|
1008
1064
|
signalQuality: number;
|
|
1009
1065
|
emitterCategorySet: number;
|
|
@@ -1026,6 +1082,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1026
1082
|
signalQuality: number;
|
|
1027
1083
|
emergencyState: boolean;
|
|
1028
1084
|
emergencyStatusMessage: string;
|
|
1085
|
+
typePriorityListed?: boolean | undefined;
|
|
1029
1086
|
emitterCategorySet?: number | undefined;
|
|
1030
1087
|
emitterCategory?: number | undefined;
|
|
1031
1088
|
}>, "many">;
|
|
@@ -1043,6 +1100,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1043
1100
|
whiteListed: boolean;
|
|
1044
1101
|
blackListed: boolean;
|
|
1045
1102
|
priorityListed: boolean;
|
|
1103
|
+
typePriorityListed: boolean;
|
|
1046
1104
|
autoSelectionIgnored: boolean;
|
|
1047
1105
|
signalQuality: number;
|
|
1048
1106
|
emitterCategorySet: number;
|
|
@@ -1068,6 +1126,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1068
1126
|
signalQuality: number;
|
|
1069
1127
|
emergencyState: boolean;
|
|
1070
1128
|
emergencyStatusMessage: string;
|
|
1129
|
+
typePriorityListed?: boolean | undefined;
|
|
1071
1130
|
emitterCategorySet?: number | undefined;
|
|
1072
1131
|
emitterCategory?: number | undefined;
|
|
1073
1132
|
}[];
|
|
@@ -1097,7 +1156,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1097
1156
|
lat?: string | undefined;
|
|
1098
1157
|
lon?: string | undefined;
|
|
1099
1158
|
}>;
|
|
1100
|
-
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_BLACK_LIST, PlaneTrackerUserActions.SET_WHITE_LIST, PlaneTrackerUserActions.GO_TO_COORDINATES, PlaneTrackerUserActions.SET_TRACKING_MODE, PlaneTrackerUserActions.SET_ZONES, PlaneTrackerUserActions.RESET_PTZ_CALIBRATION, PlaneTrackerUserActions.LOCK_API, PlaneTrackerUserActions.UNLOCK_API]>;
|
|
1159
|
+
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST, PlaneTrackerUserActions.SET_BLACK_LIST, PlaneTrackerUserActions.SET_WHITE_LIST, PlaneTrackerUserActions.GO_TO_COORDINATES, PlaneTrackerUserActions.SET_TRACKING_MODE, PlaneTrackerUserActions.SET_ZONES, PlaneTrackerUserActions.RESET_PTZ_CALIBRATION, PlaneTrackerUserActions.LOCK_API, PlaneTrackerUserActions.UNLOCK_API]>;
|
|
1101
1160
|
postJsonBody: z.ZodAny;
|
|
1102
1161
|
}, "strip", z.ZodTypeAny, {
|
|
1103
1162
|
params: {
|
|
@@ -1237,6 +1296,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1237
1296
|
whiteListed: boolean;
|
|
1238
1297
|
blackListed: boolean;
|
|
1239
1298
|
priorityListed: boolean;
|
|
1299
|
+
typePriorityListed: boolean;
|
|
1240
1300
|
autoSelectionIgnored: boolean;
|
|
1241
1301
|
signalQuality: number;
|
|
1242
1302
|
emitterCategorySet: number;
|
|
@@ -1311,6 +1371,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1311
1371
|
signalQuality: number;
|
|
1312
1372
|
emergencyState: boolean;
|
|
1313
1373
|
emergencyStatusMessage: string;
|
|
1374
|
+
typePriorityListed?: boolean | undefined;
|
|
1314
1375
|
emitterCategorySet?: number | undefined;
|
|
1315
1376
|
emitterCategory?: number | undefined;
|
|
1316
1377
|
}[];
|
|
@@ -1399,6 +1460,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1399
1460
|
whiteListed: z.ZodBoolean;
|
|
1400
1461
|
blackListed: z.ZodBoolean;
|
|
1401
1462
|
priorityListed: z.ZodBoolean;
|
|
1463
|
+
typePriorityListed: z.ZodDefault<z.ZodBoolean>;
|
|
1402
1464
|
autoSelectionIgnored: z.ZodBoolean;
|
|
1403
1465
|
signalQuality: z.ZodNumber;
|
|
1404
1466
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1417,6 +1479,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1417
1479
|
whiteListed: boolean;
|
|
1418
1480
|
blackListed: boolean;
|
|
1419
1481
|
priorityListed: boolean;
|
|
1482
|
+
typePriorityListed: boolean;
|
|
1420
1483
|
autoSelectionIgnored: boolean;
|
|
1421
1484
|
signalQuality: number;
|
|
1422
1485
|
emitterCategorySet: number;
|
|
@@ -1439,6 +1502,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1439
1502
|
signalQuality: number;
|
|
1440
1503
|
emergencyState: boolean;
|
|
1441
1504
|
emergencyStatusMessage: string;
|
|
1505
|
+
typePriorityListed?: boolean | undefined;
|
|
1442
1506
|
emitterCategorySet?: number | undefined;
|
|
1443
1507
|
emitterCategory?: number | undefined;
|
|
1444
1508
|
}>, "many">;
|
|
@@ -1456,6 +1520,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1456
1520
|
whiteListed: boolean;
|
|
1457
1521
|
blackListed: boolean;
|
|
1458
1522
|
priorityListed: boolean;
|
|
1523
|
+
typePriorityListed: boolean;
|
|
1459
1524
|
autoSelectionIgnored: boolean;
|
|
1460
1525
|
signalQuality: number;
|
|
1461
1526
|
emitterCategorySet: number;
|
|
@@ -1481,6 +1546,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1481
1546
|
signalQuality: number;
|
|
1482
1547
|
emergencyState: boolean;
|
|
1483
1548
|
emergencyStatusMessage: string;
|
|
1549
|
+
typePriorityListed?: boolean | undefined;
|
|
1484
1550
|
emitterCategorySet?: number | undefined;
|
|
1485
1551
|
emitterCategory?: number | undefined;
|
|
1486
1552
|
}[];
|
|
@@ -1510,7 +1576,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1510
1576
|
lat?: string | undefined;
|
|
1511
1577
|
lon?: string | undefined;
|
|
1512
1578
|
}>;
|
|
1513
|
-
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_BLACK_LIST, PlaneTrackerUserActions.SET_WHITE_LIST, PlaneTrackerUserActions.GO_TO_COORDINATES, PlaneTrackerUserActions.SET_TRACKING_MODE, PlaneTrackerUserActions.SET_ZONES, PlaneTrackerUserActions.RESET_PTZ_CALIBRATION, PlaneTrackerUserActions.LOCK_API, PlaneTrackerUserActions.UNLOCK_API]>;
|
|
1579
|
+
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST, PlaneTrackerUserActions.SET_BLACK_LIST, PlaneTrackerUserActions.SET_WHITE_LIST, PlaneTrackerUserActions.GO_TO_COORDINATES, PlaneTrackerUserActions.SET_TRACKING_MODE, PlaneTrackerUserActions.SET_ZONES, PlaneTrackerUserActions.RESET_PTZ_CALIBRATION, PlaneTrackerUserActions.LOCK_API, PlaneTrackerUserActions.UNLOCK_API]>;
|
|
1514
1580
|
postJsonBody: z.ZodAny;
|
|
1515
1581
|
}, "strip", z.ZodTypeAny, {
|
|
1516
1582
|
params: {
|
|
@@ -15,6 +15,7 @@ const apiFlightDataSchema = zod_1.z.object({
|
|
|
15
15
|
whiteListed: zod_1.z.boolean(),
|
|
16
16
|
blackListed: zod_1.z.boolean(),
|
|
17
17
|
priorityListed: zod_1.z.boolean(),
|
|
18
|
+
typePriorityListed: zod_1.z.boolean().default(false),
|
|
18
19
|
autoSelectionIgnored: zod_1.z.boolean(),
|
|
19
20
|
signalQuality: zod_1.z.number(),
|
|
20
21
|
emitterCategorySet: zod_1.z.number().default(4),
|
|
@@ -48,6 +49,7 @@ var PlaneTrackerUserActions;
|
|
|
48
49
|
PlaneTrackerUserActions["TRACK_ICAO"] = "trackIcao.cgi";
|
|
49
50
|
PlaneTrackerUserActions["RESET_ICAO"] = "resetIcao.cgi";
|
|
50
51
|
PlaneTrackerUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
|
|
52
|
+
PlaneTrackerUserActions["SET_TYPE_PRIORITY_LIST"] = "setTypePriorityList.cgi";
|
|
51
53
|
PlaneTrackerUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
|
|
52
54
|
PlaneTrackerUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
|
|
53
55
|
PlaneTrackerUserActions["GO_TO_COORDINATES"] = "goToCoordinates.cgi";
|
|
@@ -78,6 +80,14 @@ exports.planeTrackerUserActionData = zod_1.z.discriminatedUnion('cgi', [
|
|
|
78
80
|
priorityList: zod_1.z.array(zod_1.z.string()),
|
|
79
81
|
}),
|
|
80
82
|
}),
|
|
83
|
+
zod_1.z.object({
|
|
84
|
+
cgi: zod_1.z.literal(PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST),
|
|
85
|
+
ip: zod_1.z.string(),
|
|
86
|
+
params: apiStringUserSchema,
|
|
87
|
+
postJsonBody: zod_1.z.object({
|
|
88
|
+
typePriorityList: zod_1.z.array(zod_1.z.string()),
|
|
89
|
+
}),
|
|
90
|
+
}),
|
|
81
91
|
zod_1.z.object({
|
|
82
92
|
cgi: zod_1.z.literal(PlaneTrackerUserActions.SET_BLACK_LIST),
|
|
83
93
|
ip: zod_1.z.string(),
|
|
@@ -164,6 +174,7 @@ const ptrEventsDataSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
164
174
|
PlaneTrackerUserActions.TRACK_ICAO,
|
|
165
175
|
PlaneTrackerUserActions.RESET_ICAO,
|
|
166
176
|
PlaneTrackerUserActions.SET_PRIORITY_LIST,
|
|
177
|
+
PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST,
|
|
167
178
|
PlaneTrackerUserActions.SET_BLACK_LIST,
|
|
168
179
|
PlaneTrackerUserActions.SET_WHITE_LIST,
|
|
169
180
|
PlaneTrackerUserActions.GO_TO_COORDINATES,
|
package/esm/PlaneTrackerAPI.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { paramToUrl } from './internal/utils';
|
|
3
|
-
import { blackListSchema, cameraSettingsSchema, flightInfoSchema, getIcaoSchema, mapInfoSchema, priorityListSchema, serverSettingsSchema, trackingModeSchema, whiteListSchema, wsAliasResponseSchema, zonesSchema, } from './types/PlaneTrackerAPI';
|
|
3
|
+
import { blackListSchema, cameraSettingsSchema, flightInfoSchema, getIcaoSchema, mapInfoSchema, priorityListSchema, serverSettingsSchema, trackingModeSchema, typePriorityListSchema, whiteListSchema, wsAliasResponseSchema, zonesSchema, } from './types/PlaneTrackerAPI';
|
|
4
4
|
import { CannotSetCoordsInAutoModeError, ImportSettingsError, InvalidAltitudeError, InvalidLatLngError, ParsingBlobError, ResetCalibrationError, ServerError, BadRequestError, ErrorWithResponse, } from './errors/errors';
|
|
5
5
|
import { ProxyClient } from './internal/ProxyClient';
|
|
6
6
|
import { cameraListSchema } from './types/GenetecAgent';
|
|
@@ -122,6 +122,13 @@ export class PlaneTrackerAPI {
|
|
|
122
122
|
async setPriorityList(priorityList, options) {
|
|
123
123
|
return await this._postJsonEncoded(`${BASE_PATH}/package/setPriorityList.cgi`, { priorityList }, this.apiUser, options);
|
|
124
124
|
}
|
|
125
|
+
async getTypePriorityList(options) {
|
|
126
|
+
const res = await this._getJson(`${BASE_PATH}/package/getTypePriorityList.cgi`, undefined, options);
|
|
127
|
+
return typePriorityListSchema.parse(res).typePriorityList;
|
|
128
|
+
}
|
|
129
|
+
async setTypePriorityList(typePriorityList, options) {
|
|
130
|
+
return await this._postJsonEncoded(`${BASE_PATH}/package/setTypePriorityList.cgi`, { typePriorityList }, this.apiUser, options);
|
|
131
|
+
}
|
|
125
132
|
async getWhiteList(options) {
|
|
126
133
|
const res = await this._getJson(`${BASE_PATH}/package/getWhiteList.cgi`, undefined, options);
|
|
127
134
|
return whiteListSchema.parse(res).whiteList;
|
|
@@ -8,6 +8,17 @@ export const streamTypeSchema = z.union([
|
|
|
8
8
|
z.literal('hls'),
|
|
9
9
|
z.literal('rtmp'),
|
|
10
10
|
]);
|
|
11
|
+
const scheduleSchema = z.object({
|
|
12
|
+
start: z.object({
|
|
13
|
+
day: z.number().int().min(0).max(6),
|
|
14
|
+
timeS: z.number().int().min(0).max(86400),
|
|
15
|
+
}),
|
|
16
|
+
stop: z.object({
|
|
17
|
+
day: z.number().int().min(0).max(6),
|
|
18
|
+
timeS: z.number().int().min(0).max(86400),
|
|
19
|
+
}),
|
|
20
|
+
isActive: z.boolean(),
|
|
21
|
+
});
|
|
11
22
|
export const streamTriggerSchema = z.discriminatedUnion('type', [
|
|
12
23
|
z.object({
|
|
13
24
|
type: z.literal('manual'),
|
|
@@ -16,12 +27,7 @@ export const streamTriggerSchema = z.discriminatedUnion('type', [
|
|
|
16
27
|
z.object({ type: z.literal('onetime'), startTime: z.number(), stopTime: z.number() }),
|
|
17
28
|
z.object({
|
|
18
29
|
type: z.literal('recurrent'),
|
|
19
|
-
schedule: z.array(
|
|
20
|
-
day: z.number().int().min(0).max(6),
|
|
21
|
-
startTimeS: z.number().int().min(0).max(86400),
|
|
22
|
-
stopTimeS: z.number().int().min(0).max(86400),
|
|
23
|
-
isActive: z.boolean(),
|
|
24
|
-
})),
|
|
30
|
+
schedule: z.array(scheduleSchema),
|
|
25
31
|
}),
|
|
26
32
|
]);
|
|
27
33
|
export const streamCommonSchema = z.object({
|
|
@@ -12,6 +12,7 @@ const apiFlightDataSchema = z.object({
|
|
|
12
12
|
whiteListed: z.boolean(),
|
|
13
13
|
blackListed: z.boolean(),
|
|
14
14
|
priorityListed: z.boolean(),
|
|
15
|
+
typePriorityListed: z.boolean().default(false),
|
|
15
16
|
autoSelectionIgnored: z.boolean(),
|
|
16
17
|
signalQuality: z.number(),
|
|
17
18
|
emitterCategorySet: z.number().default(4),
|
|
@@ -45,6 +46,7 @@ export var PlaneTrackerUserActions;
|
|
|
45
46
|
PlaneTrackerUserActions["TRACK_ICAO"] = "trackIcao.cgi";
|
|
46
47
|
PlaneTrackerUserActions["RESET_ICAO"] = "resetIcao.cgi";
|
|
47
48
|
PlaneTrackerUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
|
|
49
|
+
PlaneTrackerUserActions["SET_TYPE_PRIORITY_LIST"] = "setTypePriorityList.cgi";
|
|
48
50
|
PlaneTrackerUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
|
|
49
51
|
PlaneTrackerUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
|
|
50
52
|
PlaneTrackerUserActions["GO_TO_COORDINATES"] = "goToCoordinates.cgi";
|
|
@@ -75,6 +77,14 @@ export const planeTrackerUserActionData = z.discriminatedUnion('cgi', [
|
|
|
75
77
|
priorityList: z.array(z.string()),
|
|
76
78
|
}),
|
|
77
79
|
}),
|
|
80
|
+
z.object({
|
|
81
|
+
cgi: z.literal(PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST),
|
|
82
|
+
ip: z.string(),
|
|
83
|
+
params: apiStringUserSchema,
|
|
84
|
+
postJsonBody: z.object({
|
|
85
|
+
typePriorityList: z.array(z.string()),
|
|
86
|
+
}),
|
|
87
|
+
}),
|
|
78
88
|
z.object({
|
|
79
89
|
cgi: z.literal(PlaneTrackerUserActions.SET_BLACK_LIST),
|
|
80
90
|
ip: z.string(),
|
|
@@ -161,6 +171,7 @@ const ptrEventsDataSchema = z.discriminatedUnion('type', [
|
|
|
161
171
|
PlaneTrackerUserActions.TRACK_ICAO,
|
|
162
172
|
PlaneTrackerUserActions.RESET_ICAO,
|
|
163
173
|
PlaneTrackerUserActions.SET_PRIORITY_LIST,
|
|
174
|
+
PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST,
|
|
164
175
|
PlaneTrackerUserActions.SET_BLACK_LIST,
|
|
165
176
|
PlaneTrackerUserActions.SET_WHITE_LIST,
|
|
166
177
|
PlaneTrackerUserActions.GO_TO_COORDINATES,
|
package/package.json
CHANGED
|
@@ -26,9 +26,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
26
26
|
} | {
|
|
27
27
|
type: "recurrent";
|
|
28
28
|
schedule: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
start: {
|
|
30
|
+
day: number;
|
|
31
|
+
timeS: number;
|
|
32
|
+
};
|
|
33
|
+
stop: {
|
|
34
|
+
day: number;
|
|
35
|
+
timeS: number;
|
|
36
|
+
};
|
|
32
37
|
isActive: boolean;
|
|
33
38
|
}[];
|
|
34
39
|
};
|
|
@@ -48,9 +53,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
48
53
|
} | {
|
|
49
54
|
type: "recurrent";
|
|
50
55
|
schedule: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
start: {
|
|
57
|
+
day: number;
|
|
58
|
+
timeS: number;
|
|
59
|
+
};
|
|
60
|
+
stop: {
|
|
61
|
+
day: number;
|
|
62
|
+
timeS: number;
|
|
63
|
+
};
|
|
54
64
|
isActive: boolean;
|
|
55
65
|
}[];
|
|
56
66
|
};
|
|
@@ -71,9 +81,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
71
81
|
} | {
|
|
72
82
|
type: "recurrent";
|
|
73
83
|
schedule: {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
start: {
|
|
85
|
+
day: number;
|
|
86
|
+
timeS: number;
|
|
87
|
+
};
|
|
88
|
+
stop: {
|
|
89
|
+
day: number;
|
|
90
|
+
timeS: number;
|
|
91
|
+
};
|
|
77
92
|
isActive: boolean;
|
|
78
93
|
}[];
|
|
79
94
|
};
|
|
@@ -108,9 +123,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
108
123
|
} | {
|
|
109
124
|
type: "recurrent";
|
|
110
125
|
schedule: {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
126
|
+
start: {
|
|
127
|
+
day: number;
|
|
128
|
+
timeS: number;
|
|
129
|
+
};
|
|
130
|
+
stop: {
|
|
131
|
+
day: number;
|
|
132
|
+
timeS: number;
|
|
133
|
+
};
|
|
114
134
|
isActive: boolean;
|
|
115
135
|
}[];
|
|
116
136
|
};
|
|
@@ -130,9 +150,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
130
150
|
} | {
|
|
131
151
|
type: "recurrent";
|
|
132
152
|
schedule: {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
153
|
+
start: {
|
|
154
|
+
day: number;
|
|
155
|
+
timeS: number;
|
|
156
|
+
};
|
|
157
|
+
stop: {
|
|
158
|
+
day: number;
|
|
159
|
+
timeS: number;
|
|
160
|
+
};
|
|
136
161
|
isActive: boolean;
|
|
137
162
|
}[];
|
|
138
163
|
};
|
|
@@ -152,9 +177,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
152
177
|
} | {
|
|
153
178
|
type: "recurrent";
|
|
154
179
|
schedule: {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
180
|
+
start: {
|
|
181
|
+
day: number;
|
|
182
|
+
timeS: number;
|
|
183
|
+
};
|
|
184
|
+
stop: {
|
|
185
|
+
day: number;
|
|
186
|
+
timeS: number;
|
|
187
|
+
};
|
|
158
188
|
isActive: boolean;
|
|
159
189
|
}[];
|
|
160
190
|
};
|
|
@@ -174,9 +204,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
174
204
|
} | {
|
|
175
205
|
type: "recurrent";
|
|
176
206
|
schedule: {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
207
|
+
start: {
|
|
208
|
+
day: number;
|
|
209
|
+
timeS: number;
|
|
210
|
+
};
|
|
211
|
+
stop: {
|
|
212
|
+
day: number;
|
|
213
|
+
timeS: number;
|
|
214
|
+
};
|
|
180
215
|
isActive: boolean;
|
|
181
216
|
}[];
|
|
182
217
|
};
|
|
@@ -198,9 +233,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
198
233
|
} | {
|
|
199
234
|
type: "recurrent";
|
|
200
235
|
schedule: {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
236
|
+
start: {
|
|
237
|
+
day: number;
|
|
238
|
+
timeS: number;
|
|
239
|
+
};
|
|
240
|
+
stop: {
|
|
241
|
+
day: number;
|
|
242
|
+
timeS: number;
|
|
243
|
+
};
|
|
204
244
|
isActive: boolean;
|
|
205
245
|
}[];
|
|
206
246
|
};
|
|
@@ -220,9 +260,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
220
260
|
} | {
|
|
221
261
|
type: "recurrent";
|
|
222
262
|
schedule: {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
263
|
+
start: {
|
|
264
|
+
day: number;
|
|
265
|
+
timeS: number;
|
|
266
|
+
};
|
|
267
|
+
stop: {
|
|
268
|
+
day: number;
|
|
269
|
+
timeS: number;
|
|
270
|
+
};
|
|
226
271
|
isActive: boolean;
|
|
227
272
|
}[];
|
|
228
273
|
};
|
|
@@ -243,9 +288,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
243
288
|
} | {
|
|
244
289
|
type: "recurrent";
|
|
245
290
|
schedule: {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
291
|
+
start: {
|
|
292
|
+
day: number;
|
|
293
|
+
timeS: number;
|
|
294
|
+
};
|
|
295
|
+
stop: {
|
|
296
|
+
day: number;
|
|
297
|
+
timeS: number;
|
|
298
|
+
};
|
|
249
299
|
isActive: boolean;
|
|
250
300
|
}[];
|
|
251
301
|
};
|
|
@@ -280,9 +330,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
280
330
|
} | {
|
|
281
331
|
type: "recurrent";
|
|
282
332
|
schedule: {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
333
|
+
start: {
|
|
334
|
+
day: number;
|
|
335
|
+
timeS: number;
|
|
336
|
+
};
|
|
337
|
+
stop: {
|
|
338
|
+
day: number;
|
|
339
|
+
timeS: number;
|
|
340
|
+
};
|
|
286
341
|
isActive: boolean;
|
|
287
342
|
}[];
|
|
288
343
|
};
|
|
@@ -302,9 +357,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
302
357
|
} | {
|
|
303
358
|
type: "recurrent";
|
|
304
359
|
schedule: {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
360
|
+
start: {
|
|
361
|
+
day: number;
|
|
362
|
+
timeS: number;
|
|
363
|
+
};
|
|
364
|
+
stop: {
|
|
365
|
+
day: number;
|
|
366
|
+
timeS: number;
|
|
367
|
+
};
|
|
308
368
|
isActive: boolean;
|
|
309
369
|
}[];
|
|
310
370
|
};
|
|
@@ -324,9 +384,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
324
384
|
} | {
|
|
325
385
|
type: "recurrent";
|
|
326
386
|
schedule: {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
387
|
+
start: {
|
|
388
|
+
day: number;
|
|
389
|
+
timeS: number;
|
|
390
|
+
};
|
|
391
|
+
stop: {
|
|
392
|
+
day: number;
|
|
393
|
+
timeS: number;
|
|
394
|
+
};
|
|
330
395
|
isActive: boolean;
|
|
331
396
|
}[];
|
|
332
397
|
};
|
|
@@ -346,9 +411,14 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
346
411
|
} | {
|
|
347
412
|
type: "recurrent";
|
|
348
413
|
schedule: {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
414
|
+
start: {
|
|
415
|
+
day: number;
|
|
416
|
+
timeS: number;
|
|
417
|
+
};
|
|
418
|
+
stop: {
|
|
419
|
+
day: number;
|
|
420
|
+
timeS: number;
|
|
421
|
+
};
|
|
352
422
|
isActive: boolean;
|
|
353
423
|
}[];
|
|
354
424
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IClient, TBlobResponse, TParameters, TResponse } from './internal/types';
|
|
2
|
-
import { ICAO, TApiUser, TBlackList, TCameraSettings, TExportDataType, TGetIcaoByOption, TImportDataType, TPriorityList, TTrackingMode, TWhiteList, TZones } from './types/PlaneTrackerAPI';
|
|
2
|
+
import { ICAO, TApiUser, TBlackList, TCameraSettings, TExportDataType, TGetIcaoByOption, TImportDataType, TPriorityList, TTrackingMode, TTypePriorityList, TWhiteList, TZones } from './types/PlaneTrackerAPI';
|
|
3
3
|
import { THttpRequestOptions, TProxyParams } from './types/common';
|
|
4
4
|
import { ProxyClient } from './internal/ProxyClient';
|
|
5
5
|
export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
@@ -194,6 +194,8 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
194
194
|
getIcao(by: TGetIcaoByOption, value: string, options?: THttpRequestOptions): Promise<string>;
|
|
195
195
|
getPriorityList(options?: THttpRequestOptions): Promise<string[]>;
|
|
196
196
|
setPriorityList(priorityList: TPriorityList['priorityList'], options?: THttpRequestOptions): Promise<TResponse>;
|
|
197
|
+
getTypePriorityList(options?: THttpRequestOptions): Promise<string[]>;
|
|
198
|
+
setTypePriorityList(typePriorityList: TTypePriorityList['typePriorityList'], options?: THttpRequestOptions): Promise<TResponse>;
|
|
197
199
|
getWhiteList(options?: THttpRequestOptions): Promise<string[]>;
|
|
198
200
|
setWhiteList(whiteList: TWhiteList['whiteList'], options?: THttpRequestOptions): Promise<TResponse>;
|
|
199
201
|
getBlackList(options?: THttpRequestOptions): Promise<string[]>;
|