camstreamerlib 4.0.0-beta.117 → 4.0.0-beta.118

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.
@@ -744,11 +744,11 @@ export declare const getIcaoSchema: z.ZodObject<{
744
744
  }>;
745
745
  export type TGetIcaoByOption = 'registration' | 'callsign';
746
746
  export declare const trackingModeSchema: z.ZodObject<{
747
- mode: z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>;
747
+ mode: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>>;
748
748
  }, "strip", z.ZodTypeAny, {
749
749
  mode: "MANUAL" | "AUTOMATIC";
750
750
  }, {
751
- mode: "MANUAL" | "AUTOMATIC";
751
+ mode?: "MANUAL" | "AUTOMATIC" | undefined;
752
752
  }>;
753
753
  export type TTrackingMode = z.infer<typeof trackingModeSchema>;
754
754
  export declare const flightInfoSchema: z.ZodObject<{
@@ -265,7 +265,7 @@ exports.getIcaoSchema = zod_1.z.object({
265
265
  icao: zod_1.z.string(),
266
266
  });
267
267
  exports.trackingModeSchema = zod_1.z.object({
268
- mode: zod_1.z.union([zod_1.z.literal('MANUAL'), zod_1.z.literal('AUTOMATIC')]),
268
+ mode: zod_1.z.union([zod_1.z.literal('MANUAL'), zod_1.z.literal('AUTOMATIC')]).default('AUTOMATIC'),
269
269
  });
270
270
  exports.flightInfoSchema = zod_1.z.object({
271
271
  callsign: zod_1.z.string().optional(),
@@ -419,11 +419,11 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
419
419
  userPriority: string;
420
420
  }>;
421
421
  postJsonBody: z.ZodObject<{
422
- mode: z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>;
422
+ mode: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>>;
423
423
  }, "strip", z.ZodTypeAny, {
424
424
  mode: "MANUAL" | "AUTOMATIC";
425
425
  }, {
426
- mode: "MANUAL" | "AUTOMATIC";
426
+ mode?: "MANUAL" | "AUTOMATIC" | undefined;
427
427
  }>;
428
428
  }, "strip", z.ZodTypeAny, {
429
429
  params: {
@@ -445,7 +445,7 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
445
445
  ip: string;
446
446
  cgi: PlaneTrackerUserActions.SET_TRACKING_MODE;
447
447
  postJsonBody: {
448
- mode: "MANUAL" | "AUTOMATIC";
448
+ mode?: "MANUAL" | "AUTOMATIC" | undefined;
449
449
  };
450
450
  }>, z.ZodObject<{
451
451
  cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_ZONES>;
@@ -262,7 +262,7 @@ export const getIcaoSchema = z.object({
262
262
  icao: z.string(),
263
263
  });
264
264
  export const trackingModeSchema = z.object({
265
- mode: z.union([z.literal('MANUAL'), z.literal('AUTOMATIC')]),
265
+ mode: z.union([z.literal('MANUAL'), z.literal('AUTOMATIC')]).default('AUTOMATIC'),
266
266
  });
267
267
  export const flightInfoSchema = z.object({
268
268
  callsign: z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.0-beta.117",
3
+ "version": "4.0.0-beta.118",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {
@@ -744,11 +744,11 @@ export declare const getIcaoSchema: z.ZodObject<{
744
744
  }>;
745
745
  export type TGetIcaoByOption = 'registration' | 'callsign';
746
746
  export declare const trackingModeSchema: z.ZodObject<{
747
- mode: z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>;
747
+ mode: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>>;
748
748
  }, "strip", z.ZodTypeAny, {
749
749
  mode: "MANUAL" | "AUTOMATIC";
750
750
  }, {
751
- mode: "MANUAL" | "AUTOMATIC";
751
+ mode?: "MANUAL" | "AUTOMATIC" | undefined;
752
752
  }>;
753
753
  export type TTrackingMode = z.infer<typeof trackingModeSchema>;
754
754
  export declare const flightInfoSchema: z.ZodObject<{
@@ -419,11 +419,11 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
419
419
  userPriority: string;
420
420
  }>;
421
421
  postJsonBody: z.ZodObject<{
422
- mode: z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>;
422
+ mode: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>>;
423
423
  }, "strip", z.ZodTypeAny, {
424
424
  mode: "MANUAL" | "AUTOMATIC";
425
425
  }, {
426
- mode: "MANUAL" | "AUTOMATIC";
426
+ mode?: "MANUAL" | "AUTOMATIC" | undefined;
427
427
  }>;
428
428
  }, "strip", z.ZodTypeAny, {
429
429
  params: {
@@ -445,7 +445,7 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
445
445
  ip: string;
446
446
  cgi: PlaneTrackerUserActions.SET_TRACKING_MODE;
447
447
  postJsonBody: {
448
- mode: "MANUAL" | "AUTOMATIC";
448
+ mode?: "MANUAL" | "AUTOMATIC" | undefined;
449
449
  };
450
450
  }>, z.ZodObject<{
451
451
  cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_ZONES>;