mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-17 18:14:05 -08:00
49 lines
855 B
TypeScript
49 lines
855 B
TypeScript
|
import {
|
||
|
ICredentialType,
|
||
|
INodeProperties,
|
||
|
} from 'n8n-workflow';
|
||
|
|
||
|
export class SeaTableApi implements ICredentialType {
|
||
|
name = 'seaTableApi';
|
||
|
displayName = 'SeaTable API';
|
||
|
documentationUrl = 'seaTable';
|
||
|
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: 'API Token (of a Base)',
|
||
|
name: 'token',
|
||
|
type: 'string',
|
||
|
default: '',
|
||
|
},
|
||
|
];
|
||
|
}
|