2023-01-27 03:22:44 -08:00
|
|
|
import type { 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';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-07-14 15:02:30 -07:00
|
|
|
displayName = 'Taiga API';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-09-21 02:11:02 -07:00
|
|
|
documentationUrl = 'taiga';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
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',
|
2022-11-01 09:41:45 -07:00
|
|
|
typeOptions: { password: true },
|
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
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|