n8n/packages/nodes-base/credentials/MoceanApi.credentials.ts

30 lines
659 B
TypeScript
Raw Normal View History

import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-02-11 23:52:36 -08:00
export class MoceanApi implements ICredentialType {
name = 'moceanApi';
2020-02-11 23:52:36 -08:00
displayName = 'Mocean Api';
documentationUrl = 'mocean';
properties: INodeProperties[] = [
2020-02-11 23:52:36 -08:00
// The credentials to get from user and save encrypted.
// Properties can be defined exactly in the same way
// as node properties.
{
displayName: 'API Key',
name: 'mocean-api-key',
type: 'string',
typeOptions: { password: true },
2020-02-11 23:52:36 -08:00
default: '',
},
{
displayName: 'API Secret',
name: 'mocean-api-secret',
type: 'string',
typeOptions: { password: true },
2020-02-11 23:52:36 -08:00
default: '',
},
];
}