@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.
Files changed (49) hide show
  1. package/LICENSE +1 -0
  2. package/dist/constants/ui.d.ts +1 -1
  3. package/dist/enums/ui.d.ts +1 -1
  4. package/dist/forms/builder/constants.d.ts +1 -1
  5. package/dist/forms/builder/hooks.d.ts +1 -1
  6. package/dist/overmap-core.js +564 -615
  7. package/dist/overmap-core.js.map +1 -1
  8. package/dist/overmap-core.umd.cjs +564 -615
  9. package/dist/overmap-core.umd.cjs.map +1 -1
  10. package/dist/sdk/sdk.d.ts +7 -7
  11. package/dist/sdk/services/AssetAttachmentService.d.ts +10 -0
  12. package/dist/sdk/services/AssetService.d.ts +11 -0
  13. package/dist/sdk/services/AssetStageCompletionService.d.ts +16 -0
  14. package/dist/sdk/services/AssetStageService.d.ts +11 -0
  15. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +10 -0
  16. package/dist/sdk/services/AssetTypeService.d.ts +9 -0
  17. package/dist/sdk/services/UserFormService.d.ts +2 -2
  18. package/dist/sdk/services/UserFormSubmissionService.d.ts +1 -1
  19. package/dist/sdk/services/index.d.ts +6 -6
  20. package/dist/store/slices/assetSlice.d.ts +63 -0
  21. package/dist/store/slices/assetStageCompletionSlice.d.ts +15 -0
  22. package/dist/store/slices/assetStageSlice.d.ts +32 -0
  23. package/dist/store/slices/assetTypeSlice.d.ts +74 -0
  24. package/dist/store/slices/categorySlice.d.ts +4 -4
  25. package/dist/store/slices/documentSlice.d.ts +6 -7
  26. package/dist/store/slices/formRevisionSlice.d.ts +5 -5
  27. package/dist/store/slices/formSlice.d.ts +7 -7
  28. package/dist/store/slices/formSubmissionSlice.d.ts +2 -2
  29. package/dist/store/slices/index.d.ts +4 -4
  30. package/dist/store/slices/issueSlice.d.ts +4 -4
  31. package/dist/store/slices/projectFileSlice.d.ts +4 -4
  32. package/dist/store/slices/workspaceSlice.d.ts +4 -4
  33. package/dist/store/store.d.ts +13 -13
  34. package/dist/typings/models/access.d.ts +1 -0
  35. package/dist/typings/models/attachments.d.ts +6 -6
  36. package/dist/typings/models/components.d.ts +11 -7
  37. package/dist/typings/models/forms.d.ts +3 -3
  38. package/dist/utils/colors.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/dist/sdk/services/ComponentAttachmentService.d.ts +0 -10
  41. package/dist/sdk/services/ComponentService.d.ts +0 -11
  42. package/dist/sdk/services/ComponentStageCompletionService.d.ts +0 -17
  43. package/dist/sdk/services/ComponentStageService.d.ts +0 -11
  44. package/dist/sdk/services/ComponentTypeAttachmentService.d.ts +0 -10
  45. package/dist/sdk/services/ComponentTypeService.d.ts +0 -9
  46. package/dist/store/slices/ComponentStageCompletionSlice.d.ts +0 -27
  47. package/dist/store/slices/componentSlice.d.ts +0 -73
  48. package/dist/store/slices/componentStageSlice.d.ts +0 -42
  49. package/dist/store/slices/componentTypeSlice.d.ts +0 -75
package/dist/sdk/sdk.d.ts CHANGED
@@ -1,4 +1,4 @@
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
3
  import { RootState } from "../typings";
4
4
  import { SDKRequest } from "./typings";
