{"_id":"@dmn-arc-core-components/content-source_story-feed_sections-v4","_rev":"3-ae09d807024072363ec064bf6284e628","name":"@dmn-arc-core-components/content-source_story-feed_sections-v4","dist-tags":{"latest":"1.0.0-alpha"},"versions":{"1.0.0-alpha":{"name":"@dmn-arc-core-components/content-source_story-feed_sections-v4","version":"1.0.0-alpha","description":"Returns a feed of stories from one or more sections. Offers ability to exclude sections.","main":"build/index.js","repository":{"type":"git","url":"https://github.com/dallasnews/dmn-arc-core-components/packages/content-source_story-feed_sections-v4"},"author":{"name":"Matt Nelson"},"license":"ISC","publishConfig":{"access":"public"},"dependencies":{"@babel/runtime":"^7.4.3"},"_id":"@dmn-arc-core-components/content-source_story-feed_sections-v4@1.0.0-alpha","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-en47KSLOlpUaAbo4p7qdJ2wdFfxTVDj1c3Wq28eq9WuivhJBK1vPCVrtlDAygRabLAvYt0t8A5BN4qAmVrxYTA==","shasum":"587c36f778cd77a2354df57750c39e8242ad061c","tarball":"https://registry.npmjs.org/@dmn-arc-core-components/content-source_story-feed_sections-v4/-/content-source_story-feed_sections-v4-1.0.0-alpha.tgz","fileCount":5,"unpackedSize":18744,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzw5wCRA9TVsSAnZWagAAvEEP/2Zv48EK88QT3zmPFHAq\n2lpJBeyy/r7P5Yne0OVfj0DSE7Hh0q3mgmKDEHduORmT4AGYBk6v++dctPah\nsuiINu54gg81Zfw/rqpeyhmmYkbKiAsByHZMIwX5wD/0GiCvaNZtKJXRjKUd\nryE7Qb5EFYgyZ14cAH9y0lIS14sd896XUXXMFuWQNJR/ThSjZVjPZIYjv/jA\nSdIh9OE9JwYWhE1aDQEAus8gpfkPp3AWdiAPOjIheDks4ORH5BtI5dKJrW4I\nNkBGUyo0Ovm3RcHDcjxf2Xptd0T4tyg/u7lhbk2033b5A5UJ1SMbst4w6VVt\n2PO6/izlHQCXWSMmysF8P9L9eHt0EydCRO2Kjg64iHdUiujlqjnl23af/m/t\n77P8DHoMehNpmZZTjYYRX+qFPeEuP5rsQyaHEJqOU+x1seHHD4x6PLRbrij6\nKea5r/xs++pybYZ99waLwPo6CV6rSlHJT2/yfzIeSSX6U5TpJ5AD73rBvIzo\nXVa1gW8sjLllHLNUfMBH05m2CKcXhuxXi2WAYGrR2RaEQuoJX4rSulDlw+CA\nuhM1SqI125J9xMKNoWcF2BiR0F+LSRA6cfOShNkmEkPuNOFnfTzDQiU1sHiv\nxkJpj/CK9I5TBovYNWGeN0rNCjPxzBdFp2UQrEM5tcsDS+tLwc+/pMKYG4NL\nW2+Z\r\n=LXbV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVZW44fnY2CaDAlMOfbZvYUGrO21Rrp8SHSNG2U88Z2QIgHS0w5Y6zcUsYIHIaWJhDmdZ5SCGYUjWmzkj7HqjOs4w="}]},"_npmUser":{"name":"jfoxworth","email":"jfoxworth@cadwolf.com"},"directories":{},"maintainers":[{"name":"jfoxworth","email":"jfoxworth@cadwolf.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-source_story-feed_sections-v4_1.0.0-alpha_1636076718206_0.2257231602030172"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-05T01:45:18.163Z","1.0.0-alpha":"2021-11-05T01:45:18.373Z","modified":"2022-04-05T05:00:14.530Z"},"maintainers":[{"email":"mike.dilley@gmail.com","name":"mddilley"},{"email":"jfoxworth@cadwolf.com","name":"jfoxworth"}],"description":"Returns a feed of stories from one or more sections. Offers ability to exclude sections.","repository":{"type":"git","url":"https://github.com/dallasnews/dmn-arc-core-components/packages/content-source_story-feed_sections-v4"},"author":{"name":"Matt Nelson"},"license":"ISC","readme":"# Content Source: Story Feed, Sections v4 endpoint\n\nThis is the Arc Core Component representing a content source that hooks into the\nContent API portion of the Arc Suite and returns a feed of stories from one or\nmultiple sections.\n\nThe most important part is the pattern. This defines the endpoint that\nPageBuilder Fusion uses to look up content.\n\nThis Core Component takes advantage of PageBuilder Fusion's ability to use\nCONTENT_BASE to define the credentials for a Content API, ensuring that no\nprivate secrets are exposed.\n\n## Pattern:\n\n`/content/v4/search/published?body=${encodedBody}&website=${website}&size=${feedSize}&from=${feedOffset}&sort=display_date:desc`\n\n## Parameters:\n\nThis content source takes four parameters:\n\n- includeSections - the sections you want to be included within your feed. Enter\n  this as a comma-separated list of the Site Service IDs. Quotes are optional.\n  - Example: `\"/news\",\"/politics\"` will return a feed from the news and politics\n    sections.\n- excludeSections - the sections you want to be excluded from your feed. If a\n  story is tagged with multiple sections, the stories with these sections will\n  not appear.\n  - Example: `\"/entertainment/movies\"` would ensure that stories with the\n    section `\"/entertainment/movies\"` are not returned in the feed.\n- feedSize - the number of stories you would like returned in the feed\n- feedOffset - the number of stories you want to be offset from the start of the\n  feed\n\n## Getting started\n\nThis Core Component must be used within a Fusion project.\n\n1. Add this schema as a dependency of the repo.\n   `npm install @dmn-arc-core-components/content-source_story-feed_sections-v4`\n1. Create a file of your desired content source name within the\n   `/content/sources` folder. For this content source, the suggested name is\n   `story-feed-sections-v4.js`\n1. This is the name you should use when referencing this content source in any\n   content config within a custom field.\n1. Paste the following into `story-feed-sections-v4.js`:\n\n```javascript\nimport source from \"@arc-core-components/content-source_story-feed_sections-v4\";\n\nexport default source;\n```\n\n## What does this content source return?\n\nThis will return a feed of stories in one or multiple sections.\n\n## Using this content source with a schema\n\nThis content source can be used with the `ans-feed` schema. This schema is\n[defined as a Core Component here.](https://github.com/wapopartners/content-schema_ans-feed-v0.6.2)\n","readmeFilename":"README.md"}