2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-02-11 23:52:36 -08:00
|
|
|
|
|
|
|
export class MoceanApi implements ICredentialType {
|
|
|
|
name = 'moceanApi';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-02-11 23:52:36 -08:00
|
|
|
displayName = 'Mocean Api';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'mocean';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
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',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-02-11 23:52:36 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'API Secret',
|
|
|
|
name: 'mocean-api-secret',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-02-11 23:52:36 -08:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|