camstreamerlib 4.0.6 → 4.0.7
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 +3 -2
- package/cjs/types/PlaneTrackerAPI.d.ts +39 -5
- package/cjs/types/PlaneTrackerAPI.js +27 -1
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +158 -100
- package/cjs/types/ws/PlaneTrackerEvents.js +59 -62
- package/cjs/ws/PlaneTrackerEvents.d.ts +3 -4
- package/cjs/ws/PlaneTrackerEvents.js +2 -2
- package/esm/types/PlaneTrackerAPI.js +26 -0
- package/esm/types/ws/PlaneTrackerEvents.js +59 -62
- package/esm/ws/PlaneTrackerEvents.js +3 -3
- package/package.json +1 -1
- package/types/PlaneTrackerAPI.d.ts +3 -2
- package/types/types/PlaneTrackerAPI.d.ts +39 -5
- package/types/types/ws/PlaneTrackerEvents.d.ts +158 -100
- package/types/ws/PlaneTrackerEvents.d.ts +3 -4
package/cjs/PlaneTrackerAPI.d.ts
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>;
|
|
@@ -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;
|
|
@@ -1040,4 +1035,43 @@ export declare const zonesSchema: z.ZodObject<{
|
|
|
1040
1035
|
}[] | undefined;
|
|
1041
1036
|
}>;
|
|
1042
1037
|
export type TZones = z.infer<typeof zonesSchema>;
|
|
1038
|
+
export declare const domainIdSchema: z.ZodEnum<["adsb", "remoteId"]>;
|
|
1039
|
+
export type TDomainId = z.infer<typeof domainIdSchema>;
|
|
1040
|
+
export type TCategoryIcon = 'small' | 'large' | 'heavy' | 'helicopter' | 'drone' | 'operator' | 'unknown';
|
|
1041
|
+
export type TCategoryDescriptor = {
|
|
1042
|
+
categoryId: string;
|
|
1043
|
+
uiName: string;
|
|
1044
|
+
icon: TCategoryIcon;
|
|
1045
|
+
};
|
|
1046
|
+
export type TDomainDescriptor = {
|
|
1047
|
+
uiName: string;
|
|
1048
|
+
icon: TCategoryIcon;
|
|
1049
|
+
categoryList: TCategoryDescriptor[];
|
|
1050
|
+
};
|
|
1051
|
+
export type TDomainList = Record<TDomainId, TDomainDescriptor>;
|
|
1052
|
+
export declare const ADSB_CATEGORY_IDS: {
|
|
1053
|
+
readonly A_LIGHT: "A_LIGHT";
|
|
1054
|
+
readonly A_SMALL: "A_SMALL";
|
|
1055
|
+
readonly A_LARGE: "A_LARGE";
|
|
1056
|
+
readonly A_HIGH_VORTEX: "A_HIGH_VORTEX";
|
|
1057
|
+
readonly A_HEAVY: "A_HEAVY";
|
|
1058
|
+
readonly A_HIGH_PERF: "A_HIGH_PERF";
|
|
1059
|
+
readonly A_ROTORCRAFT: "A_ROTORCRAFT";
|
|
1060
|
+
readonly B_GLIDER: "B_GLIDER";
|
|
1061
|
+
readonly B_LIGHTER_THAN_AIR: "B_LIGHTER_THAN_AIR";
|
|
1062
|
+
readonly B_PARACHUTIST: "B_PARACHUTIST";
|
|
1063
|
+
readonly B_ULTRALIGHT: "B_ULTRALIGHT";
|
|
1064
|
+
readonly B_UAV: "B_UAV";
|
|
1065
|
+
readonly B_SPACE: "B_SPACE";
|
|
1066
|
+
readonly C_SURFACE_EMERGENCY: "C_SURFACE_EMERGENCY";
|
|
1067
|
+
readonly C_SERVICE_VEHICLE: "C_SERVICE_VEHICLE";
|
|
1068
|
+
readonly C_POINT_OBSTACLE: "C_POINT_OBSTACLE";
|
|
1069
|
+
readonly C_CLUSTER_OBSTACLE: "C_CLUSTER_OBSTACLE";
|
|
1070
|
+
readonly C_LINE_OBSTACLE: "C_LINE_OBSTACLE";
|
|
1071
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
1072
|
+
};
|
|
1073
|
+
export declare const REMOTE_ID_CATEGORY_IDS: {
|
|
1074
|
+
readonly DRONE: "DRONE";
|
|
1075
|
+
readonly OPERATOR: "OPERATOR";
|
|
1076
|
+
};
|
|
1043
1077
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zonesSchema = exports.mapInfoSchema = exports.mapTypeSchema = exports.priorityListSchema = exports.blackListSchema = exports.whiteListSchema = exports.priorityListEntrySchema = exports.listEntrySchema = exports.listEntryIdTypeSchema = exports.listEntryDomainSchema = exports.flightInfoSchema = exports.trackingModeSchema = exports.getIcaoSchema = exports.serverSettingsSchema = exports.cameraSettingsSchema = exports.widgetSchema = exports.connectionSchema = exports.wsAliasResponseSchema = void 0;
|
|
3
|
+
exports.REMOTE_ID_CATEGORY_IDS = exports.ADSB_CATEGORY_IDS = exports.domainIdSchema = exports.zonesSchema = exports.mapInfoSchema = exports.mapTypeSchema = exports.priorityListSchema = exports.blackListSchema = exports.whiteListSchema = exports.priorityListEntrySchema = exports.listEntrySchema = exports.listEntryIdTypeSchema = exports.listEntryDomainSchema = exports.flightInfoSchema = exports.trackingModeSchema = exports.getIcaoSchema = exports.serverSettingsSchema = exports.cameraSettingsSchema = exports.widgetSchema = exports.connectionSchema = exports.wsAliasResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.wsAliasResponseSchema = zod_1.z.object({
|
|
6
6
|
alias: zod_1.z.string(),
|
|
@@ -326,3 +326,29 @@ exports.zonesSchema = zod_1.z.object({
|
|
|
326
326
|
}))
|
|
327
327
|
.default([]),
|
|
328
328
|
});
|
|
329
|
+
exports.domainIdSchema = zod_1.z.enum(['adsb', 'remoteId']);
|
|
330
|
+
exports.ADSB_CATEGORY_IDS = {
|
|
331
|
+
A_LIGHT: 'A_LIGHT',
|
|
332
|
+
A_SMALL: 'A_SMALL',
|
|
333
|
+
A_LARGE: 'A_LARGE',
|
|
334
|
+
A_HIGH_VORTEX: 'A_HIGH_VORTEX',
|
|
335
|
+
A_HEAVY: 'A_HEAVY',
|
|
336
|
+
A_HIGH_PERF: 'A_HIGH_PERF',
|
|
337
|
+
A_ROTORCRAFT: 'A_ROTORCRAFT',
|
|
338
|
+
B_GLIDER: 'B_GLIDER',
|
|
339
|
+
B_LIGHTER_THAN_AIR: 'B_LIGHTER_THAN_AIR',
|
|
340
|
+
B_PARACHUTIST: 'B_PARACHUTIST',
|
|
341
|
+
B_ULTRALIGHT: 'B_ULTRALIGHT',
|
|
342
|
+
B_UAV: 'B_UAV',
|
|
343
|
+
B_SPACE: 'B_SPACE',
|
|
344
|
+
C_SURFACE_EMERGENCY: 'C_SURFACE_EMERGENCY',
|
|
345
|
+
C_SERVICE_VEHICLE: 'C_SERVICE_VEHICLE',
|
|
346
|
+
C_POINT_OBSTACLE: 'C_POINT_OBSTACLE',
|
|
347
|
+
C_CLUSTER_OBSTACLE: 'C_CLUSTER_OBSTACLE',
|
|
348
|
+
C_LINE_OBSTACLE: 'C_LINE_OBSTACLE',
|
|
349
|
+
UNKNOWN: 'UNKNOWN',
|
|
350
|
+
};
|
|
351
|
+
exports.REMOTE_ID_CATEGORY_IDS = {
|
|
352
|
+
DRONE: 'DRONE',
|
|
353
|
+
OPERATOR: 'OPERATOR',
|
|
354
|
+
};
|