@overmap-ai/core 1.0.56 → 1.0.57-export-overmap-reducer.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +4 -4
  3. package/dist/constants/ui.d.ts +1 -1
  4. package/dist/contexts/overmap.d.ts +2 -2
  5. package/dist/contexts/sdk/globals.d.ts +3 -3
  6. package/dist/contexts/sdk/sdk.d.ts +2 -2
  7. package/dist/enums/ui.d.ts +1 -1
  8. package/dist/forms/builder/constants.d.ts +1 -1
  9. package/dist/forms/builder/hooks.d.ts +1 -1
  10. package/dist/overmap-core.js +610 -942
  11. package/dist/overmap-core.js.map +1 -1
  12. package/dist/overmap-core.umd.cjs +611 -943
  13. package/dist/overmap-core.umd.cjs.map +1 -1
  14. package/dist/sdk/sdk.d.ts +11 -11
  15. package/dist/sdk/services/AgentService.d.ts +2 -21
  16. package/dist/sdk/services/AssetAttachmentService.d.ts +10 -0
  17. package/dist/sdk/services/AssetService.d.ts +11 -0
  18. package/dist/sdk/services/AssetStageCompletionService.d.ts +16 -0
  19. package/dist/sdk/services/AssetStageService.d.ts +11 -0
  20. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +10 -0
  21. package/dist/sdk/services/AssetTypeService.d.ts +9 -0
  22. package/dist/sdk/services/UserFormService.d.ts +2 -2
  23. package/dist/sdk/services/UserFormSubmissionService.d.ts +1 -1
  24. package/dist/sdk/services/index.d.ts +6 -6
  25. package/dist/store/index.d.ts +0 -1
  26. package/dist/store/slices/agentsSlice.d.ts +3 -3
  27. package/dist/store/slices/assetSlice.d.ts +63 -0
  28. package/dist/store/slices/assetStageCompletionSlice.d.ts +15 -0
  29. package/dist/store/slices/assetStageSlice.d.ts +32 -0
  30. package/dist/store/slices/assetTypeSlice.d.ts +74 -0
  31. package/dist/store/slices/authSlice.d.ts +3 -3
  32. package/dist/store/slices/categorySlice.d.ts +9 -9
  33. package/dist/store/slices/documentSlice.d.ts +12 -13
  34. package/dist/store/slices/formRevisionSlice.d.ts +7 -7
  35. package/dist/store/slices/formSlice.d.ts +7 -7
  36. package/dist/store/slices/formSubmissionSlice.d.ts +2 -2
  37. package/dist/store/slices/index.d.ts +4 -4
  38. package/dist/store/slices/issueSlice.d.ts +18 -18
  39. package/dist/store/slices/mapSlice.d.ts +4 -4
  40. package/dist/store/slices/organizationAccessSlice.d.ts +3 -3
  41. package/dist/store/slices/outboxSlice.d.ts +3 -3
  42. package/dist/store/slices/projectAccessSlice.d.ts +2 -2
  43. package/dist/store/slices/projectFileSlice.d.ts +7 -7
  44. package/dist/store/slices/projectSlice.d.ts +8 -8
  45. package/dist/store/slices/rehydratedSlice.d.ts +2 -2
  46. package/dist/store/slices/settingsSlice.d.ts +9 -9
  47. package/dist/store/slices/userSlice.d.ts +4 -4
  48. package/dist/store/slices/workspaceSlice.d.ts +6 -6
  49. package/dist/store/store.d.ts +12 -45
  50. package/dist/typings/models/access.d.ts +1 -0
  51. package/dist/typings/models/attachments.d.ts +6 -6
  52. package/dist/typings/models/components.d.ts +11 -7
  53. package/dist/typings/models/forms.d.ts +3 -3
  54. package/dist/typings/models/store.d.ts +2 -3
  55. package/dist/typings/store.d.ts +4 -4
  56. package/dist/utils/colors.d.ts +1 -1
  57. package/dist/utils/utils.d.ts +3 -3
  58. package/package.json +153 -153
  59. package/dist/sdk/services/ComponentAttachmentService.d.ts +0 -10
  60. package/dist/sdk/services/ComponentService.d.ts +0 -11
  61. package/dist/sdk/services/ComponentStageCompletionService.d.ts +0 -17
  62. package/dist/sdk/services/ComponentStageService.d.ts +0 -11
  63. package/dist/sdk/services/ComponentTypeAttachmentService.d.ts +0 -10
  64. package/dist/sdk/services/ComponentTypeService.d.ts +0 -9
  65. package/dist/store/hooks.d.ts +0 -4
  66. package/dist/store/slices/ComponentStageCompletionSlice.d.ts +0 -27
  67. package/dist/store/slices/componentSlice.d.ts +0 -73
  68. package/dist/store/slices/componentStageSlice.d.ts +0 -42
  69. package/dist/store/slices/componentTypeSlice.d.ts +0 -75
package/dist/sdk/sdk.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { AgentService, AuthService, CategoryService, ComponentAttachmentService, ComponentService, ComponentStageCompletionService, ComponentStageService, ComponentTypeAttachmentService, ComponentTypeService, DocumentAttachmentService, DocumentService, EmailDomainsService, EmailVerificationService, FileService, IssueAttachmentService, IssueCommentService, IssueService, IssueTypeService, IssueUpdateService, LicenseService, MainService, OrganizationAccessService, OrganizationService, ProjectAccessService, ProjectAttachmentService, ProjectFileService, ProjectService, TeamService, UserFormService, UserFormSubmissionService, WorkspaceService } from "./services";
1
+ import { AgentService, AuthService, CategoryService, AssetService, AssetStageCompletionService, AssetStageService, AssetAttachmentService, AssetTypeService, AssetTypeAttachmentService, DocumentAttachmentService, DocumentService, EmailDomainsService, EmailVerificationService, FileService, IssueAttachmentService, IssueCommentService, IssueService, IssueTypeService, IssueUpdateService, LicenseService, MainService, OrganizationAccessService, OrganizationService, ProjectAccessService, ProjectAttachmentService, ProjectFileService, ProjectService, TeamService, UserFormService, UserFormSubmissionService, WorkspaceService } from "./services";
2
2
  import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
