Skip to content

Commit 6c3f07d

Browse files
feat(deps-dev): bump @seamapi/types from 1.761.0 to 1.768.1 in the seam group (#410)
* 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.761.0 to 1.768.1 - [Release notes](https://github.com/seamapi/types/releases) - [Commits](seamapi/types@v1.761.0...v1.768.1) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-version: 1.768.1 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 5eecb14 commit 6c3f07d

File tree

8 files changed

+55
-69
lines changed

8 files changed

+55
-69
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.8",
16-
"@seamapi/types": "1.761.0",
16+
"@seamapi/types": "1.768.1",
1717
"del": "^7.1.0",
1818
"prettier": "^3.0.0"
1919
}

src/Objects/Device.php

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

src/Objects/DeviceFeatures.php

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

src/Objects/DeviceProperties.php

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

src/Objects/DeviceProvider.php

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

src/Objects/UnmanagedDevice.php

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

src/SeamClient.php

Lines changed: 38 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -426,38 +426,6 @@ public function get(
426426
return AccessCode::from_json($res->access_code);
427427
}
428428

429-
public function get_timeline(
430-
string $access_code_id,
431-
?string $after = null,
432-
?string $before = null,
433-
?array $event_types = null,
434-
?float $limit = null,
435-
): void {
436-
$request_payload = [];
437-
438-
if ($access_code_id !== null) {
439-
$request_payload["access_code_id"] = $access_code_id;
440-
}
441-
if ($after !== null) {
442-
$request_payload["after"] = $after;
443-
}
444-
if ($before !== null) {
445-
$request_payload["before"] = $before;
446-
}
447-
if ($event_types !== null) {
448-
$request_payload["event_types"] = $event_types;
449-
}
450-
if ($limit !== null) {
451-
$request_payload["limit"] = $limit;
452-
}
453-
454-
$this->seam->request(
455-
"POST",
456-
"/access_codes/get_timeline",
457-
json: (object) $request_payload,
458-
);
459-
}
460-
461429
public function list(
462430
?array $access_code_ids = null,
463431
?string $access_method_id = null,
@@ -3402,11 +3370,10 @@ public function disconnect(string $connected_account_id): void
34023370
class CustomersClient
34033371
{
34043372
private SeamClient $seam;
3405-
public CustomersReservationsClient $reservations;
3373+
34063374
public function __construct(SeamClient $seam)
34073375
{
34083376
$this->seam = $seam;
3409-
$this->reservations = new CustomersReservationsClient($seam);
34103377
}
34113378

34123379
public function create_portal(
@@ -3652,36 +3619,6 @@ public function push_data(
36523619
}
36533620
}
36543621

3655-
class CustomersReservationsClient
3656-
{
3657-
private SeamClient $seam;
3658-
3659-
public function __construct(SeamClient $seam)
3660-
{
3661-
$this->seam = $seam;
3662-
}
3663-
3664-
public function create_deep_link(
3665-
string $customer_key,
3666-
string $reservation_key,
3667-
): void {
3668-
$request_payload = [];
3669-
3670-
if ($customer_key !== null) {
3671-
$request_payload["customer_key"] = $customer_key;
3672-
}
3673-
if ($reservation_key !== null) {
3674-
$request_payload["reservation_key"] = $reservation_key;
3675-
}
3676-
3677-
$this->seam->request(
3678-
"POST",
3679-
"/customers/reservations/create_deep_link",
3680-
json: (object) $request_payload,
3681-
);
3682-
}
3683-
}
3684-
36853622
class DevicesClient
36863623
{
36873624
private SeamClient $seam;
@@ -4366,6 +4303,43 @@ public function __construct(SeamClient $seam)
43664303
$this->simulate = new LocksSimulateClient($seam);
43674304
}
43684305

4306+
public function configure_auto_lock(
4307+
bool $auto_lock_enabled,
4308+
string $device_id,
4309+
?float $auto_lock_delay_seconds = null,
4310+
bool $wait_for_action_attempt = true,
4311+
): ActionAttempt {
4312+
$request_payload = [];
4313+
4314+
if ($auto_lock_enabled !== null) {
4315+
$request_payload["auto_lock_enabled"] = $auto_lock_enabled;
4316+
}
4317+
if ($device_id !== null) {
4318+
$request_payload["device_id"] = $device_id;
4319+
}
4320+
if ($auto_lock_delay_seconds !== null) {
4321+
$request_payload[
4322+
"auto_lock_delay_seconds"
4323+
] = $auto_lock_delay_seconds;
4324+
}
4325+
4326+
$res = $this->seam->request(
4327+
"POST",
4328+
"/locks/configure_auto_lock",
4329+
json: (object) $request_payload,
4330+
);
4331+
4332+
if (!$wait_for_action_attempt) {
4333+
return ActionAttempt::from_json($res->action_attempt);
4334+
}
4335+
4336+
$action_attempt = $this->seam->action_attempts->poll_until_ready(
4337+
$res->action_attempt->action_attempt_id,
4338+
);
4339+
4340+
return $action_attempt;
4341+
}
4342+
43694343
public function get(?string $device_id = null, ?string $name = null): Device
43704344
{
43714345
$request_payload = [];

0 commit comments

Comments
 (0)