seam 2.34.0 → 2.36.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fc36c13fe6480a5658920201a9c9c70f9abd3059e42b17bcce4a26870a35b61
4
- data.tar.gz: 433d6be14f55a1ec718d05defb546a2da1bc1d8c7ce08233aab88d723d3191ce
3
+ metadata.gz: 255f211cd2b618d13e384a8d88e3ccc3e85a4cba904958062499f27be8cf264e
4
+ data.tar.gz: 349ad852421d46d45c88cea4a2d8524ba85815956248349ce203f65c94150f7e
5
5
  SHA512:
6
- metadata.gz: 4df0c8a227525531258aa96b9006dc90c25b06cafd178339554816ef10ebc578acfc7adda1be68d0e3fa4383422b2dabecdcef99f844d77cafc1fb51e23f9e3e
7
- data.tar.gz: e3a12f91398aedd5c5a124343cba6daae4c793a3f8e048ea47d6e8010c780a80f845686173a4eb7ec61ae68f4c805e3d523dea33e0387a5cb707a1bbc86bd0fd
6
+ metadata.gz: 7082a3da3a6dcc6bc9b0ae420888f5c59bc8f4b0bb2489f88fb7b59af7121da6a561a5e866a000d24443e78454fb69eb93caa9f04a646ab3a88ad8d6439f876c
7
+ data.tar.gz: db6c4e0ef52f14f776e4ed51e26874d8aa25dd339568cda34c78c3d9a286df3a913249e5323cf1c70063c1f1574afb1c1ee958e839ccbf7bc71f180c2be87838
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seam (2.34.0)
4
+ seam (2.36.0)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
  svix (~> 1.30)
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Seam
4
+ module Clients
5
+ class Customers
6
+ def initialize(client:, defaults:)
7
+ @client = client
8
+ @defaults = defaults
9
+ end
10
+
11
+ def create_portal(features: nil, is_embedded: nil, customer_data: nil)
12
+ res = @client.post("/customers/create_portal", {features: features, is_embedded: is_embedded, customer_data: customer_data}.compact)
13
+
14
+ Seam::Resources::MagicLink.load_from_response(res.body["magic_link"])
15
+ end
16
+
17
+ 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, spaces: nil, tenants: nil, units: nil, user_identities: nil, users: nil)
18
+ @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, spaces: spaces, tenants: tenants, units: units, user_identities: user_identities, users: users}.compact)
19
+
20
+ nil
21
+ end
22
+ end
23
+ end
24
+ end
@@ -17,6 +17,7 @@ require_relative "action_attempts"
17
17
  require_relative "client_sessions"
18
18
  require_relative "connect_webviews"
19
19
  require_relative "connected_accounts"
20
+ require_relative "customers"
20
21
  require_relative "devices"
21
22
  require_relative "devices_simulate"
22
23
  require_relative "devices_unmanaged"
@@ -31,7 +31,6 @@ require_relative "location"
31
31
  require_relative "magic_link"
32
32
  require_relative "noise_threshold"
33
33
  require_relative "pagination"
34
- require_relative "partner_resource"
35
34
  require_relative "phone"
36
35
  require_relative "phone_registration"
37
36
  require_relative "phone_session"
@@ -34,6 +34,10 @@ module Seam
34
34
  @connected_accounts ||= Seam::Clients::ConnectedAccounts.new(client: @client, defaults: @defaults)
35
35
  end
36
36
 
37
+ def customers
38
+ @customers ||= Seam::Clients::Customers.new(client: @client, defaults: @defaults)
39
+ end
40
+
37
41
  def devices
38
42
  @devices ||= Seam::Clients::Devices.new(client: @client, defaults: @defaults)
39
43
  end
data/lib/seam/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Seam
4
- VERSION = "2.34.0"
4
+ VERSION = "2.36.0"
5
5
  end
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.34.0
4
+ version: 2.36.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-06-19 00:00:00.000000000 Z
11
+ date: 2025-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -220,6 +220,7 @@ files:
220
220
  - lib/seam/routes/clients/client_sessions.rb
221
221
  - lib/seam/routes/clients/connect_webviews.rb
222
222
  - lib/seam/routes/clients/connected_accounts.rb
223
+ - lib/seam/routes/clients/customers.rb
223
224
  - lib/seam/routes/clients/devices.rb
224
225
  - lib/seam/routes/clients/devices_simulate.rb
225
226
  - lib/seam/routes/clients/devices_unmanaged.rb
@@ -267,7 +268,6 @@ files:
267
268
  - lib/seam/routes/resources/magic_link.rb
268
269
  - lib/seam/routes/resources/noise_threshold.rb
269
270
  - lib/seam/routes/resources/pagination.rb
270
- - lib/seam/routes/resources/partner_resource.rb
271
271
  - lib/seam/routes/resources/phone.rb
272
272
  - lib/seam/routes/resources/phone_registration.rb
273
273
  - lib/seam/routes/resources/phone_session.rb
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Seam
4
- module Resources
5
- class PartnerResource < BaseResource
6
- attr_accessor :custom_metadata, :customer_key, :description, :email_address, :ends_at, :location_keys, :name, :partner_resource_key, :partner_resource_type, :phone_number, :starts_at, :user_identity_key
7
- end
8
- end
9
- end