dashx 0.8.0 → 0.10.0
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 +4 -4
- data/lib/dashx/client.rb +24 -1
- data/lib/dashx/version.rb +1 -1
- data/lib/dashx.rb +4 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6272503f9b3f234f1e51f5a643b0695db19d11ffa4d5e4d7b32532766679786
|
4
|
+
data.tar.gz: 2eae025516a245619b789cec9f13e318328dee6c8f950ba887a89aeb596699e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 836eda960eae125a1a4c3f5851dc1e1c20f39e8ffb10f9b16abff69e4ba8b7b56107c0a07bbbf26b1eede9b2afc684ab3b4aa98195ee25fbe6c8c26113b229ba
|
7
|
+
data.tar.gz: 3fefa479637fd581d51da321eb1a9ee6e6dff66b812b44f8a73a61de112904f5ade7c7cd71d85e84f3ba0b8d0f2094ad7388050c357ffac693909290f69e8b8e
|
data/lib/dashx/client.rb
CHANGED
@@ -62,6 +62,25 @@ module DashX
|
|
62
62
|
}
|
63
63
|
'
|
64
64
|
|
65
|
+
FETCH_CONTACTS_REQUEST = 'query FetchContacts($input: FetchContactsInput!) {
|
66
|
+
fetchContacts(input: $input) {
|
67
|
+
contacts {
|
68
|
+
id
|
69
|
+
accountId
|
70
|
+
name
|
71
|
+
kind
|
72
|
+
value
|
73
|
+
unverifiedValue
|
74
|
+
verifiedAt
|
75
|
+
status
|
76
|
+
tag
|
77
|
+
createdAt
|
78
|
+
updatedAt
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
'
|
83
|
+
|
65
84
|
FETCH_STORED_PREFERENCES = 'query FetchStoredPreferences($input: FetchStoredPreferencesInput) {
|
66
85
|
fetchStoredPreferences(input: $input) {
|
67
86
|
preferenceData
|
@@ -114,7 +133,7 @@ module DashX
|
|
114
133
|
end
|
115
134
|
|
116
135
|
params = {
|
117
|
-
templateSubkind: templateSubkind,
|
136
|
+
templateSubkind: templateSubkind.upcase,
|
118
137
|
templateIdentifier: templateIdentifier
|
119
138
|
}.merge(options)
|
120
139
|
|
@@ -144,6 +163,10 @@ module DashX
|
|
144
163
|
make_graphql_request(SAVE_CONTACTS_REQUEST, { uid: uid, contacts: contacts })
|
145
164
|
end
|
146
165
|
|
166
|
+
def fetch_contacts(uid)
|
167
|
+
make_graphql_request(FETCH_CONTACTS_REQUEST, { uid: uid })
|
168
|
+
end
|
169
|
+
|
147
170
|
def fetch_item(identifier)
|
148
171
|
make_graphql_request(FETCH_ITEM_REQUEST, { identifier: identifier })
|
149
172
|
end
|
data/lib/dashx/version.rb
CHANGED
data/lib/dashx.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dashx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DashX
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -24,8 +24,8 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.16'
|
27
|
-
description:
|
28
|
-
email:
|
27
|
+
description:
|
28
|
+
email:
|
29
29
|
executables: []
|
30
30
|
extensions: []
|
31
31
|
extra_rdoc_files: []
|
@@ -51,7 +51,7 @@ licenses:
|
|
51
51
|
metadata:
|
52
52
|
homepage_uri: https://github.com/dashxhq/dashx-ruby#readme
|
53
53
|
source_code_uri: https://github.com/dashxhq/dashx-ruby
|
54
|
-
post_install_message:
|
54
|
+
post_install_message:
|
55
55
|
rdoc_options: []
|
56
56
|
require_paths:
|
57
57
|
- lib
|
@@ -66,8 +66,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
|
-
rubygems_version: 3.
|
70
|
-
signing_key:
|
69
|
+
rubygems_version: 3.1.6
|
70
|
+
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: DashX SDK for Ruby.
|
73
73
|
test_files: []
|