camstreamerlib 4.0.0-beta.48 → 4.0.0-beta.49

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.
@@ -16,6 +16,7 @@ class PlaneTrackerAPI {
16
16
  this.apiUser = apiUser;
17
17
  }
18
18
  static getProxyPath = () => `${BASE_PATH}/proxy.cgi`;
19
+ static getWsEventsPath = () => `${BASE_PATH}/package/ws`;
19
20
  getClient(proxyParams) {
20
21
  return proxyParams ? new ProxyClient_1.ProxyClient(this.client, proxyParams) : this.client;
21
22
  }
@@ -151,11 +152,11 @@ class PlaneTrackerAPI {
151
152
  }
152
153
  async goToCoordinates(lat, lon, alt, options) {
153
154
  const agent = this.getClient(options?.proxyParams);
154
- return await agent.get({
155
+ return (await agent.get({
155
156
  path: `${BASE_PATH}/package/goToCoordinates.cgi`,
156
157
  parameters: { lat, lon, alt, ...this.apiUser },
157
158
  timeout: options?.timeout,
158
- });
159
+ }));
159
160
  }
160
161
  async checkGenetecConnection(params, options) {
161
162
  return await this._postUrlEncoded(`${BASE_PATH}/package/checkGenetecConnection.cgi`, params, options);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ptrEventsSchema = void 0;
3
+ exports.ptrEventsSchema = exports.EUserActions = 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,9 +22,23 @@ 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.number(),
25
+ userPriority: zod_1.z.string(),
26
26
  ip: zod_1.z.string(),
27
27
  });
