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.
Files changed (36) hide show
  1. package/lib/rest/Microvisor.d.ts +28 -0
  2. package/lib/rest/Microvisor.js +62 -0
  3. package/lib/rest/Preview.d.ts +0 -6
  4. package/lib/rest/Preview.js +0 -28
  5. package/lib/rest/Routes.d.ts +30 -0
  6. package/lib/rest/Routes.js +71 -0
  7. package/lib/rest/Twilio.d.ts +4 -0
  8. package/lib/rest/Twilio.js +28 -0
  9. package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +2 -2
  10. package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +4 -4
  11. package/lib/rest/microvisor/V1.d.ts +28 -0
  12. package/lib/rest/microvisor/V1.js +57 -0
  13. package/lib/rest/{preview/bulk_exports/export/day.d.ts → microvisor/v1/app.d.ts} +79 -69
  14. package/lib/rest/{preview/bulk_exports/export/day.js → microvisor/v1/app.js} +160 -122
  15. package/lib/rest/{preview/bulk_exports/export/exportCustomJob.d.ts → microvisor/v1/device.d.ts} +136 -84
  16. package/lib/rest/microvisor/v1/device.js +652 -0
  17. package/lib/rest/routes/V2.d.ts +31 -0
  18. package/lib/rest/routes/V2.js +69 -0
  19. package/lib/rest/routes/v2/phoneNumber.d.ts +193 -0
  20. package/lib/rest/routes/v2/phoneNumber.js +466 -0
  21. package/lib/rest/routes/v2/sipDomain.d.ts +205 -0
  22. package/lib/rest/routes/v2/sipDomain.js +447 -0
  23. package/lib/rest/routes/v2/trunk.d.ts +205 -0
  24. package/lib/rest/routes/v2/trunk.js +458 -0
  25. package/lib/rest/supersim/v1/fleet.d.ts +3 -1
  26. package/lib/rest/supersim/v1/fleet.js +8 -3
  27. package/package.json +1 -1
  28. package/lib/rest/preview/BulkExports.d.ts +0 -28
  29. package/lib/rest/preview/BulkExports.js +0 -59
  30. package/lib/rest/preview/bulk_exports/export/exportCustomJob.js +0 -540
  31. package/lib/rest/preview/bulk_exports/export/job.d.ts +0 -163
  32. package/lib/rest/preview/bulk_exports/export/job.js +0 -390
  33. package/lib/rest/preview/bulk_exports/export.d.ts +0 -153
  34. package/lib/rest/preview/bulk_exports/export.js +0 -402
  35. package/lib/rest/preview/bulk_exports/exportConfiguration.d.ts +0 -180
  36. package/lib/rest/preview/bulk_exports/exportConfiguration.js +0 -411
