Skip to content

Commit

Permalink
Merge pull request #133 from seamapi/dependabot/npm_and_yarn/seam-5da…
Browse files Browse the repository at this point in the history
…d0b40fb

feat(deps-dev): bump the seam group with 2 updates
  • Loading branch information
seambot authored Jun 27, 2024
2 parents 236114d + ae0d362 commit d5474e1
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 10 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
},
"devDependencies": {
"@prettier/plugin-php": "^0.22.1",
"@seamapi/nextlove-sdk-generator": "1.13.2",
"@seamapi/types": "1.186.0",
"@seamapi/nextlove-sdk-generator": "1.13.4",
"@seamapi/types": "1.187.0",
"del": "^7.1.0",
"prettier": "^3.0.0"
}
Expand Down
5 changes: 5 additions & 0 deletions src/Objects/Device.php

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

5 changes: 5 additions & 0 deletions src/Objects/Phone.php

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

5 changes: 5 additions & 0 deletions src/Objects/UnmanagedDevice.php

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

30 changes: 30 additions & 0 deletions src/SeamClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -2297,6 +2297,36 @@ public function __construct(SeamClient $seam)
$this->seam = $seam;
}

public function connect(string $device_id): void
{
$request_payload = [];

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

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

public function disconnect(string $device_id): void
{
$request_payload = [];

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

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

public function remove(string $device_id): void
{
$request_payload = [];
Expand Down

0 comments on commit d5474e1

Please sign in to comment.