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

@twec/netsuite-client

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twec/netsuite-client

Generic functionality for connecting to NetSuite Web Services from Node

  • 1.1.0
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
6
Weekly downloads
 
Created
Source

Netsuite-Client

(Node + NetSuite)

This package contains functionality for connecting to NetSuite Web Services from Node, handling token authorization and SOAP XML parsing, and allows fetching records and uploading files.

Install

npm install @twec/netsuite-client

Use in your node app

Import

const NetSuiteClient = require('netsuite-client');
// or: import NetSuiteClient from 'netsuite-client';

Instantiate

When instatiating your netsuite object, you'll need to provide a config object with connection details. See netsuite-auth-config-template.json.

const netSuiteConfig = {
  // various properties
  // see netsuite-auth-config-template.json
  // or the defaultConfig in netsuite-client.js
};
const netsuiteClient = new NetSuiteClient(netsuiteAuthConfig);

Get a record

const record = await netsuiteClient.get({
  // Specify one or more of these properties
  type: '',
  internalId: '',
  externalId: ''
});

Upload a file

const fileRef = await netsuiteClient.upload(
  './some/local/dir/my-file.csv', // local file 
  'uploads/my-file.csv', // NetSuite target file path
);

Other

Checkout other methods: look at the netsuite object console.log(netsuiteClient); and read netsuite-client.js.

Limitations

Currently you can only fetch records (get operation), upload a file (upsert operation), and fetch folders.

Testing

  • Create a netsuite-auth-config.json file; see netsuite-auth-config-template.json for an example in the Functional test folder.
  • Run yarn run test to execute the test scripts.

Keywords

FAQs

Package last updated on 07 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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