Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

twilio

Package Overview
Dependencies
Maintainers
1
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twilio - npm Package Compare versions

Comparing version 5.3.4 to 5.3.5

lib/rest/conversations/v1/conversationWithParticipants.d.ts

5

lib/rest/conversations/V1.d.ts

@@ -6,2 +6,3 @@ import ConversationsBase from "../ConversationsBase";

import { ConversationListInstance } from "./v1/conversation";
import { ConversationWithParticipantsListInstance } from "./v1/conversationWithParticipants";
import { CredentialListInstance } from "./v1/credential";

@@ -25,2 +26,4 @@ import { ParticipantConversationListInstance } from "./v1/participantConversation";

protected _conversations?: ConversationListInstance;
/** conversationWithParticipants - { Twilio.Conversations.V1.ConversationWithParticipantsListInstance } resource */
protected _conversationWithParticipants?: ConversationWithParticipantsListInstance;
/** credentials - { Twilio.Conversations.V1.CredentialListInstance } resource */

@@ -42,2 +45,4 @@ protected _credentials?: CredentialListInstance;

get conversations(): ConversationListInstance;
/** Getter for conversationWithParticipants resource */
get conversationWithParticipants(): ConversationWithParticipantsListInstance;
/** Getter for credentials resource */

@@ -44,0 +49,0 @@ get credentials(): CredentialListInstance;

@@ -23,2 +23,3 @@ "use strict";

const conversation_1 = require("./v1/conversation");
const conversationWithParticipants_1 = require("./v1/conversationWithParticipants");
const credential_1 = require("./v1/credential");

@@ -55,2 +56,9 @@ const participantConversation_1 = require("./v1/participantConversation");

}
/** Getter for conversationWithParticipants resource */
get conversationWithParticipants() {
this._conversationWithParticipants =
this._conversationWithParticipants ||
(0, conversationWithParticipants_1.ConversationWithParticipantsListInstance)(this);
return this._conversationWithParticipants;
}
/** Getter for credentials resource */

