close 0.2.0 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed73fa2146fd8957db21a0496e0ba480122cd352f6eca97661286593ec4ad374
4
- data.tar.gz: 70a0800988e93bf3ce2e6cb26408d13a9841692c25015691c36edb5d09add831
3
+ metadata.gz: c7ab319bfb4b06f727c09ccbc65fe5a7d82a6c8f6e6c3d30caefe5b2115d96ed
4
+ data.tar.gz: c57919f127915f52275140453faabdfe2b523a1d42c80651433a3e8959f4e7a6
5
5
  SHA512:
6
- metadata.gz: 3803b9d1d73b2f29d0ef73cdc2500b358e09f552aee4fc2bbba1da45362636ac46cfaa8bc2370117878d85dfd3cf1e90234cf47245848a05014107d93c843934
7
- data.tar.gz: 82b88a593e72097347966567530e7b648dac5875b360e5347e251189bba8af1901e182b1db47340869e2848b897393057973b8e22853d6bbd9d09a4f36a5431d
6
+ metadata.gz: e9ef5847c82667d30a4edfd95c473b00b101e5ebd1094bf110df40879f03656a0ce2a1434a8e241717742ffe6022ec8e5736df83969fd6128297676b39d54939
7
+ data.tar.gz: 5a8f2dd395b7026af92d6e70987197cfd8c66d59ee4cb1679e84c0b526cb1d1288ddec52d1ad1f852dcd2fb72577bc622224d3f491f0284d6d351958b218fd3d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ### [0.3.1](https://www.github.com/joynerd/close/compare/v0.3.0...v0.3.1) (2022-12-27)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Added a find lead by contact email or phone number ([2d03bd7](https://www.github.com/joynerd/close/commit/2d03bd7811fb52ce05c7160f48ab113f8931f591))
9
+
10
+ ## [0.3.0](https://www.github.com/joynerd/close/compare/v0.2.0...v0.3.0) (2022-10-20)
11
+
12
+
13
+ ### Features
14
+
15
+ * Added support for Activity endpoint ([32d01fc](https://www.github.com/joynerd/close/commit/32d01fc2a65e7ff30605e855cbea2693d2410848))
16
+
3
17
  ## [0.2.0](https://www.github.com/joynerd/close/compare/v0.1.5...v0.2.0) (2022-10-20)
4
18
 
5
19
 
data/Gemfile CHANGED
@@ -18,3 +18,5 @@ gem "webmock"
18
18
  gem "sinatra"
19
19
 
20
20
  gem 'simplecov', require: false, group: :test
21
+
22
+ gem 'simplecov_json_formatter', require: false, group: :test
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- close (0.2.0)
4
+ close (0.3.1)
5
5
  faraday (>= 2.0.0)
6
6
  ostruct
7
7
 
@@ -92,6 +92,7 @@ DEPENDENCIES
92
92
  rspec (~> 3.0)
93
93
  rubocop (~> 1.21)
94
94
  simplecov
95
+ simplecov_json_formatter
95
96
  sinatra
96
97
  webmock
97
98
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Close
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/close.svg)](https://badge.fury.io/rb/close) [![Test Coverage](https://api.codeclimate.com/v1/badges/d83380e81bfb459ea027/test_coverage)](https://codeclimate.com/github/joynerd/close/test_coverage)
3
+ [![Gem Version](https://badge.fury.io/rb/close.svg)](https://badge.fury.io/rb/close) ![Tests](https://github.com/joynerd/close/actions/workflows/spec.yml/badge.svg) [![Test Coverage](https://api.codeclimate.com/v1/badges/d83380e81bfb459ea027/test_coverage)](https://codeclimate.com/github/joynerd/close/test_coverage)
4
4
 
5
5
  This a ruby gem that provides a robust way to interact with the Close
6
6
  CRM API.
@@ -0,0 +1,86 @@
1
+ {
2
+ "limit": null,
3
+ "query": {
4
+ "negate": false,
5
+ "queries": [
6
+ {
7
+ "negate": false,
8
+ "object_type": "lead",
9
+ "type": "object_type"
10
+ },
11
+ {
12
+ "negate": false,
13
+ "queries": [
14
+ {
15
+ "negate": false,
16
+ "related_object_type": "contact",
17
+ "related_query": {
18
+ "negate": false,
19
+ "queries": [
20
+ {
21
+ "negate": false,
22
+ "related_object_type": "contact_email",
23
+ "related_query": {
24
+ "negate": false,
25
+ "queries": [
26
+ {
27
+ "condition": {
28
+ "mode": "full_words",
29
+ "type": "text",
30
+ "value": "%EMAIL%"
31
+ },
32
+ "field": {
33
+ "field_name": "email",
34
+ "object_type": "contact_email",
35
+ "type": "regular_field"
36
+ },
37
+ "negate": false,
38
+ "type": "field_condition"
39
+ }
40
+ ],
41
+ "type": "and"
42
+ },
43
+ "this_object_type": "contact",
44
+ "type": "has_related"
45
+ },
46
+ {
47
+ "negate": false,
48
+ "related_object_type": "contact_phone",
49
+ "related_query": {
50
+ "negate": false,
51
+ "queries": [
52
+ {
53
+ "condition": {
54
+ "mode": "full_words",
55
+ "type": "text",
56
+ "value": "%PHONE_NUMBER%"
57
+ },
58
+ "field": {
59
+ "field_name": "phone",
60
+ "object_type": "contact_phone",
61
+ "type": "regular_field"
62
+ },
63
+ "negate": false,
64
+ "type": "field_condition"
65
+ }
66
+ ],
67
+ "type": "and"
68
+ },
69
+ "this_object_type": "contact",
70
+ "type": "has_related"
71
+ }
72
+ ],
73
+ "type": "or"
74
+ },
75
+ "this_object_type": "lead",
76
+ "type": "has_related"
77
+ }
78
+ ],
79
+ "type": "and"
80
+ }
81
+ ],
82
+ "type": "and"
83
+ },
84
+ "results_limit": null,
85
+ "sort": []
86
+ }
@@ -0,0 +1,9 @@
1
+ module Close
2
+ class Activity < APIResource
3
+
4
+ def self.resource_url
5
+ 'api/v1/activity/'
6
+ end
7
+
8
+ end
9
+ end
@@ -1,3 +1,4 @@
1
+ require_relative "resource/activity"
1
2
  require_relative "resource/lead"
2
3
  require_relative "resource/contact"
3
4
  require_relative "resource/custom_activity_type"
data/lib/close/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Close
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: close
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - JoyNerd LLC
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-20 00:00:00.000000000 Z
11
+ date: 2022-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ostruct
@@ -59,8 +59,10 @@ files:
59
59
  - lib/close/api_resource.rb
60
60
  - lib/close/close_object.rb
61
61
  - lib/close/data/filters/find_lead_by_contact_email.json
62
+ - lib/close/data/filters/find_lead_by_contact_email_or_phone.json
62
63
  - lib/close/errors.rb
63
64
  - lib/close/filter.rb
65
+ - lib/close/resource/activity.rb
64
66
  - lib/close/resource/contact.rb
65
67
  - lib/close/resource/custom_activity_type.rb
66
68
  - lib/close/resource/lead.rb