mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Simplify property types in credentials (#1869)
This commit is contained in:
@@ -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.',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user