FIX: create input generic adjusted to new pipeline format

This commit is contained in:
Gabriel Rosa
2022-09-06 08:38:46 -03:00
parent 5e0a422b35
commit 31e9a07489
6 changed files with 115 additions and 201 deletions
+14 -10
View File
@@ -144,7 +144,7 @@ export class TestConnectionGetColumnsReq {
info: Info;
}
export class TestConnectionGetColumnsRes {
@ApiProperty()
@ApiProperty({ type: [TableColumns] })
tables: TableColumns[];
}
@@ -165,19 +165,23 @@ export class TestConnectionRes {
database_tables: string[];
}
export class CreateInputReq {
@ApiPropertyOptional()
id: string;
@ApiProperty()
plugin: string;
@ApiProperty()
category: string;
@ApiProperty()
credentials: Credentials;
@ApiProperty({ type: [TableColumns] })
tables: TableColumns[];
@ApiProperty()
name: string;
@ApiProperty()
description: string;
@ApiProperty()
plugin: string;
@ApiPropertyOptional()
type: string;
@ApiPropertyOptional({ deprecated: true })
category: string;
@ApiPropertyOptional({ deprecated: true })
credentials: Credentials;
@ApiPropertyOptional({ deprecated: true })
options: InputOptions;
@ApiPropertyOptional()
@ApiPropertyOptional({ deprecated: true })
info: Info;
}