diff --git a/package-lock.json b/package-lock.json index 114597f..c284ec2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "devDependencies": { "@prettier/plugin-php": "^0.22.1", "@seamapi/nextlove-sdk-generator": "1.14.11", - "@seamapi/types": "1.292.2", + "@seamapi/types": "1.294.1", "del": "^7.1.0", "prettier": "^3.0.0" } @@ -455,9 +455,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.292.2", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.292.2.tgz", - "integrity": "sha512-mOCFatzYy89uzu4IEV3kFoPz5SCVd3w2TMC0G3hVrzxL3PYFRnuUa4LNKMsd583prDgoh6rmEHhKEAICqibXFQ==", + "version": "1.294.1", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.294.1.tgz", + "integrity": "sha512-/a52eBDPurKJ/cgQYjBOsv31EhgnxlpXkrJhBQzX9AWeYVu42c9e7CFvill1ztVhGBzOaEnyt2UBh7X7wxdqHA==", "dev": true, "engines": { "node": ">=18.12.0", diff --git a/package.json b/package.json index 25f4131..b2c77cd 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@prettier/plugin-php": "^0.22.1", "@seamapi/nextlove-sdk-generator": "1.14.11", - "@seamapi/types": "1.292.2", + "@seamapi/types": "1.294.1", "del": "^7.1.0", "prettier": "^3.0.0" } diff --git a/src/Objects/DeviceActiveThermostatSchedule.php b/src/Objects/DeviceActiveThermostatSchedule.php index 8cb7dd7..5b9fca9 100644 --- a/src/Objects/DeviceActiveThermostatSchedule.php +++ b/src/Objects/DeviceActiveThermostatSchedule.php @@ -19,7 +19,9 @@ public static function from_json( starts_at: $json->starts_at, thermostat_schedule_id: $json->thermostat_schedule_id, errors: $json->errors ?? null, - name: $json->name ?? null + name: $json->name ?? null, + unstable_is_override_allowed: $json->unstable_is_override_allowed ?? + null ); } @@ -32,7 +34,8 @@ public function __construct( public string $starts_at, public string $thermostat_schedule_id, public mixed $errors, - public string|null $name + public string|null $name, + public bool|null $unstable_is_override_allowed ) { } } diff --git a/src/Objects/ThermostatSchedule.php b/src/Objects/ThermostatSchedule.php index dce01d7..e8fe162 100644 --- a/src/Objects/ThermostatSchedule.php +++ b/src/Objects/ThermostatSchedule.php @@ -18,7 +18,9 @@ public static function from_json(mixed $json): ThermostatSchedule|null starts_at: $json->starts_at, thermostat_schedule_id: $json->thermostat_schedule_id, errors: $json->errors ?? null, - name: $json->name ?? null + name: $json->name ?? null, + unstable_is_override_allowed: $json->unstable_is_override_allowed ?? + null ); } @@ -31,7 +33,8 @@ public function __construct( public string $starts_at, public string $thermostat_schedule_id, public mixed $errors, - public string|null $name + public string|null $name, + public bool|null $unstable_is_override_allowed ) { } } diff --git a/src/SeamClient.php b/src/SeamClient.php index b6f62d3..be2e5d9 100644 --- a/src/SeamClient.php +++ b/src/SeamClient.php @@ -3566,13 +3566,13 @@ public function cool( public function create_climate_preset( string $climate_preset_key, string $device_id, - bool $manual_override_allowed, float $cooling_set_point_celsius = null, float $cooling_set_point_fahrenheit = null, string $fan_mode_setting = null, float $heating_set_point_celsius = null, float $heating_set_point_fahrenheit = null, string $hvac_mode_setting = null, + bool $manual_override_allowed = null, string $name = null ): void { $request_payload = []; @@ -3583,11 +3583,6 @@ public function create_climate_preset( if ($device_id !== null) { $request_payload["device_id"] = $device_id; } - if ($manual_override_allowed !== null) { - $request_payload[ - "manual_override_allowed" - ] = $manual_override_allowed; - } if ($cooling_set_point_celsius !== null) { $request_payload[ "cooling_set_point_celsius" @@ -3614,6 +3609,11 @@ public function create_climate_preset( if ($hvac_mode_setting !== null) { $request_payload["hvac_mode_setting"] = $hvac_mode_setting; } + if ($manual_override_allowed !== null) { + $request_payload[ + "manual_override_allowed" + ] = $manual_override_allowed; + } if ($name !== null) { $request_payload["name"] = $name; } @@ -4038,6 +4038,7 @@ public function create( string $device_id, string $ends_at, string $starts_at, + bool $is_override_allowed = null, mixed $max_override_period_minutes = null, string $name = null ): ThermostatSchedule { @@ -4055,6 +4056,9 @@ public function create( if ($starts_at !== null) { $request_payload["starts_at"] = $starts_at; } + if ($is_override_allowed !== null) { + $request_payload["is_override_allowed"] = $is_override_allowed; + } if ($max_override_period_minutes !== null) { $request_payload[ "max_override_period_minutes" @@ -4138,6 +4142,7 @@ public function update( string $thermostat_schedule_id, string $climate_preset_key = null, string $ends_at = null, + bool $is_override_allowed = null, mixed $max_override_period_minutes = null, string $name = null, string $starts_at = null @@ -4155,6 +4160,9 @@ public function update( if ($ends_at !== null) { $request_payload["ends_at"] = $ends_at; } + if ($is_override_allowed !== null) { + $request_payload["is_override_allowed"] = $is_override_allowed; + } if ($max_override_period_minutes !== null) { $request_payload[ "max_override_period_minutes"