envoy-hooks 0.9.3 → 0.9.5
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 +3 -3
- data/lib/envoy/hooks/version.rb +1 -1
- data/lib/envoy/hooks.rb +2 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6fffcb2d81342bd0bd7531191ebc07b692fa1ef7607cd6ae58eab5fbb8beeba1
|
|
4
|
+
data.tar.gz: 054a0889bed7c1533c73ada85e6bfe1a1f886af6c4a0d4906cdef2e530b566e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d208fdc61fe9495a1af05881009a7a776d542eba2de687a092f06f2c2b7e417c9b3c3b36ee0da36712ecf1439b3729d0715b8fe3b22c78433161de6f295045e
|
|
7
|
+
data.tar.gz: f8a8b7b5063020a067aab0282a06021d659f6b24c35a66f26417ec53a6465358c617a5a37a8c6ae9e5585cf0284806e3897f9020cf6affe1f0c257281c1de69b
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
envoy-hooks (0.9.
|
|
4
|
+
envoy-hooks (0.9.5)
|
|
5
5
|
faraday (~> 0.15.4)
|
|
6
6
|
faraday-net_http (~> 1.0)
|
|
7
7
|
faraday_middleware (~> 0.12.2)
|
|
@@ -17,7 +17,7 @@ GEM
|
|
|
17
17
|
faraday_middleware (0.12.2)
|
|
18
18
|
faraday (>= 0.7.4, < 1.0)
|
|
19
19
|
json (2.6.3)
|
|
20
|
-
multipart-post (2.
|
|
20
|
+
multipart-post (2.3.0)
|
|
21
21
|
parallel (1.22.1)
|
|
22
22
|
parser (3.2.1.0)
|
|
23
23
|
ast (~> 2.4.1)
|
|
@@ -76,4 +76,4 @@ DEPENDENCIES
|
|
|
76
76
|
rubocop-rspec
|
|
77
77
|
|
|
78
78
|
BUNDLED WITH
|
|
79
|
-
2.
|
|
79
|
+
2.4.6
|
data/lib/envoy/hooks/version.rb
CHANGED
data/lib/envoy/hooks.rb
CHANGED
|
@@ -57,7 +57,7 @@ module Envoy
|
|
|
57
57
|
|
|
58
58
|
validateEnum('responseType', responseType, %w[HTML JSON])
|
|
59
59
|
|
|
60
|
-
validateEnum('resourceType', resourceType, %w[INVITE ENTRY]) unless resourceType.nil?
|
|
60
|
+
validateEnum('resourceType', resourceType, %w[INVITE EMPLOYEE ENTRY]) unless resourceType.nil?
|
|
61
61
|
|
|
62
62
|
faraday.post("/rest/v1/locations/#{locationId}/hooks/ui/trigger", {
|
|
63
63
|
locationId: locationId,
|
|
@@ -77,7 +77,7 @@ module Envoy
|
|
|
77
77
|
|
|
78
78
|
validateEnum('responseType', responseType, %w[HTML JSON])
|
|
79
79
|
|
|
80
|
-
validateEnum('resourceType', resourceType, %w[INVITE ENTRY]) unless resourceType.nil?
|
|
80
|
+
validateEnum('resourceType', resourceType, %w[INVITE EMPLOYEE ENTRY]) unless resourceType.nil?
|
|
81
81
|
|
|
82
82
|
resource_ids = Array(resourceId || resourceIds)
|
|
83
83
|
faraday.post('/rest/v1/zones/hooks/ui/trigger', {
|
|
@@ -139,10 +139,6 @@ module Envoy
|
|
|
139
139
|
externalId: nil
|
|
140
140
|
)
|
|
141
141
|
validateEnum('clientType', clientType, %w[APP PRODUCT])
|
|
142
|
-
uiHooks.each do |uiHook|
|
|
143
|
-
uiHook[:staticContent] = nil if uiHook[:invocationType] != 'STATIC_CONTENT'
|
|
144
|
-
uiHook[:invocationURL] = nil if uiHook[:invocationType] != 'DYNAMIC_CONTENT'
|
|
145
|
-
end
|
|
146
142
|
faraday.post("/rest/v1/clients/#{clientId}/config", {
|
|
147
143
|
clientId: clientId,
|
|
148
144
|
clientSecret: clientSecret,
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: envoy-hooks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeffrey-Biles-Envoy
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2023-
|
|
12
|
+
date: 2023-11-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: faraday
|