{
  "allOf": [
    {
      "$ref": "#/definitions/DashboardComponentPropsBase<null>"
    },
    {
      "type": "object",
      "properties": {
        "scheme": {
          "description": "GIS v2 scheme of the company to render; the widget shows a notice until one is configured.",
          "type": "string"
        },
        "layerId": {
          "description": "GIS v2 layer of [scheme] to render. When omitted, every visible layer (else every layer) is shown.",
          "type": "number"
        },
        "featureLimit": {
          "description": "Max features fetched per viewport; forwarded to `features/get/{layer}?limit=`.",
          "type": "number"
        },
        "height": {
          "description": "Map height in pixels.",
          "type": ["null", "number"]
        },
        "basemapStyleUrl": {
          "description": "MapLibre style JSON url; defaults to an OSM raster style.",
          "type": "string"
        },
        "themeMode": {
          "description": "Initial thematic styling mode. Drawn as layer colour while no loaded pipe carries the data it\ncolours by (a diameter, or that telemetry), and offered in the theme picker only once one does.",
          "enum": ["alarm", "diameter", "flow", "layer", "temperature"],
          "type": "string"
        },
        "themeColors": {
          "description": "Gradient colour stops of the temperature, flow and diameter themes; defaults per theme otherwise.",
          "$ref": "#/definitions/Partial<Record<\"flow\"|\"temperature\"|\"diameter\",string[]>>"
        },
        "initialBounds": {
          "description": "Extent the map opens on, as [minLng, minLat, maxLng, maxLat], fitted to the widget's size so the\nsame area shows at every width. Defaults to Kaunas.",
          "type": "array",
          "items": [
            {
              "type": "number"
            },
            {
              "type": "number"
            },
            {
              "type": "number"
            },
            {
              "type": "number"
            }
          ],
          "minItems": 4,
          "maxItems": 4
        }
      }
    }
  ],
  "definitions": {
    "DashboardComponentPropsBase<null>": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "reportOptions": {
          "type": "null"
        },
        "reportMode": {
          "type": "boolean"
        },
        "stateCb": {
          "type": "object"
        },
        "calendarType": {
          "const": "CALENDAR_445",
          "type": "string"
        },
        "hideHeader": {
          "type": "boolean"
        }
      }
    },
    "Partial<Record<\"flow\"|\"temperature\"|\"diameter\",string[]>>": {
      "type": "object",
      "properties": {
        "flow": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "temperature": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "diameter": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
