@overmap-ai/core 1.0.53-add-agent-conversations.10 → 1.0.53-add-agent-conversations.12

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.
@@ -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 {};