@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.
|
@@ -4523,7 +4523,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4523
4523
|
}
|
|
4524
4524
|
// Attachments aren't models, so we use the OptimisticGenericResult type instead
|
|
4525
4525
|
async addIssueAttachment(attachmentPayload) {
|
|
4526
|
-
const {
|
|
4526
|
+
const { issue, file_sha1, offline_id } = attachmentPayload;
|
|
4527
4527
|
if (!attachmentPayload.file.objectURL) {
|
|
4528
4528
|
throw new Error("Expected attachmentPayload.file.objectURL to be defined.");
|
|
4529
4529
|
}
|
|
@@ -4545,10 +4545,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4545
4545
|
blocks: [offline_id, issue],
|
|
4546
4546
|
blockers: [file_sha1],
|
|
4547
4547
|
payload: {
|
|
4548
|
-
|
|
4549
|
-
issue,
|
|
4550
|
-
description: description2 ?? "",
|
|
4551
|
-
submitted_at: (/* @__PURE__ */ new Date()).getTime() / 1e3,
|
|
4548
|
+
...offlineAttachment,
|
|
4552
4549
|
...fileProps
|
|
4553
4550
|
}
|
|
4554
4551
|
});
|
|
@@ -4559,7 +4556,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4559
4556
|
return [offlineAttachment, promise];
|
|
4560
4557
|
}
|
|
4561
4558
|
async addComponentAttachment(attachmentPayload) {
|
|
4562
|
-
const {
|
|
4559
|
+
const { component, file_sha1, offline_id } = attachmentPayload;
|
|
4563
4560
|
if (!attachmentPayload.file.objectURL) {
|
|
4564
4561
|
throw new Error("Expected attachmentPayload.file.objectURL to be defined.");
|
|
4565
4562
|
}
|
|
@@ -4581,10 +4578,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4581
4578
|
blocks: [offline_id, component],
|
|
4582
4579
|
blockers: [file_sha1],
|
|
4583
4580
|
payload: {
|
|
4584
|
-
|
|
4585
|
-
component,
|
|
4586
|
-
description: description2 ?? "",
|
|
4587
|
-
submitted_at: (/* @__PURE__ */ new Date()).getTime() / 1e3,
|
|
4581
|
+
...offlineAttachment,
|
|
4588
4582
|
...fileProps
|
|
4589
4583
|
}
|
|
4590
4584
|
});
|
|
@@ -4595,7 +4589,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4595
4589
|
return [offlineAttachment, promise];
|
|
4596
4590
|
}
|
|
4597
4591
|
async addComponentTypeAttachment(attachmentPayload) {
|
|
4598
|
-
const {
|
|
4592
|
+
const { component_type, file_sha1, offline_id } = attachmentPayload;
|
|
4599
4593
|
if (!attachmentPayload.file.objectURL) {
|
|
4600
4594
|
throw new Error("Expected attachmentPayload.file.objectURL to be defined.");
|
|
4601
4595
|
}
|
|
@@ -4617,10 +4611,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4617
4611
|
blocks: [offline_id, component_type],
|
|
4618
4612
|
blockers: [file_sha1],
|
|
4619
4613
|
payload: {
|
|
4620
|
-
|
|
4621
|
-
component_type,
|
|
4622
|
-
description: description2 ?? "",
|
|
4623
|
-
submitted_at: (/* @__PURE__ */ new Date()).getTime() / 1e3,
|
|
4614
|
+
...offlineAttachment,
|
|
4624
4615
|
...fileProps
|
|
4625
4616
|
}
|
|
4626
4617
|
});
|