camstreamerlib 4.0.26-cf50abe → 4.0.27
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/types/PlaneTrackerAPI.d.ts +28 -0
- package/cjs/types/PlaneTrackerAPI.js +4 -1
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +20 -0
- package/cjs/types/ws/PlaneTrackerEvents.js +1 -0
- package/esm/types/PlaneTrackerAPI.js +3 -0
- package/esm/types/ws/PlaneTrackerEvents.js +1 -0
- package/package.json +103 -103
- package/types/types/PlaneTrackerAPI.d.ts +28 -0
- package/types/types/ws/PlaneTrackerEvents.d.ts +20 -0
|
@@ -1035,9 +1035,37 @@ export declare const priorityListSchema: z.ZodObject<{
|
|
|
1035
1035
|
idValue: string;
|
|
1036
1036
|
}[] | undefined;
|
|
1037
1037
|
}>;
|
|
1038
|
+
export declare const friendlyListSchema: z.ZodObject<{
|
|
1039
|
+
list: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1040
|
+
domain: z.ZodEnum<["adsb", "remoteId"]>;
|
|
1041
|
+
idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
|
|
1042
|
+
idValue: z.ZodString;
|
|
1043
|
+
}, "strip", z.ZodTypeAny, {
|
|
1044
|
+
domain: "adsb" | "remoteId";
|
|
1045
|
+
idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
|
|
1046
|
+
idValue: string;
|
|
1047
|
+
}, {
|
|
1048
|
+
domain: "adsb" | "remoteId";
|
|
1049
|
+
idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
|
|
1050
|
+
idValue: string;
|
|
1051
|
+
}>, "many">>;
|
|
1052
|
+
}, "strip", z.ZodTypeAny, {
|
|
1053
|
+
list: {
|
|
1054
|
+
domain: "adsb" | "remoteId";
|
|
1055
|
+
idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
|
|
1056
|
+
idValue: string;
|
|
1057
|
+
}[];
|
|
1058
|
+
}, {
|
|
1059
|
+
list?: {
|
|
1060
|
+
domain: "adsb" | "remoteId";
|
|
1061
|
+
idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
|
|
1062
|
+
idValue: string;
|
|
1063
|
+
}[] | undefined;
|
|
1064
|
+
}>;
|
|
1038
1065
|
export type TWhiteList = z.infer<typeof whiteListSchema>;
|
|
1039
1066
|
export type TBlackList = z.infer<typeof blackListSchema>;
|
|
1040
1067
|
export type TPriorityList = z.infer<typeof priorityListSchema>;
|
|
1068
|
+
export type TFriendlyList = z.infer<typeof friendlyListSchema>;
|
|
1041
1069
|
export declare const mapTypeSchema: z.ZodEnum<["roadmap", "satellite"]>;
|
|
1042
1070
|
export type TMapType = z.infer<typeof mapTypeSchema>;
|
|
1043
1071
|
export declare const mapInfoSchema: z.ZodObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.REMOTE_ID_CATEGORY_IDS = exports.ADSB_CATEGORY_IDS = exports.domainListSchema = exports.zonesSchema = exports.zonePerimeterSchema = exports.domainIdSchema = exports.mapInfoSchema = exports.mapTypeSchema = exports.priorityListSchema = exports.blackListSchema = exports.whiteListSchema = exports.priorityListEntrySchema = exports.listEntrySchema = exports.listEntryIdTypeSchema = exports.listEntryDomainSchema = exports.flightInfoSchema = exports.trackingModeSchema = exports.getIcaoSchema = exports.serverSettingsSchema = exports.cameraSettingsSchema = exports.widgetSchema = exports.milestoneCameraListSchema = exports.connectionSchema = exports.wsAliasResponseSchema = void 0;
|
|
3
|
+
exports.REMOTE_ID_CATEGORY_IDS = exports.ADSB_CATEGORY_IDS = exports.domainListSchema = exports.zonesSchema = exports.zonePerimeterSchema = exports.domainIdSchema = exports.mapInfoSchema = exports.mapTypeSchema = exports.friendlyListSchema = exports.priorityListSchema = exports.blackListSchema = exports.whiteListSchema = exports.priorityListEntrySchema = exports.listEntrySchema = exports.listEntryIdTypeSchema = exports.listEntryDomainSchema = exports.flightInfoSchema = exports.trackingModeSchema = exports.getIcaoSchema = exports.serverSettingsSchema = exports.cameraSettingsSchema = exports.widgetSchema = exports.milestoneCameraListSchema = exports.connectionSchema = exports.wsAliasResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.wsAliasResponseSchema = zod_1.z.object({
|
|
6
6
|
alias: zod_1.z.string(),
|
|
@@ -342,6 +342,9 @@ exports.blackListSchema = zod_1.z.object({
|
|
|
342
342
|
exports.priorityListSchema = zod_1.z.object({
|
|
343
343
|
list: zod_1.z.array(exports.priorityListEntrySchema).default([]),
|
|
344
344
|
});
|
|
345
|
+
exports.friendlyListSchema = zod_1.z.object({
|
|
346
|
+
list: zod_1.z.array(exports.listEntrySchema).default([]),
|
|
347
|
+
});
|
|
345
348
|
exports.mapTypeSchema = zod_1.z.enum(['roadmap', 'satellite']);
|
|
346
349
|
exports.mapInfoSchema = zod_1.z.object({
|
|
347
350
|
minZoom: zod_1.z.number().nonnegative(),
|
|
@@ -18,6 +18,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
18
18
|
whiteListed: z.ZodBoolean;
|
|
19
19
|
blackListed: z.ZodBoolean;
|
|
20
20
|
priorityListed: z.ZodBoolean;
|
|
21
|
+
friendlyListed: z.ZodBoolean;
|
|
21
22
|
autoSelectionIgnored: z.ZodBoolean;
|
|
22
23
|
signalQuality: z.ZodNumber;
|
|
23
24
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -42,6 +43,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
42
43
|
whiteListed: boolean;
|
|
43
44
|
blackListed: boolean;
|
|
44
45
|
priorityListed: boolean;
|
|
46
|
+
friendlyListed: boolean;
|
|
45
47
|
autoSelectionIgnored: boolean;
|
|
46
48
|
signalQuality: number;
|
|
47
49
|
emitterCategorySet: number;
|
|
@@ -67,6 +69,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
67
69
|
whiteListed: boolean;
|
|
68
70
|
blackListed: boolean;
|
|
69
71
|
priorityListed: boolean;
|
|
72
|
+
friendlyListed: boolean;
|
|
70
73
|
autoSelectionIgnored: boolean;
|
|
71
74
|
signalQuality: number;
|
|
72
75
|
emergencyState: boolean;
|
|
@@ -200,6 +203,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
200
203
|
whiteListed: z.ZodBoolean;
|
|
201
204
|
blackListed: z.ZodBoolean;
|
|
202
205
|
priorityListed: z.ZodBoolean;
|
|
206
|
+
friendlyListed: z.ZodBoolean;
|
|
203
207
|
autoSelectionIgnored: z.ZodBoolean;
|
|
204
208
|
signalQuality: z.ZodNumber;
|
|
205
209
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -224,6 +228,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
224
228
|
whiteListed: boolean;
|
|
225
229
|
blackListed: boolean;
|
|
226
230
|
priorityListed: boolean;
|
|
231
|
+
friendlyListed: boolean;
|
|
227
232
|
autoSelectionIgnored: boolean;
|
|
228
233
|
signalQuality: number;
|
|
229
234
|
emitterCategorySet: number;
|
|
@@ -249,6 +254,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
249
254
|
whiteListed: boolean;
|
|
250
255
|
blackListed: boolean;
|
|
251
256
|
priorityListed: boolean;
|
|
257
|
+
friendlyListed: boolean;
|
|
252
258
|
autoSelectionIgnored: boolean;
|
|
253
259
|
signalQuality: number;
|
|
254
260
|
emergencyState: boolean;
|
|
@@ -277,6 +283,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
277
283
|
whiteListed: boolean;
|
|
278
284
|
blackListed: boolean;
|
|
279
285
|
priorityListed: boolean;
|
|
286
|
+
friendlyListed: boolean;
|
|
280
287
|
autoSelectionIgnored: boolean;
|
|
281
288
|
signalQuality: number;
|
|
282
289
|
emitterCategorySet: number;
|
|
@@ -305,6 +312,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
305
312
|
whiteListed: boolean;
|
|
306
313
|
blackListed: boolean;
|
|
307
314
|
priorityListed: boolean;
|
|
315
|
+
friendlyListed: boolean;
|
|
308
316
|
autoSelectionIgnored: boolean;
|
|
309
317
|
signalQuality: number;
|
|
310
318
|
emergencyState: boolean;
|
|
@@ -1268,6 +1276,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1268
1276
|
whiteListed: z.ZodBoolean;
|
|
1269
1277
|
blackListed: z.ZodBoolean;
|
|
1270
1278
|
priorityListed: z.ZodBoolean;
|
|
1279
|
+
friendlyListed: z.ZodBoolean;
|
|
1271
1280
|
autoSelectionIgnored: z.ZodBoolean;
|
|
1272
1281
|
signalQuality: z.ZodNumber;
|
|
1273
1282
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1292,6 +1301,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1292
1301
|
whiteListed: boolean;
|
|
1293
1302
|
blackListed: boolean;
|
|
1294
1303
|
priorityListed: boolean;
|
|
1304
|
+
friendlyListed: boolean;
|
|
1295
1305
|
autoSelectionIgnored: boolean;
|
|
1296
1306
|
signalQuality: number;
|
|
1297
1307
|
emitterCategorySet: number;
|
|
@@ -1317,6 +1327,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1317
1327
|
whiteListed: boolean;
|
|
1318
1328
|
blackListed: boolean;
|
|
1319
1329
|
priorityListed: boolean;
|
|
1330
|
+
friendlyListed: boolean;
|
|
1320
1331
|
autoSelectionIgnored: boolean;
|
|
1321
1332
|
signalQuality: number;
|
|
1322
1333
|
emergencyState: boolean;
|
|
@@ -1345,6 +1356,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1345
1356
|
whiteListed: boolean;
|
|
1346
1357
|
blackListed: boolean;
|
|
1347
1358
|
priorityListed: boolean;
|
|
1359
|
+
friendlyListed: boolean;
|
|
1348
1360
|
autoSelectionIgnored: boolean;
|
|
1349
1361
|
signalQuality: number;
|
|
1350
1362
|
emitterCategorySet: number;
|
|
@@ -1373,6 +1385,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1373
1385
|
whiteListed: boolean;
|
|
1374
1386
|
blackListed: boolean;
|
|
1375
1387
|
priorityListed: boolean;
|
|
1388
|
+
friendlyListed: boolean;
|
|
1376
1389
|
autoSelectionIgnored: boolean;
|
|
1377
1390
|
signalQuality: number;
|
|
1378
1391
|
emergencyState: boolean;
|
|
@@ -2302,6 +2315,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2302
2315
|
whiteListed: boolean;
|
|
2303
2316
|
blackListed: boolean;
|
|
2304
2317
|
priorityListed: boolean;
|
|
2318
|
+
friendlyListed: boolean;
|
|
2305
2319
|
autoSelectionIgnored: boolean;
|
|
2306
2320
|
signalQuality: number;
|
|
2307
2321
|
emitterCategorySet: number;
|
|
@@ -2547,6 +2561,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2547
2561
|
whiteListed: boolean;
|
|
2548
2562
|
blackListed: boolean;
|
|
2549
2563
|
priorityListed: boolean;
|
|
2564
|
+
friendlyListed: boolean;
|
|
2550
2565
|
autoSelectionIgnored: boolean;
|
|
2551
2566
|
signalQuality: number;
|
|
2552
2567
|
emergencyState: boolean;
|
|
@@ -2824,6 +2839,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2824
2839
|
whiteListed: z.ZodBoolean;
|
|
2825
2840
|
blackListed: z.ZodBoolean;
|
|
2826
2841
|
priorityListed: z.ZodBoolean;
|
|
2842
|
+
friendlyListed: z.ZodBoolean;
|
|
2827
2843
|
autoSelectionIgnored: z.ZodBoolean;
|
|
2828
2844
|
signalQuality: z.ZodNumber;
|
|
2829
2845
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2848,6 +2864,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2848
2864
|
whiteListed: boolean;
|
|
2849
2865
|
blackListed: boolean;
|
|
2850
2866
|
priorityListed: boolean;
|
|
2867
|
+
friendlyListed: boolean;
|
|
2851
2868
|
autoSelectionIgnored: boolean;
|
|
2852
2869
|
signalQuality: number;
|
|
2853
2870
|
emitterCategorySet: number;
|
|
@@ -2873,6 +2890,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2873
2890
|
whiteListed: boolean;
|
|
2874
2891
|
blackListed: boolean;
|
|
2875
2892
|
priorityListed: boolean;
|
|
2893
|
+
friendlyListed: boolean;
|
|
2876
2894
|
autoSelectionIgnored: boolean;
|
|
2877
2895
|
signalQuality: number;
|
|
2878
2896
|
emergencyState: boolean;
|
|
@@ -2901,6 +2919,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2901
2919
|
whiteListed: boolean;
|
|
2902
2920
|
blackListed: boolean;
|
|
2903
2921
|
priorityListed: boolean;
|
|
2922
|
+
friendlyListed: boolean;
|
|
2904
2923
|
autoSelectionIgnored: boolean;
|
|
2905
2924
|
signalQuality: number;
|
|
2906
2925
|
emitterCategorySet: number;
|
|
@@ -2929,6 +2948,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2929
2948
|
whiteListed: boolean;
|
|
2930
2949
|
blackListed: boolean;
|
|
2931
2950
|
priorityListed: boolean;
|
|
2951
|
+
friendlyListed: boolean;
|
|
2932
2952
|
autoSelectionIgnored: boolean;
|
|
2933
2953
|
signalQuality: number;
|
|
2934
2954
|
emergencyState: boolean;
|
|
@@ -22,6 +22,7 @@ const wsApiFlightDataSchema = zod_1.z.object({
|
|
|
22
22
|
whiteListed: zod_1.z.boolean(),
|
|
23
23
|
blackListed: zod_1.z.boolean(),
|
|
24
24
|
priorityListed: zod_1.z.boolean(),
|
|
25
|
+
friendlyListed: zod_1.z.boolean(),
|
|
25
26
|
autoSelectionIgnored: zod_1.z.boolean(),
|
|
26
27
|
signalQuality: zod_1.z.number(),
|
|
27
28
|
emitterCategorySet: zod_1.z.number().default(4),
|
|
@@ -339,6 +339,9 @@ export const blackListSchema = z.object({
|
|
|
339
339
|
export const priorityListSchema = z.object({
|
|
340
340
|
list: z.array(priorityListEntrySchema).default([]),
|
|
341
341
|
});
|
|
342
|
+
export const friendlyListSchema = z.object({
|
|
343
|
+
list: z.array(listEntrySchema).default([]),
|
|
344
|
+
});
|
|
342
345
|
export const mapTypeSchema = z.enum(['roadmap', 'satellite']);
|
|
343
346
|
export const mapInfoSchema = z.object({
|
|
344
347
|
minZoom: z.number().nonnegative(),
|
|
@@ -19,6 +19,7 @@ const wsApiFlightDataSchema = z.object({
|
|
|
19
19
|
whiteListed: z.boolean(),
|
|
20
20
|
blackListed: z.boolean(),
|
|
21
21
|
priorityListed: z.boolean(),
|
|
22
|
+
friendlyListed: z.boolean(),
|
|
22
23
|
autoSelectionIgnored: z.boolean(),
|
|
23
24
|
signalQuality: z.number(),
|
|
24
25
|
emitterCategorySet: z.number().default(4),
|
package/package.json
CHANGED
|
@@ -1,110 +1,110 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"adm-zip": "^0.5.9",
|
|
11
|
-
"eventemitter2": "^5.0.1",
|
|
12
|
-
"fast-xml-parser": "^5.3.6",
|
|
13
|
-
"type-fest": "^4.41.0",
|
|
14
|
-
"undici": "^6.27.0",
|
|
15
|
-
"ws": "^8.18.0",
|
|
16
|
-
"zod": "^3.25.76"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@camstreamer/eslint-config": "^1.0.2",
|
|
20
|
-
"@camstreamer/prettier-config": "^2.0.4",
|
|
21
|
-
"@types/adm-zip": "^0.5.5",
|
|
22
|
-
"@types/jest": "^28.0.0",
|
|
23
|
-
"@types/node": "^18.19.127",
|
|
24
|
-
"@types/ws": "^8.5.10",
|
|
25
|
-
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
26
|
-
"@typescript-eslint/parser": "^6.8.0",
|
|
27
|
-
"eslint": "^8.51.0",
|
|
28
|
-
"eslint-plugin-deprecation": "^2.0.0",
|
|
29
|
-
"eslint-plugin-unused-imports": "^3.0.0",
|
|
30
|
-
"jest": "^28.1.3",
|
|
31
|
-
"npm-run-all": "^4.1.5",
|
|
32
|
-
"prettier": "^2.7.1",
|
|
33
|
-
"ts-jest": "^28.0.0",
|
|
34
|
-
"ts-node": "^10.7.0",
|
|
35
|
-
"typescript": "5.3.3"
|
|
36
|
-
},
|
|
37
|
-
"overrides": {
|
|
38
|
-
"js-yaml": "^4.2.0"
|
|
39
|
-
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"clean": "rimraf dist/*",
|
|
42
|
-
"build": "npm-run-all clean build:cjs build:esm copyPackage",
|
|
43
|
-
"build:cjs": "tsc --project tsconfig.cjs.json",
|
|
44
|
-
"build:esm": "tsc --project tsconfig.esm.json",
|
|
45
|
-
"copyPackage": "cp -f LICENSE dist/ && cp -f README.md dist/ && cp -f package.json dist/",
|
|
46
|
-
"publishPackage": "./publish.sh",
|
|
47
|
-
"lint": "eslint \"src/**/*.ts\"",
|
|
48
|
-
"lint:fix": "eslint \"src/**/*.ts\" --fix",
|
|
49
|
-
"pretty": "prettier --write \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
|
|
50
|
-
"pretty:check": "prettier --check \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
|
|
51
|
-
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
52
|
-
"audit": "npm audit --audit-level=high"
|
|
53
|
-
},
|
|
54
|
-
"files": [
|
|
55
|
-
"/**/*.js",
|
|
56
|
-
"/**/*.ts"
|
|
57
|
-
],
|
|
58
|
-
"main": "./cjs/index.js",
|
|
59
|
-
"module": "./esm/index.js",
|
|
60
|
-
"types": "types/index.d.ts",
|
|
61
|
-
"exports": {
|
|
62
|
-
".": {
|
|
63
|
-
"import": "./esm/index.js",
|
|
64
|
-
"require": "./cjs/index.js",
|
|
65
|
-
"types": "./types/index.d.ts"
|
|
2
|
+
"name": "camstreamerlib",
|
|
3
|
+
"version": "4.0.27",
|
|
4
|
+
"description": "Helper library for CamStreamer ACAP applications.",
|
|
5
|
+
"prettier": "@camstreamer/prettier-config",
|
|
6
|
+
"engine": {
|
|
7
|
+
"node": ">=18.0.0"
|
|
66
8
|
},
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"adm-zip": "^0.6.0",
|
|
11
|
+
"eventemitter2": "^5.0.1",
|
|
12
|
+
"fast-xml-parser": "^5.3.6",
|
|
13
|
+
"type-fest": "^4.41.0",
|
|
14
|
+
"undici": "^6.27.0",
|
|
15
|
+
"ws": "^8.18.0",
|
|
16
|
+
"zod": "^3.25.76"
|
|
71
17
|
},
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@camstreamer/eslint-config": "^1.0.2",
|
|
20
|
+
"@camstreamer/prettier-config": "^2.0.4",
|
|
21
|
+
"@types/adm-zip": "^0.5.5",
|
|
22
|
+
"@types/jest": "^28.0.0",
|
|
23
|
+
"@types/node": "^18.19.127",
|
|
24
|
+
"@types/ws": "^8.5.10",
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
26
|
+
"@typescript-eslint/parser": "^6.8.0",
|
|
27
|
+
"eslint": "^8.51.0",
|
|
28
|
+
"eslint-plugin-deprecation": "^2.0.0",
|
|
29
|
+
"eslint-plugin-unused-imports": "^3.0.0",
|
|
30
|
+
"jest": "^28.1.3",
|
|
31
|
+
"npm-run-all": "^4.1.5",
|
|
32
|
+
"prettier": "^2.7.1",
|
|
33
|
+
"ts-jest": "^28.0.0",
|
|
34
|
+
"ts-node": "^10.7.0",
|
|
35
|
+
"typescript": "5.3.3"
|
|
76
36
|
},
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
"require": "./cjs/index.js",
|
|
80
|
-
"types": "./types/index.d.ts"
|
|
37
|
+
"overrides": {
|
|
38
|
+
"js-yaml": "^4.2.0"
|
|
81
39
|
},
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
40
|
+
"scripts": {
|
|
41
|
+
"clean": "rimraf dist/*",
|
|
42
|
+
"build": "npm-run-all clean build:cjs build:esm copyPackage",
|
|
43
|
+
"build:cjs": "tsc --project tsconfig.cjs.json",
|
|
44
|
+
"build:esm": "tsc --project tsconfig.esm.json",
|
|
45
|
+
"copyPackage": "cp -f LICENSE dist/ && cp -f README.md dist/ && cp -f package.json dist/",
|
|
46
|
+
"publishPackage": "./publish.sh",
|
|
47
|
+
"lint": "eslint \"src/**/*.ts\"",
|
|
48
|
+
"lint:fix": "eslint \"src/**/*.ts\" --fix",
|
|
49
|
+
"pretty": "prettier --write \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
|
|
50
|
+
"pretty:check": "prettier --check \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
|
|
51
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
52
|
+
"audit": "npm audit --audit-level=high"
|
|
86
53
|
},
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
54
|
+
"files": [
|
|
55
|
+
"/**/*.js",
|
|
56
|
+
"/**/*.ts"
|
|
57
|
+
],
|
|
58
|
+
"main": "./cjs/index.js",
|
|
59
|
+
"module": "./esm/index.js",
|
|
60
|
+
"types": "types/index.d.ts",
|
|
61
|
+
"exports": {
|
|
62
|
+
".": {
|
|
63
|
+
"import": "./esm/index.js",
|
|
64
|
+
"require": "./cjs/index.js",
|
|
65
|
+
"types": "./types/index.d.ts"
|
|
66
|
+
},
|
|
67
|
+
"./web": {
|
|
68
|
+
"import": "./esm/web/index.js",
|
|
69
|
+
"require": "./cjs/web/index.js",
|
|
70
|
+
"types": "./types/web/index.d.ts"
|
|
71
|
+
},
|
|
72
|
+
"./node": {
|
|
73
|
+
"import": "./esm/node/index.js",
|
|
74
|
+
"require": "./cjs/node/index.js",
|
|
75
|
+
"types": "./types/node/index.d.ts"
|
|
76
|
+
},
|
|
77
|
+
"./cjs/index": {
|
|
78
|
+
"import": "./esm/index.js",
|
|
79
|
+
"require": "./cjs/index.js",
|
|
80
|
+
"types": "./types/index.d.ts"
|
|
81
|
+
},
|
|
82
|
+
"./cjs/node": {
|
|
83
|
+
"import": "./esm/node/index.js",
|
|
84
|
+
"require": "./cjs/node/index.js",
|
|
85
|
+
"types": "./types/node/index.js"
|
|
86
|
+
},
|
|
87
|
+
"./cjs/node/index": {
|
|
88
|
+
"import": "./esm/node/index.js",
|
|
89
|
+
"require": "./cjs/node/index.js",
|
|
90
|
+
"types": "./types/node/index.js"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"repository": {
|
|
94
|
+
"type": "git",
|
|
95
|
+
"url": "git+https://github.com/CamStreamer/CamStreamerLib.git"
|
|
96
|
+
},
|
|
97
|
+
"keywords": [
|
|
98
|
+
"CamStreamer",
|
|
99
|
+
"CamOverlay",
|
|
100
|
+
"CamScripter",
|
|
101
|
+
"Camera",
|
|
102
|
+
"Axis"
|
|
103
|
+
],
|
|
104
|
+
"author": "CamStreamer s.r.o",
|
|
105
|
+
"license": "ISC",
|
|
106
|
+
"bugs": {
|
|
107
|
+
"url": "https://github.com/CamStreamer/CamStreamerLib/issues"
|
|
108
|
+
},
|
|
109
|
+
"homepage": "https://github.com/CamStreamer/CamStreamerLib#readme"
|
|
110
110
|
}
|
|
@@ -1035,9 +1035,37 @@ export declare const priorityListSchema: z.ZodObject<{
|
|
|
1035
1035
|
idValue: string;
|
|
1036
1036
|
}[] | undefined;
|
|
1037
1037
|
}>;
|
|
1038
|
+
export declare const friendlyListSchema: z.ZodObject<{
|
|
1039
|
+
list: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1040
|
+
domain: z.ZodEnum<["adsb", "remoteId"]>;
|
|
1041
|
+
idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
|
|
1042
|
+
idValue: z.ZodString;
|
|
1043
|
+
}, "strip", z.ZodTypeAny, {
|
|
1044
|
+
domain: "adsb" | "remoteId";
|
|
1045
|
+
idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
|
|
1046
|
+
idValue: string;
|
|
1047
|
+
}, {
|
|
1048
|
+
domain: "adsb" | "remoteId";
|
|
1049
|
+
idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
|
|
1050
|
+
idValue: string;
|
|
1051
|
+
}>, "many">>;
|
|
1052
|
+
}, "strip", z.ZodTypeAny, {
|
|
1053
|
+
list: {
|
|
1054
|
+
domain: "adsb" | "remoteId";
|
|
1055
|
+
idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
|
|
1056
|
+
idValue: string;
|
|
1057
|
+
}[];
|
|
1058
|
+
}, {
|
|
1059
|
+
list?: {
|
|
1060
|
+
domain: "adsb" | "remoteId";
|
|
1061
|
+
idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
|
|
1062
|
+
idValue: string;
|
|
1063
|
+
}[] | undefined;
|
|
1064
|
+
}>;
|
|
1038
1065
|
export type TWhiteList = z.infer<typeof whiteListSchema>;
|
|
1039
1066
|
export type TBlackList = z.infer<typeof blackListSchema>;
|
|
1040
1067
|
export type TPriorityList = z.infer<typeof priorityListSchema>;
|
|
1068
|
+
export type TFriendlyList = z.infer<typeof friendlyListSchema>;
|
|
1041
1069
|
export declare const mapTypeSchema: z.ZodEnum<["roadmap", "satellite"]>;
|
|
1042
1070
|
export type TMapType = z.infer<typeof mapTypeSchema>;
|
|
1043
1071
|
export declare const mapInfoSchema: z.ZodObject<{
|
|
@@ -18,6 +18,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
18
18
|
whiteListed: z.ZodBoolean;
|
|
19
19
|
blackListed: z.ZodBoolean;
|
|
20
20
|
priorityListed: z.ZodBoolean;
|
|
21
|
+
friendlyListed: z.ZodBoolean;
|
|
21
22
|
autoSelectionIgnored: z.ZodBoolean;
|
|
22
23
|
signalQuality: z.ZodNumber;
|
|
23
24
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -42,6 +43,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
42
43
|
whiteListed: boolean;
|
|
43
44
|
blackListed: boolean;
|
|
44
45
|
priorityListed: boolean;
|
|
46
|
+
friendlyListed: boolean;
|
|
45
47
|
autoSelectionIgnored: boolean;
|
|
46
48
|
signalQuality: number;
|
|
47
49
|
emitterCategorySet: number;
|
|
@@ -67,6 +69,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
67
69
|
whiteListed: boolean;
|
|
68
70
|
blackListed: boolean;
|
|
69
71
|
priorityListed: boolean;
|
|
72
|
+
friendlyListed: boolean;
|
|
70
73
|
autoSelectionIgnored: boolean;
|
|
71
74
|
signalQuality: number;
|
|
72
75
|
emergencyState: boolean;
|
|
@@ -200,6 +203,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
200
203
|
whiteListed: z.ZodBoolean;
|
|
201
204
|
blackListed: z.ZodBoolean;
|
|
202
205
|
priorityListed: z.ZodBoolean;
|
|
206
|
+
friendlyListed: z.ZodBoolean;
|
|
203
207
|
autoSelectionIgnored: z.ZodBoolean;
|
|
204
208
|
signalQuality: z.ZodNumber;
|
|
205
209
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -224,6 +228,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
224
228
|
whiteListed: boolean;
|
|
225
229
|
blackListed: boolean;
|
|
226
230
|
priorityListed: boolean;
|
|
231
|
+
friendlyListed: boolean;
|
|
227
232
|
autoSelectionIgnored: boolean;
|
|
228
233
|
signalQuality: number;
|
|
229
234
|
emitterCategorySet: number;
|
|
@@ -249,6 +254,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
249
254
|
whiteListed: boolean;
|
|
250
255
|
blackListed: boolean;
|
|
251
256
|
priorityListed: boolean;
|
|
257
|
+
friendlyListed: boolean;
|
|
252
258
|
autoSelectionIgnored: boolean;
|
|
253
259
|
signalQuality: number;
|
|
254
260
|
emergencyState: boolean;
|
|
@@ -277,6 +283,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
277
283
|
whiteListed: boolean;
|
|
278
284
|
blackListed: boolean;
|
|
279
285
|
priorityListed: boolean;
|
|
286
|
+
friendlyListed: boolean;
|
|
280
287
|
autoSelectionIgnored: boolean;
|
|
281
288
|
signalQuality: number;
|
|
282
289
|
emitterCategorySet: number;
|
|
@@ -305,6 +312,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
305
312
|
whiteListed: boolean;
|
|
306
313
|
blackListed: boolean;
|
|
307
314
|
priorityListed: boolean;
|
|
315
|
+
friendlyListed: boolean;
|
|
308
316
|
autoSelectionIgnored: boolean;
|
|
309
317
|
signalQuality: number;
|
|
310
318
|
emergencyState: boolean;
|
|
@@ -1268,6 +1276,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1268
1276
|
whiteListed: z.ZodBoolean;
|
|
1269
1277
|
blackListed: z.ZodBoolean;
|
|
1270
1278
|
priorityListed: z.ZodBoolean;
|
|
1279
|
+
friendlyListed: z.ZodBoolean;
|
|
1271
1280
|
autoSelectionIgnored: z.ZodBoolean;
|
|
1272
1281
|
signalQuality: z.ZodNumber;
|
|
1273
1282
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1292,6 +1301,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1292
1301
|
whiteListed: boolean;
|
|
1293
1302
|
blackListed: boolean;
|
|
1294
1303
|
priorityListed: boolean;
|
|
1304
|
+
friendlyListed: boolean;
|
|
1295
1305
|
autoSelectionIgnored: boolean;
|
|
1296
1306
|
signalQuality: number;
|
|
1297
1307
|
emitterCategorySet: number;
|
|
@@ -1317,6 +1327,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1317
1327
|
whiteListed: boolean;
|
|
1318
1328
|
blackListed: boolean;
|
|
1319
1329
|
priorityListed: boolean;
|
|
1330
|
+
friendlyListed: boolean;
|
|
1320
1331
|
autoSelectionIgnored: boolean;
|
|
1321
1332
|
signalQuality: number;
|
|
1322
1333
|
emergencyState: boolean;
|
|
@@ -1345,6 +1356,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1345
1356
|
whiteListed: boolean;
|
|
1346
1357
|
blackListed: boolean;
|
|
1347
1358
|
priorityListed: boolean;
|
|
1359
|
+
friendlyListed: boolean;
|
|
1348
1360
|
autoSelectionIgnored: boolean;
|
|
1349
1361
|
signalQuality: number;
|
|
1350
1362
|
emitterCategorySet: number;
|
|
@@ -1373,6 +1385,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1373
1385
|
whiteListed: boolean;
|
|
1374
1386
|
blackListed: boolean;
|
|
1375
1387
|
priorityListed: boolean;
|
|
1388
|
+
friendlyListed: boolean;
|
|
1376
1389
|
autoSelectionIgnored: boolean;
|
|
1377
1390
|
signalQuality: number;
|
|
1378
1391
|
emergencyState: boolean;
|
|
@@ -2302,6 +2315,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2302
2315
|
whiteListed: boolean;
|
|
2303
2316
|
blackListed: boolean;
|
|
2304
2317
|
priorityListed: boolean;
|
|
2318
|
+
friendlyListed: boolean;
|
|
2305
2319
|
autoSelectionIgnored: boolean;
|
|
2306
2320
|
signalQuality: number;
|
|
2307
2321
|
emitterCategorySet: number;
|
|
@@ -2547,6 +2561,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2547
2561
|
whiteListed: boolean;
|
|
2548
2562
|
blackListed: boolean;
|
|
2549
2563
|
priorityListed: boolean;
|
|
2564
|
+
friendlyListed: boolean;
|
|
2550
2565
|
autoSelectionIgnored: boolean;
|
|
2551
2566
|
signalQuality: number;
|
|
2552
2567
|
emergencyState: boolean;
|
|
@@ -2824,6 +2839,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2824
2839
|
whiteListed: z.ZodBoolean;
|
|
2825
2840
|
blackListed: z.ZodBoolean;
|
|
2826
2841
|
priorityListed: z.ZodBoolean;
|
|
2842
|
+
friendlyListed: z.ZodBoolean;
|
|
2827
2843
|
autoSelectionIgnored: z.ZodBoolean;
|
|
2828
2844
|
signalQuality: z.ZodNumber;
|
|
2829
2845
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2848,6 +2864,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2848
2864
|
whiteListed: boolean;
|
|
2849
2865
|
blackListed: boolean;
|
|
2850
2866
|
priorityListed: boolean;
|
|
2867
|
+
friendlyListed: boolean;
|
|
2851
2868
|
autoSelectionIgnored: boolean;
|
|
2852
2869
|
signalQuality: number;
|
|
2853
2870
|
emitterCategorySet: number;
|
|
@@ -2873,6 +2890,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2873
2890
|
whiteListed: boolean;
|
|
2874
2891
|
blackListed: boolean;
|
|
2875
2892
|
priorityListed: boolean;
|
|
2893
|
+
friendlyListed: boolean;
|
|
2876
2894
|
autoSelectionIgnored: boolean;
|
|
2877
2895
|
signalQuality: number;
|
|
2878
2896
|
emergencyState: boolean;
|
|
@@ -2901,6 +2919,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2901
2919
|
whiteListed: boolean;
|
|
2902
2920
|
blackListed: boolean;
|
|
2903
2921
|
priorityListed: boolean;
|
|
2922
|
+
friendlyListed: boolean;
|
|
2904
2923
|
autoSelectionIgnored: boolean;
|
|
2905
2924
|
signalQuality: number;
|
|
2906
2925
|
emitterCategorySet: number;
|
|
@@ -2929,6 +2948,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2929
2948
|
whiteListed: boolean;
|
|
2930
2949
|
blackListed: boolean;
|
|
2931
2950
|
priorityListed: boolean;
|
|
2951
|
+
friendlyListed: boolean;
|
|
2932
2952
|
autoSelectionIgnored: boolean;
|
|
2933
2953
|
signalQuality: number;
|
|
2934
2954
|
emergencyState: boolean;
|