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" } 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 ) { } }