diff --git a/lib/seam/routes/clients/spaces.rb b/lib/seam/routes/clients/spaces.rb index 248f7eb..1753142 100644 --- a/lib/seam/routes/clients/spaces.rb +++ b/lib/seam/routes/clients/spaces.rb @@ -26,8 +26,8 @@ def add_devices(device_ids:, space_id:) nil end - def create(name:, acs_entrance_ids: nil, customer_data: nil, customer_key: nil, device_ids: nil, space_key: nil) - res = @client.post("/spaces/create", {name: name, acs_entrance_ids: acs_entrance_ids, customer_data: customer_data, customer_key: customer_key, device_ids: device_ids, space_key: space_key}.compact) + def create(name:, acs_entrance_ids: nil, connected_account_ids: nil, customer_data: nil, customer_key: nil, device_ids: nil, space_key: nil) + res = @client.post("/spaces/create", {name: name, acs_entrance_ids: acs_entrance_ids, connected_account_ids: connected_account_ids, customer_data: customer_data, customer_key: customer_key, device_ids: device_ids, space_key: space_key}.compact) Seam::Resources::Space.load_from_response(res.body["space"]) end diff --git a/lib/seam/routes/resources/connected_account.rb b/lib/seam/routes/resources/connected_account.rb index 8b0ae8a..f03243e 100644 --- a/lib/seam/routes/resources/connected_account.rb +++ b/lib/seam/routes/resources/connected_account.rb @@ -3,7 +3,7 @@ module Seam module Resources class ConnectedAccount < BaseResource - attr_accessor :accepted_capabilities, :account_type, :account_type_display_name, :automatically_manage_new_devices, :connected_account_id, :custom_metadata, :customer_key, :display_name, :image_url, :user_identifier + attr_accessor :accepted_capabilities, :account_type, :account_type_display_name, :automatically_manage_new_devices, :connected_account_id, :custom_metadata, :customer_key, :default_checkin_time, :default_checkout_time, :display_name, :image_url, :time_zone, :user_identifier date_accessor :created_at diff --git a/package-lock.json b/package-lock.json index 6c5ac3b..f861184 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.86.0", "@seamapi/nextlove-sdk-generator": "^1.19.10", - "@seamapi/types": "1.829.0", + "@seamapi/types": "1.843.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -536,9 +536,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.829.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.829.0.tgz", - "integrity": "sha512-4rDq27Wj5/NhKIq/LL+QC1Dd6VrWPQhk1Yafud6iBLkYXGuE3zEz5By172MfJTAA8vNtnHxeKWu4fQIBlRxJ0w==", + "version": "1.843.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.843.0.tgz", + "integrity": "sha512-6ni6R89REs08Dhr6B5jGTEX80oUvygR3Ly26EDnOXIwEuZbVSjLgQVkcrt4/5kOIz1GXneLXCASMPiarzBCGPw==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 4ba3da1..7589af0 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.86.0", "@seamapi/nextlove-sdk-generator": "^1.19.10", - "@seamapi/types": "1.829.0", + "@seamapi/types": "1.843.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5"