close 0.7.5 → 0.9.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: ef162abc23935c45c90eb14e31b992b77397fea3fab09c5d2bde3faa5e3ac2b1
4
- data.tar.gz: e68b1d0d7b78cf739456f3a17669959ec95aea91b4e251ae16004f61148ef88c
3
+ metadata.gz: cc51e5fbf729a68db25c0e7c19c40517e14ee271710775360e5e1c2d6cafd29b
4
+ data.tar.gz: fdeae9ed7a4de498419ea57b36f0e18a6372eefa4a01541921043a14f7d112d7
5
5
  SHA512:
6
- metadata.gz: d9f2cbd586e0bedd6ca2e3784e6bb5f6abceb85e0d69a1b846581307f81877cb0c5582d51f8f90e78ea6bab477f2f5f557438c4278d4038a5456d93b74ed8082
7
- data.tar.gz: 95fdf8320849cac34a27913481e11b5d53a49c3169d65042de754272c00372293665f94ff88c3e7d8af334d1bc8c77371912526ed3adc3a3beddf0e9c2836494
6
+ metadata.gz: e9e1574a52b5b64cb2f22bc7d59ed4818124f94e37209e533f747649e54cbb714d510e2315234957d2ba7f95db8e4289fba905cd563523651710bff309a36006
7
+ data.tar.gz: 380959f27b70bf6d132f4014987e101e5320f32d4d342910ed00dc2126874b567477986bd130dd8b408e69d444646e1ce9ba118d47ecff8b5cd15f36e97a1ed0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.9.0](https://www.github.com/joynerd/close/compare/v0.8.0...v0.9.0) (2023-01-04)
4
+
5
+
6
+ ### Features
7
+
8
+ * Added an escape hatch for setting new values ([7df1b31](https://www.github.com/joynerd/close/commit/7df1b316b488eb05ecd21577146bda3ff1d74139))
9
+
10
+ ## [0.8.0](https://www.github.com/joynerd/close/compare/v0.7.5...v0.8.0) (2023-01-03)
11
+
12
+
13
+ ### Features
14
+
15
+ * Added find contact by phone ([1b12dd5](https://www.github.com/joynerd/close/commit/1b12dd505a989e463dc28360f12e33a4bee68f8e))
16
+
3
17
  ### [0.7.5](https://www.github.com/joynerd/close/compare/v0.7.4...v0.7.5) (2023-01-03)
4
18
 
5
19
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- close (0.7.5)
4
+ close (0.9.0)
5
5
  faraday (>= 2.0.0)
6
6
  ostruct
7
7
 
@@ -64,6 +64,15 @@ module Close
64
64
  @values.merge(@new_values)
65
65
  end
66
66
 
67
+ # Escape hatch for new values. Instead of using the defined
68
+ # accessors, you can use this method to set a value.
69
+ # @param key [String] the key to set.
70
+ # @param value [String] the value to set.
71
+ # @return [String] the value.
72
+ def set(key, value)
73
+ @new_values[key] = value
74
+ end
75
+
67
76
  # Updates the resource on the server. Will not make a request
68
77
  # if there are no unsaved changes.
69
78
  # @return [Boolean] true if the update succeeded, false otherwise.
@@ -0,0 +1,60 @@
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_phone",
23
+ "related_query": {
24
+ "negate": false,
25
+ "queries": [
26
+ {
27
+ "condition": {
28
+ "mode": "phrase",
29
+ "type": "text",
30
+ "value": "%PHONE_NUMBER%"
31
+ },
32
+ "field": {
33
+ "field_name": "phone",
34
+ "object_type": "contact_phone",
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
+ "type": "and"
48
+ },
49
+ "this_object_type": "lead",
50
+ "type": "has_related"
51
+ }
52
+ ],
53
+ "type": "and"
54
+ }
55
+ ],
56
+ "type": "and"
57
+ },
58
+ "results_limit": null,
59
+ "sort": []
60
+ }
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.7.5"
4
+ VERSION = "0.9.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.7.5
4
+ version: 0.9.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: 2023-01-03 00:00:00.000000000 Z
11
+ date: 2023-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ostruct
@@ -60,6 +60,7 @@ files:
60
60
  - lib/close/close_object.rb
61
61
  - lib/close/data/filters/find_lead_by_contact_email.json
62
62
  - lib/close/data/filters/find_lead_by_contact_email_or_phone.json
63
+ - lib/close/data/filters/find_lead_by_contact_phone.json
63
64
  - lib/close/errors.rb
64
65
  - lib/close/filter.rb
65
66
  - lib/close/resource/activity.rb