@skypath-io/web-sdk 0.4.15 → 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.
@@ -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;
@@ -221,3 +225,4 @@ export function getMiddleArea({ polygon, resolution, extensionFactor }: {
221
225
  export function groupByHexIdAndSelectMostSevere({ hexagons }: {
222
226
  hexagons: any[];
223
227
  }): any;
228
+ export function squareMetersToNauticalMiles(squareMeters: any): number;
@@ -69,3 +69,7 @@ export function getChangedFields({ current, next }: {
69
69
  current: any;
70
70
  next: any;
71
71
  }): Set<any>;
72
+ export function mergeWithoutUndefined({ current, next }: {
73
+ current: any;
74
+ next: any;
75
+ }): any;
@@ -2,10 +2,7 @@ export class ADSBService {
2
2
  constructor({ fetcher }: {
3
3
  fetcher: any;
4
4
  });
5
- fetch: ({ polygon, polygonSize }: {
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;
@@ -2,19 +2,18 @@ export class ObservationsService {
2
2
  constructor({ fetcher }: {
3
3
  fetcher: any;
4
4
  });
5
- fetch: ({ polygon, polygonSize, aircraftCategory, historyHours, maxAltitude, minAltitude, minSeverity, }: {
6
- polygon: any;
7
- polygonSize: any;
8
- aircraftCategory: any;
9
- historyHours: any;
10
- maxAltitude: any;
11
- minAltitude: any;
12
- minSeverity: any;
13
- }, signal: any) => Promise<{
5
+ fetch: ({ config, signal }: {
6
+ config: any;
7
+ signal: any;
8
+ }) => Promise<void>;
9
+ getData: ({ config, filters }: {
10
+ config: any;
11
+ filters: any;
12
+ }) => {
14
13
  toRawObject: () => any;
15
14
  toHexagonsArray: () => any[];
16
15
  toFeatureCollection: () => any;
17
- }>;
16
+ };
18
17
  expire: () => void;
19
18
  dispose: () => void;
20
19
  #private;
@@ -15,9 +15,10 @@ export function mapPolygonToHexIds({ polygon, polygonSize }: {
15
15
  childCells: string[];
16
16
  };
17
17
  export function mapReportsArrayToReportsObject(reports: any): any;
18
- export function storeToResult(store: any, selector: any, options: {}, clientFilters: any): {
18
+ export function storeToResult(store: any, selector: any, options?: {}): any;
19
+ export function mapResponseToReportsArray(response: any): any;
20
+ export function buildObservationsData(data: any): {
19
21
  toRawObject: () => any;
20
22
  toHexagonsArray: () => any[];
21
23
  toFeatureCollection: () => any;
22
24
  };
23
- export function mapResponseToReportsArray(response: any): any;
@@ -2,15 +2,7 @@ export class OneLayerService {
2
2
  constructor({ fetcher }: {
3
3
  fetcher: any;
4
4
  });
5
- fetch: ({ polygon, polygonSize, aircraftCategory, hoursAgo, forecastTs, nowcastingAlt, shouldIgnorePromises, }: {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skypath-io/web-sdk",
3
- "version": "0.4.15",
3
+ "version": "0.4.16",
4
4
  "type": "module",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.es.js",