diff --git a/docsfera.external.json b/docsfera.external.json index c0b9955..6950953 100644 --- a/docsfera.external.json +++ b/docsfera.external.json @@ -241,7 +241,16 @@ }, "get": { "operationId": "ConnectionController_getConnectionDetails", - "parameters": [], + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "", @@ -449,7 +458,16 @@ "/inputs/{id}": { "get": { "operationId": "InputsController_findOne", - "parameters": [], + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "", @@ -646,6 +664,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -678,6 +704,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -710,6 +744,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -749,6 +791,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -786,6 +836,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -823,6 +881,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -985,6 +1051,14 @@ "type": "string" } }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, { "name": "shared", "required": true, @@ -1025,6 +1099,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "requestBody": { @@ -1125,6 +1207,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -1167,6 +1257,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -1209,6 +1307,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { diff --git a/docsfera.json b/docsfera.json index 43f40a7..07d3949 100644 --- a/docsfera.json +++ b/docsfera.json @@ -690,7 +690,16 @@ }, "get": { "operationId": "ConnectionController_getConnectionDetails", - "parameters": [], + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "", @@ -2574,7 +2583,16 @@ "/inputs/{id}": { "get": { "operationId": "InputsController_findOne", - "parameters": [], + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "", @@ -2819,6 +2837,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -2851,6 +2877,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -2883,6 +2917,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -2922,6 +2964,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -2959,6 +3009,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -2999,6 +3057,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -3036,6 +3102,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -3217,6 +3291,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -3247,7 +3329,16 @@ "summary": "", "deprecated": true, "description": "This method is deprecated. Please use route /pipelinesV2/start/:id instead", - "parameters": [], + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], "responses": { "201": { "description": "", @@ -3279,7 +3370,16 @@ "summary": "", "deprecated": true, "description": "This method is deprecated. Please use route /pipelinesV2/:id/status instead", - "parameters": [], + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "", @@ -3350,7 +3450,16 @@ "/transformations/{id}": { "get": { "operationId": "TransformationsController_findOne", - "parameters": [], + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "", @@ -3658,6 +3767,14 @@ "type": "string" } }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, { "name": "shared", "required": true, @@ -3698,6 +3815,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "requestBody": { @@ -3798,6 +3923,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -3833,6 +3966,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -3875,6 +4016,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { @@ -3917,6 +4066,14 @@ ], "type": "string" } + }, + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "type": "string" + } } ], "responses": { diff --git a/src/modules/catalog/catalog.controller.ts b/src/modules/catalog/catalog.controller.ts index 5f8f96b..f3b1d1b 100644 --- a/src/modules/catalog/catalog.controller.ts +++ b/src/modules/catalog/catalog.controller.ts @@ -183,7 +183,7 @@ export class CatalogController { ) async getDataAsset( @User() user: RequestUser, - @Param('id') id, + @Param('id') id: string, @Query('shared') shared?: 'true', ) { const { username, user_id, customer_id, customer_name, permissions } = user; @@ -199,7 +199,7 @@ export class CatalogController { let has_permission = false; const metadata = PackTheMetadata({ username, - user_id: undefined, + user_id, customer_id, customer_name, }); @@ -240,7 +240,7 @@ export class CatalogController { async getDataAssetRls( @User() user: RequestUser, @Headers() headers, - @Param('id') id, + @Param('id') id: string, ) { const { username, user_id, customer_id, customer_name, permissions } = user; @@ -295,7 +295,7 @@ export class CatalogController { async getDataAssetColumnsMetadata( @User() user: RequestUser, @Language() language: LanguageEnum, - @Param('id') id, + @Param('id') id: string, ): Promise { const { customer_name, customer_id, user_id, username } = user; @@ -326,7 +326,7 @@ export class CatalogController { async getDataAssetPreview( @User() user: RequestUser, @Language() language: LanguageEnum, - @Param('id') id, + @Param('id') id: string, ): Promise { const { customer_name, customer_id, user_id, username } = user; @@ -356,7 +356,7 @@ export class CatalogController { async getDataAssetDocs( @User() user: RequestUser, @Language() language: LanguageEnum, - @Param('id') id, + @Param('id') id: string, ): Promise { const { customer_name, customer_id, user_id, username } = user; @@ -386,7 +386,7 @@ export class CatalogController { async updateDataAsset( @User() user: RequestUser, @Language() language: LanguageEnum, - @Param('id') data_asset_id, + @Param('id') data_asset_id: string, @Body() body: IUpdateDataRequest, ): Promise { const { customer_id, customer_name, user_id, username } = user; diff --git a/src/modules/connection/connection.controller.ts b/src/modules/connection/connection.controller.ts index 255daba..d0231b5 100644 --- a/src/modules/connection/connection.controller.ts +++ b/src/modules/connection/connection.controller.ts @@ -164,7 +164,7 @@ export class ConnectionController { async getConnectionDetails( @Language() language: LanguageEnum, @User() user: RequestUser, - @Param('id') id, + @Param('id') id: string, @Query() queries, ): Promise { this.logger.info('/connections - Get Connection Details'); diff --git a/src/modules/inputs/inputs.controller.ts b/src/modules/inputs/inputs.controller.ts index 0145bc3..82ddd36 100644 --- a/src/modules/inputs/inputs.controller.ts +++ b/src/modules/inputs/inputs.controller.ts @@ -123,8 +123,7 @@ export class InputsController { } @Get('/:id') - async findOne(@Body() body, @Param() params) { - const { id } = params; + async findOne(@Body() body, @Param('id') id: string) { this.logger.info(`/input/${id} - ON FIND ONE ROUTE`, { user: body.info.user_id, customer: body.info.customer, diff --git a/src/modules/pipelines/pipelines.controller.ts b/src/modules/pipelines/pipelines.controller.ts index 0d967a2..24806c2 100644 --- a/src/modules/pipelines/pipelines.controller.ts +++ b/src/modules/pipelines/pipelines.controller.ts @@ -49,8 +49,7 @@ export class PipelinesController { description: 'This method is deprecated. Please use route /pipelinesV2/start/:id instead', }) - async activate(@Param() params, @Body() body) { - const { id } = params; + async activate(@Param('id') id: string, @Body() body) { const { info } = body; this.logger.info( @@ -72,8 +71,7 @@ export class PipelinesController { description: 'This method is deprecated. Please use route /pipelinesV2/:id/status instead', }) - async getPipelineStatus(@Body() body, @Param() params) { - const { id } = params; + async getPipelineStatus(@Body() body, @Param('id') id: string) { body.id = id; this.logger.info( diff --git a/src/modules/pipelinesV2/pipelines.controller.ts b/src/modules/pipelinesV2/pipelines.controller.ts index 5d5a6b7..9e75e93 100644 --- a/src/modules/pipelinesV2/pipelines.controller.ts +++ b/src/modules/pipelinesV2/pipelines.controller.ts @@ -170,7 +170,7 @@ export class PipelinesController { async getPipelineproperties( @Language() language: LanguageEnum, @User() user: RequestUser, - @Param('id') id, + @Param('id') id: string, ) { this.logger.info('PipelinesController - getPipelineproperties', { user }); const metadata = PackTheMetadata({ ...user, language: language }); @@ -181,7 +181,7 @@ export class PipelinesController { async getPipelineObjects( @Language() language: LanguageEnum, @User() user: RequestUser, - @Param('id') id, + @Param('id') id: string, ) { this.logger.info('PipelinesController - getPipelineObjects', { user }); const metadata = PackTheMetadata({ ...user, language: language }); @@ -189,8 +189,7 @@ export class PipelinesController { } @Get(':id/status') - async getPipelineStatus(@Body() body, @Param() params) { - const { id } = params; + async getPipelineStatus(@Body() body, @Param('id') id: string) { body.id = id; this.logger.info( @@ -210,7 +209,7 @@ export class PipelinesController { async findOne( @Language() language: LanguageEnum, @User() user: RequestUser, - @Param('id') id, + @Param('id') id: string, ): Promise { this.logger.info('PipelinesController - findOne', { user }); @@ -251,7 +250,7 @@ export class PipelinesController { async update( @Language() language: LanguageEnum, @Body() updatePipelineDto, - @Param('id') id, + @Param('id') id: string, @User() user: RequestUser, ) { this.logger.info('PipelinesController - update', { user }); @@ -290,7 +289,7 @@ export class PipelinesController { async updateDeprecated( @Language() language: LanguageEnum, @Body() updatePipelineDto, - @Param('id') id, + @Param('id') id: string, @User() user: RequestUser, ) { this.logger.info('PipelinesController - put', { user }); @@ -302,9 +301,8 @@ export class PipelinesController { @Delete(':id') @ApiNoContentResponse() @HttpCode(HttpStatus.NO_CONTENT) - async delete(@Param() params, @User() user: RequestUser) { + async delete(@Param('id') id: string, @User() user: RequestUser) { this.logger.info('PipelinesController - delete', { user }); - const { id } = params; const metadata = PackTheMetadata({ customer_id: user.customer_id, customer_name: user.customer_name, @@ -416,8 +414,7 @@ export class PipelinesController { @ApiInternalOnlyEndpoint() @Post('start/:id') - async activate(@Param() params, @Body() body) { - const { id } = params; + async activate(@Param('id') id: string, @Body() body) { const { info } = body; this.logger.info( diff --git a/src/modules/transformations/transformations.controller.ts b/src/modules/transformations/transformations.controller.ts index 4cedddb..8b844e7 100644 --- a/src/modules/transformations/transformations.controller.ts +++ b/src/modules/transformations/transformations.controller.ts @@ -72,8 +72,7 @@ export class TransformationsController { @Get('/:id') @RequireSomePermission(pipelinePermissions.GET) - async findOne(@Body() data, @Param() params) { - const { id } = params; + async findOne(@Body() data, @Param('id') id: string) { this.logger.info(`/transformation/${id} - ON Find One ROUTE`, { user: data.info.user_id, customer: data.info.customer,