28
+ var EUserActions;
29
+ (function (EUserActions) {
30
+ EUserActions["TRACK_ICAO"] = "trackIcao.cgi";
31
+ EUserActions["RESET_ICAO"] = "resetIcao.cgi";
32
+ EUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
33
+ EUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
34
+ EUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
35
+ EUserActions["GO_TO_COORDINATES"] = "goToCoordinates.cgi";
36
+ EUserActions["SET_TRACKING_MODE"] = "setTrackingMode.cgi";
37
+ EUserActions["SET_ZONES"] = "setZones.cgi";
38
+ EUserActions["RESET_PTZ_CALIBRATION"] = "resetPtzCalibration.cgi";
39
+ EUserActions["LOCK_API"] = "lockApi.cgi";
40
+ EUserActions["UNLOCK_API"] = "unlockApi.cgi";
41
+ })(EUserActions || (exports.EUserActions = EUserActions = {}));
28
42
  const ptrEventsDataSchema = zod_1.z.discriminatedUnion('type', [
29
43
  zod_1.z.object({
30
44
  type: zod_1.z.literal('CAMERA_POSITION'),
@@ -53,7 +67,19 @@ const ptrEventsDataSchema = zod_1.z.discriminatedUnion('type', [
53
67
  userName: zod_1.z.string(),
54
68
  userPriority: zod_1.z.number(),
55
69
  }),
56
- cgi: zod_1.z.string(),
70
+ cgi: zod_1.z.enum([
71
+ EUserActions.TRACK_ICAO,
72
+ EUserActions.RESET_ICAO,
73
+ EUserActions.SET_PRIORITY_LIST,
74
+ EUserActions.SET_BLACK_LIST,
75
+ EUserActions.SET_WHITE_LIST,
76
+ EUserActions.GO_TO_COORDINATES,
77
+ EUserActions.SET_TRACKING_MODE,
78
+ EUserActions.SET_ZONES,
79
+ EUserActions.RESET_PTZ_CALIBRATION,
80
+ EUserActions.LOCK_API,
81
+ EUserActions.UNLOCK_API,
82
+ ]),
57
83
  postJsonBody: zod_1.z.any(),
58
84
  }),
59
85
  zod_1.z.object({
@@ -13,6 +13,7 @@ export class PlaneTrackerAPI {
13
13
  this.apiUser = apiUser;
14
14
  }
15
15
  static getProxyPath = () => `${BASE_PATH}/proxy.cgi`;
16
+ static getWsEventsPath = () => `${BASE_PATH}/package/ws`;
16
17
  getClient(proxyParams) {
17
18
  return proxyParams ? new ProxyClient(this.client, proxyParams) : this.client;
18
19
  }
@@ -148,11 +149,11 @@ export class PlaneTrackerAPI {
148
149
  }
149
150
  async goToCoordinates(lat, lon, alt, options) {
150
151
  const agent = this.getClient(options?.proxyParams);
151
- return await agent.get({
152
+ return (await agent.get({
152
153
  path: `${BASE_PATH}/package/goToCoordinates.cgi`,
153
154
  parameters: { lat, lon, alt, ...this.apiUser },
154
155
  timeout: options?.timeout,
155
- });
156
+ }));
156
157
  }
157
158
  async checkGenetecConnection(params, options) {
158
159
  return await this._postUrlEncoded(`${BASE_PATH}/package/checkGenetecConnection.cgi`, params, options);
@@ -19,9 +19,23 @@ const apiFlightDataSchema = z.object({
19
19
  const apiUserSchema = z.object({
20
20
  userId: z.string(),
21
21
  userName: z.string(),
22
- userPriority: z.number(),
22
+ userPriority: z.string(),
23
23
  ip: z.string(),
24
24
  });
25
+ export var EUserActions;
26
+ (function (EUserActions) {
27
+ EUserActions["TRACK_ICAO"] = "trackIcao.cgi";
28
+ EUserActions["RESET_ICAO"] = "resetIcao.cgi";
29
+ EUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
30
+ EUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
31
+ EUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
32
+ EUserActions["GO_TO_COORDINATES"] = "goToCoordinates.cgi";
33
+ EUserActions["SET_TRACKING_MODE"] = "setTrackingMode.cgi";
34
+ EUserActions["SET_ZONES"] = "setZones.cgi";
35
+ EUserActions["RESET_PTZ_CALIBRATION"] = "resetPtzCalibration.cgi";
36
+ EUserActions["LOCK_API"] = "lockApi.cgi";
37
+ EUserActions["UNLOCK_API"] = "unlockApi.cgi";
38
+ })(EUserActions || (EUserActions = {}));
25
39
  const ptrEventsDataSchema = z.discriminatedUnion('type', [
26
40
  z.object({
27
41
  type: z.literal('CAMERA_POSITION'),
@@ -50,7 +64,19 @@ const ptrEventsDataSchema = z.discriminatedUnion('type', [
50
64
  userName: z.string(),
51
65
  userPriority: z.number(),
52
66
  }),
53
- cgi: z.string(),
67
+ cgi: z.enum([
68
+ EUserActions.TRACK_ICAO,
69
+ EUserActions.RESET_ICAO,
70
+ EUserActions.SET_PRIORITY_LIST,
71
+ EUserActions.SET_BLACK_LIST,
72
+ EUserActions.SET_WHITE_LIST,
73
+ EUserActions.GO_TO_COORDINATES,
74
+ EUserActions.SET_TRACKING_MODE,
75
+ EUserActions.SET_ZONES,
76
+ EUserActions.RESET_PTZ_CALIBRATION,
77
+ EUserActions.LOCK_API,
78
+ EUserActions.UNLOCK_API,
79
+ ]),
54
80
  postJsonBody: z.any(),
55
81
  }),
56
82
  z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.0-beta.48",
3
+ "version": "4.0.0-beta.49",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {
@@ -7,6 +7,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
7
7
  private apiUser;
8
8
  constructor(client: Client, apiUser: TApiUser);
9
9
  static getProxyPath: () => string;
10
+ static getWsEventsPath: () => string;
10
11
  getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
11
12
  checkCameraTime(options?: THttpRequestOptions): Promise<boolean>;
12
13
  serverRunCheck(options?: THttpRequestOptions): Promise<TResponse>;
@@ -215,7 +216,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
215
216
  }[];
216
217
  }>;
217
218
  setZones(zones: TZones, options?: THttpRequestOptions): Promise<void>;
218
- goToCoordinates(lat: number, lon: number, alt?: number, options?: THttpRequestOptions): Promise<TResponse>;
219
+ goToCoordinates(lat: number, lon: number, alt?: number, options?: THttpRequestOptions): Promise<ReturnType<Client["get"]>>;
219
220
  checkGenetecConnection(params: TParameters, options?: THttpRequestOptions): Promise<TResponse>;
220
221
  getGenetecCameraList(params: TParameters, options?: THttpRequestOptions): Promise<{
221
222
  value: string;
@@ -51,19 +51,32 @@ 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.ZodNumber;
54
+ userPriority: z.ZodString;
55
55
  ip: z.ZodString;
56
56
  }, "strip", z.ZodTypeAny, {
57
57
  ip: string;
58
58
  userId: string;
59
59
  userName: string;
60
- userPriority: number;
60
+ userPriority: string;
61
61
  }, {
62
62
  ip: string;
63
63
  userId: string;
64
64
  userName: string;
65
- userPriority: number;
65
+ userPriority: string;
66
66
  }>;
67
+ export declare enum EUserActions {
68
+ TRACK_ICAO = "trackIcao.cgi",
69
+ RESET_ICAO = "resetIcao.cgi",
70
+ SET_PRIORITY_LIST = "setPriorityList.cgi",
71
+ SET_BLACK_LIST = "setBlackList.cgi",
72
+ SET_WHITE_LIST = "setWhiteList.cgi",
73
+ GO_TO_COORDINATES = "goToCoordinates.cgi",
74
+ SET_TRACKING_MODE = "setTrackingMode.cgi",
75
+ SET_ZONES = "setZones.cgi",
76
+ RESET_PTZ_CALIBRATION = "resetPtzCalibration.cgi",
77
+ LOCK_API = "lockApi.cgi",
78
+ UNLOCK_API = "unlockApi.cgi"
79
+ }
67
80
  declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
68
81
  type: z.ZodLiteral<"CAMERA_POSITION">;
69
82
  lat: z.ZodNumber;
@@ -205,7 +218,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
205
218
  userName: string;
206
219
  userPriority: number;
207
220
  }>;
208
- cgi: z.ZodString;
221
+ cgi: z.ZodEnum<[EUserActions.TRACK_ICAO, EUserActions.RESET_ICAO, EUserActions.SET_PRIORITY_LIST, EUserActions.SET_BLACK_LIST, EUserActions.SET_WHITE_LIST, EUserActions.GO_TO_COORDINATES, EUserActions.SET_TRACKING_MODE, EUserActions.SET_ZONES, EUserActions.RESET_PTZ_CALIBRATION, EUserActions.LOCK_API, EUserActions.UNLOCK_API]>;
209
222
  postJsonBody: z.ZodAny;
210
223
  }, "strip", z.ZodTypeAny, {
211
224
  params: {
@@ -215,7 +228,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
215
228
  };
216
229
  type: "USER_ACTION";
217
230
  ip: string;
218
- cgi: string;
231
+ cgi: EUserActions;
219
232
  postJsonBody?: any;
220
233
  }, {
221
234
  params: {
@@ -225,25 +238,25 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
225
238
  };
226
239
  type: "USER_ACTION";
227
240
  ip: string;
228
- cgi: string;
241
+ cgi: EUserActions;
229
242
  postJsonBody?: any;
230
243
  }>, z.ZodObject<{
231
244
  type: z.ZodLiteral<"CONNECTED_USERS">;
232
245
  users: z.ZodArray<z.ZodObject<{
233
246
  userId: z.ZodString;
234
247
  userName: z.ZodString;
235
- userPriority: z.ZodNumber;
248
+ userPriority: z.ZodString;
236
249
  ip: z.ZodString;
237
250
  }, "strip", z.ZodTypeAny, {
238
251
  ip: string;
239
252
  userId: string;
240
253
  userName: string;
241
- userPriority: number;
254
+ userPriority: string;
242
255
  }, {
243
256
  ip: string;
244
257
  userId: string;
245
258
  userName: string;
246
- userPriority: number;
259
+ userPriority: string;
247
260
  }>, "many">;
248
261
  }, "strip", z.ZodTypeAny, {
249
262
  type: "CONNECTED_USERS";
@@ -251,7 +264,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
251
264
  ip: string;
252
265
  userId: string;
253
266
  userName: string;
254
- userPriority: number;
267
+ userPriority: string;
255
268
  }[];
256
269
  }, {
257
270
  type: "CONNECTED_USERS";
@@ -259,7 +272,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
259
272
  ip: string;
260
273
  userId: string;
261
274
  userName: string;
262
- userPriority: number;
275
+ userPriority: string;
263
276
  }[];
264
277
  }>, z.ZodObject<{
265
278
  type: z.ZodLiteral<"FORCE_TRACKING_STATUS">;
@@ -279,18 +292,18 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
279
292
  user: z.ZodOptional<z.ZodObject<{
280
293
  userId: z.ZodString;
281
294
  userName: z.ZodString;
282
- userPriority: z.ZodNumber;
295
+ userPriority: z.ZodString;
283
296
  ip: z.ZodString;
284
297
  }, "strip", z.ZodTypeAny, {
285
298
  ip: string;
286
299
  userId: string;
287
300
  userName: string;
288
- userPriority: number;
301
+ userPriority: string;
289
302
  }, {
290
303
  ip: string;
291
304
  userId: string;
292
305
  userName: string;
293
- userPriority: number;
306
+ userPriority: string;
294
307
  }>>;
295
308
  }, "strip", z.ZodTypeAny, {
296
309
  type: "API_LOCK_STATUS";
@@ -299,7 +312,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
299
312
  ip: string;
300
313
  userId: string;
301
314
  userName: string;
302
- userPriority: number;
315
+ userPriority: string;
303
316
  } | undefined;
304
317
  }, {
305
318
  type: "API_LOCK_STATUS";
@@ -308,7 +321,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
308
321
  ip: string;
309
322
  userId: string;
310
323
  userName: string;
311
- userPriority: number;
324
+ userPriority: string;
312
325
  } | undefined;
313
326
  }>]>;
314
327
  export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -454,7 +467,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
454
467
  userName: string;
455
468
  userPriority: number;
456
469
  }>;
