{"_id":"@amplience/sap-product-browser","_rev":"13-1371fa1f5789be0e4156f2ab27e5026a","name":"@amplience/sap-product-browser","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@amplience/sap-product-browser","version":"1.0.0","license":"MIT","_id":"@amplience/sap-product-browser@1.0.0","maintainers":[{"name":"gbrown-amp","email":"gbrown@amplience.com"},{"name":"liliiamykhailova","email":"lmykhailova@amplience.com"},{"name":"ccorbett","email":"ccorbett@amplience.com"},{"name":"easen-amp","email":"measen@amplience.com"},{"name":"petercoulton-human","email":"petercoulton@gmail.com"},{"name":"amplience-admin","email":"operations@amplience.com"}],"dist":{"shasum":"7a6702efb4d0caf875897a5d37d03ef736c4df0d","tarball":"https://registry.npmjs.org/@amplience/sap-product-browser/-/sap-product-browser-1.0.0.tgz","fileCount":19,"integrity":"sha512-2JENN0kBBqpVrxrd+RsEjL2QdHtnOL8BuLeq1aPfb12nrRi1CqNXF4EjBqQaQRzc1vRkaB0acqQcRDDLjPJ0+w==","signatures":[{"sig":"MEUCIF80QwFH2/jWAotY5DSwHjAc2vSt24gdtqUiNwfj3moRAiEAwHL9xnDePMV9nYvumt+6vGU5K+t6ShAp4ze2bcXilOg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1444840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOuBLCRA9TVsSAnZWagAAmsoP/0vnIhyFlSCWOO4EcAGH\nOgtHPAgRKCFNZqVMiDis5svPQL+PKAKEuD33PIyvP184bA4c/r45lTPgCLzy\nuklC5zZC7BKc9RMFkC43NDlHcDSMsaFWV4E8C4yyGrs0sAfnRKL0a+J/NBrb\nF8l+gnkIHeU88m0Ecx0zv/DB9mOcdxdS7984JR6dofzudl3U5JYLXmg5QI0W\nV3ljC0X3rety7uGBY39VykAkzVAnoh051isG/xQM3lq0E1YzhD5/7lUIe3nJ\nCN/j15mVvLZhM9miLx5TZfQ0qvmLRGYb7MwKOPgYG97Ogu0lqs+09cI0FlG9\nczruJ1EuwePhjS4COGD/Lnsr4k6y/Z3w4PEfqb1NfbT6xHkelDnf0pf8/B+v\nidKjwDY5220znasKoi1YFo40C9gNgyZY0LLF4F3KUMdGhNMsngANbF9b6rDO\nY340V8QpKkj1QA0ERJPe8UGbkk0ccvqOUAY9tqjmL7VRR39PI0H+FY0Hm/fq\nlJuOGbxnOI7n8GwMTWqQJgXi1cefRYKsfh/3NFuy3dqA/i19SgXWlgtgKtk4\nd4uhYXQX4iz/mR0CAbUqWBr21d0tlnxfV03GelCuBK9X3U87cijxc8gb8zXr\npSDQVCE6QTcCxmabzs243lwV+GWNgiHYgQSIL+EnfJ+cydOzhUIe1GYl0w7x\n9gHb\r\n=URZi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.main.js","module":"dist/index.module.js","browser":"dist/index.js","engines":{"npm":">=6.8.0","node":"=10.15.1"},"gitHead":"81672e1da5bd1bceabadca70fd56e40af3798a8e","scripts":{"test":"npm run test:build && npm run test:only","build":"npx rollup -c","start":"npx rollup -c --watch","prepare":"npm run build","test:only":"ts-mocha test/**/*.spec.ts","test:build":"tslint --config tslint.json --project tsconfig.json && tsc"},"typings":"dist/index.d.ts","_npmUser":{"name":"ccorbett","email":"ccorbett@amplience.com"},"_npmVersion":"6.4.1","description":"[![Amplience Dynamic Content](header.png)](https://amplience.com/dynamic-content)","directories":{},"_nodeVersion":"10.15.3","dependencies":{"nock":"^10.0.6","tslint":"^5.13.0","proxyquire":"^2.1.3","tslint-immutable":"^5.3.0","dc-extensions-sdk":"^1.0.1","tslint-eslint-rules":"^5.4.0","tslint-config-prettier":"^1.18.0","tslint-microsoft-contrib":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^7.0.0","tslib":"^1.10.0","rollup":"^1.27.8","ts-node":"^8.6.2","ts-mocha":"^6.0.0","node-fetch":"^2.6.0","typescript":"^3.5.1","@types/chai":"^4.2.7","@types/nock":"^9.3.1","@types/node":"^10.11.0","@types/mocha":"^5.2.7","@types/expect":"^24.3.0","chai-as-promised":"^7.1.1","@babel/preset-env":"^7.8.3","rollup-plugin-commonjs":"^10.1.0","@types/chai-as-promised":"^7.1.0","rollup-plugin-typescript2":"^0.25.3","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sap-product-browser_1.0.0_1580916810731_0.10068304848230092","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-02-05T15:33:30.508Z","modified":"2025-06-16T11:31:17.774Z","1.0.0":"2020-02-05T15:33:30.959Z"},"license":"MIT","description":"[![Amplience Dynamic Content](header.png)](https://amplience.com/dynamic-content)","maintainers":[{"email":"operations@amplience.com","name":"amplience-admin"},{"email":"petercoulton@gmail.com","name":"petercoulton-human"},{"email":"measen@amplience.com","name":"easen-amp"},{"email":"ccorbett@amplience.com","name":"ccorbett"},{"email":"gbrown@amplience.com","name":"gbrown-amp"},{"email":"nsmith@amplience.com","name":"nsmith-amp"},{"email":"opssupport@amplience.com","name":"amp-automation"},{"email":"sweeks@amplience.com","name":"srweeks"},{"email":"npm@dmlee.me","name":"techiedarren"},{"email":"rsimpson@amplience.com","name":"rs-amp"},{"email":"amp-adm-srv-npm@amplience.com","name":"amp-adm-srv-npm"},{"email":"gnewsome@amplience.com","name":"gnewso"},{"email":"lkcheung@amplience.com","name":"labski42"}],"readme":"[![Amplience Dynamic Content](header.png)](https://amplience.com/dynamic-content)\n\n# SAP product browser lib \n\n[![Build Status](https://travis-ci.org/amplience/sap-product-browser.svg?branch=master)](https://travis-ci.org/amplience/sap-product-browser)\n\nThis project is a small client library for communicating with SAP commerce cloud(C4Hana) Hybris. \n\n## Building\n\nBuild locally:\n```\n$ npm install\n$ npm run-script build\n```\n\n## Usage\nThis lib contains a client ``product-service`` with the following functions to retrieve products from hybris:\n* ``search``: this requires a ``catalogue`` and a ``query`` to retrieve a paginated list of products.\n* ``getByCode``: this uses a ``catalogue`` and a product ``code`` to retrieve a single product.\nBoth functions use the  ``defaultImageOptions`` to find a default image url and attach to the product this will be defaulted to ``defaultNotFoundImage`` if none are found.\n \n### Constructor params\n* ``host``: URL of deployed Hybris instance.\n* ``basPath``: path to Hybris API.\n* ``defaultNotFoundImage``: URL to default image if no image available from product.\n* ``authTokenSupplier``: Function to return auth token (can be null if no auth needed).\n* ``defaultImageOptions``:\n  * ``format``: defaulted to 'thumbnail'.\n  * ``type``: defaulted to 'PRIMARY'.\n  \n","readmeFilename":"readme.md"}