@overmap-ai/core 1.0.71-fields.9 → 1.0.71-org-projs-only.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 +1062 -1970
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +1063 -1971
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/services/AssetAttachmentService.d.ts +8 -32
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +9 -32
- package/dist/sdk/services/BaseAttachmentService.d.ts +20 -18
- package/dist/sdk/services/BaseUploadService.d.ts +1 -2
- package/dist/sdk/services/DocumentAttachmentService.d.ts +8 -30
- package/dist/sdk/services/FormService.d.ts +15 -13
- package/dist/sdk/services/FormSubmissionService.d.ts +29 -10
- package/dist/sdk/services/GeoImageService.d.ts +1 -1
- package/dist/sdk/services/IssueAssociationService.d.ts +2 -2
- package/dist/sdk/services/IssueAttachmentService.d.ts +8 -31
- package/dist/sdk/services/IssueService.d.ts +3 -0
- package/dist/sdk/services/ProjectAttachmentService.d.ts +8 -31
- package/dist/sdk/services/TeamService.d.ts +1 -1
- package/dist/sdk/services/WorkspaceService.d.ts +1 -1
- package/dist/sdk/services/index.d.ts +0 -11
- package/dist/store/slices/formRevisionSlice.d.ts +15 -14
- package/dist/store/slices/formSlice.d.ts +5 -1
- package/dist/store/slices/formSubmissionSlice.d.ts +6 -0
- package/dist/store/slices/index.d.ts +0 -8
- package/dist/store/store.d.ts +1 -9
- package/dist/typings/files.d.ts +4 -8
- package/dist/typings/models/assets.d.ts +0 -15
- package/dist/typings/models/attachments.d.ts +6 -1
- package/dist/typings/models/forms.d.ts +113 -12
- package/dist/typings/models/index.d.ts +0 -1
- package/dist/typings/models/issues.d.ts +0 -15
- package/dist/typings/models/store.d.ts +1 -9
- package/dist/utils/file.d.ts +2 -2
- package/package.json +3 -5
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +0 -12
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +0 -20
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +0 -12
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +0 -8
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +0 -12
- package/dist/sdk/services/FormRevisionService.d.ts +0 -8
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +0 -13
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +0 -13
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +0 -10
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +0 -12
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +0 -8
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +0 -52
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +0 -53
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +0 -52
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +0 -53
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +0 -52
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +0 -52
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +0 -52
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +0 -54
- package/dist/typings/models/fields.d.ts +0 -16
package/dist/store/store.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Reducer } from "redux";
|
|
|
3
3
|
import { Config, OfflineAction, OfflineMetadata } from "@redux-offline/redux-offline/lib/types";
|
|
4
4
|
import request from "superagent";
|
|
5
5
|
import { type BaseSDK, type OfflineMetaEffect, OutboxCoordinator, RequestDetails } from "../sdk";
|
|
6
|
-
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState,
|
|
6
|
+
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VersioningState, WorkspaceState } from "./slices";
|
|
7
7
|
import type { BaseState, OvermapRootState } from "../typings";
|
|
8
8
|
export declare const VERSION_REDUCER_KEY = "versioning";
|
|
9
9
|
export declare const overmapReducers: {
|
|
@@ -45,14 +45,6 @@ export declare const overmapReducers: {
|
|
|
45
45
|
issueAttachmentReducer: Reducer<IssueAttachmentState>;
|
|
46
46
|
geoImageReducer: Reducer<GeoImageSliceState>;
|
|
47
47
|
issueAssociationReducer: Reducer<IssueAssociationSliceState>;
|
|
48
|
-
issueTypeFieldsReducer: Reducer<IssueTypeFieldsState>;
|
|
49
|
-
issueTypeFieldValuesReducer: Reducer<IssueTypeFieldValuesState>;
|
|
50
|
-
issueTypeFieldsAttachmentReducer: Reducer<IssueTypeFieldsAttachmentState>;
|
|
51
|
-
issueTypeFieldValuesAttachmentReducer: Reducer<IssueTypeFieldValuesAttachmentState>;
|
|
52
|
-
assetTypeFieldsReducer: Reducer<AssetTypeFieldsState>;
|
|
53
|
-
assetTypeFieldValuesReducer: Reducer<AssetTypeFieldValuesState>;
|
|
54
|
-
assetTypeFieldsAttachmentReducer: Reducer<AssetTypeFieldsAttachmentState>;
|
|
55
|
-
assetTypeFieldValuesAttachmentReducer: Reducer<AssetTypeFieldValuesAttachmentState>;
|
|
56
48
|
};
|
|
57
49
|
export declare const resetStore = "RESET";
|
|
58
50
|
export declare const overmapRootReducer: Reducer<OvermapRootState>;
|
package/dist/typings/files.d.ts
CHANGED
|
@@ -12,14 +12,10 @@ export type FileModel = MaybeObjectURL<{
|
|
|
12
12
|
export interface FileWithNameModel extends FileModel {
|
|
13
13
|
file_name: string;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
/** the attributes needed to generate a presigned url for a file that is being attempted to be uploaded */
|
|
16
|
+
export interface FileUploadPayload {
|
|
17
|
+
sha1: string;
|
|
18
18
|
extension: string;
|
|
19
|
+
file_type: string;
|
|
19
20
|
size: number;
|
|
20
21
|
}
|
|
21
|
-
export interface FileModelPayload {
|
|
22
|
-
file_sha1: FileWithNameModel["file_sha1"];
|
|
23
|
-
file_name: FileWithNameModel["file_name"];
|
|
24
|
-
file_extension: string;
|
|
25
|
-
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { BaseSerializedObject, ISerializedField } from "@overmap-ai/forms";
|
|
2
1
|
import type { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel, TimestampedModel } from "./base";
|
|
3
2
|
import type { CanvasMarkableModel, MarkableModel } from "./geo";
|
|
4
|
-
import type { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from "./fields";
|
|
5
3
|
export interface Asset extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel {
|
|
6
4
|
asset_type: string;
|
|
7
5
|
created_at?: string;
|
|
@@ -25,16 +23,3 @@ export interface AssetStageCompletion extends OfflineModel, TimestampedModel, Su
|
|
|
25
23
|
stage: string;
|
|
26
24
|
}
|
|
27
25
|
export type CompletedStagesMapping = Record<string, Record<string, string>>;
|
|
28
|
-
export interface AssetTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
29
|
-
asset_type: string;
|
|
30
|
-
}
|
|
31
|
-
export interface AssetTypeFieldsAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
32
|
-
fields_revision: string;
|
|
33
|
-
}
|
|
34
|
-
export interface AssetTypeFieldValues extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
35
|
-
fields_revision: string;
|
|
36
|
-
asset: string;
|
|
37
|
-
}
|
|
38
|
-
export interface AssetTypeFieldValuesAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
39
|
-
field_values: string;
|
|
40
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CreatedByModel, OfflineModel, SubmittedAtModel } from "./base";
|
|
2
|
-
import type { FileModel, FileWithNameModel } from "../files";
|
|
2
|
+
import type { FileModel, FileWithNameModel, MaybeObjectURL } from "../files";
|
|
3
3
|
export interface Attachment extends OfflineModel, SubmittedAtModel, FileWithNameModel, CreatedByModel {
|
|
4
4
|
description?: string;
|
|
5
5
|
file_type: string;
|
|
@@ -19,4 +19,9 @@ export interface ProjectAttachment extends Attachment {
|
|
|
19
19
|
export interface DocumentAttachment extends Attachment {
|
|
20
20
|
document: string;
|
|
21
21
|
}
|
|
22
|
+
/** to get an AttachmentPayload for a specific type, pass in the given AttachmentType
|
|
23
|
+
* ex. AttachmentPayload<IssueAttachment> */
|
|
24
|
+
export type AttachmentPayload<TAttachment> = Omit<TAttachment, "file" | "submitted_at" | "created_by"> & {
|
|
25
|
+
file: MaybeObjectURL<File>;
|
|
26
|
+
};
|
|
22
27
|
export type ProfilePic = FileModel;
|
|
@@ -1,26 +1,127 @@
|
|
|
1
|
+
import { HTMLInputTypeAttribute } from "react";
|
|
1
2
|
import type { CreatedByModel, OfflineModel, Payload, SubmittedAtModel, TimestampedModel } from "./base";
|
|
2
|
-
import type {
|
|
3
|
-
|
|
3
|
+
import type { Attachment } from "./attachments";
|
|
4
|
+
export interface BaseSerializedField<TIdentifier extends FieldTypeIdentifier = FieldTypeIdentifier> extends BaseSerializedObject<TIdentifier> {
|
|
5
|
+
label: string;
|
|
6
|
+
required: boolean;
|
|
7
|
+
image?: File | Promise<File>;
|
|
8
|
+
}
|
|
9
|
+
export interface SerializedCondition<TValue extends FieldValue = FieldValue> {
|
|
10
|
+
identifier: string;
|
|
11
|
+
value: TValue;
|
|
12
|
+
}
|
|
13
|
+
export interface SerializedFieldSection extends BaseSerializedObject {
|
|
14
|
+
label: string | null;
|
|
15
|
+
type: "section";
|
|
16
|
+
conditional: boolean;
|
|
17
|
+
condition: SerializedCondition | null;
|
|
18
|
+
fields: Exclude<ISerializedField, SerializedFieldSection>[];
|
|
19
|
+
}
|
|
20
|
+
interface BaseSerializedStringField extends BaseSerializedField {
|
|
21
|
+
minimum_length?: number;
|
|
22
|
+
maximum_length: number;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
}
|
|
25
|
+
export type StringInputType = Exclude<HTMLInputTypeAttribute, "checkbox" | "number" | "button">;
|
|
26
|
+
export interface SerializedStringField extends BaseSerializedStringField {
|
|
27
|
+
type: "string";
|
|
28
|
+
input_type?: StringInputType;
|
|
29
|
+
}
|
|
30
|
+
export interface SerializedQrField extends BaseSerializedField {
|
|
31
|
+
type: "qr";
|
|
32
|
+
}
|
|
33
|
+
export interface SerializedTextField extends BaseSerializedStringField {
|
|
34
|
+
type: "text";
|
|
35
|
+
}
|
|
36
|
+
export interface SerializedMultiStringField extends BaseSerializedStringField {
|
|
37
|
+
type: "multi-string";
|
|
38
|
+
}
|
|
39
|
+
export interface SerializedBooleanField extends BaseSerializedField {
|
|
40
|
+
type: "boolean";
|
|
41
|
+
}
|
|
42
|
+
export interface SerializedNumberField extends BaseSerializedField {
|
|
43
|
+
type: "number";
|
|
44
|
+
minimum: number | undefined;
|
|
45
|
+
maximum: number | undefined;
|
|
46
|
+
integers: boolean;
|
|
47
|
+
placeholder?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface SerializedDateField extends BaseSerializedField {
|
|
50
|
+
type: "date";
|
|
51
|
+
}
|
|
52
|
+
export type SelectFieldOptionValue = string;
|
|
53
|
+
/** Represents an option in the select input. Not to be confused with the 'field options' of SelectField. */
|
|
54
|
+
export interface SelectFieldOption {
|
|
55
|
+
value: SelectFieldOptionValue;
|
|
56
|
+
label: string;
|
|
57
|
+
}
|
|
58
|
+
export interface SerializedSelectField extends BaseSerializedField {
|
|
59
|
+
type: "select";
|
|
60
|
+
options: SelectFieldOption[];
|
|
61
|
+
placeholder?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface SerializedMultiSelectField extends BaseSerializedField {
|
|
64
|
+
type: "multi-select";
|
|
65
|
+
options: SelectFieldOption[];
|
|
66
|
+
placeholder?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface SerializedUploadField extends BaseSerializedField {
|
|
69
|
+
type: "upload";
|
|
70
|
+
/** @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept */
|
|
71
|
+
extensions?: string[];
|
|
72
|
+
/** in bytes */
|
|
73
|
+
maximum_size?: number;
|
|
74
|
+
/** how many files the user can upload to this field
|
|
75
|
+
* @default 1
|
|
76
|
+
*/
|
|
77
|
+
maximum_files?: number;
|
|
78
|
+
}
|
|
79
|
+
export type ISerializedField = SerializedTextField | SerializedBooleanField | SerializedNumberField | SerializedDateField | SerializedStringField | SerializedSelectField | SerializedFieldSection | SerializedMultiStringField | SerializedMultiSelectField | SerializedUploadField | SerializedQrField;
|
|
80
|
+
export type ISerializedOnlyField = Exclude<ISerializedField, SerializedFieldSection>;
|
|
81
|
+
/** All the possible field values */
|
|
82
|
+
export type FieldValue = string | number | boolean | string[] | File[] | Date | null;
|
|
83
|
+
export type FieldTypeIdentifier = "string" | "text" | "boolean" | "number" | "date" | "select" | "custom" | "section" | "multi-string" | "multi-select" | "upload" | "qr";
|
|
84
|
+
export interface BaseSerializedObject<TIdentifier extends FieldTypeIdentifier = FieldTypeIdentifier> {
|
|
85
|
+
description?: string | null;
|
|
86
|
+
identifier: string;
|
|
87
|
+
type: TIdentifier;
|
|
88
|
+
}
|
|
4
89
|
export interface Form extends OfflineModel, SubmittedAtModel, CreatedByModel {
|
|
90
|
+
asset_type?: string;
|
|
91
|
+
issue_type?: string;
|
|
5
92
|
organization?: number;
|
|
6
93
|
project?: number;
|
|
7
94
|
}
|
|
8
|
-
export
|
|
95
|
+
export type SubmittedForm = Form & OfflineModel & {
|
|
96
|
+
created_by: number;
|
|
97
|
+
submitted_at: string;
|
|
98
|
+
};
|
|
99
|
+
export type CachedForm = SubmittedForm & {
|
|
100
|
+
latestRevision: FormRevision;
|
|
101
|
+
};
|
|
102
|
+
export interface FormRevision<TFields extends BaseSerializedObject = ISerializedField> extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
|
|
9
103
|
form: string;
|
|
10
104
|
title: string;
|
|
11
105
|
description?: string;
|
|
106
|
+
fields: TFields[];
|
|
107
|
+
revision: number | "Pending";
|
|
12
108
|
}
|
|
13
|
-
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision">;
|
|
14
|
-
export interface FormSubmission extends OfflineModel, SubmittedAtModel,
|
|
109
|
+
export type FormRevisionPayload = Omit<Payload<FormRevision>, "revision" | "form">;
|
|
110
|
+
export interface FormSubmission extends OfflineModel, SubmittedAtModel, CreatedByModel {
|
|
111
|
+
published_at?: string | null;
|
|
15
112
|
form_revision: string;
|
|
16
113
|
project: number;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
114
|
+
values: Record<string, FieldValue>;
|
|
115
|
+
issue?: string;
|
|
116
|
+
asset?: string;
|
|
117
|
+
asset_stage?: string;
|
|
20
118
|
}
|
|
21
|
-
export interface FormSubmissionAttachment extends
|
|
22
|
-
|
|
119
|
+
export interface FormSubmissionAttachment extends Attachment {
|
|
120
|
+
submission: string;
|
|
121
|
+
field_identifier: string;
|
|
23
122
|
}
|
|
24
|
-
export interface FormRevisionAttachment extends
|
|
25
|
-
|
|
123
|
+
export interface FormRevisionAttachment extends Attachment {
|
|
124
|
+
revision: string;
|
|
125
|
+
field_identifier: string;
|
|
26
126
|
}
|
|
127
|
+
export {};
|
|
@@ -4,8 +4,6 @@ import type { WorkspaceIndexedModel } from "./workspace";
|
|
|
4
4
|
import type { CanvasMarkableModel, MarkableModel } from "./geo";
|
|
5
5
|
import type { User } from "./users";
|
|
6
6
|
import type { CSSColor } from "../colors";
|
|
7
|
-
import type { BaseSerializedObject, ISerializedField } from "@overmap-ai/forms";
|
|
8
|
-
import type { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from "./fields";
|
|
9
7
|
/**
|
|
10
8
|
* Represents a model instance that has been submitted to the backend. Some properties (depending on which model, but in
|
|
11
9
|
* all cases, the `offline_id`) are guaranteed to be set.
|
|
@@ -97,16 +95,3 @@ export interface IssueAssociation extends OfflineModel, SubmittedAtModel, Create
|
|
|
97
95
|
issue?: string;
|
|
98
96
|
asset?: string;
|
|
99
97
|
}
|
|
100
|
-
export interface IssueTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
|
|
101
|
-
issue_type: string;
|
|
102
|
-
}
|
|
103
|
-
export interface IssueTypeFieldsAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
104
|
-
fields_revision: string;
|
|
105
|
-
}
|
|
106
|
-
export interface IssueTypeFieldValues extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
|
|
107
|
-
fields_revision: string;
|
|
108
|
-
issue: string;
|
|
109
|
-
}
|
|
110
|
-
export interface IssueTypeFieldValuesAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
|
|
111
|
-
field_values: string;
|
|
112
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="@redux-offline/redux-offline" />
|
|
2
2
|
import { OfflineState } from "@redux-offline/redux-offline/lib/types";
|
|
3
|
-
import type { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState,
|
|
3
|
+
import type { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VERSION_REDUCER_KEY, VersioningState, WorkspaceState } from "../../store";
|
|
4
4
|
export interface BaseState {
|
|
5
5
|
outboxReducer: OutboxState;
|
|
6
6
|
offline: OfflineState;
|
|
@@ -43,12 +43,4 @@ export interface OvermapRootState extends BaseState {
|
|
|
43
43
|
agentsReducer: AgentsState;
|
|
44
44
|
geoImageReducer: GeoImageSliceState;
|
|
45
45
|
issueAssociationReducer: IssueAssociationSliceState;
|
|
46
|
-
issueTypeFieldsReducer: IssueTypeFieldsState;
|
|
47
|
-
issueTypeFieldValuesReducer: IssueTypeFieldValuesState;
|
|
48
|
-
issueTypeFieldsAttachmentReducer: IssueTypeFieldsAttachmentState;
|
|
49
|
-
issueTypeFieldValuesAttachmentReducer: IssueTypeFieldValuesAttachmentState;
|
|
50
|
-
assetTypeFieldsReducer: AssetTypeFieldsState;
|
|
51
|
-
assetTypeFieldValuesReducer: AssetTypeFieldValuesState;
|
|
52
|
-
assetTypeFieldsAttachmentReducer: AssetTypeFieldsAttachmentState;
|
|
53
|
-
assetTypeFieldValuesAttachmentReducer: AssetTypeFieldValuesAttachmentState;
|
|
54
46
|
}
|
package/dist/utils/file.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FileUploadPayload } from "../typings";
|
|
2
2
|
export declare const getFileS3Key: (file: File, hash?: string) => Promise<string>;
|
|
3
3
|
export declare function hashFile(file: Blob): Promise<string>;
|
|
4
4
|
export declare function getFileIdentifier(file: File): string;
|
|
@@ -6,7 +6,7 @@ export declare function getRenamedFile(file: File, newName: string): File & {
|
|
|
6
6
|
name: string;
|
|
7
7
|
};
|
|
8
8
|
export declare function downloadInMemoryFile(filename: string, text: string): void;
|
|
9
|
-
export declare const constructUploadedFilePayloads: (files: File[]) => Promise<
|
|
9
|
+
export declare const constructUploadedFilePayloads: (files: File[]) => Promise<FileUploadPayload[]>;
|
|
10
10
|
export declare const fileToBlob: (dataUrl: string) => Promise<Blob>;
|
|
11
11
|
export declare const blobToBase64: (blob: Blob) => Promise<string>;
|
|
12
12
|
/** Converts a profile `file` and `fileSha1` into an img src that can be rendered. This relies on an API request. */
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Core functionality for Overmap",
|
|
4
4
|
"author": "Wôrdn Inc.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
|
-
"version": "1.0.71-
|
|
6
|
+
"version": "1.0.71-org-projs-only.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|
|
@@ -39,8 +39,7 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
|
41
41
|
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
42
|
-
"@overmap-ai/blocks": "
|
|
43
|
-
"@overmap-ai/forms": "^1.0.17-radio-field.16",
|
|
42
|
+
"@overmap-ai/blocks": "1.0.31-tailwind-components.25",
|
|
44
43
|
"@rollup/plugin-commonjs": "^25.0.4",
|
|
45
44
|
"@testing-library/dom": "^9.3.4",
|
|
46
45
|
"@testing-library/react": "^14.1.2",
|
|
@@ -87,8 +86,7 @@
|
|
|
87
86
|
"vitest": "^1.2.1"
|
|
88
87
|
},
|
|
89
88
|
"peerDependencies": {
|
|
90
|
-
"@overmap-ai/blocks": "
|
|
91
|
-
"@overmap-ai/forms": "^1.0.17-radio-field.16",
|
|
89
|
+
"@overmap-ai/blocks": "1.0.31-tailwind-components.25",
|
|
92
90
|
"@tiptap/core": "^2.4.0",
|
|
93
91
|
"leaflet": "^1.9.0",
|
|
94
92
|
"react": ">=18.2.0 <20.0.0",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AssetTypeFieldValuesAttachment, Created, OvermapRootState, Stored } from "../../typings";
|
|
2
|
-
import type { BaseSDK } from "../base";
|
|
3
|
-
import { BaseUploadService } from "./BaseUploadService";
|
|
4
|
-
export declare abstract class AssetTypeFieldValuesAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
5
|
-
bulkAdd(payloads: {
|
|
6
|
-
fieldValuesId: string;
|
|
7
|
-
fieldIdentifier: string;
|
|
8
|
-
file: File;
|
|
9
|
-
}[], batchSize?: number): Promise<[Stored<AssetTypeFieldValuesAttachment>[], Promise<Created<AssetTypeFieldValuesAttachment>[]>[]]>;
|
|
10
|
-
bulkDelete(ids: string[]): Promise<void>;
|
|
11
|
-
refreshStore(projectId: number): Promise<void>;
|
|
12
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { AssetTypeFieldValues, Created, Offline, OvermapRootState, Payload, Stored } from "../../typings";
|
|
2
|
-
import type { BaseSDK } from "../base";
|
|
3
|
-
import { BaseApiService } from "./BaseApiService";
|
|
4
|
-
import type { OptimisticModelResult } from "../typings";
|
|
5
|
-
import { FieldValue } from "@overmap-ai/forms";
|
|
6
|
-
export declare abstract class AssetTypeFieldValuesService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
7
|
-
add(payload: Payload<AssetTypeFieldValues>): OptimisticModelResult<AssetTypeFieldValues>;
|
|
8
|
-
bulkAdd(payload: {
|
|
9
|
-
values: Record<string, FieldValue>;
|
|
10
|
-
payloads: {
|
|
11
|
-
values: Record<string, FieldValue>;
|
|
12
|
-
asset: string;
|
|
13
|
-
fields_revision: string;
|
|
14
|
-
published_at: string;
|
|
15
|
-
}[];
|
|
16
|
-
}, batchSize?: number): [Stored<AssetTypeFieldValues>[], Promise<Created<AssetTypeFieldValues>[]>[]];
|
|
17
|
-
update(payload: Offline<Partial<Payload<AssetTypeFieldValues>>>): OptimisticModelResult<AssetTypeFieldValues>;
|
|
18
|
-
delete(id: string): Promise<void>;
|
|
19
|
-
refreshStore(projectId: number): Promise<void>;
|
|
20
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AssetTypeFieldsAttachment, OvermapRootState } from "../../typings";
|
|
2
|
-
import type { BaseSDK } from "../base";
|
|
3
|
-
import { BaseUploadService } from "./BaseUploadService";
|
|
4
|
-
import type { OptimisticMultipleModelResult } from "../typings";
|
|
5
|
-
export declare abstract class AssetTypeFieldsAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
-
bulkAdd(payloads: {
|
|
7
|
-
fieldsRevisionId: string;
|
|
8
|
-
fieldIdentifier: string;
|
|
9
|
-
file: File;
|
|
10
|
-
}[]): Promise<OptimisticMultipleModelResult<AssetTypeFieldsAttachment>>;
|
|
11
|
-
refreshStore(projectId: number): Promise<void>;
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AssetTypeFields, OvermapRootState, Payload } from "../../typings";
|
|
2
|
-
import type { BaseSDK } from "../base";
|
|
3
|
-
import { BaseApiService } from "./BaseApiService";
|
|
4
|
-
import { OptimisticModelResult } from "../typings";
|
|
5
|
-
export declare abstract class AssetTypeFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
-
add(payload: Payload<AssetTypeFields>): OptimisticModelResult<AssetTypeFields>;
|
|
7
|
-
refreshStore(projectId: number): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { FormRevisionAttachment, OvermapRootState } from "../../typings";
|
|
2
|
-
import type { BaseSDK } from "../base";
|
|
3
|
-
import { BaseUploadService } from "./BaseUploadService";
|
|
4
|
-
import type { OptimisticMultipleModelResult } from "../typings";
|
|
5
|
-
export declare abstract class FormRevisionAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
-
bulkAdd(payloads: {
|
|
7
|
-
revisionId: string;
|
|
8
|
-
fieldIdentifier: string;
|
|
9
|
-
file: File;
|
|
10
|
-
}[]): Promise<OptimisticMultipleModelResult<FormRevisionAttachment>>;
|
|
11
|
-
refreshStore(projectId: number, organizationId: number): Promise<void>;
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { FormRevision, FormRevisionPayload, OvermapRootState } from "../../typings";
|
|
2
|
-
import type { BaseSDK } from "../base";
|
|
3
|
-
import { BaseUploadService } from "./BaseUploadService";
|
|
4
|
-
import type { OptimisticModelResult } from "../typings";
|
|
5
|
-
export declare abstract class FormRevisionService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
-
add(payload: FormRevisionPayload): OptimisticModelResult<FormRevision>;
|
|
7
|
-
refreshStore(projectId: number, organizationId: number): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { FormSubmissionAttachment, OvermapRootState } from "../../typings";
|
|
2
|
-
import type { BaseSDK } from "../base";
|
|
3
|
-
import { BaseUploadService } from "./BaseUploadService";
|
|
4
|
-
import type { OptimisticMultipleModelResult } from "../typings";
|
|
5
|
-
export declare abstract class FormSubmissionAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
-
bulkAdd(payloads: {
|
|
7
|
-
submissionId: string;
|
|
8
|
-
fieldIdentifier: string;
|
|
9
|
-
file: File;
|
|
10
|
-
}[]): Promise<OptimisticMultipleModelResult<FormSubmissionAttachment>>;
|
|
11
|
-
bulkDelete(attachmentsIds: string[]): Promise<void>;
|
|
12
|
-
refreshStore(projectId: number): Promise<void>;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { IssueTypeFieldValuesAttachment, OvermapRootState } from "../../typings";
|
|
2
|
-
import type { BaseSDK } from "../base";
|
|
3
|
-
import { BaseUploadService } from "./BaseUploadService";
|
|
4
|
-
import type { OptimisticMultipleModelResult } from "../typings";
|
|
5
|
-
export declare abstract class IssueTypeFieldValuesAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
-
bulkAdd(payloads: {
|
|
7
|
-
fieldValuesId: string;
|
|
8
|
-
fieldIdentifier: string;
|
|
9
|
-
file: File;
|
|
10
|
-
}[]): Promise<OptimisticMultipleModelResult<IssueTypeFieldValuesAttachment>>;
|
|
11
|
-
bulkDelete(attachmentsIds: string[]): Promise<void>;
|
|
12
|
-
refreshStore(projectId: number): Promise<void>;
|
|
13
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IssueTypeFieldValues, Offline, OvermapRootState, Payload } from "../../typings";
|
|
2
|
-
import type { BaseSDK } from "../base";
|
|
3
|
-
import { BaseApiService } from "./BaseApiService";
|
|
4
|
-
import type { OptimisticModelResult } from "../typings";
|
|
5
|
-
export declare abstract class IssueTypeFieldValuesService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
-
add(payload: Payload<IssueTypeFieldValues>): OptimisticModelResult<IssueTypeFieldValues>;
|
|
7
|
-
update(payload: Offline<Partial<Payload<IssueTypeFieldValues>>>): OptimisticModelResult<IssueTypeFieldValues>;
|
|
8
|
-
delete(id: string): Promise<void>;
|
|
9
|
-
refreshStore(projectId: number): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { IssueTypeFieldsAttachment, OvermapRootState } from "../../typings";
|
|
2
|
-
import type { BaseSDK } from "../base";
|
|
3
|
-
import { BaseUploadService } from "./BaseUploadService";
|
|
4
|
-
import type { OptimisticMultipleModelResult } from "../typings";
|
|
5
|
-
export declare abstract class IssueTypeFieldsAttachmentService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseUploadService<TState, TSDK> {
|
|
6
|
-
bulkAdd(payloads: {
|
|
7
|
-
fieldsRevisionId: string;
|
|
8
|
-
fieldIdentifier: string;
|
|
9
|
-
file: File;
|
|
10
|
-
}[]): Promise<OptimisticMultipleModelResult<IssueTypeFieldsAttachment>>;
|
|
11
|
-
refreshStore(organizationId: number): Promise<void>;
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { IssueTypeFields, OvermapRootState, Payload } from "../../typings";
|
|
2
|
-
import type { BaseSDK } from "../base";
|
|
3
|
-
import { BaseApiService } from "./BaseApiService";
|
|
4
|
-
import { OptimisticModelResult } from "../typings";
|
|
5
|
-
export declare abstract class IssueTypeFieldsService<TState extends OvermapRootState, TSDK extends BaseSDK<TState>> extends BaseApiService<TState, TSDK> {
|
|
6
|
-
add(payload: Payload<IssueTypeFields>): OptimisticModelResult<IssueTypeFields>;
|
|
7
|
-
refreshStore(organizationId: number): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import type { AssetTypeFieldValuesAttachment, OvermapRootState, OvermapSelectorWithArgs, Stored } from "../../typings";
|
|
3
|
-
import type { ModelState } from "../typings";
|
|
4
|
-
export type AssetTypeFieldValuesAttachmentState = ModelState<Stored<AssetTypeFieldValuesAttachment>>;
|
|
5
|
-
export declare const assetTypeFieldValuesAttachmentSlice: import("@reduxjs/toolkit").Slice<AssetTypeFieldValuesAttachmentState, {
|
|
6
|
-
initializeAssetTypeFieldValuesAttachments: <TState extends ModelState<Stored<AssetTypeFieldValuesAttachment>>>(state: TState, action: {
|
|
7
|
-
payload: Stored<AssetTypeFieldValuesAttachment>[];
|
|
8
|
-
type: string;
|
|
9
|
-
}) => void;
|
|
10
|
-
addAssetTypeFieldValuesAttachment: <TState_1 extends ModelState<Stored<AssetTypeFieldValuesAttachment>>>(state: TState_1, action: {
|
|
11
|
-
payload: Stored<AssetTypeFieldValuesAttachment>;
|
|
12
|
-
type: string;
|
|
13
|
-
}) => void;
|
|
14
|
-
addAssetTypeFieldValuesAttachments: <TState_2 extends ModelState<Stored<AssetTypeFieldValuesAttachment>>>(state: TState_2, action: {
|
|
15
|
-
payload: Stored<AssetTypeFieldValuesAttachment>[];
|
|
16
|
-
type: string;
|
|
17
|
-
}) => void;
|
|
18
|
-
setAssetTypeFieldValuesAttachment: <TState_3 extends ModelState<Stored<AssetTypeFieldValuesAttachment>>>(state: TState_3, action: {
|
|
19
|
-
payload: Stored<AssetTypeFieldValuesAttachment>;
|
|
20
|
-
type: string;
|
|
21
|
-
}) => void;
|
|
22
|
-
setAssetTypeFieldValuesAttachments: <TState_4 extends ModelState<Stored<AssetTypeFieldValuesAttachment>>>(state: TState_4, action: {
|
|
23
|
-
payload: Stored<AssetTypeFieldValuesAttachment>[];
|
|
24
|
-
type: string;
|
|
25
|
-
}) => void;
|
|
26
|
-
updateAssetTypeFieldValuesAttachment: <TState_5 extends ModelState<Stored<AssetTypeFieldValuesAttachment>>>(state: TState_5, action: {
|
|
27
|
-
payload: Stored<AssetTypeFieldValuesAttachment>;
|
|
28
|
-
type: string;
|
|
29
|
-
}) => void;
|
|
30
|
-
updateAssetTypeFieldValuesAttachments: <TState_6 extends ModelState<Stored<AssetTypeFieldValuesAttachment>>>(state: TState_6, action: {
|
|
31
|
-
payload: Stored<AssetTypeFieldValuesAttachment>[];
|
|
32
|
-
type: string;
|
|
33
|
-
}) => void;
|
|
34
|
-
deleteAssetTypeFieldValuesAttachment: <TState_7 extends ModelState<Stored<AssetTypeFieldValuesAttachment>>>(state: TState_7, action: {
|
|
35
|
-
payload: string;
|
|
36
|
-
type: string;
|
|
37
|
-
}) => void;
|
|
38
|
-
deleteAssetTypeFieldValuesAttachments: <TState_8 extends ModelState<Stored<AssetTypeFieldValuesAttachment>>>(state: TState_8, action: {
|
|
39
|
-
payload: string[];
|
|
40
|
-
type: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
}, "assetTypeFieldValuesAttachments">;
|
|
43
|
-
export declare const initializeAssetTypeFieldValuesAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeFieldValuesAttachment>[], "assetTypeFieldValuesAttachments/initializeAssetTypeFieldValuesAttachments">, addAssetTypeFieldValuesAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeFieldValuesAttachment>, "assetTypeFieldValuesAttachments/addAssetTypeFieldValuesAttachment">, addAssetTypeFieldValuesAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeFieldValuesAttachment>[], "assetTypeFieldValuesAttachments/addAssetTypeFieldValuesAttachments">, setAssetTypeFieldValuesAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeFieldValuesAttachment>, "assetTypeFieldValuesAttachments/setAssetTypeFieldValuesAttachment">, setAssetTypeFieldValuesAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeFieldValuesAttachment>[], "assetTypeFieldValuesAttachments/setAssetTypeFieldValuesAttachments">, updateAssetTypeFieldValuesAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeFieldValuesAttachment>, "assetTypeFieldValuesAttachments/updateAssetTypeFieldValuesAttachment">, updateAssetTypeFieldValuesAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeFieldValuesAttachment>[], "assetTypeFieldValuesAttachments/updateAssetTypeFieldValuesAttachments">, deleteAssetTypeFieldValuesAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetTypeFieldValuesAttachments/deleteAssetTypeFieldValuesAttachment">, deleteAssetTypeFieldValuesAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assetTypeFieldValuesAttachments/deleteAssetTypeFieldValuesAttachments">;
|
|
44
|
-
export declare const selectAssetTypeFieldValuesAttachmentsMapping: (state: OvermapRootState) => Record<string, Stored<AssetTypeFieldValuesAttachment>>;
|
|
45
|
-
export declare const selectAssetTypeFieldValuesAttachments: ((state: OvermapRootState) => Stored<AssetTypeFieldValuesAttachment>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<AssetTypeFieldValuesAttachment>>) => Stored<AssetTypeFieldValuesAttachment>[], {
|
|
46
|
-
clearCache: () => void;
|
|
47
|
-
}> & {
|
|
48
|
-
clearCache: () => void;
|
|
49
|
-
};
|
|
50
|
-
export declare const selectAttachmentsOfAssetTypeFieldValues: OvermapSelectorWithArgs<string, Stored<AssetTypeFieldValuesAttachment>[]>;
|
|
51
|
-
export declare const selectAssetTypeFieldValuesAttachmentById: OvermapSelectorWithArgs<string, AssetTypeFieldValuesAttachment | undefined>;
|
|
52
|
-
export declare const assetTypeFieldValuesAttachmentReducer: Reducer<AssetTypeFieldValuesAttachmentState>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import type { AssetTypeFieldValues, OvermapRootState, OvermapSelectorWithArgs, Stored } from "../../typings";
|
|
3
|
-
import type { ModelState } from "../typings";
|
|
4
|
-
export type AssetTypeFieldValuesState = ModelState<Stored<AssetTypeFieldValues>>;
|
|
5
|
-
export declare const assetTypeFieldValuesSlice: import("@reduxjs/toolkit").Slice<AssetTypeFieldValuesState, {
|
|
6
|
-
initializeAssetTypeFieldValues: <TState extends ModelState<Stored<AssetTypeFieldValues>>>(state: TState, action: {
|
|
7
|
-
payload: Stored<AssetTypeFieldValues>[];
|
|
8
|
-
type: string;
|
|
9
|
-
}) => void;
|
|
10
|
-
addAssetTypeFieldValues: <TState_1 extends ModelState<Stored<AssetTypeFieldValues>>>(state: TState_1, action: {
|
|
11
|
-
payload: Stored<AssetTypeFieldValues>;
|
|
12
|
-
type: string;
|
|
13
|
-
}) => void;
|
|
14
|
-
addAssetTypeFieldValuesMany: <TState_2 extends ModelState<Stored<AssetTypeFieldValues>>>(state: TState_2, action: {
|
|
15
|
-
payload: Stored<AssetTypeFieldValues>[];
|
|
16
|
-
type: string;
|
|
17
|
-
}) => void;
|
|
18
|
-
setAssetTypeFieldValues: <TState_3 extends ModelState<Stored<AssetTypeFieldValues>>>(state: TState_3, action: {
|
|
19
|
-
payload: Stored<AssetTypeFieldValues>;
|
|
20
|
-
type: string;
|
|
21
|
-
}) => void;
|
|
22
|
-
setAssetTypeFieldValuesMany: <TState_4 extends ModelState<Stored<AssetTypeFieldValues>>>(state: TState_4, action: {
|
|
23
|
-
payload: Stored<AssetTypeFieldValues>[];
|
|
24
|
-
type: string;
|
|
25
|
-
}) => void;
|
|
26
|
-
updateAssetTypeFieldValues: <TState_5 extends ModelState<Stored<AssetTypeFieldValues>>>(state: TState_5, action: {
|
|
27
|
-
payload: Stored<AssetTypeFieldValues>;
|
|
28
|
-
type: string;
|
|
29
|
-
}) => void;
|
|
30
|
-
updateAssetTypeFieldValuesMany: <TState_6 extends ModelState<Stored<AssetTypeFieldValues>>>(state: TState_6, action: {
|
|
31
|
-
payload: Stored<AssetTypeFieldValues>[];
|
|
32
|
-
type: string;
|
|
33
|
-
}) => void;
|
|
34
|
-
deleteAssetTypeFieldValues: <TState_7 extends ModelState<Stored<AssetTypeFieldValues>>>(state: TState_7, action: {
|
|
35
|
-
payload: string;
|
|
36
|
-
type: string;
|
|
37
|
-
}) => void;
|
|
38
|
-
deleteAssetTypeFieldValuesMany: <TState_8 extends ModelState<Stored<AssetTypeFieldValues>>>(state: TState_8, action: {
|
|
39
|
-
payload: string[];
|
|
40
|
-
type: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
}, "assetTypeFieldValues">;
|
|
43
|
-
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">;
|
|
44
|
-
export declare const selectAssetTypeFieldValuesMapping: (state: OvermapRootState) => Record<string, Stored<AssetTypeFieldValues>>;
|
|
45
|
-
export declare const selectAssetTypeFieldValues: ((state: OvermapRootState) => Stored<AssetTypeFieldValues>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<AssetTypeFieldValues>>) => Stored<AssetTypeFieldValues>[], {
|
|
46
|
-
clearCache: () => void;
|
|
47
|
-
}> & {
|
|
48
|
-
clearCache: () => void;
|
|
49
|
-
};
|
|
50
|
-
export declare const selectAssetTypeFieldValuesOfAsset: OvermapSelectorWithArgs<string, AssetTypeFieldValues[]>;
|
|
51
|
-
export declare const selectAssetTypeValuesOfAssetType: OvermapSelectorWithArgs<string, Stored<AssetTypeFieldValues>[]>;
|
|
52
|
-
export declare const selectAssetTypeFieldValuesById: OvermapSelectorWithArgs<string, AssetTypeFieldValues | undefined>;
|
|
53
|
-
export declare const assetTypeFieldValuesReducer: Reducer<AssetTypeFieldValuesState>;
|