Fix typings

This commit is contained in:
Adria Navarro 2023-06-28 15:16:47 +01:00
parent b6f9ae762d
commit ec3f962d3c
4 changed files with 19 additions and 17 deletions

View File

@ -90,6 +90,7 @@ const SCHEMA: Integration = {
},
authType: {
type: DatasourceFieldType.SELECT,
display: "Advanced auth",
config: { options: [MSSQLConfigAuthType.ACTIVE_DIRECTORY] },
},
adConfig: {

View File

@ -26,25 +26,25 @@ const SCHEMA: Integration = {
},
datasource: {
host: {
type: "string",
type: DatasourceFieldType.STRING,
required: true,
default: "localhost",
},
port: {
type: "number",
type: DatasourceFieldType.NUMBER,
required: true,
default: 6379,
},
username: {
type: "string",
type: DatasourceFieldType.STRING,
required: false,
},
password: {
type: "password",
type: DatasourceFieldType.PASSWORD,
required: false,
},
db: {
type: "number",
type: DatasourceFieldType.NUMBER,
required: false,
display: "DB",
default: 0,

View File

@ -29,24 +29,24 @@ const SCHEMA: Integration = {
},
datasource: {
region: {
type: "string",
type: DatasourceFieldType.STRING,
required: false,
default: "us-east-1",
},
accessKeyId: {
type: "password",
type: DatasourceFieldType.PASSWORD,
required: true,
},
secretAccessKey: {
type: "password",
type: DatasourceFieldType.PASSWORD,
required: true,
},
endpoint: {
type: "string",
type: DatasourceFieldType.STRING,
required: false,
},
signatureVersion: {
type: "string",
type: DatasourceFieldType.STRING,
required: false,
default: "v4",
},

View File

@ -1,6 +1,7 @@
import {
ConnectionInfo,
DatasourceFeature,
DatasourceFieldType,
Integration,
QueryType,
SqlQuery,
@ -27,30 +28,30 @@ const SCHEMA: Integration = {
},
datasource: {
account: {
type: "string",
type: DatasourceFieldType.STRING,
required: true,
},
username: {
type: "string",
type: DatasourceFieldType.STRING,
required: true,
},
password: {
type: "password",
type: DatasourceFieldType.PASSWORD,
required: true,
},
role: {
type: "string",
type: DatasourceFieldType.STRING,
},
warehouse: {
type: "string",
type: DatasourceFieldType.STRING,
required: true,
},
database: {
type: "string",
type: DatasourceFieldType.STRING,
required: true,
},
schema: {
type: "string",
type: DatasourceFieldType.STRING,
required: true,
},
},