seamapi 1.11.2 → 1.12.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5f5d589ba0ee72ff541301d0c33340e2c35ec17980a0a3c0acc69e5edfeb88d
4
- data.tar.gz: 47d61608a6718436369159d41dbb62dda49d9d7524c2a97b73094d1a9da386d4
3
+ metadata.gz: 73bba18dbdf9351d8a533d80ee8557daf82a7f70ac54913f43e451b00112233d
4
+ data.tar.gz: 32cb605049a568bc4ddcdddbf8ea7805a597bb35e2975df8218200ba3cc391ec
5
5
  SHA512:
6
- metadata.gz: bdf8b0be4199ee50aa7d31d8a12841edbb0617b7578b10c4187ffda8ac0c046795110f5e65ee03e7cbe712c6ddc8622b13d47faac16f0e12f6c95a77a0c88ddc
7
- data.tar.gz: 586423464fa938e681407188ee4d1ed032a7db0e42c387aa69ce07a51957324a36c727b2d72a0faad9614ec397669715988a3a2c6744f20f2f3e453526dcd6cb
6
+ metadata.gz: 8918125f1d62599c7bccc41dd7be97cab6153c0c00edeed5176d263072560ccbafde19b694d5a312887765e4a930ad5bce8b6069009ffb9415ca8f048293b949
7
+ data.tar.gz: 8b7cae02aa8cfb8fc757a44b8e8affeeccb354a2935a5f358a4eb008d45b6c0520d44ccdb07e77404aa7d5ad12ec1356f89afc89e5bd3b29c0c5a2564f716654
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seamapi (1.11.2)
4
+ seamapi (1.12.1)
5
5
  http (~> 5.0.0)
6
6
 
7
7
  GEM
@@ -13,15 +13,15 @@ module Seam
13
13
  )
14
14
  end
15
15
 
16
- def list(device_or_id)
16
+ def list(device_or_id = nil, access_code_ids: nil)
17
17
  device_id = device_or_id.is_a?(Seam::Device) ? device_or_id.device_id : device_or_id
18
18
 
19
19
  request_seam_object(
20
- :get,
20
+ :post,
21
21
  "/access_codes/list",
22
22
  Seam::AccessCode,
23
23
  "access_codes",
24
- params: {device_id: device_id}
24
+ body: {device_id: device_id, access_code_ids: access_code_ids}.compact
25
25
  )
26
26
  end
27
27
 
@@ -50,7 +50,7 @@ module Seam
50
50
  action_attempt
51
51
  end
52
52
 
53
- def update(access_code_id: nil, name: nil, code: nil, starts_at: nil, ends_at: nil)
53
+ def update(access_code_id: nil, name: nil, code: nil, starts_at: nil, ends_at: nil, type: nil)
54
54
  action_attempt = request_seam_object(
55
55
  :post,
56
56
  "/access_codes/update",
@@ -61,7 +61,8 @@ module Seam
61
61
  name: name,
62
62
  code: code,
63
63
  starts_at: starts_at,
64
- ends_at: ends_at
64
+ ends_at: ends_at,
65
+ type: type
65
66
  }.compact
66
67
  )
67
68
  action_attempt.wait_until_finished
@@ -3,6 +3,19 @@
3
3
  module Seam
4
4
  module Clients
5
5
  class UnmanagedDevices < BaseClient
6
+ def get(device_id = nil, name: nil)
7
+ request_seam_object(
8
+ :get,
9
+ "/devices/unmanaged/get",
10
+ Seam::UnmanagedDevice,
11
+ "device",
12
+ params: {
13
+ device_id: device_id,
14
+ name: name
15
+ }.compact
16
+ )
17
+ end
18
+
6
19
  def list(params = {})
7
20
  request_seam_object(
8
21
  :get,
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Seam
4
4
  class UnmanagedDevice < BaseResource
5
- attr_accessor :device_id, :device_type, :properties, :connected_account_id, :workspace_id
5
+ attr_accessor :device_id, :device_type, :properties, :connected_account_id, :workspace_id, :capabilities_supported, :is_managed
6
6
 
7
7
  date_accessor :created_at
8
8
 
data/lib/seam/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Seam
4
- VERSION = "1.11.2"
4
+ VERSION = "1.12.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seamapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.2
4
+ version: 1.12.1
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: 2023-09-05 00:00:00.000000000 Z
11
+ date: 2023-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http