seam 2.53.0 → 2.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/seam/routes/clients/index.rb +1 -0
- data/lib/seam/routes/clients/thermostats.rb +12 -0
- data/lib/seam/routes/clients/thermostats_daily_programs.rb +34 -0
- data/lib/seam/routes/resources/acs_entrance.rb +1 -1
- data/lib/seam/routes/resources/device.rb +1 -1
- data/lib/seam/routes/resources/device_provider.rb +1 -1
- data/lib/seam/routes/resources/index.rb +0 -1
- data/lib/seam/routes/resources/unmanaged_device.rb +1 -1
- data/lib/seam/version.rb +1 -1
- metadata +3 -3
- data/lib/seam/routes/resources/location.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8fef8d6607094ea4373130a244ddfd91903cb09f7bdbbcfdcc8df92757bf111
|
4
|
+
data.tar.gz: 3d2ab582ab4e6f2fce9a967f5d4f89ae6b7ce1fcb9af6551d4e3632b9707d494
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 427787f532cd471601df2bc1751726947c7ead9b46454eca21a99d04f9397c4784187cc6798971b28287e466437df7c66ee5fc0ff320e26ec46c9bb12fc552f8
|
7
|
+
data.tar.gz: 699d2b449ca67e922dbd01082f5e496d4b6c8e132c5f8c2dc84ad1b8fec0a9f40858775797d0631ff47f3a74c49746b67069f71a2f357e7b0202ff3c128fd5ab
|
data/Gemfile.lock
CHANGED
@@ -32,6 +32,7 @@ require_relative "phones"
|
|
32
32
|
require_relative "phones_simulate"
|
33
33
|
require_relative "spaces"
|
34
34
|
require_relative "thermostats"
|
35
|
+
require_relative "thermostats_daily_programs"
|
35
36
|
require_relative "thermostats_schedules"
|
36
37
|
require_relative "thermostats_simulate"
|
37
38
|
require_relative "user_identities"
|
@@ -10,6 +10,10 @@ module Seam
|
|
10
10
|
@defaults = defaults
|
11
11
|
end
|
12
12
|
|
13
|
+
def daily_programs
|
14
|
+
@daily_programs ||= Seam::Clients::ThermostatsDailyPrograms.new(client: @client, defaults: @defaults)
|
15
|
+
end
|
16
|
+
|
13
17
|
def schedules
|
14
18
|
@schedules ||= Seam::Clients::ThermostatsSchedules.new(client: @client, defaults: @defaults)
|
15
19
|
end
|
@@ -109,6 +113,14 @@ module Seam
|
|
109
113
|
|
110
114
|
nil
|
111
115
|
end
|
116
|
+
|
117
|
+
def update_weekly_program(device_id:, friday_program_id: nil, monday_program_id: nil, saturday_program_id: nil, sunday_program_id: nil, thursday_program_id: nil, tuesday_program_id: nil, wednesday_program_id: nil, wait_for_action_attempt: nil)
|
118
|
+
res = @client.post("/thermostats/update_weekly_program", {device_id: device_id, friday_program_id: friday_program_id, monday_program_id: monday_program_id, saturday_program_id: saturday_program_id, sunday_program_id: sunday_program_id, thursday_program_id: thursday_program_id, tuesday_program_id: tuesday_program_id, wednesday_program_id: wednesday_program_id}.compact)
|
119
|
+
|
120
|
+
wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
|
121
|
+
|
122
|
+
Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
|
123
|
+
end
|
112
124
|
end
|
113
125
|
end
|
114
126
|
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "seam/helpers/action_attempt"
|
4
|
+
|
5
|
+
module Seam
|
6
|
+
module Clients
|
7
|
+
class ThermostatsDailyPrograms
|
8
|
+
def initialize(client:, defaults:)
|
9
|
+
@client = client
|
10
|
+
@defaults = defaults
|
11
|
+
end
|
12
|
+
|
13
|
+
def create(device_id:, name:, periods:)
|
14
|
+
res = @client.post("/thermostats/daily_programs/create", {device_id: device_id, name: name, periods: periods}.compact)
|
15
|
+
|
16
|
+
Seam::Resources::ThermostatDailyProgram.load_from_response(res.body["thermostat_daily_program"])
|
17
|
+
end
|
18
|
+
|
19
|
+
def delete(thermostat_daily_program_id:)
|
20
|
+
@client.post("/thermostats/daily_programs/delete", {thermostat_daily_program_id: thermostat_daily_program_id}.compact)
|
21
|
+
|
22
|
+
nil
|
23
|
+
end
|
24
|
+
|
25
|
+
def update(name:, periods:, thermostat_daily_program_id:, wait_for_action_attempt: nil)
|
26
|
+
res = @client.post("/thermostats/daily_programs/update", {name: name, periods: periods, thermostat_daily_program_id: thermostat_daily_program_id}.compact)
|
27
|
+
|
28
|
+
wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
|
29
|
+
|
30
|
+
Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Seam
|
4
4
|
module Resources
|
5
5
|
class AcsEntrance < BaseResource
|
6
|
-
attr_accessor :acs_entrance_id, :acs_system_id, :assa_abloy_vostio_metadata, :can_unlock_with_card, :can_unlock_with_code, :can_unlock_with_mobile_key, :connected_account_id, :display_name, :dormakaba_community_metadata, :latch_metadata, :salto_ks_metadata, :salto_space_metadata, :visionline_metadata
|
6
|
+
attr_accessor :acs_entrance_id, :acs_system_id, :assa_abloy_vostio_metadata, :can_unlock_with_card, :can_unlock_with_code, :can_unlock_with_mobile_key, :connected_account_id, :display_name, :dormakaba_ambiance_metadata, :dormakaba_community_metadata, :latch_metadata, :salto_ks_metadata, :salto_space_metadata, :visionline_metadata
|
7
7
|
|
8
8
|
date_accessor :created_at
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Seam
|
4
4
|
module Resources
|
5
5
|
class Device < BaseResource
|
6
|
-
attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :can_unlock_with_code, :capabilities_supported, :connected_account_id, :custom_metadata, :device_id, :device_type, :display_name, :is_managed, :location, :nickname, :properties, :workspace_id
|
6
|
+
attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_run_thermostat_programs, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :can_unlock_with_code, :capabilities_supported, :connected_account_id, :custom_metadata, :device_id, :device_type, :display_name, :is_managed, :location, :nickname, :properties, :workspace_id
|
7
7
|
|
8
8
|
date_accessor :created_at
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Seam
|
4
4
|
module Resources
|
5
5
|
class DeviceProvider < BaseResource
|
6
|
-
attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :can_unlock_with_code, :device_provider_name, :display_name, :image_url, :provider_categories
|
6
|
+
attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_run_thermostat_programs, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :can_unlock_with_code, :device_provider_name, :display_name, :image_url, :provider_categories
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -27,7 +27,6 @@ require_relative "device_provider"
|
|
27
27
|
require_relative "enrollment_automation"
|
28
28
|
require_relative "event"
|
29
29
|
require_relative "instant_key"
|
30
|
-
require_relative "location"
|
31
30
|
require_relative "magic_link"
|
32
31
|
require_relative "noise_threshold"
|
33
32
|
require_relative "pagination"
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Seam
|
4
4
|
module Resources
|
5
5
|
class UnmanagedDevice < BaseResource
|
6
|
-
attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :can_unlock_with_code, :capabilities_supported, :connected_account_id, :device_id, :device_type, :is_managed, :location, :properties, :workspace_id
|
6
|
+
attr_accessor :can_hvac_cool, :can_hvac_heat, :can_hvac_heat_cool, :can_program_offline_access_codes, :can_program_online_access_codes, :can_remotely_lock, :can_remotely_unlock, :can_run_thermostat_programs, :can_simulate_connection, :can_simulate_disconnection, :can_simulate_removal, :can_turn_off_hvac, :can_unlock_with_code, :capabilities_supported, :connected_account_id, :device_id, :device_type, :is_managed, :location, :properties, :workspace_id
|
7
7
|
|
8
8
|
date_accessor :created_at
|
9
9
|
|
data/lib/seam/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.55.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seam Labs, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -236,6 +236,7 @@ files:
|
|
236
236
|
- lib/seam/routes/clients/phones_simulate.rb
|
237
237
|
- lib/seam/routes/clients/spaces.rb
|
238
238
|
- lib/seam/routes/clients/thermostats.rb
|
239
|
+
- lib/seam/routes/clients/thermostats_daily_programs.rb
|
239
240
|
- lib/seam/routes/clients/thermostats_schedules.rb
|
240
241
|
- lib/seam/routes/clients/thermostats_simulate.rb
|
241
242
|
- lib/seam/routes/clients/user_identities.rb
|
@@ -264,7 +265,6 @@ files:
|
|
264
265
|
- lib/seam/routes/resources/event.rb
|
265
266
|
- lib/seam/routes/resources/index.rb
|
266
267
|
- lib/seam/routes/resources/instant_key.rb
|
267
|
-
- lib/seam/routes/resources/location.rb
|
268
268
|
- lib/seam/routes/resources/magic_link.rb
|
269
269
|
- lib/seam/routes/resources/noise_threshold.rb
|
270
270
|
- lib/seam/routes/resources/pagination.rb
|