@deploybaseline/netsuite
v0.14.0
Published
NetSuite emulator for SuiteTalk REST web services: the record service for customers, contacts, vendors, employees, items, transactions, and lists (with sublists, subrecords, upsert by external ID, `q` filtering, and paging), transforms and record actions,
Readme
@deploybaseline/netsuite
NetSuite emulator for SuiteTalk REST web services: the record service for customers, contacts, vendors, employees, items, transactions, and lists (with sublists, subrecords, upsert by external ID, q filtering, and paging), transforms and record actions, asynchronous requests and batches, custom fields, lists, and record types, SuiteQL, the metadata catalog, token-based authentication, OAuth 2.0, and bearer tokens with a login audit trail.
Part of Baseline: local drop-in replacement services for CI and no-network sandboxes.
Usage
npx @deploybaseline/cli start --service netsuiteimport { createEmulator } from "@deploybaseline/cli";
const netsuite = await createEmulator({ service: "netsuite" });
// Point your SDK at netsuite.url
await netsuite.close();import { NetsuiteApiClient } from "netsuite-api-client";
const client = new NetsuiteApiClient({
consumer_key: "baseline-consumer-key",
consumer_secret_key: "baseline-consumer-secret",
token: "baseline-token-id",
token_secret: "baseline-token-secret",
realm: "1234567",
base_url: netsuite.url,
});Documentation
- NetSuite docs: records, sublists, collections and
q, transforms, async requests, custom fields and records, SuiteQL, metadata, TBA and OAuth 2.0 and the login audit trail, seed config, and current limits - API reference:
http://localhost:3999/docs/netsuitewhile the CLI runs (how it works)
License
Apache-2.0
