@overmap-ai/core 1.0.53-team-links.1 → 1.0.54
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/dist/overmap-core.js +1360 -1742
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +1363 -1745
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +6 -7
- package/dist/sdk/services/AgentService.d.ts +1 -1
- 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 -2
- package/dist/store/slices/categorySlice.d.ts +0 -3
- 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 -5
- package/dist/store/slices/formRevisionSlice.d.ts +30 -33
- package/dist/store/slices/index.d.ts +0 -3
- package/dist/store/slices/issueSlice.d.ts +33 -24
- package/dist/store/slices/projectFileSlice.d.ts +0 -3
- 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 -3
- package/dist/store/store.d.ts +1 -10
- package/dist/typings/models/attachments.d.ts +7 -0
- package/dist/typings/models/base.d.ts +0 -5
- package/dist/typings/models/projects.d.ts +4 -5
- package/dist/typings/models/teams.d.ts +0 -15
- package/package.json +1 -1
- package/dist/sdk/services/AttachmentService.d.ts +0 -46
- package/dist/sdk/services/DocumentTeamLinkService.d.ts +0 -8
- package/dist/sdk/services/IssueTypeTeamLinkService.d.ts +0 -8
- package/dist/sdk/services/UserFormTeamLinkService.d.ts +0 -8
- package/dist/store/slices/documentTeamLinkSlice.d.ts +0 -20
- package/dist/store/slices/issueTypeTeamLinkSlice.d.ts +0 -20
- package/dist/store/slices/userFormTeamLinkSlice.d.ts +0 -20
|
@@ -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,9 +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
|
-
documentTeamLinkReducer: import('..').DocumentTeamLinkState;
|
|
60
|
-
issueTypeTeamLinkReducer: import('..').IssueTypeTeamLinkState;
|
|
61
|
-
userFormTeamLinkReducer: import('..').UserFormTeamLinkState;
|
|
62
59
|
} & {
|
|
63
60
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
64
61
|
}) => Workspace[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Workspace>) => Workspace[], {
|
package/dist/store/store.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AnyAction, Reducer } from "redux";
|
|
|
3
3
|
import { Config, OfflineAction, OfflineMetadata, OfflineState } from "@redux-offline/redux-offline/lib/types";
|
|
4
4
|
import request from "superagent";
|
|
5
5
|
import { type OfflineMetaEffect, type OvermapSDK, RequestDetails } from "../sdk";
|
|
6
|
-
import { AuthState, CategoryState, ComponentStageCompletionState, ComponentStageState, ComponentState, ComponentTypeState, DocumentState, EmailDomainState, FileState, IssueState, IssueTypeState, LicenseState, MapState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectFileState, ProjectState, RehydratedState, SettingState, FormState, FormRevisionState, FormSubmissionState, UserState, WorkspaceState, TeamState
|
|
6
|
+
import { AuthState, CategoryState, ComponentStageCompletionState, ComponentStageState, ComponentState, ComponentTypeState, DocumentState, EmailDomainState, FileState, IssueState, IssueTypeState, LicenseState, MapState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectFileState, ProjectState, RehydratedState, SettingState, FormState, FormRevisionState, FormSubmissionState, UserState, WorkspaceState, TeamState } from "./slices";
|
|
7
7
|
import { VersioningState } from "./slices/versioningSlice";
|
|
8
8
|
import { RootState } from "../typings";
|
|
9
9
|
export declare const overmapReducers: {
|
|
@@ -35,9 +35,6 @@ export declare const overmapReducers: {
|
|
|
35
35
|
licenseReducer: Reducer<LicenseState>;
|
|
36
36
|
documentsReducer: Reducer<DocumentState>;
|
|
37
37
|
teamReducer: Reducer<TeamState>;
|
|
38
|
-
documentTeamLinkReducer: Reducer<DocumentTeamLinkState>;
|
|
39
|
-
issueTypeTeamLinkReducer: Reducer<IssueTypeTeamLinkState>;
|
|
40
|
-
userFormTeamLinkReducer: Reducer<UserFormTeamLinkState>;
|
|
41
38
|
};
|
|
42
39
|
export declare const overmapReducer: Reducer<import("redux").CombinedState<{
|
|
43
40
|
versioning: VersioningState;
|
|
@@ -68,9 +65,6 @@ export declare const overmapReducer: Reducer<import("redux").CombinedState<{
|
|
|
68
65
|
licenseReducer: LicenseState;
|
|
69
66
|
documentsReducer: DocumentState;
|
|
70
67
|
teamReducer: TeamState;
|
|
71
|
-
documentTeamLinkReducer: DocumentTeamLinkState;
|
|
72
|
-
issueTypeTeamLinkReducer: IssueTypeTeamLinkState;
|
|
73
|
-
userFormTeamLinkReducer: UserFormTeamLinkState;
|
|
74
68
|
}>, AnyAction>;
|
|
75
69
|
export declare const resetStore = "RESET";
|
|
76
70
|
export declare const rootReducer: Reducer<RootState>;
|
|
@@ -119,9 +113,6 @@ export declare const defaultStore: import("@reduxjs/toolkit/dist/configureStore"
|
|
|
119
113
|
licenseReducer: LicenseState;
|
|
120
114
|
documentsReducer: DocumentState;
|
|
121
115
|
teamReducer: TeamState;
|
|
122
|
-
documentTeamLinkReducer: DocumentTeamLinkState;
|
|
123
|
-
issueTypeTeamLinkReducer: IssueTypeTeamLinkState;
|
|
124
|
-
userFormTeamLinkReducer: UserFormTeamLinkState;
|
|
125
116
|
} & {
|
|
126
117
|
offline: OfflineState;
|
|
127
118
|
}, AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<RootState, AnyAction>]>>;
|
|
@@ -22,6 +22,13 @@ export interface ProjectAttachment extends Attachment {
|
|
|
22
22
|
export interface DocumentAttachment extends Attachment {
|
|
23
23
|
document: Document["offline_id"];
|
|
24
24
|
}
|
|
25
|
+
export declare enum AttachmentModel {
|
|
26
|
+
Issue = "issue",
|
|
27
|
+
Component = "component",
|
|
28
|
+
ComponentType = "component_type",
|
|
29
|
+
Project = "project",
|
|
30
|
+
Document = "document"
|
|
31
|
+
}
|
|
25
32
|
/** to get an AttachmentPayload for a specific type, pass in the given AttachmentType
|
|
26
33
|
* ex. AttachmentPayload<IssueAttachment> */
|
|
27
34
|
export type AttachmentPayload<TAttachment> = Omit<TAttachment, "file" | "submitted_at" | "created_by"> & {
|
|
@@ -20,11 +20,6 @@ export type Payload<TModel> = Omit<TModel, "offline_id" | "created_at" | "update
|
|
|
20
20
|
export type MaybePayload<TModel extends OfflineModel> = Payload<TModel> & {
|
|
21
21
|
offline_id?: string | null;
|
|
22
22
|
};
|
|
23
|
-
export interface FileObject {
|
|
24
|
-
file_sha1: string;
|
|
25
|
-
file: string;
|
|
26
|
-
objectURL?: string;
|
|
27
|
-
}
|
|
28
23
|
export interface OptionalFileModel {
|
|
29
24
|
file_sha1?: string | null;
|
|
30
25
|
file?: string | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Model, OfflineModel } from "./base";
|
|
2
2
|
import L from "leaflet";
|
|
3
|
+
import { FileWithNameModel } from "../files";
|
|
3
4
|
export declare enum ProjectType {
|
|
4
5
|
PERSONAL = 0,
|
|
5
6
|
ORGANIZATION = 2
|
|
@@ -14,12 +15,10 @@ export interface Project extends Model {
|
|
|
14
15
|
issues_count?: number;
|
|
15
16
|
form_submissions_count?: number;
|
|
16
17
|
}
|
|
17
|
-
export interface ProjectFile extends
|
|
18
|
-
|
|
19
|
-
name: string;
|
|
18
|
+
export interface ProjectFile extends OfflineModel, FileWithNameModel {
|
|
19
|
+
submitted_at: string;
|
|
20
20
|
z_index: number;
|
|
21
21
|
bounds?: [L.LatLngTuple, L.LatLngTuple];
|
|
22
22
|
project: number;
|
|
23
|
-
objectURL?: string;
|
|
24
23
|
}
|
|
25
24
|
export type ProjectPayload = Omit<Project, "id" | "file" | "fileBlob">;
|
|
@@ -8,18 +8,3 @@ export interface Team extends OfflineModel, SubmittedAtModel, IconModel {
|
|
|
8
8
|
members: User["id"][];
|
|
9
9
|
}
|
|
10
10
|
export type TeamPayload = Omit<Payload<Team>, "organization" | "submitted_at">;
|
|
11
|
-
export interface DocumentTeamLink extends OfflineModel, SubmittedAtModel {
|
|
12
|
-
team: string;
|
|
13
|
-
document: string;
|
|
14
|
-
}
|
|
15
|
-
export type DocumentTeamLinkPayload = Omit<Payload<DocumentTeamLink>, "submitted_at">;
|
|
16
|
-
export interface IssueTypeTeamLink extends OfflineModel, SubmittedAtModel {
|
|
17
|
-
team: string;
|
|
18
|
-
issue_type: string;
|
|
19
|
-
}
|
|
20
|
-
export type IssueTypeTeamLinkPayload = Omit<Payload<IssueTypeTeamLink>, "submitted_at">;
|
|
21
|
-
export interface UserFormTeamLink extends OfflineModel, SubmittedAtModel {
|
|
22
|
-
team: string;
|
|
23
|
-
form: string;
|
|
24
|
-
}
|
|
25
|
-
export type UserFormTeamLinkPayload = Omit<Payload<UserFormTeamLink>, "submitted_at">;
|
package/package.json
CHANGED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import type { OptimisticModelResult } from "../typings";
|
|
3
|
-
import { ComponentAttachment, ComponentTypeAttachment, Created, IssueAttachment, MaybeObjectURL, AttachmentPayload, Stored, ProjectAttachment, DocumentAttachment, Document } from "../../typings";
|
|
4
|
-
/**
|
|
5
|
-
* Handles creation and caching of attachments
|
|
6
|
-
*/
|
|
7
|
-
interface StoredAttachments {
|
|
8
|
-
issue_attachments: Stored<IssueAttachment>[];
|
|
9
|
-
component_attachments: Stored<ComponentAttachment>[];
|
|
10
|
-
component_type_attachments: Stored<ComponentTypeAttachment>[];
|
|
11
|
-
project_attachments: Stored<ProjectAttachment>[];
|
|
12
|
-
}
|
|
13
|
-
interface CreatedAttachments {
|
|
14
|
-
issue_attachments: Created<IssueAttachment>[];
|
|
15
|
-
component_attachments: Created<ComponentAttachment>[];
|
|
16
|
-
component_type_attachments: Created<ComponentTypeAttachment>[];
|
|
17
|
-
project_attachments: Created<ProjectAttachment>[];
|
|
18
|
-
document_attachments: Created<DocumentAttachment>[];
|
|
19
|
-
}
|
|
20
|
-
export declare class AttachmentService extends BaseApiService {
|
|
21
|
-
fetchAll(projectId: number): [StoredAttachments, Promise<CreatedAttachments>];
|
|
22
|
-
addIssueAttachment(attachmentPayload: AttachmentPayload<IssueAttachment>): Promise<OptimisticModelResult<IssueAttachment>>;
|
|
23
|
-
addComponentAttachment(attachmentPayload: AttachmentPayload<ComponentAttachment>): Promise<OptimisticModelResult<ComponentAttachment>>;
|
|
24
|
-
addComponentTypeAttachment(attachmentPayload: AttachmentPayload<ComponentTypeAttachment>): Promise<OptimisticModelResult<ComponentTypeAttachment>>;
|
|
25
|
-
addDocumentAttachment(attachmentPayload: AttachmentPayload<DocumentAttachment>): Promise<OptimisticModelResult<DocumentAttachment>>;
|
|
26
|
-
/** the outer Promise is needed to await the hashing of each file, which is required before offline use. If wanting to
|
|
27
|
-
* attach promise handlers to the request to add the attachment in the backend, apply it on the promise returned from the
|
|
28
|
-
* OptimisticModelResult. */
|
|
29
|
-
attachFilesToIssue(filesToSubmit: File[], issueId: string): Promise<OptimisticModelResult<IssueAttachment>>[];
|
|
30
|
-
attachFilesToComponent(filesToSubmit: File[], componentId: string): Promise<OptimisticModelResult<ComponentAttachment>>[];
|
|
31
|
-
attachFilesToComponentType(filesToSubmit: File[], componentTypeId: string): Promise<OptimisticModelResult<ComponentTypeAttachment>>[];
|
|
32
|
-
attachFilesToDocument(filesToSubmit: File[], documentId: Document["offline_id"]): Promise<OptimisticModelResult<DocumentAttachment>>[];
|
|
33
|
-
replaceIssueAttachmentFile(attachmentId: string, newFile: MaybeObjectURL<File>): Promise<OptimisticModelResult<IssueAttachment>>;
|
|
34
|
-
replaceComponentAttachmentFile(attachmentId: string, newFile: MaybeObjectURL<File>): Promise<OptimisticModelResult<ComponentAttachment>>;
|
|
35
|
-
replaceComponentTypeAttachmentFile(attachmentId: string, newFile: MaybeObjectURL<File>): Promise<OptimisticModelResult<ComponentTypeAttachment>>;
|
|
36
|
-
replaceDocumentAttachmentFile(attachmentId: string, newFile: MaybeObjectURL<File>): Promise<OptimisticModelResult<DocumentAttachment>>;
|
|
37
|
-
/**
|
|
38
|
-
* Deletes an attachment and associated data in the cloud, in the Redux store and the cache.
|
|
39
|
-
* @param issueAttachmentId
|
|
40
|
-
*/
|
|
41
|
-
deleteIssueAttachment(issueAttachmentId: string): Promise<undefined>;
|
|
42
|
-
deleteComponentAttachment(componentAttachmentId: string): Promise<undefined>;
|
|
43
|
-
deleteComponentTypeAttachment(componentTypeAttachmentId: string): Promise<undefined>;
|
|
44
|
-
deleteDocumentAttachment(documentAttachmentId: string): Promise<undefined>;
|
|
45
|
-
}
|
|
46
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { DocumentTeamLink, DocumentTeamLinkPayload } from "../../typings";
|
|
3
|
-
import { OptimisticModelResult } from "../typings.ts";
|
|
4
|
-
export declare class DocumentTeamLinkService extends BaseApiService {
|
|
5
|
-
add(payload: DocumentTeamLinkPayload): OptimisticModelResult<DocumentTeamLink>;
|
|
6
|
-
delete(documentTeamLinkId: string): Promise<undefined>;
|
|
7
|
-
refreshStore(): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { IssueTypeTeamLink, IssueTypeTeamLinkPayload } from "../../typings";
|
|
3
|
-
import { OptimisticModelResult } from "../typings";
|
|
4
|
-
export declare class IssueTypeTeamLinkService extends BaseApiService {
|
|
5
|
-
add(payload: IssueTypeTeamLinkPayload): OptimisticModelResult<IssueTypeTeamLink>;
|
|
6
|
-
delete(issueTypeTeamLinkId: string): Promise<undefined>;
|
|
7
|
-
refreshStore(): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { UserFormTeamLink, UserFormTeamLinkPayload } from "../../typings";
|
|
3
|
-
import { OptimisticModelResult } from "../typings.ts";
|
|
4
|
-
export declare class UserFormTeamLinkService extends BaseApiService {
|
|
5
|
-
add(payload: UserFormTeamLinkPayload): OptimisticModelResult<UserFormTeamLink>;
|
|
6
|
-
delete(userFormTeamLinkId: string): Promise<undefined>;
|
|
7
|
-
refreshStore(): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { DocumentTeamLink, RootState, SelectorWithArgs, Stored, Team } from "../../typings";
|
|
3
|
-
export interface DocumentTeamLinkState {
|
|
4
|
-
documentTeamLinks: Record<string, Stored<DocumentTeamLink>>;
|
|
5
|
-
}
|
|
6
|
-
export declare const documentTeamLinkSlice: import("@reduxjs/toolkit").Slice<DocumentTeamLinkState, {
|
|
7
|
-
setDocumentTeamLink: (state: import("immer/dist/internal.js").WritableDraft<DocumentTeamLinkState>, action: PayloadAction<Stored<DocumentTeamLink>>) => void;
|
|
8
|
-
setDocumentTeamLinks: (state: import("immer/dist/internal.js").WritableDraft<DocumentTeamLinkState>, action: PayloadAction<Stored<DocumentTeamLink>[]>) => void;
|
|
9
|
-
addDocumentTeamLink: (state: import("immer/dist/internal.js").WritableDraft<DocumentTeamLinkState>, action: PayloadAction<Stored<DocumentTeamLink>>) => void;
|
|
10
|
-
deleteDocumentTeamLink: (state: import("immer/dist/internal.js").WritableDraft<DocumentTeamLinkState>, action: PayloadAction<string>) => void;
|
|
11
|
-
deleteDocumentTeamLinks: (state: import("immer/dist/internal.js").WritableDraft<DocumentTeamLinkState>, action: PayloadAction<string[]>) => void;
|
|
12
|
-
}, "documentTeamLink">;
|
|
13
|
-
export declare const setDocumentTeamLink: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentTeamLink>, "documentTeamLink/setDocumentTeamLink">, setDocumentTeamLinks: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentTeamLink>[], "documentTeamLink/setDocumentTeamLinks">, addDocumentTeamLink: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<DocumentTeamLink>, "documentTeamLink/addDocumentTeamLink">, deleteDocumentTeamLink: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "documentTeamLink/deleteDocumentTeamLink">, deleteDocumentTeamLinks: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "documentTeamLink/deleteDocumentTeamLinks">;
|
|
14
|
-
export declare const selectDocumentTeamLinksMapping: (state: RootState) => Record<string, Stored<DocumentTeamLink>>;
|
|
15
|
-
export declare const selectDocumentTeamLinks: (state: RootState) => Stored<DocumentTeamLink>[];
|
|
16
|
-
export declare const selectDocumentTeamLinksOfDocument: SelectorWithArgs<string, Stored<DocumentTeamLink>[]>;
|
|
17
|
-
export declare const selectDocumentTeamLinksOfTeam: SelectorWithArgs<string, Stored<DocumentTeamLink>[]>;
|
|
18
|
-
export declare const selectDocumentsLinkedToTeam: SelectorWithArgs<string, Stored<Document>[]>;
|
|
19
|
-
export declare const selectTeamsLinkedToDocument: SelectorWithArgs<string, Stored<Team>[]>;
|
|
20
|
-
export declare const documentTeamLinkReducer: Reducer<DocumentTeamLinkState>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { IssueType, IssueTypeTeamLink, RootState, SelectorWithArgs, Stored, Team } from "../../typings";
|
|
3
|
-
export interface IssueTypeTeamLinkState {
|
|
4
|
-
issueTypeTeamLinks: Record<string, Stored<IssueTypeTeamLink>>;
|
|
5
|
-
}
|
|
6
|
-
export declare const issueTypeTeamLinkSlice: import("@reduxjs/toolkit").Slice<IssueTypeTeamLinkState, {
|
|
7
|
-
setIssueTypeTeamLink: (state: import("immer/dist/internal.js").WritableDraft<IssueTypeTeamLinkState>, action: PayloadAction<Stored<IssueTypeTeamLink>>) => void;
|
|
8
|
-
setIssueTypeTeamLinks: (state: import("immer/dist/internal.js").WritableDraft<IssueTypeTeamLinkState>, action: PayloadAction<Stored<IssueTypeTeamLink>[]>) => void;
|
|
9
|
-
addIssueTypeTeamLink: (state: import("immer/dist/internal.js").WritableDraft<IssueTypeTeamLinkState>, action: PayloadAction<Stored<IssueTypeTeamLink>>) => void;
|
|
10
|
-
deleteIssueTypeTeamLink: (state: import("immer/dist/internal.js").WritableDraft<IssueTypeTeamLinkState>, action: PayloadAction<string>) => void;
|
|
11
|
-
deleteIssueTypeTeamLinks: (state: import("immer/dist/internal.js").WritableDraft<IssueTypeTeamLinkState>, action: PayloadAction<string[]>) => void;
|
|
12
|
-
}, "issueTypeTeamLink">;
|
|
13
|
-
export declare const setIssueTypeTeamLink: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueTypeTeamLink>, "issueTypeTeamLink/setIssueTypeTeamLink">, setIssueTypeTeamLinks: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueTypeTeamLink>[], "issueTypeTeamLink/setIssueTypeTeamLinks">, addIssueTypeTeamLink: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<IssueTypeTeamLink>, "issueTypeTeamLink/addIssueTypeTeamLink">, deleteIssueTypeTeamLink: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issueTypeTeamLink/deleteIssueTypeTeamLink">, deleteIssueTypeTeamLinks: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "issueTypeTeamLink/deleteIssueTypeTeamLinks">;
|
|
14
|
-
export declare const selectIssueTypeTeamLinkMapping: (state: RootState) => Record<string, Stored<IssueTypeTeamLink>>;
|
|
15
|
-
export declare const selectIssueTypeTeamLinks: (state: RootState) => Stored<IssueTypeTeamLink>[];
|
|
16
|
-
export declare const selectIssueTypeTeamLinksOfIssueType: SelectorWithArgs<string, Stored<IssueTypeTeamLink>[]>;
|
|
17
|
-
export declare const selectIssueTypeTeamLinksOfTeam: SelectorWithArgs<string, Stored<IssueTypeTeamLink>[]>;
|
|
18
|
-
export declare const selectIssueTypesLinkedToTeam: SelectorWithArgs<string, Stored<IssueType>[]>;
|
|
19
|
-
export declare const selectTeamsLinkedToIssueType: SelectorWithArgs<string, Stored<Team>[]>;
|
|
20
|
-
export declare const issueTypeTeamLinkReducer: Reducer<IssueTypeTeamLinkState>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { RootState, SelectorWithArgs, Stored, Team, UserForm, UserFormTeamLink } from "../../typings";
|
|
3
|
-
export interface UserFormTeamLinkState {
|
|
4
|
-
userFormTeamLinks: Record<string, Stored<UserFormTeamLink>>;
|
|
5
|
-
}
|
|
6
|
-
export declare const userFormTeamLinkSlice: import("@reduxjs/toolkit").Slice<UserFormTeamLinkState, {
|
|
7
|
-
setUserFormTeamLink: (state: import("immer/dist/internal.js").WritableDraft<UserFormTeamLinkState>, action: PayloadAction<Stored<UserFormTeamLink>>) => void;
|
|
8
|
-
setUserFormTeamLinks: (state: import("immer/dist/internal.js").WritableDraft<UserFormTeamLinkState>, action: PayloadAction<Stored<UserFormTeamLink>[]>) => void;
|
|
9
|
-
addUserFormTeamLink: (state: import("immer/dist/internal.js").WritableDraft<UserFormTeamLinkState>, action: PayloadAction<Stored<UserFormTeamLink>>) => void;
|
|
10
|
-
deleteUserFormTeamLink: (state: import("immer/dist/internal.js").WritableDraft<UserFormTeamLinkState>, action: PayloadAction<string>) => void;
|
|
11
|
-
deleteUserFormTeamLinks: (state: import("immer/dist/internal.js").WritableDraft<UserFormTeamLinkState>, action: PayloadAction<string[]>) => void;
|
|
12
|
-
}, "userFormTeamLink">;
|
|
13
|
-
export declare const setUserFormTeamLink: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormTeamLink>, "userFormTeamLink/setUserFormTeamLink">, setUserFormTeamLinks: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormTeamLink>[], "userFormTeamLink/setUserFormTeamLinks">, addUserFormTeamLink: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<UserFormTeamLink>, "userFormTeamLink/addUserFormTeamLink">, deleteUserFormTeamLink: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "userFormTeamLink/deleteUserFormTeamLink">, deleteUserFormTeamLinks: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "userFormTeamLink/deleteUserFormTeamLinks">;
|
|
14
|
-
export declare const selectUserFormTeamLinkMapping: (state: RootState) => Record<string, Stored<UserFormTeamLink>>;
|
|
15
|
-
export declare const selectUserFormTeamLinks: (state: RootState) => Stored<UserFormTeamLink>[];
|
|
16
|
-
export declare const selectUserFormLinksOfTeam: SelectorWithArgs<string, Stored<UserFormTeamLink>[]>;
|
|
17
|
-
export declare const selectUserFormLinksOfForm: SelectorWithArgs<string, Stored<UserFormTeamLink>[]>;
|
|
18
|
-
export declare const selectUserFormsLinkedToTeam: SelectorWithArgs<string, Stored<UserForm>[]>;
|
|
19
|
-
export declare const selectTeamsLinkedToUserForm: SelectorWithArgs<string, Stored<Team>[]>;
|
|
20
|
-
export declare const userFormTeamLinkReducer: Reducer<UserFormTeamLinkState>;
|