{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daon/json-schema/daon-page-process-manage-process-instance-search-result-dto-schema.json",
  "title": "PageProcessManageProcessInstanceSearchResultDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daon-process-instances-api-openapi.yml#/components/schemas/PageProcessManageProcessInstanceSearchResultDto",
  "type": "object",
  "properties": {
    "totalElements": {
      "type": "integer",
      "format": "int64"
    },
    "totalPages": {
      "type": "integer",
      "format": "int32"
    },
    "first": {
      "type": "boolean"
    },
    "sort": {
      "$ref": "#/$defs/SortObject"
    },
    "number": {
      "type": "integer",
      "format": "int32"
    },
    "last": {
      "type": "boolean"
    },
    "numberOfElements": {
      "type": "integer",
      "format": "int32"
    },
    "pageable": {
      "$ref": "#/$defs/PageableObject"
    },
    "size": {
      "type": "integer",
      "format": "int32"
    },
    "content": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProcessManageProcessInstanceSearchResultDto"
      }
    },
    "empty": {
      "type": "boolean"
    }
  },
  "$defs": {
    "PageableObject": {
      "type": "object",
      "properties": {
        "sort": {
          "$ref": "#/$defs/SortObject"
        },
        "pageSize": {
          "type": "integer",
          "format": "int32"
        },
        "pageNumber": {
          "type": "integer",
          "format": "int32"
        },
        "paged": {
          "type": "boolean"
        },
        "unpaged": {
          "type": "boolean"
        },
        "offset": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "ProcessManageProcessInstanceSearchResultDto": {
      "type": "object",
      "description": "Summary of a process instance search result",
      "properties": {
        "processDefnId": {
          "type": "string",
          "description": "The process definition ID"
        },
        "processDefnName": {
          "type": "string",
          "description": "The process definition name"
        },
        "processDefnVersion": {
          "type": "integer",
          "format": "int32",
          "description": "The process definition version"
        },
        "processInstanceId": {
          "type": "string",
          "description": "The process instance ID"
        },
        "applicantName": {
          "type": "string",
          "description": "The applicant's full name"
        },
        "applicantEmail": {
          "type": "string",
          "description": "The applicant's email address"
        },
        "applicantPhoneNumber": {
          "type": "string",
          "description": "The applicant's phone number"
        },
        "processInstanceStatus": {
          "type": "string",
          "description": "The current status of the process instance"
        },
        "processInstanceStatusMapped": {
          "type": "string",
          "description": "The mapped/display status of the process instance"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the process instance was created"
        },
        "lastUpdatedDtm": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the process instance was last updated"
        },
        "elapsedMilliseconds": {
          "type": "integer",
          "format": "int64",
          "description": "The elapsed time in milliseconds since the process instance was created"
        },
        "lastUpdatedBy": {
          "type": "string",
          "description": "The user who last updated the process instance"
        },
        "reviewedBy": {
          "type": "string",
          "description": "The user who reviewed the process instance"
        },
        "fraudState": {
          "type": "string",
          "description": "Fraud review outcome recorded for this process instance. This field is returned only after a fraud state has been reported. Values: FRAUD_CONFIRMED, FRAUD_SUSPECTED, or NO_FRAUD_INDICATED. To change this value, use the fraud-state endpoint for the process instance.",
          "enum": [
            "FRAUD_CONFIRMED",
            "FRAUD_SUSPECTED",
            "NO_FRAUD_INDICATED"
          ],
          "readOnly": true
        },
        "fraudStateLastUpdated": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time, in UTC, when the fraud state was last reported or changed. This field is returned only after a fraud state has been reported.",
          "readOnly": true
        },
        "fraudStateLastUpdatedBy": {
          "type": "string",
          "description": "Identifier of the authenticated caller that last reported or changed the fraud state. This field is returned only after a fraud state has been reported.",
          "readOnly": true
        },
        "fraudStateNote": {
          "type": "string",
          "description": "Optional note supplied with the latest fraud-state report. This field is returned only when a note was provided. To change this value, use the fraud-state endpoint for the process instance.",
          "maxLength": 2000,
          "readOnly": true
        }
      }
    },
    "SortObject": {
      "type": "object",
      "properties": {
        "sorted": {
          "type": "boolean"
        },
        "unsorted": {
          "type": "boolean"
        },
        "empty": {
          "type": "boolean"
        }
      }
    }
  }
}