bwapi 9.2.0.pre.452 → 9.2.0.pre.457

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDdlZTczMGM3YjY1OWMxYzdmZjNjMzg0ZDJlNGUwOTA5Y2YwMGFmNA==
4
+ OWIwYzllMTU5Nzk4NTc4NzY5OTNlZjFlMzAwMmZkYjczMzQ5ZWI4MA==
5
5
  data.tar.gz: !binary |-
6
- YTMzMzMxMzQ3NDM3NjhmODA2ZGMyNzc2MjZiM2Q1Yzc4OThhMWFmYQ==
6
+ YjUyM2RkMDE2YzZjYzZhNjAxN2I5MzA4OThjYjA3NTQ2MWRmYmE0Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWJlMmNmYjY4MGI1NzIwZTllMTQ3OTBjMTdlZjQwNGI3NzRkNzI3YTY5YzZm
10
- MGE5NjNhZDNmNDdlNGFlNGM3MjljNDYzZWYwNWNjZGUxYTdmNDJkMzNhYzMx
11
- M2Q3MjIzNDQxMzQ1ZjczMGQyYzNkZWM1OWJhZTE4Y2UwOTU0Mjc=
9
+ ZjU2MDFjMmZmNjdmZjU1YzU4MGM2NDk3Mzc1ZjczMmU5ZTUzMzYzOWQ0YzI0
10
+ MjYwYjFlYjc4ZDRjYzhkODc1MWUxZTc4NDNlYjM4Yzk5MTNkYWM3YmYzMzVh
11
+ MTY4ZWM1ZjFlN2NhYWQzYjA1MmI2ZTg3OGJkYzZmNzljYzA1Y2Q=
12
12
  data.tar.gz: !binary |-
13
- NmExZWVhODYwOWQ5ODVlZmM0MTY2ZjZmYWIzN2FmOGY2Njc2M2JjZDE5NjU3
14
- OTRjNGU4YzMwODBjYThiYzFlMWMzYmI1YzU2NmFkMTk4ZDYzYWI5NzNiNzI1
15
- MDQ0YzQ2YzhmMmM5MGVkY2ExZGY2N2ZhODFmMjljMWRiMjcxMWM=
13
+ ODljOWM4ZDhkNDU4MzQ5ZGU2MmFkNThjNjE3ZTU5ODk1ZGFjZDBkYzlkYmU1
14
+ YmE1ZDY4MDNiMDZiM2JkZWFiYWVhODBhYzRjNjRjNjJkZWY2ZDc5MWEzYjI2
15
+ YmQwNGQyM2RmNDhhM2YxNTkxY2E2ZTBiN2E4OTEzOTVhNGNlNzg=
data/.gitignore CHANGED
@@ -2,6 +2,7 @@
2
2
  *.rbc
3
3
  .bundle
4
4
  .config
5
+ .idea
5
6
  coverage
6
7
  InstalledFiles
7
8
  lib/bundler/man
@@ -17,5 +17,5 @@ deploy:
17
17
  secure: g7xKyeiMs2o1HLokzOWCiLKxmTaEmuQDB0he9kxFhjqMLbRQHu1pVL0uE2bD0K/zq8Ebb+OPchVmej/6s5Be97AOK5d1wGdBAhXISwlxPoXxLJ6zU5DF1vjF3YCZK197z81ATcGcocsD2eYXZ4NzJcI+FW3kzO6QQhfHfUUeHvM=
18
18
  gem: bwapi
19
19
  on:
20
- branch: master
20
+ branch: staging
21
21
  repo: jonathanchrisp/bwapi
@@ -4,7 +4,6 @@ All notable changes to this project will be documented in this file.
4
4
  ## 9.2.0
5
5
  ### Added
6
6
  * NoTask - added admin clients usergroups endpoints
7
- * Fix - parent client update_client method
8
7
 
9
8
  ## 9.1.0
10
9
  ### Added
@@ -1,5 +1,4 @@
1
1
  require 'bwapi/client/brandwatch/become'
2
- require 'bwapi/client/brandwatch/client_modules'
3
2
  require 'bwapi/client/brandwatch/clients'
4
3
 
5
4
  module BWAPI
@@ -26,7 +25,6 @@ module BWAPI
26
25
  end
27
26
 
28
27
  include BWAPI::Client::Brandwatch::Become
29
- include BWAPI::Client::Brandwatch::ClientModules
30
28
  include BWAPI::Client::Brandwatch::Clients
31
29
  end
32
30
  end
@@ -1,4 +1,4 @@
1
- require 'bwapi/client/brandwatch/clients/users'
1
+ require 'bwapi/client/brandwatch/clients/modules'
2
2
 
3
3
  module BWAPI
4
4
  class Client
@@ -7,19 +7,15 @@ module BWAPI
7
7
  module Clients
8
8
  # Get specific clients
9
9
  #
10
- # @note must be a super admin user
11
- #
12
10
  # @param opts [Hash] options Hash of parameters
13
11
  # @options opts [String] nameContains Client name search (case insensitive)
14
12
  # @return [Hash] List of filtered clients
15
- def brandwatch_clients(opts = {})
13
+ def clients(opts = {})
16
14
  get 'brandwatch/clients', opts
17
15
  end
18
16
 
19
17
  # Create a new parent client
20
18
  #
21
- # @note must be a super admin user
22
- #
23
19
  # @param opts [Hash] options Hash of parameters
24
20
  # @option opts [String] address1 Address line one of the client
25
21
  # @option opts [String] address2 Address line two of the client
@@ -49,24 +45,20 @@ module BWAPI
49
45
  # @option opts [String] theme The theme of the client
