closeio 3.10.0 → 3.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/closeio/client.rb +2 -0
- data/lib/closeio/resources/custom_activity.rb +23 -0
- data/lib/closeio/resources/custom_activity_type.rb +19 -0
- data/lib/closeio/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9338b55f278856ee6840f2637105ded00ee65c9535994c06b63efb282702b69
|
4
|
+
data.tar.gz: c6655ddea439d67548d5836bb3d1296505eb98cf485fe2442e1ec2747708b42c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05052f91b684b5134f0751c7a8e6e7d34cfe98731ded7b47fb5f9e209b4dcbab78e7b6284c2c21c5ae7b52386275a96e0d922a374178a5bfeb2d40ed1922a0fb
|
7
|
+
data.tar.gz: 5acb52b6e4842e3e52b44b4e26ee0a3e6a8ed3c5ed021a633e45e11f2e748cd545466b8ba8a9438e571ecb6e0f6144063ff4112efa6456164497e4b661d446af
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
closeio (3.
|
4
|
+
closeio (3.11.0)
|
5
5
|
faraday
|
6
6
|
faraday_middleware
|
7
7
|
json
|
@@ -39,7 +39,7 @@ GEM
|
|
39
39
|
faraday_middleware (1.2.0)
|
40
40
|
faraday (~> 1.0)
|
41
41
|
hashdiff (0.3.6)
|
42
|
-
json (2.6.
|
42
|
+
json (2.6.3)
|
43
43
|
minitest (5.10.3)
|
44
44
|
multipart-post (2.2.3)
|
45
45
|
public_suffix (4.0.6)
|
data/lib/closeio/client.rb
CHANGED
@@ -10,6 +10,8 @@ module Closeio
|
|
10
10
|
include Closeio::Client::Activity
|
11
11
|
include Closeio::Client::BulkAction
|
12
12
|
include Closeio::Client::Contact
|
13
|
+
include Closeio::Client::CustomActivity
|
14
|
+
include Closeio::Client::CustomActivityType
|
13
15
|
include Closeio::Client::CustomField
|
14
16
|
include Closeio::Client::EmailAccount
|
15
17
|
include Closeio::Client::EmailTemplate
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Closeio
|
2
|
+
class Client
|
3
|
+
module CustomActivity
|
4
|
+
def list_custom_activities(options = {})
|
5
|
+
get(custom_activity_path, options)
|
6
|
+
end
|
7
|
+
|
8
|
+
def create_custom_activity(options = {})
|
9
|
+
post(custom_activity_path, options)
|
10
|
+
end
|
11
|
+
|
12
|
+
def delete_custom_activity(id)
|
13
|
+
delete("#{custom_activity_path}#{id}/")
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def custom_activity_path
|
19
|
+
'activity/custom/'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Closeio
|
2
|
+
class Client
|
3
|
+
module CustomActivityType
|
4
|
+
def list_custom_activity_types
|
5
|
+
get(custom_activity_type_path)
|
6
|
+
end
|
7
|
+
|
8
|
+
def find_custom_activity_type(id)
|
9
|
+
get("#{custom_activity_type_path}#{id}/")
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def custom_activity_type_path
|
15
|
+
'custom_activity/'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/closeio/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: closeio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -146,6 +146,8 @@ files:
|
|
146
146
|
- lib/closeio/resources/activity.rb
|
147
147
|
- lib/closeio/resources/bulk_action.rb
|
148
148
|
- lib/closeio/resources/contact.rb
|
149
|
+
- lib/closeio/resources/custom_activity.rb
|
150
|
+
- lib/closeio/resources/custom_activity_type.rb
|
149
151
|
- lib/closeio/resources/custom_field.rb
|
150
152
|
- lib/closeio/resources/email_account.rb
|
151
153
|
- lib/closeio/resources/email_template.rb
|