FIX: Ref Catalogo new functions models

This commit is contained in:
Victor Radael
2022-10-17 14:38:31 -03:00
parent e9fdd0285b
commit 81921a7eb2
3 changed files with 99 additions and 5 deletions
+9 -4
View File
@@ -21,7 +21,12 @@ import { CatalogService } from './catalog.service';
import { DadosferaLogger } from '@dadosfera/dadosfera-logs';
import { PackTheMetadata } from 'src/utils/ PackTheMetadata';
import { RequestUser, User } from 'src/authentication/user.decorator';
import { ICatalogAllResponse } from './dtos';
import {
ICatalogAllResponse,
IColumnsMetadataResponse,
IDocsResponse,
IPreviewResponse,
} from './dtos';
@ApiTags('Catalog')
@Controller('catalog')
@@ -170,7 +175,7 @@ export class CatalogController {
@User() user: RequestUser,
@Headers('Dadosfera-Lang') language,
@Param('id') id,
) {
): Promise<IColumnsMetadataResponse> {
const { customer_name, customer_id, user_id, username } = user;
const data_asset_type = id.split('-')[0];
@@ -206,7 +211,7 @@ export class CatalogController {
@User() user: RequestUser,
@Headers('Dadosfera-lang') language,
@Param('id') id,
) {
): Promise<IPreviewResponse> {
const { customer_name, customer_id, user_id, username } = user;
const data_asset_type = id.split('-')[0];
@@ -241,7 +246,7 @@ export class CatalogController {
@User() user: RequestUser,
@Headers('Dadosfera-Lang') language,
@Param('id') id,
) {
): Promise<IDocsResponse> {
const { customer_name, customer_id, user_id, username } = user;
const data_asset_type = id.split('-')[0];