{
  "product": "happytree-node.workflow",
  "formatVersion": 1,
  "blueprint": {
    "name": "E06 \u00B7 01 Selecionar compras para pesquisa",
    "nodes": [
      {
        "id": "fonte",
        "type": "files.read-json",
        "settings": {
          "sourceId": "__htn_configurar__"
        },
        "x": 0,
        "y": 0
      },
      {
        "id": "tabela",
        "type": "tables.from-json",
        "settings": {},
        "x": 290,
        "y": 0
      },
      {
        "id": "autorizados",
        "type": "tables.filter",
        "settings": {
          "comparison": "Igual a",
          "value": "sim",
          "ignoreCase": false,
          "column": "contato_autorizado"
        },
        "x": 580,
        "y": 0
      },
      {
        "id": "entregues",
        "type": "tables.filter",
        "settings": {
          "comparison": "Igual a",
          "value": "entregue",
          "ignoreCase": false,
          "column": "status"
        },
        "x": 870,
        "y": 0
      },
      {
        "id": "janela-inicio",
        "type": "tables.filter",
        "settings": {
          "comparison": "Maior ou igual",
          "value": "5",
          "ignoreCase": false,
          "column": "dias_desde_compra"
        },
        "x": 1160,
        "y": 0
      },
      {
        "id": "janela-fim",
        "type": "tables.filter",
        "settings": {
          "comparison": "Menor ou igual",
          "value": "10",
          "ignoreCase": false,
          "column": "dias_desde_compra"
        },
        "x": 0,
        "y": 180
      },
      {
        "id": "unicos",
        "type": "tables.distinct",
        "settings": {
          "keys": "compra_id",
          "keep": "Primeiro",
          "ignoreCase": false
        },
        "x": 290,
        "y": 180
      },
      {
        "id": "painel",
        "type": "bi.explore",
        "settings": {
          "title": "P\u00FAblico eleg\u00EDvel para a pesquisa",
          "definition": "{\u0022filters\u0022: [{\u0022column\u0022: \u0022etapa\u0022, \u0022title\u0022: \u0022Etapa\u0022, \u0022kind\u0022: \u0022category\u0022}], \u0022panels\u0022: [{\u0022title\u0022: \u0022Compras eleg\u00EDveis\u0022, \u0022kind\u0022: \u0022indicator\u0022, \u0022operation\u0022: \u0022count\u0022, \u0022valueColumn\u0022: \u0022\u0022, \u0022categoryColumn\u0022: \u0022\u0022, \u0022seriesColumn\u0022: \u0022\u0022, \u0022unit\u0022: \u0022\u0022}, {\u0022title\u0022: \u0022Compras por etapa\u0022, \u0022kind\u0022: \u0022bar\u0022, \u0022operation\u0022: \u0022count\u0022, \u0022valueColumn\u0022: \u0022\u0022, \u0022categoryColumn\u0022: \u0022etapa\u0022, \u0022seriesColumn\u0022: \u0022\u0022, \u0022unit\u0022: \u0022\u0022}]}"
        },
        "x": 580,
        "y": 180
      },
      {
        "id": "html-claro",
        "type": "bi.export-html",
        "settings": {
          "name": "publico-pos-venda-claro.html",
          "theme": "Claro",
          "interactive": true
        },
        "x": 870,
        "y": 180
      },
      {
        "id": "html-escuro",
        "type": "bi.export-html",
        "settings": {
          "name": "publico-pos-venda-escuro.html",
          "theme": "Escuro",
          "interactive": true
        },
        "x": 1160,
        "y": 180
      }
    ],
    "edges": [
      {
        "source": "fonte",
        "target": "tabela",
        "order": 0
      },
      {
        "source": "tabela",
        "target": "autorizados",
        "order": 0
      },
      {
        "source": "autorizados",
        "target": "entregues",
        "order": 0
      },
      {
        "source": "entregues",
        "target": "janela-inicio",
        "order": 0
      },
      {
        "source": "janela-inicio",
        "target": "janela-fim",
        "order": 0
      },
      {
        "source": "janela-fim",
        "target": "unicos",
        "order": 0
      },
      {
        "source": "unicos",
        "target": "painel",
        "order": 0
      },
      {
        "source": "painel",
        "target": "html-claro",
        "order": 0
      },
      {
        "source": "painel",
        "target": "html-escuro",
        "order": 0
      }
    ],
    "schemaVersion": 1
  },
  "requiredBindings": [
    {
      "nodeId": "fonte",
      "nodeName": "Ler arquivo JSON",
      "property": "sourceId",
      "title": "Fonte do projeto",
      "kind": "project-source"
    }
  ]
}