camstreamerlib 4.0.35 → 4.0.36-05711a0
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/PlaneTrackerAPI.d.ts +45 -9
- package/cjs/VapixAPI.js +15 -11
- package/cjs/VapixAPI.test.d.ts +1 -0
- package/cjs/VapixAPI.test.js +146 -0
- package/cjs/types/PlaneTrackerAPI.d.ts +223 -26
- package/cjs/types/PlaneTrackerAPI.js +71 -17
- package/cjs/types/PlaneTrackerAPI.test.d.ts +1 -0
- package/cjs/types/PlaneTrackerAPI.test.js +117 -0
- package/cjs/types/ws/CamSwitcherEvents.d.ts +8 -8
- package/esm/VapixAPI.js +16 -12
- package/esm/VapixAPI.test.js +144 -0
- package/esm/types/PlaneTrackerAPI.js +71 -17
- package/esm/types/PlaneTrackerAPI.test.js +115 -0
- package/package.json +107 -107
- package/types/PlaneTrackerAPI.d.ts +45 -9
- package/types/VapixAPI.test.d.ts +1 -0
- package/types/types/PlaneTrackerAPI.d.ts +223 -26
- package/types/types/PlaneTrackerAPI.test.d.ts +1 -0
- package/types/types/ws/CamSwitcherEvents.d.ts +8 -8
|
@@ -54,8 +54,12 @@ export declare const widgetSchema: z.ZodObject<{
|
|
|
54
54
|
posY: number;
|
|
55
55
|
enabled?: boolean | undefined;
|
|
56
56
|
}>;
|
|
57
|
+
declare const widgetUnitsSchema: z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">, z.ZodLiteral<"rotate">]>;
|
|
58
|
+
export type TWidgetUnits = z.infer<typeof widgetUnitsSchema>;
|
|
57
59
|
declare const labelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
58
60
|
export type TLabelOption = z.infer<typeof labelOptionsSchema>;
|
|
61
|
+
declare const droneLabelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"remote_id">]>;
|
|
62
|
+
export type TDroneLabelOption = z.infer<typeof droneLabelOptionsSchema>;
|
|
59
63
|
export declare const cameraSettingsSchema: z.ZodObject<{
|
|
60
64
|
units: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">]>>;
|
|
61
65
|
adsbSource: z.ZodDefault<z.ZodObject<{
|
|
@@ -119,16 +123,67 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
119
123
|
nightSkyCalibrationFocusValue?: number | undefined;
|
|
120
124
|
focusCalibrationPoints?: string | undefined;
|
|
121
125
|
}>>;
|
|
122
|
-
cameraConfig: z.ZodDefault<z.ZodObject<{
|
|
126
|
+
cameraConfig: z.ZodDefault<z.ZodUnion<[z.ZodObject<{
|
|
127
|
+
aircraft: z.ZodObject<{
|
|
128
|
+
defaultCaptureSizeMeters: z.ZodNumber;
|
|
129
|
+
captureSizeExtensionMeters: z.ZodNumber;
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
defaultCaptureSizeMeters: number;
|
|
132
|
+
captureSizeExtensionMeters: number;
|
|
133
|
+
}, {
|
|
134
|
+
defaultCaptureSizeMeters: number;
|
|
135
|
+
captureSizeExtensionMeters: number;
|
|
136
|
+
}>;
|
|
137
|
+
drone: z.ZodDefault<z.ZodObject<{
|
|
138
|
+
defaultCaptureSizeMeters: z.ZodNumber;
|
|
139
|
+
captureSizeExtensionMeters: z.ZodNumber;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
defaultCaptureSizeMeters: number;
|
|
142
|
+
captureSizeExtensionMeters: number;
|
|
143
|
+
}, {
|
|
144
|
+
defaultCaptureSizeMeters: number;
|
|
145
|
+
captureSizeExtensionMeters: number;
|
|
146
|
+
}>>;
|
|
147
|
+
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
aircraft: {
|
|
149
|
+
defaultCaptureSizeMeters: number;
|
|
150
|
+
captureSizeExtensionMeters: number;
|
|
151
|
+
};
|
|
152
|
+
drone: {
|
|
153
|
+
defaultCaptureSizeMeters: number;
|
|
154
|
+
captureSizeExtensionMeters: number;
|
|
155
|
+
};
|
|
156
|
+
}, {
|
|
157
|
+
aircraft: {
|
|
158
|
+
defaultCaptureSizeMeters: number;
|
|
159
|
+
captureSizeExtensionMeters: number;
|
|
160
|
+
};
|
|
161
|
+
drone?: {
|
|
162
|
+
defaultCaptureSizeMeters: number;
|
|
163
|
+
captureSizeExtensionMeters: number;
|
|
164
|
+
} | undefined;
|
|
165
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
123
166
|
defaultCaptureSizeMeters: z.ZodDefault<z.ZodNumber>;
|
|
124
167
|
captureSizeExtensionMeters: z.ZodDefault<z.ZodNumber>;
|
|
125
|
-
}, "
|
|
168
|
+
}, "strict", z.ZodTypeAny, {
|
|
126
169
|
defaultCaptureSizeMeters: number;
|
|
127
170
|
captureSizeExtensionMeters: number;
|
|
128
171
|
}, {
|
|
129
172
|
defaultCaptureSizeMeters?: number | undefined;
|
|
130
173
|
captureSizeExtensionMeters?: number | undefined;
|
|
131
|
-
}
|
|
174
|
+
}>, {
|
|
175
|
+
aircraft: {
|
|
176
|
+
defaultCaptureSizeMeters: number;
|
|
177
|
+
captureSizeExtensionMeters: number;
|
|
178
|
+
};
|
|
179
|
+
drone: {
|
|
180
|
+
defaultCaptureSizeMeters: number;
|
|
181
|
+
captureSizeExtensionMeters: number;
|
|
182
|
+
};
|
|
183
|
+
}, {
|
|
184
|
+
defaultCaptureSizeMeters?: number | undefined;
|
|
185
|
+
captureSizeExtensionMeters?: number | undefined;
|
|
186
|
+
}>]>>;
|
|
132
187
|
stream: z.ZodDefault<z.ZodObject<{
|
|
133
188
|
width: z.ZodNumber;
|
|
134
189
|
height: z.ZodNumber;
|
|
@@ -260,9 +315,12 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
260
315
|
posX: z.ZodNumber;
|
|
261
316
|
posY: z.ZodNumber;
|
|
262
317
|
scale: z.ZodNumber;
|
|
318
|
+
} & {
|
|
319
|
+
units: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">, z.ZodLiteral<"rotate">]>>;
|
|
263
320
|
}, "strip", z.ZodTypeAny, {
|
|
264
321
|
enabled: boolean;
|
|
265
322
|
scale: number;
|
|
323
|
+
units: "rotate" | "metric" | "imperial";
|
|
266
324
|
coord: "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
267
325
|
posX: number;
|
|
268
326
|
posY: number;
|
|
@@ -272,6 +330,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
272
330
|
posX: number;
|
|
273
331
|
posY: number;
|
|
274
332
|
enabled?: boolean | undefined;
|
|
333
|
+
units?: "rotate" | "metric" | "imperial" | undefined;
|
|
275
334
|
}>>;
|
|
276
335
|
airportWidget: z.ZodDefault<z.ZodObject<{
|
|
277
336
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -283,6 +342,8 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
283
342
|
showWeather: z.ZodDefault<z.ZodBoolean>;
|
|
284
343
|
weatherLocationKey: z.ZodDefault<z.ZodString>;
|
|
285
344
|
weatherLocationName: z.ZodDefault<z.ZodString>;
|
|
345
|
+
windSpeedUnits: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">, z.ZodLiteral<"rotate">]>>;
|
|
346
|
+
temperatureUnits: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">, z.ZodLiteral<"rotate">]>>;
|
|
286
347
|
}, "strip", z.ZodTypeAny, {
|
|
287
348
|
enabled: boolean;
|
|
288
349
|
scale: number;
|
|
@@ -292,6 +353,8 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
292
353
|
posY: number;
|
|
293
354
|
showWeather: boolean;
|
|
294
355
|
weatherLocationKey: string;
|
|
356
|
+
windSpeedUnits: "rotate" | "metric" | "imperial";
|
|
357
|
+
temperatureUnits: "rotate" | "metric" | "imperial";
|
|
295
358
|
}, {
|
|
296
359
|
scale: number;
|
|
297
360
|
coord: "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
@@ -301,6 +364,8 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
301
364
|
weatherLocationName?: string | undefined;
|
|
302
365
|
showWeather?: boolean | undefined;
|
|
303
366
|
weatherLocationKey?: string | undefined;
|
|
367
|
+
windSpeedUnits?: "rotate" | "metric" | "imperial" | undefined;
|
|
368
|
+
temperatureUnits?: "rotate" | "metric" | "imperial" | undefined;
|
|
304
369
|
}>>;
|
|
305
370
|
fr24FlightInfoSource: z.ZodDefault<z.ZodObject<{
|
|
306
371
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -334,7 +399,61 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
334
399
|
port?: number | undefined;
|
|
335
400
|
priority?: number | undefined;
|
|
336
401
|
}>>;
|
|
337
|
-
identificationLabel: z.ZodDefault<z.ZodObject<{
|
|
402
|
+
identificationLabel: z.ZodDefault<z.ZodUnion<[z.ZodObject<{
|
|
403
|
+
aircraft: z.ZodObject<{
|
|
404
|
+
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
405
|
+
secondRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
406
|
+
thirdRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
407
|
+
fourthRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
408
|
+
opacity: z.ZodNumber;
|
|
409
|
+
}, "strip", z.ZodTypeAny, {
|
|
410
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
411
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
412
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
413
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
414
|
+
opacity: number;
|
|
415
|
+
}, {
|
|
416
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
417
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
418
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
419
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
420
|
+
opacity: number;
|
|
421
|
+
}>;
|
|
422
|
+
drone: z.ZodDefault<z.ZodObject<{
|
|
423
|
+
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"remote_id">]>;
|
|
424
|
+
opacity: z.ZodNumber;
|
|
425
|
+
}, "strip", z.ZodTypeAny, {
|
|
426
|
+
firstRow: "blank" | "remote_id";
|
|
427
|
+
opacity: number;
|
|
428
|
+
}, {
|
|
429
|
+
firstRow: "blank" | "remote_id";
|
|
430
|
+
opacity: number;
|
|
431
|
+
}>>;
|
|
432
|
+
}, "strip", z.ZodTypeAny, {
|
|
433
|
+
aircraft: {
|
|
434
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
435
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
436
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
437
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
438
|
+
opacity: number;
|
|
439
|
+
};
|
|
440
|
+
drone: {
|
|
441
|
+
firstRow: "blank" | "remote_id";
|
|
442
|
+
opacity: number;
|
|
443
|
+
};
|
|
444
|
+
}, {
|
|
445
|
+
aircraft: {
|
|
446
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
447
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
448
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
449
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
450
|
+
opacity: number;
|
|
451
|
+
};
|
|
452
|
+
drone?: {
|
|
453
|
+
firstRow: "blank" | "remote_id";
|
|
454
|
+
opacity: number;
|
|
455
|
+
} | undefined;
|
|
456
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
338
457
|
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
339
458
|
secondRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
340
459
|
thirdRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
@@ -352,7 +471,25 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
352
471
|
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
353
472
|
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
354
473
|
opacity: number;
|
|
355
|
-
}
|
|
474
|
+
}>, {
|
|
475
|
+
aircraft: {
|
|
476
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
477
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
478
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
479
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
480
|
+
opacity: number;
|
|
481
|
+
};
|
|
482
|
+
drone: {
|
|
483
|
+
firstRow: "blank" | "remote_id";
|
|
484
|
+
opacity: number;
|
|
485
|
+
};
|
|
486
|
+
}, {
|
|
487
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
488
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
489
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
490
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
491
|
+
opacity: number;
|
|
492
|
+
}>]>>;
|
|
356
493
|
acs: z.ZodDefault<z.ZodObject<{
|
|
357
494
|
protocol: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"https">, z.ZodLiteral<"https_insecure">]>;
|
|
358
495
|
ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
|
|
@@ -447,8 +584,23 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
447
584
|
focusCalibrationPoints: string;
|
|
448
585
|
};
|
|
449
586
|
cameraConfig: {
|
|
450
|
-
|
|
451
|
-
|
|
587
|
+
aircraft: {
|
|
588
|
+
defaultCaptureSizeMeters: number;
|
|
589
|
+
captureSizeExtensionMeters: number;
|
|
590
|
+
};
|
|
591
|
+
drone: {
|
|
592
|
+
defaultCaptureSizeMeters: number;
|
|
593
|
+
captureSizeExtensionMeters: number;
|
|
594
|
+
};
|
|
595
|
+
} | {
|
|
596
|
+
aircraft: {
|
|
597
|
+
defaultCaptureSizeMeters: number;
|
|
598
|
+
captureSizeExtensionMeters: number;
|
|
599
|
+
};
|
|
600
|
+
drone: {
|
|
601
|
+
defaultCaptureSizeMeters: number;
|
|
602
|
+
captureSizeExtensionMeters: number;
|
|
603
|
+
};
|
|
452
604
|
};
|
|
453
605
|
stream: {
|
|
454
606
|
width: number;
|
|
@@ -474,6 +626,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
474
626
|
widget: {
|
|
475
627
|
enabled: boolean;
|
|
476
628
|
scale: number;
|
|
629
|
+
units: "rotate" | "metric" | "imperial";
|
|
477
630
|
coord: "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
478
631
|
posX: number;
|
|
479
632
|
posY: number;
|
|
@@ -487,6 +640,8 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
487
640
|
posY: number;
|
|
488
641
|
showWeather: boolean;
|
|
489
642
|
weatherLocationKey: string;
|
|
643
|
+
windSpeedUnits: "rotate" | "metric" | "imperial";
|
|
644
|
+
temperatureUnits: "rotate" | "metric" | "imperial";
|
|
490
645
|
};
|
|
491
646
|
fr24FlightInfoSource: {
|
|
492
647
|
enabled: boolean;
|
|
@@ -501,11 +656,29 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
501
656
|
priority: number;
|
|
502
657
|
};
|
|
503
658
|
identificationLabel: {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
659
|
+
aircraft: {
|
|
660
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
661
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
662
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
663
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
664
|
+
opacity: number;
|
|
665
|
+
};
|
|
666
|
+
drone: {
|
|
667
|
+
firstRow: "blank" | "remote_id";
|
|
668
|
+
opacity: number;
|
|
669
|
+
};
|
|
670
|
+
} | {
|
|
671
|
+
aircraft: {
|
|
672
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
673
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
674
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
675
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
676
|
+
opacity: number;
|
|
677
|
+
};
|
|
678
|
+
drone: {
|
|
679
|
+
firstRow: "blank" | "remote_id";
|
|
680
|
+
opacity: number;
|
|
681
|
+
};
|
|
509
682
|
};
|
|
510
683
|
acs: {
|
|
511
684
|
ip: string;
|
|
@@ -581,6 +754,15 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
581
754
|
focusCalibrationPoints?: string | undefined;
|
|
582
755
|
} | undefined;
|
|
583
756
|
cameraConfig?: {
|
|
757
|
+
aircraft: {
|
|
758
|
+
defaultCaptureSizeMeters: number;
|
|
759
|
+
captureSizeExtensionMeters: number;
|
|
760
|
+
};
|
|
761
|
+
drone?: {
|
|
762
|
+
defaultCaptureSizeMeters: number;
|
|
763
|
+
captureSizeExtensionMeters: number;
|
|
764
|
+
} | undefined;
|
|
765
|
+
} | {
|
|
584
766
|
defaultCaptureSizeMeters?: number | undefined;
|
|
585
767
|
captureSizeExtensionMeters?: number | undefined;
|
|
586
768
|
} | undefined;
|
|
@@ -635,6 +817,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
635
817
|
posX: number;
|
|
636
818
|
posY: number;
|
|
637
819
|
enabled?: boolean | undefined;
|
|
820
|
+
units?: "rotate" | "metric" | "imperial" | undefined;
|
|
638
821
|
} | undefined;
|
|
639
822
|
airportWidget?: {
|
|
640
823
|
scale: number;
|
|
@@ -645,6 +828,8 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
645
828
|
weatherLocationName?: string | undefined;
|
|
646
829
|
showWeather?: boolean | undefined;
|
|
647
830
|
weatherLocationKey?: string | undefined;
|
|
831
|
+
windSpeedUnits?: "rotate" | "metric" | "imperial" | undefined;
|
|
832
|
+
temperatureUnits?: "rotate" | "metric" | "imperial" | undefined;
|
|
648
833
|
} | undefined;
|
|
649
834
|
fr24FlightInfoSource?: {
|
|
650
835
|
enabled?: boolean | undefined;
|
|
@@ -664,6 +849,18 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
664
849
|
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
665
850
|
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
666
851
|
opacity: number;
|
|
852
|
+
} | {
|
|
853
|
+
aircraft: {
|
|
854
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
855
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
856
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
857
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
858
|
+
opacity: number;
|
|
859
|
+
};
|
|
860
|
+
drone?: {
|
|
861
|
+
firstRow: "blank" | "remote_id";
|
|
862
|
+
opacity: number;
|
|
863
|
+
} | undefined;
|
|
667
864
|
} | undefined;
|
|
668
865
|
acs?: {
|
|
669
866
|
ip: string;
|
|
@@ -1196,11 +1393,11 @@ declare const categoryDescriptorSchema: z.ZodObject<{
|
|
|
1196
1393
|
}, "strip", z.ZodTypeAny, {
|
|
1197
1394
|
categoryId: string;
|
|
1198
1395
|
uiName: string;
|
|
1199
|
-
icon: "unknown" | "small" | "
|
|
1396
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1200
1397
|
}, {
|
|
1201
1398
|
categoryId: string;
|
|
1202
1399
|
uiName: string;
|
|
1203
|
-
icon: "unknown" | "small" | "
|
|
1400
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1204
1401
|
}>;
|
|
1205
1402
|
export type TCategoryDescriptor = z.infer<typeof categoryDescriptorSchema>;
|
|
1206
1403
|
declare const domainDescriptorSchema: z.ZodObject<{
|
|
@@ -1213,27 +1410,27 @@ declare const domainDescriptorSchema: z.ZodObject<{
|
|
|
1213
1410
|
}, "strip", z.ZodTypeAny, {
|
|
1214
1411
|
categoryId: string;
|
|
1215
1412
|
uiName: string;
|
|
1216
|
-
icon: "unknown" | "small" | "
|
|
1413
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1217
1414
|
}, {
|
|
1218
1415
|
categoryId: string;
|
|
1219
1416
|
uiName: string;
|
|
1220
|
-
icon: "unknown" | "small" | "
|
|
1417
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1221
1418
|
}>, "many">;
|
|
1222
1419
|
}, "strip", z.ZodTypeAny, {
|
|
1223
1420
|
uiName: string;
|
|
1224
|
-
icon: "unknown" | "small" | "
|
|
1421
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1225
1422
|
categoryList: {
|
|
1226
1423
|
categoryId: string;
|
|
1227
1424
|
uiName: string;
|
|
1228
|
-
icon: "unknown" | "small" | "
|
|
1425
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1229
1426
|
}[];
|
|
1230
1427
|
}, {
|
|
1231
1428
|
uiName: string;
|
|
1232
|
-
icon: "unknown" | "small" | "
|
|
1429
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1233
1430
|
categoryList: {
|
|
1234
1431
|
categoryId: string;
|
|
1235
1432
|
uiName: string;
|
|
1236
|
-
icon: "unknown" | "small" | "
|
|
1433
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1237
1434
|
}[];
|
|
1238
1435
|
}>;
|
|
1239
1436
|
export type TDomainDescriptor = z.infer<typeof domainDescriptorSchema>;
|
|
@@ -1247,27 +1444,27 @@ export declare const domainListSchema: z.ZodRecord<z.ZodEnum<["adsb", "remoteId"
|
|
|
1247
1444
|
}, "strip", z.ZodTypeAny, {
|
|
1248
1445
|
categoryId: string;
|
|
1249
1446
|
uiName: string;
|
|
1250
|
-
icon: "unknown" | "small" | "
|
|
1447
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1251
1448
|
}, {
|
|
1252
1449
|
categoryId: string;
|
|
1253
1450
|
uiName: string;
|
|
1254
|
-
icon: "unknown" | "small" | "
|
|
1451
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1255
1452
|
}>, "many">;
|
|
1256
1453
|
}, "strip", z.ZodTypeAny, {
|
|
1257
1454
|
uiName: string;
|
|
1258
|
-
icon: "unknown" | "small" | "
|
|
1455
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1259
1456
|
categoryList: {
|
|
1260
1457
|
categoryId: string;
|
|
1261
1458
|
uiName: string;
|
|
1262
|
-
icon: "unknown" | "small" | "
|
|
1459
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1263
1460
|
}[];
|
|
1264
1461
|
}, {
|
|
1265
1462
|
uiName: string;
|
|
1266
|
-
icon: "unknown" | "small" | "
|
|
1463
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1267
1464
|
categoryList: {
|
|
1268
1465
|
categoryId: string;
|
|
1269
1466
|
uiName: string;
|
|
1270
|
-
icon: "unknown" | "small" | "
|
|
1467
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1271
1468
|
}[];
|
|
1272
1469
|
}>>;
|
|
1273
1470
|
export type TDomainList = z.infer<typeof domainListSchema>;
|
|
@@ -28,6 +28,7 @@ exports.widgetSchema = zod_1.z.object({
|
|
|
28
28
|
posY: zod_1.z.number().nonnegative(),
|
|
29
29
|
scale: zod_1.z.number().positive(),
|
|
30
30
|
});
|
|
31
|
+
const widgetUnitsSchema = zod_1.z.union([zod_1.z.literal('metric'), zod_1.z.literal('imperial'), zod_1.z.literal('rotate')]);
|
|
31
32
|
const labelOptionsSchema = zod_1.z.union([
|
|
32
33
|
zod_1.z.literal('blank'),
|
|
33
34
|
zod_1.z.literal('registration'),
|
|
@@ -35,13 +36,59 @@ const labelOptionsSchema = zod_1.z.union([
|
|
|
35
36
|
zod_1.z.literal('flight_number'),
|
|
36
37
|
zod_1.z.literal('icao'),
|
|
37
38
|
]);
|
|
38
|
-
const
|
|
39
|
+
const aircraftIdentificationLabelSchema = zod_1.z.object({
|
|
39
40
|
firstRow: labelOptionsSchema,
|
|
40
41
|
secondRow: labelOptionsSchema,
|
|
41
42
|
thirdRow: labelOptionsSchema,
|
|
42
43
|
fourthRow: labelOptionsSchema,
|
|
43
|
-
opacity: zod_1.z.number().
|
|
44
|
+
opacity: zod_1.z.number().nonnegative(),
|
|
44
45
|
});
|
|
46
|
+
const droneLabelOptionsSchema = zod_1.z.union([zod_1.z.literal('blank'), zod_1.z.literal('remote_id')]);
|
|
47
|
+
const droneIdentificationLabelSchema = zod_1.z.object({
|
|
48
|
+
firstRow: droneLabelOptionsSchema,
|
|
49
|
+
opacity: zod_1.z.number().nonnegative(),
|
|
50
|
+
});
|
|
51
|
+
const DEFAULT_DRONE_IDENTIFICATION_LABEL = {
|
|
52
|
+
firstRow: 'remote_id',
|
|
53
|
+
opacity: 30,
|
|
54
|
+
};
|
|
55
|
+
const identificationLabelSchema = zod_1.z.union([
|
|
56
|
+
zod_1.z.object({
|
|
57
|
+
aircraft: aircraftIdentificationLabelSchema,
|
|
58
|
+
drone: droneIdentificationLabelSchema.default(DEFAULT_DRONE_IDENTIFICATION_LABEL),
|
|
59
|
+
}),
|
|
60
|
+
aircraftIdentificationLabelSchema.transform((aircraft) => ({
|
|
61
|
+
aircraft,
|
|
62
|
+
drone: { ...DEFAULT_DRONE_IDENTIFICATION_LABEL },
|
|
63
|
+
})),
|
|
64
|
+
]);
|
|
65
|
+
const captureConfigSchema = zod_1.z.object({
|
|
66
|
+
defaultCaptureSizeMeters: zod_1.z.number().positive(),
|
|
67
|
+
captureSizeExtensionMeters: zod_1.z.number().positive(),
|
|
68
|
+
});
|
|
69
|
+
const DEFAULT_CAPTURE_CONFIG = {
|
|
70
|
+
defaultCaptureSizeMeters: 120,
|
|
71
|
+
captureSizeExtensionMeters: 80,
|
|
72
|
+
};
|
|
73
|
+
const cameraConfigSchema = zod_1.z.union([
|
|
74
|
+
zod_1.z.object({
|
|
75
|
+
aircraft: captureConfigSchema,
|
|
76
|
+
drone: captureConfigSchema.default(() => ({ ...DEFAULT_CAPTURE_CONFIG })),
|
|
77
|
+
}),
|
|
78
|
+
zod_1.z
|
|
79
|
+
.object({
|
|
80
|
+
defaultCaptureSizeMeters: zod_1.z.number().positive().default(DEFAULT_CAPTURE_CONFIG.defaultCaptureSizeMeters),
|
|
81
|
+
captureSizeExtensionMeters: zod_1.z
|
|
82
|
+
.number()
|
|
83
|
+
.positive()
|
|
84
|
+
.default(DEFAULT_CAPTURE_CONFIG.captureSizeExtensionMeters),
|
|
85
|
+
})
|
|
86
|
+
.strict()
|
|
87
|
+
.transform((captureConfig) => ({
|
|
88
|
+
aircraft: captureConfig,
|
|
89
|
+
drone: { ...captureConfig },
|
|
90
|
+
})),
|
|
91
|
+
]);
|
|
45
92
|
exports.cameraSettingsSchema = zod_1.z.object({
|
|
46
93
|
units: zod_1.z.union([zod_1.z.literal('metric'), zod_1.z.literal('imperial')]).default('imperial'),
|
|
47
94
|
adsbSource: zod_1.z
|
|
@@ -79,15 +126,10 @@ exports.cameraSettingsSchema = zod_1.z.object({
|
|
|
79
126
|
nightSkyCalibrationFocusValue: 9000,
|
|
80
127
|
focusCalibrationPoints: '',
|
|
81
128
|
}),
|
|
82
|
-
cameraConfig:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
})
|
|
87
|
-
.default({
|
|
88
|
-
defaultCaptureSizeMeters: 120,
|
|
89
|
-
captureSizeExtensionMeters: 80,
|
|
90
|
-
}),
|
|
129
|
+
cameraConfig: cameraConfigSchema.default(() => ({
|
|
130
|
+
aircraft: { ...DEFAULT_CAPTURE_CONFIG },
|
|
131
|
+
drone: { ...DEFAULT_CAPTURE_CONFIG },
|
|
132
|
+
})),
|
|
91
133
|
stream: zod_1.z
|
|
92
134
|
.object({
|
|
93
135
|
width: zod_1.z.number().positive(),
|
|
@@ -148,18 +190,25 @@ exports.cameraSettingsSchema = zod_1.z.object({
|
|
|
148
190
|
displaySystemInfo: zod_1.z.boolean().optional(),
|
|
149
191
|
})
|
|
150
192
|
.optional(),
|
|
151
|
-
widget: exports.widgetSchema
|
|
193
|
+
widget: exports.widgetSchema
|
|
194
|
+
.extend({
|
|
195
|
+
units: widgetUnitsSchema.default('rotate'),
|
|
196
|
+
})
|
|
197
|
+
.default({
|
|
152
198
|
enabled: true,
|
|
153
199
|
coord: 'top_right',
|
|
154
200
|
posX: 10,
|
|
155
201
|
posY: 10,
|
|
156
202
|
scale: 100,
|
|
203
|
+
units: 'rotate',
|
|
157
204
|
}),
|
|
158
205
|
airportWidget: exports.widgetSchema
|
|
159
206
|
.extend({
|
|
160
207
|
showWeather: zod_1.z.boolean().default(false),
|
|
161
208
|
weatherLocationKey: zod_1.z.string().default(''),
|
|
162
209
|
weatherLocationName: zod_1.z.string().default(''),
|
|
210
|
+
windSpeedUnits: widgetUnitsSchema.default('rotate'),
|
|
211
|
+
temperatureUnits: widgetUnitsSchema.default('rotate'),
|
|
163
212
|
})
|
|
164
213
|
.default({
|
|
165
214
|
enabled: true,
|
|
@@ -170,6 +219,8 @@ exports.cameraSettingsSchema = zod_1.z.object({
|
|
|
170
219
|
showWeather: false,
|
|
171
220
|
weatherLocationKey: '',
|
|
172
221
|
weatherLocationName: '',
|
|
222
|
+
windSpeedUnits: 'rotate',
|
|
223
|
+
temperatureUnits: 'rotate',
|
|
173
224
|
}),
|
|
174
225
|
fr24FlightInfoSource: zod_1.z
|
|
175
226
|
.object({
|
|
@@ -198,11 +249,14 @@ exports.cameraSettingsSchema = zod_1.z.object({
|
|
|
198
249
|
port: 80,
|
|
199
250
|
}),
|
|
200
251
|
identificationLabel: identificationLabelSchema.default({
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
252
|
+
aircraft: {
|
|
253
|
+
firstRow: 'icao',
|
|
254
|
+
secondRow: 'call_sign',
|
|
255
|
+
thirdRow: 'blank',
|
|
256
|
+
fourthRow: 'blank',
|
|
257
|
+
opacity: 30,
|
|
258
|
+
},
|
|
259
|
+
drone: DEFAULT_DRONE_IDENTIFICATION_LABEL,
|
|
206
260
|
}),
|
|
207
261
|
acs: exports.connectionSchema
|
|
208
262
|
.extend({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|