2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-09-17 14:20:12 -07:00
|
|
|
|
2021-07-14 15:02:30 -07:00
|
|
|
export class TaigaApi implements ICredentialType {
|
|
|
|
name = 'taigaApi';
|
|
|
|
displayName = 'Taiga API';
|
2020-09-21 02:11:02 -07:00
|
|
|
documentationUrl = 'taiga';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-09-17 14:20:12 -07:00
|
|
|
{
|
|
|
|
displayName: 'Username',
|
|
|
|
name: 'username',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-09-17 14:20:12 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-09-17 14:20:12 -07:00
|
|
|
default: '',
|
|
|
|
},
|
2021-07-14 15:02:30 -07:00
|
|
|
{
|
|
|
|
displayName: 'Environment',
|
|
|
|
name: 'environment',
|
|
|
|
type: 'options',
|
|
|
|
default: 'cloud',
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Cloud',
|
|
|
|
value: 'cloud',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Self-Hosted',
|
|
|
|
value: 'selfHosted',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-09-17 14:20:12 -07:00
|
|
|
{
|
|
|
|
displayName: 'URL',
|
|
|
|
name: 'url',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-09-17 14:20:12 -07:00
|
|
|
default: '',
|
|
|
|
placeholder: 'https://taiga.yourdomain.com',
|
2021-07-14 15:02:30 -07:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-07-24 08:36:17 -07:00
|
|
|
environment: ['selfHosted'],
|
2021-07-14 15:02:30 -07:00
|
|
|
},
|
|
|
|
},
|
2020-09-17 14:20:12 -07:00
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|