@overmap-ai/core 1.0.63-org-doc-improvements.1 → 1.0.63-org-doc-improvements.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4688,7 +4688,7 @@ class BaseAttachmentService extends BaseUploadService {
4688
4688
  }
4689
4689
  // Note that currently the fetching of attachments for all models dependds on the active projectId. This may change in the future. And
4690
4690
  // so for some attachment model services, this method will have to be overridden.
4691
- async refreshStore(projectId) {
4691
+ async refreshStore(projectId, _organizationId) {
4692
4692
  const meta = AttachmentModelMeta[this.attachmentModel];
4693
4693
  const result = await this.enqueueRequest({
4694
4694
  description: `Get ${meta.name} attachments`,
@@ -6900,6 +6900,24 @@ class DocumentAttachmentService extends BaseAttachmentService {
6900
6900
  async deleteDocumentAttachment(attachmentId) {
6901
6901
  return this.deleteAttachment(attachmentId);
6902
6902
  }
6903
+ async refreshStore(projectId, organizationId) {
6904
+ const projectDocumentAttachments = await this.enqueueRequest({
6905
+ description: "Get document attachments",
6906
+ method: HttpMethod.GET,
6907
+ url: `/projects/${projectId}/document-attachments/`,
6908
+ blocks: [],
6909
+ blockers: []
6910
+ });
6911
+ this.dispatch(this.initializeAttachments(projectDocumentAttachments));
6912
+ const organizationDocumentAttachments = await this.enqueueRequest({
6913
+ description: "Get document attachments",
6914
+ method: HttpMethod.GET,
6915
+ url: `/organizations/${organizationId}/document-attachments/`,
6916
+ blocks: [],
6917
+ blockers: []
6918
+ });
6919
+ this.dispatch(this.addAttachments(organizationDocumentAttachments));
6920
+ }
6903
6921
  }
6904
6922
  class AgentService extends BaseApiService {
6905
6923
  async startConversation(prompt) {