{
  "meta": {
    "$_GET": [
      {
        "type": "text",
        "name": "sort"
      },
      {
        "type": "text",
        "name": "dir"
      }
    ]
  },
  "exec": {
    "steps": [
      {
        "name": "",
        "module": "auth",
        "action": "restrict",
        "options": {
          "provider": "security",
          "permissions": [
            "Active"
          ]
        }
      },
      {
        "name": "list",
        "module": "dbconnector",
        "action": "select",
        "options": {
          "connection": "db",
          "sql": {
            "type": "select",
            "columns": [
              {
                "table": "collection_type",
                "column": "id"
              },
              {
                "table": "collection_type",
                "column": "name"
              }
            ],
            "params": [],
            "table": {
              "name": "collection_type"
            },
            "primary": "id",
            "joins": [],
            "wheres": {
              "condition": "AND",
              "rules": [
                {
                  "id": "collection_type.deleted",
                  "field": "collection_type.deleted",
                  "type": "boolean",
                  "operator": "equal",
                  "value": false,
                  "data": {
                    "table": "collection_type",
                    "column": "deleted",
                    "type": "boolean",
                    "columnObj": {
                      "type": "boolean",
                      "default": "0",
                      "primary": false,
                      "nullable": false,
                      "name": "deleted"
                    }
                  },
                  "operation": "="
                }
              ],
              "conditional": null,
              "valid": true
            },
            "query": "select `id`, `name` from `collection_type` where `collection_type`.`deleted` = ?"
          }
        },
        "output": true,
        "meta": [
          {
            "type": "number",
            "name": "id"
          },
          {
            "type": "text",
            "name": "name"
          }
        ],
        "outputType": "array"
      }
    ]
  }
}