{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-execution-job-status-result-schema.json",
  "title": "ExecutionJobStatusResult",
  "description": "The status of the execution job.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-commerce-cloud-catalogs-api-openapi.yml#/components/schemas/ExecutionJobStatusResult",
  "required": [
    "jobStatus"
  ],
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "The type of execution job.",
      "enum": [
        "evaluation",
        "execution"
      ]
    },
    "assignedCount": {
      "type": "integer",
      "description": "Indicates total number of products assigned by the execution job."
    },
    "unassignedCount": {
      "type": "integer",
      "description": "Indicates total number of products unassigned by the execution job."
    },
    "matchedCount": {
      "type": "integer",
      "description": "Indicates total number of products evaluated and matched by the evaluation job."
    },
    "jobStatus": {
      "type": "string",
      "description": "Indicates the status of the rules execution job (that is, indicates whether the job completed successfully or an error occurred).",
      "enum": [
        "inProgress",
        "success",
        "error",
        "unavailable"
      ]
    },
    "message": {
      "type": "string",
      "description": "A description of any errors, failures, and exceptions that caused the job to fail."
    },
    "lastRunDate": {
      "type": "string",
      "description": "The date that the rules categorization job was last run for given catalog and category.",
      "format": "date-time",
      "maxLength": 30
    },
    "productIds": {
      "items": {
        "type": "string",
        "maxLength": 256
      },
      "type": "array",
      "description": "The list of matched product IDs returned by the execution job."
    },
    "limit": {
      "$ref": "#/$defs/Limit"
    },
    "offset": {
      "$ref": "#/$defs/Offset"
    }
  },
  "$defs": {
    "Limit": {
      "default": 10,
      "minimum": 1,
      "format": "int32",
      "description": "Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).",
      "type": "integer"
    },
    "Offset": {
      "default": 0,
      "minimum": 0,
      "format": "int32",
      "description": "The zero-based index of the first hit/data to include in the result.",
      "type": "integer"
    }
  }
}