seam 2.168.0 → 2.169.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 +2 -2
- data/lib/seam/resources/access_code.rb +0 -57
- data/lib/seam/resources/action_attempt.rb +2 -2
- data/lib/seam/resources/connected_account.rb +1 -18
- data/lib/seam/resources/device.rb +0 -21
- data/lib/seam/resources/event.rb +0 -9
- data/lib/seam/resources/phone.rb +0 -17
- data/lib/seam/resources/unmanaged_access_code.rb +0 -57
- data/lib/seam/resources/unmanaged_device.rb +0 -21
- data/lib/seam/routes/customers.rb +2 -3
- data/lib/seam/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b3028a0c0f96d3b351a85542a3a5ee70071dbef805ec3e77fdc43dadfd8903c
|
|
4
|
+
data.tar.gz: 4e976eb3c071ed18119281ee750ace0975ba274738f1bea87a17656b5b15ca83
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7d1642ed823327303242addaa7b1a915b27debb42fe98473d756b0cf278cd1668aa6a568aab702ec483cec2dfa1d0f1df3adb7fa7e266c05d8fa14e9255c9b7
|
|
7
|
+
data.tar.gz: '095e514bedd2d84ee475ac7cf5670d97eb9f2e40b2ab992da016ef6c413070cafa08e61d500c6d6a6294c5db39aeff2e7936d9d823e2152bc4f476a71321fcb9'
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
seam (2.
|
|
4
|
+
seam (2.169.0)
|
|
5
5
|
faraday (~> 2.7)
|
|
6
6
|
faraday-retry (~> 2.2)
|
|
7
7
|
svix (~> 1.30)
|
|
@@ -171,7 +171,7 @@ CHECKSUMS
|
|
|
171
171
|
rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
|
|
172
172
|
rubocop-performance (1.26.1) sha256=cd19b936ff196df85829d264b522fd4f98b6c89ad271fa52744a8c11b8f71834
|
|
173
173
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
174
|
-
seam (2.
|
|
174
|
+
seam (2.169.0)
|
|
175
175
|
simplecov (1.1.1) sha256=25825ef13f0b2e74694d769817dad6ab8e90131dabdaa666e522fea105521e78
|
|
176
176
|
simplecov-console (0.9.5) sha256=b1108bcfff5f210143e2b8301698c367b01586f20d25a73e95475a5df6fc6ff6
|
|
177
177
|
standard (1.56.0) sha256=ae2af4d9669589162ac69ed5ef59dcf9f346d4afc81f7e62b84339310dfcb787
|
|
@@ -213,42 +213,6 @@ module Seam
|
|
|
213
213
|
date_accessor :created_at
|
|
214
214
|
end
|
|
215
215
|
|
|
216
|
-
# Seam was unable to issue this access code before its start time, so the recipient may be unable to unlock the device. This usually points to a problem that needs attention, such as an offline or disconnected device. This error clears automatically if the access code is eventually issued.
|
|
217
|
-
class FailedToIssue < Errors
|
|
218
|
-
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
219
|
-
# @return [String]
|
|
220
|
-
# Known values:
|
|
221
|
-
# - `failed_to_issue`
|
|
222
|
-
attr_accessor :error_code
|
|
223
|
-
# Indicates that this is an access code error.
|
|
224
|
-
# @return [TrueClass]
|
|
225
|
-
attr_accessor :is_access_code_error
|
|
226
|
-
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
227
|
-
# @return [String]
|
|
228
|
-
attr_accessor :message
|
|
229
|
-
# Date and time at which Seam created the error.
|
|
230
|
-
# @return [Time, nil]
|
|
231
|
-
date_accessor :created_at
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
# Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied.
|
|
235
|
-
class FailedToUpdate < Errors
|
|
236
|
-
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
237
|
-
# @return [String]
|
|
238
|
-
# Known values:
|
|
239
|
-
# - `failed_to_update`
|
|
240
|
-
attr_accessor :error_code
|
|
241
|
-
# Indicates that this is an access code error.
|
|
242
|
-
# @return [TrueClass]
|
|
243
|
-
attr_accessor :is_access_code_error
|
|
244
|
-
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
245
|
-
# @return [String]
|
|
246
|
-
attr_accessor :message
|
|
247
|
-
# Date and time at which Seam created the error.
|
|
248
|
-
# @return [Time, nil]
|
|
249
|
-
date_accessor :created_at
|
|
250
|
-
end
|
|
251
|
-
|
|
252
216
|
# Seam was unable to remove this access code from the device in time after it was deleted or its `ends_at` passed, so the recipient may still be able to unlock the device. Seam keeps trying to delete it, and this error clears automatically once the access code is no longer usable on the device.
|
|
253
217
|
class FailedToDelete < Errors
|
|
254
218
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
@@ -563,8 +527,6 @@ module Seam
|
|
|
563
527
|
# - `conflicting_external_modification`
|
|
564
528
|
# - `access_code_inactive`
|
|
565
529
|
# - `code_constraints_violated`
|
|
566
|
-
# - `failed_to_issue`
|
|
567
|
-
# - `failed_to_update`
|
|
568
530
|
# - `failed_to_delete`
|
|
569
531
|
# - `account_disconnected`
|
|
570
532
|
# - `salto_ks_subscription_limit_exceeded`
|
|
@@ -598,8 +560,6 @@ module Seam
|
|
|
598
560
|
"conflicting_external_modification" => ConflictingExternalModification,
|
|
599
561
|
"access_code_inactive" => AccessCodeInactive,
|
|
600
562
|
"code_constraints_violated" => CodeConstraintsViolated,
|
|
601
|
-
"failed_to_issue" => FailedToIssue,
|
|
602
|
-
"failed_to_update" => FailedToUpdate,
|
|
603
563
|
"failed_to_delete" => FailedToDelete,
|
|
604
564
|
"account_disconnected" => AccountDisconnected,
|
|
605
565
|
"salto_ks_subscription_limit_exceeded" => SaltoKsSubscriptionLimitExceeded,
|
|
@@ -771,21 +731,6 @@ module Seam
|
|
|
771
731
|
date_accessor :created_at
|
|
772
732
|
end
|
|
773
733
|
|
|
774
|
-
# Seam has not yet issued this access code, even though its start time is approaching, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and this warning clears automatically once issuance succeeds.
|
|
775
|
-
class DelayInIssuing < Warnings
|
|
776
|
-
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
777
|
-
# @return [String]
|
|
778
|
-
attr_accessor :message
|
|
779
|
-
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
780
|
-
# @return [String]
|
|
781
|
-
# Known values:
|
|
782
|
-
# - `delay_in_issuing`
|
|
783
|
-
attr_accessor :warning_code
|
|
784
|
-
# Date and time at which Seam created the warning.
|
|
785
|
-
# @return [Time, nil]
|
|
786
|
-
date_accessor :created_at
|
|
787
|
-
end
|
|
788
|
-
|
|
789
734
|
# Third-party integration detected that may cause access codes to fail.
|
|
790
735
|
class ThirdPartyIntegrationDetected < Warnings
|
|
791
736
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
@@ -905,7 +850,6 @@ module Seam
|
|
|
905
850
|
# - `external_modification_in_effect`
|
|
906
851
|
# - `delay_in_setting_on_device`
|
|
907
852
|
# - `delay_in_removing_from_device`
|
|
908
|
-
# - `delay_in_issuing`
|
|
909
853
|
# - `third_party_integration_detected`
|
|
910
854
|
# - `igloo_algopin_must_be_used_within_24_hours`
|
|
911
855
|
# - `management_transferred`
|
|
@@ -924,7 +868,6 @@ module Seam
|
|
|
924
868
|
"external_modification_in_effect" => ExternalModificationInEffect,
|
|
925
869
|
"delay_in_setting_on_device" => DelayInSettingOnDevice,
|
|
926
870
|
"delay_in_removing_from_device" => DelayInRemovingFromDevice,
|
|
927
|
-
"delay_in_issuing" => DelayInIssuing,
|
|
928
871
|
"third_party_integration_detected" => ThirdPartyIntegrationDetected,
|
|
929
872
|
"igloo_algopin_must_be_used_within_24_hours" => IglooAlgopinMustBeUsedWithinN24Hours,
|
|
930
873
|
"management_transferred" => ManagementTransferred,
|
|
@@ -359,7 +359,7 @@ module Seam
|
|
|
359
359
|
# Indicates whether the latest state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.
|
|
360
360
|
# @return [Boolean, nil]
|
|
361
361
|
attr_accessor :is_latest_desired_state_synced_with_provider
|
|
362
|
-
# @return [
|
|
362
|
+
# @return [TrueClass]
|
|
363
363
|
attr_accessor :is_managed
|
|
364
364
|
# Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).
|
|
365
365
|
# @return [Boolean, nil]
|
|
@@ -635,7 +635,7 @@ module Seam
|
|
|
635
635
|
# Indicates whether the latest state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.
|
|
636
636
|
# @return [Boolean, nil]
|
|
637
637
|
attr_accessor :is_latest_desired_state_synced_with_provider
|
|
638
|
-
# @return [
|
|
638
|
+
# @return [TrueClass]
|
|
639
639
|
attr_accessor :is_managed
|
|
640
640
|
# Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).
|
|
641
641
|
# @return [Boolean, nil]
|
|
@@ -274,21 +274,6 @@ module Seam
|
|
|
274
274
|
date_accessor :created_at
|
|
275
275
|
end
|
|
276
276
|
|
|
277
|
-
# Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account.
|
|
278
|
-
class DormakabaSitesUnapproved < Warnings
|
|
279
|
-
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
280
|
-
# @return [String]
|
|
281
|
-
attr_accessor :message
|
|
282
|
-
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
283
|
-
# @return [String]
|
|
284
|
-
# Known values:
|
|
285
|
-
# - `dormakaba_sites_unapproved`
|
|
286
|
-
attr_accessor :warning_code
|
|
287
|
-
# Date and time at which Seam created the warning.
|
|
288
|
-
# @return [Time]
|
|
289
|
-
date_accessor :created_at
|
|
290
|
-
end
|
|
291
|
-
|
|
292
277
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
293
278
|
# @return [String]
|
|
294
279
|
attr_accessor :message
|
|
@@ -302,7 +287,6 @@ module Seam
|
|
|
302
287
|
# - `being_deleted`
|
|
303
288
|
# - `provider_service_unavailable`
|
|
304
289
|
# - `setup_required`
|
|
305
|
-
# - `dormakaba_sites_unapproved`
|
|
306
290
|
attr_accessor :warning_code
|
|
307
291
|
# Date and time at which Seam created the warning.
|
|
308
292
|
# @return [Time]
|
|
@@ -315,8 +299,7 @@ module Seam
|
|
|
315
299
|
"account_reauthorization_requested" => AccountReauthorizationRequested,
|
|
316
300
|
"being_deleted" => BeingDeleted,
|
|
317
301
|
"provider_service_unavailable" => ProviderServiceUnavailable,
|
|
318
|
-
"setup_required" => SetupRequired
|
|
319
|
-
"dormakaba_sites_unapproved" => DormakabaSitesUnapproved
|
|
302
|
+
"setup_required" => SetupRequired
|
|
320
303
|
}.freeze
|
|
321
304
|
end
|
|
322
305
|
|
|
@@ -2503,21 +2503,6 @@ module Seam
|
|
|
2503
2503
|
date_accessor :created_at
|
|
2504
2504
|
end
|
|
2505
2505
|
|
|
2506
|
-
# Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back.
|
|
2507
|
-
class ServiceMode < Warnings
|
|
2508
|
-
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
2509
|
-
# @return [String]
|
|
2510
|
-
attr_accessor :message
|
|
2511
|
-
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
2512
|
-
# @return [String]
|
|
2513
|
-
# Known values:
|
|
2514
|
-
# - `service_mode`
|
|
2515
|
-
attr_accessor :warning_code
|
|
2516
|
-
# Date and time at which Seam created the warning.
|
|
2517
|
-
# @return [Time]
|
|
2518
|
-
date_accessor :created_at
|
|
2519
|
-
end
|
|
2520
|
-
|
|
2521
2506
|
# Indicates a provider-specific issue that may affect device functionality.
|
|
2522
2507
|
class ProviderIssue < Warnings
|
|
2523
2508
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
@@ -2687,7 +2672,6 @@ module Seam
|
|
|
2687
2672
|
# - `time_zone_mismatch`
|
|
2688
2673
|
# - `two_n_device_missing_timezone`
|
|
2689
2674
|
# - `hub_required_for_additional_capabilities`
|
|
2690
|
-
# - `service_mode`
|
|
2691
2675
|
# - `provider_issue`
|
|
2692
2676
|
# - `keynest_unsupported_locker`
|
|
2693
2677
|
# - `accessory_keypad_setup_required`
|
|
@@ -2725,7 +2709,6 @@ module Seam
|
|
|
2725
2709
|
"time_zone_mismatch" => TimeZoneMismatch,
|
|
2726
2710
|
"two_n_device_missing_timezone" => TwoNDeviceMissingTimezone,
|
|
2727
2711
|
"hub_required_for_additional_capabilities" => HubRequiredForAdditionalCapabilities,
|
|
2728
|
-
"service_mode" => ServiceMode,
|
|
2729
2712
|
"provider_issue" => ProviderIssue,
|
|
2730
2713
|
"keynest_unsupported_locker" => KeynestUnsupportedLocker,
|
|
2731
2714
|
"accessory_keypad_setup_required" => AccessoryKeypadSetupRequired,
|
|
@@ -2913,10 +2896,6 @@ module Seam
|
|
|
2913
2896
|
# - `unifi_protect_camera`
|
|
2914
2897
|
# - `sonos_speaker`
|
|
2915
2898
|
# - `alertify_sensor`
|
|
2916
|
-
# - `hayward_pool_controller`
|
|
2917
|
-
# - `jandy_pool_controller`
|
|
2918
|
-
# - `hayward_pool`
|
|
2919
|
-
# - `jandy_pool`
|
|
2920
2899
|
attr_accessor :device_type
|
|
2921
2900
|
# Display name of the device, defaults to nickname (if it is set) or `properties.appearance.name`, otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.
|
|
2922
2901
|
# @return [String]
|
data/lib/seam/resources/event.rb
CHANGED
|
@@ -5458,10 +5458,6 @@ module Seam
|
|
|
5458
5458
|
# - `access_code.removed_from_device`
|
|
5459
5459
|
# - `access_code.delay_in_setting_on_device`
|
|
5460
5460
|
# - `access_code.failed_to_set_on_device`
|
|
5461
|
-
# - `access_code.issued`
|
|
5462
|
-
# - `access_code.delay_in_issuing`
|
|
5463
|
-
# - `access_code.failed_to_issue`
|
|
5464
|
-
# - `access_code.failed_to_update`
|
|
5465
5461
|
# - `access_code.failed_to_delete`
|
|
5466
5462
|
# - `access_code.deleted`
|
|
5467
5463
|
# - `access_code.delay_in_removing_from_device`
|
|
@@ -5505,7 +5501,6 @@ module Seam
|
|
|
5505
5501
|
# - `client_session.deleted`
|
|
5506
5502
|
# - `connected_account.connected`
|
|
5507
5503
|
# - `connected_account.created`
|
|
5508
|
-
# - `connected_account.successful_login`
|
|
5509
5504
|
# - `connected_account.disconnected`
|
|
5510
5505
|
# - `connected_account.completed_first_sync`
|
|
5511
5506
|
# - `connected_account.deleted`
|
|
@@ -5558,13 +5553,9 @@ module Seam
|
|
|
5558
5553
|
# - `thermostat.temperature_threshold_no_longer_exceeded`
|
|
5559
5554
|
# - `thermostat.temperature_reached_set_point`
|
|
5560
5555
|
# - `thermostat.temperature_changed`
|
|
5561
|
-
# - `pool.temperature_changed`
|
|
5562
|
-
# - `pool.temperature_reached_set_point`
|
|
5563
|
-
# - `pool.manually_adjusted`
|
|
5564
5556
|
# - `device.name_changed`
|
|
5565
5557
|
# - `camera.activated`
|
|
5566
5558
|
# - `device.doorbell_rang`
|
|
5567
|
-
# - `enrollment_automation.deleted`
|
|
5568
5559
|
# - `phone.deactivated`
|
|
5569
5560
|
# - `space.device_membership_changed`
|
|
5570
5561
|
# - `space.created`
|
data/lib/seam/resources/phone.rb
CHANGED
|
@@ -701,21 +701,6 @@ module Seam
|
|
|
701
701
|
date_accessor :created_at
|
|
702
702
|
end
|
|
703
703
|
|
|
704
|
-
# Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back.
|
|
705
|
-
class ServiceMode < Warnings
|
|
706
|
-
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
707
|
-
# @return [String]
|
|
708
|
-
attr_accessor :message
|
|
709
|
-
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
710
|
-
# @return [String]
|
|
711
|
-
# Known values:
|
|
712
|
-
# - `service_mode`
|
|
713
|
-
attr_accessor :warning_code
|
|
714
|
-
# Date and time at which Seam created the warning.
|
|
715
|
-
# @return [Time]
|
|
716
|
-
date_accessor :created_at
|
|
717
|
-
end
|
|
718
|
-
|
|
719
704
|
# Indicates a provider-specific issue that may affect device functionality.
|
|
720
705
|
class ProviderIssue < Warnings
|
|
721
706
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
@@ -885,7 +870,6 @@ module Seam
|
|
|
885
870
|
# - `time_zone_mismatch`
|
|
886
871
|
# - `two_n_device_missing_timezone`
|
|
887
872
|
# - `hub_required_for_additional_capabilities`
|
|
888
|
-
# - `service_mode`
|
|
889
873
|
# - `provider_issue`
|
|
890
874
|
# - `keynest_unsupported_locker`
|
|
891
875
|
# - `accessory_keypad_setup_required`
|
|
@@ -923,7 +907,6 @@ module Seam
|
|
|
923
907
|
"time_zone_mismatch" => TimeZoneMismatch,
|
|
924
908
|
"two_n_device_missing_timezone" => TwoNDeviceMissingTimezone,
|
|
925
909
|
"hub_required_for_additional_capabilities" => HubRequiredForAdditionalCapabilities,
|
|
926
|
-
"service_mode" => ServiceMode,
|
|
927
910
|
"provider_issue" => ProviderIssue,
|
|
928
911
|
"keynest_unsupported_locker" => KeynestUnsupportedLocker,
|
|
929
912
|
"accessory_keypad_setup_required" => AccessoryKeypadSetupRequired,
|
|
@@ -215,42 +215,6 @@ module Seam
|
|
|
215
215
|
date_accessor :created_at
|
|
216
216
|
end
|
|
217
217
|
|
|
218
|
-
# Seam was unable to issue this access code before its start time, so the recipient may be unable to unlock the device. This usually points to a problem that needs attention, such as an offline or disconnected device. This error clears automatically if the access code is eventually issued.
|
|
219
|
-
class FailedToIssue < Errors
|
|
220
|
-
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
221
|
-
# @return [String]
|
|
222
|
-
# Known values:
|
|
223
|
-
# - `failed_to_issue`
|
|
224
|
-
attr_accessor :error_code
|
|
225
|
-
# Indicates that this is an access code error.
|
|
226
|
-
# @return [TrueClass]
|
|
227
|
-
attr_accessor :is_access_code_error
|
|
228
|
-
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
229
|
-
# @return [String]
|
|
230
|
-
attr_accessor :message
|
|
231
|
-
# Date and time at which Seam created the error.
|
|
232
|
-
# @return [Time, nil]
|
|
233
|
-
date_accessor :created_at
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
# Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied.
|
|
237
|
-
class FailedToUpdate < Errors
|
|
238
|
-
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
239
|
-
# @return [String]
|
|
240
|
-
# Known values:
|
|
241
|
-
# - `failed_to_update`
|
|
242
|
-
attr_accessor :error_code
|
|
243
|
-
# Indicates that this is an access code error.
|
|
244
|
-
# @return [TrueClass]
|
|
245
|
-
attr_accessor :is_access_code_error
|
|
246
|
-
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
247
|
-
# @return [String]
|
|
248
|
-
attr_accessor :message
|
|
249
|
-
# Date and time at which Seam created the error.
|
|
250
|
-
# @return [Time, nil]
|
|
251
|
-
date_accessor :created_at
|
|
252
|
-
end
|
|
253
|
-
|
|
254
218
|
# Seam was unable to remove this access code from the device in time after it was deleted or its `ends_at` passed, so the recipient may still be able to unlock the device. Seam keeps trying to delete it, and this error clears automatically once the access code is no longer usable on the device.
|
|
255
219
|
class FailedToDelete < Errors
|
|
256
220
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
@@ -565,8 +529,6 @@ module Seam
|
|
|
565
529
|
# - `conflicting_external_modification`
|
|
566
530
|
# - `access_code_inactive`
|
|
567
531
|
# - `code_constraints_violated`
|
|
568
|
-
# - `failed_to_issue`
|
|
569
|
-
# - `failed_to_update`
|
|
570
532
|
# - `failed_to_delete`
|
|
571
533
|
# - `account_disconnected`
|
|
572
534
|
# - `salto_ks_subscription_limit_exceeded`
|
|
@@ -600,8 +562,6 @@ module Seam
|
|
|
600
562
|
"conflicting_external_modification" => ConflictingExternalModification,
|
|
601
563
|
"access_code_inactive" => AccessCodeInactive,
|
|
602
564
|
"code_constraints_violated" => CodeConstraintsViolated,
|
|
603
|
-
"failed_to_issue" => FailedToIssue,
|
|
604
|
-
"failed_to_update" => FailedToUpdate,
|
|
605
565
|
"failed_to_delete" => FailedToDelete,
|
|
606
566
|
"account_disconnected" => AccountDisconnected,
|
|
607
567
|
"salto_ks_subscription_limit_exceeded" => SaltoKsSubscriptionLimitExceeded,
|
|
@@ -720,21 +680,6 @@ module Seam
|
|
|
720
680
|
date_accessor :created_at
|
|
721
681
|
end
|
|
722
682
|
|
|
723
|
-
# Seam has not yet issued this access code, even though its start time is approaching, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and this warning clears automatically once issuance succeeds.
|
|
724
|
-
class DelayInIssuing < Warnings
|
|
725
|
-
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
726
|
-
# @return [String]
|
|
727
|
-
attr_accessor :message
|
|
728
|
-
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
729
|
-
# @return [String]
|
|
730
|
-
# Known values:
|
|
731
|
-
# - `delay_in_issuing`
|
|
732
|
-
attr_accessor :warning_code
|
|
733
|
-
# Date and time at which Seam created the warning.
|
|
734
|
-
# @return [Time, nil]
|
|
735
|
-
date_accessor :created_at
|
|
736
|
-
end
|
|
737
|
-
|
|
738
683
|
# Third-party integration detected that may cause access codes to fail.
|
|
739
684
|
class ThirdPartyIntegrationDetected < Warnings
|
|
740
685
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
@@ -854,7 +799,6 @@ module Seam
|
|
|
854
799
|
# - `external_modification_in_effect`
|
|
855
800
|
# - `delay_in_setting_on_device`
|
|
856
801
|
# - `delay_in_removing_from_device`
|
|
857
|
-
# - `delay_in_issuing`
|
|
858
802
|
# - `third_party_integration_detected`
|
|
859
803
|
# - `igloo_algopin_must_be_used_within_24_hours`
|
|
860
804
|
# - `management_transferred`
|
|
@@ -873,7 +817,6 @@ module Seam
|
|
|
873
817
|
"external_modification_in_effect" => ExternalModificationInEffect,
|
|
874
818
|
"delay_in_setting_on_device" => DelayInSettingOnDevice,
|
|
875
819
|
"delay_in_removing_from_device" => DelayInRemovingFromDevice,
|
|
876
|
-
"delay_in_issuing" => DelayInIssuing,
|
|
877
820
|
"third_party_integration_detected" => ThirdPartyIntegrationDetected,
|
|
878
821
|
"igloo_algopin_must_be_used_within_24_hours" => IglooAlgopinMustBeUsedWithinN24Hours,
|
|
879
822
|
"management_transferred" => ManagementTransferred,
|
|
@@ -754,21 +754,6 @@ module Seam
|
|
|
754
754
|
date_accessor :created_at
|
|
755
755
|
end
|
|
756
756
|
|
|
757
|
-
# Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back.
|
|
758
|
-
class ServiceMode < Warnings
|
|
759
|
-
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
760
|
-
# @return [String]
|
|
761
|
-
attr_accessor :message
|
|
762
|
-
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
763
|
-
# @return [String]
|
|
764
|
-
# Known values:
|
|
765
|
-
# - `service_mode`
|
|
766
|
-
attr_accessor :warning_code
|
|
767
|
-
# Date and time at which Seam created the warning.
|
|
768
|
-
# @return [Time]
|
|
769
|
-
date_accessor :created_at
|
|
770
|
-
end
|
|
771
|
-
|
|
772
757
|
# Indicates a provider-specific issue that may affect device functionality.
|
|
773
758
|
class ProviderIssue < Warnings
|
|
774
759
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
@@ -938,7 +923,6 @@ module Seam
|
|
|
938
923
|
# - `time_zone_mismatch`
|
|
939
924
|
# - `two_n_device_missing_timezone`
|
|
940
925
|
# - `hub_required_for_additional_capabilities`
|
|
941
|
-
# - `service_mode`
|
|
942
926
|
# - `provider_issue`
|
|
943
927
|
# - `keynest_unsupported_locker`
|
|
944
928
|
# - `accessory_keypad_setup_required`
|
|
@@ -976,7 +960,6 @@ module Seam
|
|
|
976
960
|
"time_zone_mismatch" => TimeZoneMismatch,
|
|
977
961
|
"two_n_device_missing_timezone" => TwoNDeviceMissingTimezone,
|
|
978
962
|
"hub_required_for_additional_capabilities" => HubRequiredForAdditionalCapabilities,
|
|
979
|
-
"service_mode" => ServiceMode,
|
|
980
963
|
"provider_issue" => ProviderIssue,
|
|
981
964
|
"keynest_unsupported_locker" => KeynestUnsupportedLocker,
|
|
982
965
|
"accessory_keypad_setup_required" => AccessoryKeypadSetupRequired,
|
|
@@ -1146,10 +1129,6 @@ module Seam
|
|
|
1146
1129
|
# - `unifi_protect_camera`
|
|
1147
1130
|
# - `sonos_speaker`
|
|
1148
1131
|
# - `alertify_sensor`
|
|
1149
|
-
# - `hayward_pool_controller`
|
|
1150
|
-
# - `jandy_pool_controller`
|
|
1151
|
-
# - `hayward_pool`
|
|
1152
|
-
# - `jandy_pool`
|
|
1153
1132
|
attr_accessor :device_type
|
|
1154
1133
|
# Display name of the device, defaults to nickname (if it is set) or `properties.appearance.name`, otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.
|
|
1155
1134
|
# @return [String]
|
|
@@ -73,14 +73,13 @@ module Seam
|
|
|
73
73
|
# @param rooms [Array<Hash>, nil] List of hotel or hospitality rooms.
|
|
74
74
|
# @param sites [Array<Hash>, nil] List of general sites or areas.
|
|
75
75
|
# @param spaces [Array<Hash>, nil] List of general spaces or areas.
|
|
76
|
-
# @param staff_members [Array<Hash>, nil] List of staff members.
|
|
77
76
|
# @param tenants [Array<Hash>, nil] List of tenants.
|
|
78
77
|
# @param units [Array<Hash>, nil] List of multi-family residential units.
|
|
79
78
|
# @param user_identities [Array<Hash>, nil] List of user identities.
|
|
80
79
|
# @param users [Array<Hash>, nil] List of users.
|
|
81
80
|
# @return [nil] OK
|
|
82
|
-
def push_data(customer_key:, access_grants: nil, bookings: nil, buildings: nil, common_areas: nil, customization_profile_id: nil, facilities: nil, guests: nil, listings: nil, low_battery_alert_threshold: nil, properties: nil, property_listings: nil, reservations: nil, residents: nil, rooms: nil, sites: nil, spaces: nil,
|
|
83
|
-
@client.post("/customers/push_data", {customer_key: customer_key, access_grants: access_grants, bookings: bookings, buildings: buildings, common_areas: common_areas, customization_profile_id: customization_profile_id, facilities: facilities, guests: guests, listings: listings, low_battery_alert_threshold: low_battery_alert_threshold, properties: properties, property_listings: property_listings, reservations: reservations, residents: residents, rooms: rooms, sites: sites, spaces: spaces,
|
|
81
|
+
def push_data(customer_key:, access_grants: nil, bookings: nil, buildings: nil, common_areas: nil, customization_profile_id: nil, facilities: nil, guests: nil, listings: nil, low_battery_alert_threshold: nil, properties: nil, property_listings: nil, reservations: nil, residents: nil, rooms: nil, sites: nil, spaces: nil, tenants: nil, units: nil, user_identities: nil, users: nil)
|
|
82
|
+
@client.post("/customers/push_data", {customer_key: customer_key, access_grants: access_grants, bookings: bookings, buildings: buildings, common_areas: common_areas, customization_profile_id: customization_profile_id, facilities: facilities, guests: guests, listings: listings, low_battery_alert_threshold: low_battery_alert_threshold, properties: properties, property_listings: property_listings, reservations: reservations, residents: residents, rooms: rooms, sites: sites, spaces: spaces, tenants: tenants, units: units, user_identities: user_identities, users: users}.compact)
|
|
84
83
|
|
|
85
84
|
nil
|
|
86
85
|
end
|
data/lib/seam/version.rb
CHANGED