camstreamerlib 4.0.0-beta.49 → 4.0.0-beta.50
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ptrEventsSchema = exports.
|
|
3
|
+
exports.ptrEventsSchema = exports.PlaneTrackerUserActions = exports.PlaneTrackerWsEvents = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const apiFlightDataSchema = zod_1.z.object({
|
|
6
6
|
icao: zod_1.z.string(),
|
|
@@ -22,23 +22,38 @@ const apiFlightDataSchema = zod_1.z.object({
|
|
|
22
22
|
const apiUserSchema = zod_1.z.object({
|
|
23
23
|
userId: zod_1.z.string(),
|
|
24
24
|
userName: zod_1.z.string(),
|
|
25
|
-
userPriority: zod_1.z.
|
|
25
|
+
userPriority: zod_1.z.number(),
|
|
26
26
|
ip: zod_1.z.string(),
|
|
27
27
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
const apiStringUserSchema = zod_1.z.object({
|
|
29
|
+
userId: zod_1.z.string(),
|
|
30
|
+
userName: zod_1.z.string(),
|
|
31
|
+
userPriority: zod_1.z.string(),
|
|
32
|
+
});
|
|
33
|
+
var PlaneTrackerWsEvents;
|
|
34
|
+
(function (PlaneTrackerWsEvents) {
|
|
35
|
+
PlaneTrackerWsEvents["FLIGHT_LIST"] = "FLIGHT_LIST";
|
|
36
|
+
PlaneTrackerWsEvents["CAMERA_POSITION"] = "CAMERA_POSITION";
|
|
37
|
+
PlaneTrackerWsEvents["TRACKING_START"] = "TRACKING_START";
|
|
38
|
+
PlaneTrackerWsEvents["TRACKING_STOP"] = "TRACKING_STOP";
|
|
39
|
+
PlaneTrackerWsEvents["USER_ACTION"] = "USER_ACTION";
|
|
40
|
+
PlaneTrackerWsEvents["CONNECTED_USERS"] = "CONNECTED_USERS";
|
|
41
|
+
PlaneTrackerWsEvents["FORCE_TRACKING_STATUS"] = "FORCE_TRACKING_STATUS";
|
|
42
|
+
})(PlaneTrackerWsEvents || (exports.PlaneTrackerWsEvents = PlaneTrackerWsEvents = {}));
|
|
43
|
+
var PlaneTrackerUserActions;
|
|
44
|
+
(function (PlaneTrackerUserActions) {
|
|
45
|
+
PlaneTrackerUserActions["TRACK_ICAO"] = "trackIcao.cgi";
|
|
46
|
+
PlaneTrackerUserActions["RESET_ICAO"] = "resetIcao.cgi";
|
|
47
|
+
PlaneTrackerUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
|
|
48
|
+
PlaneTrackerUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
|
|
49
|
+
PlaneTrackerUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
|
|
50
|
+
PlaneTrackerUserActions["GO_TO_COORDINATES"] = "goToCoordinates.cgi";
|
|
51
|
+
PlaneTrackerUserActions["SET_TRACKING_MODE"] = "setTrackingMode.cgi";
|
|
52
|
+
PlaneTrackerUserActions["SET_ZONES"] = "setZones.cgi";
|
|
53
|
+
PlaneTrackerUserActions["RESET_PTZ_CALIBRATION"] = "resetPtzCalibration.cgi";
|
|
54
|
+
PlaneTrackerUserActions["LOCK_API"] = "lockApi.cgi";
|
|
55
|
+
PlaneTrackerUserActions["UNLOCK_API"] = "unlockApi.cgi";
|
|
56
|
+
})(PlaneTrackerUserActions || (exports.PlaneTrackerUserActions = PlaneTrackerUserActions = {}));
|
|
42
57
|
const ptrEventsDataSchema = zod_1.z.discriminatedUnion('type', [
|
|
43
58
|
zod_1.z.object({
|
|
44
59
|
type: zod_1.z.literal('CAMERA_POSITION'),
|
|
@@ -62,23 +77,19 @@ const ptrEventsDataSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
62
77
|
zod_1.z.object({
|
|
63
78
|
type: zod_1.z.literal('USER_ACTION'),
|
|
64
79
|
ip: zod_1.z.string(),
|
|
65
|
-
params:
|
|
66
|
-
userId: zod_1.z.string(),
|
|
67
|
-
userName: zod_1.z.string(),
|
|
68
|
-
userPriority: zod_1.z.number(),
|
|
69
|
-
}),
|
|
80
|
+
params: apiStringUserSchema,
|
|
70
81
|
cgi: zod_1.z.enum([
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
+
PlaneTrackerUserActions.TRACK_ICAO,
|
|
83
|
+
PlaneTrackerUserActions.RESET_ICAO,
|
|
84
|
+
PlaneTrackerUserActions.SET_PRIORITY_LIST,
|
|
85
|
+
PlaneTrackerUserActions.SET_BLACK_LIST,
|
|
86
|
+
PlaneTrackerUserActions.SET_WHITE_LIST,
|
|
87
|
+
PlaneTrackerUserActions.GO_TO_COORDINATES,
|
|
88
|
+
PlaneTrackerUserActions.SET_TRACKING_MODE,
|
|
89
|
+
PlaneTrackerUserActions.SET_ZONES,
|
|
90
|
+
PlaneTrackerUserActions.RESET_PTZ_CALIBRATION,
|
|
91
|
+
PlaneTrackerUserActions.LOCK_API,
|
|
92
|
+
PlaneTrackerUserActions.UNLOCK_API,
|
|
82
93
|
]),
|
|
83
94
|
postJsonBody: zod_1.z.any(),
|
|
84
95
|
}),
|
|
@@ -19,23 +19,38 @@ const apiFlightDataSchema = z.object({
|
|
|
19
19
|
const apiUserSchema = z.object({
|
|
20
20
|
userId: z.string(),
|
|
21
21
|
userName: z.string(),
|
|
22
|
-
userPriority: z.
|
|
22
|
+
userPriority: z.number(),
|
|
23
23
|
ip: z.string(),
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
25
|
+
const apiStringUserSchema = z.object({
|
|
26
|
+
userId: z.string(),
|
|
27
|
+
userName: z.string(),
|
|
28
|
+
userPriority: z.string(),
|
|
29
|
+
});
|
|
30
|
+
export var PlaneTrackerWsEvents;
|
|
31
|
+
(function (PlaneTrackerWsEvents) {
|
|
32
|
+
PlaneTrackerWsEvents["FLIGHT_LIST"] = "FLIGHT_LIST";
|
|
33
|
+
PlaneTrackerWsEvents["CAMERA_POSITION"] = "CAMERA_POSITION";
|
|
34
|
+
PlaneTrackerWsEvents["TRACKING_START"] = "TRACKING_START";
|
|
35
|
+
PlaneTrackerWsEvents["TRACKING_STOP"] = "TRACKING_STOP";
|
|
36
|
+
PlaneTrackerWsEvents["USER_ACTION"] = "USER_ACTION";
|
|
37
|
+
PlaneTrackerWsEvents["CONNECTED_USERS"] = "CONNECTED_USERS";
|
|
38
|
+
PlaneTrackerWsEvents["FORCE_TRACKING_STATUS"] = "FORCE_TRACKING_STATUS";
|
|
39
|
+
})(PlaneTrackerWsEvents || (PlaneTrackerWsEvents = {}));
|
|
40
|
+
export var PlaneTrackerUserActions;
|
|
41
|
+
(function (PlaneTrackerUserActions) {
|
|
42
|
+
PlaneTrackerUserActions["TRACK_ICAO"] = "trackIcao.cgi";
|
|
43
|
+
PlaneTrackerUserActions["RESET_ICAO"] = "resetIcao.cgi";
|
|
44
|
+
PlaneTrackerUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
|
|
45
|
+
PlaneTrackerUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
|
|
46
|
+
PlaneTrackerUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
|
|
47
|
+
PlaneTrackerUserActions["GO_TO_COORDINATES"] = "goToCoordinates.cgi";
|
|
48
|
+
PlaneTrackerUserActions["SET_TRACKING_MODE"] = "setTrackingMode.cgi";
|
|
49
|
+
PlaneTrackerUserActions["SET_ZONES"] = "setZones.cgi";
|
|
50
|
+
PlaneTrackerUserActions["RESET_PTZ_CALIBRATION"] = "resetPtzCalibration.cgi";
|
|
51
|
+
PlaneTrackerUserActions["LOCK_API"] = "lockApi.cgi";
|
|
52
|
+
PlaneTrackerUserActions["UNLOCK_API"] = "unlockApi.cgi";
|
|
53
|
+
})(PlaneTrackerUserActions || (PlaneTrackerUserActions = {}));
|
|
39
54
|
const ptrEventsDataSchema = z.discriminatedUnion('type', [
|
|
40
55
|
z.object({
|
|
41
56
|
type: z.literal('CAMERA_POSITION'),
|
|
@@ -59,23 +74,19 @@ const ptrEventsDataSchema = z.discriminatedUnion('type', [
|
|
|
59
74
|
z.object({
|
|
60
75
|
type: z.literal('USER_ACTION'),
|
|
61
76
|
ip: z.string(),
|
|
62
|
-
params:
|
|
63
|
-
userId: z.string(),
|
|
64
|
-
userName: z.string(),
|
|
65
|
-
userPriority: z.number(),
|
|
66
|
-
}),
|
|
77
|
+
params: apiStringUserSchema,
|
|
67
78
|
cgi: z.enum([
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
PlaneTrackerUserActions.TRACK_ICAO,
|
|
80
|
+
PlaneTrackerUserActions.RESET_ICAO,
|
|
81
|
+
PlaneTrackerUserActions.SET_PRIORITY_LIST,
|
|
82
|
+
PlaneTrackerUserActions.SET_BLACK_LIST,
|
|
83
|
+
PlaneTrackerUserActions.SET_WHITE_LIST,
|
|
84
|
+
PlaneTrackerUserActions.GO_TO_COORDINATES,
|
|
85
|
+
PlaneTrackerUserActions.SET_TRACKING_MODE,
|
|
86
|
+
PlaneTrackerUserActions.SET_ZONES,
|
|
87
|
+
PlaneTrackerUserActions.RESET_PTZ_CALIBRATION,
|
|
88
|
+
PlaneTrackerUserActions.LOCK_API,
|
|
89
|
+
PlaneTrackerUserActions.UNLOCK_API,
|
|
79
90
|
]),
|
|
80
91
|
postJsonBody: z.any(),
|
|
81
92
|
}),
|
package/package.json
CHANGED
|
@@ -51,20 +51,43 @@ declare const apiFlightDataSchema: z.ZodObject<{
|
|
|
51
51
|
declare const apiUserSchema: z.ZodObject<{
|
|
52
52
|
userId: z.ZodString;
|
|
53
53
|
userName: z.ZodString;
|
|
54
|
-
userPriority: z.
|
|
54
|
+
userPriority: z.ZodNumber;
|
|
55
55
|
ip: z.ZodString;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
ip: string;
|
|
58
58
|
userId: string;
|
|
59
59
|
userName: string;
|
|
60
|
-
userPriority:
|
|
60
|
+
userPriority: number;
|
|
61
61
|
}, {
|
|
62
62
|
ip: string;
|
|
63
|
+
userId: string;
|
|
64
|
+
userName: string;
|
|
65
|
+
userPriority: number;
|
|
66
|
+
}>;
|
|
67
|
+
declare const apiStringUserSchema: z.ZodObject<{
|
|
68
|
+
userId: z.ZodString;
|
|
69
|
+
userName: z.ZodString;
|
|
70
|
+
userPriority: z.ZodString;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
userId: string;
|
|
73
|
+
userName: string;
|
|
74
|
+
userPriority: string;
|
|
75
|
+
}, {
|
|
63
76
|
userId: string;
|
|
64
77
|
userName: string;
|
|
65
78
|
userPriority: string;
|
|
66
79
|
}>;
|
|
67
|
-
export
|
|
80
|
+
export type TStringApiUser = z.infer<typeof apiStringUserSchema>;
|
|
81
|
+
export declare enum PlaneTrackerWsEvents {
|
|
82
|
+
FLIGHT_LIST = "FLIGHT_LIST",
|
|
83
|
+
CAMERA_POSITION = "CAMERA_POSITION",
|
|
84
|
+
TRACKING_START = "TRACKING_START",
|
|
85
|
+
TRACKING_STOP = "TRACKING_STOP",
|
|
86
|
+
USER_ACTION = "USER_ACTION",
|
|
87
|
+
CONNECTED_USERS = "CONNECTED_USERS",
|
|
88
|
+
FORCE_TRACKING_STATUS = "FORCE_TRACKING_STATUS"
|
|
89
|
+
}
|
|
90
|
+
export declare enum PlaneTrackerUserActions {
|
|
68
91
|
TRACK_ICAO = "trackIcao.cgi",
|
|
69
92
|
RESET_ICAO = "resetIcao.cgi",
|
|
70
93
|
SET_PRIORITY_LIST = "setPriorityList.cgi",
|
|
@@ -208,55 +231,55 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
208
231
|
params: z.ZodObject<{
|
|
209
232
|
userId: z.ZodString;
|
|
210
233
|
userName: z.ZodString;
|
|
211
|
-
userPriority: z.
|
|
234
|
+
userPriority: z.ZodString;
|
|
212
235
|
}, "strip", z.ZodTypeAny, {
|
|
213
236
|
userId: string;
|
|
214
237
|
userName: string;
|
|
215
|
-
userPriority:
|
|
238
|
+
userPriority: string;
|
|
216
239
|
}, {
|
|
217
240
|
userId: string;
|
|
218
241
|
userName: string;
|
|
219
|
-
userPriority:
|
|
242
|
+
userPriority: string;
|
|
220
243
|
}>;
|
|
221
|
-
cgi: z.ZodEnum<[
|
|
244
|
+
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]>;
|
|
222
245
|
postJsonBody: z.ZodAny;
|
|
223
246
|
}, "strip", z.ZodTypeAny, {
|
|
224
247
|
params: {
|
|
225
248
|
userId: string;
|
|
226
249
|
userName: string;
|
|
227
|
-
userPriority:
|
|
250
|
+
userPriority: string;
|
|
228
251
|
};
|
|
229
252
|
type: "USER_ACTION";
|
|
230
253
|
ip: string;
|
|
231
|
-
cgi:
|
|
254
|
+
cgi: PlaneTrackerUserActions;
|
|
232
255
|
postJsonBody?: any;
|
|
233
256
|
}, {
|
|
234
257
|
params: {
|
|
235
258
|
userId: string;
|
|
236
259
|
userName: string;
|
|
237
|
-
userPriority:
|
|
260
|
+
userPriority: string;
|
|
238
261
|
};
|
|
239
262
|
type: "USER_ACTION";
|
|
240
263
|
ip: string;
|
|
241
|
-
cgi:
|
|
264
|
+
cgi: PlaneTrackerUserActions;
|
|
242
265
|
postJsonBody?: any;
|
|
243
266
|
}>, z.ZodObject<{
|
|
244
267
|
type: z.ZodLiteral<"CONNECTED_USERS">;
|
|
245
268
|
users: z.ZodArray<z.ZodObject<{
|
|
246
269
|
userId: z.ZodString;
|
|
247
270
|
userName: z.ZodString;
|
|
248
|
-
userPriority: z.
|
|
271
|
+
userPriority: z.ZodNumber;
|
|
249
272
|
ip: z.ZodString;
|
|
250
273
|
}, "strip", z.ZodTypeAny, {
|
|
251
274
|
ip: string;
|
|
252
275
|
userId: string;
|
|
253
276
|
userName: string;
|
|
254
|
-
userPriority:
|
|
277
|
+
userPriority: number;
|
|
255
278
|
}, {
|
|
256
279
|
ip: string;
|
|
257
280
|
userId: string;
|
|
258
281
|
userName: string;
|
|
259
|
-
userPriority:
|
|
282
|
+
userPriority: number;
|
|
260
283
|
}>, "many">;
|
|
261
284
|
}, "strip", z.ZodTypeAny, {
|
|
262
285
|
type: "CONNECTED_USERS";
|
|
@@ -264,7 +287,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
264
287
|
ip: string;
|
|
265
288
|
userId: string;
|
|
266
289
|
userName: string;
|
|
267
|
-
userPriority:
|
|
290
|
+
userPriority: number;
|
|
268
291
|
}[];
|
|
269
292
|
}, {
|
|
270
293
|
type: "CONNECTED_USERS";
|
|
@@ -272,7 +295,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
272
295
|
ip: string;
|
|
273
296
|
userId: string;
|
|
274
297
|
userName: string;
|
|
275
|
-
userPriority:
|
|
298
|
+
userPriority: number;
|
|
276
299
|
}[];
|
|
277
300
|
}>, z.ZodObject<{
|
|
278
301
|
type: z.ZodLiteral<"FORCE_TRACKING_STATUS">;
|
|
@@ -292,18 +315,18 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
292
315
|
user: z.ZodOptional<z.ZodObject<{
|
|
293
316
|
userId: z.ZodString;
|
|
294
317
|
userName: z.ZodString;
|
|
295
|
-
userPriority: z.
|
|
318
|
+
userPriority: z.ZodNumber;
|
|
296
319
|
ip: z.ZodString;
|
|
297
320
|
}, "strip", z.ZodTypeAny, {
|
|
298
321
|
ip: string;
|
|
299
322
|
userId: string;
|
|
300
323
|
userName: string;
|
|
301
|
-
userPriority:
|
|
324
|
+
userPriority: number;
|
|
302
325
|
}, {
|
|
303
326
|
ip: string;
|
|
304
327
|
userId: string;
|
|
305
328
|
userName: string;
|
|
306
|
-
userPriority:
|
|
329
|
+
userPriority: number;
|
|
307
330
|
}>>;
|
|
308
331
|
}, "strip", z.ZodTypeAny, {
|
|
309
332
|
type: "API_LOCK_STATUS";
|
|
@@ -312,7 +335,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
312
335
|
ip: string;
|
|
313
336
|
userId: string;
|
|
314
337
|
userName: string;
|
|
315
|
-
userPriority:
|
|
338
|
+
userPriority: number;
|
|
316
339
|
} | undefined;
|
|
317
340
|
}, {
|
|
318
341
|
type: "API_LOCK_STATUS";
|
|
@@ -321,7 +344,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
321
344
|
ip: string;
|
|
322
345
|
userId: string;
|
|
323
346
|
userName: string;
|
|
324
|
-
userPriority:
|
|
347
|
+
userPriority: number;
|
|
325
348
|
} | undefined;
|
|
326
349
|
}>]>;
|
|
327
350
|
export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -457,55 +480,55 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
457
480
|
params: z.ZodObject<{
|
|
458
481
|
userId: z.ZodString;
|
|
459
482
|
userName: z.ZodString;
|
|
460
|
-
userPriority: z.
|
|
483
|
+
userPriority: z.ZodString;
|
|
461
484
|
}, "strip", z.ZodTypeAny, {
|
|
462
485
|
userId: string;
|
|
463
486
|
userName: string;
|
|
464
|
-
userPriority:
|
|
487
|
+
userPriority: string;
|
|
465
488
|
}, {
|
|
466
489
|
userId: string;
|
|
467
490
|
userName: string;
|
|
468
|
-
userPriority:
|
|
491
|
+
userPriority: string;
|
|
469
492
|
}>;
|
|
470
|
-
cgi: z.ZodEnum<[
|
|
493
|
+
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]>;
|
|
471
494
|
postJsonBody: z.ZodAny;
|
|
472
495
|
}, "strip", z.ZodTypeAny, {
|
|
473
496
|
params: {
|
|
474
497
|
userId: string;
|
|
475
498
|
userName: string;
|
|
476
|
-
userPriority:
|
|
499
|
+
userPriority: string;
|
|
477
500
|
};
|
|
478
501
|
type: "USER_ACTION";
|
|
479
502
|
ip: string;
|
|
480
|
-
cgi:
|
|
503
|
+
cgi: PlaneTrackerUserActions;
|
|
481
504
|
postJsonBody?: any;
|
|
482
505
|
}, {
|
|
483
506
|
params: {
|
|
484
507
|
userId: string;
|
|
485
508
|
userName: string;
|
|
486
|
-
userPriority:
|
|
509
|
+
userPriority: string;
|
|
487
510
|
};
|
|
488
511
|
type: "USER_ACTION";
|
|
489
512
|
ip: string;
|
|
490
|
-
cgi:
|
|
513
|
+
cgi: PlaneTrackerUserActions;
|
|
491
514
|
postJsonBody?: any;
|
|
492
515
|
}>, z.ZodObject<{
|
|
493
516
|
type: z.ZodLiteral<"CONNECTED_USERS">;
|
|
494
517
|
users: z.ZodArray<z.ZodObject<{
|
|
495
518
|
userId: z.ZodString;
|
|
496
519
|
userName: z.ZodString;
|
|
497
|
-
userPriority: z.
|
|
520
|
+
userPriority: z.ZodNumber;
|
|
498
521
|
ip: z.ZodString;
|
|
499
522
|
}, "strip", z.ZodTypeAny, {
|
|
500
523
|
ip: string;
|
|
501
524
|
userId: string;
|
|
502
525
|
userName: string;
|
|
503
|
-
userPriority:
|
|
526
|
+
userPriority: number;
|
|
504
527
|
}, {
|
|
505
528
|
ip: string;
|
|
506
529
|
userId: string;
|
|
507
530
|
userName: string;
|
|
508
|
-
userPriority:
|
|
531
|
+
userPriority: number;
|
|
509
532
|
}>, "many">;
|
|
510
533
|
}, "strip", z.ZodTypeAny, {
|
|
511
534
|
type: "CONNECTED_USERS";
|
|
@@ -513,7 +536,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
513
536
|
ip: string;
|
|
514
537
|
userId: string;
|
|
515
538
|
userName: string;
|
|
516
|
-
userPriority:
|
|
539
|
+
userPriority: number;
|
|
517
540
|
}[];
|
|
518
541
|
}, {
|
|
519
542
|
type: "CONNECTED_USERS";
|
|
@@ -521,7 +544,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
521
544
|
ip: string;
|
|
522
545
|
userId: string;
|
|
523
546
|
userName: string;
|
|
524
|
-
userPriority:
|
|
547
|
+
userPriority: number;
|
|
525
548
|
}[];
|
|
526
549
|
}>, z.ZodObject<{
|
|
527
550
|
type: z.ZodLiteral<"FORCE_TRACKING_STATUS">;
|
|
@@ -541,18 +564,18 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
541
564
|
user: z.ZodOptional<z.ZodObject<{
|
|
542
565
|
userId: z.ZodString;
|
|
543
566
|
userName: z.ZodString;
|
|
544
|
-
userPriority: z.
|
|
567
|
+
userPriority: z.ZodNumber;
|
|
545
568
|
ip: z.ZodString;
|
|
546
569
|
}, "strip", z.ZodTypeAny, {
|
|
547
570
|
ip: string;
|
|
548
571
|
userId: string;
|
|
549
572
|
userName: string;
|
|
550
|
-
userPriority:
|
|
573
|
+
userPriority: number;
|
|
551
574
|
}, {
|
|
552
575
|
ip: string;
|
|
553
576
|
userId: string;
|
|
554
577
|
userName: string;
|
|
555
|
-
userPriority:
|
|
578
|
+
userPriority: number;
|
|
556
579
|
}>>;
|
|
557
580
|
}, "strip", z.ZodTypeAny, {
|
|
558
581
|
type: "API_LOCK_STATUS";
|
|
@@ -561,7 +584,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
561
584
|
ip: string;
|
|
562
585
|
userId: string;
|
|
563
586
|
userName: string;
|
|
564
|
-
userPriority:
|
|
587
|
+
userPriority: number;
|
|
565
588
|
} | undefined;
|
|
566
589
|
}, {
|
|
567
590
|
type: "API_LOCK_STATUS";
|
|
@@ -570,7 +593,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
570
593
|
ip: string;
|
|
571
594
|
userId: string;
|
|
572
595
|
userName: string;
|
|
573
|
-
userPriority:
|
|
596
|
+
userPriority: number;
|
|
574
597
|
} | undefined;
|
|
575
598
|
}>]>;
|
|
576
599
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -610,11 +633,11 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
610
633
|
params: {
|
|
611
634
|
userId: string;
|
|
612
635
|
userName: string;
|
|
613
|
-
userPriority:
|
|
636
|
+
userPriority: string;
|
|
614
637
|
};
|
|
615
638
|
type: "USER_ACTION";
|
|
616
639
|
ip: string;
|
|
617
|
-
cgi:
|
|
640
|
+
cgi: PlaneTrackerUserActions;
|
|
618
641
|
postJsonBody?: any;
|
|
619
642
|
} | {
|
|
620
643
|
type: "CONNECTED_USERS";
|
|
@@ -622,7 +645,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
622
645
|
ip: string;
|
|
623
646
|
userId: string;
|
|
624
647
|
userName: string;
|
|
625
|
-
userPriority:
|
|
648
|
+
userPriority: number;
|
|
626
649
|
}[];
|
|
627
650
|
} | {
|
|
628
651
|
type: "FORCE_TRACKING_STATUS";
|
|
@@ -635,7 +658,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
635
658
|
ip: string;
|
|
636
659
|
userId: string;
|
|
637
660
|
userName: string;
|
|
638
|
-
userPriority:
|
|
661
|
+
userPriority: number;
|
|
639
662
|
} | undefined;
|
|
640
663
|
};
|
|
641
664
|
}, {
|
|
@@ -675,11 +698,11 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
675
698
|
params: {
|
|
676
699
|
userId: string;
|
|
677
700
|
userName: string;
|
|
678
|
-
userPriority:
|
|
701
|
+
userPriority: string;
|
|
679
702
|
};
|
|
680
703
|
type: "USER_ACTION";
|
|
681
704
|
ip: string;
|
|
682
|
-
cgi:
|
|
705
|
+
cgi: PlaneTrackerUserActions;
|
|
683
706
|
postJsonBody?: any;
|
|
684
707
|
} | {
|
|
685
708
|
type: "CONNECTED_USERS";
|
|
@@ -687,7 +710,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
687
710
|
ip: string;
|
|
688
711
|
userId: string;
|
|
689
712
|
userName: string;
|
|
690
|
-
userPriority:
|
|
713
|
+
userPriority: number;
|
|
691
714
|
}[];
|
|
692
715
|
} | {
|
|
693
716
|
type: "FORCE_TRACKING_STATUS";
|
|
@@ -700,7 +723,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
700
723
|
ip: string;
|
|
701
724
|
userId: string;
|
|
702
725
|
userName: string;
|
|
703
|
-
userPriority:
|
|
726
|
+
userPriority: number;
|
|
704
727
|
} | undefined;
|
|
705
728
|
};
|
|
706
729
|
}>, z.ZodObject<{
|
|
@@ -834,55 +857,55 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
834
857
|
params: z.ZodObject<{
|
|
835
858
|
userId: z.ZodString;
|
|
836
859
|
userName: z.ZodString;
|
|
837
|
-
userPriority: z.
|
|
860
|
+
userPriority: z.ZodString;
|
|
838
861
|
}, "strip", z.ZodTypeAny, {
|
|
839
862
|
userId: string;
|
|
840
863
|
userName: string;
|
|
841
|
-
userPriority:
|
|
864
|
+
userPriority: string;
|
|
842
865
|
}, {
|
|
843
866
|
userId: string;
|
|
844
867
|
userName: string;
|
|
845
|
-
userPriority:
|
|
868
|
+
userPriority: string;
|
|
846
869
|
}>;
|
|
847
|
-
cgi: z.ZodEnum<[
|
|
870
|
+
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]>;
|
|
848
871
|
postJsonBody: z.ZodAny;
|
|
849
872
|
}, "strip", z.ZodTypeAny, {
|
|
850
873
|
params: {
|
|
851
874
|
userId: string;
|
|
852
875
|
userName: string;
|
|
853
|
-
userPriority:
|
|
876
|
+
userPriority: string;
|
|
854
877
|
};
|
|
855
878
|
type: "USER_ACTION";
|
|
856
879
|
ip: string;
|
|
857
|
-
cgi:
|
|
880
|
+
cgi: PlaneTrackerUserActions;
|
|
858
881
|
postJsonBody?: any;
|
|
859
882
|
}, {
|
|
860
883
|
params: {
|
|
861
884
|
userId: string;
|
|
862
885
|
userName: string;
|
|
863
|
-
userPriority:
|
|
886
|
+
userPriority: string;
|
|
864
887
|
};
|
|
865
888
|
type: "USER_ACTION";
|
|
866
889
|
ip: string;
|
|
867
|
-
cgi:
|
|
890
|
+
cgi: PlaneTrackerUserActions;
|
|
868
891
|
postJsonBody?: any;
|
|
869
892
|
}>, z.ZodObject<{
|
|
870
893
|
type: z.ZodLiteral<"CONNECTED_USERS">;
|
|
871
894
|
users: z.ZodArray<z.ZodObject<{
|
|
872
895
|
userId: z.ZodString;
|
|
873
896
|
userName: z.ZodString;
|
|
874
|
-
userPriority: z.
|
|
897
|
+
userPriority: z.ZodNumber;
|
|
875
898
|
ip: z.ZodString;
|
|
876
899
|
}, "strip", z.ZodTypeAny, {
|
|
877
900
|
ip: string;
|
|
878
901
|
userId: string;
|
|
879
902
|
userName: string;
|
|
880
|
-
userPriority:
|
|
903
|
+
userPriority: number;
|
|
881
904
|
}, {
|
|
882
905
|
ip: string;
|
|
883
906
|
userId: string;
|
|
884
907
|
userName: string;
|
|
885
|
-
userPriority:
|
|
908
|
+
userPriority: number;
|
|
886
909
|
}>, "many">;
|
|
887
910
|
}, "strip", z.ZodTypeAny, {
|
|
888
911
|
type: "CONNECTED_USERS";
|
|
@@ -890,7 +913,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
890
913
|
ip: string;
|
|
891
914
|
userId: string;
|
|
892
915
|
userName: string;
|
|
893
|
-
userPriority:
|
|
916
|
+
userPriority: number;
|
|
894
917
|
}[];
|
|
895
918
|
}, {
|
|
896
919
|
type: "CONNECTED_USERS";
|
|
@@ -898,7 +921,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
898
921
|
ip: string;
|
|
899
922
|
userId: string;
|
|
900
923
|
userName: string;
|
|
901
|
-
userPriority:
|
|
924
|
+
userPriority: number;
|
|
902
925
|
}[];
|
|
903
926
|
}>, z.ZodObject<{
|
|
904
927
|
type: z.ZodLiteral<"FORCE_TRACKING_STATUS">;
|
|
@@ -918,18 +941,18 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
918
941
|
user: z.ZodOptional<z.ZodObject<{
|
|
919
942
|
userId: z.ZodString;
|
|
920
943
|
userName: z.ZodString;
|
|
921
|
-
userPriority: z.
|
|
944
|
+
userPriority: z.ZodNumber;
|
|
922
945
|
ip: z.ZodString;
|
|
923
946
|
}, "strip", z.ZodTypeAny, {
|
|
924
947
|
ip: string;
|
|
925
948
|
userId: string;
|
|
926
949
|
userName: string;
|
|
927
|
-
userPriority:
|
|
950
|
+
userPriority: number;
|
|
928
951
|
}, {
|
|
929
952
|
ip: string;
|
|
930
953
|
userId: string;
|
|
931
954
|
userName: string;
|
|
932
|
-
userPriority:
|
|
955
|
+
userPriority: number;
|
|
933
956
|
}>>;
|
|
934
957
|
}, "strip", z.ZodTypeAny, {
|
|
935
958
|
type: "API_LOCK_STATUS";
|
|
@@ -938,7 +961,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
938
961
|
ip: string;
|
|
939
962
|
userId: string;
|
|
940
963
|
userName: string;
|
|
941
|
-
userPriority:
|
|
964
|
+
userPriority: number;
|
|
942
965
|
} | undefined;
|
|
943
966
|
}, {
|
|
944
967
|
type: "API_LOCK_STATUS";
|
|
@@ -947,7 +970,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
947
970
|
ip: string;
|
|
948
971
|
userId: string;
|
|
949
972
|
userName: string;
|
|
950
|
-
userPriority:
|
|
973
|
+
userPriority: number;
|
|
951
974
|
} | undefined;
|
|
952
975
|
}>]>;
|
|
953
976
|
export type TPlaneTrackerEvent = z.infer<typeof ptrEventsDataSchema>;
|