ractive_campaign 0.1.2 → 0.1.3

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: 20846b5cddd766958b09faca5a0554802c8f031f7a44c25dd6ef33bed8b6b066
4
- data.tar.gz: 5b82e51039ee6a7aaa8946ae64072c085719133b199d23740e295ede1e96b556
3
+ metadata.gz: ee344bdbd4025f17b5d53a9afbdd28358fc29ac2325b8ff3251add3ce096c816
4
+ data.tar.gz: 9774f6a2973cf153fcf68456eecec137e1d88001d4d0c0412f44cf7b69913df8
5
5
  SHA512:
6
- metadata.gz: 5bec213cd9e222d45e65dc71bba599e35ceb30a10b6e70feb3927f7a008e76fb551de9a196c1d95a88be9597318ef9feda293be85ccf0d54964223f6f5f4128a
7
- data.tar.gz: ffb849881717487e63908d4a916d3d884827f24e72ec29bdd5a24c0c6f4e75fc5af77f6f226338904a26034720c8270be7dbf5ea50169a118c95a0aef6459136
6
+ metadata.gz: '0907098764aaa108e6663ca26db45fa45a61b55ec992da65275399a5825adf7d571efbae76adbe96d623a93c73839e7488000465f2977114351d428eb33d39df'
7
+ data.tar.gz: b2fabe0ef19b4b116ef9eda3bcccc54c9d6cdc3cb4f4e70c72133f1d0584517ae097554e5d97489ff2b98327a3f5ffdecbf8490b5dd3e86380c7488ab70cfe60
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ractive_campaign (0.1.2)
4
+ ractive_campaign (0.1.3)
5
5
  activemodel (~> 6.1.4)
6
6
  dry-configurable (~> 0.12.1)
