@overmap-ai/core 1.0.59 → 1.0.60-export-overmap-reducer.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/contexts/overmap.d.ts +2 -2
- package/dist/contexts/sdk/globals.d.ts +3 -3
- package/dist/contexts/sdk/sdk.d.ts +4 -4
- package/dist/enums/index.d.ts +0 -1
- package/dist/forms/fields/BaseField/layouts.d.ts +3 -2
- package/dist/forms/fields/typings.d.ts +3 -3
- package/dist/forms/index.d.ts +1 -0
- package/dist/forms/provider.d.ts +5 -0
- package/dist/forms/renderer/index.d.ts +0 -1
- package/dist/overmap-core.js +5494 -3106
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +5571 -3184
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +4 -4
- package/dist/sdk/services/AssetAttachmentService.d.ts +9 -3
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +9 -3
- package/dist/sdk/services/BaseAttachmentService.d.ts +11 -15
- package/dist/sdk/services/CategoryService.d.ts +1 -20
- package/dist/sdk/services/DocumentAttachmentService.d.ts +9 -3
- package/dist/sdk/services/EmailDomainsService.d.ts +0 -1
- package/dist/sdk/services/IssueAttachmentService.d.ts +9 -3
- package/dist/sdk/services/IssueService.d.ts +1 -2
- package/dist/sdk/services/ProjectAttachmentService.d.ts +9 -3
- package/dist/store/adapter.d.ts +15 -0
- package/dist/store/index.d.ts +0 -1
- package/dist/store/slices/agentsSlice.d.ts +24 -13
- package/dist/store/slices/assetAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/assetSlice.d.ts +11 -52
- package/dist/store/slices/assetStageCompletionSlice.d.ts +2 -2
- package/dist/store/slices/assetStageSlice.d.ts +32 -24
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/assetTypeSlice.d.ts +11 -49
- package/dist/store/slices/authSlice.d.ts +3 -3
- package/dist/store/slices/categorySlice.d.ts +19 -60
- package/dist/store/slices/documentAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/documentSlice.d.ts +5 -79
- package/dist/store/slices/emailDomainsSlice.d.ts +14 -11
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +46 -0
- package/dist/store/slices/formRevisionSlice.d.ts +32 -56
- package/dist/store/slices/formSlice.d.ts +27 -22
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +46 -0
- package/dist/store/slices/formSubmissionSlice.d.ts +29 -29
- package/dist/store/slices/index.d.ts +9 -1
- package/dist/store/slices/issueAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/issueCommentSlice.d.ts +34 -0
- package/dist/store/slices/issueSlice.d.ts +25 -131
- package/dist/store/slices/issueTypeSlice.d.ts +25 -11
- package/dist/store/slices/issueUpdateSlice.d.ts +34 -0
- package/dist/store/slices/licenseSlice.d.ts +9 -7
- package/dist/store/slices/organizationAccessSlice.d.ts +14 -12
- package/dist/store/slices/outboxSlice.d.ts +3 -3
- package/dist/store/slices/projectAccessSlice.d.ts +16 -12
- package/dist/store/slices/projectAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/projectFileSlice.d.ts +4 -37
- package/dist/store/slices/projectSlice.d.ts +5 -46
- package/dist/store/slices/rehydratedSlice.d.ts +3 -2
- package/dist/store/slices/settingsSlice.d.ts +3 -24
- package/dist/store/slices/teamSlice.d.ts +24 -10
- package/dist/store/slices/userSlice.d.ts +4 -4
- package/dist/store/slices/workspaceSlice.d.ts +22 -52
- package/dist/store/store.d.ts +15 -70
- package/dist/store/typings.d.ts +3 -0
- package/dist/style.css +0 -7
- package/dist/typings/models/store.d.ts +41 -4
- package/dist/typings/store.d.ts +4 -4
- package/dist/utils/utils.d.ts +3 -3
- package/package.json +5 -3
- package/dist/enums/map.d.ts +0 -6
- package/dist/forms/renderer/FormSubmissionBrowser/FormSubmissionBrowser.d.ts +0 -28
- package/dist/store/hooks.d.ts +0 -4
- package/dist/store/slices/mapSlice.d.ts +0 -23
- package/dist/store/slices/utils.d.ts +0 -14
|
@@ -1,57 +1,27 @@
|
|
|
1
1
|
import type { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import type { AssetType,
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { AssetType, Selector, SelectorWithArgs, Stored } from "../../typings";
|
|
3
|
+
import { ModelState } from "../typings";
|
|
4
|
+
export interface AssetTypeState extends ModelState<Stored<AssetType>> {
|
|
5
5
|
hiddenAssetTypeIds: Record<string, boolean>;
|
|
6
|
-
attachments: Record<string, AssetTypeAttachment>;
|
|
7
6
|
}
|
|
8
7
|
export declare const assetTypeSlice: import("@reduxjs/toolkit").Slice<AssetTypeState, {
|
|
9
|
-
|
|
10
|
-
payload: AssetType;
|
|
11
|
-
}) => void;
|
|
12
|
-
setAssetTypes: (state: import("immer/dist/internal.js").WritableDraft<AssetTypeState>, action: {
|
|
13
|
-
payload: AssetType[];
|
|
14
|
-
}) => void;
|
|
15
|
-
toggleAssetTypeVisibility: (state: import("immer/dist/internal.js").WritableDraft<AssetTypeState>, action: {
|
|
16
|
-
payload: string;
|
|
17
|
-
}) => void;
|
|
18
|
-
deleteAssetType: (state: import("immer/dist/internal.js").WritableDraft<AssetTypeState>, action: {
|
|
19
|
-
payload: string;
|
|
20
|
-
}) => void;
|
|
21
|
-
setAssetTypeAttachment: (state: AssetTypeState, action: {
|
|
22
|
-
payload: Stored<AssetTypeAttachment>;
|
|
23
|
-
type: string;
|
|
24
|
-
}) => void;
|
|
25
|
-
setAssetTypeAttachments: (state: AssetTypeState, action: {
|
|
26
|
-
payload: Stored<AssetTypeAttachment>[];
|
|
8
|
+
initializeAssetTypes: <TState extends ModelState<Stored<AssetType>>>(state: TState, action: {
|
|
9
|
+
payload: Stored<AssetType>[];
|
|
27
10
|
type: string;
|
|
28
11
|
}) => void;
|
|
29
|
-
|
|
30
|
-
payload:
|
|
12
|
+
addAssetType: <TState_1 extends ModelState<Stored<AssetType>>>(state: TState_1, action: {
|
|
13
|
+
payload: Stored<AssetType>;
|
|
31
14
|
type: string;
|
|
32
15
|
}) => void;
|
|
33
|
-
|
|
34
|
-
payload: import('../../typings/models/issues').Submitted<AssetTypeAttachment>[];
|
|
35
|
-
type: string;
|
|
36
|
-
}) => void;
|
|
37
|
-
updateAssetTypeAttachment: (state: AssetTypeState, action: {
|
|
38
|
-
payload: import('../../typings/models/issues').Submitted<AssetTypeAttachment>;
|
|
39
|
-
type: string;
|
|
40
|
-
}) => void;
|
|
41
|
-
updateAssetTypeAttachments: (state: AssetTypeState, action: {
|
|
42
|
-
payload: import('../../typings/models/issues').Submitted<AssetTypeAttachment>[];
|
|
43
|
-
type: string;
|
|
44
|
-
}) => void;
|
|
45
|
-
removeAssetTypeAttachment: (state: AssetTypeState, action: {
|
|
16
|
+
deleteAssetType: <TState_2 extends ModelState<Stored<AssetType>>>(state: TState_2, action: {
|
|
46
17
|
payload: string;
|
|
47
18
|
type: string;
|
|
48
19
|
}) => void;
|
|
49
|
-
|
|
50
|
-
payload: string
|
|
51
|
-
type: string;
|
|
20
|
+
toggleAssetTypeVisibility: (state: import("immer/dist/internal.js").WritableDraft<AssetTypeState>, action: {
|
|
21
|
+
payload: string;
|
|
52
22
|
}) => void;
|
|
53
23
|
}, "assetTypes">;
|
|
54
|
-
export declare const addAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
24
|
+
export declare const addAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>, "assetTypes/addAssetType">, initializeAssetTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetType>[], "assetTypes/initializeAssetTypes">, deleteAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetTypes/deleteAssetType">, toggleAssetTypeVisibility: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetTypes/toggleAssetTypeVisibility">;
|
|
55
25
|
export declare const selectAssetTypesMapping: Selector<Record<string, AssetType>>;
|
|
56
26
|
export declare const selectAssetTypes: Selector<AssetType[]>;
|
|
57
27
|
export declare const selectAssetType: SelectorWithArgs<string, AssetType>;
|
|
@@ -62,13 +32,5 @@ interface selectNumberOfAssetTypesMatchingCaseInsensitiveNameProps {
|
|
|
62
32
|
export declare const selectNumberOfAssetTypesMatchingCaseInsensitiveName: SelectorWithArgs<selectNumberOfAssetTypesMatchingCaseInsensitiveNameProps, number>;
|
|
63
33
|
export declare const selectAssetTypesByName: SelectorWithArgs<string, AssetType[]>;
|
|
64
34
|
export declare const selectHiddenAssetTypeIds: Selector<Record<string, boolean | undefined>>;
|
|
65
|
-
export declare const selectAssetTypeAttachmentMapping: (state: RootState) => Record<string, AssetTypeAttachment>;
|
|
66
|
-
export declare const selectAssetTypeAttachments: Selector<Stored<AssetTypeAttachment>[]>;
|
|
67
|
-
export declare const selectAssetTypeAttachment: SelectorWithArgs<string, Stored<AssetTypeAttachment>>;
|
|
68
|
-
export declare const selectAttachmentsOfAssetType: (args: string) => (state: RootState) => Stored<AssetTypeAttachment>[];
|
|
69
|
-
export declare const selectAttachmentsOfAssetTypeByType: (args: string) => (state: RootState) => {
|
|
70
|
-
fileAttachments: Stored<AssetTypeAttachment>[];
|
|
71
|
-
imageAttachments: Stored<AssetTypeAttachment>[];
|
|
72
|
-
};
|
|
73
35
|
export declare const assetTypeReducer: Reducer<AssetTypeState>;
|
|
74
36
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
2
|
import { TokenPair } from '../../sdk/typings';
|
|
3
|
-
import {
|
|
3
|
+
import { OvermapRootState } from "../../typings";
|
|
4
4
|
export interface AuthState {
|
|
5
5
|
accessToken: string;
|
|
6
6
|
refreshToken: string;
|
|
@@ -15,6 +15,6 @@ export declare const authSlice: import("@reduxjs/toolkit").Slice<AuthState, {
|
|
|
15
15
|
setLoggedIn: (state: import("immer/dist/internal.js").WritableDraft<AuthState>, action: PayloadAction<boolean>) => void;
|
|
16
16
|
}, "auth">;
|
|
17
17
|
export declare const setTokens: import("@reduxjs/toolkit").ActionCreatorWithPayload<TokenPair, "auth/setTokens">, clearTokens: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/clearTokens">, setLoggedIn: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "auth/setLoggedIn">;
|
|
18
|
-
export declare const selectAccessToken: (state:
|
|
19
|
-
export declare const selectIsLoggedIn: (state:
|
|
18
|
+
export declare const selectAccessToken: (state: OvermapRootState) => string;
|
|
19
|
+
export declare const selectIsLoggedIn: (state: OvermapRootState) => boolean;
|
|
20
20
|
export declare const authReducer: Reducer<AuthState>;
|
|
@@ -1,32 +1,27 @@
|
|
|
1
|
-
/// <reference types="@redux-offline/redux-offline" />
|
|
2
1
|
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
3
|
-
import { Category,
|
|
2
|
+
import { Category, OvermapRootState, SelectorWithArgs, Stored } from "../../typings";
|
|
3
|
+
import { ModelState } from "../typings";
|
|
4
4
|
interface CategoryVisibility {
|
|
5
5
|
hiddenCategoryIds: string[];
|
|
6
6
|
isNullCategoryHidden: boolean;
|
|
7
7
|
}
|
|
8
|
-
export interface CategoryState {
|
|
9
|
-
categories: Record<string, Category>;
|
|
10
|
-
usedCategoryColors: CSSColor[];
|
|
8
|
+
export interface CategoryState extends ModelState<Stored<Category>> {
|
|
11
9
|
categoryVisibility: CategoryVisibility;
|
|
12
10
|
}
|
|
13
11
|
export declare const categorySlice: import("@reduxjs/toolkit").Slice<CategoryState, {
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
initializeCategories: (state: import("immer/dist/internal.js").WritableDraft<CategoryState>, action: PayloadAction<Stored<Category>[]>) => void;
|
|
13
|
+
addCategory: <TState extends ModelState<Stored<Category>>>(state: TState, action: {
|
|
14
|
+
payload: Stored<Category>;
|
|
15
|
+
type: string;
|
|
16
16
|
}) => void;
|
|
17
|
-
|
|
18
|
-
payload: Category
|
|
17
|
+
updateCategory: <TState_1 extends ModelState<Stored<Category>>>(state: TState_1, action: {
|
|
18
|
+
payload: Stored<Category>;
|
|
19
|
+
type: string;
|
|
19
20
|
}) => void;
|
|
20
|
-
|
|
21
|
-
payload:
|
|
22
|
-
|
|
23
|
-
patchCategory: (state: import("immer/dist/internal.js").WritableDraft<CategoryState>, action: {
|
|
24
|
-
payload: Offline<Partial<Category>>;
|
|
25
|
-
}) => void;
|
|
26
|
-
replaceCategory: (state: import("immer/dist/internal.js").WritableDraft<CategoryState>, action: {
|
|
27
|
-
payload: Category;
|
|
21
|
+
deleteCategory: <TState_2 extends ModelState<Stored<Category>>>(state: TState_2, action: {
|
|
22
|
+
payload: string;
|
|
23
|
+
type: string;
|
|
28
24
|
}) => void;
|
|
29
|
-
removeCategory: (state: import("immer/dist/internal.js").WritableDraft<CategoryState>, action: PayloadAction<string>) => void;
|
|
30
25
|
hideCategory: (state: import("immer/dist/internal.js").WritableDraft<CategoryState>, action: {
|
|
31
26
|
payload: string | null;
|
|
32
27
|
}) => void;
|
|
@@ -35,54 +30,18 @@ export declare const categorySlice: import("@reduxjs/toolkit").Slice<CategorySta
|
|
|
35
30
|
payload: string | null;
|
|
36
31
|
}) => void;
|
|
37
32
|
unhideAllCategories: (state: import("immer/dist/internal.js").WritableDraft<CategoryState>) => void;
|
|
38
|
-
removeColor: (state: import("immer/dist/internal.js").WritableDraft<CategoryState>, action: {
|
|
39
|
-
payload: string;
|
|
40
|
-
}) => void;
|
|
41
33
|
}, "categories">;
|
|
42
|
-
export declare const
|
|
43
|
-
export declare const selectCategoryMapping: (state:
|
|
44
|
-
export declare const selectCategories: ((state: import("
|
|
45
|
-
versioning: import('../slices/versioningSlice').VersioningState;
|
|
46
|
-
fileReducer: import('..').FileState;
|
|
47
|
-
authReducer: import('..').AuthState;
|
|
48
|
-
categoryReducer: CategoryState;
|
|
49
|
-
assetReducer: import('..').AssetState;
|
|
50
|
-
assetStageCompletionReducer: import('..').AssetStageCompletionState;
|
|
51
|
-
assetStageReducer: import('..').AssetStageState;
|
|
52
|
-
assetTypeReducer: import('..').AssetTypeState;
|
|
53
|
-
issueReducer: import('..').IssueState;
|
|
54
|
-
issueTypeReducer: import('..').IssueTypeState;
|
|
55
|
-
mapReducer: import('..').MapState;
|
|
56
|
-
organizationReducer: import('..').OrganizationState;
|
|
57
|
-
outboxReducer: import('..').OutboxState;
|
|
58
|
-
projectReducer: import('..').ProjectState;
|
|
59
|
-
projectAccessReducer: import('..').ProjectAccessState;
|
|
60
|
-
organizationAccessReducer: import('..').OrganizationAccessState;
|
|
61
|
-
projectFileReducer: import('..').ProjectFileState;
|
|
62
|
-
rehydratedReducer: import('..').RehydratedState;
|
|
63
|
-
settingReducer: import('..').SettingState;
|
|
64
|
-
formReducer: import('..').FormState;
|
|
65
|
-
userReducer: import('..').UserState;
|
|
66
|
-
formRevisionReducer: import('..').FormRevisionState;
|
|
67
|
-
formSubmissionReducer: import('..').FormSubmissionState;
|
|
68
|
-
workspaceReducer: import('..').WorkspaceState;
|
|
69
|
-
emailDomainsReducer: import('..').EmailDomainState;
|
|
70
|
-
licenseReducer: import('..').LicenseState;
|
|
71
|
-
documentsReducer: import('..').DocumentState;
|
|
72
|
-
teamReducer: import('..').TeamState;
|
|
73
|
-
agentsReducer: import('..').AgentsState;
|
|
74
|
-
} & {
|
|
75
|
-
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
76
|
-
}) => Category[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Category>, args_1: string | null) => Category[], {
|
|
34
|
+
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">, hideCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "categories/hideCategory">, hideAllCategories: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"categories/hideAllCategories">, unhideCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "categories/unhideCategory">, unhideAllCategories: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"categories/unhideAllCategories">;
|
|
35
|
+
export declare const selectCategoryMapping: (state: OvermapRootState) => Record<string, Stored<Category>>;
|
|
36
|
+
export declare const selectCategories: ((state: OvermapRootState) => Stored<Category>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<Category>>, args_1: string | null) => Stored<Category>[], {
|
|
77
37
|
clearCache: () => void;
|
|
78
38
|
}> & {
|
|
79
39
|
clearCache: () => void;
|
|
80
40
|
};
|
|
81
41
|
export declare const selectCategoriesOfWorkspace: SelectorWithArgs<string, Category[]>;
|
|
82
|
-
export declare const
|
|
83
|
-
export declare const
|
|
84
|
-
export declare const
|
|
85
|
-
export declare const selectHiddenCategoryCount: (state: RootState) => number;
|
|
42
|
+
export declare const selectCategoryById: SelectorWithArgs<string, Category | undefined>;
|
|
43
|
+
export declare const selectCategoryVisibility: (state: OvermapRootState) => CategoryVisibility;
|
|
44
|
+
export declare const selectHiddenCategoryCount: (state: OvermapRootState) => number;
|
|
86
45
|
export declare const selectIssueCountOfCategory: SelectorWithArgs<string | null, number>;
|
|
87
46
|
export declare const categoryReducer: Reducer<CategoryState>;
|
|
88
47
|
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
+
import { ModelState } from "../typings";
|
|
3
|
+
import { DocumentAttachment, OvermapRootState, Selector, SelectorWithArgs, Stored } from "../../typings";
|
|
4
|
+
export type DocumentAttachmentState = ModelState<Stored<DocumentAttachment>>;
|
|
5
|
+
export declare const documentAttachmentSlice: import("@reduxjs/toolkit").Slice<ModelState<Stored<DocumentAttachment>>, {
|
|
6
|
+
initializeDocumentAttachments: <TState extends ModelState<Stored<DocumentAttachment>>>(state: TState, action: {
|
|
7
|
+
payload: Stored<DocumentAttachment>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
addDocumentAttachment: <TState_1 extends ModelState<Stored<DocumentAttachment>>>(state: TState_1, action: {
|
|
11
|
+
payload: Stored<DocumentAttachment>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addDocumentAttachments: <TState_2 extends ModelState<Stored<DocumentAttachment>>>(state: TState_2, action: {
|
|
15
|
+
payload: Stored<DocumentAttachment>[];
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
setDocumentAttachment: <TState_3 extends ModelState<Stored<DocumentAttachment>>>(state: TState_3, action: {
|
|
19
|
+
payload: Stored<DocumentAttachment>;
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
setDocumentAttachments: <TState_4 extends ModelState<Stored<DocumentAttachment>>>(state: TState_4, action: {
|
|
23
|
+
payload: Stored<DocumentAttachment>[];
|
|
24
|
+
type: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
updateDocumentAttachment: <TState_5 extends ModelState<Stored<DocumentAttachment>>>(state: TState_5, action: {
|
|
27
|
+
payload: Stored<DocumentAttachment>;
|
|
28
|
+
type: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
updateDocumentAttachments: <TState_6 extends ModelState<Stored<DocumentAttachment>>>(state: TState_6, action: {
|
|
31
|
+
payload: Stored<DocumentAttachment>[];
|
|
32
|
+
type: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
deleteDocumentAttachment: <TState_7 extends ModelState<Stored<DocumentAttachment>>>(state: TState_7, action: {
|
|
35
|
+
payload: string;
|
|
36
|
+
type: string;
|
|
37
|
+
}) => void;
|
|
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">;
|
|
44
|
+
export declare const selectDocumentAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<DocumentAttachment>>;
|
|
45
|
+
export declare const selectAllDocumentAttachments: Selector<Stored<DocumentAttachment>[]>;
|
|
46
|
+
export declare const selectDocumentAttachment: SelectorWithArgs<string, Stored<DocumentAttachment>>;
|
|
47
|
+
export declare const selectAttachmentsOfDocument: (args: string) => (state: OvermapRootState) => Stored<DocumentAttachment>[];
|
|
48
|
+
export declare const selectAttachmentsOfDocumentByType: (args: string) => (state: OvermapRootState) => {
|
|
49
|
+
fileAttachments: Stored<DocumentAttachment>[];
|
|
50
|
+
imageAttachments: Stored<DocumentAttachment>[];
|
|
51
|
+
};
|
|
52
|
+
export declare const documentAttachmentReducer: Reducer<DocumentAttachmentState>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
/// <reference types="@redux-offline/redux-offline" />
|
|
2
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
3
|
-
import {
|
|
2
|
+
import { MovePosition, Document, OvermapRootState, Selector, Stored, Submitted } from "../../typings";
|
|
4
3
|
export interface DocumentState {
|
|
5
4
|
documents: Record<string, Stored<Document>>;
|
|
6
|
-
attachments: Record<string, Stored<DocumentAttachment>>;
|
|
7
5
|
}
|
|
8
6
|
export interface MoveDocumentPayload {
|
|
9
7
|
documentId: Document["offline_id"];
|
|
@@ -26,38 +24,6 @@ export declare const documentSlice: import("@reduxjs/toolkit").Slice<DocumentSta
|
|
|
26
24
|
removeDocuments: (state: import("immer/dist/internal.js").WritableDraft<DocumentState>, action: {
|
|
27
25
|
payload: string[];
|
|
28
26
|
}) => void;
|
|
29
|
-
setDocumentAttachment: (state: DocumentState, action: {
|
|
30
|
-
payload: Stored<DocumentAttachment>;
|
|
31
|
-
type: string;
|
|
32
|
-
}) => void;
|
|
33
|
-
setDocumentAttachments: (state: DocumentState, action: {
|
|
34
|
-
payload: Stored<DocumentAttachment>[];
|
|
35
|
-
type: string;
|
|
36
|
-
}) => void;
|
|
37
|
-
addDocumentAttachment: (state: DocumentState, action: {
|
|
38
|
-
payload: Submitted<DocumentAttachment>;
|
|
39
|
-
type: string;
|
|
40
|
-
}) => void;
|
|
41
|
-
addDocumentAttachments: (state: DocumentState, action: {
|
|
42
|
-
payload: Submitted<DocumentAttachment>[];
|
|
43
|
-
type: string;
|
|
44
|
-
}) => void;
|
|
45
|
-
updateDocumentAttachment: (state: DocumentState, action: {
|
|
46
|
-
payload: Submitted<DocumentAttachment>;
|
|
47
|
-
type: string;
|
|
48
|
-
}) => void;
|
|
49
|
-
updateDocumentAttachments: (state: DocumentState, action: {
|
|
50
|
-
payload: Submitted<DocumentAttachment>[];
|
|
51
|
-
type: string;
|
|
52
|
-
}) => void;
|
|
53
|
-
removeDocumentAttachment: (state: DocumentState, action: {
|
|
54
|
-
payload: string;
|
|
55
|
-
type: string;
|
|
56
|
-
}) => void;
|
|
57
|
-
removeDocumentAttachments: (state: DocumentState, action: {
|
|
58
|
-
payload: string[];
|
|
59
|
-
type: string;
|
|
60
|
-
}) => void;
|
|
61
27
|
}, "documents">;
|
|
62
28
|
export declare const setDocuments: import("@reduxjs/toolkit").ActionCreatorWithPayload<((import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
63
29
|
title: string | null;
|
|
@@ -191,10 +157,10 @@ export declare const setDocuments: import("@reduxjs/toolkit").ActionCreatorWithP
|
|
|
191
157
|
project: null;
|
|
192
158
|
} & {
|
|
193
159
|
children_documents: string[];
|
|
194
|
-
}, "id" | "created_at" | "created_by">)>>[], "documents/updateDocuments">, moveDocument: import("@reduxjs/toolkit").ActionCreatorWithPayload<MoveDocumentPayload, "documents/moveDocument">, removeDocuments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "documents/removeDocuments"
|
|
160
|
+
}, "id" | "created_at" | "created_by">)>>[], "documents/updateDocuments">, moveDocument: import("@reduxjs/toolkit").ActionCreatorWithPayload<MoveDocumentPayload, "documents/moveDocument">, removeDocuments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "documents/removeDocuments">;
|
|
195
161
|
export declare const selectDocumentsMapping: Selector<Record<string, Stored<Document>>>;
|
|
196
162
|
export declare const selectDocuments: Selector<Stored<Document>[]>;
|
|
197
|
-
export declare const selectDocument: (args: string) => (state:
|
|
163
|
+
export declare const selectDocument: (args: string) => (state: OvermapRootState) => (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
198
164
|
title: string | null;
|
|
199
165
|
description: string | null;
|
|
200
166
|
content: string | null;
|
|
@@ -239,40 +205,8 @@ export declare const selectDocument: (args: string) => (state: RootState) => (im
|
|
|
239
205
|
} & {
|
|
240
206
|
children_documents: string[];
|
|
241
207
|
}, "id" | "created_at" | "created_by">) | undefined;
|
|
242
|
-
export declare const selectAncestorIdsOfDocument: (args: string) => (state:
|
|
243
|
-
export declare const selectRootDocuments: ((state: import(
|
|
244
|
-
versioning: import('../slices/versioningSlice').VersioningState;
|
|
245
|
-
fileReducer: import('..').FileState;
|
|
246
|
-
authReducer: import('..').AuthState;
|
|
247
|
-
categoryReducer: import('..').CategoryState;
|
|
248
|
-
assetReducer: import('..').AssetState;
|
|
249
|
-
assetStageCompletionReducer: import('..').AssetStageCompletionState;
|
|
250
|
-
assetStageReducer: import('..').AssetStageState;
|
|
251
|
-
assetTypeReducer: import('..').AssetTypeState;
|
|
252
|
-
issueReducer: import('..').IssueState;
|
|
253
|
-
issueTypeReducer: import('..').IssueTypeState;
|
|
254
|
-
mapReducer: import('..').MapState;
|
|
255
|
-
organizationReducer: import('..').OrganizationState;
|
|
256
|
-
outboxReducer: import('..').OutboxState;
|
|
257
|
-
projectReducer: import('..').ProjectState;
|
|
258
|
-
projectAccessReducer: import('..').ProjectAccessState;
|
|
259
|
-
organizationAccessReducer: import('..').OrganizationAccessState;
|
|
260
|
-
projectFileReducer: import('..').ProjectFileState;
|
|
261
|
-
rehydratedReducer: import('..').RehydratedState;
|
|
262
|
-
settingReducer: import('..').SettingState;
|
|
263
|
-
formReducer: import('..').FormState;
|
|
264
|
-
userReducer: import('..').UserState;
|
|
265
|
-
formRevisionReducer: import('..').FormRevisionState;
|
|
266
|
-
formSubmissionReducer: import('..').FormSubmissionState;
|
|
267
|
-
workspaceReducer: import('..').WorkspaceState;
|
|
268
|
-
emailDomainsReducer: import('..').EmailDomainState;
|
|
269
|
-
licenseReducer: import('..').LicenseState;
|
|
270
|
-
documentsReducer: DocumentState;
|
|
271
|
-
teamReducer: import('..').TeamState;
|
|
272
|
-
agentsReducer: import('..').AgentsState;
|
|
273
|
-
} & {
|
|
274
|
-
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
275
|
-
}) => ((import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
208
|
+
export declare const selectAncestorIdsOfDocument: (args: string) => (state: OvermapRootState) => string[];
|
|
209
|
+
export declare const selectRootDocuments: ((state: OvermapRootState) => ((import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
276
210
|
title: string | null;
|
|
277
211
|
description: string | null;
|
|
278
212
|
content: string | null;
|
|
@@ -409,12 +343,4 @@ export declare const selectRootDocuments: ((state: import("redux").EmptyObject &
|
|
|
409
343
|
}> & {
|
|
410
344
|
clearCache: () => void;
|
|
411
345
|
};
|
|
412
|
-
export declare const selectDocumentAttachmentMapping: (state: RootState) => Record<string, Stored<DocumentAttachment>>;
|
|
413
|
-
export declare const selectAllDocumentAttachments: Selector<Stored<DocumentAttachment>[]>;
|
|
414
|
-
export declare const selectDocumentAttachment: SelectorWithArgs<string, Stored<DocumentAttachment>>;
|
|
415
|
-
export declare const selectAttachmentsOfDocument: (args: string) => (state: RootState) => Stored<DocumentAttachment>[];
|
|
416
|
-
export declare const selectAttachmentsOfDocumentByType: (args: string) => (state: RootState) => {
|
|
417
|
-
fileAttachments: Stored<DocumentAttachment>[];
|
|
418
|
-
imageAttachments: Stored<DocumentAttachment>[];
|
|
419
|
-
};
|
|
420
346
|
export declare const documentsReducer: Reducer<DocumentState>;
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { EmailDomain, Selector } from "../../typings";
|
|
1
|
+
import { EmailDomain, Selector, OvermapRootState } from "../../typings";
|
|
2
2
|
import { Reducer } from "@reduxjs/toolkit";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
setEmailDomains: (state: import("immer/dist/internal.js").WritableDraft<EmailDomainState>, action: {
|
|
3
|
+
import { ModelState } from "../typings";
|
|
4
|
+
export type EmailDomainState = ModelState<EmailDomain>;
|
|
5
|
+
export declare const emailDomainsSlice: import("@reduxjs/toolkit").Slice<ModelState<EmailDomain>, {
|
|
6
|
+
initializeEmailDomains: <TState extends ModelState<EmailDomain>>(state: TState, action: {
|
|
8
7
|
payload: EmailDomain[];
|
|
8
|
+
type: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
addEmailDomain: (state:
|
|
10
|
+
addEmailDomain: <TState_1 extends ModelState<EmailDomain>>(state: TState_1, action: {
|
|
11
11
|
payload: EmailDomain;
|
|
12
|
+
type: string;
|
|
12
13
|
}) => void;
|
|
13
|
-
|
|
14
|
-
payload:
|
|
14
|
+
deleteEmailDomain: <TState_2 extends ModelState<EmailDomain>>(state: TState_2, action: {
|
|
15
|
+
payload: string;
|
|
16
|
+
type: string;
|
|
15
17
|
}) => void;
|
|
16
18
|
}, "emailDomains">;
|
|
17
|
-
export declare const
|
|
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">;
|
|
18
20
|
export declare const selectEmailDomainsAsMapping: Selector<Record<number, EmailDomain>>;
|
|
19
|
-
export declare const
|
|
21
|
+
export declare const selectEmailDomains: (state: OvermapRootState) => EmailDomain[];
|
|
22
|
+
export declare const selectEmailDomainsOfOrganization: (args: number) => (state: OvermapRootState) => EmailDomain[];
|
|
20
23
|
export declare const emailDomainsReducer: Reducer<EmailDomainState>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
+
import { ModelState } from "../typings";
|
|
3
|
+
import { Selector, SelectorWithArgs, Stored, UserFormRevisionAttachment } from "../../typings";
|
|
4
|
+
export type FormRevisionAttachmentState = ModelState<Stored<UserFormRevisionAttachment>>;
|
|
5
|
+
export declare const formRevisionAttachmentSlice: import("@reduxjs/toolkit").Slice<FormRevisionAttachmentState, {
|
|
6
|
+
initializeFormRevisionAttachments: <TState extends ModelState<Stored<UserFormRevisionAttachment>>>(state: TState, action: {
|
|
7
|
+
payload: Stored<UserFormRevisionAttachment>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
addFormRevisionAttachment: <TState_1 extends ModelState<Stored<UserFormRevisionAttachment>>>(state: TState_1, action: {
|
|
11
|
+
payload: Stored<UserFormRevisionAttachment>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addFormRevisionAttachments: <TState_2 extends ModelState<Stored<UserFormRevisionAttachment>>>(state: TState_2, action: {
|
|
15
|
+
payload: Stored<UserFormRevisionAttachment>[];
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
setFormRevisionAttachment: <TState_3 extends ModelState<Stored<UserFormRevisionAttachment>>>(state: TState_3, action: {
|
|
19
|
+
payload: Stored<UserFormRevisionAttachment>;
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
setFormRevisionAttachments: <TState_4 extends ModelState<Stored<UserFormRevisionAttachment>>>(state: TState_4, action: {
|
|
23
|
+
payload: Stored<UserFormRevisionAttachment>[];
|
|
24
|
+
type: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
updateFormRevisionAttachment: <TState_5 extends ModelState<Stored<UserFormRevisionAttachment>>>(state: TState_5, action: {
|
|
27
|
+
payload: Stored<UserFormRevisionAttachment>;
|
|
28
|
+
type: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
updateFormRevisionAttachments: <TState_6 extends ModelState<Stored<UserFormRevisionAttachment>>>(state: TState_6, action: {
|
|
31
|
+
payload: Stored<UserFormRevisionAttachment>[];
|
|
32
|
+
type: string;
|
|
33
|
+
}) => void;
|
|
34
|
+
deleteFormRevisionAttachment: <TState_7 extends ModelState<Stored<UserFormRevisionAttachment>>>(state: TState_7, action: {
|
|
35
|
+
payload: string;
|
|
36
|
+
type: string;
|
|
37
|
+
}) => void;
|
|
38
|
+
deleteFormRevisionAttachments: <TState_8 extends ModelState<Stored<UserFormRevisionAttachment>>>(state: TState_8, action: {
|
|
39
|
+
payload: string[];
|
|
40
|
+
type: string;
|
|
41
|
+
}) => void;
|
|
42
|
+
}, "formRevisionAttachments">;
|
|
43
|
+
export declare const initializeFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevisionAttachment>[], "formRevisionAttachments/initializeFormRevisionAttachments">, addFormRevisionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevisionAttachment>, "formRevisionAttachments/addFormRevisionAttachment">, addFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevisionAttachment>[], "formRevisionAttachments/addFormRevisionAttachments">, setFormRevisionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevisionAttachment>, "formRevisionAttachments/setFormRevisionAttachment">, setFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevisionAttachment>[], "formRevisionAttachments/setFormRevisionAttachments">, updateFormRevisionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevisionAttachment>, "formRevisionAttachments/updateFormRevisionAttachment">, updateFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevisionAttachment>[], "formRevisionAttachments/updateFormRevisionAttachments">, deleteFormRevisionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "formRevisionAttachments/deleteFormRevisionAttachment">, deleteFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "formRevisionAttachments/deleteFormRevisionAttachments">;
|
|
44
|
+
export declare const selectUserFormRevisionAttachmentsMapping: Selector<FormRevisionAttachmentState["instances"]>;
|
|
45
|
+
export declare const selectAttachmentsOfFormRevision: SelectorWithArgs<string, Stored<UserFormRevisionAttachment>[]>;
|
|
46
|
+
export declare const formRevisionAttachmentReducer: Reducer<FormRevisionAttachmentState>;
|
|
@@ -1,68 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export
|
|
5
|
-
formRevisions: Record<UserFormRevision["offline_id"], Stored<UserFormRevision>>;
|
|
6
|
-
attachments: Record<UserFormRevisionAttachment["offline_id"], Stored<UserFormRevisionAttachment>>;
|
|
7
|
-
}
|
|
1
|
+
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
+
import { OvermapRootState, Selector, SelectorWithArgs, Stored, UserForm, UserFormRevision } from "../../typings";
|
|
3
|
+
import { ModelState } from "../typings";
|
|
4
|
+
export type FormRevisionState = ModelState<Stored<UserFormRevision>>;
|
|
8
5
|
export declare const formRevisionsSlice: import("@reduxjs/toolkit").Slice<FormRevisionState, {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
initializeFormRevisions: <TState extends ModelState<Stored<UserFormRevision<import('../../forms').ISerializedField>>>>(state: TState, action: {
|
|
7
|
+
payload: Stored<UserFormRevision<import('../../forms').ISerializedField>>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
setFormRevision: <TState_1 extends ModelState<Stored<UserFormRevision<import('../../forms').ISerializedField>>>>(state: TState_1, action: {
|
|
11
|
+
payload: Stored<UserFormRevision<import('../../forms').ISerializedField>>;
|
|
12
|
+
type: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
addFormRevision: <TState_2 extends ModelState<Stored<UserFormRevision<import('../../forms').ISerializedField>>>>(state: TState_2, action: {
|
|
15
|
+
payload: Stored<UserFormRevision<import('../../forms').ISerializedField>>;
|
|
16
|
+
type: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
addFormRevisions: <TState_3 extends ModelState<Stored<UserFormRevision<import('../../forms').ISerializedField>>>>(state: TState_3, action: {
|
|
19
|
+
payload: Stored<UserFormRevision<import('../../forms').ISerializedField>>[];
|
|
20
|
+
type: string;
|
|
21
|
+
}) => void;
|
|
22
|
+
deleteFormRevision: <TState_4 extends ModelState<Stored<UserFormRevision<import('../../forms').ISerializedField>>>>(state: TState_4, action: {
|
|
23
|
+
payload: string;
|
|
24
|
+
type: string;
|
|
25
|
+
}) => void;
|
|
26
|
+
deleteFormRevisions: <TState_5 extends ModelState<Stored<UserFormRevision<import('../../forms').ISerializedField>>>>(state: TState_5, action: {
|
|
27
|
+
payload: string[];
|
|
28
|
+
type: string;
|
|
29
|
+
}) => void;
|
|
20
30
|
}, "formRevisions">;
|
|
21
|
-
export declare const setFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevision<import('../../forms').ISerializedField>>, "formRevisions/setFormRevision">,
|
|
22
|
-
export declare const selectFormRevisionMapping: (state:
|
|
23
|
-
export declare const selectFormRevisions: ((state: import("
|
|
24
|
-
versioning: import('../slices/versioningSlice').VersioningState;
|
|
25
|
-
fileReducer: import('..').FileState;
|
|
26
|
-
authReducer: import('..').AuthState;
|
|
27
|
-
categoryReducer: import('..').CategoryState;
|
|
28
|
-
assetReducer: import('..').AssetState;
|
|
29
|
-
assetStageCompletionReducer: import('..').AssetStageCompletionState;
|
|
30
|
-
assetStageReducer: import('..').AssetStageState;
|
|
31
|
-
assetTypeReducer: import('..').AssetTypeState;
|
|
32
|
-
issueReducer: import('..').IssueState;
|
|
33
|
-
issueTypeReducer: import('..').IssueTypeState;
|
|
34
|
-
mapReducer: import('..').MapState;
|
|
35
|
-
organizationReducer: import('..').OrganizationState;
|
|
36
|
-
outboxReducer: import('..').OutboxState;
|
|
37
|
-
projectReducer: import('..').ProjectState;
|
|
38
|
-
projectAccessReducer: import('..').ProjectAccessState;
|
|
39
|
-
organizationAccessReducer: import('..').OrganizationAccessState;
|
|
40
|
-
projectFileReducer: import('..').ProjectFileState;
|
|
41
|
-
rehydratedReducer: import('..').RehydratedState;
|
|
42
|
-
settingReducer: import('..').SettingState;
|
|
43
|
-
formReducer: import('..').FormState;
|
|
44
|
-
userReducer: import('..').UserState;
|
|
45
|
-
formRevisionReducer: FormRevisionState;
|
|
46
|
-
formSubmissionReducer: import('..').FormSubmissionState;
|
|
47
|
-
workspaceReducer: import('..').WorkspaceState;
|
|
48
|
-
emailDomainsReducer: import('..').EmailDomainState;
|
|
49
|
-
licenseReducer: import('..').LicenseState;
|
|
50
|
-
documentsReducer: import('..').DocumentState;
|
|
51
|
-
teamReducer: import('..').TeamState;
|
|
52
|
-
agentsReducer: import('..').AgentsState;
|
|
53
|
-
} & {
|
|
54
|
-
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
55
|
-
}) => Stored<UserFormRevision<import('../../forms').ISerializedField>>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<UserFormRevision<import('../../forms').ISerializedField>>>) => Stored<UserFormRevision<import('../../forms').ISerializedField>>[], {
|
|
31
|
+
export declare const setFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevision<import('../../forms').ISerializedField>>, "formRevisions/setFormRevision">, initializeFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevision<import('../../forms').ISerializedField>>[], "formRevisions/initializeFormRevisions">, addFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevision<import('../../forms').ISerializedField>>, "formRevisions/addFormRevision">, addFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevision<import('../../forms').ISerializedField>>[], "formRevisions/addFormRevisions">, deleteFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "formRevisions/deleteFormRevision">, deleteFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "formRevisions/deleteFormRevisions">;
|
|
32
|
+
export declare const selectFormRevisionMapping: (state: OvermapRootState) => Record<string, Stored<UserFormRevision<import('../../forms').ISerializedField>>>;
|
|
33
|
+
export declare const selectFormRevisions: ((state: OvermapRootState) => Stored<UserFormRevision<import('../../forms').ISerializedField>>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<UserFormRevision<import('../../forms').ISerializedField>>>) => Stored<UserFormRevision<import('../../forms').ISerializedField>>[], {
|
|
56
34
|
clearCache: () => void;
|
|
57
35
|
}> & {
|
|
58
36
|
clearCache: () => void;
|
|
59
37
|
};
|
|
60
38
|
export declare const selectFormRevision: SelectorWithArgs<string, Stored<UserFormRevision>>;
|
|
61
|
-
export declare const _selectLatestFormRevision: (formRevisions: FormRevisionState["
|
|
39
|
+
export declare const _selectLatestFormRevision: (formRevisions: FormRevisionState["instances"], formId: string) => Stored<UserFormRevision>;
|
|
62
40
|
export declare const selectLatestFormRevisionOfForm: SelectorWithArgs<string, Stored<UserFormRevision>>;
|
|
63
41
|
export declare const selectFormRevisionsOfForm: SelectorWithArgs<string, Stored<UserFormRevision>[]>;
|
|
64
42
|
export declare const selectLatestFormRevisionsOfAssetTypes: SelectorWithArgs<string[], Record<string, Stored<UserFormRevision>>>;
|
|
65
43
|
export declare const selectLatestFormRevisionByForm: Selector<Record<Stored<UserForm>["offline_id"], Stored<UserFormRevision>>>;
|
|
66
|
-
export declare const selectUserFormRevisionAttachmentsMapping: Selector<FormRevisionState["attachments"]>;
|
|
67
|
-
export declare const selectAttachmentsOfFormRevision: SelectorWithArgs<string, Stored<UserFormRevisionAttachment>[]>;
|
|
68
44
|
export declare const formRevisionReducer: Reducer<FormRevisionState>;
|