{"_id":"@commercelayer/contentful-algolia-adapter","_rev":"9-463465128f1c0f972cdaef9c9fd12e26","name":"@commercelayer/contentful-algolia-adapter","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.2":{"version":"0.0.2","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","version:patch":"npm version patch","version:minor":"npm version minor","version:major":"npm version major","publish:patch":"npm run build && npm run version:patch && git push --follow-tags && npm publish --access public","publish:minor":"npm run build && npm run version:minor && git push --follow-tags && npm publish --access public","publish:major":"npm run build && npm run version:major && git push --follow-tags && npm publish --access public"},"peerDependencies":{},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":false,"singleQuote":true,"trailingComma":"es5"},"name":"@commercelayer/contentful-algolia-adapter","author":{"name":"Alessandro Casazza"},"module":"dist/contentful-algolia-adapter.esm.js","devDependencies":{"husky":"^4.2.5","tsdx":"^0.13.2","tslib":"^2.0.1","typescript":"^3.9.7"},"dependencies":{"@types/lodash":"^4.14.159","contentful":"^7.14.6","lodash":"^4.17.19"},"gitHead":"eebc269589c1518a85d7c6483329c3e26ad056a4","description":"A Javascript Library that exports your data from Contentful CMS and prepares it for the import through our [Commerce Layer Algolia Importer.](https://github.com/commercelayer/commercelayer-algolia-importer)","_id":"@commercelayer/contentful-algolia-adapter@0.0.2","_nodeVersion":"14.9.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-/BnGwthjgrtEC0KisU7mBA3zn++1wArO6NWcUzcZBbHBt7i7XiL1dL7A+R1bkGOl9JN2nv8nSA6WOJV7WK2vqA==","shasum":"482420169a4b267a14fdd4bb7098cc37372dd02c","tarball":"https://registry.npmjs.org/@commercelayer/contentful-algolia-adapter/-/contentful-algolia-adapter-0.0.2.tgz","fileCount":13,"unpackedSize":34777,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT6wcCRA9TVsSAnZWagAAPnUP/Ay/GFIIcTGuci0JJszZ\no9bby1smgVLAoROPVfAk4j57oM6RHh/+i4f72AgnarlglRtLy25E8/NFc2Ut\nZe66bdOyGoqqohvbH7gBgU0IG7Rde29IPjQNVwmKU2dDUV8yGBCn8hv7Bk7h\n7mTggKJLnGJ8gPs5O6gm4PYddxjFQ9iwHHx5bsT2zY6b1/gw4SwJCSucIE0O\njyJnEoJAIlx0sZ/9kquMO+IkiwP6waV7Ci7siIHEgtrQEanb/c3+5cMxcs2i\nZRnydXDxmzHX6jRoq9h+ROD7+FijLhd6AO4Zt2zsvUTz97VUnc64TjeYKVHB\nbMYVu3b8mTCGZ7b5lvx1XnvKrmV/Zgf1lutyzmuvsk0/SKkKSDVjfluwojM1\nxVSmyJeyl+iruDQeGn2YvzV0hLk8f+GRPV1XFv+fPxdBzE1szxWDJlekdpoF\nCtV2FSI6cJ9Woz3qYFMzUAOyrXZsmTyQQZKkugSJerG9tY3NO+gyWeSD2SUO\nYohilO61eAhsdHtONCjFuSfI8y2k+3Jt2hNzbeZotxFWGhHqp3wC7ib0QsDN\nSmkuEDYGVbkZARfxHfpJmR0YATPBVMcwxWzo2IgxnXaaP3+lzEPccaTiF31M\nuugiG7Do8vX8dmSGFEiboSvKs0QFxxjudJqsnBLidYier/Vmu3NJTFD5+XfG\nZb57\r\n=KGKt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHII4J01yzJtD6lXNzmy2sYZfmv6khYQP1MqgPyfvsYAiA+kbU5xNB1RzVKKEqBHZM6DiLVpafk63bDqCzFIQ0akQ=="}]},"maintainers":[{"name":"acasazza","email":"alessandro@commercelayer.io"},{"name":"drpierlu","email":"pierluigi@commercelayer.io"},{"name":"fconforti","email":"filippo@commercelayer.io"}],"_npmUser":{"name":"acasazza","email":"alessandro@commercelayer.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/contentful-algolia-adapter_0.0.2_1599056923736_0.7629106669698777"},"_hasShrinkwrap":false},"0.0.3":{"version":"0.0.3","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","test:coverage":"tsdx test --coverage","lint":"tsdx lint","prepare":"tsdx build","version:patch":"npm version patch","version:minor":"npm version minor","version:major":"npm version major","publish:patch":"npm run build && npm run version:patch && git push --follow-tags && npm publish --access public","publish:minor":"npm run build && npm run version:minor && git push --follow-tags && npm publish --access public","publish:major":"npm run build && npm run version:major && git push --follow-tags && npm publish --access public"},"peerDependencies":{},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":false,"singleQuote":true,"trailingComma":"es5"},"name":"@commercelayer/contentful-algolia-adapter","author":{"name":"Alessandro Casazza"},"module":"dist/contentful-algolia-adapter.esm.js","devDependencies":{"husky":"^4.3.0","tsdx":"^0.14.1","tslib":"^2.0.3","typescript":"^4.1.2"},"dependencies":{"@types/lodash":"^4.14.165","contentful":"^7.14.14","lodash":"^4.17.20"},"gitHead":"0deb3770513f8a072bfa95416a1f7086b45a4f0f","description":"> A Node JS library that lets you export your ecommerce catalog from Contentuful and makes it ready to be imported into Algolia.","_id":"@commercelayer/contentful-algolia-adapter@0.0.3","_nodeVersion":"15.2.1","_npmVersion":"7.0.10","dist":{"integrity":"sha512-ecmAOvHuy7NN3+K72vtEkoCYPdRH7hiLNFgiExYQy+95PWLJp2ZlT6cZjbbDKi6pCXvTXFezkaDybjsUPzcKVw==","shasum":"6a13fbf00ce45df385072a1e847f67f40e987347","tarball":"https://registry.npmjs.org/@commercelayer/contentful-algolia-adapter/-/contentful-algolia-adapter-0.0.3.tgz","fileCount":13,"unpackedSize":224100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvjqUCRA9TVsSAnZWagAAH5gP/2T04vIfL3aUQfK5El73\nxKGBGham+lUj3EqB4MpbAKYsTzovDs2Z+tD5zpPvxoUey3tzEUeVK6400v5j\nMBaLZIGiSb1PyIbBwmqDUq3BJab7eP3tNTzs2zy33zFnqzmBrZlfipeHzsdV\nsDYfnGGhmgZXZh68xJ2p1nuU+5UvFW14yIvk0fGJKNg6DZvRT2vB7roiq/xg\nSvXBbGUuv5Yev5/gpzUzBPs6olNHs5WwF1dGLcz73cTVjnru3jmlEyUAbF8Z\nSnyMuRPz07JIgGK8infEk7c0Yl4Z70HtWD+NwEI9t1HSo1nv05qfzkpasWAN\njyAmWLBsKZYLWvZ2iCVopaNM+SA0qlhTRkv4bFbc9W7EwnumxZknmdvn7pQu\nKuU8TSlBiv+9DPcQAMhKJ/F1FieB79jzsd63udm/RUehiz4f9wBeq8ZEj80+\nHqFcp2OwDo4wgEFCHBdL/PDvxQM/+jgsFGvE0HrWU1SKdLteRHlGKuV6wGKk\nbUgO38JxlRVuKsIvkOz6nnBEKqf1gRzXFBs08/0b/lccYO4XgN6YaFgbHfaJ\nhAaoqANNHGScmocF6WtLopXzKPxEno4JosNFvBqKbh/jKM1oks/C/XnqynMY\nZBGhGUmBRP6tD3F5RM7QV7TEMCSOBuI/2O1lHw09kt1gAPnzHToBkILOTAR5\n25Tx\r\n=bXWn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHfv6GemXwi++EbIkRVQFuNdIgsDUL8IXTudshaYUZ+QAiEA9+dMq+8BE1kFmLzlVU9LkOdC1BSm0oifVRqKk6kPYds="}]},"_npmUser":{"name":"acasazza","email":"alessandro@commercelayer.io"},"directories":{},"maintainers":[{"name":"acasazza","email":"alessandro@commercelayer.io"},{"name":"drpierlu","email":"pierluigi@commercelayer.io"},{"name":"fconforti","email":"filippo@commercelayer.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/contentful-algolia-adapter_0.0.3_1606302355564_0.037705506245027776"},"_hasShrinkwrap":false},"0.0.4":{"version":"0.0.4","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","test:coverage":"tsdx test --coverage","lint":"tsdx lint","prepare":"tsdx build","version:patch":"npm version patch","version:minor":"npm version minor","version:major":"npm version major","publish:patch":"npm run build && npm run version:patch && git push --follow-tags && npm publish --access public","publish:minor":"npm run build && npm run version:minor && git push --follow-tags && npm publish --access public","publish:major":"npm run build && npm run version:major && git push --follow-tags && npm publish --access public"},"peerDependencies":{},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":false,"singleQuote":true,"trailingComma":"es5"},"name":"@commercelayer/contentful-algolia-adapter","author":{"name":"Alessandro Casazza"},"module":"dist/contentful-algolia-adapter.esm.js","devDependencies":{"husky":"^4.3.0","tsdx":"^0.14.1","tslib":"^2.0.3","typescript":"^4.1.2"},"dependencies":{"@types/lodash":"^4.14.165","contentful":"^7.14.14","lodash":"^4.17.20"},"gitHead":"233b99079896c4c60480a7fbac70f5a7f419550b","description":"> A Node JS library that lets you export your ecommerce catalog from Contentuful and makes it ready to be imported into Algolia.","_id":"@commercelayer/contentful-algolia-adapter@0.0.4","_nodeVersion":"15.2.1","_npmVersion":"7.0.10","dist":{"integrity":"sha512-Cq1F65pVljc6NGRK4VrVOGGnHnE92+Y93e3NA6wS31KLdxWtacKenSfcOwVzR22Lfzo3HBwCC4rKo3fte/+sjQ==","shasum":"ac53ded6fa52075defb72c0da7b64174cdbb7330","tarball":"https://registry.npmjs.org/@commercelayer/contentful-algolia-adapter/-/contentful-algolia-adapter-0.0.4.tgz","fileCount":13,"unpackedSize":225057,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvnsICRA9TVsSAnZWagAAeJAP/iy5Uihz97B6qHrkIJAr\n2NhKNw51WVjTn71aWD8Kq1pg8UT0sAqU19j+qDDsKYZ7XWtt54WorzGTnVOj\nUw1QsnS3UhBZb0iKY0nEfTsXtJNom/UTmxOyjXGhgUWUzDXLbTp9960geDAA\nkfRNgllBNF40cFax7h8OKQnuxugrI7lEd8Qm/LYlJ2LZzQGGTiNEKYKWDIAL\nRWKeKU5byXCkkXeuS3i9UbrcasNyxGiEpY6AazG9uIrGvBQtettPhgP6Ze8A\nBEeMHIx3OY88QfYT4nXfGBgHMPu0ty4dHc2K4TyKdi3wtpwQoQcRIDb3gmyE\nXCj42Eq+NOv6zqHhzAWsbLC7UsQAE7+VUP5pZ6DUGXQiHbq1tqUga+iN+Ocs\nMn8scHVdsLSf04LfXHv+LMj7jO1ZdadxgXSQHv3AVm3KK4a+cCGsqrQvQ5my\nLcpI5bzd0hDDfE6JwPwnpdUvYspcNzthVD1uZRtyyDduhdIUqcS3JGiXnHgQ\n76oRlIAo8J1pwouorEqLw9RW3ygv+KE0hAyfl1RijCLXPIQN4g+TzE66gudc\nVU5f1uoniTjA86B2fKvncFZONVXC+VJfbSAtZ7lYeEZN+RBDAodo8JPhHLAg\njRw8kHekUKZsq6qK1df+q/mwngEwOC3rbZt+4dnBUjUASoXlbmMK9Huncmxl\ncY5x\r\n=mHUf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIESESkTpXM51tiYtvzrQDWLsANb002IuqMn41vm//pq5AiEAvsNqJ6tVvSoBuErWxCWKbcBl/VPhZFaJXWb/KxcKsaw="}]},"_npmUser":{"name":"acasazza","email":"alessandro@commercelayer.io"},"directories":{},"maintainers":[{"name":"acasazza","email":"alessandro@commercelayer.io"},{"name":"drpierlu","email":"pierluigi@commercelayer.io"},{"name":"fconforti","email":"filippo@commercelayer.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/contentful-algolia-adapter_0.0.4_1606318856072_0.8919284372841532"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-02T14:28:43.501Z","0.0.2":"2020-09-02T14:28:43.902Z","modified":"2022-12-20T14:32:15.839Z","0.0.3":"2020-11-25T11:05:55.753Z","0.0.4":"2020-11-25T15:40:56.209Z"},"maintainers":[{"email":"subscriptions@commercelayer.io","name":"commercelayer.io"},{"email":"pierluigi@commercelayer.io","name":"drpierlu"}],"description":"> A Node JS library that lets you export your ecommerce catalog from Contentuful and makes it ready to be imported into Algolia.","author":{"name":"Alessandro Casazza"},"license":"MIT","readme":"# Contentful Algolia Adapter\n\n> A Node JS library that lets you export your ecommerce catalog from Contentuful and makes it ready to be imported into Algolia.\n\n### What is Commerce Layer?\n\n[Commerce Layer](https://commercelayer.io/) is a headless platform that lets you easily build enterprise-grade ecommerce into any website, by using the language, CMS, and tools you already master and love.\n\n### Table of contents\n\n- [How it works](#how-it-works)\n- [Getting started](#getting-started)\n  - [Installation](#installation)\n  - [Import](#import)\n- [Usage](#usage)\n  - [The adapter function](#the-adapter-function)\n  - [The returned array](#the-returned-array)\n\n## How it works\n\nThis adapter assumes that you've already imported a [set of products](https://data.commercelayer.app/seed/skus.json), based on a [specific content model](https://data.commercelayer.app/seed/contentful/content-model.json) — both brought to you by Commerce Layer — into your Contentful space. Please find below the correct workflow, with all the preliminary steps included:\n\n1. import the content model into Contentful using our [dedicated content model importer](https://github.com/commercelayer/contentful-content-model-importer)\n2. populate the content model with some data (feel free to use our [Contentful Seeder](https://github.com/commercelayer/contentful-seeder))\n3. add at least one catalog and one country to the content model in Contentful\n4. run this adapter\n5. import your catalog into Algolia by using our [importer](https://github.com/commercelayer/commercelayer-algolia-importer).\n\n> This adapter is built for Node.js and doesn't run in the browser.\n\n## Getting Started\n\nTo be ready to use the Contentful Algolia Adapter, you need to install it and then get the credentials that will allow you to manage your space in Contentful.\n\n### Installation\n\nContentful Algolia Adapter is available as an [npm package](https://www.npmjs.com/package/@commercelayer/contentful-algolia-adapter):\n\n```\n// npm\nnpm install @commercelayer/contentful-algolia-adapter\n\n// yarn\nyarn add @commercelayer/contentful-algolia-adapter\n```\n\n### Import\n\nYou can use the ES6 default import as follows:\n\n```\nimport adapter from '@commercelayer/contentful-algolia-adapter'\n```\n\n## Usage\n\n### The adapter function\n\nThe `adapter` function returns a promise and you need to pass to it as a parameter an object containing:\n\n- `accessToken: string` - your Contentful content delivery token\n- `spaceId: string` - your Contentful space ID (required)\n\n```\nadapter({\n  accessToken: 'your-content-delivery-token',\n  spaceId: 'your-space-id',\n}).then((result) => {\n  console.log(result)\n})\n```\n\n### The returned array\n\nThe promise returned by the `adapter` function is an array of objects, ready to be set as the `items` parameter of our [Algolia importer](https://github.com/commercelayer/commercelayer-algolia-importer#the-items-array).\n\n## License\n\nThis repository is published under the [MIT](LICENSE) license.\n","readmeFilename":"README.md"}