import { IStepConnectorForm } from '../catalogo-protocol'; import { icon } from './mock-connectors'; const steps: IStepConnectorForm[] = [ { title: 'S3 CONNECTOR OVERVIEW', description: 'Scraping Connector Service', version: '1.0.0', type: "overview", url: 'https://sysmapsolutions.atlassian.net/wiki/spaces/QKSDOC/pages/690028581/Catalogo', image: icon }, { title: 'S3 CONNECTOR CONFIGURATION', description: 'Finish Configuration Connector', version: '1.0.0', type: "submit", content: { metadata: { init: [], data: { "title": "", "type": "object", "properties": { "taskRetryConfiguration": { "title": "Retry Configuration (somente para fluxo Long Running)", "type": "string" }, "connectorS3BucketName": { "title": "S3 Bucket Name", "type": "string" }, "connectorS3Region": { "title": "S3 Region", "type": "string" }, "connectorS3AccessKey": { "title": "S3 Access Key", "type": "string" }, "connectorS3SecretKey": { "title": "S3 Secret Key", "type": "string" } }, "dependencies": { } } }, ui: { "taskRetryConfiguration": { "ui:widget": "AntdInput", "ui:options": { hint: `
Configuração de retry para task (Referência)
ex: R3/PT1M - 3 repetições com intervalo de 1 min
` } }, "connectorUrl": { "ui:widget": "AntdInput" }, "connectorS3BucketName": { "ui:widget": "AntdInput" }, "connectorS3Region": { "ui:widget": "AntdInput" }, "connectorS3AccessKey": { "ui:widget": "AntdInput" }, "connectorSoapUsername": { "ui:widget": "AntdInput" }, "connectorS3SecretKey": { "ui:widget": "AntdInput" } }, relationships: [], submit: { request: { base: "HOST_GAD_FS", endpoint: { source: '/feature/enrichTask', params: [] }, data: {}, header: {}, method: "post", bodyParser: { formatter: { format: { featureName: "<%= featureName %>", email: "<%= email %>", taskId: "<%= taskId %>", connectorParameters: { connectorType: 's3', taskRetryConfiguration: "<%= retry %>", connectorS3BucketName: "<%= bucketName %>", connectorS3Region: "<%= region %>", connectorS3AccessKey: "<%= accessKey %>", connectorS3SecretKey: "<%= secretKey %>" }, connectorContracts: [] }, params: [ { param: "featureName", source: "context(parentId)" }, { param: "email", source: "context(user.email)" }, { param: "taskId", source: "context(shortId)" }, { param: "retry", source: "formData(taskRetryConfiguration)" }, { param: "bucketName", source: "formData(connectorS3BucketName)" }, { param: "region", source: "formData(connectorS3Region)" }, { param: "accessKey", source: "formData(connectorS3AccessKey)" }, { param: "secretKey", source: "formData(connectorS3SecretKey)" } ] } } }, styles: { text: 'Install', position: 'right' } } } } ] export default steps;