seam 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/seam/routes/clients/access_codes.rb +2 -2
- data/lib/seam/routes/clients/acs_credentials.rb +2 -2
- data/lib/seam/routes/clients/acs_encoders.rb +7 -7
- data/lib/seam/routes/clients/thermostats.rb +2 -2
- data/lib/seam/routes/clients/thermostats_schedules.rb +4 -4
- data/lib/seam/routes/resources/acs_system.rb +1 -1
- data/lib/seam/routes/resources/thermostat_schedule.rb +1 -1
- data/lib/seam/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c07f619b27bff2b51f470df41776663837f1927928c4ecbe9a3dfaad95f94be5
|
4
|
+
data.tar.gz: 15462d83c3305282d8cf4c7a08579617bb7c3f9436c3e873f3ff1fc662a6e12f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbaaedfa65d60963d719e848cd57628d8bad58c006f754e9fb6c5d87debed97601304cff9890f372da889029b77b3f66f94ee83e9683cf158303c84dfcb7caa8
|
7
|
+
data.tar.gz: '09709484de2997533804923d5efbe605f60c6e62cf8d37689e99f5f4c65220484d65db9650386d2c1a851df392ba4a88c09b24c7f0c7713bb94263c4f4b28dee'
|
data/Gemfile.lock
CHANGED
@@ -64,8 +64,8 @@ module Seam
|
|
64
64
|
nil
|
65
65
|
end
|
66
66
|
|
67
|
-
def update_multiple(common_code_key:,
|
68
|
-
@client.post("/access_codes/update_multiple", {common_code_key: common_code_key,
|
67
|
+
def update_multiple(common_code_key:, ends_at: nil, name: nil, starts_at: nil)
|
68
|
+
@client.post("/access_codes/update_multiple", {common_code_key: common_code_key, ends_at: ends_at, name: name, starts_at: starts_at}.compact)
|
69
69
|
|
70
70
|
nil
|
71
71
|
end
|
@@ -14,8 +14,8 @@ module Seam
|
|
14
14
|
nil
|
15
15
|
end
|
16
16
|
|
17
|
-
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)
|
18
|
-
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)
|
17
|
+
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)
|
18
|
+
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)
|
19
19
|
|
20
20
|
Seam::Resources::AcsCredential.load_from_response(res.body["acs_credential"])
|
21
21
|
end
|
@@ -10,22 +10,22 @@ module Seam
|
|
10
10
|
@defaults = defaults
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
14
|
-
res = @client.post("/acs/encoders/
|
13
|
+
def encode_credential(acs_credential_id:, acs_encoder_id:, wait_for_action_attempt: nil)
|
14
|
+
res = @client.post("/acs/encoders/encode_credential", {acs_credential_id: acs_credential_id, acs_encoder_id: acs_encoder_id}.compact)
|
15
15
|
|
16
16
|
wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
|
17
17
|
|
18
18
|
Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
|
19
19
|
end
|
20
20
|
|
21
|
-
def list(
|
22
|
-
|
21
|
+
def list(acs_encoder_ids: nil, acs_system_ids: nil, limit: nil)
|
22
|
+
@client.post("/acs/encoders/list", {acs_encoder_ids: acs_encoder_ids, acs_system_ids: acs_system_ids, limit: limit}.compact)
|
23
23
|
|
24
|
-
|
24
|
+
nil
|
25
25
|
end
|
26
26
|
|
27
|
-
def
|
28
|
-
res = @client.post("/acs/encoders/
|
27
|
+
def scan_credential(acs_encoder_id:, acs_system_id:, wait_for_action_attempt: nil)
|
28
|
+
res = @client.post("/acs/encoders/scan_credential", {acs_encoder_id: acs_encoder_id, acs_system_id: acs_system_id}.compact)
|
29
29
|
|
30
30
|
wait_for_action_attempt = wait_for_action_attempt.nil? ? @defaults.wait_for_action_attempt : wait_for_action_attempt
|
31
31
|
|
@@ -30,8 +30,8 @@ module Seam
|
|
30
30
|
Helpers::ActionAttempt.decide_and_wait(Seam::Resources::ActionAttempt.load_from_response(res.body["action_attempt"]), @client, wait_for_action_attempt)
|
31
31
|
end
|
32
32
|
|
33
|
-
def create_climate_preset(climate_preset_key:, device_id:,
|
34
|
-
@client.post("/thermostats/create_climate_preset", {climate_preset_key: climate_preset_key, device_id: device_id,
|
33
|
+
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)
|
34
|
+
@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)
|
35
35
|
|
36
36
|
nil
|
37
37
|
end
|
@@ -8,8 +8,8 @@ module Seam
|
|
8
8
|
@defaults = defaults
|
9
9
|
end
|
10
10
|
|
11
|
-
def create(climate_preset_key:, device_id:, ends_at:, starts_at:, max_override_period_minutes: nil, name: nil)
|
12
|
-
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)
|
11
|
+
def create(climate_preset_key:, device_id:, ends_at:, starts_at:, is_override_allowed: nil, max_override_period_minutes: nil, name: nil)
|
12
|
+
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)
|
13
13
|
|
14
14
|
Seam::Resources::ThermostatSchedule.load_from_response(res.body["thermostat_schedule"])
|
15
15
|
end
|
@@ -32,8 +32,8 @@ module Seam
|
|
32
32
|
Seam::Resources::ThermostatSchedule.load_from_response(res.body["thermostat_schedules"])
|
33
33
|
end
|
34
34
|
|
35
|
-
def update(thermostat_schedule_id:, climate_preset_key: nil, ends_at: nil, max_override_period_minutes: nil, name: nil, starts_at: nil)
|
36
|
-
@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)
|
35
|
+
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)
|
36
|
+
@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)
|
37
37
|
|
38
38
|
nil
|
39
39
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Seam
|
4
4
|
module Resources
|
5
5
|
class AcsSystem < BaseResource
|
6
|
-
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
|
6
|
+
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
|
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 ThermostatSchedule < BaseResource
|
6
|
-
attr_accessor :climate_preset_key, :device_id, :max_override_period_minutes, :name, :thermostat_schedule_id
|
6
|
+
attr_accessor :climate_preset_key, :device_id, :max_override_period_minutes, :name, :thermostat_schedule_id, :unstable_is_override_allowed
|
7
7
|
|
8
8
|
date_accessor :created_at, :ends_at, :starts_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.0
|
4
|
+
version: 2.1.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: 2024-11-
|
11
|
+
date: 2024-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|