3
- import { RootState } from "../typings";
3
+ import { OvermapRootState } from "../typings";
4
4
  import { SDKRequest } from "./typings";
5
5
  export declare class OvermapSDK {
6
6
  readonly API_URL: string;
7
- readonly store: ToolkitStore<RootState>;
8
- constructor(apiUrl: string, store: ToolkitStore<RootState>);
7
+ readonly store: ToolkitStore<OvermapRootState>;
8
+ constructor(apiUrl: string, store: ToolkitStore<OvermapRootState>);
9
9
  /**
10
10
  * Enqueues an API request to the offline outbox.
11
11
  * @param requestDetails An SDKRequest object containing the details of the request.
@@ -31,12 +31,12 @@ export declare class OvermapSDK {
31
31
  issueAttachments: IssueAttachmentService;
32
32
  workspaces: WorkspaceService;
33
33
  main: MainService;
34
- components: ComponentService;
35
- componentAttachments: ComponentAttachmentService;
36
- componentTypes: ComponentTypeService;
37
- componentTypeAttachments: ComponentTypeAttachmentService;
38
- componentStages: ComponentStageService;
39
- componentStageCompletions: ComponentStageCompletionService;
34
+ assets: AssetService;
35
+ assetAttachments: AssetAttachmentService;
36
+ assetTypes: AssetTypeService;
37
+ assetTypeAttachments: AssetTypeAttachmentService;
38
+ assetStages: AssetStageService;
39
+ assetStageCompletions: AssetStageCompletionService;
40
40
  userForms: UserFormService;
41
41
  userFormSubmissions: UserFormSubmissionService;
42
42
  projects: ProjectService;
@@ -49,4 +49,4 @@ export declare class OvermapSDK {
49
49
  teams: TeamService;
50
50
  documentAttachments: DocumentAttachmentService;
51
51
  }
52
- export declare const makeClient: (apiUrl: string, store: ToolkitStore<RootState>) => OvermapSDK;
52
+ export declare const makeClient: (apiUrl: string, store: ToolkitStore<OvermapRootState>) => OvermapSDK;
@@ -1,24 +1,5 @@
1
1
  import { BaseApiService } from "./BaseApiService";
2
- import { AgentProfile, AgentUserConversation, Payload } from "../../typings";
3
- import { JSONContent } from "@tiptap/core";
4
- export interface PromptAgentResponse {
5
- /**
6
- * The response from the agent.
7
- */
8
- response: JSONContent[];
9
- /**
10
- * The UUID of the conversation.
11
- */
12
- conversation_id: string;
13
- /**
14
- * The UUID of the response (used when submitting ratings)
15
- */
16
- response_id: string;
17
- /**
18
- * The profile of the agent. Only included in the first response in a conversation.
19
- */
20
- profile?: AgentProfile;
21
- }
2
+ import { AgentUserConversation } from "../../typings";
22
3
  export declare class AgentService extends BaseApiService {
23
4
  startConversation(prompt: string): Promise<AgentUserConversation>;
24
5
  /**
@@ -26,7 +7,7 @@ export declare class AgentService extends BaseApiService {
26
7
  * @param prompt The message to prompt the agent with.
27
8
  * @param conversationId If continuing an existing message, the UUID of that conversation.
28
9
  */
29
- continueConversation(prompt: Payload<string>, conversationId: AgentUserConversation["offline_id"]): Promise<void>;
10
+ continueConversation(prompt: string, conversationId: AgentUserConversation["offline_id"]): Promise<void>;
30
11
  fetchDetails(conversationId: AgentUserConversation["offline_id"]): Promise<void>;
31
12
  rate(responseId: string, rating: 1 | 5): Promise<undefined>;
32
13
  refreshStore(): Promise<void>;
@@ -0,0 +1,10 @@
1
+ import { BaseAttachmentService } from "./BaseAttachmentService";
2
+ import { AttachmentModel, AssetAttachment } from "../../typings";
3
+ import { OptimisticMultipleModelResult } from "../typings";
4
+ export declare class AssetAttachmentService extends BaseAttachmentService {
5
+ attachmentModel: AttachmentModel;
6
+ private buildOfflineAttachment;
7
+ attachFilesToAsset(files: File[], assetId: string): Promise<OptimisticMultipleModelResult<AssetAttachment>>;
8
+ deleteAssetAttachment(attachmentId: string): Promise<void>;
9
+ refreshStore(): Promise<void>;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseApiService } from "./BaseApiService";
2
+ import { Asset, Payload } from "../../typings";
3
+ import { OptimisticModelResult } from "../typings";
4
+ export declare class AssetService extends BaseApiService {
5
+ add(asset: Payload<Asset>, workspaceId: string): OptimisticModelResult<Asset>;
6
+ update(asset: Asset, workspaceId: string): OptimisticModelResult<Asset>;
7
+ remove(assetId: string): Promise<undefined>;
8
+ deleteAllAssetsOfAssetType(assetTypeId: string): Promise<undefined>;
9
+ addBatch(assetsToCreate: Payload<Asset>[], workspaceId: string, assetTypeId: string): Promise<Record<string, Asset>>;
10
+ refreshStore(): Promise<void>;
11
+ }
@@ -0,0 +1,16 @@
1
+ import { BaseApiService } from "./BaseApiService";
2
+ import { OptimisticModelResult } from "../typings";
3
+ import { AssetStageCompletion, Payload } from "../../typings";
4
+ export declare class AssetStageCompletionService extends BaseApiService {
5
+ add(assetId: string, stageId: string): OptimisticModelResult<AssetStageCompletion>;
6
+ refreshStore(): Promise<void>;
7
+ /**
8
+ * Creates a collection of AssetStageCompletions, marking the referenced stages as completed for the referenced
9
+ * assets. It's REQUIRED that all assets referenced all have the SAME asset type.
10
+ * @param assetTypeId The ID of the asset type for which we are completing stages (we can only complete
11
+ * stages for one asset type at a time)
12
+ * @param stageCompletions
13
+ */
14
+ bulkAdd(assetTypeId: string, stageCompletions: Payload<AssetStageCompletion>[]): Promise<void>;
15
+ bulkDelete(stageId: string, assetIds: string[]): Promise<undefined>;
16
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseApiService } from "./BaseApiService";
2
+ import { AssetStage, AssetStagePayload, Payload } from "../../typings";
3
+ export declare class AssetStageService extends BaseApiService {
4
+ bulkCreateStages(stagesToSubmit: Payload<AssetStagePayload>[], assetTypeId: string, workspaceId: string): Promise<AssetStage[]>;
5
+ bulkUpdateStages(stagesToUpdate: AssetStage[], assetTypeId: string): Promise<AssetStage[]>;
6
+ bulkDelete(idsToDelete: string[]): Promise<undefined>;
7
+ update(assetStage: AssetStage): Promise<undefined>;
8
+ linkForm(stageId: string, formId: string): Promise<undefined>;
9
+ unlinkForm(stageId: string, formId: string): Promise<undefined>;
10
+ refreshStore(): Promise<undefined>;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseAttachmentService } from "./BaseAttachmentService";
2
+ import { AttachmentModel, AssetTypeAttachment } from "../../typings";
3
+ import { OptimisticMultipleModelResult } from "../typings";
4
+ export declare class AssetTypeAttachmentService extends BaseAttachmentService {
5
+ attachmentModel: AttachmentModel;
6
+ private buildOfflineAttachment;
7
+ attachFilesToAssetType(files: File[], assetTypeId: string): Promise<OptimisticMultipleModelResult<AssetTypeAttachment>>;
8
+ deleteAssetTypeAttachment(attachmentId: string): Promise<void>;
9
+ refreshStore(): Promise<void>;
10
+ }
@@ -0,0 +1,9 @@
1
+ import { BaseApiService } from "./BaseApiService";
2
+ import { AssetType, Payload } from "../../typings";
3
+ import { OptimisticModelResult } from "../typings";
4
+ export declare class AssetTypeService extends BaseApiService {
5
+ add(assetType: Payload<AssetType>): OptimisticModelResult<AssetType>;
6
+ update(assetType: AssetType): Promise<undefined>;
7
+ delete(assetTypeId: string): Promise<undefined>;
8
+ refreshStore(): Promise<void>;
9
+ }
@@ -5,12 +5,12 @@ export declare class UserFormService extends BaseApiService {
5
5
  private getAttachImagePromises;
6
6
  private add;
7
7
  addForOrganization(initialRevision: UserFormRevisionPayload, attachedTo?: {
8
- componentTypeId: string;
8
+ assetTypeId: string;
9
9
  } | {
10
10
  issueTypeId: string;
11
11
  }): Promise<[SubmittedUserForm, UserFormRevision, Promise<UserFormRevision>, Promise<UserFormRevision>]>;
12
12
  addForCurrentUser(initialRevision: UserFormRevision, attachedTo?: {
13
- componentTypeId: string;
13
+ assetTypeId: string;
14
14
  } | {
15
15
  issueTypeId: string;
16
16
  }): Promise<[SubmittedUserForm, UserFormRevision, Promise<UserFormRevision>, Promise<UserFormRevision>]>;
@@ -10,7 +10,7 @@ export declare class UserFormSubmissionService extends BaseApiService {
10
10
  bulkAdd(args: {
11
11
  formRevision: string;
12
12
  values: Record<string, FieldValue>;
13
- componentOfflineIds: string[];
13
+ assetOfflineIds: string[];
14
14
  }): Promise<OptimisticMultipleModelResult<UserFormSubmission>>;
15
15
  update(submission: Stored<UserFormSubmission>): OptimisticModelResult<UserFormSubmission>;
16
16
  delete(submissionId: string): Promise<undefined>;
@@ -1,12 +1,12 @@
1
1
  export * from "./AuthService";
2
2
  export * from "./BaseApiService";
3
3
  export * from "./CategoryService";
4
- export * from "./ComponentService";
5
- export * from "./ComponentStageCompletionService";
6
- export * from "./ComponentStageService";
7
- export * from "./ComponentAttachmentService";
8
- export * from "./ComponentTypeService";
9
- export * from "./ComponentTypeAttachmentService";
4
+ export * from "./AssetService";
5
+ export * from "./AssetStageCompletionService";
6
+ export * from "./AssetStageService";
7
+ export * from "./AssetAttachmentService";
8
+ export * from "./AssetTypeService";
9
+ export * from "./AssetTypeAttachmentService";
10
10
  export * from "./IssueCommentService";
11
11
  export * from "./IssueUpdateService";
12
12
  export * from "./IssueAttachmentService";
@@ -1,3 +1,2 @@
1
1
  export * from "./store";
2
- export * from "./hooks";
3
2
  export * from "./slices";
@@ -1,5 +1,5 @@
1
1
  import { PayloadAction, Reducer } from "@reduxjs/toolkit";
2
- import { AgentUserConversation, Offline, OfflineIdMapping, RootState, Selector } from "../../typings";
2
+ import { AgentUserConversation, Offline, OfflineIdMapping, OvermapRootState, Selector } from "../../typings";
3
3
  export interface AgentsState {
4
4
  conversations: OfflineIdMapping<AgentUserConversation>;
5
5
  }
@@ -10,7 +10,7 @@ export declare const agentsSlice: import("@reduxjs/toolkit").Slice<AgentsState,
10
10
  updateConversation: (state: import("immer/dist/internal.js").WritableDraft<AgentsState>, action: PayloadAction<Offline<Partial<AgentUserConversation>>>) => void;
11
11
  }, "agents">;
12
12
  export declare const setConversations: import("@reduxjs/toolkit").ActionCreatorWithPayload<AgentUserConversation[], "agents/setConversations">, addConversation: import("@reduxjs/toolkit").ActionCreatorWithPayload<AgentUserConversation, "agents/addConversation">, setConversation: import("@reduxjs/toolkit").ActionCreatorWithPayload<AgentUserConversation, "agents/setConversation">, updateConversation: import("@reduxjs/toolkit").ActionCreatorWithPayload<Offline<Partial<AgentUserConversation>>, "agents/updateConversation">;
13
- export declare const selectConversationMapping: (state: RootState) => OfflineIdMapping<AgentUserConversation>;
13
+ export declare const selectConversationMapping: (state: OvermapRootState) => OfflineIdMapping<AgentUserConversation>;
14
14
  export declare const selectConversations: Selector<AgentUserConversation[]>;
15
- export declare const selectConversation: (args: string) => (state: RootState) => AgentUserConversation | undefined;
15
+ export declare const selectConversation: (args: string) => (state: OvermapRootState) => AgentUserConversation | undefined;
16
16
  export declare const agentsReducer: Reducer<AgentsState>;
@@ -0,0 +1,63 @@
1
+ import { PayloadAction, Reducer } from "@reduxjs/toolkit";
2
+ import { Asset, AssetAttachment, AssetType, OvermapRootState, Selector, SelectorWithArgs, Stored, Submitted } from "../../typings";
3
+ export interface AssetState {
4
+ assets: Record<string, Asset | Submitted<Asset>>;
5
+ attachments: Record<string, Stored<AssetAttachment>>;
6
+ }
7
+ export declare const assetSlice: import("@reduxjs/toolkit").Slice<AssetState, {
8
+ addAsset: (state: import("immer/dist/internal.js").WritableDraft<AssetState>, action: PayloadAction<Asset>) => void;
9
+ addAssetsInBatches: (state: import("immer/dist/internal.js").WritableDraft<AssetState>, action: PayloadAction<(Asset | Submitted<Asset>)[]>) => void;
10
+ setAssets: (state: import("immer/dist/internal.js").WritableDraft<AssetState>, action: PayloadAction<Asset[]>) => void;
11
+ updateAsset: (state: import("immer/dist/internal.js").WritableDraft<AssetState>, action: PayloadAction<Asset>) => void;
12
+ removeAsset: (state: import("immer/dist/internal.js").WritableDraft<AssetState>, action: PayloadAction<string>) => void;
13
+ removeAllAssetsOfType: (state: import("immer/dist/internal.js").WritableDraft<AssetState>, action: PayloadAction<string>) => void;
14
+ setAssetAttachment: (state: AssetState, action: {
15
+ payload: Stored<AssetAttachment>;
16
+ type: string;
17
+ }) => void;
18
+ setAssetAttachments: (state: AssetState, action: {
19
+ payload: Stored<AssetAttachment>[];
20
+ type: string;
21
+ }) => void;
22
+ addAssetAttachment: (state: AssetState, action: {
23
+ payload: Submitted<AssetAttachment>;
24
+ type: string;
25
+ }) => void;
26
+ addAssetAttachments: (state: AssetState, action: {
27
+ payload: Submitted<AssetAttachment>[];
28
+ type: string;
29
+ }) => void;
30
+ updateAssetAttachment: (state: AssetState, action: {
31
+ payload: Submitted<AssetAttachment>;
32
+ type: string;
33
+ }) => void;
34
+ updateAssetAttachments: (state: AssetState, action: {
35
+ payload: Submitted<AssetAttachment>[];
36
+ type: string;
37
+ }) => void;
38
+ removeAssetAttachment: (state: AssetState, action: {
39
+ payload: string;
40
+ type: string;
41
+ }) => void;
42
+ removeAssetAttachments: (state: AssetState, action: {
43
+ payload: string[];
44
+ type: string;
45
+ }) => void;
46
+ }, "assets">;
47
+ export declare const addAsset: import("@reduxjs/toolkit").ActionCreatorWithPayload<Asset, "assets/addAsset">, updateAsset: import("@reduxjs/toolkit").ActionCreatorWithPayload<Asset, "assets/updateAsset">, removeAsset: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assets/removeAsset">, addAssetsInBatches: import("@reduxjs/toolkit").ActionCreatorWithPayload<(Asset | Submitted<Asset>)[], "assets/addAssetsInBatches">, setAssets: import("@reduxjs/toolkit").ActionCreatorWithPayload<Asset[], "assets/setAssets">, removeAllAssetsOfType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assets/removeAllAssetsOfType">, setAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>, "assets/setAssetAttachment">, setAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>[], "assets/setAssetAttachments">, addAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<AssetAttachment>, "assets/addAssetAttachment">, addAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<AssetAttachment>[], "assets/addAssetAttachments">, updateAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<AssetAttachment>, "assets/updateAssetAttachment">, updateAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<AssetAttachment>[], "assets/updateAssetAttachments">, removeAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assets/removeAssetAttachment">, removeAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assets/removeAssetAttachments">;
48
+ export declare const selectAssets: (state: OvermapRootState) => Asset[];
49
+ export declare const selectAssetsMapping: (state: OvermapRootState) => Record<string, Asset | Submitted<Asset>>;
50
+ export declare const selectAssetsOfAssetType: SelectorWithArgs<string, Asset[]>;
51
+ export declare const selectAsset: SelectorWithArgs<string, Asset>;
52
+ export declare const selectAssetToAssetTypeMapping: Selector<Record<string, AssetType>>;
53
+ export declare const selectNumberOfAssetsOfAssetType: SelectorWithArgs<string | undefined, number>;
54
+ export declare const selectAssetTypesFromIds: SelectorWithArgs<string[], AssetType[]>;
55
+ export declare const selectAssetAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<AssetAttachment>>;
56
+ export declare const selectAssetAttachments: Selector<Stored<AssetAttachment>[]>;
57
+ export declare const selectAssetAttachment: SelectorWithArgs<string, Stored<AssetAttachment>>;
58
+ export declare const selectAttachmentsOfAsset: (args: string) => (state: OvermapRootState) => Stored<AssetAttachment>[];
59
+ export declare const selectAttachmentsOfAssetByType: (args: string) => (state: OvermapRootState) => {
60
+ fileAttachments: Stored<AssetAttachment>[];
61
+ imageAttachments: Stored<AssetAttachment>[];
62
+ };
63
+ export declare const assetReducer: Reducer<AssetState>;
@@ -0,0 +1,15 @@
1
+ import { Reducer, PayloadAction } from "@reduxjs/toolkit";
2
+ import { CompletedStagesMapping, Asset, OvermapRootState, SelectorWithArgs, AssetStageCompletion } from "../../typings";
3
+ export interface AssetStageCompletionState {
4
+ completionsByAssetId: CompletedStagesMapping;
5
+ }
6
+ export declare const assetStageCompletionSlice: import("@reduxjs/toolkit").Slice<AssetStageCompletionState, {
7
+ addStageCompletion: (state: import("immer/dist/internal.js").WritableDraft<AssetStageCompletionState>, action: PayloadAction<AssetStageCompletion>) => void;
8
+ addStageCompletions: (state: import("immer/dist/internal.js").WritableDraft<AssetStageCompletionState>, action: PayloadAction<CompletedStagesMapping>) => void;
9
+ removeStageCompletions: (state: import("immer/dist/internal.js").WritableDraft<AssetStageCompletionState>, action: PayloadAction<AssetStageCompletion[]>) => void;
10
+ setStageCompletions: (state: import("immer/dist/internal.js").WritableDraft<AssetStageCompletionState>, action: PayloadAction<CompletedStagesMapping>) => void;
11
+ }, "assetStageCompletions">;
12
+ export declare const addStageCompletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<AssetStageCompletion, "assetStageCompletions/addStageCompletion">, addStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<CompletedStagesMapping, "assetStageCompletions/addStageCompletions">, removeStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<AssetStageCompletion[], "assetStageCompletions/removeStageCompletions">, setStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<CompletedStagesMapping, "assetStageCompletions/setStageCompletions">;
13
+ export declare const selectCompletedStages: (state: OvermapRootState) => CompletedStagesMapping;
14
+ export declare const selectCompletedStageIdsForAsset: SelectorWithArgs<Asset, string[]>;
15
+ export declare const assetStageCompletionReducer: Reducer<AssetStageCompletionState>;
@@ -0,0 +1,32 @@
1
+ import { Reducer, PayloadAction } from "@reduxjs/toolkit";
2
+ import { AssetStage, OvermapRootState, SelectorWithArgs } from "../../typings";
3
+ export interface AssetStageState {
4
+ stages: Record<string, AssetStage>;
5
+ }
6
+ export declare const assetStageSlice: import("@reduxjs/toolkit").Slice<AssetStageState, {
7
+ addStages: (state: import("immer/dist/internal.js").WritableDraft<AssetStageState>, action: PayloadAction<AssetStage[]>) => void;
8
+ updateStages: (state: import("immer/dist/internal.js").WritableDraft<AssetStageState>, action: PayloadAction<AssetStage[]>) => void;
9
+ removeStages: (state: import("immer/dist/internal.js").WritableDraft<AssetStageState>, action: PayloadAction<string[]>) => void;
10
+ linkStageToForm: (state: import("immer/dist/internal.js").WritableDraft<AssetStageState>, action: PayloadAction<{
11
+ stageId: string;
12
+ formId: string;
13
+ }>) => void;
14
+ unlinkStageToForm: (state: import("immer/dist/internal.js").WritableDraft<AssetStageState>, action: PayloadAction<{
15
+ stageId: string;
16
+ }>) => void;
17
+ }, "assetStages">;
18
+ export declare const selectStageMapping: (state: OvermapRootState) => Record<string, AssetStage>;
19
+ export declare const selectStage: SelectorWithArgs<string, AssetStage | undefined>;
20
+ export declare const selectStages: (state: OvermapRootState) => AssetStage[];
21
+ export declare const selectStagesFromAssetTypeIds: SelectorWithArgs<string[], Record<string, AssetStage[]>>;
22
+ export declare const selectAssetTypeStagesMapping: SelectorWithArgs<string, Record<string, AssetStage>>;
23
+ export declare const selectStagesOfAssetType: SelectorWithArgs<string, AssetStage[]>;
24
+ export declare const selectStagesFromStageIds: SelectorWithArgs<string[], AssetStage[]>;
25
+ export declare const selectStageFormIdsFromStageIds: SelectorWithArgs<string[], Record<string, string>>;
26
+ export declare const addStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<AssetStage[], "assetStages/addStages">, updateStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<AssetStage[], "assetStages/updateStages">, removeStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assetStages/removeStages">, linkStageToForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
27
+ stageId: string;
28
+ formId: string;
29
+ }, "assetStages/linkStageToForm">, unlinkStageToForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
30
+ stageId: string;
31
+ }, "assetStages/unlinkStageToForm">;
32
+ export declare const assetStageReducer: Reducer<AssetStageState>;
@@ -0,0 +1,74 @@
1
+ import type { Reducer } from "@reduxjs/toolkit";
2
+ import type { AssetType, AssetTypeAttachment, OvermapRootState, Selector, SelectorWithArgs, Stored } from "../../typings";
3
+ export interface AssetTypeState {
4
+ assetTypes: Record<string, AssetType>;
5
+ hiddenAssetTypeIds: Record<string, boolean>;
6
+ attachments: Record<string, AssetTypeAttachment>;
7
+ }
8
+ export declare const assetTypeSlice: import("@reduxjs/toolkit").Slice<AssetTypeState, {
9
+ addAssetType: (state: import("immer/dist/internal.js").WritableDraft<AssetTypeState>, action: {
10
+ payload: AssetType;
11
+ }) => void;
12
+ setAssetTypes: (state: import("immer/dist/internal.js").WritableDraft<AssetTypeState>, action: {
13
+ payload: AssetType[];
14
+ }) => void;
15
+ toggleAssetTypeVisibility: (state: import("immer/dist/internal.js").WritableDraft<AssetTypeState>, action: {
16
+ payload: string;
17
+ }) => void;
18
+ deleteAssetType: (state: import("immer/dist/internal.js").WritableDraft<AssetTypeState>, action: {
19
+ payload: string;
20
+ }) => void;
21
+ setAssetTypeAttachment: (state: AssetTypeState, action: {
22
+ payload: Stored<AssetTypeAttachment>;
23
+ type: string;
24
+ }) => void;
25
+ setAssetTypeAttachments: (state: AssetTypeState, action: {
26
+ payload: Stored<AssetTypeAttachment>[];
27
+ type: string;
28
+ }) => void;
29
+ addAssetTypeAttachment: (state: AssetTypeState, action: {
30
+ payload: import('../../typings/models/issues').Submitted<AssetTypeAttachment>;
31
+ type: string;
32
+ }) => void;
33
+ addAssetTypeAttachments: (state: AssetTypeState, action: {
34
+ payload: import('../../typings/models/issues').Submitted<AssetTypeAttachment>[];
35
+ type: string;
36
+ }) => void;
37
+ updateAssetTypeAttachment: (state: AssetTypeState, action: {
38
+ payload: import('../../typings/models/issues').Submitted<AssetTypeAttachment>;
39
+ type: string;
40
+ }) => void;
41
+ updateAssetTypeAttachments: (state: AssetTypeState, action: {
42
+ payload: import('../../typings/models/issues').Submitted<AssetTypeAttachment>[];
43
+ type: string;
44
+ }) => void;
45
+ removeAssetTypeAttachment: (state: AssetTypeState, action: {
46
+ payload: string;
47
+ type: string;
48
+ }) => void;
49
+ removeAssetTypeAttachments: (state: AssetTypeState, action: {
50
+ payload: string[];
51
+ type: string;
52
+ }) => void;
53
+ }, "assetTypes">;
54
+ export declare const addAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<AssetType, "assetTypes/addAssetType">, setAssetTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<AssetType[], "assetTypes/setAssetTypes">, toggleAssetTypeVisibility: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetTypes/toggleAssetTypeVisibility">, deleteAssetType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetTypes/deleteAssetType">, setAssetTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>, "assetTypes/setAssetTypeAttachment">, setAssetTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetTypeAttachment>[], "assetTypes/setAssetTypeAttachments">, addAssetTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<AssetTypeAttachment>, "assetTypes/addAssetTypeAttachment">, addAssetTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<AssetTypeAttachment>[], "assetTypes/addAssetTypeAttachments">, updateAssetTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<AssetTypeAttachment>, "assetTypes/updateAssetTypeAttachment">, updateAssetTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<AssetTypeAttachment>[], "assetTypes/updateAssetTypeAttachments">, removeAssetTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assetTypes/removeAssetTypeAttachment">, removeAssetTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assetTypes/removeAssetTypeAttachments">;
55
+ export declare const selectAssetTypesMapping: Selector<Record<string, AssetType>>;
56
+ export declare const selectAssetTypes: Selector<AssetType[]>;
57
+ export declare const selectAssetType: SelectorWithArgs<string, AssetType>;
58
+ interface selectNumberOfAssetTypesMatchingCaseInsensitiveNameProps {
59
+ name: string | null | undefined;
60
+ assetTypeId: string | undefined;
61
+ }
62
+ export declare const selectNumberOfAssetTypesMatchingCaseInsensitiveName: SelectorWithArgs<selectNumberOfAssetTypesMatchingCaseInsensitiveNameProps, number>;
63
+ export declare const selectAssetTypesByName: SelectorWithArgs<string, AssetType[]>;
64
+ export declare const selectHiddenAssetTypeIds: Selector<Record<string, boolean | undefined>>;
65
+ export declare const selectAssetTypeAttachmentMapping: (state: OvermapRootState) => Record<string, AssetTypeAttachment>;
66
+ export declare const selectAssetTypeAttachments: Selector<Stored<AssetTypeAttachment>[]>;
67
+ export declare const selectAssetTypeAttachment: SelectorWithArgs<string, Stored<AssetTypeAttachment>>;
68
+ export declare const selectAttachmentsOfAssetType: (args: string) => (state: OvermapRootState) => Stored<AssetTypeAttachment>[];
69
+ export declare const selectAttachmentsOfAssetTypeByType: (args: string) => (state: OvermapRootState) => {
70
+ fileAttachments: Stored<AssetTypeAttachment>[];
71
+ imageAttachments: Stored<AssetTypeAttachment>[];
72
+ };
73
+ export declare const assetTypeReducer: Reducer<AssetTypeState>;
74
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { PayloadAction, Reducer } from "@reduxjs/toolkit";
2
2
  import { TokenPair } from '../../sdk/typings';
