mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
71 lines
1.2 KiB
TypeScript
71 lines
1.2 KiB
TypeScript
|
import {
|
||
|
ICredentialType,
|
||
|
NodePropertyTypes,
|
||
|
} from 'n8n-workflow';
|
||
|
|
||
|
export class BubbleApi implements ICredentialType {
|
||
|
name = 'bubbleApi';
|
||
|
displayName = 'Bubble API';
|
||
|
documentationUrl = 'bubble';
|
||
|
properties = [
|
||
|
{
|
||
|
displayName: 'API Token',
|
||
|
name: 'apiToken',
|
||
|
type: 'string' as NodePropertyTypes,
|
||
|
default: '',
|
||
|
},
|
||
|
{
|
||
|
displayName: 'App Name',
|
||
|
name: 'appName',
|
||
|
type: 'string' as NodePropertyTypes,
|
||
|
default: '',
|
||
|
},
|
||
|
{
|
||
|
displayName: 'Environment',
|
||
|
name: 'environment',
|
||
|
type: 'options' as NodePropertyTypes,
|
||
|
default: 'live',
|
||
|
options: [
|
||
|
{
|
||
|
name: 'Development',
|
||
|
value: 'development',
|
||
|
},
|
||
|
{
|
||
|
name: 'Live',
|
||
|
value: 'live',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
{
|
||
|
displayName: 'Hosting',
|
||
|
name: 'hosting',
|
||
|
type: 'options' as NodePropertyTypes,
|
||
|
default: 'bubbleHosted',
|
||
|
options: [
|
||
|
{
|
||
|
name: 'Bubble-hosted',
|
||
|
value: 'bubbleHosted',
|
||
|
},
|
||
|
{
|
||
|
name: 'Self-hosted',
|
||
|
value: 'selfHosted',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
{
|
||
|
displayName: 'Domain',
|
||
|
name: 'domain',
|
||
|
type: 'string' as NodePropertyTypes,
|
||
|
placeholder: 'mydomain.com',
|
||
|
default: '',
|
||
|
displayOptions: {
|
||
|
show: {
|
||
|
hosting: [
|
||
|
'selfHosted',
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
];
|
||
|
}
|