{"_id":"@dmn-arc-core-components/content-source_story-feed_author-v4","_rev":"3-17f925083feaa69f47273955c29e1275","name":"@dmn-arc-core-components/content-source_story-feed_author-v4","dist-tags":{"latest":"1.0.0-alpha"},"versions":{"1.0.0-alpha":{"name":"@dmn-arc-core-components/content-source_story-feed_author-v4","version":"1.0.0-alpha","description":"Content source that returns a feed of stories by a particular author.","main":"build/index.js","repository":{"type":"git","url":"https://github.com/dallasnews/dmn-arc-core-components/packages/content-source_story-feed_author-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_author-v4@1.0.0-alpha","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-ejresDK2e/T0zyQnWA2g5ooed/G5Uyv2ygV1pH7uB12+gNihzL3sRK0WMIeQy1AeOROvamcTKhKvS15GNHZ27g==","shasum":"12d8ba5c9b212d7e717f6ab7382c781182fce5e7","tarball":"https://registry.npmjs.org/@dmn-arc-core-components/content-source_story-feed_author-v4/-/content-source_story-feed_author-v4-1.0.0-alpha.tgz","fileCount":5,"unpackedSize":7818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzw50CRA9TVsSAnZWagAA0CkP/jUkTh2IBtVUeieu0xeW\nvN32evQEeRYC3Dsx1jwsN7YhbBLXeFmHpo+dTfCPWeBMyzb6xnDbuX+0ORV7\nHVts3DW3RqRbaMqKc+2/EsutZkaVv8neBI1SEONNtxyZ8CHt77L/zy0ftjPT\n4ZofORc+hLGQJhi4kj8kYm4ucQT/bUOKs8OAxvb/ctFxvFGY66HGKBBs4ala\ntvVqJVpxz32gsvDnXiA19Powj6hadBe2JTh4Ae2cHT5MG95p2ZgwP3CEPF/G\nM4xaX80XqfW1bs7ECKPlil+KHvprUfBJc9o4cFoFmm9XjSwfbPe+jrZ6azFf\n9MLNVZXfokHqqJUTgMfOxyxC9JLq6JEBnO32a48jL3JFpmnhPPwSHDpQ2ZOb\niWSewN+1mb1QV/mnge51NNMFO3M/Wim7KoTMV5O3OVtYpqFFEDpAQPhii+bM\nTJylSf89VRjOfQ7qCPz8myCPOagjl119lERor0MGstslEl3eHbBUGbkuZYRK\n5NdiKTeLq9epFz6xBU5HgZrGaNxGSgGz6UCLdFSRxuu+KtR4FYxfNBaGMhRM\n4AW5wdW4o7lL8Z/vYBkjs/IxTPeYz6rCM71hCxBPVn5y+EX9yp0iyvgeA0zo\n3juL8nCr0kZua4uc3vNzW9lW9HcxcgDGPAK0cUeEbKsdPs2mvQWoW8j0HJya\nSPyC\r\n=uR3y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7E00EnYngJTH67Ezdi9YjjZJGXzkrqY4uMo8vc4jqBgIhAMSneMQ+d5QFghc59Ui4QZmVaIW8TG2NWyAPl8bjRABU"}]},"_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_author-v4_1.0.0-alpha_1636076696541_0.9986162078599476"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-05T01:44:56.489Z","1.0.0-alpha":"2021-11-05T01:44:56.691Z","modified":"2022-04-05T05:00:14.387Z"},"maintainers":[{"email":"mike.dilley@gmail.com","name":"mddilley"},{"email":"jfoxworth@cadwolf.com","name":"jfoxworth"}],"description":"Content source that returns a feed of stories by a particular author.","repository":{"type":"git","url":"https://github.com/dallasnews/dmn-arc-core-components/packages/content-source_story-feed_author-v4"},"author":{"name":"Matt Nelson"},"license":"ISC","readme":"# Content Source: Story Feed, Authors v4 endpoint\n\nThis 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 by a\nparticular author.\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?q=canonical_website:${website}+AND+credits.by.slug:${authorSlug}&size=${feedSize}&from=${feedOffset}&sort=display_date:desc&website=${website}`\n\n## Parameters:\n\nThis content source takes three parameters:\n\n- authorSlug - the slug of the author, specified in Author Service\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_author-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-author-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-author.js`:\n\n```javascript\nimport source from \"@arc-core-components/content-source_story-feed_author-v4\";\n\nexport default source;\n```\n\n## What does this content source return?\n\nThis will return feed of stories by a single author.\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"}