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 +4 -4
- data/Gemfile.lock +2 -2
- data/envoy-hooks.gemspec +1 -1
- data/lib/envoy/hooks/version.rb +1 -1
- data/lib/envoy/hooks.rb +7 -6
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f5e7f8f3636edb3743662107bdaeada0615f92967574bfb1ecfe6343a02e6f7
|
4
|
+
data.tar.gz: 4a3b85276a2cfe969359925b026a02b380999881ce6e42d40c2a5e699809527b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b01dd500c1f972e6bad3903df5a79330071fb77c032620747e89e2607eb17b3901b2833a1fb1402a2ae42e69e3023197f0d319e9d14647dd58f36b66472b019
|
7
|
+
data.tar.gz: '08a1fe9537cde713b7da146b3549d96a49998ac2c3cc54798d2c33187b4467badc93823a88841aa55010471dd6b632953aeb4c192d1b76257c178c570240cee7'
|
data/Gemfile.lock
CHANGED
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
|
data/lib/envoy/hooks/version.rb
CHANGED
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
|
-
|
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(
|
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.
|
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-
|
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:
|
28
|
+
name: faraday_middleware
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
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:
|
40
|
+
version: 0.12.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
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
|
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
|
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.
|
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: []
|