camstreamerlib 4.0.0-beta.156 → 4.0.0-beta.158

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.
@@ -26,6 +26,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
26
26
  protocol: "https" | "http" | "https_insecure";
27
27
  };
28
28
  units: "metric" | "imperial";
29
+ trackingDomain: "adsb" | "dronetag";
29
30
  adsbSource: {
30
31
  ip: string;
31
32
  port: number;
@@ -60,6 +60,7 @@ export declare const widgetSchema: z.ZodObject<{
60
60
  declare const labelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
61
61
  export type TLabelOption = z.infer<typeof labelOptionsSchema>;
62
62
  export declare const cameraSettingsSchema: z.ZodObject<{
63
+ trackingDomain: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"adsb">, z.ZodLiteral<"dronetag">]>>;
63
64
  units: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">]>>;
64
65
  adsbSource: z.ZodDefault<z.ZodObject<{
65
66
  ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
@@ -410,6 +411,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
410
411
  protocol: "https" | "http" | "https_insecure";
411
412
  };
412
413
  units: "metric" | "imperial";
414
+ trackingDomain: "adsb" | "dronetag";
413
415
  adsbSource: {
414
416
  ip: string;
415
417
  port: number;
@@ -536,6 +538,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
536
538
  protocol: "https" | "http" | "https_insecure";
537
539
  } | undefined;
538
540
  units?: "metric" | "imperial" | undefined;
541
+ trackingDomain?: "adsb" | "dronetag" | undefined;
539
542
  adsbSource?: {
540
543
  ip: string;
541
544
  port: number;
@@ -41,6 +41,7 @@ const identificationLabelSchema = zod_1.z.object({
41
41
  opacity: zod_1.z.number().positive(),
42
42
  });
43
43
  exports.cameraSettingsSchema = zod_1.z.object({
44
+ trackingDomain: zod_1.z.union([zod_1.z.literal('adsb'), zod_1.z.literal('dronetag')]).default('adsb'),
44
45
  units: zod_1.z.union([zod_1.z.literal('metric'), zod_1.z.literal('imperial')]).default('imperial'),
45
46
  adsbSource: zod_1.z
46
47
  .object({
@@ -38,6 +38,7 @@ const identificationLabelSchema = z.object({
38
38
  opacity: z.number().positive(),
39
39
  });
40
40
  export const cameraSettingsSchema = z.object({
41
+ trackingDomain: z.union([z.literal('adsb'), z.literal('dronetag')]).default('adsb'),
41
42
  units: z.union([z.literal('metric'), z.literal('imperial')]).default('imperial'),
42
43
  adsbSource: z
43
44
  .object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.0-beta.156",
3
+ "version": "4.0.0-beta.158",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {
@@ -10,7 +10,7 @@
10
10
  "adm-zip": "^0.5.9",
11
11
  "eventemitter2": "^5.0.1",
12
12
  "fast-xml-parser": "^5.3.6",
13
- "lodash": "^4.17.21",
13
+ "lodash": "^4.18.1",
14
14
  "type-fest": "^4.41.0",
15
15
  "undici": "^6.21.3",
16
16
  "ws": "^8.18.0",
@@ -26,6 +26,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
26
26
  protocol: "https" | "http" | "https_insecure";
27
27
  };
28
28
  units: "metric" | "imperial";
29
+ trackingDomain: "adsb" | "dronetag";
29
30
  adsbSource: {
30
31
  ip: string;
31
32
  port: number;
@@ -60,6 +60,7 @@ export declare const widgetSchema: z.ZodObject<{
60
60
  declare const labelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
61
61
  export type TLabelOption = z.infer<typeof labelOptionsSchema>;
62
62
  export declare const cameraSettingsSchema: z.ZodObject<{
63
+ trackingDomain: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"adsb">, z.ZodLiteral<"dronetag">]>>;
63
64
  units: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">]>>;
64
65
  adsbSource: z.ZodDefault<z.ZodObject<{
65
66
  ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
@@ -410,6 +411,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
410
411
  protocol: "https" | "http" | "https_insecure";
411
412
  };
412
413
  units: "metric" | "imperial";
414
+ trackingDomain: "adsb" | "dronetag";
413
415
  adsbSource: {
414
416
  ip: string;
415
417
  port: number;
@@ -536,6 +538,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
536
538
  protocol: "https" | "http" | "https_insecure";
537
539
  } | undefined;
538
540
  units?: "metric" | "imperial" | undefined;
541
+ trackingDomain?: "adsb" | "dronetag" | undefined;
539
542
  adsbSource?: {
540
543
  ip: string;
541
544
  port: number;