diff --git a/docsfera.json b/docsfera.json index cc4bfd0..1b0f444 100644 --- a/docsfera.json +++ b/docsfera.json @@ -4714,6 +4714,65 @@ ] } }, + "/platform/pipelines/{pipelineId}/pipeline_run/{runId}/jobs": { + "get": { + "operationId": "PlatformApiController_getPipelineRunJobs", + "summary": "Get pipeline run jobs", + "description": "Proxies platform-api DB-backed job runs and returns `{ jobs: [...] }`.", + "parameters": [ + { + "name": "pipelineId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, + { + "name": "runId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "DB-backed job runs for the selected pipeline run.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "jobs": { + "type": "array", + "items": { + "type": "object" + } + } + }, + "required": [ + "jobs" + ] + } + } + } + } + }, + "tags": [ + "Platform API" + ], + "security": [ + { + "access-token": [] + }, + { + "access-token": [] + } + ] + } + }, "/platform/jobs/{jobId}/input": { "put": { "operationId": "PlatformApiController_updateJobInput", @@ -5662,6 +5721,48 @@ ] } }, + "/catalog/custom-properties": { + "get": { + "operationId": "CatalogController_getCustomPropertyDefinitions", + "parameters": [ + { + "name": "dadosfera-lang", + "in": "header", + "required": false, + "schema": { + "enum": [ + "pt-br", + "en-us" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + } + }, + "tags": [ + "Catalog" + ], + "security": [ + { + "access-token": [] + }, + { + "access-token": [] + } + ] + } + }, "/catalog/data-asset/{id}": { "get": { "operationId": "CatalogController_getDataAsset", @@ -7412,6 +7513,94 @@ ] } }, + "/connection-test/refresh-catalog": { + "post": { + "operationId": "ConnectionTestController_refreshCatalog", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RefreshCatalogReq" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RefreshCatalogRes" + } + } + } + }, + "202": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RefreshCatalogRes" + } + } + } + } + }, + "tags": [ + "Connection Test" + ], + "security": [ + { + "access-token": [] + }, + { + "access-token": [] + } + ] + } + }, + "/connection-test/refresh-catalog/status": { + "post": { + "operationId": "ConnectionTestController_refreshCatalogStatus", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RefreshCatalogStatusReq" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RefreshCatalogRes" + } + } + } + } + }, + "tags": [ + "Connection Test" + ], + "security": [ + { + "access-token": [] + }, + { + "access-token": [] + } + ] + } + }, "/oauth/hubspot": { "get": { "operationId": "OauthController_oauthHubspot", @@ -11303,6 +11492,37 @@ "docs" ] }, + "CustomPropertyDto": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "text", + "number", + "date", + "boolean" + ] + }, + "color": { + "type": "string" + }, + "emoji": { + "type": "string" + } + }, + "required": [ + "key", + "value", + "type" + ] + }, "IUpdateDataRequest": { "type": "object", "properties": { @@ -11331,6 +11551,12 @@ }, "docs": { "type": "string" + }, + "custom_properties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomPropertyDto" + } } }, "required": [ @@ -11760,11 +11986,15 @@ }, "type": { "type": "string" + }, + "is_primary_key": { + "type": "boolean" } }, "required": [ "name", - "type" + "type", + "is_primary_key" ] }, "TableMetadataDto": { @@ -11810,6 +12040,79 @@ "tables_metadata" ] }, + "RefreshCatalogReq": { + "type": "object", + "properties": { + "connection_id": { + "type": "string" + }, + "plugin": { + "type": "string", + "enum": [ + "oracle", + "mysql", + "postgresql", + "sqlserver" + ] + } + }, + "required": [ + "connection_id", + "plugin" + ] + }, + "RefreshCatalogRes": { + "type": "object", + "properties": { + "operation_result": { + "type": "boolean" + }, + "status": { + "type": "string" + }, + "session_id": { + "type": "string" + }, + "date": { + "type": "string" + } + }, + "required": [ + "operation_result", + "status", + "session_id", + "date" + ] + }, + "RefreshCatalogStatusReq": { + "type": "object", + "properties": { + "connection_id": { + "type": "string" + }, + "plugin": { + "type": "string", + "enum": [ + "oracle", + "mysql", + "postgresql", + "sqlserver" + ] + }, + "session_id": { + "type": "string" + }, + "date": { + "type": "string" + } + }, + "required": [ + "connection_id", + "plugin", + "session_id", + "date" + ] + }, "INote": { "type": "object", "properties": { diff --git a/src/modules/catalog/catalog.service.ts b/src/modules/catalog/catalog.service.ts index 1c4d54d..d50e819 100644 --- a/src/modules/catalog/catalog.service.ts +++ b/src/modules/catalog/catalog.service.ts @@ -843,6 +843,7 @@ class CatalogService implements OnModuleInit { customer_name: customer_name, data_asset_type: 'dataset', column_metadata: [], + data_preview: '', }, ], },