Comparing version 4.0.3 to 4.0.4
# Change Log | ||
## [4.0.4](https://github.com/plivo/plivo-node/releases/tag/v4.0.4)(2018-10-29) | ||
- Add live calls filtering by from, to numbers and call_direction. | ||
## [4.0.3](https://github.com/plivo/plivo-node/releases/tag/v4.0.3)(2018-09-18) | ||
@@ -4,0 +7,0 @@ - Queued status added for filtering calls in queued status. |
@@ -608,4 +608,4 @@ 'use strict'; | ||
key: 'listLiveCalls', | ||
value: function listLiveCalls() { | ||
return this[liveCallInterfaceKey].list(); | ||
value: function listLiveCalls(params) { | ||
return this[liveCallInterfaceKey].list(params); | ||
} | ||
@@ -723,7 +723,11 @@ }, { | ||
key: 'list', | ||
value: function list() { | ||
value: function list(params) { | ||
var client = this[clientKey]; | ||
if (params === undefined) { | ||
params = {}; | ||
} | ||
params.status = 'live'; | ||
return new Promise(function (resolve, reject) { | ||
client('GET', action, { status: 'live' }).then(function (response) { | ||
client('GET', action, params).then(function (response) { | ||
var calls = []; | ||
@@ -730,0 +734,0 @@ response.body.calls.forEach(function (callUuid) { |
{ | ||
"name": "plivo", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "A Node.js SDK to make voice calls & send SMS using Plivo and to generate Plivo XML", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/plivo/plivo-node", |
194093
4406