mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 00:24:07 -08:00
58 lines
1,001 B
TypeScript
58 lines
1,001 B
TypeScript
|
import {
|
||
|
ICredentialType,
|
||
|
INodeProperties,
|
||
|
NodePropertyTypes,
|
||
|
} from 'n8n-workflow';
|
||
|
|
||
|
export class FormIoApi implements ICredentialType {
|
||
|
name = 'formIoApi';
|
||
|
displayName = 'Form.io API';
|
||
|
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',
|
||
|
type: 'string' as NodePropertyTypes,
|
||
|
default: '',
|
||
|
},
|
||
|
{
|
||
|
displayName: 'Password',
|
||
|
name: 'password',
|
||
|
type: 'string' as NodePropertyTypes,
|
||
|
typeOptions: {
|
||
|
password: true,
|
||
|
},
|
||
|
default: '',
|
||
|
},
|
||
|
];
|
||
|
}
|