3
- import { RootState } from "../../typings";
3
+ import { OvermapRootState } from "../../typings";
4
4
  export interface AuthState {
5
5
  accessToken: string;
6
6
  refreshToken: string;
@@ -15,6 +15,6 @@ export declare const authSlice: import("@reduxjs/toolkit").Slice<AuthState, {
15
15
  setLoggedIn: (state: import("immer/dist/internal.js").WritableDraft<AuthState>, action: PayloadAction<boolean>) => void;
16
16
  }, "auth">;
17
17
  export declare const setTokens: import("@reduxjs/toolkit").ActionCreatorWithPayload<TokenPair, "auth/setTokens">, clearTokens: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/clearTokens">, setLoggedIn: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "auth/setLoggedIn">;
18
- export declare const selectAccessToken: (state: RootState) => string;
19
- export declare const selectIsLoggedIn: (state: RootState) => boolean;
18
+ export declare const selectAccessToken: (state: OvermapRootState) => string;
19
+ export declare const selectIsLoggedIn: (state: OvermapRootState) => boolean;
20
20
  export declare const authReducer: Reducer<AuthState>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="@redux-offline/redux-offline" />
2
2
  import { PayloadAction, Reducer } from "@reduxjs/toolkit";
3
- import { Category, CSSColor, Offline, RootState, Selector, SelectorWithArgs } from "../../typings";
3
+ import { Category, CSSColor, Offline, OvermapRootState, Selector, SelectorWithArgs } from "../../typings";
4
4
  interface CategoryVisibility {
5
5
  hiddenCategoryIds: string[];
6
6
  isNullCategoryHidden: boolean;
@@ -40,16 +40,16 @@ export declare const categorySlice: import("@reduxjs/toolkit").Slice<CategorySta
40
40
  }) => void;
