@overmap-ai/core 1.0.71-mapbox.2 → 1.0.71-mapbox.4
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/overmap-core.js +13 -103
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +13 -103
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/services/AgentService.d.ts +2 -7
- package/dist/store/slices/projectAccessSlice.d.ts +0 -1
- package/dist/store/slices/projectFileSlice.d.ts +5 -4
- package/dist/store/slices/projectSlice.d.ts +3 -22
- package/dist/typings/models/geo.d.ts +5 -14
- package/dist/utils/coordinates.d.ts +3 -3
- package/package.json +1 -1
|
@@ -2,13 +2,8 @@ import type { AgentUserConversation, OvermapRootState } from "../../typings";
|
|
|
2
2
|
import { BaseApiService } from "./BaseApiService";
|
|
3
3
|
import type { BaseSDK } from "../base";
|
|
4
4
|
export declare abstract class AgentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
5
|
-
startConversation(prompt: string): Promise<AgentUserConversation>;
|
|
6
|
-
|
|
7
|
-
* Prompt the agent with a message.
|
|
8
|
-
* @param prompt The message to prompt the agent with.
|
|
9
|
-
* @param conversationId If continuing an existing message, the UUID of that conversation.
|
|
10
|
-
*/
|
|
11
|
-
continueConversation(prompt: string, conversationId: AgentUserConversation["offline_id"]): Promise<void>;
|
|
5
|
+
startConversation(prompt: string, projectId: number): Promise<AgentUserConversation>;
|
|
6
|
+
continueConversation(prompt: string, conversationId: AgentUserConversation["offline_id"], projectId: number): Promise<void>;
|
|
12
7
|
fetchDetails(conversationId: AgentUserConversation["offline_id"]): Promise<void>;
|
|
13
8
|
rate(responseId: string, rating: 1 | 5): Promise<undefined>;
|
|
14
9
|
refreshStore(projectId: number): Promise<void>;
|
|
@@ -24,7 +24,6 @@ export declare const initializeProjectAccesses: import("@reduxjs/toolkit").Actio
|
|
|
24
24
|
export declare const selectProjectAccessMapping: (state: OvermapRootState) => Record<string, ProjectAccess>;
|
|
25
25
|
export declare const selectProjectAccesses: OvermapSelector<Stored<ProjectAccess>[]>;
|
|
26
26
|
export declare const selectProjectAccessById: OvermapSelectorWithArgs<string, ProjectAccess | undefined>;
|
|
27
|
-
export declare const selectActiveProjectAccess: OvermapSelector<ProjectAccess | null>;
|
|
28
27
|
export declare const selectProjectAccessForUser: OvermapSelectorWithArgs<User, ProjectAccess | undefined>;
|
|
29
28
|
export declare const selectProjectAccessUserMapping: OvermapSelector<Record<string, ProjectAccess>>;
|
|
30
29
|
export declare const projectAccessReducer: Reducer<ProjectAccessState>;
|
|
@@ -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,9 +34,9 @@ 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
|
-
export declare const selectProjectFiles: ((state: OvermapRootState) => ProjectFile[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, ProjectFile
|
|
39
|
+
export declare const selectProjectFiles: ((state: OvermapRootState) => ProjectFile[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, ProjectFile>) => ProjectFile[], {
|
|
39
40
|
clearCache: () => void;
|
|
40
41
|
}> & {
|
|
41
42
|
clearCache: () => void;
|
|
@@ -1,44 +1,25 @@
|
|
|
1
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import type {
|
|
2
|
+
import type { OvermapSelector, OvermapSelectorWithArgs, Project, User } from "../../typings";
|
|
3
3
|
export interface ProjectState {
|
|
4
4
|
projects: Record<number, Project>;
|
|
5
|
-
activeProjectId: number | null;
|
|
6
5
|
}
|
|
7
6
|
export declare const projectSlice: import("@reduxjs/toolkit").Slice<ProjectState, {
|
|
8
7
|
setProjects: (state: import("immer/dist/internal.js").WritableDraft<ProjectState>, action: {
|
|
9
8
|
payload: Project[];
|
|
10
9
|
}) => void;
|
|
11
|
-
|
|
12
|
-
payload: number | null;
|
|
13
|
-
}) => void;
|
|
14
|
-
updateOrCreateProject: (state: import("immer/dist/internal.js").WritableDraft<ProjectState>, action: {
|
|
10
|
+
updateProject: (state: import("immer/dist/internal.js").WritableDraft<ProjectState>, action: {
|
|
15
11
|
payload: Project;
|
|
16
12
|
}) => void;
|
|
17
|
-
updateOrCreateProjects: (state: import("immer/dist/internal.js").WritableDraft<ProjectState>, action: {
|
|
18
|
-
payload: Project[];
|
|
19
|
-
}) => void;
|
|
20
13
|
deleteProject: (state: import("immer/dist/internal.js").WritableDraft<ProjectState>, action: {
|
|
21
14
|
payload: Project;
|
|
22
15
|
}) => void;
|
|
23
16
|
acceptProjectInvite: (state: import("immer/dist/internal.js").WritableDraft<ProjectState>, action: {
|
|
24
17
|
payload: number;
|
|
25
18
|
}) => void;
|
|
26
|
-
addActiveProjectIssuesCount: (state: import("immer/dist/internal.js").WritableDraft<ProjectState>, action: {
|
|
27
|
-
payload: number;
|
|
28
|
-
}) => void;
|
|
29
|
-
addActiveProjectFormSubmissionsCount: (state: import("immer/dist/internal.js").WritableDraft<ProjectState>, action: {
|
|
30
|
-
payload: number;
|
|
31
|
-
}) => void;
|
|
32
19
|
}, "projects">;
|
|
33
|
-
export declare const setProjects: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project[], "projects/setProjects">,
|
|
20
|
+
export declare const setProjects: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project[], "projects/setProjects">, updateProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project, "projects/updateProject">, deleteProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project, "projects/deleteProject">, acceptProjectInvite: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "projects/acceptProjectInvite">;
|
|
34
21
|
export declare const projectReducer: Reducer<ProjectState>;
|
|
35
22
|
export declare const selectProjectMapping: OvermapSelector<Record<number, Project>>;
|
|
36
|
-
export declare const selectActiveProjectId: (state: OvermapRootState) => number | 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
|
-
};
|
|
42
23
|
export declare const selectProjectById: OvermapSelectorWithArgs<number, Project | undefined>;
|
|
43
24
|
export declare const selectProjectUsersIds: OvermapSelector<number[]>;
|
|
44
25
|
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;
|
package/package.json
CHANGED