@arc-core-components/content-schema_ans-feed-v0.6.2
Advanced tools
Comparing version 0.1.4-beta.1 to 0.1.4-beta.2
@@ -1,2 +0,2 @@ | ||
module.exports="\n\ntype BasicPromoItems {\n type: String\n url: String\n}\n\ntype Byline {\n name: String\n org: String\n type: String\n}\n\ntype Credits {\n by: [Byline]\n}\n\ntype Description {\n basic: String\n}\n\ntype Headlines {\n basic: String\n}\n\ntype PromoItems {\n basic: BasicPromoItems\n}\n\ntype Subheadlines {\n basic: String\n}\n\ntype WebsiteSection {\n name: String\n}\n\ntype Website {\n website_section: WebsiteSection\n website_url: String\n}\n\ntype Websites {\n boatingmag: Website\n cruisingworld: Website\n fieldandstream: Website\n islands: Website\n motorcyclist: Website\n popsci: Website\n sailingworld: Website\n saveur: Website\n}\n\ntype ContentElement {\n type: String!\n version: String!\n canonical_url: String\n credits: Credits\n description: Description\n headlines: Headlines\n promo_items: PromoItems\n subheadlines: Subheadlines\n websites: Websites\n}\n\ntype Query {\n content_elements: [ContentElement]\n}\n"; | ||
module.exports="\n\ntype BasicPromoItems {\n type: String\n url: String\n}\n\ntype Byline {\n name: String\n org: String\n type: String\n}\n\ntype Credits {\n by: [Byline]\n}\n\ntype Description {\n basic: String\n}\n\ntype Headlines {\n basic: String\n}\n\ntype PromoItems {\n basic: BasicPromoItems\n}\n\ntype Subheadlines {\n basic: String\n}\n\ntype WebsiteSection {\n name: String\n}\n\ntype Website {\n website_section: WebsiteSection\n website_url: String\n}\n\ntype ContentElement {\n type: String!\n version: String!\n canonical_url: String\n credits: Credits\n description: Description\n headlines: Headlines\n promo_items: PromoItems\n subheadlines: Subheadlines\n websites: Websites\n}\n\ntype Query {\n content_elements: [ContentElement]\n}\n"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.contentSchemaAnsFeedV062=e()}(this,function(){return"\n\ntype BasicPromoItems {\n type: String\n url: String\n}\n\ntype Byline {\n name: String\n org: String\n type: String\n}\n\ntype Credits {\n by: [Byline]\n}\n\ntype Description {\n basic: String\n}\n\ntype Headlines {\n basic: String\n}\n\ntype PromoItems {\n basic: BasicPromoItems\n}\n\ntype Subheadlines {\n basic: String\n}\n\ntype WebsiteSection {\n name: String\n}\n\ntype Website {\n website_section: WebsiteSection\n website_url: String\n}\n\ntype Websites {\n boatingmag: Website\n cruisingworld: Website\n fieldandstream: Website\n islands: Website\n motorcyclist: Website\n popsci: Website\n sailingworld: Website\n saveur: Website\n}\n\ntype ContentElement {\n type: String!\n version: String!\n canonical_url: String\n credits: Credits\n description: Description\n headlines: Headlines\n promo_items: PromoItems\n subheadlines: Subheadlines\n websites: Websites\n}\n\ntype Query {\n content_elements: [ContentElement]\n}\n"}); | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.contentSchemaAnsFeedV062=e()}(this,function(){return"\n\ntype BasicPromoItems {\n type: String\n url: String\n}\n\ntype Byline {\n name: String\n org: String\n type: String\n}\n\ntype Credits {\n by: [Byline]\n}\n\ntype Description {\n basic: String\n}\n\ntype Headlines {\n basic: String\n}\n\ntype PromoItems {\n basic: BasicPromoItems\n}\n\ntype Subheadlines {\n basic: String\n}\n\ntype WebsiteSection {\n name: String\n}\n\ntype Website {\n website_section: WebsiteSection\n website_url: String\n}\n\ntype ContentElement {\n type: String!\n version: String!\n canonical_url: String\n credits: Credits\n description: Description\n headlines: Headlines\n promo_items: PromoItems\n subheadlines: Subheadlines\n websites: Websites\n}\n\ntype Query {\n content_elements: [ContentElement]\n}\n"}); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@arc-core-components/content-schema_ans-feed-v0.6.2", | ||
"version": "0.1.4-beta.1", | ||
"version": "0.1.4-beta.2", | ||
"description": "GraphQL schema for use with any content source returning a feed of ANS stories.", | ||
"main": "build/index.js", | ||
"module": "build/index.es.js", | ||
"repository": { | ||
@@ -20,3 +21,3 @@ "type": "git", | ||
"xo": false, | ||
"gitHead": "45173e282da54dfed4cb1702630b5588e2e40cfa" | ||
"gitHead": "17ee05dd56f20ad0e41b0ae5c535e44e23f32848" | ||
} |
# Content Schema: ANS Feed (0.6.2) | ||
This the Arc Core Component representing a GraphQL schema that can be used with a content source. | ||
This the Arc Core Component representing a GraphQL schema that can be used with | ||
a content source. | ||
@@ -9,17 +10,23 @@ ## Getting started | ||
It should be used for any feature showing a feed of ANS stories, such as a feed-driven flex feature. | ||
It should be used for any feature showing a feed of ANS stories, such as a | ||
feed-driven flex feature. | ||
1. Add this schema as a dependency of the repo. | ||
`npm install @arc-core-components/content-schema_ans-feed-v0.6.2` | ||
1. Create a file of your desired schema name within the `/schemas` folder. For this content source, the suggested name is `ans-feed.js` | ||
1. This is the name you should use when referencing this schema in any content config within a custom field. | ||
`npm install @arc-core-components/content-schema_ans-feed-v0.6.2` | ||
1. Create a file of your desired schema name within the `/schemas` folder. For | ||
this content source, the suggested name is `ans-feed.js` | ||
1. This is the name you should use when referencing this schema in any content | ||
config within a custom field. | ||
1. Paste the following into `ans-feed.js`: | ||
``` | ||
import schema from '@arc-core-components/content-schema_ans-feed-v0.6.2' | ||
export default schema | ||
``` | ||
``` | ||
import schema from '@arc-core-components/content-schema_ans-feed-v0.6.2' | ||
export default schema | ||
``` | ||
## What does this schema return? | ||
This is very much the first draft of this content source, and may not define desired fields for every item. We will likely add more fields to it as we work through use cases. | ||
This is very much the first draft of this content source, and may not define | ||
desired fields for every item. We will likely add more fields to it as we work | ||
through use cases. |
@@ -43,13 +43,2 @@ const schema = ` | ||
type Websites { | ||
boatingmag: Website | ||
cruisingworld: Website | ||
fieldandstream: Website | ||
islands: Website | ||
motorcyclist: Website | ||
popsci: Website | ||
sailingworld: Website | ||
saveur: Website | ||
} | ||
type ContentElement { | ||
@@ -56,0 +45,0 @@ type: String! |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9991
12
32
66