@overmap-ai/core 1.0.63-org-doc-improvements.0 → 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.
- package/dist/overmap-core.js +20 -2
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +20 -2
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/services/BaseAttachmentService.d.ts +1 -1
- package/dist/sdk/services/DocumentAttachmentService.d.ts +1 -0
- package/dist/typings/models/assets.d.ts +2 -2
- package/dist/typings/models/base.d.ts +3 -1
- package/dist/typings/models/documents.d.ts +2 -2
- package/dist/typings/models/issueTypes.d.ts +2 -2
- package/dist/typings/models/teams.d.ts +2 -2
- package/package.json +1 -1
package/dist/overmap-core.js
CHANGED
|
@@ -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`,
|
|
@@ -5190,7 +5190,7 @@ class IssueTypeService extends BaseApiService {
|
|
|
5190
5190
|
offline_id: offlineIssueType.offline_id,
|
|
5191
5191
|
submitted_at: offlineIssueType.submitted_at,
|
|
5192
5192
|
icon: offlineIssueType.icon,
|
|
5193
|
-
icon_color: offlineIssueType.
|
|
5193
|
+
icon_color: offlineIssueType.color,
|
|
5194
5194
|
name: offlineIssueType.name,
|
|
5195
5195
|
description: offlineIssueType.description
|
|
5196
5196
|
},
|
|
@@ -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) {
|