@skypath-io/web-sdk 0.5.7 → 0.5.9

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.
@@ -11,10 +11,10 @@ export namespace STATES {
11
11
  let TERMINATED: string;
12
12
  }
13
13
  export namespace DEFAULT_FILTER_VALUES {
14
- let HOURS_AGO: number;
15
- let SEVERITY: number;
16
- let ALT_FROM: number;
17
- let ALT_TO: number;
14
+ export let HOURS_AGO: number;
15
+ export let SEVERITY: number;
16
+ export { MIN_ALT as ALT_FROM };
17
+ export { MAX_ALT as ALT_TO };
18
18
  }
19
19
  export const SIZE_TO_RESOLUTION_MAP: {
20
20
  [x: string]: number;
@@ -28,3 +28,5 @@ export namespace POLYGON_TYPE {
28
28
  export const POLYGON_SIZE_TO_ZOOM_THRESHOLD_MAP: {
29
29
  [x: string]: number;
30
30
  };
31
+ export const MIN_ALT: 0;
32
+ export const MAX_ALT: 52;
@@ -176,6 +176,7 @@ export function getHexagonsDataSlice({ data, filters }: {
176
176
  * @param {number} [params.filters.minAltitude] - The minimum altitude to filter data.
177
177
  * @param {number} [params.filters.maxAltitude] - The maximum altitude to filter data.
178
178
  * @param {number} [params.filters.minSeverity] - The minimum severity to filter data.
179
+ * @param {number} [params.filters.hoursAgo] - The number of hours ago to filter data.
179
180
  * @param {string} [params.filters.polygonSize] - The size of the polygon.
180
181
  * @returns {Object} The filtered hexagon data.
181
182
  */
@@ -185,6 +186,7 @@ export function getOneLayerHexagonsDataSlice({ data, filters }: {
185
186
  minAltitude?: number;
186
187
  maxAltitude?: number;
187
188
  minSeverity?: number;
189
+ hoursAgo?: number;
188
190
  polygonSize?: string;
189
191
  };
190
192
  }): any;
@@ -13,8 +13,6 @@ export const REFRESH_TIME_SEC: number;
13
13
  export namespace CONFIG_KEYS {
14
14
  let POLYGON: string;
15
15
  }
16
- export const MAX_ALT: 52;
17
- export const MIN_ALT: 5;
18
16
  export const MAP_RESOLUTION: 5;
19
17
  export const FORECAST_RANGE: number[];
20
18
  export const SEVERITY_RANGE: number[];
@@ -45,8 +45,6 @@ export namespace SEVERITY {
45
45
  let moderate: number;
46
46
  let moderateSevere: number;
47
47
  }
48
- export const MAX_ALT: 52;
49
- export const MIN_ALT: 5;
50
48
  export const DEFAULT_RESOLUTION: 1;
51
49
  export const MAP_RESOLUTION: 5;
52
50
  export namespace LARGE_POLYGON_HANDLING_BEHAVIOR {
@@ -36,7 +36,5 @@ export namespace HISTORY_HOURS {
36
36
  let twoHours: string;
37
37
  let fourHours: string;
38
38
  }
39
- export const MAX_ALT: 52;
40
- export const MIN_ALT: 5;
41
39
  export const DEFAULT_RESOLUTION: 1;
42
40
  export const MAP_RESOLUTION: 5;
@@ -15,9 +15,7 @@ export class OneLayerService {
15
15
  toHexagonsArray: () => any[];
16
16
  toFeatureCollection: () => any;
17
17
  };
18
- expire: ({ hoursAgo }: {
19
- hoursAgo: any;
20
- }) => void;
18
+ expire: () => void;
21
19
  dispose: () => void;
22
20
  #private;
23
21
  }
@@ -13,7 +13,7 @@ export namespace Observations {
13
13
  import { AIRCRAFT_CATEGORY } from "./features/observations/consts.js";
14
14
  import { HISTORY_HOURS } from "./features/observations/consts.js";
15
15
  import { SEVERITY } from "./features/observations/consts.js";
16
- import { MAX_ALT } from "./features/observations/consts.js";
17
- import { MIN_ALT } from "./features/observations/consts.js";
16
+ import { MAX_ALT } from "./core/flow/consts.js";
17
+ import { MIN_ALT } from "./core/flow/consts.js";
18
18
  import { LARGE_POLYGON_HANDLING_BEHAVIOR } from "./features/observations/consts.js";
19
19
  export { CoreUtils, GeoUtils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skypath-io/web-sdk",
3
- "version": "0.5.7",
3
+ "version": "0.5.9",
4
4
  "type": "module",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.es.js",