webitel-sdk 0.1.174 → 0.1.175

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.
@@ -30394,7 +30394,7 @@ async function getMediaStream(constraints) {
30394
30394
 
30395
30395
  const getVersion = () => {
30396
30396
  // @ts-ignore
30397
- return '"0.1.174"';
30397
+ return '"0.1.175"';
30398
30398
  };
30399
30399
  var version$1 = getVersion();
30400
30400
 
@@ -31368,6 +31368,7 @@ var DeclineCause;
31368
31368
  DeclineCause["Timeout"] = "TIMEOUT";
31369
31369
  DeclineCause["Busy"] = "BUSY";
31370
31370
  DeclineCause["Cancel"] = "CANCEL";
31371
+ DeclineCause["Transfer"] = "TRANSFER";
31371
31372
  })(DeclineCause || (DeclineCause = {}));
31372
31373
  var ChatActions;
31373
31374
  (function (ChatActions) {
@@ -31457,6 +31458,9 @@ class Conversation {
31457
31458
  this._cause = e.cause || null;
31458
31459
  }
31459
31460
  setLeave(e) {
31461
+ if (e.cause) {
31462
+ this._cause = e.cause;
31463
+ }
31460
31464
  this.setClosed(e.timestamp);
31461
31465
  }
31462
31466
  setDeletedMessage(d) {
@@ -31539,6 +31543,9 @@ class Conversation {
31539
31543
  get attempt() {
31540
31544
  return this.task;
31541
31545
  }
31546
+ get isTransferred() {
31547
+ return (this._cause && this._cause.toUpperCase()) === DeclineCause.Transfer;
31548
+ }
31542
31549
  /*
31543
31550
  Actions
31544
31551
  */