@overmap-ai/core 1.0.60-model-adapter.1 → 1.0.60-move-active-states.0
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/enums/index.d.ts +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/overmap-core.js +1398 -10611
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +1419 -10634
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/base.d.ts +11 -0
- package/dist/sdk/globals.d.ts +7 -0
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/sdk.d.ts +4 -51
- package/dist/sdk/services/AgentService.d.ts +4 -3
- package/dist/sdk/services/AssetAttachmentService.d.ts +4 -3
- package/dist/sdk/services/AssetService.d.ts +5 -4
- package/dist/sdk/services/AssetStageCompletionService.d.ts +5 -4
- package/dist/sdk/services/AssetStageService.d.ts +4 -3
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +4 -3
- package/dist/sdk/services/AssetTypeService.d.ts +5 -4
- package/dist/sdk/services/BaseApiService.d.ts +7 -4
- package/dist/sdk/services/BaseAttachmentService.d.ts +12 -7
- package/dist/sdk/services/BaseAuthService.d.ts +12 -0
- package/dist/sdk/services/BaseService.d.ts +15 -0
- package/dist/sdk/services/BaseUploadService.d.ts +8 -0
- package/dist/sdk/services/CategoryService.d.ts +5 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +4 -3
- 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 +3 -2
- package/dist/sdk/services/FileService.d.ts +4 -1
- package/dist/sdk/services/GeoImageService.d.ts +11 -0
- package/dist/sdk/services/IssueAttachmentService.d.ts +4 -3
- package/dist/sdk/services/IssueCommentService.d.ts +5 -4
- package/dist/sdk/services/IssueService.d.ts +6 -5
- package/dist/sdk/services/IssueTypeService.d.ts +6 -5
- package/dist/sdk/services/IssueUpdateService.d.ts +4 -2
- package/dist/sdk/services/JWTAuthService.d.ts +36 -0
- 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 -4
- package/dist/sdk/services/ProjectAccessService.d.ts +4 -3
- package/dist/sdk/services/ProjectAttachmentService.d.ts +4 -3
- package/dist/sdk/services/ProjectFileService.d.ts +4 -2
- package/dist/sdk/services/ProjectService.d.ts +3 -2
- package/dist/sdk/services/TeamService.d.ts +6 -5
- package/dist/sdk/services/UserFormService.d.ts +5 -5
- package/dist/sdk/services/UserFormSubmissionService.d.ts +8 -9
- package/dist/sdk/services/UserService.d.ts +6 -0
- package/dist/sdk/services/WorkspaceService.d.ts +4 -1
- package/dist/sdk/services/index.d.ts +3 -2
- package/dist/sdk/typings.d.ts +8 -3
- package/dist/store/index.d.ts +0 -1
- package/dist/store/slices/agentsSlice.d.ts +4 -4
- package/dist/store/slices/assetAttachmentSlice.d.ts +6 -6
- package/dist/store/slices/assetSlice.d.ts +8 -8
- package/dist/store/slices/assetStageCompletionSlice.d.ts +3 -3
- package/dist/store/slices/assetStageSlice.d.ts +9 -9
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +6 -6
- package/dist/store/slices/assetTypeSlice.d.ts +8 -14
- package/dist/store/slices/authSlice.d.ts +3 -3
- package/dist/store/slices/categorySlice.d.ts +16 -72
- package/dist/store/slices/documentAttachmentSlice.d.ts +6 -6
- package/dist/store/slices/documentSlice.d.ts +20 -62
- package/dist/store/slices/emailDomainsSlice.d.ts +4 -4
- package/dist/store/slices/fileSlice.d.ts +2 -2
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +3 -3
- package/dist/store/slices/formRevisionSlice.d.ts +19 -61
- package/dist/store/slices/formSlice.d.ts +9 -8
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +3 -3
- package/dist/store/slices/formSubmissionSlice.d.ts +11 -11
- package/dist/store/slices/geoImageSlice.d.ts +48 -0
- package/dist/store/slices/index.d.ts +2 -1
- package/dist/store/slices/issueAttachmentSlice.d.ts +6 -6
- package/dist/store/slices/issueCommentSlice.d.ts +3 -3
- package/dist/store/slices/issueSlice.d.ts +7 -17
- package/dist/store/slices/issueTypeSlice.d.ts +7 -7
- package/dist/store/slices/issueUpdateSlice.d.ts +3 -3
- package/dist/store/slices/licenseSlice.d.ts +7 -7
- package/dist/store/slices/organizationAccessSlice.d.ts +6 -6
- package/dist/store/slices/organizationSlice.d.ts +14 -25
- package/dist/store/slices/outboxSlice.d.ts +6 -4
- package/dist/store/slices/projectAccessSlice.d.ts +7 -7
- package/dist/store/slices/projectAttachmentSlice.d.ts +6 -6
- package/dist/store/slices/projectFileSlice.d.ts +8 -62
- package/dist/store/slices/projectSlice.d.ts +10 -10
- package/dist/store/slices/rehydratedSlice.d.ts +3 -2
- package/dist/store/slices/settingsSlice.d.ts +3 -24
- package/dist/store/slices/teamSlice.d.ts +6 -6
- package/dist/store/slices/userSlice.d.ts +5 -5
- package/dist/store/slices/workspaceSlice.d.ts +9 -56
- package/dist/store/store.d.ts +9 -91
- package/dist/typings/colors.d.ts +0 -3
- package/dist/typings/models/{components.d.ts → assets.d.ts} +2 -3
- package/dist/typings/models/forms.d.ts +87 -1
- package/dist/typings/models/geo.d.ts +18 -6
- package/dist/typings/models/geoImages.d.ts +14 -0
- package/dist/typings/models/index.d.ts +2 -1
- package/dist/typings/models/issues.d.ts +3 -4
- package/dist/typings/models/organizations.d.ts +0 -11
- package/dist/typings/models/projects.d.ts +3 -5
- package/dist/typings/models/store.d.ts +43 -4
- package/dist/typings/store.d.ts +6 -4
- package/dist/utils/colors.d.ts +0 -6
- package/dist/utils/coordinates.d.ts +5 -7
- package/dist/utils/file.d.ts +0 -6
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/utils.d.ts +3 -3
- package/package.json +13 -41
- package/dist/components/ColorPicker/ColorPicker.d.ts +0 -10
- package/dist/components/ColorPicker/index.d.ts +0 -1
- package/dist/components/FileBadge/FileBadge.d.ts +0 -8
- package/dist/components/FileBadge/index.d.ts +0 -1
- package/dist/components/FileCard/FileCard.d.ts +0 -8
- package/dist/components/FileCard/index.d.ts +0 -1
- package/dist/components/FileIcon/FileIcon.d.ts +0 -5
- package/dist/components/FileIcon/index.d.ts +0 -1
- package/dist/components/FileViewer/FileViewerProvider.d.ts +0 -2
- package/dist/components/FileViewer/context.d.ts +0 -5
- package/dist/components/FileViewer/index.d.ts +0 -3
- package/dist/components/FileViewer/typings.d.ts +0 -5
- package/dist/components/ImageCard/ImageCard.d.ts +0 -9
- package/dist/components/ImageCard/index.d.ts +0 -1
- package/dist/components/ImageMarkup/ImageMarkup.d.ts +0 -14
- package/dist/components/ImageMarkup/index.d.ts +0 -1
- package/dist/components/ImageViewer/ImageViewer.d.ts +0 -8
- package/dist/components/ImageViewer/constants.d.ts +0 -1
- package/dist/components/ImageViewer/index.d.ts +0 -2
- package/dist/components/PDFViewer/PDFViewer.d.ts +0 -8
- package/dist/components/PDFViewer/constants.d.ts +0 -1
- package/dist/components/PDFViewer/index.d.ts +0 -2
- package/dist/components/SpreadsheetViewer/SpreadsheetViewer.d.ts +0 -8
- package/dist/components/SpreadsheetViewer/constants.d.ts +0 -1
- package/dist/components/SpreadsheetViewer/index.d.ts +0 -2
- package/dist/components/index.d.ts +0 -10
- package/dist/contexts/hooks.d.ts +0 -2
- package/dist/contexts/index.d.ts +0 -3
- package/dist/contexts/overmap.d.ts +0 -12
- package/dist/contexts/sdk/globals.d.ts +0 -4
- package/dist/contexts/sdk/hooks.d.ts +0 -4
- package/dist/contexts/sdk/index.d.ts +0 -2
- package/dist/contexts/sdk/sdk.d.ts +0 -15
- package/dist/enums/map.d.ts +0 -6
- package/dist/forms/builder/DropDispatch.d.ts +0 -27
- package/dist/forms/builder/FieldActions.d.ts +0 -13
- package/dist/forms/builder/FieldBuilder.d.ts +0 -10
- package/dist/forms/builder/FieldSectionWithActions.d.ts +0 -11
- package/dist/forms/builder/FieldWithActions.d.ts +0 -10
- package/dist/forms/builder/FieldsEditor.d.ts +0 -6
- package/dist/forms/builder/FormBuilder.d.ts +0 -25
- package/dist/forms/builder/constants.d.ts +0 -18
- package/dist/forms/builder/hooks.d.ts +0 -7
- package/dist/forms/builder/index.d.ts +0 -2
- package/dist/forms/builder/typings.d.ts +0 -12
- package/dist/forms/builder/utils.d.ts +0 -24
- package/dist/forms/constants.d.ts +0 -2
- package/dist/forms/constantsJsx.d.ts +0 -9
- package/dist/forms/fields/BaseField/BaseField.d.ts +0 -52
- package/dist/forms/fields/BaseField/hooks.d.ts +0 -374
- package/dist/forms/fields/BaseField/index.d.ts +0 -4
- package/dist/forms/fields/BaseField/layouts.d.ts +0 -25
- package/dist/forms/fields/BaseField/typings.d.ts +0 -7
- package/dist/forms/fields/BooleanField/BooleanField.d.ts +0 -23
- package/dist/forms/fields/BooleanField/BooleanInput.d.ts +0 -4
- package/dist/forms/fields/BooleanField/index.d.ts +0 -2
- package/dist/forms/fields/CustomField/CustomField.d.ts +0 -24
- package/dist/forms/fields/CustomField/FieldInputClonerField/FieldInputCloner.d.ts +0 -8
- package/dist/forms/fields/CustomField/FieldInputClonerField/FieldInputClonerField.d.ts +0 -18
- package/dist/forms/fields/CustomField/FieldInputClonerField/index.d.ts +0 -3
- package/dist/forms/fields/CustomField/FieldInputClonerField/typings.d.ts +0 -5
- package/dist/forms/fields/CustomField/index.d.ts +0 -1
- package/dist/forms/fields/DateField/DateField.d.ts +0 -22
- package/dist/forms/fields/DateField/DateInput.d.ts +0 -4
- package/dist/forms/fields/DateField/index.d.ts +0 -2
- package/dist/forms/fields/FieldSection/FieldSection.d.ts +0 -33
- package/dist/forms/fields/FieldSection/FieldSectionLayout.d.ts +0 -7
- package/dist/forms/fields/FieldSection/index.d.ts +0 -1
- package/dist/forms/fields/MultiStringField/MultiStringField.d.ts +0 -40
- package/dist/forms/fields/MultiStringField/MultiStringInput.d.ts +0 -8
- package/dist/forms/fields/MultiStringField/index.d.ts +0 -2
- package/dist/forms/fields/NumberField/NumberField.d.ts +0 -46
- package/dist/forms/fields/NumberField/NumberInput.d.ts +0 -4
- package/dist/forms/fields/NumberField/index.d.ts +0 -2
- package/dist/forms/fields/QrField/QrField.d.ts +0 -21
- package/dist/forms/fields/QrField/QrInput.d.ts +0 -10
- package/dist/forms/fields/QrField/index.d.ts +0 -2
- package/dist/forms/fields/SelectField/BaseSelectField.d.ts +0 -34
- package/dist/forms/fields/SelectField/MultiSelectField.d.ts +0 -27
- package/dist/forms/fields/SelectField/MultiSelectInput.d.ts +0 -4
- package/dist/forms/fields/SelectField/SelectField.d.ts +0 -26
- package/dist/forms/fields/SelectField/SelectInput.d.ts +0 -4
- package/dist/forms/fields/SelectField/index.d.ts +0 -4
- package/dist/forms/fields/StringOrTextFields/StringField/StringField.d.ts +0 -26
- package/dist/forms/fields/StringOrTextFields/StringField/StringInput.d.ts +0 -4
- package/dist/forms/fields/StringOrTextFields/StringField/index.d.ts +0 -2
- package/dist/forms/fields/StringOrTextFields/StringOrTextField.d.ts +0 -34
- package/dist/forms/fields/StringOrTextFields/TextField/TextField.d.ts +0 -22
- package/dist/forms/fields/StringOrTextFields/TextField/TextInput.d.ts +0 -4
- package/dist/forms/fields/StringOrTextFields/TextField/index.d.ts +0 -2
- package/dist/forms/fields/StringOrTextFields/index.d.ts +0 -2
- package/dist/forms/fields/UploadField/UploadField.d.ts +0 -44
- package/dist/forms/fields/UploadField/UploadInput.d.ts +0 -4
- package/dist/forms/fields/UploadField/index.d.ts +0 -2
- package/dist/forms/fields/UploadField/utils.d.ts +0 -1
- package/dist/forms/fields/constants.d.ts +0 -106
- package/dist/forms/fields/hooks.d.ts +0 -6
- package/dist/forms/fields/index.d.ts +0 -12
- package/dist/forms/fields/typings.d.ts +0 -27
- package/dist/forms/fields/utils.d.ts +0 -17
- package/dist/forms/index.d.ts +0 -5
- package/dist/forms/renderer/FormBrowser/FormBrowser.d.ts +0 -11
- package/dist/forms/renderer/FormRenderer/FormRenderer.d.ts +0 -31
- package/dist/forms/renderer/FormSubmissionBrowser/FormSubmissionBrowser.d.ts +0 -28
- package/dist/forms/renderer/FormSubmissionViewer/FormSubmissionViewer.d.ts +0 -17
- package/dist/forms/renderer/PatchForm/Field.d.ts +0 -17
- package/dist/forms/renderer/PatchForm/Provider.d.ts +0 -29
- package/dist/forms/renderer/PatchForm/index.d.ts +0 -2
- package/dist/forms/renderer/index.d.ts +0 -5
- package/dist/forms/typings.d.ts +0 -103
- package/dist/forms/utils.d.ts +0 -9
- package/dist/sdk/services/AuthService.d.ts +0 -54
- package/dist/sdk/services/MainService.d.ts +0 -16
- package/dist/store/hooks.d.ts +0 -4
- package/dist/store/slices/mapSlice.d.ts +0 -23
- package/dist/style.css +0 -435
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { RootState, Selector, Workspace } from "../../typings";
|
|
1
|
+
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
+
import { OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored, Workspace } from "../../typings";
|
|
4
3
|
import { ModelState } from "../typings";
|
|
5
|
-
export
|
|
6
|
-
activeWorkspaceId: string | null;
|
|
7
|
-
}
|
|
4
|
+
export type WorkspaceState = ModelState<Workspace>;
|
|
8
5
|
export declare const workspaceSlice: import("@reduxjs/toolkit").Slice<WorkspaceState, {
|
|
9
6
|
initializeWorkspaces: <TState extends ModelState<Workspace>>(state: TState, action: {
|
|
10
7
|
payload: Workspace[];
|
|
@@ -26,59 +23,15 @@ export declare const workspaceSlice: import("@reduxjs/toolkit").Slice<WorkspaceS
|
|
|
26
23
|
payload: string;
|
|
27
24
|
type: string;
|
|
28
25
|
}) => void;
|
|
29
|
-
setActiveWorkspaceId: (state: import("immer/dist/internal.js").WritableDraft<WorkspaceState>, action: PayloadAction<string | null>) => void;
|
|
30
26
|
}, "workspace">;
|
|
31
|
-
export declare const initializeWorkspaces: import("@reduxjs/toolkit").ActionCreatorWithPayload<Workspace[], "workspace/initializeWorkspaces">, setWorkspaces: import("@reduxjs/toolkit").ActionCreatorWithPayload<Workspace[], "workspace/setWorkspaces">, addWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<Workspace, "workspace/addWorkspace">, updateWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<Workspace, "workspace/updateWorkspace">,
|
|
32
|
-
export declare const selectWorkspaceMapping:
|
|
33
|
-
export declare const selectWorkspaces: ((state: import("
|
|
34
|
-
versioning: import('../slices/versioningSlice').VersioningState;
|
|
35
|
-
fileReducer: import('..').FileState;
|
|
36
|
-
authReducer: import('..').AuthState;
|
|
37
|
-
categoryReducer: import('..').CategoryState;
|
|
38
|
-
assetReducer: import('..').AssetState;
|
|
39
|
-
assetAttachmentReducer: import('..').AssetAttachmentState;
|
|
40
|
-
assetStageCompletionReducer: import('..').AssetStageCompletionState;
|
|
41
|
-
assetStageReducer: import('..').AssetStageState;
|
|
42
|
-
assetTypeReducer: import('..').AssetTypeState;
|
|
43
|
-
assetTypeAttachmentReducer: import('..').AssetTypeAttachmentState;
|
|
44
|
-
issueReducer: import('..').IssueState;
|
|
45
|
-
issueTypeReducer: import('..').IssueTypeState;
|
|
46
|
-
mapReducer: import('..').MapState;
|
|
47
|
-
organizationReducer: import('..').OrganizationState;
|
|
48
|
-
outboxReducer: import('..').OutboxState;
|
|
49
|
-
projectReducer: import('..').ProjectState;
|
|
50
|
-
projectAttachmentReducer: import('..').ProjectAttachmentState;
|
|
51
|
-
projectAccessReducer: import('..').ProjectAccessState;
|
|
52
|
-
organizationAccessReducer: import('..').OrganizationAccessState;
|
|
53
|
-
projectFileReducer: import('..').ProjectFileState;
|
|
54
|
-
rehydratedReducer: import('..').RehydratedState;
|
|
55
|
-
settingReducer: import('..').SettingState;
|
|
56
|
-
formReducer: import('..').FormState;
|
|
57
|
-
userReducer: import('..').UserState;
|
|
58
|
-
formRevisionReducer: import('..').FormRevisionState;
|
|
59
|
-
formRevisionAttachmentReducer: import('..').FormRevisionAttachmentState;
|
|
60
|
-
formSubmissionAttachmentReducer: import('..').FormSubmissionAttachmentState;
|
|
61
|
-
formSubmissionReducer: import('..').FormSubmissionState;
|
|
62
|
-
workspaceReducer: WorkspaceState;
|
|
63
|
-
emailDomainsReducer: import('..').EmailDomainState;
|
|
64
|
-
licenseReducer: import('..').LicenseState;
|
|
65
|
-
documentsReducer: import('..').DocumentState;
|
|
66
|
-
documentAttachmentReducer: import('..').DocumentAttachmentState;
|
|
67
|
-
teamReducer: import('..').TeamState;
|
|
68
|
-
agentsReducer: import('..').AgentsState;
|
|
69
|
-
issueCommentReducer: import('..').IssueCommentState;
|
|
70
|
-
issueUpdateReducer: import('..').IssueUpdateState;
|
|
71
|
-
issueAttachmentReducer: import('..').IssueAttachmentState;
|
|
72
|
-
} & {
|
|
73
|
-
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
74
|
-
}) => Workspace[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Workspace>) => Workspace[], {
|
|
27
|
+
export declare const initializeWorkspaces: import("@reduxjs/toolkit").ActionCreatorWithPayload<Workspace[], "workspace/initializeWorkspaces">, setWorkspaces: import("@reduxjs/toolkit").ActionCreatorWithPayload<Workspace[], "workspace/setWorkspaces">, addWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<Workspace, "workspace/addWorkspace">, updateWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<Workspace, "workspace/updateWorkspace">, deleteWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "workspace/deleteWorkspace">;
|
|
28
|
+
export declare const selectWorkspaceMapping: OvermapSelector<Record<string, Workspace>>;
|
|
29
|
+
export declare const selectWorkspaces: ((state: OvermapRootState) => Workspace[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Workspace>) => Workspace[], {
|
|
75
30
|
clearCache: () => void;
|
|
76
31
|
}> & {
|
|
77
32
|
clearCache: () => void;
|
|
78
33
|
};
|
|
79
|
-
export declare const selectMainWorkspace:
|
|
80
|
-
export declare const
|
|
81
|
-
export declare const
|
|
82
|
-
export declare const selectActiveWorkspace: Selector<Workspace | null | undefined>;
|
|
83
|
-
export declare const selectPermittedWorkspaceIds: Selector<Set<string>>;
|
|
34
|
+
export declare const selectMainWorkspace: OvermapSelector<Workspace | undefined>;
|
|
35
|
+
export declare const selectWorkspaceById: OvermapSelectorWithArgs<string, Stored<Workspace>>;
|
|
36
|
+
export declare const selectPermittedWorkspaceIds: OvermapSelector<Set<string>>;
|
|
84
37
|
export declare const workspaceReducer: Reducer<WorkspaceState>;
|
package/dist/store/store.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="@redux-offline/redux-offline" />
|
|
2
|
-
import {
|
|
3
|
-
import { Config, OfflineAction, OfflineMetadata
|
|
2
|
+
import { Reducer } from "redux";
|
|
3
|
+
import { Config, OfflineAction, OfflineMetadata } from "@redux-offline/redux-offline/lib/types";
|
|
4
4
|
import request from "superagent";
|
|
5
|
-
import { type OfflineMetaEffect, OutboxCoordinator,
|
|
6
|
-
import { AgentsState,
|
|
7
|
-
import {
|
|
8
|
-
|
|
5
|
+
import { type BaseSDK, type OfflineMetaEffect, OutboxCoordinator, RequestDetails } from "../sdk";
|
|
6
|
+
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, SettingState, TeamState, UserState, VersioningState, WorkspaceState } from "./slices";
|
|
7
|
+
import { BaseState, OvermapRootState } from "../typings";
|
|
8
|
+
export declare const VERSION_REDUCER_KEY = "versioning";
|
|
9
9
|
export declare const overmapReducers: {
|
|
10
10
|
versioning: Reducer<VersioningState>;
|
|
11
11
|
fileReducer: Reducer<FileState>;
|
|
@@ -19,7 +19,6 @@ export declare const overmapReducers: {
|
|
|
19
19
|
assetTypeAttachmentReducer: Reducer<AssetTypeAttachmentState>;
|
|
20
20
|
issueReducer: Reducer<IssueState>;
|
|
21
21
|
issueTypeReducer: Reducer<IssueTypeState>;
|
|
22
|
-
mapReducer: Reducer<MapState>;
|
|
23
22
|
organizationReducer: Reducer<OrganizationState>;
|
|
24
23
|
outboxReducer: Reducer<OutboxState>;
|
|
25
24
|
projectReducer: Reducer<ProjectState>;
|
|
@@ -45,49 +44,10 @@ export declare const overmapReducers: {
|
|
|
45
44
|
issueCommentReducer: Reducer<IssueCommentState>;
|
|
46
45
|
issueUpdateReducer: Reducer<IssueUpdateState>;
|
|
47
46
|
issueAttachmentReducer: Reducer<IssueAttachmentState>;
|
|
47
|
+
geoImageReducer: Reducer<GeoImageSliceState>;
|
|
48
48
|
};
|
|
49
|
-
export declare const overmapReducer: Reducer<import("redux").CombinedState<{
|
|
50
|
-
versioning: VersioningState;
|
|
51
|
-
fileReducer: FileState;
|
|
52
|
-
authReducer: AuthState;
|
|
53
|
-
categoryReducer: CategoryState;
|
|
54
|
-
assetReducer: AssetState;
|
|
55
|
-
assetAttachmentReducer: AssetAttachmentState;
|
|
56
|
-
assetStageCompletionReducer: AssetStageCompletionState;
|
|
57
|
-
assetStageReducer: AssetStageState;
|
|
58
|
-
assetTypeReducer: AssetTypeState;
|
|
59
|
-
assetTypeAttachmentReducer: AssetTypeAttachmentState;
|
|
60
|
-
issueReducer: IssueState;
|
|
61
|
-
issueTypeReducer: IssueTypeState;
|
|
62
|
-
mapReducer: MapState;
|
|
63
|
-
organizationReducer: OrganizationState;
|
|
64
|
-
outboxReducer: OutboxState;
|
|
65
|
-
projectReducer: ProjectState;
|
|
66
|
-
projectAttachmentReducer: ProjectAttachmentState;
|
|
67
|
-
projectAccessReducer: ProjectAccessState;
|
|
68
|
-
organizationAccessReducer: OrganizationAccessState;
|
|
69
|
-
projectFileReducer: ProjectFileState;
|
|
70
|
-
rehydratedReducer: RehydratedState;
|
|
71
|
-
settingReducer: SettingState;
|
|
72
|
-
formReducer: FormState;
|
|
73
|
-
userReducer: UserState;
|
|
74
|
-
formRevisionReducer: FormRevisionState;
|
|
75
|
-
formRevisionAttachmentReducer: FormRevisionAttachmentState;
|
|
76
|
-
formSubmissionAttachmentReducer: FormSubmissionAttachmentState;
|
|
77
|
-
formSubmissionReducer: FormSubmissionState;
|
|
78
|
-
workspaceReducer: WorkspaceState;
|
|
79
|
-
emailDomainsReducer: EmailDomainState;
|
|
80
|
-
licenseReducer: LicenseState;
|
|
81
|
-
documentsReducer: DocumentState;
|
|
82
|
-
documentAttachmentReducer: DocumentAttachmentState;
|
|
83
|
-
teamReducer: TeamState;
|
|
84
|
-
agentsReducer: AgentsState;
|
|
85
|
-
issueCommentReducer: IssueCommentState;
|
|
86
|
-
issueUpdateReducer: IssueUpdateState;
|
|
87
|
-
issueAttachmentReducer: IssueAttachmentState;
|
|
88
|
-
}>, AnyAction>;
|
|
89
49
|
export declare const resetStore = "RESET";
|
|
90
|
-
export declare const
|
|
50
|
+
export declare const overmapRootReducer: Reducer<OvermapRootState>;
|
|
91
51
|
export interface FullOfflineMetadata extends OfflineMetadata {
|
|
92
52
|
effect: OfflineMetaEffect;
|
|
93
53
|
}
|
|
@@ -105,47 +65,5 @@ export declare const dequeue: Config["queue"]["dequeue"];
|
|
|
105
65
|
* Add to your store's `enhancers` array.
|
|
106
66
|
*/
|
|
107
67
|
export declare const overmapEnhancer: (...args: any[]) => unknown;
|
|
108
|
-
export declare
|
|
109
|
-
versioning: VersioningState;
|
|
110
|
-
fileReducer: FileState;
|
|
111
|
-
authReducer: AuthState;
|
|
112
|
-
categoryReducer: CategoryState;
|
|
113
|
-
assetReducer: AssetState;
|
|
114
|
-
assetAttachmentReducer: AssetAttachmentState;
|
|
115
|
-
assetStageCompletionReducer: AssetStageCompletionState;
|
|
116
|
-
assetStageReducer: AssetStageState;
|
|
117
|
-
assetTypeReducer: AssetTypeState;
|
|
118
|
-
assetTypeAttachmentReducer: AssetTypeAttachmentState;
|
|
119
|
-
issueReducer: IssueState;
|
|
120
|
-
issueTypeReducer: IssueTypeState;
|
|
121
|
-
mapReducer: MapState;
|
|
122
|
-
organizationReducer: OrganizationState;
|
|
123
|
-
outboxReducer: OutboxState;
|
|
124
|
-
projectReducer: ProjectState;
|
|
125
|
-
projectAttachmentReducer: ProjectAttachmentState;
|
|
126
|
-
projectAccessReducer: ProjectAccessState;
|
|
127
|
-
organizationAccessReducer: OrganizationAccessState;
|
|
128
|
-
projectFileReducer: ProjectFileState;
|
|
129
|
-
rehydratedReducer: RehydratedState;
|
|
130
|
-
settingReducer: SettingState;
|
|
131
|
-
formReducer: FormState;
|
|
132
|
-
userReducer: UserState;
|
|
133
|
-
formRevisionReducer: FormRevisionState;
|
|
134
|
-
formRevisionAttachmentReducer: FormRevisionAttachmentState;
|
|
135
|
-
formSubmissionAttachmentReducer: FormSubmissionAttachmentState;
|
|
136
|
-
formSubmissionReducer: FormSubmissionState;
|
|
137
|
-
workspaceReducer: WorkspaceState;
|
|
138
|
-
emailDomainsReducer: EmailDomainState;
|
|
139
|
-
licenseReducer: LicenseState;
|
|
140
|
-
documentsReducer: DocumentState;
|
|
141
|
-
documentAttachmentReducer: DocumentAttachmentState;
|
|
142
|
-
teamReducer: TeamState;
|
|
143
|
-
agentsReducer: AgentsState;
|
|
144
|
-
issueCommentReducer: IssueCommentState;
|
|
145
|
-
issueUpdateReducer: IssueUpdateState;
|
|
146
|
-
issueAttachmentReducer: IssueAttachmentState;
|
|
147
|
-
} & {
|
|
148
|
-
offline: OfflineState;
|
|
149
|
-
}, AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<RootState, AnyAction>]>>;
|
|
150
|
-
export declare function performRequest(action: FullOfflineAction, client: OvermapSDK): Promise<request.Response>;
|
|
68
|
+
export declare function performRequest(action: FullOfflineAction, client: BaseSDK<BaseState>): Promise<request.Response>;
|
|
151
69
|
export declare function discard(reason: unknown, action: FullOfflineAction, retries?: number): boolean;
|
package/dist/typings/colors.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { DefaultTheme } from "@overmap-ai/blocks";
|
|
2
|
-
import { ComponentProps } from "react";
|
|
3
1
|
type RGB = `rgb(${number}, ${number}, ${number})`;
|
|
4
2
|
type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
|
|
5
3
|
type HEX = `#${string}`;
|
|
@@ -7,5 +5,4 @@ type CSSVar = `var(${string})`;
|
|
|
7
5
|
type NamedColor = "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "cornflowerblue" | "cornsilk" | "crimson" | "cyan" | "darkblue" | "darkcyan" | "darkgoldenrod" | "darkgray" | "darkgreen" | "darkgrey" | "darkkhaki" | "darkmagenta" | "darkolivegreen" | "darkorange" | "darkorchid" | "darkred" | "darksalmon" | "darkseagreen" | "darkslateblue" | "darkslategray" | "darkslategrey" | "darkturquoise" | "darkviolet" | "deeppink" | "deepskyblue" | "dimgray" | "dimgrey" | "dodgerblue" | "firebrick" | "floralwhite" | "forestgreen" | "fuchsia" | "gainsboro" | "ghostwhite" | "gold" | "goldenrod" | "gray" | "green" | "greenyellow" | "grey" | "honeydew" | "hotpink" | "indianred" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderblush" | "lawngreen" | "lemonchiffon" | "lightblue" | "lightcoral" | "lightcyan" | "lightgoldenrodyellow" | "lightgray" | "lightgreen" | "lightgrey" | "lightpink" | "lightsalmon" | "lightseagreen" | "lightskyblue" | "lightslategray" | "lightslategrey" | "lightsteelblue" | "lightyellow" | "lime" | "limegreen" | "linen" | "magenta" | "maroon" | "mediumaquamarine" | "mediumblue" | "mediumorchid" | "mediumpurple" | "mediumseagreen" | "mediumslateblue" | "mediumspringgreen" | "mediumturquoise" | "mediumvioletred" | "midnightblue" | "mintcream" | "mistyrose" | "moccasin" | "navajowhite" | "navy" | "oldlace" | "olive" | "olivedrab" | "orange" | "orangered" | "orchid" | "palegoldenrod" | "palegreen" | "paleturquoise" | "palevioletred" | "papayawhip" | "peachpuff" | "peru" | "pink" | "plum" | "powderblue" | "purple" | "rebeccapurple" | "red" | "rosybrown" | "royalblue" | "saddlebrown" | "salmon" | "sandybrown" | "seagreen" | "seashell" | "sienna" | "silver" | "skyblue" | "slateblue" | "slategray" | "slategrey" | "snow" | "springgreen" | "steelblue" | "tan" | "teal" | "thistle" | "tomato" | "transparent" | "turquoise" | "violet" | "wheat" | "white" | "whitesmoke" | "yellow" | "yellowgreen";
|
|
8
6
|
export type CSSColor = RGB | RGBA | HEX | NamedColor | CSSVar;
|
|
9
7
|
export type ColorMapping = Record<string, CSSColor>;
|
|
10
|
-
export type Appearance = ComponentProps<typeof DefaultTheme>["appearance"];
|
|
11
8
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IconModel, Model, OfflineModel } from "./base";
|
|
2
|
-
import {
|
|
3
|
-
export interface Asset extends OfflineModel {
|
|
4
|
-
marker: Marker | null;
|
|
2
|
+
import { CanvasMarkableModel, MarkableModel } from "./geo";
|
|
3
|
+
export interface Asset extends OfflineModel, MarkableModel, CanvasMarkableModel {
|
|
5
4
|
asset_type: string;
|
|
6
5
|
created_at?: string;
|
|
7
6
|
label: string | null;
|
|
@@ -1,6 +1,91 @@
|
|
|
1
|
+
import { HTMLInputTypeAttribute } from "react";
|
|
1
2
|
import { CreatedByModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
|
|
2
|
-
import { BaseSerializedObject, FieldValue, ISerializedField } from "../../forms";
|
|
3
3
|
import { FileWithNameModel } from '../files';
|
|
4
|
+
export interface BaseSerializedField<TIdentifier extends FieldTypeIdentifier = FieldTypeIdentifier> extends BaseSerializedObject<TIdentifier> {
|
|
5
|
+
label: string;
|
|
6
|
+
required: boolean;
|
|
7
|
+
image?: File | Promise<File>;
|
|
8
|
+
}
|
|
9
|
+
export interface SerializedCondition<TValue extends FieldValue = FieldValue> {
|
|
10
|
+
identifier: string;
|
|
11
|
+
value: TValue;
|
|
12
|
+
}
|
|
13
|
+
export interface SerializedFieldSection extends BaseSerializedObject {
|
|
14
|
+
label: string | null;
|
|
15
|
+
type: "section";
|
|
16
|
+
conditional: boolean;
|
|
17
|
+
condition: SerializedCondition | null;
|
|
18
|
+
fields: Exclude<ISerializedField, SerializedFieldSection>[];
|
|
19
|
+
}
|
|
20
|
+
interface BaseSerializedStringField extends BaseSerializedField {
|
|
21
|
+
minimum_length?: number;
|
|
22
|
+
maximum_length: number;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
}
|
|
25
|
+
export type StringInputType = Exclude<HTMLInputTypeAttribute, "checkbox" | "number" | "button">;
|
|
26
|
+
export interface SerializedStringField extends BaseSerializedStringField {
|
|
27
|
+
type: "string";
|
|
28
|
+
input_type?: StringInputType;
|
|
29
|
+
}
|
|
30
|
+
export interface SerializedQrField extends BaseSerializedField {
|
|
31
|
+
type: "qr";
|
|
32
|
+
}
|
|
33
|
+
export interface SerializedTextField extends BaseSerializedStringField {
|
|
34
|
+
type: "text";
|
|
35
|
+
}
|
|
36
|
+
export interface SerializedMultiStringField extends BaseSerializedStringField {
|
|
37
|
+
type: "multi-string";
|
|
38
|
+
}
|
|
39
|
+
export interface SerializedBooleanField extends BaseSerializedField {
|
|
40
|
+
type: "boolean";
|
|
41
|
+
}
|
|
42
|
+
export interface SerializedNumberField extends BaseSerializedField {
|
|
43
|
+
type: "number";
|
|
44
|
+
minimum: number | undefined;
|
|
45
|
+
maximum: number | undefined;
|
|
46
|
+
integers: boolean;
|
|
47
|
+
placeholder?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface SerializedDateField extends BaseSerializedField {
|
|
50
|
+
type: "date";
|
|
51
|
+
}
|
|
52
|
+
export type SelectFieldOptionValue = string;
|
|
53
|
+
/** Represents an option in the select input. Not to be confused with the 'field options' of SelectField. */
|
|
54
|
+
export interface SelectFieldOption {
|
|
55
|
+
value: SelectFieldOptionValue;
|
|
56
|
+
label: string;
|
|
57
|
+
}
|
|
58
|
+
export interface SerializedSelectField extends BaseSerializedField {
|
|
59
|
+
type: "select";
|
|
60
|
+
options: SelectFieldOption[];
|
|
61
|
+
placeholder?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface SerializedMultiSelectField extends BaseSerializedField {
|
|
64
|
+
type: "multi-select";
|
|
65
|
+
options: SelectFieldOption[];
|
|
66
|
+
placeholder?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface SerializedUploadField extends BaseSerializedField {
|
|
69
|
+
type: "upload";
|
|
70
|
+
/** @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept */
|
|
71
|
+
extensions?: string[];
|
|
72
|
+
/** in bytes */
|
|
73
|
+
maximum_size?: number;
|
|
74
|
+
/** how many files the user can upload to this field
|
|
75
|
+
* @default 1
|
|
76
|
+
*/
|
|
77
|
+
maximum_files?: number;
|
|
78
|
+
}
|
|
79
|
+
export type ISerializedField = SerializedTextField | SerializedBooleanField | SerializedNumberField | SerializedDateField | SerializedStringField | SerializedSelectField | SerializedFieldSection | SerializedMultiStringField | SerializedMultiSelectField | SerializedUploadField | SerializedQrField;
|
|
80
|
+
export type ISerializedOnlyField = Exclude<ISerializedField, SerializedFieldSection>;
|
|
81
|
+
/** All the possible field values */
|
|
82
|
+
export type FieldValue = string | number | boolean | string[] | File[] | Date | null;
|
|
83
|
+
export type FieldTypeIdentifier = "string" | "text" | "boolean" | "number" | "date" | "select" | "custom" | "section" | "multi-string" | "multi-select" | "upload" | "qr";
|
|
84
|
+
export interface BaseSerializedObject<TIdentifier extends FieldTypeIdentifier = FieldTypeIdentifier> {
|
|
85
|
+
description?: string | null;
|
|
86
|
+
identifier: string;
|
|
87
|
+
type: TIdentifier;
|
|
88
|
+
}
|
|
4
89
|
export interface UserForm extends OfflineModel {
|
|
5
90
|
favorite: boolean;
|
|
6
91
|
created_by: number;
|
|
@@ -45,3 +130,4 @@ export interface UserFormRevisionAttachment extends OfflineModel, FileWithNameMo
|
|
|
45
130
|
field_identifier: string;
|
|
46
131
|
}
|
|
47
132
|
export type UserFormSubmissionPayload = Omit<Payload<UserFormSubmission>, "created_by" | "submitted_at">;
|
|
133
|
+
export {};
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
export type Coordinates = [number, number];
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export type Bounds = [Coordinates, Coordinates];
|
|
3
|
+
export interface PointGeometry {
|
|
4
|
+
type: "Point";
|
|
4
5
|
coordinates: Coordinates;
|
|
5
6
|
}
|
|
6
|
-
export interface
|
|
7
|
-
type: "
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export interface MultiPointGeometry {
|
|
8
|
+
type: "MultiPoint";
|
|
9
|
+
coordinates: Bounds;
|
|
10
|
+
}
|
|
11
|
+
export interface BoundableModel {
|
|
12
|
+
bounds?: MultiPointGeometry;
|
|
13
|
+
}
|
|
14
|
+
export interface CanvasBoundableModel {
|
|
15
|
+
canvas_bounds?: MultiPointGeometry;
|
|
16
|
+
}
|
|
17
|
+
export interface MarkableModel {
|
|
18
|
+
geo_marker?: PointGeometry;
|
|
19
|
+
}
|
|
20
|
+
export interface CanvasMarkableModel {
|
|
21
|
+
canvas_marker?: PointGeometry;
|
|
10
22
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CreatedByModel, OfflineModel, SubmittedAtModel } from "./base";
|
|
2
|
+
import { CanvasMarkableModel, MarkableModel } from "./geo";
|
|
3
|
+
import { FileWithNameModel } from "../files";
|
|
4
|
+
export interface GeoImage extends OfflineModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
project: number;
|
|
8
|
+
direction?: number;
|
|
9
|
+
original_date?: string;
|
|
10
|
+
}
|
|
11
|
+
export type GeoImagePayload = Omit<GeoImage, "offline_id" | "submitted_at" | "created_by" | "file_name" | "file_sha1" | "file"> & {
|
|
12
|
+
file: File;
|
|
13
|
+
};
|
|
14
|
+
export type BulkGeoImagePayload = Omit<GeoImagePayload, "project">;
|
|
@@ -2,7 +2,7 @@ export * from "./access";
|
|
|
2
2
|
export * from "./attachments";
|
|
3
3
|
export * from "./base";
|
|
4
4
|
export * from "./categories";
|
|
5
|
-
export * from "./
|
|
5
|
+
export * from "./assets";
|
|
6
6
|
export * from "./forms";
|
|
7
7
|
export * from "./geo";
|
|
8
8
|
export * from "./issues";
|
|
@@ -18,3 +18,4 @@ export * from "./license";
|
|
|
18
18
|
export * from "./documents";
|
|
19
19
|
export * from "./teams";
|
|
20
20
|
export * from "./agents";
|
|
21
|
+
export * from "./geoImages";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CreatedByModel, Offline, OfflineModel } from "./base";
|
|
2
2
|
import { IssuePriority, IssueStatus } from "../../enums";
|
|
3
3
|
import { WorkspaceIndexedModel } from "./workspace";
|
|
4
|
-
import {
|
|
4
|
+
import { CanvasMarkableModel, MarkableModel } from "./geo";
|
|
5
5
|
import { CreatedUserForm, SubmittedUserForm, UserForm } from "./forms";
|
|
6
6
|
import { User } from "./users";
|
|
7
7
|
import { CSSColor } from "../colors";
|
|
@@ -27,7 +27,7 @@ export type Stored<TModel> = Created<TModel> | Submitted<TModel>;
|
|
|
27
27
|
* Represents the properties you can always expect on any object representing an issue. These are the minimal details
|
|
28
28
|
* required when creating an issue.
|
|
29
29
|
*/
|
|
30
|
-
export interface Issue extends Pick<WorkspaceIndexedModel, "index_workspace"
|
|
30
|
+
export interface Issue extends Pick<WorkspaceIndexedModel, "index_workspace">, MarkableModel, CanvasMarkableModel {
|
|
31
31
|
title?: string | null;
|
|
32
32
|
description?: string | null;
|
|
33
33
|
priority?: IssuePriority;
|
|
@@ -36,7 +36,6 @@ export interface Issue extends Pick<WorkspaceIndexedModel, "index_workspace"> {
|
|
|
36
36
|
due_date?: string | Date | null;
|
|
37
37
|
category?: string | null;
|
|
38
38
|
visible_in_workspaces: string[];
|
|
39
|
-
marker?: Marker | null;
|
|
40
39
|
issue_type?: string | null;
|
|
41
40
|
}
|
|
42
41
|
/**
|
|
@@ -57,7 +56,7 @@ export interface CreatedIssue extends SubmittedIssue, Pick<WorkspaceIndexedModel
|
|
|
57
56
|
assigned_to: Exclude<Issue["assigned_to"], undefined>;
|
|
58
57
|
due_date: Exclude<Issue["due_date"], undefined>;
|
|
59
58
|
category: Exclude<Issue["category"], undefined>;
|
|
60
|
-
|
|
59
|
+
geo_marker: Exclude<Issue["geo_marker"], undefined>;
|
|
61
60
|
created_at: string;
|
|
62
61
|
}
|
|
63
62
|
export interface IssueComment extends OfflineModel {
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import { CreatedByModel, Model } from "./base";
|
|
2
|
-
import { OrganizationAccess } from "./access";
|
|
3
|
-
import { EmailDomain } from "./emailDomain";
|
|
4
|
-
import { User } from "./users";
|
|
5
|
-
import { License } from "./license";
|
|
6
2
|
export interface Organization extends Model, CreatedByModel {
|
|
7
3
|
id: number;
|
|
8
4
|
name: string;
|
|
9
5
|
has_access: boolean;
|
|
10
6
|
}
|
|
11
|
-
export interface InitialOrganizationData {
|
|
12
|
-
organization: Organization;
|
|
13
|
-
users: User[];
|
|
14
|
-
organization_accesses: OrganizationAccess[];
|
|
15
|
-
email_domains: EmailDomain[];
|
|
16
|
-
licenses: License[];
|
|
17
|
-
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { Model, OfflineModel } from "./base";
|
|
2
|
-
import L from "leaflet";
|
|
3
2
|
import { FileWithNameModel } from "../files";
|
|
4
|
-
|
|
3
|
+
import { BoundableModel, CanvasBoundableModel } from "./geo";
|
|
4
|
+
export interface Project extends Model, BoundableModel, CanvasBoundableModel {
|
|
5
5
|
id: number;
|
|
6
6
|
name: string;
|
|
7
7
|
owner_organization: number | null;
|
|
8
8
|
owner_user: number | null;
|
|
9
|
-
bounds: [L.LatLngTuple, L.LatLngTuple] | undefined;
|
|
10
9
|
invited?: boolean;
|
|
11
10
|
issues_count?: number;
|
|
12
11
|
form_submissions_count?: number;
|
|
13
12
|
}
|
|
14
|
-
export interface ProjectFile extends OfflineModel, FileWithNameModel {
|
|
13
|
+
export interface ProjectFile extends OfflineModel, FileWithNameModel, BoundableModel, CanvasBoundableModel {
|
|
15
14
|
submitted_at: string;
|
|
16
15
|
z_index: number;
|
|
17
|
-
bounds?: [L.LatLngTuple, L.LatLngTuple];
|
|
18
16
|
project: number;
|
|
19
17
|
}
|
|
20
18
|
export type ProjectPayload = Omit<Project, "id" | "file" | "fileBlob">;
|
|
@@ -1,7 +1,46 @@
|
|
|
1
1
|
/// <reference types="@redux-offline/redux-offline" />
|
|
2
2
|
import { OfflineState } from "@redux-offline/redux-offline/lib/types";
|
|
3
|
-
import {
|
|
4
|
-
export
|
|
5
|
-
|
|
3
|
+
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, SettingState, TeamState, UserState, VERSION_REDUCER_KEY, VersioningState, WorkspaceState } from "../../store";
|
|
4
|
+
export interface BaseState {
|
|
5
|
+
outboxReducer: OutboxState;
|
|
6
6
|
offline: OfflineState;
|
|
7
|
-
|
|
7
|
+
fileReducer: FileState;
|
|
8
|
+
authReducer: AuthState;
|
|
9
|
+
}
|
|
10
|
+
export interface OvermapRootState extends BaseState {
|
|
11
|
+
[VERSION_REDUCER_KEY]: VersioningState;
|
|
12
|
+
categoryReducer: CategoryState;
|
|
13
|
+
assetReducer: AssetState;
|
|
14
|
+
assetAttachmentReducer: AssetAttachmentState;
|
|
15
|
+
assetStageCompletionReducer: AssetStageCompletionState;
|
|
16
|
+
assetStageReducer: AssetStageState;
|
|
17
|
+
assetTypeReducer: AssetTypeState;
|
|
18
|
+
assetTypeAttachmentReducer: AssetTypeAttachmentState;
|
|
19
|
+
issueReducer: IssueState;
|
|
20
|
+
issueAttachmentReducer: IssueAttachmentState;
|
|
21
|
+
issueCommentReducer: IssueCommentState;
|
|
22
|
+
issueUpdateReducer: IssueUpdateState;
|
|
23
|
+
issueTypeReducer: IssueTypeState;
|
|
24
|
+
organizationReducer: OrganizationState;
|
|
25
|
+
projectReducer: ProjectState;
|
|
26
|
+
projectAttachmentReducer: ProjectAttachmentState;
|
|
27
|
+
projectAccessReducer: ProjectAccessState;
|
|
28
|
+
organizationAccessReducer: OrganizationAccessState;
|
|
29
|
+
projectFileReducer: ProjectFileState;
|
|
30
|
+
rehydratedReducer: RehydratedState;
|
|
31
|
+
settingReducer: SettingState;
|
|
32
|
+
formReducer: FormState;
|
|
33
|
+
formRevisionReducer: FormRevisionState;
|
|
34
|
+
formRevisionAttachmentReducer: FormRevisionAttachmentState;
|
|
35
|
+
formSubmissionReducer: FormSubmissionState;
|
|
36
|
+
formSubmissionAttachmentReducer: FormSubmissionAttachmentState;
|
|
37
|
+
userReducer: UserState;
|
|
38
|
+
workspaceReducer: WorkspaceState;
|
|
39
|
+
emailDomainsReducer: EmailDomainState;
|
|
40
|
+
licenseReducer: LicenseState;
|
|
41
|
+
documentsReducer: DocumentState;
|
|
42
|
+
documentAttachmentReducer: DocumentAttachmentState;
|
|
43
|
+
teamReducer: TeamState;
|
|
44
|
+
agentsReducer: AgentsState;
|
|
45
|
+
geoImageReducer: GeoImageSliceState;
|
|
46
|
+
}
|
package/dist/typings/store.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type SelectorWithArgs<TArgs, TRet> = (args: TArgs) => (state:
|
|
3
|
-
export type Selector<TRet> = (state:
|
|
4
|
-
export type
|
|
1
|
+
import { OvermapRootState } from "./models";
|
|
2
|
+
export type SelectorWithArgs<TState, TArgs, TRet> = (args: TArgs) => (state: TState) => TRet | undefined;
|
|
3
|
+
export type Selector<TState, TRet> = (state: TState) => TRet;
|
|
4
|
+
export type OvermapSelectorWithArgs<TArgs, TRet> = SelectorWithArgs<OvermapRootState, TArgs, TRet>;
|
|
5
|
+
export type OvermapSelector<TRet> = Selector<OvermapRootState, TRet>;
|
|
6
|
+
export type Migrator = (state: Partial<OvermapRootState>) => Partial<OvermapRootState>;
|
|
5
7
|
export type Manifest = Record<number, Migrator>;
|
package/dist/utils/colors.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ThemeOptions } from "@overmap-ai/blocks";
|
|
2
1
|
import { CSSColor } from "../typings";
|
|
3
2
|
export declare const primaryColor: CSSColor;
|
|
4
3
|
export declare const successColor: CSSColor;
|
|
@@ -11,11 +10,6 @@ export interface BadgeColors {
|
|
|
11
10
|
textColor: CSSColor;
|
|
12
11
|
}
|
|
13
12
|
export declare const Colors: Record<string, CSSColor>;
|
|
14
|
-
/** This mapping is used to pick off a Radix-ui/themes Theme accentColor based on the passed in Radix-ui/colors
|
|
15
|
-
* hex color. We are currently offering the following colors in the "Colors" object defined above as possible colors for
|
|
16
|
-
* categories, any updates to those colors should also result in an update to this color mapping to ensure all Category
|
|
17
|
-
* Badges defined within the App receive the appropriate Radix-ui/themes accentColor, so they render properly. */
|
|
18
|
-
export declare const ColorsToString: Record<string, ThemeOptions["accentColor"]>;
|
|
19
13
|
export declare const AssetStageColors: Record<string, CSSColor>;
|
|
20
14
|
export declare const defaultBadgeColor: CSSColor;
|
|
21
15
|
export declare const generateBadgeColors: (rawColor: CSSColor) => BadgeColors;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import L from "leaflet";
|
|
2
|
-
import { Coordinates,
|
|
2
|
+
import { Bounds, Coordinates, MultiPointGeometry, PointGeometry } from "../typings";
|
|
3
3
|
export declare const coordinatesToLiteral: (coordinates: Coordinates) => L.LatLngLiteral;
|
|
4
4
|
export declare const literalToCoordinates: (literal: L.LatLngLiteral) => Coordinates;
|
|
5
5
|
/**
|
|
6
6
|
* Flip coordinates from [lng, lat] to [lat, lng]
|
|
7
7
|
*/
|
|
8
8
|
export declare const flipCoordinates: (coordinates: L.LatLngTuple) => Coordinates;
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const flipBounds: (bounds: Bounds) => Bounds;
|
|
10
10
|
export declare function offsetPositionByMeters(originalPosition: L.LatLng, latMeters: number, lngMeters: number): L.LatLngLiteral;
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const createPointMarker: (coordinates: Coordinates) => Marker;
|
|
11
|
+
export declare const createPointGeometry: (coordinates: Coordinates) => PointGeometry;
|
|
13
12
|
export declare const coordinatesAreEqual: (a: Coordinates, b: Coordinates) => boolean;
|
|
14
13
|
export declare const coordinatesToText: (coordinates: Coordinates | null | undefined, decimalPlaces?: number) => string;
|
|
15
14
|
export declare const coordinatesToUrlText: (coordinates: Coordinates) => string;
|
|
16
|
-
export declare const getMarkerCoordinates: (marker: Marker | null) => Coordinates | undefined;
|
|
17
|
-
export declare const markerCoordinatesToText: (marker: Marker | null, decimalPlaces?: number) => string;
|
|
18
15
|
export declare const openCoordsInGoogleMaps: (coordinates: Coordinates) => void;
|
|
19
16
|
export declare const openDirectionsInGoogleMaps: (startingPoint: Coordinates, destination: Coordinates) => void;
|
|
20
|
-
export declare const worldBounds:
|
|
17
|
+
export declare const worldBounds: MultiPointGeometry;
|
|
18
|
+
export declare const createMultiPointGeometry: (coordinates: [Coordinates, Coordinates]) => MultiPointGeometry;
|
package/dist/utils/file.d.ts
CHANGED
|
@@ -9,11 +9,5 @@ export declare function downloadInMemoryFile(filename: string, text: string): vo
|
|
|
9
9
|
export declare const constructUploadedFilePayloads: (files: File[]) => Promise<FileUploadPayload[]>;
|
|
10
10
|
export declare const fileToBlob: (dataUrl: string) => Promise<Blob>;
|
|
11
11
|
export declare const blobToBase64: (blob: Blob) => Promise<string>;
|
|
12
|
-
export interface useFileSrcProps {
|
|
13
|
-
file: string | null;
|
|
14
|
-
fileSha1: string | null;
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
}
|
|
17
12
|
/** Converts a profile `file` and `fileSha1` into an img src that can be rendered. This relies on an API request. */
|
|
18
|
-
export declare const useFileSrc: (props: useFileSrcProps) => string | undefined;
|
|
19
13
|
export declare function downloadFile(file: File): void;
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Coordinates, IssueAttachment, OfflineModel,
|
|
2
|
-
type MemoizedSelectorWithArgs<TArgs, TRet> = (state:
|
|
3
|
-
export declare const restructureCreateSelectorWithArgs: <TArgs, TRet>(selector: MemoizedSelectorWithArgs<TArgs, TRet>) => (args: TArgs) => (state:
|
|
1
|
+
import { Coordinates, IssueAttachment, OfflineModel, OvermapRootState } from "../typings";
|
|
2
|
+
type MemoizedSelectorWithArgs<TArgs, TRet> = (state: OvermapRootState, args: TArgs) => TRet;
|
|
3
|
+
export declare const restructureCreateSelectorWithArgs: <TArgs, TRet>(selector: MemoizedSelectorWithArgs<TArgs, TRet>) => (args: TArgs) => (state: OvermapRootState) => TRet;
|
|
4
4
|
export declare function onlyUniqueOfflineIds(value: OfflineModel, index: number, self: OfflineModel[]): boolean;
|
|
5
5
|
export declare function onlyUniqueHashes(value: IssueAttachment, index: number, self: IssueAttachment[]): boolean;
|
|
6
6
|
/**
|