diff --git a/package-lock.json b/package-lock.json index 6007a70..c46cadb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@aws-sdk/lib-dynamodb": "^3.414.0", "@aws-sdk/signature-v4": "^3.370.0", "@dadosfera/dadosfera-logs": "^1.0.0-beta.4", - "@dadosfera/protospack-v2": "file:../protospack-v2/dadosfera-protospack-v2-3.40.0-beta.15-cdc.0.tgz", + "@dadosfera/protospack-v2": "file:../protospack-v2/dadosfera-protospack-v2-3.40.0-beta.15-cdc.1.tgz", "@grpc/grpc-js": "^1.9.3", "@grpc/proto-loader": "^0.7.9", "@nestjs/cli": "^9.5.0", @@ -1735,9 +1735,9 @@ } }, "node_modules/@dadosfera/protospack-v2": { - "version": "3.40.0-beta.15-cdc.0", - "resolved": "file:../protospack-v2/dadosfera-protospack-v2-3.40.0-beta.15-cdc.0.tgz", - "integrity": "sha512-ySucTiWmZ9eiw/uujSY8MFaj2+V/J+42y54P737PlrIXJgTSlLZalhwyKNkHuwo1Az8Uj5gC1J9AN4/sn9mIyg==", + "version": "3.40.0-beta.15-cdc.1", + "resolved": "file:../protospack-v2/dadosfera-protospack-v2-3.40.0-beta.15-cdc.1.tgz", + "integrity": "sha512-ANHb7b7HcjXl3FMI5HRJUVGzJWTOyiepxHGPs9z1NDiXtP3KxFPZuSQBNXuJ78R/0MEGm9ALeEi4/8wyQ+fOFw==", "license": "ISC", "dependencies": { "@grpc/grpc-js": "^1.9.3", diff --git a/package.json b/package.json index 6af93ac..027c754 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@aws-sdk/lib-dynamodb": "^3.414.0", "@aws-sdk/signature-v4": "^3.370.0", "@dadosfera/dadosfera-logs": "^1.0.0-beta.4", - "@dadosfera/protospack-v2": "file:../protospack-v2/dadosfera-protospack-v2-3.40.0-beta.15-cdc.0.tgz", + "@dadosfera/protospack-v2": "file:../protospack-v2/dadosfera-protospack-v2-3.40.0-beta.15-cdc.1.tgz", "@grpc/grpc-js": "^1.9.3", "@grpc/proto-loader": "^0.7.9", "@nestjs/cli": "^9.5.0", diff --git a/src/modules/connection-test/dto/connection-test.ts b/src/modules/connection-test/dto/connection-test.ts index fd9ae91..f7b1228 100644 --- a/src/modules/connection-test/dto/connection-test.ts +++ b/src/modules/connection-test/dto/connection-test.ts @@ -100,11 +100,20 @@ export class ConnectionTestListTablesReq { schema: string; } +export class ConnectionTestListTablesEntry { + @ApiProperty() + table_name: string; + @ApiProperty({ type: [String] }) + primary_keys: string[]; +} + export class ConnectionTestListTablesRes { @ApiProperty() operation_result: boolean; @ApiProperty() table_list: string[]; + @ApiProperty({ type: [ConnectionTestListTablesEntry] }) + tables: ConnectionTestListTablesEntry[]; } export class GetTableMetadataReq {