50
46
  # @option opts [String] website The website for the client
51
47
  # @return [Hash] Newly created parent client
52
- def brandwatch_create_client(opts = {})
48
+ def create_client(opts = {})
53
49
  post 'brandwatch/clients', opts
54
50
  end
55
51
 
56
52
  # Get specific client
57
53
  #
58
- # @note must be a super admin user
59
- #
60
54
  # @param client_id [Integer] Id of the client
61
55
  # @return [Hash] Specific client
62
- def brandwatch_get_client(client_id)
56
+ def get_client(client_id)
63
57
  get "brandwatch/clients/#{client_id}"
64
58
  end
65
59
 
66
60
  # Update an existing parent client
67
61
  #
68
- # @note must be a super admin user
69
- #
70
62
  # @param client_id [Integer] Id of the client
71
63
  # @param opts [Hash] options Hash of parameters
72
64
  # @option opts [String] address1 Address line one of the client
@@ -97,11 +89,11 @@ module BWAPI
97
89
  # @option opts [String] theme The theme of the client
98
90
  # @option opts [String] website The website for the client
99
91
  # @return [Hash] Updated parent client
100
- def brandwatch_update_client(client_id, opts = {})
92
+ def update_client(client_id, opts = {})
101
93
  put "brandwatch/clients/#{client_id}", opts
102
94
  end
103
95
 
104
- include BWAPI::Client::Brandwatch::Clients::Users
96
+ include BWAPI::Client::Brandwatch::Clients::Modules
105
97
  end
106
98
  end
107
99
  end
@@ -0,0 +1,27 @@
1
+ module BWAPI
2
+ class Client
3
+ module Brandwatch
4
+ module Clients
5
+ # Clientmodules module for brandwatch/client/modules endpoints
6
+ module Modules
7
+ # Get a specific clients modules
8
+ #
9
+ # @param client_id [Integer] Id of the client
10
+ # @return [Hash] Specific clients modules
11
+ def brandwatch_client_modules(client_id)
12
+ get "brandwatch/clients/#{client_id}/modules"
13
+ end
14
+
15
+ # Update brandwatch client modules
16
+ #
17
+ # @param opts [Hash] options Hash of parameters
18
+ # @option opts [Array] brandwatch/client/modules Client Modules to edit
19
+ # @return [Hash] Updated client modules
20
+ def update_brandwatch_client_modules(opts = {})
21
+ put "brandwatch/clients/#{client_id}/modules", opts
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+ 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.2.0.pre.452
4
+ version: 9.2.0.pre.457
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Chrisp
@@ -137,9 +137,8 @@ files:
137
137
  - lib/bwapi/client/admin/search.rb
138
138
  - lib/bwapi/client/brandwatch.rb
139
139
  - lib/bwapi/client/brandwatch/become.rb
140
- - lib/bwapi/client/brandwatch/client_modules.rb
141
140
  - lib/bwapi/client/brandwatch/clients.rb
142
- - lib/bwapi/client/brandwatch/clients/users.rb
141
+ - lib/bwapi/client/brandwatch/clients/modules.rb
143
142
  - lib/bwapi/client/client.rb
144
143
  - lib/bwapi/client/command_center.rb
145
144
  - lib/bwapi/client/command_center/client.rb
@@ -1,25 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module Brandwatch
4
- # ClientModules module for brandwatch/clientModules endpoints
5
- module ClientModules
6
- # Get a specific clients modules
7
- #
8
- # @param client_id [Integer] Id of the client
9
- # @return [Hash] Specific clients modules
10
- def brandwatch_client_modules(client_id)
11
- get "brandwatch/clientModules/#{client_id}"
12
- end
13
-
14
- # Update brandwatch client modules
15
- #
16
- # @param opts [Hash] options Hash of parameters
17
- # @option opts [Array] ClientModules Client Modules to edit
18
- # @return [Hash] Update client modules
19
- def update_brandwatch_client_module(opts = {})
20
- put 'brandwatch/clientModules', opts
21
- end
22
- end
23
- end
24
- end
25
- end
@@ -1,42 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module Brandwatch
4
- module Clients
5
- # Users module for brandwatch/users endpoints
6
- module Users
7
- # Create a new client user
8
- #
9
- # @note must be a super admin user
10
- #
11
- # @param client_id [Integer] Id of the client
12
- # @param opts [Hash] options Hash of parameters
13
- # @option opts [String] address The users address
14
- # @option opts [Array] apiRole The users api role
15
- # @option opts [String] ccAccess The user Vizia access level
16
- # @option opts [Integer] clientId The users client id
17
- # @option opts [Date] creationDate Date the user was created on
18
- # @option opts [String] department The users department
19
- # @option opts [Boolean] enabled The status of the user
20
- # @option opts [String] externalId The Users external Id
21
- # @option opts [String] firstName The users first name
22
- # @option opts [Integer] id Id of the user
23
- # @option opts [String] job The users job
24
- # @option opts [String] lastName The last name of the user
25
- # @option opts [String] messenger The users IM details
26
- # @option opts [String] mobile The users mobile number
27
- # @option opts [String] oldPassword The old password of the user
28
- # @option opts [String] password The password of the user
29
- # @option opts [String] passwordConfirmation The confirmed password
30
- # @option opts [String] phone The users phone number
31
- # @option opts [Hash] tags The users assigned tags
32
- # @option opts [String] uiRole The users ui role
33
- # @option opts [String] username The users username
34
- # @return [Hash] New user
35
- def brandwatch_create_client_user(client_id, opts = {})
36
- post "brandwatch/clients/#{client_id}/users", opts
37
- end
38
- end
39
- end
40
- end
41
- end
42
- end