@@ -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;
@@ -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";
@@ -0,0 +1,63 @@
1
+ import { PayloadAction, Reducer } from "@reduxjs/toolkit";
2
+ import { Asset, AssetAttachment, AssetType, RootState, 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: RootState) => Asset[];
49
+ export declare const selectAssetsMapping: (state: RootState) => 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: RootState) => 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: RootState) => Stored<AssetAttachment>[];
59
+ export declare const selectAttachmentsOfAssetByType: (args: string) => (state: RootState) => {
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, RootState, 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: RootState) => 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, RootState, 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: RootState) => Record<string, AssetStage>;
19
+ export declare const selectStage: SelectorWithArgs<string, AssetStage | undefined>;
20
+ export declare const selectStages: (state: RootState) => 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, RootState, 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: RootState) => Record<string, AssetTypeAttachment>;
66
+ export declare const selectAssetTypeAttachments: Selector<Stored<AssetTypeAttachment>[]>;
67
+ export declare const selectAssetTypeAttachment: SelectorWithArgs<string, Stored<AssetTypeAttachment>>;
68
+ export declare const selectAttachmentsOfAssetType: (args: string) => (state: RootState) => Stored<AssetTypeAttachment>[];
69
+ export declare const selectAttachmentsOfAssetTypeByType: (args: string) => (state: RootState) => {
70
+ fileAttachments: Stored<AssetTypeAttachment>[];
71
+ imageAttachments: Stored<AssetTypeAttachment>[];
72
+ };
73
+ export declare const assetTypeReducer: Reducer<AssetTypeState>;
74
+ export {};
@@ -46,10 +46,10 @@ export declare const selectCategories: ((state: import("redux").EmptyObject & {
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;
@@ -1,7 +1,6 @@
1
1
  /// <reference types="@redux-offline/redux-offline" />
2
2
  import { Reducer } from "@reduxjs/toolkit";
3
3
  import { DocumentAttachment, MovePosition, Document, RootState, Selector, SelectorWithArgs, Stored, Submitted } from "../../typings";
4
- import { AppSelector } from "./componentTypeSlice";
5
4
  export interface DocumentState {
6
5
  documents: Record<string, Stored<Document>>;
7
6
  attachments: Record<string, Stored<DocumentAttachment>>;
@@ -193,8 +192,8 @@ 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>[]>;
195
+ export declare const selectDocumentsMapping: Selector<Record<string, Stored<Document>>>;
196
+ export declare const selectDocuments: Selector<Stored<Document>[]>;
198
197
  export declare const selectDocument: (args: string) => (state: RootState) => (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
199
198
  title: string | null;
200
199
  description: string | null;
@@ -246,10 +245,10 @@ export declare const selectRootDocuments: ((state: import("redux").EmptyObject &
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;
@@ -25,10 +25,10 @@ export declare const selectFormRevisions: ((state: import("redux").EmptyObject &
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>[]>;
@@ -24,7 +24,7 @@ export declare const formSlice: import("@reduxjs/toolkit").Slice<FormState, {
24
24
  }, "forms">;
25
25
  export declare const setForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<((Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
26
26
  favorite: boolean;
27
- component_type?: string | undefined;
27
+ asset_type?: string | undefined;
28
28
  issue_type?: string | undefined;
29
29
  } & {
30
30
  owner_organization: number;
@@ -36,7 +36,7 @@ export declare const setForms: import("@reduxjs/toolkit").ActionCreatorWithPaylo
36
36
  submitted_at: string;
37
37
  }) | (Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
38
38
  favorite: boolean;
39
- component_type?: string | undefined;
39
+ asset_type?: string | undefined;
40
40
  issue_type?: string | undefined;
41
41
  } & {
42
42
  owner_organization: undefined;
@@ -48,7 +48,7 @@ export declare const setForms: import("@reduxjs/toolkit").ActionCreatorWithPaylo
48
48
  submitted_at: string;
49
49
  }))[], "forms/setForms">, addForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<(Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
50
50
  favorite: boolean;
51
- component_type?: string | undefined;
51
+ asset_type?: string | undefined;
52
52
  issue_type?: string | undefined;
53
53
  } & {
54
54
  owner_organization: number;
@@ -60,7 +60,7 @@ export declare const setForms: import("@reduxjs/toolkit").ActionCreatorWithPaylo
60
60
  submitted_at: string;
61
61
  }) | (Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
62
62
  favorite: boolean;
63
- component_type?: string | undefined;
63
+ asset_type?: string | undefined;
64
64
  issue_type?: string | undefined;
65
65
  } & {
66
66
  owner_organization: undefined;
@@ -72,7 +72,7 @@ export declare const setForms: import("@reduxjs/toolkit").ActionCreatorWithPaylo
72
72
  submitted_at: string;
73
73
  }), "forms/addForm">, addForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<((Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
74
74
  favorite: boolean;
75
- component_type?: string | undefined;
75
+ asset_type?: string | undefined;
76
76
  issue_type?: string | undefined;
77
77
  } & {
78
78
  owner_organization: number;
@@ -84,7 +84,7 @@ export declare const setForms: import("@reduxjs/toolkit").ActionCreatorWithPaylo
84
84
  submitted_at: string;
85
85
  }) | (Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
86
86
  favorite: boolean;
87
- component_type?: string | undefined;
87
+ asset_type?: string | undefined;
88
88
  issue_type?: string | undefined;
89
89
  } & {
90
90
  owner_organization: undefined;
@@ -110,7 +110,7 @@ export type FormSearchArgs = SearchArgs<{
110
110
  export declare const selectFilteredForms: SelectorWithArgs<FormSearchArgs, CachedUserForm[]>;
111
111
  export declare const selectForm: SelectorWithArgs<string, Stored<UserForm>>;
112
112
  export declare const selectFormMapping: Selector<Record<Stored<UserForm>["offline_id"], Stored<UserForm>>>;
113
- export declare const selectFormOfComponentType: SelectorWithArgs<string, Stored<UserForm>>;
113
+ export declare const selectFormOfAssetType: SelectorWithArgs<string, Stored<UserForm>>;
114
114
  export declare const selectFormOfIssueType: SelectorWithArgs<string, Stored<UserForm>>;
115
115
  export declare const selectFormsCount: Selector<number>;
116
116
  export declare const selectGeneralFormCount: Selector<number>;
@@ -42,8 +42,8 @@ export declare const selectFormSubmissionsOfForm: SelectorWithArgs<string, Store
42
42
  export declare const selectFormSubmissionsByFormRevisions: Selector<Record<string, Stored<UserFormSubmission>[]>>;
43
43
  export declare const selectSortedFormSubmissionsOfForm: SelectorWithArgs<string, Stored<UserFormSubmission>[]>;
44
44
  export declare const selectFormSubmissionsOfIssue: SelectorWithArgs<string, Stored<UserFormSubmission>[]>;
45
- export declare const selectFormSubmissionsOfComponent: SelectorWithArgs<string, Stored<UserFormSubmission>[]>;
46
- export declare const selectFormSubmissionsByComponents: Selector<Record<string, Stored<UserFormSubmission>[]>>;
45
+ export declare const selectFormSubmissionsOfAsset: SelectorWithArgs<string, Stored<UserFormSubmission>[]>;
46
+ export declare const selectFormSubmissionsByAssets: Selector<Record<string, Stored<UserFormSubmission>[]>>;
47
47
  export declare const selectFormSubmissionAttachmentsMapping: Selector<FormSubmissionState["attachments"]>;
48
48
  export declare const selectAttachmentsOfFormSubmission: SelectorWithArgs<string, Stored<UserFormSubmissionAttachment>[]>;
49
49
  export declare const formSubmissionReducer: Reducer<FormSubmissionState>;
@@ -1,9 +1,9 @@
1
1
  export * from "./authSlice";
2
2
  export * from "./categorySlice";
3
- export * from "./componentSlice";
4
- export * from "./ComponentStageCompletionSlice";
5
- export * from "./componentStageSlice";
6
- export * from "./componentTypeSlice";
3
+ export * from "./assetSlice";
4
+ export * from "./assetStageCompletionSlice";
5
+ export * from "./assetStageSlice";
6
+ export * from "./assetTypeSlice";
7
7
  export * from "./issueSlice";
8
8
  export * from "./issueTypeSlice";
9
9
  export * from "./fileSlice";
@@ -134,10 +134,10 @@ export declare const selectAllAttachments: ((state: import("redux").EmptyObject
134
134
  fileReducer: import('..').FileState;
135
135
  authReducer: import('..').AuthState;
136
136
  categoryReducer: import("./categorySlice").CategoryState;
137
- componentReducer: import('..').ComponentState;
138
- componentStageCompletionReducer: import('..').ComponentStageCompletionState;
139
- componentStageReducer: import('..').ComponentStageState;
140
- componentTypeReducer: import('..').ComponentTypeState;
137
+ assetReducer: import('..').AssetState;
138
+ assetStageCompletionReducer: import('..').AssetStageCompletionState;
139
+ assetStageReducer: import('..').AssetStageState;
140
+ assetTypeReducer: import('..').AssetTypeState;
141
141
  issueReducer: IssueState;
142
142
  issueTypeReducer: import('..').IssueTypeState;
143
143
  mapReducer: import('..').MapState;
@@ -54,10 +54,10 @@ export declare const selectProjectFiles: ((state: import("redux").EmptyObject &
54
54
  fileReducer: import('..').FileState;
55
55
  authReducer: import('..').AuthState;
56
56
  categoryReducer: import('..').CategoryState;
57
- componentReducer: import('..').ComponentState;
58
- componentStageCompletionReducer: import('..').ComponentStageCompletionState;
59
- componentStageReducer: import('..').ComponentStageState;
60
- componentTypeReducer: import('..').ComponentTypeState;
57
+ assetReducer: import('..').AssetState;
58
+ assetStageCompletionReducer: import('..').AssetStageCompletionState;
59
+ assetStageReducer: import('..').AssetStageState;
60
+ assetTypeReducer: import('..').AssetTypeState;
61
61
  issueReducer: import('..').IssueState;
62
62
  issueTypeReducer: import('..').IssueTypeState;
63
63
  mapReducer: import('..').MapState;
@@ -32,10 +32,10 @@ export declare const selectWorkspaces: ((state: import("redux").EmptyObject & {
32
32
  fileReducer: import('..').FileState;
33
33
  authReducer: import('..').AuthState;
34
34
  categoryReducer: import('..').CategoryState;
35
- componentReducer: import('..').ComponentState;
36
- componentStageCompletionReducer: import('..').ComponentStageCompletionState;
37
- componentStageReducer: import('..').ComponentStageState;
38
- componentTypeReducer: import('..').ComponentTypeState;
35
+ assetReducer: import('..').AssetState;
36
+ assetStageCompletionReducer: import('..').AssetStageCompletionState;
37
+ assetStageReducer: import('..').AssetStageState;
38
+ assetTypeReducer: import('..').AssetTypeState;
39
39
  issueReducer: import('..').IssueState;
40
40
  issueTypeReducer: import('..').IssueTypeState;
41
41
  mapReducer: import('..').MapState;