26 lines
781 B
TypeScript
26 lines
781 B
TypeScript
import { INodeParams, INodeCredential } from '../src/Interface'
|
|
|
|
class AirtableApi implements INodeCredential {
|
|
label: string
|
|
name: string
|
|
description: string
|
|
inputs: INodeParams[]
|
|
|
|
constructor() {
|
|
this.label = 'Airtable API'
|
|
this.name = 'airtableApi'
|
|
this.description =
|
|
'Refer to <a target="_blank" href="https://support.airtable.com/docs/creating-and-using-api-keys-and-access-tokens">official guide</a> on how to get accessToken on Airtable'
|
|
this.inputs = [
|
|
{
|
|
label: 'Access Token',
|
|
name: 'accessToken',
|
|
type: 'password',
|
|
placeholder: '<AIRTABLE_ACCESS_TOKEN>'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
module.exports = { credClass: AirtableApi }
|