n8n/packages/nodes-base/credentials/BubbleApi.credentials.ts
Iván Ovejero c49fcdeed6
Add Bubble.io Node (#1493)
* 🎉 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>
2021-03-04 01:09:31 +01:00

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',
],
},
},
},
];
}