@overmap-ai/core 1.0.51 → 1.0.53-add-agent-slice.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.
- package/README.md +4 -4
- package/dist/forms/builder/constants.d.ts +1 -0
- package/dist/forms/builder/utils.d.ts +1 -1
- package/dist/forms/fields/QrField/QrField.d.ts +21 -0
- package/dist/forms/fields/QrField/QrInput.d.ts +10 -0
- package/dist/forms/fields/QrField/index.d.ts +2 -0
- package/dist/forms/fields/constants.d.ts +8 -0
- package/dist/forms/fields/index.d.ts +1 -0
- package/dist/forms/renderer/FormSubmissionBrowser/FormSubmissionBrowser.d.ts +5 -5
- package/dist/forms/renderer/FormSubmissionViewer/FormSubmissionViewer.d.ts +3 -3
- package/dist/forms/typings.d.ts +5 -2
- package/dist/overmap-core.js +1472 -485
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +1472 -486
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +3 -1
- package/dist/sdk/services/AttachmentService.d.ts +2 -2
- package/dist/sdk/services/DocumentService.d.ts +5 -5
- package/dist/sdk/services/IssueService.d.ts +2 -2
- package/dist/sdk/services/IssueTypeService.d.ts +9 -0
- package/dist/sdk/services/TeamService.d.ts +12 -0
- package/dist/sdk/services/UserFormService.d.ts +10 -2
- package/dist/sdk/services/UserFormSubmissionService.d.ts +9 -2
- package/dist/sdk/services/index.d.ts +2 -0
- package/dist/store/slices/agentSlice.d.ts +14 -0
- package/dist/store/slices/categorySlice.d.ts +7 -1
- package/dist/store/slices/documentSlice.d.ts +326 -13
- package/dist/store/slices/formRevisionSlice.d.ts +68 -0
- package/dist/store/slices/formSlice.d.ts +117 -0
- package/dist/store/slices/formSubmissionSlice.d.ts +49 -0
- package/dist/store/slices/index.d.ts +6 -1
- package/dist/store/slices/issueSlice.d.ts +11 -2
- package/dist/store/slices/issueTypeSlice.d.ts +20 -0
- package/dist/store/slices/projectFileSlice.d.ts +6 -1
- package/dist/store/slices/teamSlice.d.ts +19 -0
- package/dist/store/slices/utils.d.ts +1 -0
- package/dist/store/slices/workspaceSlice.d.ts +6 -1
- package/dist/store/store.d.ts +20 -4
- package/dist/style.css +5 -0
- package/dist/typings/files.d.ts +11 -1
- package/dist/typings/models/attachments.d.ts +11 -15
- package/dist/typings/models/base.d.ts +14 -0
- package/dist/typings/models/documents.d.ts +18 -7
- package/dist/typings/models/forms.d.ts +9 -13
- package/dist/typings/models/index.d.ts +2 -0
- package/dist/typings/models/issueTypes.d.ts +8 -0
- package/dist/typings/models/issues.d.ts +7 -7
- package/dist/typings/models/organizations.d.ts +2 -3
- package/dist/typings/models/teams.d.ts +10 -0
- package/dist/utils/file.d.ts +2 -0
- package/dist/utils/forms.d.ts +2 -0
- package/package.json +153 -152
- package/dist/store/slices/userFormSlice.d.ts +0 -145
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AttachmentService, AuthService, CategoryService, ComponentService, ComponentStageCompletionService, ComponentStageService, ComponentTypeService, EmailVerificationService, FileService, IssueCommentService, IssueService, MainService, OrganizationAccessService, ProjectAccessService, ProjectFileService, ProjectService, UserFormService, UserFormSubmissionService, WorkspaceService, OrganizationService, EmailDomainsService, LicenseService, DocumentService, IssueUpdateService, AgentService } from "./services";
|
|
1
|
+
import { AttachmentService, AuthService, CategoryService, ComponentService, ComponentStageCompletionService, ComponentStageService, ComponentTypeService, EmailVerificationService, FileService, IssueCommentService, IssueService, MainService, OrganizationAccessService, ProjectAccessService, ProjectFileService, ProjectService, UserFormService, UserFormSubmissionService, WorkspaceService, OrganizationService, EmailDomainsService, LicenseService, DocumentService, 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 {
|
|
@@ -14,6 +14,7 @@ export declare class OvermapSDK {
|
|
|
14
14
|
organizations: OrganizationService;
|
|
15
15
|
organizationAccess: OrganizationAccessService;
|
|
16
16
|
issues: IssueService;
|
|
17
|
+
issueTypes: IssueTypeService;
|
|
17
18
|
issueComments: IssueCommentService;
|
|
18
19
|
issueUpdates: IssueUpdateService;
|
|
19
20
|
workspaces: WorkspaceService;
|
|
@@ -30,5 +31,6 @@ export declare class OvermapSDK {
|
|
|
30
31
|
emailDomains: EmailDomainsService;
|
|
31
32
|
licenses: LicenseService;
|
|
32
33
|
documents: DocumentService;
|
|
34
|
+
teams: TeamService;
|
|
33
35
|
}
|
|
34
36
|
export declare const makeClient: (apiUrl: string, store: ToolkitStore<RootState>) => OvermapSDK;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseApiService } from "./BaseApiService";
|
|
2
2
|
import type { OptimisticModelResult } from "../typings";
|
|
3
|
-
import { ComponentAttachment, ComponentTypeAttachment, Created, IssueAttachment, MaybeObjectURL, AttachmentPayload, Stored, ProjectAttachment, DocumentAttachment,
|
|
3
|
+
import { ComponentAttachment, ComponentTypeAttachment, Created, IssueAttachment, MaybeObjectURL, AttachmentPayload, Stored, ProjectAttachment, DocumentAttachment, Document } from "../../typings";
|
|
4
4
|
/**
|
|
5
5
|
* Handles creation and caching of attachments
|
|
6
6
|
*/
|
|
@@ -29,7 +29,7 @@ export declare class AttachmentService extends BaseApiService {
|
|
|
29
29
|
attachFilesToIssue(filesToSubmit: File[], issueId: string): Promise<OptimisticModelResult<IssueAttachment>>[];
|
|
30
30
|
attachFilesToComponent(filesToSubmit: File[], componentId: string): Promise<OptimisticModelResult<ComponentAttachment>>[];
|
|
31
31
|
attachFilesToComponentType(filesToSubmit: File[], componentTypeId: string): Promise<OptimisticModelResult<ComponentTypeAttachment>>[];
|
|
32
|
-
attachFilesToDocument(filesToSubmit: File[], documentId:
|
|
32
|
+
attachFilesToDocument(filesToSubmit: File[], documentId: Document["offline_id"]): Promise<OptimisticModelResult<DocumentAttachment>>[];
|
|
33
33
|
replaceIssueAttachmentFile(attachmentId: string, newFile: MaybeObjectURL<File>): Promise<OptimisticModelResult<IssueAttachment>>;
|
|
34
34
|
replaceComponentAttachmentFile(attachmentId: string, newFile: MaybeObjectURL<File>): Promise<OptimisticModelResult<ComponentAttachment>>;
|
|
35
35
|
replaceComponentTypeAttachmentFile(attachmentId: string, newFile: MaybeObjectURL<File>): Promise<OptimisticModelResult<ComponentTypeAttachment>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import {
|
|
2
|
+
import { Document, DocumentPayload, MovePosition, Submitted } from "../../typings";
|
|
3
3
|
import { OptimisticModelResult } from "../typings";
|
|
4
4
|
export declare class DocumentService extends BaseApiService {
|
|
5
|
-
add(document:
|
|
6
|
-
update(document: Submitted<Partial<
|
|
7
|
-
move(documentId: string, targetDocumentId: string | null, position: MovePosition): Promise<
|
|
8
|
-
delete(documentId: string): Promise<
|
|
5
|
+
add(document: DocumentPayload): OptimisticModelResult<Document>;
|
|
6
|
+
update(document: Submitted<Partial<Document>>): OptimisticModelResult<Document>;
|
|
7
|
+
move(documentId: string, targetDocumentId: string | null, position: MovePosition): Promise<Document[]>;
|
|
8
|
+
delete(documentId: string): Promise<Document[]>;
|
|
9
9
|
refreshStore(): Promise<void>;
|
|
10
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseApiService } from "./BaseApiService";
|
|
2
2
|
import { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
|
|
3
|
-
import { Issue, Submitted } from "../../typings";
|
|
3
|
+
import { Issue, IssueType, Submitted } from "../../typings";
|
|
4
4
|
/**
|
|
5
5
|
* Handles CRUD operations on issues
|
|
6
6
|
*/
|
|
7
7
|
export declare class IssueService extends BaseApiService {
|
|
8
|
-
add(issue: Issue): OptimisticModelResult<Issue>;
|
|
8
|
+
add(issue: Issue, issue_type?: 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,9 @@
|
|
|
1
|
+
import { BaseApiService } from "./BaseApiService";
|
|
2
|
+
import { OptimisticModelResult } from "../typings";
|
|
3
|
+
import { IssueType, IssueTypePayload, Offline } from "../../typings";
|
|
4
|
+
export declare class IssueTypeService extends BaseApiService {
|
|
5
|
+
add(payload: IssueTypePayload): OptimisticModelResult<IssueType>;
|
|
6
|
+
update(issueTypeFields: Offline<Partial<IssueType>>): OptimisticModelResult<IssueType>;
|
|
7
|
+
delete(issueTypeId: string): Promise<void>;
|
|
8
|
+
refreshStore(): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseApiService } from "./BaseApiService";
|
|
2
|
+
import { Stored, Team, TeamPayload, User } from "../../typings";
|
|
3
|
+
import { OptimisticModelResult } from "../typings";
|
|
4
|
+
export declare class TeamService extends BaseApiService {
|
|
5
|
+
add(teamPayload: TeamPayload): OptimisticModelResult<Team>;
|
|
6
|
+
update(team: Stored<Team>): OptimisticModelResult<Team>;
|
|
7
|
+
delete(teamId: string): Promise<undefined>;
|
|
8
|
+
setMembers(teamId: string, members: User["id"][]): Promise<undefined>;
|
|
9
|
+
addMembers(teamId: string, members: User["id"][]): Promise<undefined>;
|
|
10
|
+
removeMembers(teamId: string, members: User["id"][]): Promise<undefined>;
|
|
11
|
+
refreshStore(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -4,8 +4,16 @@ import { BaseApiService } from "./BaseApiService";
|
|
|
4
4
|
export declare class UserFormService extends BaseApiService {
|
|
5
5
|
private getAttachImagePromises;
|
|
6
6
|
private add;
|
|
7
|
-
addForOrganization(initialRevision: UserFormRevisionPayload,
|
|
8
|
-
|
|
7
|
+
addForOrganization(initialRevision: UserFormRevisionPayload, attachedTo?: {
|
|
8
|
+
componentTypeId: string;
|
|
9
|
+
} | {
|
|
10
|
+
issueTypeId: string;
|
|
11
|
+
}): Promise<[SubmittedUserForm, UserFormRevision, Promise<UserFormRevision>, Promise<UserFormRevision>]>;
|
|
12
|
+
addForCurrentUser(initialRevision: UserFormRevision, attachedTo?: {
|
|
13
|
+
componentTypeId: string;
|
|
14
|
+
} | {
|
|
15
|
+
issueTypeId: string;
|
|
16
|
+
}): Promise<[SubmittedUserForm, UserFormRevision, Promise<UserFormRevision>, Promise<UserFormRevision>]>;
|
|
9
17
|
createRevision(formId: string, revision: UserFormRevisionPayload): Promise<OptimisticModelResult<UserFormRevision>>;
|
|
10
18
|
favorite(formId: string): Promise<undefined>;
|
|
11
19
|
unfavorite(formId: string): Promise<undefined>;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { Offline } from '../../typings/models/base';
|
|
2
2
|
import { BaseApiService } from "./BaseApiService";
|
|
3
3
|
import { UserFormSubmission, UserFormSubmissionPayload } from '../../typings/models/forms';
|
|
4
|
-
import { OptimisticModelResult } from "../typings";
|
|
4
|
+
import { OptimisticModelResult, OptimisticMultipleModelResult } from "../typings";
|
|
5
|
+
import { FieldValue } from '../../forms';
|
|
6
|
+
import { Stored } from "../../typings";
|
|
5
7
|
export declare class UserFormSubmissionService extends BaseApiService {
|
|
6
8
|
private getAttachFilesPromises;
|
|
7
9
|
add(payload: Offline<UserFormSubmissionPayload>): OptimisticModelResult<UserFormSubmission>;
|
|
8
|
-
|
|
10
|
+
bulkAdd(args: {
|
|
11
|
+
formRevision: string;
|
|
12
|
+
values: Record<string, FieldValue>;
|
|
13
|
+
componentOfflineIds: string[];
|
|
14
|
+
}): Promise<OptimisticMultipleModelResult<UserFormSubmission>>;
|
|
15
|
+
update(submission: Stored<UserFormSubmission>): OptimisticModelResult<UserFormSubmission>;
|
|
9
16
|
delete(submissionId: string): Promise<undefined>;
|
|
10
17
|
refreshStore(): Promise<void>;
|
|
11
18
|
}
|
|
@@ -9,6 +9,7 @@ export * from "./ComponentTypeService";
|
|
|
9
9
|
export * from "./IssueCommentService";
|
|
10
10
|
export * from "./IssueUpdateService";
|
|
11
11
|
export * from "./IssueService";
|
|
12
|
+
export * from "./IssueTypeService";
|
|
12
13
|
export * from "./MainService";
|
|
13
14
|
export * from "./ProjectAccessService";
|
|
14
15
|
export * from "./ProjectFileService";
|
|
@@ -24,3 +25,4 @@ export * from "./OrganizationService";
|
|
|
24
25
|
export * from "./LicenseService";
|
|
25
26
|
export * from "./DocumentService";
|
|
26
27
|
export * from "./AgentService";
|
|
28
|
+
export * from "./TeamService";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
|
+
import { RootState } from "../../typings";
|
|
3
|
+
export interface AgentState {
|
|
4
|
+
conversationId: string | undefined;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Stores the state of the user's chats with the agent
|
|
8
|
+
*/
|
|
9
|
+
export declare const agentSlice: import("@reduxjs/toolkit").Slice<AgentState, {
|
|
10
|
+
setConversationId: (state: import("immer/dist/internal.js").WritableDraft<AgentState>, action: PayloadAction<string | undefined>) => void;
|
|
11
|
+
}, "agents">;
|
|
12
|
+
export declare const setConversationId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string | undefined, "agents/setConversationId">;
|
|
13
|
+
export declare const selectConversationId: (state: RootState) => string | undefined;
|
|
14
|
+
export declare const agentReducer: Reducer<AgentState>;
|
|
@@ -51,6 +51,7 @@ export declare const selectCategories: ((state: import("redux").EmptyObject & {
|
|
|
51
51
|
componentStageReducer: import('..').ComponentStageState;
|
|
52
52
|
componentTypeReducer: import('..').ComponentTypeState;
|
|
53
53
|
issueReducer: import('..').IssueState;
|
|
54
|
+
issueTypeReducer: import('..').IssueTypeState;
|
|
54
55
|
mapReducer: import('..').MapState;
|
|
55
56
|
organizationReducer: import('..').OrganizationState;
|
|
56
57
|
outboxReducer: import('..').OutboxState;
|
|
@@ -60,12 +61,16 @@ export declare const selectCategories: ((state: import("redux").EmptyObject & {
|
|
|
60
61
|
projectFileReducer: import('..').ProjectFileState;
|
|
61
62
|
rehydratedReducer: import('..').RehydratedState;
|
|
62
63
|
settingReducer: import('..').SettingState;
|
|
63
|
-
|
|
64
|
+
formReducer: import('..').FormState;
|
|
64
65
|
userReducer: import('..').UserState;
|
|
66
|
+
formRevisionReducer: import('..').FormRevisionState;
|
|
67
|
+
formSubmissionReducer: import('..').FormSubmissionState;
|
|
65
68
|
workspaceReducer: import('..').WorkspaceState;
|
|
66
69
|
emailDomainsReducer: import('..').EmailDomainState;
|
|
67
70
|
licenseReducer: import('..').LicenseState;
|
|
68
71
|
documentsReducer: import('..').DocumentState;
|
|
72
|
+
teamReducer: import('..').TeamState;
|
|
73
|
+
agentReducer: import('..').AgentState;
|
|
69
74
|
} & {
|
|
70
75
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
71
76
|
}) => Category[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Category>, args_1: string | null) => Category[], {
|
|
@@ -78,5 +83,6 @@ export declare const selectCategory: (offline_id: string | null) => (state: Root
|
|
|
78
83
|
export declare const selectUsedColors: Selector<CSSColor[]>;
|
|
79
84
|
export declare const selectCategoryVisibility: (state: RootState) => CategoryVisibility;
|
|
80
85
|
export declare const selectHiddenCategoryCount: (state: RootState) => number;
|
|
86
|
+
export declare const selectIssueCountOfCategory: SelectorWithArgs<string | null, number>;
|
|
81
87
|
export declare const categoryReducer: Reducer<CategoryState>;
|
|
82
88
|
export {};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/// <reference types="@redux-offline/redux-offline" />
|
|
2
2
|
import { Reducer } from "@reduxjs/toolkit";
|
|
3
|
-
import { DocumentAttachment, MovePosition,
|
|
3
|
+
import { DocumentAttachment, MovePosition, Document, RootState, Selector, SelectorWithArgs, Stored, Submitted } from "../../typings";
|
|
4
4
|
import { AppSelector } from "./componentTypeSlice";
|
|
5
5
|
export interface DocumentState {
|
|
6
|
-
documents: Record<string, Stored<
|
|
6
|
+
documents: Record<string, Stored<Document>>;
|
|
7
7
|
attachments: Record<string, Stored<DocumentAttachment>>;
|
|
8
8
|
}
|
|
9
9
|
export interface MoveDocumentPayload {
|
|
10
|
-
documentId:
|
|
11
|
-
targetDocumentId:
|
|
10
|
+
documentId: Document["offline_id"];
|
|
11
|
+
targetDocumentId: Document["offline_id"] | null;
|
|
12
12
|
position: MovePosition;
|
|
13
13
|
}
|
|
14
14
|
export declare const documentSlice: import("@reduxjs/toolkit").Slice<DocumentState, {
|
|
15
15
|
setDocuments: (state: import("immer/dist/internal.js").WritableDraft<DocumentState>, action: {
|
|
16
|
-
payload:
|
|
16
|
+
payload: Stored<Document>[];
|
|
17
17
|
}) => void;
|
|
18
18
|
addDocuments: (state: import("immer/dist/internal.js").WritableDraft<DocumentState>, action: {
|
|
19
|
-
payload:
|
|
19
|
+
payload: Stored<Document>[];
|
|
20
20
|
}) => void;
|
|
21
21
|
updateDocuments: (state: import("immer/dist/internal.js").WritableDraft<DocumentState>, action: {
|
|
22
|
-
payload: Submitted<Partial<
|
|
22
|
+
payload: Submitted<Partial<Stored<Document>>>[];
|
|
23
23
|
}) => void;
|
|
24
24
|
moveDocument: (state: import("immer/dist/internal.js").WritableDraft<DocumentState>, action: {
|
|
25
25
|
payload: MoveDocumentPayload;
|
|
@@ -52,10 +52,186 @@ export declare const documentSlice: import("@reduxjs/toolkit").Slice<DocumentSta
|
|
|
52
52
|
type: string;
|
|
53
53
|
}) => void;
|
|
54
54
|
}, "documents">;
|
|
55
|
-
export declare const setDocuments: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
export declare const setDocuments: import("@reduxjs/toolkit").ActionCreatorWithPayload<((import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
56
|
+
title: string | null;
|
|
57
|
+
description: string | null;
|
|
58
|
+
content: string | null;
|
|
59
|
+
parent_document: string | null;
|
|
60
|
+
} & {
|
|
61
|
+
project: number;
|
|
62
|
+
organization: null;
|
|
63
|
+
} & {
|
|
64
|
+
children_documents: string[];
|
|
65
|
+
} & {
|
|
66
|
+
offline_id: string;
|
|
67
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
68
|
+
title: string | null;
|
|
69
|
+
description: string | null;
|
|
70
|
+
content: string | null;
|
|
71
|
+
parent_document: string | null;
|
|
72
|
+
} & {
|
|
73
|
+
project: number;
|
|
74
|
+
organization: null;
|
|
75
|
+
} & {
|
|
76
|
+
children_documents: string[];
|
|
77
|
+
}, "id" | "created_at" | "created_by">) | (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
78
|
+
title: string | null;
|
|
79
|
+
description: string | null;
|
|
80
|
+
content: string | null;
|
|
81
|
+
parent_document: string | null;
|
|
82
|
+
} & {
|
|
83
|
+
organization: number;
|
|
84
|
+
project: null;
|
|
85
|
+
} & {
|
|
86
|
+
children_documents: string[];
|
|
87
|
+
} & {
|
|
88
|
+
offline_id: string;
|
|
89
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
90
|
+
title: string | null;
|
|
91
|
+
description: string | null;
|
|
92
|
+
content: string | null;
|
|
93
|
+
parent_document: string | null;
|
|
94
|
+
} & {
|
|
95
|
+
organization: number;
|
|
96
|
+
project: null;
|
|
97
|
+
} & {
|
|
98
|
+
children_documents: string[];
|
|
99
|
+
}, "id" | "created_at" | "created_by">))[], "documents/setDocuments">, addDocuments: import("@reduxjs/toolkit").ActionCreatorWithPayload<((import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
100
|
+
title: string | null;
|
|
101
|
+
description: string | null;
|
|
102
|
+
content: string | null;
|
|
103
|
+
parent_document: string | null;
|
|
104
|
+
} & {
|
|
105
|
+
project: number;
|
|
106
|
+
organization: null;
|
|
107
|
+
} & {
|
|
108
|
+
children_documents: string[];
|
|
109
|
+
} & {
|
|
110
|
+
offline_id: string;
|
|
111
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
112
|
+
title: string | null;
|
|
113
|
+
description: string | null;
|
|
114
|
+
content: string | null;
|
|
115
|
+
parent_document: string | null;
|
|
116
|
+
} & {
|
|
117
|
+
project: number;
|
|
118
|
+
organization: null;
|
|
119
|
+
} & {
|
|
120
|
+
children_documents: string[];
|
|
121
|
+
}, "id" | "created_at" | "created_by">) | (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
122
|
+
title: string | null;
|
|
123
|
+
description: string | null;
|
|
124
|
+
content: string | null;
|
|
125
|
+
parent_document: string | null;
|
|
126
|
+
} & {
|
|
127
|
+
organization: number;
|
|
128
|
+
project: null;
|
|
129
|
+
} & {
|
|
130
|
+
children_documents: string[];
|
|
131
|
+
} & {
|
|
132
|
+
offline_id: string;
|
|
133
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
134
|
+
title: string | null;
|
|
135
|
+
description: string | null;
|
|
136
|
+
content: string | null;
|
|
137
|
+
parent_document: string | null;
|
|
138
|
+
} & {
|
|
139
|
+
organization: number;
|
|
140
|
+
project: null;
|
|
141
|
+
} & {
|
|
142
|
+
children_documents: string[];
|
|
143
|
+
}, "id" | "created_at" | "created_by">))[], "documents/addDocuments">, updateDocuments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<Partial<(import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
144
|
+
title: string | null;
|
|
145
|
+
description: string | null;
|
|
146
|
+
content: string | null;
|
|
147
|
+
parent_document: string | null;
|
|
148
|
+
} & {
|
|
149
|
+
project: number;
|
|
150
|
+
organization: null;
|
|
151
|
+
} & {
|
|
152
|
+
children_documents: string[];
|
|
153
|
+
} & {
|
|
154
|
+
offline_id: string;
|
|
155
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
156
|
+
title: string | null;
|
|
157
|
+
description: string | null;
|
|
158
|
+
content: string | null;
|
|
159
|
+
parent_document: string | null;
|
|
160
|
+
} & {
|
|
161
|
+
project: number;
|
|
162
|
+
organization: null;
|
|
163
|
+
} & {
|
|
164
|
+
children_documents: string[];
|
|
165
|
+
}, "id" | "created_at" | "created_by">) | (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
166
|
+
title: string | null;
|
|
167
|
+
description: string | null;
|
|
168
|
+
content: string | null;
|
|
169
|
+
parent_document: string | null;
|
|
170
|
+
} & {
|
|
171
|
+
organization: number;
|
|
172
|
+
project: null;
|
|
173
|
+
} & {
|
|
174
|
+
children_documents: string[];
|
|
175
|
+
} & {
|
|
176
|
+
offline_id: string;
|
|
177
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
178
|
+
title: string | null;
|
|
179
|
+
description: string | null;
|
|
180
|
+
content: string | null;
|
|
181
|
+
parent_document: string | null;
|
|
182
|
+
} & {
|
|
183
|
+
organization: number;
|
|
184
|
+
project: null;
|
|
185
|
+
} & {
|
|
186
|
+
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">, setDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Created<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">, removeDocumentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "documents/removeDocumentAttachment">, removeDocumentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "documents/removeDocumentAttachments">;
|
|
188
|
+
export declare const selectDocumentsMapping: AppSelector<Record<string, Stored<Document>>>;
|
|
189
|
+
export declare const selectDocuments: AppSelector<Stored<Document>[]>;
|
|
190
|
+
export declare const selectDocument: (args: string) => (state: RootState) => (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
191
|
+
title: string | null;
|
|
192
|
+
description: string | null;
|
|
193
|
+
content: string | null;
|
|
194
|
+
parent_document: string | null;
|
|
195
|
+
} & {
|
|
196
|
+
project: number;
|
|
197
|
+
organization: null;
|
|
198
|
+
} & {
|
|
199
|
+
children_documents: string[];
|
|
200
|
+
} & {
|
|
201
|
+
offline_id: string;
|
|
202
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
203
|
+
title: string | null;
|
|
204
|
+
description: string | null;
|
|
205
|
+
content: string | null;
|
|
206
|
+
parent_document: string | null;
|
|
207
|
+
} & {
|
|
208
|
+
project: number;
|
|
209
|
+
organization: null;
|
|
210
|
+
} & {
|
|
211
|
+
children_documents: string[];
|
|
212
|
+
}, "id" | "created_at" | "created_by">) | (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
213
|
+
title: string | null;
|
|
214
|
+
description: string | null;
|
|
215
|
+
content: string | null;
|
|
216
|
+
parent_document: string | null;
|
|
217
|
+
} & {
|
|
218
|
+
organization: number;
|
|
219
|
+
project: null;
|
|
220
|
+
} & {
|
|
221
|
+
children_documents: string[];
|
|
222
|
+
} & {
|
|
223
|
+
offline_id: string;
|
|
224
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
225
|
+
title: string | null;
|
|
226
|
+
description: string | null;
|
|
227
|
+
content: string | null;
|
|
228
|
+
parent_document: string | null;
|
|
229
|
+
} & {
|
|
230
|
+
organization: number;
|
|
231
|
+
project: null;
|
|
232
|
+
} & {
|
|
233
|
+
children_documents: string[];
|
|
234
|
+
}, "id" | "created_at" | "created_by">) | undefined;
|
|
59
235
|
export declare const selectAncestorIdsOfDocument: (args: string) => (state: RootState) => string[];
|
|
60
236
|
export declare const selectRootDocuments: ((state: import("redux").EmptyObject & {
|
|
61
237
|
versioning: import('../slices/versioningSlice').VersioningState;
|
|
@@ -67,6 +243,7 @@ export declare const selectRootDocuments: ((state: import("redux").EmptyObject &
|
|
|
67
243
|
componentStageReducer: import('..').ComponentStageState;
|
|
68
244
|
componentTypeReducer: import("./componentTypeSlice").ComponentTypeState;
|
|
69
245
|
issueReducer: import('..').IssueState;
|
|
246
|
+
issueTypeReducer: import('..').IssueTypeState;
|
|
70
247
|
mapReducer: import('..').MapState;
|
|
71
248
|
organizationReducer: import('..').OrganizationState;
|
|
72
249
|
outboxReducer: import('..').OutboxState;
|
|
@@ -76,15 +253,151 @@ export declare const selectRootDocuments: ((state: import("redux").EmptyObject &
|
|
|
76
253
|
projectFileReducer: import('..').ProjectFileState;
|
|
77
254
|
rehydratedReducer: import('..').RehydratedState;
|
|
78
255
|
settingReducer: import('..').SettingState;
|
|
79
|
-
|
|
256
|
+
formReducer: import('..').FormState;
|
|
80
257
|
userReducer: import('..').UserState;
|
|
258
|
+
formRevisionReducer: import('..').FormRevisionState;
|
|
259
|
+
formSubmissionReducer: import('..').FormSubmissionState;
|
|
81
260
|
workspaceReducer: import('..').WorkspaceState;
|
|
82
261
|
emailDomainsReducer: import('..').EmailDomainState;
|
|
83
262
|
licenseReducer: import('..').LicenseState;
|
|
84
263
|
documentsReducer: DocumentState;
|
|
264
|
+
teamReducer: import('..').TeamState;
|
|
265
|
+
agentReducer: import('..').AgentState;
|
|
85
266
|
} & {
|
|
86
267
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
87
|
-
}) =>
|
|
268
|
+
}) => ((import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
269
|
+
title: string | null;
|
|
270
|
+
description: string | null;
|
|
271
|
+
content: string | null;
|
|
272
|
+
parent_document: string | null;
|
|
273
|
+
} & {
|
|
274
|
+
project: number;
|
|
275
|
+
organization: null;
|
|
276
|
+
} & {
|
|
277
|
+
children_documents: string[];
|
|
278
|
+
} & {
|
|
279
|
+
offline_id: string;
|
|
280
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
281
|
+
title: string | null;
|
|
282
|
+
description: string | null;
|
|
283
|
+
content: string | null;
|
|
284
|
+
parent_document: string | null;
|
|
285
|
+
} & {
|
|
286
|
+
project: number;
|
|
287
|
+
organization: null;
|
|
288
|
+
} & {
|
|
289
|
+
children_documents: string[];
|
|
290
|
+
}, "id" | "created_at" | "created_by">) | (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
291
|
+
title: string | null;
|
|
292
|
+
description: string | null;
|
|
293
|
+
content: string | null;
|
|
294
|
+
parent_document: string | null;
|
|
295
|
+
} & {
|
|
296
|
+
organization: number;
|
|
297
|
+
project: null;
|
|
298
|
+
} & {
|
|
299
|
+
children_documents: string[];
|
|
300
|
+
} & {
|
|
301
|
+
offline_id: string;
|
|
302
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
303
|
+
title: string | null;
|
|
304
|
+
description: string | null;
|
|
305
|
+
content: string | null;
|
|
306
|
+
parent_document: string | null;
|
|
307
|
+
} & {
|
|
308
|
+
organization: number;
|
|
309
|
+
project: null;
|
|
310
|
+
} & {
|
|
311
|
+
children_documents: string[];
|
|
312
|
+
}, "id" | "created_at" | "created_by">))[]) & import("reselect").OutputSelectorFields<(args_0: ((import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
313
|
+
title: string | null;
|
|
314
|
+
description: string | null;
|
|
315
|
+
content: string | null;
|
|
316
|
+
parent_document: string | null;
|
|
317
|
+
} & {
|
|
318
|
+
project: number;
|
|
319
|
+
organization: null;
|
|
320
|
+
} & {
|
|
321
|
+
children_documents: string[];
|
|
322
|
+
} & {
|
|
323
|
+
offline_id: string;
|
|
324
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
325
|
+
title: string | null;
|
|
326
|
+
description: string | null;
|
|
327
|
+
content: string | null;
|
|
328
|
+
parent_document: string | null;
|
|
329
|
+
} & {
|
|
330
|
+
project: number;
|
|
331
|
+
organization: null;
|
|
332
|
+
} & {
|
|
333
|
+
children_documents: string[];
|
|
334
|
+
}, "id" | "created_at" | "created_by">) | (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
335
|
+
title: string | null;
|
|
336
|
+
description: string | null;
|
|
337
|
+
content: string | null;
|
|
338
|
+
parent_document: string | null;
|
|
339
|
+
} & {
|
|
340
|
+
organization: number;
|
|
341
|
+
project: null;
|
|
342
|
+
} & {
|
|
343
|
+
children_documents: string[];
|
|
344
|
+
} & {
|
|
345
|
+
offline_id: string;
|
|
346
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
347
|
+
title: string | null;
|
|
348
|
+
description: string | null;
|
|
349
|
+
content: string | null;
|
|
350
|
+
parent_document: string | null;
|
|
351
|
+
} & {
|
|
352
|
+
organization: number;
|
|
353
|
+
project: null;
|
|
354
|
+
} & {
|
|
355
|
+
children_documents: string[];
|
|
356
|
+
}, "id" | "created_at" | "created_by">))[]) => ((import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
357
|
+
title: string | null;
|
|
358
|
+
description: string | null;
|
|
359
|
+
content: string | null;
|
|
360
|
+
parent_document: string | null;
|
|
361
|
+
} & {
|
|
362
|
+
project: number;
|
|
363
|
+
organization: null;
|
|
364
|
+
} & {
|
|
365
|
+
children_documents: string[];
|
|
366
|
+
} & {
|
|
367
|
+
offline_id: string;
|
|
368
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
369
|
+
title: string | null;
|
|
370
|
+
description: string | null;
|
|
371
|
+
content: string | null;
|
|
372
|
+
parent_document: string | null;
|
|
373
|
+
} & {
|
|
374
|
+
project: number;
|
|
375
|
+
organization: null;
|
|
376
|
+
} & {
|
|
377
|
+
children_documents: string[];
|
|
378
|
+
}, "id" | "created_at" | "created_by">) | (import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
379
|
+
title: string | null;
|
|
380
|
+
description: string | null;
|
|
381
|
+
content: string | null;
|
|
382
|
+
parent_document: string | null;
|
|
383
|
+
} & {
|
|
384
|
+
organization: number;
|
|
385
|
+
project: null;
|
|
386
|
+
} & {
|
|
387
|
+
children_documents: string[];
|
|
388
|
+
} & {
|
|
389
|
+
offline_id: string;
|
|
390
|
+
} & Omit<import('../../typings/models/base').OfflineModel & import('../../typings/models/base').CreatedByModel & {
|
|
391
|
+
title: string | null;
|
|
392
|
+
description: string | null;
|
|
393
|
+
content: string | null;
|
|
394
|
+
parent_document: string | null;
|
|
395
|
+
} & {
|
|
396
|
+
organization: number;
|
|
397
|
+
project: null;
|
|
398
|
+
} & {
|
|
399
|
+
children_documents: string[];
|
|
400
|
+
}, "id" | "created_at" | "created_by">))[], {
|
|
88
401
|
clearCache: () => void;
|
|
89
402
|
}> & {
|
|
90
403
|
clearCache: () => void;
|