active_campaign_webhooks 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +22 -0
- data/LICENSE.txt +21 -0
- data/README.md +37 -0
- data/Rakefile +2 -0
- data/active_campaign_webhooks.gemspec +30 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/active_campaign/webhooks/request/account.rb +23 -0
- data/lib/active_campaign/webhooks/request/account_add_request.rb +23 -0
- data/lib/active_campaign/webhooks/request/account_contact.rb +19 -0
- data/lib/active_campaign/webhooks/request/account_contact_add_request.rb +29 -0
- data/lib/active_campaign/webhooks/request/account_contact_removed.rb +17 -0
- data/lib/active_campaign/webhooks/request/account_update_request.rb +23 -0
- data/lib/active_campaign/webhooks/request/base_request.rb +39 -0
- data/lib/active_campaign/webhooks/request/campaign.rb +19 -0
- data/lib/active_campaign/webhooks/request/click_request.rb +29 -0
- data/lib/active_campaign/webhooks/request/contact.rb +31 -0
- data/lib/active_campaign/webhooks/request/contact_tag_added_request.rb +27 -0
- data/lib/active_campaign/webhooks/request/contact_task_add_request.rb +23 -0
- data/lib/active_campaign/webhooks/request/deal.rb +59 -0
- data/lib/active_campaign/webhooks/request/deal_add_request.rb +21 -0
- data/lib/active_campaign/webhooks/request/deal_pipeline_add_request.rb +21 -0
- data/lib/active_campaign/webhooks/request/deal_stage_add_request.rb +21 -0
- data/lib/active_campaign/webhooks/request/deal_task_add_request.rb +23 -0
- data/lib/active_campaign/webhooks/request/deal_task_complete_request.rb +25 -0
- data/lib/active_campaign/webhooks/request/deal_tasktype_add_request.rb +21 -0
- data/lib/active_campaign/webhooks/request/deal_update_request.rb +23 -0
- data/lib/active_campaign/webhooks/request/fields.rb +11 -0
- data/lib/active_campaign/webhooks/request/form.rb +13 -0
- data/lib/active_campaign/webhooks/request/forward.rb +13 -0
- data/lib/active_campaign/webhooks/request/forward_request.rb +29 -0
- data/lib/active_campaign/webhooks/request/helpers.rb +16 -0
- data/lib/active_campaign/webhooks/request/link.rb +15 -0
- data/lib/active_campaign/webhooks/request/list.rb +27 -0
- data/lib/active_campaign/webhooks/request/list_add_request.rb +21 -0
- data/lib/active_campaign/webhooks/request/open_request.rb +27 -0
- data/lib/active_campaign/webhooks/request/pipeline.rb +15 -0
- data/lib/active_campaign/webhooks/request/reply_request.rb +31 -0
- data/lib/active_campaign/webhooks/request/sent_request.rb +25 -0
- data/lib/active_campaign/webhooks/request/share.rb +17 -0
- data/lib/active_campaign/webhooks/request/share_request.rb +29 -0
- data/lib/active_campaign/webhooks/request/stage.rb +17 -0
- data/lib/active_campaign/webhooks/request/subscribe_request.rb +27 -0
- data/lib/active_campaign/webhooks/request/task.rb +25 -0
- data/lib/active_campaign/webhooks/request/tasktype.rb +15 -0
- data/lib/active_campaign/webhooks/request/unsubscribe.rb +13 -0
- data/lib/active_campaign/webhooks/request/unsubscribe_request.rb +31 -0
- data/lib/active_campaign/webhooks/request/updated_fields.rb +11 -0
- data/lib/active_campaign/webhooks/version.rb +7 -0
- data/lib/active_campaign_webhooks.rb +24 -0
- metadata +112 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
module Webhooks
|
5
|
+
module Request
|
6
|
+
# AC Request Struct ReplyRequest
|
7
|
+
class ReplyRequest < BaseRequest
|
8
|
+
# @return [String]
|
9
|
+
attribute :url
|
10
|
+
# @return [String]
|
11
|
+
attribute :reply_request_type
|
12
|
+
# @return [String]
|
13
|
+
attribute :date_time
|
14
|
+
# @return [String]
|
15
|
+
attribute :initiated_by
|
16
|
+
# @return [String]
|
17
|
+
attribute :initiated_from
|
18
|
+
# @return [String]
|
19
|
+
attribute :list
|
20
|
+
# @return [Campaign]
|
21
|
+
attribute :campaign, :Campaign
|
22
|
+
# @return [Contact]
|
23
|
+
attribute :contact, :Contact
|
24
|
+
# @return [String]
|
25
|
+
attribute :result
|
26
|
+
# @return [String]
|
27
|
+
attribute :message
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
module Webhooks
|
5
|
+
module Request
|
6
|
+
# AC Request Struct SentRequest
|
7
|
+
class SentRequest < BaseRequest
|
8
|
+
# @return [String]
|
9
|
+
attribute :url
|
10
|
+
# @return [String]
|
11
|
+
attribute :sent_request_type
|
12
|
+
# @return [String]
|
13
|
+
attribute :date_time
|
14
|
+
# @return [String]
|
15
|
+
attribute :initiated_by
|
16
|
+
# @return [String]
|
17
|
+
attribute :initiated_from
|
18
|
+
# @return [String]
|
19
|
+
attribute :list
|
20
|
+
# @return [Campaign]
|
21
|
+
attribute :campaign, :Campaign
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
module Webhooks
|
5
|
+
module Request
|
6
|
+
# AC Request Struct Share
|
7
|
+
class Share < BaseRequest
|
8
|
+
# @return [String]
|
9
|
+
attribute :network
|
10
|
+
# @return [String]
|
11
|
+
attribute :network_id
|
12
|
+
# @return [String]
|
13
|
+
attribute :content
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
module Webhooks
|
5
|
+
module Request
|
6
|
+
# AC Request Struct ShareRequest
|
7
|
+
class ShareRequest < BaseRequest
|
8
|
+
# @return [String]
|
9
|
+
attribute :url
|
10
|
+
# @return [String]
|
11
|
+
attribute :share_type
|
12
|
+
# @return [String]
|
13
|
+
attribute :date_time
|
14
|
+
# @return [String]
|
15
|
+
attribute :initiated_by
|
16
|
+
# @return [String]
|
17
|
+
attribute :initiated_from
|
18
|
+
# @return [String]
|
19
|
+
attribute :list
|
20
|
+
# @return [Campaign]
|
21
|
+
attribute :campaign, :Campaign
|
22
|
+
# @return [Contact]
|
23
|
+
attribute :contact, :Contact
|
24
|
+
# @return [Share]
|
25
|
+
attribute :share, :Share
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
module Webhooks
|
5
|
+
module Request
|
6
|
+
# AC Request Struct Share
|
7
|
+
class Stage < BaseRequest
|
8
|
+
# @return [String]
|
9
|
+
attribute :id
|
10
|
+
# @return [String]
|
11
|
+
attribute :title
|
12
|
+
# @return [String]
|
13
|
+
attribute :color
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
module Webhooks
|
5
|
+
module Request
|
6
|
+
# AC Request Struct SubscribeRequest
|
7
|
+
class SubscribeRequest < BaseRequest
|
8
|
+
# @return [String]
|
9
|
+
attribute :url
|
10
|
+
# @return [String]
|
11
|
+
attribute :subscribe_request_type
|
12
|
+
# @return [String]
|
13
|
+
attribute :date_time
|
14
|
+
# @return [String]
|
15
|
+
attribute :initiated_by
|
16
|
+
# @return [String]
|
17
|
+
attribute :initiated_from
|
18
|
+
# @return [String]
|
19
|
+
attribute :list
|
20
|
+
# @return [Form]
|
21
|
+
attribute :form, :Form
|
22
|
+
# @return [Contact]
|
23
|
+
attribute :contact, :Contact
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
module Webhooks
|
5
|
+
module Request
|
6
|
+
# AC Request Struct Task
|
7
|
+
class Task < BaseRequest
|
8
|
+
# @return [String]
|
9
|
+
attribute :note
|
10
|
+
# @return [String]
|
11
|
+
attribute :id
|
12
|
+
# @return [String]
|
13
|
+
attribute :duedate
|
14
|
+
# @return [String]
|
15
|
+
attribute :donedate
|
16
|
+
# @return [String]
|
17
|
+
attribute :type_title
|
18
|
+
# @return [String]
|
19
|
+
attribute :title
|
20
|
+
# @return [String]
|
21
|
+
attribute :type_id
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
module Webhooks
|
5
|
+
module Request
|
6
|
+
# AC Request Struct Tasktype
|
7
|
+
class Tasktype < BaseRequest
|
8
|
+
# @return [String]
|
9
|
+
attribute :id
|
10
|
+
# @return [String]
|
11
|
+
attribute :title
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
module Webhooks
|
5
|
+
module Request
|
6
|
+
# AC Request Struct UnsubscribeRequest
|
7
|
+
class UnsubscribeRequest < BaseRequest
|
8
|
+
# @return [String]
|
9
|
+
attribute :url
|
10
|
+
# @return [String]
|
11
|
+
attribute :unsubscribe_request_type
|
12
|
+
# @return [String]
|
13
|
+
attribute :date_time
|
14
|
+
# @return [String]
|
15
|
+
attribute :initiated_by
|
16
|
+
# @return [String]
|
17
|
+
attribute :initiated_from
|
18
|
+
# @return [String]
|
19
|
+
attribute :list
|
20
|
+
# @return [Campaign]
|
21
|
+
attribute :form, :Campaign
|
22
|
+
# @return [Campaign]
|
23
|
+
attribute :campaign, :Campaign
|
24
|
+
# @return [Unsubscribe]
|
25
|
+
attribute :unsubscribe, :Unsubscribe
|
26
|
+
# @return [Contact]
|
27
|
+
attribute :contact, :Contact
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'active_campaign/webhooks/version'
|
4
|
+
|
5
|
+
#
|
6
|
+
# Active Campaign
|
7
|
+
#
|
8
|
+
module ActiveCampaign
|
9
|
+
#
|
10
|
+
# AC Webhook Helpers
|
11
|
+
#
|
12
|
+
module Webhooks
|
13
|
+
#
|
14
|
+
# Webhook Request Structs and Helpers
|
15
|
+
#
|
16
|
+
module Request
|
17
|
+
Dir["#{File.join(File.dirname(__FILE__))}/active_campaign/webhooks/request/*.rb"].sort.each do |f|
|
18
|
+
file_path = f.delete_suffix('.rb')
|
19
|
+
class_name = file_path.split('/').last.split('_').collect(&:capitalize).join
|
20
|
+
autoload class_name.to_sym, file_path
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: active_campaign_webhooks
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.13
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sam Boyne
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-10-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: yard
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- sam@banqer.co
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- ".gitignore"
|
35
|
+
- Gemfile
|
36
|
+
- Gemfile.lock
|
37
|
+
- LICENSE.txt
|
38
|
+
- README.md
|
39
|
+
- Rakefile
|
40
|
+
- active_campaign_webhooks.gemspec
|
41
|
+
- bin/console
|
42
|
+
- bin/setup
|
43
|
+
- lib/active_campaign/webhooks/request/account.rb
|
44
|
+
- lib/active_campaign/webhooks/request/account_add_request.rb
|
45
|
+
- lib/active_campaign/webhooks/request/account_contact.rb
|
46
|
+
- lib/active_campaign/webhooks/request/account_contact_add_request.rb
|
47
|
+
- lib/active_campaign/webhooks/request/account_contact_removed.rb
|
48
|
+
- lib/active_campaign/webhooks/request/account_update_request.rb
|
49
|
+
- lib/active_campaign/webhooks/request/base_request.rb
|
50
|
+
- lib/active_campaign/webhooks/request/campaign.rb
|
51
|
+
- lib/active_campaign/webhooks/request/click_request.rb
|
52
|
+
- lib/active_campaign/webhooks/request/contact.rb
|
53
|
+
- lib/active_campaign/webhooks/request/contact_tag_added_request.rb
|
54
|
+
- lib/active_campaign/webhooks/request/contact_task_add_request.rb
|
55
|
+
- lib/active_campaign/webhooks/request/deal.rb
|
56
|
+
- lib/active_campaign/webhooks/request/deal_add_request.rb
|
57
|
+
- lib/active_campaign/webhooks/request/deal_pipeline_add_request.rb
|
58
|
+
- lib/active_campaign/webhooks/request/deal_stage_add_request.rb
|
59
|
+
- lib/active_campaign/webhooks/request/deal_task_add_request.rb
|
60
|
+
- lib/active_campaign/webhooks/request/deal_task_complete_request.rb
|
61
|
+
- lib/active_campaign/webhooks/request/deal_tasktype_add_request.rb
|
62
|
+
- lib/active_campaign/webhooks/request/deal_update_request.rb
|
63
|
+
- lib/active_campaign/webhooks/request/fields.rb
|
64
|
+
- lib/active_campaign/webhooks/request/form.rb
|
65
|
+
- lib/active_campaign/webhooks/request/forward.rb
|
66
|
+
- lib/active_campaign/webhooks/request/forward_request.rb
|
67
|
+
- lib/active_campaign/webhooks/request/helpers.rb
|
68
|
+
- lib/active_campaign/webhooks/request/link.rb
|
69
|
+
- lib/active_campaign/webhooks/request/list.rb
|
70
|
+
- lib/active_campaign/webhooks/request/list_add_request.rb
|
71
|
+
- lib/active_campaign/webhooks/request/open_request.rb
|
72
|
+
- lib/active_campaign/webhooks/request/pipeline.rb
|
73
|
+
- lib/active_campaign/webhooks/request/reply_request.rb
|
74
|
+
- lib/active_campaign/webhooks/request/sent_request.rb
|
75
|
+
- lib/active_campaign/webhooks/request/share.rb
|
76
|
+
- lib/active_campaign/webhooks/request/share_request.rb
|
77
|
+
- lib/active_campaign/webhooks/request/stage.rb
|
78
|
+
- lib/active_campaign/webhooks/request/subscribe_request.rb
|
79
|
+
- lib/active_campaign/webhooks/request/task.rb
|
80
|
+
- lib/active_campaign/webhooks/request/tasktype.rb
|
81
|
+
- lib/active_campaign/webhooks/request/unsubscribe.rb
|
82
|
+
- lib/active_campaign/webhooks/request/unsubscribe_request.rb
|
83
|
+
- lib/active_campaign/webhooks/request/updated_fields.rb
|
84
|
+
- lib/active_campaign/webhooks/version.rb
|
85
|
+
- lib/active_campaign_webhooks.rb
|
86
|
+
homepage: https://github.com/Hoppelite/active_campaign_webhooks
|
87
|
+
licenses:
|
88
|
+
- MIT
|
89
|
+
metadata:
|
90
|
+
homepage_uri: https://github.com/Hoppelite/active_campaign_webhooks
|
91
|
+
source_code_uri: https://github.com/Hoppelite/active_campaign_webhooks
|
92
|
+
changelog_uri: https://github.com/Hoppelite/active_campaign_webhooks
|
93
|
+
post_install_message:
|
94
|
+
rdoc_options: []
|
95
|
+
require_paths:
|
96
|
+
- lib
|
97
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 2.3.0
|
102
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
107
|
+
requirements: []
|
108
|
+
rubygems_version: 3.0.3
|
109
|
+
signing_key:
|
110
|
+
specification_version: 4
|
111
|
+
summary: Structs and Helpers for Active Campaign webhooks
|
112
|
+
test_files: []
|