diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 996d9db..44d8fe4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/package-lock.json b/package-lock.json index 46b5af0..521a47a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,8 @@ "license": "MIT", "devDependencies": { "@prettier/plugin-php": "^0.24.0", - "@seamapi/nextlove-sdk-generator": "^1.19.1", - "@seamapi/types": "1.587.0", + "@seamapi/nextlove-sdk-generator": "^1.19.4", + "@seamapi/types": "1.591.0", "del": "^7.1.0", "prettier": "^3.0.0" } @@ -434,9 +434,9 @@ } }, "node_modules/@seamapi/nextlove-sdk-generator": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/@seamapi/nextlove-sdk-generator/-/nextlove-sdk-generator-1.19.1.tgz", - "integrity": "sha512-6uh6LBthvJ8y4uAOC54NZLixtOacY/+K+rEK2O94TnWdr/GFfCT+x2vMxt7sp2D73+EV7yYjvmDM5AIiKH10lQ==", + "version": "1.19.4", + "resolved": "https://registry.npmjs.org/@seamapi/nextlove-sdk-generator/-/nextlove-sdk-generator-1.19.4.tgz", + "integrity": "sha512-zzYiomcX1Swe+Bxg6PCQM+AY+XtRQCC2osbCAwSJ0cEcIkQTIiCCOy6SFBFsUXBUE8IwGStig2zdSqK6f83bww==", "dev": true, "license": "MIT", "dependencies": { @@ -456,9 +456,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.587.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.587.0.tgz", - "integrity": "sha512-5p5KOjoUUZVdwP0XDS0BYzeR3PU8Hiw6yQwkSaIoYfPhkZWqWiac9DjAmJysKqSOefECPUk/0BT8rpMenJ8puQ==", + "version": "1.591.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.591.0.tgz", + "integrity": "sha512-9r1414GHNbTX85XpEl9tvbiPDvw/TDghWMJk5TSz0CXkwafhOpvY08Wfl16KAPHdN5qVClDlLO9eG4ZS8z8BUQ==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 088504a..c2fbeb9 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ }, "devDependencies": { "@prettier/plugin-php": "^0.24.0", - "@seamapi/nextlove-sdk-generator": "^1.19.1", - "@seamapi/types": "1.587.0", + "@seamapi/nextlove-sdk-generator": "^1.19.4", + "@seamapi/types": "1.591.0", "del": "^7.1.0", "prettier": "^3.0.0" } diff --git a/src/Objects/Space.php b/src/Objects/Space.php index b980acc..5477401 100644 --- a/src/Objects/Space.php +++ b/src/Objects/Space.php @@ -17,6 +17,8 @@ public static function from_json(mixed $json): Space|null name: $json->name, space_id: $json->space_id, workspace_id: $json->workspace_id, + parent_space_id: $json->parent_space_id ?? null, + parent_space_key: $json->parent_space_key ?? null, space_key: $json->space_key ?? null, ); } @@ -29,6 +31,8 @@ public function __construct( public string $name, public string $space_id, public string $workspace_id, + public string|null $parent_space_id, + public string|null $parent_space_key, public string|null $space_key, ) {} } diff --git a/src/SeamClient.php b/src/SeamClient.php index 5e0b982..7ce9f4d 100644 --- a/src/SeamClient.php +++ b/src/SeamClient.php @@ -3111,6 +3111,7 @@ public function update( ?array $accepted_capabilities = null, ?bool $automatically_manage_new_devices = null, mixed $custom_metadata = null, + ?string $customer_key = null, ): void { $request_payload = []; @@ -3128,6 +3129,9 @@ public function update( if ($custom_metadata !== null) { $request_payload["custom_metadata"] = $custom_metadata; } + if ($customer_key !== null) { + $request_payload["customer_key"] = $customer_key; + } $this->seam->request( "POST", @@ -3274,6 +3278,7 @@ public function push_data( ?array $reservations = null, ?array $residents = null, ?array $rooms = null, + ?array $sites = null, ?array $spaces = null, ?array $tenants = null, ?array $units = null, @@ -3321,6 +3326,9 @@ public function push_data( if ($rooms !== null) { $request_payload["rooms"] = $rooms; } + if ($sites !== null) { + $request_payload["sites"] = $sites; + } if ($spaces !== null) { $request_payload["spaces"] = $spaces; }