Skip to content

Commit

Permalink
[Librarian] Regenerated @ 9e369cf9a8faca3a4590250f768d8ce69a65d0e8
Browse files Browse the repository at this point in the history
  • Loading branch information
jmctwilio committed Dec 16, 2017
1 parent c985ac6 commit acbbca1
Show file tree
Hide file tree
Showing 24 changed files with 2,972 additions and 168 deletions.
18 changes: 18 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
twilio-node changelog
=====================

[2017-12-15] Version 3.11.0
----------------------------
**Api**
- Add `voip`, `national`, `shared_cost`, and `machine_to_machine` sub-resources to `/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{IsoCountryCode}/`
- Add programmable video keys

**Preview**
- Add `verification_type` and `verification_document_sid` to HostedNumberOrders.

**Proxy**
- Fixed typo in session status enum value

**Twiml**
- Fix Dial record property incorrectly typed as accepting TrimEnum values when it actually has its own enum of values. *(breaking change)*
- Add `priority` and `timeout` properties to Task TwiML.
- Add support for `recording_status_callback_event` for Dial verb and for Conference


[2017-12-01] Version 3.10.1
----------------------------
**Api**
Expand Down
132 changes: 132 additions & 0 deletions lib/rest/api/v2010/account/availablePhoneNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@
var Q = require('q'); /* jshint ignore:line */
var _ = require('lodash'); /* jshint ignore:line */
var LocalList = require('./availablePhoneNumber/local').LocalList;
var MachineToMachineList = require(
'./availablePhoneNumber/machineToMachine').MachineToMachineList;
var MobileList = require('./availablePhoneNumber/mobile').MobileList;
var NationalList = require('./availablePhoneNumber/national').NationalList;
var Page = require('../../../../base/Page'); /* jshint ignore:line */
var SharedCostList = require(
'./availablePhoneNumber/sharedCost').SharedCostList;
var TollFreeList = require('./availablePhoneNumber/tollFree').TollFreeList;
var VoipList = require('./availablePhoneNumber/voip').VoipList;
var values = require('../../../../base/values'); /* jshint ignore:line */

var AvailablePhoneNumberCountryList;
Expand Down Expand Up @@ -468,6 +474,68 @@ AvailablePhoneNumberCountryInstance.prototype.mobile = function mobile() {
return this._proxy.mobile;
};

/* jshint ignore:start */
/**
* Access the national
*
* @function national
* @memberof Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryInstance
* @instance
*
* @returns {Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryContext.NationalList}
*/
/* jshint ignore:end */
AvailablePhoneNumberCountryInstance.prototype.national = function national() {
return this._proxy.national;
};

/* jshint ignore:start */
/**
* Access the voip
*
* @function voip
* @memberof Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryInstance
* @instance
*
* @returns {Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryContext.VoipList}
*/
/* jshint ignore:end */
AvailablePhoneNumberCountryInstance.prototype.voip = function voip() {
return this._proxy.voip;
};

/* jshint ignore:start */
/**
* Access the sharedCost
*
* @function sharedCost
* @memberof Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryInstance
* @instance
*
* @returns {Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryContext.SharedCostList}
*/
/* jshint ignore:end */
AvailablePhoneNumberCountryInstance.prototype.sharedCost = function sharedCost()
{
return this._proxy.sharedCost;
};

/* jshint ignore:start */
/**
* Access the machineToMachine
*
* @function machineToMachine
* @memberof Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryInstance
* @instance
*
* @returns {Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryContext.MachineToMachineList}
*/
/* jshint ignore:end */
AvailablePhoneNumberCountryInstance.prototype.machineToMachine = function
machineToMachine() {
return this._proxy.machineToMachine;
};


/* jshint ignore:start */
/**
Expand All @@ -480,6 +548,14 @@ AvailablePhoneNumberCountryInstance.prototype.mobile = function mobile() {
* tollFree resource
* @property {Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryContext.MobileList} mobile -
* mobile resource
* @property {Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryContext.NationalList} national -
* national resource
* @property {Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryContext.VoipList} voip -
* voip resource
* @property {Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryContext.SharedCostList} sharedCost -
* sharedCost resource
* @property {Twilio.Api.V2010.AccountContext.AvailablePhoneNumberCountryContext.MachineToMachineList} machineToMachine -
* machineToMachine resource
*
* @param {Twilio.Api.V2010} version - Version of the resource
* @param {sid} accountSid - The account_sid
Expand All @@ -500,6 +576,10 @@ AvailablePhoneNumberCountryContext = function
this._local = undefined;
this._tollFree = undefined;
this._mobile = undefined;
this._national = undefined;
this._voip = undefined;
this._sharedCost = undefined;
this._machineToMachine = undefined;
};

/* jshint ignore:start */
Expand Down Expand Up @@ -573,6 +653,58 @@ Object.defineProperty(AvailablePhoneNumberCountryContext.prototype,
}
});

Object.defineProperty(AvailablePhoneNumberCountryContext.prototype,
'national', {
get: function() {
if (!this._national) {
this._national = new NationalList(
this._version,
this._solution.accountSid,
this._solution.countryCode
);
}
return this._national;
}
});

Object.defineProperty(AvailablePhoneNumberCountryContext.prototype,
'voip', {
get: function() {
if (!this._voip) {
this._voip = new VoipList(this._version, this._solution.accountSid, this._solution.countryCode);
}
return this._voip;
}
});

Object.defineProperty(AvailablePhoneNumberCountryContext.prototype,
'sharedCost', {
get: function() {
if (!this._sharedCost) {
this._sharedCost = new SharedCostList(
this._version,
this._solution.accountSid,
this._solution.countryCode
);
}
return this._sharedCost;
}
});

Object.defineProperty(AvailablePhoneNumberCountryContext.prototype,
'machineToMachine', {
get: function() {
if (!this._machineToMachine) {
this._machineToMachine = new MachineToMachineList(
this._version,
this._solution.accountSid,
this._solution.countryCode
);
}
return this._machineToMachine;
}
});

module.exports = {
AvailablePhoneNumberCountryList: AvailablePhoneNumberCountryList,
AvailablePhoneNumberCountryPage: AvailablePhoneNumberCountryPage,
Expand Down
Loading

0 comments on commit acbbca1

Please sign in to comment.