⚡ fixes
This commit is contained in:
@@ -5,77 +5,23 @@ import {
|
||||
|
||||
export class JiraSoftwareCloudApi implements ICredentialType {
|
||||
name = 'jiraSoftwareCloudApi';
|
||||
displayName = 'Jira SW API';
|
||||
displayName = 'Jira SW Cloud API';
|
||||
properties = [
|
||||
{
|
||||
displayName: 'Jira Version',
|
||||
name: 'jiraVersion',
|
||||
type: 'options' as NodePropertyTypes,
|
||||
options: [
|
||||
{
|
||||
name: 'Cloud',
|
||||
value: 'cloud',
|
||||
},
|
||||
{
|
||||
name: 'Server (Self Hosted)',
|
||||
value: 'server',
|
||||
},
|
||||
],
|
||||
default: 'cloud',
|
||||
},
|
||||
{
|
||||
displayName: 'Email',
|
||||
name: 'email',
|
||||
displayOptions: {
|
||||
show: {
|
||||
jiraVersion: [
|
||||
'cloud',
|
||||
],
|
||||
},
|
||||
},
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'API Token',
|
||||
name: 'apiToken',
|
||||
displayOptions: {
|
||||
show: {
|
||||
jiraVersion: [
|
||||
'cloud',
|
||||
],
|
||||
},
|
||||
},
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Password',
|
||||
name: 'password',
|
||||
displayOptions: {
|
||||
show: {
|
||||
jiraVersion: [
|
||||
'server',
|
||||
],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
password: true,
|
||||
},
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Domain',
|
||||
name: 'domain',
|
||||
displayOptions: {
|
||||
show: {
|
||||
jiraVersion: [
|
||||
'cloud',
|
||||
'server',
|
||||
],
|
||||
},
|
||||
},
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
},
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
import {
|
||||
ICredentialType,
|
||||
NodePropertyTypes,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class JiraSoftwareServerApi implements ICredentialType {
|
||||
name = 'jiraSoftwareServerApi';
|
||||
displayName = 'Jira SW Server API';
|
||||
properties = [
|
||||
{
|
||||
displayName: 'Email',
|
||||
name: 'email',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Password',
|
||||
name: 'password',
|
||||
typeOptions: {
|
||||
password: true,
|
||||
},
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Domain',
|
||||
name: 'domain',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user