{"_id":"@42technologies/netsuite-js","_rev":"3-4b6e190e26c6fdc8bce47c7308ecda57","name":"@42technologies/netsuite-js","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.4":{"name":"@42technologies/netsuite-js","description":"A Node wrapper for the NetSuite SOAP API.","version":"1.0.4","homepage":"https://github.com/CrossLead/netsuite-js","bugs":{"url":"https://github.com/CrossLead/netsuite-js/issues"},"license":"Apache","main":"lib/index.js","publishConfig":{"access":"public"},"author":{"name":"Christian Yang","email":"christian.yang@crosslead.com","url":"http://crosslead.com/"},"repository":{"type":"git","url":"git+https://github.com/42technologies/netsuite-js.git"},"keywords":[],"dependencies":{"debug":"4.1.1","denodeify":"1.2.1","lodash":"^4.17.15","nyc":"^15.0.0","soap":"^0.31.0"},"devDependencies":{"async":"^3.2.0","coveralls":"^3.0.9","mocha":"^7.1.0","nock":"^12.0.2","should":"^13.2.3"},"scripts":{"coveralls":"npx nyc && cat coverage/lcov.info | npx coveralls.js","test":"npx nyc mocha --recursive"},"engines":{"node":">=12.3.0","npm":">=3"},"gitHead":"276e05ec01f6eeb229dacff2a83a6bf73e283485","_id":"@42technologies/netsuite-js@1.0.4","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-5KjCVCMhJwOqnMK9+JUqCTYk7EzMa4oyjaArl0Ch6ntIM1C4JJZvnvYVJUMVQq9PvuNjUi05iRuBBT6lmdwUqg==","shasum":"1f845ef4b2d47ea688a8f46b473d36d24d40371c","tarball":"https://registry.npmjs.org/@42technologies/netsuite-js/-/netsuite-js-1.0.4.tgz","fileCount":98,"unpackedSize":2389636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhkr3gCRA9TVsSAnZWagAAOQoP/iyxHFb1bU8DzXTRZJqS\nAx+UtBYIHcjXe9gllzWt+bSUYNYKyAybgf3Jp7q0zlw2z+j2tbaThzK+gccX\nFywc+Wupp4E857Jn2TGmS7Dix06ZNCgtRHCHvi64y+94Q4XEzqB4GR9vHPKI\nsSThdhtk0eVngbZ+fBhfbcJaMzAYAD9Vtj+W634mrGGkzpfNNQ+B1T0CQ8VA\ne2yPRHtre0rAuTRZ0nLxGo8B7+2WRfcZSY8/mVtEk3P0OYSdlzOJjcj71u4Y\nLIrSNC1Gm4h9hlynoB3oU7K6LNiBMmooCK/SLC8A9PvBvRQ4cicUh6QpnASm\nTSENzQGJFT/ZHQ4xBJ50kk2BR6nMyWPTzGhB/W7/Ktr0Lpue4lL5L8u71a7T\n0+otlNWKuJbIBGtduylSGABZHO0dW/N/reQb3gvPdsG+VBoJ7RPaiucX84VJ\nqqOQX7Fn4Ymjf0Qikza4Mxo6AFencnpuOWW01/ZOo3opTTzvhCSnIR4Ou6Xt\nj4vrUnl4FqvsnajTFrMbtPtHoLhm5CIAbQFwM/3ny+e2vtGwYnI5JdIKGyCB\nonZpYg1v4SxQs+4/83cG/xhm9shjNH6VH/Lv8JLUuqWziMa4ciXOhrRZmV78\n7JZ0H5C5404wg2lizz0nB8MAq/3AZ29gq/Ov1+libgaOwGjQQtzT/Ce08kS7\n3/9O\r\n=eeSJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGtGkV7A5kr8/Oy17psP1g+1+fZ9bHRc6AmRIw0Kn5hzAiAByEf2KB15x3V7A+Tny2SvM6OUfHQmMyxiStyArnxbiQ=="}]},"_npmUser":{"name":"surjikal","email":"npm@surj.email"},"directories":{},"maintainers":[{"name":"surjikal","email":"npm@surj.email"},{"name":"nickporter42","email":"nick@42technologies.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/netsuite-js_1.0.4_1637006816640_0.6400473630064016"},"_hasShrinkwrap":false},"1.0.5":{"name":"@42technologies/netsuite-js","description":"A Node wrapper for the NetSuite SOAP API.","version":"1.0.5","homepage":"https://github.com/CrossLead/netsuite-js","bugs":{"url":"https://github.com/CrossLead/netsuite-js/issues"},"license":"Apache","main":"lib/index.js","publishConfig":{"access":"public"},"author":{"name":"Christian Yang","email":"christian.yang@crosslead.com","url":"http://crosslead.com/"},"repository":{"type":"git","url":"git+https://github.com/42technologies/netsuite-js.git"},"keywords":[],"dependencies":{"debug":"4.1.1","denodeify":"1.2.1","lodash":"^4.17.15","nyc":"^15.0.0","soap":"^0.31.0"},"devDependencies":{"async":"^3.2.0","coveralls":"^3.0.9","mocha":"^7.1.0","nock":"^12.0.2","should":"^13.2.3"},"scripts":{"coveralls":"npx nyc && cat coverage/lcov.info | npx coveralls.js","test":"npx nyc mocha --recursive"},"engines":{"node":">=12.3.0","npm":">=3"},"gitHead":"b14be17e7702d99e03b976b16f12b640cada3d82","_id":"@42technologies/netsuite-js@1.0.5","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-AzdzWeq/CT7IDHP9VSJ36EofwinEvJKbn85gGoZ5/dy39K9j1nN94rzMexaFtQfHbtgXc5tm4kY5LQVhttrMdw==","shasum":"e7b0ba3499ed144f8c7b20693ab594c84b958240","tarball":"https://registry.npmjs.org/@42technologies/netsuite-js/-/netsuite-js-1.0.5.tgz","fileCount":98,"unpackedSize":2389903,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiN+1aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxWA//UtXwKrHKfRBjR6Oq5g0FyEK8xS+r3H74fzlj3WPlcExdsPP/\r\nAd0snDk4iLkmp2I7tD7/Khtnesh1TiKbh50fdDp3CWtJJq8yywiG5HtEkRVJ\r\n2QaEOas+9GhiC5IyYV9wI6pIFJEVTAs7e47PaVNfUeGhvn5QQgQNy6K5Y5/G\r\nfxkgpSMWcmiNfKOjR6Xu6GDLWUxy5g2KtK1t9fZPe92OasyIY59iVrbw9eVx\r\nfCPa6rWUuPHv/3G+cuM+Hbxo5ZyF8l4o4dq0LqdUMUF0i+eKmwd9QWRSjfdu\r\nzlaha9Nd5KSLakWRNh4E04hB8U8yuUVoCVBhCuyd9/Uw5hISknxNBZbdmiLD\r\nZLMuWAfv2cX5JJLJa7xvRf6YtXPTzfTmMU+HDkJoIiee/b6JlHEojqRSqLbI\r\nhu+LcYyWZzCVgi4l0sEXUVVDDYtNF/SDIxQ2e2lNu4+LbM1o5oW73HeRPDSO\r\nVnrk4WDVLSmVBWkk6sJel4UfeV++pBiWQJxu+9Cbas/Y5iDMs4I95lfRKXJO\r\n8yGvyaDnO+eh7OAdWSsQlmYKQx3RrAwp1kNz0SgPp7X3tkH/Pi0mXHqgTLjn\r\nG5oQUu9s2f4HZMm7WAB5gEPNyYscCHyjgcEtdOAnUgYq08Y840ZzdDn2L0iP\r\nDk60EgQHlGvav/8PF6QDxUkgf7pvQHe4zTk=\r\n=BMJ7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFTBAB+scgDYcD/fV3lS8zQUhX61n7RBYy0Ooflb8qEaAiBTRFncnCuLoc8KZ4dy8noqL5m9kTIVcm2fzy9hItcvEg=="}]},"_npmUser":{"name":"lbutzmann","email":"lars.butzmann@gmail.com"},"directories":{},"maintainers":[{"name":"lbutzmann","email":"lars.butzmann@gmail.com"},{"name":"surjikal","email":"npm@surj.email"},{"name":"nickporter42","email":"nick@42technologies.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/netsuite-js_1.0.5_1647832410335_0.12870328999604652"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-15T20:06:56.549Z","1.0.4":"2021-11-15T20:06:56.848Z","modified":"2022-04-04T10:45:49.538Z","1.0.5":"2022-03-21T03:13:30.632Z"},"maintainers":[{"name":"lbutzmann","email":"lars.butzmann@gmail.com"},{"name":"surjikal","email":"npm@surj.email"},{"name":"nickporter42","email":"nick@42technologies.com"}],"description":"A Node wrapper for the NetSuite SOAP API.","homepage":"https://github.com/CrossLead/netsuite-js","keywords":[],"repository":{"type":"git","url":"git+https://github.com/42technologies/netsuite-js.git"},"author":{"name":"Christian Yang","email":"christian.yang@crosslead.com","url":"http://crosslead.com/"},"bugs":{"url":"https://github.com/CrossLead/netsuite-js/issues"},"license":"Apache","readme":"# netsuite-js \n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-url]][daviddm-image] [![Coverage Status][coveralls-image]][coveralls-url]\n\nA Node wrapper for the NetSuite SOAP API.\n\n\n## Install\n\n```bash\n$ npm install --save netsuite-js\n```\n\n\n## Usage\n\n```javascript\nvar NetSuite = require('netsuite-js');\nvar credentials =  {\n  \"email\": \"test@test.com\",\n  \"password\": \"password\",\n  \"account\": 123456,\n  \"role\": 3\n};\nvar config = new NetSuite.Configuration(credentials);\nvar service = new NetSuite.Service(config);\nservice\n  .init()\n  .then(function(/*client*/) {\n    console.log('WSDL processed. Service description:');\n    console.log(service.config.client.describe());\n\n    var recordRef = new NetSuite.Records.RecordRef();\n    recordRef.internalId = 5084;\n    recordRef.type = 'employee';\n\n    console.log('Getting Employee record');\n    return service.get(recordRef);\n  })\n  .then(function(result, raw, soapHeader) {\n    if (result.readResponse.status.$attributes.isSuccess !== 'true') {\n      console.error('Error');\n      console.error(result.readResponse.status.statusDetail);\n    }\n    console.log(result);\n    console.log('Last Request:');\n    console.log(service.config.client.lastRequest);\n  })\n  .catch(function(err) {\n    console.error(err);\n  });\n```\n\n## Running the examples\n\n* Copy `example/credentials.json.sample` to `example/credentials.json`\n* Fill in with your NetSuite credentials\n* Run `node example/simple.js` or other examples\n\n## API\nYou can find autogenerated docs at: http://crosslead.github.io/netsuite-js/docs/lib/index.js.html\n\nThe autogenerated docs are created via the `gulp docs` task and pushed to the `gh-pages` branch.\n\n_(More examples of end-to-end usage scenarios coming soon)_\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [gulp](http://gulpjs.com/).\n\n\n## License\n\nCopyright (c) 2015 McChrystal Group. Licensed under the Apache license.\n\n\n\n[npm-url]: https://npmjs.org/package/netsuite-js\n[npm-image]: https://badge.fury.io/js/netsuite-js.svg\n[travis-url]: https://travis-ci.org/CrossLead/netsuite-js\n[travis-image]: https://travis-ci.org/CrossLead/netsuite-js.svg?branch=master\n[daviddm-url]: https://david-dm.org/CrossLead/netsuite-js.svg?theme=shields.io\n[daviddm-image]: https://david-dm.org/CrossLead/netsuite-js\n[coveralls-url]: https://coveralls.io/r/CrossLead/netsuite-js\n[coveralls-image]: https://coveralls.io/repos/CrossLead/netsuite-js/badge.png\n","readmeFilename":"README.md"}