Skip to content

Commit

Permalink
feat(deps-dev): Bump @seamapi/types from 1.340.1 to 1.341.0 in the se…
Browse files Browse the repository at this point in the history
…am group (#255)

* feat(deps-dev): Bump @seamapi/types in the seam group

Bumps the seam group with 1 update: [@seamapi/types](https://github.com/seamapi/types).


Updates `@seamapi/types` from 1.340.1 to 1.341.0
- [Release notes](https://github.com/seamapi/types/releases)
- [Changelog](https://github.com/seamapi/types/blob/main/.releaserc.json)
- [Commits](seamapi/types@v1.340.1...v1.341.0)

---
updated-dependencies:
- dependency-name: "@seamapi/types"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: seam
...

Signed-off-by: dependabot[bot] <[email protected]>

* ci: Generate code

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Seam Bot <[email protected]>
  • Loading branch information
dependabot[bot] and seambot authored Jan 20, 2025
1 parent 1e2c037 commit 18d8a41
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"devDependencies": {
"@prettier/plugin-php": "^0.22.1",
"@seamapi/nextlove-sdk-generator": "1.15.3",
"@seamapi/types": "1.340.1",
"@seamapi/types": "1.341.0",
"del": "^7.1.0",
"prettier": "^3.0.0"
}
Expand Down
38 changes: 38 additions & 0 deletions src/SeamClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -3627,10 +3627,12 @@ class ThermostatsClient
{
private SeamClient $seam;
public ThermostatsSchedulesClient $schedules;
public ThermostatsSimulateClient $simulate;
public function __construct(SeamClient $seam)
{
$this->seam = $seam;
$this->schedules = new ThermostatsSchedulesClient($seam);
$this->simulate = new ThermostatsSimulateClient($seam);
}

public function activate_climate_preset(
Expand Down Expand Up @@ -4385,6 +4387,42 @@ public function update(
}
}

class ThermostatsSimulateClient
{
private SeamClient $seam;

public function __construct(SeamClient $seam)
{
$this->seam = $seam;
}

public function temperature_reached(
string $device_id,
float $temperature_celsius = null,
float $temperature_fahrenheit = null
): void {
$request_payload = [];

if ($device_id !== null) {
$request_payload["device_id"] = $device_id;
}
if ($temperature_celsius !== null) {
$request_payload["temperature_celsius"] = $temperature_celsius;
}
if ($temperature_fahrenheit !== null) {
$request_payload[
"temperature_fahrenheit"
] = $temperature_fahrenheit;
}

$this->seam->request(
"POST",
"/thermostats/simulate/temperature_reached",
json: $request_payload
);
}
}

class UserIdentitiesClient
{
private SeamClient $seam;
Expand Down

0 comments on commit 18d8a41

Please sign in to comment.