close 0.3.0 → 0.4.0

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: 9b96218de9d48b51d11b6da08cd20976747d77bcc2e0d9e48ef1bfa875087db5
4
- data.tar.gz: ab0ae2ae9463f006452b0872b8147d778dd7538469ff65e42a5295b2b62c00dd
3
+ metadata.gz: 80b2dc02ec7728d7c31d5e6f8da17daad48542f73102e9b39cf45d3708aa9cc7
4
+ data.tar.gz: 35fbefc94ac1d01d316d43161c1e12673f111a38668bdc2a15506c4aea6bcec5
5
5
  SHA512:
6
- metadata.gz: 503f1df9634a4a348dd4d7f96b447499ea22961a2e3870c5ad46bf7e8912a6992d15ee144bbda8e9f7b5c40cf1cf4c1f9226f2c34ef2507734fa6d2682c48866
7
- data.tar.gz: 1ca33c0d03a6cbf89ef0b4a050553cdacf52a585a6653ef6375af0e0b4cb44086332f04eb16af411dff6d7f098fcc945df42d45c2a4b7086df09fe25a3bff9dc
6
+ metadata.gz: ce92e34b6ebf86fa5da1f3aca59b6b6c20ac3fb8765eb44e8af5a58c82d4f9c988d2111bf53fbc84752dfd614922dc0188dd8e961e9794d4fcd2f6ae976784e9
7
+ data.tar.gz: bf57b7008f28cdf152618c812fa7d52ba97e85911d461ebcf0a13e9040277cd7c69f1716d12fe44b66e7536e7327f25cb5dc69d6b66500b85baca5fc6344f07c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.0](https://www.github.com/joynerd/close/compare/v0.3.1...v0.4.0) (2022-12-27)
4
+
5
+
6
+ ### Features
7
+
8
+ * Added organization endpoint ([d77bb8d](https://www.github.com/joynerd/close/commit/d77bb8d721bc407ed5c98e11c131d0aff486d232))
9
+
10
+ ### [0.3.1](https://www.github.com/joynerd/close/compare/v0.3.0...v0.3.1) (2022-12-27)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Added a find lead by contact email or phone number ([2d03bd7](https://www.github.com/joynerd/close/commit/2d03bd7811fb52ce05c7160f48ab113f8931f591))
16
+
3
17
  ## [0.3.0](https://www.github.com/joynerd/close/compare/v0.2.0...v0.3.0) (2022-10-20)
4
18
 
5
19
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- close (0.3.0)
4
+ close (0.4.0)
5
5
  faraday (>= 2.0.0)
6
6
  ostruct
7
7
 
@@ -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 Organization < APIResource
3
+
4
+ def self.resource_url
5
+ 'api/v1/organization/'
6
+ end
7
+
8
+ end
9
+ end
@@ -2,4 +2,5 @@ require_relative "resource/activity"
2
2
  require_relative "resource/lead"
3
3
  require_relative "resource/contact"
4
4
  require_relative "resource/custom_activity_type"
5
+ require_relative "resource/organization"
5
6
  require_relative "resource/task"
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.3.0"
4
+ VERSION = "0.4.0"
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.3.0
4
+ version: 0.4.0
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,12 +59,14 @@ 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
64
65
  - lib/close/resource/activity.rb
65
66
  - lib/close/resource/contact.rb
66
67
  - lib/close/resource/custom_activity_type.rb
67
68
  - lib/close/resource/lead.rb
69
+ - lib/close/resource/organization.rb
68
70
  - lib/close/resource/task.rb
69
71
  - lib/close/resources.rb
70
72
  - lib/close/version.rb