Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@simpleview/crm-client

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@simpleview/crm-client - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name" : "@simpleview/crm-client",
"version" : "1.0.5",
"version" : "1.0.6",
"description" : "Client for communicating with sv-crm",

@@ -5,0 +5,0 @@ "author" : "Sean Albert <smabert@gmail.com>",

@@ -193,2 +193,26 @@ const { query } = require("@simpleview/sv-graphql-client");

async delete_v2({ recType, refType, recId, context }) {
context = context || this._graphServer.context;
const variables = {
recId,
type: refType,
acct_id: context.acct_id
};
const queryStr = `mutation($acct_id: String!, $recId: Int!${refType ? ", $type: String!" : ""}) {
crm(acct_id: $acct_id) {
delete_${recType} (
recId: $recId
${refType ? `type: $type` : ""}
)
}
}`;
const response = await query({
query: queryStr,
variables,
url: this._graphUrl,
token: context.token
});
return response.crm[`delete_${recType}`];
}
/**

@@ -195,0 +219,0 @@ * TODO: This is not implemented yet on graph side, the way to handle delete check is TBD

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc