mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
c49fcdeed6
* 🎉 Register node and credentials * 🎨 Add SVG icon * 🎨 Fix SVG icon size and positioning * ⚡ Add API credentials * ⚡ Add description for object * ⚡ Add generic functions * ⚡ Add preliminary node * ⚡ Improvements * ⚡ Minor improvements Co-authored-by: ricardo <ricardoespinoza105@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
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',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
];
|
|
}
|