{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zelto/main/json-schema/zelto-customer-transfer-report-schema.json",
  "title": "CustomerTransferReport",
  "x-generated": "2026-10-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zelto-openapi.json#/components/schemas/CustomerTransferReport",
  "type": "object",
  "required": [
    "monitor",
    "window",
    "rows",
    "questions",
    "agents"
  ],
  "properties": {
    "monitor": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "version": {
          "type": "integer"
        },
        "sampleRate": {
          "type": "number"
        }
      }
    },
    "window": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "format": "date"
        },
        "to": {
          "type": "string",
          "format": "date"
        }
      },
      "required": [
        "from",
        "to"
      ]
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string"
          },
          "disposition": {
            "type": "string"
          },
          "patientType": {
            "type": "string"
          },
          "task": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "evaluated": {
            "type": "integer"
          }
        }
      }
    },
    "agents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "calls": {
            "type": "integer"
          },
          "evaluated": {
            "type": "integer"
          },
          "avoidable": {
            "type": "integer"
          },
          "abandoned": {
            "type": "integer"
          },
          "completed": {
            "type": "integer"
          },
          "taskKnown": {
            "type": "integer"
          },
          "dispositionKnown": {
            "type": "integer"
          },
          "avoidableRate": {
            "type": [
              "number",
              "null"
            ]
          },
          "completionRate": {
            "type": [
              "number",
              "null"
            ]
          },
          "incomplete": {
            "type": "integer"
          },
          "failureRate": {
            "type": [
              "number",
              "null"
            ]
          }
        }
      }
    },
    "questions": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          }
        }
      }
    }
  }
}