2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-04-30 05:03:36 -07:00
|
|
|
|
|
|
|
export class AgileCrmApi implements ICredentialType {
|
|
|
|
name = 'agileCrmApi';
|
|
|
|
displayName = 'AgileCRM API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'agileCrm';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-04-30 05:03:36 -07:00
|
|
|
{
|
|
|
|
displayName: 'Email',
|
|
|
|
name: 'email',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2022-06-20 07:54:01 -07:00
|
|
|
placeholder: 'name@email.com',
|
2020-04-30 05:03:36 -07:00
|
|
|
default: '',
|
2020-05-22 12:17:27 -07:00
|
|
|
},
|
|
|
|
{
|
2020-04-30 05:03:36 -07:00
|
|
|
displayName: 'API Key',
|
|
|
|
name: 'apiKey',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2022-11-01 09:41:45 -07:00
|
|
|
typeOptions: { password: true },
|
2020-04-30 05:03:36 -07:00
|
|
|
default: '',
|
|
|
|
},
|
2020-05-22 01:22:00 -07:00
|
|
|
{
|
|
|
|
displayName: 'Subdomain',
|
|
|
|
name: 'subdomain',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-05-22 01:22:00 -07:00
|
|
|
default: '',
|
2020-05-22 12:17:27 -07:00
|
|
|
placeholder: 'example',
|
2022-07-24 08:36:17 -07:00
|
|
|
description:
|
|
|
|
'If the domain is https://example.agilecrm.com "example" would have to be entered',
|
2020-05-22 01:22:00 -07:00
|
|
|
},
|
2020-04-30 05:03:36 -07:00
|
|
|
];
|
|
|
|
}
|