@overmap-ai/core 1.0.48-activity-history.6 → 1.0.48-activity-history.7
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
CHANGED
|
@@ -4532,7 +4532,7 @@ class AttachmentService extends BaseApiService {
|
|
|
4532
4532
|
}
|
|
4533
4533
|
// Attachments aren't models, so we use the OptimisticGenericResult type instead
|
|
4534
4534
|
async addIssueAttachment(attachmentPayload) {
|
|
4535
|
-
const {
|
|
4535
|
+
const { issue, file_sha1, offline_id } = attachmentPayload;
|
|
4536
4536
|
if (!attachmentPayload.file.objectURL) {
|
|
4537
4537
|
throw new Error("Expected attachmentPayload.file.objectURL to be defined.");
|
|
4538
4538
|
}
|
|
@@ -4554,10 +4554,7 @@ class AttachmentService extends BaseApiService {
|
|
|
4554
4554
|
blocks: [offline_id, issue],
|
|
4555
4555
|
blockers: [file_sha1],
|
|
4556
4556
|
payload: {
|
|
4557
|
-
|
|
4558
|
-
issue,
|
|
4559
|
-
description: description2 ?? "",
|
|
4560
|
-
submitted_at: (/* @__PURE__ */ new Date()).getTime() / 1e3,
|
|
4557
|
+
...offlineAttachment,
|
|
4561
4558
|
...fileProps
|
|
4562
4559
|
}
|
|
4563
4560
|
});
|
|
@@ -4568,7 +4565,7 @@ class AttachmentService extends BaseApiService {
|
|
|
4568
4565
|
return [offlineAttachment, promise];
|
|
4569
4566
|
}
|
|
4570
4567
|
async addComponentAttachment(attachmentPayload) {
|
|
4571
|
-
const {
|
|
4568
|
+
const { component, file_sha1, offline_id } = attachmentPayload;
|
|
4572
4569
|
if (!attachmentPayload.file.objectURL) {
|
|
4573
4570
|
throw new Error("Expected attachmentPayload.file.objectURL to be defined.");
|
|
4574
4571
|
}
|
|
@@ -4590,10 +4587,7 @@ class AttachmentService extends BaseApiService {
|
|
|
4590
4587
|
blocks: [offline_id, component],
|
|
4591
4588
|
blockers: [file_sha1],
|
|
4592
4589
|
payload: {
|
|
4593
|
-
|
|
4594
|
-
component,
|
|
4595
|
-
description: description2 ?? "",
|
|
4596
|
-
submitted_at: (/* @__PURE__ */ new Date()).getTime() / 1e3,
|
|
4590
|
+
...offlineAttachment,
|
|
4597
4591
|
...fileProps
|
|
4598
4592
|
}
|
|
4599
4593
|
});
|
|
@@ -4604,7 +4598,7 @@ class AttachmentService extends BaseApiService {
|
|
|
4604
4598
|
return [offlineAttachment, promise];
|
|
4605
4599
|
}
|
|
4606
4600
|
async addComponentTypeAttachment(attachmentPayload) {
|
|
4607
|
-
const {
|
|
4601
|
+
const { component_type, file_sha1, offline_id } = attachmentPayload;
|
|
4608
4602
|
if (!attachmentPayload.file.objectURL) {
|
|
4609
4603
|
throw new Error("Expected attachmentPayload.file.objectURL to be defined.");
|
|
4610
4604
|
}
|
|
@@ -4626,10 +4620,7 @@ class AttachmentService extends BaseApiService {
|
|
|
4626
4620
|
blocks: [offline_id, component_type],
|
|
4627
4621
|
blockers: [file_sha1],
|
|
4628
4622
|
payload: {
|
|
4629
|
-
|
|
4630
|
-
component_type,
|
|
4631
|
-
description: description2 ?? "",
|
|
4632
|
-
submitted_at: (/* @__PURE__ */ new Date()).getTime() / 1e3,
|
|
4623
|
+
...offlineAttachment,
|
|
4633
4624
|
...fileProps
|
|
4634
4625
|
}
|
|
4635
4626
|
});
|