n8n/packages/nodes-base/credentials/MarketstackApi.credentials.ts
Iván Ovejero fa05d7557b
Simplify more property types in credentials classes (#2211)
*  Simplify more property types

* 👕 Fix lint
2021-10-07 23:07:56 +02:00

26 lines
498 B
TypeScript

import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class MarketstackApi implements ICredentialType {
name = 'marketstackApi';
displayName = 'Marketstack API';
documentationUrl = 'marketstack';
properties: INodeProperties[] = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
default: '',
},
{
displayName: 'Use HTTPS',
name: 'useHttps',
type: 'boolean',
default: false,
description: 'Use HTTPS (paid plans only).',
},
];
}