@overmap-ai/core 1.0.71-mapbox.1 → 1.0.71-mapbox.3
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/dist/constants/array.d.ts +1 -0
- package/dist/overmap-core.js +77 -75
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +77 -75
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/store/slices/assetStageCompletionSlice.d.ts +1 -2
- package/dist/store/slices/categorySlice.d.ts +0 -1
- package/dist/store/slices/geoImageSlice.d.ts +5 -1
- package/dist/store/slices/issueSlice.d.ts +0 -6
- package/dist/store/slices/projectFileSlice.d.ts +5 -4
- package/dist/store/slices/projectSlice.d.ts +5 -1
- package/dist/typings/models/geo.d.ts +5 -14
- package/dist/utils/coordinates.d.ts +3 -3
- package/dist/utils/optimization.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import {
|
|
2
|
+
import { AssetStageCompletion, OvermapRootState, OvermapSelectorWithArgs, Stored } from "../../typings";
|
|
3
3
|
import { ModelState } from "../typings";
|
|
4
4
|
export type AssetStageCompletionState = ModelState<AssetStageCompletion>;
|
|
5
5
|
export declare const assetStageCompletionSlice: import("@reduxjs/toolkit").Slice<AssetStageCompletionState, {
|
|
@@ -39,7 +39,6 @@ export declare const selectCompletedStagesByAsset: ((state: OvermapRootState) =>
|
|
|
39
39
|
}> & {
|
|
40
40
|
clearCache: () => void;
|
|
41
41
|
};
|
|
42
|
-
export declare const selectCompletedStageIdsForAsset: OvermapSelectorWithArgs<Asset, string[]>;
|
|
43
42
|
export declare const selectAssetStageCompletionById: OvermapSelectorWithArgs<string, Stored<AssetStageCompletion> | undefined>;
|
|
44
43
|
export declare const selectAssetStageCompletionsByIds: (args: string[]) => (state: OvermapRootState) => AssetStageCompletion[];
|
|
45
44
|
export declare const assetStageCompletionReducer: Reducer<AssetStageCompletionState>;
|
|
@@ -29,6 +29,5 @@ export declare const selectCategories: ((state: OvermapRootState) => Stored<Cate
|
|
|
29
29
|
};
|
|
30
30
|
export declare const selectCategoryById: OvermapSelectorWithArgs<string, Stored<Category> | undefined>;
|
|
31
31
|
export declare const selectCategoriesByIds: (args: string[]) => (state: OvermapRootState) => Stored<Category>[];
|
|
32
|
-
export declare const selectCategoriesOfWorkspace: OvermapSelectorWithArgs<string, Category[]>;
|
|
33
32
|
export declare const selectIssueCountOfCategory: OvermapSelectorWithArgs<string | null, number>;
|
|
34
33
|
export declare const categoryReducer: Reducer<CategoryState>;
|
|
@@ -42,7 +42,11 @@ export declare const geoImageSlice: import("@reduxjs/toolkit").Slice<GeoImageSli
|
|
|
42
42
|
}, "geoImages">;
|
|
43
43
|
export declare const initializeGeoImages: import("@reduxjs/toolkit").ActionCreatorWithPayload<GeoImage[], "geoImages/initializeGeoImages">, setGeoImage: import("@reduxjs/toolkit").ActionCreatorWithPayload<GeoImage, "geoImages/setGeoImage">, setGeoImages: import("@reduxjs/toolkit").ActionCreatorWithPayload<GeoImage[], "geoImages/setGeoImages">, addGeoImage: import("@reduxjs/toolkit").ActionCreatorWithPayload<GeoImage, "geoImages/addGeoImage">, addGeoImages: import("@reduxjs/toolkit").ActionCreatorWithPayload<GeoImage[], "geoImages/addGeoImages">, updateGeoImage: import("@reduxjs/toolkit").ActionCreatorWithPayload<GeoImage, "geoImages/updateGeoImage">, updateGeoImages: import("@reduxjs/toolkit").ActionCreatorWithPayload<GeoImage[], "geoImages/updateGeoImages">, deleteGeoImage: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "geoImages/deleteGeoImage">, deleteGeoImages: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "geoImages/deleteGeoImages">;
|
|
44
44
|
export declare const selectGeoImageMapping: (state: OvermapRootState) => Record<string, Stored<GeoImage>>;
|
|
45
|
-
export declare const selectGeoImages: (state: OvermapRootState) => Stored<GeoImage>[]
|
|
45
|
+
export declare const selectGeoImages: ((state: OvermapRootState) => Stored<GeoImage>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<GeoImage>>) => Stored<GeoImage>[], {
|
|
46
|
+
clearCache: () => void;
|
|
47
|
+
}> & {
|
|
48
|
+
clearCache: () => void;
|
|
49
|
+
};
|
|
46
50
|
export declare const selectGeoImageById: (id: string) => (state: OvermapRootState) => Stored<GeoImage> | undefined;
|
|
47
51
|
export declare const selectGeoImagesOfProject: (args: number) => (state: OvermapRootState) => Stored<GeoImage>[];
|
|
48
52
|
export declare const geoImageReducer: Reducer<GeoImageSliceState>;
|
|
@@ -29,12 +29,6 @@ export declare const issueSlice: import("@reduxjs/toolkit").Slice<IssueState, {
|
|
|
29
29
|
}) => void;
|
|
30
30
|
}, "issues">;
|
|
31
31
|
export declare const initializeIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Issue>[], "issues/initializeIssues">, addIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Issue>, "issues/addIssue">, addIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Issue>[], "issues/addIssues">, updateIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Issue>, "issues/updateIssue">, deleteIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/deleteIssue">, deleteIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issues/deleteIssues">;
|
|
32
|
-
export interface IssueFilterArgs {
|
|
33
|
-
filterByAssignedTo: boolean;
|
|
34
|
-
filterByStatus: boolean;
|
|
35
|
-
filterByCategory: boolean;
|
|
36
|
-
filterByWorkspace: boolean;
|
|
37
|
-
}
|
|
38
32
|
export declare const selectIssueMapping: (state: OvermapRootState) => Record<string, Stored<Issue>>;
|
|
39
33
|
export declare const selectIssueById: OvermapSelectorWithArgs<string, Stored<Issue> | undefined>;
|
|
40
34
|
export declare const selectIssuesByIds: (args: string[]) => (state: OvermapRootState) => Stored<Issue>[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import type {
|
|
2
|
+
import type { OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, ProjectFile } from "../../typings";
|
|
3
|
+
import { MultiPoint } from "geojson";
|
|
3
4
|
export interface ProjectFileState {
|
|
4
5
|
projectFiles: Record<string, ProjectFile>;
|
|
5
6
|
activeProjectFileId: string | null;
|
|
@@ -20,7 +21,7 @@ export declare const projectFileSlice: import("@reduxjs/toolkit").Slice<ProjectF
|
|
|
20
21
|
payload: boolean;
|
|
21
22
|
}) => void;
|
|
22
23
|
saveActiveProjectFileBounds: (state: import("immer/dist/internal.js").WritableDraft<ProjectFileState>, action: {
|
|
23
|
-
payload:
|
|
24
|
+
payload: MultiPoint;
|
|
24
25
|
}) => void;
|
|
25
26
|
setActiveProjectFileId: (state: import("immer/dist/internal.js").WritableDraft<ProjectFileState>, action: {
|
|
26
27
|
payload: string | null;
|
|
@@ -33,14 +34,14 @@ export declare const projectFileSlice: import("@reduxjs/toolkit").Slice<ProjectF
|
|
|
33
34
|
}) => void;
|
|
34
35
|
resetProjectFileObjectUrls: (state: import("immer/dist/internal.js").WritableDraft<ProjectFileState>) => void;
|
|
35
36
|
}, "projectFiles">;
|
|
36
|
-
export declare const addOrReplaceProjectFiles: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProjectFile[], "projectFiles/addOrReplaceProjectFiles">, addOrReplaceProjectFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProjectFile, "projectFiles/addOrReplaceProjectFile">, setIsImportingProjectFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "projectFiles/setIsImportingProjectFile">, setActiveProjectFileId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "projectFiles/setActiveProjectFileId">, saveActiveProjectFileBounds: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
37
|
+
export declare const addOrReplaceProjectFiles: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProjectFile[], "projectFiles/addOrReplaceProjectFiles">, addOrReplaceProjectFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProjectFile, "projectFiles/addOrReplaceProjectFile">, setIsImportingProjectFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "projectFiles/setIsImportingProjectFile">, setActiveProjectFileId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "projectFiles/setActiveProjectFileId">, saveActiveProjectFileBounds: import("@reduxjs/toolkit").ActionCreatorWithPayload<MultiPoint, "projectFiles/saveActiveProjectFileBounds">, removeProjectFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "projectFiles/removeProjectFile">, removeProjectFilesOfProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "projectFiles/removeProjectFilesOfProject">, resetProjectFileObjectUrls: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"projectFiles/resetProjectFileObjectUrls">;
|
|
37
38
|
export declare const selectProjectFileMapping: (state: OvermapRootState) => Record<string, ProjectFile>;
|
|
38
39
|
export declare const selectProjectFiles: ((state: OvermapRootState) => ProjectFile[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, ProjectFile>, args_1: number | null) => ProjectFile[], {
|
|
39
40
|
clearCache: () => void;
|
|
40
41
|
}> & {
|
|
41
42
|
clearCache: () => void;
|
|
42
43
|
};
|
|
44
|
+
export declare const selectProjectFileById: OvermapSelectorWithArgs<string, ProjectFile | undefined>;
|
|
43
45
|
export declare const selectActiveProjectFileId: OvermapSelector<string | null>;
|
|
44
46
|
export declare const selectIsImportingProjectFile: OvermapSelector<boolean>;
|
|
45
|
-
export declare const selectProjectFileById: OvermapSelectorWithArgs<string, ProjectFile | undefined>;
|
|
46
47
|
export declare const projectFileReducer: Reducer<ProjectFileState>;
|
|
@@ -34,7 +34,11 @@ export declare const setProjects: import("@reduxjs/toolkit").ActionCreatorWithPa
|
|
|
34
34
|
export declare const projectReducer: Reducer<ProjectState>;
|
|
35
35
|
export declare const selectProjectMapping: OvermapSelector<Record<number, Project>>;
|
|
36
36
|
export declare const selectActiveProjectId: (state: OvermapRootState) => number | null;
|
|
37
|
-
export declare const selectActiveProject: (state: OvermapRootState) => Project | null
|
|
37
|
+
export declare const selectActiveProject: ((state: OvermapRootState) => Project | null) & import("reselect").OutputSelectorFields<(args_0: Record<number, Project>, args_1: number | null) => Project | null, {
|
|
38
|
+
clearCache: () => void;
|
|
39
|
+
}> & {
|
|
40
|
+
clearCache: () => void;
|
|
41
|
+
};
|
|
38
42
|
export declare const selectProjectById: OvermapSelectorWithArgs<number, Project | undefined>;
|
|
39
43
|
export declare const selectProjectUsersIds: OvermapSelector<number[]>;
|
|
40
44
|
export declare const selectProjectUsersAsMapping: OvermapSelector<Record<number, User>>;
|
|
@@ -1,22 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
export type Bounds = [Position, Position];
|
|
3
|
-
export interface PointGeometry {
|
|
4
|
-
type: "Point";
|
|
5
|
-
coordinates: Position;
|
|
6
|
-
}
|
|
7
|
-
export interface MultiPointGeometry {
|
|
8
|
-
type: "MultiPoint";
|
|
9
|
-
coordinates: Bounds;
|
|
10
|
-
}
|
|
1
|
+
import type { MultiPoint, Point } from "geojson";
|
|
11
2
|
export interface BoundableModel {
|
|
12
|
-
bounds?:
|
|
3
|
+
bounds?: MultiPoint;
|
|
13
4
|
}
|
|
14
5
|
export interface CanvasBoundableModel {
|
|
15
|
-
canvas_bounds?:
|
|
6
|
+
canvas_bounds?: MultiPoint;
|
|
16
7
|
}
|
|
17
8
|
export interface MarkableModel {
|
|
18
|
-
geo_marker?:
|
|
9
|
+
geo_marker?: Point;
|
|
19
10
|
}
|
|
20
11
|
export interface CanvasMarkableModel {
|
|
21
|
-
canvas_marker?:
|
|
12
|
+
canvas_marker?: Point;
|
|
22
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const createPointGeometry: (position: Position) =>
|
|
3
|
-
export declare const createMultiPointGeometry: (coordinates:
|
|
1
|
+
import type { MultiPoint, Point, Position } from "geojson";
|
|
2
|
+
export declare const createPointGeometry: (position: Position) => Point;
|
|
3
|
+
export declare const createMultiPointGeometry: (coordinates: Position[]) => MultiPoint;
|
|
4
4
|
export declare const coordinatesAreEqual: (a: Position, b: Position) => boolean;
|
|
@@ -6,3 +6,4 @@ export declare function memoize<T extends (...args: never[]) => unknown>(func: T
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function areArraysEqual(first: unknown[], second: unknown[]): boolean;
|
|
8
8
|
export declare const fallbackToEmptyArray: <T>(array: T[]) => T[];
|
|
9
|
+
export declare const fallbackToEmptyObject: <T extends object>(object: T) => T;
|
package/package.json
CHANGED