Comparing version 4.16.0 to 4.17.0
@@ -62,2 +62,4 @@ /// <reference types="node" /> | ||
contentVariables?: string; | ||
/** A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. */ | ||
tags?: string; | ||
/** */ | ||
@@ -229,2 +231,3 @@ riskCheck?: MessageRiskCheck; | ||
subresource_uris: Record<string, string>; | ||
tags: any; | ||
} | ||
@@ -310,2 +313,6 @@ export declare class MessageInstance { | ||
subresourceUris: Record<string, string>; | ||
/** | ||
* A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. | ||
*/ | ||
tags: any; | ||
private get _proxy(); | ||
@@ -379,2 +386,3 @@ /** | ||
subresourceUris: Record<string, string>; | ||
tags: any; | ||
}; | ||
@@ -381,0 +389,0 @@ [inspect.custom](_depth: any, options: InspectOptions): string; |
@@ -132,2 +132,3 @@ "use strict"; | ||
this.subresourceUris = payload.subresource_uris; | ||
this.tags = payload.tags; | ||
this._solution = { accountSid, sid: sid || this.sid }; | ||
@@ -203,2 +204,3 @@ } | ||
subresourceUris: this.subresourceUris, | ||
tags: this.tags, | ||
}; | ||
@@ -263,2 +265,4 @@ } | ||
data["ContentVariables"] = params["contentVariables"]; | ||
if (params["tags"] !== undefined) | ||
data["Tags"] = params["tags"]; | ||
if (params["riskCheck"] !== undefined) | ||
@@ -265,0 +269,0 @@ data["RiskCheck"] = params["riskCheck"]; |
@@ -56,7 +56,7 @@ /// <reference types="node" /> | ||
/** | ||
* The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the MessageFeedback resource. | ||
* The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this MessageFeedback resource. | ||
*/ | ||
accountSid: string; | ||
/** | ||
* The SID of the Message resource for which the feedback was provided. | ||
* The SID of the Message resource associated with this MessageFeedback resource. | ||
*/ | ||
@@ -66,7 +66,7 @@ messageSid: string; | ||
/** | ||
* The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | ||
* The date and time in GMT when this MessageFeedback resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | ||
*/ | ||
dateCreated: Date; | ||
/** | ||
* The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | ||
* The date and time in GMT when this MessageFeedback resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | ||
*/ | ||
@@ -73,0 +73,0 @@ dateUpdated: Date; |
@@ -98,2 +98,3 @@ /// <reference types="node" /> | ||
flex_ui_status_report: any; | ||
agent_conv_end_methods: any; | ||
} | ||
@@ -282,2 +283,6 @@ export declare class ConfigurationInstance { | ||
flexUiStatusReport: any; | ||
/** | ||
* Agent conversation end methods. | ||
*/ | ||
agentConvEndMethods: any; | ||
private get _proxy(); | ||
@@ -352,2 +357,3 @@ /** | ||
flexUiStatusReport: any; | ||
agentConvEndMethods: any; | ||
}; | ||
@@ -354,0 +360,0 @@ [inspect.custom](_depth: any, options: InspectOptions): string; |
@@ -110,2 +110,3 @@ "use strict"; | ||
this.flexUiStatusReport = payload.flex_ui_status_report; | ||
this.agentConvEndMethods = payload.agent_conv_end_methods; | ||
this._solution = {}; | ||
@@ -173,2 +174,3 @@ } | ||
flexUiStatusReport: this.flexUiStatusReport, | ||
agentConvEndMethods: this.agentConvEndMethods, | ||
}; | ||
@@ -175,0 +177,0 @@ } |
@@ -37,3 +37,3 @@ /// <reference types="node" /> | ||
scanMessageContent?: ServiceScanMessageContent; | ||
/** Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. */ | ||
/** [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. */ | ||
fallbackToLongCode?: boolean; | ||
@@ -75,3 +75,3 @@ /** Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. */ | ||
scanMessageContent?: ServiceScanMessageContent; | ||
/** Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. */ | ||
/** [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. */ | ||
fallbackToLongCode?: boolean; | ||
@@ -286,3 +286,3 @@ /** Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. */ | ||
/** | ||
* Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. | ||
* [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. | ||
*/ | ||
@@ -289,0 +289,0 @@ fallbackToLongCode: boolean; |
@@ -37,3 +37,3 @@ /// <reference types="node" /> | ||
export interface BulkHostedNumberOrderContextSolution { | ||
sid: string; | ||
bulkHostingSid: string; | ||
} | ||
@@ -44,3 +44,3 @@ export declare class BulkHostedNumberOrderContextImpl implements BulkHostedNumberOrderContext { | ||
protected _uri: string; | ||
constructor(_version: V2, sid: string); | ||
constructor(_version: V2, bulkHostingSid: string); | ||
fetch(params?: BulkHostedNumberOrderContextFetchOptions | ((error: Error | null, item?: BulkHostedNumberOrderInstance) => any), callback?: (error: Error | null, item?: BulkHostedNumberOrderInstance) => any): Promise<BulkHostedNumberOrderInstance>; | ||
@@ -56,4 +56,3 @@ /** | ||
interface BulkHostedNumberOrderResource { | ||
sid: string; | ||
account_sid: string; | ||
bulk_hosting_sid: string; | ||
request_status: BulkHostedNumberOrderRequestStatus; | ||
@@ -72,11 +71,7 @@ friendly_name: string; | ||
protected _context?: BulkHostedNumberOrderContext; | ||
constructor(_version: V2, payload: BulkHostedNumberOrderResource, sid?: string); | ||
constructor(_version: V2, payload: BulkHostedNumberOrderResource, bulkHostingSid?: string); | ||
/** | ||
* A 34 character string that uniquely identifies this BulkHostedNumberOrder. | ||
*/ | ||
sid: string; | ||
/** | ||
* A 34 character string that uniquely identifies the account. | ||
*/ | ||
accountSid: string; | ||
bulkHostingSid: string; | ||
requestStatus: BulkHostedNumberOrderRequestStatus; | ||
@@ -135,4 +130,3 @@ /** | ||
toJSON(): { | ||
sid: string; | ||
accountSid: string; | ||
bulkHostingSid: string; | ||
requestStatus: BulkHostedNumberOrderRequestStatus; | ||
@@ -155,4 +149,4 @@ friendlyName: string; | ||
_uri: string; | ||
(sid: string): BulkHostedNumberOrderContext; | ||
get(sid: string): BulkHostedNumberOrderContext; | ||
(bulkHostingSid: string): BulkHostedNumberOrderContext; | ||
get(bulkHostingSid: string): BulkHostedNumberOrderContext; | ||
/** | ||
@@ -159,0 +153,0 @@ * Provide a user-friendly representation |
@@ -22,9 +22,9 @@ "use strict"; | ||
class BulkHostedNumberOrderContextImpl { | ||
constructor(_version, sid) { | ||
constructor(_version, bulkHostingSid) { | ||
this._version = _version; | ||
if (!(0, utility_1.isValidPathParam)(sid)) { | ||
throw new Error("Parameter 'sid' is not valid."); | ||
if (!(0, utility_1.isValidPathParam)(bulkHostingSid)) { | ||
throw new Error("Parameter 'bulkHostingSid' is not valid."); | ||
} | ||
this._solution = { sid }; | ||
this._uri = `/HostedNumber/Orders/Bulk/${sid}`; | ||
this._solution = { bulkHostingSid }; | ||
this._uri = `/HostedNumber/Orders/Bulk/${bulkHostingSid}`; | ||
} | ||
@@ -50,3 +50,3 @@ fetch(params, callback) { | ||
}); | ||
operationPromise = operationPromise.then((payload) => new BulkHostedNumberOrderInstance(operationVersion, payload, instance._solution.sid)); | ||
operationPromise = operationPromise.then((payload) => new BulkHostedNumberOrderInstance(operationVersion, payload, instance._solution.bulkHostingSid)); | ||
operationPromise = instance._version.setPromiseCallback(operationPromise, callback); | ||
@@ -69,6 +69,5 @@ return operationPromise; | ||
class BulkHostedNumberOrderInstance { | ||
constructor(_version, payload, sid) { | ||
constructor(_version, payload, bulkHostingSid) { | ||
this._version = _version; | ||
this.sid = payload.sid; | ||
this.accountSid = payload.account_sid; | ||
this.bulkHostingSid = payload.bulk_hosting_sid; | ||
this.requestStatus = payload.request_status; | ||
@@ -82,3 +81,3 @@ this.friendlyName = payload.friendly_name; | ||
this.results = payload.results; | ||
this._solution = { sid: sid || this.sid }; | ||
this._solution = { bulkHostingSid: bulkHostingSid || this.bulkHostingSid }; | ||
} | ||
@@ -88,3 +87,3 @@ get _proxy() { | ||
this._context || | ||
new BulkHostedNumberOrderContextImpl(this._version, this._solution.sid); | ||
new BulkHostedNumberOrderContextImpl(this._version, this._solution.bulkHostingSid); | ||
return this._context; | ||
@@ -102,4 +101,3 @@ } | ||
return { | ||
sid: this.sid, | ||
accountSid: this.accountSid, | ||
bulkHostingSid: this.bulkHostingSid, | ||
requestStatus: this.requestStatus, | ||
@@ -121,5 +119,5 @@ friendlyName: this.friendlyName, | ||
function BulkHostedNumberOrderListInstance(version) { | ||
const instance = ((sid) => instance.get(sid)); | ||
instance.get = function get(sid) { | ||
return new BulkHostedNumberOrderContextImpl(version, sid); | ||
const instance = ((bulkHostingSid) => instance.get(bulkHostingSid)); | ||
instance.get = function get(bulkHostingSid) { | ||
return new BulkHostedNumberOrderContextImpl(version, bulkHostingSid); | ||
}; | ||
@@ -126,0 +124,0 @@ instance._version = version; |
{ | ||
"name": "twilio", | ||
"description": "A Twilio helper library", | ||
"version": "4.16.0", | ||
"version": "4.17.0", | ||
"author": "API Team <api@twilio.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10210741
252727