twilio 3.80.0 → 3.80.1
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/Microvisor.d.ts +28 -0
- package/lib/rest/Microvisor.js +62 -0
- package/lib/rest/Preview.d.ts +0 -6
- package/lib/rest/Preview.js +0 -28
- package/lib/rest/Routes.d.ts +30 -0
- package/lib/rest/Routes.js +71 -0
- package/lib/rest/Twilio.d.ts +4 -0
- package/lib/rest/Twilio.js +28 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +2 -2
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +4 -4
- package/lib/rest/microvisor/V1.d.ts +28 -0
- package/lib/rest/microvisor/V1.js +57 -0
- package/lib/rest/{preview/bulk_exports/export/day.d.ts → microvisor/v1/app.d.ts} +79 -69
- package/lib/rest/{preview/bulk_exports/export/day.js → microvisor/v1/app.js} +160 -122
- package/lib/rest/{preview/bulk_exports/export/exportCustomJob.d.ts → microvisor/v1/device.d.ts} +136 -84
- package/lib/rest/microvisor/v1/device.js +652 -0
- package/lib/rest/routes/V2.d.ts +31 -0
- package/lib/rest/routes/V2.js +69 -0
- package/lib/rest/routes/v2/phoneNumber.d.ts +193 -0
- package/lib/rest/routes/v2/phoneNumber.js +466 -0
- package/lib/rest/routes/v2/sipDomain.d.ts +205 -0
- package/lib/rest/routes/v2/sipDomain.js +447 -0
- package/lib/rest/routes/v2/trunk.d.ts +205 -0
- package/lib/rest/routes/v2/trunk.js +458 -0
- package/lib/rest/supersim/v1/fleet.d.ts +3 -1
- package/lib/rest/supersim/v1/fleet.js +8 -3
- package/package.json +1 -1
- package/lib/rest/preview/BulkExports.d.ts +0 -28
- package/lib/rest/preview/BulkExports.js +0 -59
- package/lib/rest/preview/bulk_exports/export/exportCustomJob.js +0 -540
- package/lib/rest/preview/bulk_exports/export/job.d.ts +0 -163
- package/lib/rest/preview/bulk_exports/export/job.js +0 -390
- package/lib/rest/preview/bulk_exports/export.d.ts +0 -153
- package/lib/rest/preview/bulk_exports/export.js +0 -402
- package/lib/rest/preview/bulk_exports/exportConfiguration.d.ts +0 -180
- package/lib/rest/preview/bulk_exports/exportConfiguration.js +0 -411
|
@@ -1,390 +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 Q = require('q'); /* jshint ignore:line */
|
|
13
|
-
var _ = require('lodash'); /* jshint ignore:line */
|
|
14
|
-
var util = require('util'); /* jshint ignore:line */
|
|
15
|
-
var Page = require('../../../../base/Page'); /* jshint ignore:line */
|
|
16
|
-
var values = require('../../../../base/values'); /* jshint ignore:line */
|
|
17
|
-
|
|
18
|
-
var JobList;
|
|
19
|
-
var JobPage;
|
|
20
|
-
var JobInstance;
|
|
21
|
-
var JobContext;
|
|
22
|
-
|
|
23
|
-
/* jshint ignore:start */
|
|
24
|
-
/**
|
|
25
|
-
* Initialize the JobList
|
|
26
|
-
*
|
|
27
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
28
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
29
|
-
* access, please contact help@twilio.com.
|
|
30
|
-
*
|
|
31
|
-
* @constructor Twilio.Preview.BulkExports.ExportContext.JobList
|
|
32
|
-
*
|
|
33
|
-
* @param {Twilio.Preview.BulkExports} version - Version of the resource
|
|
34
|
-
*/
|
|
35
|
-
/* jshint ignore:end */
|
|
36
|
-
JobList = function JobList(version) {
|
|
37
|
-
/* jshint ignore:start */
|
|
38
|
-
/**
|
|
39
|
-
* @function jobs
|
|
40
|
-
* @memberof Twilio.Preview.BulkExports.ExportContext#
|
|
41
|
-
*
|
|
42
|
-
* @param {string} sid - sid of instance
|
|
43
|
-
*
|
|
44
|
-
* @returns {Twilio.Preview.BulkExports.ExportContext.JobContext}
|
|
45
|
-
*/
|
|
46
|
-
/* jshint ignore:end */
|
|
47
|
-
function JobListInstance(sid) {
|
|
48
|
-
return JobListInstance.get(sid);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
JobListInstance._version = version;
|
|
52
|
-
// Path Solution
|
|
53
|
-
JobListInstance._solution = {};
|
|
54
|
-
/* jshint ignore:start */
|
|
55
|
-
/**
|
|
56
|
-
* Constructs a job
|
|
57
|
-
*
|
|
58
|
-
* @function get
|
|
59
|
-
* @memberof Twilio.Preview.BulkExports.ExportContext.JobList#
|
|
60
|
-
*
|
|
61
|
-
* @param {string} jobSid -
|
|
62
|
-
* The unique string that that we created to identify the Bulk Export job
|
|
63
|
-
*
|
|
64
|
-
* @returns {Twilio.Preview.BulkExports.ExportContext.JobContext}
|
|
65
|
-
*/
|
|
66
|
-
/* jshint ignore:end */
|
|
67
|
-
JobListInstance.get = function get(jobSid) {
|
|
68
|
-
return new JobContext(this._version, jobSid);
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
/* jshint ignore:start */
|
|
72
|
-
/**
|
|
73
|
-
* Provide a user-friendly representation
|
|
74
|
-
*
|
|
75
|
-
* @function toJSON
|
|
76
|
-
* @memberof Twilio.Preview.BulkExports.ExportContext.JobList#
|
|
77
|
-
*
|
|
78
|
-
* @returns Object
|
|
79
|
-
*/
|
|
80
|
-
/* jshint ignore:end */
|
|
81
|
-
JobListInstance.toJSON = function toJSON() {
|
|
82
|
-
return this._solution;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
JobListInstance[util.inspect.custom] = function inspect(depth, options) {
|
|
86
|
-
return util.inspect(this.toJSON(), options);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
return JobListInstance;
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
/* jshint ignore:start */
|
|
94
|
-
/**
|
|
95
|
-
* Initialize the JobPage
|
|
96
|
-
*
|
|
97
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
98
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
99
|
-
* access, please contact help@twilio.com.
|
|
100
|
-
*
|
|
101
|
-
* @constructor Twilio.Preview.BulkExports.ExportContext.JobPage
|
|
102
|
-
*
|
|
103
|
-
* @param {BulkExports} version - Version of the resource
|
|
104
|
-
* @param {Response<string>} response - Response from the API
|
|
105
|
-
* @param {JobSolution} solution - Path solution
|
|
106
|
-
*
|
|
107
|
-
* @returns JobPage
|
|
108
|
-
*/
|
|
109
|
-
/* jshint ignore:end */
|
|
110
|
-
JobPage = function JobPage(version, response, solution) {
|
|
111
|
-
// Path Solution
|
|
112
|
-
this._solution = solution;
|
|
113
|
-
|
|
114
|
-
Page.prototype.constructor.call(this, version, response, this._solution);
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
_.extend(JobPage.prototype, Page.prototype);
|
|
118
|
-
JobPage.prototype.constructor = JobPage;
|
|
119
|
-
|
|
120
|
-
/* jshint ignore:start */
|
|
121
|
-
/**
|
|
122
|
-
* Build an instance of JobInstance
|
|
123
|
-
*
|
|
124
|
-
* @function getInstance
|
|
125
|
-
* @memberof Twilio.Preview.BulkExports.ExportContext.JobPage#
|
|
126
|
-
*
|
|
127
|
-
* @param {JobPayload} payload - Payload response from the API
|
|
128
|
-
*
|
|
129
|
-
* @returns JobInstance
|
|
130
|
-
*/
|
|
131
|
-
/* jshint ignore:end */
|
|
132
|
-
JobPage.prototype.getInstance = function getInstance(payload) {
|
|
133
|
-
return new JobInstance(this._version, payload);
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
/* jshint ignore:start */
|
|
137
|
-
/**
|
|
138
|
-
* Provide a user-friendly representation
|
|
139
|
-
*
|
|
140
|
-
* @function toJSON
|
|
141
|
-
* @memberof Twilio.Preview.BulkExports.ExportContext.JobPage#
|
|
142
|
-
*
|
|
143
|
-
* @returns Object
|
|
144
|
-
*/
|
|
145
|
-
/* jshint ignore:end */
|
|
146
|
-
JobPage.prototype.toJSON = function toJSON() {
|
|
147
|
-
let clone = {};
|
|
148
|
-
_.forOwn(this, function(value, key) {
|
|
149
|
-
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
150
|
-
clone[key] = value;
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
return clone;
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
JobPage.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
157
|
-
return util.inspect(this.toJSON(), options);
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
/* jshint ignore:start */
|
|
162
|
-
/**
|
|
163
|
-
* Initialize the JobContext
|
|
164
|
-
*
|
|
165
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
166
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
167
|
-
* access, please contact help@twilio.com.
|
|
168
|
-
*
|
|
169
|
-
* @constructor Twilio.Preview.BulkExports.ExportContext.JobInstance
|
|
170
|
-
*
|
|
171
|
-
* @property {string} resourceType -
|
|
172
|
-
* The type of communication – Messages, Calls, Conferences, and Participants
|
|
173
|
-
* @property {string} friendlyName -
|
|
174
|
-
* The friendly name specified when creating the job
|
|
175
|
-
* @property {object} details -
|
|
176
|
-
* This is a list of the completed, pending, or errored dates within the export time range, with one entry for each status with more than one day in that status
|
|
177
|
-
* @property {string} startDay -
|
|
178
|
-
* The start time for the export specified when creating the job
|
|
179
|
-
* @property {string} endDay -
|
|
180
|
-
* The end time for the export specified when creating the job
|
|
181
|
-
* @property {string} jobSid - The job_sid returned when the export was created
|
|
182
|
-
* @property {string} webhookUrl - The optional webhook url called on completion
|
|
183
|
-
* @property {string} webhookMethod - This is the method used to call the webhook
|
|
184
|
-
* @property {string} email -
|
|
185
|
-
* The optional email to send the completion notification to
|
|
186
|
-
* @property {string} url - The url
|
|
187
|
-
*
|
|
188
|
-
* @param {BulkExports} version - Version of the resource
|
|
189
|
-
* @param {JobPayload} payload - The instance payload
|
|
190
|
-
* @param {sid} jobSid -
|
|
191
|
-
* The unique string that that we created to identify the Bulk Export job
|
|
192
|
-
*/
|
|
193
|
-
/* jshint ignore:end */
|
|
194
|
-
JobInstance = function JobInstance(version, payload, jobSid) {
|
|
195
|
-
this._version = version;
|
|
196
|
-
|
|
197
|
-
// Marshaled Properties
|
|
198
|
-
this.resourceType = payload.resource_type; // jshint ignore:line
|
|
199
|
-
this.friendlyName = payload.friendly_name; // jshint ignore:line
|
|
200
|
-
this.details = payload.details; // jshint ignore:line
|
|
201
|
-
this.startDay = payload.start_day; // jshint ignore:line
|
|
202
|
-
this.endDay = payload.end_day; // jshint ignore:line
|
|
203
|
-
this.jobSid = payload.job_sid; // jshint ignore:line
|
|
204
|
-
this.webhookUrl = payload.webhook_url; // jshint ignore:line
|
|
205
|
-
this.webhookMethod = payload.webhook_method; // jshint ignore:line
|
|
206
|
-
this.email = payload.email; // jshint ignore:line
|
|
207
|
-
this.url = payload.url; // jshint ignore:line
|
|
208
|
-
|
|
209
|
-
// Context
|
|
210
|
-
this._context = undefined;
|
|
211
|
-
this._solution = {jobSid: jobSid || this.jobSid, };
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
Object.defineProperty(JobInstance.prototype,
|
|
215
|
-
'_proxy', {
|
|
216
|
-
get: function() {
|
|
217
|
-
if (!this._context) {
|
|
218
|
-
this._context = new JobContext(this._version, this._solution.jobSid);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
return this._context;
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
|
|
225
|
-
/* jshint ignore:start */
|
|
226
|
-
/**
|
|
227
|
-
* fetch a JobInstance
|
|
228
|
-
*
|
|
229
|
-
* @function fetch
|
|
230
|
-
* @memberof Twilio.Preview.BulkExports.ExportContext.JobInstance#
|
|
231
|
-
*
|
|
232
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
233
|
-
*
|
|
234
|
-
* @returns {Promise} Resolves to processed JobInstance
|
|
235
|
-
*/
|
|
236
|
-
/* jshint ignore:end */
|
|
237
|
-
JobInstance.prototype.fetch = function fetch(callback) {
|
|
238
|
-
return this._proxy.fetch(callback);
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
/* jshint ignore:start */
|
|
242
|
-
/**
|
|
243
|
-
* remove a JobInstance
|
|
244
|
-
*
|
|
245
|
-
* @function remove
|
|
246
|
-
* @memberof Twilio.Preview.BulkExports.ExportContext.JobInstance#
|
|
247
|
-
*
|
|
248
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
249
|
-
*
|
|
250
|
-
* @returns {Promise} Resolves to processed JobInstance
|
|
251
|
-
*/
|
|
252
|
-
/* jshint ignore:end */
|
|
253
|
-
JobInstance.prototype.remove = function remove(callback) {
|
|
254
|
-
return this._proxy.remove(callback);
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
/* jshint ignore:start */
|
|
258
|
-
/**
|
|
259
|
-
* Provide a user-friendly representation
|
|
260
|
-
*
|
|
261
|
-
* @function toJSON
|
|
262
|
-
* @memberof Twilio.Preview.BulkExports.ExportContext.JobInstance#
|
|
263
|
-
*
|
|
264
|
-
* @returns Object
|
|
265
|
-
*/
|
|
266
|
-
/* jshint ignore:end */
|
|
267
|
-
JobInstance.prototype.toJSON = function toJSON() {
|
|
268
|
-
let clone = {};
|
|
269
|
-
_.forOwn(this, function(value, key) {
|
|
270
|
-
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
271
|
-
clone[key] = value;
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
return clone;
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
JobInstance.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
278
|
-
return util.inspect(this.toJSON(), options);
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
/* jshint ignore:start */
|
|
283
|
-
/**
|
|
284
|
-
* Initialize the JobContext
|
|
285
|
-
*
|
|
286
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
287
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
288
|
-
* access, please contact help@twilio.com.
|
|
289
|
-
*
|
|
290
|
-
* @constructor Twilio.Preview.BulkExports.ExportContext.JobContext
|
|
291
|
-
*
|
|
292
|
-
* @param {BulkExports} version - Version of the resource
|
|
293
|
-
* @param {sid} jobSid -
|
|
294
|
-
* The unique string that that we created to identify the Bulk Export job
|
|
295
|
-
*/
|
|
296
|
-
/* jshint ignore:end */
|
|
297
|
-
JobContext = function JobContext(version, jobSid) {
|
|
298
|
-
this._version = version;
|
|
299
|
-
|
|
300
|
-
// Path Solution
|
|
301
|
-
this._solution = {jobSid: jobSid, };
|
|
302
|
-
this._uri = `/Exports/Jobs/${jobSid}`;
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
/* jshint ignore:start */
|
|
306
|
-
/**
|
|
307
|
-
* fetch a JobInstance
|
|
308
|
-
*
|
|
309
|
-
* @function fetch
|
|
310
|
-
* @memberof Twilio.Preview.BulkExports.ExportContext.JobContext#
|
|
311
|
-
*
|
|
312
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
313
|
-
*
|
|
314
|
-
* @returns {Promise} Resolves to processed JobInstance
|
|
315
|
-
*/
|
|
316
|
-
/* jshint ignore:end */
|
|
317
|
-
JobContext.prototype.fetch = function fetch(callback) {
|
|
318
|
-
var deferred = Q.defer();
|
|
319
|
-
var promise = this._version.fetch({uri: this._uri, method: 'GET'});
|
|
320
|
-
|
|
321
|
-
promise = promise.then(function(payload) {
|
|
322
|
-
deferred.resolve(new JobInstance(this._version, payload, this._solution.jobSid));
|
|
323
|
-
}.bind(this));
|
|
324
|
-
|
|
325
|
-
promise.catch(function(error) {
|
|
326
|
-
deferred.reject(error);
|
|
327
|
-
});
|
|
328
|
-
|
|
329
|
-
if (_.isFunction(callback)) {
|
|
330
|
-
deferred.promise.nodeify(callback);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
return deferred.promise;
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
/* jshint ignore:start */
|
|
337
|
-
/**
|
|
338
|
-
* remove a JobInstance
|
|
339
|
-
*
|
|
340
|
-
* @function remove
|
|
341
|
-
* @memberof Twilio.Preview.BulkExports.ExportContext.JobContext#
|
|
342
|
-
*
|
|
343
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
344
|
-
*
|
|
345
|
-
* @returns {Promise} Resolves to processed JobInstance
|
|
346
|
-
*/
|
|
347
|
-
/* jshint ignore:end */
|
|
348
|
-
JobContext.prototype.remove = function remove(callback) {
|
|
349
|
-
var deferred = Q.defer();
|
|
350
|
-
var promise = this._version.remove({uri: this._uri, method: 'DELETE'});
|
|
351
|
-
|
|
352
|
-
promise = promise.then(function(payload) {
|
|
353
|
-
deferred.resolve(payload);
|
|
354
|
-
}.bind(this));
|
|
355
|
-
|
|
356
|
-
promise.catch(function(error) {
|
|
357
|
-
deferred.reject(error);
|
|
358
|
-
});
|
|
359
|
-
|
|
360
|
-
if (_.isFunction(callback)) {
|
|
361
|
-
deferred.promise.nodeify(callback);
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
return deferred.promise;
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
/* jshint ignore:start */
|
|
368
|
-
/**
|
|
369
|
-
* Provide a user-friendly representation
|
|
370
|
-
*
|
|
371
|
-
* @function toJSON
|
|
372
|
-
* @memberof Twilio.Preview.BulkExports.ExportContext.JobContext#
|
|
373
|
-
*
|
|
374
|
-
* @returns Object
|
|
375
|
-
*/
|
|
376
|
-
/* jshint ignore:end */
|
|
377
|
-
JobContext.prototype.toJSON = function toJSON() {
|
|
378
|
-
return this._solution;
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
JobContext.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
382
|
-
return util.inspect(this.toJSON(), options);
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
module.exports = {
|
|
386
|
-
JobList: JobList,
|
|
387
|
-
JobPage: JobPage,
|
|
388
|
-
JobInstance: JobInstance,
|
|
389
|
-
JobContext: JobContext
|
|
390
|
-
};
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was generated by
|
|
3
|
-
* \ / _ _ _| _ _
|
|
4
|
-
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
-
* / /
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import BulkExports = require('../BulkExports');
|
|
9
|
-
import Page = require('../../../base/Page');
|
|
10
|
-
import Response = require('../../../http/response');
|
|
11
|
-
import { DayList } from './export/day';
|
|
12
|
-
import { DayListInstance } from './export/day';
|
|
13
|
-
import { ExportCustomJobList } from './export/exportCustomJob';
|
|
14
|
-
import { ExportCustomJobListInstance } from './export/exportCustomJob';
|
|
15
|
-
import { JobListInstance } from './export/job';
|
|
16
|
-
import { SerializableClass } from '../../../interfaces';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Initialize the ExportList
|
|
20
|
-
*
|
|
21
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
22
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
23
|
-
* access, please contact help@twilio.com.
|
|
24
|
-
*
|
|
25
|
-
* @param version - Version of the resource
|
|
26
|
-
*/
|
|
27
|
-
declare function ExportList(version: BulkExports): ExportListInstance;
|
|
28
|
-
|
|
29
|
-
interface ExportListInstance {
|
|
30
|
-
/**
|
|
31
|
-
* @param sid - sid of instance
|
|
32
|
-
*/
|
|
33
|
-
(sid: string): ExportContext;
|
|
34
|
-
/**
|
|
35
|
-
* Constructs a export
|
|
36
|
-
*
|
|
37
|
-
* @param resourceType - The type of communication – Messages, Calls, Conferences, and Participants
|
|
38
|
-
*/
|
|
39
|
-
get(resourceType: string): ExportContext;
|
|
40
|
-
jobs?: JobListInstance;
|
|
41
|
-
/**
|
|
42
|
-
* Provide a user-friendly representation
|
|
43
|
-
*/
|
|
44
|
-
toJSON(): any;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface ExportPayload extends ExportResource, Page.TwilioResponsePayload {
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
interface ExportResource {
|
|
51
|
-
links: string;
|
|
52
|
-
resource_type: string;
|
|
53
|
-
url: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
interface ExportSolution {
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
declare class ExportContext {
|
|
61
|
-
/**
|
|
62
|
-
* Initialize the ExportContext
|
|
63
|
-
*
|
|
64
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
65
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
66
|
-
* access, please contact help@twilio.com.
|
|
67
|
-
*
|
|
68
|
-
* @param version - Version of the resource
|
|
69
|
-
* @param resourceType - The type of communication – Messages, Calls, Conferences, and Participants
|
|
70
|
-
*/
|
|
71
|
-
constructor(version: BulkExports, resourceType: string);
|
|
72
|
-
|
|
73
|
-
days: DayListInstance;
|
|
74
|
-
exportCustomJobs: ExportCustomJobListInstance;
|
|
75
|
-
/**
|
|
76
|
-
* fetch a ExportInstance
|
|
77
|
-
*
|
|
78
|
-
* @param callback - Callback to handle processed record
|
|
79
|
-
*/
|
|
80
|
-
fetch(callback?: (error: Error | null, items: ExportInstance) => any): Promise<ExportInstance>;
|
|
81
|
-
/**
|
|
82
|
-
* Provide a user-friendly representation
|
|
83
|
-
*/
|
|
84
|
-
toJSON(): any;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
declare class ExportInstance extends SerializableClass {
|
|
89
|
-
/**
|
|
90
|
-
* Initialize the ExportContext
|
|
91
|
-
*
|
|
92
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
93
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
94
|
-
* access, please contact help@twilio.com.
|
|
95
|
-
*
|
|
96
|
-
* @param version - Version of the resource
|
|
97
|
-
* @param payload - The instance payload
|
|
98
|
-
* @param resourceType - The type of communication – Messages, Calls, Conferences, and Participants
|
|
99
|
-
*/
|
|
100
|
-
constructor(version: BulkExports, payload: ExportPayload, resourceType: string);
|
|
101
|
-
|
|
102
|
-
private _proxy: ExportContext;
|
|
103
|
-
/**
|
|
104
|
-
* Access the days
|
|
105
|
-
*/
|
|
106
|
-
days(): DayListInstance;
|
|
107
|
-
/**
|
|
108
|
-
* Access the exportCustomJobs
|
|
109
|
-
*/
|
|
110
|
-
exportCustomJobs(): ExportCustomJobListInstance;
|
|
111
|
-
/**
|
|
112
|
-
* fetch a ExportInstance
|
|
113
|
-
*
|
|
114
|
-
* @param callback - Callback to handle processed record
|
|
115
|
-
*/
|
|
116
|
-
fetch(callback?: (error: Error | null, items: ExportInstance) => any): Promise<ExportInstance>;
|
|
117
|
-
links: string;
|
|
118
|
-
resourceType: string;
|
|
119
|
-
/**
|
|
120
|
-
* Provide a user-friendly representation
|
|
121
|
-
*/
|
|
122
|
-
toJSON(): any;
|
|
123
|
-
url: string;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
declare class ExportPage extends Page<BulkExports, ExportPayload, ExportResource, ExportInstance> {
|
|
128
|
-
/**
|
|
129
|
-
* Initialize the ExportPage
|
|
130
|
-
*
|
|
131
|
-
* PLEASE NOTE that this class contains preview products that are subject to
|
|
132
|
-
* change. Use them with caution. If you currently do not have developer preview
|
|
133
|
-
* access, please contact help@twilio.com.
|
|
134
|
-
*
|
|
135
|
-
* @param version - Version of the resource
|
|
136
|
-
* @param response - Response from the API
|
|
137
|
-
* @param solution - Path solution
|
|
138
|
-
*/
|
|
139
|
-
constructor(version: BulkExports, response: Response<string>, solution: ExportSolution);
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Build an instance of ExportInstance
|
|
143
|
-
*
|
|
144
|
-
* @param payload - Payload response from the API
|
|
145
|
-
*/
|
|
146
|
-
getInstance(payload: ExportPayload): ExportInstance;
|
|
147
|
-
/**
|
|
148
|
-
* Provide a user-friendly representation
|
|
149
|
-
*/
|
|
150
|
-
toJSON(): any;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export { ExportContext, ExportInstance, ExportList, ExportListInstance, ExportPage, ExportPayload, ExportResource, ExportSolution }
|