Comparing version 4.1.4 to 4.1.5
# Change Log | ||
## [4.1.5](https://github.com/plivo/plivo-node/releases/tag/v4.1.5)(2019-11-13) | ||
- Add GetInput XML support | ||
## [4.1.4](https://github.com/plivo/plivo-node/releases/tag/v4.1.4)(2019-11-06) | ||
@@ -4,0 +7,0 @@ - Add SSML support |
@@ -48,3 +48,3 @@ 'use strict'; | ||
this.element = 'Response'; | ||
this.nestables = ['Speak', 'Play', 'GetDigits', 'Record', 'Dial', 'Message', 'Redirect', 'Wait', 'Hangup', 'PreAnswer', 'Conference', 'DTMF']; | ||
this.nestables = ['Speak', 'Play', 'GetDigits', 'GetInput', 'Record', 'Dial', 'Message', 'Redirect', 'Wait', 'Hangup', 'PreAnswer', 'Conference', 'DTMF']; | ||
this.valid_attributes = []; | ||
@@ -200,2 +200,27 @@ this.elem = xmlBuilder.begin().ele(this.element); | ||
/** | ||
* Add a GetInput element | ||
* @method | ||
* @param {object} attributes | ||
* @param {string} [attributes.action] | ||
* @param {string} [attributes.method] | ||
* @param {string} [attributes.inputType] | ||
* @param {number} [attributes.executionTimeout] | ||
* @param {number} [attributes.digitEndTimeout] | ||
* @param {number} [attributes.speechEndTimeout] | ||
* @param {string} [attributes.finishOnKey] | ||
* @param {number} [attributes.numDigits] | ||
* @param {string} [attributes.speechModel] | ||
* @param {string} [attributes.hints] | ||
* @param {string} [attributes.language] | ||
* @param {string} [attributes.interimSpeechResultsCallback] | ||
* @param {string} [attributes.interimSpeechResultsCallbackMethod] | ||
* @param {boolean} [attributes.log] | ||
* @param {boolean} [attributes.redirect] | ||
* @param {string} [attributes.profanityFilter] | ||
*/ | ||
addGetInput: function addGetInput(attributes) { | ||
return this.add(new GetInput(Response), '', attributes); | ||
}, | ||
/** | ||
* Add a Hangup element | ||
@@ -512,2 +537,13 @@ * @method | ||
/** | ||
* GetInput element | ||
* @constructor | ||
*/ | ||
function GetInput(Response) { | ||
this.element = 'GetInput'; | ||
this.valid_attributes = ['action', 'method', 'inputType', 'executionTimeout', 'digitEndTimeout', 'speechEndTimeout', 'finishOnKey', 'numDigits', 'speechModel', 'hints', 'language', 'interimSpeechResultsCallback', 'interimSpeechResultsCallbackMethod', 'log', 'redirect', 'profanityFilter']; | ||
this.nestables = ['Speak', 'Play', 'Wait']; | ||
} | ||
util.inherits(GetInput, Response); | ||
/** | ||
* Hangup element | ||
@@ -514,0 +550,0 @@ * @constructor |
{ | ||
"name": "plivo", | ||
"version": "4.1.4", | ||
"version": "4.1.5", | ||
"description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/plivo/plivo-node", |
244344
5242