Comparing version 3.83.3 to 3.83.4
@@ -11,2 +11,4 @@ /** | ||
import V1 = require('../V1'); | ||
import { ApprovalFetchList } from './content/approvalFetch'; | ||
import { ApprovalFetchListInstance } from './content/approvalFetch'; | ||
import { SerializableClass } from '../../../interfaces'; | ||
@@ -31,8 +33,2 @@ | ||
/** | ||
* create a ContentInstance | ||
* | ||
* @param callback - Callback to handle processed record | ||
*/ | ||
create(callback?: (error: Error | null, item: ContentInstance) => any): Promise<ContentInstance>; | ||
/** | ||
* Streams ContentInstance records from the API. | ||
@@ -235,2 +231,3 @@ * | ||
approvalFetch: ApprovalFetchListInstance; | ||
/** | ||
@@ -271,2 +268,6 @@ * fetch a ContentInstance | ||
accountSid: string; | ||
/** | ||
* Access the approvalFetch | ||
*/ | ||
approvalFetch(): ApprovalFetchListInstance; | ||
dateCreated: Date; | ||
@@ -273,0 +274,0 @@ dateUpdated: Date; |
@@ -15,2 +15,3 @@ 'use strict'; | ||
var util = require('util'); /* jshint ignore:line */ | ||
var ApprovalFetchList = require('./content/approvalFetch').ApprovalFetchList; | ||
var Page = require('../../../base/Page'); /* jshint ignore:line */ | ||
@@ -60,33 +61,2 @@ var deserialize = require( | ||
/** | ||
* create a ContentInstance | ||
* | ||
* @function create | ||
* @memberof Twilio.Content.V1.ContentList# | ||
* | ||
* @param {function} [callback] - Callback to handle processed record | ||
* | ||
* @returns {Promise} Resolves to processed ContentInstance | ||
*/ | ||
/* jshint ignore:end */ | ||
ContentListInstance.create = function create(callback) { | ||
var deferred = Q.defer(); | ||
var promise = this._version.create({uri: this._uri, method: 'POST'}); | ||
promise = promise.then(function(payload) { | ||
deferred.resolve(new ContentInstance(this._version, payload, this._solution.sid)); | ||
}.bind(this)); | ||
promise.catch(function(error) { | ||
deferred.reject(error); | ||
}); | ||
if (_.isFunction(callback)) { | ||
deferred.promise.nodeify(callback); | ||
} | ||
return deferred.promise; | ||
}; | ||
/* jshint ignore:start */ | ||
/** | ||
* Streams ContentInstance records from the API. | ||
@@ -538,2 +508,16 @@ * | ||
/** | ||
* Access the approvalFetch | ||
* | ||
* @function approvalFetch | ||
* @memberof Twilio.Content.V1.ContentInstance# | ||
* | ||
* @returns {Twilio.Content.V1.ContentContext.ApprovalFetchList} | ||
*/ | ||
/* jshint ignore:end */ | ||
ContentInstance.prototype.approvalFetch = function approvalFetch() { | ||
return this._proxy.approvalFetch; | ||
}; | ||
/* jshint ignore:start */ | ||
/** | ||
* Provide a user-friendly representation | ||
@@ -573,2 +557,5 @@ * | ||
* | ||
* @property {Twilio.Content.V1.ContentContext.ApprovalFetchList} approvalFetch - | ||
* approvalFetch resource | ||
* | ||
* @param {V1} version - Version of the resource | ||
@@ -584,2 +571,5 @@ * @param {sid} sid - The unique string that identifies the resource | ||
this._uri = `/Content/${sid}`; | ||
// Dependents | ||
this._approvalFetch = undefined; | ||
}; | ||
@@ -649,2 +639,12 @@ | ||
Object.defineProperty(ContentContext.prototype, | ||
'approvalFetch', { | ||
get: function() { | ||
if (!this._approvalFetch) { | ||
this._approvalFetch = new ApprovalFetchList(this._version, this._solution.sid); | ||
} | ||
return this._approvalFetch; | ||
} | ||
}); | ||
/* jshint ignore:start */ | ||
@@ -651,0 +651,0 @@ /** |
@@ -11,2 +11,3 @@ /** | ||
import V1 = require('./flexApi/V1'); | ||
import { AssessmentsListInstance } from './flexApi/v1/assessments'; | ||
import { ChannelListInstance } from './flexApi/v1/channel'; | ||
@@ -29,2 +30,3 @@ import { ConfigurationListInstance } from './flexApi/v1/configuration'; | ||
readonly assessments: AssessmentsListInstance; | ||
readonly channel: ChannelListInstance; | ||
@@ -31,0 +33,0 @@ readonly configuration: ConfigurationListInstance; |
@@ -24,2 +24,3 @@ 'use strict'; | ||
* @property {Twilio.FlexApi.V1} v1 - v1 version | ||
* @property {Twilio.FlexApi.V1.AssessmentsList} assessments - assessments resource | ||
* @property {Twilio.FlexApi.V1.ChannelList} channel - channel resource | ||
@@ -56,2 +57,9 @@ * @property {Twilio.FlexApi.V1.ConfigurationList} configuration - | ||
Object.defineProperty(FlexApi.prototype, | ||
'assessments', { | ||
get: function() { | ||
return this.v1.assessments; | ||
} | ||
}); | ||
Object.defineProperty(FlexApi.prototype, | ||
'channel', { | ||
@@ -58,0 +66,0 @@ get: function() { |
@@ -10,2 +10,4 @@ /** | ||
import Version = require('../../base/Version'); | ||
import { AssessmentsList } from './v1/assessments'; | ||
import { AssessmentsListInstance } from './v1/assessments'; | ||
import { ChannelList } from './v1/channel'; | ||
@@ -35,2 +37,3 @@ import { ChannelListInstance } from './v1/channel'; | ||
readonly assessments: AssessmentsListInstance; | ||
readonly channel: ChannelListInstance; | ||
@@ -37,0 +40,0 @@ readonly configuration: ConfigurationListInstance; |
@@ -13,2 +13,3 @@ 'use strict'; | ||
var _ = require('lodash'); /* jshint ignore:line */ | ||
var AssessmentsList = require('./v1/assessments').AssessmentsList; | ||
var ChannelList = require('./v1/channel').ChannelList; | ||
@@ -30,2 +31,3 @@ var ConfigurationList = require('./v1/configuration').ConfigurationList; | ||
* | ||
* @property {Twilio.FlexApi.V1.AssessmentsList} assessments - assessments resource | ||
* @property {Twilio.FlexApi.V1.ChannelList} channel - channel resource | ||
@@ -47,2 +49,3 @@ * @property {Twilio.FlexApi.V1.ConfigurationList} configuration - | ||
// Resources | ||
this._assessments = undefined; | ||
this._channel = undefined; | ||
@@ -61,2 +64,10 @@ this._configuration = undefined; | ||
Object.defineProperty(V1.prototype, | ||
'assessments', { | ||
get: function() { | ||
this._assessments = this._assessments || new AssessmentsList(this); | ||
return this._assessments; | ||
} | ||
}); | ||
Object.defineProperty(V1.prototype, | ||
'channel', { | ||
@@ -63,0 +74,0 @@ get: function() { |
@@ -30,8 +30,28 @@ /** | ||
* | ||
* @property addressCountryCode - User’s country, up to two characters. | ||
* @property addressLine1 - User’s first address line. | ||
* @property addressLine2 - User’s second address line. | ||
* @property city - User’s city. | ||
* @property countryCode - Country code for national phone number lookups | ||
* @property dateOfBirth - User’s date of birth, in YYYYMMDD format. | ||
* @property fields - Fields to return | ||
* @property firstName - User’s first name. | ||
* @property lastName - User’s last name. | ||
* @property nationalId - User’s national ID, such as SSN or Passport ID. | ||
* @property postalCode - User’s postal zip code. | ||
* @property state - User’s country subdivision, such as state, province, or locality. | ||
*/ | ||
interface PhoneNumberInstanceFetchOptions { | ||
addressCountryCode?: string; | ||
addressLine1?: string; | ||
addressLine2?: string; | ||
city?: string; | ||
countryCode?: string; | ||
dateOfBirth?: string; | ||
fields?: string; | ||
firstName?: string; | ||
lastName?: string; | ||
nationalId?: string; | ||
postalCode?: string; | ||
state?: string; | ||
} | ||
@@ -64,2 +84,3 @@ | ||
country_code: string; | ||
identity_match: object; | ||
line_type_intelligence: object; | ||
@@ -142,2 +163,3 @@ live_activity: object; | ||
fetch(opts?: PhoneNumberInstanceFetchOptions, callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise<PhoneNumberInstance>; | ||
identityMatch: any; | ||
lineTypeIntelligence: any; | ||
@@ -144,0 +166,0 @@ liveActivity: any; |
@@ -184,2 +184,4 @@ 'use strict'; | ||
* An object that contains line type information | ||
* @property {object} identityMatch - | ||
* An object that contains identity match information | ||
* @property {string} url - The absolute URL of the resource | ||
@@ -208,2 +210,3 @@ * | ||
this.lineTypeIntelligence = payload.line_type_intelligence; // jshint ignore:line | ||
this.identityMatch = payload.identity_match; // jshint ignore:line | ||
this.url = payload.url; // jshint ignore:line | ||
@@ -238,2 +241,15 @@ | ||
* Country code for national phone number lookups | ||
* @param {string} [opts.firstName] - User’s first name. | ||
* @param {string} [opts.lastName] - User’s last name. | ||
* @param {string} [opts.addressLine1] - User’s first address line. | ||
* @param {string} [opts.addressLine2] - User’s second address line. | ||
* @param {string} [opts.city] - User’s city. | ||
* @param {string} [opts.state] - | ||
* User’s country subdivision, such as state, province, or locality. | ||
* @param {string} [opts.postalCode] - User’s postal zip code. | ||
* @param {string} [opts.addressCountryCode] - | ||
* User’s country, up to two characters. | ||
* @param {string} [opts.nationalId] - | ||
* User’s national ID, such as SSN or Passport ID. | ||
* @param {string} [opts.dateOfBirth] - User’s date of birth, in YYYYMMDD format. | ||
* @param {function} [callback] - Callback to handle processed record | ||
@@ -306,2 +322,15 @@ * | ||
* Country code for national phone number lookups | ||
* @param {string} [opts.firstName] - User’s first name. | ||
* @param {string} [opts.lastName] - User’s last name. | ||
* @param {string} [opts.addressLine1] - User’s first address line. | ||
* @param {string} [opts.addressLine2] - User’s second address line. | ||
* @param {string} [opts.city] - User’s city. | ||
* @param {string} [opts.state] - | ||
* User’s country subdivision, such as state, province, or locality. | ||
* @param {string} [opts.postalCode] - User’s postal zip code. | ||
* @param {string} [opts.addressCountryCode] - | ||
* User’s country, up to two characters. | ||
* @param {string} [opts.nationalId] - | ||
* User’s national ID, such as SSN or Passport ID. | ||
* @param {string} [opts.dateOfBirth] - User’s date of birth, in YYYYMMDD format. | ||
* @param {function} [callback] - Callback to handle processed record | ||
@@ -320,3 +349,16 @@ * | ||
var deferred = Q.defer(); | ||
var data = values.of({'Fields': _.get(opts, 'fields'), 'CountryCode': _.get(opts, 'countryCode')}); | ||
var data = values.of({ | ||
'Fields': _.get(opts, 'fields'), | ||
'CountryCode': _.get(opts, 'countryCode'), | ||
'FirstName': _.get(opts, 'firstName'), | ||
'LastName': _.get(opts, 'lastName'), | ||
'AddressLine1': _.get(opts, 'addressLine1'), | ||
'AddressLine2': _.get(opts, 'addressLine2'), | ||
'City': _.get(opts, 'city'), | ||
'State': _.get(opts, 'state'), | ||
'PostalCode': _.get(opts, 'postalCode'), | ||
'AddressCountryCode': _.get(opts, 'addressCountryCode'), | ||
'NationalId': _.get(opts, 'nationalId'), | ||
'DateOfBirth': _.get(opts, 'dateOfBirth') | ||
}); | ||
@@ -323,0 +365,0 @@ var promise = this._version.fetch({uri: this._uri, method: 'GET', params: data}); |
@@ -13,2 +13,4 @@ /** | ||
import { DeactivationsListInstance } from './messaging/v1/deactivation'; | ||
import { DomainCertsListInstance } from './messaging/v1/domainCert'; | ||
import { DomainConfigListInstance } from './messaging/v1/domainConfig'; | ||
import { ExternalCampaignListInstance } from './messaging/v1/externalCampaign'; | ||
@@ -30,2 +32,4 @@ import { ServiceListInstance } from './messaging/v1/service'; | ||
readonly deactivations: DeactivationsListInstance; | ||
readonly domainCerts: DomainCertsListInstance; | ||
readonly domainConfig: DomainConfigListInstance; | ||
readonly externalCampaign: ExternalCampaignListInstance; | ||
@@ -32,0 +36,0 @@ readonly services: ServiceListInstance; |
@@ -28,2 +28,6 @@ 'use strict'; | ||
* deactivations resource | ||
* @property {Twilio.Messaging.V1.DomainCertsList} domainCerts - | ||
* domainCerts resource | ||
* @property {Twilio.Messaging.V1.DomainConfigList} domainConfig - | ||
* domainConfig resource | ||
* @property {Twilio.Messaging.V1.ExternalCampaignList} externalCampaign - | ||
@@ -72,2 +76,16 @@ * externalCampaign resource | ||
Object.defineProperty(Messaging.prototype, | ||
'domainCerts', { | ||
get: function() { | ||
return this.v1.domainCerts; | ||
} | ||
}); | ||
Object.defineProperty(Messaging.prototype, | ||
'domainConfig', { | ||
get: function() { | ||
return this.v1.domainConfig; | ||
} | ||
}); | ||
Object.defineProperty(Messaging.prototype, | ||
'externalCampaign', { | ||
@@ -74,0 +92,0 @@ get: function() { |
@@ -14,2 +14,6 @@ /** | ||
import { DeactivationsListInstance } from './v1/deactivation'; | ||
import { DomainCertsList } from './v1/domainCert'; | ||
import { DomainCertsListInstance } from './v1/domainCert'; | ||
import { DomainConfigList } from './v1/domainConfig'; | ||
import { DomainConfigListInstance } from './v1/domainConfig'; | ||
import { ExternalCampaignList } from './v1/externalCampaign'; | ||
@@ -35,2 +39,4 @@ import { ExternalCampaignListInstance } from './v1/externalCampaign'; | ||
readonly deactivations: DeactivationsListInstance; | ||
readonly domainCerts: DomainCertsListInstance; | ||
readonly domainConfig: DomainConfigListInstance; | ||
readonly externalCampaign: ExternalCampaignListInstance; | ||
@@ -37,0 +43,0 @@ readonly services: ServiceListInstance; |
@@ -16,2 +16,4 @@ 'use strict'; | ||
var DeactivationsList = require('./v1/deactivation').DeactivationsList; | ||
var DomainCertsList = require('./v1/domainCert').DomainCertsList; | ||
var DomainConfigList = require('./v1/domainConfig').DomainConfigList; | ||
var ExternalCampaignList = require( | ||
@@ -36,2 +38,6 @@ './v1/externalCampaign').ExternalCampaignList; | ||
* deactivations resource | ||
* @property {Twilio.Messaging.V1.DomainCertsList} domainCerts - | ||
* domainCerts resource | ||
* @property {Twilio.Messaging.V1.DomainConfigList} domainConfig - | ||
* domainConfig resource | ||
* @property {Twilio.Messaging.V1.ExternalCampaignList} externalCampaign - | ||
@@ -53,2 +59,4 @@ * externalCampaign resource | ||
this._deactivations = undefined; | ||
this._domainCerts = undefined; | ||
this._domainConfig = undefined; | ||
this._externalCampaign = undefined; | ||
@@ -80,2 +88,18 @@ this._services = undefined; | ||
Object.defineProperty(V1.prototype, | ||
'domainCerts', { | ||
get: function() { | ||
this._domainCerts = this._domainCerts || new DomainCertsList(this); | ||
return this._domainCerts; | ||
} | ||
}); | ||
Object.defineProperty(V1.prototype, | ||
'domainConfig', { | ||
get: function() { | ||
this._domainConfig = this._domainConfig || new DomainConfigList(this); | ||
return this._domainConfig; | ||
} | ||
}); | ||
Object.defineProperty(V1.prototype, | ||
'externalCampaign', { | ||
@@ -82,0 +106,0 @@ get: function() { |
@@ -215,2 +215,3 @@ /** | ||
date_updated: Date; | ||
links: string; | ||
logging: object; | ||
@@ -290,2 +291,3 @@ sid: string; | ||
fetch(callback?: (error: Error | null, items: DeviceInstance) => any): Promise<DeviceInstance>; | ||
links: string; | ||
logging: any; | ||
@@ -292,0 +294,0 @@ sid: string; |
@@ -429,2 +429,3 @@ 'use strict'; | ||
* @property {string} url - The URL of this resource. | ||
* @property {string} links - The absolute URLs of related resources | ||
* | ||
@@ -448,2 +449,3 @@ * @param {V1} version - Version of the resource | ||
this.url = payload.url; // jshint ignore:line | ||
this.links = payload.links; // jshint ignore:line | ||
@@ -450,0 +452,0 @@ // Context |
@@ -13,3 +13,2 @@ /** | ||
import Sync = require('./preview/Sync'); | ||
import TrustedComms = require('./preview/TrustedComms'); | ||
import Twilio = require('./Twilio'); | ||
@@ -21,7 +20,3 @@ import Understand = require('./preview/Understand'); | ||
import { AvailableAddOnListInstance } from './preview/marketplace/availableAddOn'; | ||
import { BrandedChannelListInstance } from './preview/trusted_comms/brandedChannel'; | ||
import { BrandsInformationListInstance } from './preview/trusted_comms/brandsInformation'; | ||
import { CommandListInstance } from './preview/wireless/command'; | ||
import { CpsListInstance } from './preview/trusted_comms/cps'; | ||
import { CurrentCallListInstance } from './preview/trusted_comms/currentCall'; | ||
import { FleetListInstance } from './preview/deployed_devices/fleet'; | ||
@@ -46,7 +41,3 @@ import { HostedNumberOrderListInstance } from './preview/hosted_numbers/hostedNumberOrder'; | ||
readonly availableAddOns: AvailableAddOnListInstance; | ||
readonly brandedChannels: BrandedChannelListInstance; | ||
readonly brandsInformation: BrandsInformationListInstance; | ||
readonly commands: CommandListInstance; | ||
readonly cps: CpsListInstance; | ||
readonly currentCalls: CurrentCallListInstance; | ||
readonly deployed_devices: DeployedDevices; | ||
@@ -62,3 +53,2 @@ readonly fleets: FleetListInstance; | ||
readonly sync: Sync; | ||
readonly trusted_comms: TrustedComms; | ||
readonly understand: Understand; | ||
@@ -65,0 +55,0 @@ readonly wireless: Wireless; |
@@ -20,3 +20,2 @@ 'use strict'; | ||
var Sync = require('./preview/Sync'); /* jshint ignore:line */ | ||
var TrustedComms = require('./preview/TrustedComms'); /* jshint ignore:line */ | ||
var Understand = require('./preview/Understand'); /* jshint ignore:line */ | ||
@@ -39,3 +38,2 @@ var Wireless = require('./preview/Wireless'); /* jshint ignore:line */ | ||
* @property {Twilio.Preview.Wireless} wireless - wireless version | ||
* @property {Twilio.Preview.TrustedComms} trusted_comms - trusted_comms version | ||
* @property {Twilio.Preview.DeployedDevices.FleetList} fleets - fleets resource | ||
@@ -56,9 +54,2 @@ * @property {Twilio.Preview.HostedNumbers.AuthorizationDocumentList} authorizationDocuments - | ||
* @property {Twilio.Preview.Wireless.SimList} sims - sims resource | ||
* @property {Twilio.Preview.TrustedComms.BrandedChannelList} brandedChannels - | ||
* brandedChannels resource | ||
* @property {Twilio.Preview.TrustedComms.BrandsInformationList} brandsInformation - | ||
* brandsInformation resource | ||
* @property {Twilio.Preview.TrustedComms.CpsList} cps - cps resource | ||
* @property {Twilio.Preview.TrustedComms.CurrentCallList} currentCalls - | ||
* currentCalls resource | ||
* | ||
@@ -78,3 +69,2 @@ * @param {Twilio} twilio - The twilio client | ||
this._wireless = undefined; | ||
this._trusted_comms = undefined; | ||
} | ||
@@ -134,10 +124,2 @@ | ||
Object.defineProperty(Preview.prototype, | ||
'trusted_comms', { | ||
get: function() { | ||
this._trusted_comms = this._trusted_comms || new TrustedComms(this); | ||
return this._trusted_comms; | ||
} | ||
}); | ||
Object.defineProperty(Preview.prototype, | ||
'fleets', { | ||
@@ -212,30 +194,2 @@ get: function() { | ||
Object.defineProperty(Preview.prototype, | ||
'brandedChannels', { | ||
get: function() { | ||
return this.trusted_comms.brandedChannels; | ||
} | ||
}); | ||
Object.defineProperty(Preview.prototype, | ||
'brandsInformation', { | ||
get: function() { | ||
return this.trusted_comms.brandsInformation; | ||
} | ||
}); | ||
Object.defineProperty(Preview.prototype, | ||
'cps', { | ||
get: function() { | ||
return this.trusted_comms.cps; | ||
} | ||
}); | ||
Object.defineProperty(Preview.prototype, | ||
'currentCalls', { | ||
get: function() { | ||
return this.trusted_comms.currentCalls; | ||
} | ||
}); | ||
module.exports = Preview; |
@@ -15,3 +15,3 @@ /** | ||
type BuildRuntime = 'node8'|'node10'|'node12'|'node14'; | ||
type BuildRuntime = 'node8'|'node10'|'node12'|'node14'|'node16'; | ||
@@ -18,0 +18,0 @@ type BuildStatus = 'building'|'completed'|'failed'; |
{ | ||
"name": "twilio", | ||
"description": "A Twilio helper library", | ||
"version": "3.83.3", | ||
"version": "3.83.4", | ||
"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
14148104
1119
403702