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

n8n-nodes-evolution-api

Package Overview
Dependencies
Maintainers
0
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n8n-nodes-evolution-api - npm Package Compare versions

Comparing version 0.1.78 to 0.1.79

657

dist/nodes/HttpBin/HttpVerbDescription.js

@@ -17,134 +17,48 @@ "use strict";

{
name: 'Criar Instancia Basica',
name: 'Criar Instancia',
action: 'Criar instancia',
description: 'Cria uma nova Instancia',
value: 'instance-basic',
description: 'Criar uma instancia basica',
action: 'Criar instancia basica',
},
{
name: 'Criar Instancia Com Proxy',
action: 'Criar instancia com proxy',
description: 'Cria uma nova Instancia com Proxy',
value: 'instance-proxy',
description: 'Criar uma instancia com Proxy',
action: 'Criar instancia com proxy',
routing: {
request: {
method: 'POST',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/instance/create',
headers: {
'Content-Type': 'application/json',
apikey: '={{$credentials.apikey}}',
},
body: {
instanceName: '={{$node["Nome da Instância"].instanceName}}',
token: '={{$node["Token"].token}}',
integration: 'WHATSAPP-BAILEYS',
proxy: {
host: '={{$node["Proxy Host"].proxyHost}}',
port: '={{$node["Proxy Port"].proxyPort}}',
protocol: '={{$node["Proxy Protocol"].proxyProtocol}}',
username: '={{$node["Proxy Username"].proxyUsername}}',
password: '={{$node["Proxy Password"].proxyPassword}}',
},
},
},
},
},
{
name: 'Conectar Instancia',
action: 'Conectar instancia',
description: 'Gera a conexão de uma Instancia (QR ou Base64)',
value: 'instance-connect',
description: 'Status da instancia',
action: 'Conectar instancia',
routing: {
request: {
method: 'GET',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/instance/connect/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
},
},
},
{
name: 'Reiniciar Instancia',
action: 'Reiniciar instancia',
description: 'Reinicia o socket da Instancia',
value: 'restart-instance',
description: 'Reinicia a instancia',
action: 'Reiniciar instancia',
routing: {
request: {
method: 'PUT',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/instance/connect/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
},
},
},
{
name: 'Desconectar Instancia',
action: 'Desconectar instancia',
description: 'Desconecta o WhatsApp da Instancia',
value: 'logout-instance',
description: 'Desconecta o WhatsApp da instancia',
action: 'Desconectar instancia',
routing: {
request: {
method: 'DELETE',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/instance/logout/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
},
},
},
{
name: 'Deletar Instância',
name: 'Deletar Instancia',
action: 'Deletar instancia',
description: 'Deleta uma Instancia',
value: 'delete-instance',
description: 'Deletar uma instância existente',
action: 'Deletar inst ncia',
routing: {
request: {
method: 'DELETE',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/instance/delete/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
},
},
},
{
name: 'Buscar Instancias',
name: 'Buscar Instancia',
action: 'Buscar instancia',
description: 'Busca e lista as Instancias criadas',
value: 'fetch-instances',
description: 'Buscar instancias existentes',
action: 'Buscar instancias',
routing: {
request: {
method: 'GET',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/instance/fetchInstances{{$parameter.instanceName ? "?instanceName=" + $parameter.instanceName : ""}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
},
},
},
{
name: 'Definir Configurações',
action: 'Definir configura es',
description: 'Define o comportamento da instancia',
value: 'instanceSettings',
description: 'Define o comportamento da instancia',
action: 'Definir configura es',
routing: {
request: {
method: 'POST',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/settings/set{{$parameter.instanceName ? "?instanceName=" + $parameter.instanceName : ""}}',
headers: {
'Content-Type': 'application/json',
apikey: '={{$credentials.apikey}}',
},
body: {
rejectCall: '={{$node["Reject Call"].rejectCall}}',
msgCall: '={{$node["Message Call"].msgCall}}',
groupsIgnore: '={{$node["Groups Ignore"].groupsIgnore}}',
alwaysOnline: '={{$node["Always Online"].alwaysOnline}}',
readMessages: '={{$node["Read Messages"].readMessages}}',
syncFullHistory: '={{$node["Sync Full History"].syncFullHistory}}',
readStatus: '={{$node["Read Status"].readStatus}}',
},
},
},
},

@@ -167,41 +81,11 @@ ],

