From 93fd733463f7b1f282f5ca0d3c0589cb51d30351 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 04:06:34 +0000 Subject: [PATCH 1/2] 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.318.1 to 1.321.1 - [Release notes](https://github.com/seamapi/types/releases) - [Changelog](https://github.com/seamapi/types/blob/main/.releaserc.json) - [Commits](https://github.com/seamapi/types/compare/v1.318.1...v1.321.1) --- updated-dependencies: - dependency-name: "@seamapi/types" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: seam ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index d774085..7ab92bd 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.17", - "@seamapi/types": "1.318.1", + "@seamapi/types": "1.321.1", "del": "^7.1.0", "prettier": "^3.0.0" } @@ -456,9 +456,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.318.1", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.318.1.tgz", - "integrity": "sha512-NeoMDJvM3JRjxJQDnT9jnFLjwEdeXMYIEs4k1oMeQ/s3YXmRkFqdvfPVonA5f+iv7pDPOwmsWRoyUb4ikUkDfA==", + "version": "1.321.1", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.321.1.tgz", + "integrity": "sha512-gkl+YVestgs/CN8NRi8bWyzvPxoZFitIsu5ISx7KZI3gnOVHYeKjRzcZDUP08A7X0lVs3Dt9hUEFf4oT9AhW/A==", "dev": true, "engines": { "node": ">=18.12.0", diff --git a/package.json b/package.json index 172521c..9bc7c0f 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@prettier/plugin-php": "^0.22.1", "@seamapi/nextlove-sdk-generator": "1.14.17", - "@seamapi/types": "1.318.1", + "@seamapi/types": "1.321.1", "del": "^7.1.0", "prettier": "^3.0.0" } From 4078109b63cee310ef75c1de8fc7845347fadd97 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Mon, 23 Dec 2024 04:06:52 +0000 Subject: [PATCH 2/2] ci: Generate code --- src/Objects/AcsAccessGroup.php | 5 ++++ src/Objects/AcsAccessGroupWarnings.php | 25 +++++++++++++++++++ .../AcsEntranceDormakabaCommunityMetadata.php | 8 ++---- 3 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 src/Objects/AcsAccessGroupWarnings.php diff --git a/src/Objects/AcsAccessGroup.php b/src/Objects/AcsAccessGroup.php index be6f8b8..a3ded15 100644 --- a/src/Objects/AcsAccessGroup.php +++ b/src/Objects/AcsAccessGroup.php @@ -20,6 +20,10 @@ public static function from_json(mixed $json): AcsAccessGroup|null external_type_display_name: $json->external_type_display_name, is_managed: $json->is_managed, name: $json->name, + warnings: array_map( + fn($w) => AcsAccessGroupWarnings::from_json($w), + $json->warnings ?? [] + ), workspace_id: $json->workspace_id ); } @@ -35,6 +39,7 @@ public function __construct( public string $external_type_display_name, public bool $is_managed, public string $name, + public array $warnings, public string $workspace_id ) { } diff --git a/src/Objects/AcsAccessGroupWarnings.php b/src/Objects/AcsAccessGroupWarnings.php new file mode 100644 index 0000000..282966e --- /dev/null +++ b/src/Objects/AcsAccessGroupWarnings.php @@ -0,0 +1,25 @@ +created_at, + message: $json->message, + warning_code: $json->warning_code + ); + } + + public function __construct( + public string $created_at, + public string $message, + public string $warning_code + ) { + } +} diff --git a/src/Objects/AcsEntranceDormakabaCommunityMetadata.php b/src/Objects/AcsEntranceDormakabaCommunityMetadata.php index 426eb8d..b5baea0 100644 --- a/src/Objects/AcsEntranceDormakabaCommunityMetadata.php +++ b/src/Objects/AcsEntranceDormakabaCommunityMetadata.php @@ -12,17 +12,13 @@ public static function from_json( } return new self( access_point_name: $json->access_point_name, - common_area_number: $json->common_area_number ?? null, - inner_access_points_names: $json->inner_access_points_names ?? null, - lease_ids: $json->lease_ids ?? null + common_area_number: $json->common_area_number ?? null ); } public function __construct( public string $access_point_name, - public float|null $common_area_number, - public array|null $inner_access_points_names, - public array|null $lease_ids + public float|null $common_area_number ) { } }