From 04431a7a7b9293ab62a278b27d96459aa087e42e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 06:44:52 +0000 Subject: [PATCH 1/2] feat(deps-dev): Bump the seam group with 2 updates Bumps the seam group with 2 updates: [@seamapi/nextlove-sdk-generator](https://github.com/seamapi/nextlove-sdk-generator) and [@seamapi/types](https://github.com/seamapi/types). Updates `@seamapi/nextlove-sdk-generator` from 1.14.10 to 1.14.11 - [Commits](https://github.com/seamapi/nextlove-sdk-generator/commits) Updates `@seamapi/types` from 1.286.1 to 1.297.0 - [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.286.1...v1.297.0) --- updated-dependencies: - dependency-name: "@seamapi/nextlove-sdk-generator" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: seam - 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 | 16 ++++++++-------- package.json | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9a2a0a5..9abccda 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,8 +6,8 @@ "": { "name": "@seamapi/ruby", "devDependencies": { - "@seamapi/nextlove-sdk-generator": "1.14.10", - "@seamapi/types": "1.286.1", + "@seamapi/nextlove-sdk-generator": "1.14.11", + "@seamapi/types": "1.297.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -417,9 +417,9 @@ } }, "node_modules/@seamapi/nextlove-sdk-generator": { - "version": "1.14.10", - "resolved": "https://registry.npmjs.org/@seamapi/nextlove-sdk-generator/-/nextlove-sdk-generator-1.14.10.tgz", - "integrity": "sha512-kqNRJZ/+rNQpdcIo8mI0T20kf730P42SSL9r5hh23IObjd2+Z+bKaWTxsHjVbjlwQrhR4cKmR//xfr/7wx2ZCQ==", + "version": "1.14.11", + "resolved": "https://registry.npmjs.org/@seamapi/nextlove-sdk-generator/-/nextlove-sdk-generator-1.14.11.tgz", + "integrity": "sha512-aWZ59QqFjOEOPr2cjZlstLMeliQa6yQPVTvgbsi5YGrcPNxonfpH8+U6yVaWp/f0O0R8EKHLkLaTusGlq7adAA==", "dev": true, "dependencies": { "@nodelib/fs.walk": "^2.0.0", @@ -438,9 +438,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.286.1", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.286.1.tgz", - "integrity": "sha512-FRSCSgoa22MN2KEuQkgjMZlxMqx3GbWd30X16d+E/Ld7hDPCMPzg+lJD0ZDpTuZYPlH1t8cV92Szqv8T2iJNOg==", + "version": "1.297.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.297.0.tgz", + "integrity": "sha512-3Bdd+90/GZtbzVMrs1xeS6k/IRzIcNSlxAp7qYfENidXlM1e12cKGRpiju3xUgXIgLFpp6c225CxxgRzJ1fozw==", "dev": true, "engines": { "node": ">=18.12.0", diff --git a/package.json b/package.json index 95c74e4..e38eaf5 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "format": "prettier --write --ignore-path .gitignore ." }, "devDependencies": { - "@seamapi/nextlove-sdk-generator": "1.14.10", - "@seamapi/types": "1.286.1", + "@seamapi/nextlove-sdk-generator": "1.14.11", + "@seamapi/types": "1.297.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" From 8123f469e45307bb9f0e589964aa1d7206a4b4c9 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Mon, 18 Nov 2024 06:45:29 +0000 Subject: [PATCH 2/2] ci: Generate code --- lib/seam/routes/clients/access_codes.rb | 4 ++-- lib/seam/routes/clients/acs_credentials.rb | 4 ++-- lib/seam/routes/clients/acs_encoders.rb | 14 +++++++------- lib/seam/routes/clients/thermostats.rb | 4 ++-- lib/seam/routes/clients/thermostats_schedules.rb | 8 ++++---- lib/seam/routes/resources/acs_system.rb | 2 +- lib/seam/routes/resources/thermostat_schedule.rb | 2 +- lib/seam/routes/routes.rb | 4 ---- 8 files changed, 19 insertions(+), 23 deletions(-) diff --git a/lib/seam/routes/clients/access_codes.rb b/lib/seam/routes/clients/access_codes.rb index 87413d4..5efc0db 100644 --- a/lib/seam/routes/clients/access_codes.rb +++ b/lib/seam/routes/clients/access_codes.rb @@ -64,8 +64,8 @@ def update(access_code_id:, allow_external_modification: nil, attempt_for_offlin nil end - def update_multiple(common_code_key:, allow_external_modification: nil, code: nil, ends_at: nil, is_external_modification_allowed: nil, name: nil, prefer_native_scheduling: nil, starts_at: nil) - @client.post("/access_codes/update_multiple", {common_code_key: common_code_key, allow_external_modification: allow_external_modification, code: code, ends_at: ends_at, is_external_modification_allowed: is_external_modification_allowed, name: name, prefer_native_scheduling: prefer_native_scheduling, starts_at: starts_at}.compact) + def update_multiple(common_code_key:, ends_at: nil, name: nil, starts_at: nil) + @client.post("/access_codes/update_multiple", {common_code_key: common_code_key, ends_at: ends_at, name: name, starts_at: starts_at}.compact) nil end diff --git a/lib/seam/routes/clients/acs_credentials.rb b/lib/seam/routes/clients/acs_credentials.rb index 17895b7..6e67436 100644 --- a/lib/seam/routes/clients/acs_credentials.rb +++ b/lib/seam/routes/clients/acs_credentials.rb @@ -14,8 +14,8 @@ def assign(acs_credential_id:, acs_user_id:) nil end - def create(access_method:, acs_user_id:, allowed_acs_entrance_ids: nil, code: nil, credential_manager_acs_system_id: nil, ends_at: nil, is_multi_phone_sync_credential: nil, starts_at: nil, visionline_metadata: nil) - res = @client.post("/acs/credentials/create", {access_method: access_method, acs_user_id: acs_user_id, allowed_acs_entrance_ids: allowed_acs_entrance_ids, code: code, credential_manager_acs_system_id: credential_manager_acs_system_id, ends_at: ends_at, is_multi_phone_sync_credential: is_multi_phone_sync_credential, starts_at: starts_at, visionline_metadata: visionline_metadata}.compact) + def create(access_method:, acs_user_id:, allowed_acs_entrance_ids: nil, assa_abloy_vostio_metadata: nil, code: nil, credential_manager_acs_system_id: nil, ends_at: nil, is_multi_phone_sync_credential: nil, starts_at: nil, visionline_metadata: nil) + res = @client.post("/acs/credentials/create", {access_method: access_method, acs_user_id: acs_user_id, allowed_acs_entrance_ids: allowed_acs_entrance_ids, assa_abloy_vostio_metadata: assa_abloy_vostio_metadata, code: code, credential_manager_acs_system_id: credential_manager_acs_system_id, ends_at: ends_at, is_multi_phone_sync_credential: is_multi_phone_sync_credential, starts_at: starts_at, visionline_metadata: visionline_metadata}.compact) Seam::Resources::AcsCredential.load_from_response(res.body["acs_credential"]) end diff --git a/lib/seam/routes/clients/acs_encoders.rb b/lib/seam/routes/clients/acs_encoders.rb index 802103a..0ebc2aa 100644 --- a/lib/seam/routes/clients/acs_encoders.rb +++ b/lib/seam/routes/clients/acs_encoders.rb @@ -10,22 +10,22 @@ def initialize(client:, defaults:) @defaults = defaults end - def encode_card(acs_credential_id:, device_id:, wait_for_action_attempt: nil) - res = @client.post("/acs/encoders/encode_card", {acs_credential_id: acs_credential_id, device_id: device_id}.compact) + def encode_credential(acs_credential_id:, acs_encoder_id:, wait_for_action_attempt: nil) + res = @client.post("/acs/encoders/encode_credential", {acs_credential_id: acs_credential_id, acs_encoder_id: acs_encoder_id}.compact) wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt) end - def list(acs_system_ids: nil, device_ids: nil, limit: nil) - res = @client.post("/acs/encoders/list", {acs_system_ids: acs_system_ids, device_ids: device_ids, limit: limit}.compact) + def list(acs_encoder_ids: nil, acs_system_ids: nil, limit: nil) + @client.post("/acs/encoders/list", {acs_encoder_ids: acs_encoder_ids, acs_system_ids: acs_system_ids, limit: limit}.compact) - Seam::Resources::Device.load_from_response(res.body["devices"]) + nil end - def scan_card(acs_system_id:, device_id:, wait_for_action_attempt: nil) - res = @client.post("/acs/encoders/scan_card", {acs_system_id: acs_system_id, device_id: device_id}.compact) + def scan_credential(acs_encoder_id:, acs_system_id:, wait_for_action_attempt: nil) + res = @client.post("/acs/encoders/scan_credential", {acs_encoder_id: acs_encoder_id, acs_system_id: acs_system_id}.compact) wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt diff --git a/lib/seam/routes/clients/thermostats.rb b/lib/seam/routes/clients/thermostats.rb index aa60e74..c7f5927 100644 --- a/lib/seam/routes/clients/thermostats.rb +++ b/lib/seam/routes/clients/thermostats.rb @@ -30,8 +30,8 @@ def cool(device_id:, cooling_set_point_celsius: nil, cooling_set_point_fahrenhei Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt) end - def create_climate_preset(climate_preset_key:, device_id:, manual_override_allowed:, cooling_set_point_celsius: nil, cooling_set_point_fahrenheit: nil, fan_mode_setting: nil, heating_set_point_celsius: nil, heating_set_point_fahrenheit: nil, hvac_mode_setting: nil, name: nil) - @client.post("/thermostats/create_climate_preset", {climate_preset_key: climate_preset_key, device_id: device_id, manual_override_allowed: manual_override_allowed, cooling_set_point_celsius: cooling_set_point_celsius, cooling_set_point_fahrenheit: cooling_set_point_fahrenheit, fan_mode_setting: fan_mode_setting, heating_set_point_celsius: heating_set_point_celsius, heating_set_point_fahrenheit: heating_set_point_fahrenheit, hvac_mode_setting: hvac_mode_setting, name: name}.compact) + def create_climate_preset(climate_preset_key:, device_id:, cooling_set_point_celsius: nil, cooling_set_point_fahrenheit: nil, fan_mode_setting: nil, heating_set_point_celsius: nil, heating_set_point_fahrenheit: nil, hvac_mode_setting: nil, manual_override_allowed: nil, name: nil) + @client.post("/thermostats/create_climate_preset", {climate_preset_key: climate_preset_key, device_id: device_id, cooling_set_point_celsius: cooling_set_point_celsius, cooling_set_point_fahrenheit: cooling_set_point_fahrenheit, fan_mode_setting: fan_mode_setting, heating_set_point_celsius: heating_set_point_celsius, heating_set_point_fahrenheit: heating_set_point_fahrenheit, hvac_mode_setting: hvac_mode_setting, manual_override_allowed: manual_override_allowed, name: name}.compact) nil end diff --git a/lib/seam/routes/clients/thermostats_schedules.rb b/lib/seam/routes/clients/thermostats_schedules.rb index baa4d87..99812a0 100644 --- a/lib/seam/routes/clients/thermostats_schedules.rb +++ b/lib/seam/routes/clients/thermostats_schedules.rb @@ -8,8 +8,8 @@ def initialize(client:, defaults:) @defaults = defaults end - def create(climate_preset_key:, device_id:, ends_at:, starts_at:, max_override_period_minutes: nil, name: nil) - res = @client.post("/thermostats/schedules/create", {climate_preset_key: climate_preset_key, device_id: device_id, ends_at: ends_at, starts_at: starts_at, max_override_period_minutes: max_override_period_minutes, name: name}.compact) + def create(climate_preset_key:, device_id:, ends_at:, starts_at:, is_override_allowed: nil, max_override_period_minutes: nil, name: nil) + res = @client.post("/thermostats/schedules/create", {climate_preset_key: climate_preset_key, device_id: device_id, ends_at: ends_at, starts_at: starts_at, is_override_allowed: is_override_allowed, max_override_period_minutes: max_override_period_minutes, name: name}.compact) Seam::Resources::ThermostatSchedule.load_from_response(res.body["thermostat_schedule"]) end @@ -32,8 +32,8 @@ def list(device_id:, user_identifier_key: nil) Seam::Resources::ThermostatSchedule.load_from_response(res.body["thermostat_schedules"]) end - def update(thermostat_schedule_id:, climate_preset_key: nil, ends_at: nil, max_override_period_minutes: nil, name: nil, starts_at: nil) - @client.post("/thermostats/schedules/update", {thermostat_schedule_id: thermostat_schedule_id, climate_preset_key: climate_preset_key, ends_at: ends_at, max_override_period_minutes: max_override_period_minutes, name: name, starts_at: starts_at}.compact) + def update(thermostat_schedule_id:, climate_preset_key: nil, ends_at: nil, is_override_allowed: nil, max_override_period_minutes: nil, name: nil, starts_at: nil) + @client.post("/thermostats/schedules/update", {thermostat_schedule_id: thermostat_schedule_id, climate_preset_key: climate_preset_key, ends_at: ends_at, is_override_allowed: is_override_allowed, max_override_period_minutes: max_override_period_minutes, name: name, starts_at: starts_at}.compact) nil end diff --git a/lib/seam/routes/resources/acs_system.rb b/lib/seam/routes/resources/acs_system.rb index 938a3cc..413747c 100644 --- a/lib/seam/routes/resources/acs_system.rb +++ b/lib/seam/routes/resources/acs_system.rb @@ -3,7 +3,7 @@ module Seam module Resources class AcsSystem < BaseResource - attr_accessor :acs_system_id, :can_add_acs_users_to_acs_access_groups, :can_automate_enrollment, :can_create_acs_access_groups, :can_remove_acs_users_from_acs_access_groups, :connected_account_ids, :default_credential_manager_acs_system_id, :external_type, :external_type_display_name, :image_alt_text, :image_url, :is_credential_manager, :name, :system_type, :system_type_display_name, :visionline_metadata, :workspace_id + attr_accessor :acs_system_id, :can_add_acs_users_to_acs_access_groups, :can_automate_enrollment, :can_create_acs_access_groups, :can_remove_acs_users_from_acs_access_groups, :connected_account_ids, :default_credential_manager_acs_system_id, :external_type, :external_type_display_name, :image_alt_text, :image_url, :is_credential_manager, :location, :name, :system_type, :system_type_display_name, :visionline_metadata, :workspace_id date_accessor :created_at diff --git a/lib/seam/routes/resources/thermostat_schedule.rb b/lib/seam/routes/resources/thermostat_schedule.rb index a871110..29c1314 100644 --- a/lib/seam/routes/resources/thermostat_schedule.rb +++ b/lib/seam/routes/resources/thermostat_schedule.rb @@ -3,7 +3,7 @@ module Seam module Resources class ThermostatSchedule < BaseResource - attr_accessor :climate_preset_key, :device_id, :max_override_period_minutes, :name, :thermostat_schedule_id + attr_accessor :climate_preset_key, :device_id, :max_override_period_minutes, :name, :thermostat_schedule_id, :unstable_is_override_allowed date_accessor :created_at, :ends_at, :starts_at diff --git a/lib/seam/routes/routes.rb b/lib/seam/routes/routes.rb index 5128458..afdc040 100644 --- a/lib/seam/routes/routes.rb +++ b/lib/seam/routes/routes.rb @@ -66,10 +66,6 @@ def workspaces @workspaces ||= Seam::Clients::Workspaces.new(client: @client, defaults: @defaults) end - def health - @client.get("/health") - end - # @deprecated Please use {#devices.unmanaged} instead. def unmanaged_devices warn "[DEPRECATION] 'unmanaged_devices' is deprecated. Please use 'devices.unmanaged' instead."