{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/kibo-commerce/main/json-schema/kibo-commerce-export-job-schema.json",
  "title": "ExportJob",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kibo-commerce-importexport-openapi.yml#/components/schemas/ExportJob",
  "properties": {
    "auditInfo": {
      "$ref": "#/$defs/AuditInfo"
    },
    "configuration": {
      "nullable": true
    },
    "contextOverride": {
      "$ref": "#/$defs/ContextOverride"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "exportDate": {
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "files": {
      "items": {
        "$ref": "#/$defs/DropLocation"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "format": {
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "type": [
        "string",
        "null"
      ]
    },
    "isComplete": {
      "type": "boolean"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "requester": {
      "type": [
        "string",
        "null"
      ]
    },
    "resources": {
      "items": {
        "$ref": "#/$defs/ExportResource"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "retryAttempts": {
      "format": "int32",
      "type": "integer"
    },
    "status": {
      "type": [
        "string",
        "null"
      ]
    },
    "statusDetails": {
      "type": [
        "string",
        "null"
      ]
    },
    "statusMessage": {
      "type": [
        "string",
        "null"
      ]
    },
    "tenant": {
      "format": "int32",
      "type": "integer"
    }
  },
  "type": "object",
  "$defs": {
    "AuditInfo": {
      "properties": {
        "createBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "createDate": {
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        },
        "updateBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "updateDate": {
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ContextOverride": {
      "properties": {
        "catalog": {
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "currency": {
          "type": [
            "string",
            "null"
          ]
        },
        "locale": {
          "type": [
            "string",
            "null"
          ]
        },
        "masterCatalog": {
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "site": {
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "DropLocation": {
      "properties": {
        "fileName": {
          "type": [
            "string",
            "null"
          ]
        },
        "fileType": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "locationType": {
          "type": [
            "string",
            "null"
          ]
        },
        "uri": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ExportResource": {
      "properties": {
        "configuration": {
          "nullable": true
        },
        "fields": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "filter": {
          "type": [
            "string",
            "null"
          ]
        },
        "format": {
          "type": [
            "string",
            "null"
          ]
        },
        "isComplete": {
          "type": "boolean"
        },
        "resource": {
          "type": [
            "string",
            "null"
          ]
        },
        "stateDetails": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "statusMessage": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    }
  }
}