cirro-ruby-client 2.6.2 → 2.6.4

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: 92c3a2334f236e91ae517d02d24f53712be09bd4d339d288b46835d5b26e85a3
4
- data.tar.gz: 653f51aecb055e375c508a925ad331c3684d05b609b74c9dae46e9e98f90b40b
3
+ metadata.gz: a84aba0003de465a6ddd93ca47a46f8c6c1977d52aaff23113d5ef950b24b1ac
4
+ data.tar.gz: 37affd014f89eedf9e49af0b463bbfe0a1c9f9ec418c29aeaa905d4d5621810b
5
5
  SHA512:
6
- metadata.gz: 87f11b8066c38e5a3d8a6de3060e9c5b3d092c4632dbc608f0d5b80d776b610a56cd4a4b3739a4900115f36c3c6456a079d832c3335f608e17e7a90c191374ab
7
- data.tar.gz: dfab1116f62d4bb445893798ec9af98547bb9d6a124965d714fb5a6bdf63e6712c40141adcffa45e02d04c9edbc06d3373a313d26af81ab287133286bb99ae2b
6
+ metadata.gz: d96c0998f29c25eb046a1de5c472c17244f54d8e11eaf0eada55465774441b9ae380171744afc4753e6288b98ff219fd6d16a0065aff3167bba41e55b71d2484
7
+ data.tar.gz: '097d1642325f4d755cad313cee52a76bfb80a02374dee43e056af52b6fe11091d05665089d2a75c156c82e4714c740845702cda7ae48398498885183c2f931cc'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cirro-ruby-client (2.6.2)
4
+ cirro-ruby-client (2.6.4)
5
5
  activesupport
6
6
  faraday (< 1.2.0)
7
7
  faraday_middleware
@@ -1,7 +1,7 @@
1
1
  # rubocop:disable Style/MutableConstant
2
2
  module CirroIO
3
3
  module Client
4
- VERSION = '2.6.2'
4
+ VERSION = '2.6.4'
5
5
  end
6
6
  end
7
7
  # rubocop:enable Style/MutableConstant
@@ -9,6 +9,16 @@ module CirroIOV2
9
9
  response = client.request_client.request(:get, resource_root, params:)
10
10
  Responses::NotificationTopicPreferenceListResponse.new(response.body)
11
11
  end
12
+
13
+ def create(params)
14
+ response = client.request_client.request(:post, resource_root, body: params)
15
+ Responses::NotificationTopicPreferenceResponse.new(response.body)
16
+ end
17
+
18
+ def update(id, params)
19
+ response = client.request_client.request(:post, "#{resource_root}/#{id}", body: params)
20
+ Responses::NotificationTopicPreferenceResponse.new(response.body)
21
+ end
12
22
  end
13
23
  end
14
24
  end
@@ -25,6 +25,11 @@ module CirroIOV2
25
25
  response = client.request_client.request(:post, "#{resource_root}/#{id}/worker", body: params)
26
26
  CirroIOV2::Responses::UserResponse.new(response.body)
27
27
  end
28
+
29
+ def invitation_attempt(id, params)
30
+ response = client.request_client.request(:post, "#{resource_root}/#{id}/invitation_attempt", body: params)
31
+ CirroIOV2::Responses::UserInvitationAttemptResponse.new(response.body)
32
+ end
28
33
  end
29
34
  end
30
35
  end
@@ -37,6 +37,16 @@ module CirroIOV2
37
37
  include Base
38
38
  end
39
39
 
40
+ UserInvitationAttemptResponse = Struct.new(:id,
41
+ :object,
42
+ :payload,
43
+ :gig_ids,
44
+ :app_worker_id,
45
+ :created_at,
46
+ keyword_init: true) do
47
+ include Base
48
+ end
49
+
40
50
  UserNotificationPreferenceResponse = Struct.new(:id, :object, :locale, :topics, keyword_init: true) do
41
51
  self::NESTED_RESPONSES = { topics: :NotificationTopicPreferenceListResponse }.freeze
42
52
  include Base
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cirro-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cirro Dev Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-11 00:00:00.000000000 Z
11
+ date: 2024-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport