webitel-sdk 0.1.126 → 0.1.129
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 +12 -2
- 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 +16 -2
- 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/enums/queues/queue-type.enum.js +2 -2
- package/esm2015/enums/queues/queue-type.enum.js.map +1 -1
- package/esm2015/socket/client.js +1 -1
- package/esm2015/socket/client.js.map +1 -1
- package/esm2015/socket/conversation.js +1 -1
- package/esm2015/socket/conversation.js.map +1 -1
- package/esm2015/socket/task.js +10 -0
- package/esm2015/socket/task.js.map +1 -1
- package/esm5/enums/queues/queue-type.enum.js +2 -2
- package/esm5/enums/queues/queue-type.enum.js.map +1 -1
- package/esm5/socket/client.js +1 -1
- package/esm5/socket/client.js.map +1 -1
- package/esm5/socket/conversation.js +1 -1
- package/esm5/socket/conversation.js.map +1 -1
- package/esm5/socket/task.js +14 -0
- package/esm5/socket/task.js.map +1 -1
- package/package.json +1 -1
- package/types/enums/queues/queue-type.enum.d.ts +2 -2
- package/types/enums/queues/queue-type.enum.d.ts.map +1 -1
- package/types/socket/client.d.ts +1 -1
- package/types/socket/task.d.ts +6 -0
- package/types/socket/task.d.ts.map +1 -1
package/bundles/index.esm.js
CHANGED
|
@@ -24667,6 +24667,16 @@ class Task {
|
|
|
24667
24667
|
get attempt() {
|
|
24668
24668
|
return this;
|
|
24669
24669
|
}
|
|
24670
|
+
get variables() {
|
|
24671
|
+
const res = {};
|
|
24672
|
+
for (const k in this.distribute.variables) {
|
|
24673
|
+
if (k.startsWith('cc_')) {
|
|
24674
|
+
continue;
|
|
24675
|
+
}
|
|
24676
|
+
res[k] = this.distribute.variables[k];
|
|
24677
|
+
}
|
|
24678
|
+
return res;
|
|
24679
|
+
}
|
|
24670
24680
|
get displayNumber() {
|
|
24671
24681
|
return this.communication.destination;
|
|
24672
24682
|
}
|
|
@@ -25532,7 +25542,7 @@ class Conversation {
|
|
|
25532
25542
|
return !!this.inviteId;
|
|
25533
25543
|
}
|
|
25534
25544
|
get allowLeave() {
|
|
25535
|
-
return
|
|
25545
|
+
return !!this.channelId && this.closedAt === 0;
|
|
25536
25546
|
}
|
|
25537
25547
|
get allowReporting() {
|
|
25538
25548
|
return this.answeredAt > 0 && this.hasReporting;
|
|
@@ -26100,7 +26110,7 @@ class Client extends EventEmitter {
|
|
|
26100
26110
|
return call.hangupAt > 0 && !this.hasAgentTask(call.task);
|
|
26101
26111
|
}
|
|
26102
26112
|
conversationDestroyed(conv) {
|
|
26103
|
-
return conv.closedAt > 0 && !this.hasAgentTask(conv.task)
|
|
26113
|
+
return conv.closedAt > 0 && !this.hasAgentTask(conv.task);
|
|
26104
26114
|
}
|
|
26105
26115
|
reportingChannelTask(task) {
|
|
26106
26116
|
switch (task.channel) {
|