@scottybee84/suite-sdk
v0.1.0
Published
Tiny client SDK for NetSuite trainings (mock + real).
Readme
suite-sdk
Tiny client SDK that lets training repos talk to mock-netsuite (local) or a real NetSuite account.
Install (local dev)
npm install ../suite-sdkUsage
import { MockSuiteClient, NetSuiteClient } from "@scottybee84/suite-sdk";
// Using the mock
const client = new MockSuiteClient("http://localhost:3000");
const rows = await client.runSuiteQL("SELECT * FROM invoice LIMIT 5;");
console.log(rows);
// Using real NetSuite
const nsClient = new NetSuiteClient(
"https://<account>.suitetalk.api.netsuite.com",
{
Authorization: "Bearer <token>",
}
);