7
7
  faraday (~> 1.8.0)
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Gem Version](https://badge.fury.io/rb/ractive_campaign.svg)](https://badge.fury.io/rb/ractive_campaign) [![Maintainability](https://api.codeclimate.com/v1/badges/c23221fc334b63af9a07/maintainability)](https://codeclimate.com/github/wedsonlima/ractive_campaign/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/c23221fc334b63af9a07/test_coverage)](https://codeclimate.com/github/wedsonlima/ractive_campaign/test_coverage)
2
+
1
3
  # RactiveCampaign
2
4
 
3
5
  Simple wrapper for ActiveCampaign API v3
@@ -7,7 +9,7 @@ Simple wrapper for ActiveCampaign API v3
7
9
  Add this line to your application's Gemfile:
8
10
 
9
11
  ```ruby
10
- gem "ractive_campaign"
12
+ gem "ractive_campaign", require: "active_campaign"
11
13
  ```
12
14
 
13
15
  And then execute:
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class AccountContact < Model # :nodoc:
5
+ define_attributes :contact,
6
+ :account,
7
+ :jobTitle
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class Campaign < Model # :nodoc:
5
+ # REVIEW: only list
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class ContactAutomation < Model # :nodoc:
5
+ define_attributes :contact, :automation
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class ContactDeal < Model # :nodoc:
5
+ define_attributes :contact, :deal
6
+ end
7
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class CustomDealField < Model # :nodoc:
5
+ define_attributes :fieldLabel,
6
+ :fieldType,
7
+ :fieldDefault,
8
+ :isFormVisible,
9
+ :displayOrder
10
+
11
+ class << self
12
+ def endpoint
13
+ "dealCustomFieldMeta"
14
+ end
15
+
16
+ def root_element
17
+ :dealCustomFieldMetum
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class CustomDealFieldValue < Model # :nodoc:
5
+ define_attributes :dealId,
6
+ :customFieldId,
7
+ :fieldValue,
8
+ :fieldCurrency
9
+
10
+ class << self
11
+ def endpoint
12
+ "dealCustomFieldData"
13
+ end
14
+
15
+ def root_element
16
+ :dealCustomFieldDatum
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class Deal < Model # :nodoc:
5
+ define_attributes :contact,
6
+ :account,
7
+ :description,
8
+ :currency,
9
+ :group,
10
+ :owner,
11
+ :percent,
12
+ :stage,
13
+ :status,
14
+ :title,
15
+ :value
16
+ end
17
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class EmailActivity < Model # :nodoc:
5
+ # REVIEW: only listing
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class Field < Model # :nodoc:
5
+ define_attributes :type,
6
+ :title,
7
+ :descript,
8
+ :perstag,
9
+ :defval,
10
+ :visible,
11
+ :ordernum
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class FieldValue < Model # :nodoc:
5
+ define_attributes :contact,
6
+ :field,
7
+ :value
8
+ end
9
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class Pipeline < Model # :nodoc:
5
+ define_attributes :allgroups,
6
+ :allusers,
7
+ :autoassign,
8
+ :currency,
9
+ :title,
10
+ :users
11
+
12
+ class << self
13
+ def endpoint
14
+ "dealGroups"
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class Stage < Model # :nodoc:
5
+ define_attributes :cardRegion1,
6
+ :cardRegion2,
7
+ :cardRegion3,
8
+ :cardRegion4,
9
+ :cardRegion5,
10
+ :color,
11
+ :dealOrder,
12
+ :group,
13
+ :order,
14
+ :title,
15
+ :width
16
+ class << self
17
+ def endpoint
18
+ "dealStages"
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class Task < Model # :nodoc:
5
+ define_attributes :title,
6
+ :ownerType,
7
+ :relid,
8
+ :status,
9
+ :note,
10
+ :duedate,
11
+ :edate,
12
+ :dealTasktype,
13
+ :assignee,
14
+ :triggerAutomationOnCreate,
15
+ :doneAutomation
16
+
17
+ class << self
18
+ def endpoint
19
+ "dealTasks"
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class TaskOutcome < Model # :nodoc:
5
+ define_attributes :title, :sentiment
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class TaskType < Model # :nodoc:
5
+ define_attributes :title, :status
6
+
7
+ class << self
8
+ def endpoint
9
+ "dealTasktypes"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveCampaign
4
+ class User < Model # :nodoc:
5
+ class << self
6
+ def find_by_email(email)
7
+ get "#{endpoint}/email/#{email}"
8
+ end
9
+
10
+ def find_by_username(username)
11
+ get "#{endpoint}/username/#{username}"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveCampaign
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ractive_campaign
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wedson Lima
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-17 00:00:00.000000000 Z
11
+ date: 2021-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -89,13 +89,29 @@ files:
89
89
  - lib/active_campaign/api_attributes.rb
90
90
  - lib/active_campaign/api_http.rb
91
91
  - lib/active_campaign/models/account.rb
92
+ - lib/active_campaign/models/account_contact.rb
92
93
  - lib/active_campaign/models/address.rb
94
+ - lib/active_campaign/models/campaign.rb
93
95
  - lib/active_campaign/models/contact.rb
96
+ - lib/active_campaign/models/contact_automation.rb
97
+ - lib/active_campaign/models/contact_deal.rb
94
98
  - lib/active_campaign/models/contact_tag.rb
99
+ - lib/active_campaign/models/custom_deal_field.rb
100
+ - lib/active_campaign/models/custom_deal_field_value.rb
101
+ - lib/active_campaign/models/deal.rb
102
+ - lib/active_campaign/models/email_activity.rb
103
+ - lib/active_campaign/models/field.rb
104
+ - lib/active_campaign/models/field_value.rb
95
105
  - lib/active_campaign/models/list.rb
96
106
  - lib/active_campaign/models/model.rb
97
107
  - lib/active_campaign/models/note.rb
108
+ - lib/active_campaign/models/pipeline.rb
109
+ - lib/active_campaign/models/stage.rb
98
110
  - lib/active_campaign/models/tag.rb
111
+ - lib/active_campaign/models/task.rb
112
+ - lib/active_campaign/models/task_outcome.rb
113
+ - lib/active_campaign/models/task_type.rb
114
+ - lib/active_campaign/models/user.rb
99
115
  - lib/active_campaign/parser.rb
100
116
  - lib/active_campaign/version.rb
101
117
  homepage: https://github.com/wedsonlima/ractive_campaign