@overmap-ai/core 1.0.71-mapbox.5 → 1.0.71-mapbox.7
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/defaults.d.ts +2 -1
- package/dist/constants/index.d.ts +3 -3
- package/dist/enums/index.d.ts +5 -5
- package/dist/index.d.ts +6 -6
- package/dist/overmap-core.js +2035 -1311
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +2037 -1312
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/base.d.ts +8 -6
- package/dist/sdk/classes/OutboxCoordinator.d.ts +4 -4
- package/dist/sdk/classes/index.d.ts +1 -1
- package/dist/sdk/errors.d.ts +3 -1
- package/dist/sdk/globals.d.ts +7 -5
- package/dist/sdk/index.d.ts +6 -6
- package/dist/sdk/sdk.d.ts +6 -5
- package/dist/sdk/services/AgentService.d.ts +4 -3
- package/dist/sdk/services/AssetAttachmentService.d.ts +39 -16
- package/dist/sdk/services/AssetService.d.ts +6 -5
- package/dist/sdk/services/AssetStageCompletionService.d.ts +5 -4
- package/dist/sdk/services/AssetStageService.d.ts +6 -7
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +38 -16
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +13 -0
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +21 -0
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +13 -0
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +9 -0
- package/dist/sdk/services/AssetTypeService.d.ts +6 -5
- package/dist/sdk/services/BaseApiService.d.ts +5 -4
- package/dist/sdk/services/BaseAttachmentService.d.ts +22 -23
- package/dist/sdk/services/BaseAuthService.d.ts +5 -4
- package/dist/sdk/services/BaseService.d.ts +7 -5
- package/dist/sdk/services/BaseUploadService.d.ts +6 -4
- package/dist/sdk/services/CategoryService.d.ts +5 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +37 -16
- package/dist/sdk/services/DocumentService.d.ts +5 -4
- package/dist/sdk/services/EmailDomainsService.d.ts +4 -3
- package/dist/sdk/services/EmailVerificationService.d.ts +4 -3
- package/dist/sdk/services/FileService.d.ts +5 -4
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +13 -0
- package/dist/sdk/services/FormRevisionService.d.ts +9 -0
- package/dist/sdk/services/FormService.d.ts +15 -17
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +14 -0
- package/dist/sdk/services/FormSubmissionService.d.ts +12 -31
- package/dist/sdk/services/GeoImageService.d.ts +5 -4
- package/dist/sdk/services/IssueAssociationService.d.ts +6 -5
- package/dist/sdk/services/IssueAttachmentService.d.ts +38 -16
- package/dist/sdk/services/IssueCommentService.d.ts +5 -4
- package/dist/sdk/services/IssueService.d.ts +5 -7
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +14 -0
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +11 -0
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +13 -0
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +9 -0
- package/dist/sdk/services/IssueTypeService.d.ts +5 -4
- package/dist/sdk/services/IssueUpdateService.d.ts +4 -3
- package/dist/sdk/services/JWTAuthService.d.ts +7 -6
- package/dist/sdk/services/LicenseService.d.ts +4 -3
- package/dist/sdk/services/OrganizationAccessService.d.ts +4 -3
- package/dist/sdk/services/OrganizationService.d.ts +4 -3
- package/dist/sdk/services/ProjectAccessService.d.ts +4 -3
- package/dist/sdk/services/ProjectAttachmentService.d.ts +38 -16
- package/dist/sdk/services/ProjectFileService.d.ts +5 -4
- package/dist/sdk/services/ProjectService.d.ts +4 -3
- package/dist/sdk/services/TeamService.d.ts +5 -4
- package/dist/sdk/services/UserService.d.ts +4 -3
- package/dist/sdk/services/WorkspaceService.d.ts +5 -4
- package/dist/sdk/services/index.d.ts +45 -34
- package/dist/sdk/typings.d.ts +9 -8
- package/dist/store/adapter.d.ts +12 -11
- package/dist/store/index.d.ts +2 -2
- package/dist/store/migrations.d.ts +2 -1
- package/dist/store/slices/agentsSlice.d.ts +11 -10
- package/dist/store/slices/assetAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/assetSlice.d.ts +35 -24
- package/dist/store/slices/assetStageCompletionSlice.d.ts +33 -22
- package/dist/store/slices/assetStageSlice.d.ts +36 -26
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +64 -0
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +64 -0
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +63 -0
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +64 -0
- package/dist/store/slices/assetTypeSlice.d.ts +16 -21
- package/dist/store/slices/authSlice.d.ts +10 -9
- package/dist/store/slices/categorySlice.d.ts +30 -16
- package/dist/store/slices/documentAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/documentSlice.d.ts +30 -13
- package/dist/store/slices/emailDomainsSlice.d.ts +29 -15
- package/dist/store/slices/fileSlice.d.ts +7 -6
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/formRevisionSlice.d.ts +37 -27
- package/dist/store/slices/formSlice.d.ts +36 -26
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/formSubmissionSlice.d.ts +16 -27
- package/dist/store/slices/geoImageSlice.d.ts +35 -24
- package/dist/store/slices/index.d.ts +46 -38
- package/dist/store/slices/issueAssociationSlice.d.ts +35 -24
- package/dist/store/slices/issueAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/issueCommentSlice.d.ts +13 -18
- package/dist/store/slices/issueSlice.d.ts +13 -18
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +64 -0
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +63 -0
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +63 -0
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +65 -0
- package/dist/store/slices/issueTypeSlice.d.ts +12 -14
- package/dist/store/slices/issueUpdateSlice.d.ts +13 -18
- package/dist/store/slices/licenseSlice.d.ts +10 -9
- package/dist/store/slices/organizationAccessSlice.d.ts +11 -13
- package/dist/store/slices/organizationSlice.d.ts +27 -10
- package/dist/store/slices/outboxSlice.d.ts +15 -15
- package/dist/store/slices/projectAccessSlice.d.ts +11 -16
- package/dist/store/slices/projectAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/projectFileSlice.d.ts +40 -29
- package/dist/store/slices/projectSlice.d.ts +10 -9
- package/dist/store/slices/rehydratedSlice.d.ts +7 -6
- package/dist/store/slices/teamSlice.d.ts +12 -14
- package/dist/store/slices/userSlice.d.ts +14 -13
- package/dist/store/slices/versioningSlice.d.ts +3 -2
- package/dist/store/slices/workspaceSlice.d.ts +31 -17
- package/dist/store/store.d.ts +15 -7
- package/dist/typings/files.d.ts +8 -4
- package/dist/typings/index.d.ts +6 -6
- package/dist/typings/models/access.d.ts +3 -2
- package/dist/typings/models/agents.d.ts +3 -2
- package/dist/typings/models/assets.d.ts +20 -4
- package/dist/typings/models/attachments.d.ts +3 -7
- package/dist/typings/models/base.d.ts +3 -2
- package/dist/typings/models/categories.d.ts +3 -2
- package/dist/typings/models/documents.d.ts +2 -1
- package/dist/typings/models/emailDomain.d.ts +2 -1
- package/dist/typings/models/emailVerification.d.ts +3 -2
- package/dist/typings/models/fields.d.ts +17 -0
- package/dist/typings/models/forms.d.ts +14 -30
- package/dist/typings/models/geo.d.ts +2 -1
- package/dist/typings/models/geoImages.d.ts +4 -3
- package/dist/typings/models/index.d.ts +22 -21
- package/dist/typings/models/issueTypes.d.ts +3 -2
- package/dist/typings/models/issues.d.ts +22 -6
- package/dist/typings/models/license.d.ts +3 -2
- package/dist/typings/models/organizations.d.ts +2 -1
- package/dist/typings/models/projects.d.ts +4 -3
- package/dist/typings/models/store.d.ts +11 -3
- package/dist/typings/models/teams.d.ts +4 -3
- package/dist/typings/models/users.d.ts +2 -1
- package/dist/typings/models/workspace.d.ts +2 -1
- package/dist/typings/search.d.ts +1 -1
- package/dist/typings/store.d.ts +2 -1
- package/dist/utils/async/DeferredPromise.d.ts +1 -1
- package/dist/utils/colors.d.ts +2 -1
- package/dist/utils/coordinates.d.ts +2 -1
- package/dist/utils/file.d.ts +3 -2
- package/dist/utils/forms.d.ts +2 -1
- package/dist/utils/index.d.ts +10 -10
- package/dist/utils/offline.d.ts +2 -1
- package/dist/utils/utils.d.ts +2 -1
- package/package.json +20 -21
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { OvermapSelector, OvermapSelectorWithArgs, Project, User } from '../../typings';
|
|
3
|
+
|
|
3
4
|
export interface ProjectState {
|
|
4
5
|
projects: Record<number, Project>;
|
|
5
6
|
}
|
|
6
|
-
export declare const projectSlice: import(
|
|
7
|
-
setProjects: (state: import(
|
|
7
|
+
export declare const projectSlice: import('@reduxjs/toolkit').Slice<ProjectState, {
|
|
8
|
+
setProjects: (state: import('immer').WritableDraft<ProjectState>, action: {
|
|
8
9
|
payload: Project[];
|
|
9
10
|
}) => void;
|
|
10
|
-
updateProject: (state: import(
|
|
11
|
+
updateProject: (state: import('immer').WritableDraft<ProjectState>, action: {
|
|
11
12
|
payload: Project;
|
|
12
13
|
}) => void;
|
|
13
|
-
deleteProject: (state: import(
|
|
14
|
+
deleteProject: (state: import('immer').WritableDraft<ProjectState>, action: {
|
|
14
15
|
payload: Project;
|
|
15
16
|
}) => void;
|
|
16
|
-
acceptProjectInvite: (state: import(
|
|
17
|
+
acceptProjectInvite: (state: import('immer').WritableDraft<ProjectState>, action: {
|
|
17
18
|
payload: number;
|
|
18
19
|
}) => void;
|
|
19
|
-
}, "projects"
|
|
20
|
-
export declare const setProjects: import(
|
|
20
|
+
}, "projects", "projects", import('@reduxjs/toolkit').SliceSelectors<ProjectState>>;
|
|
21
|
+
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">;
|
|
21
22
|
export declare const projectReducer: Reducer<ProjectState>;
|
|
22
23
|
export declare const selectProjectMapping: OvermapSelector<Record<number, Project>>;
|
|
23
24
|
export declare const selectProjectById: OvermapSelectorWithArgs<number, Project | undefined>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { PayloadAction, Reducer } from
|
|
2
|
-
import
|
|
1
|
+
import { PayloadAction, Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { OvermapRootState } from '../../typings';
|
|
3
|
+
|
|
3
4
|
export interface RehydratedState {
|
|
4
5
|
isRehydrated: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare const rehydratedSlice: import(
|
|
7
|
-
setRehydrated: (state: import(
|
|
8
|
-
}, "rehydrated"
|
|
9
|
-
export declare const setRehydrated: import(
|
|
7
|
+
export declare const rehydratedSlice: import('@reduxjs/toolkit').Slice<RehydratedState, {
|
|
8
|
+
setRehydrated: (state: import('immer').WritableDraft<RehydratedState>, action: PayloadAction<boolean>) => void;
|
|
9
|
+
}, "rehydrated", "rehydrated", import('@reduxjs/toolkit').SliceSelectors<RehydratedState>>;
|
|
10
|
+
export declare const setRehydrated: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "rehydrated/setRehydrated">;
|
|
10
11
|
export declare const selectRehydrated: (state: OvermapRootState) => boolean;
|
|
11
12
|
export declare const rehydratedReducer: Reducer<RehydratedState>;
|
|
@@ -1,30 +1,28 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { Organization, OvermapSelector, OvermapSelectorWithArgs, Stored, Team, User } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
|
|
4
5
|
export type TeamState = ModelState<Stored<Team>>;
|
|
5
|
-
export declare const teamSlice: import(
|
|
6
|
-
setTeam:
|
|
6
|
+
export declare const teamSlice: import('@reduxjs/toolkit').Slice<TeamState, {
|
|
7
|
+
setTeam: (state: ModelState<Stored<Team>>, action: {
|
|
7
8
|
payload: Stored<Team>;
|
|
8
9
|
type: string;
|
|
9
10
|
}) => void;
|
|
10
|
-
initializeTeams:
|
|
11
|
+
initializeTeams: (state: ModelState<Stored<Team>>, action: {
|
|
11
12
|
payload: Stored<Team>[];
|
|
12
13
|
type: string;
|
|
13
14
|
}) => void;
|
|
14
|
-
addTeam:
|
|
15
|
+
addTeam: (state: ModelState<Stored<Team>>, action: {
|
|
15
16
|
payload: Stored<Team>;
|
|
16
17
|
type: string;
|
|
17
18
|
}) => void;
|
|
18
|
-
updateTeam:
|
|
19
|
+
updateTeam: (state: ModelState<Stored<Team>>, action: {
|
|
19
20
|
payload: Stored<Team>;
|
|
20
21
|
type: string;
|
|
21
22
|
}) => void;
|
|
22
|
-
deleteTeam:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}) => void;
|
|
26
|
-
}, "teams">;
|
|
27
|
-
export declare const setTeam: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Team>, "teams/setTeam">, initializeTeams: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Team>[], "teams/initializeTeams">, addTeam: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Team>, "teams/addTeam">, updateTeam: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Team>, "teams/updateTeam">, deleteTeam: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "teams/deleteTeam">;
|
|
23
|
+
deleteTeam: (state: ModelState<Stored<Team>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
24
|
+
}, "teams", "teams", import('@reduxjs/toolkit').SliceSelectors<TeamState>>;
|
|
25
|
+
export declare const setTeam: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>, "teams/setTeam">, initializeTeams: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>[], "teams/initializeTeams">, addTeam: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>, "teams/addTeam">, updateTeam: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Team>, "teams/updateTeam">, deleteTeam: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "teams/deleteTeam">;
|
|
28
26
|
export declare const selectTeamsMapping: OvermapSelector<TeamState["instances"]>;
|
|
29
27
|
export declare const selectTeams: OvermapSelector<Stored<Team>[]>;
|
|
30
28
|
export declare const selectTeamById: OvermapSelectorWithArgs<string, Stored<Team> | undefined>;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { PayloadAction, Reducer } from
|
|
2
|
-
import
|
|
1
|
+
import { PayloadAction, Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { OvermapRootState, OvermapSelectorWithArgs, User } from '../../typings';
|
|
3
|
+
|
|
3
4
|
export interface UserState {
|
|
4
5
|
currentUser: User | null;
|
|
5
6
|
users: Record<number, User>;
|
|
6
7
|
}
|
|
7
|
-
export declare const userSlice: import(
|
|
8
|
-
setUsers: (state: import(
|
|
9
|
-
addUsers: (state: import(
|
|
10
|
-
setCurrentUser: (state: import(
|
|
11
|
-
setProfilePicture: (state: import(
|
|
8
|
+
export declare const userSlice: import('@reduxjs/toolkit').Slice<UserState, {
|
|
9
|
+
setUsers: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<User[]>) => void;
|
|
10
|
+
addUsers: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<User[]>) => void;
|
|
11
|
+
setCurrentUser: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<User | null>) => void;
|
|
12
|
+
setProfilePicture: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<{
|
|
12
13
|
file?: string;
|
|
13
14
|
file_sha1?: string;
|
|
14
15
|
}>) => void;
|
|
15
|
-
removeUser: (state: import(
|
|
16
|
-
}, "users"
|
|
17
|
-
export declare const setCurrentUser: import(
|
|
18
|
-
file?: string
|
|
19
|
-
file_sha1?: string
|
|
20
|
-
}, "users/setProfilePicture">, setUsers: import(
|
|
16
|
+
removeUser: (state: import('immer').WritableDraft<UserState>, action: PayloadAction<number>) => void;
|
|
17
|
+
}, "users", "users", import('@reduxjs/toolkit').SliceSelectors<UserState>>;
|
|
18
|
+
export declare const setCurrentUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<User | null, "users/setCurrentUser">, setProfilePicture: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
19
|
+
file?: string;
|
|
20
|
+
file_sha1?: string;
|
|
21
|
+
}, "users/setProfilePicture">, setUsers: import('@reduxjs/toolkit').ActionCreatorWithPayload<User[], "users/setUsers">, addUsers: import('@reduxjs/toolkit').ActionCreatorWithPayload<User[], "users/addUsers">, removeUser: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "users/removeUser">;
|
|
21
22
|
export declare const userReducer: Reducer<UserState>;
|
|
22
23
|
export declare const selectCurrentUser: (state: OvermapRootState) => User | null;
|
|
23
24
|
export declare const selectUsersMapping: (state: OvermapRootState) => Record<number, User>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Reducer } from
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
2
3
|
export interface VersioningState {
|
|
3
4
|
version: number;
|
|
4
5
|
}
|
|
5
6
|
/**
|
|
6
7
|
* Version of the offline redux store
|
|
7
8
|
*/
|
|
8
|
-
export declare const versioningSlice: import(
|
|
9
|
+
export declare const versioningSlice: import('@reduxjs/toolkit').Slice<VersioningState, {}, "versioning", "versioning", import('@reduxjs/toolkit').SliceSelectors<VersioningState>>;
|
|
9
10
|
export declare const versioningReducer: Reducer<VersioningState>;
|
|
@@ -1,35 +1,49 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored, Workspace } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
|
|
4
5
|
export type WorkspaceState = ModelState<Stored<Workspace>>;
|
|
5
|
-
export declare const workspaceSlice: import(
|
|
6
|
-
initializeWorkspaces:
|
|
6
|
+
export declare const workspaceSlice: import('@reduxjs/toolkit').Slice<WorkspaceState, {
|
|
7
|
+
initializeWorkspaces: (state: ModelState<Stored<Workspace>>, action: {
|
|
7
8
|
payload: Stored<Workspace>[];
|
|
8
9
|
type: string;
|
|
9
10
|
}) => void;
|
|
10
|
-
setWorkspaces:
|
|
11
|
+
setWorkspaces: (state: ModelState<Stored<Workspace>>, action: {
|
|
11
12
|
payload: Stored<Workspace>[];
|
|
12
13
|
type: string;
|
|
13
14
|
}) => void;
|
|
14
|
-
addWorkspace:
|
|
15
|
+
addWorkspace: (state: ModelState<Stored<Workspace>>, action: {
|
|
15
16
|
payload: Stored<Workspace>;
|
|
16
17
|
type: string;
|
|
17
18
|
}) => void;
|
|
18
|
-
updateWorkspace:
|
|
19
|
+
updateWorkspace: (state: ModelState<Stored<Workspace>>, action: {
|
|
19
20
|
payload: Stored<Workspace>;
|
|
20
21
|
type: string;
|
|
21
22
|
}) => void;
|
|
22
|
-
deleteWorkspace:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}) => void;
|
|
26
|
-
}, "workspace">;
|
|
27
|
-
export declare const initializeWorkspaces: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Workspace>[], "workspace/initializeWorkspaces">, setWorkspaces: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Workspace>[], "workspace/setWorkspaces">, addWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Workspace>, "workspace/addWorkspace">, updateWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Workspace>, "workspace/updateWorkspace">, deleteWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "workspace/deleteWorkspace">;
|
|
23
|
+
deleteWorkspace: (state: ModelState<Stored<Workspace>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
24
|
+
}, "workspace", "workspace", import('@reduxjs/toolkit').SliceSelectors<WorkspaceState>>;
|
|
25
|
+
export declare const initializeWorkspaces: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Workspace>[], "workspace/initializeWorkspaces">, setWorkspaces: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Workspace>[], "workspace/setWorkspaces">, addWorkspace: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Workspace>, "workspace/addWorkspace">, updateWorkspace: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Workspace>, "workspace/updateWorkspace">, deleteWorkspace: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "workspace/deleteWorkspace">;
|
|
28
26
|
export declare const selectWorkspaceMapping: OvermapSelector<Record<string, Workspace>>;
|
|
29
|
-
export declare const selectWorkspaces: ((state: OvermapRootState) => Workspace[]) &
|
|
30
|
-
clearCache: () => void;
|
|
31
|
-
}> & {
|
|
27
|
+
export declare const selectWorkspaces: ((state: OvermapRootState) => Workspace[]) & {
|
|
32
28
|
clearCache: () => void;
|
|
29
|
+
resultsCount: () => number;
|
|
30
|
+
resetResultsCount: () => void;
|
|
31
|
+
} & {
|
|
32
|
+
resultFunc: (resultFuncArgs_0: Record<string, Workspace>) => Workspace[];
|
|
33
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, Workspace>) => Workspace[]) & {
|
|
34
|
+
clearCache: () => void;
|
|
35
|
+
resultsCount: () => number;
|
|
36
|
+
resetResultsCount: () => void;
|
|
37
|
+
};
|
|
38
|
+
lastResult: () => Workspace[];
|
|
39
|
+
dependencies: [OvermapSelector<Record<string, Workspace>>];
|
|
40
|
+
recomputations: () => number;
|
|
41
|
+
resetRecomputations: () => void;
|
|
42
|
+
dependencyRecomputations: () => number;
|
|
43
|
+
resetDependencyRecomputations: () => void;
|
|
44
|
+
} & {
|
|
45
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
46
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
33
47
|
};
|
|
34
48
|
export declare const selectMainWorkspace: OvermapSelector<Workspace | undefined>;
|
|
35
49
|
export declare const selectWorkspaceById: OvermapSelectorWithArgs<string, Stored<Workspace> | undefined>;
|
package/dist/store/store.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { Config, OfflineAction, OfflineMetadata } from '@redux-offline/redux-offline/lib/types';
|
|
3
|
+
import { default as request } from 'superagent';
|
|
4
|
+
import { BaseSDK, OfflineMetaEffect, OutboxCoordinator, RequestDetails } from '../sdk';
|
|
5
|
+
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeFieldsAttachmentState, AssetTypeFieldsState, AssetTypeFieldValuesAttachmentState, AssetTypeFieldValuesState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeFieldsAttachmentState, IssueTypeFieldsState, IssueTypeFieldValuesAttachmentState, IssueTypeFieldValuesState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VersioningState, WorkspaceState } from './slices';
|
|
6
|
+
import { BaseState, OvermapRootState } from '../typings';
|
|
7
|
+
|
|
8
8
|
export declare const VERSION_REDUCER_KEY = "versioning";
|
|
9
9
|
export declare const overmapReducers: {
|
|
10
10
|
versioning: Reducer<VersioningState>;
|
|
@@ -45,6 +45,14 @@ export declare const overmapReducers: {
|
|
|
45
45
|
issueAttachmentReducer: Reducer<IssueAttachmentState>;
|
|
46
46
|
geoImageReducer: Reducer<GeoImageSliceState>;
|
|
47
47
|
issueAssociationReducer: Reducer<IssueAssociationSliceState>;
|
|
48
|
+
issueTypeFieldsReducer: Reducer<IssueTypeFieldsState>;
|
|
49
|
+
issueTypeFieldValuesReducer: Reducer<IssueTypeFieldValuesState>;
|
|
50
|
+
issueTypeFieldsAttachmentReducer: Reducer<IssueTypeFieldsAttachmentState>;
|
|
51
|
+
issueTypeFieldValuesAttachmentReducer: Reducer<IssueTypeFieldValuesAttachmentState>;
|
|
52
|
+
assetTypeFieldsReducer: Reducer<AssetTypeFieldsState>;
|
|
53
|
+
assetTypeFieldValuesReducer: Reducer<AssetTypeFieldValuesState>;
|
|
54
|
+
assetTypeFieldsAttachmentReducer: Reducer<AssetTypeFieldsAttachmentState>;
|
|
55
|
+
assetTypeFieldValuesAttachmentReducer: Reducer<AssetTypeFieldValuesAttachmentState>;
|
|
48
56
|
};
|
|
49
57
|
export declare const resetStore = "RESET";
|
|
50
58
|
export declare const overmapRootReducer: Reducer<OvermapRootState>;
|
package/dist/typings/files.d.ts
CHANGED
|
@@ -12,10 +12,14 @@ export type FileModel = MaybeObjectURL<{
|
|
|
12
12
|
export interface FileWithNameModel extends FileModel {
|
|
13
13
|
file_name: string;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
sha1: string;
|
|
18
|
-
extension: string;
|
|
15
|
+
export interface FilePayload {
|
|
16
|
+
sha1: FileModel["file_sha1"];
|
|
19
17
|
file_type: string;
|
|
18
|
+
extension: string;
|
|
20
19
|
size: number;
|
|
21
20
|
}
|
|
21
|
+
export interface FileModelPayload {
|
|
22
|
+
file_sha1: FileWithNameModel["file_sha1"];
|
|
23
|
+
file_name: FileWithNameModel["file_name"];
|
|
24
|
+
file_extension: string;
|
|
25
|
+
}
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export * from './colors';
|
|
2
|
+
export * from './files';
|
|
3
|
+
export * from './json';
|
|
4
|
+
export * from './models';
|
|
5
|
+
export * from './search';
|
|
6
|
+
export * from './store';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { OrganizationAccessLevel, ProjectAccessLevel } from '../../enums';
|
|
2
|
+
import { OfflineModel } from './base';
|
|
3
|
+
|
|
3
4
|
export interface ProjectAccess extends OfflineModel {
|
|
4
5
|
user: number;
|
|
5
6
|
project: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { JSONContent } from
|
|
2
|
-
import
|
|
1
|
+
import { JSONContent } from '@tiptap/core';
|
|
2
|
+
import { Offline, OptionalFileModel, TimestampedModel } from './base';
|
|
3
|
+
|
|
3
4
|
export interface AgentProfile extends OptionalFileModel {
|
|
4
5
|
/**
|
|
5
6
|
* The name of the agent.
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
2
|
+
import { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
|
|
3
|
+
import { CanvasMarkableModel, MarkableModel } from './geo';
|
|
4
|
+
import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
|
|
5
|
+
|
|
3
6
|
export interface Asset extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel {
|
|
4
7
|
asset_type: string;
|
|
5
8
|
created_at?: string;
|
|
6
9
|
label: string | null;
|
|
7
10
|
description?: string;
|
|
11
|
+
project: number;
|
|
8
12
|
}
|
|
9
13
|
export interface AssetType extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel, IconModel, ColorModel {
|
|
10
|
-
|
|
14
|
+
organization: number;
|
|
11
15
|
name?: string;
|
|
12
16
|
description?: string;
|
|
13
17
|
}
|
|
@@ -16,10 +20,22 @@ export interface AssetStage extends OfflineModel, TimestampedModel, SubmittedAtM
|
|
|
16
20
|
name?: string | null;
|
|
17
21
|
description?: string | null;
|
|
18
22
|
priority: number;
|
|
19
|
-
form?: string;
|
|
20
23
|
}
|
|
21
24
|
export interface AssetStageCompletion extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
|
|
22
25
|
asset: string;
|
|
23
26
|
stage: string;
|
|
24
27
|
}
|
|
25
28
|
export type CompletedStagesMapping = Record<string, Record<string, string>>;
|
|
29
|
+
export interface AssetTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
30
|
+
asset_type: string;
|
|
31
|
+
}
|
|
32
|
+
export interface AssetTypeFieldsAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
33
|
+
fields_revision: string;
|
|
34
|
+
}
|
|
35
|
+
export interface AssetTypeFieldValues extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
36
|
+
fields_revision: string;
|
|
37
|
+
asset: string;
|
|
38
|
+
}
|
|
39
|
+
export interface AssetTypeFieldValuesAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
40
|
+
field_values: string;
|
|
41
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { CreatedByModel, OfflineModel, SubmittedAtModel } from './base';
|
|
2
|
+
import { FileModel, FileWithNameModel } from '../files';
|
|
3
|
+
|
|
3
4
|
export interface Attachment extends OfflineModel, SubmittedAtModel, FileWithNameModel, CreatedByModel {
|
|
4
5
|
description?: string;
|
|
5
6
|
file_type: string;
|
|
@@ -19,9 +20,4 @@ export interface ProjectAttachment extends Attachment {
|
|
|
19
20
|
export interface DocumentAttachment extends Attachment {
|
|
20
21
|
document: string;
|
|
21
22
|
}
|
|
22
|
-
/** to get an AttachmentPayload for a specific type, pass in the given AttachmentType
|
|
23
|
-
* ex. AttachmentPayload<IssueAttachment> */
|
|
24
|
-
export type AttachmentPayload<TAttachment> = Omit<TAttachment, "file" | "submitted_at" | "created_by"> & {
|
|
25
|
-
file: MaybeObjectURL<File>;
|
|
26
|
-
};
|
|
27
23
|
export type ProfilePic = FileModel;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { CreatedByModel, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
|
|
2
|
+
import { CSSColor } from '../colors';
|
|
3
|
+
|
|
3
4
|
export interface Category extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
4
5
|
name: string;
|
|
5
6
|
description?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
|
|
2
|
+
|
|
2
3
|
export interface Document extends OfflineModel, SubmittedAtModel, CreatedByModel, TimestampedModel, IconModel, ColorModel {
|
|
3
4
|
title: string | null;
|
|
4
5
|
description: string | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { RegistrationPayload } from './users';
|
|
2
|
+
import { OfflineModel } from './base';
|
|
3
|
+
|
|
3
4
|
export type EmailVerificationPayload = undefined | RegistrationPayload | Omit<RegistrationPayload, "username" | "email">;
|
|
4
5
|
export interface EmailVerificationReturn {
|
|
5
6
|
username?: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseSerializedObject, FieldValue, ISerializedField } from '@overmap-ai/forms';
|
|
2
|
+
import { FileWithNameModel } from '../files';
|
|
3
|
+
|
|
4
|
+
export interface FieldsModel<TFields extends BaseSerializedObject = ISerializedField> {
|
|
5
|
+
fields: TFields[];
|
|
6
|
+
revision: number | "Pending";
|
|
7
|
+
}
|
|
8
|
+
export interface FieldValuesModel {
|
|
9
|
+
published_at?: string | null;
|
|
10
|
+
values: Record<string, FieldValue>;
|
|
11
|
+
}
|
|
12
|
+
export interface FieldsAttachmentModel extends FileWithNameModel {
|
|
13
|
+
field_identifier: string;
|
|
14
|
+
}
|
|
15
|
+
export interface FieldValuesAttachmentModel extends FileWithNameModel {
|
|
16
|
+
field_identifier: string;
|
|
17
|
+
}
|
|
@@ -1,41 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { CreatedByModel, OfflineModel, Payload, SubmittedAtModel, TimestampedModel } from './base';
|
|
2
|
+
import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
|
|
3
|
+
import { FieldsAttachmentModel, FieldsModel, FieldValuesAttachmentModel, FieldValuesModel } from './fields';
|
|
4
|
+
|
|
4
5
|
export interface Form extends OfflineModel, SubmittedAtModel, CreatedByModel {
|
|
5
|
-
|
|
6
|
-
issue_type?: string;
|
|
7
|
-
organization?: number;
|
|
8
|
-
project?: number;
|
|
6
|
+
organization: number;
|
|
9
7
|
}
|
|
10
|
-
export
|
|
11
|
-
created_by: number;
|
|
12
|
-
submitted_at: string;
|
|
13
|
-
};
|
|
14
|
-
export type CachedForm = SubmittedForm & {
|
|
15
|
-
latestRevision: FormRevision;
|
|
16
|
-
};
|
|
17
|
-
export interface FormRevision<TFields extends BaseSerializedObject = ISerializedField> extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
8
|
+
export interface FormRevision<TFields extends BaseSerializedObject = ISerializedField> extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
18
9
|
form: string;
|
|
19
10
|
title: string;
|
|
20
11
|
description?: string;
|
|
21
|
-
fields: TFields[];
|
|
22
|
-
revision: number | "Pending";
|
|
23
12
|
}
|
|
24
|
-
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision"
|
|
25
|
-
export interface FormSubmission extends OfflineModel, SubmittedAtModel, CreatedByModel {
|
|
26
|
-
published_at?: string | null;
|
|
13
|
+
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
14
|
+
export interface FormSubmission extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
27
15
|
form_revision: string;
|
|
28
16
|
project: number;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
asset?: string;
|
|
32
|
-
asset_stage?: string;
|
|
17
|
+
issue?: string | null;
|
|
18
|
+
asset?: string | null;
|
|
33
19
|
}
|
|
34
|
-
export interface FormSubmissionAttachment extends
|
|
35
|
-
|
|
36
|
-
field_identifier: string;
|
|
20
|
+
export interface FormSubmissionAttachment extends FieldValuesAttachmentModel {
|
|
21
|
+
form_submission: string;
|
|
37
22
|
}
|
|
38
|
-
export interface FormRevisionAttachment extends
|
|
39
|
-
|
|
40
|
-
field_identifier: string;
|
|
23
|
+
export interface FormRevisionAttachment extends FieldsAttachmentModel {
|
|
24
|
+
form_revision: string;
|
|
41
25
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { CreatedByModel, OfflineModel, SubmittedAtModel } from './base';
|
|
2
|
+
import { CanvasMarkableModel, MarkableModel } from './geo';
|
|
3
|
+
import { FileWithNameModel } from '../files';
|
|
4
|
+
|
|
4
5
|
export interface GeoImage extends OfflineModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel {
|
|
5
6
|
title?: string;
|
|
6
7
|
description?: string;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
1
|
+
export * from './access';
|
|
2
|
+
export * from './attachments';
|
|
3
|
+
export * from './base';
|
|
4
|
+
export * from './categories';
|
|
5
|
+
export * from './assets';
|
|
6
|
+
export * from './forms';
|
|
7
|
+
export * from './fields';
|
|
8
|
+
export * from './geo';
|
|
9
|
+
export * from './issues';
|
|
10
|
+
export * from './issueTypes';
|
|
11
|
+
export * from './organizations';
|
|
12
|
+
export * from './projects';
|
|
13
|
+
export * from './users';
|
|
14
|
+
export * from './workspace';
|
|
15
|
+
export * from './emailVerification';
|
|
16
|
+
export * from './store';
|
|
17
|
+
export * from './emailDomain';
|
|
18
|
+
export * from './license';
|
|
19
|
+
export * from './documents';
|
|
20
|
+
export * from './teams';
|
|
21
|
+
export * from './agents';
|
|
22
|
+
export * from './geoImages';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel } from './base';
|
|
2
|
+
import { Organization } from './organizations';
|
|
3
|
+
|
|
3
4
|
export interface IssueType extends OfflineModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
|
|
4
5
|
name?: string;
|
|
5
6
|
description?: string;
|