twilio 5.0.3 → 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.
Files changed (79) hide show
  1. package/README.md +1 -0
  2. package/lib/rest/ContentBase.d.ts +3 -0
  3. package/lib/rest/ContentBase.js +5 -0
  4. package/lib/rest/Twilio.d.ts +0 -5
  5. package/lib/rest/Twilio.js +0 -6
  6. package/lib/rest/api/v2010/account/call/stream.d.ts +5 -5
  7. package/lib/rest/api/v2010/account/message.d.ts +1 -1
  8. package/lib/rest/content/V2.d.ts +20 -0
  9. package/lib/rest/content/V2.js +43 -0
  10. package/lib/rest/content/v2/content.d.ts +196 -0
  11. package/lib/rest/content/v2/content.js +136 -0
  12. package/lib/rest/content/v2/contentAndApprovals.d.ts +190 -0
  13. package/lib/rest/content/v2/contentAndApprovals.js +134 -0
  14. package/lib/rest/flexApi/V2.d.ts +5 -0
  15. package/lib/rest/flexApi/V2.js +6 -0
  16. package/lib/rest/flexApi/v1/interaction.d.ts +1 -1
  17. package/lib/rest/flexApi/v1/interaction.js +2 -4
  18. package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +4 -1
  19. package/lib/rest/flexApi/v1/plugin/pluginVersions.js +2 -0
  20. package/lib/rest/flexApi/v2/flexUser.d.ts +170 -0
  21. package/lib/rest/flexApi/v2/flexUser.js +142 -0
  22. package/lib/rest/flexApi/v2/webChannels.d.ts +2 -0
  23. package/lib/rest/flexApi/v2/webChannels.js +2 -0
  24. package/lib/rest/intelligence/V2.d.ts +30 -0
  25. package/lib/rest/intelligence/V2.js +40 -0
  26. package/lib/rest/intelligence/v2/customOperator.d.ts +330 -0
  27. package/lib/rest/intelligence/v2/customOperator.js +279 -0
  28. package/lib/rest/intelligence/v2/operator.d.ts +263 -0
  29. package/lib/rest/intelligence/v2/operator.js +197 -0
  30. package/lib/rest/intelligence/v2/operatorAttachment.d.ts +112 -0
  31. package/lib/rest/intelligence/v2/operatorAttachment.js +135 -0
  32. package/lib/rest/intelligence/v2/operatorAttachments.d.ts +94 -0
  33. package/lib/rest/intelligence/v2/operatorAttachments.js +110 -0
  34. package/lib/rest/intelligence/v2/operatorType.d.ts +259 -0
  35. package/lib/rest/intelligence/v2/operatorType.js +197 -0
  36. package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +263 -0
  37. package/lib/rest/intelligence/v2/prebuiltOperator.js +197 -0
  38. package/lib/rest/intelligence/v2/service.d.ts +8 -4
  39. package/lib/rest/intelligence/v2/service.js +3 -2
  40. package/lib/rest/messaging/v1/service.d.ts +0 -6
  41. package/lib/rest/messaging/v1/service.js +0 -2
  42. package/lib/rest/numbers/V1.d.ts +20 -10
  43. package/lib/rest/numbers/V1.js +31 -14
  44. package/lib/rest/numbers/v1/portingPortIn.d.ts +133 -14
  45. package/lib/rest/numbers/v1/portingPortIn.js +116 -24
  46. package/lib/rest/numbers/v1/portingPortInPhoneNumber.d.ts +175 -0
  47. package/lib/rest/numbers/v1/portingPortInPhoneNumber.js +157 -0
  48. package/lib/rest/numbers/v1/portingWebhookConfiguration.d.ts +79 -0
  49. package/lib/rest/{previewMessaging/v1/broadcast.js → numbers/v1/portingWebhookConfiguration.js} +19 -32
  50. package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.d.ts +51 -0
  51. package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.js +68 -0
  52. package/lib/rest/numbers/v1/portingWebhookConfigurationFetch.d.ts +75 -0
  53. package/lib/rest/numbers/v1/portingWebhookConfigurationFetch.js +72 -0
  54. package/lib/rest/taskrouter/v1/workspace/task.d.ts +24 -0
  55. package/lib/rest/taskrouter/v1/workspace/task.js +12 -0
  56. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +2 -0
  57. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.js +2 -0
  58. package/lib/rest/trusthub/v1/customerProfiles.d.ts +6 -0
  59. package/lib/rest/trusthub/v1/customerProfiles.js +2 -0
  60. package/lib/rest/trusthub/v1/trustProducts.d.ts +6 -0
  61. package/lib/rest/trusthub/v1/trustProducts.js +2 -0
  62. package/lib/rest/verify/v2/service/verification.d.ts +1 -1
  63. package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
  64. package/lib/rest/verify/v2/service.d.ts +1 -1
  65. package/lib/webhooks/webhooks.js +9 -11
  66. package/package.json +4 -6
  67. package/lib/rest/PreviewMessaging.d.ts +0 -9
  68. package/lib/rest/PreviewMessaging.js +0 -15
  69. package/lib/rest/PreviewMessagingBase.d.ts +0 -13
  70. package/lib/rest/PreviewMessagingBase.js +0 -31
  71. package/lib/rest/numbers/v1/portingBulkPortability.d.ts +0 -120
  72. package/lib/rest/numbers/v1/portingBulkPortability.js +0 -136
  73. package/lib/rest/numbers/v1/portingPortInFetch.d.ts +0 -142
  74. package/lib/rest/numbers/v1/portingPortInFetch.js +0 -128
  75. package/lib/rest/previewMessaging/V1.d.ts +0 -20
  76. package/lib/rest/previewMessaging/V1.js +0 -42
  77. package/lib/rest/previewMessaging/v1/broadcast.d.ts +0 -108
  78. package/lib/rest/previewMessaging/v1/message.d.ts +0 -178
  79. package/lib/rest/previewMessaging/v1/message.js +0 -91
