{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cm-com/json-schema/cm-com-import-schema.json",
  "title": "Import",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-imports-api-openapi.yml#/components/schemas/Import",
  "type": "object",
  "properties": {
    "uuid": {
      "type": "string",
      "maxLength": 36
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "importedRecords": {
      "type": "number",
      "readOnly": true
    },
    "failedRecords": {
      "type": "number",
      "readOnly": true
    },
    "errorDetails": {
      "readOnly": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "completedAt": {
      "format": "date-time",
      "type": "string",
      "readOnly": true
    },
    "status": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "SCHEDULED",
        "RUNNING",
        "COMPLETED",
        "COMPLETED_WITH_FAILURES",
        "FAILED"
      ]
    },
    "type": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "TICKET",
        "EVENT",
        "VENUE",
        "PRODUCT"
      ]
    },
    "isVisible": {
      "type": "boolean",
      "description": "If set to true the upload will be displayed under imports in the dashboard.",
      "default": false
    }
  },
  "required": [
    "uuid",
    "name",
    "importedRecords",
    "failedRecords",
    "errorDetails",
    "completedAt",
    "status",
    "type",
    "isVisible"
  ]
}