camstreamerlib 4.0.15 → 4.0.16

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.
@@ -107,6 +107,7 @@ export declare enum EUserActions {
107
107
  TRACK_ICAO = "trackIcao.cgi",
108
108
  TRACK_TARGET = "trackTarget.cgi",
109
109
  RESET_ICAO = "resetIcao.cgi",
110
+ RESET_TARGET = "resetTarget.cgi",
110
111
  SET_PRIORITY_LIST = "setPriorityList.cgi",
111
112
  SET_BLACK_LIST = "setBlackList.cgi",
112
113
  SET_WHITE_LIST = "setWhiteList.cgi",
@@ -408,6 +409,44 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
408
409
  ip: string;
409
410
  cgi: EUserActions.RESET_ICAO;
410
411
  postJsonBody?: any;
412
+ }>, z.ZodObject<{
413
+ type: z.ZodLiteral<"USER_ACTION">;
414
+ cgi: z.ZodLiteral<EUserActions.RESET_TARGET>;
415
+ ip: z.ZodString;
416
+ params: z.ZodObject<{
417
+ userId: z.ZodString;
418
+ userName: z.ZodString;
419
+ userPriority: z.ZodString;
420
+ }, "strip", z.ZodTypeAny, {
421
+ userId: string;
422
+ userName: string;
423
+ userPriority: string;
424
+ }, {
425
+ userId: string;
426
+ userName: string;
427
+ userPriority: string;
428
+ }>;
429
+ postJsonBody: z.ZodAny;
430
+ }, "strip", z.ZodTypeAny, {
431
+ params: {
432
+ userId: string;
433
+ userName: string;
434
+ userPriority: string;
435
+ };
436
+ type: "USER_ACTION";
437
+ ip: string;
438
+ cgi: EUserActions.RESET_TARGET;
439
+ postJsonBody?: any;
440
+ }, {
441
+ params: {
442
+ userId: string;
443
+ userName: string;
444
+ userPriority: string;
445
+ };
446
+ type: "USER_ACTION";
447
+ ip: string;
448
+ cgi: EUserActions.RESET_TARGET;
449
+ postJsonBody?: any;
411
450
  }>, z.ZodObject<{
412
451
  type: z.ZodLiteral<"USER_ACTION">;
413
452
  cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;
@@ -1406,6 +1445,44 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1406
1445
  ip: string;
1407
1446
  cgi: EUserActions.RESET_ICAO;
1408
1447
  postJsonBody?: any;
1448
+ }>, z.ZodObject<{
1449
+ type: z.ZodLiteral<"USER_ACTION">;
1450
+ cgi: z.ZodLiteral<EUserActions.RESET_TARGET>;
1451
+ ip: z.ZodString;
1452
+ params: z.ZodObject<{
1453
+ userId: z.ZodString;
1454
+ userName: z.ZodString;
1455
+ userPriority: z.ZodString;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ userId: string;
1458
+ userName: string;
1459
+ userPriority: string;
1460
+ }, {
1461
+ userId: string;
1462
+ userName: string;
1463
+ userPriority: string;
1464
+ }>;
1465
+ postJsonBody: z.ZodAny;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ params: {
1468
+ userId: string;
1469
+ userName: string;
1470
+ userPriority: string;
1471
+ };
1472
+ type: "USER_ACTION";
1473
+ ip: string;
1474
+ cgi: EUserActions.RESET_TARGET;
1475
+ postJsonBody?: any;
1476
+ }, {
1477
+ params: {
1478
+ userId: string;
1479
+ userName: string;
1480
+ userPriority: string;
1481
+ };
1482
+ type: "USER_ACTION";
1483
+ ip: string;
1484
+ cgi: EUserActions.RESET_TARGET;
1485
+ postJsonBody?: any;
1409
1486
  }>, z.ZodObject<{
1410
1487
  type: z.ZodLiteral<"USER_ACTION">;
1411
1488
  cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;
@@ -2185,6 +2262,16 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2185
2262
  ip: string;
2186
2263
  cgi: EUserActions.RESET_ICAO;
2187
2264
  postJsonBody?: any;
2265
+ } | {
2266
+ params: {
2267
+ userId: string;
2268
+ userName: string;
2269
+ userPriority: string;
2270
+ };
2271
+ type: "USER_ACTION";
2272
+ ip: string;
2273
+ cgi: EUserActions.RESET_TARGET;
2274
+ postJsonBody?: any;
2188
2275
  } | {
2189
2276
  params: {
2190
2277
  userId: string;
@@ -2414,6 +2501,16 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2414
2501
  ip: string;
2415
2502
  cgi: EUserActions.RESET_ICAO;
2416
2503
  postJsonBody?: any;
2504
+ } | {
2505
+ params: {
2506
+ userId: string;
2507
+ userName: string;
2508
+ userPriority: string;
2509
+ };
2510
+ type: "USER_ACTION";
2511
+ ip: string;
2512
+ cgi: EUserActions.RESET_TARGET;
2513
+ postJsonBody?: any;
2417
2514
  } | {
2418
2515
  params: {
2419
2516
  userId: string;
@@ -2860,6 +2957,44 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2860
2957
  ip: string;
2861
2958
  cgi: EUserActions.RESET_ICAO;
2862
2959
  postJsonBody?: any;
2960
+ }>, z.ZodObject<{
2961
+ type: z.ZodLiteral<"USER_ACTION">;
2962
+ cgi: z.ZodLiteral<EUserActions.RESET_TARGET>;
2963
+ ip: z.ZodString;
2964
+ params: z.ZodObject<{
2965
+ userId: z.ZodString;
2966
+ userName: z.ZodString;
2967
+ userPriority: z.ZodString;
2968
+ }, "strip", z.ZodTypeAny, {
2969
+ userId: string;
2970
+ userName: string;
2971
+ userPriority: string;
2972
+ }, {
2973
+ userId: string;
2974
+ userName: string;
2975
+ userPriority: string;
2976
+ }>;
2977
+ postJsonBody: z.ZodAny;
2978
+ }, "strip", z.ZodTypeAny, {
2979
+ params: {
2980
+ userId: string;
2981
+ userName: string;
2982
+ userPriority: string;
2983
+ };
2984
+ type: "USER_ACTION";
2985
+ ip: string;
2986
+ cgi: EUserActions.RESET_TARGET;
2987
+ postJsonBody?: any;
2988
+ }, {
2989
+ params: {
2990
+ userId: string;
2991
+ userName: string;
2992
+ userPriority: string;
2993
+ };
2994
+ type: "USER_ACTION";
2995
+ ip: string;
2996
+ cgi: EUserActions.RESET_TARGET;
2997
+ postJsonBody?: any;
2863
2998
  }>, z.ZodObject<{
2864
2999
  type: z.ZodLiteral<"USER_ACTION">;
2865
3000
  cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;
@@ -47,6 +47,7 @@ var EUserActions;
47
47
  EUserActions["TRACK_ICAO"] = "trackIcao.cgi";
48
48
  EUserActions["TRACK_TARGET"] = "trackTarget.cgi";
49
49
  EUserActions["RESET_ICAO"] = "resetIcao.cgi";
50
+ EUserActions["RESET_TARGET"] = "resetTarget.cgi";
50
51
  EUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
51
52
  EUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
52
53
  EUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
@@ -89,6 +90,13 @@ const eventsDataSchema = zod_1.z.union([
89
90
  params: userSchema,
90
91
  postJsonBody: zod_1.z.any(),
91
92
  }),
93
+ zod_1.z.object({
94
+ type: zod_1.z.literal('USER_ACTION'),
95
+ cgi: zod_1.z.literal(EUserActions.RESET_TARGET),
96
+ ip: zod_1.z.string(),
97
+ params: userSchema,
98
+ postJsonBody: zod_1.z.any(),
99
+ }),
92
100
  zod_1.z.object({
93
101
  type: zod_1.z.literal('USER_ACTION'),
94
102
  cgi: zod_1.z.literal(EUserActions.SET_PRIORITY_LIST),
@@ -44,6 +44,7 @@ export var EUserActions;
44
44
  EUserActions["TRACK_ICAO"] = "trackIcao.cgi";
45
45
  EUserActions["TRACK_TARGET"] = "trackTarget.cgi";
46
46
  EUserActions["RESET_ICAO"] = "resetIcao.cgi";
47
+ EUserActions["RESET_TARGET"] = "resetTarget.cgi";
47
48
  EUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
48
49
  EUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
49
50
  EUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
@@ -86,6 +87,13 @@ const eventsDataSchema = z.union([
86
87
  params: userSchema,
87
88
  postJsonBody: z.any(),
88
89
  }),
90
+ z.object({
91
+ type: z.literal('USER_ACTION'),
92
+ cgi: z.literal(EUserActions.RESET_TARGET),
93
+ ip: z.string(),
94
+ params: userSchema,
95
+ postJsonBody: z.any(),
96
+ }),
89
97
  z.object({
90
98
  type: z.literal('USER_ACTION'),
91
99
  cgi: z.literal(EUserActions.SET_PRIORITY_LIST),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.15",
3
+ "version": "4.0.16",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {
@@ -107,6 +107,7 @@ export declare enum EUserActions {
107
107
  TRACK_ICAO = "trackIcao.cgi",
108
108
  TRACK_TARGET = "trackTarget.cgi",
109
109
  RESET_ICAO = "resetIcao.cgi",
110
+ RESET_TARGET = "resetTarget.cgi",
110
111
  SET_PRIORITY_LIST = "setPriorityList.cgi",
111
112
  SET_BLACK_LIST = "setBlackList.cgi",
112
113
  SET_WHITE_LIST = "setWhiteList.cgi",
@@ -408,6 +409,44 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
408
409
  ip: string;
409
410
  cgi: EUserActions.RESET_ICAO;
410
411
  postJsonBody?: any;
412
+ }>, z.ZodObject<{
413
+ type: z.ZodLiteral<"USER_ACTION">;
414
+ cgi: z.ZodLiteral<EUserActions.RESET_TARGET>;
415
+ ip: z.ZodString;
416
+ params: z.ZodObject<{
417
+ userId: z.ZodString;
418
+ userName: z.ZodString;
419
+ userPriority: z.ZodString;
420
+ }, "strip", z.ZodTypeAny, {
421
+ userId: string;
422
+ userName: string;
423
+ userPriority: string;
424
+ }, {
425
+ userId: string;
426
+ userName: string;
427
+ userPriority: string;
428
+ }>;
429
+ postJsonBody: z.ZodAny;
430
+ }, "strip", z.ZodTypeAny, {
431
+ params: {
432
+ userId: string;
433
+ userName: string;
434
+ userPriority: string;
435
+ };
436
+ type: "USER_ACTION";
437
+ ip: string;
438
+ cgi: EUserActions.RESET_TARGET;
439
+ postJsonBody?: any;
440
+ }, {
441
+ params: {
442
+ userId: string;
443
+ userName: string;
444
+ userPriority: string;
445
+ };
446
+ type: "USER_ACTION";
447
+ ip: string;
448
+ cgi: EUserActions.RESET_TARGET;
449
+ postJsonBody?: any;
411
450
  }>, z.ZodObject<{
412
451
  type: z.ZodLiteral<"USER_ACTION">;
413
452
  cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;
@@ -1406,6 +1445,44 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1406
1445
  ip: string;
1407
1446
  cgi: EUserActions.RESET_ICAO;
1408
1447
  postJsonBody?: any;
1448
+ }>, z.ZodObject<{
1449
+ type: z.ZodLiteral<"USER_ACTION">;
1450
+ cgi: z.ZodLiteral<EUserActions.RESET_TARGET>;
1451
+ ip: z.ZodString;
1452
+ params: z.ZodObject<{
1453
+ userId: z.ZodString;
1454
+ userName: z.ZodString;
1455
+ userPriority: z.ZodString;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ userId: string;
1458
+ userName: string;
1459
+ userPriority: string;
1460
+ }, {
1461
+ userId: string;
1462
+ userName: string;
1463
+ userPriority: string;
1464
+ }>;
1465
+ postJsonBody: z.ZodAny;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ params: {
1468
+ userId: string;
1469
+ userName: string;
1470
+ userPriority: string;
1471
+ };
1472
+ type: "USER_ACTION";
1473
+ ip: string;
1474
+ cgi: EUserActions.RESET_TARGET;
1475
+ postJsonBody?: any;
1476
+ }, {
1477
+ params: {
1478
+ userId: string;
1479
+ userName: string;
1480
+ userPriority: string;
1481
+ };
1482
+ type: "USER_ACTION";
1483
+ ip: string;
1484
+ cgi: EUserActions.RESET_TARGET;
1485
+ postJsonBody?: any;
1409
1486
  }>, z.ZodObject<{
1410
1487
  type: z.ZodLiteral<"USER_ACTION">;
1411
1488
  cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;
@@ -2185,6 +2262,16 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2185
2262
  ip: string;
2186
2263
  cgi: EUserActions.RESET_ICAO;
2187
2264
  postJsonBody?: any;
2265
+ } | {
2266
+ params: {
2267
+ userId: string;
2268
+ userName: string;
2269
+ userPriority: string;
2270
+ };
2271
+ type: "USER_ACTION";
2272
+ ip: string;
2273
+ cgi: EUserActions.RESET_TARGET;
2274
+ postJsonBody?: any;
2188
2275
  } | {
2189
2276
  params: {
2190
2277
  userId: string;
@@ -2414,6 +2501,16 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2414
2501
  ip: string;
2415
2502
  cgi: EUserActions.RESET_ICAO;
2416
2503
  postJsonBody?: any;
2504
+ } | {
2505
+ params: {
2506
+ userId: string;
2507
+ userName: string;
2508
+ userPriority: string;
2509
+ };
2510
+ type: "USER_ACTION";
2511
+ ip: string;
2512
+ cgi: EUserActions.RESET_TARGET;
2513
+ postJsonBody?: any;
2417
2514
  } | {
2418
2515
  params: {
2419
2516
  userId: string;
@@ -2860,6 +2957,44 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2860
2957
  ip: string;
2861
2958
  cgi: EUserActions.RESET_ICAO;
2862
2959
  postJsonBody?: any;
2960
+ }>, z.ZodObject<{
2961
+ type: z.ZodLiteral<"USER_ACTION">;
2962
+ cgi: z.ZodLiteral<EUserActions.RESET_TARGET>;
2963
+ ip: z.ZodString;
2964
+ params: z.ZodObject<{
2965
+ userId: z.ZodString;
2966
+ userName: z.ZodString;
2967
+ userPriority: z.ZodString;
2968
+ }, "strip", z.ZodTypeAny, {
2969
+ userId: string;
2970
+ userName: string;
2971
+ userPriority: string;
2972
+ }, {
2973
+ userId: string;
2974
+ userName: string;
2975
+ userPriority: string;
2976
+ }>;
2977
+ postJsonBody: z.ZodAny;
2978
+ }, "strip", z.ZodTypeAny, {
2979
+ params: {
2980
+ userId: string;
2981
+ userName: string;
2982
+ userPriority: string;
2983
+ };
2984
+ type: "USER_ACTION";
2985
+ ip: string;
2986
+ cgi: EUserActions.RESET_TARGET;
2987
+ postJsonBody?: any;
2988
+ }, {
2989
+ params: {
2990
+ userId: string;
2991
+ userName: string;
2992
+ userPriority: string;
2993
+ };
2994
+ type: "USER_ACTION";
2995
+ ip: string;
2996
+ cgi: EUserActions.RESET_TARGET;
2997
+ postJsonBody?: any;
2863
2998
  }>, z.ZodObject<{
2864
2999
  type: z.ZodLiteral<"USER_ACTION">;
2865
3000
  cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;