{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "EntityAction",
    "type": "object",
    "additionalProperties": false,
    "description": "Entity Action Event Schema",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "ENTITY_ACTION"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "EntityAction"
            ]
        },
        "reference_id": {
            "type": "string",
            "description": "The reference id of search from which this entity was generated"
        },
        "entity_id": {
            "type": "string",
            "description": "Entity ID of the result that was taken action"
        },
        "action": {
            "$ref": "/resources/schema/analytics/client/v4/type/EntityActionType.json",
            "description": "Entity Action Type: Click, Call, Direction"
        },
        "display": {
            "$ref": "/resources/schema/analytics/client/v4/type/EntityDisplayType.json",
            "description": "Where entity was displayed when entity was taken action: Map_View, List_View"
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "reference_id",
        "entity_id",
        "action",
        "display"
    ]
}