seamapi 1.2.0 → 1.3.0

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: c482430d7a10dda3c715ba9d02a82f6a5be2bb5f7ae842fab31ef3ffa34c596c
4
- data.tar.gz: a82f3c59221478295809af1c8573eef3618fb782a6874166d6674d6da7b9bad4
3
+ metadata.gz: 0df63b14d75eb93006166eff214e8e4fb67157fde24b958191c553db320e059f
4
+ data.tar.gz: 0234fe95e725d46ef918245cb404eaedc5a9d1a1ffbfc5bd04e7bcb8db0b075e
5
5
  SHA512:
6
- metadata.gz: 484070fa50f932bc4a0779ef2f7bbcda82ed9590a6724b3cb35ad0eaf15f2fe63651de0c86596abab6699627620f55b7e5870bd5112d8b868f4e9ed9571bb13d
7
- data.tar.gz: b31182797acb6350387bf3dd9284a8a7adca3238b044c539cbfaa2beb7f3887a9299a5ca683af192ffc1d267273de714fae79c3ec1969653af24fe2422554235
6
+ metadata.gz: 4dfca5bd60f436a03af06b8a6d06b7105567d1f04728f2c370db478a35f2a686756cdeafa6811c3b8b07092c98f71e006d86775c679d66f33734d5ad8cccc643
7
+ data.tar.gz: b19ca70f71e6da7b8ca011a090b843b7e7faa055383265d2c82782a7ac67877a44da2e5c9a0324c0f7d98c49c140fdefe1952cfb49d59cbb89e34f15d0670b0e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seamapi (1.2.0)
4
+ seamapi (1.3.0)
5
5
  http (~> 5.0.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -16,7 +16,7 @@ This library includes:
16
16
 
17
17
  - A predefined set of classes for API resources that
18
18
  initialize themselves dynamically from API responses.
19
- - Methods for all [Seam API endpoints].
19
+ - Methods for all [Seam API endpoints](https://docs.seam.co/latest/api-clients/overview).
20
20
  - Simplified asynchronous flows, e.g., listening for events or actions to finish.
21
21
 
22
22
  [Seam API endpoints]: https://docs.seam.co/latest/api-endpoints/overview
data/lib/seam/client.rb CHANGED
@@ -44,6 +44,10 @@ module Seam
44
44
  @workspaces ||= Seam::Clients::Workspaces.new(self)
45
45
  end
46
46
 
47
+ def events
48
+ @events ||= Seam::Clients::Events.new(self)
49
+ end
50
+
47
51
  def request_seam_object(method, path, klass, inner_object, config = {})
48
52
  response = request_seam(method, path, config)
49
53
 
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Seam
4
+ class Event < BaseResource
5
+ attr_accessor :event_id, :event_type, :payload, :workspace_id, :device_id
6
+
7
+ date_accessor :created_at
8
+ end
9
+ 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 = "1.2.0"
4
+ VERSION = "1.3.0"
5
5
  end
data/lib/seamapi.rb CHANGED
@@ -12,6 +12,7 @@ require_relative "seam/clients/connect_webviews"
12
12
  require_relative "seam/clients/connected_accounts"
13
13
  require_relative "seam/clients/access_codes"
14
14
  require_relative "seam/clients/action_attempts"
15
+ require_relative "seam/clients/events"
15
16
  require_relative "seam/resources/base_resource"
16
17
  require_relative "seam/resources/resource_warning"
17
18
  require_relative "seam/resources/resource_error"
@@ -23,6 +24,7 @@ require_relative "seam/resources/action_attempt"
23
24
  require_relative "seam/resources/connect_webview"
24
25
  require_relative "seam/resources/connected_account"
25
26
  require_relative "seam/resources/workspace"
27
+ require_relative "seam/resources/event"
26
28
 
27
29
  module Seam
28
30
  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.2.0
4
+ version: 1.3.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: 2022-12-02 00:00:00.000000000 Z
11
+ date: 2022-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -168,6 +168,7 @@ files:
168
168
  - lib/seam/resources/action_attempt.rb
169
169
  - lib/seam/resources/connect_webview.rb
170
170
  - lib/seam/resources/connected_account.rb
171
+ - lib/seam/resources/event.rb
171
172
  - lib/seam/resources/resource_error.rb
172
173
  - lib/seam/resources/resource_errors_support.rb
173
174
  - lib/seam/resources/resource_warning.rb