n8n/packages/nodes-base/credentials/ElasticSearchApi.credentials.ts
Iván Ovejero 1afd492b0f 🔨 Fix casing
2021-05-27 09:44:48 +02:00

37 lines
841 B
TypeScript

import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class ElasticsearchApi implements ICredentialType {
name = 'elasticsearchApi';
displayName = 'Elasticsearch API';
documentationUrl = 'elasticsearch';
properties = [
{
displayName: 'Username',
name: 'username',
type: 'string' as NodePropertyTypes,
default: '',
placeholder: 'hello@n8n.io',
},
{
displayName: 'Password',
name: 'password',
type: 'string' as NodePropertyTypes,
typeOptions: {
password: true,
},
default: '',
},
{
displayName: 'Base URL',
name: 'baseUrl',
type: 'string' as NodePropertyTypes,
default: '',
placeholder: 'https://a-b-optimized-deployment-ffc9df.es.us-west1.gcp.cloud.es.io:9243',
description: 'Referred to as \'endpoint\' in the Elasticsearch dashboard.',
},
];
}