@@ -19,10 +19,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  const Version_1 = __importDefault(require("../../base/Version"));
20
20
  const bulkEligibility_1 = require("./v1/bulkEligibility");
21
21
  const eligibility_1 = require("./v1/eligibility");
22
- const portingBulkPortability_1 = require("./v1/portingBulkPortability");
23
22
  const portingPortIn_1 = require("./v1/portingPortIn");
24
- const portingPortInFetch_1 = require("./v1/portingPortInFetch");
23
+ const portingPortInPhoneNumber_1 = require("./v1/portingPortInPhoneNumber");
25
24
  const portingPortability_1 = require("./v1/portingPortability");
25
+ const portingWebhookConfiguration_1 = require("./v1/portingWebhookConfiguration");
26
+ const portingWebhookConfigurationDelete_1 = require("./v1/portingWebhookConfigurationDelete");
27
+ const portingWebhookConfigurationFetch_1 = require("./v1/portingWebhookConfigurationFetch");
26
28
  class V1 extends Version_1.default {
27
29
  /**
28
30
  * Initialize the V1 version of Numbers
@@ -43,24 +45,18 @@ class V1 extends Version_1.default {
43
45
  this._eligibilities = this._eligibilities || (0, eligibility_1.EligibilityListInstance)(this);
44
46
  return this._eligibilities;
45
47
  }
46
- /** Getter for portingBulkPortabilities resource */
47
- get portingBulkPortabilities() {
48
- this._portingBulkPortabilities =
49
- this._portingBulkPortabilities ||
50
- (0, portingBulkPortability_1.PortingBulkPortabilityListInstance)(this);
51
- return this._portingBulkPortabilities;
52
- }
53
48
  /** Getter for portingPortIns resource */
54
49
  get portingPortIns() {
55
50
  this._portingPortIns =
56
51
  this._portingPortIns || (0, portingPortIn_1.PortingPortInListInstance)(this);
57
52
  return this._portingPortIns;
58
53
  }
59
- /** Getter for portingPortInsFetch resource */
60
- get portingPortInsFetch() {
61
- this._portingPortInsFetch =
62
- this._portingPortInsFetch || (0, portingPortInFetch_1.PortingPortInFetchListInstance)(this);
63
- return this._portingPortInsFetch;
54
+ /** Getter for portingPortInPhoneNumber resource */
55
+ get portingPortInPhoneNumber() {
56
+ this._portingPortInPhoneNumber =
57
+ this._portingPortInPhoneNumber ||
58
+ (0, portingPortInPhoneNumber_1.PortingPortInPhoneNumberListInstance)(this);
59
+ return this._portingPortInPhoneNumber;
64
60
  }
65
61
  /** Getter for portingPortabilities resource */
66
62
  get portingPortabilities() {
@@ -68,5 +64,26 @@ class V1 extends Version_1.default {
68
64
  this._portingPortabilities || (0, portingPortability_1.PortingPortabilityListInstance)(this);
69
65
  return this._portingPortabilities;
70
66
  }
67
+ /** Getter for portingWebhookConfigurations resource */
68
+ get portingWebhookConfigurations() {
69
+ this._portingWebhookConfigurations =
70
+ this._portingWebhookConfigurations ||
71
+ (0, portingWebhookConfiguration_1.PortingWebhookConfigurationListInstance)(this);
72
+ return this._portingWebhookConfigurations;
73
+ }
74
+ /** Getter for portingWebhookConfigurationsDelete resource */
75
+ get portingWebhookConfigurationsDelete() {
76
+ this._portingWebhookConfigurationsDelete =
77
+ this._portingWebhookConfigurationsDelete ||
78
+ (0, portingWebhookConfigurationDelete_1.PortingWebhookConfigurationDeleteListInstance)(this);
79
+ return this._portingWebhookConfigurationsDelete;
80
+ }
81
+ /** Getter for portingWebhookConfigurationFetch resource */
82
+ get portingWebhookConfigurationFetch() {
83
+ this._portingWebhookConfigurationFetch =
84
+ this._portingWebhookConfigurationFetch ||
85
+ (0, portingWebhookConfigurationFetch_1.PortingWebhookConfigurationFetchListInstance)(this);
86
+ return this._portingWebhookConfigurationFetch;
87
+ }
71
88
  }
72
89
  exports.default = V1;
@@ -8,48 +8,126 @@ export interface PortingPortInListInstanceCreateOptions {
8
8
  /** */
9
9
  body?: object;
10
10
  }
11
- export interface PortingPortInSolution {
12
- }
13
- export interface PortingPortInListInstance {
14
- _version: V1;
15
- _solution: PortingPortInSolution;
16
- _uri: string;
11
+ export interface PortingPortInContext {
17
12
  /**
18
- * Create a PortingPortInInstance
13
+ * Remove a PortingPortInInstance
19
14
  *
20
15
  * @param callback - Callback to handle processed record
21
16
  *
22
- * @returns Resolves to processed PortingPortInInstance
17
+ * @returns Resolves to processed boolean
23
18
  */
24
- create(callback?: (error: Error | null, item?: PortingPortInInstance) => any): Promise<PortingPortInInstance>;
19
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
25
20
  /**
26
- * Create a PortingPortInInstance
21
+ * Fetch a PortingPortInInstance
27
22
  *
28
- * @param params - Body for request
29
23
  * @param callback - Callback to handle processed record
30
24
  *
31
25
  * @returns Resolves to processed PortingPortInInstance
32
26
  */
33
- create(params: object, callback?: (error: Error | null, item?: PortingPortInInstance) => any): Promise<PortingPortInInstance>;
27
+ fetch(callback?: (error: Error | null, item?: PortingPortInInstance) => any): Promise<PortingPortInInstance>;
34
28
  /**
35
29
  * Provide a user-friendly representation
36
30
  */
37
31
  toJSON(): any;
38
32
  [inspect.custom](_depth: any, options: InspectOptions): any;
39
33
  }
40
- export declare function PortingPortInListInstance(version: V1): PortingPortInListInstance;
34
+ export interface PortingPortInContextSolution {
35
+ portInRequestSid: string;
36
+ }
37
+ export declare class PortingPortInContextImpl implements PortingPortInContext {
38
+ protected _version: V1;
39
+ protected _solution: PortingPortInContextSolution;
40
+ protected _uri: string;
41
+ constructor(_version: V1, portInRequestSid: string);
42
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
43
+ fetch(callback?: (error: Error | null, item?: PortingPortInInstance) => any): Promise<PortingPortInInstance>;
44
+ /**
45
+ * Provide a user-friendly representation
46
+ *
47
+ * @returns Object
48
+ */
49
+ toJSON(): PortingPortInContextSolution;
50
+ [inspect.custom](_depth: any, options: InspectOptions): string;
51
+ }
41
52
  interface PortingPortInResource {
42
53
  port_in_request_sid: string;
43
54
  url: string;
55
+ account_sid: string;
56
+ notification_emails: Array<string>;
57
+ target_port_in_date: Date;
58
+ target_port_in_time_range_start: string;
59
+ target_port_in_time_range_end: string;
60
+ port_in_request_status: string;
61
+ losing_carrier_information: any;
62
+ phone_numbers: Array<any>;
63
+ documents: Array<string>;
44
64
  }
45
65
  export declare class PortingPortInInstance {
46
66
  protected _version: V1;
47
- constructor(_version: V1, payload: PortingPortInResource);
67
+ protected _solution: PortingPortInContextSolution;
68
+ protected _context?: PortingPortInContext;
69
+ constructor(_version: V1, payload: PortingPortInResource, portInRequestSid?: string);
48
70
  /**
49
71
  * The SID of the Port In request. This is a unique identifier of the port in request.
50
72
  */
51
73
  portInRequestSid: string;
74
+ /**
75
+ * The URL of this Port In request
76
+ */
52
77
  url: string;
78
+ /**
79
+ * The Account SID that the numbers will be added to after they are ported into Twilio.
80
+ */
81
+ accountSid: string;
82
+ /**
83
+ * List of emails for getting notifications about the LOA signing process. Allowed Max 10 emails.
84
+ */
85
+ notificationEmails: Array<string>;
86
+ /**
87
+ * Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation.
88
+ */
89
+ targetPortInDate: Date;
90
+ /**
91
+ * Minimum hour in the future needs to be established with the Ops team for validation.
92
+ */
93
+ targetPortInTimeRangeStart: string;
94
+ /**
95
+ * Maximum hour in the future needs to be established with the Ops team for validation.
96
+ */
97
+ targetPortInTimeRangeEnd: string;
98
+ /**
99
+ * The status of the port in request. The possible values are: In progress, Completed, Expired, In review, Waiting for Signature, Action Required, and Canceled.
100
+ */
101
+ portInRequestStatus: string;
102
+ /**
103
+ * The information for the losing carrier.
104
+ */
105
+ losingCarrierInformation: any;
106
+ /**
107
+ * The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212).
108
+ */
109
+ phoneNumbers: Array<any>;
110
+ /**
111
+ * The list of documents SID referencing a utility bills
112
+ */
113
+ documents: Array<string>;
114
+ private get _proxy();
115
+ /**
116
+ * Remove a PortingPortInInstance
117
+ *
118
+ * @param callback - Callback to handle processed record
119
+ *
120
+ * @returns Resolves to processed boolean
121
+ */
122
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
123
+ /**
124
+ * Fetch a PortingPortInInstance
125
+ *
126
+ * @param callback - Callback to handle processed record
127
+ *
128
+ * @returns Resolves to processed PortingPortInInstance
129
+ */
130
+ fetch(callback?: (error: Error | null, item?: PortingPortInInstance) => any): Promise<PortingPortInInstance>;
53
131
  /**
54
132
  * Provide a user-friendly representation
55
133
  *
@@ -58,7 +136,48 @@ export declare class PortingPortInInstance {
58
136
  toJSON(): {
59
137
  portInRequestSid: string;
60
138
  url: string;
139
+ accountSid: string;
140
+ notificationEmails: string[];
141
+ targetPortInDate: Date;
142
+ targetPortInTimeRangeStart: string;
143
+ targetPortInTimeRangeEnd: string;
144
+ portInRequestStatus: string;
145
+ losingCarrierInformation: any;
146
+ phoneNumbers: any[];
147
+ documents: string[];
61
148
  };
62
149
  [inspect.custom](_depth: any, options: InspectOptions): string;
63
150
  }
151
+ export interface PortingPortInSolution {
152
+ }
153
+ export interface PortingPortInListInstance {
154
+ _version: V1;
155
+ _solution: PortingPortInSolution;
156
+ _uri: string;
157
+ (portInRequestSid: string): PortingPortInContext;
158
+ get(portInRequestSid: string): PortingPortInContext;
159
+ /**
160
+ * Create a PortingPortInInstance
161
+ *
162
+ * @param callback - Callback to handle processed record
163
+ *
164
+ * @returns Resolves to processed PortingPortInInstance
165
+ */
166
+ create(callback?: (error: Error | null, item?: PortingPortInInstance) => any): Promise<PortingPortInInstance>;
167
+ /**
168
+ * Create a PortingPortInInstance
169
+ *
170
+ * @param params - Body for request
171
+ * @param callback - Callback to handle processed record
172
+ *
173
+ * @returns Resolves to processed PortingPortInInstance
174
+ */
175
+ create(params: object, callback?: (error: Error | null, item?: PortingPortInInstance) => any): Promise<PortingPortInInstance>;
176
+ /**
177
+ * Provide a user-friendly representation
178
+ */
179
+ toJSON(): any;
180
+ [inspect.custom](_depth: any, options: InspectOptions): any;
181
+ }
182
+ export declare function PortingPortInListInstance(version: V1): PortingPortInListInstance;
64
183
  export {};
@@ -13,12 +13,126 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PortingPortInInstance = exports.PortingPortInListInstance = void 0;
16
+ exports.PortingPortInListInstance = exports.PortingPortInInstance = exports.PortingPortInContextImpl = void 0;
17
17
  const util_1 = require("util");
18
18
  const deserialize = require("../../../base/deserialize");
19
19
  const serialize = require("../../../base/serialize");
20
+ const utility_1 = require("../../../base/utility");
21
+ class PortingPortInContextImpl {
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
+ remove(callback) {
31
+ const instance = this;
32
+ let operationVersion = instance._version, operationPromise = operationVersion.remove({
33
+ uri: instance._uri,
34
+ method: "delete",
35
+ });
36
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
37
+ return operationPromise;
38
+ }
39
+ fetch(callback) {
40
+ const instance = this;
41
+ let operationVersion = instance._version, operationPromise = operationVersion.fetch({
42
+ uri: instance._uri,
43
+ method: "get",
44
+ });
45
+ operationPromise = operationPromise.then((payload) => new PortingPortInInstance(operationVersion, payload, instance._solution.portInRequestSid));
46
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
47
+ return operationPromise;
48
+ }
49
+ /**
50
+ * Provide a user-friendly representation
51
+ *
52
+ * @returns Object
53
+ */
54
+ toJSON() {
55
+ return this._solution;
56
+ }
57
+ [util_1.inspect.custom](_depth, options) {
58
+ return (0, util_1.inspect)(this.toJSON(), options);
59
+ }
60
+ }
61
+ exports.PortingPortInContextImpl = PortingPortInContextImpl;
62
+ class PortingPortInInstance {
63
+ constructor(_version, payload, portInRequestSid) {
64
+ this._version = _version;
65
+ this.portInRequestSid = payload.port_in_request_sid;
66
+ this.url = payload.url;
67
+ this.accountSid = payload.account_sid;
68
+ this.notificationEmails = payload.notification_emails;
69
+ this.targetPortInDate = deserialize.iso8601Date(payload.target_port_in_date);
70
+ this.targetPortInTimeRangeStart = payload.target_port_in_time_range_start;
71
+ this.targetPortInTimeRangeEnd = payload.target_port_in_time_range_end;
72
+ this.portInRequestStatus = payload.port_in_request_status;
73
+ this.losingCarrierInformation = payload.losing_carrier_information;
74
+ this.phoneNumbers = payload.phone_numbers;
75
+ this.documents = payload.documents;
76
+ this._solution = {
77
+ portInRequestSid: portInRequestSid || this.portInRequestSid,
78
+ };
79
+ }
80
+ get _proxy() {
81
+ this._context =
82
+ this._context ||
83
+ new PortingPortInContextImpl(this._version, this._solution.portInRequestSid);
84
+ return this._context;
85
+ }
86
+ /**
87
+ * Remove a PortingPortInInstance
88
+ *
89
+ * @param callback - Callback to handle processed record
90
+ *
91
+ * @returns Resolves to processed boolean
92
+ */
93
+ remove(callback) {
94
+ return this._proxy.remove(callback);
95
+ }
96
+ /**
97
+ * Fetch a PortingPortInInstance
98
+ *
99
+ * @param callback - Callback to handle processed record
100
+ *
101
+ * @returns Resolves to processed PortingPortInInstance
102
+ */
103
+ fetch(callback) {
104
+ return this._proxy.fetch(callback);
105
+ }
106
+ /**
107
+ * Provide a user-friendly representation
108
+ *
109
+ * @returns Object
110
+ */
111
+ toJSON() {
112
+ return {
113
+ portInRequestSid: this.portInRequestSid,
114
+ url: this.url,
115
+ accountSid: this.accountSid,
116
+ notificationEmails: this.notificationEmails,
117
+ targetPortInDate: this.targetPortInDate,
118
+ targetPortInTimeRangeStart: this.targetPortInTimeRangeStart,
119
+ targetPortInTimeRangeEnd: this.targetPortInTimeRangeEnd,
120
+ portInRequestStatus: this.portInRequestStatus,
121
+ losingCarrierInformation: this.losingCarrierInformation,
122
+ phoneNumbers: this.phoneNumbers,
123
+ documents: this.documents,
124
+ };
125
+ }
126
+ [util_1.inspect.custom](_depth, options) {
127
+ return (0, util_1.inspect)(this.toJSON(), options);
128
+ }
129
+ }
130
+ exports.PortingPortInInstance = PortingPortInInstance;
20
131
  function PortingPortInListInstance(version) {
21
- const instance = {};
132
+ const instance = ((portInRequestSid) => instance.get(portInRequestSid));
133
+ instance.get = function get(portInRequestSid) {
134
+ return new PortingPortInContextImpl(version, portInRequestSid);
135
+ };
22
136
  instance._version = version;
23
137
  instance._solution = {};
24
138
  instance._uri = `/Porting/PortIn`;
@@ -53,25 +167,3 @@ function PortingPortInListInstance(version) {
53
167
  return instance;
54
168
  }
55
169
  exports.PortingPortInListInstance = PortingPortInListInstance;
56
- class PortingPortInInstance {
57
- constructor(_version, payload) {
58
- this._version = _version;
59
- this.portInRequestSid = payload.port_in_request_sid;
60
- this.url = payload.url;
61
- }
62
- /**
63
- * Provide a user-friendly representation
64
- *
65
- * @returns Object
66
- */
67
- toJSON() {
68
- return {
69
- portInRequestSid: this.portInRequestSid,
70
- url: this.url,
71
- };
72
- }
73
- [util_1.inspect.custom](_depth, options) {
74
- return (0, util_1.inspect)(this.toJSON(), options);
75
- }
76
- }
77
- exports.PortingPortInInstance = PortingPortInInstance;
@@ -0,0 +1,175 @@
1
+ /// <reference types="node" />
2
+ import { inspect, InspectOptions } from "util";
3
+ import V1 from "../V1";
4
+ export interface PortingPortInPhoneNumberContext {
5
+ /**
6
+ * Remove a PortingPortInPhoneNumberInstance
7
+ *
8
+ * @param callback - Callback to handle processed record
9
+ *
10
+ * @returns Resolves to processed boolean
11
+ */
12
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
13
+ /**
14
+ * Fetch a PortingPortInPhoneNumberInstance
15
+ *
16
+ * @param callback - Callback to handle processed record
17
+ *
18
+ * @returns Resolves to processed PortingPortInPhoneNumberInstance
19
+ */
20
+ fetch(callback?: (error: Error | null, item?: PortingPortInPhoneNumberInstance) => any): Promise<PortingPortInPhoneNumberInstance>;
21
+ /**
22
+ * Provide a user-friendly representation
23
+ */
24
+ toJSON(): any;
25
+ [inspect.custom](_depth: any, options: InspectOptions): any;
26
+ }
27
+ export interface PortingPortInPhoneNumberContextSolution {
28
+ portInRequestSid: string;
29
+ phoneNumberSid: string;
30
+ }
31
+ export declare class PortingPortInPhoneNumberContextImpl implements PortingPortInPhoneNumberContext {
32
+ protected _version: V1;
33
+ protected _solution: PortingPortInPhoneNumberContextSolution;
34
+ protected _uri: string;
35
+ constructor(_version: V1, portInRequestSid: string, phoneNumberSid: string);
36
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
37
+ fetch(callback?: (error: Error | null, item?: PortingPortInPhoneNumberInstance) => any): Promise<PortingPortInPhoneNumberInstance>;
38
+ /**
39
+ * Provide a user-friendly representation
40
+ *
41
+ * @returns Object
42
+ */
43
+ toJSON(): PortingPortInPhoneNumberContextSolution;
44
+ [inspect.custom](_depth: any, options: InspectOptions): string;
45
+ }
46
+ interface PortingPortInPhoneNumberResource {
47
+ port_in_request_sid: string;
48
+ phone_number_sid: string;
49
+ url: string;
50
+ account_sid: string;
51
+ phone_number_type: string;
52
+ date_created: Date;
53
+ country: string;
54
+ missing_required_fields: boolean;
55
+ status_last_time_updated_timestamp: Date;
56
+ phone_number: string;
57
+ portable: boolean;
58
+ not_portability_reason: string;
59
+ not_portability_reason_code: string;
60
+ port_in_phone_number_status: string;
61
+ }
62
+ export declare class PortingPortInPhoneNumberInstance {
63
+ protected _version: V1;
64
+ protected _solution: PortingPortInPhoneNumberContextSolution;
65
+ protected _context?: PortingPortInPhoneNumberContext;
66
+ constructor(_version: V1, payload: PortingPortInPhoneNumberResource, portInRequestSid?: string, phoneNumberSid?: string);
67
+ /**
68
+ * The SID of the Port In request. This is a unique identifier of the port in request.
69
+ */
70
+ portInRequestSid: string;
71
+ /**
72
+ * The SID of the Port In request phone number. This is a unique identifier of the phone number.
73
+ */
74
+ phoneNumberSid: string;
75
+ url: string;
76
+ /**
77
+ * The SID of the account that the phone number belongs to.
78
+ */
79
+ accountSid: string;
80
+ /**
81
+ * The type of the phone number.
82
+ */
83
+ phoneNumberType: string;
84
+ /**
85
+ * The date when the phone number was created.
86
+ */
87
+ dateCreated: Date;
88
+ /**
89
+ * The country of the phone number.
90
+ */
91
+ country: string;
92
+ /**
93
+ * The phone number is missing required fields.
94
+ */
95
+ missingRequiredFields: boolean;
96
+ /**
97
+ * The timestamp when the status was last updated.
98
+ */
99
+ statusLastTimeUpdatedTimestamp: Date;
100
+ /**
101
+ * The phone number.
102
+ */
103
+ phoneNumber: string;
104
+ /**
105
+ * The phone number is portable.
106
+ */
107
+ portable: boolean;
108
+ /**
109
+ * The reason why the phone number is not portable.
110
+ */
111
+ notPortabilityReason: string;
112
+ /**
113
+ * The code of the reason why the phone number is not portable.
114
+ */
115
+ notPortabilityReasonCode: string;
116
+ /**
117
+ * The status of the phone number in the port in request.
118
+ */
119
+ portInPhoneNumberStatus: string;
120
+ private get _proxy();
121
+ /**
122
+ * Remove a PortingPortInPhoneNumberInstance
123
+ *
124
+ * @param callback - Callback to handle processed record
125
+ *
126
+ * @returns Resolves to processed boolean
127
+ */
128
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
129
+ /**
130
+ * Fetch a PortingPortInPhoneNumberInstance
131
+ *
132
+ * @param callback - Callback to handle processed record
133
+ *
134
+ * @returns Resolves to processed PortingPortInPhoneNumberInstance
135
+ */
136
+ fetch(callback?: (error: Error | null, item?: PortingPortInPhoneNumberInstance) => any): Promise<PortingPortInPhoneNumberInstance>;
137
+ /**
138
+ * Provide a user-friendly representation
139
+ *
140
+ * @returns Object
141
+ */
142
+ toJSON(): {
143
+ portInRequestSid: string;
144
+ phoneNumberSid: string;
145
+ url: string;
146
+ accountSid: string;
147
+ phoneNumberType: string;
148
+ dateCreated: Date;
149
+ country: string;
150
+ missingRequiredFields: boolean;
151
+ statusLastTimeUpdatedTimestamp: Date;
152
+ phoneNumber: string;
153
+ portable: boolean;
154
+ notPortabilityReason: string;
155
+ notPortabilityReasonCode: string;
156
+ portInPhoneNumberStatus: string;
157
+ };
158
+ [inspect.custom](_depth: any, options: InspectOptions): string;
159
+ }
160
+ export interface PortingPortInPhoneNumberSolution {
161
+ }
162
+ export interface PortingPortInPhoneNumberListInstance {
163
+ _version: V1;
164
+ _solution: PortingPortInPhoneNumberSolution;
165
+ _uri: string;
166
+ (portInRequestSid: string, phoneNumberSid: string): PortingPortInPhoneNumberContext;
167
+ get(portInRequestSid: string, phoneNumberSid: string): PortingPortInPhoneNumberContext;
168
+ /**
169
+ * Provide a user-friendly representation
170
+ */
171
+ toJSON(): any;
172
+ [inspect.custom](_depth: any, options: InspectOptions): any;
173
+ }
174
+ export declare function PortingPortInPhoneNumberListInstance(version: V1): PortingPortInPhoneNumberListInstance;
175
+ export {};