@overmap-ai/core 1.0.48-activity-history.5 → 1.0.48-activity-history.6

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.
@@ -4532,7 +4532,8 @@ var __publicField = (obj, key, value) => {
4532
4532
  file: attachmentPayload.file.objectURL,
4533
4533
  file_name: attachmentPayload.file.name,
4534
4534
  file_type: attachmentPayload.file.type,
4535
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4535
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4536
+ created_by: this.client.store.getState().userReducer.currentUser.id
4536
4537
  };
4537
4538
  await this.client.files.addCache(attachmentPayload.file, file_sha1);
4538
4539
  this.client.store.dispatch(addIssueAttachment(offlineAttachment));
@@ -4567,7 +4568,8 @@ var __publicField = (obj, key, value) => {
4567
4568
  file: attachmentPayload.file.objectURL,
4568
4569
  file_name: attachmentPayload.file.name,
4569
4570
  file_type: attachmentPayload.file.type,
4570
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4571
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4572
+ created_by: this.client.store.getState().userReducer.currentUser.id
4571
4573
  };
4572
4574
  await this.client.files.addCache(attachmentPayload.file, file_sha1);
4573
4575
  this.client.store.dispatch(addComponentAttachment(offlineAttachment));
@@ -4602,7 +4604,8 @@ var __publicField = (obj, key, value) => {
4602
4604
  file: attachmentPayload.file.objectURL,
4603
4605
  file_name: attachmentPayload.file.name,
4604
4606
  file_type: attachmentPayload.file.type,
4605
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4607
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4608
+ created_by: this.client.store.getState().userReducer.currentUser.id
4606
4609
  };
4607
4610
  await this.client.files.addCache(attachmentPayload.file, file_sha1);
4608
4611
  this.client.store.dispatch(addComponentTypeAttachment(offlineAttachment));
@@ -4637,7 +4640,8 @@ var __publicField = (obj, key, value) => {
4637
4640
  file: attachmentPayload.file.objectURL,
4638
4641
  file_name: attachmentPayload.file.name,
4639
4642
  file_type: attachmentPayload.file.type,
4640
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4643
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4644
+ created_by: this.client.store.getState().userReducer.currentUser.id
4641
4645
  };
4642
4646
  await this.client.files.addCache(attachmentPayload.file, file_sha1);
4643
4647
  this.client.store.dispatch(addProjectAttachment(offlineAttachment));
@@ -4678,7 +4682,8 @@ var __publicField = (obj, key, value) => {
4678
4682
  file_type: file2.type,
4679
4683
  issue: issueId,
4680
4684
  file_sha1: hash,
4681
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4685
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4686
+ created_by: this.client.store.getState().userReducer.currentUser.id
4682
4687
  });
4683
4688
  return this.addIssueAttachment(attachment);
4684
4689
  };
@@ -4698,7 +4703,8 @@ var __publicField = (obj, key, value) => {
4698
4703
  file_type: file2.type,
4699
4704
  component: componentId,
4700
4705
  file_sha1: hash,
4701
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4706
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4707
+ created_by: this.client.store.getState().userReducer.currentUser.id
4702
4708
  });
4703
4709
  return this.addComponentAttachment(attachment);
4704
4710
  };
@@ -4718,7 +4724,8 @@ var __publicField = (obj, key, value) => {
4718
4724
  file_type: file2.type,
4719
4725
  component_type: componentTypeId,
4720
4726
  file_sha1: hash,
4721
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4727
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4728
+ created_by: this.client.store.getState().userReducer.currentUser.id
4722
4729
  });
4723
4730
  return this.addComponentTypeAttachment(attachment);
4724
4731
  };
@@ -4738,7 +4745,8 @@ var __publicField = (obj, key, value) => {
4738
4745
  file_type: file2.type,
4739
4746
  project: projectId,
4740
4747
  file_sha1: hash,
4741
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4748
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4749
+ created_by: this.client.store.getState().userReducer.currentUser.id
4742
4750
  });
4743
4751
  return this.addProjectAttachment(attachment);
4744
4752
  };