@vendasta/conversation 0.34.0 → 0.36.0

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.
@@ -346,6 +346,9 @@ class Conversation {
346
346
  if (typeof this.lastSeenByParticipant !== 'undefined' && this.lastSeenByParticipant !== null) {
347
347
  toReturn['lastSeenByParticipant'] = 'toApiJson' in this.lastSeenByParticipant ? this.lastSeenByParticipant.toApiJson() : this.lastSeenByParticipant;
348
348
  }
349
+ if (typeof this.conversationViewIds !== 'undefined') {
350
+ toReturn['conversationViewIds'] = this.conversationViewIds;
351
+ }
349
352
  return toReturn;
350
353
  }
351
354
  }
@@ -1727,6 +1730,9 @@ class Media {
1727
1730
  static fromProto(proto) {
1728
1731
  let m = new Media();
1729
1732
  m = Object.assign(m, proto);
1733
+ if (proto.fileSize) {
1734
+ m.fileSize = parseInt(proto.fileSize, 10);
1735
+ }
1730
1736
  return m;
1731
1737
  }
1732
1738
  constructor(kwargs) {
@@ -1746,6 +1752,9 @@ class Media {
1746
1752
  if (typeof this.mediaFileName !== 'undefined') {
1747
1753
  toReturn['mediaFileName'] = this.mediaFileName;
1748
1754
  }
1755
+ if (typeof this.fileSize !== 'undefined') {
1756
+ toReturn['fileSize'] = this.fileSize;
1757
+ }
1749
1758
  return toReturn;
1750
1759
  }
1751
1760
  }