camstreamerlib 4.0.0-beta.72 → 4.0.0-beta.73
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 +1 -0
- package/cjs/CamStreamerAPI.js +1 -0
- package/cjs/PlaneTrackerAPI.d.ts +1 -3
- package/cjs/PlaneTrackerAPI.js +0 -7
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +3 -69
- package/cjs/types/ws/PlaneTrackerEvents.js +0 -11
- package/esm/CamStreamerAPI.js +1 -0
- package/esm/PlaneTrackerAPI.js +1 -8
- package/esm/types/ws/PlaneTrackerEvents.js +0 -11
- package/package.json +1 -1
- package/types/CamStreamerAPI.d.ts +1 -0
- package/types/PlaneTrackerAPI.d.ts +1 -3
- package/types/types/ws/PlaneTrackerEvents.d.ts +3 -69
package/cjs/CamStreamerAPI.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { THttpRequestOptions, TProxyParams } from './types/common';
|
|
|
5
5
|
export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
8
|
+
static getProxyPath: () => string;
|
|
8
9
|
getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
|
|
9
10
|
wsAuthorization(options?: THttpRequestOptions): Promise<string>;
|
|
10
11
|
getUtcTime(options?: THttpRequestOptions): Promise<number>;
|
package/cjs/CamStreamerAPI.js
CHANGED
|
@@ -11,6 +11,7 @@ class CamStreamerAPI {
|
|
|
11
11
|
constructor(client) {
|
|
12
12
|
this.client = client;
|
|
13
13
|
}
|
|
14
|
+
static getProxyPath = () => `${BASE_PATH}/proxy.cgi`;
|
|
14
15
|
getClient(proxyParams) {
|
|
15
16
|
return proxyParams ? new ProxyClient_1.ProxyClient(this.client, proxyParams) : this.client;
|
|
16
17
|
}
|
package/cjs/PlaneTrackerAPI.d.ts
CHANGED
|
@@ -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,
|
|
2
|
+
import { ICAO, TApiUser, TBlackList, TCameraSettings, TExportDataType, TGetIcaoByOption, TImportDataType, TPriorityList, TTrackingMode, 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>> {
|
|
@@ -188,8 +188,6 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
188
188
|
getIcao(by: TGetIcaoByOption, value: string, options?: THttpRequestOptions): Promise<string>;
|
|
189
189
|
getPriorityList(options?: THttpRequestOptions): Promise<string[]>;
|
|
190
190
|
setPriorityList(priorityList: TPriorityList['priorityList'], options?: THttpRequestOptions): Promise<TResponse>;
|
|
191
|
-
getTypePriorityList(options?: THttpRequestOptions): Promise<string[]>;
|
|
192
|
-
setTypePriorityList(typePriorityList: TTypePriorityList['typePriorityList'], options?: THttpRequestOptions): Promise<TResponse>;
|
|
193
191
|
getWhiteList(options?: THttpRequestOptions): Promise<string[]>;
|
|
194
192
|
setWhiteList(whiteList: TWhiteList['whiteList'], options?: THttpRequestOptions): Promise<TResponse>;
|
|
195
193
|
getBlackList(options?: THttpRequestOptions): Promise<string[]>;
|
package/cjs/PlaneTrackerAPI.js
CHANGED
|
@@ -125,13 +125,6 @@ class PlaneTrackerAPI {
|
|
|
125
125
|
async setPriorityList(priorityList, options) {
|
|
126
126
|
return await this._postJsonEncoded(`${BASE_PATH}/package/setPriorityList.cgi`, { priorityList }, this.apiUser, options);
|
|
127
127
|
}
|
|
128
|
-
async getTypePriorityList(options) {
|
|
129
|
-
const res = await this._getJson(`${BASE_PATH}/package/getTypePriorityList.cgi`, undefined, options);
|
|
130
|
-
return PlaneTrackerAPI_1.typePriorityListSchema.parse(res).typePriorityList;
|
|
131
|
-
}
|
|
132
|
-
async setTypePriorityList(typePriorityList, options) {
|
|
133
|
-
return await this._postJsonEncoded(`${BASE_PATH}/package/setTypePriorityList.cgi`, { typePriorityList }, this.apiUser, options);
|
|
134
|
-
}
|
|
135
128
|
async getWhiteList(options) {
|
|
136
129
|
const res = await this._getJson(`${BASE_PATH}/package/getWhiteList.cgi`, undefined, options);
|
|
137
130
|
return PlaneTrackerAPI_1.whiteListSchema.parse(res).whiteList;
|
|
@@ -11,7 +11,6 @@ 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>;
|
|
15
14
|
autoSelectionIgnored: z.ZodBoolean;
|
|
16
15
|
signalQuality: z.ZodNumber;
|
|
17
16
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -30,7 +29,6 @@ declare const apiFlightDataSchema: z.ZodObject<{
|
|
|
30
29
|
whiteListed: boolean;
|
|
31
30
|
blackListed: boolean;
|
|
32
31
|
priorityListed: boolean;
|
|
33
|
-
typePriorityListed: boolean;
|
|
34
32
|
autoSelectionIgnored: boolean;
|
|
35
33
|
signalQuality: number;
|
|
36
34
|
emitterCategorySet: number;
|
|
@@ -53,7 +51,6 @@ declare const apiFlightDataSchema: z.ZodObject<{
|
|
|
53
51
|
signalQuality: number;
|
|
54
52
|
emergencyState: boolean;
|
|
55
53
|
emergencyStatusMessage: string;
|
|
56
|
-
typePriorityListed?: boolean | undefined;
|
|
57
54
|
emitterCategorySet?: number | undefined;
|
|
58
55
|
emitterCategory?: number | undefined;
|
|
59
56
|
}>;
|
|
@@ -99,7 +96,6 @@ export declare enum PlaneTrackerUserActions {
|
|
|
99
96
|
TRACK_ICAO = "trackIcao.cgi",
|
|
100
97
|
RESET_ICAO = "resetIcao.cgi",
|
|
101
98
|
SET_PRIORITY_LIST = "setPriorityList.cgi",
|
|
102
|
-
SET_TYPE_PRIORITY_LIST = "setTypePriorityList.cgi",
|
|
103
99
|
SET_BLACK_LIST = "setBlackList.cgi",
|
|
104
100
|
SET_WHITE_LIST = "setWhiteList.cgi",
|
|
105
101
|
GO_TO_COORDINATES = "goToCoordinates.cgi",
|
|
@@ -224,51 +220,6 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
|
|
|
224
220
|
postJsonBody: {
|
|
225
221
|
priorityList: string[];
|
|
226
222
|
};
|
|
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
|
-
};
|
|
272
223
|
}>, z.ZodObject<{
|
|
273
224
|
cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_BLACK_LIST>;
|
|
274
225
|
ip: z.ZodString;
|
|
@@ -760,7 +711,6 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
760
711
|
whiteListed: z.ZodBoolean;
|
|
761
712
|
blackListed: z.ZodBoolean;
|
|
762
713
|
priorityListed: z.ZodBoolean;
|
|
763
|
-
typePriorityListed: z.ZodDefault<z.ZodBoolean>;
|
|
764
714
|
autoSelectionIgnored: z.ZodBoolean;
|
|
765
715
|
signalQuality: z.ZodNumber;
|
|
766
716
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -779,7 +729,6 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
779
729
|
whiteListed: boolean;
|
|
780
730
|
blackListed: boolean;
|
|
781
731
|
priorityListed: boolean;
|
|
782
|
-
typePriorityListed: boolean;
|
|
783
732
|
autoSelectionIgnored: boolean;
|
|
784
733
|
signalQuality: number;
|
|
785
734
|
emitterCategorySet: number;
|
|
@@ -802,7 +751,6 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
802
751
|
signalQuality: number;
|
|
803
752
|
emergencyState: boolean;
|
|
804
753
|
emergencyStatusMessage: string;
|
|
805
|
-
typePriorityListed?: boolean | undefined;
|
|
806
754
|
emitterCategorySet?: number | undefined;
|
|
807
755
|
emitterCategory?: number | undefined;
|
|
808
756
|
}>, "many">;
|
|
@@ -820,7 +768,6 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
820
768
|
whiteListed: boolean;
|
|
821
769
|
blackListed: boolean;
|
|
822
770
|
priorityListed: boolean;
|
|
823
|
-
typePriorityListed: boolean;
|
|
824
771
|
autoSelectionIgnored: boolean;
|
|
825
772
|
signalQuality: number;
|
|
826
773
|
emitterCategorySet: number;
|
|
@@ -846,7 +793,6 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
846
793
|
signalQuality: number;
|
|
847
794
|
emergencyState: boolean;
|
|
848
795
|
emergencyStatusMessage: string;
|
|
849
|
-
typePriorityListed?: boolean | undefined;
|
|
850
796
|
emitterCategorySet?: number | undefined;
|
|
851
797
|
emitterCategory?: number | undefined;
|
|
852
798
|
}[];
|
|
@@ -876,7 +822,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
876
822
|
lat?: string | undefined;
|
|
877
823
|
lon?: string | undefined;
|
|
878
824
|
}>;
|
|
879
|
-
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.
|
|
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]>;
|
|
880
826
|
postJsonBody: z.ZodAny;
|
|
881
827
|
}, "strip", z.ZodTypeAny, {
|
|
882
828
|
params: {
|
|
@@ -1040,7 +986,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1040
986
|
whiteListed: z.ZodBoolean;
|
|
1041
987
|
blackListed: z.ZodBoolean;
|
|
1042
988
|
priorityListed: z.ZodBoolean;
|
|
1043
|
-
typePriorityListed: z.ZodDefault<z.ZodBoolean>;
|
|
1044
989
|
autoSelectionIgnored: z.ZodBoolean;
|
|
1045
990
|
signalQuality: z.ZodNumber;
|
|
1046
991
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1059,7 +1004,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1059
1004
|
whiteListed: boolean;
|
|
1060
1005
|
blackListed: boolean;
|
|
1061
1006
|
priorityListed: boolean;
|
|
1062
|
-
typePriorityListed: boolean;
|
|
1063
1007
|
autoSelectionIgnored: boolean;
|
|
1064
1008
|
signalQuality: number;
|
|
1065
1009
|
emitterCategorySet: number;
|
|
@@ -1082,7 +1026,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1082
1026
|
signalQuality: number;
|
|
1083
1027
|
emergencyState: boolean;
|
|
1084
1028
|
emergencyStatusMessage: string;
|
|
1085
|
-
typePriorityListed?: boolean | undefined;
|
|
1086
1029
|
emitterCategorySet?: number | undefined;
|
|
1087
1030
|
emitterCategory?: number | undefined;
|
|
1088
1031
|
}>, "many">;
|
|
@@ -1100,7 +1043,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1100
1043
|
whiteListed: boolean;
|
|
1101
1044
|
blackListed: boolean;
|
|
1102
1045
|
priorityListed: boolean;
|
|
1103
|
-
typePriorityListed: boolean;
|
|
1104
1046
|
autoSelectionIgnored: boolean;
|
|
1105
1047
|
signalQuality: number;
|
|
1106
1048
|
emitterCategorySet: number;
|
|
@@ -1126,7 +1068,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1126
1068
|
signalQuality: number;
|
|
1127
1069
|
emergencyState: boolean;
|
|
1128
1070
|
emergencyStatusMessage: string;
|
|
1129
|
-
typePriorityListed?: boolean | undefined;
|
|
1130
1071
|
emitterCategorySet?: number | undefined;
|
|
1131
1072
|
emitterCategory?: number | undefined;
|
|
1132
1073
|
}[];
|
|
@@ -1156,7 +1097,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1156
1097
|
lat?: string | undefined;
|
|
1157
1098
|
lon?: string | undefined;
|
|
1158
1099
|
}>;
|
|
1159
|
-
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.
|
|
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]>;
|
|
1160
1101
|
postJsonBody: z.ZodAny;
|
|
1161
1102
|
}, "strip", z.ZodTypeAny, {
|
|
1162
1103
|
params: {
|
|
@@ -1296,7 +1237,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1296
1237
|
whiteListed: boolean;
|
|
1297
1238
|
blackListed: boolean;
|
|
1298
1239
|
priorityListed: boolean;
|
|
1299
|
-
typePriorityListed: boolean;
|
|
1300
1240
|
autoSelectionIgnored: boolean;
|
|
1301
1241
|
signalQuality: number;
|
|
1302
1242
|
emitterCategorySet: number;
|
|
@@ -1371,7 +1311,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1371
1311
|
signalQuality: number;
|
|
1372
1312
|
emergencyState: boolean;
|
|
1373
1313
|
emergencyStatusMessage: string;
|
|
1374
|
-
typePriorityListed?: boolean | undefined;
|
|
1375
1314
|
emitterCategorySet?: number | undefined;
|
|
1376
1315
|
emitterCategory?: number | undefined;
|
|
1377
1316
|
}[];
|
|
@@ -1460,7 +1399,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1460
1399
|
whiteListed: z.ZodBoolean;
|
|
1461
1400
|
blackListed: z.ZodBoolean;
|
|
1462
1401
|
priorityListed: z.ZodBoolean;
|
|
1463
|
-
typePriorityListed: z.ZodDefault<z.ZodBoolean>;
|
|
1464
1402
|
autoSelectionIgnored: z.ZodBoolean;
|
|
1465
1403
|
signalQuality: z.ZodNumber;
|
|
1466
1404
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1479,7 +1417,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1479
1417
|
whiteListed: boolean;
|
|
1480
1418
|
blackListed: boolean;
|
|
1481
1419
|
priorityListed: boolean;
|
|
1482
|
-
typePriorityListed: boolean;
|
|
1483
1420
|
autoSelectionIgnored: boolean;
|
|
1484
1421
|
signalQuality: number;
|
|
1485
1422
|
emitterCategorySet: number;
|
|
@@ -1502,7 +1439,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1502
1439
|
signalQuality: number;
|
|
1503
1440
|
emergencyState: boolean;
|
|
1504
1441
|
emergencyStatusMessage: string;
|
|
1505
|
-
typePriorityListed?: boolean | undefined;
|
|
1506
1442
|
emitterCategorySet?: number | undefined;
|
|
1507
1443
|
emitterCategory?: number | undefined;
|
|
1508
1444
|
}>, "many">;
|
|
@@ -1520,7 +1456,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1520
1456
|
whiteListed: boolean;
|
|
1521
1457
|
blackListed: boolean;
|
|
1522
1458
|
priorityListed: boolean;
|
|
1523
|
-
typePriorityListed: boolean;
|
|
1524
1459
|
autoSelectionIgnored: boolean;
|
|
1525
1460
|
signalQuality: number;
|
|
1526
1461
|
emitterCategorySet: number;
|
|
@@ -1546,7 +1481,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1546
1481
|
signalQuality: number;
|
|
1547
1482
|
emergencyState: boolean;
|
|
1548
1483
|
emergencyStatusMessage: string;
|
|
1549
|
-
typePriorityListed?: boolean | undefined;
|
|
1550
1484
|
emitterCategorySet?: number | undefined;
|
|
1551
1485
|
emitterCategory?: number | undefined;
|
|
1552
1486
|
}[];
|
|
@@ -1576,7 +1510,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1576
1510
|
lat?: string | undefined;
|
|
1577
1511
|
lon?: string | undefined;
|
|
1578
1512
|
}>;
|
|
1579
|
-
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.
|
|
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]>;
|
|
1580
1514
|
postJsonBody: z.ZodAny;
|
|
1581
1515
|
}, "strip", z.ZodTypeAny, {
|
|
1582
1516
|
params: {
|
|
@@ -15,7 +15,6 @@ 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),
|
|
19
18
|
autoSelectionIgnored: zod_1.z.boolean(),
|
|
20
19
|
signalQuality: zod_1.z.number(),
|
|
21
20
|
emitterCategorySet: zod_1.z.number().default(4),
|
|
@@ -49,7 +48,6 @@ var PlaneTrackerUserActions;
|
|
|
49
48
|
PlaneTrackerUserActions["TRACK_ICAO"] = "trackIcao.cgi";
|
|
50
49
|
PlaneTrackerUserActions["RESET_ICAO"] = "resetIcao.cgi";
|
|
51
50
|
PlaneTrackerUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
|
|
52
|
-
PlaneTrackerUserActions["SET_TYPE_PRIORITY_LIST"] = "setTypePriorityList.cgi";
|
|
53
51
|
PlaneTrackerUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
|
|
54
52
|
PlaneTrackerUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
|
|
55
53
|
PlaneTrackerUserActions["GO_TO_COORDINATES"] = "goToCoordinates.cgi";
|
|
@@ -80,14 +78,6 @@ exports.planeTrackerUserActionData = zod_1.z.discriminatedUnion('cgi', [
|
|
|
80
78
|
priorityList: zod_1.z.array(zod_1.z.string()),
|
|
81
79
|
}),
|
|
82
80
|
}),
|
|
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
|
-
}),
|
|
91
81
|
zod_1.z.object({
|
|
92
82
|
cgi: zod_1.z.literal(PlaneTrackerUserActions.SET_BLACK_LIST),
|
|
93
83
|
ip: zod_1.z.string(),
|
|
@@ -174,7 +164,6 @@ const ptrEventsDataSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
174
164
|
PlaneTrackerUserActions.TRACK_ICAO,
|
|
175
165
|
PlaneTrackerUserActions.RESET_ICAO,
|
|
176
166
|
PlaneTrackerUserActions.SET_PRIORITY_LIST,
|
|
177
|
-
PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST,
|
|
178
167
|
PlaneTrackerUserActions.SET_BLACK_LIST,
|
|
179
168
|
PlaneTrackerUserActions.SET_WHITE_LIST,
|
|
180
169
|
PlaneTrackerUserActions.GO_TO_COORDINATES,
|
package/esm/CamStreamerAPI.js
CHANGED
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,
|
|
3
|
+
import { blackListSchema, cameraSettingsSchema, flightInfoSchema, getIcaoSchema, mapInfoSchema, priorityListSchema, serverSettingsSchema, trackingModeSchema, 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,13 +122,6 @@ 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
|
-
}
|
|
132
125
|
async getWhiteList(options) {
|
|
133
126
|
const res = await this._getJson(`${BASE_PATH}/package/getWhiteList.cgi`, undefined, options);
|
|
134
127
|
return whiteListSchema.parse(res).whiteList;
|
|
@@ -12,7 +12,6 @@ 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),
|
|
16
15
|
autoSelectionIgnored: z.boolean(),
|
|
17
16
|
signalQuality: z.number(),
|
|
18
17
|
emitterCategorySet: z.number().default(4),
|
|
@@ -46,7 +45,6 @@ export var PlaneTrackerUserActions;
|
|
|
46
45
|
PlaneTrackerUserActions["TRACK_ICAO"] = "trackIcao.cgi";
|
|
47
46
|
PlaneTrackerUserActions["RESET_ICAO"] = "resetIcao.cgi";
|
|
48
47
|
PlaneTrackerUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
|
|
49
|
-
PlaneTrackerUserActions["SET_TYPE_PRIORITY_LIST"] = "setTypePriorityList.cgi";
|
|
50
48
|
PlaneTrackerUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
|
|
51
49
|
PlaneTrackerUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
|
|
52
50
|
PlaneTrackerUserActions["GO_TO_COORDINATES"] = "goToCoordinates.cgi";
|
|
@@ -77,14 +75,6 @@ export const planeTrackerUserActionData = z.discriminatedUnion('cgi', [
|
|
|
77
75
|
priorityList: z.array(z.string()),
|
|
78
76
|
}),
|
|
79
77
|
}),
|
|
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
|
-
}),
|
|
88
78
|
z.object({
|
|
89
79
|
cgi: z.literal(PlaneTrackerUserActions.SET_BLACK_LIST),
|
|
90
80
|
ip: z.string(),
|
|
@@ -171,7 +161,6 @@ const ptrEventsDataSchema = z.discriminatedUnion('type', [
|
|
|
171
161
|
PlaneTrackerUserActions.TRACK_ICAO,
|
|
172
162
|
PlaneTrackerUserActions.RESET_ICAO,
|
|
173
163
|
PlaneTrackerUserActions.SET_PRIORITY_LIST,
|
|
174
|
-
PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST,
|
|
175
164
|
PlaneTrackerUserActions.SET_BLACK_LIST,
|
|
176
165
|
PlaneTrackerUserActions.SET_WHITE_LIST,
|
|
177
166
|
PlaneTrackerUserActions.GO_TO_COORDINATES,
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import { THttpRequestOptions, TProxyParams } from './types/common';
|
|
|
5
5
|
export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
8
|
+
static getProxyPath: () => string;
|
|
8
9
|
getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
|
|
9
10
|
wsAuthorization(options?: THttpRequestOptions): Promise<string>;
|
|
10
11
|
getUtcTime(options?: THttpRequestOptions): Promise<number>;
|
|
@@ -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,
|
|
2
|
+
import { ICAO, TApiUser, TBlackList, TCameraSettings, TExportDataType, TGetIcaoByOption, TImportDataType, TPriorityList, TTrackingMode, 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>> {
|
|
@@ -188,8 +188,6 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
188
188
|
getIcao(by: TGetIcaoByOption, value: string, options?: THttpRequestOptions): Promise<string>;
|
|
189
189
|
getPriorityList(options?: THttpRequestOptions): Promise<string[]>;
|
|
190
190
|
setPriorityList(priorityList: TPriorityList['priorityList'], options?: THttpRequestOptions): Promise<TResponse>;
|
|
191
|
-
getTypePriorityList(options?: THttpRequestOptions): Promise<string[]>;
|
|
192
|
-
setTypePriorityList(typePriorityList: TTypePriorityList['typePriorityList'], options?: THttpRequestOptions): Promise<TResponse>;
|
|
193
191
|
getWhiteList(options?: THttpRequestOptions): Promise<string[]>;
|
|
194
192
|
setWhiteList(whiteList: TWhiteList['whiteList'], options?: THttpRequestOptions): Promise<TResponse>;
|
|
195
193
|
getBlackList(options?: THttpRequestOptions): Promise<string[]>;
|
|
@@ -11,7 +11,6 @@ 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>;
|
|
15
14
|
autoSelectionIgnored: z.ZodBoolean;
|
|
16
15
|
signalQuality: z.ZodNumber;
|
|
17
16
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -30,7 +29,6 @@ declare const apiFlightDataSchema: z.ZodObject<{
|
|
|
30
29
|
whiteListed: boolean;
|
|
31
30
|
blackListed: boolean;
|
|
32
31
|
priorityListed: boolean;
|
|
33
|
-
typePriorityListed: boolean;
|
|
34
32
|
autoSelectionIgnored: boolean;
|
|
35
33
|
signalQuality: number;
|
|
36
34
|
emitterCategorySet: number;
|
|
@@ -53,7 +51,6 @@ declare const apiFlightDataSchema: z.ZodObject<{
|
|
|
53
51
|
signalQuality: number;
|
|
54
52
|
emergencyState: boolean;
|
|
55
53
|
emergencyStatusMessage: string;
|
|
56
|
-
typePriorityListed?: boolean | undefined;
|
|
57
54
|
emitterCategorySet?: number | undefined;
|
|
58
55
|
emitterCategory?: number | undefined;
|
|
59
56
|
}>;
|
|
@@ -99,7 +96,6 @@ export declare enum PlaneTrackerUserActions {
|
|
|
99
96
|
TRACK_ICAO = "trackIcao.cgi",
|
|
100
97
|
RESET_ICAO = "resetIcao.cgi",
|
|
101
98
|
SET_PRIORITY_LIST = "setPriorityList.cgi",
|
|
102
|
-
SET_TYPE_PRIORITY_LIST = "setTypePriorityList.cgi",
|
|
103
99
|
SET_BLACK_LIST = "setBlackList.cgi",
|
|
104
100
|
SET_WHITE_LIST = "setWhiteList.cgi",
|
|
105
101
|
GO_TO_COORDINATES = "goToCoordinates.cgi",
|
|
@@ -224,51 +220,6 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
|
|
|
224
220
|
postJsonBody: {
|
|
225
221
|
priorityList: string[];
|
|
226
222
|
};
|
|
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
|
-
};
|
|
272
223
|
}>, z.ZodObject<{
|
|
273
224
|
cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_BLACK_LIST>;
|
|
274
225
|
ip: z.ZodString;
|
|
@@ -760,7 +711,6 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
760
711
|
whiteListed: z.ZodBoolean;
|
|
761
712
|
blackListed: z.ZodBoolean;
|
|
762
713
|
priorityListed: z.ZodBoolean;
|
|
763
|
-
typePriorityListed: z.ZodDefault<z.ZodBoolean>;
|
|
764
714
|
autoSelectionIgnored: z.ZodBoolean;
|
|
765
715
|
signalQuality: z.ZodNumber;
|
|
766
716
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -779,7 +729,6 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
779
729
|
whiteListed: boolean;
|
|
780
730
|
blackListed: boolean;
|
|
781
731
|
priorityListed: boolean;
|
|
782
|
-
typePriorityListed: boolean;
|
|
783
732
|
autoSelectionIgnored: boolean;
|
|
784
733
|
signalQuality: number;
|
|
785
734
|
emitterCategorySet: number;
|
|
@@ -802,7 +751,6 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
802
751
|
signalQuality: number;
|
|
803
752
|
emergencyState: boolean;
|
|
804
753
|
emergencyStatusMessage: string;
|
|
805
|
-
typePriorityListed?: boolean | undefined;
|
|
806
754
|
emitterCategorySet?: number | undefined;
|
|
807
755
|
emitterCategory?: number | undefined;
|
|
808
756
|
}>, "many">;
|
|
@@ -820,7 +768,6 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
820
768
|
whiteListed: boolean;
|
|
821
769
|
blackListed: boolean;
|
|
822
770
|
priorityListed: boolean;
|
|
823
|
-
typePriorityListed: boolean;
|
|
824
771
|
autoSelectionIgnored: boolean;
|
|
825
772
|
signalQuality: number;
|
|
826
773
|
emitterCategorySet: number;
|
|
@@ -846,7 +793,6 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
846
793
|
signalQuality: number;
|
|
847
794
|
emergencyState: boolean;
|
|
848
795
|
emergencyStatusMessage: string;
|
|
849
|
-
typePriorityListed?: boolean | undefined;
|
|
850
796
|
emitterCategorySet?: number | undefined;
|
|
851
797
|
emitterCategory?: number | undefined;
|
|
852
798
|
}[];
|
|
@@ -876,7 +822,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
876
822
|
lat?: string | undefined;
|
|
877
823
|
lon?: string | undefined;
|
|
878
824
|
}>;
|
|
879
|
-
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.
|
|
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]>;
|
|
880
826
|
postJsonBody: z.ZodAny;
|
|
881
827
|
}, "strip", z.ZodTypeAny, {
|
|
882
828
|
params: {
|
|
@@ -1040,7 +986,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1040
986
|
whiteListed: z.ZodBoolean;
|
|
1041
987
|
blackListed: z.ZodBoolean;
|
|
1042
988
|
priorityListed: z.ZodBoolean;
|
|
1043
|
-
typePriorityListed: z.ZodDefault<z.ZodBoolean>;
|
|
1044
989
|
autoSelectionIgnored: z.ZodBoolean;
|
|
1045
990
|
signalQuality: z.ZodNumber;
|
|
1046
991
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1059,7 +1004,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1059
1004
|
whiteListed: boolean;
|
|
1060
1005
|
blackListed: boolean;
|
|
1061
1006
|
priorityListed: boolean;
|
|
1062
|
-
typePriorityListed: boolean;
|
|
1063
1007
|
autoSelectionIgnored: boolean;
|
|
1064
1008
|
signalQuality: number;
|
|
1065
1009
|
emitterCategorySet: number;
|
|
@@ -1082,7 +1026,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1082
1026
|
signalQuality: number;
|
|
1083
1027
|
emergencyState: boolean;
|
|
1084
1028
|
emergencyStatusMessage: string;
|
|
1085
|
-
typePriorityListed?: boolean | undefined;
|
|
1086
1029
|
emitterCategorySet?: number | undefined;
|
|
1087
1030
|
emitterCategory?: number | undefined;
|
|
1088
1031
|
}>, "many">;
|
|
@@ -1100,7 +1043,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1100
1043
|
whiteListed: boolean;
|
|
1101
1044
|
blackListed: boolean;
|
|
1102
1045
|
priorityListed: boolean;
|
|
1103
|
-
typePriorityListed: boolean;
|
|
1104
1046
|
autoSelectionIgnored: boolean;
|
|
1105
1047
|
signalQuality: number;
|
|
1106
1048
|
emitterCategorySet: number;
|
|
@@ -1126,7 +1068,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1126
1068
|
signalQuality: number;
|
|
1127
1069
|
emergencyState: boolean;
|
|
1128
1070
|
emergencyStatusMessage: string;
|
|
1129
|
-
typePriorityListed?: boolean | undefined;
|
|
1130
1071
|
emitterCategorySet?: number | undefined;
|
|
1131
1072
|
emitterCategory?: number | undefined;
|
|
1132
1073
|
}[];
|
|
@@ -1156,7 +1097,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1156
1097
|
lat?: string | undefined;
|
|
1157
1098
|
lon?: string | undefined;
|
|
1158
1099
|
}>;
|
|
1159
|
-
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.
|
|
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]>;
|
|
1160
1101
|
postJsonBody: z.ZodAny;
|
|
1161
1102
|
}, "strip", z.ZodTypeAny, {
|
|
1162
1103
|
params: {
|
|
@@ -1296,7 +1237,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1296
1237
|
whiteListed: boolean;
|
|
1297
1238
|
blackListed: boolean;
|
|
1298
1239
|
priorityListed: boolean;
|
|
1299
|
-
typePriorityListed: boolean;
|
|
1300
1240
|
autoSelectionIgnored: boolean;
|
|
1301
1241
|
signalQuality: number;
|
|
1302
1242
|
emitterCategorySet: number;
|
|
@@ -1371,7 +1311,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1371
1311
|
signalQuality: number;
|
|
1372
1312
|
emergencyState: boolean;
|
|
1373
1313
|
emergencyStatusMessage: string;
|
|
1374
|
-
typePriorityListed?: boolean | undefined;
|
|
1375
1314
|
emitterCategorySet?: number | undefined;
|
|
1376
1315
|
emitterCategory?: number | undefined;
|
|
1377
1316
|
}[];
|
|
@@ -1460,7 +1399,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1460
1399
|
whiteListed: z.ZodBoolean;
|
|
1461
1400
|
blackListed: z.ZodBoolean;
|
|
1462
1401
|
priorityListed: z.ZodBoolean;
|
|
1463
|
-
typePriorityListed: z.ZodDefault<z.ZodBoolean>;
|
|
1464
1402
|
autoSelectionIgnored: z.ZodBoolean;
|
|
1465
1403
|
signalQuality: z.ZodNumber;
|
|
1466
1404
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1479,7 +1417,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1479
1417
|
whiteListed: boolean;
|
|
1480
1418
|
blackListed: boolean;
|
|
1481
1419
|
priorityListed: boolean;
|
|
1482
|
-
typePriorityListed: boolean;
|
|
1483
1420
|
autoSelectionIgnored: boolean;
|
|
1484
1421
|
signalQuality: number;
|
|
1485
1422
|
emitterCategorySet: number;
|
|
@@ -1502,7 +1439,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1502
1439
|
signalQuality: number;
|
|
1503
1440
|
emergencyState: boolean;
|
|
1504
1441
|
emergencyStatusMessage: string;
|
|
1505
|
-
typePriorityListed?: boolean | undefined;
|
|
1506
1442
|
emitterCategorySet?: number | undefined;
|
|
1507
1443
|
emitterCategory?: number | undefined;
|
|
1508
1444
|
}>, "many">;
|
|
@@ -1520,7 +1456,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1520
1456
|
whiteListed: boolean;
|
|
1521
1457
|
blackListed: boolean;
|
|
1522
1458
|
priorityListed: boolean;
|
|
1523
|
-
typePriorityListed: boolean;
|
|
1524
1459
|
autoSelectionIgnored: boolean;
|
|
1525
1460
|
signalQuality: number;
|
|
1526
1461
|
emitterCategorySet: number;
|
|
@@ -1546,7 +1481,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1546
1481
|
signalQuality: number;
|
|
1547
1482
|
emergencyState: boolean;
|
|
1548
1483
|
emergencyStatusMessage: string;
|
|
1549
|
-
typePriorityListed?: boolean | undefined;
|
|
1550
1484
|
emitterCategorySet?: number | undefined;
|
|
1551
1485
|
emitterCategory?: number | undefined;
|
|
1552
1486
|
}[];
|
|
@@ -1576,7 +1510,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
1576
1510
|
lat?: string | undefined;
|
|
1577
1511
|
lon?: string | undefined;
|
|
1578
1512
|
}>;
|
|
1579
|
-
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.
|
|
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]>;
|
|
1580
1514
|
postJsonBody: z.ZodAny;
|
|
1581
1515
|
}, "strip", z.ZodTypeAny, {
|
|
1582
1516
|
params: {
|