2022-09-30 04:18:14 -07:00
|
|
|
import {
|
|
|
|
IAuthenticateGeneric,
|
|
|
|
ICredentialTestRequest,
|
|
|
|
ICredentialType,
|
|
|
|
INodeProperties,
|
|
|
|
} from 'n8n-workflow';
|
:sparkles: Add Wufoo-Trigger node (#597)
* Generic functions, credentials, interface, logo, triggernode
* TSLint tabs rule, request error handling, webhook done
On hold until Wufoo responds with sandbox account
* Removed test logging, fixed various errors, cleaned up
* Sorted imports, adjusted data display, removed anys, tslint import sort rule
* RAAAAAW data
* :zap: Fix logo and improve formatting
* :zap: Improvements
* :zap: Minor improvements to WuFoo-Trigger
Co-authored-by: Rupenieks <ru@myos,co>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2020-10-01 00:07:55 -07:00
|
|
|
|
|
|
|
export class WufooApi implements ICredentialType {
|
|
|
|
name = 'wufooApi';
|
|
|
|
displayName = 'Wufoo API';
|
2020-10-06 02:20:56 -07:00
|
|
|
documentationUrl = 'wufoo';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
:sparkles: Add Wufoo-Trigger node (#597)
* Generic functions, credentials, interface, logo, triggernode
* TSLint tabs rule, request error handling, webhook done
On hold until Wufoo responds with sandbox account
* Removed test logging, fixed various errors, cleaned up
* Sorted imports, adjusted data display, removed anys, tslint import sort rule
* RAAAAAW data
* :zap: Fix logo and improve formatting
* :zap: Improvements
* :zap: Minor improvements to WuFoo-Trigger
Co-authored-by: Rupenieks <ru@myos,co>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2020-10-01 00:07:55 -07:00
|
|
|
{
|
|
|
|
displayName: 'API Key',
|
|
|
|
name: 'apiKey',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2022-11-01 09:41:45 -07:00
|
|
|
typeOptions: { password: true },
|
:sparkles: Add Wufoo-Trigger node (#597)
* Generic functions, credentials, interface, logo, triggernode
* TSLint tabs rule, request error handling, webhook done
On hold until Wufoo responds with sandbox account
* Removed test logging, fixed various errors, cleaned up
* Sorted imports, adjusted data display, removed anys, tslint import sort rule
* RAAAAAW data
* :zap: Fix logo and improve formatting
* :zap: Improvements
* :zap: Minor improvements to WuFoo-Trigger
Co-authored-by: Rupenieks <ru@myos,co>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2020-10-01 00:07:55 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Subdomain',
|
|
|
|
name: 'subdomain',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
:sparkles: Add Wufoo-Trigger node (#597)
* Generic functions, credentials, interface, logo, triggernode
* TSLint tabs rule, request error handling, webhook done
On hold until Wufoo responds with sandbox account
* Removed test logging, fixed various errors, cleaned up
* Sorted imports, adjusted data display, removed anys, tslint import sort rule
* RAAAAAW data
* :zap: Fix logo and improve formatting
* :zap: Improvements
* :zap: Minor improvements to WuFoo-Trigger
Co-authored-by: Rupenieks <ru@myos,co>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2020-10-01 00:07:55 -07:00
|
|
|
default: '',
|
2020-10-01 05:01:39 -07:00
|
|
|
},
|
:sparkles: Add Wufoo-Trigger node (#597)
* Generic functions, credentials, interface, logo, triggernode
* TSLint tabs rule, request error handling, webhook done
On hold until Wufoo responds with sandbox account
* Removed test logging, fixed various errors, cleaned up
* Sorted imports, adjusted data display, removed anys, tslint import sort rule
* RAAAAAW data
* :zap: Fix logo and improve formatting
* :zap: Improvements
* :zap: Minor improvements to WuFoo-Trigger
Co-authored-by: Rupenieks <ru@myos,co>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2020-10-01 00:07:55 -07:00
|
|
|
];
|
2022-09-30 04:18:14 -07:00
|
|
|
|
|
|
|
authenticate: IAuthenticateGeneric = {
|
|
|
|
type: 'generic',
|
|
|
|
properties: {
|
|
|
|
auth: {
|
|
|
|
username: '={{$credentials.apiKey}}',
|
|
|
|
password: 'not-needed',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
test: ICredentialTestRequest = {
|
|
|
|
request: {
|
|
|
|
baseURL: '=https://{{$credentials.subdomain}}.wufoo.com',
|
|
|
|
url: '/api/v3/forms.json',
|
|
|
|
},
|
|
|
|
};
|
:sparkles: Add Wufoo-Trigger node (#597)
* Generic functions, credentials, interface, logo, triggernode
* TSLint tabs rule, request error handling, webhook done
On hold until Wufoo responds with sandbox account
* Removed test logging, fixed various errors, cleaned up
* Sorted imports, adjusted data display, removed anys, tslint import sort rule
* RAAAAAW data
* :zap: Fix logo and improve formatting
* :zap: Improvements
* :zap: Minor improvements to WuFoo-Trigger
Co-authored-by: Rupenieks <ru@myos,co>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2020-10-01 00:07:55 -07:00
|
|
|
}
|