camstreamerlib 4.0.34-be26059 → 4.0.35
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/CamOverlayAPI.d.ts +6 -0
- package/cjs/CamOverlayAPI.js +16 -0
- package/cjs/CamSwitcherAPI.d.ts +1 -1
- package/cjs/PlaneTrackerAPI.d.ts +10 -43
- package/cjs/PlaneTrackerAPI.js +2 -1
- package/cjs/VapixAPI.js +4 -2
- package/cjs/errors/errors.js +4 -4
- package/cjs/types/CamSwitcherAPI.d.ts +4 -4
- package/cjs/types/PlaneTrackerAPI.d.ts +26 -218
- package/cjs/types/PlaneTrackerAPI.js +16 -65
- package/cjs/types/common.d.ts +13 -0
- package/cjs/types/common.js +6 -1
- package/esm/CamOverlayAPI.js +17 -1
- package/esm/PlaneTrackerAPI.js +2 -1
- package/esm/VapixAPI.js +4 -2
- package/esm/errors/errors.js +4 -4
- package/esm/types/PlaneTrackerAPI.js +15 -64
- package/esm/types/common.js +5 -0
- package/package.json +107 -110
- package/types/CamOverlayAPI.d.ts +6 -0
- package/types/CamSwitcherAPI.d.ts +1 -1
- package/types/PlaneTrackerAPI.d.ts +10 -43
- package/types/types/CamSwitcherAPI.d.ts +4 -4
- package/types/types/PlaneTrackerAPI.d.ts +26 -218
- package/types/types/common.d.ts +13 -0
- package/cjs/types/PlaneTrackerAPI.test.d.ts +0 -1
- package/cjs/types/PlaneTrackerAPI.test.js +0 -90
- package/esm/types/PlaneTrackerAPI.test.js +0 -88
- package/types/types/PlaneTrackerAPI.test.d.ts +0 -1
|
@@ -12,9 +12,9 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
12
12
|
checkCameraTime(options?: THttpRequestOptions): Promise<boolean>;
|
|
13
13
|
serverRunCheck(options?: THttpRequestOptions): Promise<boolean>;
|
|
14
14
|
getLiveViewAlias(rtspUrl: string, options?: THttpRequestOptions): Promise<{
|
|
15
|
+
alias: string;
|
|
15
16
|
ws: string;
|
|
16
17
|
ws_initial_message: string;
|
|
17
|
-
alias: string;
|
|
18
18
|
}>;
|
|
19
19
|
resetPtzCalibration(options?: THttpRequestOptions): Promise<void>;
|
|
20
20
|
resetFocusCalibration(options?: THttpRequestOptions): Promise<void>;
|
|
@@ -45,23 +45,8 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
45
45
|
focusCalibrationPoints: string;
|
|
46
46
|
};
|
|
47
47
|
cameraConfig: {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
captureSizeExtensionMeters: number;
|
|
51
|
-
};
|
|
52
|
-
drone: {
|
|
53
|
-
defaultCaptureSizeMeters: number;
|
|
54
|
-
captureSizeExtensionMeters: number;
|
|
55
|
-
};
|
|
56
|
-
} | {
|
|
57
|
-
aircraft: {
|
|
58
|
-
defaultCaptureSizeMeters: number;
|
|
59
|
-
captureSizeExtensionMeters: number;
|
|
60
|
-
};
|
|
61
|
-
drone: {
|
|
62
|
-
defaultCaptureSizeMeters: number;
|
|
63
|
-
captureSizeExtensionMeters: number;
|
|
64
|
-
};
|
|
48
|
+
defaultCaptureSizeMeters: number;
|
|
49
|
+
captureSizeExtensionMeters: number;
|
|
65
50
|
};
|
|
66
51
|
stream: {
|
|
67
52
|
width: number;
|
|
@@ -114,29 +99,11 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
114
99
|
priority: number;
|
|
115
100
|
};
|
|
116
101
|
identificationLabel: {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
opacity: number;
|
|
123
|
-
};
|
|
124
|
-
drone: {
|
|
125
|
-
firstRow: "blank" | "remote_id";
|
|
126
|
-
opacity: number;
|
|
127
|
-
};
|
|
128
|
-
} | {
|
|
129
|
-
aircraft: {
|
|
130
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
131
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
132
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
133
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
134
|
-
opacity: number;
|
|
135
|
-
};
|
|
136
|
-
drone: {
|
|
137
|
-
firstRow: "blank" | "remote_id";
|
|
138
|
-
opacity: number;
|
|
139
|
-
};
|
|
102
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
103
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
104
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
105
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
106
|
+
opacity: number;
|
|
140
107
|
};
|
|
141
108
|
acs: {
|
|
142
109
|
ip: string;
|
|
@@ -214,11 +181,11 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
214
181
|
importAppSettings(dataType: TImportDataType, formData: Parameters<Client['post']>[0]['data'], options?: THttpRequestOptions): Promise<void>;
|
|
215
182
|
getDomainList(options?: THttpRequestOptions): Promise<Partial<Record<"adsb" | "remoteId", {
|
|
216
183
|
uiName: string;
|
|
217
|
-
icon: "unknown" | "small" | "
|
|
184
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
218
185
|
categoryList: {
|
|
219
186
|
categoryId: string;
|
|
220
187
|
uiName: string;
|
|
221
|
-
icon: "unknown" | "small" | "
|
|
188
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
222
189
|
}[];
|
|
223
190
|
}>>>;
|
|
224
191
|
fetchFlightInfo(targetId: string, options?: THttpRequestOptions): Promise<{
|
|
@@ -25,21 +25,21 @@ export declare const outputInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
25
25
|
ws: z.ZodString;
|
|
26
26
|
ws_initial_message: z.ZodString;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
rtsp_url: string;
|
|
29
28
|
ws: string;
|
|
30
29
|
ws_initial_message: string;
|
|
31
|
-
}, {
|
|
32
30
|
rtsp_url: string;
|
|
31
|
+
}, {
|
|
33
32
|
ws: string;
|
|
34
33
|
ws_initial_message: string;
|
|
34
|
+
rtsp_url: string;
|
|
35
35
|
}>, {
|
|
36
|
-
rtspUrl: string;
|
|
37
36
|
ws: string;
|
|
38
37
|
wsInitialMessage: string;
|
|
38
|
+
rtspUrl: string;
|
|
39
39
|
}, {
|
|
40
|
-
rtsp_url: string;
|
|
41
40
|
ws: string;
|
|
42
41
|
ws_initial_message: string;
|
|
42
|
+
rtsp_url: string;
|
|
43
43
|
}>;
|
|
44
44
|
export type TOutputInfo = z.infer<typeof outputInfoSchema>;
|
|
45
45
|
export declare const audioPushInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export type TImportDataType = 'MAP_DATA' | 'SERVER_DATA' | 'ALL';
|
|
3
3
|
export type TExportDataType = 'NIGHT_SKY_CALIBRATION_DATA' | 'ALL';
|
|
4
|
-
export declare const wsAliasResponseSchema: z.ZodObject<{
|
|
5
|
-
alias: z.ZodString;
|
|
6
|
-
ws: z.ZodString;
|
|
7
|
-
ws_initial_message: z.ZodString;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
ws: string;
|
|
10
|
-
ws_initial_message: string;
|
|
11
|
-
alias: string;
|
|
12
|
-
}, {
|
|
13
|
-
ws: string;
|
|
14
|
-
ws_initial_message: string;
|
|
15
|
-
alias: string;
|
|
16
|
-
}>;
|
|
17
4
|
export declare const connectionSchema: z.ZodObject<{
|
|
18
5
|
protocol: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"https">, z.ZodLiteral<"https_insecure">]>;
|
|
19
6
|
ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
|
|
@@ -69,8 +56,6 @@ export declare const widgetSchema: z.ZodObject<{
|
|
|
69
56
|
}>;
|
|
70
57
|
declare const labelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
71
58
|
export type TLabelOption = z.infer<typeof labelOptionsSchema>;
|
|
72
|
-
declare const droneLabelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"remote_id">]>;
|
|
73
|
-
export type TDroneLabelOption = z.infer<typeof droneLabelOptionsSchema>;
|
|
74
59
|
export declare const cameraSettingsSchema: z.ZodObject<{
|
|
75
60
|
units: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">]>>;
|
|
76
61
|
adsbSource: z.ZodDefault<z.ZodObject<{
|
|
@@ -134,67 +119,16 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
134
119
|
nightSkyCalibrationFocusValue?: number | undefined;
|
|
135
120
|
focusCalibrationPoints?: string | undefined;
|
|
136
121
|
}>>;
|
|
137
|
-
cameraConfig: z.ZodDefault<z.
|
|
138
|
-
aircraft: z.ZodObject<{
|
|
139
|
-
defaultCaptureSizeMeters: z.ZodNumber;
|
|
140
|
-
captureSizeExtensionMeters: z.ZodNumber;
|
|
141
|
-
}, "strip", z.ZodTypeAny, {
|
|
142
|
-
defaultCaptureSizeMeters: number;
|
|
143
|
-
captureSizeExtensionMeters: number;
|
|
144
|
-
}, {
|
|
145
|
-
defaultCaptureSizeMeters: number;
|
|
146
|
-
captureSizeExtensionMeters: number;
|
|
147
|
-
}>;
|
|
148
|
-
drone: z.ZodDefault<z.ZodObject<{
|
|
149
|
-
defaultCaptureSizeMeters: z.ZodNumber;
|
|
150
|
-
captureSizeExtensionMeters: z.ZodNumber;
|
|
151
|
-
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
defaultCaptureSizeMeters: number;
|
|
153
|
-
captureSizeExtensionMeters: number;
|
|
154
|
-
}, {
|
|
155
|
-
defaultCaptureSizeMeters: number;
|
|
156
|
-
captureSizeExtensionMeters: number;
|
|
157
|
-
}>>;
|
|
158
|
-
}, "strip", z.ZodTypeAny, {
|
|
159
|
-
aircraft: {
|
|
160
|
-
defaultCaptureSizeMeters: number;
|
|
161
|
-
captureSizeExtensionMeters: number;
|
|
162
|
-
};
|
|
163
|
-
drone: {
|
|
164
|
-
defaultCaptureSizeMeters: number;
|
|
165
|
-
captureSizeExtensionMeters: number;
|
|
166
|
-
};
|
|
167
|
-
}, {
|
|
168
|
-
aircraft: {
|
|
169
|
-
defaultCaptureSizeMeters: number;
|
|
170
|
-
captureSizeExtensionMeters: number;
|
|
171
|
-
};
|
|
172
|
-
drone?: {
|
|
173
|
-
defaultCaptureSizeMeters: number;
|
|
174
|
-
captureSizeExtensionMeters: number;
|
|
175
|
-
} | undefined;
|
|
176
|
-
}>, z.ZodEffects<z.ZodObject<{
|
|
122
|
+
cameraConfig: z.ZodDefault<z.ZodObject<{
|
|
177
123
|
defaultCaptureSizeMeters: z.ZodDefault<z.ZodNumber>;
|
|
178
124
|
captureSizeExtensionMeters: z.ZodDefault<z.ZodNumber>;
|
|
179
|
-
}, "
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
126
|
defaultCaptureSizeMeters: number;
|
|
181
127
|
captureSizeExtensionMeters: number;
|
|
182
128
|
}, {
|
|
183
129
|
defaultCaptureSizeMeters?: number | undefined;
|
|
184
130
|
captureSizeExtensionMeters?: number | undefined;
|
|
185
|
-
}
|
|
186
|
-
aircraft: {
|
|
187
|
-
defaultCaptureSizeMeters: number;
|
|
188
|
-
captureSizeExtensionMeters: number;
|
|
189
|
-
};
|
|
190
|
-
drone: {
|
|
191
|
-
defaultCaptureSizeMeters: number;
|
|
192
|
-
captureSizeExtensionMeters: number;
|
|
193
|
-
};
|
|
194
|
-
}, {
|
|
195
|
-
defaultCaptureSizeMeters?: number | undefined;
|
|
196
|
-
captureSizeExtensionMeters?: number | undefined;
|
|
197
|
-
}>]>>;
|
|
131
|
+
}>>;
|
|
198
132
|
stream: z.ZodDefault<z.ZodObject<{
|
|
199
133
|
width: z.ZodNumber;
|
|
200
134
|
height: z.ZodNumber;
|
|
@@ -400,61 +334,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
400
334
|
port?: number | undefined;
|
|
401
335
|
priority?: number | undefined;
|
|
402
336
|
}>>;
|
|
403
|
-
identificationLabel: z.ZodDefault<z.
|
|
404
|
-
aircraft: z.ZodObject<{
|
|
405
|
-
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
406
|
-
secondRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
407
|
-
thirdRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
408
|
-
fourthRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
409
|
-
opacity: z.ZodNumber;
|
|
410
|
-
}, "strip", z.ZodTypeAny, {
|
|
411
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
412
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
413
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
414
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
415
|
-
opacity: number;
|
|
416
|
-
}, {
|
|
417
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
418
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
419
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
420
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
421
|
-
opacity: number;
|
|
422
|
-
}>;
|
|
423
|
-
drone: z.ZodDefault<z.ZodObject<{
|
|
424
|
-
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"remote_id">]>;
|
|
425
|
-
opacity: z.ZodNumber;
|
|
426
|
-
}, "strip", z.ZodTypeAny, {
|
|
427
|
-
firstRow: "blank" | "remote_id";
|
|
428
|
-
opacity: number;
|
|
429
|
-
}, {
|
|
430
|
-
firstRow: "blank" | "remote_id";
|
|
431
|
-
opacity: number;
|
|
432
|
-
}>>;
|
|
433
|
-
}, "strip", z.ZodTypeAny, {
|
|
434
|
-
aircraft: {
|
|
435
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
436
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
437
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
438
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
439
|
-
opacity: number;
|
|
440
|
-
};
|
|
441
|
-
drone: {
|
|
442
|
-
firstRow: "blank" | "remote_id";
|
|
443
|
-
opacity: number;
|
|
444
|
-
};
|
|
445
|
-
}, {
|
|
446
|
-
aircraft: {
|
|
447
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
448
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
449
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
450
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
451
|
-
opacity: number;
|
|
452
|
-
};
|
|
453
|
-
drone?: {
|
|
454
|
-
firstRow: "blank" | "remote_id";
|
|
455
|
-
opacity: number;
|
|
456
|
-
} | undefined;
|
|
457
|
-
}>, z.ZodEffects<z.ZodObject<{
|
|
337
|
+
identificationLabel: z.ZodDefault<z.ZodObject<{
|
|
458
338
|
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
459
339
|
secondRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
460
340
|
thirdRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
@@ -472,25 +352,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
472
352
|
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
473
353
|
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
474
354
|
opacity: number;
|
|
475
|
-
}
|
|
476
|
-
aircraft: {
|
|
477
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
478
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
479
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
480
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
481
|
-
opacity: number;
|
|
482
|
-
};
|
|
483
|
-
drone: {
|
|
484
|
-
firstRow: "blank" | "remote_id";
|
|
485
|
-
opacity: number;
|
|
486
|
-
};
|
|
487
|
-
}, {
|
|
488
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
489
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
490
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
491
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
492
|
-
opacity: number;
|
|
493
|
-
}>]>>;
|
|
355
|
+
}>>;
|
|
494
356
|
acs: z.ZodDefault<z.ZodObject<{
|
|
495
357
|
protocol: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"https">, z.ZodLiteral<"https_insecure">]>;
|
|
496
358
|
ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
|
|
@@ -585,23 +447,8 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
585
447
|
focusCalibrationPoints: string;
|
|
586
448
|
};
|
|
587
449
|
cameraConfig: {
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
captureSizeExtensionMeters: number;
|
|
591
|
-
};
|
|
592
|
-
drone: {
|
|
593
|
-
defaultCaptureSizeMeters: number;
|
|
594
|
-
captureSizeExtensionMeters: number;
|
|
595
|
-
};
|
|
596
|
-
} | {
|
|
597
|
-
aircraft: {
|
|
598
|
-
defaultCaptureSizeMeters: number;
|
|
599
|
-
captureSizeExtensionMeters: number;
|
|
600
|
-
};
|
|
601
|
-
drone: {
|
|
602
|
-
defaultCaptureSizeMeters: number;
|
|
603
|
-
captureSizeExtensionMeters: number;
|
|
604
|
-
};
|
|
450
|
+
defaultCaptureSizeMeters: number;
|
|
451
|
+
captureSizeExtensionMeters: number;
|
|
605
452
|
};
|
|
606
453
|
stream: {
|
|
607
454
|
width: number;
|
|
@@ -654,29 +501,11 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
654
501
|
priority: number;
|
|
655
502
|
};
|
|
656
503
|
identificationLabel: {
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
opacity: number;
|
|
663
|
-
};
|
|
664
|
-
drone: {
|
|
665
|
-
firstRow: "blank" | "remote_id";
|
|
666
|
-
opacity: number;
|
|
667
|
-
};
|
|
668
|
-
} | {
|
|
669
|
-
aircraft: {
|
|
670
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
671
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
672
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
673
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
674
|
-
opacity: number;
|
|
675
|
-
};
|
|
676
|
-
drone: {
|
|
677
|
-
firstRow: "blank" | "remote_id";
|
|
678
|
-
opacity: number;
|
|
679
|
-
};
|
|
504
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
505
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
506
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
507
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
508
|
+
opacity: number;
|
|
680
509
|
};
|
|
681
510
|
acs: {
|
|
682
511
|
ip: string;
|
|
@@ -752,15 +581,6 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
752
581
|
focusCalibrationPoints?: string | undefined;
|
|
753
582
|
} | undefined;
|
|
754
583
|
cameraConfig?: {
|
|
755
|
-
aircraft: {
|
|
756
|
-
defaultCaptureSizeMeters: number;
|
|
757
|
-
captureSizeExtensionMeters: number;
|
|
758
|
-
};
|
|
759
|
-
drone?: {
|
|
760
|
-
defaultCaptureSizeMeters: number;
|
|
761
|
-
captureSizeExtensionMeters: number;
|
|
762
|
-
} | undefined;
|
|
763
|
-
} | {
|
|
764
584
|
defaultCaptureSizeMeters?: number | undefined;
|
|
765
585
|
captureSizeExtensionMeters?: number | undefined;
|
|
766
586
|
} | undefined;
|
|
@@ -844,18 +664,6 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
844
664
|
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
845
665
|
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
846
666
|
opacity: number;
|
|
847
|
-
} | {
|
|
848
|
-
aircraft: {
|
|
849
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
850
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
851
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
852
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
853
|
-
opacity: number;
|
|
854
|
-
};
|
|
855
|
-
drone?: {
|
|
856
|
-
firstRow: "blank" | "remote_id";
|
|
857
|
-
opacity: number;
|
|
858
|
-
} | undefined;
|
|
859
667
|
} | undefined;
|
|
860
668
|
acs?: {
|
|
861
669
|
ip: string;
|
|
@@ -1388,11 +1196,11 @@ declare const categoryDescriptorSchema: z.ZodObject<{
|
|
|
1388
1196
|
}, "strip", z.ZodTypeAny, {
|
|
1389
1197
|
categoryId: string;
|
|
1390
1198
|
uiName: string;
|
|
1391
|
-
icon: "unknown" | "small" | "
|
|
1199
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1392
1200
|
}, {
|
|
1393
1201
|
categoryId: string;
|
|
1394
1202
|
uiName: string;
|
|
1395
|
-
icon: "unknown" | "small" | "
|
|
1203
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1396
1204
|
}>;
|
|
1397
1205
|
export type TCategoryDescriptor = z.infer<typeof categoryDescriptorSchema>;
|
|
1398
1206
|
declare const domainDescriptorSchema: z.ZodObject<{
|
|
@@ -1405,27 +1213,27 @@ declare const domainDescriptorSchema: z.ZodObject<{
|
|
|
1405
1213
|
}, "strip", z.ZodTypeAny, {
|
|
1406
1214
|
categoryId: string;
|
|
1407
1215
|
uiName: string;
|
|
1408
|
-
icon: "unknown" | "small" | "
|
|
1216
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1409
1217
|
}, {
|
|
1410
1218
|
categoryId: string;
|
|
1411
1219
|
uiName: string;
|
|
1412
|
-
icon: "unknown" | "small" | "
|
|
1220
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1413
1221
|
}>, "many">;
|
|
1414
1222
|
}, "strip", z.ZodTypeAny, {
|
|
1415
1223
|
uiName: string;
|
|
1416
|
-
icon: "unknown" | "small" | "
|
|
1224
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1417
1225
|
categoryList: {
|
|
1418
1226
|
categoryId: string;
|
|
1419
1227
|
uiName: string;
|
|
1420
|
-
icon: "unknown" | "small" | "
|
|
1228
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1421
1229
|
}[];
|
|
1422
1230
|
}, {
|
|
1423
1231
|
uiName: string;
|
|
1424
|
-
icon: "unknown" | "small" | "
|
|
1232
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1425
1233
|
categoryList: {
|
|
1426
1234
|
categoryId: string;
|
|
1427
1235
|
uiName: string;
|
|
1428
|
-
icon: "unknown" | "small" | "
|
|
1236
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1429
1237
|
}[];
|
|
1430
1238
|
}>;
|
|
1431
1239
|
export type TDomainDescriptor = z.infer<typeof domainDescriptorSchema>;
|
|
@@ -1439,27 +1247,27 @@ export declare const domainListSchema: z.ZodRecord<z.ZodEnum<["adsb", "remoteId"
|
|
|
1439
1247
|
}, "strip", z.ZodTypeAny, {
|
|
1440
1248
|
categoryId: string;
|
|
1441
1249
|
uiName: string;
|
|
1442
|
-
icon: "unknown" | "small" | "
|
|
1250
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1443
1251
|
}, {
|
|
1444
1252
|
categoryId: string;
|
|
1445
1253
|
uiName: string;
|
|
1446
|
-
icon: "unknown" | "small" | "
|
|
1254
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1447
1255
|
}>, "many">;
|
|
1448
1256
|
}, "strip", z.ZodTypeAny, {
|
|
1449
1257
|
uiName: string;
|
|
1450
|
-
icon: "unknown" | "small" | "
|
|
1258
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1451
1259
|
categoryList: {
|
|
1452
1260
|
categoryId: string;
|
|
1453
1261
|
uiName: string;
|
|
1454
|
-
icon: "unknown" | "small" | "
|
|
1262
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1455
1263
|
}[];
|
|
1456
1264
|
}, {
|
|
1457
1265
|
uiName: string;
|
|
1458
|
-
icon: "unknown" | "small" | "
|
|
1266
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1459
1267
|
categoryList: {
|
|
1460
1268
|
categoryId: string;
|
|
1461
1269
|
uiName: string;
|
|
1462
|
-
icon: "unknown" | "small" | "
|
|
1270
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1463
1271
|
}[];
|
|
1464
1272
|
}>>;
|
|
1465
1273
|
export type TDomainList = z.infer<typeof domainListSchema>;
|
package/types/types/common.d.ts
CHANGED
|
@@ -26,6 +26,19 @@ export declare const keyboardShortcutSchema: z.ZodNullable<z.ZodString>;
|
|
|
26
26
|
export declare const keyboardShortcutsSchema: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
27
27
|
export type TKeyboardShortcut = z.infer<typeof keyboardShortcutSchema>;
|
|
28
28
|
export type TKeyboardShortcuts = z.infer<typeof keyboardShortcutsSchema>;
|
|
29
|
+
export declare const wsAliasResponseSchema: z.ZodObject<{
|
|
30
|
+
alias: z.ZodString;
|
|
31
|
+
ws: z.ZodString;
|
|
32
|
+
ws_initial_message: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
alias: string;
|
|
35
|
+
ws: string;
|
|
36
|
+
ws_initial_message: string;
|
|
37
|
+
}, {
|
|
38
|
+
alias: string;
|
|
39
|
+
ws: string;
|
|
40
|
+
ws_initial_message: string;
|
|
41
|
+
}>;
|
|
29
42
|
export type TProxyTarget = {
|
|
30
43
|
ip: string;
|
|
31
44
|
mdnsName: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const PlaneTrackerAPI_1 = require("./PlaneTrackerAPI");
|
|
4
|
-
const globals_1 = require("@jest/globals");
|
|
5
|
-
const AIRCRAFT_LABEL = {
|
|
6
|
-
firstRow: 'icao',
|
|
7
|
-
secondRow: 'call_sign',
|
|
8
|
-
thirdRow: 'blank',
|
|
9
|
-
fourthRow: 'registration',
|
|
10
|
-
opacity: 50,
|
|
11
|
-
};
|
|
12
|
-
const DEFAULT_DRONE_LABEL = { firstRow: 'remote_id', opacity: 30 };
|
|
13
|
-
(0, globals_1.describe)('cameraSettingsSchema identificationLabel', () => {
|
|
14
|
-
(0, globals_1.test)('defaults both aircraft and drone labels', () => {
|
|
15
|
-
(0, globals_1.expect)(PlaneTrackerAPI_1.cameraSettingsSchema.parse({}).identificationLabel).toEqual({
|
|
16
|
-
aircraft: {
|
|
17
|
-
firstRow: 'icao',
|
|
18
|
-
secondRow: 'call_sign',
|
|
19
|
-
thirdRow: 'blank',
|
|
20
|
-
fourthRow: 'blank',
|
|
21
|
-
opacity: 30,
|
|
22
|
-
},
|
|
23
|
-
drone: DEFAULT_DRONE_LABEL,
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
(0, globals_1.test)('parses the aircraft and drone label', () => {
|
|
27
|
-
const identificationLabel = { aircraft: AIRCRAFT_LABEL, drone: { firstRow: 'blank', opacity: 70 } };
|
|
28
|
-
(0, globals_1.expect)(PlaneTrackerAPI_1.cameraSettingsSchema.parse({ identificationLabel }).identificationLabel).toEqual(identificationLabel);
|
|
29
|
-
});
|
|
30
|
-
(0, globals_1.test)('defaults a missing drone label', () => {
|
|
31
|
-
(0, globals_1.expect)(PlaneTrackerAPI_1.cameraSettingsSchema.parse({ identificationLabel: { aircraft: AIRCRAFT_LABEL } }).identificationLabel).toEqual({ aircraft: AIRCRAFT_LABEL, drone: DEFAULT_DRONE_LABEL });
|
|
32
|
-
});
|
|
33
|
-
(0, globals_1.test)('converts the legacy flat label to the aircraft label', () => {
|
|
34
|
-
(0, globals_1.expect)(PlaneTrackerAPI_1.cameraSettingsSchema.parse({ identificationLabel: AIRCRAFT_LABEL }).identificationLabel).toEqual({
|
|
35
|
-
aircraft: AIRCRAFT_LABEL,
|
|
36
|
-
drone: DEFAULT_DRONE_LABEL,
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
(0, globals_1.test)('returns an independent drone label for each legacy parse', () => {
|
|
40
|
-
const first = PlaneTrackerAPI_1.cameraSettingsSchema.parse({ identificationLabel: AIRCRAFT_LABEL });
|
|
41
|
-
first.identificationLabel.drone.opacity = 90;
|
|
42
|
-
const second = PlaneTrackerAPI_1.cameraSettingsSchema.parse({ identificationLabel: AIRCRAFT_LABEL });
|
|
43
|
-
(0, globals_1.expect)(second.identificationLabel.drone).toEqual(DEFAULT_DRONE_LABEL);
|
|
44
|
-
});
|
|
45
|
-
(0, globals_1.test)('rejects an unknown drone label row', () => {
|
|
46
|
-
const identificationLabel = { aircraft: AIRCRAFT_LABEL, drone: { firstRow: 'icao', opacity: 30 } };
|
|
47
|
-
(0, globals_1.expect)(PlaneTrackerAPI_1.cameraSettingsSchema.safeParse({ identificationLabel }).success).toBe(false);
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
const CAPTURE_CONFIG = { defaultCaptureSizeMeters: 50, captureSizeExtensionMeters: 20 };
|
|
51
|
-
const DEFAULT_CAPTURE_CONFIG = { defaultCaptureSizeMeters: 120, captureSizeExtensionMeters: 80 };
|
|
52
|
-
(0, globals_1.describe)('cameraSettingsSchema cameraConfig', () => {
|
|
53
|
-
(0, globals_1.test)('defaults both aircraft and drone capture config', () => {
|
|
54
|
-
(0, globals_1.expect)(PlaneTrackerAPI_1.cameraSettingsSchema.parse({}).cameraConfig).toEqual({
|
|
55
|
-
aircraft: DEFAULT_CAPTURE_CONFIG,
|
|
56
|
-
drone: DEFAULT_CAPTURE_CONFIG,
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
(0, globals_1.test)('parses independent aircraft and drone capture config', () => {
|
|
60
|
-
const cameraConfig = {
|
|
61
|
-
aircraft: CAPTURE_CONFIG,
|
|
62
|
-
drone: { defaultCaptureSizeMeters: 5, captureSizeExtensionMeters: 3 },
|
|
63
|
-
};
|
|
64
|
-
(0, globals_1.expect)(PlaneTrackerAPI_1.cameraSettingsSchema.parse({ cameraConfig }).cameraConfig).toEqual(cameraConfig);
|
|
65
|
-
});
|
|
66
|
-
(0, globals_1.test)('defaults a missing drone capture config', () => {
|
|
67
|
-
(0, globals_1.expect)(PlaneTrackerAPI_1.cameraSettingsSchema.parse({ cameraConfig: { aircraft: CAPTURE_CONFIG } }).cameraConfig).toEqual({
|
|
68
|
-
aircraft: CAPTURE_CONFIG,
|
|
69
|
-
drone: DEFAULT_CAPTURE_CONFIG,
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
(0, globals_1.test)('copies the legacy flat capture config to both aircraft and drone', () => {
|
|
73
|
-
(0, globals_1.expect)(PlaneTrackerAPI_1.cameraSettingsSchema.parse({ cameraConfig: CAPTURE_CONFIG }).cameraConfig).toEqual({
|
|
74
|
-
aircraft: CAPTURE_CONFIG,
|
|
75
|
-
drone: CAPTURE_CONFIG,
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
(0, globals_1.test)('returns independent aircraft and drone objects', () => {
|
|
79
|
-
const legacy = PlaneTrackerAPI_1.cameraSettingsSchema.parse({ cameraConfig: CAPTURE_CONFIG }).cameraConfig;
|
|
80
|
-
legacy.drone.defaultCaptureSizeMeters = 1;
|
|
81
|
-
(0, globals_1.expect)(legacy.aircraft).toEqual(CAPTURE_CONFIG);
|
|
82
|
-
const first = PlaneTrackerAPI_1.cameraSettingsSchema.parse({}).cameraConfig;
|
|
83
|
-
first.drone.defaultCaptureSizeMeters = 1;
|
|
84
|
-
(0, globals_1.expect)(PlaneTrackerAPI_1.cameraSettingsSchema.parse({}).cameraConfig.drone).toEqual(DEFAULT_CAPTURE_CONFIG);
|
|
85
|
-
});
|
|
86
|
-
(0, globals_1.test)('rejects a non-positive drone capture size', () => {
|
|
87
|
-
const cameraConfig = { aircraft: CAPTURE_CONFIG, drone: { ...CAPTURE_CONFIG, defaultCaptureSizeMeters: 0 } };
|
|
88
|
-
(0, globals_1.expect)(PlaneTrackerAPI_1.cameraSettingsSchema.safeParse({ cameraConfig }).success).toBe(false);
|
|
89
|
-
});
|
|
90
|
-
});
|