{
  "type": "object",
  "properties": {
    "highlightRanges": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/HighlightRange"
      }
    },
    "config": {
      "$ref": "#/definitions/ComponentConfigDefault"
    },
    "datasets": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/DatasetDefaultConfig"
      }
    },
    "mode": {
      "enum": [
        "GROUPED",
        "SINGLE"
      ],
      "type": "string"
    },
    "hideHeader": {
      "type": "boolean"
    },
    "hideRefresh": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "reportOptions": {
      "$ref": "#/definitions/ReportOptions"
    },
    "reportMode": {
      "type": "boolean"
    },
    "stateCb": {
      "type": "object"
    },
    "calendarType": {
      "const": "CALENDAR_445",
      "type": "string"
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "referenceTime": {
      "type": "string"
    },
    "instantFrom": {
      "$ref": "#/definitions/JSJoda.Instant"
    },
    "instantTo": {
      "$ref": "#/definitions/JSJoda.Instant"
    },
    "instantReferenceTime": {
      "$ref": "#/definitions/JSJoda.Instant"
    },
    "legacyForcedLtTimezone": {
      "type": "boolean"
    }
  },
  "definitions": {
    "HighlightRange": {
      "type": "object",
      "properties": {
        "min": {
          "$ref": "#/definitions/HighlightRangeValue"
        },
        "max": {
          "$ref": "#/definitions/HighlightRangeValue"
        },
        "color": {
          "type": "string"
        },
        "bgColor": {
          "type": "string"
        },
        "colorEntireRow": {
          "type": "boolean"
        }
      },
      "required": [
        "bgColor",
        "color"
      ]
    },
    "HighlightRangeValue": {
      "type": "object",
      "properties": {
        "value": {
          "type": "number"
        },
        "inclusive": {
          "type": "boolean"
        }
      },
      "required": [
        "inclusive",
        "value"
      ]
    },
    "ComponentConfigDefault": {
      "type": "object",
      "properties": {
        "alignStartTo": {
          "enum": [
            "DAYS",
            "HALFHOUR",
            "HOURS",
            "MILLIS",
            "MINUTES",
            "MONTHS",
            "SECONDS",
            "WEEKS",
            "YEARS"
          ],
          "type": "string"
        },
        "startOffsetUnits": {
          "enum": [
            "DAYS",
            "HALFHOUR",
            "HOURS",
            "MILLIS",
            "MINUTES",
            "MONTHS",
            "SECONDS",
            "WEEKS",
            "YEARS"
          ],
          "type": "string"
        },
        "startOffset": {
          "type": "number"
        },
        "lagUnits": {
          "enum": [
            "DAYS",
            "HALFHOUR",
            "HOURS",
            "MILLIS",
            "MINUTES",
            "MONTHS",
            "SECONDS",
            "WEEKS",
            "YEARS"
          ],
          "type": "string"
        },
        "lagOffset": {
          "type": "number"
        },
        "leadUnits": {
          "enum": [
            "DAYS",
            "HALFHOUR",
            "HOURS",
            "MILLIS",
            "MINUTES",
            "MONTHS",
            "SECONDS",
            "WEEKS",
            "YEARS"
          ],
          "type": "string"
        },
        "leadOffset": {
          "type": "number"
        },
        "stepUnits": {
          "enum": [
            "DAYS",
            "HALFHOUR",
            "HOURS",
            "MILLIS",
            "MINUTES",
            "MONTHS",
            "SECONDS",
            "WEEKS",
            "YEARS"
          ],
          "type": "string"
        },
        "stepSize": {
          "type": "number"
        },
        "startAutoRefreshFrequency": {
          "type": "number"
        },
        "dateFormat": {
          "enum": [
            "DAYS",
            "HALFHOUR",
            "HOURS",
            "MILLIS",
            "MINUTES",
            "MONTHS",
            "SECONDS",
            "WEEKS",
            "YEARS"
          ],
          "type": "string"
        },
        "sort": {
          "enum": [
            "ASC",
            "DESC"
          ],
          "type": "string"
        },
        "itemsPerPage": {
          "type": "number"
        },
        "transposed": {
          "type": "boolean"
        },
        "showEmpty": {
          "type": "boolean"
        },
        "showTotal": {
          "type": "boolean"
        },
        "hidePagination": {
          "type": "boolean"
        },
        "totalType": {
          "enum": [
            "AVG",
            "SUM"
          ],
          "type": "string"
        },
        "totalSize": {
          "enum": [
            "ALL",
            "PAGE"
          ],
          "type": "string"
        },
        "textAlign": {
          "enum": [
            "center",
            "left",
            "right"
          ],
          "type": "string"
        },
        "hideDateColumn": {
          "type": "boolean"
        },
        "additionalDateColumn": {
          "enum": [
            "DAY_OF_WEEK",
            "NONE",
            "WEEK"
          ],
          "type": "string"
        },
        "dayOfWeekDisplayType": {
          "enum": [
            "LONG",
            "SHORT"
          ],
          "type": "string"
        }
      }
    },
    "DatasetDefaultConfig": {
      "type": "object",
      "properties": {
        "overriddenTitle": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "identifier": {
          "type": "string"
        },
        "decimalPlaces": {
          "type": "number"
        },
        "highlightRanges": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/HighlightRange"
          }
        },
        "defaultHighlight": {
          "$ref": "#/definitions/HighlightColor"
        },
        "stringValueMapper": {
          "type": "number"
        },
        "showTotal": {
          "type": "boolean"
        },
        "unit": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "totalType": {
          "enum": [
            "AVG",
            "SUM"
          ],
          "type": "string"
        }
      },
      "required": [
        "identifier"
      ]
    },
    "HighlightColor": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string"
        },
        "bgColor": {
          "type": "string"
        }
      }
    },
    "ReportOptions": {
      "type": "object",
      "properties": {
        "fontSize": {
          "type": "string"
        }
      }
    },
    "JSJoda.Instant": {
      "type": "object"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}