pager_tree-integrations 1.1.1 → 1.1.2
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/app/models/pager_tree/integrations/apex_ping/v3.rb +1 -1
- data/app/models/pager_tree/integrations/app_dynamics/v3.rb +1 -1
- data/app/models/pager_tree/integrations/auvik/v3.rb +1 -1
- data/app/models/pager_tree/integrations/aws_cloudwatch/v3.rb +1 -1
- data/app/models/pager_tree/integrations/azure_monitor/v3.rb +5 -6
- data/app/models/pager_tree/integrations/cronitor/v3.rb +1 -1
- data/app/models/pager_tree/integrations/datadog/v3.rb +1 -1
- data/app/models/pager_tree/integrations/dead_mans_snitch/v3.rb +1 -1
- data/app/models/pager_tree/integrations/elast_alert/v3.rb +1 -1
- data/app/models/pager_tree/integrations/form/v3.rb +1 -1
- data/app/models/pager_tree/integrations/freshdesk/v3.rb +1 -1
- data/app/models/pager_tree/integrations/freshservice/v3.rb +1 -1
- data/app/models/pager_tree/integrations/grafana/v3.rb +1 -1
- data/app/models/pager_tree/integrations/healthchecks/v3.rb +1 -1
- data/app/models/pager_tree/integrations/honeybadger/v3.rb +1 -1
- data/app/models/pager_tree/integrations/hyperping/v3.rb +1 -1
- data/app/models/pager_tree/integrations/integration.rb +2 -2
- data/app/models/pager_tree/integrations/jira_server/v3.rb +1 -1
- data/app/models/pager_tree/integrations/jotform/v3.rb +1 -1
- data/app/models/pager_tree/integrations/kapacitor/v3.rb +1 -1
- data/app/models/pager_tree/integrations/live_call_routing/twilio/v3.rb +1 -1
- data/app/models/pager_tree/integrations/logic_monitor/v3.rb +1 -3
- data/app/models/pager_tree/integrations/mattermost/outgoing_webhook/v3.rb +1 -1
- data/app/models/pager_tree/integrations/new_relic/v3.rb +1 -3
- data/app/models/pager_tree/integrations/pingdom/v3.rb +1 -1
- data/app/models/pager_tree/integrations/prometheus/v3.rb +1 -1
- data/app/models/pager_tree/integrations/prtg/v3.rb +1 -1
- data/app/models/pager_tree/integrations/server_guard24/v3.rb +1 -1
- data/app/models/pager_tree/integrations/site24x7/v3.rb +1 -1
- data/app/models/pager_tree/integrations/solar_winds/v3.rb +1 -1
- data/app/models/pager_tree/integrations/stackdriver/v3.rb +1 -1
- data/app/models/pager_tree/integrations/status_cake/v3.rb +1 -1
- data/app/models/pager_tree/integrations/twilio/incoming_sms/v3.rb +1 -1
- data/app/models/pager_tree/integrations/typeform/v3.rb +1 -1
- data/app/models/pager_tree/integrations/uptime/v3.rb +1 -1
- data/app/models/pager_tree/integrations/uptime_robot/v3.rb +1 -1
- data/app/models/pager_tree/integrations/webhook/v3.rb +21 -15
- data/app/models/pager_tree/integrations/zendesk/v3.rb +1 -3
- data/app/views/pager_tree/integrations/channel/hangouts/v3/_form_options.html.erb +4 -4
- data/app/views/pager_tree/integrations/channel/microsoft_teams/v3/_form_options.html.erb +5 -5
- data/app/views/pager_tree/integrations/channel/slack/v3/_form_options.html.erb +5 -5
- data/app/views/pager_tree/integrations/email/v3/_form_options.html.erb +5 -5
- data/app/views/pager_tree/integrations/form/v3/_form_options.html.erb +18 -18
- data/app/views/pager_tree/integrations/honeybadger/v3/_form_options.html.erb +1 -1
- data/app/views/pager_tree/integrations/jira_server/v3/_form_options.html.erb +4 -4
- data/app/views/pager_tree/integrations/live_call_routing/twilio/v3/_form_options.html.erb +16 -16
- data/app/views/pager_tree/integrations/mattermost/outgoing_webhook/v3/_form_options.html.erb +1 -1
- data/app/views/pager_tree/integrations/outgoing_webhook/v3/_form_options.html.erb +8 -8
- data/app/views/pager_tree/integrations/server_guard24/v3/_form_options.html.erb +3 -3
- data/app/views/pager_tree/integrations/webhook/v3/_form_options.html.erb +5 -5
- data/lib/generators/integration/templates/model.rb.tt +1 -1
- data/lib/pager_tree/integrations/version.rb +1 -1
- 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: 346fc5f836fd08b5e13984f0ead3c57af0bfb853c6c7bbe06eab9b9821693d47
|
|
4
|
+
data.tar.gz: '09642e8b0aadff79bedeeec4a6508e0df60ace5ee8d5d751b9b881675bd5829c'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ed77d1beebab497c91eebc46b0611beabf99fe463498aa993f53ff497d543f604b8ec8115276992d76dd877c665d13e1804786c60b94a08bb16581fe9d74f80
|
|
7
|
+
data.tar.gz: 3f586f4688d333343ab300a79836947c29698d82372932a59e7ae2b5253fd6709bc9da57ef21fcc7c1e66f891ca034504bfbd997ad0f00321e2bb6713521c6d0
|
|
@@ -37,7 +37,7 @@ module PagerTree::Integrations
|
|
|
37
37
|
description: _description,
|
|
38
38
|
urgency: _urgency,
|
|
39
39
|
thirdparty_id: adapter_thirdparty_id,
|
|
40
|
-
dedup_keys: [
|
|
40
|
+
dedup_keys: [],
|
|
41
41
|
additional_data: _additional_datums
|
|
42
42
|
)
|
|
43
43
|
end
|
|
@@ -58,11 +58,10 @@ module PagerTree::Integrations
|
|
|
58
58
|
|
|
59
59
|
def _urgency
|
|
60
60
|
case adapter_incoming_request_params.dig("data", "essentials", "severity")
|
|
61
|
-
when "Sev0" then "
|
|
62
|
-
when "
|
|
63
|
-
when "
|
|
64
|
-
when "
|
|
65
|
-
when "Sev4" then "critical"
|
|
61
|
+
when "Sev0", "Sev1" then "critical"
|
|
62
|
+
when "Sev2" then "high"
|
|
63
|
+
when "Sev3" then "medium"
|
|
64
|
+
when "Sev4" then "low"
|
|
66
65
|
end
|
|
67
66
|
end
|
|
68
67
|
|
|
@@ -36,7 +36,7 @@ module PagerTree::Integrations
|
|
|
36
36
|
title: _title,
|
|
37
37
|
description: _description,
|
|
38
38
|
thirdparty_id: adapter_thirdparty_id,
|
|
39
|
-
dedup_keys: [
|
|
39
|
+
dedup_keys: [adapter_incoming_request_params.dig("AGGREG_KEY")].compact,
|
|
40
40
|
additional_data: _additional_datums,
|
|
41
41
|
tags: _tags
|
|
42
42
|
)
|
|
@@ -48,7 +48,7 @@ module PagerTree::Integrations
|
|
|
48
48
|
true
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
-
# Returns :create, :
|
|
51
|
+
# Returns :create, :resolve, or :other
|
|
52
52
|
def adapter_action
|
|
53
53
|
:other
|
|
54
54
|
end
|
|
@@ -102,7 +102,7 @@ module PagerTree::Integrations
|
|
|
102
102
|
# END basic show functions
|
|
103
103
|
|
|
104
104
|
def adapter_response_rate_limit
|
|
105
|
-
adapter_controller&.head(:
|
|
105
|
+
adapter_controller&.head(:too_many_requests)
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
def adapter_response_disabled
|
|
@@ -27,8 +27,6 @@ module PagerTree::Integrations
|
|
|
27
27
|
case alert_status
|
|
28
28
|
when "active", "test"
|
|
29
29
|
:create
|
|
30
|
-
# when "ack"
|
|
31
|
-
# :acknowledge
|
|
32
30
|
when "clear"
|
|
33
31
|
:resolve
|
|
34
32
|
else
|
|
@@ -42,7 +40,7 @@ module PagerTree::Integrations
|
|
|
42
40
|
description: _description,
|
|
43
41
|
urgency: _urgency,
|
|
44
42
|
thirdparty_id: adapter_thirdparty_id,
|
|
45
|
-
dedup_keys: [
|
|
43
|
+
dedup_keys: [],
|
|
46
44
|
additional_data: _additional_datums
|
|
47
45
|
)
|
|
48
46
|
end
|
|
@@ -28,8 +28,6 @@ module PagerTree::Integrations
|
|
|
28
28
|
|
|
29
29
|
if event_type == "INCIDENT_OPEN" || (event_type == "INCIDENT" && current_state == "open")
|
|
30
30
|
:create
|
|
31
|
-
# elsif event_type == "INCIDENT_ACKNOWLEDGED" || (event_type == "INCIDENT" && current_state == "acknowledged")
|
|
32
|
-
# :acknowledge
|
|
33
31
|
elsif event_type == "INCIDENT_RESOLVED" || (event_type == "INCIDENT" && current_state == "closed")
|
|
34
32
|
:resolve
|
|
35
33
|
else
|
|
@@ -42,7 +40,7 @@ module PagerTree::Integrations
|
|
|
42
40
|
title: _title,
|
|
43
41
|
description: _description,
|
|
44
42
|
thirdparty_id: adapter_thirdparty_id,
|
|
45
|
-
dedup_keys: [
|
|
43
|
+
dedup_keys: [],
|
|
46
44
|
additional_data: _additional_datums
|
|
47
45
|
)
|
|
48
46
|
end
|
|
@@ -28,15 +28,13 @@ module PagerTree::Integrations
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def adapter_thirdparty_id
|
|
31
|
-
|
|
31
|
+
_adapter_incoming_request_params.dig("id")
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def adapter_action
|
|
35
|
-
case
|
|
35
|
+
case _adapter_incoming_request_params.dig("event_type").to_s.downcase.strip
|
|
36
36
|
when "create"
|
|
37
37
|
:create
|
|
38
|
-
# when "acknowledge"
|
|
39
|
-
# :acknowledge
|
|
40
38
|
when "resolve"
|
|
41
39
|
:resolve
|
|
42
40
|
else
|
|
@@ -50,7 +48,7 @@ module PagerTree::Integrations
|
|
|
50
48
|
description: _description,
|
|
51
49
|
urgency: _urgency,
|
|
52
50
|
thirdparty_id: adapter_thirdparty_id,
|
|
53
|
-
dedup_keys:
|
|
51
|
+
dedup_keys: _dedup_keys,
|
|
54
52
|
incident: _incident,
|
|
55
53
|
incident_severity: _incident_severity,
|
|
56
54
|
incident_message: _incident_message,
|
|
@@ -63,44 +61,44 @@ module PagerTree::Integrations
|
|
|
63
61
|
private
|
|
64
62
|
|
|
65
63
|
def _title
|
|
66
|
-
|
|
64
|
+
_adapter_incoming_request_params.dig("title")
|
|
67
65
|
end
|
|
68
66
|
|
|
69
67
|
def _description
|
|
70
|
-
|
|
68
|
+
_adapter_incoming_request_params.dig("description")
|
|
71
69
|
end
|
|
72
70
|
|
|
73
71
|
def _tags
|
|
74
|
-
tags =
|
|
72
|
+
tags = _adapter_incoming_request_params.dig("tags")
|
|
75
73
|
Array(tags).compact_blank.map(&:to_s).uniq
|
|
76
74
|
end
|
|
77
75
|
|
|
78
76
|
def _urgency
|
|
79
|
-
urgency =
|
|
77
|
+
urgency = _adapter_incoming_request_params.dig("urgency")
|
|
80
78
|
urgency&.to_s&.downcase&.strip
|
|
81
79
|
end
|
|
82
80
|
|
|
83
81
|
def _incident
|
|
84
|
-
!!
|
|
82
|
+
!!_adapter_incoming_request_params.dig("meta", "incident")
|
|
85
83
|
end
|
|
86
84
|
|
|
87
85
|
def _incident_message
|
|
88
|
-
|
|
86
|
+
_adapter_incoming_request_params.dig("meta", "incident_message")
|
|
89
87
|
end
|
|
90
88
|
|
|
91
89
|
def _incident_severity
|
|
92
|
-
|
|
90
|
+
_adapter_incoming_request_params.dig("meta", "incident_severity")&.to_s&.upcase&.strip
|
|
93
91
|
end
|
|
94
92
|
|
|
95
93
|
def _meta
|
|
96
|
-
meta =
|
|
94
|
+
meta = _adapter_incoming_request_params.dig("meta")
|
|
97
95
|
meta.is_a?(Hash) ? meta.except("incident", "incident_message", "incident_severity") : {}
|
|
98
96
|
end
|
|
99
97
|
|
|
100
98
|
def _additional_datums
|
|
101
99
|
if self.option_capture_additional_data == true
|
|
102
|
-
|
|
103
|
-
"
|
|
100
|
+
_adapter_incoming_request_params.except(
|
|
101
|
+
"id", "title", "description", "urgency", "tags", "meta", "event_type", "pagertree_integration_id", "dedup_keys"
|
|
104
102
|
).map do |key, value|
|
|
105
103
|
AdditionalDatum.new(format: "text", label: key, value: value.to_s)
|
|
106
104
|
end
|
|
@@ -108,5 +106,13 @@ module PagerTree::Integrations
|
|
|
108
106
|
[]
|
|
109
107
|
end
|
|
110
108
|
end
|
|
109
|
+
|
|
110
|
+
def _dedup_keys
|
|
111
|
+
Array(_adapter_incoming_request_params.dig("dedup_keys")).map(&:to_s).compact_blank.uniq
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
def _adapter_incoming_request_params
|
|
115
|
+
adapter_incoming_request_params.transform_keys(&:downcase)
|
|
116
|
+
end
|
|
111
117
|
end
|
|
112
118
|
end
|
|
@@ -26,8 +26,6 @@ module PagerTree::Integrations
|
|
|
26
26
|
case adapter_incoming_request_params.dig("event_type")
|
|
27
27
|
when "create"
|
|
28
28
|
:create
|
|
29
|
-
when "acknowledge"
|
|
30
|
-
:acknowledge
|
|
31
29
|
when "resolve"
|
|
32
30
|
:resolve
|
|
33
31
|
else
|
|
@@ -41,7 +39,7 @@ module PagerTree::Integrations
|
|
|
41
39
|
description: _description,
|
|
42
40
|
urgency: _urgency,
|
|
43
41
|
thirdparty_id: adapter_thirdparty_id,
|
|
44
|
-
dedup_keys: [
|
|
42
|
+
dedup_keys: [],
|
|
45
43
|
additional_data: _additional_datums
|
|
46
44
|
)
|
|
47
45
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
|
2
|
-
<div class="form-group md:col-span-3">
|
|
2
|
+
<div class="form-group group md:col-span-3">
|
|
3
3
|
<%= form.label :option_incoming_webhook_url %>
|
|
4
4
|
<%= form.text_field :option_incoming_webhook_url, class: "form-control" %>
|
|
5
5
|
<p class="form-hint"><%== t("pager_tree.integrations.common.option_incoming_webhook_url_hint_html") %></p>
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
]
|
|
15
15
|
%>
|
|
16
16
|
<% opts.each do |opt| %>
|
|
17
|
-
<div class="form-group">
|
|
17
|
+
<div class="form-group group">
|
|
18
18
|
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox mr-1" %>
|
|
19
19
|
<%= form.label "option_#{opt.to_s}".to_sym, class: "inline-block" %>
|
|
20
|
-
<p class="form-hint"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
|
20
|
+
<p class="form-hint inline-block"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
|
21
21
|
</div>
|
|
22
22
|
<% end %>
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
<div class="grid grid-cols-1 gap-4">
|
|
28
|
-
<%= tag.div class: "form-group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
|
28
|
+
<%= tag.div class: "form-group group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
|
29
29
|
<%= form.label :option_outgoing_rules, t("pager_tree.integrations.common.option_outgoing_rules") %>
|
|
30
30
|
<%= form.hidden_field :option_outgoing_rules, class: "form-control", data: {code_editor_target: "form"} %>
|
|
31
31
|
<%= tag.div class: "h-96", data: {code_editor_target: "editor"} do %><%= form.object.option_outgoing_rules %><% end %>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
|
2
|
-
<div class="form-group md:col-span-3">
|
|
2
|
+
<div class="form-group group md:col-span-3">
|
|
3
3
|
<%= form.label :option_incoming_webhook_url %>
|
|
4
4
|
<%= form.text_field :option_incoming_webhook_url, class: "form-control" %>
|
|
5
5
|
<p class="form-hint"><%== t("pager_tree.integrations.common.option_incoming_webhook_url_hint_html") %></p>
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
]
|
|
15
15
|
%>
|
|
16
16
|
<% opts.each do |opt| %>
|
|
17
|
-
<div class="form-group">
|
|
18
|
-
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox
|
|
17
|
+
<div class="form-group group">
|
|
18
|
+
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox" %>
|
|
19
19
|
<%= form.label "option_#{opt.to_s}".to_sym, class: "inline-block" %>
|
|
20
|
-
<p class="form-hint"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
|
20
|
+
<p class="form-hint md:inline-block"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
|
21
21
|
</div>
|
|
22
22
|
<% end %>
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
<div class="grid grid-cols-1 gap-4">
|
|
28
|
-
<%= tag.div class: "form-group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
|
28
|
+
<%= tag.div class: "form-group group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
|
29
29
|
<%= form.label :option_outgoing_rules, t("pager_tree.integrations.common.option_outgoing_rules") %>
|
|
30
30
|
<%= form.hidden_field :option_outgoing_rules, class: "form-control", data: {code_editor_target: "form"} %>
|
|
31
31
|
<%= tag.div class: "h-96", data: {code_editor_target: "editor"} do %><%= form.object.option_outgoing_rules %><% end %>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
|
2
|
-
<div class="form-group md:col-span-3">
|
|
2
|
+
<div class="form-group group md:col-span-3">
|
|
3
3
|
<%= form.label :option_incoming_webhook_url %>
|
|
4
4
|
<%= form.text_field :option_incoming_webhook_url, class: "form-control" %>
|
|
5
5
|
<p class="form-hint"><%== t("pager_tree.integrations.common.option_incoming_webhook_url_hint_html") %></p>
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
]
|
|
15
15
|
%>
|
|
16
16
|
<% opts.each do |opt| %>
|
|
17
|
-
<div class="form-group">
|
|
18
|
-
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox
|
|
17
|
+
<div class="form-group group">
|
|
18
|
+
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox" %>
|
|
19
19
|
<%= form.label "option_#{opt.to_s}".to_sym, class: "inline-block" %>
|
|
20
|
-
<p class="form-hint"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
|
20
|
+
<p class="form-hint md:inline-block"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
|
21
21
|
</div>
|
|
22
22
|
<% end %>
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
<div class="grid grid-cols-1 gap-4">
|
|
28
|
-
<%= tag.div class: "form-group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
|
28
|
+
<%= tag.div class: "form-group group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
|
29
29
|
<%= form.label :option_outgoing_rules, t("pager_tree.integrations.common.option_outgoing_rules") %>
|
|
30
30
|
<%= form.hidden_field :option_outgoing_rules, class: "form-control", data: {code_editor_target: "form"} %>
|
|
31
31
|
<%= tag.div class: "h-96", data: {code_editor_target: "editor"} do %><%= form.object.option_outgoing_rules %><% end %>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<div class="form-group">
|
|
2
|
-
<%= form.label :option_allow_spam %>
|
|
1
|
+
<div class="form-group group">
|
|
3
2
|
<%= form.check_box :option_allow_spam, class: "form-checkbox" %>
|
|
4
|
-
|
|
3
|
+
<%= form.label :option_allow_spam %>
|
|
4
|
+
<p class="form-hint md:inline-block"><%== t(".option_allow_spam_hint_html") %></p>
|
|
5
5
|
</div>
|
|
6
6
|
|
|
7
|
-
<div class="form-group">
|
|
8
|
-
<%= form.label :option_dedup_threads %>
|
|
7
|
+
<div class="form-group group">
|
|
9
8
|
<%= form.check_box :option_dedup_threads, class: "form-checkbox" %>
|
|
9
|
+
<%= form.label :option_dedup_threads %>
|
|
10
10
|
<p class="form-hint"><%== t(".option_dedup_threads_hint_html") %></p>
|
|
11
11
|
</div>
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
|
2
|
-
<div class="form-group md:col-span-2">
|
|
2
|
+
<div class="form-group group md:col-span-2">
|
|
3
3
|
<%= form.label :option_form_title %>
|
|
4
4
|
<%= form.text_field :option_form_title, class: "form-control" %>
|
|
5
5
|
<p class="form-hint"><%== t(".option_form_title_hint_html") %></p>
|
|
6
6
|
</div>
|
|
7
7
|
|
|
8
|
-
<div class="form-group md:col-span-2">
|
|
8
|
+
<div class="form-group group md:col-span-2">
|
|
9
9
|
<%= form.label :option_form_header %>
|
|
10
10
|
<%= form.text_field :option_form_header, class: "form-control" %>
|
|
11
11
|
<p class="form-hint"><%== t(".option_form_header_hint_html") %></p>
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
|
-
<div class="form-group md:col-span-2">
|
|
14
|
+
<div class="form-group group md:col-span-2">
|
|
15
15
|
<%= form.label :option_form_instructions %>
|
|
16
16
|
<%= form.text_area :option_form_instructions, class: "form-control" %>
|
|
17
17
|
<p class="form-hint"><%== t(".option_form_instructions_hint_html") %></p>
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
|
-
<div class="form-group">
|
|
20
|
+
<div class="form-group group">
|
|
21
21
|
<%= form.label :option_form_footer_text %>
|
|
22
22
|
<%= form.text_field :option_form_footer_text, class: "form-control" %>
|
|
23
23
|
<p class="form-hint"><%== t(".option_form_footer_text_hint_html") %></p>
|
|
24
24
|
</div>
|
|
25
25
|
|
|
26
|
-
<div class="form-group">
|
|
26
|
+
<div class="form-group group">
|
|
27
27
|
<%= form.label :option_form_footer_link %>
|
|
28
28
|
<%= form.text_field :option_form_footer_link, class: "form-control" %>
|
|
29
29
|
<p class="form-hint"><%== t(".option_form_footer_link_hint_html") %></p>
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
|
-
<div class="form-group">
|
|
32
|
+
<div class="form-group group">
|
|
33
33
|
<%= form.label :option_form_logo %>
|
|
34
34
|
<%= form.file_field :option_form_logo, accept: "image/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
|
35
35
|
<p class="form-hint"><%== t(".option_form_logo_hint_html") %></p>
|
|
@@ -38,27 +38,27 @@
|
|
|
38
38
|
|
|
39
39
|
<div class="grid grid-cols-4 gap-4">
|
|
40
40
|
|
|
41
|
-
<div class="form-group">
|
|
42
|
-
<%= form.check_box :option_form_email_required, class: "form-
|
|
41
|
+
<div class="form-group group">
|
|
42
|
+
<%= form.check_box :option_form_email_required, class: "form-checkbox1" %>
|
|
43
43
|
<%= form.label :option_form_email_required, class: "inline-block" %>
|
|
44
|
-
<p class="form-hint"><%== t(".option_form_email_required_hint_html") %></p>
|
|
44
|
+
<p class="form-hint md:inline-block"><%== t(".option_form_email_required_hint_html") %></p>
|
|
45
45
|
</div>
|
|
46
46
|
|
|
47
|
-
<div class="form-group">
|
|
48
|
-
<%= form.check_box :option_form_phone_required, class: "form-checkbox
|
|
47
|
+
<div class="form-group group">
|
|
48
|
+
<%= form.check_box :option_form_phone_required, class: "form-checkbox" %>
|
|
49
49
|
<%= form.label :option_form_phone_required, class: "inline-block" %>
|
|
50
|
-
<p class="form-hint"><%== t(".option_form_phone_required_hint_html") %></p>
|
|
50
|
+
<p class="form-hint md:inline-block"><%== t(".option_form_phone_required_hint_html") %></p>
|
|
51
51
|
</div>
|
|
52
52
|
|
|
53
|
-
<div class="form-group">
|
|
54
|
-
<%= form.check_box :option_form_description_required, class: "form-checkbox
|
|
53
|
+
<div class="form-group group">
|
|
54
|
+
<%= form.check_box :option_form_description_required, class: "form-checkbox" %>
|
|
55
55
|
<%= form.label :option_form_description_required, class: "inline-block" %>
|
|
56
|
-
<p class="form-hint"><%== t(".option_form_description_required_hint_html") %></p>
|
|
56
|
+
<p class="form-hint md:inline-block"><%== t(".option_form_description_required_hint_html") %></p>
|
|
57
57
|
</div>
|
|
58
58
|
|
|
59
|
-
<div class="form-group">
|
|
60
|
-
<%= form.check_box :option_form_urgency_required, class: "form-checkbox
|
|
59
|
+
<div class="form-group group">
|
|
60
|
+
<%= form.check_box :option_form_urgency_required, class: "form-checkbox" %>
|
|
61
61
|
<%= form.label :option_form_urgency_required, class: "inline-block" %>
|
|
62
|
-
<p class="form-hint"><%== t(".option_form_urgency_required_hint_html") %></p>
|
|
62
|
+
<p class="form-hint md:inline-block"><%== t(".option_form_urgency_required_hint_html") %></p>
|
|
63
63
|
</div>
|
|
64
64
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<div class="grid grid-cols-1
|
|
2
|
-
<div class="form-group">
|
|
3
|
-
<%= form.check_box :option_issue_updated, class: "form-checkbox
|
|
1
|
+
<div class="grid grid-cols-1 gap-4">
|
|
2
|
+
<div class="form-group group">
|
|
3
|
+
<%= form.check_box :option_issue_updated, class: "form-checkbox" %>
|
|
4
4
|
<%= form.label :option_issue_updated, class: "inline-block" %>
|
|
5
|
-
<p class="form-hint"><%== t(".option_issue_updated_hint_html") %></p>
|
|
5
|
+
<p class="form-hint md:inline-block"><%== t(".option_issue_updated_hint_html") %></p>
|
|
6
6
|
</div>
|
|
7
7
|
</div>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
|
2
|
-
<div class="form-group">
|
|
2
|
+
<div class="form-group group">
|
|
3
3
|
<%= form.label :option_account_sid %>
|
|
4
4
|
<%= form.text_field :option_account_sid, class: "form-control" %>
|
|
5
5
|
<p class="form-hint"><%== t(".option_account_sid_hint_html") %></p>
|
|
6
6
|
</div>
|
|
7
7
|
|
|
8
|
-
<div class="form-group" data-controller="password-visibility">
|
|
8
|
+
<div class="form-group group" data-controller="password-visibility">
|
|
9
9
|
<%= form.label :option_api_key %>
|
|
10
10
|
<%= form.password_field :option_api_key, value: form.object.option_api_key, class: "form-control", data: { password_visibility_target: "input"} %>
|
|
11
11
|
<div class="flex justify-between">
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
|
-
<div class="form-group" data-controller="password-visibility">
|
|
17
|
+
<div class="form-group group" data-controller="password-visibility">
|
|
18
18
|
<%= form.label :option_api_secret %>
|
|
19
19
|
<%= form.password_field :option_api_secret, value: form.object.option_api_secret, class: "form-control", data: { password_visibility_target: "input"} %>
|
|
20
20
|
<div class="flex justify-between">
|
|
@@ -23,55 +23,55 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
25
|
|
|
26
|
-
<div class="form-group">
|
|
26
|
+
<div class="form-group group">
|
|
27
27
|
<%= form.label :option_welcome_media %>
|
|
28
28
|
<%= form.file_field :option_welcome_media, accept: "audio/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
|
29
29
|
<p class="form-hint"><%== t(".option_welcome_media_hint_html") %></p>
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
|
-
<div class="form-group">
|
|
32
|
+
<div class="form-group group">
|
|
33
33
|
<%= form.label :option_please_wait_media %>
|
|
34
34
|
<%= form.file_field :option_please_wait_media, accept: "audio/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
|
35
35
|
<p class="form-hint"><%== t(".option_please_wait_media_hint_html") %></p>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
|
-
<div class="form-group">
|
|
38
|
+
<div class="form-group group">
|
|
39
39
|
<%= form.label :option_music_media %>
|
|
40
40
|
<%= form.file_field :option_music_media, accept: "audio/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
|
41
41
|
<p class="form-hint"><%== t(".option_music_media_hint_html") %></p>
|
|
42
42
|
</div>
|
|
43
43
|
|
|
44
|
-
<div class="form-group">
|
|
44
|
+
<div class="form-group group">
|
|
45
45
|
<%= form.label :option_connect_now_media %>
|
|
46
46
|
<%= form.file_field :option_connect_now_media, accept: "audio/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
|
47
47
|
<p class="form-hint"><%== t(".option_connect_now_media_hint_html") %></p>
|
|
48
48
|
</div>
|
|
49
49
|
|
|
50
|
-
<div class="form-group">
|
|
50
|
+
<div class="form-group group">
|
|
51
51
|
<%= form.label :option_no_answer_media %>
|
|
52
52
|
<%= form.file_field :option_no_answer_media, accept: "audio/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
|
53
53
|
<p class="form-hint"><%== t(".option_no_answer_media_hint_html") %></p>
|
|
54
54
|
</div>
|
|
55
55
|
|
|
56
|
-
<div class="form-group">
|
|
56
|
+
<div class="form-group group">
|
|
57
57
|
<%= form.label :option_no_answer_thank_you_media %>
|
|
58
58
|
<%= form.file_field :option_no_answer_thank_you_media, accept: "audio/*", class: "file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-gray-700 hover:file:bg-gray-100" %>
|
|
59
59
|
<p class="form-hint"><%== t(".option_no_answer_thank_you_media_hint_html") %></p>
|
|
60
60
|
</div>
|
|
61
61
|
|
|
62
|
-
<div class="form-group">
|
|
63
|
-
<%= form.label :option_force_input %>
|
|
62
|
+
<div class="form-group group">
|
|
64
63
|
<%= form.check_box :option_force_input, class: "form-checkbox" %>
|
|
65
|
-
|
|
64
|
+
<%= form.label :option_force_input, class: "inline-block" %>
|
|
65
|
+
<p class="form-hint md:inline-block"><%== t(".option_force_input_hint_html") %></p>
|
|
66
66
|
</div>
|
|
67
67
|
|
|
68
|
-
<div class="form-group">
|
|
69
|
-
<%= form.label :option_record %>
|
|
68
|
+
<div class="form-group group">
|
|
70
69
|
<%= form.check_box :option_record, class: "form-checkbox" %>
|
|
71
|
-
|
|
70
|
+
<%= form.label :option_record, class: "inline-block" %>
|
|
71
|
+
<p class="form-hint md:inline-block"><%== t(".option_record_hint_html") %></p>
|
|
72
72
|
</div>
|
|
73
73
|
|
|
74
|
-
<div class="form-group" data-controller="tagify">
|
|
74
|
+
<div class="form-group group" data-controller="tagify">
|
|
75
75
|
<%= form.label :option_record_emails_list %>
|
|
76
76
|
<%= form.text_field :option_record_emails_list, class: "form-control", data: { tagify_target: "input" } %>
|
|
77
77
|
<p class="form-hint"><%== t(".option_record_emails_list_hint_html") %></p>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
|
2
|
-
<div class="form-group">
|
|
2
|
+
<div class="form-group group">
|
|
3
3
|
<%= form.label :option_webhook_url %>
|
|
4
4
|
<%= form.text_field :option_webhook_url, class: "form-control" %>
|
|
5
5
|
<p class="form-hint"><%== t(".option_webhook_url_hint_html") %></p>
|
|
6
6
|
</div>
|
|
7
7
|
|
|
8
|
-
<div class="form-group">
|
|
8
|
+
<div class="form-group group">
|
|
9
9
|
<%= form.label :option_username %>
|
|
10
10
|
<%= form.text_field :option_username, class: "form-control" %>
|
|
11
11
|
<p class="form-hint"><%== t(".option_username_hint_html") %></p>
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
|
-
<div class="form-group">
|
|
14
|
+
<div class="form-group group">
|
|
15
15
|
<%= form.label :option_password %>
|
|
16
16
|
<%= form.text_field :option_password, class: "form-control" %>
|
|
17
17
|
<p class="form-hint"><%== t(".option_password_hint_html") %></p>
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
]
|
|
32
32
|
%>
|
|
33
33
|
<% opts.each do |opt| %>
|
|
34
|
-
<div class="form-group">
|
|
35
|
-
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox
|
|
34
|
+
<div class="form-group group">
|
|
35
|
+
<%= form.check_box "option_#{opt.to_s}".to_sym, class: "form-checkbox" %>
|
|
36
36
|
<%= form.label "option_#{opt.to_s}".to_sym, class: "inline-block" %>
|
|
37
|
-
<p class="form-hint"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
|
37
|
+
<p class="form-hint md:inline-block"><%== t("pager_tree.integrations.common.option_#{opt.to_s}_hint_html") %></p>
|
|
38
38
|
</div>
|
|
39
39
|
<% end %>
|
|
40
40
|
|
|
41
41
|
</div>
|
|
42
42
|
|
|
43
43
|
<div class="grid grid-cols-1 gap-4">
|
|
44
|
-
<%= tag.div class: "form-group", data: {controller: "code-editor", code_editor_language_value: "handlebars", code_editor_read_only_value: false } do %>
|
|
44
|
+
<%= tag.div class: "form-group group", data: {controller: "code-editor", code_editor_language_value: "handlebars", code_editor_read_only_value: false } do %>
|
|
45
45
|
<%= form.label :option_template %>
|
|
46
46
|
<%= form.hidden_field :option_template, class: "form-control", data: {code_editor_target: "form"} %>
|
|
47
47
|
<%= tag.div class: "h-96", data: {code_editor_target: "editor"} do %><%= form.object.option_template %><% end %>
|
|
48
48
|
<p class="form-hint"><%== t(".option_template_hint_html") %></p>
|
|
49
49
|
<% end %>
|
|
50
50
|
|
|
51
|
-
<%= tag.div class: "form-group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
|
51
|
+
<%= tag.div class: "form-group group", data: {controller: "code-editor", code_editor_language_value: "yaml", code_editor_read_only_value: false } do %>
|
|
52
52
|
<%= form.label :option_outgoing_rules, t("pager_tree.integrations.common.option_outgoing_rules") %>
|
|
53
53
|
<%= form.hidden_field :option_outgoing_rules, class: "form-control", data: {code_editor_target: "form"} %>
|
|
54
54
|
<%= tag.div class: "h-96", data: {code_editor_target: "editor"} do %><%= form.object.option_outgoing_rules %><% end %>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
|
2
|
-
<div class="form-group">
|
|
3
|
-
<%= form.check_box :option_resolve_warn, class: "form-checkbox
|
|
2
|
+
<div class="form-group group">
|
|
3
|
+
<%= form.check_box :option_resolve_warn, class: "form-checkbox" %>
|
|
4
4
|
<%= form.label :option_resolve_warn, class: "inline-block" %>
|
|
5
|
-
<p class="form-hint"><%== t(".option_resolve_warn_hint_html") %></p>
|
|
5
|
+
<p class="form-hint md:inline-block"><%== t(".option_resolve_warn_hint_html") %></p>
|
|
6
6
|
</div>
|
|
7
7
|
</div>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<div class="grid grid-cols-1 gap-4">
|
|
2
|
-
<div class="form-group">
|
|
2
|
+
<div class="form-group group">
|
|
3
3
|
<%= form.label :option_token %>
|
|
4
4
|
<%= form.text_field :option_token, class: "form-control" %>
|
|
5
5
|
<p class="form-hint"><%== t(".option_token_hint_html") %></p>
|
|
6
6
|
</div>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
|
-
<div class="grid grid-cols-1
|
|
10
|
-
<div class="form-group">
|
|
11
|
-
<%= form.check_box :option_capture_additional_data, class: "form-checkbox
|
|
9
|
+
<div class="grid grid-cols-1 gap-4">
|
|
10
|
+
<div class="form-group group">
|
|
11
|
+
<%= form.check_box :option_capture_additional_data, class: "form-checkbox" %>
|
|
12
12
|
<%= form.label :option_capture_additional_data, class: "inline-block" %>
|
|
13
|
-
<p class="form-hint"><%== t(".option_capture_additional_data_hint_html") %></p>
|
|
13
|
+
<p class="form-hint md:inline-block"><%== t(".option_capture_additional_data_hint_html") %></p>
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pager_tree-integrations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Austin Miller
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-09-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|