mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-11 07:04:06 -08:00
ecd3bbfcd3
* 👕 Autofix creds lint issues * 👕 Manually fix creds lint issues * 👕 Fix indentation * ✏️ Fix typo * 👕 Fix indentation * ✏️ Fix typo
49 lines
851 B
TypeScript
49 lines
851 B
TypeScript
import {
|
|
ICredentialType,
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export class MonicaCrmApi implements ICredentialType {
|
|
name = 'monicaCrmApi';
|
|
displayName = 'Monica CRM API';
|
|
documentationUrl = 'monicaCrm';
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Environment',
|
|
name: 'environment',
|
|
type: 'options',
|
|
default: 'cloudHosted',
|
|
options: [
|
|
{
|
|
name: 'Cloud-Hosted',
|
|
value: 'cloudHosted',
|
|
},
|
|
{
|
|
name: 'Self-Hosted',
|
|
value: 'selfHosted',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
displayName: 'Self-Hosted Domain',
|
|
name: 'domain',
|
|
type: 'string',
|
|
default: '',
|
|
placeholder: 'https://www.mydomain.com',
|
|
displayOptions: {
|
|
show: {
|
|
environment: [
|
|
'selfHosted',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'API Token',
|
|
name: 'apiToken',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
];
|
|
}
|