@simpleview/crm-client
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name" : "@simpleview/crm-client", | ||
"version" : "1.0.0", | ||
"version" : "1.0.1", | ||
"description" : "Client for communicating with sv-crm", | ||
@@ -5,0 +5,0 @@ "author" : "Sean Albert <smabert@gmail.com>", |
@@ -9,3 +9,3 @@ const { query } = require("@simpleview/sv-graphql-client"); | ||
} | ||
async get_old({ type, queryString, context }) { | ||
async get_old({ type, queryString, context, fragments="" }) { | ||
context = context || this._graphServer.context; | ||
@@ -18,2 +18,3 @@ | ||
const queryStr = ` | ||
${fragments} | ||
query($acct_id: String!) { | ||
@@ -33,3 +34,3 @@ crm(acct_id: $acct_id) { | ||
return response.crm[type]; | ||
return type ? response.crm[type] : response.crm; | ||
} | ||
@@ -113,3 +114,3 @@ async get({ type, filter, options, fields, fragments, context }) { | ||
return response.crm[type]; | ||
return response.crm; | ||
} | ||
@@ -116,0 +117,0 @@ async set({ type, input, fields, context }) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
6836
9
173
1
9