name: 'Enviar Texto',
action: 'Enviar texto',
description: 'Envia mensagem de Texto',
value: 'sendText',
description: 'Enviar mensagem de texto',
action: 'Enviar texto',
routing: {
request: {
method: 'POST',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/message/sendText/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
body: {
number: '={{$node["Número"].number}}',
text: '={{$node["Mensagem"].text}}',
},
},
},
},
{
name: 'Enviar Imagem',
action: 'Enviar imagem',
description: 'Envia mensagem de Imagem',
value: 'sendImage',
description: 'Enviar mensagem de imagem',
action: 'Enviar imagem',
routing: {
request: {
method: 'POST',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/message/sendMedia/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
body: {
number: '={{$node["Número"].number}}',
mediatype: 'image',
mimetype: '={{$node["Mimetype"].mimetype || "image/png"}}',
caption: '={{$node["Caption"].caption || "Teste de caption"}}',
media: '={{$node["Imagem"].media}}',
fileName: '={{$node["FileName"].fileName || "Imagem.png"}}',
},
},
},
},

@@ -211,110 +95,28 @@ {

value: 'sendVideo',
description: 'Enviar mensagem de video',
description: 'Enviar mensagem de Video',
action: 'Enviar video',
routing: {
request: {
method: 'POST',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/message/sendMedia/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
body: {
number: '={{$node["Número"].number}}',
mediatype: 'video',
mimetype: '={{$node["Mimetype"].mimetype || "video/mp4"}}',
caption: '={{$node["Caption"].caption || "Teste de caption"}}',
media: '={{$node["Imagem"].media}}',
fileName: '={{$node["FileName"].fileName || "Video.mp4"}}',
},
},
},
},
{
name: 'Enviar Audio',
action: 'Enviar audio',
description: 'Enviar mensagem de Audio',
value: 'sendAudio',
description: 'Enviar mensagem de audio',
action: 'Enviar audio',
routing: {
request: {
method: 'POST',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/message/sendWhatsAppAudio/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
body: {
number: '={{$node["Número"].number}}',
media: '={{$node["Audio"].media}}',
},
},
},
},
{
name: 'Enviar Documento',
action: 'Enviar documento',
description: 'Enviar mensagem de Video',
value: 'sendDocumento',
description: 'Enviar mensagem de video',
action: 'Enviar documento',
routing: {
request: {
method: 'POST',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/message/sendMedia/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
body: {
number: '={{$node["Número"].number}}',
mediatype: 'document',
media: '={{$node["Documento"].media}}',
caption: '={{$node["Mensagem"].caption}}',
},
},
},
},
{
name: 'Enviar Enquete',
action: 'Enviar enquete',
description: 'Envia uma Enquete de até 12 opções',
value: 'sendPoll',
description: 'Envia uma enquete de até 12 opções',
action: 'Enviar enquete',
routing: {
request: {
method: 'POST',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/message/sendPoll/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
body: {
number: '={{$node["Número"].number}}',
name: '={{$node["Mensagem"].caption}}',
values: '={{$node["Opções"].values}}',
mentionsEveryOne: '={{$node["Mencionar Todos"].mentionsEveryOne}}',
},
},
},
},
{
name: 'Enviar Lista',
action: 'Enviar lista',
description: 'Envia uma Lista de opções',
value: 'sendList',
description: 'Envia uma lista de opções',
action: 'Enviar lista',
routing: {
request: {
method: 'POST',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/message/sendList/{{$parameter.instance}}',
headers: {
apikey: '={{$credentials.apikey}}',
},
body: {
number: '={{$node["Número"].number}}',
title: '={{$node["Título"].title}}',
description: '={{$node["Descrição"].description}}',
buttonText: '={{$node["Texto do Botão"].buttonText}}',
footerText: '={{$node["Texto do Rodapé"].footerText}}',
sections: [
{
title: '={{$node["Título da Seção"].sectionTitle}}',
rows: '={{$node["Opções"].values}}',
},
],
},
},
},
},

