@overmap-ai/core 1.0.58-asset-description.11 → 1.0.58-export-overmap-reducer.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contexts/overmap.d.ts +2 -2
- package/dist/contexts/sdk/globals.d.ts +3 -3
- package/dist/contexts/sdk/sdk.d.ts +4 -4
- package/dist/forms/fields/BaseField/layouts.d.ts +3 -2
- package/dist/forms/fields/typings.d.ts +3 -3
- package/dist/forms/renderer/index.d.ts +0 -1
- package/dist/overmap-core.js +4824 -1038
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +4879 -1093
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +4 -4
- package/dist/store/index.d.ts +0 -1
- package/dist/store/slices/agentsSlice.d.ts +3 -3
- package/dist/store/slices/assetSlice.d.ts +6 -6
- package/dist/store/slices/assetStageCompletionSlice.d.ts +2 -2
- package/dist/store/slices/assetStageSlice.d.ts +3 -3
- package/dist/store/slices/assetTypeSlice.d.ts +4 -4
- package/dist/store/slices/authSlice.d.ts +3 -3
- package/dist/store/slices/categorySlice.d.ts +6 -39
- package/dist/store/slices/documentSlice.d.ts +7 -40
- package/dist/store/slices/formRevisionSlice.d.ts +3 -36
- package/dist/store/slices/issueSlice.d.ts +15 -48
- package/dist/store/slices/mapSlice.d.ts +4 -4
- package/dist/store/slices/organizationAccessSlice.d.ts +3 -3
- package/dist/store/slices/outboxSlice.d.ts +3 -3
- package/dist/store/slices/projectAccessSlice.d.ts +2 -2
- package/dist/store/slices/projectFileSlice.d.ts +4 -37
- package/dist/store/slices/projectSlice.d.ts +9 -8
- package/dist/store/slices/rehydratedSlice.d.ts +3 -2
- package/dist/store/slices/settingsSlice.d.ts +10 -10
- package/dist/store/slices/userSlice.d.ts +4 -4
- package/dist/store/slices/workspaceSlice.d.ts +3 -36
- package/dist/store/store.d.ts +5 -68
- package/dist/style.css +0 -7
- package/dist/typings/models/store.d.ts +33 -4
- package/dist/typings/store.d.ts +4 -4
- package/dist/utils/utils.d.ts +3 -3
- package/package.json +1 -1
- package/dist/forms/renderer/FormSubmissionBrowser/FormSubmissionBrowser.d.ts +0 -28
- package/dist/store/hooks.d.ts +0 -4
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AgentService, AuthService, CategoryService, AssetService, AssetStageCompletionService, AssetStageService, AssetAttachmentService, AssetTypeService, AssetTypeAttachmentService, DocumentAttachmentService, DocumentService, EmailDomainsService, EmailVerificationService, FileService, IssueAttachmentService, IssueCommentService, IssueService, IssueTypeService, IssueUpdateService, LicenseService, MainService, OrganizationAccessService, OrganizationService, ProjectAccessService, ProjectAttachmentService, ProjectFileService, ProjectService, TeamService, UserFormService, UserFormSubmissionService, WorkspaceService } from "./services";
|
|
2
2
|
import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
|
|
3
|
-
import {
|
|
3
|
+
import { OvermapRootState } from "../typings";
|
|
4
4
|
import { SDKRequest } from "./typings";
|
|
5
5
|
export declare class OvermapSDK {
|
|
6
6
|
readonly API_URL: string;
|
|
7
|
-
readonly store: ToolkitStore<
|
|
8
|
-
constructor(apiUrl: string, store: ToolkitStore<
|
|
7
|
+
readonly store: ToolkitStore<OvermapRootState>;
|
|
8
|
+
constructor(apiUrl: string, store: ToolkitStore<OvermapRootState>);
|
|
9
9
|
/**
|
|
10
10
|
* Enqueues an API request to the offline outbox.
|
|
11
11
|
* @param requestDetails An SDKRequest object containing the details of the request.
|
|
@@ -49,4 +49,4 @@ export declare class OvermapSDK {
|
|
|
49
49
|
teams: TeamService;
|
|
50
50
|
documentAttachments: DocumentAttachmentService;
|
|
51
51
|
}
|
|
52
|
-
export declare const makeClient: (apiUrl: string, store: ToolkitStore<
|
|
52
|
+
export declare const makeClient: (apiUrl: string, store: ToolkitStore<OvermapRootState>) => OvermapSDK;
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { AgentUserConversation, Offline, OfflineIdMapping,
|
|
2
|
+
import { AgentUserConversation, Offline, OfflineIdMapping, OvermapRootState, Selector } from "../../typings";
|
|
3
3
|
export interface AgentsState {
|
|
4
4
|
conversations: OfflineIdMapping<AgentUserConversation>;
|
|
5
5
|
}
|
|
@@ -10,7 +10,7 @@ export declare const agentsSlice: import("@reduxjs/toolkit").Slice<AgentsState,
|
|
|
10
10
|
updateConversation: (state: import("immer/dist/internal.js").WritableDraft<AgentsState>, action: PayloadAction<Offline<Partial<AgentUserConversation>>>) => void;
|
|
11
11
|
}, "agents">;
|
|
12
12
|
export declare const setConversations: import("@reduxjs/toolkit").ActionCreatorWithPayload<AgentUserConversation[], "agents/setConversations">, addConversation: import("@reduxjs/toolkit").ActionCreatorWithPayload<AgentUserConversation, "agents/addConversation">, setConversation: import("@reduxjs/toolkit").ActionCreatorWithPayload<AgentUserConversation, "agents/setConversation">, updateConversation: import("@reduxjs/toolkit").ActionCreatorWithPayload<Offline<Partial<AgentUserConversation>>, "agents/updateConversation">;
|
|
13
|
-
export declare const selectConversationMapping: (state:
|
|
13
|
+
export declare const selectConversationMapping: (state: OvermapRootState) => OfflineIdMapping<AgentUserConversation>;
|
|
14
14
|
export declare const selectConversations: Selector<AgentUserConversation[]>;
|
|
15
|
-
export declare const selectConversation: (args: string) => (state:
|
|
15
|
+
export declare const selectConversation: (args: string) => (state: OvermapRootState) => AgentUserConversation | undefined;
|
|
16
16
|
export declare const agentsReducer: Reducer<AgentsState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { Asset, AssetAttachment, AssetType,
|
|
2
|
+
import { Asset, AssetAttachment, AssetType, OvermapRootState, Selector, SelectorWithArgs, Stored, Submitted } from "../../typings";
|
|
3
3
|
export interface AssetState {
|
|
4
4
|
assets: Record<string, Asset | Submitted<Asset>>;
|
|
5
5
|
attachments: Record<string, Stored<AssetAttachment>>;
|
|
@@ -47,18 +47,18 @@ export declare const assetSlice: import("@reduxjs/toolkit").Slice<AssetState, {
|
|
|
47
47
|
}) => void;
|
|
48
48
|
}, "assets">;
|
|
49
49
|
export declare const addAsset: import("@reduxjs/toolkit").ActionCreatorWithPayload<Asset, "assets/addAsset">, updateAsset: import("@reduxjs/toolkit").ActionCreatorWithPayload<Asset, "assets/updateAsset">, updateAssets: import("@reduxjs/toolkit").ActionCreatorWithPayload<Asset[], "assets/updateAssets">, removeAsset: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assets/removeAsset">, removeAssets: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assets/removeAssets">, addAssetsInBatches: import("@reduxjs/toolkit").ActionCreatorWithPayload<(Asset | Submitted<Asset>)[], "assets/addAssetsInBatches">, setAssets: import("@reduxjs/toolkit").ActionCreatorWithPayload<Asset[], "assets/setAssets">, removeAllAssetsOfType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assets/removeAllAssetsOfType">, setAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>, "assets/setAssetAttachment">, setAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>[], "assets/setAssetAttachments">, addAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<AssetAttachment>, "assets/addAssetAttachment">, addAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<AssetAttachment>[], "assets/addAssetAttachments">, updateAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<AssetAttachment>, "assets/updateAssetAttachment">, updateAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<AssetAttachment>[], "assets/updateAssetAttachments">, removeAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assets/removeAssetAttachment">, removeAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assets/removeAssetAttachments">;
|
|
50
|
-
export declare const selectAssets: (state:
|
|
51
|
-
export declare const selectAssetsMapping: (state:
|
|
50
|
+
export declare const selectAssets: (state: OvermapRootState) => Asset[];
|
|
51
|
+
export declare const selectAssetsMapping: (state: OvermapRootState) => Record<string, Asset | Submitted<Asset>>;
|
|
52
52
|
export declare const selectAssetsOfAssetType: SelectorWithArgs<string, Asset[]>;
|
|
53
53
|
export declare const selectAsset: SelectorWithArgs<string, Asset>;
|
|
54
54
|
export declare const selectAssetToAssetTypeMapping: Selector<Record<string, AssetType>>;
|
|
55
55
|
export declare const selectNumberOfAssetsOfAssetType: SelectorWithArgs<string | undefined, number>;
|
|
56
56
|
export declare const selectAssetTypesFromIds: SelectorWithArgs<string[], AssetType[]>;
|
|
57
|
-
export declare const selectAssetAttachmentMapping: (state:
|
|
57
|
+
export declare const selectAssetAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<AssetAttachment>>;
|
|
58
58
|
export declare const selectAssetAttachments: Selector<Stored<AssetAttachment>[]>;
|
|
59
59
|
export declare const selectAssetAttachment: SelectorWithArgs<string, Stored<AssetAttachment>>;
|
|
60
|
-
export declare const selectAttachmentsOfAsset: (args: string) => (state:
|
|
61
|
-
export declare const selectAttachmentsOfAssetByType: (args: string) => (state:
|
|
60
|
+
export declare const selectAttachmentsOfAsset: (args: string) => (state: OvermapRootState) => Stored<AssetAttachment>[];
|
|
61
|
+
export declare const selectAttachmentsOfAssetByType: (args: string) => (state: OvermapRootState) => {
|
|
62
62
|
fileAttachments: Stored<AssetAttachment>[];
|
|
63
63
|
imageAttachments: Stored<AssetAttachment>[];
|
|
64
64
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Reducer, PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
-
import { CompletedStagesMapping, Asset,
|
|
2
|
+
import { CompletedStagesMapping, Asset, OvermapRootState, SelectorWithArgs, AssetStageCompletion } from "../../typings";
|
|
3
3
|
export interface AssetStageCompletionState {
|
|
4
4
|
completionsByAssetId: CompletedStagesMapping;
|
|
5
5
|
}
|
|
@@ -10,6 +10,6 @@ export declare const assetStageCompletionSlice: import("@reduxjs/toolkit").Slice
|
|
|
10
10
|
setStageCompletions: (state: import("immer/dist/internal.js").WritableDraft<AssetStageCompletionState>, action: PayloadAction<CompletedStagesMapping>) => void;
|
|
11
11
|
}, "assetStageCompletions">;
|
|
12
12
|
export declare const addStageCompletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<AssetStageCompletion, "assetStageCompletions/addStageCompletion">, addStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<CompletedStagesMapping, "assetStageCompletions/addStageCompletions">, removeStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<AssetStageCompletion[], "assetStageCompletions/removeStageCompletions">, setStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<CompletedStagesMapping, "assetStageCompletions/setStageCompletions">;
|
|
13
|
-
export declare const selectCompletedStages: (state:
|
|
13
|
+
export declare const selectCompletedStages: (state: OvermapRootState) => CompletedStagesMapping;
|
|
14
14
|
export declare const selectCompletedStageIdsForAsset: SelectorWithArgs<Asset, string[]>;
|
|
15
15
|
export declare const assetStageCompletionReducer: Reducer<AssetStageCompletionState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Reducer, PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
-
import { AssetStage,
|
|
2
|
+
import { AssetStage, OvermapRootState, SelectorWithArgs } from "../../typings";
|
|
3
3
|
export interface AssetStageState {
|
|
4
4
|
stages: Record<string, AssetStage>;
|
|
5
5
|
}
|
|
@@ -15,9 +15,9 @@ export declare const assetStageSlice: import("@reduxjs/toolkit").Slice<AssetStag
|
|
|
15
15
|
stageId: string;
|
|
16
16
|
}>) => void;
|
|
17
17
|
}, "assetStages">;
|
|
18
|
-
export declare const selectStageMapping: (state:
|
|
18
|
+
export declare const selectStageMapping: (state: OvermapRootState) => Record<string, AssetStage>;
|
|
19
19
|
export declare const selectStage: SelectorWithArgs<string, AssetStage | undefined>;
|
|
20
|
-
export declare const selectStages: (state:
|
|
20
|
+
export declare const selectStages: (state: OvermapRootState) => AssetStage[];
|
|
21
21
|
export declare const selectStagesFromAssetTypeIds: SelectorWithArgs<string[], Record<string, AssetStage[]>>;
|
|
22
22
|
export declare const selectAssetTypeStagesMapping: SelectorWithArgs<string, Record<string, AssetStage>>;
|
|
23
23
|
export declare const selectStagesOfAssetType: SelectorWithArgs<string, AssetStage[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import type { AssetType, AssetTypeAttachment,
|
|
2
|
+
import type { AssetType, AssetTypeAttachment, OvermapRootState, Selector, SelectorWithArgs, Stored } from "../../typings";
|
|
3
3
|
export interface AssetTypeState {
|
|
4
4
|
assetTypes: Record<string, AssetType>;
|
|
5
5
|
hiddenAssetTypeIds: Record<string, boolean>;
|
|
@@ -62,11 +62,11 @@ interface selectNumberOfAssetTypesMatchingCaseInsensitiveNameProps {
|
|
|
62
62
|
export declare const selectNumberOfAssetTypesMatchingCaseInsensitiveName: SelectorWithArgs<selectNumberOfAssetTypesMatchingCaseInsensitiveNameProps, number>;
|
|
63
63
|
export declare const selectAssetTypesByName: SelectorWithArgs<string, AssetType[]>;
|
|
64
64
|
export declare const selectHiddenAssetTypeIds: Selector<Record<string, boolean | undefined>>;
|
|
65
|
-
export declare const selectAssetTypeAttachmentMapping: (state:
|
|
65
|
+
export declare const selectAssetTypeAttachmentMapping: (state: OvermapRootState) => Record<string, AssetTypeAttachment>;
|
|
66
66
|
export declare const selectAssetTypeAttachments: Selector<Stored<AssetTypeAttachment>[]>;
|
|
67
67
|
export declare const selectAssetTypeAttachment: SelectorWithArgs<string, Stored<AssetTypeAttachment>>;
|
|
68
|
-
export declare const selectAttachmentsOfAssetType: (args: string) => (state:
|
|
69
|
-
export declare const selectAttachmentsOfAssetTypeByType: (args: string) => (state:
|
|
68
|
+
export declare const selectAttachmentsOfAssetType: (args: string) => (state: OvermapRootState) => Stored<AssetTypeAttachment>[];
|
|
69
|
+
export declare const selectAttachmentsOfAssetTypeByType: (args: string) => (state: OvermapRootState) => {
|
|
70
70
|
fileAttachments: Stored<AssetTypeAttachment>[];
|
|
71
71
|
imageAttachments: Stored<AssetTypeAttachment>[];
|
|
72
72
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
2
|
import { TokenPair } from '../../sdk/typings';
|
|
3
|
-
import {
|
|
3
|
+
import { OvermapRootState } from "../../typings";
|
|
4
4
|
export interface AuthState {
|
|
5
5
|
accessToken: string;
|
|
6
6
|
refreshToken: string;
|
|
@@ -15,6 +15,6 @@ export declare const authSlice: import("@reduxjs/toolkit").Slice<AuthState, {
|
|
|
15
15
|
setLoggedIn: (state: import("immer/dist/internal.js").WritableDraft<AuthState>, action: PayloadAction<boolean>) => void;
|
|
16
16
|
}, "auth">;
|
|
17
17
|
export declare const setTokens: import("@reduxjs/toolkit").ActionCreatorWithPayload<TokenPair, "auth/setTokens">, clearTokens: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/clearTokens">, setLoggedIn: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "auth/setLoggedIn">;
|
|
18
|
-
export declare const selectAccessToken: (state:
|
|
19
|
-
export declare const selectIsLoggedIn: (state:
|
|
18
|
+
export declare const selectAccessToken: (state: OvermapRootState) => string;
|
|
19
|
+
export declare const selectIsLoggedIn: (state: OvermapRootState) => boolean;
|
|
20
20
|
export declare const authReducer: Reducer<AuthState>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="@redux-offline/redux-offline" />
|
|
2
1
|
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
3
|
-
import { Category, CSSColor, Offline,
|
|
2
|
+
import { Category, CSSColor, Offline, OvermapRootState, Selector, SelectorWithArgs } from "../../typings";
|
|
4
3
|
interface CategoryVisibility {
|
|
5
4
|
hiddenCategoryIds: string[];
|
|
6
5
|
isNullCategoryHidden: boolean;
|
|
@@ -40,49 +39,17 @@ export declare const categorySlice: import("@reduxjs/toolkit").Slice<CategorySta
|
|
|
40
39
|
}) => void;
|
|
41
40
|
}, "categories">;
|
|
42
41
|
export declare const setCategories: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category[], "categories/setCategories">, addCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category, "categories/addCategory">, replaceCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category, "categories/replaceCategory">, patchCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Offline<Partial<Category>>, "categories/patchCategory">, removeCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "categories/removeCategory">, hideCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "categories/hideCategory">, hideAllCategories: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"categories/hideAllCategories">, unhideCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "categories/unhideCategory">, unhideAllCategories: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"categories/unhideAllCategories">, removeColor: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "categories/removeColor">, addOrReplaceCategories: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category[], "categories/addOrReplaceCategories">;
|
|
43
|
-
export declare const selectCategoryMapping: (state:
|
|
44
|
-
export declare const selectCategories: ((state: import("
|
|
45
|
-
versioning: import('../slices/versioningSlice').VersioningState;
|
|
46
|
-
fileReducer: import('..').FileState;
|
|
47
|
-
authReducer: import('..').AuthState;
|
|
48
|
-
categoryReducer: CategoryState;
|
|
49
|
-
assetReducer: import('..').AssetState;
|
|
50
|
-
assetStageCompletionReducer: import('..').AssetStageCompletionState;
|
|
51
|
-
assetStageReducer: import('..').AssetStageState;
|
|
52
|
-
assetTypeReducer: import('..').AssetTypeState;
|
|
53
|
-
issueReducer: import('..').IssueState;
|
|
54
|
-
issueTypeReducer: import('..').IssueTypeState;
|
|
55
|
-
mapReducer: import('..').MapState;
|
|
56
|
-
organizationReducer: import('..').OrganizationState;
|
|
57
|
-
outboxReducer: import('..').OutboxState;
|
|
58
|
-
projectReducer: import('..').ProjectState;
|
|
59
|
-
projectAccessReducer: import('..').ProjectAccessState;
|
|
60
|
-
organizationAccessReducer: import('..').OrganizationAccessState;
|
|
61
|
-
projectFileReducer: import('..').ProjectFileState;
|
|
62
|
-
rehydratedReducer: import('..').RehydratedState;
|
|
63
|
-
settingReducer: import('..').SettingState;
|
|
64
|
-
formReducer: import('..').FormState;
|
|
65
|
-
userReducer: import('..').UserState;
|
|
66
|
-
formRevisionReducer: import('..').FormRevisionState;
|
|
67
|
-
formSubmissionReducer: import('..').FormSubmissionState;
|
|
68
|
-
workspaceReducer: import('..').WorkspaceState;
|
|
69
|
-
emailDomainsReducer: import('..').EmailDomainState;
|
|
70
|
-
licenseReducer: import('..').LicenseState;
|
|
71
|
-
documentsReducer: import('..').DocumentState;
|
|
72
|
-
teamReducer: import('..').TeamState;
|
|
73
|
-
agentsReducer: import('..').AgentsState;
|
|
74
|
-
} & {
|
|
75
|
-
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
76
|
-
}) => Category[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Category>, args_1: string | null) => Category[], {
|
|
42
|
+
export declare const selectCategoryMapping: (state: OvermapRootState) => Record<string, Category>;
|
|
43
|
+
export declare const selectCategories: ((state: OvermapRootState) => Category[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Category>, args_1: string | null) => Category[], {
|
|
77
44
|
clearCache: () => void;
|
|
78
45
|
}> & {
|
|
79
46
|
clearCache: () => void;
|
|
80
47
|
};
|
|
81
48
|
export declare const selectCategoriesOfWorkspace: SelectorWithArgs<string, Category[]>;
|
|
82
|
-
export declare const selectCategory: (offline_id: string | null) => (state:
|
|
49
|
+
export declare const selectCategory: (offline_id: string | null) => (state: OvermapRootState) => Category | undefined;
|
|
83
50
|
export declare const selectUsedColors: Selector<CSSColor[]>;
|
|
84
|
-
export declare const selectCategoryVisibility: (state:
|
|
85
|
-
export declare const selectHiddenCategoryCount: (state:
|
|
51
|
+
export declare const selectCategoryVisibility: (state: OvermapRootState) => CategoryVisibility;
|
|
52
|
+
export declare const selectHiddenCategoryCount: (state: OvermapRootState) => number;
|
|
86
53
|
export declare const selectIssueCountOfCategory: SelectorWithArgs<string | null, number>;
|
|
87
54
|
export declare const categoryReducer: Reducer<CategoryState>;
|
|
88
55
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="@redux-offline/redux-offline" />
|
|
2
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
3
|
-
import { DocumentAttachment, MovePosition, Document,
|
|
2
|
+
import { DocumentAttachment, MovePosition, Document, OvermapRootState, Selector, SelectorWithArgs, Stored, Submitted } from "../../typings";
|
|
4
3
|
export interface DocumentState {
|
|
5
4
|
documents: Record<string, Stored<Document>>;
|
|
6
5
|
attachments: Record<string, Stored<DocumentAttachment>>;
|
|
@@ -194,7 +193,7 @@ export declare const setDocuments: import("@reduxjs/toolkit").ActionCreatorWithP
|
|
|
194
193
|
}, "id" | "created_at" | "created_by">)>>[], "documents/updateDocuments">, moveDocument: import("@reduxjs/toolkit").ActionCreatorWithPayload<MoveDocumentPayload, "documents/moveDocument">, removeDocuments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "documents/removeDocuments">, setDocumentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>, "documents/setDocumentAttachment">, setDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documents/setDocumentAttachments">, addDocumentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<DocumentAttachment>, "documents/addDocumentAttachment">, addDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<DocumentAttachment>[], "documents/addDocumentAttachments">, updateDocumentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<DocumentAttachment>, "documents/updateDocumentAttachment">, updateDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<DocumentAttachment>[], "documents/updateDocumentAttachments">, removeDocumentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "documents/removeDocumentAttachment">, removeDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "documents/removeDocumentAttachments">;
|
|
195
194
|
export declare const selectDocumentsMapping: Selector<Record<string, Stored<Document>>>;
|
|
196
195
|
export declare const selectDocuments: Selector<Stored<Document>[]>;
|
|
197
|
-
export declare const selectDocument: (args: string) => (state:
|
|
196
|
+
export declare const selectDocument: (args: string) => (state: OvermapRootState) => (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
198
197
|
title: string | null;
|
|
199
198
|
description: string | null;
|
|
200
199
|
content: string | null;
|
|
@@ -239,40 +238,8 @@ export declare const selectDocument: (args: string) => (state: RootState) => (im
|
|
|
239
238
|
} & {
|
|
240
239
|
children_documents: string[];
|
|
241
240
|
}, "id" | "created_at" | "created_by">) | undefined;
|
|
242
|
-
export declare const selectAncestorIdsOfDocument: (args: string) => (state:
|
|
243
|
-
export declare const selectRootDocuments: ((state: import(
|
|
244
|
-
versioning: import('../slices/versioningSlice').VersioningState;
|
|
245
|
-
fileReducer: import('..').FileState;
|
|
246
|
-
authReducer: import('..').AuthState;
|
|
247
|
-
categoryReducer: import('..').CategoryState;
|
|
248
|
-
assetReducer: import('..').AssetState;
|
|
249
|
-
assetStageCompletionReducer: import('..').AssetStageCompletionState;
|
|
250
|
-
assetStageReducer: import('..').AssetStageState;
|
|
251
|
-
assetTypeReducer: import('..').AssetTypeState;
|
|
252
|
-
issueReducer: import('..').IssueState;
|
|
253
|
-
issueTypeReducer: import('..').IssueTypeState;
|
|
254
|
-
mapReducer: import('..').MapState;
|
|
255
|
-
organizationReducer: import('..').OrganizationState;
|
|
256
|
-
outboxReducer: import('..').OutboxState;
|
|
257
|
-
projectReducer: import('..').ProjectState;
|
|
258
|
-
projectAccessReducer: import('..').ProjectAccessState;
|
|
259
|
-
organizationAccessReducer: import('..').OrganizationAccessState;
|
|
260
|
-
projectFileReducer: import('..').ProjectFileState;
|
|
261
|
-
rehydratedReducer: import('..').RehydratedState;
|
|
262
|
-
settingReducer: import('..').SettingState;
|
|
263
|
-
formReducer: import('..').FormState;
|
|
264
|
-
userReducer: import('..').UserState;
|
|
265
|
-
formRevisionReducer: import('..').FormRevisionState;
|
|
266
|
-
formSubmissionReducer: import('..').FormSubmissionState;
|
|
267
|
-
workspaceReducer: import('..').WorkspaceState;
|
|
268
|
-
emailDomainsReducer: import('..').EmailDomainState;
|
|
269
|
-
licenseReducer: import('..').LicenseState;
|
|
270
|
-
documentsReducer: DocumentState;
|
|
271
|
-
teamReducer: import('..').TeamState;
|
|
272
|
-
agentsReducer: import('..').AgentsState;
|
|
273
|
-
} & {
|
|
274
|
-
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
275
|
-
}) => ((import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
241
|
+
export declare const selectAncestorIdsOfDocument: (args: string) => (state: OvermapRootState) => string[];
|
|
242
|
+
export declare const selectRootDocuments: ((state: OvermapRootState) => ((import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
276
243
|
title: string | null;
|
|
277
244
|
description: string | null;
|
|
278
245
|
content: string | null;
|
|
@@ -409,11 +376,11 @@ export declare const selectRootDocuments: ((state: import("redux").EmptyObject &
|
|
|
409
376
|
}> & {
|
|
410
377
|
clearCache: () => void;
|
|
411
378
|
};
|
|
412
|
-
export declare const selectDocumentAttachmentMapping: (state:
|
|
379
|
+
export declare const selectDocumentAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<DocumentAttachment>>;
|
|
413
380
|
export declare const selectAllDocumentAttachments: Selector<Stored<DocumentAttachment>[]>;
|
|
414
381
|
export declare const selectDocumentAttachment: SelectorWithArgs<string, Stored<DocumentAttachment>>;
|
|
415
|
-
export declare const selectAttachmentsOfDocument: (args: string) => (state:
|
|
416
|
-
export declare const selectAttachmentsOfDocumentByType: (args: string) => (state:
|
|
382
|
+
export declare const selectAttachmentsOfDocument: (args: string) => (state: OvermapRootState) => Stored<DocumentAttachment>[];
|
|
383
|
+
export declare const selectAttachmentsOfDocumentByType: (args: string) => (state: OvermapRootState) => {
|
|
417
384
|
fileAttachments: Stored<DocumentAttachment>[];
|
|
418
385
|
imageAttachments: Stored<DocumentAttachment>[];
|
|
419
386
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="@redux-offline/redux-offline" />
|
|
2
1
|
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
3
|
-
import {
|
|
2
|
+
import { OvermapRootState, Selector, SelectorWithArgs, Stored, UserForm, UserFormRevision, UserFormRevisionAttachment } from "../../typings";
|
|
4
3
|
export interface FormRevisionState {
|
|
5
4
|
formRevisions: Record<UserFormRevision["offline_id"], Stored<UserFormRevision>>;
|
|
6
5
|
attachments: Record<UserFormRevisionAttachment["offline_id"], Stored<UserFormRevisionAttachment>>;
|
|
@@ -19,40 +18,8 @@ export declare const formRevisionsSlice: import("@reduxjs/toolkit").Slice<FormRe
|
|
|
19
18
|
deleteFormRevisionAttachments: (state: import("immer/dist/internal.js").WritableDraft<FormRevisionState>, action: PayloadAction<UserFormRevisionAttachment["offline_id"][]>) => void;
|
|
20
19
|
}, "formRevisions">;
|
|
21
20
|
export declare const setFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevision<import('../../forms').ISerializedField>>, "formRevisions/setFormRevision">, setFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevision<import('../../forms').ISerializedField>>[], "formRevisions/setFormRevisions">, addFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevision<import('../../forms').ISerializedField>>, "formRevisions/addFormRevision">, addFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevision<import('../../forms').ISerializedField>>[], "formRevisions/addFormRevisions">, deleteFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "formRevisions/deleteFormRevision">, deleteFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "formRevisions/deleteFormRevisions">, setFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevisionAttachment>[], "formRevisions/setFormRevisionAttachments">, addFormRevisionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevisionAttachment>, "formRevisions/addFormRevisionAttachment">, addFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevisionAttachment>[], "formRevisions/addFormRevisionAttachments">, deleteFormRevisionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "formRevisions/deleteFormRevisionAttachment">, deleteFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "formRevisions/deleteFormRevisionAttachments">;
|
|
22
|
-
export declare const selectFormRevisionMapping: (state:
|
|
23
|
-
export declare const selectFormRevisions: ((state: import("
|
|
24
|
-
versioning: import('../slices/versioningSlice').VersioningState;
|
|
25
|
-
fileReducer: import('..').FileState;
|
|
26
|
-
authReducer: import('..').AuthState;
|
|
27
|
-
categoryReducer: import('..').CategoryState;
|
|
28
|
-
assetReducer: import('..').AssetState;
|
|
29
|
-
assetStageCompletionReducer: import('..').AssetStageCompletionState;
|
|
30
|
-
assetStageReducer: import('..').AssetStageState;
|
|
31
|
-
assetTypeReducer: import('..').AssetTypeState;
|
|
32
|
-
issueReducer: import('..').IssueState;
|
|
33
|
-
issueTypeReducer: import('..').IssueTypeState;
|
|
34
|
-
mapReducer: import('..').MapState;
|
|
35
|
-
organizationReducer: import('..').OrganizationState;
|
|
36
|
-
outboxReducer: import('..').OutboxState;
|
|
37
|
-
projectReducer: import('..').ProjectState;
|
|
38
|
-
projectAccessReducer: import('..').ProjectAccessState;
|
|
39
|
-
organizationAccessReducer: import('..').OrganizationAccessState;
|
|
40
|
-
projectFileReducer: import('..').ProjectFileState;
|
|
41
|
-
rehydratedReducer: import('..').RehydratedState;
|
|
42
|
-
settingReducer: import('..').SettingState;
|
|
43
|
-
formReducer: import('..').FormState;
|
|
44
|
-
userReducer: import('..').UserState;
|
|
45
|
-
formRevisionReducer: FormRevisionState;
|
|
46
|
-
formSubmissionReducer: import('..').FormSubmissionState;
|
|
47
|
-
workspaceReducer: import('..').WorkspaceState;
|
|
48
|
-
emailDomainsReducer: import('..').EmailDomainState;
|
|
49
|
-
licenseReducer: import('..').LicenseState;
|
|
50
|
-
documentsReducer: import('..').DocumentState;
|
|
51
|
-
teamReducer: import('..').TeamState;
|
|
52
|
-
agentsReducer: import('..').AgentsState;
|
|
53
|
-
} & {
|
|
54
|
-
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
55
|
-
}) => Stored<UserFormRevision<import('../../forms').ISerializedField>>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<UserFormRevision<import('../../forms').ISerializedField>>>) => Stored<UserFormRevision<import('../../forms').ISerializedField>>[], {
|
|
21
|
+
export declare const selectFormRevisionMapping: (state: OvermapRootState) => Record<string, Stored<UserFormRevision<import('../../forms').ISerializedField>>>;
|
|
22
|
+
export declare const selectFormRevisions: ((state: OvermapRootState) => Stored<UserFormRevision<import('../../forms').ISerializedField>>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<UserFormRevision<import('../../forms').ISerializedField>>>) => Stored<UserFormRevision<import('../../forms').ISerializedField>>[], {
|
|
56
23
|
clearCache: () => void;
|
|
57
24
|
}> & {
|
|
58
25
|
clearCache: () => void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="@redux-offline/redux-offline" />
|
|
2
1
|
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
3
|
-
import { Created, Issue, IssueAttachment, IssueComment, IssueUpdate,
|
|
2
|
+
import { Created, Issue, IssueAttachment, IssueComment, IssueUpdate, OvermapRootState, SearchableRecentResult, SearchArgs, SearchResult, Selector, SelectorWithArgs, Stored, Submitted } from "../../typings";
|
|
4
3
|
import { IssueStatus } from "../../enums";
|
|
5
4
|
interface RecentIssueId {
|
|
6
5
|
offlineId: string;
|
|
@@ -108,60 +107,28 @@ export interface IssueFilterArgs {
|
|
|
108
107
|
filterByCategory: boolean;
|
|
109
108
|
filterByWorkspace: boolean;
|
|
110
109
|
}
|
|
111
|
-
export declare const selectIssueMapping: (state:
|
|
112
|
-
export declare const selectRecentIssueIds: (state:
|
|
113
|
-
export declare const selectVisibleUserIds: (state:
|
|
114
|
-
export declare const selectVisibleStatuses: (state:
|
|
110
|
+
export declare const selectIssueMapping: (state: OvermapRootState) => Record<string, Stored<Issue>>;
|
|
111
|
+
export declare const selectRecentIssueIds: (state: OvermapRootState) => RecentIssueId[];
|
|
112
|
+
export declare const selectVisibleUserIds: (state: OvermapRootState) => (number | null)[] | null;
|
|
113
|
+
export declare const selectVisibleStatuses: (state: OvermapRootState) => IssueStatus[];
|
|
115
114
|
export declare const selectIssues: SelectorWithArgs<IssueFilterArgs, Stored<Issue>[]>;
|
|
116
|
-
export declare const selectActiveIssueId: (state:
|
|
117
|
-
export declare const selectIssueAttachmentMapping: (state:
|
|
115
|
+
export declare const selectActiveIssueId: (state: OvermapRootState) => string | null;
|
|
116
|
+
export declare const selectIssueAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<IssueAttachment>>;
|
|
118
117
|
export declare const selectIssueAttachments: Selector<Stored<IssueAttachment>[]>;
|
|
119
118
|
export declare const selectPhotoAttachmentsOfIssue: SelectorWithArgs<string, Stored<IssueAttachment>[]>;
|
|
120
|
-
export declare const selectCommentMapping: (state:
|
|
121
|
-
export declare const selectCommentsOfIssue: (args: string) => (state:
|
|
122
|
-
export declare const selectIssueUpdateMapping: (state:
|
|
123
|
-
export declare const selectIssueUpdatesOfIssue: (args: string) => (state:
|
|
124
|
-
export declare const selectAttachmentsOfIssue: (args: string) => (state:
|
|
119
|
+
export declare const selectCommentMapping: (state: OvermapRootState) => Record<string, Stored<IssueComment>>;
|
|
120
|
+
export declare const selectCommentsOfIssue: (args: string) => (state: OvermapRootState) => Stored<IssueComment>[];
|
|
121
|
+
export declare const selectIssueUpdateMapping: (state: OvermapRootState) => Record<string, Stored<IssueUpdate>>;
|
|
122
|
+
export declare const selectIssueUpdatesOfIssue: (args: string) => (state: OvermapRootState) => Stored<IssueUpdate>[];
|
|
123
|
+
export declare const selectAttachmentsOfIssue: (args: string) => (state: OvermapRootState) => Stored<IssueAttachment>[];
|
|
125
124
|
export declare const selectIssueAttachment: SelectorWithArgs<string, Stored<IssueAttachment>>;
|
|
126
|
-
export declare const selectAttachmentsOfIssueByType: (args: string) => (state:
|
|
125
|
+
export declare const selectAttachmentsOfIssueByType: (args: string) => (state: OvermapRootState) => {
|
|
127
126
|
fileAttachments: Stored<IssueAttachment>[];
|
|
128
127
|
imageAttachments: Stored<IssueAttachment>[];
|
|
129
128
|
};
|
|
130
|
-
export declare const selectFileAttachmentsOfIssue: (args: string) => (state:
|
|
129
|
+
export declare const selectFileAttachmentsOfIssue: (args: string) => (state: OvermapRootState) => Stored<IssueAttachment>[] | undefined;
|
|
131
130
|
export declare const selectIssue: SelectorWithArgs<string, Stored<Issue> | undefined>;
|
|
132
|
-
export declare const selectAllAttachments: ((state: import("
|
|
133
|
-
versioning: import('../slices/versioningSlice').VersioningState;
|
|
134
|
-
fileReducer: import('..').FileState;
|
|
135
|
-
authReducer: import('..').AuthState;
|
|
136
|
-
categoryReducer: import("./categorySlice").CategoryState;
|
|
137
|
-
assetReducer: import('..').AssetState;
|
|
138
|
-
assetStageCompletionReducer: import('..').AssetStageCompletionState;
|
|
139
|
-
assetStageReducer: import('..').AssetStageState;
|
|
140
|
-
assetTypeReducer: import('..').AssetTypeState;
|
|
141
|
-
issueReducer: IssueState;
|
|
142
|
-
issueTypeReducer: import('..').IssueTypeState;
|
|
143
|
-
mapReducer: import('..').MapState;
|
|
144
|
-
organizationReducer: import('..').OrganizationState;
|
|
145
|
-
outboxReducer: import('..').OutboxState;
|
|
146
|
-
projectReducer: import('..').ProjectState;
|
|
147
|
-
projectAccessReducer: import('..').ProjectAccessState;
|
|
148
|
-
organizationAccessReducer: import('..').OrganizationAccessState;
|
|
149
|
-
projectFileReducer: import('..').ProjectFileState;
|
|
150
|
-
rehydratedReducer: import('..').RehydratedState;
|
|
151
|
-
settingReducer: import('..').SettingState;
|
|
152
|
-
formReducer: import('..').FormState;
|
|
153
|
-
userReducer: import('..').UserState;
|
|
154
|
-
formRevisionReducer: import('..').FormRevisionState;
|
|
155
|
-
formSubmissionReducer: import('..').FormSubmissionState;
|
|
156
|
-
workspaceReducer: import("./workspaceSlice").WorkspaceState;
|
|
157
|
-
emailDomainsReducer: import('..').EmailDomainState;
|
|
158
|
-
licenseReducer: import('..').LicenseState;
|
|
159
|
-
documentsReducer: import('..').DocumentState;
|
|
160
|
-
teamReducer: import('..').TeamState;
|
|
161
|
-
agentsReducer: import('..').AgentsState;
|
|
162
|
-
} & {
|
|
163
|
-
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
164
|
-
}) => Stored<IssueAttachment>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<IssueAttachment>>) => Stored<IssueAttachment>[], {
|
|
131
|
+
export declare const selectAllAttachments: ((state: OvermapRootState) => Stored<IssueAttachment>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<IssueAttachment>>) => Stored<IssueAttachment>[], {
|
|
165
132
|
clearCache: () => void;
|
|
166
133
|
}> & {
|
|
167
134
|
clearCache: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
2
|
import { MapStyle } from "../../enums";
|
|
3
|
-
import {
|
|
3
|
+
import { OvermapRootState } from "../../typings";
|
|
4
4
|
export interface MapState {
|
|
5
5
|
mapStyle: MapStyle;
|
|
6
6
|
showTooltips: boolean;
|
|
@@ -17,7 +17,7 @@ export declare const mapSlice: import("@reduxjs/toolkit").Slice<MapState, {
|
|
|
17
17
|
}) => void;
|
|
18
18
|
}, "map">;
|
|
19
19
|
export declare const setMapStyle: import("@reduxjs/toolkit").ActionCreatorWithPayload<MapStyle, "map/setMapStyle">, setShowTooltips: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "map/setShowTooltips">, setCenterMapToProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "map/setCenterMapToProject">;
|
|
20
|
-
export declare const selectMapStyle: (state:
|
|
21
|
-
export declare const selectShowTooltips: (state:
|
|
22
|
-
export declare const selectCenterMapToProject: (state:
|
|
20
|
+
export declare const selectMapStyle: (state: OvermapRootState) => MapStyle;
|
|
21
|
+
export declare const selectShowTooltips: (state: OvermapRootState) => boolean;
|
|
22
|
+
export declare const selectCenterMapToProject: (state: OvermapRootState) => boolean;
|
|
23
23
|
export declare const mapReducer: Reducer<MapState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import {
|
|
2
|
+
import { OvermapRootState, Selector, SelectorWithArgs } from '../../typings';
|
|
3
3
|
import { OfflineIdMapping, OrganizationAccess, User } from '../../typings/models';
|
|
4
4
|
export interface OrganizationAccessState {
|
|
5
5
|
organizationAccesses: OfflineIdMapping<OrganizationAccess>;
|
|
@@ -16,9 +16,9 @@ export declare const organizationAccessSlice: import("@reduxjs/toolkit").Slice<O
|
|
|
16
16
|
}) => void;
|
|
17
17
|
}, "organizationAccess">;
|
|
18
18
|
export declare const setOrganizationAccesses: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess[], "organizationAccess/setOrganizationAccesses">, updateOrganizationAccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess, "organizationAccess/updateOrganizationAccess">, removeOrganizationAccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess, "organizationAccess/removeOrganizationAccess">;
|
|
19
|
-
export declare const selectOrganizationAccesses: (state:
|
|
19
|
+
export declare const selectOrganizationAccesses: (state: OvermapRootState) => OfflineIdMapping<OrganizationAccess>;
|
|
20
20
|
export declare const selectOrganizationAccess: SelectorWithArgs<string, OrganizationAccess>;
|
|
21
21
|
export declare const selectActiveOrganizationAccess: Selector<OrganizationAccess | null>;
|
|
22
22
|
export declare const selectOrganizationAccessForUser: SelectorWithArgs<User, OrganizationAccess | undefined>;
|
|
23
|
-
export declare const selectOrganizationAccessUserMapping: (state:
|
|
23
|
+
export declare const selectOrganizationAccessUserMapping: (state: OvermapRootState) => Record<number, OrganizationAccess>;
|
|
24
24
|
export declare const organizationAccessReducer: Reducer<OrganizationAccessState>;
|
|
@@ -2,7 +2,7 @@ import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
|
2
2
|
import type { FullOfflineAction } from "../store";
|
|
3
3
|
import type { RequestDetails } from "../../sdk";
|
|
4
4
|
import { SDKRequest } from "../../sdk";
|
|
5
|
-
import {
|
|
5
|
+
import { OvermapRootState } from "../../typings";
|
|
6
6
|
export declare const createOfflineAction: (request: SDKRequest, baseUrl: string) => FullOfflineAction;
|
|
7
7
|
export interface OutboxState {
|
|
8
8
|
/** A list of requests marked for deletion. Once the offline slice encounters one of these, */
|
|
@@ -27,8 +27,8 @@ export declare const outboxSlice: import("@reduxjs/toolkit").Slice<OutboxState,
|
|
|
27
27
|
markAsDeleted(state: import("immer/dist/internal.js").WritableDraft<OutboxState>, action: PayloadAction<string>): void;
|
|
28
28
|
_setLatestRetryTime: (state: import("immer/dist/internal.js").WritableDraft<OutboxState>, action: PayloadAction<number>) => void;
|
|
29
29
|
}, "outbox">;
|
|
30
|
-
export declare const selectDeletedRequests: (state:
|
|
31
|
-
export declare const selectLatestRetryTime: (state:
|
|
30
|
+
export declare const selectDeletedRequests: (state: OvermapRootState) => string[];
|
|
31
|
+
export declare const selectLatestRetryTime: (state: OvermapRootState) => number;
|
|
32
32
|
export declare const enqueueRequest: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: Omit<RequestDetails, "uuid"> & {
|
|
33
33
|
uuid?: string | undefined;
|
|
34
34
|
} & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { ProjectAccess,
|
|
2
|
+
import { ProjectAccess, OvermapRootState, Selector, SelectorWithArgs, User } from "../../typings";
|
|
3
3
|
export interface ProjectAccessState {
|
|
4
4
|
projectAccesses: Record<string, ProjectAccess>;
|
|
5
5
|
}
|
|
@@ -18,7 +18,7 @@ export declare const projectAccessSlice: import("@reduxjs/toolkit").Slice<Projec
|
|
|
18
18
|
}) => void;
|
|
19
19
|
}, "projectAccess">;
|
|
20
20
|
export declare const setProjectAccesses: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProjectAccess[], "projectAccess/setProjectAccesses">, updateProjectAccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProjectAccess, "projectAccess/updateProjectAccess">, removeProjectAccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProjectAccess, "projectAccess/removeProjectAccess">, removeProjectAccessesOfProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "projectAccess/removeProjectAccessesOfProject">;
|
|
21
|
-
export declare const selectProjectAccesses: (state:
|
|
21
|
+
export declare const selectProjectAccesses: (state: OvermapRootState) => Record<string, ProjectAccess>;
|
|
22
22
|
export declare const selectProjectAccess: SelectorWithArgs<string, ProjectAccess>;
|
|
23
23
|
export declare const selectActiveProjectAccess: Selector<ProjectAccess | null>;
|
|
24
24
|
export declare const selectProjectAccessForUser: SelectorWithArgs<User, ProjectAccess | undefined>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="@redux-offline/redux-offline" />
|
|
2
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
3
2
|
import L from "leaflet";
|
|
4
|
-
import { ProjectFile,
|
|
3
|
+
import { ProjectFile, OvermapRootState, Selector } from "../../typings";
|
|
5
4
|
export interface ProjectFileState {
|
|
6
5
|
projectFiles: Record<string, ProjectFile>;
|
|
7
6
|
activeProjectFileId: string | null;
|
|
@@ -46,42 +45,10 @@ export declare const addOrReplaceProjectFiles: import("@reduxjs/toolkit").Action
|
|
|
46
45
|
fileId: string;
|
|
47
46
|
visible: boolean;
|
|
48
47
|
}, "projectFiles/setProjectFileVisible">, setIsImportingProjectFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "projectFiles/setIsImportingProjectFile">, setActiveProjectFileId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "projectFiles/setActiveProjectFileId">, saveActiveProjectFileBounds: import("@reduxjs/toolkit").ActionCreatorWithPayload<[L.LatLngTuple, L.LatLngTuple], "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">;
|
|
49
|
-
export declare const selectEnabledProjectFiles: (state:
|
|
48
|
+
export declare const selectEnabledProjectFiles: (state: OvermapRootState) => Record<string, boolean | undefined>;
|
|
50
49
|
export declare const selectProjectFileVisibility: Selector<Record<string, boolean>>;
|
|
51
|
-
export declare const selectEnabledProjectFileMapping: (state:
|
|
52
|
-
export declare const selectProjectFiles: ((state: import("
|
|
53
|
-
versioning: import('../slices/versioningSlice').VersioningState;
|
|
54
|
-
fileReducer: import('..').FileState;
|
|
55
|
-
authReducer: import('..').AuthState;
|
|
56
|
-
categoryReducer: import('..').CategoryState;
|
|
57
|
-
assetReducer: import('..').AssetState;
|
|
58
|
-
assetStageCompletionReducer: import('..').AssetStageCompletionState;
|
|
59
|
-
assetStageReducer: import('..').AssetStageState;
|
|
60
|
-
assetTypeReducer: import('..').AssetTypeState;
|
|
61
|
-
issueReducer: import('..').IssueState;
|
|
62
|
-
issueTypeReducer: import('..').IssueTypeState;
|
|
63
|
-
mapReducer: import('..').MapState;
|
|
64
|
-
organizationReducer: import('..').OrganizationState;
|
|
65
|
-
outboxReducer: import('..').OutboxState;
|
|
66
|
-
projectReducer: import("./projectSlice").ProjectState;
|
|
67
|
-
projectAccessReducer: import('..').ProjectAccessState;
|
|
68
|
-
organizationAccessReducer: import('..').OrganizationAccessState;
|
|
69
|
-
projectFileReducer: ProjectFileState;
|
|
70
|
-
rehydratedReducer: import('..').RehydratedState;
|
|
71
|
-
settingReducer: import('..').SettingState;
|
|
72
|
-
formReducer: import('..').FormState;
|
|
73
|
-
userReducer: import('..').UserState;
|
|
74
|
-
formRevisionReducer: import('..').FormRevisionState;
|
|
75
|
-
formSubmissionReducer: import('..').FormSubmissionState;
|
|
76
|
-
workspaceReducer: import('..').WorkspaceState;
|
|
77
|
-
emailDomainsReducer: import('..').EmailDomainState;
|
|
78
|
-
licenseReducer: import('..').LicenseState;
|
|
79
|
-
documentsReducer: import('..').DocumentState;
|
|
80
|
-
teamReducer: import('..').TeamState;
|
|
81
|
-
agentsReducer: import('..').AgentsState;
|
|
82
|
-
} & {
|
|
83
|
-
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
84
|
-
}) => ProjectFile[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, ProjectFile>, args_1: number | null) => ProjectFile[], {
|
|
50
|
+
export declare const selectEnabledProjectFileMapping: (state: OvermapRootState) => Record<string, ProjectFile>;
|
|
51
|
+
export declare const selectProjectFiles: ((state: OvermapRootState) => ProjectFile[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, ProjectFile>, args_1: number | null) => ProjectFile[], {
|
|
85
52
|
clearCache: () => void;
|
|
86
53
|
}> & {
|
|
87
54
|
clearCache: () => void;
|