n8n/packages/nodes-base/credentials/BaserowApi.credentials.ts
Iván Ovejero b058aee6c1
Add Baserow node (#1938)
* Add Baserow node

*  Add JWT method to credentials

*  Refactor Baserow node

* 🔨 Refactor to add continueOnFail

*  Extract table ID from URL

* ✏️ Reword descriptions per feedback

* 🔥 Remove API token auth per feedback

* 🔨 Reformat for readability

* 💡 Fix issues identified by nodelinter

*  Add columns param to create and update

*  Refactor JWT token retrieval

*  Add resource loaders

*  Improvements

*  Improve types

*  Clean up descriptions and comments

*  Make minor UX improvements

*  Update input data description

* 🔨 Refactor data to send for create and update

*  Add text to description

*  Small improvements

*  Change parameter names and descriptions

Co-authored-by: Jeremie Pardou-Piquemal <571533+jrmi@users.noreply.github.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-07-12 13:26:21 +02:00

35 lines
613 B
TypeScript

import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
// https://api.baserow.io/api/redoc/#section/Authentication
export class BaserowApi implements ICredentialType {
name = 'baserowApi';
displayName = 'Baserow API';
properties: INodeProperties[] = [
{
displayName: 'Host',
name: 'host',
type: 'string',
default: 'https://api.baserow.io',
},
{
displayName: 'Username',
name: 'username',
type: 'string',
default: '',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
default: '',
typeOptions: {
password: true,
},
},
];
}