Skip to content

Commit cf4e11e

Browse files
author
Doug Black
committed
Regenerate
1 parent f6ec7a7 commit cf4e11e

File tree

170 files changed

+421
-4138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+421
-4138
lines changed

lib/rest/Preview.js

+2-15
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
'use strict';
22

33
var _ = require('lodash'); /* jshint ignore:line */
4-
var Conversations = require(
5-
'./preview/Conversations'); /* jshint ignore:line */
64
var Domain = require('../base/Domain'); /* jshint ignore:line */
75
var Marketplace = require('./preview/Marketplace'); /* jshint ignore:line */
86
var Sync = require('./preview/Sync'); /* jshint ignore:line */
@@ -18,9 +16,7 @@ var Wireless = require('./preview/Wireless'); /* jshint ignore:line */
1816
* @property {Twilio.Preview.Sync} sync - sync version
1917
* @property {Twilio.Preview.Wireless} wireless - wireless version
2018
* @property {Twilio.Preview.Marketplace} marketplace - marketplace version
21-
* @property {Twilio.Preview.Conversations} conversations - conversations version
22-
* @property {Twilio.Preview.Conversations.ServiceList} services -
23-
* services resource
19+
* @property {Twilio.Preview.Sync.ServiceList} services - services resource
2420
* @property {Twilio.Preview.Wireless.CommandList} commands - commands resource
2521
* @property {Twilio.Preview.Wireless.RatePlanList} ratePlans - ratePlans resource
2622
* @property {Twilio.Preview.Wireless.SimList} sims - sims resource
@@ -39,7 +35,6 @@ function Preview(twilio) {
3935
this._sync = undefined;
4036
this._wireless = undefined;
4137
this._marketplace = undefined;
42-
this._conversations = undefined;
4338
}
4439

4540
_.extend(Preview.prototype, Domain.prototype);
@@ -69,18 +64,10 @@ Object.defineProperty(Preview.prototype,
6964
}
7065
});
7166

72-
Object.defineProperty(Preview.prototype,
73-
'conversations', {
74-
get: function() {
75-
this._conversations = this._conversations || new Conversations(this);
76-
return this._conversations;
77-
}
78-
});
79-
8067
Object.defineProperty(Preview.prototype,
8168
'services', {
8269
get: function() {
83-
return this.conversations.services;
70+
return this.sync.services;
8471
}
8572
});
8673

lib/rest/accounts/v1/credential/publicKey.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ PublicKeyList = function PublicKeyList(version) {
132132
promise.catch(onComplete);
133133
}
134134

135-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
135+
fetchNextPage(_.bind(this.page, this, opts));
136136
};
137137

138138
/* jshint ignore:start */

lib/rest/api/v2010/account.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ AccountList = function AccountList(version) {
215215
promise.catch(onComplete);
216216
}
217217

218-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
218+
fetchNextPage(_.bind(this.page, this, opts));
219219
};
220220

221221
/* jshint ignore:start */

lib/rest/api/v2010/account/address.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ AddressList = function AddressList(version, accountSid) {
223223
promise.catch(onComplete);
224224
}
225225

226-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
226+
fetchNextPage(_.bind(this.page, this, opts));
227227
};
228228

229229
/* jshint ignore:start */

lib/rest/api/v2010/account/address/dependentPhoneNumber.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ DependentPhoneNumberList = function DependentPhoneNumberList(version,
137137
promise.catch(onComplete);
138138
}
139139

140-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
140+
fetchNextPage(_.bind(this.page, this, opts));
141141
};
142142

143143
/* jshint ignore:start */

lib/rest/api/v2010/account/application.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ ApplicationList = function ApplicationList(version, accountSid) {
225225
promise.catch(onComplete);
226226
}
227227

228-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
228+
fetchNextPage(_.bind(this.page, this, opts));
229229
};
230230

231231
/* jshint ignore:start */

lib/rest/api/v2010/account/authorizedConnectApp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ AuthorizedConnectAppList = function AuthorizedConnectAppList(version,
136136
promise.catch(onComplete);
137137
}
138138

