{
  "$schema": "../../.niho/sdk/script.schema.json",
  "name": "予約の差分を数える",
  "description": "前回の処理時刻より後に変更・取消された予定だけを読み、件数を返す例です。処理位置は storage に保存します。",
  "trigger": {
    "kind": "SCHEDULE",
    "intervalMinutes": 15
  },
  "permissions": [
    "bookings.read",
    "storage"
  ],
  "configSchema": {
    "type": "object",
    "properties": {
      "lookaheadDays": {
        "type": "integer",
        "title": "先読みする日数",
        "description": "今日から何日先までの予定を読むか（1〜90日）",
        "default": 30,
        "minimum": 1,
        "maximum": 90
      }
    }
  },
  "configValues": {
    "lookaheadDays": 30
  }
}
