twilio 3.77.1 → 3.77.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/rest/Twilio.d.ts +1 -3
- package/lib/rest/Twilio.js +3 -17
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +5 -5
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.js +10 -9
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +8 -8
- package/lib/rest/flexApi/v1/interaction/interactionChannel.js +12 -13
- package/lib/rest/flexApi/v1/interaction.js +2 -1
- package/lib/rest/verify/v2/service/verification.d.ts +3 -1
- package/lib/rest/verify/v2/service/verification.js +3 -0
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
- package/package.json +1 -1
- package/lib/rest/Fax.d.ts +0 -26
- package/lib/rest/Fax.js +0 -54
- package/lib/rest/fax/V1.d.ts +0 -25
- package/lib/rest/fax/V1.js +0 -46
- package/lib/rest/fax/v1/fax/faxMedia.d.ts +0 -310
- package/lib/rest/fax/v1/fax/faxMedia.js +0 -633
- package/lib/rest/fax/v1/fax.d.ts +0 -367
- package/lib/rest/fax/v1/fax.js +0 -700
package/lib/rest/Twilio.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ import Bulkexports = require('./Bulkexports');
|
|
|
12
12
|
import Chat = require('./Chat');
|
|
13
13
|
import Conversations = require('./Conversations');
|
|
14
14
|
import Events = require('./Events');
|
|
15
|
-
import Fax = require('./Fax');
|
|
16
15
|
import FlexApi = require('./FlexApi');
|
|
17
16
|
import FrontlineApi = require('./FrontlineApi');
|
|
18
17
|
import Insights = require('./Insights');
|
|
@@ -64,7 +63,6 @@ declare class Twilio {
|
|
|
64
63
|
connectApps: (typeof Api.prototype.account.connectApps);
|
|
65
64
|
conversations: Conversations;
|
|
66
65
|
events: Events;
|
|
67
|
-
fax: Fax;
|
|
68
66
|
flexApi: FlexApi;
|
|
69
67
|
frontlineApi: FrontlineApi;
|
|
70
68
|
httpClient?: RequestClient;
|
|
@@ -157,7 +155,7 @@ declare namespace Twilio {
|
|
|
157
155
|
* @property edge - Twilio edge to use. Defaults to none
|
|
158
156
|
* @property env - The environment object. Defaults to process.env
|
|
159
157
|
* @property httpClient - The client used for http requests. Defaults to RequestClient
|
|
160
|
-
* @property lazyLoading - Enable lazy loading, loading time will decrease if enabled
|
|
158
|
+
* @property lazyLoading - Enable lazy loading, loading time will decrease if enabled. Defaults to true
|
|
161
159
|
* @property logLevel - Debug logs will be shown. Defaults to none
|
|
162
160
|
* @property region - Twilio region to use. Defaults to us1 if edge defined
|
|
163
161
|
* @property userAgentExtensions - Additions to the user agent string
|
package/lib/rest/Twilio.js
CHANGED
|
@@ -28,7 +28,6 @@ var RestException = require('../base/RestException'); /* jshint ignore:line */
|
|
|
28
28
|
* @property {Twilio.Chat} chat - chat domain
|
|
29
29
|
* @property {Twilio.Conversations} conversations - conversations domain
|
|
30
30
|
* @property {Twilio.Events} events - events domain
|
|
31
|
-
* @property {Twilio.Fax} fax - fax domain
|
|
32
31
|
* @property {Twilio.FlexApi} flexApi - flex_api domain
|
|
33
32
|
* @property {Twilio.FrontlineApi} frontlineApi - frontline_api domain
|
|
34
33
|
* @property {Twilio.Insights} insights - insights domain
|
|
@@ -111,7 +110,7 @@ var RestException = require('../base/RestException'); /* jshint ignore:line */
|
|
|
111
110
|
* @param {string} [opts.region] -
|
|
112
111
|
* Twilio region to use. Defaults to us1 if edge defined
|
|
113
112
|
* @param {boolean} [opts.lazyLoading] -
|
|
114
|
-
* Enable lazy loading, loading time will decrease if enabled
|
|
113
|
+
* Enable lazy loading, loading time will decrease if enabled. Defaults to true
|
|
115
114
|
* @param {string} [opts.logLevel] - Debug logs will be shown. Defaults to none
|
|
116
115
|
* @param {string[]} [opts.userAgentExtensions] -
|
|
117
116
|
* Additions to the user agent string
|
|
@@ -127,7 +126,7 @@ function Twilio(username, password, opts) {
|
|
|
127
126
|
this.password = password || env.TWILIO_AUTH_TOKEN;
|
|
128
127
|
this.accountSid = opts.accountSid || this.username;
|
|
129
128
|
this._httpClient = opts.httpClient;
|
|
130
|
-
if (
|
|
129
|
+
if (opts.lazyLoading == false) {
|
|
131
130
|
this._httpClient = this.httpClient;
|
|
132
131
|
}
|
|
133
132
|
this.edge = opts.edge || env.TWILIO_EDGE;
|
|
@@ -154,7 +153,6 @@ function Twilio(username, password, opts) {
|
|
|
154
153
|
this._chat = undefined;
|
|
155
154
|
this._conversations = undefined;
|
|
156
155
|
this._events = undefined;
|
|
157
|
-
this._fax = undefined;
|
|
158
156
|
this._flexApi = undefined;
|
|
159
157
|
this._frontlineApi = undefined;
|
|
160
158
|
this._insights = undefined;
|
|
@@ -181,14 +179,13 @@ function Twilio(username, password, opts) {
|
|
|
181
179
|
this._supersim = undefined;
|
|
182
180
|
this._bulkexports = undefined;
|
|
183
181
|
|
|
184
|
-
if (
|
|
182
|
+
if (opts.lazyLoading == false) {
|
|
185
183
|
this.accounts;
|
|
186
184
|
this.api;
|
|
187
185
|
this.autopilot;
|
|
188
186
|
this.chat;
|
|
189
187
|
this.conversations;
|
|
190
188
|
this.events;
|
|
191
|
-
this.fax;
|
|
192
189
|
this.flexApi;
|
|
193
190
|
this.frontlineApi;
|
|
194
191
|
this.insights;
|
|
@@ -428,17 +425,6 @@ Object.defineProperty(Twilio.prototype,
|
|
|
428
425
|
}
|
|
429
426
|
});
|
|
430
427
|
|
|
431
|
-
Object.defineProperty(Twilio.prototype,
|
|
432
|
-
'fax', {
|
|
433
|
-
get: function() {
|
|
434
|
-
if (!this._fax) {
|
|
435
|
-
var Fax = require('./Fax'); /* jshint ignore:line */
|
|
436
|
-
this._fax = new Fax(this);
|
|
437
|
-
}
|
|
438
|
-
return this._fax;
|
|
439
|
-
}
|
|
440
|
-
});
|
|
441
|
-
|
|
442
428
|
Object.defineProperty(Twilio.prototype,
|
|
443
429
|
'flexApi', {
|
|
444
430
|
get: function() {
|
|
@@ -18,8 +18,8 @@ type InteractionChannelInviteType = 'taskrouter';
|
|
|
18
18
|
* Initialize the InteractionChannelInviteList
|
|
19
19
|
*
|
|
20
20
|
* @param version - Version of the resource
|
|
21
|
-
* @param interactionSid - The
|
|
22
|
-
* @param channelSid - The
|
|
21
|
+
* @param interactionSid - The Interaction SID for this Channel
|
|
22
|
+
* @param channelSid - The Channel SID for this Invite
|
|
23
23
|
*/
|
|
24
24
|
declare function InteractionChannelInviteList(version: V1, interactionSid: string, channelSid: string): InteractionChannelInviteListInstance;
|
|
25
25
|
|
|
@@ -138,7 +138,7 @@ interface InteractionChannelInviteListInstance {
|
|
|
138
138
|
/**
|
|
139
139
|
* Options to pass to create
|
|
140
140
|
*
|
|
141
|
-
* @property routing - The routing
|
|
141
|
+
* @property routing - The Interaction's routing logic
|
|
142
142
|
*/
|
|
143
143
|
interface InteractionChannelInviteListInstanceCreateOptions {
|
|
144
144
|
routing: object;
|
|
@@ -224,8 +224,8 @@ declare class InteractionChannelInviteInstance extends SerializableClass {
|
|
|
224
224
|
*
|
|
225
225
|
* @param version - Version of the resource
|
|
226
226
|
* @param payload - The instance payload
|
|
227
|
-
* @param interactionSid - The
|
|
228
|
-
* @param channelSid - The
|
|
227
|
+
* @param interactionSid - The Interaction SID for this Channel
|
|
228
|
+
* @param channelSid - The Channel SID for this Invite
|
|
229
229
|
*/
|
|
230
230
|
constructor(version: V1, payload: InteractionChannelInvitePayload, interactionSid: string, channelSid: string);
|
|
231
231
|
|
|
@@ -28,8 +28,8 @@ var InteractionChannelInviteInstance;
|
|
|
28
28
|
* @constructor Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInviteList
|
|
29
29
|
*
|
|
30
30
|
* @param {Twilio.FlexApi.V1} version - Version of the resource
|
|
31
|
-
* @param {string} interactionSid - The
|
|
32
|
-
* @param {string} channelSid - The
|
|
31
|
+
* @param {string} interactionSid - The Interaction SID for this Channel
|
|
32
|
+
* @param {string} channelSid - The Channel SID for this Invite
|
|
33
33
|
*/
|
|
34
34
|
/* jshint ignore:end */
|
|
35
35
|
InteractionChannelInviteList = function InteractionChannelInviteList(version,
|
|
@@ -63,7 +63,7 @@ InteractionChannelInviteList = function InteractionChannelInviteList(version,
|
|
|
63
63
|
* @memberof Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInviteList#
|
|
64
64
|
*
|
|
65
65
|
* @param {object} opts - Options for request
|
|
66
|
-
* @param {object} opts.routing - The routing
|
|
66
|
+
* @param {object} opts.routing - The Interaction's routing logic
|
|
67
67
|
* @param {function} [callback] - Callback to handle processed record
|
|
68
68
|
*
|
|
69
69
|
* @returns {Promise} Resolves to processed InteractionChannelInviteInstance
|
|
@@ -444,16 +444,17 @@ InteractionChannelInvitePage.prototype[util.inspect.custom] = function
|
|
|
444
444
|
*
|
|
445
445
|
* @constructor Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext.InteractionChannelInviteInstance
|
|
446
446
|
*
|
|
447
|
-
* @property {string} sid - The
|
|
448
|
-
* @property {string} interactionSid - The
|
|
449
|
-
* @property {string} channelSid - The
|
|
450
|
-
* @property {object} routing -
|
|
447
|
+
* @property {string} sid - The unique string that identifies the resource
|
|
448
|
+
* @property {string} interactionSid - The Interaction SID for this Channel
|
|
449
|
+
* @property {string} channelSid - The Channel SID for this Invite
|
|
450
|
+
* @property {object} routing -
|
|
451
|
+
* A JSON object representing the routing rules for the Interaction Channel
|
|
451
452
|
* @property {string} url - The url
|
|
452
453
|
*
|
|
453
454
|
* @param {V1} version - Version of the resource
|
|
454
455
|
* @param {InteractionChannelInvitePayload} payload - The instance payload
|
|
455
|
-
* @param {sid} interactionSid - The
|
|
456
|
-
* @param {sid} channelSid - The
|
|
456
|
+
* @param {sid} interactionSid - The Interaction SID for this Channel
|
|
457
|
+
* @param {sid} channelSid - The Channel SID for this Invite
|
|
457
458
|
*/
|
|
458
459
|
/* jshint ignore:end */
|
|
459
460
|
InteractionChannelInviteInstance = function
|
|
@@ -22,15 +22,15 @@ type InteractionChannelType = 'voice'|'sms'|'email'|'web'|'whatsapp'|'chat';
|
|
|
22
22
|
* Initialize the InteractionChannelList
|
|
23
23
|
*
|
|
24
24
|
* @param version - Version of the resource
|
|
25
|
-
* @param interactionSid - The
|
|
25
|
+
* @param interactionSid - The unique string that identifies the resource
|
|
26
26
|
*/
|
|
27
27
|
declare function InteractionChannelList(version: V1, interactionSid: string): InteractionChannelListInstance;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Options to pass to update
|
|
31
31
|
*
|
|
32
|
-
* @property routing - The
|
|
33
|
-
* @property status - The Interaction
|
|
32
|
+
* @property routing - Optional. The state of associated tasks.
|
|
33
|
+
* @property status - Required. The Interaction channels's status
|
|
34
34
|
*/
|
|
35
35
|
interface InteractionChannelInstanceUpdateOptions {
|
|
36
36
|
routing?: object;
|
|
@@ -76,7 +76,7 @@ interface InteractionChannelListInstance {
|
|
|
76
76
|
/**
|
|
77
77
|
* Constructs a interaction_channel
|
|
78
78
|
*
|
|
79
|
-
* @param sid - The
|
|
79
|
+
* @param sid - The unique string that identifies the resource
|
|
80
80
|
*/
|
|
81
81
|
get(sid: string): InteractionChannelContext;
|
|
82
82
|
/**
|
|
@@ -230,8 +230,8 @@ declare class InteractionChannelContext {
|
|
|
230
230
|
* Initialize the InteractionChannelContext
|
|
231
231
|
*
|
|
232
232
|
* @param version - Version of the resource
|
|
233
|
-
* @param interactionSid - The
|
|
234
|
-
* @param sid - The
|
|
233
|
+
* @param interactionSid - The unique string that identifies the resource
|
|
234
|
+
* @param sid - The unique string that identifies the resource
|
|
235
235
|
*/
|
|
236
236
|
constructor(version: V1, interactionSid: string, sid: string);
|
|
237
237
|
|
|
@@ -263,8 +263,8 @@ declare class InteractionChannelInstance extends SerializableClass {
|
|
|
263
263
|
*
|
|
264
264
|
* @param version - Version of the resource
|
|
265
265
|
* @param payload - The instance payload
|
|
266
|
-
* @param interactionSid - The
|
|
267
|
-
* @param sid - The
|
|
266
|
+
* @param interactionSid - The unique string that identifies the resource
|
|
267
|
+
* @param sid - The unique string that identifies the resource
|
|
268
268
|
*/
|
|
269
269
|
constructor(version: V1, payload: InteractionChannelPayload, interactionSid: string, sid: string);
|
|
270
270
|
|
|
@@ -32,7 +32,7 @@ var InteractionChannelContext;
|
|
|
32
32
|
* @constructor Twilio.FlexApi.V1.InteractionContext.InteractionChannelList
|
|
33
33
|
*
|
|
34
34
|
* @param {Twilio.FlexApi.V1} version - Version of the resource
|
|
35
|
-
* @param {string} interactionSid - The
|
|
35
|
+
* @param {string} interactionSid - The unique string that identifies the resource
|
|
36
36
|
*/
|
|
37
37
|
/* jshint ignore:end */
|
|
38
38
|
InteractionChannelList = function InteractionChannelList(version,
|
|
@@ -307,7 +307,7 @@ InteractionChannelList = function InteractionChannelList(version,
|
|
|
307
307
|
* @function get
|
|
308
308
|
* @memberof Twilio.FlexApi.V1.InteractionContext.InteractionChannelList#
|
|
309
309
|
*
|
|
310
|
-
* @param {string} sid - The
|
|
310
|
+
* @param {string} sid - The unique string that identifies the resource
|
|
311
311
|
*
|
|
312
312
|
* @returns {Twilio.FlexApi.V1.InteractionContext.InteractionChannelContext}
|
|
313
313
|
*/
|
|
@@ -412,15 +412,16 @@ InteractionChannelPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
412
412
|
* @constructor Twilio.FlexApi.V1.InteractionContext.InteractionChannelInstance
|
|
413
413
|
*
|
|
414
414
|
* @property {string} sid - The unique string that identifies the resource
|
|
415
|
-
* @property {string} interactionSid -
|
|
415
|
+
* @property {string} interactionSid -
|
|
416
|
+
* The unique string that identifies the resource
|
|
416
417
|
* @property {interaction_channel.type} type - The Interaction Channel's type.
|
|
417
418
|
* @property {string} url - The url
|
|
418
419
|
* @property {string} links - The links
|
|
419
420
|
*
|
|
420
421
|
* @param {V1} version - Version of the resource
|
|
421
422
|
* @param {InteractionChannelPayload} payload - The instance payload
|
|
422
|
-
* @param {sid} interactionSid - The
|
|
423
|
-
* @param {sid} sid - The
|
|
423
|
+
* @param {sid} interactionSid - The unique string that identifies the resource
|
|
424
|
+
* @param {sid} sid - The unique string that identifies the resource
|
|
424
425
|
*/
|
|
425
426
|
/* jshint ignore:end */
|
|
426
427
|
InteractionChannelInstance = function InteractionChannelInstance(version,
|
|
@@ -479,9 +480,8 @@ InteractionChannelInstance.prototype.fetch = function fetch(callback) {
|
|
|
479
480
|
*
|
|
480
481
|
* @param {object} opts - Options for request
|
|
481
482
|
* @param {interaction_channel.status} opts.status -
|
|
482
|
-
* The Interaction
|
|
483
|
-
* @param {object} [opts.routing] -
|
|
484
|
-
* The Interaction Channels's optional routing parameters
|
|
483
|
+
* Required. The Interaction channels's status
|
|
484
|
+
* @param {object} [opts.routing] - Optional. The state of associated tasks.
|
|
485
485
|
* @param {function} [callback] - Callback to handle processed record
|
|
486
486
|
*
|
|
487
487
|
* @returns {Promise} Resolves to processed InteractionChannelInstance
|
|
@@ -557,8 +557,8 @@ InteractionChannelInstance.prototype[util.inspect.custom] = function
|
|
|
557
557
|
* participants resource
|
|
558
558
|
*
|
|
559
559
|
* @param {V1} version - Version of the resource
|
|
560
|
-
* @param {sid} interactionSid - The
|
|
561
|
-
* @param {sid} sid - The
|
|
560
|
+
* @param {sid} interactionSid - The unique string that identifies the resource
|
|
561
|
+
* @param {sid} sid - The unique string that identifies the resource
|
|
562
562
|
*/
|
|
563
563
|
/* jshint ignore:end */
|
|
564
564
|
InteractionChannelContext = function InteractionChannelContext(version,
|
|
@@ -619,9 +619,8 @@ InteractionChannelContext.prototype.fetch = function fetch(callback) {
|
|
|
619
619
|
*
|
|
620
620
|
* @param {object} opts - Options for request
|
|
621
621
|
* @param {interaction_channel.status} opts.status -
|
|
622
|
-
* The Interaction
|
|
623
|
-
* @param {object} [opts.routing] -
|
|
624
|
-
* The Interaction Channels's optional routing parameters
|
|
622
|
+
* Required. The Interaction channels's status
|
|
623
|
+
* @param {object} [opts.routing] - Optional. The state of associated tasks.
|
|
625
624
|
* @param {function} [callback] - Callback to handle processed record
|
|
626
625
|
*
|
|
627
626
|
* @returns {Promise} Resolves to processed InteractionChannelInstance
|
|
@@ -212,7 +212,8 @@ InteractionPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
212
212
|
*
|
|
213
213
|
* @property {string} sid - The unique string that identifies the resource
|
|
214
214
|
* @property {object} channel - The Interaction's channel
|
|
215
|
-
* @property {object} routing -
|
|
215
|
+
* @property {object} routing -
|
|
216
|
+
* A JSON Object representing the routing rules for the Interaction Channel
|
|
216
217
|
* @property {string} url - The url
|
|
217
218
|
* @property {string} links - The links
|
|
218
219
|
*
|
|
@@ -10,7 +10,7 @@ import Response = require('../../../../http/response');
|
|
|
10
10
|
import V2 = require('../../V2');
|
|
11
11
|
import { SerializableClass } from '../../../../interfaces';
|
|
12
12
|
|
|
13
|
-
type VerificationChannel = 'sms'|'call'|'email'|'whatsapp'|'
|
|
13
|
+
type VerificationChannel = 'sms'|'call'|'email'|'whatsapp'|'sna';
|
|
14
14
|
|
|
15
15
|
type VerificationStatus = 'canceled'|'approved';
|
|
16
16
|
|
|
@@ -104,6 +104,7 @@ interface VerificationResource {
|
|
|
104
104
|
send_code_attempts: object[];
|
|
105
105
|
service_sid: string;
|
|
106
106
|
sid: string;
|
|
107
|
+
sna: object;
|
|
107
108
|
status: string;
|
|
108
109
|
to: string;
|
|
109
110
|
url: string;
|
|
@@ -173,6 +174,7 @@ declare class VerificationInstance extends SerializableClass {
|
|
|
173
174
|
sendCodeAttempts: object[];
|
|
174
175
|
serviceSid: string;
|
|
175
176
|
sid: string;
|
|
177
|
+
sna: any;
|
|
176
178
|
status: string;
|
|
177
179
|
to: string;
|
|
178
180
|
/**
|
|
@@ -268,6 +268,8 @@ VerificationPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
268
268
|
* The RFC 2822 date and time in GMT when the resource was created
|
|
269
269
|
* @property {Date} dateUpdated -
|
|
270
270
|
* The RFC 2822 date and time in GMT when the resource was last updated
|
|
271
|
+
* @property {object} sna -
|
|
272
|
+
* The set of fields used for a silent network auth (`sna`) verification
|
|
271
273
|
* @property {string} url - The absolute URL of the Verification resource
|
|
272
274
|
*
|
|
273
275
|
* @param {V2} version - Version of the resource
|
|
@@ -295,6 +297,7 @@ VerificationInstance = function VerificationInstance(version, payload,
|
|
|
295
297
|
this.sendCodeAttempts = payload.send_code_attempts; // jshint ignore:line
|
|
296
298
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created); // jshint ignore:line
|
|
297
299
|
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated); // jshint ignore:line
|
|
300
|
+
this.sna = payload.sna; // jshint ignore:line
|
|
298
301
|
this.url = payload.url; // jshint ignore:line
|
|
299
302
|
|
|
300
303
|
// Context
|
|
@@ -10,7 +10,7 @@ import Response = require('../../../../http/response');
|
|
|
10
10
|
import V2 = require('../../V2');
|
|
11
11
|
import { SerializableClass } from '../../../../interfaces';
|
|
12
12
|
|
|
13
|
-
type VerificationCheckChannel = 'sms'|'call'|'email'|'whatsapp'|'
|
|
13
|
+
type VerificationCheckChannel = 'sms'|'call'|'email'|'whatsapp'|'sna';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Initialize the VerificationCheckList
|
package/package.json
CHANGED
package/lib/rest/Fax.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by
|
|
3
|
-
* \ / _ _ _| _ _
|
|
4
|
-
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
-
* / /
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import Domain = require('../base/Domain');
|
|
9
|
-
import Twilio = require('./Twilio');
|
|
10
|
-
import V1 = require('./fax/V1');
|
|
11
|
-
import { FaxListInstance } from './fax/v1/fax';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
declare class Fax extends Domain {
|
|
15
|
-
/**
|
|
16
|
-
* Initialize fax domain
|
|
17
|
-
*
|
|
18
|
-
* @param twilio - The twilio client
|
|
19
|
-
*/
|
|
20
|
-
constructor(twilio: Twilio);
|
|
21
|
-
|
|
22
|
-
readonly faxes: FaxListInstance;
|
|
23
|
-
readonly v1: V1;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export = Fax;
|
package/lib/rest/Fax.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/* jshint ignore:start */
|
|
4
|
-
/**
|
|
5
|
-
* This code was generated by
|
|
6
|
-
* \ / _ _ _| _ _
|
|
7
|
-
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
8
|
-
* / /
|
|
9
|
-
*/
|
|
10
|
-
/* jshint ignore:end */
|
|
11
|
-
|
|
12
|
-
var _ = require('lodash'); /* jshint ignore:line */
|
|
13
|
-
var Domain = require('../base/Domain'); /* jshint ignore:line */
|
|
14
|
-
var V1 = require('./fax/V1'); /* jshint ignore:line */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/* jshint ignore:start */
|
|
18
|
-
/**
|
|
19
|
-
* Initialize fax domain
|
|
20
|
-
*
|
|
21
|
-
* @constructor Twilio.Fax
|
|
22
|
-
*
|
|
23
|
-
* @property {Twilio.Fax.V1} v1 - v1 version
|
|
24
|
-
* @property {Twilio.Fax.V1.FaxList} faxes - faxes resource
|
|
25
|
-
*
|
|
26
|
-
* @param {Twilio} twilio - The twilio client
|
|
27
|
-
*/
|
|
28
|
-
/* jshint ignore:end */
|
|
29
|
-
function Fax(twilio) {
|
|
30
|
-
Domain.prototype.constructor.call(this, twilio, 'https://fax.twilio.com');
|
|
31
|
-
|
|
32
|
-
// Versions
|
|
33
|
-
this._v1 = undefined;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
_.extend(Fax.prototype, Domain.prototype);
|
|
37
|
-
Fax.prototype.constructor = Fax;
|
|
38
|
-
|
|
39
|
-
Object.defineProperty(Fax.prototype,
|
|
40
|
-
'v1', {
|
|
41
|
-
get: function() {
|
|
42
|
-
this._v1 = this._v1 || new V1(this);
|
|
43
|
-
return this._v1;
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
Object.defineProperty(Fax.prototype,
|
|
48
|
-
'faxes', {
|
|
49
|
-
get: function() {
|
|
50
|
-
return this.v1.faxes;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
module.exports = Fax;
|
package/lib/rest/fax/V1.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by
|
|
3
|
-
* \ / _ _ _| _ _
|
|
4
|
-
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
-
* / /
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import Fax = require('../Fax');
|
|
9
|
-
import Version = require('../../base/Version');
|
|
10
|
-
import { FaxList } from './v1/fax';
|
|
11
|
-
import { FaxListInstance } from './v1/fax';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
declare class V1 extends Version {
|
|
15
|
-
/**
|
|
16
|
-
* Initialize the V1 version of Fax
|
|
17
|
-
*
|
|
18
|
-
* @param domain - The twilio domain
|
|
19
|
-
*/
|
|
20
|
-
constructor(domain: Fax);
|
|
21
|
-
|
|
22
|
-
readonly faxes: FaxListInstance;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export = V1;
|
package/lib/rest/fax/V1.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/* jshint ignore:start */
|
|
4
|
-
/**
|
|
5
|
-
* This code was generated by
|
|
6
|
-
* \ / _ _ _| _ _
|
|
7
|
-
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
8
|
-
* / /
|
|
9
|
-
*/
|
|
10
|
-
/* jshint ignore:end */
|
|
11
|
-
|
|
12
|
-
var _ = require('lodash'); /* jshint ignore:line */
|
|
13
|
-
var FaxList = require('./v1/fax').FaxList;
|
|
14
|
-
var Version = require('../../base/Version'); /* jshint ignore:line */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/* jshint ignore:start */
|
|
18
|
-
/**
|
|
19
|
-
* Initialize the V1 version of Fax
|
|
20
|
-
*
|
|
21
|
-
* @constructor Twilio.Fax.V1
|
|
22
|
-
*
|
|
23
|
-
* @property {Twilio.Fax.V1.FaxList} faxes - faxes resource
|
|
24
|
-
*
|
|
25
|
-
* @param {Twilio.Fax} domain - The twilio domain
|
|
26
|
-
*/
|
|
27
|
-
/* jshint ignore:end */
|
|
28
|
-
function V1(domain) {
|
|
29
|
-
Version.prototype.constructor.call(this, domain, 'v1');
|
|
30
|
-
|
|
31
|
-
// Resources
|
|
32
|
-
this._faxes = undefined;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
_.extend(V1.prototype, Version.prototype);
|
|
36
|
-
V1.prototype.constructor = V1;
|
|
37
|
-
|
|
38
|
-
Object.defineProperty(V1.prototype,
|
|
39
|
-
'faxes', {
|
|
40
|
-
get: function() {
|
|
41
|
-
this._faxes = this._faxes || new FaxList(this);
|
|
42
|
-
return this._faxes;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
module.exports = V1;
|