{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codeqr-io/json-schema/codeqr-io-analytics-timeseries-schema.json",
  "title": "AnalyticsTimeseries",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codeqr-io-analytics-api-openapi.yml#/components/schemas/AnalyticsTimeseries",
  "type": "object",
  "properties": {
    "start": {
      "type": "string",
      "description": "The starting timestamp of the interval"
    },
    "clicks": {
      "type": "number",
      "description": "The number of clicks in the interval",
      "default": 0
    },
    "scans": {
      "type": "number",
      "description": "The number of scans in the interval",
      "default": 0
    },
    "views": {
      "type": "number",
      "description": "The number of views in the interval",
      "default": 0
    },
    "leads": {
      "type": "number",
      "description": "The number of leads in the interval",
      "default": 0
    },
    "sales": {
      "type": "number",
      "description": "The number of sales in the interval",
      "default": 0
    },
    "saleAmount": {
      "type": "number",
      "description": "The total amount of sales in the interval, in cents",
      "default": 0
    }
  },
  "required": [
    "start",
    "clicks",
    "scans",
    "views",
    "leads",
    "sales",
    "saleAmount"
  ]
}