139-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
139+
fetchNextPage(_.bind(this.page, this, opts));
140140
};
141141

142142
/* jshint ignore:start */

lib/rest/api/v2010/account/availablePhoneNumber.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ AvailablePhoneNumberCountryList = function
138138
promise.catch(onComplete);
139139
}
140140

141-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
141+
fetchNextPage(_.bind(this.page, this, opts));
142142
};
143143

144144
/* jshint ignore:start */

lib/rest/api/v2010/account/availablePhoneNumber/local.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ LocalList = function LocalList(version, accountSid, countryCode) {
156156
promise.catch(onComplete);
157157
}
158158

159-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
159+
fetchNextPage(_.bind(this.page, this, opts));
160160
};
161161

162162
/* jshint ignore:start */

lib/rest/api/v2010/account/availablePhoneNumber/mobile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ MobileList = function MobileList(version, accountSid, countryCode) {
156156
promise.catch(onComplete);
157157
}
158158

159-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
159+
fetchNextPage(_.bind(this.page, this, opts));
160160
};
161161

162162
/* jshint ignore:start */

lib/rest/api/v2010/account/availablePhoneNumber/tollFree.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ TollFreeList = function TollFreeList(version, accountSid, countryCode) {
156156
promise.catch(onComplete);
157157
}
158158

159-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
159+
fetchNextPage(_.bind(this.page, this, opts));
160160
};
161161

162162
/* jshint ignore:start */

lib/rest/api/v2010/account/call.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ CallList = function CallList(version, accountSid) {
259259
promise.catch(onComplete);
260260
}
261261

262-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
262+
fetchNextPage(_.bind(this.page, this, opts));
263263
};
264264

265265
/* jshint ignore:start */

lib/rest/api/v2010/account/call/notification.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ NotificationList = function NotificationList(version, accountSid, callSid) {
143143
promise.catch(onComplete);
144144
}
145145

146-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
146+
fetchNextPage(_.bind(this.page, this, opts));
147147
};
148148

149149
/* jshint ignore:start */

lib/rest/api/v2010/account/call/recording.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ RecordingList = function RecordingList(version, accountSid, callSid) {
142142
promise.catch(onComplete);
143143
}
144144

145-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
145+
fetchNextPage(_.bind(this.page, this, opts));
146146
};
147147

148148
/* jshint ignore:start */

lib/rest/api/v2010/account/conference.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ ConferenceList = function ConferenceList(version, accountSid) {
145145
promise.catch(onComplete);
146146
}
147147

148-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
148+
fetchNextPage(_.bind(this.page, this, opts));
149149
};
150150

151151
/* jshint ignore:start */

lib/rest/api/v2010/account/conference/participant.js

