Skip to content

Commit 1a74d2e

Browse files
feat(deps-dev): bump @seamapi/types from 1.777.0 to 1.778.0 in the seam group (#419)
* 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.777.0 to 1.778.0 - [Release notes](https://github.com/seamapi/types/releases) - [Commits](seamapi/types@v1.777.0...v1.778.0) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-version: 1.778.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: seam ... Signed-off-by: dependabot[bot] <support@github.com> * ci: Generate code --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Seam Bot <seambot@getseam.com>
1 parent 01d93a8 commit 1a74d2e

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"devDependencies": {
1414
"@prettier/plugin-php": "^0.24.0",
1515
"@seamapi/nextlove-sdk-generator": "^1.19.10",
16-
"@seamapi/types": "1.777.0",
16+
"@seamapi/types": "1.778.0",
1717
"del": "^7.1.0",
1818
"prettier": "^3.0.0"
1919
}

src/SeamClient.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6333,6 +6333,26 @@ public function list_accessible_devices(string $user_identity_id): array
63336333
return array_map(fn($r) => Device::from_json($r), $res->devices);
63346334
}
63356335

6336+
public function list_accessible_entrances(string $user_identity_id): array
6337+
{
6338+
$request_payload = [];
6339+
6340+
if ($user_identity_id !== null) {
6341+
$request_payload["user_identity_id"] = $user_identity_id;
6342+
}
6343+
6344+
$res = $this->seam->request(
6345+
"POST",
6346+
"/user_identities/list_accessible_entrances",
6347+
json: (object) $request_payload,
6348+
);
6349+
6350+
return array_map(
6351+
fn($r) => AcsEntrance::from_json($r),
6352+
$res->acs_entrances,
6353+
);
6354+
}
6355+
63366356
public function list_acs_systems(string $user_identity_id): array
63376357
{
63386358
$request_payload = [];

0 commit comments

Comments
 (0)