@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.
@@ -4541,7 +4541,8 @@ class AttachmentService extends BaseApiService {
4541
4541
  file: attachmentPayload.file.objectURL,
4542
4542
  file_name: attachmentPayload.file.name,
4543
4543
  file_type: attachmentPayload.file.type,
4544
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4544
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4545
+ created_by: this.client.store.getState().userReducer.currentUser.id
4545
4546
  };
4546
4547
  await this.client.files.addCache(attachmentPayload.file, file_sha1);
4547
4548
  this.client.store.dispatch(addIssueAttachment(offlineAttachment));
@@ -4576,7 +4577,8 @@ class AttachmentService extends BaseApiService {
4576
4577
  file: attachmentPayload.file.objectURL,
4577
4578
  file_name: attachmentPayload.file.name,
4578
4579
  file_type: attachmentPayload.file.type,
4579
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4580
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4581
+ created_by: this.client.store.getState().userReducer.currentUser.id
4580
4582
  };
4581
4583
  await this.client.files.addCache(attachmentPayload.file, file_sha1);
4582
4584
  this.client.store.dispatch(addComponentAttachment(offlineAttachment));
@@ -4611,7 +4613,8 @@ class AttachmentService extends BaseApiService {
4611
4613
  file: attachmentPayload.file.objectURL,
4612
4614
  file_name: attachmentPayload.file.name,
4613
4615
  file_type: attachmentPayload.file.type,
4614
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4616
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4617
+ created_by: this.client.store.getState().userReducer.currentUser.id
4615
4618
  };
4616
4619
  await this.client.files.addCache(attachmentPayload.file, file_sha1);
4617
4620
  this.client.store.dispatch(addComponentTypeAttachment(offlineAttachment));
@@ -4646,7 +4649,8 @@ class AttachmentService extends BaseApiService {
4646
4649
  file: attachmentPayload.file.objectURL,
4647
4650
  file_name: attachmentPayload.file.name,
4648
4651
  file_type: attachmentPayload.file.type,
4649
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4652
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4653
+ created_by: this.client.store.getState().userReducer.currentUser.id
4650
4654
  };
4651
4655
  await this.client.files.addCache(attachmentPayload.file, file_sha1);
4652
4656
  this.client.store.dispatch(addProjectAttachment(offlineAttachment));
@@ -4687,7 +4691,8 @@ class AttachmentService extends BaseApiService {
4687
4691
  file_type: file2.type,
4688
4692
  issue: issueId,
4689
4693
  file_sha1: hash,
4690
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4694
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4695
+ created_by: this.client.store.getState().userReducer.currentUser.id
4691
4696
  });
4692
4697
  return this.addIssueAttachment(attachment);
4693
4698
  };
@@ -4707,7 +4712,8 @@ class AttachmentService extends BaseApiService {
4707
4712
  file_type: file2.type,
4708
4713
  component: componentId,
4709
4714
  file_sha1: hash,
4710
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4715
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4716
+ created_by: this.client.store.getState().userReducer.currentUser.id
4711
4717
  });
4712
4718
  return this.addComponentAttachment(attachment);
4713
4719
  };
@@ -4727,7 +4733,8 @@ class AttachmentService extends BaseApiService {
4727
4733
  file_type: file2.type,
4728
4734
  component_type: componentTypeId,
4729
4735
  file_sha1: hash,
4730
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4736
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4737
+ created_by: this.client.store.getState().userReducer.currentUser.id
4731
4738
  });
4732
4739
  return this.addComponentTypeAttachment(attachment);
4733
4740
  };
@@ -4747,7 +4754,8 @@ class AttachmentService extends BaseApiService {
4747
4754
  file_type: file2.type,
4748
4755
  project: projectId,
4749
4756
  file_sha1: hash,
4750
- submitted_at: (/* @__PURE__ */ new Date()).toISOString()
4757
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
4758
+ created_by: this.client.store.getState().userReducer.currentUser.id
4751
4759
  });
4752
4760
  return this.addProjectAttachment(attachment);
4753
4761
  };