camstreamerlib 4.0.0-beta.50 → 4.0.0-beta.52
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.
|
@@ -77,7 +77,11 @@ const ptrEventsDataSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
77
77
|
zod_1.z.object({
|
|
78
78
|
type: zod_1.z.literal('USER_ACTION'),
|
|
79
79
|
ip: zod_1.z.string(),
|
|
80
|
-
params: apiStringUserSchema
|
|
80
|
+
params: apiStringUserSchema.extend({
|
|
81
|
+
lat: zod_1.z.string().optional(),
|
|
82
|
+
lon: zod_1.z.string().optional(),
|
|
83
|
+
timeout: zod_1.z.string().optional(),
|
|
84
|
+
}),
|
|
81
85
|
cgi: zod_1.z.enum([
|
|
82
86
|
PlaneTrackerUserActions.TRACK_ICAO,
|
|
83
87
|
PlaneTrackerUserActions.RESET_ICAO,
|
|
@@ -74,7 +74,11 @@ const ptrEventsDataSchema = z.discriminatedUnion('type', [
|
|
|
74
74
|
z.object({
|
|
75
75
|
type: z.literal('USER_ACTION'),
|
|
76
76
|
ip: z.string(),
|
|
77
|
-
params: apiStringUserSchema
|
|
77
|
+
params: apiStringUserSchema.extend({
|
|
78
|
+
lat: z.string().optional(),
|
|
79
|
+
lon: z.string().optional(),
|
|
80
|
+
timeout: z.string().optional(),
|
|
81
|
+
}),
|
|
78
82
|
cgi: z.enum([
|
|
79
83
|
PlaneTrackerUserActions.TRACK_ICAO,
|
|
80
84
|
PlaneTrackerUserActions.RESET_ICAO,
|
package/package.json
CHANGED
|
@@ -77,7 +77,6 @@ declare const apiStringUserSchema: z.ZodObject<{
|
|
|
77
77
|
userName: string;
|
|
78
78
|
userPriority: string;
|
|
79
79
|
}>;
|
|
80
|
-
export type TStringApiUser = z.infer<typeof apiStringUserSchema>;
|
|
81
80
|
export declare enum PlaneTrackerWsEvents {
|
|
82
81
|
FLIGHT_LIST = "FLIGHT_LIST",
|
|
83
82
|
CAMERA_POSITION = "CAMERA_POSITION",
|
|
@@ -232,14 +231,24 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
232
231
|
userId: z.ZodString;
|
|
233
232
|
userName: z.ZodString;
|
|
234
233
|
userPriority: z.ZodString;
|
|
234
|
+
} & {
|
|
235
|
+
lat: z.ZodOptional<z.ZodString>;
|
|
236
|
+
lon: z.ZodOptional<z.ZodString>;
|
|
237
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
235
238
|
}, "strip", z.ZodTypeAny, {
|
|
236
239
|
userId: string;
|
|
237
240
|
userName: string;
|
|
238
241
|
userPriority: string;
|
|
242
|
+
timeout?: string | undefined;
|
|
243
|
+
lat?: string | undefined;
|
|
244
|
+
lon?: string | undefined;
|
|
239
245
|
}, {
|
|
240
246
|
userId: string;
|
|
241
247
|
userName: string;
|
|
242
248
|
userPriority: string;
|
|
249
|
+
timeout?: string | undefined;
|
|
250
|
+
lat?: string | undefined;
|
|
251
|
+
lon?: string | undefined;
|
|
243
252
|
}>;
|
|
244
253
|
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_BLACK_LIST, PlaneTrackerUserActions.SET_WHITE_LIST, PlaneTrackerUserActions.GO_TO_COORDINATES, PlaneTrackerUserActions.SET_TRACKING_MODE, PlaneTrackerUserActions.SET_ZONES, PlaneTrackerUserActions.RESET_PTZ_CALIBRATION, PlaneTrackerUserActions.LOCK_API, PlaneTrackerUserActions.UNLOCK_API]>;
|
|
245
254
|
postJsonBody: z.ZodAny;
|
|
@@ -248,6 +257,9 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
248
257
|
userId: string;
|
|
249
258
|
userName: string;
|
|
250
259
|
userPriority: string;
|
|
260
|
+
timeout?: string | undefined;
|
|
261
|
+
lat?: string | undefined;
|
|
262
|
+
lon?: string | undefined;
|
|
251
263
|
};
|
|
252
264
|
type: "USER_ACTION";
|
|
253
265
|
ip: string;
|
|
@@ -258,6 +270,9 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
258
270
|
userId: string;
|
|
259
271
|
userName: string;
|
|
260
272
|
userPriority: string;
|
|
273
|
+
timeout?: string | undefined;
|
|
274
|
+
lat?: string | undefined;
|
|
275
|
+
lon?: string | undefined;
|
|
261
276
|
};
|
|
262
277
|
type: "USER_ACTION";
|
|
263
278
|
ip: string;
|
|
@@ -481,14 +496,24 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
481
496
|
userId: z.ZodString;
|
|
482
497
|
userName: z.ZodString;
|
|
483
498
|
userPriority: z.ZodString;
|
|
499
|
+
} & {
|
|
500
|
+
lat: z.ZodOptional<z.ZodString>;
|
|
501
|
+
lon: z.ZodOptional<z.ZodString>;
|
|
502
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
484
503
|
}, "strip", z.ZodTypeAny, {
|
|
485
504
|
userId: string;
|
|
486
505
|
userName: string;
|
|
487
506
|
userPriority: string;
|
|
507
|
+
timeout?: string | undefined;
|
|
508
|
+
lat?: string | undefined;
|
|
509
|
+
lon?: string | undefined;
|
|
488
510
|
}, {
|
|
489
511
|
userId: string;
|
|
490
512
|
userName: string;
|
|
491
513
|
userPriority: string;
|
|
514
|
+
timeout?: string | undefined;
|
|
515
|
+
lat?: string | undefined;
|
|
516
|
+
lon?: string | undefined;
|
|
492
517
|
}>;
|
|
493
518
|
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_BLACK_LIST, PlaneTrackerUserActions.SET_WHITE_LIST, PlaneTrackerUserActions.GO_TO_COORDINATES, PlaneTrackerUserActions.SET_TRACKING_MODE, PlaneTrackerUserActions.SET_ZONES, PlaneTrackerUserActions.RESET_PTZ_CALIBRATION, PlaneTrackerUserActions.LOCK_API, PlaneTrackerUserActions.UNLOCK_API]>;
|
|
494
519
|
postJsonBody: z.ZodAny;
|
|
@@ -497,6 +522,9 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
497
522
|
userId: string;
|
|
498
523
|
userName: string;
|
|
499
524
|
userPriority: string;
|
|
525
|
+
timeout?: string | undefined;
|
|
526
|
+
lat?: string | undefined;
|
|
527
|
+
lon?: string | undefined;
|
|
500
528
|
};
|
|
501
529
|
type: "USER_ACTION";
|
|
502
530
|
ip: string;
|
|
@@ -507,6 +535,9 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
507
535
|
userId: string;
|
|
508
536
|
userName: string;
|
|
509
537
|
userPriority: string;
|
|
538
|
+
timeout?: string | undefined;
|
|
539
|
+
lat?: string | undefined;
|
|
540
|
+
lon?: string | undefined;
|
|
510
541
|
};
|
|
511
542
|
type: "USER_ACTION";
|
|
512
543
|
ip: string;
|
|
@@ -634,6 +665,9 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
634
665
|
userId: string;
|
|
635
666
|
userName: string;
|
|
636
667
|
userPriority: string;
|
|
668
|
+
timeout?: string | undefined;
|
|
669
|
+
lat?: string | undefined;
|
|
670
|
+
lon?: string | undefined;
|
|
637
671
|
};
|
|
638
672
|
type: "USER_ACTION";
|
|
639
673
|
ip: string;
|
|
@@ -699,6 +733,9 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
699
733
|
userId: string;
|
|
700
734
|
userName: string;
|
|
701
735
|
userPriority: string;
|
|
736
|
+
timeout?: string | undefined;
|
|
737
|
+
lat?: string | undefined;
|
|
738
|
+
lon?: string | undefined;
|
|
702
739
|
};
|
|
703
740
|
type: "USER_ACTION";
|
|
704
741
|
ip: string;
|
|
@@ -858,14 +895,24 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
858
895
|
userId: z.ZodString;
|
|
859
896
|
userName: z.ZodString;
|
|
860
897
|
userPriority: z.ZodString;
|
|
898
|
+
} & {
|
|
899
|
+
lat: z.ZodOptional<z.ZodString>;
|
|
900
|
+
lon: z.ZodOptional<z.ZodString>;
|
|
901
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
861
902
|
}, "strip", z.ZodTypeAny, {
|
|
862
903
|
userId: string;
|
|
863
904
|
userName: string;
|
|
864
905
|
userPriority: string;
|
|
906
|
+
timeout?: string | undefined;
|
|
907
|
+
lat?: string | undefined;
|
|
908
|
+
lon?: string | undefined;
|
|
865
909
|
}, {
|
|
866
910
|
userId: string;
|
|
867
911
|
userName: string;
|
|
868
912
|
userPriority: string;
|
|
913
|
+
timeout?: string | undefined;
|
|
914
|
+
lat?: string | undefined;
|
|
915
|
+
lon?: string | undefined;
|
|
869
916
|
}>;
|
|
870
917
|
cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_BLACK_LIST, PlaneTrackerUserActions.SET_WHITE_LIST, PlaneTrackerUserActions.GO_TO_COORDINATES, PlaneTrackerUserActions.SET_TRACKING_MODE, PlaneTrackerUserActions.SET_ZONES, PlaneTrackerUserActions.RESET_PTZ_CALIBRATION, PlaneTrackerUserActions.LOCK_API, PlaneTrackerUserActions.UNLOCK_API]>;
|
|
871
918
|
postJsonBody: z.ZodAny;
|
|
@@ -874,6 +921,9 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
874
921
|
userId: string;
|
|
875
922
|
userName: string;
|
|
876
923
|
userPriority: string;
|
|
924
|
+
timeout?: string | undefined;
|
|
925
|
+
lat?: string | undefined;
|
|
926
|
+
lon?: string | undefined;
|
|
877
927
|
};
|
|
878
928
|
type: "USER_ACTION";
|
|
879
929
|
ip: string;
|
|
@@ -884,6 +934,9 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
884
934
|
userId: string;
|
|
885
935
|
userName: string;
|
|
886
936
|
userPriority: string;
|
|
937
|
+
timeout?: string | undefined;
|
|
938
|
+
lat?: string | undefined;
|
|
939
|
+
lon?: string | undefined;
|
|
887
940
|
};
|
|
888
941
|
type: "USER_ACTION";
|
|
889
942
|
ip: string;
|
|
@@ -980,4 +1033,5 @@ export type TPlaneTrackerEventOfType<T extends TPlaneTrackerEventType> = Extract
|
|
|
980
1033
|
}>;
|
|
981
1034
|
export type TPlaneTrackerApiFlightData = z.infer<typeof apiFlightDataSchema>;
|
|
982
1035
|
export type TPlaneTrackerApiUser = z.infer<typeof apiUserSchema>;
|
|
1036
|
+
export type TPlaneTrackerStringApiUser = z.infer<typeof apiStringUserSchema>;
|
|
983
1037
|
export {};
|