# netsuite-api-2-ts

> Types file for NetSuite API 2.0

Latest version **1.0.0** (published 2020-12-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install netsuite-api-2-ts
pnpm add netsuite-api-2-ts
yarn add netsuite-api-2-ts
bun add netsuite-api-2-ts
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-12-02 |
| First published | 2020-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 159.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jmbeach |
| Maintainers | jmbeach |
| Keywords | typescript, netsuite, types |

## Links

- npm: https://www.npmjs.com/package/netsuite-api-2-ts
- Repository: https://github.com/jmbeach/netsuite-api-2-ts
- Homepage: https://github.com/jmbeach/netsuite-api-2-ts#readme
- Issues: https://github.com/jmbeach/netsuite-api-2-ts/issues
- npm.io page: https://npm.io/package/netsuite-api-2-ts

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-12-02
- 0.0.1-security — 2020-12-01

## README

# NetSuite API 2.0 TypeScript Declaration File

This package provides a TypeScript [declaration file](https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html) for NetSuite API 2.0 scripts. This effectively gives you [intelligent code completion](https://en.wikipedia.org/wiki/Intelligent_code_completion) for editing NetSuite scripts within the editor of your choice.

![Example usage](./example.gif)

## Usage In VSCode

Add the type declaration file to your folder (either manually or via npm - `npm install netsuite-api-2-ts`).

Add a tsconfig.json file to your project similar to the following:

```json
{
  "compilerOptions": {
    "allowJs": true,
    "allowSyntheticDefaultImports": true,
    "baseUrl": "./",
    "checkJs": true,
    "module": "ESNext",
    "moduleResolution": "classic",
    "outDir": "lib",
    "paths": {
      "*": [
        "@types/*",
      ]
    },
    "target": "ESNext",
    "typeRoots": [
    ]
  },
  "include": [
    "./**/*"
  ]
}
```

The above code assumes that the `.d.ts` file is located in the folder `./@types`.

Using this in combination with the [NetSuite Upload](https://marketplace.visualstudio.com/items?itemName=nsupload-org.netsuite-upload) extension can completely replace the need for [NetSuite's SuiteCloud IDE](https://docs.oracle.com/cloud/latest/netsuitecs_gs/NSIDE/NSIDE.pdf).

## Contributing

The declaration file is edited manually. Not every entity in the API has been added to the declaration file yet. If there is something you would like to add, use NetSuite's [API Reference](https://docs.oracle.com/cloud/latest/netsuitecs_gs/NSAPI/NSAPI.pdf) to figure out the syntax and add it directly to netsuite-api-2.d.ts and create a pull request.

---
_Source: https://npm.io/package/netsuite-api-2-ts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
