cirro-ruby-client 2.0.1 → 2.2.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 +11 -11
- data/README.md +12 -12
- data/lib/cirro_io/client/notifications_broadcast.rb +1 -1
- data/lib/cirro_io/client/notifications_template.rb +1 -1
- data/lib/cirro_io/client/{notifications_channel.rb → notifications_topic.rb} +1 -1
- data/lib/cirro_io/client/version.rb +1 -1
- data/lib/cirro_io/client.rb +1 -1
- data/lib/cirro_io_v2/client.rb +21 -10
- data/lib/cirro_io_v2/request_clients/jwt.rb +1 -0
- data/lib/cirro_io_v2/resources/gig.rb +15 -0
- data/lib/cirro_io_v2/resources/{gig_ivitation.rb → gig_invitation.rb} +10 -0
- data/lib/cirro_io_v2/resources/gig_result.rb +15 -0
- data/lib/cirro_io_v2/resources/gig_time_activity.rb +15 -0
- data/lib/cirro_io_v2/resources/notification_broadcast.rb +1 -1
- data/lib/cirro_io_v2/resources/notification_template.rb +1 -1
- data/lib/cirro_io_v2/resources/notification_topic.rb +9 -2
- data/lib/cirro_io_v2/resources/notification_topic_preference.rb +3 -3
- data/lib/cirro_io_v2/resources/payout.rb +15 -0
- data/lib/cirro_io_v2/resources/user.rb +5 -0
- data/lib/cirro_io_v2/responses/responses.rb +45 -9
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a120d9a51454b845c16158501e4ef77ac0cc24e6e64533e9c4d36222e8d6b96
|
4
|
+
data.tar.gz: 5e710de314860b7e51321e15a8280054a95aa11965aeea426aff74c73481a0d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2aecfa0f10747956ad0cf2970a50ae4256b5abff46934af65287a7a03e782b699e751413e89eaee7c9657717940905b6752be6d54b35a8043b9e47ca231b680
|
7
|
+
data.tar.gz: 19ed5dae962259b8246e38f97e92142bfd3334049079140ed3052771c384b5c5170335196d00f04a89fd754ad310b1805cc594ec7f470d6fe55c521734b1df34
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cirro-ruby-client (2.0
|
4
|
+
cirro-ruby-client (2.2.0)
|
5
5
|
activesupport
|
6
6
|
faraday (< 1.2.0)
|
7
7
|
faraday_middleware
|
@@ -11,9 +11,9 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activemodel (6.1.
|
15
|
-
activesupport (= 6.1.
|
16
|
-
activesupport (6.1.
|
14
|
+
activemodel (6.1.7)
|
15
|
+
activesupport (= 6.1.7)
|
16
|
+
activesupport (6.1.7)
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
18
|
i18n (>= 1.6, < 2)
|
19
19
|
minitest (>= 5.1)
|
@@ -43,10 +43,10 @@ GEM
|
|
43
43
|
faraday (>= 0.15.2, < 2.0)
|
44
44
|
faraday_middleware (>= 0.9.0, < 2.0)
|
45
45
|
rack (>= 0.2)
|
46
|
-
jwt (2.
|
46
|
+
jwt (2.5.0)
|
47
47
|
method_source (1.0.0)
|
48
|
-
minitest (5.
|
49
|
-
multipart-post (2.
|
48
|
+
minitest (5.16.3)
|
49
|
+
multipart-post (2.2.3)
|
50
50
|
parallel (1.19.2)
|
51
51
|
parser (2.7.2.0)
|
52
52
|
ast (~> 2.4.1)
|
@@ -54,7 +54,7 @@ GEM
|
|
54
54
|
coderay (~> 1.1)
|
55
55
|
method_source (~> 1.0)
|
56
56
|
public_suffix (4.0.6)
|
57
|
-
rack (
|
57
|
+
rack (3.0.0)
|
58
58
|
rainbow (3.0.0)
|
59
59
|
rake (12.3.3)
|
60
60
|
regexp_parser (1.8.1)
|
@@ -87,14 +87,14 @@ GEM
|
|
87
87
|
rubocop (~> 0.87)
|
88
88
|
ruby-progressbar (1.10.1)
|
89
89
|
ruby2_keywords (0.0.5)
|
90
|
-
tzinfo (2.0.
|
90
|
+
tzinfo (2.0.5)
|
91
91
|
concurrent-ruby (~> 1.0)
|
92
92
|
unicode-display_width (1.7.0)
|
93
93
|
webmock (3.9.1)
|
94
94
|
addressable (>= 2.3.6)
|
95
95
|
crack (>= 0.3.2)
|
96
96
|
hashdiff (>= 0.4.0, < 2.0.0)
|
97
|
-
zeitwerk (2.
|
97
|
+
zeitwerk (2.6.0)
|
98
98
|
|
99
99
|
PLATFORMS
|
100
100
|
ruby
|
@@ -110,4 +110,4 @@ DEPENDENCIES
|
|
110
110
|
webmock
|
111
111
|
|
112
112
|
BUNDLED WITH
|
113
|
-
2.3.
|
113
|
+
2.3.20
|
data/README.md
CHANGED
@@ -111,7 +111,7 @@ preference.id
|
|
111
111
|
preference.locale
|
112
112
|
# => 'de'
|
113
113
|
|
114
|
-
preference.
|
114
|
+
preference.topics
|
115
115
|
# => Array of NotificationTopicPreference objects
|
116
116
|
```
|
117
117
|
|
@@ -120,7 +120,7 @@ preference.channels
|
|
120
120
|
```ruby
|
121
121
|
client.User.update_notification_preference({
|
122
122
|
locale: 'de',
|
123
|
-
|
123
|
+
topics: [
|
124
124
|
{ id: '1', preferences: { email: 'immediately' } },
|
125
125
|
{ id: '2', preferences: { email: 'digest_daily' } }
|
126
126
|
]
|
@@ -292,7 +292,7 @@ client.NotificationLayoutTemplate.delete('1')
|
|
292
292
|
### List all notification topics
|
293
293
|
|
294
294
|
```ruby
|
295
|
-
list = client.NotificationTopic
|
295
|
+
list = client.NotificationTopic.list
|
296
296
|
# => ListObject
|
297
297
|
|
298
298
|
list.has_more?
|
@@ -308,7 +308,7 @@ client.NotificationTopic.list(notification_layout_id: 1)
|
|
308
308
|
client.NotificationTopic.list(limit: 10, after: 10)
|
309
309
|
```
|
310
310
|
|
311
|
-
### Create a notification
|
311
|
+
### Create a notification topic
|
312
312
|
|
313
313
|
```ruby
|
314
314
|
client.NotificationTopic.create(
|
@@ -332,11 +332,11 @@ client.NotificationTopic.create(
|
|
332
332
|
)
|
333
333
|
```
|
334
334
|
|
335
|
-
## Notification (
|
335
|
+
## Notification (Topic) Template
|
336
336
|
### List all
|
337
337
|
|
338
338
|
```ruby
|
339
|
-
list = client.NotificationTemplate
|
339
|
+
list = client.NotificationTemplate.list
|
340
340
|
# => ListObject
|
341
341
|
|
342
342
|
list.has_more?
|
@@ -345,8 +345,8 @@ list.has_more?
|
|
345
345
|
list.data
|
346
346
|
# => Array of NotificationTemplate objects
|
347
347
|
|
348
|
-
# filter by
|
349
|
-
client.NotificationTemplate.list(
|
348
|
+
# filter by topic id
|
349
|
+
client.NotificationTemplate.list(notification_topic_id: 1)
|
350
350
|
|
351
351
|
# filter by configuration id
|
352
352
|
client.NotificationTemplate.list(notification_configuration_id: 1)
|
@@ -370,7 +370,7 @@ client.NotificationTemplate.update(
|
|
370
370
|
```ruby
|
371
371
|
client.NotificationTemplate.delete('1')
|
372
372
|
```
|
373
|
-
## Notifcation
|
373
|
+
## Notifcation Topic Preference
|
374
374
|
### List all
|
375
375
|
|
376
376
|
```ruby
|
@@ -383,8 +383,8 @@ list.has_more?
|
|
383
383
|
list.data
|
384
384
|
# => Array of NotificationTopicPreference objects
|
385
385
|
|
386
|
-
# filter by
|
387
|
-
client.NotificationTopicPreference.list(
|
386
|
+
# filter by topic id
|
387
|
+
client.NotificationTopicPreference.list(notification_topic_id: 1)
|
388
388
|
|
389
389
|
# filter by user id
|
390
390
|
client.NotificationTopicPreference.list(user_id: 1)
|
@@ -405,6 +405,6 @@ client.NotificationBroadcast.create(
|
|
405
405
|
recipients: {
|
406
406
|
user_ids: [1, 2, 3]
|
407
407
|
},
|
408
|
-
|
408
|
+
notification_topic_id: 1
|
409
409
|
)
|
410
410
|
```
|
data/lib/cirro_io/client.rb
CHANGED
@@ -16,7 +16,7 @@ require 'cirro_io/client/gig_time_activity'
|
|
16
16
|
require 'cirro_io/client/gig'
|
17
17
|
require 'cirro_io/client/payout'
|
18
18
|
require 'cirro_io/client/notifications_broadcast'
|
19
|
-
require 'cirro_io/client/
|
19
|
+
require 'cirro_io/client/notifications_topic'
|
20
20
|
require 'cirro_io/client/notifications_template'
|
21
21
|
|
22
22
|
module CirroIO
|
data/lib/cirro_io_v2/client.rb
CHANGED
@@ -7,7 +7,10 @@ require 'cirro_io_v2/request_clients/jwt'
|
|
7
7
|
|
8
8
|
require 'cirro_io_v2/resources/base'
|
9
9
|
require 'cirro_io_v2/resources/gig'
|
10
|
-
require 'cirro_io_v2/resources/
|
10
|
+
require 'cirro_io_v2/resources/gig_result'
|
11
|
+
require 'cirro_io_v2/resources/gig_time_activity'
|
12
|
+
require 'cirro_io_v2/resources/payout'
|
13
|
+
require 'cirro_io_v2/resources/gig_invitation'
|
11
14
|
require 'cirro_io_v2/resources/user'
|
12
15
|
|
13
16
|
require 'cirro_io_v2/responses/base'
|
@@ -69,16 +72,28 @@ module CirroIOV2
|
|
69
72
|
Resources::Gig.new(self)
|
70
73
|
end
|
71
74
|
|
75
|
+
def GigResult
|
76
|
+
Resources::GigResult.new(self)
|
77
|
+
end
|
78
|
+
|
79
|
+
def GigTimePayout
|
80
|
+
Resources::GigTimePayout.new(self)
|
81
|
+
end
|
82
|
+
|
83
|
+
def Payout
|
84
|
+
Resources::Payout.new(self)
|
85
|
+
end
|
86
|
+
|
72
87
|
def NotificationBroadcast
|
73
88
|
Resources::NotificationBroadcast.new(self)
|
74
89
|
end
|
75
90
|
|
76
|
-
def
|
77
|
-
Resources::
|
91
|
+
def NotificationTopicPreference
|
92
|
+
Resources::NotificationTopicPreference.new(self)
|
78
93
|
end
|
79
94
|
|
80
|
-
def
|
81
|
-
Resources::
|
95
|
+
def NotificationTopic
|
96
|
+
Resources::NotificationTopic.new(self)
|
82
97
|
end
|
83
98
|
|
84
99
|
def NotificationConfiguration
|
@@ -98,11 +113,7 @@ module CirroIOV2
|
|
98
113
|
end
|
99
114
|
|
100
115
|
def NotificationTemplate
|
101
|
-
Resources::
|
102
|
-
end
|
103
|
-
|
104
|
-
def NotificationTopic
|
105
|
-
Resources::NotificationTopic.new(self)
|
116
|
+
Resources::NotificationTemplate.new(self)
|
106
117
|
end
|
107
118
|
|
108
119
|
# rubocop:enable Naming/MethodName
|
@@ -5,6 +5,21 @@ module CirroIOV2
|
|
5
5
|
response = client.request_client.request(:post, resource_root, body: params)
|
6
6
|
Responses::GigResponse.new(response.body)
|
7
7
|
end
|
8
|
+
|
9
|
+
def archive(id, params)
|
10
|
+
response = client.request_client.request(:post, "#{resource_root}/#{id}/archive", body: params)
|
11
|
+
Responses::GigResponse.new(response.body)
|
12
|
+
end
|
13
|
+
|
14
|
+
def tasks(id, params)
|
15
|
+
response = client.request_client.request(:post, "#{resource_root}/#{id}/tasks", body: params)
|
16
|
+
Responses::GigTaskResponse.new(response.body)
|
17
|
+
end
|
18
|
+
|
19
|
+
def update_task(gig_id, task_id, params)
|
20
|
+
response = client.request_client.request(:post, "#{resource_root}/#{gig_id}/tasks/#{task_id}", body: params)
|
21
|
+
Responses::GigTaskResponse.new(response.body)
|
22
|
+
end
|
8
23
|
end
|
9
24
|
end
|
10
25
|
end
|
@@ -13,6 +13,16 @@ module CirroIOV2
|
|
13
13
|
response = client.request_client.request(:post, "#{resource_root}/#{id}/accept")
|
14
14
|
Responses::GigInvitationResponse.new(response.body)
|
15
15
|
end
|
16
|
+
|
17
|
+
def reject(id)
|
18
|
+
response = client.request_client.request(:post, "#{resource_root}/#{id}/reject")
|
19
|
+
Responses::GigInvitationResponse.new(response.body)
|
20
|
+
end
|
21
|
+
|
22
|
+
def expire(id)
|
23
|
+
response = client.request_client.request(:post, "#{resource_root}/#{id}/expire")
|
24
|
+
Responses::GigInvitationResponse.new(response.body)
|
25
|
+
end
|
16
26
|
end
|
17
27
|
end
|
18
28
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module CirroIOV2
|
2
|
+
module Resources
|
3
|
+
class GigResult < Base
|
4
|
+
def list(params = nil)
|
5
|
+
response = client.request_client.request(:get, resource_root, params: params)
|
6
|
+
Responses::GigResultListResponse.new(response.body)
|
7
|
+
end
|
8
|
+
|
9
|
+
def create(params)
|
10
|
+
response = client.request_client.request(:post, resource_root, body: params)
|
11
|
+
Responses::GigResultResponse.new(response.body)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module CirroIOV2
|
2
|
+
module Resources
|
3
|
+
class GigTimeActivity < Base
|
4
|
+
def list(params = nil)
|
5
|
+
response = client.request_client.request(:get, resource_root, params: params)
|
6
|
+
Responses::GigTimeActivityListResponse.new(response.body)
|
7
|
+
end
|
8
|
+
|
9
|
+
def create(params)
|
10
|
+
response = client.request_client.request(:post, resource_root, body: params)
|
11
|
+
Responses::GigTimeActivityResponse.new(response.body)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module CirroIOV2
|
2
2
|
module Resources
|
3
3
|
class NotificationBroadcast < Base
|
4
|
-
ALLOWED_PARAMS = [:payload, :recipients, :
|
4
|
+
ALLOWED_PARAMS = [:payload, :recipients, :notification_topic_id].freeze
|
5
5
|
|
6
6
|
def create(params)
|
7
7
|
params_allowed?(params, ALLOWED_PARAMS)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module CirroIOV2
|
2
2
|
module Resources
|
3
3
|
class NotificationTemplate < Base
|
4
|
-
LIST_ALLOWED_PARAMS = [:notification_configuration_id, :
|
4
|
+
LIST_ALLOWED_PARAMS = [:notification_configuration_id, :notification_topic_id, :limit, :before, :after].freeze
|
5
5
|
UPDATE_ALLOWED_PARAMS = [:subject, :body].freeze
|
6
6
|
|
7
7
|
def list(params = nil)
|
@@ -2,15 +2,22 @@ module CirroIOV2
|
|
2
2
|
module Resources
|
3
3
|
class NotificationTopic < Base
|
4
4
|
ALLOWED_PARAMS = [:name, :notification_layout_id, :preferences, :templates].freeze
|
5
|
+
ALLOWED_LIST_PARAMS = [:notification_layout_id, :limit, :before, :after].freeze
|
5
6
|
|
6
7
|
def resource_root
|
7
|
-
'
|
8
|
+
'notification_topics'
|
9
|
+
end
|
10
|
+
|
11
|
+
def list(params = nil)
|
12
|
+
params_allowed?(params, ALLOWED_LIST_PARAMS) if params
|
13
|
+
response = client.request_client.request(:get, resource_root, params: params)
|
14
|
+
Responses::NotificationTopicListResponse.new(response.body)
|
8
15
|
end
|
9
16
|
|
10
17
|
def create(params)
|
11
18
|
params_allowed?(params, ALLOWED_PARAMS)
|
12
19
|
response = client.request_client.request(:post, resource_root, body: params)
|
13
|
-
Responses::
|
20
|
+
Responses::NotificationTopicResponse.new(response.body)
|
14
21
|
end
|
15
22
|
end
|
16
23
|
end
|
@@ -1,16 +1,16 @@
|
|
1
1
|
module CirroIOV2
|
2
2
|
module Resources
|
3
3
|
class NotificationTopicPreference < Base
|
4
|
-
ALLOWED_PARAMS = [:user_id, :
|
4
|
+
ALLOWED_PARAMS = [:user_id, :notification_topic_id, :limit, :before, :after].freeze
|
5
5
|
|
6
6
|
def resource_root
|
7
|
-
'
|
7
|
+
'notification_topic_preferences'
|
8
8
|
end
|
9
9
|
|
10
10
|
def list(params = nil)
|
11
11
|
params_allowed?(params, ALLOWED_PARAMS) if params
|
12
12
|
response = client.request_client.request(:get, resource_root, params: params)
|
13
|
-
Responses::
|
13
|
+
Responses::NotificationTopicPreferenceListResponse.new(response.body)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module CirroIOV2
|
2
|
+
module Resources
|
3
|
+
class Payout < Base
|
4
|
+
def list(params = nil)
|
5
|
+
response = client.request_client.request(:get, resource_root, params: params)
|
6
|
+
Responses::PayoutListResponse.new(response.body)
|
7
|
+
end
|
8
|
+
|
9
|
+
def create(params)
|
10
|
+
response = client.request_client.request(:post, resource_root, body: params)
|
11
|
+
Responses::PayoutResponse.new(response.body)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -10,6 +10,11 @@ module CirroIOV2
|
|
10
10
|
response = client.request_client.request(:post, "#{resource_root}/#{id}/notification_preferences", body: params)
|
11
11
|
CirroIOV2::Responses::UserNotificationPreferenceResponse.new(response.body)
|
12
12
|
end
|
13
|
+
|
14
|
+
def worker(id, params)
|
15
|
+
response = client.request_client.request(:post, "#{resource_root}/#{id}/worker", body: params)
|
16
|
+
CirroIOV2::Responses::UserResponse.new(response.body)
|
17
|
+
end
|
13
18
|
end
|
14
19
|
end
|
15
20
|
end
|
@@ -2,12 +2,15 @@ module CirroIOV2
|
|
2
2
|
module Responses
|
3
3
|
LIST_RESPONSES = [
|
4
4
|
:GigTaskListResponse,
|
5
|
+
:GigResultListResponse,
|
5
6
|
:GigInvitationListResponse,
|
6
|
-
:
|
7
|
+
:GigTimeActivityListResponse,
|
8
|
+
:PayoutListResponse,
|
9
|
+
:NotificationTopicPreferenceListResponse,
|
7
10
|
:NotificationLocaleListResponse,
|
8
11
|
:NotificationConfigurationListResponse,
|
9
12
|
:NotificationLayoutTemplateListResponse,
|
10
|
-
:
|
13
|
+
:NotificationTopicListResponse,
|
11
14
|
:NotificationTemplateListResponse,
|
12
15
|
].freeze
|
13
16
|
|
@@ -15,8 +18,8 @@ module CirroIOV2
|
|
15
18
|
include Base
|
16
19
|
end
|
17
20
|
|
18
|
-
UserNotificationPreferenceResponse = Struct.new(:id, :object, :locale, :
|
19
|
-
self::NESTED_RESPONSES = {
|
21
|
+
UserNotificationPreferenceResponse = Struct.new(:id, :object, :locale, :topics) do
|
22
|
+
self::NESTED_RESPONSES = { topics: :NotificationTopicListResponse }.freeze
|
20
23
|
include Base
|
21
24
|
end
|
22
25
|
|
@@ -27,6 +30,7 @@ module CirroIOV2
|
|
27
30
|
:url,
|
28
31
|
:start_at,
|
29
32
|
:end_at,
|
33
|
+
:archived_at,
|
30
34
|
:total_seats,
|
31
35
|
:invitation_mode,
|
32
36
|
:filter_query,
|
@@ -45,8 +49,40 @@ module CirroIOV2
|
|
45
49
|
include Base
|
46
50
|
end
|
47
51
|
|
48
|
-
|
49
|
-
|
52
|
+
GigTimeActivityResponse = Struct.new(:id, :object, :gig_id, :user_id, :description, :duration_in_ms, :date) do
|
53
|
+
include Base
|
54
|
+
end
|
55
|
+
|
56
|
+
GigResultResponse = Struct.new(:id,
|
57
|
+
:object,
|
58
|
+
:gig_task_id,
|
59
|
+
:user_id,
|
60
|
+
:title,
|
61
|
+
:description,
|
62
|
+
:quantity,
|
63
|
+
:multiplier,
|
64
|
+
:delivery_date,
|
65
|
+
:cost_center_key,
|
66
|
+
:cost_center_data) do
|
67
|
+
include Base
|
68
|
+
end
|
69
|
+
|
70
|
+
PayoutResponse = Struct.new(:id,
|
71
|
+
:object,
|
72
|
+
:amount,
|
73
|
+
:title,
|
74
|
+
:description,
|
75
|
+
:billing_date,
|
76
|
+
:reference_id,
|
77
|
+
:reference_type,
|
78
|
+
:user_id,
|
79
|
+
:cost_center_key,
|
80
|
+
:cost_center_data) do
|
81
|
+
include Base
|
82
|
+
end
|
83
|
+
|
84
|
+
NotificationTopicPreferenceResponse = Struct.new(:id, :object, :preferences, :notification_topic_id, :user_id) do
|
85
|
+
self::NESTED_RESPONSES = { preferences: :NotificationTopicPreferenceListResponse }.freeze
|
50
86
|
include Base
|
51
87
|
end
|
52
88
|
|
@@ -72,12 +108,12 @@ module CirroIOV2
|
|
72
108
|
include Base
|
73
109
|
end
|
74
110
|
|
75
|
-
|
111
|
+
NotificationTopicResponse = Struct.new(:id, :object, :name, :notification_layout_id, :preferences, :templates) do
|
76
112
|
self::NESTED_RESPONSES = { templates: :NotificationTemplateListResponse }.freeze
|
77
113
|
include Base
|
78
114
|
end
|
79
115
|
|
80
|
-
NotificationTemplateResponse = Struct.new(:id, :object, :notification_configuration_id, :
|
116
|
+
NotificationTemplateResponse = Struct.new(:id, :object, :notification_configuration_id, :notification_topic_id, :subject, :body) do
|
81
117
|
include Base
|
82
118
|
end
|
83
119
|
|
@@ -85,7 +121,7 @@ module CirroIOV2
|
|
85
121
|
include Base
|
86
122
|
end
|
87
123
|
|
88
|
-
NotificationBroadcastResponse = Struct.new(:id, :object, :payload, :recipients, :
|
124
|
+
NotificationBroadcastResponse = Struct.new(:id, :object, :payload, :recipients, :notification_topic_id) do
|
89
125
|
include Base
|
90
126
|
end
|
91
127
|
|
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.0
|
4
|
+
version: 2.2.0
|
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: 2022-
|
11
|
+
date: 2022-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -115,8 +115,8 @@ files:
|
|
115
115
|
- lib/cirro_io/client/gig_time_activity.rb
|
116
116
|
- lib/cirro_io/client/jwt_authentication.rb
|
117
117
|
- lib/cirro_io/client/notifications_broadcast.rb
|
118
|
-
- lib/cirro_io/client/notifications_channel.rb
|
119
118
|
- lib/cirro_io/client/notifications_template.rb
|
119
|
+
- lib/cirro_io/client/notifications_topic.rb
|
120
120
|
- lib/cirro_io/client/payout.rb
|
121
121
|
- lib/cirro_io/client/response_debugging_middleware.rb
|
122
122
|
- lib/cirro_io/client/version.rb
|
@@ -128,7 +128,9 @@ files:
|
|
128
128
|
- lib/cirro_io_v2/request_clients/jwt.rb
|
129
129
|
- lib/cirro_io_v2/resources/base.rb
|
130
130
|
- lib/cirro_io_v2/resources/gig.rb
|
131
|
-
- lib/cirro_io_v2/resources/
|
131
|
+
- lib/cirro_io_v2/resources/gig_invitation.rb
|
132
|
+
- lib/cirro_io_v2/resources/gig_result.rb
|
133
|
+
- lib/cirro_io_v2/resources/gig_time_activity.rb
|
132
134
|
- lib/cirro_io_v2/resources/notification_broadcast.rb
|
133
135
|
- lib/cirro_io_v2/resources/notification_configuration.rb
|
134
136
|
- lib/cirro_io_v2/resources/notification_layout.rb
|
@@ -137,6 +139,7 @@ files:
|
|
137
139
|
- lib/cirro_io_v2/resources/notification_template.rb
|
138
140
|
- lib/cirro_io_v2/resources/notification_topic.rb
|
139
141
|
- lib/cirro_io_v2/resources/notification_topic_preference.rb
|
142
|
+
- lib/cirro_io_v2/resources/payout.rb
|
140
143
|
- lib/cirro_io_v2/resources/user.rb
|
141
144
|
- lib/cirro_io_v2/responses/base.rb
|
142
145
|
- lib/cirro_io_v2/responses/responses.rb
|
@@ -162,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
165
|
- !ruby/object:Gem::Version
|
163
166
|
version: '0'
|
164
167
|
requirements: []
|
165
|
-
rubygems_version: 3.
|
168
|
+
rubygems_version: 3.1.3
|
166
169
|
signing_key:
|
167
170
|
specification_version: 4
|
168
171
|
summary: Ruby client library for Cirro API
|