@@ -1,540 +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 ExportCustomJobList;
19
- var ExportCustomJobPage;
20
- var ExportCustomJobInstance;
21
-
22
- /* jshint ignore:start */
23
- /**
24
- * Initialize the ExportCustomJobList
25
- *
26
- * PLEASE NOTE that this class contains preview products that are subject to
27
- * change. Use them with caution. If you currently do not have developer preview
28
- * access, please contact help@twilio.com.
29
- *
30
- * @constructor Twilio.Preview.BulkExports.ExportContext.ExportCustomJobList
31
- *
32
- * @param {Twilio.Preview.BulkExports} version - Version of the resource
33
- * @param {string} resourceType -
34
- * The type of communication – Messages, Calls, Conferences, and Participants
35
- */
36
- /* jshint ignore:end */
37
- ExportCustomJobList = function ExportCustomJobList(version, resourceType) {
38
- /* jshint ignore:start */
39
- /**
40
- * @function exportCustomJobs
41
- * @memberof Twilio.Preview.BulkExports.ExportContext#
42
- *
43
- * @param {string} sid - sid of instance
44
- *
45
- * @returns {Twilio.Preview.BulkExports.ExportContext.ExportCustomJobContext}
46
- */
47
- /* jshint ignore:end */
48
- function ExportCustomJobListInstance(sid) {
49
- return ExportCustomJobListInstance.get(sid);
50
- }
51
-
52
- ExportCustomJobListInstance._version = version;
53
- // Path Solution
54
- ExportCustomJobListInstance._solution = {resourceType: resourceType};
55
- ExportCustomJobListInstance._uri = `/Exports/${resourceType}/Jobs`;
56
- /* jshint ignore:start */
57
- /**
58
- * Streams ExportCustomJobInstance records from the API.
59
- *
60
- * This operation lazily loads records as efficiently as possible until the limit
61
- * is reached.
62
- *
63
- * The results are passed into the callback function, so this operation is memory
64
- * efficient.
65
- *
66
- * If a function is passed as the first argument, it will be used as the callback
67
- * function.
68
- *
69
- * @function each
70
- * @memberof Twilio.Preview.BulkExports.ExportContext.ExportCustomJobList#
71
- *
72
- * @param {object} [opts] - Options for request
73
- * @param {number} [opts.limit] -
74
- * Upper limit for the number of records to return.
75
- * each() guarantees never to return more than limit.
76
- * Default is no limit
77
- * @param {number} [opts.pageSize] -
78
- * Number of records to fetch per request,
79
- * when not set will use the default value of 50 records.
80
- * If no pageSize is defined but a limit is defined,
81
- * each() will attempt to read the limit with the most efficient
82
- * page size, i.e. min(limit, 1000)
83
- * @param {Function} [opts.callback] -
84
- * Function to process each record. If this and a positional
85
- * callback are passed, this one will be used
86
- * @param {Function} [opts.done] -
87
- * Function to be called upon completion of streaming
88
- * @param {Function} [callback] - Function to process each record
89
- */
90
- /* jshint ignore:end */
91
- ExportCustomJobListInstance.each = function each(opts, callback) {
92
- if (_.isFunction(opts)) {
93
- callback = opts;
94
- opts = {};
95
- }
96
- opts = opts || {};
97
- if (opts.callback) {
98
- callback = opts.callback;
99
- }
100
- if (_.isUndefined(callback)) {
101
- throw new Error('Callback function must be provided');
102
- }
103
-
104
- var done = false;
105
- var currentPage = 1;
106
- var currentResource = 0;
107
- var limits = this._version.readLimits({
108
- limit: opts.limit,
109
- pageSize: opts.pageSize
110
- });
111
-
112
- function onComplete(error) {
113
- done = true;
114
- if (_.isFunction(opts.done)) {
115
- opts.done(error);
116
- }
117
- }
118
-
119
- function fetchNextPage(fn) {
120
- var promise = fn();
121
- if (_.isUndefined(promise)) {
122
- onComplete();
123
- return;
124
- }
125
-
126
- promise.then(function(page) {
127
- _.each(page.instances, function(instance) {
128
- if (done || (!_.isUndefined(opts.limit) && currentResource >= opts.limit)) {
129
- done = true;
130
- return false;
131
- }
132
-
133
- currentResource++;
134
- callback(instance, onComplete);
135
- });
136
-
137
- if (!done) {
138
- currentPage++;
139
- fetchNextPage(_.bind(page.nextPage, page));
140
- } else {
141
- onComplete();
142
- }
143
- });
144
-
145
- promise.catch(onComplete);
146
- }
147
-
148
- fetchNextPage(_.bind(this.page, this, _.merge(opts, limits)));
149
- };
150
-
151
- /* jshint ignore:start */
152
- /**
153
- * Lists ExportCustomJobInstance records from the API as a list.
154
- *
155
- * If a function is passed as the first argument, it will be used as the callback
156
- * function.
157
- *
158
- * @function list
159
- * @memberof Twilio.Preview.BulkExports.ExportContext.ExportCustomJobList#
160
- *
161
- * @param {object} [opts] - Options for request
162
- * @param {number} [opts.limit] -
163
- * Upper limit for the number of records to return.
164
- * list() guarantees never to return more than limit.
165
- * Default is no limit
166
- * @param {number} [opts.pageSize] -
167
- * Number of records to fetch per request,
168
- * when not set will use the default value of 50 records.
169
- * If no page_size is defined but a limit is defined,
170
- * list() will attempt to read the limit with the most
171
- * efficient page size, i.e. min(limit, 1000)
172
- * @param {function} [callback] - Callback to handle list of records
173
- *
174
- * @returns {Promise} Resolves to a list of records
175
- */
176
- /* jshint ignore:end */
177
- ExportCustomJobListInstance.list = function list(opts, callback) {
178
- if (_.isFunction(opts)) {
179
- callback = opts;
180
- opts = {};
181
- }
182
- opts = opts || {};
183
- var deferred = Q.defer();
184
- var allResources = [];
185
- opts.callback = function(resource, done) {
186
- allResources.push(resource);
187
-
188
- if (!_.isUndefined(opts.limit) && allResources.length === opts.limit) {
189
- done();
190
- }
191
- };
192
-
193
- opts.done = function(error) {
194
- if (_.isUndefined(error)) {
195
- deferred.resolve(allResources);
196
- } else {
197
- deferred.reject(error);
198
- }
199
- };
200
-
201
- if (_.isFunction(callback)) {
202
- deferred.promise.nodeify(callback);
203
- }
204
-
205
- this.each(opts);
206
- return deferred.promise;
207
- };
208
-
209
- /* jshint ignore:start */
210
- /**
211
- * Retrieve a single page of ExportCustomJobInstance records from the API.
212
- *
213
- * The request is executed immediately.
214
- *
215
- * If a function is passed as the first argument, it will be used as the callback
216
- * function.
217
- *
218
- * @function page
219
- * @memberof Twilio.Preview.BulkExports.ExportContext.ExportCustomJobList#
220
- *
221
- * @param {object} [opts] - Options for request
222
- * @param {string} [opts.pageToken] - PageToken provided by the API
223
- * @param {number} [opts.pageNumber] -
224
- * Page Number, this value is simply for client state
225
- * @param {number} [opts.pageSize] - Number of records to return, defaults to 50
226
- * @param {function} [callback] - Callback to handle list of records
227
- *
228
- * @returns {Promise} Resolves to a list of records
229
- */
230
- /* jshint ignore:end */
231
- ExportCustomJobListInstance.page = function page(opts, callback) {
232
- if (_.isFunction(opts)) {
233
- callback = opts;
234
- opts = {};
235
- }
236
- opts = opts || {};
237
-
238
- var deferred = Q.defer();
239
- var data = values.of({
240
- 'PageToken': opts.pageToken,
241
- 'Page': opts.pageNumber,
242
- 'PageSize': opts.pageSize
243
- });
244
-
245
- var promise = this._version.page({uri: this._uri, method: 'GET', params: data});
246
-
247
- promise = promise.then(function(payload) {
248
- deferred.resolve(new ExportCustomJobPage(this._version, payload, this._solution));
249
- }.bind(this));
250
-
251
- promise.catch(function(error) {
252
- deferred.reject(error);
253
- });
254
-
255
- if (_.isFunction(callback)) {
256
- deferred.promise.nodeify(callback);
257
- }
258
-
259
- return deferred.promise;
260
- };
261
-
262
- /* jshint ignore:start */
263
- /**
264
- * Retrieve a single target page of ExportCustomJobInstance records from the API.
265
- *
266
- * The request is executed immediately.
267
- *
268
- * If a function is passed as the first argument, it will be used as the callback
269
- * function.
270
- *
271
- * @function getPage
272
- * @memberof Twilio.Preview.BulkExports.ExportContext.ExportCustomJobList#
273
- *
274
- * @param {string} [targetUrl] - API-generated URL for the requested results page
275
- * @param {function} [callback] - Callback to handle list of records
276
- *
277
- * @returns {Promise} Resolves to a list of records
278
- */
279
- /* jshint ignore:end */
280
- ExportCustomJobListInstance.getPage = function getPage(targetUrl, callback) {
281
- var deferred = Q.defer();
282
-
283
- var promise = this._version._domain.twilio.request({method: 'GET', uri: targetUrl});
284
-
285
- promise = promise.then(function(payload) {
286
- deferred.resolve(new ExportCustomJobPage(this._version, payload, this._solution));
287
- }.bind(this));
288
-
289
- promise.catch(function(error) {
290
- deferred.reject(error);
291
- });
292
-
293
- if (_.isFunction(callback)) {
294
- deferred.promise.nodeify(callback);
295
- }
296
-
297
- return deferred.promise;
298
- };
299
-
300
- /* jshint ignore:start */
301
- /**
302
- * create a ExportCustomJobInstance
303
- *
304
- * @function create
305
- * @memberof Twilio.Preview.BulkExports.ExportContext.ExportCustomJobList#
306
- *
307
- * @param {object} opts - Options for request
308
- * @param {string} opts.startDay -
309
- * The start day for the custom export specified as a string in the format of yyyy-mm-dd
310
- * @param {string} opts.endDay -
311
- * The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day.
312
- * @param {string} opts.friendlyName -
313
- * The friendly name specified when creating the job
314
- * @param {string} [opts.webhookUrl] -
315
- * The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied.
316
- * @param {string} [opts.webhookMethod] -
317
- * This is the method used to call the webhook on completion of the job. If this is supplied, `WebhookUrl` must also be supplied.
318
- * @param {string} [opts.email] -
319
- * The optional email to send the completion notification to
320
- * @param {function} [callback] - Callback to handle processed record
321
- *
322
- * @returns {Promise} Resolves to processed ExportCustomJobInstance
323
- */
324
- /* jshint ignore:end */
325
- ExportCustomJobListInstance.create = function create(opts, callback) {
326
- if (_.isUndefined(opts)) {
327
- throw new Error('Required parameter "opts" missing.');
328
- }
329
- if (_.isUndefined(opts['startDay'])) {
330
- throw new Error('Required parameter "opts[\'startDay\']" missing.');
331
- }
332
- if (_.isUndefined(opts['endDay'])) {
333
- throw new Error('Required parameter "opts[\'endDay\']" missing.');
334
- }
335
- if (_.isUndefined(opts['friendlyName'])) {
336
- throw new Error('Required parameter "opts[\'friendlyName\']" missing.');
337
- }
338
-
339
- var deferred = Q.defer();
340
- var data = values.of({
341
- 'StartDay': _.get(opts, 'startDay'),
342
- 'EndDay': _.get(opts, 'endDay'),
343
- 'FriendlyName': _.get(opts, 'friendlyName'),
344
- 'WebhookUrl': _.get(opts, 'webhookUrl'),
345
- 'WebhookMethod': _.get(opts, 'webhookMethod'),
346
- 'Email': _.get(opts, 'email')
347
- });
348
-
349
- var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
350
-
351
- promise = promise.then(function(payload) {
352
- deferred.resolve(new ExportCustomJobInstance(this._version, payload));
353
- }.bind(this));
354
-
355
- promise.catch(function(error) {
356
- deferred.reject(error);
357
- });
358
-
359
- if (_.isFunction(callback)) {
360
- deferred.promise.nodeify(callback);
361
- }
362
-
363
- return deferred.promise;
364
- };
365
-
366
- /* jshint ignore:start */
367
- /**
368
- * Provide a user-friendly representation
369
- *
370
- * @function toJSON
371
- * @memberof Twilio.Preview.BulkExports.ExportContext.ExportCustomJobList#
372
- *
373
- * @returns Object
374
- */
375
- /* jshint ignore:end */
376
- ExportCustomJobListInstance.toJSON = function toJSON() {
377
- return this._solution;
378
- };
379
-
380
- ExportCustomJobListInstance[util.inspect.custom] = function inspect(depth,
381
- options) {
382
- return util.inspect(this.toJSON(), options);
383
- };
384
-
385
- return ExportCustomJobListInstance;
386
- };
387
-
388
-
389
- /* jshint ignore:start */
390
- /**
391
- * Initialize the ExportCustomJobPage
392
- *
393
- * PLEASE NOTE that this class contains preview products that are subject to
394
- * change. Use them with caution. If you currently do not have developer preview
395
- * access, please contact help@twilio.com.
396
- *
397
- * @constructor Twilio.Preview.BulkExports.ExportContext.ExportCustomJobPage
398
- *
399
- * @param {BulkExports} version - Version of the resource
400
- * @param {Response<string>} response - Response from the API
401
- * @param {ExportCustomJobSolution} solution - Path solution
402
- *
403
- * @returns ExportCustomJobPage
404
- */
405
- /* jshint ignore:end */
406
- ExportCustomJobPage = function ExportCustomJobPage(version, response, solution)
407
- {
408
- // Path Solution
409
- this._solution = solution;
410
-
411
- Page.prototype.constructor.call(this, version, response, this._solution);
412
- };
413
-
414
- _.extend(ExportCustomJobPage.prototype, Page.prototype);
415
- ExportCustomJobPage.prototype.constructor = ExportCustomJobPage;
416
-
417
- /* jshint ignore:start */
418
- /**
419
- * Build an instance of ExportCustomJobInstance
420
- *
421
- * @function getInstance
422
- * @memberof Twilio.Preview.BulkExports.ExportContext.ExportCustomJobPage#
423
- *
424
- * @param {ExportCustomJobPayload} payload - Payload response from the API
425
- *
426
- * @returns ExportCustomJobInstance
427
- */
428
- /* jshint ignore:end */
429
- ExportCustomJobPage.prototype.getInstance = function getInstance(payload) {
430
- return new ExportCustomJobInstance(this._version, payload, this._solution.resourceType);
431
- };
432
-
433
- /* jshint ignore:start */
434
- /**
435
- * Provide a user-friendly representation
436
- *
437
- * @function toJSON
438
- * @memberof Twilio.Preview.BulkExports.ExportContext.ExportCustomJobPage#
439
- *
440
- * @returns Object
441
- */
442
- /* jshint ignore:end */
443
- ExportCustomJobPage.prototype.toJSON = function toJSON() {
444
- let clone = {};
445
- _.forOwn(this, function(value, key) {
446
- if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
447
- clone[key] = value;
448
- }
449
- });
450
- return clone;
451
- };
452
-
453
- ExportCustomJobPage.prototype[util.inspect.custom] = function inspect(depth,
454
- options) {
455
- return util.inspect(this.toJSON(), options);
456
- };
457
-
458
-
459
- /* jshint ignore:start */
460
- /**
461
- * Initialize the ExportCustomJobContext
462
- *
463
- * PLEASE NOTE that this class contains preview products that are subject to
464
- * change. Use them with caution. If you currently do not have developer preview
465
- * access, please contact help@twilio.com.
466
- *
467
- * @constructor Twilio.Preview.BulkExports.ExportContext.ExportCustomJobInstance
468
- *
469
- * @property {string} friendlyName -
470
- * The friendly name specified when creating the job
471
- * @property {string} resourceType -
472
- * The type of communication – Messages, Calls, Conferences, and Participants
473
- * @property {string} startDay -
474
- * The start day for the custom export specified as a string in the format of yyyy-MM-dd
475
- * @property {string} endDay -
476
- * The end day for the custom export specified as a string in the format of yyyy-MM-dd
477
- * @property {string} webhookUrl - The optional webhook url called on completion
478
- * @property {string} webhookMethod - This is the method used to call the webhook
479
- * @property {string} email -
480
- * The optional email to send the completion notification to
481
- * @property {string} jobSid -
482
- * The unique job_sid returned when the custom export was created. This can be used to look up the status of the job.
483
- * @property {object} details - The details
484
- *
485
- * @param {BulkExports} version - Version of the resource
486
- * @param {ExportCustomJobPayload} payload - The instance payload
487
- * @param {string} resourceType -
488
- * The type of communication – Messages, Calls, Conferences, and Participants
489
- */
490
- /* jshint ignore:end */
491
- ExportCustomJobInstance = function ExportCustomJobInstance(version, payload,
492
- resourceType) {
493
- this._version = version;
494
-
495
- // Marshaled Properties
496
- this.friendlyName = payload.friendly_name; // jshint ignore:line
497
- this.resourceType = payload.resource_type; // jshint ignore:line
498
- this.startDay = payload.start_day; // jshint ignore:line
499
- this.endDay = payload.end_day; // jshint ignore:line
500
- this.webhookUrl = payload.webhook_url; // jshint ignore:line
501
- this.webhookMethod = payload.webhook_method; // jshint ignore:line
502
- this.email = payload.email; // jshint ignore:line
503
- this.jobSid = payload.job_sid; // jshint ignore:line
504
- this.details = payload.details; // jshint ignore:line
505
-
506
- // Context
507
- this._context = undefined;
508
- this._solution = {resourceType: resourceType, };
509
- };
510
-
511
- /* jshint ignore:start */
512
- /**
513
- * Provide a user-friendly representation
514
- *
515
- * @function toJSON
516
- * @memberof Twilio.Preview.BulkExports.ExportContext.ExportCustomJobInstance#
517
- *
518
- * @returns Object
519
- */
520
- /* jshint ignore:end */
521
- ExportCustomJobInstance.prototype.toJSON = function toJSON() {
522
- let clone = {};
523
- _.forOwn(this, function(value, key) {
524
- if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
525
- clone[key] = value;
526
- }
527
- });
528
- return clone;
529
- };
530
-
531
- ExportCustomJobInstance.prototype[util.inspect.custom] = function inspect(depth,
532
- options) {
533
- return util.inspect(this.toJSON(), options);
534
- };
535
-
536
- module.exports = {
537
- ExportCustomJobList: ExportCustomJobList,
538
- ExportCustomJobPage: ExportCustomJobPage,
539
- ExportCustomJobInstance: ExportCustomJobInstance
540
- };
@@ -1,163 +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 { SerializableClass } from '../../../../interfaces';
12
-
13
- /**
14
- * Initialize the JobList
15
- *
16
- * PLEASE NOTE that this class contains preview products that are subject to
17
- * change. Use them with caution. If you currently do not have developer preview
18
- * access, please contact help@twilio.com.
19
- *
20
- * @param version - Version of the resource
21
- */
22
- declare function JobList(version: BulkExports): JobListInstance;
23
-
24
- interface JobListInstance {
25
- /**
26
- * @param sid - sid of instance
27
- */
28
- (sid: string): JobContext;
29
- /**
30
- * Constructs a job
31
- *
32
- * @param jobSid - The unique string that that we created to identify the Bulk Export job
33
- */
34
- get(jobSid: string): JobContext;
35
- /**
36
- * Provide a user-friendly representation
37
- */
38
- toJSON(): any;
39
- }
40
-
41
- interface JobPayload extends JobResource, Page.TwilioResponsePayload {
42
- }
43
-
44
- interface JobResource {
45
- details: object;
46
- email: string;
47
- end_day: string;
48
- friendly_name: string;
49
- job_sid: string;
50
- resource_type: string;
51
- start_day: string;
52
- url: string;
53
- webhook_method: string;
54
- webhook_url: string;
55
- }
56
-
57
- interface JobSolution {
58
- }
59
-
60
-
61
- declare class JobContext {
62
- /**
63
- * Initialize the JobContext
64
- *
65
- * PLEASE NOTE that this class contains preview products that are subject to
66
- * change. Use them with caution. If you currently do not have developer preview
67
- * access, please contact help@twilio.com.
68
- *
69
- * @param version - Version of the resource
70
- * @param jobSid - The unique string that that we created to identify the Bulk Export job
71
- */
72
- constructor(version: BulkExports, jobSid: string);
73
-
74
- /**
75
- * fetch a JobInstance
76
- *
77
- * @param callback - Callback to handle processed record
78
- */
79
- fetch(callback?: (error: Error | null, items: JobInstance) => any): Promise<JobInstance>;
80
- /**
81
- * remove a JobInstance
82
- *
83
- * @param callback - Callback to handle processed record
84
- */
85
- remove(callback?: (error: Error | null, items: JobInstance) => any): Promise<boolean>;
86
- /**
87
- * Provide a user-friendly representation
88
- */
89
- toJSON(): any;
90
- }
91
-
92
-
93
- declare class JobInstance extends SerializableClass {
94
- /**
95
- * Initialize the JobContext
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
- * @param version - Version of the resource
102
- * @param payload - The instance payload
103
- * @param jobSid - The unique string that that we created to identify the Bulk Export job
104
- */
105
- constructor(version: BulkExports, payload: JobPayload, jobSid: string);
106
-
107
- private _proxy: JobContext;
108
- details: any;
109
- email: string;
110
- endDay: string;
111
- /**
112
- * fetch a JobInstance
113
- *
114
- * @param callback - Callback to handle processed record
115
- */
116
- fetch(callback?: (error: Error | null, items: JobInstance) => any): Promise<JobInstance>;
117
- friendlyName: string;
118
- jobSid: string;
119
- /**
120
- * remove a JobInstance
121
- *
122
- * @param callback - Callback to handle processed record
123
- */
124
- remove(callback?: (error: Error | null, items: JobInstance) => any): Promise<boolean>;
125
- resourceType: string;
126
- startDay: string;
127
- /**
128
- * Provide a user-friendly representation
129
- */
130
- toJSON(): any;
131
- url: string;
132
- webhookMethod: string;
133
- webhookUrl: string;
134
- }
135
-
136
-
137
- declare class JobPage extends Page<BulkExports, JobPayload, JobResource, JobInstance> {
138
- /**
139
- * Initialize the JobPage
140
- *
141
- * PLEASE NOTE that this class contains preview products that are subject to
142
- * change. Use them with caution. If you currently do not have developer preview
143
- * access, please contact help@twilio.com.
144
- *
145
- * @param version - Version of the resource
146
- * @param response - Response from the API
147
- * @param solution - Path solution
148
- */
149
- constructor(version: BulkExports, response: Response<string>, solution: JobSolution);
150
-
151
- /**
152
- * Build an instance of JobInstance
153
- *
154
- * @param payload - Payload response from the API
155
- */
156
- getInstance(payload: JobPayload): JobInstance;
157
- /**
158
- * Provide a user-friendly representation
159
- */
160
- toJSON(): any;
161
- }
162
-
163
- export { JobContext, JobInstance, JobList, JobListInstance, JobPage, JobPayload, JobResource, JobSolution }