n8n-nodes-evolution-api
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -36,3 +36,3 @@ "use strict"; | ||
request: { | ||
baseURL: '={{$credentials["server-url"]}}', | ||
baseURL: '={{$credentials["server-url"].startsWith("http") ? $credentials["server-url"] : "https://" + $credentials["server-url"]}}', | ||
url: '/instance/fetchInstances', | ||
@@ -39,0 +39,0 @@ method: 'GET', |
@@ -36,3 +36,3 @@ "use strict"; | ||
{ | ||
displayName: 'Recurso', | ||
displayName: 'Resource', | ||
name: 'resource', | ||
@@ -43,7 +43,7 @@ type: 'options', | ||
{ | ||
name: 'Criar Instancia', | ||
value: 'create-instance', | ||
name: 'HTTP Verb', | ||
value: 'httpVerb', | ||
}, | ||
], | ||
default: 'create-instance', | ||
default: 'httpVerb', | ||
}, | ||
@@ -50,0 +50,0 @@ ...HttpVerbDescription_1.httpVerbOperations, |
@@ -9,3 +9,3 @@ { | ||
{ | ||
"url": "https://doc.evolution-api.com/api-reference" | ||
"url": "http://httpbin.org/#/Auth/get_bearer" | ||
} | ||
@@ -15,3 +15,3 @@ ], | ||
{ | ||
"url": "https://doc.evolution-api.com/api-reference" | ||
"url": "http://httpbin.org/" | ||
} | ||
@@ -18,0 +18,0 @@ ] |
@@ -12,3 +12,3 @@ "use strict"; | ||
show: { | ||
resource: ['create-instance'], | ||
resource: ['httpVerb'], | ||
}, | ||
@@ -18,5 +18,5 @@ }, | ||
{ | ||
name: 'Instancia Basica', | ||
value: 'create-instance-basic', | ||
description: 'Criar uma instancia Basica', | ||
name: 'GET', | ||
value: 'get', | ||
description: 'Perform a GET request', | ||
routing: { | ||
@@ -28,3 +28,3 @@ request: { | ||
}, | ||
action: 'Instancia basica a create instance', | ||
action: 'Get a http verb', | ||
}, | ||
@@ -41,26 +41,6 @@ { | ||
}, | ||
action: 'Delete a create instance', | ||
action: 'Delete a http verb', | ||
}, | ||
{ | ||
name: 'Create Instance', | ||
value: 'create-instance', | ||
description: 'Create a new instance', | ||
routing: { | ||
request: { | ||
method: 'POST', | ||
url: '={{$credentials["server-url"]}}/instance/create', | ||
headers: { | ||
apikey: '={{$credentials.apikey}}', | ||
}, | ||
body: { | ||
instanceName: '={{$parameter["instanceName"]}}', | ||
token: '={{$parameter["token"]}}', | ||
integration: '={{$parameter["integration"]}}', | ||
}, | ||
}, | ||
}, | ||
action: 'Create instance a create instance', | ||
}, | ||
], | ||
default: 'create-instance', | ||
default: 'get', | ||
}, | ||
@@ -256,56 +236,6 @@ ]; | ||
]; | ||
const createInstanceOperation = [ | ||
{ | ||
displayName: 'Instance Name', | ||
name: 'instanceName', | ||
type: 'string', | ||
default: '', | ||
displayOptions: { | ||
show: { | ||
resource: ['httpVerb'], | ||
operation: ['create-instance'], | ||
}, | ||
}, | ||
}, | ||
{ | ||
displayName: 'Token', | ||
name: 'token', | ||
type: 'string', | ||
typeOptions: { password: true }, | ||
default: '', | ||
displayOptions: { | ||
show: { | ||
resource: ['httpVerb'], | ||
operation: ['create-instance'], | ||
}, | ||
}, | ||
}, | ||
{ | ||
displayName: 'Integration', | ||
name: 'integration', | ||
type: 'options', | ||
options: [ | ||
{ | ||
name: 'WHATSAPP-BAILEYS', | ||
value: 'WHATSAPP-BAILEYS', | ||
}, | ||
{ | ||
name: 'WHATSAPP-BUSINESS', | ||
value: 'WHATSAPP-BUSINESS', | ||
}, | ||
], | ||
default: 'WHATSAPP-BAILEYS', | ||
displayOptions: { | ||
show: { | ||
resource: ['httpVerb'], | ||
operation: ['create-instance'], | ||
}, | ||
}, | ||
}, | ||
]; | ||
exports.httpVerbFields = [ | ||
...getOperation, | ||
...deleteOperation, | ||
...createInstanceOperation, | ||
]; | ||
//# sourceMappingURL=HttpVerbDescription.js.map |
{ | ||
"name": "n8n-nodes-evolution-api", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Api não oficial do WhatsApp", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
{ | ||
"name": "n8n-nodes-evolution-api", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
47226
369