camstreamerlib 4.0.6 → 4.0.8
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.
- package/cjs/PlaneTrackerAPI.d.ts +15 -3
- package/cjs/PlaneTrackerAPI.js +23 -3
- package/cjs/types/PlaneTrackerAPI.d.ts +114 -5
- package/cjs/types/PlaneTrackerAPI.js +40 -1
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +2316 -642
- package/cjs/types/ws/PlaneTrackerEvents.js +85 -117
- package/cjs/ws/PlaneTrackerEvents.d.ts +3 -4
- package/cjs/ws/PlaneTrackerEvents.js +1 -9
- package/esm/PlaneTrackerAPI.js +24 -4
- package/esm/types/PlaneTrackerAPI.js +39 -0
- package/esm/types/ws/PlaneTrackerEvents.js +85 -117
- package/esm/ws/PlaneTrackerEvents.js +2 -10
- package/package.json +1 -1
- package/types/PlaneTrackerAPI.d.ts +15 -3
- package/types/types/PlaneTrackerAPI.d.ts +114 -5
- package/types/types/ws/PlaneTrackerEvents.d.ts +2316 -642
- package/types/ws/PlaneTrackerEvents.d.ts +3 -4
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { blackListSchema, priorityListSchema, trackingModeSchema, whiteListSchema, zonesSchema, } from '../PlaneTrackerAPI';
|
|
3
|
-
const
|
|
2
|
+
import { blackListSchema, priorityListSchema, trackingModeSchema, whiteListSchema, zonesSchema, domainIdSchema, } from '../PlaneTrackerAPI';
|
|
3
|
+
const wsApiFlightDataSchema = z.object({
|
|
4
|
+
targetId: z.string(),
|
|
4
5
|
icao: z.string(),
|
|
6
|
+
domain: domainIdSchema,
|
|
7
|
+
categoryId: z.string(),
|
|
8
|
+
groupId: z.string().optional(),
|
|
5
9
|
lat: z.number(),
|
|
6
10
|
lon: z.number(),
|
|
7
11
|
heading: z.number(),
|
|
@@ -12,7 +16,6 @@ const apiFlightDataSchema = z.object({
|
|
|
12
16
|
whiteListed: z.boolean(),
|
|
13
17
|
blackListed: z.boolean(),
|
|
14
18
|
priorityListed: z.boolean(),
|
|
15
|
-
typePriorityListed: z.boolean().default(false),
|
|
16
19
|
autoSelectionIgnored: z.boolean(),
|
|
17
20
|
signalQuality: z.number(),
|
|
18
21
|
emitterCategorySet: z.number().default(4),
|
|
@@ -20,169 +23,134 @@ const apiFlightDataSchema = z.object({
|
|
|
20
23
|
emergencyState: z.boolean(),
|
|
21
24
|
emergencyStatusMessage: z.string(),
|
|
22
25
|
});
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const wsCameraPositionDataSchema = z.object({
|
|
27
|
+
lat: z.number(),
|
|
28
|
+
lon: z.number(),
|
|
29
|
+
azimuth: z.number().min(0).max(360),
|
|
30
|
+
elevation: z.number().min(-90).max(90),
|
|
31
|
+
fov: z.number(),
|
|
28
32
|
});
|
|
29
|
-
const
|
|
33
|
+
const userSchema = z.object({
|
|
30
34
|
userId: z.string(),
|
|
31
35
|
userName: z.string(),
|
|
32
36
|
userPriority: z.string(),
|
|
33
37
|
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
PlaneTrackerUserActions["RESET_PTZ_CALIBRATION"] = "resetPtzCalibration.cgi";
|
|
55
|
-
PlaneTrackerUserActions["LOCK_API"] = "lockApi.cgi";
|
|
56
|
-
PlaneTrackerUserActions["UNLOCK_API"] = "unlockApi.cgi";
|
|
57
|
-
})(PlaneTrackerUserActions || (PlaneTrackerUserActions = {}));
|
|
58
|
-
export const planeTrackerUserActionData = z.discriminatedUnion('cgi', [
|
|
38
|
+
const apiUserSchema = userSchema.extend({
|
|
39
|
+
ip: z.string(),
|
|
40
|
+
userPriority: z.number(),
|
|
41
|
+
});
|
|
42
|
+
export var EUserActions;
|
|
43
|
+
(function (EUserActions) {
|
|
44
|
+
EUserActions["TRACK_ICAO"] = "trackIcao.cgi";
|
|
45
|
+
EUserActions["RESET_ICAO"] = "resetIcao.cgi";
|
|
46
|
+
EUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
|
|
47
|
+
EUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
|
|
48
|
+
EUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
|
|
49
|
+
EUserActions["GO_TO_COORDINATES"] = "goToCoordinates.cgi";
|
|
50
|
+
EUserActions["SET_TRACKING_MODE"] = "setTrackingMode.cgi";
|
|
51
|
+
EUserActions["SET_ZONES"] = "setZones.cgi";
|
|
52
|
+
EUserActions["RESET_PTZ_CALIBRATION"] = "resetPtzCalibration.cgi";
|
|
53
|
+
EUserActions["LOCK_API"] = "lockApi.cgi";
|
|
54
|
+
EUserActions["UNLOCK_API"] = "unlockApi.cgi";
|
|
55
|
+
})(EUserActions || (EUserActions = {}));
|
|
56
|
+
const eventsDataSchema = z.union([
|
|
57
|
+
z.object({ type: z.literal('CAMERA_POSITION') }).merge(wsCameraPositionDataSchema),
|
|
59
58
|
z.object({
|
|
60
|
-
|
|
59
|
+
type: z.literal('TRACKING_START'),
|
|
60
|
+
icao: z.string(),
|
|
61
|
+
targetId: z.string(),
|
|
62
|
+
domain: domainIdSchema,
|
|
63
|
+
categoryId: z.string(),
|
|
64
|
+
}),
|
|
65
|
+
z.object({ type: z.literal('TRACKING_STOP') }),
|
|
66
|
+
z.object({ type: z.literal('FLIGHT_LIST'), list: z.array(wsApiFlightDataSchema) }),
|
|
67
|
+
z.object({
|
|
68
|
+
type: z.literal('USER_ACTION'),
|
|
69
|
+
cgi: z.literal(EUserActions.TRACK_ICAO),
|
|
61
70
|
ip: z.string(),
|
|
62
|
-
params:
|
|
63
|
-
|
|
64
|
-
}),
|
|
71
|
+
params: userSchema.extend({ icao: z.string() }),
|
|
72
|
+
postJsonBody: z.any(),
|
|
65
73
|
}),
|
|
66
74
|
z.object({
|
|
67
|
-
|
|
75
|
+
type: z.literal('USER_ACTION'),
|
|
76
|
+
cgi: z.literal(EUserActions.RESET_ICAO),
|
|
68
77
|
ip: z.string(),
|
|
69
|
-
params:
|
|
78
|
+
params: userSchema,
|
|
79
|
+
postJsonBody: z.any(),
|
|
70
80
|
}),
|
|
71
81
|
z.object({
|
|
72
|
-
|
|
82
|
+
type: z.literal('USER_ACTION'),
|
|
83
|
+
cgi: z.literal(EUserActions.SET_PRIORITY_LIST),
|
|
73
84
|
ip: z.string(),
|
|
74
|
-
params:
|
|
85
|
+
params: userSchema,
|
|
75
86
|
postJsonBody: priorityListSchema,
|
|
76
87
|
}),
|
|
77
88
|
z.object({
|
|
78
|
-
|
|
89
|
+
type: z.literal('USER_ACTION'),
|
|
90
|
+
cgi: z.literal(EUserActions.SET_BLACK_LIST),
|
|
79
91
|
ip: z.string(),
|
|
80
|
-
params:
|
|
92
|
+
params: userSchema,
|
|
81
93
|
postJsonBody: blackListSchema,
|
|
82
94
|
}),
|
|
83
95
|
z.object({
|
|
84
|
-
|
|
96
|
+
type: z.literal('USER_ACTION'),
|
|
97
|
+
cgi: z.literal(EUserActions.SET_WHITE_LIST),
|
|
85
98
|
ip: z.string(),
|
|
86
|
-
params:
|
|
99
|
+
params: userSchema,
|
|
87
100
|
postJsonBody: whiteListSchema,
|
|
88
101
|
}),
|
|
89
102
|
z.object({
|
|
90
|
-
|
|
103
|
+
type: z.literal('USER_ACTION'),
|
|
104
|
+
cgi: z.literal(EUserActions.GO_TO_COORDINATES),
|
|
91
105
|
ip: z.string(),
|
|
92
|
-
params:
|
|
93
|
-
|
|
94
|
-
lon: z.string(),
|
|
95
|
-
}),
|
|
106
|
+
params: userSchema.extend({ lat: z.string(), lon: z.string() }),
|
|
107
|
+
postJsonBody: z.any(),
|
|
96
108
|
}),
|
|
97
109
|
z.object({
|
|
98
|
-
|
|
110
|
+
type: z.literal('USER_ACTION'),
|
|
111
|
+
cgi: z.literal(EUserActions.SET_TRACKING_MODE),
|
|
99
112
|
ip: z.string(),
|
|
100
|
-
params:
|
|
113
|
+
params: userSchema,
|
|
101
114
|
postJsonBody: trackingModeSchema,
|
|
102
115
|
}),
|
|
103
116
|
z.object({
|
|
104
|
-
|
|
117
|
+
type: z.literal('USER_ACTION'),
|
|
118
|
+
cgi: z.literal(EUserActions.SET_ZONES),
|
|
105
119
|
ip: z.string(),
|
|
106
|
-
params:
|
|
120
|
+
params: userSchema,
|
|
107
121
|
postJsonBody: zonesSchema,
|
|
108
122
|
}),
|
|
109
123
|
z.object({
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
params: apiStringUserSchema,
|
|
113
|
-
}),
|
|
114
|
-
z.object({
|
|
115
|
-
cgi: z.literal(PlaneTrackerUserActions.LOCK_API),
|
|
124
|
+
type: z.literal('USER_ACTION'),
|
|
125
|
+
cgi: z.literal(EUserActions.RESET_PTZ_CALIBRATION),
|
|
116
126
|
ip: z.string(),
|
|
117
|
-
params:
|
|
118
|
-
|
|
119
|
-
}),
|
|
127
|
+
params: userSchema,
|
|
128
|
+
postJsonBody: z.any(),
|
|
120
129
|
}),
|
|
121
130
|
z.object({
|
|
122
|
-
|
|
131
|
+
type: z.literal('USER_ACTION'),
|
|
132
|
+
cgi: z.literal(EUserActions.LOCK_API),
|
|
123
133
|
ip: z.string(),
|
|
124
|
-
params:
|
|
125
|
-
|
|
126
|
-
]);
|
|
127
|
-
const ptrEventsDataSchema = z.discriminatedUnion('type', [
|
|
128
|
-
z.object({
|
|
129
|
-
type: z.literal('CAMERA_POSITION'),
|
|
130
|
-
lat: z.number(),
|
|
131
|
-
lon: z.number(),
|
|
132
|
-
azimuth: z.number().min(0).max(360),
|
|
133
|
-
elevation: z.number().min(-90).max(90),
|
|
134
|
-
fov: z.number(),
|
|
135
|
-
}),
|
|
136
|
-
z.object({
|
|
137
|
-
type: z.literal('TRACKING_START'),
|
|
138
|
-
icao: z.string(),
|
|
139
|
-
}),
|
|
140
|
-
z.object({
|
|
141
|
-
type: z.literal('TRACKING_STOP'),
|
|
142
|
-
}),
|
|
143
|
-
z.object({
|
|
144
|
-
type: z.literal('FLIGHT_LIST'),
|
|
145
|
-
list: z.array(apiFlightDataSchema),
|
|
134
|
+
params: userSchema.extend({ timeout: z.string() }),
|
|
135
|
+
postJsonBody: z.any(),
|
|
146
136
|
}),
|
|
147
137
|
z.object({
|
|
148
138
|
type: z.literal('USER_ACTION'),
|
|
139
|
+
cgi: z.literal(EUserActions.UNLOCK_API),
|
|
149
140
|
ip: z.string(),
|
|
150
|
-
params:
|
|
151
|
-
lat: z.string().optional(),
|
|
152
|
-
lon: z.string().optional(),
|
|
153
|
-
timeout: z.string().optional(),
|
|
154
|
-
}),
|
|
155
|
-
cgi: z.enum([
|
|
156
|
-
PlaneTrackerUserActions.TRACK_ICAO,
|
|
157
|
-
PlaneTrackerUserActions.RESET_ICAO,
|
|
158
|
-
PlaneTrackerUserActions.SET_PRIORITY_LIST,
|
|
159
|
-
PlaneTrackerUserActions.SET_BLACK_LIST,
|
|
160
|
-
PlaneTrackerUserActions.SET_WHITE_LIST,
|
|
161
|
-
PlaneTrackerUserActions.GO_TO_COORDINATES,
|
|
162
|
-
PlaneTrackerUserActions.SET_TRACKING_MODE,
|
|
163
|
-
PlaneTrackerUserActions.SET_ZONES,
|
|
164
|
-
PlaneTrackerUserActions.RESET_PTZ_CALIBRATION,
|
|
165
|
-
PlaneTrackerUserActions.LOCK_API,
|
|
166
|
-
PlaneTrackerUserActions.UNLOCK_API,
|
|
167
|
-
]),
|
|
141
|
+
params: userSchema,
|
|
168
142
|
postJsonBody: z.any(),
|
|
169
143
|
}),
|
|
170
|
-
z.object({
|
|
171
|
-
type: z.literal('CONNECTED_USERS'),
|
|
172
|
-
users: z.array(apiUserSchema),
|
|
173
|
-
}),
|
|
144
|
+
z.object({ type: z.literal('CONNECTED_USERS'), users: z.array(apiUserSchema) }),
|
|
174
145
|
z.object({
|
|
175
146
|
type: z.literal('FORCE_TRACKING_STATUS'),
|
|
176
147
|
enabled: z.boolean(),
|
|
177
148
|
icao: z.string().optional(),
|
|
149
|
+
targetId: z.string().optional(),
|
|
178
150
|
}),
|
|
179
|
-
z.object({
|
|
180
|
-
type: z.literal('API_LOCK_STATUS'),
|
|
181
|
-
isLocked: z.boolean(),
|
|
182
|
-
user: apiUserSchema.optional(),
|
|
183
|
-
}),
|
|
151
|
+
z.object({ type: z.literal('API_LOCK_STATUS'), isLocked: z.boolean(), user: apiUserSchema.optional() }),
|
|
184
152
|
]);
|
|
185
|
-
export const ptrEventsSchema = z.
|
|
186
|
-
z.object({ type: z.literal('init'), data:
|
|
187
|
-
...
|
|
153
|
+
export const ptrEventsSchema = z.union([
|
|
154
|
+
z.object({ type: z.literal('init'), data: eventsDataSchema }),
|
|
155
|
+
...eventsDataSchema.options,
|
|
188
156
|
]);
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import { WsEvents } from '../internal/WsEvents';
|
|
2
|
-
import {
|
|
2
|
+
import { ptrEventsSchema } from '../types/ws/PlaneTrackerEvents';
|
|
3
3
|
export class PlaneTrackerEvents extends WsEvents {
|
|
4
4
|
_apiUser;
|
|
5
5
|
constructor(ws, _apiUser) {
|
|
6
|
-
super((data) =>
|
|
7
|
-
const parsedData = ptrEventsSchema.parse(data);
|
|
8
|
-
if (parsedData.type === PlaneTrackerWsEvents.USER_ACTION) {
|
|
9
|
-
const { type, ...actionData } = parsedData;
|
|
10
|
-
const userAction = planeTrackerUserActionData.parse(actionData);
|
|
11
|
-
return { ...userAction, type };
|
|
12
|
-
}
|
|
13
|
-
return parsedData;
|
|
14
|
-
}, ws);
|
|
6
|
+
super((data) => ptrEventsSchema.parse(data), ws);
|
|
15
7
|
this._apiUser = _apiUser;
|
|
16
8
|
this.ws.onOpen = this.sendInitMsg;
|
|
17
9
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IClient, TResponse } from './internal/types';
|
|
2
|
-
import { ICAO,
|
|
2
|
+
import { ICAO, TBlackList, TCameraSettings, TExportDataType, TGetIcaoByOption, TImportDataType, TPriorityList, TTrackingMode, TWhiteList, TZones } from './types/PlaneTrackerAPI';
|
|
3
3
|
import { THttpRequestOptions } from './types/common';
|
|
4
4
|
import { BasicAPI } from './internal/BasicAPI';
|
|
5
|
+
import { TApiUser } from './types/ws/PlaneTrackerEvents';
|
|
5
6
|
export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> extends BasicAPI<Client> {
|
|
6
7
|
private apiUser;
|
|
7
|
-
constructor(client: Client, apiUser: TApiUser);
|
|
8
|
+
constructor(client: Client, apiUser: Omit<TApiUser, 'ip'>);
|
|
8
9
|
static getProxyPath: () => string;
|
|
9
10
|
static getWsEventsPath: () => string;
|
|
10
11
|
checkAPIAvailable(options?: THttpRequestOptions): Promise<void>;
|
|
@@ -157,7 +158,16 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
157
158
|
}>;
|
|
158
159
|
exportAppSettings(dataType: TExportDataType, options?: THttpRequestOptions): Promise<ReturnType<Awaited<ReturnType<Client["get"]>>["blob"]>>;
|
|
159
160
|
importAppSettings(dataType: TImportDataType, formData: Parameters<Client['post']>[0]['data'], options?: THttpRequestOptions): Promise<void>;
|
|
160
|
-
|
|
161
|
+
getDomainList(options?: THttpRequestOptions): Promise<Partial<Record<"adsb" | "remoteId", {
|
|
162
|
+
uiName: string;
|
|
163
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
164
|
+
categoryList: {
|
|
165
|
+
categoryId: string;
|
|
166
|
+
uiName: string;
|
|
167
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
168
|
+
}[];
|
|
169
|
+
}>>>;
|
|
170
|
+
fetchFlightInfo(targetId: string, options?: THttpRequestOptions): Promise<{
|
|
161
171
|
destinationAirport: {
|
|
162
172
|
icao?: string | undefined;
|
|
163
173
|
iata?: string | undefined;
|
|
@@ -184,6 +194,8 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
184
194
|
setTrackingMode(mode: TTrackingMode['mode'], options?: THttpRequestOptions): Promise<void>;
|
|
185
195
|
startTrackingPlane(icao: ICAO, options?: THttpRequestOptions): Promise<void>;
|
|
186
196
|
stopTrackingPlane(options?: THttpRequestOptions): Promise<void>;
|
|
197
|
+
startTrackingTarget(targetId: string, options?: THttpRequestOptions): Promise<void>;
|
|
198
|
+
stopTrackingTarget(options?: THttpRequestOptions): Promise<void>;
|
|
187
199
|
getIcao(by: TGetIcaoByOption, value: string, options?: THttpRequestOptions): Promise<string>;
|
|
188
200
|
getPriorityList(options?: THttpRequestOptions): Promise<{
|
|
189
201
|
list: {
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export type TImportDataType = 'MAP_DATA' | 'SERVER_DATA' | 'ALL';
|
|
3
3
|
export type TExportDataType = 'NIGHT_SKY_CALIBRATION_DATA' | 'ALL';
|
|
4
|
-
export type TApiUser = {
|
|
5
|
-
userId: string;
|
|
6
|
-
userName: string;
|
|
7
|
-
userPriority: number;
|
|
8
|
-
};
|
|
9
4
|
export declare const wsAliasResponseSchema: z.ZodObject<{
|
|
10
5
|
alias: z.ZodString;
|
|
11
6
|
ws: z.ZodString;
|
|
@@ -706,10 +701,13 @@ export type TServerSettings = z.infer<typeof serverSettingsSchema>;
|
|
|
706
701
|
export type ICAO = string;
|
|
707
702
|
export declare const getIcaoSchema: z.ZodObject<{
|
|
708
703
|
icao: z.ZodString;
|
|
704
|
+
targetId: z.ZodString;
|
|
709
705
|
}, "strip", z.ZodTypeAny, {
|
|
710
706
|
icao: string;
|
|
707
|
+
targetId: string;
|
|
711
708
|
}, {
|
|
712
709
|
icao: string;
|
|
710
|
+
targetId: string;
|
|
713
711
|
}>;
|
|
714
712
|
export type TGetIcaoByOption = 'registration' | 'callsign';
|
|
715
713
|
export declare const trackingModeSchema: z.ZodObject<{
|
|
@@ -1040,4 +1038,115 @@ export declare const zonesSchema: z.ZodObject<{
|
|
|
1040
1038
|
}[] | undefined;
|
|
1041
1039
|
}>;
|
|
1042
1040
|
export type TZones = z.infer<typeof zonesSchema>;
|
|
1041
|
+
export declare const domainIdSchema: z.ZodEnum<["adsb", "remoteId"]>;
|
|
1042
|
+
export type TDomainId = z.infer<typeof domainIdSchema>;
|
|
1043
|
+
declare const categoryIconSchema: z.ZodEnum<["small", "large", "heavy", "helicopter", "drone", "operator", "unknown"]>;
|
|
1044
|
+
export type TCategoryIcon = z.infer<typeof categoryIconSchema>;
|
|
1045
|
+
declare const categoryDescriptorSchema: z.ZodObject<{
|
|
1046
|
+
categoryId: z.ZodString;
|
|
1047
|
+
uiName: z.ZodString;
|
|
1048
|
+
icon: z.ZodEnum<["small", "large", "heavy", "helicopter", "drone", "operator", "unknown"]>;
|
|
1049
|
+
}, "strip", z.ZodTypeAny, {
|
|
1050
|
+
categoryId: string;
|
|
1051
|
+
uiName: string;
|
|
1052
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1053
|
+
}, {
|
|
1054
|
+
categoryId: string;
|
|
1055
|
+
uiName: string;
|
|
1056
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1057
|
+
}>;
|
|
1058
|
+
export type TCategoryDescriptor = z.infer<typeof categoryDescriptorSchema>;
|
|
1059
|
+
declare const domainDescriptorSchema: z.ZodObject<{
|
|
1060
|
+
uiName: z.ZodString;
|
|
1061
|
+
icon: z.ZodEnum<["small", "large", "heavy", "helicopter", "drone", "operator", "unknown"]>;
|
|
1062
|
+
categoryList: z.ZodArray<z.ZodObject<{
|
|
1063
|
+
categoryId: z.ZodString;
|
|
1064
|
+
uiName: z.ZodString;
|
|
1065
|
+
icon: z.ZodEnum<["small", "large", "heavy", "helicopter", "drone", "operator", "unknown"]>;
|
|
1066
|
+
}, "strip", z.ZodTypeAny, {
|
|
1067
|
+
categoryId: string;
|
|
1068
|
+
uiName: string;
|
|
1069
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1070
|
+
}, {
|
|
1071
|
+
categoryId: string;
|
|
1072
|
+
uiName: string;
|
|
1073
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1074
|
+
}>, "many">;
|
|
1075
|
+
}, "strip", z.ZodTypeAny, {
|
|
1076
|
+
uiName: string;
|
|
1077
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1078
|
+
categoryList: {
|
|
1079
|
+
categoryId: string;
|
|
1080
|
+
uiName: string;
|
|
1081
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1082
|
+
}[];
|
|
1083
|
+
}, {
|
|
1084
|
+
uiName: string;
|
|
1085
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1086
|
+
categoryList: {
|
|
1087
|
+
categoryId: string;
|
|
1088
|
+
uiName: string;
|
|
1089
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1090
|
+
}[];
|
|
1091
|
+
}>;
|
|
1092
|
+
export type TDomainDescriptor = z.infer<typeof domainDescriptorSchema>;
|
|
1093
|
+
export declare const domainListSchema: z.ZodRecord<z.ZodEnum<["adsb", "remoteId"]>, z.ZodObject<{
|
|
1094
|
+
uiName: z.ZodString;
|
|
1095
|
+
icon: z.ZodEnum<["small", "large", "heavy", "helicopter", "drone", "operator", "unknown"]>;
|
|
1096
|
+
categoryList: z.ZodArray<z.ZodObject<{
|
|
1097
|
+
categoryId: z.ZodString;
|
|
1098
|
+
uiName: z.ZodString;
|
|
1099
|
+
icon: z.ZodEnum<["small", "large", "heavy", "helicopter", "drone", "operator", "unknown"]>;
|
|
1100
|
+
}, "strip", z.ZodTypeAny, {
|
|
1101
|
+
categoryId: string;
|
|
1102
|
+
uiName: string;
|
|
1103
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1104
|
+
}, {
|
|
1105
|
+
categoryId: string;
|
|
1106
|
+
uiName: string;
|
|
1107
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1108
|
+
}>, "many">;
|
|
1109
|
+
}, "strip", z.ZodTypeAny, {
|
|
1110
|
+
uiName: string;
|
|
1111
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1112
|
+
categoryList: {
|
|
1113
|
+
categoryId: string;
|
|
1114
|
+
uiName: string;
|
|
1115
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1116
|
+
}[];
|
|
1117
|
+
}, {
|
|
1118
|
+
uiName: string;
|
|
1119
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1120
|
+
categoryList: {
|
|
1121
|
+
categoryId: string;
|
|
1122
|
+
uiName: string;
|
|
1123
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator";
|
|
1124
|
+
}[];
|
|
1125
|
+
}>>;
|
|
1126
|
+
export type TDomainList = z.infer<typeof domainListSchema>;
|
|
1127
|
+
export declare const ADSB_CATEGORY_IDS: {
|
|
1128
|
+
readonly A_LIGHT: "A_LIGHT";
|
|
1129
|
+
readonly A_SMALL: "A_SMALL";
|
|
1130
|
+
readonly A_LARGE: "A_LARGE";
|
|
1131
|
+
readonly A_HIGH_VORTEX: "A_HIGH_VORTEX";
|
|
1132
|
+
readonly A_HEAVY: "A_HEAVY";
|
|
1133
|
+
readonly A_HIGH_PERF: "A_HIGH_PERF";
|
|
1134
|
+
readonly A_ROTORCRAFT: "A_ROTORCRAFT";
|
|
1135
|
+
readonly B_GLIDER: "B_GLIDER";
|
|
1136
|
+
readonly B_LIGHTER_THAN_AIR: "B_LIGHTER_THAN_AIR";
|
|
1137
|
+
readonly B_PARACHUTIST: "B_PARACHUTIST";
|
|
1138
|
+
readonly B_ULTRALIGHT: "B_ULTRALIGHT";
|
|
1139
|
+
readonly B_UAV: "B_UAV";
|
|
1140
|
+
readonly B_SPACE: "B_SPACE";
|
|
1141
|
+
readonly C_SURFACE_EMERGENCY: "C_SURFACE_EMERGENCY";
|
|
1142
|
+
readonly C_SERVICE_VEHICLE: "C_SERVICE_VEHICLE";
|
|
1143
|
+
readonly C_POINT_OBSTACLE: "C_POINT_OBSTACLE";
|
|
1144
|
+
readonly C_CLUSTER_OBSTACLE: "C_CLUSTER_OBSTACLE";
|
|
1145
|
+
readonly C_LINE_OBSTACLE: "C_LINE_OBSTACLE";
|
|
1146
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
1147
|
+
};
|
|
1148
|
+
export declare const REMOTE_ID_CATEGORY_IDS: {
|
|
1149
|
+
readonly DRONE: "DRONE";
|
|
1150
|
+
readonly OPERATOR: "OPERATOR";
|
|
1151
|
+
};
|
|
1043
1152
|
export {};
|