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.
- package/bundles/index.esm.js +8 -1
- package/bundles/index.esm.js.map +1 -1
- package/bundles/index.esm.min.js +1 -1
- package/bundles/index.esm.min.js.map +1 -1
- package/bundles/index.umd.js +12 -1
- package/bundles/index.umd.js.map +1 -1
- package/bundles/index.umd.min.js +1 -1
- package/bundles/index.umd.min.js.map +1 -1
- package/esm2015/socket/conversation.js +7 -0
- package/esm2015/socket/conversation.js.map +1 -1
- package/esm5/socket/conversation.js +11 -0
- package/esm5/socket/conversation.js.map +1 -1
- package/package.json +1 -1
- package/types/socket/conversation.d.ts +4 -1
- package/types/socket/conversation.d.ts.map +1 -1
package/bundles/index.esm.js
CHANGED
|
@@ -30394,7 +30394,7 @@ async function getMediaStream(constraints) {
|
|
|
30394
30394
|
|
|
30395
30395
|
const getVersion = () => {
|
|
30396
30396
|
// @ts-ignore
|
|
30397
|
-
return '"0.1.
|
|
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
|
*/
|