{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/damdafa-com/json-schema/damdafa-com-export-job-schema.json",
  "title": "ExportJob",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mockupper-damdafa-com-openapi.json#/components/schemas/ExportJob",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "userId": {
      "type": "string",
      "title": "Userid"
    },
    "projectId": {
      "type": "string",
      "title": "Projectid"
    },
    "versionId": {
      "type": "string",
      "title": "Versionid"
    },
    "groupId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Groupid"
    },
    "groupIds": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Groupids"
    },
    "locales": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Locales"
    },
    "platforms": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/Platform"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Platforms"
    },
    "screenshotIds": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Screenshotids"
    },
    "status": {
      "$ref": "#/$defs/ExportStatus",
      "default": "pending"
    },
    "progress": {
      "type": "integer",
      "title": "Progress",
      "default": 0
    },
    "downloadUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Downloadurl"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error"
    },
    "logs": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Logs"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "title": "Createdat"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "title": "Updatedat"
    }
  },
  "type": "object",
  "required": [
    "id",
    "userId",
    "projectId",
    "versionId",
    "createdAt",
    "updatedAt"
  ],
  "$defs": {
    "ExportStatus": {
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "completed",
        "failed"
      ],
      "title": "ExportStatus"
    },
    "Platform": {
      "type": "string",
      "enum": [
        "iphone",
        "ipad",
        "androidPhone",
        "androidTablet"
      ],
      "title": "Platform"
    }
  }
}