webitel-sdk 0.1.96 → 0.1.97
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 +14 -0
- 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 +22 -0
- 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 +14 -0
- package/esm2015/socket/conversation.js.map +1 -1
- package/esm5/socket/conversation.js +22 -0
- package/esm5/socket/conversation.js.map +1 -1
- package/package.json +1 -1
- package/types/socket/conversation.d.ts +2 -0
- package/types/socket/conversation.d.ts.map +1 -1
package/bundles/index.esm.js
CHANGED
|
@@ -24001,6 +24001,20 @@ class Conversation {
|
|
|
24001
24001
|
}
|
|
24002
24002
|
return this.task.renew(sec);
|
|
24003
24003
|
}
|
|
24004
|
+
async transferToPlan(planId) {
|
|
24005
|
+
return this.client.request(`blind_transfer_chat`, {
|
|
24006
|
+
conversation_id: this.conversationId,
|
|
24007
|
+
channel_id: this.channelId,
|
|
24008
|
+
plan_id: planId,
|
|
24009
|
+
});
|
|
24010
|
+
}
|
|
24011
|
+
async transferToUser(userId) {
|
|
24012
|
+
return this.client.request(`transfer_user_chat`, {
|
|
24013
|
+
conversation_id: this.conversationId,
|
|
24014
|
+
channel_id: this.channelId,
|
|
24015
|
+
user_id: userId,
|
|
24016
|
+
});
|
|
24017
|
+
}
|
|
24004
24018
|
sendMessageTextChunk(text) {
|
|
24005
24019
|
return this.client.request(`send_text_chat`, {
|
|
24006
24020
|
channel_id: this.channelId,
|