{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/kibo-commerce/main/json-schema/kibo-commerce-batch-job-item-result-set-schema.json",
  "title": "BatchJobItemResultSet",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kibo-commerce-importexport-openapi.yml#/components/schemas/BatchJobItemResultSet",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/BatchJobItem"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "pageCount": {
      "format": "int32",
      "type": "integer"
    },
    "pageSize": {
      "format": "int32",
      "type": "integer"
    },
    "startIndex": {
      "format": "int32",
      "type": "integer"
    },
    "totalCount": {
      "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"
    },
    "BatchJobItem": {
      "properties": {
        "auditInfo": {
          "$ref": "#/$defs/AuditInfo"
        },
        "batchJobCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "catalogId": {
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "correlationId": {
          "type": [
            "string",
            "null"
          ]
        },
        "currencyCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "dataViewMode": {
          "$ref": "#/$defs/DataViewModeType"
        },
        "errors": {
          "items": {
            "$ref": "#/$defs/BatchJobItemError"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "httpMethod": {
          "type": [
            "string",
            "null"
          ]
        },
        "itemKey": {
          "type": [
            "string",
            "null"
          ]
        },
        "localeCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "masterCatalog": {
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "processingStatus": {
          "$ref": "#/$defs/BatchJobItemProcessingStatuses"
        },
        "query": {
          "type": [
            "string",
            "null"
          ]
        },
        "resourceType": {
          "type": [
            "string",
            "null"
          ]
        },
        "retryCount": {
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "siteId": {
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "status": {
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "uri": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "BatchJobItemError": {
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ]
        },
        "field": {
          "type": [
            "string",
            "null"
          ]
        },
        "itemKeys": {
          "items": {
            "$ref": "#/$defs/StringStringKeyValuePair"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "longMessage": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        },
        "subErrors": {
          "items": {
            "$ref": "#/$defs/BatchJobItemError"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "BatchJobItemProcessingStatuses": {
      "enum": [
        "Waiting",
        "Running",
        "ValidationFailed",
        "Failed",
        "Completed",
        "Cancelled"
      ],
      "type": "string"
    },
    "DataViewModeType": {
      "enum": [
        0,
        1,
        2
      ],
      "format": "int32",
      "type": "integer"
    },
    "StringStringKeyValuePair": {
      "properties": {
        "key": {
          "type": [
            "string",
            "null"
          ]
        },
        "value": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    }
  }
}