@overmap-ai/core 1.0.71-workspace-settings.9 → 1.0.72-mapbox.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/array.d.ts +1 -0
- package/dist/constants/defaults.d.ts +1 -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 +6004 -7259
- package/dist/overmap-core.umd.cjs +12 -7951
- package/dist/sdk/base.d.ts +7 -6
- package/dist/sdk/classes/OutboxCoordinator.d.ts +3 -4
- package/dist/sdk/classes/index.d.ts +1 -1
- package/dist/sdk/errors.d.ts +2 -1
- package/dist/sdk/globals.d.ts +6 -5
- package/dist/sdk/index.d.ts +6 -6
- package/dist/sdk/sdk.d.ts +5 -5
- package/dist/sdk/services/AgentService.d.ts +5 -10
- package/dist/sdk/services/AssetAttachmentService.d.ts +38 -16
- package/dist/sdk/services/AssetService.d.ts +5 -5
- package/dist/sdk/services/AssetStageCompletionService.d.ts +4 -4
- package/dist/sdk/services/AssetStageService.d.ts +5 -7
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +37 -16
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +12 -0
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +20 -0
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +12 -0
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +8 -0
- package/dist/sdk/services/AssetTypeService.d.ts +5 -5
- package/dist/sdk/services/BaseApiService.d.ts +4 -4
- package/dist/sdk/services/BaseAttachmentService.d.ts +21 -23
- package/dist/sdk/services/BaseAuthService.d.ts +4 -4
- package/dist/sdk/services/BaseService.d.ts +6 -5
- package/dist/sdk/services/BaseUploadService.d.ts +5 -4
- package/dist/sdk/services/CategoryService.d.ts +4 -4
- package/dist/sdk/services/DocumentAttachmentService.d.ts +36 -16
- package/dist/sdk/services/DocumentService.d.ts +4 -4
- package/dist/sdk/services/EmailDomainsService.d.ts +3 -3
- package/dist/sdk/services/EmailVerificationService.d.ts +3 -3
- package/dist/sdk/services/FileService.d.ts +4 -4
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +12 -0
- package/dist/sdk/services/FormRevisionService.d.ts +8 -0
- package/dist/sdk/services/FormService.d.ts +14 -16
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +13 -0
- package/dist/sdk/services/FormSubmissionService.d.ts +11 -30
- package/dist/sdk/services/GeoImageService.d.ts +4 -4
- package/dist/sdk/services/IssueAssociationService.d.ts +5 -5
- package/dist/sdk/services/IssueAttachmentService.d.ts +37 -16
- package/dist/sdk/services/IssueCommentService.d.ts +4 -4
- package/dist/sdk/services/IssueService.d.ts +4 -7
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +13 -0
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +10 -0
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +12 -0
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +8 -0
- package/dist/sdk/services/IssueTypeService.d.ts +4 -4
- package/dist/sdk/services/IssueUpdateService.d.ts +3 -3
- package/dist/sdk/services/JWTAuthService.d.ts +6 -6
- package/dist/sdk/services/LicenseService.d.ts +3 -3
- package/dist/sdk/services/OrganizationAccessService.d.ts +3 -3
- package/dist/sdk/services/OrganizationService.d.ts +3 -3
- package/dist/sdk/services/ProjectAccessService.d.ts +3 -3
- package/dist/sdk/services/ProjectAttachmentService.d.ts +37 -16
- package/dist/sdk/services/ProjectFileService.d.ts +4 -4
- package/dist/sdk/services/ProjectService.d.ts +3 -3
- package/dist/sdk/services/TeamService.d.ts +4 -4
- package/dist/sdk/services/UserService.d.ts +3 -3
- package/dist/sdk/services/WorkspaceService.d.ts +4 -4
- package/dist/sdk/services/index.d.ts +45 -34
- package/dist/sdk/typings.d.ts +8 -8
- package/dist/store/adapter.d.ts +11 -11
- package/dist/store/index.d.ts +2 -2
- package/dist/store/migrations.d.ts +1 -1
- package/dist/store/slices/agentsSlice.d.ts +10 -10
- package/dist/store/slices/assetAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/assetSlice.d.ts +34 -24
- package/dist/store/slices/assetStageCompletionSlice.d.ts +32 -23
- package/dist/store/slices/assetStageSlice.d.ts +35 -26
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +63 -0
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +63 -0
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +62 -0
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +63 -0
- package/dist/store/slices/assetTypeSlice.d.ts +15 -21
- package/dist/store/slices/authSlice.d.ts +9 -9
- package/dist/store/slices/categorySlice.d.ts +29 -17
- package/dist/store/slices/documentAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/documentSlice.d.ts +29 -13
- package/dist/store/slices/emailDomainsSlice.d.ts +28 -15
- package/dist/store/slices/fileSlice.d.ts +6 -6
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/formRevisionSlice.d.ts +36 -27
- package/dist/store/slices/formSlice.d.ts +32 -26
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/formSubmissionSlice.d.ts +15 -27
- package/dist/store/slices/geoImageSlice.d.ts +36 -22
- package/dist/store/slices/index.d.ts +46 -38
- package/dist/store/slices/issueAssociationSlice.d.ts +34 -24
- package/dist/store/slices/issueAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/issueCommentSlice.d.ts +12 -18
- package/dist/store/slices/issueSlice.d.ts +12 -24
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +63 -0
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +62 -0
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +62 -0
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +64 -0
- package/dist/store/slices/issueTypeSlice.d.ts +11 -14
- package/dist/store/slices/issueUpdateSlice.d.ts +12 -18
- package/dist/store/slices/licenseSlice.d.ts +9 -9
- package/dist/store/slices/organizationAccessSlice.d.ts +10 -13
- package/dist/store/slices/organizationSlice.d.ts +25 -10
- package/dist/store/slices/outboxSlice.d.ts +14 -15
- package/dist/store/slices/projectAccessSlice.d.ts +10 -17
- package/dist/store/slices/projectAttachmentSlice.d.ts +15 -21
- package/dist/store/slices/projectFileSlice.d.ts +62 -31
- package/dist/store/slices/projectSlice.d.ts +9 -24
- package/dist/store/slices/rehydratedSlice.d.ts +6 -6
- package/dist/store/slices/teamSlice.d.ts +11 -14
- package/dist/store/slices/userSlice.d.ts +13 -13
- package/dist/store/slices/versioningSlice.d.ts +2 -2
- package/dist/store/slices/workspaceSlice.d.ts +30 -17
- package/dist/store/store.d.ts +14 -7
- package/dist/typings/files.d.ts +8 -4
- package/dist/typings/index.d.ts +6 -6
- package/dist/typings/models/access.d.ts +2 -2
- package/dist/typings/models/agents.d.ts +2 -12
- package/dist/typings/models/assets.d.ts +19 -4
- package/dist/typings/models/attachments.d.ts +2 -7
- package/dist/typings/models/base.d.ts +2 -5
- package/dist/typings/models/categories.d.ts +2 -2
- package/dist/typings/models/documents.d.ts +1 -1
- package/dist/typings/models/emailDomain.d.ts +1 -1
- package/dist/typings/models/emailVerification.d.ts +2 -2
- package/dist/typings/models/fields.d.ts +16 -0
- package/dist/typings/models/forms.d.ts +13 -116
- package/dist/typings/models/geo.d.ts +5 -14
- package/dist/typings/models/geoImages.d.ts +3 -3
- package/dist/typings/models/index.d.ts +22 -21
- package/dist/typings/models/issueTypes.d.ts +2 -2
- package/dist/typings/models/issues.d.ts +21 -6
- package/dist/typings/models/license.d.ts +2 -2
- package/dist/typings/models/organizations.d.ts +1 -1
- package/dist/typings/models/projects.d.ts +3 -3
- package/dist/typings/models/store.d.ts +10 -3
- package/dist/typings/models/teams.d.ts +3 -3
- package/dist/typings/models/users.d.ts +1 -1
- package/dist/typings/models/workspace.d.ts +1 -1
- package/dist/typings/search.d.ts +1 -1
- package/dist/typings/store.d.ts +1 -1
- package/dist/utils/async/DeferredPromise.d.ts +1 -1
- package/dist/utils/coordinates.d.ts +4 -18
- package/dist/utils/file.d.ts +2 -2
- package/dist/utils/forms.d.ts +1 -1
- package/dist/utils/index.d.ts +9 -10
- package/dist/utils/offline.d.ts +1 -1
- package/dist/utils/optimization.d.ts +1 -0
- package/dist/utils/utils.d.ts +1 -7
- package/package.json +46 -53
- package/dist/enums/ui.d.ts +0 -36
- package/dist/overmap-core.js.map +0 -1
- package/dist/overmap-core.umd.cjs.map +0 -1
- package/dist/utils/colors.d.ts +0 -14
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { AssetTypeFieldValues, OvermapRootState, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
export type AssetTypeFieldValuesState = ModelState<Stored<AssetTypeFieldValues>>;
|
|
5
|
+
export declare const assetTypeFieldValuesSlice: import('@reduxjs/toolkit').Slice<AssetTypeFieldValuesState, {
|
|
6
|
+
initializeAssetTypeFieldValues: (state: ModelState<Stored<AssetTypeFieldValues>>, action: {
|
|
7
|
+
payload: Stored<AssetTypeFieldValues>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
addAssetTypeFieldValues: (state: ModelState<Stored<AssetTypeFieldValues>>, action: {
|
|
11
|
+
payload: Stored<AssetTypeFieldValues>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addAssetTypeFieldValuesMany: (state: ModelState<Stored<AssetTypeFieldValues>>, action: {
|
|
15
|
+
payload: Stored<AssetTypeFieldValues>[];
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
setAssetTypeFieldValues: (state: ModelState<Stored<AssetTypeFieldValues>>, action: {
|
|
19
|
+
payload: Stored<AssetTypeFieldValues>;
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
setAssetTypeFieldValuesMany: (state: ModelState<Stored<AssetTypeFieldValues>>, action: {
|
|
23
|
+
payload: Stored<AssetTypeFieldValues>[];
|
|
24
|
+
type: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
updateAssetTypeFieldValues: (state: ModelState<Stored<AssetTypeFieldValues>>, action: {
|
|
27
|
+
payload: Stored<AssetTypeFieldValues>;
|
|
28
|
+
type: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
updateAssetTypeFieldValuesMany: (state: ModelState<Stored<AssetTypeFieldValues>>, action: {
|
|
31
|
+
payload: Stored<AssetTypeFieldValues>[];
|
|
32
|
+
type: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
deleteAssetTypeFieldValues: (state: ModelState<Stored<AssetTypeFieldValues>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
35
|
+
deleteAssetTypeFieldValuesMany: (state: ModelState<Stored<AssetTypeFieldValues>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
36
|
+
}, "assetTypeFieldValues", "assetTypeFieldValues", import('@reduxjs/toolkit').SliceSelectors<AssetTypeFieldValuesState>>;
|
|
37
|
+
export declare const initializeAssetTypeFieldValues: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldValues>[], "assetTypeFieldValues/initializeAssetTypeFieldValues">, addAssetTypeFieldValues: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldValues>, "assetTypeFieldValues/addAssetTypeFieldValues">, addAssetTypeFieldValuesMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldValues>[], "assetTypeFieldValues/addAssetTypeFieldValuesMany">, setAssetTypeFieldValues: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldValues>, "assetTypeFieldValues/setAssetTypeFieldValues">, setAssetTypeFieldValuesMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldValues>[], "assetTypeFieldValues/setAssetTypeFieldValuesMany">, updateAssetTypeFieldValues: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldValues>, "assetTypeFieldValues/updateAssetTypeFieldValues">, updateAssetTypeFieldValuesMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldValues>[], "assetTypeFieldValues/updateAssetTypeFieldValuesMany">, deleteAssetTypeFieldValues: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetTypeFieldValues/deleteAssetTypeFieldValues">, deleteAssetTypeFieldValuesMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetTypeFieldValues/deleteAssetTypeFieldValuesMany">;
|
|
38
|
+
export declare const selectAssetTypeFieldValuesMapping: (state: OvermapRootState) => Record<string, Stored<AssetTypeFieldValues>>;
|
|
39
|
+
export declare const selectAssetTypeFieldValues: ((state: OvermapRootState) => Stored<AssetTypeFieldValues>[]) & {
|
|
40
|
+
clearCache: () => void;
|
|
41
|
+
resultsCount: () => number;
|
|
42
|
+
resetResultsCount: () => void;
|
|
43
|
+
} & {
|
|
44
|
+
resultFunc: (resultFuncArgs_0: Record<string, Stored<AssetTypeFieldValues>>) => Stored<AssetTypeFieldValues>[];
|
|
45
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, Stored<AssetTypeFieldValues>>) => Stored<AssetTypeFieldValues>[]) & {
|
|
46
|
+
clearCache: () => void;
|
|
47
|
+
resultsCount: () => number;
|
|
48
|
+
resetResultsCount: () => void;
|
|
49
|
+
};
|
|
50
|
+
lastResult: () => Stored<AssetTypeFieldValues>[];
|
|
51
|
+
dependencies: [(state: OvermapRootState) => Record<string, Stored<AssetTypeFieldValues>>];
|
|
52
|
+
recomputations: () => number;
|
|
53
|
+
resetRecomputations: () => void;
|
|
54
|
+
dependencyRecomputations: () => number;
|
|
55
|
+
resetDependencyRecomputations: () => void;
|
|
56
|
+
} & {
|
|
57
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
58
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
59
|
+
};
|
|
60
|
+
export declare const selectAssetTypeFieldValuesOfAsset: OvermapSelectorWithArgs<string, AssetTypeFieldValues[]>;
|
|
61
|
+
export declare const selectAssetTypeValuesOfAssetType: OvermapSelectorWithArgs<string, Stored<AssetTypeFieldValues>[]>;
|
|
62
|
+
export declare const selectAssetTypeFieldValuesById: OvermapSelectorWithArgs<string, AssetTypeFieldValues | undefined>;
|
|
63
|
+
export declare const assetTypeFieldValuesReducer: Reducer<AssetTypeFieldValuesState>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { AssetTypeFieldsAttachment, OvermapRootState, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
export type AssetTypeFieldsAttachmentState = ModelState<Stored<AssetTypeFieldsAttachment>>;
|
|
5
|
+
export declare const assetTypeFieldsAttachmentSlice: import('@reduxjs/toolkit').Slice<AssetTypeFieldsAttachmentState, {
|
|
6
|
+
initializeAssetTypeFieldsAttachments: (state: ModelState<Stored<AssetTypeFieldsAttachment>>, action: {
|
|
7
|
+
payload: Stored<AssetTypeFieldsAttachment>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
addAssetTypeFieldsAttachment: (state: ModelState<Stored<AssetTypeFieldsAttachment>>, action: {
|
|
11
|
+
payload: Stored<AssetTypeFieldsAttachment>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addAssetTypeFieldsAttachments: (state: ModelState<Stored<AssetTypeFieldsAttachment>>, action: {
|
|
15
|
+
payload: Stored<AssetTypeFieldsAttachment>[];
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
setAssetTypeFieldsAttachment: (state: ModelState<Stored<AssetTypeFieldsAttachment>>, action: {
|
|
19
|
+
payload: Stored<AssetTypeFieldsAttachment>;
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
setAssetTypeFieldsAttachments: (state: ModelState<Stored<AssetTypeFieldsAttachment>>, action: {
|
|
23
|
+
payload: Stored<AssetTypeFieldsAttachment>[];
|
|
24
|
+
type: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
updateAssetTypeFieldsAttachment: (state: ModelState<Stored<AssetTypeFieldsAttachment>>, action: {
|
|
27
|
+
payload: Stored<AssetTypeFieldsAttachment>;
|
|
28
|
+
type: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
updateAssetTypeFieldsAttachments: (state: ModelState<Stored<AssetTypeFieldsAttachment>>, action: {
|
|
31
|
+
payload: Stored<AssetTypeFieldsAttachment>[];
|
|
32
|
+
type: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
deleteAssetTypeFieldsAttachment: (state: ModelState<Stored<AssetTypeFieldsAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
35
|
+
deleteAssetTypeFieldsAttachments: (state: ModelState<Stored<AssetTypeFieldsAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
36
|
+
}, "assetTypeFieldsAttachments", "assetTypeFieldsAttachments", import('@reduxjs/toolkit').SliceSelectors<AssetTypeFieldsAttachmentState>>;
|
|
37
|
+
export declare const initializeAssetTypeFieldsAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldsAttachment>[], "assetTypeFieldsAttachments/initializeAssetTypeFieldsAttachments">, addAssetTypeFieldsAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldsAttachment>, "assetTypeFieldsAttachments/addAssetTypeFieldsAttachment">, addAssetTypeFieldsAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldsAttachment>[], "assetTypeFieldsAttachments/addAssetTypeFieldsAttachments">, setAssetTypeFieldsAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldsAttachment>, "assetTypeFieldsAttachments/setAssetTypeFieldsAttachment">, setAssetTypeFieldsAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldsAttachment>[], "assetTypeFieldsAttachments/setAssetTypeFieldsAttachments">, updateAssetTypeFieldsAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldsAttachment>, "assetTypeFieldsAttachments/updateAssetTypeFieldsAttachment">, updateAssetTypeFieldsAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFieldsAttachment>[], "assetTypeFieldsAttachments/updateAssetTypeFieldsAttachments">, deleteAssetTypeFieldsAttachment: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetTypeFieldsAttachments/deleteAssetTypeFieldsAttachment">, deleteAssetTypeFieldsAttachments: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetTypeFieldsAttachments/deleteAssetTypeFieldsAttachments">;
|
|
38
|
+
export declare const selectAssetTypeFieldsAttachmentsMapping: (state: OvermapRootState) => Record<string, Stored<AssetTypeFieldsAttachment>>;
|
|
39
|
+
export declare const selectAssetTypeFieldsAttachments: ((state: OvermapRootState) => Stored<AssetTypeFieldsAttachment>[]) & {
|
|
40
|
+
clearCache: () => void;
|
|
41
|
+
resultsCount: () => number;
|
|
42
|
+
resetResultsCount: () => void;
|
|
43
|
+
} & {
|
|
44
|
+
resultFunc: (resultFuncArgs_0: Record<string, Stored<AssetTypeFieldsAttachment>>) => Stored<AssetTypeFieldsAttachment>[];
|
|
45
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, Stored<AssetTypeFieldsAttachment>>) => Stored<AssetTypeFieldsAttachment>[]) & {
|
|
46
|
+
clearCache: () => void;
|
|
47
|
+
resultsCount: () => number;
|
|
48
|
+
resetResultsCount: () => void;
|
|
49
|
+
};
|
|
50
|
+
lastResult: () => Stored<AssetTypeFieldsAttachment>[];
|
|
51
|
+
dependencies: [(state: OvermapRootState) => Record<string, Stored<AssetTypeFieldsAttachment>>];
|
|
52
|
+
recomputations: () => number;
|
|
53
|
+
resetRecomputations: () => void;
|
|
54
|
+
dependencyRecomputations: () => number;
|
|
55
|
+
resetDependencyRecomputations: () => void;
|
|
56
|
+
} & {
|
|
57
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
58
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
59
|
+
};
|
|
60
|
+
export declare const selectAttachmentsOfAssetTypeFields: OvermapSelectorWithArgs<string, AssetTypeFieldsAttachment[]>;
|
|
61
|
+
export declare const selectAssetTypeFieldsAttachmentById: OvermapSelectorWithArgs<string, AssetTypeFieldsAttachment | undefined>;
|
|
62
|
+
export declare const assetTypeFieldsAttachmentReducer: Reducer<AssetTypeFieldsAttachmentState>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { AssetTypeFields, OvermapRootState, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
|
+
export type AssetTypeFieldsState = ModelState<Stored<AssetTypeFields>>;
|
|
5
|
+
export declare const assetTypeFieldsSlice: import('@reduxjs/toolkit').Slice<AssetTypeFieldsState, {
|
|
6
|
+
initializeAssetTypeFields: (state: ModelState<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>>, action: {
|
|
7
|
+
payload: Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
addAssetTypeFields: (state: ModelState<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>>, action: {
|
|
11
|
+
payload: Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addAssetTypeFieldsMany: (state: ModelState<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>>, action: {
|
|
15
|
+
payload: Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>[];
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
setAssetTypeFields: (state: ModelState<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>>, action: {
|
|
19
|
+
payload: Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>;
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
setAssetTypeFieldsMany: (state: ModelState<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>>, action: {
|
|
23
|
+
payload: Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>[];
|
|
24
|
+
type: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
updateAssetTypeFields: (state: ModelState<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>>, action: {
|
|
27
|
+
payload: Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>;
|
|
28
|
+
type: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
updateAssetTypeFieldsMany: (state: ModelState<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>>, action: {
|
|
31
|
+
payload: Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>[];
|
|
32
|
+
type: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
deleteAssetTypeFields: (state: ModelState<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
35
|
+
deleteAssetTypeFieldsMany: (state: ModelState<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
36
|
+
}, "assetTypeFields", "assetTypeFields", import('@reduxjs/toolkit').SliceSelectors<AssetTypeFieldsState>>;
|
|
37
|
+
export declare const initializeAssetTypeFields: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>[], "assetTypeFields/initializeAssetTypeFields">, addAssetTypeFields: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>, "assetTypeFields/addAssetTypeFields">, addAssetTypeFieldsMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>[], "assetTypeFields/addAssetTypeFieldsMany">, setAssetTypeFields: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>, "assetTypeFields/setAssetTypeFields">, setAssetTypeFieldsMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>[], "assetTypeFields/setAssetTypeFieldsMany">, updateAssetTypeFields: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>, "assetTypeFields/updateAssetTypeFields">, updateAssetTypeFieldsMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>[], "assetTypeFields/updateAssetTypeFieldsMany">, deleteAssetTypeFields: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "assetTypeFields/deleteAssetTypeFields">, deleteAssetTypeFieldsMany: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "assetTypeFields/deleteAssetTypeFieldsMany">;
|
|
38
|
+
export declare const selectAssetTypeFieldsMapping: (state: OvermapRootState) => Record<string, Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>>;
|
|
39
|
+
export declare const selectAssetTypeFields: ((state: OvermapRootState) => Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>[]) & {
|
|
40
|
+
clearCache: () => void;
|
|
41
|
+
resultsCount: () => number;
|
|
42
|
+
resetResultsCount: () => void;
|
|
43
|
+
} & {
|
|
44
|
+
resultFunc: (resultFuncArgs_0: Record<string, Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>>) => Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>[];
|
|
45
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>>) => Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>[]) & {
|
|
46
|
+
clearCache: () => void;
|
|
47
|
+
resultsCount: () => number;
|
|
48
|
+
resetResultsCount: () => void;
|
|
49
|
+
};
|
|
50
|
+
lastResult: () => Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>[];
|
|
51
|
+
dependencies: [(state: OvermapRootState) => Record<string, Stored<AssetTypeFields<import('@overmap-ai/forms').ISerializedField>>>];
|
|
52
|
+
recomputations: () => number;
|
|
53
|
+
resetRecomputations: () => void;
|
|
54
|
+
dependencyRecomputations: () => number;
|
|
55
|
+
resetDependencyRecomputations: () => void;
|
|
56
|
+
} & {
|
|
57
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
58
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
59
|
+
};
|
|
60
|
+
export declare const selectAssetTypeFieldsOfAssetType: OvermapSelectorWithArgs<string, AssetTypeFields[]>;
|
|
61
|
+
export declare const selectLatestAssetTypeFieldsOfAssetType: OvermapSelectorWithArgs<string, AssetTypeFields | undefined>;
|
|
62
|
+
export declare const selectAssetTypeFieldsById: OvermapSelectorWithArgs<string, AssetTypeFields | undefined>;
|
|
63
|
+
export declare const assetTypeFieldsReducer: Reducer<AssetTypeFieldsState>;
|
|
@@ -1,46 +1,40 @@
|
|
|
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
|
export type AssetTypeState = ModelState<Stored<AssetType>>;
|
|
5
|
-
export declare const assetTypeSlice: import(
|
|
6
|
-
initializeAssetTypes:
|
|
5
|
+
export declare const assetTypeSlice: import('@reduxjs/toolkit').Slice<AssetTypeState, {
|
|
6
|
+
initializeAssetTypes: (state: ModelState<Stored<AssetType>>, action: {
|
|
7
7
|
payload: Stored<AssetType>[];
|
|
8
8
|
type: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
setAssetType:
|
|
10
|
+
setAssetType: (state: ModelState<Stored<AssetType>>, action: {
|
|
11
11
|
payload: Stored<AssetType>;
|
|
12
12
|
type: string;
|
|
13
13
|
}) => void;
|
|
14
|
-
setAssetTypes:
|
|
14
|
+
setAssetTypes: (state: ModelState<Stored<AssetType>>, action: {
|
|
15
15
|
payload: Stored<AssetType>[];
|
|
16
16
|
type: string;
|
|
17
17
|
}) => void;
|
|
18
|
-
addAssetType:
|
|
18
|
+
addAssetType: (state: ModelState<Stored<AssetType>>, action: {
|
|
19
19
|
payload: Stored<AssetType>;
|
|
20
20
|
type: string;
|
|
21
21
|
}) => void;
|
|
22
|
-
addAssetTypes:
|
|
22
|
+
addAssetTypes: (state: ModelState<Stored<AssetType>>, action: {
|
|
23
23
|
payload: Stored<AssetType>[];
|
|
24
24
|
type: string;
|
|
25
25
|
}) => void;
|
|
26
|
-
updateAssetType:
|
|
26
|
+
updateAssetType: (state: ModelState<Stored<AssetType>>, action: {
|
|
27
27
|
payload: Stored<AssetType>;
|
|
28
28
|
type: string;
|
|
29
29
|
}) => void;
|
|
30
|
-
updateAssetTypes:
|
|
30
|
+
updateAssetTypes: (state: ModelState<Stored<AssetType>>, action: {
|
|
31
31
|
payload: Stored<AssetType>[];
|
|
32
32
|
type: string;
|
|
33
33
|
}) => 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">;
|
|
34
|
+
deleteAssetType: (state: ModelState<Stored<AssetType>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
35
|
+
deleteAssetTypes: (state: ModelState<Stored<AssetType>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
36
|
+
}, "assetTypes", "assetTypes", import('@reduxjs/toolkit').SliceSelectors<AssetTypeState>>;
|
|
37
|
+
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
38
|
export declare const selectAssetTypesMapping: OvermapSelector<Record<string, AssetType>>;
|
|
45
39
|
export declare const selectAssetTypes: OvermapSelector<AssetType[]>;
|
|
46
40
|
export declare const selectAssetTypeById: OvermapSelectorWithArgs<AssetType["offline_id"], Stored<AssetType> | undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
export interface AuthState {
|
|
5
5
|
accessToken: string;
|
|
6
6
|
refreshToken: string;
|
|
@@ -9,12 +9,12 @@ export interface AuthState {
|
|
|
9
9
|
/**
|
|
10
10
|
* Stores the auth state of the app (tokens, and whether user is logged in or not)
|
|
11
11
|
*/
|
|
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(
|
|
12
|
+
export declare const authSlice: import('@reduxjs/toolkit').Slice<AuthState, {
|
|
13
|
+
setTokens: (state: import('immer').WritableDraft<AuthState>, action: PayloadAction<TokenPair>) => void;
|
|
14
|
+
clearTokens: (state: import('immer').WritableDraft<AuthState>) => void;
|
|
15
|
+
setLoggedIn: (state: import('immer').WritableDraft<AuthState>, action: PayloadAction<boolean>) => void;
|
|
16
|
+
}, "auth", "auth", import('@reduxjs/toolkit').SliceSelectors<AuthState>>;
|
|
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
18
|
export declare const selectAccessToken: (state: BaseState) => string;
|
|
19
19
|
export declare const selectIsLoggedIn: (state: BaseState) => boolean;
|
|
20
20
|
export declare const authReducer: Reducer<AuthState>;
|
|
@@ -1,34 +1,46 @@
|
|
|
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
|
export type CategoryState = ModelState<Stored<Category>>;
|
|
5
|
-
export declare const categorySlice: import(
|
|
6
|
-
initializeCategories:
|
|
5
|
+
export declare const categorySlice: import('@reduxjs/toolkit').Slice<CategoryState, {
|
|
6
|
+
initializeCategories: (state: ModelState<Stored<Category>>, action: {
|
|
7
7
|
payload: Stored<Category>[];
|
|
8
8
|
type: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
addCategory:
|
|
10
|
+
addCategory: (state: ModelState<Stored<Category>>, action: {
|
|
11
11
|
payload: Stored<Category>;
|
|
12
12
|
type: string;
|
|
13
13
|
}) => void;
|
|
14
|
-
updateCategory:
|
|
14
|
+
updateCategory: (state: ModelState<Stored<Category>>, action: {
|
|
15
15
|
payload: Stored<Category>;
|
|
16
16
|
type: string;
|
|
17
17
|
}) => 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">;
|
|
18
|
+
deleteCategory: (state: ModelState<Stored<Category>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
19
|
+
}, "categories", "categories", import('@reduxjs/toolkit').SliceSelectors<CategoryState>>;
|
|
20
|
+
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
21
|
export declare const selectCategoryMapping: (state: OvermapRootState) => Record<string, Stored<Category>>;
|
|
25
|
-
export declare const selectCategories: ((state: OvermapRootState) => Stored<Category>[]) &
|
|
26
|
-
clearCache: () => void;
|
|
27
|
-
}> & {
|
|
22
|
+
export declare const selectCategories: ((state: OvermapRootState) => Stored<Category>[]) & {
|
|
28
23
|
clearCache: () => void;
|
|
24
|
+
resultsCount: () => number;
|
|
25
|
+
resetResultsCount: () => void;
|
|
26
|
+
} & {
|
|
27
|
+
resultFunc: (resultFuncArgs_0: Record<string, Stored<Category>>) => Stored<Category>[];
|
|
28
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, Stored<Category>>) => Stored<Category>[]) & {
|
|
29
|
+
clearCache: () => void;
|
|
30
|
+
resultsCount: () => number;
|
|
31
|
+
resetResultsCount: () => void;
|
|
32
|
+
};
|
|
33
|
+
lastResult: () => Stored<Category>[];
|
|
34
|
+
dependencies: [(state: OvermapRootState) => Record<string, Stored<Category>>];
|
|
35
|
+
recomputations: () => number;
|
|
36
|
+
resetRecomputations: () => void;
|
|
37
|
+
dependencyRecomputations: () => number;
|
|
38
|
+
resetDependencyRecomputations: () => void;
|
|
39
|
+
} & {
|
|
40
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
41
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
29
42
|
};
|
|
30
43
|
export declare const selectCategoryById: OvermapSelectorWithArgs<string, Stored<Category> | undefined>;
|
|
31
44
|
export declare const selectCategoriesByIds: (args: string[]) => (state: OvermapRootState) => Stored<Category>[];
|
|
32
|
-
export declare const selectCategoriesOfWorkspace: OvermapSelectorWithArgs<string, Category[]>;
|
|
33
45
|
export declare const selectIssueCountOfCategory: OvermapSelectorWithArgs<string | null, number>;
|
|
34
46
|
export declare const categoryReducer: Reducer<CategoryState>;
|
|
@@ -1,46 +1,40 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { DocumentAttachment, OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
4
|
export type DocumentAttachmentState = ModelState<Stored<DocumentAttachment>>;
|
|
5
|
-
export declare const documentAttachmentSlice: import(
|
|
6
|
-
initializeDocumentAttachments:
|
|
5
|
+
export declare const documentAttachmentSlice: import('@reduxjs/toolkit').Slice<ModelState<Stored<DocumentAttachment>>, {
|
|
6
|
+
initializeDocumentAttachments: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
7
7
|
payload: Stored<DocumentAttachment>[];
|
|
8
8
|
type: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
addDocumentAttachment:
|
|
10
|
+
addDocumentAttachment: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
11
11
|
payload: Stored<DocumentAttachment>;
|
|
12
12
|
type: string;
|
|
13
13
|
}) => void;
|
|
14
|
-
addDocumentAttachments:
|
|
14
|
+
addDocumentAttachments: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
15
15
|
payload: Stored<DocumentAttachment>[];
|
|
16
16
|
type: string;
|
|
17
17
|
}) => void;
|
|
18
|
-
setDocumentAttachment:
|
|
18
|
+
setDocumentAttachment: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
19
19
|
payload: Stored<DocumentAttachment>;
|
|
20
20
|
type: string;
|
|
21
21
|
}) => void;
|
|
22
|
-
setDocumentAttachments:
|
|
22
|
+
setDocumentAttachments: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
23
23
|
payload: Stored<DocumentAttachment>[];
|
|
24
24
|
type: string;
|
|
25
25
|
}) => void;
|
|
26
|
-
updateDocumentAttachment:
|
|
26
|
+
updateDocumentAttachment: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
27
27
|
payload: Stored<DocumentAttachment>;
|
|
28
28
|
type: string;
|
|
29
29
|
}) => void;
|
|
30
|
-
updateDocumentAttachments:
|
|
30
|
+
updateDocumentAttachments: (state: ModelState<Stored<DocumentAttachment>>, action: {
|
|
31
31
|
payload: Stored<DocumentAttachment>[];
|
|
32
32
|
type: string;
|
|
33
33
|
}) => 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">;
|
|
34
|
+
deleteDocumentAttachment: (state: ModelState<Stored<DocumentAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
35
|
+
deleteDocumentAttachments: (state: ModelState<Stored<DocumentAttachment>>, action: import('@reduxjs/toolkit').PayloadAction<string[]>) => void;
|
|
36
|
+
}, "documentAttachments", "documentAttachments", import('@reduxjs/toolkit').SliceSelectors<ModelState<Stored<DocumentAttachment>>>>;
|
|
37
|
+
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
38
|
export declare const selectDocumentAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<DocumentAttachment>>;
|
|
45
39
|
export declare const selectAllDocumentAttachments: OvermapSelector<Stored<DocumentAttachment>[]>;
|
|
46
40
|
export declare const selectDocumentAttachmentById: OvermapSelectorWithArgs<string, Stored<DocumentAttachment> | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Reducer } from
|
|
2
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { Document, MovePosition, OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored } from '../../typings';
|
|
3
3
|
export interface DocumentState {
|
|
4
4
|
documents: Record<string, Stored<Document>>;
|
|
5
5
|
}
|
|
@@ -8,32 +8,48 @@ export interface MoveDocumentPayload {
|
|
|
8
8
|
targetDocumentId: Document["offline_id"] | null;
|
|
9
9
|
position: MovePosition;
|
|
10
10
|
}
|
|
11
|
-
export declare const documentSlice: import(
|
|
12
|
-
setDocuments: (state: import(
|
|
11
|
+
export declare const documentSlice: import('@reduxjs/toolkit').Slice<DocumentState, {
|
|
12
|
+
setDocuments: (state: import('immer').WritableDraft<DocumentState>, action: {
|
|
13
13
|
payload: Stored<Document>[];
|
|
14
14
|
}) => void;
|
|
15
|
-
addDocuments: (state: import(
|
|
15
|
+
addDocuments: (state: import('immer').WritableDraft<DocumentState>, action: {
|
|
16
16
|
payload: Stored<Document>[];
|
|
17
17
|
}) => void;
|
|
18
|
-
updateDocuments: (state: import(
|
|
18
|
+
updateDocuments: (state: import('immer').WritableDraft<DocumentState>, action: {
|
|
19
19
|
payload: Stored<Document>[];
|
|
20
20
|
}) => void;
|
|
21
|
-
moveDocument: (state: import(
|
|
21
|
+
moveDocument: (state: import('immer').WritableDraft<DocumentState>, action: {
|
|
22
22
|
payload: MoveDocumentPayload;
|
|
23
23
|
}) => void;
|
|
24
|
-
removeDocuments: (state: import(
|
|
24
|
+
removeDocuments: (state: import('immer').WritableDraft<DocumentState>, action: {
|
|
25
25
|
payload: string[];
|
|
26
26
|
}) => void;
|
|
27
|
-
}, "documents"
|
|
28
|
-
export declare const setDocuments: import(
|
|
27
|
+
}, "documents", "documents", import('@reduxjs/toolkit').SliceSelectors<DocumentState>>;
|
|
28
|
+
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
29
|
export declare const selectDocumentsMapping: OvermapSelector<Record<string, Stored<Document>>>;
|
|
30
30
|
export declare const selectDocuments: OvermapSelector<Stored<Document>[]>;
|
|
31
31
|
export declare const selectDocumentById: OvermapSelectorWithArgs<string, Stored<Document> | undefined>;
|
|
32
32
|
export declare const selectDocumentsByIds: (args: string[]) => (state: OvermapRootState) => Stored<Document>[];
|
|
33
33
|
export declare const selectAncestorIdsOfDocument: (args: string) => (state: OvermapRootState) => string[];
|
|
34
|
-
export declare const selectRootDocuments: ((state: OvermapRootState) => Stored<Document>[]) &
|
|
35
|
-
clearCache: () => void;
|
|
36
|
-
}> & {
|
|
34
|
+
export declare const selectRootDocuments: ((state: OvermapRootState) => Stored<Document>[]) & {
|
|
37
35
|
clearCache: () => void;
|
|
36
|
+
resultsCount: () => number;
|
|
37
|
+
resetResultsCount: () => void;
|
|
38
|
+
} & {
|
|
39
|
+
resultFunc: (resultFuncArgs_0: Stored<Document>[]) => Stored<Document>[];
|
|
40
|
+
memoizedResultFunc: ((resultFuncArgs_0: Stored<Document>[]) => Stored<Document>[]) & {
|
|
41
|
+
clearCache: () => void;
|
|
42
|
+
resultsCount: () => number;
|
|
43
|
+
resetResultsCount: () => void;
|
|
44
|
+
};
|
|
45
|
+
lastResult: () => Stored<Document>[];
|
|
46
|
+
dependencies: [OvermapSelector<Stored<Document>[]>];
|
|
47
|
+
recomputations: () => number;
|
|
48
|
+
resetRecomputations: () => void;
|
|
49
|
+
dependencyRecomputations: () => number;
|
|
50
|
+
resetDependencyRecomputations: () => void;
|
|
51
|
+
} & {
|
|
52
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
53
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
38
54
|
};
|
|
39
55
|
export declare const documentsReducer: Reducer<DocumentState>;
|
|
@@ -1,27 +1,40 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { EmailDomain, OvermapRootState, OvermapSelector } from '../../typings';
|
|
3
|
+
import { ModelState } from '../typings';
|
|
4
4
|
export type EmailDomainState = ModelState<EmailDomain>;
|
|
5
|
-
export declare const emailDomainsSlice: import(
|
|
6
|
-
initializeEmailDomains:
|
|
5
|
+
export declare const emailDomainsSlice: import('@reduxjs/toolkit').Slice<ModelState<EmailDomain>, {
|
|
6
|
+
initializeEmailDomains: (state: ModelState<EmailDomain>, action: {
|
|
7
7
|
payload: EmailDomain[];
|
|
8
8
|
type: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
addEmailDomain:
|
|
10
|
+
addEmailDomain: (state: ModelState<EmailDomain>, action: {
|
|
11
11
|
payload: EmailDomain;
|
|
12
12
|
type: string;
|
|
13
13
|
}) => void;
|
|
14
|
-
deleteEmailDomain:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}) => void;
|
|
18
|
-
}, "emailDomains">;
|
|
19
|
-
export declare const initializeEmailDomains: import("@reduxjs/toolkit").ActionCreatorWithPayload<EmailDomain[], "emailDomains/initializeEmailDomains">, addEmailDomain: import("@reduxjs/toolkit").ActionCreatorWithPayload<EmailDomain, "emailDomains/addEmailDomain">, deleteEmailDomain: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "emailDomains/deleteEmailDomain">;
|
|
14
|
+
deleteEmailDomain: (state: ModelState<EmailDomain>, action: import('@reduxjs/toolkit').PayloadAction<string>) => void;
|
|
15
|
+
}, "emailDomains", "emailDomains", import('@reduxjs/toolkit').SliceSelectors<ModelState<EmailDomain>>>;
|
|
16
|
+
export declare const initializeEmailDomains: import('@reduxjs/toolkit').ActionCreatorWithPayload<EmailDomain[], "emailDomains/initializeEmailDomains">, addEmailDomain: import('@reduxjs/toolkit').ActionCreatorWithPayload<EmailDomain, "emailDomains/addEmailDomain">, deleteEmailDomain: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "emailDomains/deleteEmailDomain">;
|
|
20
17
|
export declare const selectEmailDomainsAsMapping: OvermapSelector<Record<number, EmailDomain>>;
|
|
21
|
-
export declare const selectEmailDomains: ((state: OvermapRootState) => EmailDomain[]) &
|
|
22
|
-
clearCache: () => void;
|
|
23
|
-
}> & {
|
|
18
|
+
export declare const selectEmailDomains: ((state: OvermapRootState) => EmailDomain[]) & {
|
|
24
19
|
clearCache: () => void;
|
|
20
|
+
resultsCount: () => number;
|
|
21
|
+
resetResultsCount: () => void;
|
|
22
|
+
} & {
|
|
23
|
+
resultFunc: (resultFuncArgs_0: Record<number, EmailDomain>) => EmailDomain[];
|
|
24
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<number, EmailDomain>) => EmailDomain[]) & {
|
|
25
|
+
clearCache: () => void;
|
|
26
|
+
resultsCount: () => number;
|
|
27
|
+
resetResultsCount: () => void;
|
|
28
|
+
};
|
|
29
|
+
lastResult: () => EmailDomain[];
|
|
30
|
+
dependencies: [OvermapSelector<Record<number, EmailDomain>>];
|
|
31
|
+
recomputations: () => number;
|
|
32
|
+
resetRecomputations: () => void;
|
|
33
|
+
dependencyRecomputations: () => number;
|
|
34
|
+
resetDependencyRecomputations: () => void;
|
|
35
|
+
} & {
|
|
36
|
+
argsMemoize: typeof import('reselect').weakMapMemoize;
|
|
37
|
+
memoize: typeof import('reselect').weakMapMemoize;
|
|
25
38
|
};
|
|
26
39
|
export declare const selectEmailDomainsOfOrganization: (args: number) => (state: OvermapRootState) => EmailDomain[];
|
|
27
40
|
export declare const emailDomainsReducer: Reducer<EmailDomainState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PayloadAction, Reducer } from
|
|
2
|
-
import
|
|
1
|
+
import { PayloadAction, Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { BaseState, SelectorWithArgs } from 'typings';
|
|
3
3
|
interface S3UploadUrl {
|
|
4
4
|
url: string;
|
|
5
5
|
fields: Record<string, string>;
|
|
@@ -17,10 +17,10 @@ interface S3UrlPayload {
|
|
|
17
17
|
/**
|
|
18
18
|
* Stores the auth state of the app (tokens, and whether user is logged in or not)
|
|
19
19
|
*/
|
|
20
|
-
export declare const fileSlice: import(
|
|
21
|
-
setUploadUrl: (state: import(
|
|
22
|
-
}, "file"
|
|
23
|
-
export declare const setUploadUrl: import(
|
|
20
|
+
export declare const fileSlice: import('@reduxjs/toolkit').Slice<FileState, {
|
|
21
|
+
setUploadUrl: (state: import('immer').WritableDraft<FileState>, action: PayloadAction<S3UrlPayload>) => void;
|
|
22
|
+
}, "file", "file", import('@reduxjs/toolkit').SliceSelectors<FileState>>;
|
|
23
|
+
export declare const setUploadUrl: import('@reduxjs/toolkit').ActionCreatorWithPayload<S3UrlPayload, "file/setUploadUrl">;
|
|
24
24
|
export declare const selectUploadUrl: SelectorWithArgs<BaseState, string, S3UploadUrl | undefined>;
|
|
25
25
|
export declare const fileReducer: Reducer<FileState>;
|
|
26
26
|
export {};
|