Simplify property types in credentials (#1869)

This commit is contained in:
Iván Ovejero
2021-06-12 18:39:55 +02:00
committed by GitHub
parent d095588ac7
commit 5481dc3d25
248 changed files with 1211 additions and 1210 deletions

View File

@@ -1,6 +1,6 @@
import {
ICredentialType,
NodePropertyTypes,
INodeProperties,
} from 'n8n-workflow';
@@ -8,11 +8,11 @@ export class TwilioApi implements ICredentialType {
name = 'twilioApi';
displayName = 'Twilio API';
documentationUrl = 'twilio';
properties = [
properties: INodeProperties[] = [
{
displayName: 'Auth Type',
name: 'authType',
type: 'options' as NodePropertyTypes,
type: 'options',
default: 'authToken',
options: [
{
@@ -28,13 +28,13 @@ export class TwilioApi implements ICredentialType {
{
displayName: 'Account SID',
name: 'accountSid',
type: 'string' as NodePropertyTypes,
type: 'string',
default: '',
},
{
displayName: 'Auth Token',
name: 'authToken',
type: 'string' as NodePropertyTypes,
type: 'string',
default: '',
displayOptions: {
show: {
@@ -47,7 +47,7 @@ export class TwilioApi implements ICredentialType {
{
displayName: 'API Key SID',
name: 'apiKeySid',
type: 'string' as NodePropertyTypes,
type: 'string',
default: '',
displayOptions: {
show: {
@@ -60,7 +60,7 @@ export class TwilioApi implements ICredentialType {
{
displayName: 'API Key Secret',
name: 'apiKeySecret',
type: 'string' as NodePropertyTypes,
type: 'string',
typeOptions: {
password: true,
},