envoy-hooks 0.8.0 → 0.9.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: 0cea266f154c88226c9aa3d64672ad1cdc84c1433884680154a746ffb2649200
4
- data.tar.gz: c231f0d14e56a971a49ed9ce6cba58e5e8021f412786965709a3fc21b1380985
3
+ metadata.gz: 1f5e7f8f3636edb3743662107bdaeada0615f92967574bfb1ecfe6343a02e6f7
4
+ data.tar.gz: 4a3b85276a2cfe969359925b026a02b380999881ce6e42d40c2a5e699809527b
5
5
  SHA512:
6
- metadata.gz: 6af46fbfbe28a488393f391c91d69e65b4d32aa66fc44d3481f09858b279d0e0dc3af0e338e58c7492128053c1c2fd2f5c7b3f186b50e27ceca1293d3f8b7117
7
- data.tar.gz: 969f47ef020f4db5d4a192cd0ea58d60ff2e50faa2d28a2155bdbe7f881c3d716d57e1f2b9f269ebd8631b91af319bdbc0b63f91b4559f363c556904fbbe82b0
6
+ metadata.gz: 1b01dd500c1f972e6bad3903df5a79330071fb77c032620747e89e2607eb17b3901b2833a1fb1402a2ae42e69e3023197f0d319e9d14647dd58f36b66472b019
7
+ data.tar.gz: '08a1fe9537cde713b7da146b3549d96a49998ac2c3cc54798d2c33187b4467badc93823a88841aa55010471dd6b632953aeb4c192d1b76257c178c570240cee7'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- envoy-hooks (0.8.0)
4
+ envoy-hooks (0.9.0)
5
5
  faraday (~> 0.15.4)
6
6
  faraday-net_http (~> 1.0)
7
7
  faraday_middleware (~> 0.12.2)
@@ -43,4 +43,4 @@ DEPENDENCIES
43
43
  rspec (~> 3.0)
44
44
 
45
45
  BUNDLED WITH
46
- 2.3.15
46
+ 2.3.19
data/envoy-hooks.gemspec CHANGED
@@ -31,8 +31,8 @@ Gem::Specification.new do |spec|
31
31
  # Uncomment to register a new dependency of your gem
32
32
  # spec.add_dependency "example-gem", "~> 1.0"
33
33
  spec.add_dependency 'faraday', '~> 0.15.4'
34
- spec.add_dependency 'faraday-net_http', '~> 1.0'
35
34
  spec.add_dependency 'faraday_middleware', '~> 0.12.2'
35
+ spec.add_dependency 'faraday-net_http', '~> 1.0'
36
36
 
37
37
  # For more information and examples about making a new gem, checkout our
38
38
  # guide at: https://bundler.io/guides/creating_gem.html
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Envoy
4
4
  class Hooks
5
- VERSION = '0.8.0'
5
+ VERSION = '0.9.0'
6
6
  end
7
7
  end
data/lib/envoy/hooks.rb CHANGED
@@ -50,11 +50,11 @@ module Envoy
50
50
  })
51
51
  end
52
52
 
53
- def triggerUIHooks(locationId:, responseType:, triggerName: nil, triggerNames: [], resourceId: nil,
54
- accentColor: nil, uiHooks: [], previewMode: false, uiHookIds: [], resourceType: nil)
55
-
53
+ def triggerUIHooks(locationId:, responseType:, triggerName: nil, triggerNames: [], resourceId: nil,
54
+ accentColor: nil, uiHooks: [], previewMode: false, uiHookIds: [], resourceType: nil)
55
+
56
56
  validateEnum('responseType', responseType, %w[HTML JSON])
57
-
57
+
58
58
  unless resourceType.nil?
59
59
  validateEnum('resourceType', resourceType, %w[INVITE ENTRY])
60
60
  end
@@ -73,7 +73,7 @@ module Envoy
73
73
  end
74
74
 
75
75
  def subscribedUIHooks(locationId: nil, locationIds: [], triggerName: nil, triggerNames: [], includeHidden: false)
76
- faraday.get("/rest/v1/locations/hooks/ui", {
76
+ faraday.get('/rest/v1/locations/hooks/ui', {
77
77
  locationId: locationId,
78
78
  locationIds: locationIds,
79
79
  triggerName: triggerName,
@@ -82,9 +82,10 @@ module Envoy
82
82
  })
83
83
  end
84
84
 
85
- def triggerEventHooks(locationId:, triggerName: nil, triggerNames: [], resourceId: nil, eventHookIds: [])
85
+ def triggerEventHooks(locationId:, userEmail: nil, triggerName: nil, triggerNames: [], resourceId: nil, eventHookIds: [])
86
86
  faraday.post("/rest/v1/locations/#{locationId}/hooks/event/trigger", {
87
87
  locationId: locationId,
88
+ userEmail: userEmail,
88
89
  triggerName: triggerName,
89
90
  triggerNames: triggerNames,
90
91
  resourceId: resourceId,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: envoy-hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey-Biles-Envoy
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-04 00:00:00.000000000 Z
11
+ date: 2022-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -25,34 +25,34 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.15.4
27
27
  - !ruby/object:Gem::Dependency
28
- name: faraday-net_http
28
+ name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: 0.12.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: 0.12.2
41
41
  - !ruby/object:Gem::Dependency
42
- name: faraday_middleware
42
+ name: faraday-net_http
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.12.2
47
+ version: '1.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.12.2
55
- description:
54
+ version: '1.0'
55
+ description:
56
56
  email:
57
57
  - jeffrey@envoy.com
58
58
  executables: []
@@ -78,7 +78,7 @@ licenses: []
78
78
  metadata:
79
79
  homepage_uri: https://github.com/envoy/envoy-hooks-ruby
80
80
  source_code_uri: https://github.com/envoy/envoy-hooks-ruby
81
- post_install_message:
81
+ post_install_message:
82
82
  rdoc_options: []
83
83
  require_paths:
84
84
  - lib
@@ -93,8 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubygems_version: 3.0.9
97
- signing_key:
96
+ rubygems_version: 3.0.3.1
97
+ signing_key:
98
98
  specification_version: 4
99
99
  summary: Ruby wrapper for envoy/hooks
100
100
  test_files: []