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.umd.js
CHANGED
|
@@ -27215,6 +27215,28 @@
|
|
|
27215
27215
|
});
|
|
27216
27216
|
});
|
|
27217
27217
|
};
|
|
27218
|
+
Conversation.prototype.transferToPlan = function (planId) {
|
|
27219
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
27220
|
+
return tslib.__generator(this, function (_a) {
|
|
27221
|
+
return [2 /*return*/, this.client.request("blind_transfer_chat", {
|
|
27222
|
+
conversation_id: this.conversationId,
|
|
27223
|
+
channel_id: this.channelId,
|
|
27224
|
+
plan_id: planId,
|
|
27225
|
+
})];
|
|
27226
|
+
});
|
|
27227
|
+
});
|
|
27228
|
+
};
|
|
27229
|
+
Conversation.prototype.transferToUser = function (userId) {
|
|
27230
|
+
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
27231
|
+
return tslib.__generator(this, function (_a) {
|
|
27232
|
+
return [2 /*return*/, this.client.request("transfer_user_chat", {
|
|
27233
|
+
conversation_id: this.conversationId,
|
|
27234
|
+
channel_id: this.channelId,
|
|
27235
|
+
user_id: userId,
|
|
27236
|
+
})];
|
|
27237
|
+
});
|
|
27238
|
+
});
|
|
27239
|
+
};
|
|
27218
27240
|
Conversation.prototype.sendMessageTextChunk = function (text) {
|
|
27219
27241
|
return this.client.request("send_text_chat", {
|
|
27220
27242
|
channel_id: this.channelId,
|