{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/car-gene-com/json-schema/car-gene-com-referrals-response-schema.json",
  "title": "ReferralsResponse",
  "description": "店のページから外へのクリック。毎晩 GA4 から積んだもの (#2446)",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/car-gene-com-admin-referrals-api-openapi.yml#/components/schemas/ReferralsResponse",
  "properties": {
    "weekly": {
      "items": {
        "$ref": "#/$defs/ReferralWeek"
      },
      "type": "array",
      "title": "Weekly"
    },
    "shops": {
      "items": {
        "$ref": "#/$defs/ReferralShop"
      },
      "type": "array",
      "title": "Shops"
    },
    "days": {
      "type": "integer",
      "title": "Days"
    },
    "last_date": {
      "type": "string",
      "format": "date",
      "title": "Last Date"
    }
  },
  "type": "object",
  "required": [
    "weekly",
    "shops",
    "days"
  ],
  "$defs": {
    "ReferralShop": {
      "properties": {
        "map": {
          "type": "integer",
          "title": "Map"
        },
        "website": {
          "type": "integer",
          "title": "Website"
        },
        "tel": {
          "type": "integer",
          "title": "Tel"
        },
        "reservation": {
          "type": "integer",
          "title": "Reservation"
        },
        "other": {
          "type": "integer",
          "title": "Other"
        },
        "total": {
          "type": "integer",
          "title": "Total"
        },
        "shop_id": {
          "type": "string",
          "title": "Shop Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "prefecture": {
          "type": "string",
          "title": "Prefecture"
        },
        "city": {
          "type": "string",
          "title": "City"
        },
        "group": {
          "type": "string",
          "title": "Group"
        }
      },
      "type": "object",
      "required": [
        "map",
        "website",
        "tel",
        "reservation",
        "other",
        "total",
        "shop_id",
        "name",
        "group"
      ],
      "title": "ReferralShop",
      "description": "行き先の種類ごとのクリック数 (#2446)"
    },
    "ReferralWeek": {
      "properties": {
        "map": {
          "type": "integer",
          "title": "Map"
        },
        "website": {
          "type": "integer",
          "title": "Website"
        },
        "tel": {
          "type": "integer",
          "title": "Tel"
        },
        "reservation": {
          "type": "integer",
          "title": "Reservation"
        },
        "other": {
          "type": "integer",
          "title": "Other"
        },
        "total": {
          "type": "integer",
          "title": "Total"
        },
        "week_start": {
          "type": "string",
          "format": "date",
          "title": "Week Start"
        },
        "group": {
          "type": "string",
          "title": "Group"
        }
      },
      "type": "object",
      "required": [
        "map",
        "website",
        "tel",
        "reservation",
        "other",
        "total",
        "week_start",
        "group"
      ],
      "title": "ReferralWeek",
      "description": "週 (月曜始まり) × 店の業態の 1 行"
    }
  }
}