bwapi 9.0.0.pre.385 → 9.0.0.pre.390
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 +8 -8
- data/lib/bwapi/client/projects/signals.rb +3 -12
- data/lib/bwapi/client/projects/signals/groups.rb +68 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDE0NDgzNmJkY2Q2OGY1OGU1OTc0ZGZiYmI2YjczNDk1NWM2N2FhMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTI3NDg5YWQ5MjEzNWU1NTk1ZTJjZWE1OTkwNzYzYTVmZDEzN2M3MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzQwZTZlNjI3YWQwNGFiNmEwYzBmNzc2MDk0ODhhOTJhMzk5YzVkNWMzYjJk
|
10
|
+
N2Y5Zjk4MjYyZjQ5ODNkYjNjMjYxYWIyMDNlNDAzYTRhNjM0MWVkMTQ4YmIy
|
11
|
+
ZDYxNjExOGZkMmU5YTRjZmY0MGM2NWU0MTFhOTk0OTliMzZkNjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTQyMjg3Yjc0MDI0ZmY3ZDJlYzVlMzc1YzZlOWQ0ZTQyYWM5ZGZmZWZkNjUw
|
14
|
+
NTg5ZDg0MTM0ZDhjNGNkOGJlMzkzMDlhZDI5ZDQyMTg0YjgyNDQxNzdhYThl
|
15
|
+
YWFjNGRkNTU3MmE2Mzk2Y2E4OTllMjE0MTI0YThlZWRhMjY1MDc=
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'bwapi/client/projects/signals/groups'
|
2
|
+
|
1
3
|
module BWAPI
|
2
4
|
class Client
|
3
5
|
module Projects
|
@@ -18,18 +20,7 @@ module BWAPI
|
|
18
20
|
get "projects/#{project_id}/signals", opts
|
19
21
|
end
|
20
22
|
|
21
|
-
|
22
|
-
#
|
23
|
-
# @param project_id [Integer] Id of project
|
24
|
-
# @param opts [Hash] options hash of parameters
|
25
|
-
# @option opts [Integer] userId Id of the user
|
26
|
-
# @option opts [Integer] voteType Type of vote
|
27
|
-
# @option opts [String] comment User comment
|
28
|
-
# @option opts [Integer] signalId Id of signal
|
29
|
-
# @return [Hashie::Mash] Update signal for given user
|
30
|
-
def set_signal_vote(project_id, opts = {})
|
31
|
-
post "projects/#{project_id}/signals/vote", opts
|
32
|
-
end
|
23
|
+
include BWAPI::Client::Projects::Signals::Groups
|
33
24
|
end
|
34
25
|
end
|
35
26
|
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
require 'bwapi/client/projects/signals/groups'
|
2
|
+
|
3
|
+
module BWAPI
|
4
|
+
class Client
|
5
|
+
module Projects
|
6
|
+
module Signals
|
7
|
+
# Groups module for projects/signals/groups endpoint
|
8
|
+
module Groups
|
9
|
+
# Get all signal groups
|
10
|
+
# @param projectId [Integer] Id of the existing project
|
11
|
+
# @option opts [Integer] page Page of results to retrieve
|
12
|
+
# @option opts [Integer] pageSize Results per page of results
|
13
|
+
# @return [Hashie::Mash] All signal groups for project
|
14
|
+
def signal_groups(project_id, opts = {})
|
15
|
+
get "/projects/#{project_id}/signals/groups", opts
|
16
|
+
end
|
17
|
+
|
18
|
+
# Get a specific signal group
|
19
|
+
# @param projectId [Integer] Id of project
|
20
|
+
# @param groupId [Integer] Id of group
|
21
|
+
# @return [Hashie::Mash] specific signals group
|
22
|
+
def get_signal_group(project_id, group_id)
|
23
|
+
get "/projects/#{project_id}/signals/groups/#{group_id}"
|
24
|
+
end
|
25
|
+
|
26
|
+
# Create a new signal group
|
27
|
+
# @param projectId [Integer] Project ID of the Signal Group to be updated
|
28
|
+
# @param opts [Hash] options hash of parameters
|
29
|
+
# @option opts [Integer] projectId Project ID of Signal Group
|
30
|
+
# @option opts [Array] queryIds List of query IDs in the Signal Group
|
31
|
+
# @option opts [String] name Name of the Signal Group
|
32
|
+
# @option opts [Array] subscribers List of the email recipients of the Signal Group
|
33
|
+
# @option opts [Date] lastModified Last modified date of the Signal Group
|
34
|
+
# @option opts [Integer] id ID of Signal Group
|
35
|
+
# @option opts [String] creator Creator of the Signal Group
|
36
|
+
# @return [Hashie::Mash] new signal group
|
37
|
+
def create_signal_group(project_id, opts = {})
|
38
|
+
post "/projects/#{project_id}/signals/groups", opts
|
39
|
+
end
|
40
|
+
|
41
|
+
# Update a signal group
|
42
|
+
# @param projectId [Integer] Project ID of the Signal Group to be updated
|
43
|
+
# @param groupId [Integer] Id of group
|
44
|
+
# @param opts [Hash] options hash of parameters
|
45
|
+
# @option opts [Integer] projectId Project ID of Signal Group
|
46
|
+
# @option opts [Array] queryIds List of query IDs in the Signal Group
|
47
|
+
# @option opts [String] name Name of the Signal Group
|
48
|
+
# @option opts [Array] subscribers List of the email recipients of the Signal Group
|
49
|
+
# @option opts [Date] lastModified Last modified date of the Signal Group
|
50
|
+
# @option opts [Integer] id ID of Signal Group
|
51
|
+
# @option opts [String] creator Creator of the Signal Group
|
52
|
+
# @return [Hashie::Mash] updated signal group
|
53
|
+
def update_signal_group(project_id, group_id, opts = {})
|
54
|
+
put "/projects/#{project_id}/signals/groups/#{group_id}", opts
|
55
|
+
end
|
56
|
+
|
57
|
+
# Delete a signal group
|
58
|
+
# @param projectId [Integer] Id of project
|
59
|
+
# @param groupId [Integer] Id of group
|
60
|
+
# @return [Hashie::Mash] deleted signal group
|
61
|
+
def delete_signal_group(project_id, group_id)
|
62
|
+
delete "/projects/#{project_id}/signals/groups/#{group_id}"
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bwapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.0.0.pre.
|
4
|
+
version: 9.0.0.pre.390
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chrisp
|
@@ -227,6 +227,7 @@ files:
|
|
227
227
|
- lib/bwapi/client/projects/rules/copy.rb
|
228
228
|
- lib/bwapi/client/projects/sharing.rb
|
229
229
|
- lib/bwapi/client/projects/signals.rb
|
230
|
+
- lib/bwapi/client/projects/signals/groups.rb
|
230
231
|
- lib/bwapi/client/projects/stream_dashboards.rb
|
231
232
|
- lib/bwapi/client/projects/stream_dashboards/streams.rb
|
232
233
|
- lib/bwapi/client/projects/summary.rb
|