2021-08-21 03:53:06 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
|
|
|
INodeProperties,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class FormIoApi implements ICredentialType {
|
|
|
|
name = 'formIoApi';
|
|
|
|
displayName = 'Form.io API';
|
2021-09-21 10:43:45 -07:00
|
|
|
documentationUrl = 'formIoTrigger';
|
2021-08-21 03:53:06 -07:00
|
|
|
properties: INodeProperties[] = [
|
|
|
|
{
|
|
|
|
displayName: 'Environment',
|
|
|
|
name: 'environment',
|
|
|
|
type: 'options',
|
|
|
|
default: 'cloudHosted',
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Cloud-hosted',
|
|
|
|
value: 'cloudHosted',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Self-hosted',
|
|
|
|
value: 'selfHosted',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Self-hosted domain',
|
|
|
|
name: 'domain',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
placeholder: 'https://www.mydomain.com',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
environment: [
|
|
|
|
'selfHosted',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Email',
|
|
|
|
name: 'email',
|
2021-10-07 14:07:56 -07:00
|
|
|
type: 'string',
|
2021-08-21 03:53:06 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
2021-10-07 14:07:56 -07:00
|
|
|
type: 'string',
|
2021-08-21 03:53:06 -07:00
|
|
|
typeOptions: {
|
|
|
|
password: true,
|
|
|
|
},
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|