+23-5
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,31 @@ ParticipantList = function ParticipantList(version, accountSid, conferenceSid) {
6565
* @param {number} [opts.timeout] - The timeout
6666
* @param {string} [opts.record] - The record
6767
* @param {string} [opts.muted] - The muted
68-
* @param {participant.beep} [opts.beep] - The beep
68+
* @param {string} [opts.beep] - The beep
6969
* @param {string} [opts.startConferenceOnEnter] - The start_conference_on_enter
7070
* @param {string} [opts.endConferenceOnExit] - The end_conference_on_exit
7171
* @param {string} [opts.waitUrl] - The wait_url
7272
* @param {string} [opts.waitMethod] - The wait_method
7373
* @param {string} [opts.earlyMedia] - The early_media
7474
* @param {number} [opts.maxParticipants] - The max_participants
75-
* @param {participant.conference_record} [opts.conferenceRecord] -
76-
* The conference_record
75+
* @param {string} [opts.conferenceRecord] - The conference_record
7776
* @param {string} [opts.conferenceTrim] - The conference_trim
7877
* @param {string} [opts.conferenceStatusCallback] - The conference_status_callback
7978
* @param {string} [opts.conferenceStatusCallbackMethod] -
8079
* The conference_status_callback_method
8180
* @param {string|list} [opts.conferenceStatusCallbackEvent] -
8281
* The conference_status_callback_event
82+
* @param {string} [opts.recordingChannels] - The recording_channels
83+
* @param {string} [opts.recordingStatusCallback] - The recording_status_callback
84+
* @param {string} [opts.recordingStatusCallbackMethod] -
85+
* The recording_status_callback_method
86+
* @param {string} [opts.sipAuthUsername] - The sip_auth_username
87+
* @param {string} [opts.sipAuthPassword] - The sip_auth_password
88+
* @param {string} [opts.region] - The region
89+
* @param {string} [opts.conferenceRecordingStatusCallback] -
90+
* The conference_recording_status_callback
91+
* @param {string} [opts.conferenceRecordingStatusCallbackMethod] -
92+
* The conference_recording_status_callback_method
8393
* @param {function} [callback] - Callback to handle processed record
8494
*
8595
* @returns {Promise} Resolves to processed ParticipantInstance
@@ -117,7 +127,15 @@ ParticipantList = function ParticipantList(version, accountSid, conferenceSid) {
117127
'ConferenceTrim': _.get(opts, 'conferenceTrim'),
118128
'ConferenceStatusCallback': _.get(opts, 'conferenceStatusCallback'),
119129
'ConferenceStatusCallbackMethod': _.get(opts, 'conferenceStatusCallbackMethod'),
120-
'ConferenceStatusCallbackEvent': _.get(opts, 'conferenceStatusCallbackEvent')
130+
'ConferenceStatusCallbackEvent': _.get(opts, 'conferenceStatusCallbackEvent'),
131+
'RecordingChannels': _.get(opts, 'recordingChannels'),
132+
'RecordingStatusCallback': _.get(opts, 'recordingStatusCallback'),
133+
'RecordingStatusCallbackMethod': _.get(opts, 'recordingStatusCallbackMethod'),
134+
'SipAuthUsername': _.get(opts, 'sipAuthUsername'),
135+
'SipAuthPassword': _.get(opts, 'sipAuthPassword'),
136+
'Region': _.get(opts, 'region'),
137+
'ConferenceRecordingStatusCallback': _.get(opts, 'conferenceRecordingStatusCallback'),
138+
'ConferenceRecordingStatusCallbackMethod': _.get(opts, 'conferenceRecordingStatusCallbackMethod')
121139
});
122140

123141
var promise = this._version.create({
@@ -239,7 +257,7 @@ ParticipantList = function ParticipantList(version, accountSid, conferenceSid) {
239257
promise.catch(onComplete);
240258
}
241259

242-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
260+
fetchNextPage(_.bind(this.page, this, opts));
243261
};
244262

245263
/* jshint ignore:start */

lib/rest/api/v2010/account/connectApp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ ConnectAppList = function ConnectAppList(version, accountSid) {
133133
promise.catch(onComplete);
134134
}
135135

136-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
136+
fetchNextPage(_.bind(this.page, this, opts));
137137
};
138138

139139
/* jshint ignore:start */

lib/rest/api/v2010/account/incomingPhoneNumber.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ IncomingPhoneNumberList = function IncomingPhoneNumberList(version, accountSid)
150150
promise.catch(onComplete);
151151
}
152152

153-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
153+
fetchNextPage(_.bind(this.page, this, opts));
154154
};
155155

156156
/* jshint ignore:start */

lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ AssignedAddOnList = function AssignedAddOnList(version, accountSid, resourceSid)
140140
promise.catch(onComplete);
141141
}
142142

143-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
143+
fetchNextPage(_.bind(this.page, this, opts));
144144
};
145145

146146
/* jshint ignore:start */

lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ AssignedAddOnExtensionList = function AssignedAddOnExtensionList(version,
139139
promise.catch(onComplete);
140140
}
141141

142-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
142+
fetchNextPage(_.bind(this.page, this, opts));
143143
};
144144

145145
/* jshint ignore:start */

lib/rest/api/v2010/account/incomingPhoneNumber/local.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ LocalList = function LocalList(version, accountSid) {
137137
promise.catch(onComplete);
138138
}
139139

