Skip to content

Commit

Permalink
[Librarian] Regenerated @ 67f0061dba0c2c6cfbc5b7453ecbac54443bacbf
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Black committed Jul 13, 2017
1 parent 216fc2b commit 1849fe7
Show file tree
Hide file tree
Showing 53 changed files with 564 additions and 387 deletions.
21 changes: 21 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
twilio-node changelog
=====================

[2017-07-13] Version 3.5.0
---------------------------
**Api**
- Update `AnnounceMethod` parameter naming for consistency

**Notify**
- Add `ToBinding` optional parameter on Notifications resource creation. Accepted values are json strings.

**Preview**
- Add `verification_attempts` to HostedNumberOrders.
- Add `status_callback_url` and `status_callback_method` to HostedNumberOrders.

**Video**
- Filter recordings by date using the parameters `DateCreatedAfter` and `DateCreatedBefore`.
- Override the default time-to-live of a recording's media URL through the `Ttl` parameter (in seconds, default value is 3600).
- Add query parameters `SourceSid`, `Status`, `DateCreatedAfter` and `DateCreatedBefore` to the convenience method for retrieving Room recordings.

**Wireless**
- Added national and international data limits to the RatePlans resource.


[2017-06-16] Version 3.4.0
--------------------------

Expand Down
15 changes: 8 additions & 7 deletions lib/rest/api/v2010/account/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var DependentPhoneNumberList = require(
var Page = require('../../../../base/Page'); /* jshint ignore:line */
var deserialize = require(
'../../../../base/deserialize'); /* jshint ignore:line */
var serialize = require('../../../../base/serialize'); /* jshint ignore:line */
var values = require('../../../../base/values'); /* jshint ignore:line */

var AddressList;
Expand Down Expand Up @@ -63,7 +64,7 @@ AddressList = function AddressList(version, accountSid) {
* @param {string} opts.postalCode - The postal_code
* @param {string} opts.isoCountry - The iso_country
* @param {string} [opts.friendlyName] - The friendly_name
* @param {string} [opts.emergencyEnabled] - The emergency_enabled
* @param {boolean} [opts.emergencyEnabled] - The emergency_enabled
* @param {function} [callback] - Callback to handle processed record
*
* @returns {Promise} Resolves to processed AddressInstance
Expand Down Expand Up @@ -101,7 +102,7 @@ AddressList = function AddressList(version, accountSid) {
'PostalCode': _.get(opts, 'postalCode'),
'IsoCountry': _.get(opts, 'isoCountry'),
'FriendlyName': _.get(opts, 'friendlyName'),
'EmergencyEnabled': _.get(opts, 'emergencyEnabled')
'EmergencyEnabled': serialize.bool(_.get(opts, 'emergencyEnabled'))
});

var promise = this._version.create({
Expand Down Expand Up @@ -487,8 +488,8 @@ AddressPage.prototype.getInstance = function getInstance(payload) {
* @property {string} sid - The sid
* @property {string} street - The street
* @property {string} uri - The uri
* @property {string} emergencyEnabled - The emergency_enabled
* @property {string} validated - The validated
* @property {boolean} emergencyEnabled - The emergency_enabled
* @property {boolean} validated - The validated
*
* @param {Twilio.Api.V2010} version - Version of the resource
* @param {object} payload - The instance payload
Expand Down Expand Up @@ -587,7 +588,7 @@ AddressInstance.prototype.fetch = function fetch(callback) {
* @param {string} [opts.city] - The city
* @param {string} [opts.region] - The region
* @param {string} [opts.postalCode] - The postal_code
* @param {string} [opts.emergencyEnabled] - The emergency_enabled
* @param {boolean} [opts.emergencyEnabled] - The emergency_enabled
* @param {function} [callback] - Callback to handle processed record
*
* @returns {Promise} Resolves to processed AddressInstance
Expand Down Expand Up @@ -733,7 +734,7 @@ AddressContext.prototype.fetch = function fetch(callback) {
* @param {string} [opts.city] - The city
* @param {string} [opts.region] - The region
* @param {string} [opts.postalCode] - The postal_code
* @param {string} [opts.emergencyEnabled] - The emergency_enabled
* @param {boolean} [opts.emergencyEnabled] - The emergency_enabled
* @param {function} [callback] - Callback to handle processed record
*
* @returns {Promise} Resolves to processed AddressInstance
Expand All @@ -754,7 +755,7 @@ AddressContext.prototype.update = function update(opts, callback) {
'City': _.get(opts, 'city'),
'Region': _.get(opts, 'region'),
'PostalCode': _.get(opts, 'postalCode'),
'EmergencyEnabled': _.get(opts, 'emergencyEnabled')
'EmergencyEnabled': serialize.bool(_.get(opts, 'emergencyEnabled'))
});

var promise = this._version.update({
Expand Down
13 changes: 7 additions & 6 deletions lib/rest/api/v2010/account/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var _ = require('lodash'); /* jshint ignore:line */
var Page = require('../../../../base/Page'); /* jshint ignore:line */
var deserialize = require(
'../../../../base/deserialize'); /* jshint ignore:line */
var serialize = require('../../../../base/serialize'); /* jshint ignore:line */
var values = require('../../../../base/values'); /* jshint ignore:line */

var ApplicationList;
Expand Down Expand Up @@ -65,7 +66,7 @@ ApplicationList = function ApplicationList(version, accountSid) {
* @param {string} [opts.statusCallback] - URL to hit with status updates
* @param {string} [opts.statusCallbackMethod] -
* HTTP method to use with the status callback
* @param {string} [opts.voiceCallerIdLookup] - True or False
* @param {boolean} [opts.voiceCallerIdLookup] - True or False
* @param {string} [opts.smsUrl] - URL Twilio will request when receiving an SMS
* @param {string} [opts.smsMethod] - HTTP method to use with sms_url
* @param {string} [opts.smsFallbackUrl] -
Expand Down Expand Up @@ -99,7 +100,7 @@ ApplicationList = function ApplicationList(version, accountSid) {
'VoiceFallbackMethod': _.get(opts, 'voiceFallbackMethod'),
'StatusCallback': _.get(opts, 'statusCallback'),
'StatusCallbackMethod': _.get(opts, 'statusCallbackMethod'),
'VoiceCallerIdLookup': _.get(opts, 'voiceCallerIdLookup'),
'VoiceCallerIdLookup': serialize.bool(_.get(opts, 'voiceCallerIdLookup')),
'SmsUrl': _.get(opts, 'smsUrl'),
'SmsMethod': _.get(opts, 'smsMethod'),
'SmsFallbackUrl': _.get(opts, 'smsFallbackUrl'),
Expand Down Expand Up @@ -489,7 +490,7 @@ ApplicationPage.prototype.getInstance = function getInstance(payload) {
* @property {string} statusCallbackMethod -
* HTTP method to use with the status callback
* @property {string} uri - URI for this resource
* @property {string} voiceCallerIdLookup - True or False
* @property {boolean} voiceCallerIdLookup - True or False
* @property {string} voiceFallbackMethod -
* HTTP method to use with the fallback url
* @property {string} voiceFallbackUrl - Fallback URL
Expand Down Expand Up @@ -607,7 +608,7 @@ ApplicationInstance.prototype.fetch = function fetch(callback) {
* @param {string} [opts.statusCallback] - URL to hit with status updates
* @param {string} [opts.statusCallbackMethod] -
* HTTP method to use with the status callback
* @param {string} [opts.voiceCallerIdLookup] - True or False
* @param {boolean} [opts.voiceCallerIdLookup] - True or False
* @param {string} [opts.smsUrl] - URL Twilio will request when receiving an SMS
* @param {string} [opts.smsMethod] - HTTP method to use with sms_url
* @param {string} [opts.smsFallbackUrl] -
Expand Down Expand Up @@ -747,7 +748,7 @@ ApplicationContext.prototype.fetch = function fetch(callback) {
* @param {string} [opts.statusCallback] - URL to hit with status updates
* @param {string} [opts.statusCallbackMethod] -
* HTTP method to use with the status callback
* @param {string} [opts.voiceCallerIdLookup] - True or False
* @param {boolean} [opts.voiceCallerIdLookup] - True or False
* @param {string} [opts.smsUrl] - URL Twilio will request when receiving an SMS
* @param {string} [opts.smsMethod] - HTTP method to use with sms_url
* @param {string} [opts.smsFallbackUrl] -
Expand Down Expand Up @@ -780,7 +781,7 @@ ApplicationContext.prototype.update = function update(opts, callback) {
'VoiceFallbackMethod': _.get(opts, 'voiceFallbackMethod'),
'StatusCallback': _.get(opts, 'statusCallback'),
'StatusCallbackMethod': _.get(opts, 'statusCallbackMethod'),
'VoiceCallerIdLookup': _.get(opts, 'voiceCallerIdLookup'),
'VoiceCallerIdLookup': serialize.bool(_.get(opts, 'voiceCallerIdLookup')),
'SmsUrl': _.get(opts, 'smsUrl'),
'SmsMethod': _.get(opts, 'smsMethod'),
'SmsFallbackUrl': _.get(opts, 'smsFallbackUrl'),
Expand Down
2 changes: 1 addition & 1 deletion lib/rest/api/v2010/account/availablePhoneNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ AvailablePhoneNumberCountryPage.prototype.getInstance = function
* The ISO Country code to lookup phone numbers for.
* @property {string} country - The country
* @property {string} uri - The uri
* @property {string} beta - The beta
* @property {boolean} beta - The beta
* @property {string} subresourceUris - The subresource_uris
*
* @param {Twilio.Api.V2010} version - Version of the resource
Expand Down
74 changes: 38 additions & 36 deletions lib/rest/api/v2010/account/availablePhoneNumber/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ var _ = require('lodash'); /* jshint ignore:line */
var Page = require('../../../../../base/Page'); /* jshint ignore:line */
var deserialize = require(
'../../../../../base/deserialize'); /* jshint ignore:line */
var serialize = require(
'../../../../../base/serialize'); /* jshint ignore:line */
var values = require('../../../../../base/values'); /* jshint ignore:line */

var LocalList;
Expand Down Expand Up @@ -65,16 +67,16 @@ LocalList = function LocalList(version, accountSid, countryCode) {
* @param {object|function} opts - ...
* @param {number} [opts.areaCode] - The area_code
* @param {string} [opts.contains] - The contains
* @param {string} [opts.smsEnabled] - The sms_enabled
* @param {string} [opts.mmsEnabled] - The mms_enabled
* @param {string} [opts.voiceEnabled] - The voice_enabled
* @param {string} [opts.excludeAllAddressRequired] -
* @param {boolean} [opts.smsEnabled] - The sms_enabled
* @param {boolean} [opts.mmsEnabled] - The mms_enabled
* @param {boolean} [opts.voiceEnabled] - The voice_enabled
* @param {boolean} [opts.excludeAllAddressRequired] -
* The exclude_all_address_required
* @param {string} [opts.excludeLocalAddressRequired] -
* @param {boolean} [opts.excludeLocalAddressRequired] -
* The exclude_local_address_required
* @param {string} [opts.excludeForeignAddressRequired] -
* @param {boolean} [opts.excludeForeignAddressRequired] -
* The exclude_foreign_address_required
* @param {string} [opts.beta] - The beta
* @param {boolean} [opts.beta] - The beta
* @param {string} [opts.nearNumber] - The near_number
* @param {string} [opts.nearLatLong] - The near_lat_long
* @param {number} [opts.distance] - The distance
Expand Down Expand Up @@ -173,16 +175,16 @@ LocalList = function LocalList(version, accountSid, countryCode) {
* @param {object|function} opts - ...
* @param {number} [opts.areaCode] - The area_code
* @param {string} [opts.contains] - The contains
* @param {string} [opts.smsEnabled] - The sms_enabled
* @param {string} [opts.mmsEnabled] - The mms_enabled
* @param {string} [opts.voiceEnabled] - The voice_enabled
* @param {string} [opts.excludeAllAddressRequired] -
* @param {boolean} [opts.smsEnabled] - The sms_enabled
* @param {boolean} [opts.mmsEnabled] - The mms_enabled
* @param {boolean} [opts.voiceEnabled] - The voice_enabled
* @param {boolean} [opts.excludeAllAddressRequired] -
* The exclude_all_address_required
* @param {string} [opts.excludeLocalAddressRequired] -
* @param {boolean} [opts.excludeLocalAddressRequired] -
* The exclude_local_address_required
* @param {string} [opts.excludeForeignAddressRequired] -
* @param {boolean} [opts.excludeForeignAddressRequired] -
* The exclude_foreign_address_required
* @param {string} [opts.beta] - The beta
* @param {boolean} [opts.beta] - The beta
* @param {string} [opts.nearNumber] - The near_number
* @param {string} [opts.nearLatLong] - The near_lat_long
* @param {number} [opts.distance] - The distance
Expand Down Expand Up @@ -252,16 +254,16 @@ LocalList = function LocalList(version, accountSid, countryCode) {
* @param {object|function} opts - ...
* @param {number} [opts.areaCode] - The area_code
* @param {string} [opts.contains] - The contains
* @param {string} [opts.smsEnabled] - The sms_enabled
* @param {string} [opts.mmsEnabled] - The mms_enabled
* @param {string} [opts.voiceEnabled] - The voice_enabled
* @param {string} [opts.excludeAllAddressRequired] -
* @param {boolean} [opts.smsEnabled] - The sms_enabled
* @param {boolean} [opts.mmsEnabled] - The mms_enabled
* @param {boolean} [opts.voiceEnabled] - The voice_enabled
* @param {boolean} [opts.excludeAllAddressRequired] -
* The exclude_all_address_required
* @param {string} [opts.excludeLocalAddressRequired] -
* @param {boolean} [opts.excludeLocalAddressRequired] -
* The exclude_local_address_required
* @param {string} [opts.excludeForeignAddressRequired] -
* @param {boolean} [opts.excludeForeignAddressRequired] -
* The exclude_foreign_address_required
* @param {string} [opts.beta] - The beta
* @param {boolean} [opts.beta] - The beta
* @param {string} [opts.nearNumber] - The near_number
* @param {string} [opts.nearLatLong] - The near_lat_long
* @param {number} [opts.distance] - The distance
Expand Down Expand Up @@ -290,13 +292,13 @@ LocalList = function LocalList(version, accountSid, countryCode) {
var data = values.of({
'AreaCode': _.get(opts, 'areaCode'),
'Contains': _.get(opts, 'contains'),
'SmsEnabled': _.get(opts, 'smsEnabled'),
'MmsEnabled': _.get(opts, 'mmsEnabled'),
'VoiceEnabled': _.get(opts, 'voiceEnabled'),
'ExcludeAllAddressRequired': _.get(opts, 'excludeAllAddressRequired'),
'ExcludeLocalAddressRequired': _.get(opts, 'excludeLocalAddressRequired'),
'ExcludeForeignAddressRequired': _.get(opts, 'excludeForeignAddressRequired'),
'Beta': _.get(opts, 'beta'),
'SmsEnabled': serialize.bool(_.get(opts, 'smsEnabled')),
'MmsEnabled': serialize.bool(_.get(opts, 'mmsEnabled')),
'VoiceEnabled': serialize.bool(_.get(opts, 'voiceEnabled')),
'ExcludeAllAddressRequired': serialize.bool(_.get(opts, 'excludeAllAddressRequired')),
'ExcludeLocalAddressRequired': serialize.bool(_.get(opts, 'excludeLocalAddressRequired')),
'ExcludeForeignAddressRequired': serialize.bool(_.get(opts, 'excludeForeignAddressRequired')),
'Beta': serialize.bool(_.get(opts, 'beta')),
'NearNumber': _.get(opts, 'nearNumber'),
'NearLatLong': _.get(opts, 'nearLatLong'),
'Distance': _.get(opts, 'distance'),
Expand Down Expand Up @@ -348,16 +350,16 @@ LocalList = function LocalList(version, accountSid, countryCode) {
*
* @param {number} [opts.areaCode] - The area_code
* @param {string} [opts.contains] - The contains
* @param {string} [opts.smsEnabled] - The sms_enabled
* @param {string} [opts.mmsEnabled] - The mms_enabled
* @param {string} [opts.voiceEnabled] - The voice_enabled
* @param {string} [opts.excludeAllAddressRequired] -
* @param {boolean} [opts.smsEnabled] - The sms_enabled
* @param {boolean} [opts.mmsEnabled] - The mms_enabled
* @param {boolean} [opts.voiceEnabled] - The voice_enabled
* @param {boolean} [opts.excludeAllAddressRequired] -
* The exclude_all_address_required
* @param {string} [opts.excludeLocalAddressRequired] -
* @param {boolean} [opts.excludeLocalAddressRequired] -
* The exclude_local_address_required
* @param {string} [opts.excludeForeignAddressRequired] -
* @param {boolean} [opts.excludeForeignAddressRequired] -
* The exclude_foreign_address_required
* @param {string} [opts.beta] - The beta
* @param {boolean} [opts.beta] - The beta
* @param {string} [opts.nearNumber] - The near_number
* @param {string} [opts.nearLatLong] - The near_lat_long
* @param {number} [opts.distance] - The distance
Expand Down Expand Up @@ -465,7 +467,7 @@ LocalPage.prototype.getInstance = function getInstance(payload) {
* @property {string} postalCode - The postal_code
* @property {string} isoCountry - The iso_country
* @property {string} addressRequirements - The address_requirements
* @property {string} beta - The beta
* @property {boolean} beta - The beta
* @property {string} capabilities - The capabilities
*
* @param {Twilio.Api.V2010} version - Version of the resource
Expand Down
Loading

0 comments on commit 1849fe7

Please sign in to comment.