457
- cgi: z.ZodString;
470
+ cgi: z.ZodEnum<[EUserActions.TRACK_ICAO, EUserActions.RESET_ICAO, EUserActions.SET_PRIORITY_LIST, EUserActions.SET_BLACK_LIST, EUserActions.SET_WHITE_LIST, EUserActions.GO_TO_COORDINATES, EUserActions.SET_TRACKING_MODE, EUserActions.SET_ZONES, EUserActions.RESET_PTZ_CALIBRATION, EUserActions.LOCK_API, EUserActions.UNLOCK_API]>;
458
471
  postJsonBody: z.ZodAny;
459
472
  }, "strip", z.ZodTypeAny, {
460
473
  params: {
@@ -464,7 +477,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
464
477
  };
465
478
  type: "USER_ACTION";
466
479
  ip: string;
467
- cgi: string;
480
+ cgi: EUserActions;
468
481
  postJsonBody?: any;
469
482
  }, {
470
483
  params: {
@@ -474,25 +487,25 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
474
487
  };
475
488
  type: "USER_ACTION";
476
489
  ip: string;
477
- cgi: string;
490
+ cgi: EUserActions;
478
491
  postJsonBody?: any;
479
492
  }>, z.ZodObject<{
480
493
  type: z.ZodLiteral<"CONNECTED_USERS">;
481
494
  users: z.ZodArray<z.ZodObject<{
482
495
  userId: z.ZodString;
483
496
  userName: z.ZodString;
484
- userPriority: z.ZodNumber;
497
+ userPriority: z.ZodString;
485
498
  ip: z.ZodString;
486
499
  }, "strip", z.ZodTypeAny, {
487
500
  ip: string;
488
501
  userId: string;
489
502
  userName: string;
490
- userPriority: number;
503
+ userPriority: string;
491
504
  }, {
492
505
  ip: string;
493
506
  userId: string;
494
507
  userName: string;
495
- userPriority: number;
508
+ userPriority: string;
496
509
  }>, "many">;
497
510
  }, "strip", z.ZodTypeAny, {
498
511
  type: "CONNECTED_USERS";
@@ -500,7 +513,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
500
513
  ip: string;
501
514
  userId: string;
502
515
  userName: string;
503
- userPriority: number;
516
+ userPriority: string;
504
517
  }[];