140-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
140+
fetchNextPage(_.bind(this.page, this, opts));
141141
};
142142

143143
/* jshint ignore:start */

lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ MobileList = function MobileList(version, accountSid) {
137137
promise.catch(onComplete);
138138
}
139139

140-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
140+
fetchNextPage(_.bind(this.page, this, opts));
141141
};
142142

143143
/* jshint ignore:start */

lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ TollFreeList = function TollFreeList(version, accountSid) {
137137
promise.catch(onComplete);
138138
}
139139

140-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
140+
fetchNextPage(_.bind(this.page, this, opts));
141141
};
142142

143143
/* jshint ignore:start */

lib/rest/api/v2010/account/key.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ KeyList = function KeyList(version, accountSid) {
136136
promise.catch(onComplete);
137137
}
138138

139-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
139+
fetchNextPage(_.bind(this.page, this, opts));
140140
};
141141

142142
/* jshint ignore:start */

lib/rest/api/v2010/account/message.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ MessageList = function MessageList(version, accountSid) {
216216
promise.catch(onComplete);
217217
}
218218

219-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
219+
fetchNextPage(_.bind(this.page, this, opts));
220220
};
221221

222222
/* jshint ignore:start */

lib/rest/api/v2010/account/message/media.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ MediaList = function MediaList(version, accountSid, messageSid) {
142142
promise.catch(onComplete);
143143
}
144144

145-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
145+
fetchNextPage(_.bind(this.page, this, opts));
146146
};
147147

148148
/* jshint ignore:start */

lib/rest/api/v2010/account/notification.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ NotificationList = function NotificationList(version, accountSid) {
140140
promise.catch(onComplete);
141141
}
142142

143-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
143+
fetchNextPage(_.bind(this.page, this, opts));
144144
};
145145

146146
/* jshint ignore:start */

lib/rest/api/v2010/account/outgoingCallerId.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ OutgoingCallerIdList = function OutgoingCallerIdList(version, accountSid) {
137137
promise.catch(onComplete);
138138
}
139139

140-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
140+
fetchNextPage(_.bind(this.page, this, opts));
141141
};
142142

143143
/* jshint ignore:start */

lib/rest/api/v2010/account/queue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ QueueList = function QueueList(version, accountSid) {
136136
promise.catch(onComplete);
137137
}
138138

139-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
139+
fetchNextPage(_.bind(this.page, this, opts));
140140
};
141141

142142
/* jshint ignore:start */

lib/rest/api/v2010/account/queue/member.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ MemberList = function MemberList(version, accountSid, queueSid) {
137137
promise.catch(onComplete);
138138
}
139139

140-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
140+
fetchNextPage(_.bind(this.page, this, opts));
141141
};
142142

143143
/* jshint ignore:start */

lib/rest/api/v2010/account/recording.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ RecordingList = function RecordingList(version, accountSid) {
142142
promise.catch(onComplete);
143143
}
144144

145-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
145+
fetchNextPage(_.bind(this.page, this, opts));
146146
};
147147

148148
/* jshint ignore:start */

lib/rest/api/v2010/account/recording/addOnResult.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ AddOnResultList = function AddOnResultList(version, accountSid, referenceSid) {
138138
promise.catch(onComplete);
139139
}
140140

141-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
141+
fetchNextPage(_.bind(this.page, this, opts));
142142
};
143143

144144
/* jshint ignore:start */

lib/rest/api/v2010/account/recording/addOnResult/payload.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ PayloadList = function PayloadList(version, accountSid, referenceSid,
140140
promise.catch(onComplete);
141141
}
142142

143-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
143+
fetchNextPage(_.bind(this.page, this, opts));
144144
};
145145

146146
/* jshint ignore:start */

lib/rest/api/v2010/account/recording/transcription.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ TranscriptionList = function TranscriptionList(version, accountSid,
138138
promise.catch(onComplete);
139139
}
140140

141-
fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
141+
fetchNextPage(_.bind(this.page, this, opts));
142142
};
143143

144144
/* jshint ignore:start */

0 commit comments

Comments
 (0)