{
  "$ref": "#/definitions/Events",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "Events": {
      "additionalProperties": false,
      "properties": {
        "actiononselected": {
          "additionalProperties": false,
          "properties": {
            "key": {
              "type": "string"
            },
            "selectedItems": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "key",
            "selectedItems"
          ],
          "type": "object"
        },
        "addItem": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            }
          },
          "required": [
            "id"
          ],
          "type": "object"
        },
        "cellclick": {
          "additionalProperties": false,
          "properties": {
            "cellId": {
              "type": "string"
            },
            "rowId": {
              "type": "string"
            }
          },
          "required": [
            "rowId",
            "cellId"
          ],
          "type": "object"
        },
        "changeFilter": {
          "additionalProperties": false,
          "properties": {
            "filter": {
              "$ref": "#/definitions/IFilter"
            }
          },
          "required": [
            "filter"
          ],
          "type": "object"
        },
        "changePageSize": {
          "additionalProperties": false,
          "properties": {
            "page_size": {
              "type": "number"
            }
          },
          "required": [
            "page_size"
          ],
          "type": "object"
        },
        "changeSort": {
          "additionalProperties": false,
          "properties": {
            "sortedBy": {
              "type": "string"
            },
            "sortedDirection": {
              "enum": [
                "asc",
                "desc",
                "default"
              ],
              "type": "string"
            }
          },
          "required": [
            "sortedDirection"
          ],
          "type": "object"
        },
        "clickonrow": {
          "additionalProperties": false,
          "properties": {
            "itemId": {
              "type": "string"
            }
          },
          "required": [
            "itemId"
          ],
          "type": "object"
        },
        "clipboardCopyText": {
          "additionalProperties": false,
          "properties": {
            "text": {
              "type": "string"
            }
          },
          "required": [
            "text"
          ],
          "type": "object"
        },
        "confirmActionModal": {
          "additionalProperties": false,
          "properties": {
            "action": {
              "type": "string"
            },
            "confirm": {
              "type": "boolean"
            },
            "id": {
              "type": "string"
            }
          },
          "required": [
            "action",
            "id",
            "confirm"
          ],
          "type": "object"
        },
        "confirmActionModalForm": {
          "additionalProperties": false,
          "properties": {
            "action": {
              "type": "string"
            },
            "confirm": {
              "type": "boolean"
            },
            "id": {
              "type": "string"
            }
          },
          "required": [
            "action",
            "id",
            "confirm"
          ],
          "type": "object"
        },
        "pageChange": {
          "additionalProperties": false,
          "description": "`page` is zero-based (first page = `0`).",
          "properties": {
            "page": {
              "type": "number"
            },
            "pages": {
              "type": "number"
            }
          },
          "required": [
            "page",
            "pages"
          ],
          "type": "object"
        },
        "removeFilter": {
          "additionalProperties": false,
          "properties": {
            "key": {
              "type": "string"
            }
          },
          "required": [
            "key"
          ],
          "type": "object"
        },
        "showConfirmModal": {
          "additionalProperties": false,
          "properties": {
            "action": {
              "type": "string"
            },
            "detail": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "show": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "show"
              ],
              "type": "object"
            }
          },
          "required": [
            "action",
            "detail"
          ],
          "type": "object"
        },
        "showConfirmModalForm": {
          "additionalProperties": false,
          "properties": {
            "action": {
              "type": "string"
            },
            "detail": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "show": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "show"
              ],
              "type": "object"
            }
          },
          "required": [
            "action",
            "detail"
          ],
          "type": "object"
        },
        "tableCustomActionClick": {
          "additionalProperties": false,
          "properties": {
            "action": {
              "type": "string"
            },
            "itemId": {
              "type": "string"
            }
          },
          "required": [
            "itemId",
            "action"
          ],
          "type": "object"
        },
        "tableaction": {
          "additionalProperties": false,
          "properties": {
            "action": {
              "type": "string"
            },
            "itemId": {
              "type": "string"
            }
          },
          "required": [
            "itemId",
            "action"
          ],
          "type": "object"
        }
      },
      "required": [
        "pageChange",
        "changePageSize",
        "removeFilter",
        "changeFilter",
        "tableCustomActionClick",
        "tableaction",
        "cellclick",
        "actiononselected",
        "clickonrow",
        "changeSort",
        "showConfirmModal",
        "showConfirmModalForm",
        "confirmActionModalForm",
        "confirmActionModal",
        "clipboardCopyText",
        "addItem"
      ],
      "type": "object"
    },
    "IFilter": {
      "additionalProperties": false,
      "properties": {
        "end": {
          "format": "date-time",
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "start": {
          "format": "date-time",
          "type": "string"
        },
        "type": {
          "enum": [
            "datetime",
            "string",
            "enum",
            "number",
            "ip"
          ],
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "required": [
        "key"
      ],
      "type": "object"
    }
  }
}
