@overmap-ai/core 1.0.53-add-agent-conversations.6 → 1.0.53-attachment-creation-flows.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/overmap-core.js +1163 -1120
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +1129 -1086
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +6 -2
- package/dist/sdk/services/AgentService.d.ts +30 -2
- package/dist/sdk/services/BaseAttachmentService.d.ts +31 -0
- package/dist/sdk/services/ComponentAttachmentService.d.ts +10 -0
- package/dist/sdk/services/ComponentTypeAttachmentService.d.ts +10 -0
- package/dist/sdk/services/DocumentAttachmentService.d.ts +10 -0
- package/dist/sdk/services/IssueAttachmentService.d.ts +10 -0
- package/dist/sdk/services/IssueService.d.ts +1 -1
- package/dist/sdk/services/ProjectAttachmentService.d.ts +10 -0
- package/dist/sdk/services/index.d.ts +5 -1
- package/dist/store/slices/categorySlice.d.ts +0 -1
- package/dist/store/slices/componentSlice.d.ts +15 -7
- package/dist/store/slices/componentTypeSlice.d.ts +16 -8
- package/dist/store/slices/documentSlice.d.ts +10 -3
- package/dist/store/slices/formRevisionSlice.d.ts +0 -1
- package/dist/store/slices/index.d.ts +0 -1
- package/dist/store/slices/issueSlice.d.ts +33 -22
- package/dist/store/slices/projectFileSlice.d.ts +0 -1
- package/dist/store/slices/projectSlice.d.ts +12 -3
- package/dist/store/slices/utils.d.ts +3 -2
- package/dist/store/slices/workspaceSlice.d.ts +0 -1
- package/dist/store/store.d.ts +1 -4
- package/dist/typings/models/attachments.d.ts +7 -0
- package/dist/typings/models/index.d.ts +0 -1
- package/dist/typings/models/projects.d.ts +4 -5
- package/dist/utils/utils.d.ts +0 -1
- package/package.json +153 -153
- package/dist/sdk/services/AttachmentService.d.ts +0 -46
- package/dist/store/slices/agentsSlice.d.ts +0 -15
- package/dist/typings/models/agents.d.ts +0 -44
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthService, CategoryService, ComponentService, ComponentStageCompletionService, ComponentStageService, ComponentAttachmentService, ComponentTypeService, ComponentTypeAttachmentService, EmailVerificationService, FileService, IssueCommentService, IssueAttachmentService, IssueService, MainService, OrganizationAccessService, ProjectAccessService, ProjectFileService, ProjectAttachmentService, ProjectService, UserFormService, UserFormSubmissionService, WorkspaceService, OrganizationService, EmailDomainsService, LicenseService, DocumentService, DocumentAttachmentService, IssueUpdateService, AgentService, TeamService, IssueTypeService } from "./services";
|
|
2
2
|
import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore.js";
|
|
3
3
|
import { RootState } from "../typings";
|
|
4
4
|
export declare class OvermapSDK {
|
|
@@ -7,7 +7,6 @@ export declare class OvermapSDK {
|
|
|
7
7
|
constructor(apiUrl: string, store: ToolkitStore<RootState>);
|
|
8
8
|
agent: AgentService;
|
|
9
9
|
files: FileService;
|
|
10
|
-
attachments: AttachmentService;
|
|
11
10
|
auth: AuthService;
|
|
12
11
|
categories: CategoryService;
|
|
13
12
|
projectAccesses: ProjectAccessService;
|
|
@@ -17,20 +16,25 @@ export declare class OvermapSDK {
|
|
|
17
16
|
issueTypes: IssueTypeService;
|
|
18
17
|
issueComments: IssueCommentService;
|
|
19
18
|
issueUpdates: IssueUpdateService;
|
|
19
|
+
issueAttachments: IssueAttachmentService;
|
|
20
20
|
workspaces: WorkspaceService;
|
|
21
21
|
main: MainService;
|
|
22
22
|
components: ComponentService;
|
|
23
|
+
componentAttachments: ComponentAttachmentService;
|
|
23
24
|
componentTypes: ComponentTypeService;
|
|
25
|
+
componentTypeAttachments: ComponentTypeAttachmentService;
|
|
24
26
|
componentStages: ComponentStageService;
|
|
25
27
|
componentStageCompletions: ComponentStageCompletionService;
|
|
26
28
|
userForms: UserFormService;
|
|
27
29
|
userFormSubmissions: UserFormSubmissionService;
|
|
28
30
|
projects: ProjectService;
|
|
29
31
|
projectFiles: ProjectFileService;
|
|
32
|
+
projectAttachments: ProjectAttachmentService;
|
|
30
33
|
emailVerification: EmailVerificationService;
|
|
31
34
|
emailDomains: EmailDomainsService;
|
|
32
35
|
licenses: LicenseService;
|
|
33
36
|
documents: DocumentService;
|
|
34
37
|
teams: TeamService;
|
|
38
|
+
documentAttachments: DocumentAttachmentService;
|
|
35
39
|
}
|
|
36
40
|
export declare const makeClient: (apiUrl: string, store: ToolkitStore<RootState>) => OvermapSDK;
|
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import {
|
|
2
|
+
import { OptionalFileModel, Payload } from "../../typings";
|
|
3
|
+
import { JSONContent } from "@tiptap/core";
|
|
4
|
+
export interface AgentProfile extends OptionalFileModel {
|
|
5
|
+
/**
|
|
6
|
+
* The name of the agent.
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* The description of the agent.
|
|
11
|
+
*/
|
|
12
|
+
description: string;
|
|
13
|
+
}
|
|
14
|
+
export interface PromptAgentResponse {
|
|
15
|
+
/**
|
|
16
|
+
* The response from the agent.
|
|
17
|
+
*/
|
|
18
|
+
response: JSONContent[];
|
|
19
|
+
/**
|
|
20
|
+
* The UUID of the conversation.
|
|
21
|
+
*/
|
|
22
|
+
conversation_id: string;
|
|
23
|
+
/**
|
|
24
|
+
* The UUID of the response (used when submitting ratings)
|
|
25
|
+
*/
|
|
26
|
+
response_id: string;
|
|
27
|
+
/**
|
|
28
|
+
* The profile of the agent. Only included in the first response in a conversation.
|
|
29
|
+
*/
|
|
30
|
+
profile?: AgentProfile;
|
|
31
|
+
}
|
|
3
32
|
export declare class AgentService extends BaseApiService {
|
|
4
33
|
/**
|
|
5
34
|
* Prompt the agent with a message.
|
|
@@ -8,5 +37,4 @@ export declare class AgentService extends BaseApiService {
|
|
|
8
37
|
*/
|
|
9
38
|
prompt(request: Payload<string>, conversationId?: string | null | undefined): Promise<PromptAgentResponse>;
|
|
10
39
|
rate(responseId: string, rating: 1 | 5): Promise<undefined>;
|
|
11
|
-
refreshStore(): Promise<void>;
|
|
12
40
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ActionCreatorWithPayload } from "@reduxjs/toolkit";
|
|
2
|
+
import { BaseApiService } from "./BaseApiService";
|
|
3
|
+
import { OptimisticMultipleModelResult } from "../typings";
|
|
4
|
+
import { Attachment, AttachmentModel, SelectorWithArgs, Stored, Submitted } from "../../typings";
|
|
5
|
+
export interface BuildOfflineAttachmentData<TModelId> {
|
|
6
|
+
file: File;
|
|
7
|
+
sha1: string;
|
|
8
|
+
submittedAt: string;
|
|
9
|
+
createdBy: number;
|
|
10
|
+
description?: string;
|
|
11
|
+
modelId: TModelId;
|
|
12
|
+
}
|
|
13
|
+
export declare abstract class BaseAttachmentService extends BaseApiService {
|
|
14
|
+
abstract readonly attachmentModel: AttachmentModel;
|
|
15
|
+
private getNumberOfAttachmentsWithSha1;
|
|
16
|
+
private processPresignedUrls;
|
|
17
|
+
protected getAttachments<TAttachment extends Attachment>(actions: {
|
|
18
|
+
setAttachments: ActionCreatorWithPayload<Submitted<TAttachment>[]>;
|
|
19
|
+
}): Promise<void>;
|
|
20
|
+
protected attachFiles<TAttachment extends Attachment, TModelId = string | number>(files: File[], modelId: TModelId, buildOfflineAttachment: (data: BuildOfflineAttachmentData<TModelId>) => Stored<TAttachment>, actions: {
|
|
21
|
+
addAttachments: ActionCreatorWithPayload<Submitted<TAttachment>[]>;
|
|
22
|
+
updateAttachments: ActionCreatorWithPayload<Submitted<TAttachment>[]>;
|
|
23
|
+
removeAttachments: ActionCreatorWithPayload<string[]>;
|
|
24
|
+
}): Promise<OptimisticMultipleModelResult<TAttachment>>;
|
|
25
|
+
protected deleteAttachment<TAttachment extends Attachment>(attachmendId: string, actions: {
|
|
26
|
+
setAttachment: ActionCreatorWithPayload<Stored<TAttachment>>;
|
|
27
|
+
removeAttachment: ActionCreatorWithPayload<string>;
|
|
28
|
+
}, selectors: {
|
|
29
|
+
selectAttachment: SelectorWithArgs<string, Stored<TAttachment>>;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseAttachmentService } from "./BaseAttachmentService";
|
|
2
|
+
import { AttachmentModel, DocumentAttachment } from "../../typings";
|
|
3
|
+
import { OptimisticMultipleModelResult } from "../typings";
|
|
4
|
+
export declare class DocumentAttachmentService extends BaseAttachmentService {
|
|
5
|
+
attachmentModel: AttachmentModel;
|
|
6
|
+
private buildOfflineAttachment;
|
|
7
|
+
attachFilesToDocument(files: File[], documentId: string): Promise<OptimisticMultipleModelResult<DocumentAttachment>>;
|
|
8
|
+
deleteDocumentAttachment(attachmentId: string): Promise<void>;
|
|
9
|
+
refreshStore(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseAttachmentService } from "./BaseAttachmentService";
|
|
2
|
+
import { OptimisticMultipleModelResult } from "../typings";
|
|
3
|
+
import { AttachmentModel, IssueAttachment } from "../../typings";
|
|
4
|
+
export declare class IssueAttachmentService extends BaseAttachmentService {
|
|
5
|
+
attachmentModel: AttachmentModel;
|
|
6
|
+
private buildOfflineAttachment;
|
|
7
|
+
attachFilesToIssue(files: File[], issueId: string): Promise<OptimisticMultipleModelResult<IssueAttachment>>;
|
|
8
|
+
deleteIssueAttachment(attachmentId: string): Promise<void>;
|
|
9
|
+
refreshStore(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -5,7 +5,7 @@ import { Issue, IssueType, Submitted } from "../../typings";
|
|
|
5
5
|
* Handles CRUD operations on issues
|
|
6
6
|
*/
|
|
7
7
|
export declare class IssueService extends BaseApiService {
|
|
8
|
-
add(issue: Issue,
|
|
8
|
+
add(issue: Issue, issueType?: IssueType["offline_id"] | null): OptimisticModelResult<Issue>;
|
|
9
9
|
fetchAll(projectId: number): OptimisticMultipleModelResult<Issue>;
|
|
10
10
|
update(issue: Submitted<Partial<Issue>>): OptimisticModelResult<Issue>;
|
|
11
11
|
remove(id: string): Promise<undefined>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseAttachmentService } from "./BaseAttachmentService";
|
|
2
|
+
import { AttachmentModel, ProjectAttachment } from "../../typings";
|
|
3
|
+
import { OptimisticMultipleModelResult } from "../typings";
|
|
4
|
+
export declare class ProjectAttachmentService extends BaseAttachmentService {
|
|
5
|
+
attachmentModel: AttachmentModel;
|
|
6
|
+
private buildOfflineAttachment;
|
|
7
|
+
attachFilesToProject(files: File[], projectId: number): Promise<OptimisticMultipleModelResult<ProjectAttachment>>;
|
|
8
|
+
deleteProjectAttachment(attachmentId: string): Promise<void>;
|
|
9
|
+
refreshStore(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
export * from "./AttachmentService";
|
|
2
1
|
export * from "./AuthService";
|
|
3
2
|
export * from "./BaseApiService";
|
|
4
3
|
export * from "./CategoryService";
|
|
5
4
|
export * from "./ComponentService";
|
|
6
5
|
export * from "./ComponentStageCompletionService";
|
|
7
6
|
export * from "./ComponentStageService";
|
|
7
|
+
export * from "./ComponentAttachmentService";
|
|
8
8
|
export * from "./ComponentTypeService";
|
|
9
|
+
export * from "./ComponentTypeAttachmentService";
|
|
9
10
|
export * from "./IssueCommentService";
|
|
10
11
|
export * from "./IssueUpdateService";
|
|
12
|
+
export * from "./IssueAttachmentService";
|
|
11
13
|
export * from "./IssueService";
|
|
12
14
|
export * from "./IssueTypeService";
|
|
13
15
|
export * from "./MainService";
|
|
14
16
|
export * from "./ProjectAccessService";
|
|
15
17
|
export * from "./ProjectFileService";
|
|
18
|
+
export * from "./ProjectAttachmentService";
|
|
16
19
|
export * from "./ProjectService";
|
|
17
20
|
export * from "./UserFormService";
|
|
18
21
|
export * from "./UserFormSubmissionService";
|
|
@@ -24,5 +27,6 @@ export * from "./EmailDomainsService";
|
|
|
24
27
|
export * from "./OrganizationService";
|
|
25
28
|
export * from "./LicenseService";
|
|
26
29
|
export * from "./DocumentService";
|
|
30
|
+
export * from "./DocumentAttachmentService";
|
|
27
31
|
export * from "./AgentService";
|
|
28
32
|
export * from "./TeamService";
|
|
@@ -70,7 +70,6 @@ export declare const selectCategories: ((state: import("redux").EmptyObject & {
|
|
|
70
70
|
licenseReducer: import('..').LicenseState;
|
|
71
71
|
documentsReducer: import('..').DocumentState;
|
|
72
72
|
teamReducer: import('..').TeamState;
|
|
73
|
-
agentsReducer: import('..').AgentsState;
|
|
74
73
|
} & {
|
|
75
74
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
76
75
|
}) => Category[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Category>, args_1: string | null) => Category[], {
|
|
@@ -14,8 +14,17 @@ export declare const componentSlice: import("@reduxjs/toolkit").Slice<ComponentS
|
|
|
14
14
|
setComponents: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: {
|
|
15
15
|
payload: Component[];
|
|
16
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;
|
|
17
26
|
setComponentAttachments: (state: ComponentState, action: {
|
|
18
|
-
payload:
|
|
27
|
+
payload: Stored<ComponentAttachment>[];
|
|
19
28
|
type: string;
|
|
20
29
|
}) => void;
|
|
21
30
|
addComponentAttachment: (state: ComponentState, action: {
|
|
@@ -30,6 +39,10 @@ export declare const componentSlice: import("@reduxjs/toolkit").Slice<ComponentS
|
|
|
30
39
|
payload: Submitted<ComponentAttachment>;
|
|
31
40
|
type: string;
|
|
32
41
|
}) => void;
|
|
42
|
+
updateComponentAttachments: (state: ComponentState, action: {
|
|
43
|
+
payload: Submitted<ComponentAttachment>[];
|
|
44
|
+
type: string;
|
|
45
|
+
}) => void;
|
|
33
46
|
removeComponentAttachment: (state: ComponentState, action: {
|
|
34
47
|
payload: string;
|
|
35
48
|
type: string;
|
|
@@ -38,12 +51,8 @@ export declare const componentSlice: import("@reduxjs/toolkit").Slice<ComponentS
|
|
|
38
51
|
payload: string[];
|
|
39
52
|
type: string;
|
|
40
53
|
}) => void;
|
|
41
|
-
updateComponent: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: {
|
|
42
|
-
payload: Component;
|
|
43
|
-
}) => void;
|
|
44
|
-
removeComponent: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: PayloadAction<string>) => void;
|
|
45
|
-
removeAllComponentsOfType: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: PayloadAction<string>) => void;
|
|
46
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">;
|
|
47
56
|
export declare const selectComponents: (state: RootState) => Component[];
|
|
48
57
|
export declare const selectComponentsMapping: (state: RootState) => Record<string, Component | Submitted<Component>>;
|
|
49
58
|
export declare const selectComponentsFromComponentType: SelectorWithArgs<string | undefined, Component[]>;
|
|
@@ -61,5 +70,4 @@ export declare const selectAttachmentsOfComponentByType: (args: string) => (stat
|
|
|
61
70
|
fileAttachments: Stored<ComponentAttachment>[];
|
|
62
71
|
imageAttachments: Stored<ComponentAttachment>[];
|
|
63
72
|
};
|
|
64
|
-
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">, setComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Created<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">, removeComponentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "components/removeComponentAttachment">, removeComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "components/removeComponentAttachments">, removeAllComponentsOfType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "components/removeAllComponentsOfType">;
|
|
65
73
|
export declare const componentReducer: Reducer<ComponentState>;
|
|
@@ -12,8 +12,18 @@ export declare const componentTypeSlice: import("@reduxjs/toolkit").Slice<Compon
|
|
|
12
12
|
setComponentTypes: (state: import("immer/dist/internal.js").WritableDraft<ComponentTypeState>, action: {
|
|
13
13
|
payload: ComponentType[];
|
|
14
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;
|
|
15
25
|
setComponentTypeAttachments: (state: ComponentTypeState, action: {
|
|
16
|
-
payload:
|
|
26
|
+
payload: Stored<ComponentTypeAttachment>[];
|
|
17
27
|
type: string;
|
|
18
28
|
}) => void;
|
|
19
29
|
addComponentTypeAttachment: (state: ComponentTypeState, action: {
|
|
@@ -28,6 +38,10 @@ export declare const componentTypeSlice: import("@reduxjs/toolkit").Slice<Compon
|
|
|
28
38
|
payload: import('../../typings/models/issues').Submitted<ComponentTypeAttachment>;
|
|
29
39
|
type: string;
|
|
30
40
|
}) => void;
|
|
41
|
+
updateComponentTypeAttachments: (state: ComponentTypeState, action: {
|
|
42
|
+
payload: import('../../typings/models/issues').Submitted<ComponentTypeAttachment>[];
|
|
43
|
+
type: string;
|
|
44
|
+
}) => void;
|
|
31
45
|
removeComponentTypeAttachment: (state: ComponentTypeState, action: {
|
|
32
46
|
payload: string;
|
|
33
47
|
type: string;
|
|
@@ -36,13 +50,8 @@ export declare const componentTypeSlice: import("@reduxjs/toolkit").Slice<Compon
|
|
|
36
50
|
payload: string[];
|
|
37
51
|
type: string;
|
|
38
52
|
}) => void;
|
|
39
|
-
toggleComponentTypeVisibility: (state: import("immer/dist/internal.js").WritableDraft<ComponentTypeState>, action: {
|
|
40
|
-
payload: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
deleteComponentType: (state: import("immer/dist/internal.js").WritableDraft<ComponentTypeState>, action: {
|
|
43
|
-
payload: string;
|
|
44
|
-
}) => void;
|
|
45
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">;
|
|
46
55
|
export type AppSelector<TResult> = (state: RootState) => TResult;
|
|
47
56
|
export declare const selectComponentTypesMapping: AppSelector<Record<string, ComponentType>>;
|
|
48
57
|
export declare const selectComponentTypes: AppSelector<ComponentType[]>;
|
|
@@ -62,6 +71,5 @@ export declare const selectAttachmentsOfComponentTypeByType: (args: string) => (
|
|
|
62
71
|
fileAttachments: Stored<ComponentTypeAttachment>[];
|
|
63
72
|
imageAttachments: Stored<ComponentTypeAttachment>[];
|
|
64
73
|
};
|
|
65
|
-
export declare const addComponentType: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentType, "componentTypes/addComponentType">, setComponentTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentType[], "componentTypes/setComponentTypes">, setComponentTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Created<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">, removeComponentTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "componentTypes/removeComponentTypeAttachment">, removeComponentTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "componentTypes/removeComponentTypeAttachments">, toggleComponentTypeVisibility: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "componentTypes/toggleComponentTypeVisibility">, deleteComponentType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "componentTypes/deleteComponentType">;
|
|
66
74
|
export declare const componentTypeReducer: Reducer<ComponentTypeState>;
|
|
67
75
|
export {};
|
|
@@ -27,8 +27,12 @@ export declare const documentSlice: import("@reduxjs/toolkit").Slice<DocumentSta
|
|
|
27
27
|
removeDocuments: (state: import("immer/dist/internal.js").WritableDraft<DocumentState>, action: {
|
|
28
28
|
payload: string[];
|
|
29
29
|
}) => void;
|
|
30
|
+
setDocumentAttachment: (state: DocumentState, action: {
|
|
31
|
+
payload: Stored<DocumentAttachment>;
|
|
32
|
+
type: string;
|
|
33
|
+
}) => void;
|
|
30
34
|
setDocumentAttachments: (state: DocumentState, action: {
|
|
31
|
-
payload:
|
|
35
|
+
payload: Stored<DocumentAttachment>[];
|
|
32
36
|
type: string;
|
|
33
37
|
}) => void;
|
|
34
38
|
addDocumentAttachment: (state: DocumentState, action: {
|
|
@@ -43,6 +47,10 @@ export declare const documentSlice: import("@reduxjs/toolkit").Slice<DocumentSta
|
|
|
43
47
|
payload: Submitted<DocumentAttachment>;
|
|
44
48
|
type: string;
|
|
45
49
|
}) => void;
|
|
50
|
+
updateDocumentAttachments: (state: DocumentState, action: {
|
|
51
|
+
payload: Submitted<DocumentAttachment>[];
|
|
52
|
+
type: string;
|
|
53
|
+
}) => void;
|
|
46
54
|
removeDocumentAttachment: (state: DocumentState, action: {
|
|
47
55
|
payload: string;
|
|
48
56
|
type: string;
|
|
@@ -184,7 +192,7 @@ export declare const setDocuments: import("@reduxjs/toolkit").ActionCreatorWithP
|
|
|
184
192
|
project: null;
|
|
185
193
|
} & {
|
|
186
194
|
children_documents: string[];
|
|
187
|
-
}, "id" | "created_at" | "created_by">)>>[], "documents/updateDocuments">, moveDocument: import("@reduxjs/toolkit").ActionCreatorWithPayload<MoveDocumentPayload, "documents/moveDocument">, removeDocuments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "documents/removeDocuments">,
|
|
195
|
+
}, "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">;
|
|
188
196
|
export declare const selectDocumentsMapping: AppSelector<Record<string, Stored<Document>>>;
|
|
189
197
|
export declare const selectDocuments: AppSelector<Stored<Document>[]>;
|
|
190
198
|
export declare const selectDocument: (args: string) => (state: RootState) => (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
@@ -262,7 +270,6 @@ export declare const selectRootDocuments: ((state: import("redux").EmptyObject &
|
|
|
262
270
|
licenseReducer: import('..').LicenseState;
|
|
263
271
|
documentsReducer: DocumentState;
|
|
264
272
|
teamReducer: import('..').TeamState;
|
|
265
|
-
agentsReducer: import('..').AgentsState;
|
|
266
273
|
} & {
|
|
267
274
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
268
275
|
}) => ((import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
@@ -49,7 +49,6 @@ export declare const selectFormRevisions: ((state: import("redux").EmptyObject &
|
|
|
49
49
|
licenseReducer: import('..').LicenseState;
|
|
50
50
|
documentsReducer: import('..').DocumentState;
|
|
51
51
|
teamReducer: import('..').TeamState;
|
|
52
|
-
agentsReducer: import('..').AgentsState;
|
|
53
52
|
} & {
|
|
54
53
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
55
54
|
}) => Stored<UserFormRevision<import('../../forms').ISerializedField>>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<UserFormRevision<import('../../forms').ISerializedField>>>) => Stored<UserFormRevision<import('../../forms').ISerializedField>>[], {
|
|
@@ -25,10 +25,6 @@ export declare const issueSlice: import("@reduxjs/toolkit").Slice<IssueState, {
|
|
|
25
25
|
setIssues: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: {
|
|
26
26
|
payload: Created<Issue>[];
|
|
27
27
|
}) => void;
|
|
28
|
-
setIssueAttachments: (state: IssueState, action: {
|
|
29
|
-
payload: Created<IssueAttachment>[];
|
|
30
|
-
type: string;
|
|
31
|
-
}) => void;
|
|
32
28
|
setIssueUpdates: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: {
|
|
33
29
|
payload: Created<IssueUpdate>[];
|
|
34
30
|
}) => void;
|
|
@@ -41,14 +37,6 @@ export declare const issueSlice: import("@reduxjs/toolkit").Slice<IssueState, {
|
|
|
41
37
|
addIssues: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: {
|
|
42
38
|
payload: Stored<Issue>[];
|
|
43
39
|
}) => void;
|
|
44
|
-
addIssueAttachment: (state: IssueState, action: {
|
|
45
|
-
payload: Submitted<IssueAttachment>;
|
|
46
|
-
type: string;
|
|
47
|
-
}) => void;
|
|
48
|
-
addIssueAttachments: (state: IssueState, action: {
|
|
49
|
-
payload: Submitted<IssueAttachment>[];
|
|
50
|
-
type: string;
|
|
51
|
-
}) => void;
|
|
52
40
|
addIssueUpdate: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: {
|
|
53
41
|
payload: Submitted<IssueUpdate>;
|
|
54
42
|
}) => void;
|
|
@@ -58,16 +46,8 @@ export declare const issueSlice: import("@reduxjs/toolkit").Slice<IssueState, {
|
|
|
58
46
|
updateIssue: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: {
|
|
59
47
|
payload: Submitted<Partial<Issue>>;
|
|
60
48
|
}) => void;
|
|
61
|
-
updateIssueAttachment: (state: IssueState, action: {
|
|
62
|
-
payload: Submitted<IssueAttachment>;
|
|
63
|
-
type: string;
|
|
64
|
-
}) => void;
|
|
65
49
|
removeIssue: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
66
50
|
removeIssues: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string[]>) => void;
|
|
67
|
-
removeIssueAttachment: (state: IssueState, action: {
|
|
68
|
-
payload: string;
|
|
69
|
-
type: string;
|
|
70
|
-
}) => void;
|
|
71
51
|
removeIssueUpdate: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
72
52
|
removeIssueUpdates: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string[]>) => void;
|
|
73
53
|
removeAttachmentsOfIssue: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
@@ -88,8 +68,40 @@ export declare const issueSlice: import("@reduxjs/toolkit").Slice<IssueState, {
|
|
|
88
68
|
}) => void;
|
|
89
69
|
resetRecentIssues: (state: import("immer/dist/internal.js").WritableDraft<IssueState>) => void;
|
|
90
70
|
removeRecentIssue: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
71
|
+
setIssueAttachment: (state: IssueState, action: {
|
|
72
|
+
payload: Stored<IssueAttachment>;
|
|
73
|
+
type: string;
|
|
74
|
+
}) => void;
|
|
75
|
+
setIssueAttachments: (state: IssueState, action: {
|
|
76
|
+
payload: Stored<IssueAttachment>[];
|
|
77
|
+
type: string;
|
|
78
|
+
}) => void;
|
|
79
|
+
addIssueAttachment: (state: IssueState, action: {
|
|
80
|
+
payload: Submitted<IssueAttachment>;
|
|
81
|
+
type: string;
|
|
82
|
+
}) => void;
|
|
83
|
+
addIssueAttachments: (state: IssueState, action: {
|
|
84
|
+
payload: Submitted<IssueAttachment>[];
|
|
85
|
+
type: string;
|
|
86
|
+
}) => void;
|
|
87
|
+
updateIssueAttachment: (state: IssueState, action: {
|
|
88
|
+
payload: Submitted<IssueAttachment>;
|
|
89
|
+
type: string;
|
|
90
|
+
}) => void;
|
|
91
|
+
updateIssueAttachments: (state: IssueState, action: {
|
|
92
|
+
payload: Submitted<IssueAttachment>[];
|
|
93
|
+
type: string;
|
|
94
|
+
}) => void;
|
|
95
|
+
removeIssueAttachment: (state: IssueState, action: {
|
|
96
|
+
payload: string;
|
|
97
|
+
type: string;
|
|
98
|
+
}) => void;
|
|
99
|
+
removeIssueAttachments: (state: IssueState, action: {
|
|
100
|
+
payload: string[];
|
|
101
|
+
type: string;
|
|
102
|
+
}) => void;
|
|
91
103
|
}, "issues">;
|
|
92
|
-
export declare const
|
|
104
|
+
export declare const addIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<Issue>, "issues/addIssue">, addIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<Issue>[], "issues/addIssues">, addIssueUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueUpdate>, "issues/addIssueUpdate">, addIssueUpdates: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueUpdate>[], "issues/addIssueUpdates">, addOrReplaceIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueComment>, "issues/addOrReplaceIssueComment">, addToRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/addToRecentIssues">, cleanRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"issues/cleanRecentIssues">, removeAttachmentsOfIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeAttachmentsOfIssue">, removeIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssue">, removeIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issues/removeIssues">, removeIssueUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssueUpdate">, removeIssueUpdates: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issues/removeIssueUpdates">, removeRecentIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeRecentIssue">, resetRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"issues/resetRecentIssues">, setActiveIssueId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "issues/setActiveIssueId">, setIssueUpdates: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<IssueUpdate>[], "issues/setIssueUpdates">, setIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<Issue>[], "issues/setIssues">, setVisibleStatuses: import("@reduxjs/toolkit").ActionCreatorWithPayload<IssueStatus[], "issues/setVisibleStatuses">, setVisibleUserIds: import("@reduxjs/toolkit").ActionCreatorWithPayload<(number | null)[], "issues/setVisibleUserIds">, updateIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<Partial<Issue>>, "issues/updateIssue">, setIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueAttachment>, "issues/setIssueAttachment">, setIssueAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueAttachment>[], "issues/setIssueAttachments">, addIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>, "issues/addIssueAttachment">, addIssueAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>[], "issues/addIssueAttachments">, updateIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>, "issues/updateIssueAttachment">, updateIssueAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>[], "issues/updateIssueAttachments">, removeIssueAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssueAttachment">, removeIssueAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issues/removeIssueAttachments">, addIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueComment>, "issues/addIssueComment">, addIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueComment>[], "issues/addIssueComments">, setIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueComment>, "issues/setIssueComment">, setIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueComment>[], "issues/setIssueComments">, removeIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssueComment">, removeIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issues/removeIssueComments">;
|
|
93
105
|
export interface IssueFilterArgs {
|
|
94
106
|
filterByAssignedTo: boolean;
|
|
95
107
|
filterByStatus: boolean;
|
|
@@ -146,7 +158,6 @@ export declare const selectAllAttachments: ((state: import("redux").EmptyObject
|
|
|
146
158
|
licenseReducer: import('..').LicenseState;
|
|
147
159
|
documentsReducer: import('..').DocumentState;
|
|
148
160
|
teamReducer: import('..').TeamState;
|
|
149
|
-
agentsReducer: import('..').AgentsState;
|
|
150
161
|
} & {
|
|
151
162
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
152
163
|
}) => Stored<IssueAttachment>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<IssueAttachment>>) => Stored<IssueAttachment>[], {
|
|
@@ -78,7 +78,6 @@ export declare const selectProjectFiles: ((state: import("redux").EmptyObject &
|
|
|
78
78
|
licenseReducer: import('..').LicenseState;
|
|
79
79
|
documentsReducer: import('..').DocumentState;
|
|
80
80
|
teamReducer: import('..').TeamState;
|
|
81
|
-
agentsReducer: import('..').AgentsState;
|
|
82
81
|
} & {
|
|
83
82
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
84
83
|
}) => ProjectFile[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, ProjectFile>, args_1: number | null) => ProjectFile[], {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { Project, ProjectAttachment, ProjectType, RootState, Selector, Stored, User } from "../../typings";
|
|
2
|
+
import { Project, ProjectAttachment, ProjectType, RootState, Selector, SelectorWithArgs, Stored, User } from "../../typings";
|
|
3
3
|
export interface ProjectState {
|
|
4
4
|
projects: Record<number, Project>;
|
|
5
5
|
activeProjectId: number | null;
|
|
@@ -36,8 +36,12 @@ export declare const projectSlice: import("@reduxjs/toolkit").Slice<ProjectState
|
|
|
36
36
|
addActiveProjectFormSubmissionsCount: (state: import("immer/dist/internal.js").WritableDraft<ProjectState>, action: {
|
|
37
37
|
payload: number;
|
|
38
38
|
}) => void;
|
|
39
|
+
setProjectAttachment: (state: ProjectState, action: {
|
|
40
|
+
payload: Stored<ProjectAttachment>;
|
|
41
|
+
type: string;
|
|
42
|
+
}) => void;
|
|
39
43
|
setProjectAttachments: (state: ProjectState, action: {
|
|
40
|
-
payload:
|
|
44
|
+
payload: Stored<ProjectAttachment>[];
|
|
41
45
|
type: string;
|
|
42
46
|
}) => void;
|
|
43
47
|
addProjectAttachment: (state: ProjectState, action: {
|
|
@@ -52,6 +56,10 @@ export declare const projectSlice: import("@reduxjs/toolkit").Slice<ProjectState
|
|
|
52
56
|
payload: import('../../typings/models/issues').Submitted<ProjectAttachment>;
|
|
53
57
|
type: string;
|
|
54
58
|
}) => void;
|
|
59
|
+
updateProjectAttachments: (state: ProjectState, action: {
|
|
60
|
+
payload: import('../../typings/models/issues').Submitted<ProjectAttachment>[];
|
|
61
|
+
type: string;
|
|
62
|
+
}) => void;
|
|
55
63
|
removeProjectAttachment: (state: ProjectState, action: {
|
|
56
64
|
payload: string;
|
|
57
65
|
type: string;
|
|
@@ -61,7 +69,7 @@ export declare const projectSlice: import("@reduxjs/toolkit").Slice<ProjectState
|
|
|
61
69
|
type: string;
|
|
62
70
|
}) => void;
|
|
63
71
|
}, "projects">;
|
|
64
|
-
export declare const setProjects: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project[], "projects/setProjects">, updateOrCreateProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project, "projects/updateOrCreateProject">, addOrReplaceProjects: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project[], "projects/updateOrCreateProjects">, setActiveProjectId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number | null, "projects/setActiveProjectId">, setCreateProjectType: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProjectType, "projects/setCreateProjectType">, deleteProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project, "projects/deleteProject">, acceptProjectInvite: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "projects/acceptProjectInvite">, addActiveProjectIssuesCount: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "projects/addActiveProjectIssuesCount">, addActiveProjectFormSubmissionsCount: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "projects/addActiveProjectFormSubmissionsCount">,
|
|
72
|
+
export declare const setProjects: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project[], "projects/setProjects">, updateOrCreateProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project, "projects/updateOrCreateProject">, addOrReplaceProjects: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project[], "projects/updateOrCreateProjects">, setActiveProjectId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number | null, "projects/setActiveProjectId">, setCreateProjectType: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProjectType, "projects/setCreateProjectType">, deleteProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project, "projects/deleteProject">, acceptProjectInvite: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "projects/acceptProjectInvite">, addActiveProjectIssuesCount: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "projects/addActiveProjectIssuesCount">, addActiveProjectFormSubmissionsCount: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "projects/addActiveProjectFormSubmissionsCount">, setProjectAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<ProjectAttachment>, "projects/setProjectAttachment">, setProjectAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<ProjectAttachment>[], "projects/setProjectAttachments">, addProjectAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<ProjectAttachment>, "projects/addProjectAttachment">, addProjectAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<ProjectAttachment>[], "projects/addProjectAttachments">, updateProjectAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<ProjectAttachment>, "projects/updateProjectAttachment">, updateProjectAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<ProjectAttachment>[], "projects/updateProjectAttachments">, removeProjectAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "projects/removeProjectAttachment">, removeProjectAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "projects/removeProjectAttachments">;
|
|
65
73
|
export declare const selectProjects: Selector<Record<number, Project>>;
|
|
66
74
|
export declare const selectActiveProjectId: (state: RootState) => number | null;
|
|
67
75
|
export declare const selectActiveProject: (state: RootState) => Project | null;
|
|
@@ -75,6 +83,7 @@ export declare const selectProjectsWithAccess: Selector<Project[]>;
|
|
|
75
83
|
export declare const selectSortedProjectUsers: Selector<User[]>;
|
|
76
84
|
export declare const selectProjectAttachmentMapping: (state: RootState) => Record<string, Stored<ProjectAttachment>>;
|
|
77
85
|
export declare const selectAllProjectAttachments: Selector<Stored<ProjectAttachment>[]>;
|
|
86
|
+
export declare const selectProjectAttachment: SelectorWithArgs<string, ProjectAttachment>;
|
|
78
87
|
export declare const selectAttachmentsOfProject: (args: number) => (state: RootState) => Stored<ProjectAttachment>[];
|
|
79
88
|
export declare const selectAttachmentsOfProjectByType: (args: number) => (state: RootState) => {
|
|
80
89
|
fileAttachments: Stored<ProjectAttachment>[];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
-
import {
|
|
2
|
+
import { Stored, Submitted } from "../../typings";
|
|
3
3
|
interface AttachmentState<TState> {
|
|
4
4
|
attachments: Record<string, Stored<TState>>;
|
|
5
5
|
}
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function setAttachment<TAttachment, TState extends AttachmentState<TAttachment>>(state: TState, action: PayloadAction<Stored<TAttachment>>): void;
|
|
7
|
+
export declare function setAttachments<TAttachment, TState extends AttachmentState<TAttachment>>(state: TState, action: PayloadAction<Stored<TAttachment>[]>): void;
|
|
7
8
|
export declare function addAttachment<TAttachment, TState extends AttachmentState<TAttachment>>(state: TState, action: PayloadAction<Submitted<TAttachment>>): void;
|
|
8
9
|
export declare function addAttachments<TAttachment, TState extends AttachmentState<TAttachment>>(state: TState, action: PayloadAction<Submitted<TAttachment>[]>): void;
|
|
9
10
|
export declare function updateAttachment<TAttachment, TState extends AttachmentState<TAttachment>>(state: TState, action: PayloadAction<Submitted<TAttachment>>): void;
|
|
@@ -56,7 +56,6 @@ export declare const selectWorkspaces: ((state: import("redux").EmptyObject & {
|
|
|
56
56
|
licenseReducer: import('..').LicenseState;
|
|
57
57
|
documentsReducer: import('..').DocumentState;
|
|
58
58
|
teamReducer: import('..').TeamState;
|
|
59
|
-
agentsReducer: import('..').AgentsState;
|
|
60
59
|
} & {
|
|
61
60
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
62
61
|
}) => Workspace[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Workspace>) => Workspace[], {
|