505
518
  }, {
506
519
  type: "CONNECTED_USERS";
@@ -508,7 +521,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
508
521
  ip: string;
509
522
  userId: string;
510
523
  userName: string;
511
- userPriority: number;
524
+ userPriority: string;
512
525
  }[];
513
526
  }>, z.ZodObject<{
514
527
  type: z.ZodLiteral<"FORCE_TRACKING_STATUS">;
@@ -528,18 +541,18 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
528
541
  user: z.ZodOptional<z.ZodObject<{
529
542
  userId: z.ZodString;
530
543
  userName: z.ZodString;
531
- userPriority: z.ZodNumber;
544
+ userPriority: z.ZodString;
532
545
  ip: z.ZodString;
533
546
  }, "strip", z.ZodTypeAny, {
534
547
  ip: string;
535
548
  userId: string;
536
549
  userName: string;
537
- userPriority: number;
550
+ userPriority: string;
538
551
  }, {
539
552
  ip: string;
540
553
  userId: string;
541
554
  userName: string;
542
- userPriority: number;
555
+ userPriority: string;
543
556
  }>>;
544
557
  }, "strip", z.ZodTypeAny, {
545
558
  type: "API_LOCK_STATUS";
@@ -548,7 +561,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
548
561
  ip: string;
549
562
  userId: string;
550
563
  userName: string;
551
- userPriority: number;
564
+ userPriority: string;
552
565
  } | undefined;
