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,32 +1,32 @@
import { ICredentialType, NodePropertyTypes } from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class MicrosoftSql implements ICredentialType {
name = 'microsoftSql';
displayName = 'Microsoft SQL';
documentationUrl = 'microsoftSql';
properties = [
properties: INodeProperties[] = [
{
displayName: 'Server',
name: 'server',
type: 'string' as NodePropertyTypes,
type: 'string',
default: 'localhost',
},
{
displayName: 'Database',
name: 'database',
type: 'string' as NodePropertyTypes,
type: 'string',
default: 'master',
},
{
displayName: 'User',
name: 'user',
type: 'string' as NodePropertyTypes,
type: 'string',
default: 'sa',
},
{
displayName: 'Password',
name: 'password',
type: 'string' as NodePropertyTypes,
type: 'string',
typeOptions: {
password: true,
},
@@ -35,25 +35,25 @@ export class MicrosoftSql implements ICredentialType {
{
displayName: 'Port',
name: 'port',
type: 'number' as NodePropertyTypes,
type: 'number',
default: 1433,
},
{
displayName: 'Domain',
name: 'domain',
type: 'string' as NodePropertyTypes,
type: 'string',
default: '',
},
{
displayName: 'TLS',
name: 'tls',
type: 'boolean' as NodePropertyTypes,
type: 'boolean',
default: true,
},
{
displayName: 'Connect Timeout',
name: 'connectTimeout',
type: 'number' as NodePropertyTypes,
type: 'number',
default: 15000,
description: 'Connection timeout in ms.',
},