Skip to content

Commit

Permalink
[Librarian] Regenerated @ ffacdca4676a6b497016d64a881c854bbb1af883
Browse files Browse the repository at this point in the history
  • Loading branch information
codejudas committed Mar 12, 2018
1 parent b5f475e commit e3b51c7
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 824 deletions.
13 changes: 13 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
twilio-node changelog
=====================

[2018-03-12] Version 3.13.1
----------------------------
**Api**
- Add `caller_id` param to Outbound Calls API
- Release `trim` recording Outbound Calls API functionality in helper libraries

**Video**
- [composer] Add `room_sid` to Composition resource.

**Twiml**
- Adds support for passing in multiple input type enums when setting `input` on `Gather`


[2018-03-02] Version 3.13.0
----------------------------
**Library**
Expand Down
8 changes: 7 additions & 1 deletion lib/rest/api/v2010/account/call.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ CallList = function CallList(version, accountSid) {
* Number of miliseconds to wait for machine detection
* @param {string|list} [opts.recordingStatusCallbackEvent] -
* The recording_status_callback_event
* @param {string} [opts.trim] -
* Set this parameter to control trimming of silence on the recording.
* @param {string} [opts.callerId] -
* The phone number, SIP address or Client identifier that made this Call. Phone numbers are in E.164 format (e.g. +16175551212). SIP addresses are formatted as `name@company.com`.
* @param {string} [opts.url] - Url from which to fetch TwiML
* @param {string} [opts.applicationSid] -
* ApplicationSid that configures from where to fetch TwiML
Expand Down Expand Up @@ -139,7 +143,9 @@ CallList = function CallList(version, accountSid) {
'SipAuthPassword': _.get(opts, 'sipAuthPassword'),
'MachineDetection': _.get(opts, 'machineDetection'),
'MachineDetectionTimeout': _.get(opts, 'machineDetectionTimeout'),
'RecordingStatusCallbackEvent': serialize.map(_.get(opts, 'recordingStatusCallbackEvent'), function(e) { return e; })
'RecordingStatusCallbackEvent': serialize.map(_.get(opts, 'recordingStatusCallbackEvent'), function(e) { return e; }),
'Trim': _.get(opts, 'trim'),
'CallerId': _.get(opts, 'callerId')
});

var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
Expand Down
36 changes: 2 additions & 34 deletions lib/rest/studio/v1/flow/engagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

var Q = require('q'); /* jshint ignore:line */
var _ = require('lodash'); /* jshint ignore:line */
var EngagementContextList = require(
'./engagement/engagementContext').EngagementContextList;
var Page = require('../../../../base/Page'); /* jshint ignore:line */
var StepList = require('./engagement/step').StepList;
var deserialize = require(
Expand Down Expand Up @@ -424,6 +422,7 @@ EngagementPage.prototype.getInstance = function getInstance(payload) {
* @property {string} contactSid - The contact_sid
* @property {string} contactChannelAddress - The contact_channel_address
* @property {engagement.status} status - The status
* @property {string} context - The context
* @property {Date} dateCreated - The date_created
* @property {Date} dateUpdated - The date_updated
* @property {string} url - The url
Expand All @@ -446,6 +445,7 @@ EngagementInstance = function EngagementInstance(version, payload, flowSid, sid)
this.contactSid = payload.contact_sid; // jshint ignore:line
this.contactChannelAddress = payload.contact_channel_address; // jshint ignore:line
this.status = payload.status; // jshint ignore:line
this.context = payload.context; // jshint ignore:line
this.dateCreated = deserialize.iso8601DateTime(payload.date_created); // jshint ignore:line
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated); // jshint ignore:line
this.url = payload.url; // jshint ignore:line
Expand Down Expand Up @@ -499,21 +499,6 @@ EngagementInstance.prototype.steps = function steps() {
return this._proxy.steps;
};

/* jshint ignore:start */
/**
* Access the engagementContext
*
* @function engagementContext
* @memberof Twilio.Studio.V1.FlowContext.EngagementInstance
* @instance
*
* @returns {Twilio.Studio.V1.FlowContext.EngagementContext.EngagementContextList}
*/
/* jshint ignore:end */
EngagementInstance.prototype.engagementContext = function engagementContext() {
return this._proxy.engagementContext;
};

/* jshint ignore:start */
/**
* Produce a plain JSON object version of the EngagementInstance for serialization.
Expand Down Expand Up @@ -545,8 +530,6 @@ EngagementInstance.prototype.toJSON = function toJSON() {
*
* @property {Twilio.Studio.V1.FlowContext.EngagementContext.StepList} steps -
* steps resource
* @property {Twilio.Studio.V1.FlowContext.EngagementContext.EngagementContextList} engagementContext -
* engagementContext resource
*
* @param {Twilio.Studio.V1} version - Version of the resource
* @param {sid} flowSid - The flow_sid
Expand All @@ -564,7 +547,6 @@ EngagementContext = function EngagementContext(version, flowSid, sid) {

// Dependents
this._steps = undefined;
this._engagementContext = undefined;
};

/* jshint ignore:start */
Expand Down Expand Up @@ -614,20 +596,6 @@ Object.defineProperty(EngagementContext.prototype,
}
});

Object.defineProperty(EngagementContext.prototype,
'engagementContext', {
get: function() {
if (!this._engagementContext) {
this._engagementContext = new EngagementContextList(
this._version,
this._solution.flowSid,
this._solution.sid
);
}
return this._engagementContext;
}
});

module.exports = {
EngagementList: EngagementList,
EngagementPage: EngagementPage,
Expand Down
Loading

0 comments on commit e3b51c7

Please sign in to comment.