553
566
  }, {
554
567
  type: "API_LOCK_STATUS";
@@ -557,7 +570,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
557
570
  ip: string;
558
571
  userId: string;
559
572
  userName: string;
560
- userPriority: number;
573
+ userPriority: string;
561
574
  } | undefined;
562
575
  }>]>;
563
576
  }, "strip", z.ZodTypeAny, {
@@ -601,7 +614,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
601
614
  };
602
615
  type: "USER_ACTION";
603
616
  ip: string;
604
- cgi: string;
617
+ cgi: EUserActions;
605
618
  postJsonBody?: any;
606
619
  } | {
607
620
  type: "CONNECTED_USERS";
@@ -609,7 +622,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
609
622
  ip: string;
610
623
  userId: string;
611
624
  userName: string;
612
- userPriority: number;
625
+ userPriority: string;
613
626
  }[];
614
627
  } | {
615
628
  type: "FORCE_TRACKING_STATUS";
@@ -622,7 +635,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
622
635
  ip: string;
623
636
  userId: string;
624
637
  userName: string;
625
- userPriority: number;
638
+ userPriority: string;
626
639
  } | undefined;
627
640
  };
628
641
  }, {
@@ -666,7 +679,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
666
679
  };
667
680
  type: "USER_ACTION";
668
681
  ip: string;
669
- cgi: string;
682
+ cgi: EUserActions;
670
683
  postJsonBody?: any;
671
684
  } | {
672
685
  type: "CONNECTED_USERS";
@@ -674,7 +687,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
674
687
  ip: string;
675
688
  userId: string;
676
689
  userName: string;
677
- userPriority: number;
690
+ userPriority: string;
678
691
  }[];
679
692
  } | {
680
693
  type: "FORCE_TRACKING_STATUS";
@@ -687,7 +700,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
687
700
  ip: string;
688
701
  userId: string;
689
702
  userName: string;
690
- userPriority: number;
703
+ userPriority: string;
691
704
  } | undefined;
692
705
  };
693
706
  }>, z.ZodObject<{
@@ -831,7 +844,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
831
844
  userName: string;
832
845
  userPriority: number;
833
846
  }>;
