@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.
@@ -4676,7 +4676,7 @@ var __publicField = (obj, key, value) => {
4676
4676
  }
4677
4677
  // Note that currently the fetching of attachments for all models dependds on the active projectId. This may change in the future. And
4678
4678
  // so for some attachment model services, this method will have to be overridden.
4679
- async refreshStore(projectId) {
4679
+ async refreshStore(projectId, _organizationId) {
4680
4680
  const meta = AttachmentModelMeta[this.attachmentModel];
4681
4681
  const result = await this.enqueueRequest({
4682
4682
  description: `Get ${meta.name} attachments`,
@@ -6888,6 +6888,24 @@ var __publicField = (obj, key, value) => {
6888
6888
  async deleteDocumentAttachment(attachmentId) {
6889
6889
  return this.deleteAttachment(attachmentId);
6890
6890
  }
6891
+ async refreshStore(projectId, organizationId) {
6892
+ const projectDocumentAttachments = await this.enqueueRequest({
6893
+ description: "Get document attachments",
6894
+ method: HttpMethod.GET,
6895
+ url: `/projects/${projectId}/document-attachments/`,
6896
+ blocks: [],
6897
+ blockers: []
6898
+ });
6899
+ this.dispatch(this.initializeAttachments(projectDocumentAttachments));
6900
+ const organizationDocumentAttachments = await this.enqueueRequest({
6901
+ description: "Get document attachments",
6902
+ method: HttpMethod.GET,
6903
+ url: `/organizations/${organizationId}/document-attachments/`,
6904
+ blocks: [],
6905
+ blockers: []
6906
+ });
6907
+ this.dispatch(this.addAttachments(organizationDocumentAttachments));
6908
+ }
6891
6909
  }
6892
6910
  class AgentService extends BaseApiService {
6893
6911
  async startConversation(prompt) {