@skypath-io/web-sdk 0.4.14 → 0.4.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.
- package/CHANGELOG.md +12 -0
- package/dist/bundle.cjs.js +2 -2
- package/dist/bundle.es.js +2 -2
- package/dist/bundle.iife.js +2 -2
- package/dist/types/src/core/geo/geo.d.ts +15 -0
- package/dist/types/src/core/utils/utils.d.ts +4 -0
- package/dist/types/src/features/adsb/service.d.ts +1 -4
- package/dist/types/src/features/observations/consts.d.ts +4 -0
- package/dist/types/src/features/observations/flow.d.ts +5 -1
- package/dist/types/src/features/observations/service.d.ts +12 -5
- package/dist/types/src/features/observations/utils.d.ts +10 -1
- package/dist/types/src/features/oneLayer/service.d.ts +1 -9
- package/package.json +1 -1
|
@@ -2,6 +2,10 @@ export const HEX_RESOLUTION_BUFFERS: {
|
|
|
2
2
|
0: number;
|
|
3
3
|
1: number;
|
|
4
4
|
};
|
|
5
|
+
export const CORRIDOR_POLYGON_MAX_AREA_NM: 2500000;
|
|
6
|
+
export function validateCorridorArea({ polygon }: {
|
|
7
|
+
polygon: any;
|
|
8
|
+
}): void;
|
|
5
9
|
export namespace POLYGON_TYPE {
|
|
6
10
|
let SMALL: string;
|
|
7
11
|
let MEDIUM: string;
|
|
@@ -211,3 +215,14 @@ export function getMiddleArea({ polygon, resolution, extensionFactor }: {
|
|
|
211
215
|
resolution: any;
|
|
212
216
|
extensionFactor: any;
|
|
213
217
|
}): number[][];
|
|
218
|
+
/**
|
|
219
|
+
* Groups hexagons by `hexId` and selects the most severe (highest `sev`) for each group.
|
|
220
|
+
*
|
|
221
|
+
* @param {Object} options - The function parameter object.
|
|
222
|
+
* @param {Array} options.hexagons - An array of hexagon objects.
|
|
223
|
+
* @returns {Object} - An object where keys are `hexId` values and values are the most severe hexagon in each group.
|
|
224
|
+
*/
|
|
225
|
+
export function groupByHexIdAndSelectMostSevere({ hexagons }: {
|
|
226
|
+
hexagons: any[];
|
|
227
|
+
}): any;
|
|
228
|
+
export function squareMetersToNauticalMiles(squareMeters: any): number;
|
|
@@ -2,10 +2,7 @@ export class ADSBService {
|
|
|
2
2
|
constructor({ fetcher }: {
|
|
3
3
|
fetcher: any;
|
|
4
4
|
});
|
|
5
|
-
fetch: (
|
|
6
|
-
polygon: any;
|
|
7
|
-
polygonSize: any;
|
|
8
|
-
}, signal: any) => Promise<any>;
|
|
5
|
+
fetch: (config: any, signal: any) => Promise<any>;
|
|
9
6
|
expire: () => void;
|
|
10
7
|
dispose: () => void;
|
|
11
8
|
#private;
|
|
@@ -22,6 +22,10 @@ export namespace CONFIG_KEYS {
|
|
|
22
22
|
let POLYGON: string;
|
|
23
23
|
let IS_CORRIDOR_MODE: string;
|
|
24
24
|
let AIRCRAFT_CATEGORY: string;
|
|
25
|
+
let HISTORY_HOURS: string;
|
|
26
|
+
let MAX_ALTITUDE: string;
|
|
27
|
+
let MIN_ALTITUDE: string;
|
|
28
|
+
let MIN_SEVERITY: string;
|
|
25
29
|
}
|
|
26
30
|
export namespace AIRCRAFT_CATEGORY {
|
|
27
31
|
let C10: string;
|
|
@@ -9,10 +9,14 @@ export class ObservationsFlow {
|
|
|
9
9
|
stop: () => void;
|
|
10
10
|
terminate: () => void;
|
|
11
11
|
get isRunning(): any;
|
|
12
|
-
updateConfig: ({ polygon, isCorridorMode, aircraftCategory }: {
|
|
12
|
+
updateConfig: ({ polygon, isCorridorMode, aircraftCategory, historyHours, maxAltitude, minAltitude, minSeverity, }: {
|
|
13
13
|
polygon: any;
|
|
14
14
|
isCorridorMode: any;
|
|
15
15
|
aircraftCategory: any;
|
|
16
|
+
historyHours: any;
|
|
17
|
+
maxAltitude: any;
|
|
18
|
+
minAltitude: any;
|
|
19
|
+
minSeverity: any;
|
|
16
20
|
}) => void;
|
|
17
21
|
#private;
|
|
18
22
|
}
|
|
@@ -2,11 +2,18 @@ export class ObservationsService {
|
|
|
2
2
|
constructor({ fetcher }: {
|
|
3
3
|
fetcher: any;
|
|
4
4
|
});
|
|
5
|
-
fetch: ({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
fetch: ({ config, signal }: {
|
|
6
|
+
config: any;
|
|
7
|
+
signal: any;
|
|
8
|
+
}) => Promise<void>;
|
|
9
|
+
getData: ({ config, filters }: {
|
|
10
|
+
config: any;
|
|
11
|
+
filters: any;
|
|
12
|
+
}) => {
|
|
13
|
+
toRawObject: () => any;
|
|
14
|
+
toHexagonsArray: () => any[];
|
|
15
|
+
toFeatureCollection: () => any;
|
|
16
|
+
};
|
|
10
17
|
expire: () => void;
|
|
11
18
|
dispose: () => void;
|
|
12
19
|
#private;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
export function validateInput({ polygon, isCorridorMode, aircraftCategory }: {
|
|
1
|
+
export function validateInput({ polygon, isCorridorMode, aircraftCategory, historyHours, maxAltitude, minAltitude, minSeverity, }: {
|
|
2
2
|
polygon: any;
|
|
3
3
|
isCorridorMode: any;
|
|
4
4
|
aircraftCategory: any;
|
|
5
|
+
historyHours: any;
|
|
6
|
+
maxAltitude: any;
|
|
7
|
+
minAltitude: any;
|
|
8
|
+
minSeverity: any;
|
|
5
9
|
}): void;
|
|
6
10
|
export function mapPolygonToHexIds({ polygon, polygonSize }: {
|
|
7
11
|
polygon: any;
|
|
@@ -13,3 +17,8 @@ export function mapPolygonToHexIds({ polygon, polygonSize }: {
|
|
|
13
17
|
export function mapReportsArrayToReportsObject(reports: any): any;
|
|
14
18
|
export function storeToResult(store: any, selector: any, options?: {}): any;
|
|
15
19
|
export function mapResponseToReportsArray(response: any): any;
|
|
20
|
+
export function buildObservationsData(data: any): {
|
|
21
|
+
toRawObject: () => any;
|
|
22
|
+
toHexagonsArray: () => any[];
|
|
23
|
+
toFeatureCollection: () => any;
|
|
24
|
+
};
|
|
@@ -2,15 +2,7 @@ export class OneLayerService {
|
|
|
2
2
|
constructor({ fetcher }: {
|
|
3
3
|
fetcher: any;
|
|
4
4
|
});
|
|
5
|
-
fetch: (
|
|
6
|
-
polygon: any;
|
|
7
|
-
polygonSize: any;
|
|
8
|
-
aircraftCategory: any;
|
|
9
|
-
hoursAgo: any;
|
|
10
|
-
forecastTs: any;
|
|
11
|
-
nowcastingAlt: any;
|
|
12
|
-
shouldIgnorePromises: any;
|
|
13
|
-
}, signal: any) => Promise<any>;
|
|
5
|
+
fetch: (config: any, signal: any) => Promise<any>;
|
|
14
6
|
expire: ({ hoursAgo }: {
|
|
15
7
|
hoursAgo: any;
|
|
16
8
|
}) => void;
|