@overmap-ai/core 1.0.71-project-file-improvements.4 → 1.0.71-remove-login-timeout.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/constants/defaults.d.ts +2 -1
- package/dist/constants/index.d.ts +3 -3
- package/dist/enums/index.d.ts +5 -5
- package/dist/index.d.ts +6 -6
- package/dist/overmap-core.js +290 -452
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +299 -460
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/base.d.ts +8 -6
- package/dist/sdk/classes/OutboxCoordinator.d.ts +4 -4
- package/dist/sdk/classes/index.d.ts +1 -1
- package/dist/sdk/errors.d.ts +3 -1
- package/dist/sdk/globals.d.ts +7 -5
- package/dist/sdk/index.d.ts +6 -6
- package/dist/sdk/sdk.d.ts +6 -5
- package/dist/sdk/services/AgentService.d.ts +6 -10
- package/dist/sdk/services/AssetAttachmentService.d.ts +13 -12
- 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 +5 -4
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +13 -12
- package/dist/sdk/services/AssetTypeService.d.ts +5 -4
- package/dist/sdk/services/BaseApiService.d.ts +5 -4
- package/dist/sdk/services/BaseAttachmentService.d.ts +7 -6
- package/dist/sdk/services/BaseAuthService.d.ts +5 -4
- package/dist/sdk/services/BaseService.d.ts +7 -5
- package/dist/sdk/services/BaseUploadService.d.ts +5 -4
- package/dist/sdk/services/CategoryService.d.ts +5 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +13 -12
- package/dist/sdk/services/DocumentService.d.ts +5 -4
- package/dist/sdk/services/EmailDomainsService.d.ts +4 -3
- package/dist/sdk/services/EmailVerificationService.d.ts +4 -3
- package/dist/sdk/services/FileService.d.ts +5 -4
- package/dist/sdk/services/FormService.d.ts +5 -4
- package/dist/sdk/services/FormSubmissionService.d.ts +6 -5
- package/dist/sdk/services/GeoImageService.d.ts +5 -4
- package/dist/sdk/services/IssueAssociationService.d.ts +5 -4
- package/dist/sdk/services/IssueAttachmentService.d.ts +13 -12
- package/dist/sdk/services/IssueCommentService.d.ts +5 -4
- package/dist/sdk/services/IssueService.d.ts +5 -4
- package/dist/sdk/services/IssueTypeService.d.ts +5 -4
- package/dist/sdk/services/IssueUpdateService.d.ts +4 -3
- package/dist/sdk/services/JWTAuthService.d.ts +7 -6
- package/dist/sdk/services/LicenseService.d.ts +4 -3
- package/dist/sdk/services/OrganizationAccessService.d.ts +4 -3
- package/dist/sdk/services/OrganizationService.d.ts +4 -3
- package/dist/sdk/services/ProjectAccessService.d.ts +4 -3
- package/dist/sdk/services/ProjectAttachmentService.d.ts +13 -12
- package/dist/sdk/services/ProjectFileService.d.ts +9 -8
- package/dist/sdk/services/ProjectService.d.ts +4 -3
- package/dist/sdk/services/TeamService.d.ts +5 -4
- package/dist/sdk/services/UserService.d.ts +4 -3
- package/dist/sdk/services/WorkspaceService.d.ts +5 -4
- package/dist/sdk/services/index.d.ts +34 -34
- package/dist/sdk/typings.d.ts +9 -8
- package/dist/store/adapter.d.ts +12 -11
- package/dist/store/index.d.ts +2 -2
- package/dist/store/migrations.d.ts +2 -1
- package/dist/store/slices/agentsSlice.d.ts +11 -10
- package/dist/store/slices/assetAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/assetSlice.d.ts +35 -24
- package/dist/store/slices/assetStageCompletionSlice.d.ts +33 -22
- package/dist/store/slices/assetStageSlice.d.ts +36 -25
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/assetTypeSlice.d.ts +16 -21
- package/dist/store/slices/authSlice.d.ts +10 -9
- package/dist/store/slices/categorySlice.d.ts +30 -16
- package/dist/store/slices/documentAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/documentSlice.d.ts +30 -13
- package/dist/store/slices/emailDomainsSlice.d.ts +29 -15
- package/dist/store/slices/fileSlice.d.ts +7 -6
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/formRevisionSlice.d.ts +37 -26
- package/dist/store/slices/formSlice.d.ts +35 -21
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/formSubmissionSlice.d.ts +16 -21
- package/dist/store/slices/geoImageSlice.d.ts +16 -21
- package/dist/store/slices/index.d.ts +38 -38
- package/dist/store/slices/issueAssociationSlice.d.ts +35 -24
- package/dist/store/slices/issueAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/issueCommentSlice.d.ts +13 -18
- package/dist/store/slices/issueSlice.d.ts +13 -18
- package/dist/store/slices/issueTypeSlice.d.ts +12 -14
- package/dist/store/slices/issueUpdateSlice.d.ts +13 -18
- package/dist/store/slices/licenseSlice.d.ts +10 -9
- package/dist/store/slices/organizationAccessSlice.d.ts +11 -13
- package/dist/store/slices/organizationSlice.d.ts +27 -10
- package/dist/store/slices/outboxSlice.d.ts +15 -15
- package/dist/store/slices/projectAccessSlice.d.ts +11 -17
- package/dist/store/slices/projectAttachmentSlice.d.ts +16 -21
- package/dist/store/slices/projectFileSlice.d.ts +56 -44
- package/dist/store/slices/projectSlice.d.ts +10 -24
- package/dist/store/slices/rehydratedSlice.d.ts +7 -6
- package/dist/store/slices/teamSlice.d.ts +12 -14
- package/dist/store/slices/userSlice.d.ts +14 -13
- package/dist/store/slices/versioningSlice.d.ts +3 -2
- package/dist/store/slices/workspaceSlice.d.ts +31 -17
- package/dist/store/store.d.ts +7 -7
- package/dist/typings/index.d.ts +6 -6
- package/dist/typings/models/access.d.ts +3 -2
- package/dist/typings/models/agents.d.ts +3 -2
- package/dist/typings/models/assets.d.ts +3 -2
- package/dist/typings/models/attachments.d.ts +3 -2
- package/dist/typings/models/base.d.ts +3 -2
- package/dist/typings/models/categories.d.ts +3 -2
- package/dist/typings/models/documents.d.ts +2 -1
- package/dist/typings/models/emailDomain.d.ts +2 -1
- package/dist/typings/models/emailVerification.d.ts +3 -2
- package/dist/typings/models/forms.d.ts +4 -3
- package/dist/typings/models/geoImages.d.ts +5 -4
- package/dist/typings/models/index.d.ts +21 -21
- package/dist/typings/models/issueTypes.d.ts +3 -2
- package/dist/typings/models/issues.d.ts +7 -6
- package/dist/typings/models/license.d.ts +3 -2
- package/dist/typings/models/organizations.d.ts +2 -1
- package/dist/typings/models/projects.d.ts +5 -7
- package/dist/typings/models/store.d.ts +3 -3
- package/dist/typings/models/teams.d.ts +4 -3
- package/dist/typings/models/users.d.ts +2 -1
- package/dist/typings/models/workspace.d.ts +2 -1
- package/dist/typings/search.d.ts +1 -1
- package/dist/typings/store.d.ts +2 -1
- package/dist/utils/async/DeferredPromise.d.ts +1 -1
- package/dist/utils/colors.d.ts +2 -1
- package/dist/utils/coordinates.d.ts +3 -2
- package/dist/utils/file.d.ts +2 -1
- package/dist/utils/forms.d.ts +2 -1
- package/dist/utils/index.d.ts +10 -10
- package/dist/utils/offline.d.ts +2 -1
- package/dist/utils/utils.d.ts +2 -1
- package/package.json +18 -20
|
@@ -1,43 +1,54 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import { Asset, AssetStageCompletion, OvermapRootState, OvermapSelectorWithArgs, Stored } from
|
|
3
|
-
import { ModelState } from
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { Asset, AssetStageCompletion, OvermapRootState, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
|
|
4
5
|
export type AssetStageCompletionState = ModelState<AssetStageCompletion>;
|
|
5
|
-
export declare const assetStageCompletionSlice: import(
|
|
6
|
-
initializeAssetStageCompletions:
|
|
6
|
+
export declare const assetStageCompletionSlice: import('@reduxjs/toolkit').Slice<AssetStageCompletionState, {
|
|
7
|
+
initializeAssetStageCompletions: (state: ModelState<AssetStageCompletion>, action: {
|
|
7
8
|
payload: AssetStageCompletion[];
|
|
8
9
|
type: string;
|
|
9
10
|
}) => void;
|
|
10
|
-
addAssetStageCompletion:
|
|
11
|
+
addAssetStageCompletion: (state: ModelState<AssetStageCompletion>, action: {
|
|
11
12
|
payload: AssetStageCompletion;
|
|
12
13
|
type: string;
|
|
13
14
|
}) => void;
|
|
14
|
-
addAssetStageCompletions:
|
|
15
|
+
addAssetStageCompletions: (state: ModelState<AssetStageCompletion>, action: {
|
|
15
16
|
payload: AssetStageCompletion[];
|
|
16
17
|
type: string;
|
|
17
18
|
}) => void;
|
|
18
|
-
updateAssetStageCompletion:
|
|
19
|
+
updateAssetStageCompletion: (state: ModelState<AssetStageCompletion>, action: {
|
|
19
20
|
payload: AssetStageCompletion;
|
|
20
21
|
type: string;
|
|
21
22
|
}) => void;
|
|
22
|
-
updateAssetStageCompletions:
|
|
23
|
+
updateAssetStageCompletions: (state: ModelState<AssetStageCompletion>, action: {
|
|
23
24
|
payload: AssetStageCompletion[];
|
|
24
25
|
type: string;
|
|
25
26
|
}) => void;
|
|
26
|
-
deleteAssetStageCompletion:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
deleteAssetStageCompletions: <TState_6 extends ModelState<AssetStageCompletion>>(state: TState_6, action: {
|
|
31
|
-
payload: string[];
|
|
32
|
-
type: string;
|
|
33
|
-
}) => void;
|
|
34
|
-
}, "assetStageCompletions">;
|
|
35
|
-
export declare const initializeAssetStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<AssetStageCompletion[], "assetStageCompletions/initializeAssetStageCompletions">, addAssetStageCompletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<AssetStageCompletion, "assetStageCompletions/addAssetStageCompletion">, addAssetStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<AssetStageCompletion[], "assetStageCompletions/addAssetStageCompletions">, updateAssetStageCompletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<AssetStageCompletion, "assetStageCompletions/updateAssetStageCompletion">, updateAssetStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<AssetStageCompletion[], "assetStageCompletions/updateAssetStageCompletions">, deleteAssetStageCompletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetStageCompletions/deleteAssetStageCompletion">, deleteAssetStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assetStageCompletions/deleteAssetStageCompletions">;
|
|
27
|
+
deleteAssetStageCompletion: (state: ModelState<AssetStageCompletion>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
28
|
+
deleteAssetStageCompletions: (state: ModelState<AssetStageCompletion>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
29
|
+
}, "assetStageCompletions", "assetStageCompletions", import('@reduxjs/toolkit').SliceSelectors<AssetStageCompletionState>>;
|
|
30
|
+
export declare const initializeAssetStageCompletions: import('@reduxjs/toolkit').ActionCreatorWithPayload<AssetStageCompletion[], "assetStageCompletions/initializeAssetStageCompletions">, addAssetStageCompletion: import('@reduxjs/toolkit').ActionCreatorWithPayload<AssetStageCompletion, "assetStageCompletions/addAssetStageCompletion">, addAssetStageCompletions: import('@reduxjs/toolkit').ActionCreatorWithPayload<AssetStageCompletion[], "assetStageCompletions/addAssetStageCompletions">, updateAssetStageCompletion: import('@reduxjs/toolkit').ActionCreatorWithPayload<AssetStageCompletion, "assetStageCompletions/updateAssetStageCompletion">, updateAssetStageCompletions: import('@reduxjs/toolkit').ActionCreatorWithPayload<AssetStageCompletion[], "assetStageCompletions/updateAssetStageCompletions">, deleteAssetStageCompletion: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetStageCompletions/deleteAssetStageCompletion">, deleteAssetStageCompletions: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetStageCompletions/deleteAssetStageCompletions">;
|
|
36
31
|
export declare const selectAssetStageCompletionMapping: (state: OvermapRootState) => Record<string, AssetStageCompletion>;
|
|
37
|
-
export declare const selectCompletedStagesByAsset: ((state: OvermapRootState) => Record<string, Record<string, string>>) &
|
|
38
|
-
clearCache: () => void;
|
|
39
|
-
}> & {
|
|
32
|
+
export declare const selectCompletedStagesByAsset: ((state: OvermapRootState) => Record<string, Record<string, string>>) & {
|
|
40
33
|
clearCache: () => void;
|
|
34
|
+
resultsCount: () => number;
|
|
35
|
+
resetResultsCount: () => void;
|
|
36
|
+
} & {
|
|
37
|
+
resultFunc: (resultFuncArgs_0: Record<string, AssetStageCompletion>) => Record<string, Record<string, string>>;
|
|
38
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, AssetStageCompletion>) => Record<string, Record<string, string>>) & {
|
|
39
|
+
clearCache: () => void;
|
|
40
|
+
resultsCount: () => number;
|
|
41
|
+
resetResultsCount: () => void;
|
|
42
|
+
};
|
|
43
|
+
lastResult: () => Record<string, Record<string, string>>;
|
|
44
|
+
dependencies: [(state: OvermapRootState) => Record<string, AssetStageCompletion>];
|
|
45
|
+
recomputations: () => number;
|
|
46
|
+
resetRecomputations: () => void;
|
|
47
|
+
dependencyRecomputations: () => number;
|
|
48
|
+
resetDependencyRecomputations: () => void;
|
|
49
|
+
} & {
|
|
50
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
51
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
41
52
|
};
|
|
42
53
|
export declare const selectCompletedStageIdsForAsset: OvermapSelectorWithArgs<Asset, string[]>;
|
|
43
54
|
export declare const selectAssetStageCompletionById: OvermapSelectorWithArgs<string, Stored<AssetStageCompletion> | undefined>;
|
|
@@ -1,55 +1,66 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { AssetStage, OvermapSelector, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
|
|
4
5
|
export type AssetStageState = ModelState<Stored<AssetStage>>;
|
|
5
|
-
export declare const assetStageSlice: import(
|
|
6
|
-
initializeAssetStages:
|
|
6
|
+
export declare const assetStageSlice: import('@reduxjs/toolkit').Slice<ModelState<Stored<AssetStage>>, {
|
|
7
|
+
initializeAssetStages: (state: ModelState<Stored<AssetStage>>, action: {
|
|
7
8
|
payload: Stored<AssetStage>[];
|
|
8
9
|
type: string;
|
|
9
10
|
}) => void;
|
|
10
|
-
setAssetStage:
|
|
11
|
+
setAssetStage: (state: ModelState<Stored<AssetStage>>, action: {
|
|
11
12
|
payload: Stored<AssetStage>;
|
|
12
13
|
type: string;
|
|
13
14
|
}) => void;
|
|
14
|
-
setAssetStages:
|
|
15
|
+
setAssetStages: (state: ModelState<Stored<AssetStage>>, action: {
|
|
15
16
|
payload: Stored<AssetStage>[];
|
|
16
17
|
type: string;
|
|
17
18
|
}) => void;
|
|
18
|
-
addAssetStage:
|
|
19
|
+
addAssetStage: (state: ModelState<Stored<AssetStage>>, action: {
|
|
19
20
|
payload: Stored<AssetStage>;
|
|
20
21
|
type: string;
|
|
21
22
|
}) => void;
|
|
22
|
-
addAssetStages:
|
|
23
|
+
addAssetStages: (state: ModelState<Stored<AssetStage>>, action: {
|
|
23
24
|
payload: Stored<AssetStage>[];
|
|
24
25
|
type: string;
|
|
25
26
|
}) => void;
|
|
26
|
-
updateAssetStage:
|
|
27
|
+
updateAssetStage: (state: ModelState<Stored<AssetStage>>, action: {
|
|
27
28
|
payload: Stored<AssetStage>;
|
|
28
29
|
type: string;
|
|
29
30
|
}) => void;
|
|
30
|
-
updateAssetStages:
|
|
31
|
+
updateAssetStages: (state: ModelState<Stored<AssetStage>>, action: {
|
|
31
32
|
payload: Stored<AssetStage>[];
|
|
32
33
|
type: string;
|
|
33
34
|
}) => void;
|
|
34
|
-
deleteAssetStage:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
deleteAssetStages: <TState_8 extends ModelState<Stored<AssetStage>>>(state: TState_8, action: {
|
|
39
|
-
payload: string[];
|
|
40
|
-
type: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
}, "assetStages">;
|
|
43
|
-
export declare const initializeAssetStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetStage>[], "assetStages/initializeAssetStages">, setAssetStage: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetStage>, "assetStages/setAssetStage">, setAssetStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetStage>[], "assetStages/setAssetStages">, addAssetStage: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetStage>, "assetStages/addAssetStage">, addAssetStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetStage>[], "assetStages/addAssetStages">, updateAssetStage: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetStage>, "assetStages/updateAssetStage">, updateAssetStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetStage>[], "assetStages/updateAssetStages">, deleteAssetStage: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetStages/deleteAssetStage">, deleteAssetStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assetStages/deleteAssetStages">;
|
|
35
|
+
deleteAssetStage: (state: ModelState<Stored<AssetStage>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
36
|
+
deleteAssetStages: (state: ModelState<Stored<AssetStage>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
37
|
+
}, "assetStages", "assetStages", import('@reduxjs/toolkit').SliceSelectors<ModelState<Stored<AssetStage>>>>;
|
|
38
|
+
export declare const initializeAssetStages: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetStage>[], "assetStages/initializeAssetStages">, setAssetStage: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetStage>, "assetStages/setAssetStage">, setAssetStages: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetStage>[], "assetStages/setAssetStages">, addAssetStage: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetStage>, "assetStages/addAssetStage">, addAssetStages: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetStage>[], "assetStages/addAssetStages">, updateAssetStage: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetStage>, "assetStages/updateAssetStage">, updateAssetStages: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetStage>[], "assetStages/updateAssetStages">, deleteAssetStage: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetStages/deleteAssetStage">, deleteAssetStages: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetStages/deleteAssetStages">;
|
|
44
39
|
export declare const assetStageReducer: Reducer<AssetStageState>;
|
|
45
40
|
export declare const selectStageMapping: OvermapSelector<Record<AssetStage["offline_id"], AssetStage>>;
|
|
46
41
|
export declare const selectAssetStageById: OvermapSelectorWithArgs<string, AssetStage | undefined>;
|
|
47
|
-
export declare const selectAssetStages: ((state: import('
|
|
48
|
-
clearCache: () => void;
|
|
49
|
-
}> & {
|
|
42
|
+
export declare const selectAssetStages: ((state: import('../..').OvermapRootState) => AssetStage[]) & {
|
|
50
43
|
clearCache: () => void;
|
|
44
|
+
resultsCount: () => number;
|
|
45
|
+
resetResultsCount: () => void;
|
|
46
|
+
} & {
|
|
47
|
+
resultFunc: (resultFuncArgs_0: Record<string, AssetStage>) => AssetStage[];
|
|
48
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, AssetStage>) => AssetStage[]) & {
|
|
49
|
+
clearCache: () => void;
|
|
50
|
+
resultsCount: () => number;
|
|
51
|
+
resetResultsCount: () => void;
|
|
52
|
+
};
|
|
53
|
+
lastResult: () => AssetStage[];
|
|
54
|
+
dependencies: [OvermapSelector<Record<string, AssetStage>>];
|
|
55
|
+
recomputations: () => number;
|
|
56
|
+
resetRecomputations: () => void;
|
|
57
|
+
dependencyRecomputations: () => number;
|
|
58
|
+
resetDependencyRecomputations: () => void;
|
|
59
|
+
} & {
|
|
60
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
61
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
51
62
|
};
|
|
52
63
|
export declare const selectAssetTypeStagesMapping: OvermapSelectorWithArgs<string, Record<string, AssetStage>>;
|
|
53
64
|
export declare const selectStagesOfAssetType: OvermapSelectorWithArgs<string, AssetStage[]>;
|
|
54
|
-
export declare const selectAssetStagesByIds: (args: string[]) => (state: import('
|
|
65
|
+
export declare const selectAssetStagesByIds: (args: string[]) => (state: import('../..').OvermapRootState) => Stored<AssetStage>[];
|
|
55
66
|
export declare const selectStageFormIdsFromStageIds: OvermapSelectorWithArgs<string[], Record<string, string>>;
|
|
@@ -1,46 +1,41 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { AssetTypeAttachment, OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
|
|
4
5
|
export type AssetTypeAttachmentState = ModelState<Stored<AssetTypeAttachment>>;
|
|
5
|
-
export declare const assetTypeAttachmentSlice: import(
|
|
6
|
-
initializeAssetTypeAttachments:
|
|
6
|
+
export declare const assetTypeAttachmentSlice: import('@reduxjs/toolkit').Slice<ModelState<Stored<AssetTypeAttachment>>, {
|
|
7
|
+
initializeAssetTypeAttachments: (state: ModelState<Stored<AssetTypeAttachment>>, action: {
|
|
7
8
|
payload: Stored<AssetTypeAttachment>[];
|
|
8
9
|
type: string;
|
|
9
10
|
}) => void;
|
|
10
|
-
addAssetTypeAttachment:
|
|
11
|
+
addAssetTypeAttachment: (state: ModelState<Stored<AssetTypeAttachment>>, action: {
|
|
11
12
|
payload: Stored<AssetTypeAttachment>;
|
|
12
13
|
type: string;
|
|
13
14
|
}) => void;
|
|
14
|
-
addAssetTypeAttachments:
|
|
15
|
+
addAssetTypeAttachments: (state: ModelState<Stored<AssetTypeAttachment>>, action: {
|
|
15
16
|
payload: Stored<AssetTypeAttachment>[];
|
|
16
17
|
type: string;
|
|
17
18
|
}) => void;
|
|
18
|
-
setAssetTypeAttachment:
|
|
19
|
+
setAssetTypeAttachment: (state: ModelState<Stored<AssetTypeAttachment>>, action: {
|
|
19
20
|
payload: Stored<AssetTypeAttachment>;
|
|
20
21
|
type: string;
|
|
21
22
|
}) => void;
|
|
22
|
-
setAssetTypeAttachments:
|
|
23
|
+
setAssetTypeAttachments: (state: ModelState<Stored<AssetTypeAttachment>>, action: {
|
|
23
24
|
payload: Stored<AssetTypeAttachment>[];
|
|
24
25
|
type: string;
|
|
25
26
|
}) => void;
|
|
26
|
-
updateAssetTypeAttachment:
|
|
27
|
+
updateAssetTypeAttachment: (state: ModelState<Stored<AssetTypeAttachment>>, action: {
|
|
27
28
|
payload: Stored<AssetTypeAttachment>;
|
|
28
29
|
type: string;
|
|
29
30
|
}) => void;
|
|
30
|
-
updateAssetTypeAttachments:
|
|
31
|
+
updateAssetTypeAttachments: (state: ModelState<Stored<AssetTypeAttachment>>, action: {
|
|
31
32
|
payload: Stored<AssetTypeAttachment>[];
|
|
32
33
|
type: string;
|
|
33
34
|
}) => void;
|
|
34
|
-
deleteAssetTypeAttachment:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
deleteAssetTypeAttachments: <TState_8 extends ModelState<Stored<AssetTypeAttachment>>>(state: TState_8, action: {
|
|
39
|
-
payload: string[];
|
|
40
|
-
type: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
}, "assetTypeAttachments">;
|
|
43
|
-
export declare const initializeAssetTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/initializeAssetTypeAttachments">, addAssetTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>, "assetTypeAttachments/addAssetTypeAttachment">, addAssetTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/addAssetTypeAttachments">, setAssetTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>, "assetTypeAttachments/setAssetTypeAttachment">, setAssetTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/setAssetTypeAttachments">, updateAssetTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>, "assetTypeAttachments/updateAssetTypeAttachment">, updateAssetTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/updateAssetTypeAttachments">, deleteAssetTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetTypeAttachments/deleteAssetTypeAttachment">, deleteAssetTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assetTypeAttachments/deleteAssetTypeAttachments">;
|
|
35
|
+
deleteAssetTypeAttachment: (state: ModelState<Stored<AssetTypeAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
36
|
+
deleteAssetTypeAttachments: (state: ModelState<Stored<AssetTypeAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
37
|
+
}, "assetTypeAttachments", "assetTypeAttachments", import('@reduxjs/toolkit').SliceSelectors<ModelState<Stored<AssetTypeAttachment>>>>;
|
|
38
|
+
export declare const initializeAssetTypeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/initializeAssetTypeAttachments">, addAssetTypeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>, "assetTypeAttachments/addAssetTypeAttachment">, addAssetTypeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/addAssetTypeAttachments">, setAssetTypeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>, "assetTypeAttachments/setAssetTypeAttachment">, setAssetTypeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/setAssetTypeAttachments">, updateAssetTypeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>, "assetTypeAttachments/updateAssetTypeAttachment">, updateAssetTypeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypeAttachments/updateAssetTypeAttachments">, deleteAssetTypeAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetTypeAttachments/deleteAssetTypeAttachment">, deleteAssetTypeAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetTypeAttachments/deleteAssetTypeAttachments">;
|
|
44
39
|
export declare const selectAssetTypeAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<AssetTypeAttachment>>;
|
|
45
40
|
export declare const selectAssetTypeAttachments: OvermapSelector<Stored<AssetTypeAttachment>[]>;
|
|
46
41
|
export declare const selectAssetTypeAttachmentById: OvermapSelectorWithArgs<string, Stored<AssetTypeAttachment> | undefined>;
|
|
@@ -1,46 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { AssetType, OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
|
|
4
5
|
export type AssetTypeState = ModelState<Stored<AssetType>>;
|
|
5
|
-
export declare const assetTypeSlice: import(
|
|
6
|
-
initializeAssetTypes:
|
|
6
|
+
export declare const assetTypeSlice: import('@reduxjs/toolkit').Slice<AssetTypeState, {
|
|
7
|
+
initializeAssetTypes: (state: ModelState<Stored<AssetType>>, action: {
|
|
7
8
|
payload: Stored<AssetType>[];
|
|
8
9
|
type: string;
|
|
9
10
|
}) => void;
|
|
10
|
-
setAssetType:
|
|
11
|
+
setAssetType: (state: ModelState<Stored<AssetType>>, action: {
|
|
11
12
|
payload: Stored<AssetType>;
|
|
12
13
|
type: string;
|
|
13
14
|
}) => void;
|
|
14
|
-
setAssetTypes:
|
|
15
|
+
setAssetTypes: (state: ModelState<Stored<AssetType>>, action: {
|
|
15
16
|
payload: Stored<AssetType>[];
|
|
16
17
|
type: string;
|
|
17
18
|
}) => void;
|
|
18
|
-
addAssetType:
|
|
19
|
+
addAssetType: (state: ModelState<Stored<AssetType>>, action: {
|
|
19
20
|
payload: Stored<AssetType>;
|
|
20
21
|
type: string;
|
|
21
22
|
}) => void;
|
|
22
|
-
addAssetTypes:
|
|
23
|
+
addAssetTypes: (state: ModelState<Stored<AssetType>>, action: {
|
|
23
24
|
payload: Stored<AssetType>[];
|
|
24
25
|
type: string;
|
|
25
26
|
}) => void;
|
|
26
|
-
updateAssetType:
|
|
27
|
+
updateAssetType: (state: ModelState<Stored<AssetType>>, action: {
|
|
27
28
|
payload: Stored<AssetType>;
|
|
28
29
|
type: string;
|
|
29
30
|
}) => void;
|
|
30
|
-
updateAssetTypes:
|
|
31
|
+
updateAssetTypes: (state: ModelState<Stored<AssetType>>, action: {
|
|
31
32
|
payload: Stored<AssetType>[];
|
|
32
33
|
type: string;
|
|
33
34
|
}) => void;
|
|
34
|
-
deleteAssetType:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
deleteAssetTypes: <TState_8 extends ModelState<Stored<AssetType>>>(state: TState_8, action: {
|
|
39
|
-
payload: string[];
|
|
40
|
-
type: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
}, "assetTypes">;
|
|
43
|
-
export declare const initializeAssetTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/initializeAssetTypes">, setAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>, "assetTypes/setAssetType">, setAssetTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/setAssetTypes">, addAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>, "assetTypes/addAssetType">, addAssetTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/addAssetTypes">, updateAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>, "assetTypes/updateAssetType">, updateAssetTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/updateAssetTypes">, deleteAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetTypes/deleteAssetType">, deleteAssetTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assetTypes/deleteAssetTypes">;
|
|
35
|
+
deleteAssetType: (state: ModelState<Stored<AssetType>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
36
|
+
deleteAssetTypes: (state: ModelState<Stored<AssetType>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
37
|
+
}, "assetTypes", "assetTypes", import('@reduxjs/toolkit').SliceSelectors<AssetTypeState>>;
|
|
38
|
+
export declare const initializeAssetTypes: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/initializeAssetTypes">, setAssetType: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetType>, "assetTypes/setAssetType">, setAssetTypes: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/setAssetTypes">, addAssetType: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetType>, "assetTypes/addAssetType">, addAssetTypes: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/addAssetTypes">, updateAssetType: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetType>, "assetTypes/updateAssetType">, updateAssetTypes: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/updateAssetTypes">, deleteAssetType: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetTypes/deleteAssetType">, deleteAssetTypes: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetTypes/deleteAssetTypes">;
|
|
44
39
|
export declare const selectAssetTypesMapping: OvermapSelector<Record<string, AssetType>>;
|
|
45
40
|
export declare const selectAssetTypes: OvermapSelector<AssetType[]>;
|
|
46
41
|
export declare const selectAssetTypeById: OvermapSelectorWithArgs<AssetType["offline_id"], Stored<AssetType> | undefined>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PayloadAction, Reducer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { PayloadAction, Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { TokenPair } from '../../sdk/typings';
|
|
3
|
+
import { BaseState } from '../../typings';
|
|
4
|
+
|
|
4
5
|
export interface AuthState {
|
|
5
6
|
accessToken: string;
|
|
6
7
|
refreshToken: string;
|
|
@@ -9,12 +10,12 @@ export interface AuthState {
|
|
|
9
10
|
/**
|
|
10
11
|
* Stores the auth state of the app (tokens, and whether user is logged in or not)
|
|
11
12
|
*/
|
|
12
|
-
export declare const authSlice: import(
|
|
13
|
-
setTokens: (state: import(
|
|
14
|
-
clearTokens: (state: import(
|
|
15
|
-
setLoggedIn: (state: import(
|
|
16
|
-
}, "auth"
|
|
17
|
-
export declare const setTokens: import(
|
|
13
|
+
export declare const authSlice: import('@reduxjs/toolkit').Slice<AuthState, {
|
|
14
|
+
setTokens: (state: import('immer').WritableDraft<AuthState>, action: PayloadAction<TokenPair>) => void;
|
|
15
|
+
clearTokens: (state: import('immer').WritableDraft<AuthState>) => void;
|
|
16
|
+
setLoggedIn: (state: import('immer').WritableDraft<AuthState>, action: PayloadAction<boolean>) => void;
|
|
17
|
+
}, "auth", "auth", import('@reduxjs/toolkit').SliceSelectors<AuthState>>;
|
|
18
|
+
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
19
|
export declare const selectAccessToken: (state: BaseState) => string;
|
|
19
20
|
export declare const selectIsLoggedIn: (state: BaseState) => boolean;
|
|
20
21
|
export declare const authReducer: Reducer<AuthState>;
|
|
@@ -1,31 +1,45 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { Category, OvermapRootState, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
|
|
4
5
|
export type CategoryState = ModelState<Stored<Category>>;
|
|
5
|
-
export declare const categorySlice: import(
|
|
6
|
-
initializeCategories:
|
|
6
|
+
export declare const categorySlice: import('@reduxjs/toolkit').Slice<CategoryState, {
|
|
7
|
+
initializeCategories: (state: ModelState<Stored<Category>>, action: {
|
|
7
8
|
payload: Stored<Category>[];
|
|
8
9
|
type: string;
|
|
9
10
|
}) => void;
|
|
10
|
-
addCategory:
|
|
11
|
+
addCategory: (state: ModelState<Stored<Category>>, action: {
|
|
11
12
|
payload: Stored<Category>;
|
|
12
13
|
type: string;
|
|
13
14
|
}) => void;
|
|
14
|
-
updateCategory:
|
|
15
|
+
updateCategory: (state: ModelState<Stored<Category>>, action: {
|
|
15
16
|
payload: Stored<Category>;
|
|
16
17
|
type: string;
|
|
17
18
|
}) => void;
|
|
18
|
-
deleteCategory:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}) => void;
|
|
22
|
-
}, "categories">;
|
|
23
|
-
export declare const initializeCategories: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Category>[], "categories/initializeCategories">, addCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Category>, "categories/addCategory">, updateCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Category>, "categories/updateCategory">, deleteCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "categories/deleteCategory">;
|
|
19
|
+
deleteCategory: (state: ModelState<Stored<Category>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
20
|
+
}, "categories", "categories", import('@reduxjs/toolkit').SliceSelectors<CategoryState>>;
|
|
21
|
+
export declare const initializeCategories: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Category>[], "categories/initializeCategories">, addCategory: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Category>, "categories/addCategory">, updateCategory: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Category>, "categories/updateCategory">, deleteCategory: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "categories/deleteCategory">;
|
|
24
22
|
export declare const selectCategoryMapping: (state: OvermapRootState) => Record<string, Stored<Category>>;
|
|
25
|
-
export declare const selectCategories: ((state: OvermapRootState) => Stored<Category>[]) &
|
|
26
|
-
clearCache: () => void;
|
|
27
|
-
}> & {
|
|
23
|
+
export declare const selectCategories: ((state: OvermapRootState) => Stored<Category>[]) & {
|
|
28
24
|
clearCache: () => void;
|
|
25
|
+
resultsCount: () => number;
|
|
26
|
+
resetResultsCount: () => void;
|
|
27
|
+
} & {
|
|
28
|
+
resultFunc: (resultFuncArgs_0: Record<string, Stored<Category>>) => Stored<Category>[];
|
|
29
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, Stored<Category>>) => Stored<Category>[]) & {
|
|
30
|
+
clearCache: () => void;
|
|
31
|
+
resultsCount: () => number;
|
|
32
|
+
resetResultsCount: () => void;
|
|
33
|
+
};
|
|
34
|
+
lastResult: () => Stored<Category>[];
|
|
35
|
+
dependencies: [(state: OvermapRootState) => Record<string, Stored<Category>>];
|
|
36
|
+
recomputations: () => number;
|
|
37
|
+
resetRecomputations: () => void;
|
|
38
|
+
dependencyRecomputations: () => number;
|
|
39
|
+
resetDependencyRecomputations: () => void;
|
|
40
|
+
} & {
|
|
41
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
42
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
29
43
|
};
|
|
30
44
|
export declare const selectCategoryById: OvermapSelectorWithArgs<string, Stored<Category> | undefined>;
|
|
31
45
|
export declare const selectCategoriesByIds: (args: string[]) => (state: OvermapRootState) => Stored<Category>[];
|
|
@@ -1,46 +1,41 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { ModelState } from '../typings';
|
|
3
|
+
import { DocumentAttachment, OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
4
|
+
|
|
4
5
|
export type DocumentAttachmentState = ModelState<Stored<DocumentAttachment>>;
|
|
5
|
-
export declare const documentAttachmentSlice: import(
|
|
6
|
-
initializeDocumentAttachments:
|
|
6
|
+
export declare const documentAttachmentSlice: import('@reduxjs/toolkit').Slice<ModelState<Stored<DocumentAttachment>>, {
|
|
7
|
+
initializeDocumentAttachments: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
7
8
|
payload: Stored<DocumentAttachment>[];
|
|
8
9
|
type: string;
|
|
9
10
|
}) => void;
|
|
10
|
-
addDocumentAttachment:
|
|
11
|
+
addDocumentAttachment: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
11
12
|
payload: Stored<DocumentAttachment>;
|
|
12
13
|
type: string;
|
|
13
14
|
}) => void;
|
|
14
|
-
addDocumentAttachments:
|
|
15
|
+
addDocumentAttachments: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
15
16
|
payload: Stored<DocumentAttachment>[];
|
|
16
17
|
type: string;
|
|
17
18
|
}) => void;
|
|
18
|
-
setDocumentAttachment:
|
|
19
|
+
setDocumentAttachment: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
19
20
|
payload: Stored<DocumentAttachment>;
|
|
20
21
|
type: string;
|
|
21
22
|
}) => void;
|
|
22
|
-
setDocumentAttachments:
|
|
23
|
+
setDocumentAttachments: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
23
24
|
payload: Stored<DocumentAttachment>[];
|
|
24
25
|
type: string;
|
|
25
26
|
}) => void;
|
|
26
|
-
updateDocumentAttachment:
|
|
27
|
+
updateDocumentAttachment: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
27
28
|
payload: Stored<DocumentAttachment>;
|
|
28
29
|
type: string;
|
|
29
30
|
}) => void;
|
|
30
|
-
updateDocumentAttachments:
|
|
31
|
+
updateDocumentAttachments: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
31
32
|
payload: Stored<DocumentAttachment>[];
|
|
32
33
|
type: string;
|
|
33
34
|
}) => void;
|
|
34
|
-
deleteDocumentAttachment:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
deleteDocumentAttachments: <TState_8 extends ModelState<Stored<DocumentAttachment>>>(state: TState_8, action: {
|
|
39
|
-
payload: string[];
|
|
40
|
-
type: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
}, "documentAttachments">;
|
|
43
|
-
export declare const initializeDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/initializeDocumentAttachments">, addDocumentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>, "documentAttachments/addDocumentAttachment">, addDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/addDocumentAttachments">, setDocumentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>, "documentAttachments/setDocumentAttachment">, setDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/setDocumentAttachments">, updateDocumentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>, "documentAttachments/updateDocumentAttachment">, updateDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/updateDocumentAttachments">, deleteDocumentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "documentAttachments/deleteDocumentAttachment">, deleteDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "documentAttachments/deleteDocumentAttachments">;
|
|
35
|
+
deleteDocumentAttachment: (state: ModelState<Stored<DocumentAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
36
|
+
deleteDocumentAttachments: (state: ModelState<Stored<DocumentAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
37
|
+
}, "documentAttachments", "documentAttachments", import('@reduxjs/toolkit').SliceSelectors<ModelState<Stored<DocumentAttachment>>>>;
|
|
38
|
+
export declare const initializeDocumentAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/initializeDocumentAttachments">, addDocumentAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>, "documentAttachments/addDocumentAttachment">, addDocumentAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/addDocumentAttachments">, setDocumentAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>, "documentAttachments/setDocumentAttachment">, setDocumentAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/setDocumentAttachments">, updateDocumentAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>, "documentAttachments/updateDocumentAttachment">, updateDocumentAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documentAttachments/updateDocumentAttachments">, deleteDocumentAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "documentAttachments/deleteDocumentAttachment">, deleteDocumentAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "documentAttachments/deleteDocumentAttachments">;
|
|
44
39
|
export declare const selectDocumentAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<DocumentAttachment>>;
|
|
45
40
|
export declare const selectAllDocumentAttachments: OvermapSelector<Stored<DocumentAttachment>[]>;
|
|
46
41
|
export declare const selectDocumentAttachmentById: OvermapSelectorWithArgs<string, Stored<DocumentAttachment> | undefined>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { Document, MovePosition, OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
|
+
|
|
3
4
|
export interface DocumentState {
|
|
4
5
|
documents: Record<string, Stored<Document>>;
|
|
5
6
|
}
|
|
@@ -8,32 +9,48 @@ export interface MoveDocumentPayload {
|
|
|
8
9
|
targetDocumentId: Document["offline_id"] | null;
|
|
9
10
|
position: MovePosition;
|
|
10
11
|
}
|
|
11
|
-
export declare const documentSlice: import(
|
|
12
|
-
setDocuments: (state: import(
|
|
12
|
+
export declare const documentSlice: import('@reduxjs/toolkit').Slice<DocumentState, {
|
|
13
|
+
setDocuments: (state: import('immer').WritableDraft<DocumentState>, action: {
|
|
13
14
|
payload: Stored<Document>[];
|
|
14
15
|
}) => void;
|
|
15
|
-
addDocuments: (state: import(
|
|
16
|
+
addDocuments: (state: import('immer').WritableDraft<DocumentState>, action: {
|
|
16
17
|
payload: Stored<Document>[];
|
|
17
18
|
}) => void;
|
|
18
|
-
updateDocuments: (state: import(
|
|
19
|
+
updateDocuments: (state: import('immer').WritableDraft<DocumentState>, action: {
|
|
19
20
|
payload: Stored<Document>[];
|
|
20
21
|
}) => void;
|
|
21
|
-
moveDocument: (state: import(
|
|
22
|
+
moveDocument: (state: import('immer').WritableDraft<DocumentState>, action: {
|
|
22
23
|
payload: MoveDocumentPayload;
|
|
23
24
|
}) => void;
|
|
24
|
-
removeDocuments: (state: import(
|
|
25
|
+
removeDocuments: (state: import('immer').WritableDraft<DocumentState>, action: {
|
|
25
26
|
payload: string[];
|
|
26
27
|
}) => void;
|
|
27
|
-
}, "documents"
|
|
28
|
-
export declare const setDocuments: import(
|
|
28
|
+
}, "documents", "documents", import('@reduxjs/toolkit').SliceSelectors<DocumentState>>;
|
|
29
|
+
export declare const setDocuments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Document>[], "documents/setDocuments">, addDocuments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Document>[], "documents/addDocuments">, updateDocuments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<Document>[], "documents/updateDocuments">, moveDocument: import('@reduxjs/toolkit').ActionCreatorWithPayload<MoveDocumentPayload, "documents/moveDocument">, removeDocuments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "documents/removeDocuments">;
|
|
29
30
|
export declare const selectDocumentsMapping: OvermapSelector<Record<string, Stored<Document>>>;
|
|
30
31
|
export declare const selectDocuments: OvermapSelector<Stored<Document>[]>;
|
|
31
32
|
export declare const selectDocumentById: OvermapSelectorWithArgs<string, Stored<Document> | undefined>;
|
|
32
33
|
export declare const selectDocumentsByIds: (args: string[]) => (state: OvermapRootState) => Stored<Document>[];
|
|
33
34
|
export declare const selectAncestorIdsOfDocument: (args: string) => (state: OvermapRootState) => string[];
|
|
34
|
-
export declare const selectRootDocuments: ((state: OvermapRootState) => Stored<Document>[]) &
|
|
35
|
-
clearCache: () => void;
|
|
36
|
-
}> & {
|
|
35
|
+
export declare const selectRootDocuments: ((state: OvermapRootState) => Stored<Document>[]) & {
|
|
37
36
|
clearCache: () => void;
|
|
37
|
+
resultsCount: () => number;
|
|
38
|
+
resetResultsCount: () => void;
|
|
39
|
+
} & {
|
|
40
|
+
resultFunc: (resultFuncArgs_0: Stored<Document>[]) => Stored<Document>[];
|
|
41
|
+
memoizedResultFunc: ((resultFuncArgs_0: Stored<Document>[]) => Stored<Document>[]) & {
|
|
42
|
+
clearCache: () => void;
|
|
43
|
+
resultsCount: () => number;
|
|
44
|
+
resetResultsCount: () => void;
|
|
45
|
+
};
|
|
46
|
+
lastResult: () => Stored<Document>[];
|
|
47
|
+
dependencies: [OvermapSelector<Stored<Document>[]>];
|
|
48
|
+
recomputations: () => number;
|
|
49
|
+
resetRecomputations: () => void;
|
|
50
|
+
dependencyRecomputations: () => number;
|
|
51
|
+
resetDependencyRecomputations: () => void;
|
|
52
|
+
} & {
|
|
53
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
54
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
38
55
|
};
|
|
39
56
|
export declare const documentsReducer: Reducer<DocumentState>;
|