diff --git a/lib/seam/routes/clients/spaces.rb b/lib/seam/routes/clients/spaces.rb index 498d5c0..5f0a029 100644 --- a/lib/seam/routes/clients/spaces.rb +++ b/lib/seam/routes/clients/spaces.rb @@ -20,8 +20,8 @@ def add_devices(device_ids:, space_id:) nil end - def create(name:, acs_entrance_ids: nil, customer_key: nil, device_ids: nil, space_key: nil) - res = @client.post("/spaces/create", {name: name, acs_entrance_ids: acs_entrance_ids, customer_key: customer_key, device_ids: device_ids, space_key: space_key}.compact) + 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) Seam::Resources::Space.load_from_response(res.body["space"]) end @@ -62,8 +62,8 @@ def remove_devices(device_ids:, space_id:) nil end - def update(acs_entrance_ids: nil, customer_key: nil, device_ids: nil, name: nil, space_id: nil, space_key: nil) - res = @client.post("/spaces/update", {acs_entrance_ids: acs_entrance_ids, customer_key: customer_key, device_ids: device_ids, name: name, space_id: space_id, space_key: space_key}.compact) + def update(acs_entrance_ids: nil, customer_data: nil, customer_key: nil, device_ids: nil, name: nil, space_id: nil, space_key: nil) + res = @client.post("/spaces/update", {acs_entrance_ids: acs_entrance_ids, customer_data: customer_data, customer_key: customer_key, device_ids: device_ids, name: name, space_id: space_id, space_key: space_key}.compact) Seam::Resources::Space.load_from_response(res.body["space"]) end diff --git a/lib/seam/routes/resources/space.rb b/lib/seam/routes/resources/space.rb index d867e09..fd8978c 100644 --- a/lib/seam/routes/resources/space.rb +++ b/lib/seam/routes/resources/space.rb @@ -3,7 +3,7 @@ module Seam module Resources class Space < BaseResource - attr_accessor :acs_entrance_count, :customer_key, :device_count, :display_name, :name, :parent_space_id, :parent_space_key, :space_id, :space_key, :workspace_id + attr_accessor :acs_entrance_count, :customer_data, :customer_key, :device_count, :display_name, :name, :parent_space_id, :parent_space_key, :space_id, :space_key, :workspace_id date_accessor :created_at end diff --git a/package-lock.json b/package-lock.json index 3741e72..657d275 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.809.0", + "@seamapi/types": "1.811.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -536,9 +536,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.809.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.809.0.tgz", - "integrity": "sha512-xBrXorx5njf53vwoHSgEzXxL4Bul82kxKOzRVNs/K37VU4YcaLKQc1Q7ONuFPP/PfDSWP2pCOiRgzx99nrPiHQ==", + "version": "1.811.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.811.0.tgz", + "integrity": "sha512-pKnGG3+OBDp1JXU8zvwbrYvXLvdJNCFAuey78igPRCrNgsd1v9w7XvA4Fefb4Yx4FHjPmArNQaAHy/TbgEtx0A==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 47e1665..7413f71 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.809.0", + "@seamapi/types": "1.811.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5"