import { IStepConnectorForm } from '../catalogo-protocol'; import { icon } from './mock-connectors'; const steps: IStepConnectorForm[] = [ { title: 'SCRAPING 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: 'SCRAPING 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" }, "contractJson": { "title": " ", "type": "string", "default": JSON.stringify({}) } }, "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

` } }, "contractJson": { "ui:widget": "MonacoEditor", "ui:options": { height: '600', language: 'json', theme: 'vs-dark', options: {} } } }, 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: 'scraping', taskRetryConfiguration: "<%= retry %>" }, connectorContracts: [ { ext: "contract", content: "<%= contractJson %>" } ] }, params: [ { param: "featureName", source: "context(parentId)" }, { param: "email", source: "context(user.email)" }, { param: "taskId", source: "context(shortId)" }, { param: "retry", source: "formData(taskRetryConfiguration)" }, { param: "contractJson", source: "encode(formData(contractJson))" } ] } } }, styles: { text: 'Install', position: 'right' } } } } ] export default steps;