@@ -325,50 +127,4 @@ ],

];
const getOperation = [
const instanceOperation = [
{
displayName: 'Query Parameters',
name: 'arguments',
default: {},
description: "The request's query parameters",
displayOptions: {
show: {
resource: ['httpVerb'],
operation: ['get'],
},
},
options: [
{
name: 'keyvalue',
displayName: 'Key:Value',
values: [
{
displayName: 'Key',
name: 'key',
type: 'string',
default: '',
required: true,
description: 'Key of query parameter',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
routing: {
send: {
property: '={{$parent.key}}',
type: 'query',
},
},
required: true,
description: 'Value of query parameter',
},
],
},
],
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
},
{
displayName: 'Nome Da Instância',

@@ -611,2 +367,123 @@ name: 'instanceName',

{
displayName: 'Nome Da Instância',
name: 'instanceName',
type: 'string',
default: '',
required: true,
description: 'Digite o nome para a instância',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Rejeitar Chamadas',
name: 'rejectCall',
type: 'boolean',
default: true,
description: 'Whether to reject calls or not',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Mensagem De Chamadas',
name: 'msgCall',
type: 'string',
default: 'Não aceitamos ligações telefônicas.',
description: 'Mensagem a ser enviada se as chamadas forem rejeitadas',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Ignorar Grupos',
name: 'groupsIgnore',
type: 'boolean',
default: false,
description: 'Whether to mention them all',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Sempre Online',
name: 'alwaysOnline',
type: 'boolean',
default: true,
description: 'Whether the instance should always be online or not',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Ler Mensagens',
name: 'readMessages',
type: 'boolean',
default: false,
description: 'Whether to mention them all',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Sincronizar Histórico Completo',
name: 'syncFullHistory',
type: 'boolean',
default: false,
description: 'Whether to mention them all history or not',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Ler Status',
name: 'readStatus',
type: 'boolean',
default: false,
description: 'Whether to mention them all',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Nome Da Instância',
name: 'instanceName',
type: 'string',
default: '',
required: true,
description: 'Digite o nome para a instância',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['delete-instance'],
},
},
},
];
const messageOperation = [
{
displayName: 'Nome Da Instancia',

@@ -1204,229 +1081,7 @@ name: 'instanceName',

},
{
displayName: 'Nome Da Instância',
name: 'instanceName',
type: 'string',
default: '',
required: true,
description: 'Digite o nome para a instância',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Rejeitar Chamadas',
name: 'rejectCall',
type: 'boolean',
default: true,
description: 'Whether to reject calls or not',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Mensagem De Chamadas',
name: 'msgCall',
type: 'string',
default: 'Não aceitamos ligações telefônicas.',
description: 'Mensagem a ser enviada se as chamadas forem rejeitadas',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Ignorar Grupos',
name: 'groupsIgnore',
type: 'boolean',
default: false,
description: 'Whether to mention them all',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Sempre Online',
name: 'alwaysOnline',
type: 'boolean',
default: true,
description: 'Whether the instance should always be online or not',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Ler Mensagens',
name: 'readMessages',
type: 'boolean',
default: false,
description: 'Whether to mention them all',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Sincronizar Histórico Completo',
name: 'syncFullHistory',
type: 'boolean',
default: false,
description: 'Whether to mention them all history or not',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Ler Status',
name: 'readStatus',
type: 'boolean',
default: false,
description: 'Whether to mention them all',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['instanceSettings'],
},
},
},
{
displayName: 'Selecione a Instância',
name: 'instanceName',
type: 'options',
default: '',
description: 'Selecione a instância a ser deletada',
displayOptions: {
show: {
resource: ['instances-api'],
operation: ['delete-instance'],
},
},
routing: {
request: {
method: 'GET',
url: '={{$credentials["server-url"].startsWith("https://") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}/instance/fetchInstances',
headers: {
apikey: '={{$credentials.apikey}}',
},
},
},
options: [],
},
];
const deleteOperation = [
{
displayName: 'Query Parameters',
name: 'arguments',
default: {},
description: "The request's query parameters",
displayOptions: {
show: {
resource: ['httpVerb'],
operation: ['delete'],
},
},
options: [
{
name: 'keyvalue',
displayName: 'Key:Value',
values: [
{
displayName: 'Key',
name: 'key',
type: 'string',
default: '',
required: true,
description: 'Key of query parameter',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
routing: {
send: {
property: '={{$parent.key}}',
type: 'query',
},
},
required: true,
description: 'Value of query parameter',
},
],
},
],
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
},
{
displayName: 'JSON Object',
name: 'arguments',
default: {},
description: "The request's JSON properties",
displayOptions: {
show: {
resource: ['httpVerb'],
operation: ['delete'],
},
},
options: [
{
name: 'keyvalue',
displayName: 'Key:Value',
values: [
{
displayName: 'Key',
name: 'key',
type: 'string',
default: '',
required: true,
description: 'Key of JSON property',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
routing: {
send: {
property: '={{$parent.key}}',
type: 'body',
},
},
required: true,
description: 'Value of JSON property',
},
],
},
],
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
},
];
exports.httpVerbFields = [
...getOperation,
...deleteOperation,
...instanceOperation,
...messageOperation,
];
//# sourceMappingURL=HttpVerbDescription.js.map
{
"name": "n8n-nodes-evolution-api",
"version": "0.1.78",
"version": "0.1.79",
"description": "Api não oficial do WhatsApp",

@@ -5,0 +5,0 @@ "keywords": [

{
"name": "n8n-nodes-evolution-api",
"version": "0.1.78",
"version": "0.1.79",
"description": "Api não oficial do WhatsApp",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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