twilio 5.0.4 → 5.1.0
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/ContentBase.d.ts +3 -0
- package/lib/rest/ContentBase.js +5 -0
- package/lib/rest/Twilio.d.ts +0 -5
- package/lib/rest/Twilio.js +0 -6
- package/lib/rest/api/v2010/account/message.d.ts +1 -1
- package/lib/rest/content/V2.d.ts +20 -0
- package/lib/rest/content/V2.js +43 -0
- package/lib/rest/content/v2/content.d.ts +196 -0
- package/lib/rest/content/v2/content.js +136 -0
- package/lib/rest/content/v2/contentAndApprovals.d.ts +190 -0
- package/lib/rest/content/v2/contentAndApprovals.js +134 -0
- package/lib/rest/flexApi/v1/interaction.d.ts +1 -1
- package/lib/rest/flexApi/v1/interaction.js +2 -4
- package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +4 -1
- package/lib/rest/flexApi/v1/plugin/pluginVersions.js +2 -0
- package/lib/rest/intelligence/V2.d.ts +30 -0
- package/lib/rest/intelligence/V2.js +40 -0
- package/lib/rest/intelligence/v2/customOperator.d.ts +330 -0
- package/lib/rest/intelligence/v2/customOperator.js +279 -0
- package/lib/rest/intelligence/v2/operator.d.ts +263 -0
- package/lib/rest/intelligence/v2/operator.js +197 -0
- package/lib/rest/intelligence/v2/operatorAttachment.d.ts +112 -0
- package/lib/rest/intelligence/v2/operatorAttachment.js +135 -0
- package/lib/rest/intelligence/v2/operatorAttachments.d.ts +94 -0
- package/lib/rest/intelligence/v2/operatorAttachments.js +110 -0
- package/lib/rest/intelligence/v2/operatorType.d.ts +259 -0
- package/lib/rest/intelligence/v2/operatorType.js +197 -0
- package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +263 -0
- package/lib/rest/intelligence/v2/prebuiltOperator.js +197 -0
- package/lib/rest/intelligence/v2/service.d.ts +8 -4
- package/lib/rest/intelligence/v2/service.js +3 -2
- package/lib/rest/messaging/v1/service.d.ts +0 -6
- package/lib/rest/messaging/v1/service.js +0 -2
- package/lib/rest/numbers/V1.d.ts +15 -10
- package/lib/rest/numbers/V1.js +24 -15
- package/lib/rest/numbers/v1/portingPortIn.d.ts +74 -0
- package/lib/rest/numbers/v1/portingPortIn.js +38 -0
- package/lib/rest/numbers/v1/portingPortInPhoneNumber.d.ts +124 -0
- package/lib/rest/numbers/v1/portingPortInPhoneNumber.js +87 -1
- package/lib/rest/numbers/v1/portingWebhookConfiguration.d.ts +79 -0
- package/lib/rest/{previewMessaging/v1/broadcast.js → numbers/v1/portingWebhookConfiguration.js} +19 -32
- package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.d.ts +51 -0
- package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.js +68 -0
- package/lib/rest/numbers/v1/portingWebhookConfigurationFetch.d.ts +75 -0
- package/lib/rest/numbers/v1/portingWebhookConfigurationFetch.js +72 -0
- package/lib/rest/taskrouter/v1/workspace/task.d.ts +24 -0
- package/lib/rest/taskrouter/v1/workspace/task.js +12 -0
- package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +2 -0
- package/lib/rest/trusthub/v1/complianceTollfreeInquiries.js +2 -0
- package/lib/rest/trusthub/v1/customerProfiles.d.ts +6 -0
- package/lib/rest/trusthub/v1/customerProfiles.js +2 -0
- package/lib/rest/trusthub/v1/trustProducts.d.ts +6 -0
- package/lib/rest/trusthub/v1/trustProducts.js +2 -0
- package/lib/rest/verify/v2/service/verification.d.ts +1 -1
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
- package/lib/rest/verify/v2/service.d.ts +1 -1
- package/lib/webhooks/webhooks.js +4 -5
- package/package.json +1 -1
- package/lib/rest/PreviewMessaging.d.ts +0 -9
- package/lib/rest/PreviewMessaging.js +0 -15
- package/lib/rest/PreviewMessagingBase.d.ts +0 -13
- package/lib/rest/PreviewMessagingBase.js +0 -31
- package/lib/rest/numbers/v1/portingBulkPortability.d.ts +0 -120
- package/lib/rest/numbers/v1/portingBulkPortability.js +0 -136
- package/lib/rest/numbers/v1/portingPortInFetch.d.ts +0 -142
- package/lib/rest/numbers/v1/portingPortInFetch.js +0 -128
- package/lib/rest/previewMessaging/V1.d.ts +0 -20
- package/lib/rest/previewMessaging/V1.js +0 -42
- package/lib/rest/previewMessaging/v1/broadcast.d.ts +0 -108
- package/lib/rest/previewMessaging/v1/message.d.ts +0 -178
- package/lib/rest/previewMessaging/v1/message.js +0 -91
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { inspect, InspectOptions } from "util";
|
|
3
|
-
import V1 from "../V1";
|
|
4
|
-
export type PortingBulkPortabilityStatus = "in-progress" | "completed" | "expired";
|
|
5
|
-
/**
|
|
6
|
-
* Options to pass to create a PortingBulkPortabilityInstance
|
|
7
|
-
*/
|
|
8
|
-
export interface PortingBulkPortabilityListInstanceCreateOptions {
|
|
9
|
-
/** The phone numbers which portability is to be checked. This should be a list of strings. Phone numbers are in E.164 format (e.g. +16175551212). . */
|
|
10
|
-
phoneNumbers: Array<string>;
|
|
11
|
-
}
|
|
12
|
-
export interface PortingBulkPortabilityContext {
|
|
13
|
-
/**
|
|
14
|
-
* Fetch a PortingBulkPortabilityInstance
|
|
15
|
-
*
|
|
16
|
-
* @param callback - Callback to handle processed record
|
|
17
|
-
*
|
|
18
|
-
* @returns Resolves to processed PortingBulkPortabilityInstance
|
|
19
|
-
*/
|
|
20
|
-
fetch(callback?: (error: Error | null, item?: PortingBulkPortabilityInstance) => any): Promise<PortingBulkPortabilityInstance>;
|
|
21
|
-
/**
|
|
22
|
-
* Provide a user-friendly representation
|
|
23
|
-
*/
|
|
24
|
-
toJSON(): any;
|
|
25
|
-
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
26
|
-
}
|
|
27
|
-
export interface PortingBulkPortabilityContextSolution {
|
|
28
|
-
sid: string;
|
|
29
|
-
}
|
|
30
|
-
export declare class PortingBulkPortabilityContextImpl implements PortingBulkPortabilityContext {
|
|
31
|
-
protected _version: V1;
|
|
32
|
-
protected _solution: PortingBulkPortabilityContextSolution;
|
|
33
|
-
protected _uri: string;
|
|
34
|
-
constructor(_version: V1, sid: string);
|
|
35
|
-
fetch(callback?: (error: Error | null, item?: PortingBulkPortabilityInstance) => any): Promise<PortingBulkPortabilityInstance>;
|
|
36
|
-
/**
|
|
37
|
-
* Provide a user-friendly representation
|
|
38
|
-
*
|
|
39
|
-
* @returns Object
|
|
40
|
-
*/
|
|
41
|
-
toJSON(): PortingBulkPortabilityContextSolution;
|
|
42
|
-
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
43
|
-
}
|
|
44
|
-
interface PortingBulkPortabilityResource {
|
|
45
|
-
sid: string;
|
|
46
|
-
status: PortingBulkPortabilityStatus;
|
|
47
|
-
datetime_created: Date;
|
|
48
|
-
phone_numbers: Array<any>;
|
|
49
|
-
url: string;
|
|
50
|
-
}
|
|
51
|
-
export declare class PortingBulkPortabilityInstance {
|
|
52
|
-
protected _version: V1;
|
|
53
|
-
protected _solution: PortingBulkPortabilityContextSolution;
|
|
54
|
-
protected _context?: PortingBulkPortabilityContext;
|
|
55
|
-
constructor(_version: V1, payload: PortingBulkPortabilityResource, sid?: string);
|
|
56
|
-
/**
|
|
57
|
-
* A 34 character string that uniquely identifies this Portability check.
|
|
58
|
-
*/
|
|
59
|
-
sid: string;
|
|
60
|
-
status: PortingBulkPortabilityStatus;
|
|
61
|
-
/**
|
|
62
|
-
* The date that the Portability check was created, given in ISO 8601 format.
|
|
63
|
-
*/
|
|
64
|
-
datetimeCreated: Date;
|
|
65
|
-
/**
|
|
66
|
-
* Contains a list with all the information of the requested phone numbers. Each phone number contains the following properties: `phone_number`: The phone number which portability is to be checked. `portable`: Boolean flag specifying if phone number is portable or not. `not_portable_reason`: Reason why the phone number cannot be ported into Twilio, `null` otherwise. `not_portable_reason_code`: The Portability Reason Code for the phone number if it cannot be ported in Twilio, `null` otherwise. `pin_and_account_number_required`: Boolean flag specifying if PIN and account number is required for the phone number. `number_type`: The type of the requested phone number. `country` Country the phone number belongs to. `messaging_carrier` Current messaging carrier of the phone number. `voice_carrier` Current voice carrier of the phone number.
|
|
67
|
-
*/
|
|
68
|
-
phoneNumbers: Array<any>;
|
|
69
|
-
/**
|
|
70
|
-
* This is the url of the request that you\'re trying to reach out to locate the resource.
|
|
71
|
-
*/
|
|
72
|
-
url: string;
|
|
73
|
-
private get _proxy();
|
|
74
|
-
/**
|
|
75
|
-
* Fetch a PortingBulkPortabilityInstance
|
|
76
|
-
*
|
|
77
|
-
* @param callback - Callback to handle processed record
|
|
78
|
-
*
|
|
79
|
-
* @returns Resolves to processed PortingBulkPortabilityInstance
|
|
80
|
-
*/
|
|
81
|
-
fetch(callback?: (error: Error | null, item?: PortingBulkPortabilityInstance) => any): Promise<PortingBulkPortabilityInstance>;
|
|
82
|
-
/**
|
|
83
|
-
* Provide a user-friendly representation
|
|
84
|
-
*
|
|
85
|
-
* @returns Object
|
|
86
|
-
*/
|
|
87
|
-
toJSON(): {
|
|
88
|
-
sid: string;
|
|
89
|
-
status: PortingBulkPortabilityStatus;
|
|
90
|
-
datetimeCreated: Date;
|
|
91
|
-
phoneNumbers: any[];
|
|
92
|
-
url: string;
|
|
93
|
-
};
|
|
94
|
-
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
95
|
-
}
|
|
96
|
-
export interface PortingBulkPortabilitySolution {
|
|
97
|
-
}
|
|
98
|
-
export interface PortingBulkPortabilityListInstance {
|
|
99
|
-
_version: V1;
|
|
100
|
-
_solution: PortingBulkPortabilitySolution;
|
|
101
|
-
_uri: string;
|
|
102
|
-
(sid: string): PortingBulkPortabilityContext;
|
|
103
|
-
get(sid: string): PortingBulkPortabilityContext;
|
|
104
|
-
/**
|
|
105
|
-
* Create a PortingBulkPortabilityInstance
|
|
106
|
-
*
|
|
107
|
-
* @param params - Parameter for request
|
|
108
|
-
* @param callback - Callback to handle processed record
|
|
109
|
-
*
|
|
110
|
-
* @returns Resolves to processed PortingBulkPortabilityInstance
|
|
111
|
-
*/
|
|
112
|
-
create(params: PortingBulkPortabilityListInstanceCreateOptions, callback?: (error: Error | null, item?: PortingBulkPortabilityInstance) => any): Promise<PortingBulkPortabilityInstance>;
|
|
113
|
-
/**
|
|
114
|
-
* Provide a user-friendly representation
|
|
115
|
-
*/
|
|
116
|
-
toJSON(): any;
|
|
117
|
-
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
118
|
-
}
|
|
119
|
-
export declare function PortingBulkPortabilityListInstance(version: V1): PortingBulkPortabilityListInstance;
|
|
120
|
-
export {};
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This code was generated by
|
|
4
|
-
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
-
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
-
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
-
*
|
|
8
|
-
* Twilio - Numbers
|
|
9
|
-
* This is the public Twilio REST API.
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PortingBulkPortabilityListInstance = exports.PortingBulkPortabilityInstance = exports.PortingBulkPortabilityContextImpl = void 0;
|
|
17
|
-
const util_1 = require("util");
|
|
18
|
-
const deserialize = require("../../../base/deserialize");
|
|
19
|
-
const serialize = require("../../../base/serialize");
|
|
20
|
-
const utility_1 = require("../../../base/utility");
|
|
21
|
-
class PortingBulkPortabilityContextImpl {
|
|
22
|
-
constructor(_version, sid) {
|
|
23
|
-
this._version = _version;
|
|
24
|
-
if (!(0, utility_1.isValidPathParam)(sid)) {
|
|
25
|
-
throw new Error("Parameter 'sid' is not valid.");
|
|
26
|
-
}
|
|
27
|
-
this._solution = { sid };
|
|
28
|
-
this._uri = `/Porting/Portability/${sid}`;
|
|
29
|
-
}
|
|
30
|
-
fetch(callback) {
|
|
31
|
-
const instance = this;
|
|
32
|
-
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
33
|
-
uri: instance._uri,
|
|
34
|
-
method: "get",
|
|
35
|
-
});
|
|
36
|
-
operationPromise = operationPromise.then((payload) => new PortingBulkPortabilityInstance(operationVersion, payload, instance._solution.sid));
|
|
37
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
38
|
-
return operationPromise;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Provide a user-friendly representation
|
|
42
|
-
*
|
|
43
|
-
* @returns Object
|
|
44
|
-
*/
|
|
45
|
-
toJSON() {
|
|
46
|
-
return this._solution;
|
|
47
|
-
}
|
|
48
|
-
[util_1.inspect.custom](_depth, options) {
|
|
49
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.PortingBulkPortabilityContextImpl = PortingBulkPortabilityContextImpl;
|
|
53
|
-
class PortingBulkPortabilityInstance {
|
|
54
|
-
constructor(_version, payload, sid) {
|
|
55
|
-
this._version = _version;
|
|
56
|
-
this.sid = payload.sid;
|
|
57
|
-
this.status = payload.status;
|
|
58
|
-
this.datetimeCreated = deserialize.iso8601DateTime(payload.datetime_created);
|
|
59
|
-
this.phoneNumbers = payload.phone_numbers;
|
|
60
|
-
this.url = payload.url;
|
|
61
|
-
this._solution = { sid: sid || this.sid };
|
|
62
|
-
}
|
|
63
|
-
get _proxy() {
|
|
64
|
-
this._context =
|
|
65
|
-
this._context ||
|
|
66
|
-
new PortingBulkPortabilityContextImpl(this._version, this._solution.sid);
|
|
67
|
-
return this._context;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Fetch a PortingBulkPortabilityInstance
|
|
71
|
-
*
|
|
72
|
-
* @param callback - Callback to handle processed record
|
|
73
|
-
*
|
|
74
|
-
* @returns Resolves to processed PortingBulkPortabilityInstance
|
|
75
|
-
*/
|
|
76
|
-
fetch(callback) {
|
|
77
|
-
return this._proxy.fetch(callback);
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Provide a user-friendly representation
|
|
81
|
-
*
|
|
82
|
-
* @returns Object
|
|
83
|
-
*/
|
|
84
|
-
toJSON() {
|
|
85
|
-
return {
|
|
86
|
-
sid: this.sid,
|
|
87
|
-
status: this.status,
|
|
88
|
-
datetimeCreated: this.datetimeCreated,
|
|
89
|
-
phoneNumbers: this.phoneNumbers,
|
|
90
|
-
url: this.url,
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
[util_1.inspect.custom](_depth, options) {
|
|
94
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
exports.PortingBulkPortabilityInstance = PortingBulkPortabilityInstance;
|
|
98
|
-
function PortingBulkPortabilityListInstance(version) {
|
|
99
|
-
const instance = ((sid) => instance.get(sid));
|
|
100
|
-
instance.get = function get(sid) {
|
|
101
|
-
return new PortingBulkPortabilityContextImpl(version, sid);
|
|
102
|
-
};
|
|
103
|
-
instance._version = version;
|
|
104
|
-
instance._solution = {};
|
|
105
|
-
instance._uri = `/Porting/Portability`;
|
|
106
|
-
instance.create = function create(params, callback) {
|
|
107
|
-
if (params === null || params === undefined) {
|
|
108
|
-
throw new Error('Required parameter "params" missing.');
|
|
109
|
-
}
|
|
110
|
-
if (params["phoneNumbers"] === null ||
|
|
111
|
-
params["phoneNumbers"] === undefined) {
|
|
112
|
-
throw new Error("Required parameter \"params['phoneNumbers']\" missing.");
|
|
113
|
-
}
|
|
114
|
-
let data = {};
|
|
115
|
-
data["PhoneNumbers"] = serialize.map(params["phoneNumbers"], (e) => e);
|
|
116
|
-
const headers = {};
|
|
117
|
-
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
118
|
-
let operationVersion = version, operationPromise = operationVersion.create({
|
|
119
|
-
uri: instance._uri,
|
|
120
|
-
method: "post",
|
|
121
|
-
data,
|
|
122
|
-
headers,
|
|
123
|
-
});
|
|
124
|
-
operationPromise = operationPromise.then((payload) => new PortingBulkPortabilityInstance(operationVersion, payload));
|
|
125
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
126
|
-
return operationPromise;
|
|
127
|
-
};
|
|
128
|
-
instance.toJSON = function toJSON() {
|
|
129
|
-
return instance._solution;
|
|
130
|
-
};
|
|
131
|
-
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
132
|
-
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
133
|
-
};
|
|
134
|
-
return instance;
|
|
135
|
-
}
|
|
136
|
-
exports.PortingBulkPortabilityListInstance = PortingBulkPortabilityListInstance;
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { inspect, InspectOptions } from "util";
|
|
3
|
-
import V1 from "../V1";
|
|
4
|
-
export interface PortingPortInFetchContext {
|
|
5
|
-
/**
|
|
6
|
-
* Fetch a PortingPortInFetchInstance
|
|
7
|
-
*
|
|
8
|
-
* @param callback - Callback to handle processed record
|
|
9
|
-
*
|
|
10
|
-
* @returns Resolves to processed PortingPortInFetchInstance
|
|
11
|
-
*/
|
|
12
|
-
fetch(callback?: (error: Error | null, item?: PortingPortInFetchInstance) => any): Promise<PortingPortInFetchInstance>;
|
|
13
|
-
/**
|
|
14
|
-
* Provide a user-friendly representation
|
|
15
|
-
*/
|
|
16
|
-
toJSON(): any;
|
|
17
|
-
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
18
|
-
}
|
|
19
|
-
export interface PortingPortInFetchContextSolution {
|
|
20
|
-
portInRequestSid: string;
|
|
21
|
-
}
|
|
22
|
-
export declare class PortingPortInFetchContextImpl implements PortingPortInFetchContext {
|
|
23
|
-
protected _version: V1;
|
|
24
|
-
protected _solution: PortingPortInFetchContextSolution;
|
|
25
|
-
protected _uri: string;
|
|
26
|
-
constructor(_version: V1, portInRequestSid: string);
|
|
27
|
-
fetch(callback?: (error: Error | null, item?: PortingPortInFetchInstance) => any): Promise<PortingPortInFetchInstance>;
|
|
28
|
-
/**
|
|
29
|
-
* Provide a user-friendly representation
|
|
30
|
-
*
|
|
31
|
-
* @returns Object
|
|
32
|
-
*/
|
|
33
|
-
toJSON(): PortingPortInFetchContextSolution;
|
|
34
|
-
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
35
|
-
}
|
|
36
|
-
interface PortingPortInFetchResource {
|
|
37
|
-
port_in_request_sid: string;
|
|
38
|
-
url: string;
|
|
39
|
-
account_sid: string;
|
|
40
|
-
notification_emails: Array<string>;
|
|
41
|
-
target_port_in_date: Date;
|
|
42
|
-
target_port_in_time_range_start: string;
|
|
43
|
-
target_port_in_time_range_end: string;
|
|
44
|
-
port_in_request_status: string;
|
|
45
|
-
losing_carrier_information: any;
|
|
46
|
-
phone_numbers: Array<any>;
|
|
47
|
-
documents: Array<string>;
|
|
48
|
-
}
|
|
49
|
-
export declare class PortingPortInFetchInstance {
|
|
50
|
-
protected _version: V1;
|
|
51
|
-
protected _solution: PortingPortInFetchContextSolution;
|
|
52
|
-
protected _context?: PortingPortInFetchContext;
|
|
53
|
-
constructor(_version: V1, payload: PortingPortInFetchResource, portInRequestSid?: string);
|
|
54
|
-
/**
|
|
55
|
-
* The SID of the Port In request. This is a unique identifier of the port in request.
|
|
56
|
-
*/
|
|
57
|
-
portInRequestSid: string;
|
|
58
|
-
/**
|
|
59
|
-
* The URL of this Port In request
|
|
60
|
-
*/
|
|
61
|
-
url: string;
|
|
62
|
-
/**
|
|
63
|
-
* The Account SID that the numbers will be added to after they are ported into Twilio.
|
|
64
|
-
*/
|
|
65
|
-
accountSid: string;
|
|
66
|
-
/**
|
|
67
|
-
* List of emails for getting notifications about the LOA signing process. Allowed Max 10 emails.
|
|
68
|
-
*/
|
|
69
|
-
notificationEmails: Array<string>;
|
|
70
|
-
/**
|
|
71
|
-
* Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation.
|
|
72
|
-
*/
|
|
73
|
-
targetPortInDate: Date;
|
|
74
|
-
/**
|
|
75
|
-
* Minimum hour in the future needs to be established with the Ops team for validation.
|
|
76
|
-
*/
|
|
77
|
-
targetPortInTimeRangeStart: string;
|
|
78
|
-
/**
|
|
79
|
-
* Maximum hour in the future needs to be established with the Ops team for validation.
|
|
80
|
-
*/
|
|
81
|
-
targetPortInTimeRangeEnd: string;
|
|
82
|
-
/**
|
|
83
|
-
* The status of the port in request. The possible values are: In progress, Completed, Expired, In review, Waiting for Signature, Action Required, and Canceled.
|
|
84
|
-
*/
|
|
85
|
-
portInRequestStatus: string;
|
|
86
|
-
/**
|
|
87
|
-
* The information for the losing carrier.
|
|
88
|
-
*/
|
|
89
|
-
losingCarrierInformation: any;
|
|
90
|
-
/**
|
|
91
|
-
* The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212).
|
|
92
|
-
*/
|
|
93
|
-
phoneNumbers: Array<any>;
|
|
94
|
-
/**
|
|
95
|
-
* The list of documents SID referencing a utility bills
|
|
96
|
-
*/
|
|
97
|
-
documents: Array<string>;
|
|
98
|
-
private get _proxy();
|
|
99
|
-
/**
|
|
100
|
-
* Fetch a PortingPortInFetchInstance
|
|
101
|
-
*
|
|
102
|
-
* @param callback - Callback to handle processed record
|
|
103
|
-
*
|
|
104
|
-
* @returns Resolves to processed PortingPortInFetchInstance
|
|
105
|
-
*/
|
|
106
|
-
fetch(callback?: (error: Error | null, item?: PortingPortInFetchInstance) => any): Promise<PortingPortInFetchInstance>;
|
|
107
|
-
/**
|
|
108
|
-
* Provide a user-friendly representation
|
|
109
|
-
*
|
|
110
|
-
* @returns Object
|
|
111
|
-
*/
|
|
112
|
-
toJSON(): {
|
|
113
|
-
portInRequestSid: string;
|
|
114
|
-
url: string;
|
|
115
|
-
accountSid: string;
|
|
116
|
-
notificationEmails: string[];
|
|
117
|
-
targetPortInDate: Date;
|
|
118
|
-
targetPortInTimeRangeStart: string;
|
|
119
|
-
targetPortInTimeRangeEnd: string;
|
|
120
|
-
portInRequestStatus: string;
|
|
121
|
-
losingCarrierInformation: any;
|
|
122
|
-
phoneNumbers: any[];
|
|
123
|
-
documents: string[];
|
|
124
|
-
};
|
|
125
|
-
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
126
|
-
}
|
|
127
|
-
export interface PortingPortInFetchSolution {
|
|
128
|
-
}
|
|
129
|
-
export interface PortingPortInFetchListInstance {
|
|
130
|
-
_version: V1;
|
|
131
|
-
_solution: PortingPortInFetchSolution;
|
|
132
|
-
_uri: string;
|
|
133
|
-
(portInRequestSid: string): PortingPortInFetchContext;
|
|
134
|
-
get(portInRequestSid: string): PortingPortInFetchContext;
|
|
135
|
-
/**
|
|
136
|
-
* Provide a user-friendly representation
|
|
137
|
-
*/
|
|
138
|
-
toJSON(): any;
|
|
139
|
-
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
140
|
-
}
|
|
141
|
-
export declare function PortingPortInFetchListInstance(version: V1): PortingPortInFetchListInstance;
|
|
142
|
-
export {};
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This code was generated by
|
|
4
|
-
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
-
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
-
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
-
*
|
|
8
|
-
* Twilio - Numbers
|
|
9
|
-
* This is the public Twilio REST API.
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PortingPortInFetchListInstance = exports.PortingPortInFetchInstance = exports.PortingPortInFetchContextImpl = void 0;
|
|
17
|
-
const util_1 = require("util");
|
|
18
|
-
const deserialize = require("../../../base/deserialize");
|
|
19
|
-
const serialize = require("../../../base/serialize");
|
|
20
|
-
const utility_1 = require("../../../base/utility");
|
|
21
|
-
class PortingPortInFetchContextImpl {
|
|
22
|
-
constructor(_version, portInRequestSid) {
|
|
23
|
-
this._version = _version;
|
|
24
|
-
if (!(0, utility_1.isValidPathParam)(portInRequestSid)) {
|
|
25
|
-
throw new Error("Parameter 'portInRequestSid' is not valid.");
|
|
26
|
-
}
|
|
27
|
-
this._solution = { portInRequestSid };
|
|
28
|
-
this._uri = `/Porting/PortIn/${portInRequestSid}`;
|
|
29
|
-
}
|
|
30
|
-
fetch(callback) {
|
|
31
|
-
const instance = this;
|
|
32
|
-
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
33
|
-
uri: instance._uri,
|
|
34
|
-
method: "get",
|
|
35
|
-
});
|
|
36
|
-
operationPromise = operationPromise.then((payload) => new PortingPortInFetchInstance(operationVersion, payload, instance._solution.portInRequestSid));
|
|
37
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
38
|
-
return operationPromise;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Provide a user-friendly representation
|
|
42
|
-
*
|
|
43
|
-
* @returns Object
|
|
44
|
-
*/
|
|
45
|
-
toJSON() {
|
|
46
|
-
return this._solution;
|
|
47
|
-
}
|
|
48
|
-
[util_1.inspect.custom](_depth, options) {
|
|
49
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.PortingPortInFetchContextImpl = PortingPortInFetchContextImpl;
|
|
53
|
-
class PortingPortInFetchInstance {
|
|
54
|
-
constructor(_version, payload, portInRequestSid) {
|
|
55
|
-
this._version = _version;
|
|
56
|
-
this.portInRequestSid = payload.port_in_request_sid;
|
|
57
|
-
this.url = payload.url;
|
|
58
|
-
this.accountSid = payload.account_sid;
|
|
59
|
-
this.notificationEmails = payload.notification_emails;
|
|
60
|
-
this.targetPortInDate = deserialize.iso8601Date(payload.target_port_in_date);
|
|
61
|
-
this.targetPortInTimeRangeStart = payload.target_port_in_time_range_start;
|
|
62
|
-
this.targetPortInTimeRangeEnd = payload.target_port_in_time_range_end;
|
|
63
|
-
this.portInRequestStatus = payload.port_in_request_status;
|
|
64
|
-
this.losingCarrierInformation = payload.losing_carrier_information;
|
|
65
|
-
this.phoneNumbers = payload.phone_numbers;
|
|
66
|
-
this.documents = payload.documents;
|
|
67
|
-
this._solution = {
|
|
68
|
-
portInRequestSid: portInRequestSid || this.portInRequestSid,
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
get _proxy() {
|
|
72
|
-
this._context =
|
|
73
|
-
this._context ||
|
|
74
|
-
new PortingPortInFetchContextImpl(this._version, this._solution.portInRequestSid);
|
|
75
|
-
return this._context;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Fetch a PortingPortInFetchInstance
|
|
79
|
-
*
|
|
80
|
-
* @param callback - Callback to handle processed record
|
|
81
|
-
*
|
|
82
|
-
* @returns Resolves to processed PortingPortInFetchInstance
|
|
83
|
-
*/
|
|
84
|
-
fetch(callback) {
|
|
85
|
-
return this._proxy.fetch(callback);
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Provide a user-friendly representation
|
|
89
|
-
*
|
|
90
|
-
* @returns Object
|
|
91
|
-
*/
|
|
92
|
-
toJSON() {
|
|
93
|
-
return {
|
|
94
|
-
portInRequestSid: this.portInRequestSid,
|
|
95
|
-
url: this.url,
|
|
96
|
-
accountSid: this.accountSid,
|
|
97
|
-
notificationEmails: this.notificationEmails,
|
|
98
|
-
targetPortInDate: this.targetPortInDate,
|
|
99
|
-
targetPortInTimeRangeStart: this.targetPortInTimeRangeStart,
|
|
100
|
-
targetPortInTimeRangeEnd: this.targetPortInTimeRangeEnd,
|
|
101
|
-
portInRequestStatus: this.portInRequestStatus,
|
|
102
|
-
losingCarrierInformation: this.losingCarrierInformation,
|
|
103
|
-
phoneNumbers: this.phoneNumbers,
|
|
104
|
-
documents: this.documents,
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
[util_1.inspect.custom](_depth, options) {
|
|
108
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
exports.PortingPortInFetchInstance = PortingPortInFetchInstance;
|
|
112
|
-
function PortingPortInFetchListInstance(version) {
|
|
113
|
-
const instance = ((portInRequestSid) => instance.get(portInRequestSid));
|
|
114
|
-
instance.get = function get(portInRequestSid) {
|
|
115
|
-
return new PortingPortInFetchContextImpl(version, portInRequestSid);
|
|
116
|
-
};
|
|
117
|
-
instance._version = version;
|
|
118
|
-
instance._solution = {};
|
|
119
|
-
instance._uri = ``;
|
|
120
|
-
instance.toJSON = function toJSON() {
|
|
121
|
-
return instance._solution;
|
|
122
|
-
};
|
|
123
|
-
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
124
|
-
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
125
|
-
};
|
|
126
|
-
return instance;
|
|
127
|
-
}
|
|
128
|
-
exports.PortingPortInFetchListInstance = PortingPortInFetchListInstance;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import PreviewMessagingBase from "../PreviewMessagingBase";
|
|
2
|
-
import Version from "../../base/Version";
|
|
3
|
-
import { BroadcastListInstance } from "./v1/broadcast";
|
|
4
|
-
import { MessageListInstance } from "./v1/message";
|
|
5
|
-
export default class V1 extends Version {
|
|
6
|
-
/**
|
|
7
|
-
* Initialize the V1 version of PreviewMessaging
|
|
8
|
-
*
|
|
9
|
-
* @param domain - The Twilio (Twilio.PreviewMessaging) domain
|
|
10
|
-
*/
|
|
11
|
-
constructor(domain: PreviewMessagingBase);
|
|
12
|
-
/** broadcasts - { Twilio.PreviewMessaging.V1.BroadcastListInstance } resource */
|
|
13
|
-
protected _broadcasts?: BroadcastListInstance;
|
|
14
|
-
/** messages - { Twilio.PreviewMessaging.V1.MessageListInstance } resource */
|
|
15
|
-
protected _messages?: MessageListInstance;
|
|
16
|
-
/** Getter for broadcasts resource */
|
|
17
|
-
get broadcasts(): BroadcastListInstance;
|
|
18
|
-
/** Getter for messages resource */
|
|
19
|
-
get messages(): MessageListInstance;
|
|
20
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This code was generated by
|
|
4
|
-
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
-
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
-
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
-
*
|
|
8
|
-
* Bulk Messaging and Broadcast
|
|
9
|
-
* Bulk Sending is a public Twilio REST API for 1:Many Message creation up to 100 recipients. Broadcast is a public Twilio REST API for 1:Many Message creation up to 10,000 recipients via file upload.
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
|
-
const broadcast_1 = require("./v1/broadcast");
|
|
21
|
-
const message_1 = require("./v1/message");
|
|
22
|
-
class V1 extends Version_1.default {
|
|
23
|
-
/**
|
|
24
|
-
* Initialize the V1 version of PreviewMessaging
|
|
25
|
-
*
|
|
26
|
-
* @param domain - The Twilio (Twilio.PreviewMessaging) domain
|
|
27
|
-
*/
|
|
28
|
-
constructor(domain) {
|
|
29
|
-
super(domain, "v1");
|
|
30
|
-
}
|
|
31
|
-
/** Getter for broadcasts resource */
|
|
32
|
-
get broadcasts() {
|
|
33
|
-
this._broadcasts = this._broadcasts || (0, broadcast_1.BroadcastListInstance)(this);
|
|
34
|
-
return this._broadcasts;
|
|
35
|
-
}
|
|
36
|
-
/** Getter for messages resource */
|
|
37
|
-
get messages() {
|
|
38
|
-
this._messages = this._messages || (0, message_1.MessageListInstance)(this);
|
|
39
|
-
return this._messages;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.default = V1;
|