{"_id":"@customerjourney/cj-odoo","_rev":"2-f9245a7af9d087fd997445833a3e2586","name":"@customerjourney/cj-odoo","dist-tags":{"latest":"0.6.2"},"versions":{"0.6.0":{"name":"@customerjourney/cj-odoo","version":"0.6.0","keywords":["odoo","JSON-RPC"],"author":{"name":"Antonio Fregoso","email":"antoniofregoso@protonmail.com"},"license":"GPL-3.0-or-later","_id":"@customerjourney/cj-odoo@0.6.0","maintainers":[{"name":"antoniofregoso","email":"antoniofregoso@protonmail.com"}],"homepage":"https://customerjourney.ninja/documentation/odoo/odoo-client/","bugs":{"url":"https://github.com/antoniofregoso/cj-odoo/issues"},"dist":{"shasum":"829ae16c60cb22c3b42ece732788b1647e213da2","tarball":"https://registry.npmjs.org/@customerjourney/cj-odoo/-/cj-odoo-0.6.0.tgz","fileCount":5,"integrity":"sha512-KU75cFSCO0/d2zXu3GLIALPIIA4W+gTkwm6xdkuKg5wRj3gEoTMQN8DYw9kRhow8Xj+GmJrlfBKZAsmxtyF8Gw==","signatures":[{"sig":"MEUCIQDE22XamVpyCEXGcwqjDa5lSAUWnN9aNrLihujPuSpD5gIgQ4pjSKJ2NPEP3OFSNS1Xo1pBpNh/GBpqpvziOcFS7Qg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40668},"main":"src/odooClient.js","module":"src/odooClient.js","gitHead":"6625e99ae52a12e32f6f086d5eb295162b9b5112","scripts":{"prod":"esbuild src/odooClient.js --bundle --minify  --outfile=dist/odooClient.js","test":"echo \"Error: no test specified\" && exit 1","build":"esbuild src/odooClient.js --bundle  --outfile=dist/odooClient.js"},"_npmUser":{"name":"antoniofregoso","actor":{"name":"antoniofregoso","type":"user","email":"antoniofregoso@protonmail.com"},"email":"antoniofregoso@protonmail.com"},"repository":{"url":"git+https://github.com/antoniofregoso/cj-odoo.git","type":"git"},"_npmVersion":"10.9.2","description":"json-rpc connection for odoo","directories":{},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.19.4"},"_npmOperationalInternal":{"tmp":"tmp/cj-odoo_0.6.0_1752120836076_0.865530113992512","host":"s3://npm-registry-packages-npm-production"}},"0.6.2":{"name":"@customerjourney/cj-odoo","version":"0.6.2","description":"json-rpc connection for odoo","main":"src/odooClient.js","module":"src/odooClient.js","scripts":{"prod":"esbuild src/odooClient.js --bundle --minify  --outfile=dist/odooClient.js","build":"esbuild src/odooClient.js --bundle  --outfile=dist/odooClient.js","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/antoniofregoso/cj-odoo.git"},"homepage":"https://customerjourney.ninja/documentation/odoo/odoo-client/","keywords":["odoo","JSON-RPC"],"author":{"name":"Antonio Fregoso","email":"antoniofregoso@protonmail.com"},"license":"GPL-3.0-or-later","devDependencies":{"esbuild":"^0.19.4"},"_id":"@customerjourney/cj-odoo@0.6.2","gitHead":"42ae1ad1a488ce1cf19da705cc2e1352f4f35213","bugs":{"url":"https://github.com/antoniofregoso/cj-odoo/issues"},"_nodeVersion":"22.14.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-4B9lvQyfCaJ+CNYcVEfhOaIkuUlPt0CzGhXlrAnTPNklVX8VlRe4QEiXWMdbh1tHscmmOLOQst1juCho+PpSnA==","shasum":"ea0a28c7274ac6ced08d43eff8a8705f8a65f66f","tarball":"https://registry.npmjs.org/@customerjourney/cj-odoo/-/cj-odoo-0.6.2.tgz","fileCount":6,"unpackedSize":41108,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDbYI98Wz72XcrdcmuPs5rmLD9dIIVF+yJI+btcG/OXHQIhAPVpKSaxyDbNQtUE/bUru1O0I/RQjM1AfU+40z87Nu4b"}]},"_npmUser":{"name":"antoniofregoso","email":"antoniofregoso@protonmail.com"},"directories":{},"maintainers":[{"name":"antoniofregoso","email":"antoniofregoso@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cj-odoo_0.6.2_1758565646977_0.3825945781490385"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-10T04:13:56.006Z","modified":"2025-09-22T18:27:27.390Z","0.6.0":"2025-07-10T04:13:56.265Z","0.6.2":"2025-09-22T18:27:27.172Z"},"bugs":{"url":"https://github.com/antoniofregoso/cj-odoo/issues"},"author":{"name":"Antonio Fregoso","email":"antoniofregoso@protonmail.com"},"license":"GPL-3.0-or-later","homepage":"https://customerjourney.ninja/documentation/odoo/odoo-client/","keywords":["odoo","JSON-RPC"],"repository":{"type":"git","url":"git+https://github.com/antoniofregoso/cj-odoo.git"},"description":"json-rpc connection for odoo","maintainers":[{"name":"antoniofregoso","email":"antoniofregoso@protonmail.com"}],"readme":"# cj-odoo\njson-rpc connection for odoo\n## CustumerJourney.js\nThis library is part of the [CustumerJourney.js](https://customerjourney.ninja/) project. Vanilla JavaScript libraries optimized for creating sales funnels with hyper-personalized customer experience powered by artificial intelligence.\n## Methods\n1. odoo.login()\n2. odoo.count(object, ...args)\n3. odoo.create(object, ...args)\n4. odoo.search(object, ...args)\n5. odoo.searchRead(object, ...args)\n6. odoo.read(object, ...args)\n7. odoo.update(object, ...args)\n8. odoo.delete(object, ...args)\n\n## Installation\n```\nnpm i @customerjourney/cj-odoo\n```\n## Configuration\n```json\n{\n    \"odoo\":{\n        \"host\":\"https://url\",\n        \"db\":\"odooDB\",\n        \"port\":8069,\n        \"username\":\"user\",\n        \"password\":\"apiKey\",\n        \"endpoint\":\"/jsonrpc\"\n    }\n}\n```\n## Usage\n```javascript\nimport { OdooClient } from \"@buyerjourney/bj-odoo\";\nimport config from '/.env/conf.json' assert { type: 'json' };\n\nasync function createLead(props={}){\n    try {\n        let odoo = new OdooClient(config.odoo)\n        let uid = await odoo.login();\n        crmLead = {\n            name:props.subject,\n            contact_name:props.name,\n            function: props.function,\n            partner_name:props.company,\n            email_from:props.email,\n            phone:props.phone,\n            description:props.description\n         }\n        let lead = await odoo.create('crm.lead',crmLead);\n    }catch (error){\n        console.error('Error:', error);\n    }\n}\n```\n\n## Documentation \n- [CustomerJourneyJS project](https://customerjourney.ninja/).\n- [cj-odoo](https://customerjourney.ninja/documentation/odoo/odoo-client/).\n- [Get started](customerjourney.ninja/getting-started/).\n## License\nbj-odoo is [GPL-3.0-or-later](./LICENSE).\n## Sponsor\n[Become a CustumerJourney.js Sponsor](https://customerjourney.ninja/sponsor/).\n","readmeFilename":"README.md"}