41
41
  }, "categories">;
42
42
  export declare const setCategories: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category[], "categories/setCategories">, addCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category, "categories/addCategory">, replaceCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category, "categories/replaceCategory">, patchCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Offline<Partial<Category>>, "categories/patchCategory">, removeCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "categories/removeCategory">, hideCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "categories/hideCategory">, hideAllCategories: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"categories/hideAllCategories">, unhideCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "categories/unhideCategory">, unhideAllCategories: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"categories/unhideAllCategories">, removeColor: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "categories/removeColor">, addOrReplaceCategories: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category[], "categories/addOrReplaceCategories">;
43
- export declare const selectCategoryMapping: (state: RootState) => Record<string, Category>;
43
+ export declare const selectCategoryMapping: (state: OvermapRootState) => Record<string, Category>;
44
44
  export declare const selectCategories: ((state: import("redux").EmptyObject & {
45
45
  versioning: import('../slices/versioningSlice').VersioningState;
46
46
  fileReducer: import('..').FileState;
47
47
  authReducer: import('..').AuthState;
48
48
  categoryReducer: CategoryState;
49
- componentReducer: import('..').ComponentState;
50
- componentStageCompletionReducer: import('..').ComponentStageCompletionState;
51
- componentStageReducer: import('..').ComponentStageState;
52
- componentTypeReducer: import('..').ComponentTypeState;
49
+ assetReducer: import('..').AssetState;
50
+ assetStageCompletionReducer: import('..').AssetStageCompletionState;
51
+ assetStageReducer: import('..').AssetStageState;
52
+ assetTypeReducer: import('..').AssetTypeState;
53
53
  issueReducer: import('..').IssueState;
54
54
  issueTypeReducer: import('..').IssueTypeState;
55
55
  mapReducer: import('..').MapState;
@@ -79,10 +79,10 @@ export declare const selectCategories: ((state: import("redux").EmptyObject & {
79
79
  clearCache: () => void;
80
80
  };
81
81
  export declare const selectCategoriesOfWorkspace: SelectorWithArgs<string, Category[]>;
82
- export declare const selectCategory: (offline_id: string | null) => (state: RootState) => Category | undefined;
82
+ export declare const selectCategory: (offline_id: string | null) => (state: OvermapRootState) => Category | undefined;
83
83
  export declare const selectUsedColors: Selector<CSSColor[]>;
84
- export declare const selectCategoryVisibility: (state: RootState) => CategoryVisibility;
85
- export declare const selectHiddenCategoryCount: (state: RootState) => number;
84
+ export declare const selectCategoryVisibility: (state: OvermapRootState) => CategoryVisibility;
85
+ export declare const selectHiddenCategoryCount: (state: OvermapRootState) => number;
86
86
  export declare const selectIssueCountOfCategory: SelectorWithArgs<string | null, number>;
87
87
  export declare const categoryReducer: Reducer<CategoryState>;
88
88
  export {};
@@ -1,7 +1,6 @@
1
1
  /// <reference types="@redux-offline/redux-offline" />
2
2
  import { Reducer } from "@reduxjs/toolkit";
3
- import { DocumentAttachment, MovePosition, Document, RootState, Selector, SelectorWithArgs, Stored, Submitted } from "../../typings";
4
- import { AppSelector } from "./componentTypeSlice";
3
+ import { DocumentAttachment, MovePosition, Document, OvermapRootState, Selector, SelectorWithArgs, Stored, Submitted } from "../../typings";
5
4
  export interface DocumentState {
6
5
  documents: Record<string, Stored<Document>>;
7
6
  attachments: Record<string, Stored<DocumentAttachment>>;
@@ -193,9 +192,9 @@ export declare const setDocuments: import("@reduxjs/toolkit").ActionCreatorWithP
193
192
  } & {
194
193
  children_documents: string[];
195
194
  }, "id" | "created_at" | "created_by">)>>[], "documents/updateDocuments">, moveDocument: import("@reduxjs/toolkit").ActionCreatorWithPayload<MoveDocumentPayload, "documents/moveDocument">, removeDocuments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "documents/removeDocuments">, setDocumentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>, "documents/setDocumentAttachment">, setDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentAttachment>[], "documents/setDocumentAttachments">, addDocumentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<DocumentAttachment>, "documents/addDocumentAttachment">, addDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<DocumentAttachment>[], "documents/addDocumentAttachments">, updateDocumentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<DocumentAttachment>, "documents/updateDocumentAttachment">, updateDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<DocumentAttachment>[], "documents/updateDocumentAttachments">, removeDocumentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "documents/removeDocumentAttachment">, removeDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "documents/removeDocumentAttachments">;
196
- export declare const selectDocumentsMapping: AppSelector<Record<string, Stored<Document>>>;
197
- export declare const selectDocuments: AppSelector<Stored<Document>[]>;
198
- export declare const selectDocument: (args: string) => (state: RootState) => (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
195
+ export declare const selectDocumentsMapping: Selector<Record<string, Stored<Document>>>;
196
+ export declare const selectDocuments: Selector<Stored<Document>[]>;
197
+ export declare const selectDocument: (args: string) => (state: OvermapRootState) => (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
199
198
  title: string | null;
200
199
  description: string | null;
201
200
  content: string | null;
@@ -240,16 +239,16 @@ export declare const selectDocument: (args: string) => (state: RootState) => (im
240
239
  } & {
241
240
  children_documents: string[];
242
241
  }, "id" | "created_at" | "created_by">) | undefined;
243
- export declare const selectAncestorIdsOfDocument: (args: string) => (state: RootState) => string[];
242
+ export declare const selectAncestorIdsOfDocument: (args: string) => (state: OvermapRootState) => string[];
244
243
  export declare const selectRootDocuments: ((state: import("redux").EmptyObject & {
245
244
  versioning: import('../slices/versioningSlice').VersioningState;
246
245
  fileReducer: import('..').FileState;
247
246
  authReducer: import('..').AuthState;
248
247
  categoryReducer: import('..').CategoryState;
249
- componentReducer: import('..').ComponentState;
250
- componentStageCompletionReducer: import('..').ComponentStageCompletionState;
251
- componentStageReducer: import('..').ComponentStageState;
252
- componentTypeReducer: import("./componentTypeSlice").ComponentTypeState;
248
+ assetReducer: import('..').AssetState;
249
+ assetStageCompletionReducer: import('..').AssetStageCompletionState;
250
+ assetStageReducer: import('..').AssetStageState;
251
+ assetTypeReducer: import('..').AssetTypeState;
253
252
  issueReducer: import('..').IssueState;
254
253
  issueTypeReducer: import('..').IssueTypeState;
255
254
  mapReducer: import('..').MapState;
@@ -410,11 +409,11 @@ export declare const selectRootDocuments: ((state: import("redux").EmptyObject &
410
409
  }> & {
411
410
  clearCache: () => void;
412
411
  };
413
- export declare const selectDocumentAttachmentMapping: (state: RootState) => Record<string, Stored<DocumentAttachment>>;
412
+ export declare const selectDocumentAttachmentMapping: (state: OvermapRootState) => Record<string, Stored<DocumentAttachment>>;
414
413
  export declare const selectAllDocumentAttachments: Selector<Stored<DocumentAttachment>[]>;
415
414
  export declare const selectDocumentAttachment: SelectorWithArgs<string, Stored<DocumentAttachment>>;
416
- export declare const selectAttachmentsOfDocument: (args: string) => (state: RootState) => Stored<DocumentAttachment>[];
417
- export declare const selectAttachmentsOfDocumentByType: (args: string) => (state: RootState) => {
415
+ export declare const selectAttachmentsOfDocument: (args: string) => (state: OvermapRootState) => Stored<DocumentAttachment>[];
416
+ export declare const selectAttachmentsOfDocumentByType: (args: string) => (state: OvermapRootState) => {
418
417
  fileAttachments: Stored<DocumentAttachment>[];
419
418
  imageAttachments: Stored<DocumentAttachment>[];
420
419
  };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="@redux-offline/redux-offline" />
2
2
  import { PayloadAction, Reducer } from "@reduxjs/toolkit";
3
- import { RootState, Selector, SelectorWithArgs, Stored, UserForm, UserFormRevision, UserFormRevisionAttachment } from "../../typings";
3
+ import { OvermapRootState, Selector, SelectorWithArgs, Stored, UserForm, UserFormRevision, UserFormRevisionAttachment } from "../../typings";
4
4
  export interface FormRevisionState {
5
5
  formRevisions: Record<UserFormRevision["offline_id"], Stored<UserFormRevision>>;
6
6
  attachments: Record<UserFormRevisionAttachment["offline_id"], Stored<UserFormRevisionAttachment>>;
@@ -19,16 +19,16 @@ export declare const formRevisionsSlice: import("@reduxjs/toolkit").Slice<FormRe
19
19
  deleteFormRevisionAttachments: (state: import("immer/dist/internal.js").WritableDraft<FormRevisionState>, action: PayloadAction<UserFormRevisionAttachment["offline_id"][]>) => void;
20
20
  }, "formRevisions">;
21
21
  export declare const setFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevision<import('../../forms').ISerializedField>>, "formRevisions/setFormRevision">, setFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevision<import('../../forms').ISerializedField>>[], "formRevisions/setFormRevisions">, addFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevision<import('../../forms').ISerializedField>>, "formRevisions/addFormRevision">, addFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevision<import('../../forms').ISerializedField>>[], "formRevisions/addFormRevisions">, deleteFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "formRevisions/deleteFormRevision">, deleteFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "formRevisions/deleteFormRevisions">, setFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevisionAttachment>[], "formRevisions/setFormRevisionAttachments">, addFormRevisionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevisionAttachment>, "formRevisions/addFormRevisionAttachment">, addFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormRevisionAttachment>[], "formRevisions/addFormRevisionAttachments">, deleteFormRevisionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "formRevisions/deleteFormRevisionAttachment">, deleteFormRevisionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "formRevisions/deleteFormRevisionAttachments">;
22
- export declare const selectFormRevisionMapping: (state: RootState) => Record<string, Stored<UserFormRevision<import('../../forms').ISerializedField>>>;
22
+ export declare const selectFormRevisionMapping: (state: OvermapRootState) => Record<string, Stored<UserFormRevision<import('../../forms').ISerializedField>>>;
23
23
  export declare const selectFormRevisions: ((state: import("redux").EmptyObject & {
24
24
  versioning: import('../slices/versioningSlice').VersioningState;
25
25
  fileReducer: import('..').FileState;
26
26
  authReducer: import('..').AuthState;
27
27
  categoryReducer: import('..').CategoryState;
28
- componentReducer: import('..').ComponentState;
29
- componentStageCompletionReducer: import('..').ComponentStageCompletionState;
30
- componentStageReducer: import('..').ComponentStageState;
31
- componentTypeReducer: import('..').ComponentTypeState;
28
+ assetReducer: import('..').AssetState;
29
+ assetStageCompletionReducer: import('..').AssetStageCompletionState;
30
+ assetStageReducer: import('..').AssetStageState;
31
+ assetTypeReducer: import('..').AssetTypeState;
32
32
  issueReducer: import('..').IssueState;
33
33
  issueTypeReducer: import('..').IssueTypeState;
34
34
  mapReducer: import('..').MapState;
@@ -61,7 +61,7 @@ export declare const selectFormRevision: SelectorWithArgs<string, Stored<UserFor
61
61
  export declare const _selectLatestFormRevision: (formRevisions: FormRevisionState["formRevisions"], formId: string) => Stored<UserFormRevision>;
62
62
  export declare const selectLatestFormRevisionOfForm: SelectorWithArgs<string, Stored<UserFormRevision>>;
63
63
  export declare const selectFormRevisionsOfForm: SelectorWithArgs<string, Stored<UserFormRevision>[]>;
64
- export declare const selectLatestFormRevisionsOfComponentTypes: SelectorWithArgs<string[], Record<string, Stored<UserFormRevision>>>;
64
+ export declare const selectLatestFormRevisionsOfAssetTypes: SelectorWithArgs<string[], Record<string, Stored<UserFormRevision>>>;
65
65
  export declare const selectLatestFormRevisionByForm: Selector<Record<Stored<UserForm>["offline_id"], Stored<UserFormRevision>>>;
66
66
  export declare const selectUserFormRevisionAttachmentsMapping: Selector<FormRevisionState["attachments"]>;
67
67
  export declare const selectAttachmentsOfFormRevision: SelectorWithArgs<string, Stored<UserFormRevisionAttachment>[]>;