{"_id":"@dmn-arc-core-components/content-source_site-service-v3","_rev":"3-b447adea198338a31bf3128e8916df5c","name":"@dmn-arc-core-components/content-source_site-service-v3","dist-tags":{"latest":"1.0.0-alpha"},"versions":{"1.0.0-alpha":{"name":"@dmn-arc-core-components/content-source_site-service-v3","version":"1.0.0-alpha","description":"Content source that hooks into the Site Service portion of the Arc Suite.","homepage":"https://github.com/dallasnews/dmn-arc-core-components#readme","license":"ISC","main":"build/index.js","repository":{"type":"git","url":"git+https://github.com/dallasnews/dmn-arc-core-components.git"},"dependencies":{"@babel/runtime":"^7.4.3"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/dallasnews/dmn-arc-core-components/issues"},"_id":"@dmn-arc-core-components/content-source_site-service-v3@1.0.0-alpha","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-t/rpKJ0+HWA/Q2weAZnar6TLLP8DeolVMFROE12a1fTPToZs9SPyvP+uofotst7ik+pLd24V8DCQ5RiX/4gNPg==","shasum":"2d3bd330a717482bd5b5f1b822c40a216878f458","tarball":"https://registry.npmjs.org/@dmn-arc-core-components/content-source_site-service-v3/-/content-source_site-service-v3-1.0.0-alpha.tgz","fileCount":6,"unpackedSize":7494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzw5zCRA9TVsSAnZWagAAVMMQAIzh1M9fXAAyQyWAkqWK\nXbCuLg7iV5XvRCgkB5S4fYCSaKlqcKCPWnGwe486aBaVQKhpK6HN5GRwo7sz\n2FQiD1kxGMUmfjONxFwQx+N3FB+pRTwoY/MdpmidywGHVL3VUKpQQJbRGVtv\nwEsdwjO/bltwY/brXSDeYrTSQHr641WA4HLiD1yHGkjFJy43KkBnTew4se5N\n1gP9PfeKgiU4L01EhNUabV4hicavTnLa/byS3pnXWT6oZPoqbnVNDpLTfhzS\n12Ey8a6Icf2b0+XiiQp9ALXLVYe+oCzyrHNuusEd38nnegWl1DOh3rK9uDZz\nBl8u63itNddJ8kC0CUPTuCpY1EoIb6Pr3yDNvVztlsMERMREz9sawa3k/d7s\npf8GfXJJUZHZx4ikXVkHB25MyvdNbdNqMztJ/L9gqiTb0y4POuVQoiSVb9o6\nUzSvfoRUdRGEOPGPCpWEARnsNm0wafSpM3DBenHctfzWXVt6UUFEtdtDqqI3\nUxXvDCIf6DNDg+MxH7FRT0olpEFQ3JOjJ7oe0CrT7VUKlxnUptZlVCcAtrYG\neGUR2yCpZ/CP9CyzMQuLad1gfghyzWlNqPsCQWRPoYrWoqqVemacKqQ/OWv1\nvP/kXOJTWGFVgs4Hf8sTrWMICmyVRrNQ7SCdnw5uy9DHGqV5dcyg1sgHYEg5\nP7z5\r\n=1aVH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELNHEUfCg2PXvu+aDW4WhngrfheIUZhTEXaSDIqUlWQAiEAyp9y0mFs07vHRLO39c9AXHH+RLimMRVSKIXU47RmWuw="}]},"_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_site-service-v3_1.0.0-alpha_1636121645926_0.2057745356457752"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-05T14:14:05.806Z","1.0.0-alpha":"2021-11-05T14:14:06.076Z","modified":"2022-04-05T05:00:14.214Z"},"maintainers":[{"email":"mike.dilley@gmail.com","name":"mddilley"},{"email":"jfoxworth@cadwolf.com","name":"jfoxworth"}],"description":"Content source that hooks into the Site Service portion of the Arc Suite.","homepage":"https://github.com/dallasnews/dmn-arc-core-components#readme","repository":{"type":"git","url":"git+https://github.com/dallasnews/dmn-arc-core-components.git"},"bugs":{"url":"https://github.com/dallasnews/dmn-arc-core-components/issues"},"license":"ISC","readme":"# Content Source: Site Service, v3 endpoint\n\nThis the Arc Core Component representing a content source that hooks into the\nSite Service portion of the Arc Suite and returns a feed of sites associated\nwith a particular website.\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 the Site Service, ensuring that no\nprivate secrets are exposed.\n\n## Pattern:\n\n`/site/v3/navigation/${serviceSite}/?hierarchy=${key.hierarchy || \"default\"}&_id=${key.section}`\n\n## Parameters:\n\nThis content source takes three parameters:\n\n- serviceSite - this is the Arc-Site.\n- hierarchy - the hierarchy you would like to return a list of sites for. If not\n  supplied, this falls back to `default`, which gives the top-level list of\n  sites.\n- section - If included, this will return sections beneath a specific section.\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_site-service-v3`\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   `site-service-v3.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 `site-service-v3.js`:\n\n```javascript\nimport source from \"@dmn-arc-core-components/content-source_site-service-v3\";\n\nexport default source;\n```\n\n## Using this content source with a schema\n\nYou'll want to set a schema for this within your Component Repo.\n[Look here for an example schema.](https://github.com/wapopartners/Skeleton-PageBuilder-Fusion-Features/blob/dev/content/schemas/site-service.js)\n","readmeFilename":"README.md"}