camstreamerlib 4.0.35-2475d16 → 4.0.35-64a81fd
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 +42 -9
- package/cjs/types/PlaneTrackerAPI.d.ts +205 -26
- package/cjs/types/PlaneTrackerAPI.js +60 -16
- package/cjs/types/PlaneTrackerAPI.test.d.ts +1 -0
- package/cjs/types/PlaneTrackerAPI.test.js +90 -0
- package/esm/types/PlaneTrackerAPI.js +60 -16
- package/esm/types/PlaneTrackerAPI.test.js +88 -0
- package/package.json +1 -1
- package/types/PlaneTrackerAPI.d.ts +42 -9
- package/types/types/PlaneTrackerAPI.d.ts +205 -26
- package/types/types/PlaneTrackerAPI.test.d.ts +1 -0
package/cjs/PlaneTrackerAPI.d.ts
CHANGED
|
@@ -45,8 +45,23 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
45
45
|
focusCalibrationPoints: string;
|
|
46
46
|
};
|
|
47
47
|
cameraConfig: {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
aircraft: {
|
|
49
|
+
defaultCaptureSizeMeters: number;
|
|
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
|
+
};
|
|
50
65
|
};
|
|
51
66
|
stream: {
|
|
52
67
|
width: number;
|
|
@@ -99,11 +114,29 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
99
114
|
priority: number;
|
|
100
115
|
};
|
|
101
116
|
identificationLabel: {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
117
|
+
aircraft: {
|
|
118
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
119
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
120
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
121
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
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
|
+
};
|
|
107
140
|
};
|
|
108
141
|
acs: {
|
|
109
142
|
ip: string;
|
|
@@ -181,11 +214,11 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
181
214
|
importAppSettings(dataType: TImportDataType, formData: Parameters<Client['post']>[0]['data'], options?: THttpRequestOptions): Promise<void>;
|
|
182
215
|
getDomainList(options?: THttpRequestOptions): Promise<Partial<Record<"adsb" | "remoteId", {
|
|
183
216
|
uiName: string;
|
|
184
|
-
icon: "unknown" | "small" | "
|
|
217
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
185
218
|
categoryList: {
|
|
186
219
|
categoryId: string;
|
|
187
220
|
uiName: string;
|
|
188
|
-
icon: "unknown" | "small" | "
|
|
221
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
189
222
|
}[];
|
|
190
223
|
}>>>;
|
|
191
224
|
fetchFlightInfo(targetId: string, options?: THttpRequestOptions): Promise<{
|
|
@@ -56,6 +56,8 @@ export declare const widgetSchema: z.ZodObject<{
|
|
|
56
56
|
}>;
|
|
57
57
|
declare const labelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
58
58
|
export type TLabelOption = z.infer<typeof labelOptionsSchema>;
|
|
59
|
+
declare const droneLabelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"remote_id">]>;
|
|
60
|
+
export type TDroneLabelOption = z.infer<typeof droneLabelOptionsSchema>;
|
|
59
61
|
export declare const cameraSettingsSchema: z.ZodObject<{
|
|
60
62
|
units: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">]>>;
|
|
61
63
|
adsbSource: z.ZodDefault<z.ZodObject<{
|
|
@@ -119,16 +121,67 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
119
121
|
nightSkyCalibrationFocusValue?: number | undefined;
|
|
120
122
|
focusCalibrationPoints?: string | undefined;
|
|
121
123
|
}>>;
|
|
122
|
-
cameraConfig: z.ZodDefault<z.ZodObject<{
|
|
124
|
+
cameraConfig: z.ZodDefault<z.ZodUnion<[z.ZodObject<{
|
|
125
|
+
aircraft: z.ZodObject<{
|
|
126
|
+
defaultCaptureSizeMeters: z.ZodNumber;
|
|
127
|
+
captureSizeExtensionMeters: z.ZodNumber;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
defaultCaptureSizeMeters: number;
|
|
130
|
+
captureSizeExtensionMeters: number;
|
|
131
|
+
}, {
|
|
132
|
+
defaultCaptureSizeMeters: number;
|
|
133
|
+
captureSizeExtensionMeters: number;
|
|
134
|
+
}>;
|
|
135
|
+
drone: z.ZodDefault<z.ZodObject<{
|
|
136
|
+
defaultCaptureSizeMeters: z.ZodNumber;
|
|
137
|
+
captureSizeExtensionMeters: z.ZodNumber;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
defaultCaptureSizeMeters: number;
|
|
140
|
+
captureSizeExtensionMeters: number;
|
|
141
|
+
}, {
|
|
142
|
+
defaultCaptureSizeMeters: number;
|
|
143
|
+
captureSizeExtensionMeters: number;
|
|
144
|
+
}>>;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
aircraft: {
|
|
147
|
+
defaultCaptureSizeMeters: number;
|
|
148
|
+
captureSizeExtensionMeters: number;
|
|
149
|
+
};
|
|
150
|
+
drone: {
|
|
151
|
+
defaultCaptureSizeMeters: number;
|
|
152
|
+
captureSizeExtensionMeters: number;
|
|
153
|
+
};
|
|
154
|
+
}, {
|
|
155
|
+
aircraft: {
|
|
156
|
+
defaultCaptureSizeMeters: number;
|
|
157
|
+
captureSizeExtensionMeters: number;
|
|
158
|
+
};
|
|
159
|
+
drone?: {
|
|
160
|
+
defaultCaptureSizeMeters: number;
|
|
161
|
+
captureSizeExtensionMeters: number;
|
|
162
|
+
} | undefined;
|
|
163
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
123
164
|
defaultCaptureSizeMeters: z.ZodDefault<z.ZodNumber>;
|
|
124
165
|
captureSizeExtensionMeters: z.ZodDefault<z.ZodNumber>;
|
|
125
|
-
}, "
|
|
166
|
+
}, "strict", z.ZodTypeAny, {
|
|
126
167
|
defaultCaptureSizeMeters: number;
|
|
127
168
|
captureSizeExtensionMeters: number;
|
|
128
169
|
}, {
|
|
129
170
|
defaultCaptureSizeMeters?: number | undefined;
|
|
130
171
|
captureSizeExtensionMeters?: number | undefined;
|
|
131
|
-
}
|
|
172
|
+
}>, {
|
|
173
|
+
aircraft: {
|
|
174
|
+
defaultCaptureSizeMeters: number;
|
|
175
|
+
captureSizeExtensionMeters: number;
|
|
176
|
+
};
|
|
177
|
+
drone: {
|
|
178
|
+
defaultCaptureSizeMeters: number;
|
|
179
|
+
captureSizeExtensionMeters: number;
|
|
180
|
+
};
|
|
181
|
+
}, {
|
|
182
|
+
defaultCaptureSizeMeters?: number | undefined;
|
|
183
|
+
captureSizeExtensionMeters?: number | undefined;
|
|
184
|
+
}>]>>;
|
|
132
185
|
stream: z.ZodDefault<z.ZodObject<{
|
|
133
186
|
width: z.ZodNumber;
|
|
134
187
|
height: z.ZodNumber;
|
|
@@ -334,7 +387,61 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
334
387
|
port?: number | undefined;
|
|
335
388
|
priority?: number | undefined;
|
|
336
389
|
}>>;
|
|
337
|
-
identificationLabel: z.ZodDefault<z.ZodObject<{
|
|
390
|
+
identificationLabel: z.ZodDefault<z.ZodUnion<[z.ZodObject<{
|
|
391
|
+
aircraft: z.ZodObject<{
|
|
392
|
+
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
393
|
+
secondRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
394
|
+
thirdRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
395
|
+
fourthRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
396
|
+
opacity: z.ZodNumber;
|
|
397
|
+
}, "strip", z.ZodTypeAny, {
|
|
398
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
399
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
400
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
401
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
402
|
+
opacity: number;
|
|
403
|
+
}, {
|
|
404
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
405
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
406
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
407
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
408
|
+
opacity: number;
|
|
409
|
+
}>;
|
|
410
|
+
drone: z.ZodDefault<z.ZodObject<{
|
|
411
|
+
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"remote_id">]>;
|
|
412
|
+
opacity: z.ZodNumber;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
|
+
firstRow: "blank" | "remote_id";
|
|
415
|
+
opacity: number;
|
|
416
|
+
}, {
|
|
417
|
+
firstRow: "blank" | "remote_id";
|
|
418
|
+
opacity: number;
|
|
419
|
+
}>>;
|
|
420
|
+
}, "strip", z.ZodTypeAny, {
|
|
421
|
+
aircraft: {
|
|
422
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
423
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
424
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
425
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
426
|
+
opacity: number;
|
|
427
|
+
};
|
|
428
|
+
drone: {
|
|
429
|
+
firstRow: "blank" | "remote_id";
|
|
430
|
+
opacity: number;
|
|
431
|
+
};
|
|
432
|
+
}, {
|
|
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
|
+
} | undefined;
|
|
444
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
338
445
|
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
339
446
|
secondRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
340
447
|
thirdRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
@@ -352,7 +459,25 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
352
459
|
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
353
460
|
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
354
461
|
opacity: number;
|
|
355
|
-
}
|
|
462
|
+
}>, {
|
|
463
|
+
aircraft: {
|
|
464
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
465
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
466
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
467
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
468
|
+
opacity: number;
|
|
469
|
+
};
|
|
470
|
+
drone: {
|
|
471
|
+
firstRow: "blank" | "remote_id";
|
|
472
|
+
opacity: number;
|
|
473
|
+
};
|
|
474
|
+
}, {
|
|
475
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
476
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
477
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
478
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
479
|
+
opacity: number;
|
|
480
|
+
}>]>>;
|
|
356
481
|
acs: z.ZodDefault<z.ZodObject<{
|
|
357
482
|
protocol: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"https">, z.ZodLiteral<"https_insecure">]>;
|
|
358
483
|
ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
|
|
@@ -447,8 +572,23 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
447
572
|
focusCalibrationPoints: string;
|
|
448
573
|
};
|
|
449
574
|
cameraConfig: {
|
|
450
|
-
|
|
451
|
-
|
|
575
|
+
aircraft: {
|
|
576
|
+
defaultCaptureSizeMeters: number;
|
|
577
|
+
captureSizeExtensionMeters: number;
|
|
578
|
+
};
|
|
579
|
+
drone: {
|
|
580
|
+
defaultCaptureSizeMeters: number;
|
|
581
|
+
captureSizeExtensionMeters: number;
|
|
582
|
+
};
|
|
583
|
+
} | {
|
|
584
|
+
aircraft: {
|
|
585
|
+
defaultCaptureSizeMeters: number;
|
|
586
|
+
captureSizeExtensionMeters: number;
|
|
587
|
+
};
|
|
588
|
+
drone: {
|
|
589
|
+
defaultCaptureSizeMeters: number;
|
|
590
|
+
captureSizeExtensionMeters: number;
|
|
591
|
+
};
|
|
452
592
|
};
|
|
453
593
|
stream: {
|
|
454
594
|
width: number;
|
|
@@ -501,11 +641,29 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
501
641
|
priority: number;
|
|
502
642
|
};
|
|
503
643
|
identificationLabel: {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
644
|
+
aircraft: {
|
|
645
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
646
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
647
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
648
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
649
|
+
opacity: number;
|
|
650
|
+
};
|
|
651
|
+
drone: {
|
|
652
|
+
firstRow: "blank" | "remote_id";
|
|
653
|
+
opacity: number;
|
|
654
|
+
};
|
|
655
|
+
} | {
|
|
656
|
+
aircraft: {
|
|
657
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
658
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
659
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
660
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
661
|
+
opacity: number;
|
|
662
|
+
};
|
|
663
|
+
drone: {
|
|
664
|
+
firstRow: "blank" | "remote_id";
|
|
665
|
+
opacity: number;
|
|
666
|
+
};
|
|
509
667
|
};
|
|
510
668
|
acs: {
|
|
511
669
|
ip: string;
|
|
@@ -581,6 +739,15 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
581
739
|
focusCalibrationPoints?: string | undefined;
|
|
582
740
|
} | undefined;
|
|
583
741
|
cameraConfig?: {
|
|
742
|
+
aircraft: {
|
|
743
|
+
defaultCaptureSizeMeters: number;
|
|
744
|
+
captureSizeExtensionMeters: number;
|
|
745
|
+
};
|
|
746
|
+
drone?: {
|
|
747
|
+
defaultCaptureSizeMeters: number;
|
|
748
|
+
captureSizeExtensionMeters: number;
|
|
749
|
+
} | undefined;
|
|
750
|
+
} | {
|
|
584
751
|
defaultCaptureSizeMeters?: number | undefined;
|
|
585
752
|
captureSizeExtensionMeters?: number | undefined;
|
|
586
753
|
} | undefined;
|
|
@@ -664,6 +831,18 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
664
831
|
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
665
832
|
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
666
833
|
opacity: number;
|
|
834
|
+
} | {
|
|
835
|
+
aircraft: {
|
|
836
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
837
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
838
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
839
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
840
|
+
opacity: number;
|
|
841
|
+
};
|
|
842
|
+
drone?: {
|
|
843
|
+
firstRow: "blank" | "remote_id";
|
|
844
|
+
opacity: number;
|
|
845
|
+
} | undefined;
|
|
667
846
|
} | undefined;
|
|
668
847
|
acs?: {
|
|
669
848
|
ip: string;
|
|
@@ -1196,11 +1375,11 @@ declare const categoryDescriptorSchema: z.ZodObject<{
|
|
|
1196
1375
|
}, "strip", z.ZodTypeAny, {
|
|
1197
1376
|
categoryId: string;
|
|
1198
1377
|
uiName: string;
|
|
1199
|
-
icon: "unknown" | "small" | "
|
|
1378
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1200
1379
|
}, {
|
|
1201
1380
|
categoryId: string;
|
|
1202
1381
|
uiName: string;
|
|
1203
|
-
icon: "unknown" | "small" | "
|
|
1382
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1204
1383
|
}>;
|
|
1205
1384
|
export type TCategoryDescriptor = z.infer<typeof categoryDescriptorSchema>;
|
|
1206
1385
|
declare const domainDescriptorSchema: z.ZodObject<{
|
|
@@ -1213,27 +1392,27 @@ declare const domainDescriptorSchema: z.ZodObject<{
|
|
|
1213
1392
|
}, "strip", z.ZodTypeAny, {
|
|
1214
1393
|
categoryId: string;
|
|
1215
1394
|
uiName: string;
|
|
1216
|
-
icon: "unknown" | "small" | "
|
|
1395
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1217
1396
|
}, {
|
|
1218
1397
|
categoryId: string;
|
|
1219
1398
|
uiName: string;
|
|
1220
|
-
icon: "unknown" | "small" | "
|
|
1399
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1221
1400
|
}>, "many">;
|
|
1222
1401
|
}, "strip", z.ZodTypeAny, {
|
|
1223
1402
|
uiName: string;
|
|
1224
|
-
icon: "unknown" | "small" | "
|
|
1403
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1225
1404
|
categoryList: {
|
|
1226
1405
|
categoryId: string;
|
|
1227
1406
|
uiName: string;
|
|
1228
|
-
icon: "unknown" | "small" | "
|
|
1407
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1229
1408
|
}[];
|
|
1230
1409
|
}, {
|
|
1231
1410
|
uiName: string;
|
|
1232
|
-
icon: "unknown" | "small" | "
|
|
1411
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1233
1412
|
categoryList: {
|
|
1234
1413
|
categoryId: string;
|
|
1235
1414
|
uiName: string;
|
|
1236
|
-
icon: "unknown" | "small" | "
|
|
1415
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1237
1416
|
}[];
|
|
1238
1417
|
}>;
|
|
1239
1418
|
export type TDomainDescriptor = z.infer<typeof domainDescriptorSchema>;
|
|
@@ -1247,27 +1426,27 @@ export declare const domainListSchema: z.ZodRecord<z.ZodEnum<["adsb", "remoteId"
|
|
|
1247
1426
|
}, "strip", z.ZodTypeAny, {
|
|
1248
1427
|
categoryId: string;
|
|
1249
1428
|
uiName: string;
|
|
1250
|
-
icon: "unknown" | "small" | "
|
|
1429
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1251
1430
|
}, {
|
|
1252
1431
|
categoryId: string;
|
|
1253
1432
|
uiName: string;
|
|
1254
|
-
icon: "unknown" | "small" | "
|
|
1433
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1255
1434
|
}>, "many">;
|
|
1256
1435
|
}, "strip", z.ZodTypeAny, {
|
|
1257
1436
|
uiName: string;
|
|
1258
|
-
icon: "unknown" | "small" | "
|
|
1437
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1259
1438
|
categoryList: {
|
|
1260
1439
|
categoryId: string;
|
|
1261
1440
|
uiName: string;
|
|
1262
|
-
icon: "unknown" | "small" | "
|
|
1441
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1263
1442
|
}[];
|
|
1264
1443
|
}, {
|
|
1265
1444
|
uiName: string;
|
|
1266
|
-
icon: "unknown" | "small" | "
|
|
1445
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1267
1446
|
categoryList: {
|
|
1268
1447
|
categoryId: string;
|
|
1269
1448
|
uiName: string;
|
|
1270
|
-
icon: "unknown" | "small" | "
|
|
1449
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1271
1450
|
}[];
|
|
1272
1451
|
}>>;
|
|
1273
1452
|
export type TDomainList = z.infer<typeof domainListSchema>;
|
|
@@ -35,13 +35,59 @@ const labelOptionsSchema = zod_1.z.union([
|
|
|
35
35
|
zod_1.z.literal('flight_number'),
|
|
36
36
|
zod_1.z.literal('icao'),
|
|
37
37
|
]);
|
|
38
|
-
const
|
|
38
|
+
const aircraftIdentificationLabelSchema = zod_1.z.object({
|
|
39
39
|
firstRow: labelOptionsSchema,
|
|
40
40
|
secondRow: labelOptionsSchema,
|
|
41
41
|
thirdRow: labelOptionsSchema,
|
|
42
42
|
fourthRow: labelOptionsSchema,
|
|
43
|
-
opacity: zod_1.z.number().
|
|
43
|
+
opacity: zod_1.z.number().nonnegative(),
|
|
44
44
|
});
|
|
45
|
+
const droneLabelOptionsSchema = zod_1.z.union([zod_1.z.literal('blank'), zod_1.z.literal('remote_id')]);
|
|
46
|
+
const droneIdentificationLabelSchema = zod_1.z.object({
|
|
47
|
+
firstRow: droneLabelOptionsSchema,
|
|
48
|
+
opacity: zod_1.z.number().nonnegative(),
|
|
49
|
+
});
|
|
50
|
+
const DEFAULT_DRONE_IDENTIFICATION_LABEL = {
|
|
51
|
+
firstRow: 'remote_id',
|
|
52
|
+
opacity: 30,
|
|
53
|
+
};
|
|
54
|
+
const identificationLabelSchema = zod_1.z.union([
|
|
55
|
+
zod_1.z.object({
|
|
56
|
+
aircraft: aircraftIdentificationLabelSchema,
|
|
57
|
+
drone: droneIdentificationLabelSchema.default(DEFAULT_DRONE_IDENTIFICATION_LABEL),
|
|
58
|
+
}),
|
|
59
|
+
aircraftIdentificationLabelSchema.transform((aircraft) => ({
|
|
60
|
+
aircraft,
|
|
61
|
+
drone: { ...DEFAULT_DRONE_IDENTIFICATION_LABEL },
|
|
62
|
+
})),
|
|
63
|
+
]);
|
|
64
|
+
const captureConfigSchema = zod_1.z.object({
|
|
65
|
+
defaultCaptureSizeMeters: zod_1.z.number().positive(),
|
|
66
|
+
captureSizeExtensionMeters: zod_1.z.number().positive(),
|
|
67
|
+
});
|
|
68
|
+
const DEFAULT_CAPTURE_CONFIG = {
|
|
69
|
+
defaultCaptureSizeMeters: 120,
|
|
70
|
+
captureSizeExtensionMeters: 80,
|
|
71
|
+
};
|
|
72
|
+
const cameraConfigSchema = zod_1.z.union([
|
|
73
|
+
zod_1.z.object({
|
|
74
|
+
aircraft: captureConfigSchema,
|
|
75
|
+
drone: captureConfigSchema.default(() => ({ ...DEFAULT_CAPTURE_CONFIG })),
|
|
76
|
+
}),
|
|
77
|
+
zod_1.z
|
|
78
|
+
.object({
|
|
79
|
+
defaultCaptureSizeMeters: zod_1.z.number().positive().default(DEFAULT_CAPTURE_CONFIG.defaultCaptureSizeMeters),
|
|
80
|
+
captureSizeExtensionMeters: zod_1.z
|
|
81
|
+
.number()
|
|
82
|
+
.positive()
|
|
83
|
+
.default(DEFAULT_CAPTURE_CONFIG.captureSizeExtensionMeters),
|
|
84
|
+
})
|
|
85
|
+
.strict()
|
|
86
|
+
.transform((captureConfig) => ({
|
|
87
|
+
aircraft: captureConfig,
|
|
88
|
+
drone: { ...captureConfig },
|
|
89
|
+
})),
|
|
90
|
+
]);
|
|
45
91
|
exports.cameraSettingsSchema = zod_1.z.object({
|
|
46
92
|
units: zod_1.z.union([zod_1.z.literal('metric'), zod_1.z.literal('imperial')]).default('imperial'),
|
|
47
93
|
adsbSource: zod_1.z
|
|
@@ -79,15 +125,10 @@ exports.cameraSettingsSchema = zod_1.z.object({
|
|
|
79
125
|
nightSkyCalibrationFocusValue: 9000,
|
|
80
126
|
focusCalibrationPoints: '',
|
|
81
127
|
}),
|
|
82
|
-
cameraConfig:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
})
|
|
87
|
-
.default({
|
|
88
|
-
defaultCaptureSizeMeters: 120,
|
|
89
|
-
captureSizeExtensionMeters: 80,
|
|
90
|
-
}),
|
|
128
|
+
cameraConfig: cameraConfigSchema.default(() => ({
|
|
129
|
+
aircraft: { ...DEFAULT_CAPTURE_CONFIG },
|
|
130
|
+
drone: { ...DEFAULT_CAPTURE_CONFIG },
|
|
131
|
+
})),
|
|
91
132
|
stream: zod_1.z
|
|
92
133
|
.object({
|
|
93
134
|
width: zod_1.z.number().positive(),
|
|
@@ -198,11 +239,14 @@ exports.cameraSettingsSchema = zod_1.z.object({
|
|
|
198
239
|
port: 80,
|
|
199
240
|
}),
|
|
200
241
|
identificationLabel: identificationLabelSchema.default({
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
242
|
+
aircraft: {
|
|
243
|
+
firstRow: 'icao',
|
|
244
|
+
secondRow: 'call_sign',
|
|
245
|
+
thirdRow: 'blank',
|
|
246
|
+
fourthRow: 'blank',
|
|
247
|
+
opacity: 30,
|
|
248
|
+
},
|
|
249
|
+
drone: DEFAULT_DRONE_IDENTIFICATION_LABEL,
|
|
206
250
|
}),
|
|
207
251
|
acs: exports.connectionSchema
|
|
208
252
|
.extend({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
});
|
|
@@ -32,13 +32,59 @@ const labelOptionsSchema = z.union([
|
|
|
32
32
|
z.literal('flight_number'),
|
|
33
33
|
z.literal('icao'),
|
|
34
34
|
]);
|
|
35
|
-
const
|
|
35
|
+
const aircraftIdentificationLabelSchema = z.object({
|
|
36
36
|
firstRow: labelOptionsSchema,
|
|
37
37
|
secondRow: labelOptionsSchema,
|
|
38
38
|
thirdRow: labelOptionsSchema,
|
|
39
39
|
fourthRow: labelOptionsSchema,
|
|
40
|
-
opacity: z.number().
|
|
40
|
+
opacity: z.number().nonnegative(),
|
|
41
41
|
});
|
|
42
|
+
const droneLabelOptionsSchema = z.union([z.literal('blank'), z.literal('remote_id')]);
|
|
43
|
+
const droneIdentificationLabelSchema = z.object({
|
|
44
|
+
firstRow: droneLabelOptionsSchema,
|
|
45
|
+
opacity: z.number().nonnegative(),
|
|
46
|
+
});
|
|
47
|
+
const DEFAULT_DRONE_IDENTIFICATION_LABEL = {
|
|
48
|
+
firstRow: 'remote_id',
|
|
49
|
+
opacity: 30,
|
|
50
|
+
};
|
|
51
|
+
const identificationLabelSchema = z.union([
|
|
52
|
+
z.object({
|
|
53
|
+
aircraft: aircraftIdentificationLabelSchema,
|
|
54
|
+
drone: droneIdentificationLabelSchema.default(DEFAULT_DRONE_IDENTIFICATION_LABEL),
|
|
55
|
+
}),
|
|
56
|
+
aircraftIdentificationLabelSchema.transform((aircraft) => ({
|
|
57
|
+
aircraft,
|
|
58
|
+
drone: { ...DEFAULT_DRONE_IDENTIFICATION_LABEL },
|
|
59
|
+
})),
|
|
60
|
+
]);
|
|
61
|
+
const captureConfigSchema = z.object({
|
|
62
|
+
defaultCaptureSizeMeters: z.number().positive(),
|
|
63
|
+
captureSizeExtensionMeters: z.number().positive(),
|
|
64
|
+
});
|
|
65
|
+
const DEFAULT_CAPTURE_CONFIG = {
|
|
66
|
+
defaultCaptureSizeMeters: 120,
|
|
67
|
+
captureSizeExtensionMeters: 80,
|
|
68
|
+
};
|
|
69
|
+
const cameraConfigSchema = z.union([
|
|
70
|
+
z.object({
|
|
71
|
+
aircraft: captureConfigSchema,
|
|
72
|
+
drone: captureConfigSchema.default(() => ({ ...DEFAULT_CAPTURE_CONFIG })),
|
|
73
|
+
}),
|
|
74
|
+
z
|
|
75
|
+
.object({
|
|
76
|
+
defaultCaptureSizeMeters: z.number().positive().default(DEFAULT_CAPTURE_CONFIG.defaultCaptureSizeMeters),
|
|
77
|
+
captureSizeExtensionMeters: z
|
|
78
|
+
.number()
|
|
79
|
+
.positive()
|
|
80
|
+
.default(DEFAULT_CAPTURE_CONFIG.captureSizeExtensionMeters),
|
|
81
|
+
})
|
|
82
|
+
.strict()
|
|
83
|
+
.transform((captureConfig) => ({
|
|
84
|
+
aircraft: captureConfig,
|
|
85
|
+
drone: { ...captureConfig },
|
|
86
|
+
})),
|
|
87
|
+
]);
|
|
42
88
|
export const cameraSettingsSchema = z.object({
|
|
43
89
|
units: z.union([z.literal('metric'), z.literal('imperial')]).default('imperial'),
|
|
44
90
|
adsbSource: z
|
|
@@ -76,15 +122,10 @@ export const cameraSettingsSchema = z.object({
|
|
|
76
122
|
nightSkyCalibrationFocusValue: 9000,
|
|
77
123
|
focusCalibrationPoints: '',
|
|
78
124
|
}),
|
|
79
|
-
cameraConfig:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
})
|
|
84
|
-
.default({
|
|
85
|
-
defaultCaptureSizeMeters: 120,
|
|
86
|
-
captureSizeExtensionMeters: 80,
|
|
87
|
-
}),
|
|
125
|
+
cameraConfig: cameraConfigSchema.default(() => ({
|
|
126
|
+
aircraft: { ...DEFAULT_CAPTURE_CONFIG },
|
|
127
|
+
drone: { ...DEFAULT_CAPTURE_CONFIG },
|
|
128
|
+
})),
|
|
88
129
|
stream: z
|
|
89
130
|
.object({
|
|
90
131
|
width: z.number().positive(),
|
|
@@ -195,11 +236,14 @@ export const cameraSettingsSchema = z.object({
|
|
|
195
236
|
port: 80,
|
|
196
237
|
}),
|
|
197
238
|
identificationLabel: identificationLabelSchema.default({
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
239
|
+
aircraft: {
|
|
240
|
+
firstRow: 'icao',
|
|
241
|
+
secondRow: 'call_sign',
|
|
242
|
+
thirdRow: 'blank',
|
|
243
|
+
fourthRow: 'blank',
|
|
244
|
+
opacity: 30,
|
|
245
|
+
},
|
|
246
|
+
drone: DEFAULT_DRONE_IDENTIFICATION_LABEL,
|
|
203
247
|
}),
|
|
204
248
|
acs: connectionSchema
|
|
205
249
|
.extend({
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { cameraSettingsSchema } from './PlaneTrackerAPI';
|
|
2
|
+
import { describe, test, expect } from '@jest/globals';
|
|
3
|
+
const AIRCRAFT_LABEL = {
|
|
4
|
+
firstRow: 'icao',
|
|
5
|
+
secondRow: 'call_sign',
|
|
6
|
+
thirdRow: 'blank',
|
|
7
|
+
fourthRow: 'registration',
|
|
8
|
+
opacity: 50,
|
|
9
|
+
};
|
|
10
|
+
const DEFAULT_DRONE_LABEL = { firstRow: 'remote_id', opacity: 30 };
|
|
11
|
+
describe('cameraSettingsSchema identificationLabel', () => {
|
|
12
|
+
test('defaults both aircraft and drone labels', () => {
|
|
13
|
+
expect(cameraSettingsSchema.parse({}).identificationLabel).toEqual({
|
|
14
|
+
aircraft: {
|
|
15
|
+
firstRow: 'icao',
|
|
16
|
+
secondRow: 'call_sign',
|
|
17
|
+
thirdRow: 'blank',
|
|
18
|
+
fourthRow: 'blank',
|
|
19
|
+
opacity: 30,
|
|
20
|
+
},
|
|
21
|
+
drone: DEFAULT_DRONE_LABEL,
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
test('parses the aircraft and drone label', () => {
|
|
25
|
+
const identificationLabel = { aircraft: AIRCRAFT_LABEL, drone: { firstRow: 'blank', opacity: 70 } };
|
|
26
|
+
expect(cameraSettingsSchema.parse({ identificationLabel }).identificationLabel).toEqual(identificationLabel);
|
|
27
|
+
});
|
|
28
|
+
test('defaults a missing drone label', () => {
|
|
29
|
+
expect(cameraSettingsSchema.parse({ identificationLabel: { aircraft: AIRCRAFT_LABEL } }).identificationLabel).toEqual({ aircraft: AIRCRAFT_LABEL, drone: DEFAULT_DRONE_LABEL });
|
|
30
|
+
});
|
|
31
|
+
test('converts the legacy flat label to the aircraft label', () => {
|
|
32
|
+
expect(cameraSettingsSchema.parse({ identificationLabel: AIRCRAFT_LABEL }).identificationLabel).toEqual({
|
|
33
|
+
aircraft: AIRCRAFT_LABEL,
|
|
34
|
+
drone: DEFAULT_DRONE_LABEL,
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
test('returns an independent drone label for each legacy parse', () => {
|
|
38
|
+
const first = cameraSettingsSchema.parse({ identificationLabel: AIRCRAFT_LABEL });
|
|
39
|
+
first.identificationLabel.drone.opacity = 90;
|
|
40
|
+
const second = cameraSettingsSchema.parse({ identificationLabel: AIRCRAFT_LABEL });
|
|
41
|
+
expect(second.identificationLabel.drone).toEqual(DEFAULT_DRONE_LABEL);
|
|
42
|
+
});
|
|
43
|
+
test('rejects an unknown drone label row', () => {
|
|
44
|
+
const identificationLabel = { aircraft: AIRCRAFT_LABEL, drone: { firstRow: 'icao', opacity: 30 } };
|
|
45
|
+
expect(cameraSettingsSchema.safeParse({ identificationLabel }).success).toBe(false);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
const CAPTURE_CONFIG = { defaultCaptureSizeMeters: 50, captureSizeExtensionMeters: 20 };
|
|
49
|
+
const DEFAULT_CAPTURE_CONFIG = { defaultCaptureSizeMeters: 120, captureSizeExtensionMeters: 80 };
|
|
50
|
+
describe('cameraSettingsSchema cameraConfig', () => {
|
|
51
|
+
test('defaults both aircraft and drone capture config', () => {
|
|
52
|
+
expect(cameraSettingsSchema.parse({}).cameraConfig).toEqual({
|
|
53
|
+
aircraft: DEFAULT_CAPTURE_CONFIG,
|
|
54
|
+
drone: DEFAULT_CAPTURE_CONFIG,
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
test('parses independent aircraft and drone capture config', () => {
|
|
58
|
+
const cameraConfig = {
|
|
59
|
+
aircraft: CAPTURE_CONFIG,
|
|
60
|
+
drone: { defaultCaptureSizeMeters: 5, captureSizeExtensionMeters: 3 },
|
|
61
|
+
};
|
|
62
|
+
expect(cameraSettingsSchema.parse({ cameraConfig }).cameraConfig).toEqual(cameraConfig);
|
|
63
|
+
});
|
|
64
|
+
test('defaults a missing drone capture config', () => {
|
|
65
|
+
expect(cameraSettingsSchema.parse({ cameraConfig: { aircraft: CAPTURE_CONFIG } }).cameraConfig).toEqual({
|
|
66
|
+
aircraft: CAPTURE_CONFIG,
|
|
67
|
+
drone: DEFAULT_CAPTURE_CONFIG,
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
test('copies the legacy flat capture config to both aircraft and drone', () => {
|
|
71
|
+
expect(cameraSettingsSchema.parse({ cameraConfig: CAPTURE_CONFIG }).cameraConfig).toEqual({
|
|
72
|
+
aircraft: CAPTURE_CONFIG,
|
|
73
|
+
drone: CAPTURE_CONFIG,
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
test('returns independent aircraft and drone objects', () => {
|
|
77
|
+
const legacy = cameraSettingsSchema.parse({ cameraConfig: CAPTURE_CONFIG }).cameraConfig;
|
|
78
|
+
legacy.drone.defaultCaptureSizeMeters = 1;
|
|
79
|
+
expect(legacy.aircraft).toEqual(CAPTURE_CONFIG);
|
|
80
|
+
const first = cameraSettingsSchema.parse({}).cameraConfig;
|
|
81
|
+
first.drone.defaultCaptureSizeMeters = 1;
|
|
82
|
+
expect(cameraSettingsSchema.parse({}).cameraConfig.drone).toEqual(DEFAULT_CAPTURE_CONFIG);
|
|
83
|
+
});
|
|
84
|
+
test('rejects a non-positive drone capture size', () => {
|
|
85
|
+
const cameraConfig = { aircraft: CAPTURE_CONFIG, drone: { ...CAPTURE_CONFIG, defaultCaptureSizeMeters: 0 } };
|
|
86
|
+
expect(cameraSettingsSchema.safeParse({ cameraConfig }).success).toBe(false);
|
|
87
|
+
});
|
|
88
|
+
});
|
package/package.json
CHANGED
|
@@ -45,8 +45,23 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
45
45
|
focusCalibrationPoints: string;
|
|
46
46
|
};
|
|
47
47
|
cameraConfig: {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
aircraft: {
|
|
49
|
+
defaultCaptureSizeMeters: number;
|
|
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
|
+
};
|
|
50
65
|
};
|
|
51
66
|
stream: {
|
|
52
67
|
width: number;
|
|
@@ -99,11 +114,29 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
99
114
|
priority: number;
|
|
100
115
|
};
|
|
101
116
|
identificationLabel: {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
117
|
+
aircraft: {
|
|
118
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
119
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
120
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
121
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
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
|
+
};
|
|
107
140
|
};
|
|
108
141
|
acs: {
|
|
109
142
|
ip: string;
|
|
@@ -181,11 +214,11 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
181
214
|
importAppSettings(dataType: TImportDataType, formData: Parameters<Client['post']>[0]['data'], options?: THttpRequestOptions): Promise<void>;
|
|
182
215
|
getDomainList(options?: THttpRequestOptions): Promise<Partial<Record<"adsb" | "remoteId", {
|
|
183
216
|
uiName: string;
|
|
184
|
-
icon: "unknown" | "small" | "
|
|
217
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
185
218
|
categoryList: {
|
|
186
219
|
categoryId: string;
|
|
187
220
|
uiName: string;
|
|
188
|
-
icon: "unknown" | "small" | "
|
|
221
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
189
222
|
}[];
|
|
190
223
|
}>>>;
|
|
191
224
|
fetchFlightInfo(targetId: string, options?: THttpRequestOptions): Promise<{
|
|
@@ -56,6 +56,8 @@ export declare const widgetSchema: z.ZodObject<{
|
|
|
56
56
|
}>;
|
|
57
57
|
declare const labelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
58
58
|
export type TLabelOption = z.infer<typeof labelOptionsSchema>;
|
|
59
|
+
declare const droneLabelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"remote_id">]>;
|
|
60
|
+
export type TDroneLabelOption = z.infer<typeof droneLabelOptionsSchema>;
|
|
59
61
|
export declare const cameraSettingsSchema: z.ZodObject<{
|
|
60
62
|
units: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">]>>;
|
|
61
63
|
adsbSource: z.ZodDefault<z.ZodObject<{
|
|
@@ -119,16 +121,67 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
119
121
|
nightSkyCalibrationFocusValue?: number | undefined;
|
|
120
122
|
focusCalibrationPoints?: string | undefined;
|
|
121
123
|
}>>;
|
|
122
|
-
cameraConfig: z.ZodDefault<z.ZodObject<{
|
|
124
|
+
cameraConfig: z.ZodDefault<z.ZodUnion<[z.ZodObject<{
|
|
125
|
+
aircraft: z.ZodObject<{
|
|
126
|
+
defaultCaptureSizeMeters: z.ZodNumber;
|
|
127
|
+
captureSizeExtensionMeters: z.ZodNumber;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
defaultCaptureSizeMeters: number;
|
|
130
|
+
captureSizeExtensionMeters: number;
|
|
131
|
+
}, {
|
|
132
|
+
defaultCaptureSizeMeters: number;
|
|
133
|
+
captureSizeExtensionMeters: number;
|
|
134
|
+
}>;
|
|
135
|
+
drone: z.ZodDefault<z.ZodObject<{
|
|
136
|
+
defaultCaptureSizeMeters: z.ZodNumber;
|
|
137
|
+
captureSizeExtensionMeters: z.ZodNumber;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
defaultCaptureSizeMeters: number;
|
|
140
|
+
captureSizeExtensionMeters: number;
|
|
141
|
+
}, {
|
|
142
|
+
defaultCaptureSizeMeters: number;
|
|
143
|
+
captureSizeExtensionMeters: number;
|
|
144
|
+
}>>;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
aircraft: {
|
|
147
|
+
defaultCaptureSizeMeters: number;
|
|
148
|
+
captureSizeExtensionMeters: number;
|
|
149
|
+
};
|
|
150
|
+
drone: {
|
|
151
|
+
defaultCaptureSizeMeters: number;
|
|
152
|
+
captureSizeExtensionMeters: number;
|
|
153
|
+
};
|
|
154
|
+
}, {
|
|
155
|
+
aircraft: {
|
|
156
|
+
defaultCaptureSizeMeters: number;
|
|
157
|
+
captureSizeExtensionMeters: number;
|
|
158
|
+
};
|
|
159
|
+
drone?: {
|
|
160
|
+
defaultCaptureSizeMeters: number;
|
|
161
|
+
captureSizeExtensionMeters: number;
|
|
162
|
+
} | undefined;
|
|
163
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
123
164
|
defaultCaptureSizeMeters: z.ZodDefault<z.ZodNumber>;
|
|
124
165
|
captureSizeExtensionMeters: z.ZodDefault<z.ZodNumber>;
|
|
125
|
-
}, "
|
|
166
|
+
}, "strict", z.ZodTypeAny, {
|
|
126
167
|
defaultCaptureSizeMeters: number;
|
|
127
168
|
captureSizeExtensionMeters: number;
|
|
128
169
|
}, {
|
|
129
170
|
defaultCaptureSizeMeters?: number | undefined;
|
|
130
171
|
captureSizeExtensionMeters?: number | undefined;
|
|
131
|
-
}
|
|
172
|
+
}>, {
|
|
173
|
+
aircraft: {
|
|
174
|
+
defaultCaptureSizeMeters: number;
|
|
175
|
+
captureSizeExtensionMeters: number;
|
|
176
|
+
};
|
|
177
|
+
drone: {
|
|
178
|
+
defaultCaptureSizeMeters: number;
|
|
179
|
+
captureSizeExtensionMeters: number;
|
|
180
|
+
};
|
|
181
|
+
}, {
|
|
182
|
+
defaultCaptureSizeMeters?: number | undefined;
|
|
183
|
+
captureSizeExtensionMeters?: number | undefined;
|
|
184
|
+
}>]>>;
|
|
132
185
|
stream: z.ZodDefault<z.ZodObject<{
|
|
133
186
|
width: z.ZodNumber;
|
|
134
187
|
height: z.ZodNumber;
|
|
@@ -334,7 +387,61 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
334
387
|
port?: number | undefined;
|
|
335
388
|
priority?: number | undefined;
|
|
336
389
|
}>>;
|
|
337
|
-
identificationLabel: z.ZodDefault<z.ZodObject<{
|
|
390
|
+
identificationLabel: z.ZodDefault<z.ZodUnion<[z.ZodObject<{
|
|
391
|
+
aircraft: z.ZodObject<{
|
|
392
|
+
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
393
|
+
secondRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
394
|
+
thirdRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
395
|
+
fourthRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
396
|
+
opacity: z.ZodNumber;
|
|
397
|
+
}, "strip", z.ZodTypeAny, {
|
|
398
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
399
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
400
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
401
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
402
|
+
opacity: number;
|
|
403
|
+
}, {
|
|
404
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
405
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
406
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
407
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
408
|
+
opacity: number;
|
|
409
|
+
}>;
|
|
410
|
+
drone: z.ZodDefault<z.ZodObject<{
|
|
411
|
+
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"remote_id">]>;
|
|
412
|
+
opacity: z.ZodNumber;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
|
+
firstRow: "blank" | "remote_id";
|
|
415
|
+
opacity: number;
|
|
416
|
+
}, {
|
|
417
|
+
firstRow: "blank" | "remote_id";
|
|
418
|
+
opacity: number;
|
|
419
|
+
}>>;
|
|
420
|
+
}, "strip", z.ZodTypeAny, {
|
|
421
|
+
aircraft: {
|
|
422
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
423
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
424
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
425
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
426
|
+
opacity: number;
|
|
427
|
+
};
|
|
428
|
+
drone: {
|
|
429
|
+
firstRow: "blank" | "remote_id";
|
|
430
|
+
opacity: number;
|
|
431
|
+
};
|
|
432
|
+
}, {
|
|
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
|
+
} | undefined;
|
|
444
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
338
445
|
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
339
446
|
secondRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
340
447
|
thirdRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
@@ -352,7 +459,25 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
352
459
|
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
353
460
|
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
354
461
|
opacity: number;
|
|
355
|
-
}
|
|
462
|
+
}>, {
|
|
463
|
+
aircraft: {
|
|
464
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
465
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
466
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
467
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
468
|
+
opacity: number;
|
|
469
|
+
};
|
|
470
|
+
drone: {
|
|
471
|
+
firstRow: "blank" | "remote_id";
|
|
472
|
+
opacity: number;
|
|
473
|
+
};
|
|
474
|
+
}, {
|
|
475
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
476
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
477
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
478
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
479
|
+
opacity: number;
|
|
480
|
+
}>]>>;
|
|
356
481
|
acs: z.ZodDefault<z.ZodObject<{
|
|
357
482
|
protocol: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"https">, z.ZodLiteral<"https_insecure">]>;
|
|
358
483
|
ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
|
|
@@ -447,8 +572,23 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
447
572
|
focusCalibrationPoints: string;
|
|
448
573
|
};
|
|
449
574
|
cameraConfig: {
|
|
450
|
-
|
|
451
|
-
|
|
575
|
+
aircraft: {
|
|
576
|
+
defaultCaptureSizeMeters: number;
|
|
577
|
+
captureSizeExtensionMeters: number;
|
|
578
|
+
};
|
|
579
|
+
drone: {
|
|
580
|
+
defaultCaptureSizeMeters: number;
|
|
581
|
+
captureSizeExtensionMeters: number;
|
|
582
|
+
};
|
|
583
|
+
} | {
|
|
584
|
+
aircraft: {
|
|
585
|
+
defaultCaptureSizeMeters: number;
|
|
586
|
+
captureSizeExtensionMeters: number;
|
|
587
|
+
};
|
|
588
|
+
drone: {
|
|
589
|
+
defaultCaptureSizeMeters: number;
|
|
590
|
+
captureSizeExtensionMeters: number;
|
|
591
|
+
};
|
|
452
592
|
};
|
|
453
593
|
stream: {
|
|
454
594
|
width: number;
|
|
@@ -501,11 +641,29 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
501
641
|
priority: number;
|
|
502
642
|
};
|
|
503
643
|
identificationLabel: {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
644
|
+
aircraft: {
|
|
645
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
646
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
647
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
648
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
649
|
+
opacity: number;
|
|
650
|
+
};
|
|
651
|
+
drone: {
|
|
652
|
+
firstRow: "blank" | "remote_id";
|
|
653
|
+
opacity: number;
|
|
654
|
+
};
|
|
655
|
+
} | {
|
|
656
|
+
aircraft: {
|
|
657
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
658
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
659
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
660
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
661
|
+
opacity: number;
|
|
662
|
+
};
|
|
663
|
+
drone: {
|
|
664
|
+
firstRow: "blank" | "remote_id";
|
|
665
|
+
opacity: number;
|
|
666
|
+
};
|
|
509
667
|
};
|
|
510
668
|
acs: {
|
|
511
669
|
ip: string;
|
|
@@ -581,6 +739,15 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
581
739
|
focusCalibrationPoints?: string | undefined;
|
|
582
740
|
} | undefined;
|
|
583
741
|
cameraConfig?: {
|
|
742
|
+
aircraft: {
|
|
743
|
+
defaultCaptureSizeMeters: number;
|
|
744
|
+
captureSizeExtensionMeters: number;
|
|
745
|
+
};
|
|
746
|
+
drone?: {
|
|
747
|
+
defaultCaptureSizeMeters: number;
|
|
748
|
+
captureSizeExtensionMeters: number;
|
|
749
|
+
} | undefined;
|
|
750
|
+
} | {
|
|
584
751
|
defaultCaptureSizeMeters?: number | undefined;
|
|
585
752
|
captureSizeExtensionMeters?: number | undefined;
|
|
586
753
|
} | undefined;
|
|
@@ -664,6 +831,18 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
664
831
|
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
665
832
|
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
666
833
|
opacity: number;
|
|
834
|
+
} | {
|
|
835
|
+
aircraft: {
|
|
836
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
837
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
838
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
839
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
840
|
+
opacity: number;
|
|
841
|
+
};
|
|
842
|
+
drone?: {
|
|
843
|
+
firstRow: "blank" | "remote_id";
|
|
844
|
+
opacity: number;
|
|
845
|
+
} | undefined;
|
|
667
846
|
} | undefined;
|
|
668
847
|
acs?: {
|
|
669
848
|
ip: string;
|
|
@@ -1196,11 +1375,11 @@ declare const categoryDescriptorSchema: z.ZodObject<{
|
|
|
1196
1375
|
}, "strip", z.ZodTypeAny, {
|
|
1197
1376
|
categoryId: string;
|
|
1198
1377
|
uiName: string;
|
|
1199
|
-
icon: "unknown" | "small" | "
|
|
1378
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1200
1379
|
}, {
|
|
1201
1380
|
categoryId: string;
|
|
1202
1381
|
uiName: string;
|
|
1203
|
-
icon: "unknown" | "small" | "
|
|
1382
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1204
1383
|
}>;
|
|
1205
1384
|
export type TCategoryDescriptor = z.infer<typeof categoryDescriptorSchema>;
|
|
1206
1385
|
declare const domainDescriptorSchema: z.ZodObject<{
|
|
@@ -1213,27 +1392,27 @@ declare const domainDescriptorSchema: z.ZodObject<{
|
|
|
1213
1392
|
}, "strip", z.ZodTypeAny, {
|
|
1214
1393
|
categoryId: string;
|
|
1215
1394
|
uiName: string;
|
|
1216
|
-
icon: "unknown" | "small" | "
|
|
1395
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1217
1396
|
}, {
|
|
1218
1397
|
categoryId: string;
|
|
1219
1398
|
uiName: string;
|
|
1220
|
-
icon: "unknown" | "small" | "
|
|
1399
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1221
1400
|
}>, "many">;
|
|
1222
1401
|
}, "strip", z.ZodTypeAny, {
|
|
1223
1402
|
uiName: string;
|
|
1224
|
-
icon: "unknown" | "small" | "
|
|
1403
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1225
1404
|
categoryList: {
|
|
1226
1405
|
categoryId: string;
|
|
1227
1406
|
uiName: string;
|
|
1228
|
-
icon: "unknown" | "small" | "
|
|
1407
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1229
1408
|
}[];
|
|
1230
1409
|
}, {
|
|
1231
1410
|
uiName: string;
|
|
1232
|
-
icon: "unknown" | "small" | "
|
|
1411
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1233
1412
|
categoryList: {
|
|
1234
1413
|
categoryId: string;
|
|
1235
1414
|
uiName: string;
|
|
1236
|
-
icon: "unknown" | "small" | "
|
|
1415
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1237
1416
|
}[];
|
|
1238
1417
|
}>;
|
|
1239
1418
|
export type TDomainDescriptor = z.infer<typeof domainDescriptorSchema>;
|
|
@@ -1247,27 +1426,27 @@ export declare const domainListSchema: z.ZodRecord<z.ZodEnum<["adsb", "remoteId"
|
|
|
1247
1426
|
}, "strip", z.ZodTypeAny, {
|
|
1248
1427
|
categoryId: string;
|
|
1249
1428
|
uiName: string;
|
|
1250
|
-
icon: "unknown" | "small" | "
|
|
1429
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1251
1430
|
}, {
|
|
1252
1431
|
categoryId: string;
|
|
1253
1432
|
uiName: string;
|
|
1254
|
-
icon: "unknown" | "small" | "
|
|
1433
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1255
1434
|
}>, "many">;
|
|
1256
1435
|
}, "strip", z.ZodTypeAny, {
|
|
1257
1436
|
uiName: string;
|
|
1258
|
-
icon: "unknown" | "small" | "
|
|
1437
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1259
1438
|
categoryList: {
|
|
1260
1439
|
categoryId: string;
|
|
1261
1440
|
uiName: string;
|
|
1262
|
-
icon: "unknown" | "small" | "
|
|
1441
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1263
1442
|
}[];
|
|
1264
1443
|
}, {
|
|
1265
1444
|
uiName: string;
|
|
1266
|
-
icon: "unknown" | "small" | "
|
|
1445
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1267
1446
|
categoryList: {
|
|
1268
1447
|
categoryId: string;
|
|
1269
1448
|
uiName: string;
|
|
1270
|
-
icon: "unknown" | "small" | "
|
|
1449
|
+
icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
|
|
1271
1450
|
}[];
|
|
1272
1451
|
}>>;
|
|
1273
1452
|
export type TDomainList = z.infer<typeof domainListSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|