@@ -57,0 +65,0 @@ get credentials() {

@@ -9,2 +9,3 @@ /// <reference types="node" />

import { ConversationListInstance } from "./service/conversation";
import { ConversationWithParticipantsListInstance } from "./service/conversationWithParticipants";
import { ParticipantConversationListInstance } from "./service/participantConversation";

@@ -57,2 +58,3 @@ import { RoleListInstance } from "./service/role";

conversations: ConversationListInstance;
conversationWithParticipants: ConversationWithParticipantsListInstance;
participantConversations: ParticipantConversationListInstance;

@@ -93,2 +95,3 @@ roles: RoleListInstance;

protected _conversations?: ConversationListInstance;
protected _conversationWithParticipants?: ConversationWithParticipantsListInstance;
protected _participantConversations?: ParticipantConversationListInstance;

@@ -101,2 +104,3 @@ protected _roles?: RoleListInstance;

get conversations(): ConversationListInstance;
get conversationWithParticipants(): ConversationWithParticipantsListInstance;
get participantConversations(): ParticipantConversationListInstance;

@@ -190,2 +194,6 @@ get roles(): RoleListInstance;

/**
* Access the conversationWithParticipants.
*/
conversationWithParticipants(): ConversationWithParticipantsListInstance;
/**
* Access the participantConversations.

@@ -192,0 +200,0 @@ */

@@ -28,2 +28,3 @@ "use strict";

const conversation_1 = require("./service/conversation");
const conversationWithParticipants_1 = require("./service/conversationWithParticipants");
const participantConversation_1 = require("./service/participantConversation");

@@ -58,2 +59,8 @@ const role_1 = require("./service/role");

}
get conversationWithParticipants() {
this._conversationWithParticipants =
this._conversationWithParticipants ||
(0, conversationWithParticipants_1.ConversationWithParticipantsListInstance)(this._version, this._solution.sid);
return this._conversationWithParticipants;
}
get participantConversations() {

@@ -164,2 +171,8 @@ this._participantConversations =

/**
* Access the conversationWithParticipants.
*/
conversationWithParticipants() {
return this._proxy.conversationWithParticipants;
}
/**
* Access the participantConversations.

@@ -166,0 +179,0 @@ */

53

lib/rest/marketplace/v1/referralConversion.d.ts

@@ -10,7 +10,12 @@ /// <reference types="node" />

*/
export interface ReferralConversionContextCreateOptions {
export interface ReferralConversionListInstanceCreateOptions {
/** */
createReferralConversionRequest: CreateReferralConversionRequest;
}
export interface ReferralConversionContext {
export interface ReferralConversionSolution {
}
export interface ReferralConversionListInstance {
_version: V1;
_solution: ReferralConversionSolution;
_uri: string;
/**

@@ -31,18 +36,3 @@ * Create a ReferralConversionInstance

}
export interface ReferralConversionContextSolution {
}
export declare class ReferralConversionContextImpl implements ReferralConversionContext {
protected _version: V1;
protected _solution: ReferralConversionContextSolution;
protected _uri: string;
constructor(_version: V1);
create(params: CreateReferralConversionRequest, callback?: (error: Error | null, item?: ReferralConversionInstance) => any): Promise<ReferralConversionInstance>;
/**
* Provide a user-friendly representation
*
* @returns Object
*/
toJSON(): ReferralConversionContextSolution;
[inspect.custom](_depth: any, options: InspectOptions): string;
}
export declare function ReferralConversionListInstance(version: V1): ReferralConversionListInstance;
interface ReferralConversionResource {

@@ -53,17 +43,5 @@ converted_account_sid: string;

protected _version: V1;
protected _solution: ReferralConversionContextSolution;
protected _context?: ReferralConversionContext;
constructor(_version: V1, payload: ReferralConversionResource);
convertedAccountSid: string;
private get _proxy();
/**
* Create a ReferralConversionInstance
*
* @param params - Body for request
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed ReferralConversionInstance
*/
create(params: CreateReferralConversionRequest, callback?: (error: Error | null, item?: ReferralConversionInstance) => any): Promise<ReferralConversionInstance>;
/**
* Provide a user-friendly representation

@@ -78,17 +56,2 @@ *

}
export interface ReferralConversionSolution {
}
export interface ReferralConversionListInstance {
_version: V1;
_solution: ReferralConversionSolution;
_uri: string;
(): ReferralConversionContext;
get(): ReferralConversionContext;
/**
* Provide a user-friendly representation
*/
toJSON(): any;
[inspect.custom](_depth: any, options: InspectOptions): any;
}
export declare function ReferralConversionListInstance(version: V1): ReferralConversionListInstance;
export {};

@@ -16,3 +16,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ReferralConversionListInstance = exports.ReferralConversionInstance = exports.ReferralConversionContextImpl = exports.CreateReferralConversionRequest = void 0;
exports.ReferralConversionInstance = exports.ReferralConversionListInstance = exports.CreateReferralConversionRequest = void 0;
const util_1 = require("util");

@@ -24,9 +24,8 @@ const deserialize = require("../../../base/deserialize");

exports.CreateReferralConversionRequest = CreateReferralConversionRequest;
class ReferralConversionContextImpl {
constructor(_version) {
this._version = _version;
this._solution = {};
this._uri = `/ReferralConversion`;
}
create(params, callback) {
function ReferralConversionListInstance(version) {
const instance = {};
instance._version = version;
instance._solution = {};
instance._uri = `/ReferralConversion`;
instance.create = function create(params, callback) {
if (params === null || params === undefined) {

@@ -39,4 +38,3 @@ throw new Error('Required parameter "params" missing.');

headers["Content-Type"] = "application/json";
const instance = this;
let operationVersion = instance._version, operationPromise = operationVersion.create({
let operationVersion = version, operationPromise = operationVersion.create({
uri: instance._uri,

@@ -50,16 +48,12 @@ method: "post",

return operationPromise;
}
/**
* Provide a user-friendly representation
*
* @returns Object
*/
toJSON() {
return this._solution;
}
[util_1.inspect.custom](_depth, options) {
return (0, util_1.inspect)(this.toJSON(), options);
}
};
instance.toJSON = function toJSON() {
return instance._solution;
};
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
return (0, util_1.inspect)(instance.toJSON(), options);
};
return instance;
}
exports.ReferralConversionContextImpl = ReferralConversionContextImpl;
exports.ReferralConversionListInstance = ReferralConversionListInstance;
class ReferralConversionInstance {

@@ -69,12 +63,3 @@ constructor(_version, payload) {

this.convertedAccountSid = payload.converted_account_sid;
this._solution = {};
}
get _proxy() {
this._context =
this._context || new ReferralConversionContextImpl(this._version);
return this._context;
}
create(params, callback) {
return this._proxy.create(params, callback);
}
/**

@@ -95,18 +80,1 @@ * Provide a user-friendly representation

exports.ReferralConversionInstance = ReferralConversionInstance;
function ReferralConversionListInstance(version) {
const instance = (() => instance.get());
instance.get = function get() {
return new ReferralConversionContextImpl(version);
};
instance._version = version;
instance._solution = {};
instance._uri = ``;
instance.toJSON = function toJSON() {
return instance._solution;
};
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
return (0, util_1.inspect)(instance.toJSON(), options);
};
return instance;
}
exports.ReferralConversionListInstance = ReferralConversionListInstance;

@@ -10,4 +10,4 @@ import NumbersBase from "../NumbersBase";

import { PortingWebhookConfigurationDeleteListInstance } from "./v1/portingWebhookConfigurationDelete";
import { PortingWebhookConfigurationFetchListInstance } from "./v1/portingWebhookConfigurationFetch";
import { SigningRequestConfigurationListInstance } from "./v1/signingRequestConfiguration";
import { WebhookListInstance } from "./v1/webhook";
export default class V1 extends Version {

@@ -34,6 +34,6 @@ /**

protected _portingWebhookConfigurationsDelete?: PortingWebhookConfigurationDeleteListInstance;
/** portingWebhookConfigurationFetch - { Twilio.Numbers.V1.PortingWebhookConfigurationFetchListInstance } resource */
protected _portingWebhookConfigurationFetch?: PortingWebhookConfigurationFetchListInstance;
/** signingRequestConfigurations - { Twilio.Numbers.V1.SigningRequestConfigurationListInstance } resource */
protected _signingRequestConfigurations?: SigningRequestConfigurationListInstance;
/** webhook - { Twilio.Numbers.V1.WebhookListInstance } resource */
protected _webhook?: WebhookListInstance;
/** Getter for bulkEligibilities resource */

@@ -53,6 +53,6 @@ get bulkEligibilities(): BulkEligibilityListInstance;

get portingWebhookConfigurationsDelete(): PortingWebhookConfigurationDeleteListInstance;
/** Getter for portingWebhookConfigurationFetch resource */
get portingWebhookConfigurationFetch(): PortingWebhookConfigurationFetchListInstance;
/** Getter for signingRequestConfigurations resource */
get signingRequestConfigurations(): SigningRequestConfigurationListInstance;
/** Getter for webhook resource */
get webhook(): WebhookListInstance;
}

@@ -27,4 +27,4 @@ "use strict";

const portingWebhookConfigurationDelete_1 = require("./v1/portingWebhookConfigurationDelete");
const portingWebhookConfigurationFetch_1 = require("./v1/portingWebhookConfigurationFetch");
const signingRequestConfiguration_1 = require("./v1/signingRequestConfiguration");
const webhook_1 = require("./v1/webhook");
class V1 extends Version_1.default {

@@ -83,2 +83,9 @@ /**

}
/** Getter for portingWebhookConfigurationFetch resource */
get portingWebhookConfigurationFetch() {
this._portingWebhookConfigurationFetch =
this._portingWebhookConfigurationFetch ||
(0, portingWebhookConfigurationFetch_1.PortingWebhookConfigurationFetchListInstance)(this);
return this._portingWebhookConfigurationFetch;
}
/** Getter for signingRequestConfigurations resource */

@@ -91,8 +98,3 @@ get signingRequestConfigurations() {

}
/** Getter for webhook resource */
get webhook() {
this._webhook = this._webhook || (0, webhook_1.WebhookListInstance)(this);
return this._webhook;
}
}
exports.default = V1;
{
"name": "twilio",
"description": "A Twilio helper library",
"version": "5.3.4",
"version": "5.3.5",
"author": "API Team <api@twilio.com>",

@@ -6,0 +6,0 @@ "contributors": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc