@overmap-ai/core 1.0.57-fix-agent-responses.0 → 1.0.57-fix-agent-responses.2
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/LICENSE +1 -0
- package/dist/constants/ui.d.ts +1 -1
- package/dist/enums/ui.d.ts +1 -1
- package/dist/forms/builder/constants.d.ts +1 -1
- package/dist/forms/builder/hooks.d.ts +1 -1
- package/dist/overmap-core.js +564 -615
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +564 -615
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +7 -7
- package/dist/sdk/services/AssetAttachmentService.d.ts +10 -0
- package/dist/sdk/services/AssetService.d.ts +11 -0
- package/dist/sdk/services/AssetStageCompletionService.d.ts +16 -0
- package/dist/sdk/services/AssetStageService.d.ts +11 -0
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +10 -0
- package/dist/sdk/services/AssetTypeService.d.ts +9 -0
- package/dist/sdk/services/UserFormService.d.ts +2 -2
- package/dist/sdk/services/UserFormSubmissionService.d.ts +1 -1
- package/dist/sdk/services/index.d.ts +6 -6
- package/dist/store/slices/assetSlice.d.ts +63 -0
- package/dist/store/slices/assetStageCompletionSlice.d.ts +15 -0
- package/dist/store/slices/assetStageSlice.d.ts +32 -0
- package/dist/store/slices/assetTypeSlice.d.ts +74 -0
- package/dist/store/slices/categorySlice.d.ts +4 -4
- package/dist/store/slices/documentSlice.d.ts +6 -7
- package/dist/store/slices/formRevisionSlice.d.ts +5 -5
- package/dist/store/slices/formSlice.d.ts +7 -7
- package/dist/store/slices/formSubmissionSlice.d.ts +2 -2
- package/dist/store/slices/index.d.ts +4 -4
- package/dist/store/slices/issueSlice.d.ts +4 -4
- package/dist/store/slices/projectFileSlice.d.ts +4 -4
- package/dist/store/slices/workspaceSlice.d.ts +4 -4
- package/dist/store/store.d.ts +13 -13
- package/dist/typings/models/access.d.ts +1 -0
- package/dist/typings/models/attachments.d.ts +6 -6
- package/dist/typings/models/components.d.ts +11 -7
- package/dist/typings/models/forms.d.ts +3 -3
- package/dist/utils/colors.d.ts +1 -1
- package/package.json +1 -1
- package/dist/sdk/services/ComponentAttachmentService.d.ts +0 -10
- package/dist/sdk/services/ComponentService.d.ts +0 -11
- package/dist/sdk/services/ComponentStageCompletionService.d.ts +0 -17
- package/dist/sdk/services/ComponentStageService.d.ts +0 -11
- package/dist/sdk/services/ComponentTypeAttachmentService.d.ts +0 -10
- package/dist/sdk/services/ComponentTypeService.d.ts +0 -9
- package/dist/store/slices/ComponentStageCompletionSlice.d.ts +0 -27
- package/dist/store/slices/componentSlice.d.ts +0 -73
- package/dist/store/slices/componentStageSlice.d.ts +0 -42
- package/dist/store/slices/componentTypeSlice.d.ts +0 -75
package/dist/store/store.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AnyAction, Reducer } from "redux";
|
|
|
3
3
|
import { Config, OfflineAction, OfflineMetadata, OfflineState } from "@redux-offline/redux-offline/lib/types";
|
|
4
4
|
import request from "superagent";
|
|
5
5
|
import { type OfflineMetaEffect, OutboxCoordinator, type OvermapSDK, RequestDetails } from "../sdk";
|
|
6
|
-
import { AgentsState, AuthState, CategoryState,
|
|
6
|
+
import { AgentsState, AuthState, CategoryState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeState, DocumentState, EmailDomainState, FileState, FormRevisionState, FormState, FormSubmissionState, IssueState, IssueTypeState, LicenseState, MapState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectFileState, ProjectState, RehydratedState, SettingState, UserState, WorkspaceState, TeamState } from "./slices";
|
|
7
7
|
import { VersioningState } from "./slices/versioningSlice";
|
|
8
8
|
import { RootState } from "../typings";
|
|
9
9
|
export declare const overmapReducers: {
|
|
@@ -11,10 +11,10 @@ export declare const overmapReducers: {
|
|
|
11
11
|
fileReducer: Reducer<FileState>;
|
|
12
12
|
authReducer: Reducer<AuthState>;
|
|
13
13
|
categoryReducer: Reducer<CategoryState>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
assetReducer: Reducer<AssetState>;
|
|
15
|
+
assetStageCompletionReducer: Reducer<AssetStageCompletionState>;
|
|
16
|
+
assetStageReducer: Reducer<AssetStageState>;
|
|
17
|
+
assetTypeReducer: Reducer<AssetTypeState>;
|
|
18
18
|
issueReducer: Reducer<IssueState>;
|
|
19
19
|
issueTypeReducer: Reducer<IssueTypeState>;
|
|
20
20
|
mapReducer: Reducer<MapState>;
|
|
@@ -42,10 +42,10 @@ export declare const overmapReducer: Reducer<import("redux").CombinedState<{
|
|
|
42
42
|
fileReducer: FileState;
|
|
43
43
|
authReducer: AuthState;
|
|
44
44
|
categoryReducer: CategoryState;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
assetReducer: AssetState;
|
|
46
|
+
assetStageCompletionReducer: AssetStageCompletionState;
|
|
47
|
+
assetStageReducer: AssetStageState;
|
|
48
|
+
assetTypeReducer: AssetTypeState;
|
|
49
49
|
issueReducer: IssueState;
|
|
50
50
|
issueTypeReducer: IssueTypeState;
|
|
51
51
|
mapReducer: MapState;
|
|
@@ -92,10 +92,10 @@ export declare const defaultStore: import("@reduxjs/toolkit/dist/configureStore"
|
|
|
92
92
|
fileReducer: FileState;
|
|
93
93
|
authReducer: AuthState;
|
|
94
94
|
categoryReducer: CategoryState;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
assetReducer: AssetState;
|
|
96
|
+
assetStageCompletionReducer: AssetStageCompletionState;
|
|
97
|
+
assetStageReducer: AssetStageState;
|
|
98
|
+
assetTypeReducer: AssetTypeState;
|
|
99
99
|
issueReducer: IssueState;
|
|
100
100
|
issueTypeReducer: IssueTypeState;
|
|
101
101
|
mapReducer: MapState;
|
|
@@ -10,11 +10,11 @@ export interface Attachment extends OfflineModel, FileWithNameModel, CreatedByMo
|
|
|
10
10
|
export interface IssueAttachment extends Attachment {
|
|
11
11
|
issue: string;
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
14
|
-
|
|
13
|
+
export interface AssetAttachment extends Attachment {
|
|
14
|
+
asset: string;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
17
|
-
|
|
16
|
+
export interface AssetTypeAttachment extends Attachment {
|
|
17
|
+
asset_type: string;
|
|
18
18
|
}
|
|
19
19
|
export interface ProjectAttachment extends Attachment {
|
|
20
20
|
project: Project["id"];
|
|
@@ -24,8 +24,8 @@ export interface DocumentAttachment extends Attachment {
|
|
|
24
24
|
}
|
|
25
25
|
export declare enum AttachmentModel {
|
|
26
26
|
Issue = "issue",
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
Asset = "asset",
|
|
28
|
+
AssetType = "asset_type",
|
|
29
29
|
Project = "project",
|
|
30
30
|
Document = "document"
|
|
31
31
|
}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import { IconModel, OfflineModel } from "./base";
|
|
1
|
+
import { IconModel, Model, OfflineModel } from "./base";
|
|
2
2
|
import { Marker } from "./geo";
|
|
3
|
-
export interface
|
|
3
|
+
export interface Asset extends OfflineModel {
|
|
4
4
|
marker: Marker | null;
|
|
5
|
-
|
|
5
|
+
asset_type: string;
|
|
6
6
|
created_at?: string;
|
|
7
7
|
label: string | null;
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface AssetType extends OfflineModel, IconModel {
|
|
10
10
|
name?: string;
|
|
11
11
|
description?: string;
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
14
|
-
|
|
13
|
+
export interface AssetStage extends OfflineModel {
|
|
14
|
+
asset_type: string;
|
|
15
15
|
name: string;
|
|
16
16
|
description?: string;
|
|
17
17
|
priority: number;
|
|
18
18
|
user_form?: string;
|
|
19
19
|
}
|
|
20
|
-
export type
|
|
20
|
+
export type AssetStagePayload = Omit<AssetStage, "asset_type">;
|
|
21
|
+
export interface AssetStageCompletion extends Model {
|
|
22
|
+
asset: string;
|
|
23
|
+
stage: string;
|
|
24
|
+
}
|
|
21
25
|
export type CompletedStagesMapping = Record<string, Record<string, string>>;
|
|
@@ -4,7 +4,7 @@ import { FileWithNameModel } from '../files';
|
|
|
4
4
|
import { WorkspaceIndexedModel } from "./workspace";
|
|
5
5
|
export type UserForm = Pick<WorkspaceIndexedModel, "index_workspace"> & {
|
|
6
6
|
favorite: boolean;
|
|
7
|
-
|
|
7
|
+
asset_type?: string;
|
|
8
8
|
issue_type?: string;
|
|
9
9
|
} & ({
|
|
10
10
|
owner_organization: number;
|
|
@@ -37,8 +37,8 @@ export interface UserFormSubmission extends OfflineModel, SubmittedAtModel, Crea
|
|
|
37
37
|
form_revision: string;
|
|
38
38
|
values: Record<string, FieldValue>;
|
|
39
39
|
issue?: string;
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
asset?: string;
|
|
41
|
+
asset_stage?: string;
|
|
42
42
|
}
|
|
43
43
|
export interface UserFormSubmissionAttachment extends OfflineModel, FileWithNameModel {
|
|
44
44
|
submission: string;
|
package/dist/utils/colors.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const Colors: Record<string, CSSColor>;
|
|
|
16
16
|
* categories, any updates to those colors should also result in an update to this color mapping to ensure all Category
|
|
17
17
|
* Badges defined within the App receive the appropriate Radix-ui/themes accentColor, so they render properly. */
|
|
18
18
|
export declare const ColorsToString: Record<string, ThemeOptions["accentColor"]>;
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const AssetStageColors: Record<string, CSSColor>;
|
|
20
20
|
export declare const defaultBadgeColor: CSSColor;
|
|
21
21
|
export declare const generateBadgeColors: (rawColor: CSSColor) => BadgeColors;
|
|
22
22
|
export declare function getStageColor(index: number): CSSColor;
|
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.57-fix-agent-responses.
|
|
6
|
+
"version": "1.0.57-fix-agent-responses.2",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseAttachmentService } from "./BaseAttachmentService";
|
|
2
|
-
import { AttachmentModel, ComponentAttachment } from "../../typings";
|
|
3
|
-
import { OptimisticMultipleModelResult } from "../typings";
|
|
4
|
-
export declare class ComponentAttachmentService extends BaseAttachmentService {
|
|
5
|
-
attachmentModel: AttachmentModel;
|
|
6
|
-
private buildOfflineAttachment;
|
|
7
|
-
attachFilesToComponent(files: File[], componentId: string): Promise<OptimisticMultipleModelResult<ComponentAttachment>>;
|
|
8
|
-
deleteComponentAttachment(attachmentId: string): Promise<void>;
|
|
9
|
-
refreshStore(): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { Component, Payload } from "../../typings";
|
|
3
|
-
import { OptimisticModelResult } from "../typings";
|
|
4
|
-
export declare class ComponentService extends BaseApiService {
|
|
5
|
-
add(component: Payload<Component>, workspaceId: string): OptimisticModelResult<Component>;
|
|
6
|
-
update(component: Component, workspaceId: string): OptimisticModelResult<Component>;
|
|
7
|
-
remove(id: string): Promise<undefined>;
|
|
8
|
-
deleteAllByComponentType(componentTypeId: string): Promise<undefined>;
|
|
9
|
-
addBatch(componentsToCreate: Payload<Component>[], workspaceId: string, componentTypeId: string): Promise<Record<string, Component>>;
|
|
10
|
-
refreshStore(): Promise<void>;
|
|
11
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { ComponentStageCompletion } from "../../store";
|
|
3
|
-
import { OptimisticModelResult } from "../typings";
|
|
4
|
-
import { Payload } from "../../typings";
|
|
5
|
-
export declare class ComponentStageCompletionService extends BaseApiService {
|
|
6
|
-
add(componentId: string, stageId: string): OptimisticModelResult<ComponentStageCompletion>;
|
|
7
|
-
refreshStore(): Promise<void>;
|
|
8
|
-
/**
|
|
9
|
-
* Creates a collection of ComponentStageCompletions, marking the referenced stages as completed for the referenced
|
|
10
|
-
* components. It's REQUIRED that all components referenced all have the SAME component type.
|
|
11
|
-
* @param componentTypeId The ID of the component type for which we are completing stages (we can only complete
|
|
12
|
-
* stages for one component type at a time)
|
|
13
|
-
* @param stageCompletions
|
|
14
|
-
*/
|
|
15
|
-
bulkAdd(componentTypeId: string, stageCompletions: Payload<ComponentStageCompletion>[]): Promise<void>;
|
|
16
|
-
bulkDelete(stageId: string, componentIds: string[]): Promise<undefined>;
|
|
17
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { ComponentStage, ComponentStagePayload, Payload } from "../../typings";
|
|
3
|
-
export declare class ComponentStageService extends BaseApiService {
|
|
4
|
-
bulkCreateStages(stagesToSubmit: Payload<ComponentStagePayload>[], componentTypeId: string, workspaceId: string): Promise<ComponentStage[]>;
|
|
5
|
-
bulkUpdateStages(stagesToUpdate: ComponentStage[], componentTypeId: string): Promise<ComponentStage[]>;
|
|
6
|
-
bulkDelete(idsToDelete: string[]): Promise<undefined>;
|
|
7
|
-
update(componentStage: ComponentStage): Promise<undefined>;
|
|
8
|
-
linkForm(stageId: string, formId: string): Promise<undefined>;
|
|
9
|
-
unlinkForm(stageId: string, formId: string): Promise<undefined>;
|
|
10
|
-
refreshStore(): Promise<undefined>;
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseAttachmentService } from "./BaseAttachmentService";
|
|
2
|
-
import { AttachmentModel, ComponentTypeAttachment } from "../../typings";
|
|
3
|
-
import { OptimisticMultipleModelResult } from "../typings";
|
|
4
|
-
export declare class ComponentTypeAttachmentService extends BaseAttachmentService {
|
|
5
|
-
attachmentModel: AttachmentModel;
|
|
6
|
-
private buildOfflineAttachment;
|
|
7
|
-
attachFilesToComponentType(files: File[], componentTypeId: string): Promise<OptimisticMultipleModelResult<ComponentTypeAttachment>>;
|
|
8
|
-
deleteComponentTypeAttachment(attachmentId: string): Promise<void>;
|
|
9
|
-
refreshStore(): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { ComponentType, Payload } from "../../typings";
|
|
3
|
-
import { OptimisticModelResult } from "../typings";
|
|
4
|
-
export declare class ComponentTypeService extends BaseApiService {
|
|
5
|
-
add(componentType: Payload<ComponentType>): OptimisticModelResult<ComponentType>;
|
|
6
|
-
update(componentType: ComponentType): Promise<undefined>;
|
|
7
|
-
delete(componentTypeId: string): Promise<undefined>;
|
|
8
|
-
refreshStore(): Promise<void>;
|
|
9
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { CompletedStagesMapping, Component, Model, RootState, SelectorWithArgs } from "../../typings";
|
|
3
|
-
export interface ComponentStageCompletionState {
|
|
4
|
-
completionsByComponentId: CompletedStagesMapping;
|
|
5
|
-
}
|
|
6
|
-
export interface ComponentStageCompletion extends Model {
|
|
7
|
-
component: string;
|
|
8
|
-
stage: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const componentStageCompletionSlice: import("@reduxjs/toolkit").Slice<ComponentStageCompletionState, {
|
|
11
|
-
addStageCompletion: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageCompletionState>, action: {
|
|
12
|
-
payload: ComponentStageCompletion;
|
|
13
|
-
}) => void;
|
|
14
|
-
addStageCompletions: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageCompletionState>, action: {
|
|
15
|
-
payload: CompletedStagesMapping;
|
|
16
|
-
}) => void;
|
|
17
|
-
removeStageCompletions: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageCompletionState>, action: {
|
|
18
|
-
payload: ComponentStageCompletion[];
|
|
19
|
-
}) => void;
|
|
20
|
-
setStageCompletions: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageCompletionState>, action: {
|
|
21
|
-
payload: CompletedStagesMapping;
|
|
22
|
-
}) => void;
|
|
23
|
-
}, "componentStageCompletions">;
|
|
24
|
-
export declare const addStageCompletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentStageCompletion, "componentStageCompletions/addStageCompletion">, addStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<CompletedStagesMapping, "componentStageCompletions/addStageCompletions">, removeStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentStageCompletion[], "componentStageCompletions/removeStageCompletions">, setStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<CompletedStagesMapping, "componentStageCompletions/setStageCompletions">;
|
|
25
|
-
export declare const selectCompletedStages: (state: RootState) => CompletedStagesMapping;
|
|
26
|
-
export declare const selectCompletedStageIdsForComponent: SelectorWithArgs<Component, string[]>;
|
|
27
|
-
export declare const componentStageCompletionReducer: Reducer<ComponentStageCompletionState>;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { Component, ComponentAttachment, ComponentType, RootState, Selector, SelectorWithArgs, Stored, Submitted } from "../../typings";
|
|
3
|
-
export interface ComponentState {
|
|
4
|
-
components: Record<string, Component | Submitted<Component>>;
|
|
5
|
-
attachments: Record<string, Stored<ComponentAttachment>>;
|
|
6
|
-
}
|
|
7
|
-
export declare const componentSlice: import("@reduxjs/toolkit").Slice<ComponentState, {
|
|
8
|
-
addComponent: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: {
|
|
9
|
-
payload: Component;
|
|
10
|
-
}) => void;
|
|
11
|
-
addComponentsInBatches: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: {
|
|
12
|
-
payload: (Component | Submitted<Component>)[];
|
|
13
|
-
}) => void;
|
|
14
|
-
setComponents: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: {
|
|
15
|
-
payload: Component[];
|
|
16
|
-
}) => void;
|
|
17
|
-
updateComponent: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: {
|
|
18
|
-
payload: Component;
|
|
19
|
-
}) => void;
|
|
20
|
-
removeComponent: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: PayloadAction<string>) => void;
|
|
21
|
-
removeAllComponentsOfType: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: PayloadAction<string>) => void;
|
|
22
|
-
setComponentAttachment: (state: ComponentState, action: {
|
|
23
|
-
payload: Stored<ComponentAttachment>;
|
|
24
|
-
type: string;
|
|
25
|
-
}) => void;
|
|
26
|
-
setComponentAttachments: (state: ComponentState, action: {
|
|
27
|
-
payload: Stored<ComponentAttachment>[];
|
|
28
|
-
type: string;
|
|
29
|
-
}) => void;
|
|
30
|
-
addComponentAttachment: (state: ComponentState, action: {
|
|
31
|
-
payload: Submitted<ComponentAttachment>;
|
|
32
|
-
type: string;
|
|
33
|
-
}) => void;
|
|
34
|
-
addComponentAttachments: (state: ComponentState, action: {
|
|
35
|
-
payload: Submitted<ComponentAttachment>[];
|
|
36
|
-
type: string;
|
|
37
|
-
}) => void;
|
|
38
|
-
updateComponentAttachment: (state: ComponentState, action: {
|
|
39
|
-
payload: Submitted<ComponentAttachment>;
|
|
40
|
-
type: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
updateComponentAttachments: (state: ComponentState, action: {
|
|
43
|
-
payload: Submitted<ComponentAttachment>[];
|
|
44
|
-
type: string;
|
|
45
|
-
}) => void;
|
|
46
|
-
removeComponentAttachment: (state: ComponentState, action: {
|
|
47
|
-
payload: string;
|
|
48
|
-
type: string;
|
|
49
|
-
}) => void;
|
|
50
|
-
removeComponentAttachments: (state: ComponentState, action: {
|
|
51
|
-
payload: string[];
|
|
52
|
-
type: string;
|
|
53
|
-
}) => void;
|
|
54
|
-
}, "components">;
|
|
55
|
-
export declare const addComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<Component, "components/addComponent">, updateComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<Component, "components/updateComponent">, removeComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "components/removeComponent">, addComponentsInBatches: import("@reduxjs/toolkit").ActionCreatorWithPayload<(Component | Submitted<Component>)[], "components/addComponentsInBatches">, setComponents: import("@reduxjs/toolkit").ActionCreatorWithPayload<Component[], "components/setComponents">, removeAllComponentsOfType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "components/removeAllComponentsOfType">, setComponentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<ComponentAttachment>, "components/setComponentAttachment">, setComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<ComponentAttachment>[], "components/setComponentAttachments">, addComponentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<ComponentAttachment>, "components/addComponentAttachment">, addComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<ComponentAttachment>[], "components/addComponentAttachments">, updateComponentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<ComponentAttachment>, "components/updateComponentAttachment">, updateComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<ComponentAttachment>[], "components/updateComponentAttachments">, removeComponentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "components/removeComponentAttachment">, removeComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "components/removeComponentAttachments">;
|
|
56
|
-
export declare const selectComponents: (state: RootState) => Component[];
|
|
57
|
-
export declare const selectComponentsMapping: (state: RootState) => Record<string, Component | Submitted<Component>>;
|
|
58
|
-
export declare const selectComponentsFromComponentType: SelectorWithArgs<string, Component[]>;
|
|
59
|
-
export declare const selectComponent: SelectorWithArgs<string, Component>;
|
|
60
|
-
export declare const selectComponentTypeFromComponent: SelectorWithArgs<string, ComponentType>;
|
|
61
|
-
export declare const selectComponentTypeFromComponents: Selector<Record<string, ComponentType>>;
|
|
62
|
-
export declare const selectComponentsByType: SelectorWithArgs<string, Component[]>;
|
|
63
|
-
export declare const selectNumberOfComponentsOfComponentType: SelectorWithArgs<string | undefined, number>;
|
|
64
|
-
export declare const selectComponentTypesFromIds: SelectorWithArgs<string[], ComponentType[]>;
|
|
65
|
-
export declare const selectComponentAttachmentMapping: (state: RootState) => Record<string, Stored<ComponentAttachment>>;
|
|
66
|
-
export declare const selectAllComponentAttachments: Selector<Stored<ComponentAttachment>[]>;
|
|
67
|
-
export declare const selectComponentAttachment: SelectorWithArgs<string, Stored<ComponentAttachment>>;
|
|
68
|
-
export declare const selectAttachmentsOfComponent: (args: string) => (state: RootState) => Stored<ComponentAttachment>[];
|
|
69
|
-
export declare const selectAttachmentsOfComponentByType: (args: string) => (state: RootState) => {
|
|
70
|
-
fileAttachments: Stored<ComponentAttachment>[];
|
|
71
|
-
imageAttachments: Stored<ComponentAttachment>[];
|
|
72
|
-
};
|
|
73
|
-
export declare const componentReducer: Reducer<ComponentState>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { ComponentStage, RootState, SelectorWithArgs } from "../../typings";
|
|
3
|
-
export interface ComponentStageState {
|
|
4
|
-
stages: Record<string, ComponentStage>;
|
|
5
|
-
}
|
|
6
|
-
export declare const componentStageSlice: import("@reduxjs/toolkit").Slice<ComponentStageState, {
|
|
7
|
-
addStages: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageState>, action: {
|
|
8
|
-
payload: ComponentStage[];
|
|
9
|
-
}) => void;
|
|
10
|
-
updateStages: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageState>, action: {
|
|
11
|
-
payload: ComponentStage[];
|
|
12
|
-
}) => void;
|
|
13
|
-
removeStages: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageState>, action: {
|
|
14
|
-
payload: string[];
|
|
15
|
-
}) => void;
|
|
16
|
-
linkStageToForm: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageState>, action: {
|
|
17
|
-
payload: {
|
|
18
|
-
stageId: string;
|
|
19
|
-
formId: string;
|
|
20
|
-
};
|
|
21
|
-
}) => void;
|
|
22
|
-
unlinkStageToForm: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageState>, action: {
|
|
23
|
-
payload: {
|
|
24
|
-
stageId: string;
|
|
25
|
-
};
|
|
26
|
-
}) => void;
|
|
27
|
-
}, "componentStages">;
|
|
28
|
-
export declare const selectStageMapping: (state: RootState) => Record<string, ComponentStage>;
|
|
29
|
-
export declare const selectStage: SelectorWithArgs<string, ComponentStage | undefined>;
|
|
30
|
-
export declare const selectStages: (state: RootState) => ComponentStage[];
|
|
31
|
-
export declare const selectStagesFromComponentTypeIds: SelectorWithArgs<string[], Record<string, ComponentStage[]>>;
|
|
32
|
-
export declare const selectComponentTypeStagesMapping: SelectorWithArgs<string, Record<string, ComponentStage>>;
|
|
33
|
-
export declare const selectStagesFromComponentType: SelectorWithArgs<string, ComponentStage[]>;
|
|
34
|
-
export declare const selectStagesFromStageIds: SelectorWithArgs<string[], ComponentStage[]>;
|
|
35
|
-
export declare const selectStageFormIdsFromStageIds: SelectorWithArgs<string[], Record<string, string>>;
|
|
36
|
-
export declare const addStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentStage[], "componentStages/addStages">, updateStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentStage[], "componentStages/updateStages">, removeStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "componentStages/removeStages">, linkStageToForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
37
|
-
stageId: string;
|
|
38
|
-
formId: string;
|
|
39
|
-
}, "componentStages/linkStageToForm">, unlinkStageToForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
40
|
-
stageId: string;
|
|
41
|
-
}, "componentStages/unlinkStageToForm">;
|
|
42
|
-
export declare const componentStageReducer: Reducer<ComponentStageState>;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import type { ComponentType, ComponentTypeAttachment, RootState, Selector, SelectorWithArgs, Stored } from "../../typings";
|
|
3
|
-
export interface ComponentTypeState {
|
|
4
|
-
componentTypes: Record<string, ComponentType>;
|
|
5
|
-
hiddenComponentTypeIds: Record<string, boolean>;
|
|
6
|
-
attachments: Record<string, ComponentTypeAttachment>;
|
|
7
|
-
}
|
|
8
|
-
export declare const componentTypeSlice: import("@reduxjs/toolkit").Slice<ComponentTypeState, {
|
|
9
|
-
addComponentType: (state: import("immer/dist/internal.js").WritableDraft<ComponentTypeState>, action: {
|
|
10
|
-
payload: ComponentType;
|
|
11
|
-
}) => void;
|
|
12
|
-
setComponentTypes: (state: import("immer/dist/internal.js").WritableDraft<ComponentTypeState>, action: {
|
|
13
|
-
payload: ComponentType[];
|
|
14
|
-
}) => void;
|
|
15
|
-
toggleComponentTypeVisibility: (state: import("immer/dist/internal.js").WritableDraft<ComponentTypeState>, action: {
|
|
16
|
-
payload: string;
|
|
17
|
-
}) => void;
|
|
18
|
-
deleteComponentType: (state: import("immer/dist/internal.js").WritableDraft<ComponentTypeState>, action: {
|
|
19
|
-
payload: string;
|
|
20
|
-
}) => void;
|
|
21
|
-
setComponentTypeAttachment: (state: ComponentTypeState, action: {
|
|
22
|
-
payload: Stored<ComponentTypeAttachment>;
|
|
23
|
-
type: string;
|
|
24
|
-
}) => void;
|
|
25
|
-
setComponentTypeAttachments: (state: ComponentTypeState, action: {
|
|
26
|
-
payload: Stored<ComponentTypeAttachment>[];
|
|
27
|
-
type: string;
|
|
28
|
-
}) => void;
|
|
29
|
-
addComponentTypeAttachment: (state: ComponentTypeState, action: {
|
|
30
|
-
payload: import('../../typings/models/issues').Submitted<ComponentTypeAttachment>;
|
|
31
|
-
type: string;
|
|
32
|
-
}) => void;
|
|
33
|
-
addComponentTypeAttachments: (state: ComponentTypeState, action: {
|
|
34
|
-
payload: import('../../typings/models/issues').Submitted<ComponentTypeAttachment>[];
|
|
35
|
-
type: string;
|
|
36
|
-
}) => void;
|
|
37
|
-
updateComponentTypeAttachment: (state: ComponentTypeState, action: {
|
|
38
|
-
payload: import('../../typings/models/issues').Submitted<ComponentTypeAttachment>;
|
|
39
|
-
type: string;
|
|
40
|
-
}) => void;
|
|
41
|
-
updateComponentTypeAttachments: (state: ComponentTypeState, action: {
|
|
42
|
-
payload: import('../../typings/models/issues').Submitted<ComponentTypeAttachment>[];
|
|
43
|
-
type: string;
|
|
44
|
-
}) => void;
|
|
45
|
-
removeComponentTypeAttachment: (state: ComponentTypeState, action: {
|
|
46
|
-
payload: string;
|
|
47
|
-
type: string;
|
|
48
|
-
}) => void;
|
|
49
|
-
removeComponentTypeAttachments: (state: ComponentTypeState, action: {
|
|
50
|
-
payload: string[];
|
|
51
|
-
type: string;
|
|
52
|
-
}) => void;
|
|
53
|
-
}, "componentTypes">;
|
|
54
|
-
export declare const addComponentType: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentType, "componentTypes/addComponentType">, setComponentTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentType[], "componentTypes/setComponentTypes">, toggleComponentTypeVisibility: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "componentTypes/toggleComponentTypeVisibility">, deleteComponentType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "componentTypes/deleteComponentType">, setComponentTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<ComponentTypeAttachment>, "componentTypes/setComponentTypeAttachment">, setComponentTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<ComponentTypeAttachment>[], "componentTypes/setComponentTypeAttachments">, addComponentTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<ComponentTypeAttachment>, "componentTypes/addComponentTypeAttachment">, addComponentTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<ComponentTypeAttachment>[], "componentTypes/addComponentTypeAttachments">, updateComponentTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<ComponentTypeAttachment>, "componentTypes/updateComponentTypeAttachment">, updateComponentTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<ComponentTypeAttachment>[], "componentTypes/updateComponentTypeAttachments">, removeComponentTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "componentTypes/removeComponentTypeAttachment">, removeComponentTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "componentTypes/removeComponentTypeAttachments">;
|
|
55
|
-
export type AppSelector<TResult> = (state: RootState) => TResult;
|
|
56
|
-
export declare const selectComponentTypesMapping: AppSelector<Record<string, ComponentType>>;
|
|
57
|
-
export declare const selectComponentTypes: AppSelector<ComponentType[]>;
|
|
58
|
-
export declare const selectComponentType: SelectorWithArgs<string, ComponentType>;
|
|
59
|
-
interface selectNumberOfComponentTypesMatchingCaseInsensitiveNameProps {
|
|
60
|
-
name: string | null | undefined;
|
|
61
|
-
componentTypeId: string | undefined;
|
|
62
|
-
}
|
|
63
|
-
export declare const selectNumberOfComponentTypesMatchingCaseInsensitiveName: SelectorWithArgs<selectNumberOfComponentTypesMatchingCaseInsensitiveNameProps, number>;
|
|
64
|
-
export declare const selectComponentTypesByName: SelectorWithArgs<string, ComponentType[]>;
|
|
65
|
-
export declare const selectHiddenComponentTypeIds: AppSelector<Record<string, boolean | undefined>>;
|
|
66
|
-
export declare const selectComponentTypeAttachmentMapping: (state: RootState) => Record<string, ComponentTypeAttachment>;
|
|
67
|
-
export declare const selectAllComponentTypeAttachments: Selector<Stored<ComponentTypeAttachment>[]>;
|
|
68
|
-
export declare const selectComponentTypeAttachment: SelectorWithArgs<string, Stored<ComponentTypeAttachment>>;
|
|
69
|
-
export declare const selectAttachmentsOfComponentType: (args: string) => (state: RootState) => Stored<ComponentTypeAttachment>[];
|
|
70
|
-
export declare const selectAttachmentsOfComponentTypeByType: (args: string) => (state: RootState) => {
|
|
71
|
-
fileAttachments: Stored<ComponentTypeAttachment>[];
|
|
72
|
-
imageAttachments: Stored<ComponentTypeAttachment>[];
|
|
73
|
-
};
|
|
74
|
-
export declare const componentTypeReducer: Reducer<ComponentTypeState>;
|
|
75
|
-
export {};
|