834
- cgi: z.ZodString;
847
+ cgi: z.ZodEnum<[EUserActions.TRACK_ICAO, EUserActions.RESET_ICAO, EUserActions.SET_PRIORITY_LIST, EUserActions.SET_BLACK_LIST, EUserActions.SET_WHITE_LIST, EUserActions.GO_TO_COORDINATES, EUserActions.SET_TRACKING_MODE, EUserActions.SET_ZONES, EUserActions.RESET_PTZ_CALIBRATION, EUserActions.LOCK_API, EUserActions.UNLOCK_API]>;
835
848
  postJsonBody: z.ZodAny;
836
849
  }, "strip", z.ZodTypeAny, {
837
850
  params: {
@@ -841,7 +854,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
841
854
  };
842
855
  type: "USER_ACTION";
843
856
  ip: string;
844
- cgi: string;
857
+ cgi: EUserActions;
845
858
  postJsonBody?: any;
846
859
  }, {
847
860
  params: {
@@ -851,25 +864,25 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
851
864
  };
852
865
  type: "USER_ACTION";
853
866
  ip: string;
854
- cgi: string;
867
+ cgi: EUserActions;
855
868
  postJsonBody?: any;
856
869
  }>, z.ZodObject<{
857
870
  type: z.ZodLiteral<"CONNECTED_USERS">;
858
871
  users: z.ZodArray<z.ZodObject<{
859
872
  userId: z.ZodString;
860
873
  userName: z.ZodString;
861
- userPriority: z.ZodNumber;
874
+ userPriority: z.ZodString;
862
875
  ip: z.ZodString;
863
876
  }, "strip", z.ZodTypeAny, {
864
877
  ip: string;
865
878
  userId: string;
866
879
  userName: string;
867
- userPriority: number;
880
+ userPriority: string;
868
881
  }, {
869
882
  ip: string;
870
883
  userId: string;
871
884
  userName: string;
872
- userPriority: number;
885
+ userPriority: string;
873
886
  }>, "many">;
874
887
  }, "strip", z.ZodTypeAny, {
875
888
  type: "CONNECTED_USERS";
@@ -877,7 +890,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
877
890
  ip: string;
878
891
  userId: string;
879
892
  userName: string;
880
- userPriority: number;
893
+ userPriority: string;
881
894
  }[];
882
895
  }, {
883
896
  type: "CONNECTED_USERS";
@@ -885,7 +898,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
885
898
  ip: string;
886
899
  userId: string;
887
900
  userName: string;
888
- userPriority: number;
901
+ userPriority: string;
889
902
  }[];
890
903
  }>, z.ZodObject<{
891
904
  type: z.ZodLiteral<"FORCE_TRACKING_STATUS">;
@@ -905,18 +918,18 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
905
918
  user: z.ZodOptional<z.ZodObject<{
906
919
  userId: z.ZodString;
907
920
  userName: z.ZodString;
908
- userPriority: z.ZodNumber;
921
+ userPriority: z.ZodString;
909
922
  ip: z.ZodString;
910
923
  }, "strip", z.ZodTypeAny, {
911
924
  ip: string;
912
925
  userId: string;
913
926
  userName: string;
914
- userPriority: number;
927
+ userPriority: string;
915
928
  }, {
916
929
  ip: string;
917
930
  userId: string;
918
931
  userName: string;
919
- userPriority: number;
932
+ userPriority: string;
920
933
  }>>;
921
934
  }, "strip", z.ZodTypeAny, {
922
935
  type: "API_LOCK_STATUS";
@@ -925,7 +938,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
925
938
  ip: string;
926
939
  userId: string;
927
940
  userName: string;
928
- userPriority: number;
941
+ userPriority: string;
929
942
  } | undefined;
930
943
  }, {
931
944
  type: "API_LOCK_STATUS";
@@ -934,7 +947,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
934
947
  ip: string;
935
948
  userId: string;
936
949
  userName: string;
937
- userPriority: number;
950
+ userPriority: string;
938
951
  } | undefined;
939
952
  }>]>;
940
953
  export type TPlaneTrackerEvent = z.infer<typeof ptrEventsDataSchema>;