@overmap-ai/core 1.0.60-forms-removal.9 → 1.0.60-forms-refactor-1.1
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/overmap-core.js +487 -509
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +487 -509
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/services/BaseAttachmentService.d.ts +8 -4
- package/dist/sdk/services/BaseUploadService.d.ts +8 -0
- package/dist/sdk/services/FormService.d.ts +18 -0
- package/dist/sdk/services/FormSubmissionService.d.ts +24 -0
- package/dist/sdk/services/GeoImageService.d.ts +11 -0
- package/dist/sdk/services/IssueService.d.ts +1 -1
- package/dist/sdk/services/index.d.ts +3 -2
- package/dist/sdk/typings.d.ts +3 -2
- package/dist/store/slices/assetTypeSlice.d.ts +2 -8
- package/dist/store/slices/categorySlice.d.ts +11 -25
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +21 -21
- package/dist/store/slices/formRevisionSlice.d.ts +21 -21
- package/dist/store/slices/formSlice.d.ts +20 -20
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +20 -20
- package/dist/store/slices/formSubmissionSlice.d.ts +26 -26
- package/dist/store/slices/geoImageSlice.d.ts +48 -0
- package/dist/store/slices/index.d.ts +1 -0
- package/dist/store/slices/issueSlice.d.ts +2 -12
- package/dist/store/slices/organizationSlice.d.ts +6 -17
- package/dist/store/slices/projectFileSlice.d.ts +4 -15
- package/dist/store/slices/projectSlice.d.ts +1 -4
- package/dist/store/slices/workspaceSlice.d.ts +5 -10
- package/dist/store/store.d.ts +2 -1
- package/dist/typings/models/assets.d.ts +1 -1
- package/dist/typings/models/forms.d.ts +11 -11
- package/dist/typings/models/geo.d.ts +2 -1
- package/dist/typings/models/geoImages.d.ts +14 -0
- package/dist/typings/models/index.d.ts +1 -0
- package/dist/typings/models/issues.d.ts +3 -3
- package/dist/typings/models/store.d.ts +2 -2
- package/dist/utils/coordinates.d.ts +2 -1
- package/dist/utils/forms.d.ts +2 -2
- package/package.json +1 -1
- package/dist/sdk/services/UserFormService.d.ts +0 -18
- package/dist/sdk/services/UserFormSubmissionService.d.ts +0 -25
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { ActionCreatorWithPayload } from "@reduxjs/toolkit";
|
|
2
2
|
import { OptimisticMultipleModelResult } from "../typings";
|
|
3
3
|
import { Attachment, AttachmentModel, OvermapRootState, OvermapSelectorWithArgs, Stored, Submitted } from "../../typings";
|
|
4
|
-
import { BaseApiService } from "./BaseApiService";
|
|
5
4
|
import type { BaseSDK } from "../base";
|
|
5
|
+
import { BaseUploadService } from "./BaseUploadService";
|
|
6
|
+
export interface FilePayload {
|
|
7
|
+
sha1: Attachment["file_sha1"];
|
|
8
|
+
file_type: string;
|
|
9
|
+
extension: string;
|
|
10
|
+
size: number;
|
|
11
|
+
}
|
|
6
12
|
export interface BuildOfflineAttachmentData<TModelId> {
|
|
7
13
|
file: File;
|
|
8
14
|
sha1: string;
|
|
@@ -11,7 +17,7 @@ export interface BuildOfflineAttachmentData<TModelId> {
|
|
|
11
17
|
description?: string;
|
|
12
18
|
modelId: TModelId;
|
|
13
19
|
}
|
|
14
|
-
export declare abstract class BaseAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>, TModelId extends string | number, TAttachment extends Attachment> extends
|
|
20
|
+
export declare abstract class BaseAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>, TModelId extends string | number, TAttachment extends Attachment> extends BaseUploadService<TState, TSDK> {
|
|
15
21
|
abstract readonly attachmentModel: AttachmentModel;
|
|
16
22
|
abstract readonly initializeAttachments: ActionCreatorWithPayload<Submitted<TAttachment>[]>;
|
|
17
23
|
abstract readonly addAttachments: ActionCreatorWithPayload<Submitted<TAttachment>[]>;
|
|
@@ -20,8 +26,6 @@ export declare abstract class BaseAttachmentService<TState extends OvermapRootSt
|
|
|
20
26
|
abstract readonly setAttachment: ActionCreatorWithPayload<Stored<TAttachment>>;
|
|
21
27
|
abstract readonly removeAttachment: ActionCreatorWithPayload<string>;
|
|
22
28
|
abstract readonly selectAttachment: OvermapSelectorWithArgs<string, Stored<TAttachment>>;
|
|
23
|
-
private getNumberOfAttachmentsWithSha1;
|
|
24
|
-
private processPresignedUrls;
|
|
25
29
|
protected attachFiles(files: File[], modelId: TModelId, buildOfflineAttachment: (data: BuildOfflineAttachmentData<TModelId>) => Stored<TAttachment>): Promise<OptimisticMultipleModelResult<TAttachment>>;
|
|
26
30
|
protected deleteAttachment(attachmendId: string): Promise<void>;
|
|
27
31
|
refreshStore(projectId: number): Promise<void>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseApiService } from "./BaseApiService";
|
|
2
|
+
import { PresignedUrlsResponse } from "../typings";
|
|
3
|
+
import { OvermapRootState } from "../../typings";
|
|
4
|
+
import type { BaseSDK } from "../base";
|
|
5
|
+
export declare abstract class BaseUploadService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
+
protected getNumberOfAttachmentsWithSha1(sha1: string): number;
|
|
7
|
+
protected processPresignedUrls(presignedUrls: PresignedUrlsResponse): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Form, FormRevision, FormRevisionPayload, ISerializedField } from '../../typings/models/forms';
|
|
2
|
+
import { OptimisticModelResult } from "../typings";
|
|
3
|
+
import { Created, OvermapRootState, Submitted } from "../../typings";
|
|
4
|
+
import { BaseApiService } from "./BaseApiService";
|
|
5
|
+
import type { BaseSDK } from "../base";
|
|
6
|
+
export declare abstract class FormService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
|
+
private getAttachImagePromises;
|
|
8
|
+
private add;
|
|
9
|
+
addForOrganization(organizationId: number, initialRevision: FormRevisionPayload): Promise<[Submitted<Form>, Submitted<FormRevision<ISerializedField>>, Promise<Created<FormRevision<ISerializedField>>>, Promise<Created<FormRevision<ISerializedField>>>]>;
|
|
10
|
+
addForProject(projectId: number, initialRevision: FormRevisionPayload): Promise<[Submitted<Form>, Submitted<FormRevision<ISerializedField>>, Promise<Created<FormRevision<ISerializedField>>>, Promise<Created<FormRevision<ISerializedField>>>]>;
|
|
11
|
+
addForIssueType(issueTypeId: string, initialRevision: FormRevisionPayload): Promise<[Submitted<Form>, Submitted<FormRevision<ISerializedField>>, Promise<Created<FormRevision<ISerializedField>>>, Promise<Created<FormRevision<ISerializedField>>>]>;
|
|
12
|
+
addForAssetType(assetTypeId: string, initialRevision: FormRevisionPayload): Promise<[Submitted<Form>, Submitted<FormRevision<ISerializedField>>, Promise<Created<FormRevision<ISerializedField>>>, Promise<Created<FormRevision<ISerializedField>>>]>;
|
|
13
|
+
createRevision(formId: string, revision: FormRevisionPayload): Promise<OptimisticModelResult<FormRevision>>;
|
|
14
|
+
favorite(formId: string): Promise<undefined>;
|
|
15
|
+
unfavorite(formId: string): Promise<undefined>;
|
|
16
|
+
delete(formId: string): Promise<undefined>;
|
|
17
|
+
refreshStore(projectId: number): Promise<void>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Offline } from '../../typings/models/base';
|
|
2
|
+
import { FieldValue, FormSubmission, FormSubmissionAttachment, FormSubmissionPayload } from '../../typings/models/forms';
|
|
3
|
+
import { OptimisticModelResult, PresignedUrlsResponse } from "../typings";
|
|
4
|
+
import { Created, OvermapRootState, Stored } from "../../typings";
|
|
5
|
+
import type { BaseSDK } from "../base";
|
|
6
|
+
import { BaseUploadService } from "./BaseUploadService";
|
|
7
|
+
interface BulkAddRequestReturnValue {
|
|
8
|
+
submissions: Created<FormSubmission>[];
|
|
9
|
+
attachments: Created<FormSubmissionAttachment>[];
|
|
10
|
+
presigned_urls: PresignedUrlsResponse;
|
|
11
|
+
}
|
|
12
|
+
export declare abstract class FormSubmissionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
13
|
+
private getAttachFilesPromises;
|
|
14
|
+
add(payload: Offline<FormSubmissionPayload>): OptimisticModelResult<FormSubmission>;
|
|
15
|
+
bulkAdd(args: {
|
|
16
|
+
formRevision: string;
|
|
17
|
+
commonFieldValues: Record<string, FieldValue>;
|
|
18
|
+
fieldValuesByAsset: Record<string, Record<string, FieldValue>>;
|
|
19
|
+
}, batchSize: number): Promise<Promise<BulkAddRequestReturnValue>[]>;
|
|
20
|
+
update(submission: Stored<FormSubmission>): OptimisticModelResult<FormSubmission>;
|
|
21
|
+
delete(submissionId: string): Promise<undefined>;
|
|
22
|
+
refreshStore(projectId: number): Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BulkGeoImagePayload, GeoImage, GeoImagePayload, Offline, OvermapRootState } from "../../typings";
|
|
2
|
+
import { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
|
|
3
|
+
import type { BaseSDK } from "../base";
|
|
4
|
+
import { BaseUploadService } from "./BaseUploadService";
|
|
5
|
+
export declare abstract class GeoImageService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
+
add(payload: GeoImagePayload): Promise<OptimisticModelResult<GeoImage>>;
|
|
7
|
+
bulkAdd(payloads: BulkGeoImagePayload[], projectId: number): Promise<OptimisticMultipleModelResult<GeoImage>>;
|
|
8
|
+
update(payload: Offline<Partial<Pick<GeoImagePayload, "title" | "description">>>): OptimisticModelResult<GeoImage>;
|
|
9
|
+
delete(geoImageId: string): Promise<void>;
|
|
10
|
+
refreshStore(projectId: number): Promise<void>;
|
|
11
|
+
}
|
|
@@ -6,7 +6,7 @@ import type { BaseSDK } from "../base";
|
|
|
6
6
|
* Handles CRUD operations on issues
|
|
7
7
|
*/
|
|
8
8
|
export declare abstract class IssueService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
9
|
-
add(issue: Issue, issueType?: IssueType["offline_id"] | null): OptimisticModelResult<Issue>;
|
|
9
|
+
add(issue: Issue, workspaceId: string, issueType?: IssueType["offline_id"] | null): OptimisticModelResult<Issue>;
|
|
10
10
|
update(issue: Submitted<Partial<Issue>>): OptimisticModelResult<Issue>;
|
|
11
11
|
remove(id: string): Promise<undefined>;
|
|
12
12
|
refreshStore(projectId: number): Promise<undefined>;
|
|
@@ -16,8 +16,8 @@ export * from "./ProjectAccessService";
|
|
|
16
16
|
export * from "./ProjectFileService";
|
|
17
17
|
export * from "./ProjectAttachmentService";
|
|
18
18
|
export * from "./ProjectService";
|
|
19
|
-
export * from "./
|
|
20
|
-
export * from "./
|
|
19
|
+
export * from "./FormService";
|
|
20
|
+
export * from "./FormSubmissionService";
|
|
21
21
|
export * from "./WorkspaceService";
|
|
22
22
|
export * from "./OrganizationAccessService";
|
|
23
23
|
export * from "./FileService";
|
|
@@ -30,3 +30,4 @@ export * from "./DocumentAttachmentService";
|
|
|
30
30
|
export * from "./AgentService";
|
|
31
31
|
export * from "./TeamService";
|
|
32
32
|
export * from "./UserService";
|
|
33
|
+
export * from "./GeoImageService";
|
package/dist/sdk/typings.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import request from "superagent";
|
|
|
2
2
|
import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
|
|
3
3
|
import { HttpMethod } from "../enums";
|
|
4
4
|
import { BaseState, Created, Model, Stored, Submitted } from "../typings";
|
|
5
|
-
import { DeferredPromise } from "../utils
|
|
6
|
-
import { GetS3UrlResponse } from "./services";
|
|
5
|
+
import { DeferredPromise } from "../utils";
|
|
6
|
+
import { GetS3UrlResponse, GetS3UrlSuccessResponse } from "./services";
|
|
7
7
|
import { BaseSDK } from "./base";
|
|
8
8
|
export type OvermapSDKConstructor<TState extends BaseState, TSDK extends BaseSDK<TState>> = new (store: ToolkitStore<TState>) => TSDK;
|
|
9
9
|
export interface TokenPair {
|
|
@@ -113,3 +113,4 @@ export interface OfflineMetaEffect {
|
|
|
113
113
|
BASE_URL: string;
|
|
114
114
|
serviceName: string;
|
|
115
115
|
}
|
|
116
|
+
export type PresignedUrlsResponse = Record<string, GetS3UrlSuccessResponse>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { Reducer } from "@reduxjs/toolkit";
|
|
2
2
|
import type { AssetType, OvermapSelector, OvermapSelectorWithArgs, Stored } from "../../typings";
|
|
3
3
|
import { ModelState } from "../typings";
|
|
4
|
-
export
|
|
5
|
-
hiddenAssetTypeIds: Record<string, boolean>;
|
|
6
|
-
}
|
|
4
|
+
export type AssetTypeState = ModelState<Stored<AssetType>>;
|
|
7
5
|
export declare const assetTypeSlice: import("@reduxjs/toolkit").Slice<AssetTypeState, {
|
|
8
6
|
initializeAssetTypes: <TState extends ModelState<Stored<AssetType>>>(state: TState, action: {
|
|
9
7
|
payload: Stored<AssetType>[];
|
|
@@ -17,11 +15,8 @@ export declare const assetTypeSlice: import("@reduxjs/toolkit").Slice<AssetTypeS
|
|
|
17
15
|
payload: string;
|
|
18
16
|
type: string;
|
|
19
17
|
}) => void;
|
|
20
|
-
toggleAssetTypeVisibility: (state: import("immer/dist/internal.js").WritableDraft<AssetTypeState>, action: {
|
|
21
|
-
payload: string;
|
|
22
|
-
}) => void;
|
|
23
18
|
}, "assetTypes">;
|
|
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"
|
|
19
|
+
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">;
|
|
25
20
|
export declare const selectAssetTypesMapping: OvermapSelector<Record<string, AssetType>>;
|
|
26
21
|
export declare const selectAssetTypes: OvermapSelector<AssetType[]>;
|
|
27
22
|
export declare const selectAssetType: OvermapSelectorWithArgs<string, AssetType>;
|
|
@@ -31,6 +26,5 @@ interface selectNumberOfAssetTypesMatchingCaseInsensitiveNameProps {
|
|
|
31
26
|
}
|
|
32
27
|
export declare const selectNumberOfAssetTypesMatchingCaseInsensitiveName: OvermapSelectorWithArgs<selectNumberOfAssetTypesMatchingCaseInsensitiveNameProps, number>;
|
|
33
28
|
export declare const selectAssetTypesByName: OvermapSelectorWithArgs<string, AssetType[]>;
|
|
34
|
-
export declare const selectHiddenAssetTypeIds: OvermapSelector<Record<string, boolean | undefined>>;
|
|
35
29
|
export declare const assetTypeReducer: Reducer<AssetTypeState>;
|
|
36
30
|
export {};
|
|
@@ -1,47 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Reducer } from "@reduxjs/toolkit";
|
|
2
2
|
import { Category, OvermapRootState, OvermapSelectorWithArgs, Stored } from "../../typings";
|
|
3
3
|
import { ModelState } from "../typings";
|
|
4
|
-
|
|
5
|
-
hiddenCategoryIds: string[];
|
|
6
|
-
isNullCategoryHidden: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface CategoryState extends ModelState<Stored<Category>> {
|
|
9
|
-
categoryVisibility: CategoryVisibility;
|
|
10
|
-
}
|
|
4
|
+
export type CategoryState = ModelState<Stored<Category>>;
|
|
11
5
|
export declare const categorySlice: import("@reduxjs/toolkit").Slice<CategoryState, {
|
|
12
|
-
initializeCategories:
|
|
13
|
-
|
|
6
|
+
initializeCategories: <TState extends ModelState<Stored<Category>>>(state: TState, action: {
|
|
7
|
+
payload: Stored<Category>[];
|
|
8
|
+
type: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
addCategory: <TState_1 extends ModelState<Stored<Category>>>(state: TState_1, action: {
|
|
14
11
|
payload: Stored<Category>;
|
|
15
12
|
type: string;
|
|
16
13
|
}) => void;
|
|
17
|
-
updateCategory: <
|
|
14
|
+
updateCategory: <TState_2 extends ModelState<Stored<Category>>>(state: TState_2, action: {
|
|
18
15
|
payload: Stored<Category>;
|
|
19
16
|
type: string;
|
|
20
17
|
}) => void;
|
|
21
|
-
deleteCategory: <
|
|
18
|
+
deleteCategory: <TState_3 extends ModelState<Stored<Category>>>(state: TState_3, action: {
|
|
22
19
|
payload: string;
|
|
23
20
|
type: string;
|
|
24
21
|
}) => void;
|
|
25
|
-
hideCategory: (state: import("immer/dist/internal.js").WritableDraft<CategoryState>, action: {
|
|
26
|
-
payload: string | null;
|
|
27
|
-
}) => void;
|
|
28
|
-
hideAllCategories: (state: import("immer/dist/internal.js").WritableDraft<CategoryState>) => void;
|
|
29
|
-
unhideCategory: (state: import("immer/dist/internal.js").WritableDraft<CategoryState>, action: {
|
|
30
|
-
payload: string | null;
|
|
31
|
-
}) => void;
|
|
32
|
-
unhideAllCategories: (state: import("immer/dist/internal.js").WritableDraft<CategoryState>) => void;
|
|
33
22
|
}, "categories">;
|
|
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"
|
|
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">;
|
|
35
24
|
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
|
|
25
|
+
export declare const selectCategories: ((state: OvermapRootState) => Stored<Category>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<Category>>) => Stored<Category>[], {
|
|
37
26
|
clearCache: () => void;
|
|
38
27
|
}> & {
|
|
39
28
|
clearCache: () => void;
|
|
40
29
|
};
|
|
41
30
|
export declare const selectCategoriesOfWorkspace: OvermapSelectorWithArgs<string, Category[]>;
|
|
42
31
|
export declare const selectCategoryById: OvermapSelectorWithArgs<string, Category | undefined>;
|
|
43
|
-
export declare const selectCategoryVisibility: (state: OvermapRootState) => CategoryVisibility;
|
|
44
|
-
export declare const selectHiddenCategoryCount: (state: OvermapRootState) => number;
|
|
45
32
|
export declare const selectIssueCountOfCategory: OvermapSelectorWithArgs<string | null, number>;
|
|
46
33
|
export declare const categoryReducer: Reducer<CategoryState>;
|
|
47
|
-
export {};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
2
2
|
import { ModelState } from "../typings";
|
|
3
|
-
import { OvermapSelector, OvermapSelectorWithArgs, Stored,
|
|
4
|
-
export type FormRevisionAttachmentState = ModelState<Stored<
|
|
3
|
+
import { OvermapSelector, OvermapSelectorWithArgs, Stored, FormRevisionAttachment } from "../../typings";
|
|
4
|
+
export type FormRevisionAttachmentState = ModelState<Stored<FormRevisionAttachment>>;
|
|
5
5
|
export declare const formRevisionAttachmentSlice: import("@reduxjs/toolkit").Slice<FormRevisionAttachmentState, {
|
|
6
|
-
initializeFormRevisionAttachments: <TState extends ModelState<Stored<
|
|
7
|
-
payload: Stored<
|
|
6
|
+
initializeFormRevisionAttachments: <TState extends ModelState<Stored<FormRevisionAttachment>>>(state: TState, action: {
|
|
7
|
+
payload: Stored<FormRevisionAttachment>[];
|
|
8
8
|
type: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
addFormRevisionAttachment: <TState_1 extends ModelState<Stored<
|
|
11
|
-
payload: Stored<
|
|
10
|
+
addFormRevisionAttachment: <TState_1 extends ModelState<Stored<FormRevisionAttachment>>>(state: TState_1, action: {
|
|
11
|
+
payload: Stored<FormRevisionAttachment>;
|
|
12
12
|
type: string;
|
|
13
13
|
}) => void;
|
|
14
|
-
addFormRevisionAttachments: <TState_2 extends ModelState<Stored<
|
|
15
|
-
payload: Stored<
|
|
14
|
+
addFormRevisionAttachments: <TState_2 extends ModelState<Stored<FormRevisionAttachment>>>(state: TState_2, action: {
|
|
15
|
+
payload: Stored<FormRevisionAttachment>[];
|
|
16
16
|
type: string;
|
|
17
17
|
}) => void;
|
|
18
|
-
setFormRevisionAttachment: <TState_3 extends ModelState<Stored<
|
|
19
|
-
payload: Stored<
|
|
18
|
+
setFormRevisionAttachment: <TState_3 extends ModelState<Stored<FormRevisionAttachment>>>(state: TState_3, action: {
|
|
19
|
+
payload: Stored<FormRevisionAttachment>;
|
|
20
20
|
type: string;
|
|
21
21
|
}) => void;
|
|
22
|
-
setFormRevisionAttachments: <TState_4 extends ModelState<Stored<
|
|
23
|
-
payload: Stored<
|
|
22
|
+
setFormRevisionAttachments: <TState_4 extends ModelState<Stored<FormRevisionAttachment>>>(state: TState_4, action: {
|
|
23
|
+
payload: Stored<FormRevisionAttachment>[];
|
|
24
24
|
type: string;
|
|
25
25
|
}) => void;
|
|
26
|
-
updateFormRevisionAttachment: <TState_5 extends ModelState<Stored<
|
|
27
|
-
payload: Stored<
|
|
26
|
+
updateFormRevisionAttachment: <TState_5 extends ModelState<Stored<FormRevisionAttachment>>>(state: TState_5, action: {
|
|
27
|
+
payload: Stored<FormRevisionAttachment>;
|
|
28
28
|
type: string;
|
|
29
29
|
}) => void;
|
|
30
|
-
updateFormRevisionAttachments: <TState_6 extends ModelState<Stored<
|
|
31
|
-
payload: Stored<
|
|
30
|
+
updateFormRevisionAttachments: <TState_6 extends ModelState<Stored<FormRevisionAttachment>>>(state: TState_6, action: {
|
|
31
|
+
payload: Stored<FormRevisionAttachment>[];
|
|
32
32
|
type: string;
|
|
33
33
|
}) => void;
|
|
34
|
-
deleteFormRevisionAttachment: <TState_7 extends ModelState<Stored<
|
|
34
|
+
deleteFormRevisionAttachment: <TState_7 extends ModelState<Stored<FormRevisionAttachment>>>(state: TState_7, action: {
|
|
35
35
|
payload: string;
|
|
36
36
|
type: string;
|
|
37
37
|
}) => void;
|
|
38
|
-
deleteFormRevisionAttachments: <TState_8 extends ModelState<Stored<
|
|
38
|
+
deleteFormRevisionAttachments: <TState_8 extends ModelState<Stored<FormRevisionAttachment>>>(state: TState_8, action: {
|
|
39
39
|
payload: string[];
|
|
40
40
|
type: string;
|
|
41
41
|
}) => void;
|
|
42
42
|
}, "formRevisionAttachments">;
|
|
43
|
-
export declare const initializeFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<
|
|
44
|
-
export declare const
|
|
45
|
-
export declare const selectAttachmentsOfFormRevision: OvermapSelectorWithArgs<string, Stored<
|
|
43
|
+
export declare const initializeFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormRevisionAttachment>[], "formRevisionAttachments/initializeFormRevisionAttachments">, addFormRevisionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormRevisionAttachment>, "formRevisionAttachments/addFormRevisionAttachment">, addFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormRevisionAttachment>[], "formRevisionAttachments/addFormRevisionAttachments">, setFormRevisionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormRevisionAttachment>, "formRevisionAttachments/setFormRevisionAttachment">, setFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormRevisionAttachment>[], "formRevisionAttachments/setFormRevisionAttachments">, updateFormRevisionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormRevisionAttachment>, "formRevisionAttachments/updateFormRevisionAttachment">, updateFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormRevisionAttachment>[], "formRevisionAttachments/updateFormRevisionAttachments">, deleteFormRevisionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "formRevisionAttachments/deleteFormRevisionAttachment">, deleteFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "formRevisionAttachments/deleteFormRevisionAttachments">;
|
|
44
|
+
export declare const selectFormRevisionAttachmentsMapping: OvermapSelector<FormRevisionAttachmentState["instances"]>;
|
|
45
|
+
export declare const selectAttachmentsOfFormRevision: OvermapSelectorWithArgs<string, Stored<FormRevisionAttachment>[]>;
|
|
46
46
|
export declare const formRevisionAttachmentReducer: Reducer<FormRevisionAttachmentState>;
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored,
|
|
2
|
+
import { OvermapRootState, OvermapSelector, OvermapSelectorWithArgs, Stored, Form, FormRevision } from "../../typings";
|
|
3
3
|
import { ModelState } from "../typings";
|
|
4
|
-
export type FormRevisionState = ModelState<Stored<
|
|
4
|
+
export type FormRevisionState = ModelState<Stored<FormRevision>>;
|
|
5
5
|
export declare const formRevisionsSlice: import("@reduxjs/toolkit").Slice<FormRevisionState, {
|
|
6
|
-
initializeFormRevisions: <TState extends ModelState<Stored<
|
|
7
|
-
payload: Stored<
|
|
6
|
+
initializeFormRevisions: <TState extends ModelState<Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>>>(state: TState, action: {
|
|
7
|
+
payload: Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>[];
|
|
8
8
|
type: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
setFormRevision: <TState_1 extends ModelState<Stored<
|
|
11
|
-
payload: Stored<
|
|
10
|
+
setFormRevision: <TState_1 extends ModelState<Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>>>(state: TState_1, action: {
|
|
11
|
+
payload: Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>;
|
|
12
12
|
type: string;
|
|
13
13
|
}) => void;
|
|
14
|
-
addFormRevision: <TState_2 extends ModelState<Stored<
|
|
15
|
-
payload: Stored<
|
|
14
|
+
addFormRevision: <TState_2 extends ModelState<Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>>>(state: TState_2, action: {
|
|
15
|
+
payload: Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>;
|
|
16
16
|
type: string;
|
|
17
17
|
}) => void;
|
|
18
|
-
addFormRevisions: <TState_3 extends ModelState<Stored<
|
|
19
|
-
payload: Stored<
|
|
18
|
+
addFormRevisions: <TState_3 extends ModelState<Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>>>(state: TState_3, action: {
|
|
19
|
+
payload: Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>[];
|
|
20
20
|
type: string;
|
|
21
21
|
}) => void;
|
|
22
|
-
deleteFormRevision: <TState_4 extends ModelState<Stored<
|
|
22
|
+
deleteFormRevision: <TState_4 extends ModelState<Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>>>(state: TState_4, action: {
|
|
23
23
|
payload: string;
|
|
24
24
|
type: string;
|
|
25
25
|
}) => void;
|
|
26
|
-
deleteFormRevisions: <TState_5 extends ModelState<Stored<
|
|
26
|
+
deleteFormRevisions: <TState_5 extends ModelState<Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>>>(state: TState_5, action: {
|
|
27
27
|
payload: string[];
|
|
28
28
|
type: string;
|
|
29
29
|
}) => void;
|
|
30
30
|
}, "formRevisions">;
|
|
31
|
-
export declare const setFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<
|
|
32
|
-
export declare const selectFormRevisionMapping: (state: OvermapRootState) => Record<string, Stored<
|
|
33
|
-
export declare const selectFormRevisions: ((state: OvermapRootState) => Stored<
|
|
31
|
+
export declare const setFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>, "formRevisions/setFormRevision">, initializeFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>[], "formRevisions/initializeFormRevisions">, addFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>, "formRevisions/addFormRevision">, addFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormRevision<import('../../typings/models/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<FormRevision<import('../../typings/models/forms').ISerializedField>>>;
|
|
33
|
+
export declare const selectFormRevisions: ((state: OvermapRootState) => Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>>) => Stored<FormRevision<import('../../typings/models/forms').ISerializedField>>[], {
|
|
34
34
|
clearCache: () => void;
|
|
35
35
|
}> & {
|
|
36
36
|
clearCache: () => void;
|
|
37
37
|
};
|
|
38
|
-
export declare const selectFormRevision: OvermapSelectorWithArgs<string, Stored<
|
|
39
|
-
export declare const _selectLatestFormRevision: (formRevisions: FormRevisionState["instances"], formId: string) => Stored<
|
|
40
|
-
export declare const selectLatestFormRevisionOfForm: OvermapSelectorWithArgs<string, Stored<
|
|
41
|
-
export declare const selectFormRevisionsOfForm: OvermapSelectorWithArgs<string, Stored<
|
|
42
|
-
export declare const selectLatestFormRevisionsOfAssetTypes: OvermapSelectorWithArgs<string[], Record<string, Stored<
|
|
43
|
-
export declare const selectLatestFormRevisionByForm: OvermapSelector<Record<Stored<
|
|
38
|
+
export declare const selectFormRevision: OvermapSelectorWithArgs<string, Stored<FormRevision>>;
|
|
39
|
+
export declare const _selectLatestFormRevision: (formRevisions: FormRevisionState["instances"], formId: string) => Stored<FormRevision>;
|
|
40
|
+
export declare const selectLatestFormRevisionOfForm: OvermapSelectorWithArgs<string, Stored<FormRevision>>;
|
|
41
|
+
export declare const selectFormRevisionsOfForm: OvermapSelectorWithArgs<string, Stored<FormRevision>[]>;
|
|
42
|
+
export declare const selectLatestFormRevisionsOfAssetTypes: OvermapSelectorWithArgs<string[], Record<string, Stored<FormRevision>>>;
|
|
43
|
+
export declare const selectLatestFormRevisionByForm: OvermapSelector<Record<Stored<Form>["offline_id"], Stored<FormRevision>>>;
|
|
44
44
|
export declare const formRevisionReducer: Reducer<FormRevisionState>;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import {
|
|
2
|
+
import { CachedForm, Form } from '../../typings/models/forms';
|
|
3
3
|
import { SearchArgs } from '../../typings/search';
|
|
4
4
|
import { OvermapSelector, OvermapSelectorWithArgs } from '../../typings/store';
|
|
5
5
|
import { Stored } from "../../typings";
|
|
6
6
|
import { ModelState } from "../typings";
|
|
7
|
-
export type FormState = ModelState<Stored<
|
|
7
|
+
export type FormState = ModelState<Stored<Form>>;
|
|
8
8
|
export declare const formSlice: import("@reduxjs/toolkit").Slice<FormState, {
|
|
9
|
-
setForms: <TState extends ModelState<Stored<
|
|
10
|
-
payload: Stored<
|
|
9
|
+
setForms: <TState extends ModelState<Stored<Form>>>(state: TState, action: {
|
|
10
|
+
payload: Stored<Form>[];
|
|
11
11
|
type: string;
|
|
12
12
|
}) => void;
|
|
13
|
-
setForm: <TState_1 extends ModelState<Stored<
|
|
14
|
-
payload: Stored<
|
|
13
|
+
setForm: <TState_1 extends ModelState<Stored<Form>>>(state: TState_1, action: {
|
|
14
|
+
payload: Stored<Form>;
|
|
15
15
|
type: string;
|
|
16
16
|
}) => void;
|
|
17
|
-
addForm: <TState_2 extends ModelState<Stored<
|
|
18
|
-
payload: Stored<
|
|
17
|
+
addForm: <TState_2 extends ModelState<Stored<Form>>>(state: TState_2, action: {
|
|
18
|
+
payload: Stored<Form>;
|
|
19
19
|
type: string;
|
|
20
20
|
}) => void;
|
|
21
|
-
addForms: <TState_3 extends ModelState<Stored<
|
|
22
|
-
payload: Stored<
|
|
21
|
+
addForms: <TState_3 extends ModelState<Stored<Form>>>(state: TState_3, action: {
|
|
22
|
+
payload: Stored<Form>[];
|
|
23
23
|
type: string;
|
|
24
24
|
}) => void;
|
|
25
|
-
updateForm: <TState_4 extends ModelState<Stored<
|
|
26
|
-
payload: Stored<
|
|
25
|
+
updateForm: <TState_4 extends ModelState<Stored<Form>>>(state: TState_4, action: {
|
|
26
|
+
payload: Stored<Form>;
|
|
27
27
|
type: string;
|
|
28
28
|
}) => void;
|
|
29
|
-
deleteForm: <TState_5 extends ModelState<Stored<
|
|
29
|
+
deleteForm: <TState_5 extends ModelState<Stored<Form>>>(state: TState_5, action: {
|
|
30
30
|
payload: string;
|
|
31
31
|
type: string;
|
|
32
32
|
}) => void;
|
|
33
33
|
}, "forms">;
|
|
34
|
-
export declare const setForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<
|
|
34
|
+
export declare const setForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Form>[], "forms/setForms">, setForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Form>, "forms/setForm">, addForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Form>, "forms/addForm">, addForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Form>[], "forms/addForms">, updateForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Form>, "forms/updateForm">, deleteForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "forms/deleteForm">;
|
|
35
35
|
export type FormSearchArgs = SearchArgs<{
|
|
36
36
|
/** `undefined` means don't filter by favorite. `boolean` filters forms. */
|
|
37
37
|
favorites?: boolean;
|
|
38
38
|
/** organization owner */
|
|
39
39
|
organization?: number;
|
|
40
40
|
}>;
|
|
41
|
-
export declare const selectFormsMapping: OvermapSelector<Record<Stored<
|
|
42
|
-
export declare const selectFilteredForms: OvermapSelectorWithArgs<FormSearchArgs,
|
|
43
|
-
export declare const selectForm: OvermapSelectorWithArgs<string, Stored<
|
|
44
|
-
export declare const selectFormMapping: OvermapSelector<Record<Stored<
|
|
45
|
-
export declare const selectFormOfAssetType: OvermapSelectorWithArgs<string, Stored<
|
|
46
|
-
export declare const selectFormOfIssueType: OvermapSelectorWithArgs<string, Stored<
|
|
41
|
+
export declare const selectFormsMapping: OvermapSelector<Record<Stored<Form>["offline_id"], Stored<Form>>>;
|
|
42
|
+
export declare const selectFilteredForms: OvermapSelectorWithArgs<FormSearchArgs, CachedForm[]>;
|
|
43
|
+
export declare const selectForm: OvermapSelectorWithArgs<string, Stored<Form>>;
|
|
44
|
+
export declare const selectFormMapping: OvermapSelector<Record<Stored<Form>["offline_id"], Stored<Form>>>;
|
|
45
|
+
export declare const selectFormOfAssetType: OvermapSelectorWithArgs<string, Stored<Form>>;
|
|
46
|
+
export declare const selectFormOfIssueType: OvermapSelectorWithArgs<string, Stored<Form>>;
|
|
47
47
|
export declare const selectFormsCount: OvermapSelector<number>;
|
|
48
48
|
export declare const selectGeneralFormCount: OvermapSelector<number>;
|
|
49
49
|
export declare const formReducer: Reducer<FormState>;
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
2
2
|
import { ModelState } from "../typings";
|
|
3
|
-
import { OvermapSelector, OvermapSelectorWithArgs, Stored,
|
|
4
|
-
export type FormSubmissionAttachmentState = ModelState<Stored<
|
|
3
|
+
import { OvermapSelector, OvermapSelectorWithArgs, Stored, FormSubmissionAttachment } from "../../typings";
|
|
4
|
+
export type FormSubmissionAttachmentState = ModelState<Stored<FormSubmissionAttachment>>;
|
|
5
5
|
export declare const formSubmissionAttachmentSlice: import("@reduxjs/toolkit").Slice<FormSubmissionAttachmentState, {
|
|
6
|
-
initializeFormSubmissionAttachments: <TState extends ModelState<Stored<
|
|
7
|
-
payload: Stored<
|
|
6
|
+
initializeFormSubmissionAttachments: <TState extends ModelState<Stored<FormSubmissionAttachment>>>(state: TState, action: {
|
|
7
|
+
payload: Stored<FormSubmissionAttachment>[];
|
|
8
8
|
type: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
addFormSubmissionAttachment: <TState_1 extends ModelState<Stored<
|
|
11
|
-
payload: Stored<
|
|
10
|
+
addFormSubmissionAttachment: <TState_1 extends ModelState<Stored<FormSubmissionAttachment>>>(state: TState_1, action: {
|
|
11
|
+
payload: Stored<FormSubmissionAttachment>;
|
|
12
12
|
type: string;
|
|
13
13
|
}) => void;
|
|
14
|
-
addFormSubmissionAttachments: <TState_2 extends ModelState<Stored<
|
|
15
|
-
payload: Stored<
|
|
14
|
+
addFormSubmissionAttachments: <TState_2 extends ModelState<Stored<FormSubmissionAttachment>>>(state: TState_2, action: {
|
|
15
|
+
payload: Stored<FormSubmissionAttachment>[];
|
|
16
16
|
type: string;
|
|
17
17
|
}) => void;
|
|
18
|
-
setFormSubmissionAttachment: <TState_3 extends ModelState<Stored<
|
|
19
|
-
payload: Stored<
|
|
18
|
+
setFormSubmissionAttachment: <TState_3 extends ModelState<Stored<FormSubmissionAttachment>>>(state: TState_3, action: {
|
|
19
|
+
payload: Stored<FormSubmissionAttachment>;
|
|
20
20
|
type: string;
|
|
21
21
|
}) => void;
|
|
22
|
-
setFormSubmissionAttachments: <TState_4 extends ModelState<Stored<
|
|
23
|
-
payload: Stored<
|
|
22
|
+
setFormSubmissionAttachments: <TState_4 extends ModelState<Stored<FormSubmissionAttachment>>>(state: TState_4, action: {
|
|
23
|
+
payload: Stored<FormSubmissionAttachment>[];
|
|
24
24
|
type: string;
|
|
25
25
|
}) => void;
|
|
26
|
-
updateFormSubmissionAttachment: <TState_5 extends ModelState<Stored<
|
|
27
|
-
payload: Stored<
|
|
26
|
+
updateFormSubmissionAttachment: <TState_5 extends ModelState<Stored<FormSubmissionAttachment>>>(state: TState_5, action: {
|
|
27
|
+
payload: Stored<FormSubmissionAttachment>;
|
|
28
28
|
type: string;
|
|
29
29
|
}) => void;
|
|
30
|
-
updateFormSubmissionAttachments: <TState_6 extends ModelState<Stored<
|
|
31
|
-
payload: Stored<
|
|
30
|
+
updateFormSubmissionAttachments: <TState_6 extends ModelState<Stored<FormSubmissionAttachment>>>(state: TState_6, action: {
|
|
31
|
+
payload: Stored<FormSubmissionAttachment>[];
|
|
32
32
|
type: string;
|
|
33
33
|
}) => void;
|
|
34
|
-
deleteFormSubmissionAttachment: <TState_7 extends ModelState<Stored<
|
|
34
|
+
deleteFormSubmissionAttachment: <TState_7 extends ModelState<Stored<FormSubmissionAttachment>>>(state: TState_7, action: {
|
|
35
35
|
payload: string;
|
|
36
36
|
type: string;
|
|
37
37
|
}) => void;
|
|
38
|
-
deleteFormSubmissionAttachments: <TState_8 extends ModelState<Stored<
|
|
38
|
+
deleteFormSubmissionAttachments: <TState_8 extends ModelState<Stored<FormSubmissionAttachment>>>(state: TState_8, action: {
|
|
39
39
|
payload: string[];
|
|
40
40
|
type: string;
|
|
41
41
|
}) => void;
|
|
42
42
|
}, "formSubmissionAttachments">;
|
|
43
|
-
export declare const initializeFormSubmissionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<
|
|
43
|
+
export declare const initializeFormSubmissionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormSubmissionAttachment>[], "formSubmissionAttachments/initializeFormSubmissionAttachments">, addFormSubmissionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormSubmissionAttachment>, "formSubmissionAttachments/addFormSubmissionAttachment">, addFormSubmissionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormSubmissionAttachment>[], "formSubmissionAttachments/addFormSubmissionAttachments">, setFormSubmissionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormSubmissionAttachment>, "formSubmissionAttachments/setFormSubmissionAttachment">, setFormSubmissionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormSubmissionAttachment>[], "formSubmissionAttachments/setFormSubmissionAttachments">, updateFormSubmissionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormSubmissionAttachment>, "formSubmissionAttachments/updateFormSubmissionAttachment">, updateFormSubmissionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<FormSubmissionAttachment>[], "formSubmissionAttachments/updateFormSubmissionAttachments">, deleteFormSubmissionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "formSubmissionAttachments/deleteFormSubmissionAttachment">, deleteFormSubmissionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "formSubmissionAttachments/deleteFormSubmissionAttachments">;
|
|
44
44
|
export declare const selectFormSubmissionAttachmentsMapping: OvermapSelector<FormSubmissionAttachmentState["instances"]>;
|
|
45
|
-
export declare const selectAttachmentsOfFormSubmission: OvermapSelectorWithArgs<string, Stored<
|
|
45
|
+
export declare const selectAttachmentsOfFormSubmission: OvermapSelectorWithArgs<string, Stored<FormSubmissionAttachment>[]>;
|
|
46
46
|
export declare const formSubmissionAttachmentReducer: Reducer<FormSubmissionAttachmentState>;
|