🔀 Merge branch 'mcolomer-uProc_integration'

This commit is contained in:
Jan Oberhauser 2021-03-25 23:45:34 +01:00
commit 46138f7f1e
8 changed files with 10 additions and 43 deletions

View file

@ -20,7 +20,10 @@ export async function uprocApiRequest(this: IHookFunctions | IExecuteFunctions |
}
const token = Buffer.from(`${credentials.email}:${credentials.apiKey}`).toString('base64');
const options: OptionsWithUri = {
headers: { Authorization: `Basic ${token}` },
headers: {
Authorization: `Basic ${token}`,
'User-agent': 'n8n',
},
method,
qs,
body,

View file

@ -1,6 +1,6 @@
import {
IDataObject,
INodeProperties,
INodeProperties
} from 'n8n-workflow';
import {

View file

@ -1,36 +1 @@
export const groups = {
groups: [{
'translated': 'Audio',
'name': 'audio',
}, {
'translated': 'Communication',
'name': 'communication',
}, {
'translated': 'Company',
'name': 'company',
}, {
'translated': 'Finance',
'name': 'finance',
}, {
'translated': 'Geographical',
'name': 'geographic',
}, {
'translated': 'Image',
'name': 'image',
}, {
'translated': 'Internet',
'name': 'internet',
}, {
'translated': 'Personal',
'name': 'personal',
}, {
'translated': 'Product',
'name': 'product',
}, {
'translated': 'Security',
'name': 'security',
}, {
'translated': 'Text',
'name': 'text',
}],
};
export const groups = {groups: [{'translated':'Audio','name':'audio'},{'translated':'Communication','name':'communication'},{'translated':'Company','name':'company'},{'translated':'Finance','name':'finance'},{'translated':'Geographical','name':'geographic'},{'translated':'Image','name':'image'},{'translated':'Internet','name':'internet'},{'translated':'Personal','name':'personal'},{'translated':'Product','name':'product'},{'translated':'Security','name':'security'},{'translated':'Text','name':'text'}]};

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
import {
IDataObject,
INodeProperties,
INodeProperties
} from 'n8n-workflow';
import {

View file

@ -75,7 +75,7 @@ export class UProc implements INodeType {
displayName: 'Data Webhook',
name: 'dataWebhook',
type: 'string',
description: 'URL to send tool response when tool has resolved your request. You can create your own webhook at <a href="https://beeceptor.com" target="_blank">Beeceptor</a>, <a href="https://www.integromat.com/" target="_blank">Integromat</a>, <a href="https://zapier.com/" target="_blank">Zapier</a> or <a href="https://n8n.io/" target="_blank">n8n</a>',
description: 'URL to send tool response when tool has resolved your request. You can create your own webhook at en <a href="https://beeceptor.com" target="_blank">Beeceptor</a>, <a href="https://www.integromat.com/" target="_blank">Integromat</a>, <a href="https://zapier.com/" target="_blank">Zapier</a> or <a href="https://n8n.io/" target="_blank">n8n</a>',
default: '',
},
],
@ -92,7 +92,6 @@ export class UProc implements INodeType {
const tool = this.getNodeParameter('tool', 0) as string;
const additionalOptions = this.getNodeParameter('additionalOptions', 0) as IDataObject;
const dataWebhook = additionalOptions.dataWebhook as string;
interface LooseObject {

View file

@ -17,4 +17,4 @@
}
]
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB