seam 2.161.0 → 2.163.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/space.rb +37 -0
- data/lib/seam/routes/customers.rb +3 -2
- 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: '022132618ebc3f3a0f2e87d0da9b4a2828cdd1cbe909102476566f4bc628cc4e'
|
|
4
|
+
data.tar.gz: e941ead73232338993a765c5debd07954951a7d53358070d8605bef50791bf4f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4281355eb3fe9a3ea175d777eb7f221bd9f56d208867bc02d5de3ba4c66a09e207af356984f09e0224a924bffe5f17470c35db56f82334afc16efd0043fff4e4
|
|
7
|
+
data.tar.gz: d6d7887c567584108811221a7f4dd8661465735913d5636e868908464caa1672e00d1ce48394fead2e61c179d4d53059cc33161990e2cbc894fb21f9eedcc2f2
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
seam (2.
|
|
4
|
+
seam (2.163.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.163.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
|
data/lib/seam/resources/space.rb
CHANGED
|
@@ -28,12 +28,49 @@ module Seam
|
|
|
28
28
|
attr_accessor :longitude
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
# Known `warning_code` values load as subclasses; unknown values remain Warnings instances for forward compatibility.
|
|
32
|
+
class Warnings < BaseResource
|
|
33
|
+
# Indicates that the space is being deleted. Seam removes it, revokes its access grants, and detaches its devices and entrances shortly.
|
|
34
|
+
class BeingDeleted < Warnings
|
|
35
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :message
|
|
38
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
39
|
+
# @return [String]
|
|
40
|
+
# Known values:
|
|
41
|
+
# - `being_deleted`
|
|
42
|
+
attr_accessor :warning_code
|
|
43
|
+
# Date and time at which Seam created the warning.
|
|
44
|
+
# @return [Time]
|
|
45
|
+
date_accessor :created_at
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
49
|
+
# @return [String]
|
|
50
|
+
attr_accessor :message
|
|
51
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
52
|
+
# @return [String]
|
|
53
|
+
# Known values:
|
|
54
|
+
# - `being_deleted`
|
|
55
|
+
attr_accessor :warning_code
|
|
56
|
+
# Date and time at which Seam created the warning.
|
|
57
|
+
# @return [Time]
|
|
58
|
+
date_accessor :created_at
|
|
59
|
+
|
|
60
|
+
discriminated_by :warning_code, {
|
|
61
|
+
"being_deleted" => BeingDeleted
|
|
62
|
+
}.freeze
|
|
63
|
+
end
|
|
64
|
+
|
|
31
65
|
# Reservation/stay-related defaults for the space. Also carries the provider/PMS-supplied name under a `<connector_type>_name` key (e.g. `guesty_name`), which Seam preserves when you rename the space (read-only — managed by Seam).
|
|
32
66
|
# @return [CustomerData, nil]
|
|
33
67
|
resource_accessor :customer_data, CustomerData
|
|
34
68
|
# Geographic coordinates (latitude and longitude) of the space.
|
|
35
69
|
# @return [Geolocation, nil]
|
|
36
70
|
resource_accessor :geolocation, Geolocation
|
|
71
|
+
# Warnings associated with the space.
|
|
72
|
+
# @return [Array<Warnings>]
|
|
73
|
+
resource_list_accessor :warnings, Warnings
|
|
37
74
|
# Number of entrances in the space.
|
|
38
75
|
# @return [Float]
|
|
39
76
|
attr_accessor :acs_entrance_count
|
|
@@ -61,6 +61,7 @@ module Seam
|
|
|
61
61
|
# @param bookings [Array<Hash>, nil] List of bookings.
|
|
62
62
|
# @param buildings [Array<Hash>, nil] List of buildings.
|
|
63
63
|
# @param common_areas [Array<Hash>, nil] List of shared common areas.
|
|
64
|
+
# @param customization_profile_id [String, Seam::Null, nil] ID of the customization profile to use for this customer. Access grants that automations create for this customer use this profile. Pass `null` to remove the customer's customization profile.
|
|
64
65
|
# @param facilities [Array<Hash>, nil] List of gym or fitness facilities.
|
|
65
66
|
# @param guests [Array<Hash>, nil] List of guests.
|
|
66
67
|
# @param listings [Array<Hash>, nil] List of property listings.
|
|
@@ -77,8 +78,8 @@ module Seam
|
|
|
77
78
|
# @param user_identities [Array<Hash>, nil] List of user identities.
|
|
78
79
|
# @param users [Array<Hash>, nil] List of users.
|
|
79
80
|
# @return [nil] OK
|
|
80
|
-
def push_data(customer_key:, access_grants: nil, bookings: nil, buildings: nil, common_areas: nil, facilities: nil, guests: nil, listings: nil, properties: nil, property_listings: nil, reservations: nil, residents: nil, rooms: nil, sites: nil, spaces: nil, staff_members: nil, tenants: nil, units: nil, user_identities: nil, users: nil)
|
|
81
|
-
@client.post("/customers/push_data", {customer_key: customer_key, access_grants: access_grants, bookings: bookings, buildings: buildings, common_areas: common_areas, facilities: facilities, guests: guests, listings: listings, properties: properties, property_listings: property_listings, reservations: reservations, residents: residents, rooms: rooms, sites: sites, spaces: spaces, staff_members: staff_members, tenants: tenants, units: units, user_identities: user_identities, users: users}.compact)
|
|
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, properties: nil, property_listings: nil, reservations: nil, residents: nil, rooms: nil, sites: nil, spaces: nil, staff_members: 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, properties: properties, property_listings: property_listings, reservations: reservations, residents: residents, rooms: rooms, sites: sites, spaces: spaces, staff_members: staff_members, tenants: tenants, units: units, user_identities: user_identities, users: users}.compact)
|
|
82
83
|
|
|
83
84
|
nil
|
|
84
85
|
end
|
data/lib/seam/version.rb
CHANGED