@europeana/portal
Version:
Europeana Portal
23 lines (22 loc) • 22.2 kB
JavaScript
export default {
"blogFoyerPage": "query BlogFoyerPage(\n $locale: String!,\n $preview: Boolean = false,\n $limit: Int = 20,\n $skip: Int = 0\n) {\n blogPostingCollection(preview: $preview, locale: $locale, order: datePublished_DESC, limit: $limit, skip: $skip) {\n total\n items {\n identifier\n name\n description\n primaryImageOfPage {\n image {\n url\n description\n contentType\n }\n }\n datePublished\n }\n }\n}\n",
"blogPostPage": "query BlogPostPage(\n $identifier: String!,\n $locale: String!,\n $preview: Boolean = false\n) {\n blogPostingCollection(preview: $preview, locale: $locale, where: { identifier: $identifier }, limit: 1) {\n items {\n identifier\n name\n description\n datePublished\n relatedLink\n categoriesCollection {\n items {\n name\n identifier\n }\n }\n primaryImageOfPage {\n ... imageWithAttributionFields\n }\n hasPartCollection(limit: 40) {\n total\n items {\n __typename\n ... on ContentTypeRichText {\n text\n }\n ... on Embed {\n embed\n }\n ... on ImageWithAttribution {\n ... imageWithAttributionFields\n }\n ... on ImageComparison {\n name\n hasPartCollection(limit: 2) {\n items {\n ... imageWithAttributionFields\n }\n }\n }\n ... on Link {\n url\n text\n }\n # CardGroup omitted intentionally\n }\n }\n authorCollection {\n items {\n name\n affiliation\n url\n }\n }\n contentWarning {\n name\n description\n }\n }\n }\n}\n\nfragment imageWithAttributionFields on ImageWithAttribution {\n name\n creator\n provider\n license\n url\n image {\n url\n description\n contentType\n width\n height\n }\n}\n",
"browseStaticPage": "query BrowseStaticPage(\n $identifier: String!,\n $locale: String!,\n $preview: Boolean = false\n) {\n browsePageCollection(preview: $preview, locale: $locale, where: { identifier: $identifier }, limit: 1) {\n items {\n identifier\n name\n headline\n description\n primaryImageOfPage {\n __typename\n ... on HeroHeader{\n title\n headline\n link {\n ... linkFields\n }\n image {\n ... imageWithAttributionFields\n }\n }\n }\n image {\n ...imageFields\n }\n hasPartCollection(limit: 20) {\n items {\n __typename\n ... on CardGroup {\n headline\n \ttext\n hasPartCollection(limit: 28) {\n items {\n __typename\n ... on AutomatedEntityCard {\n name\n identifier\n description\n slug\n entityImage: image\n }\n ... on AutomatedRecordCard {\n identifier\n encoding\n }\n ... on CuratedCard {\n name\n description\n url\n image {\n ...imageFields\n }\n }\n }\n }\n moreButton {\n url\n text\n }\n \t}\n ... on LatestCardGroup {\n genre\n }\n ... on AutomatedCardGroup {\n genre\n moreButton {\n url\n text\n }\n }\n ... on ContentTypeRichText {\n text\n }\n ... on PrimaryCallToAction {\n text\n relatedLink {\n url\n text\n }\n }\n }\n }\n }\n }\n staticPageCollection(preview: $preview, locale: $locale, where: { identifier: $identifier }, limit: 1) {\n items {\n identifier\n name\n description\n primaryImageOfPage {\n ...imageWithAttributionFields\n }\n image {\n ...imageFields\n }\n hasPartCollection(limit: 40) {\n total\n items {\n __typename\n ... on ContentTypeRichText {\n text\n }\n ... on Embed {\n embed\n }\n ... on ImageWithAttribution {\n ... imageWithAttributionFields\n }\n ... on ImageComparison {\n name\n hasPartCollection(limit: 2) {\n items {\n ... imageWithAttributionFields\n }\n }\n }\n ... on AutomatedCardGroup {\n genre\n moreButton {\n url\n text\n }\n }\n ... on Link {\n url\n text\n }\n ... on PrimaryCallToAction {\n text\n relatedLink {\n url\n text\n }\n }\n }\n }\n relatedLinks {\n ...linkGroupFields\n }\n }\n }\n}\nfragment imageFields on Asset {\n url\n contentType\n description\n width\n height\n}\nfragment imageWithAttributionFields on ImageWithAttribution {\n name\n creator\n provider\n license\n url\n image {\n ...imageFields\n }\n}\nfragment linkFields on Link {\n url\n text\n}\nfragment linkGroupFields on LinkGroup {\n identifier\n name\n links: linksCollection(limit: 10) {\n items {\n text\n url\n }\n }\n}\n",
"categories": "query categories(\n $locale: String!,\n $preview: Boolean = false\n) {\n\tcategoryCollection(\n\t\tpreview: $preview,\n \tlocale: $locale,\n \tlimit: 1000,\n order: name_ASC\n ) {\n items {\n identifier,\n name\n }\n }\n}\n",
"collectionPage": "query CollectionPage(\n $locale: String!,\n $identifier: String!,\n $preview: Boolean = false\n) {\n entityPage: entityPageCollection(\n preview: $preview, locale: $locale, limit: 1,\n where: { identifier: $identifier }\n ) {\n items {\n name\n nameEN: name(locale: \"en-GB\")\n description\n identifier\n genre\n primaryImageOfPage {\n url\n image {\n url\n description\n contentType\n }\n }\n relatedLinksCollection(limit: 4) {\n items {\n \tidentifier\n name\n nameEN: name(locale: \"en-GB\")\n slug\n description\n image\n }\n }\n hasPartCollection(limit: 20) {\n items {\n __typename\n ... on ContentTypeRichText {\n text\n }\n ... on CardGroup {\n headline\n \ttext\n # TODO: reduce this limit in CTF content model?\n hasPartCollection(limit: 60) {\n items {\n __typename\n ... on AutomatedEntityCard {\n name\n identifier\n description\n slug\n entityImage: image\n }\n ... on AutomatedRecordCard {\n identifier\n encoding\n }\n ... on CuratedCard {\n name\n description\n url\n image {\n url\n description\n contentType\n }\n }\n }\n }\n moreButton {\n url\n text\n }\n \t}\n }\n }\n }\n }\n}\n",
"curatedEntities": "query CollectionPage(\n $locale: String!,\n $preview: Boolean = false\n) {\n curatedEntities: entityPageCollection(preview: $preview, locale: $locale, limit: 1000) {\n items {\n name\n nameEN: name(locale: \"en-GB\")\n identifier\n genre\n description\n primaryImageOfPage {\n image {\n url\n contentType\n description\n }\n }\n }\n }\n}\n",
"entityRelatedContent": "query EntityRelatedContent(\n $locale: String!,\n $preview: Boolean = false,\n $limit: Int = 4,\n $entityUri: String!,\n $query: String = \"\"\n) {\n blogPostingCollection(\n where: { relatedLink_contains_some: [$entityUri], name_contains: $query },\n preview: $preview, locale: $locale, order: datePublished_DESC, limit: $limit\n ) {\n items {\n __typename\n name\n identifier\n primaryImageOfPage {\n image {\n url\n contentType\n description\n }\n }\n datePublished\n }\n }\n exhibitionPageCollection(\n where: { relatedLink_contains_some: [$entityUri], name_contains: $query },\n preview: $preview, locale: $locale, order: datePublished_DESC, limit: $limit\n ) {\n items {\n __typename\n name\n identifier\n primaryImageOfPage {\n image {\n url\n contentType\n description\n }\n }\n datePublished\n }\n }\n}\n",
"exhibitionChapterPage": "# This is inefficient as it collects the full data for all chapters when that\n# is only needed for the chapter being viewed, but is necessary to validate\n# that the requested exhibition and chapter are in fact linked.\n# Preferably we would request the chapter, with a where clause on\n# linkedFrom.exhibitionPageCollection, but that is not supported by the\n# Contentful GraphQL API.\nquery ExhibitionChapterPage(\n $locale: String!,\n $identifier: String!,\n $preview: Boolean = false\n) {\n exhibitionPageCollection(preview: $preview, locale: $locale, where: { identifier: $identifier }, limit: 1) {\n total\n items {\n name\n identifier\n credits\n contentWarning {\n name\n description\n }\n relatedLink\n hasPartCollection(limit: 40) {\n items {\n name\n identifier\n headline\n description\n primaryImageOfPage {\n ... imageWithAttributionFields\n }\n categoriesCollection(limit: 10) {\n items {\n name\n identifier\n }\n }\n hasPartCollection(limit: 40) {\n total\n items {\n __typename\n ... on ContentTypeRichText {\n text\n }\n ... on Embed {\n embed\n }\n ... on ImageWithAttribution {\n ... imageWithAttributionFields\n }\n ... on ImageComparison {\n name\n hasPartCollection(limit: 2) {\n items {\n ... imageWithAttributionFields\n }\n }\n }\n ... on Link {\n url\n text\n }\n # CardGroup omitted intentionally\n }\n }\n }\n }\n }\n }\n}\n\nfragment imageWithAttributionFields on ImageWithAttribution {\n name\n creator\n provider\n license\n url\n image {\n url\n description\n contentType\n width\n height\n }\n}\n",
"exhibitionCreditsPage": "query ExhibitionCreditsPage(\n $locale: String!,\n $identifier: String!,\n $preview: Boolean = false\n) {\n exhibitionPageCollection(preview: $preview, locale: $locale, where: { identifier: $identifier }, limit: 1) {\n items {\n name\n identifier\n credits\n relatedLink\n hasPartCollection(limit: 20) {\n items {\n identifier\n name\n primaryImageOfPage {\n image {\n url\n contentType\n }\n }\n }\n }\n }\n }\n}\n",
"exhibitionFoyerPage": "query ExhibitionFoyerPage(\n $locale: String!,\n $preview: Boolean = false,\n $limit: Int = 20,\n $skip: Int = 0\n) {\n exhibitionPageCollection(preview: $preview, locale: $locale, order: datePublished_DESC, limit: $limit, skip: $skip) {\n total\n items {\n identifier\n name\n description\n primaryImageOfPage {\n image {\n url\n description\n contentType\n }\n }\n }\n }\n}\n",
"exhibitionLandingPage": "query ExhibitionLandingPage(\n $identifier: String!,\n $locale: String!,\n $preview: Boolean = false\n) {\n exhibitionPageCollection(preview: $preview, locale: $locale, where: { identifier: $identifier }, limit: 1) {\n items {\n identifier\n name\n headline\n description\n text\n primaryImageOfPage {\n ...imageWithAttributionFields\n }\n hasPartCollection(limit: 20) {\n items {\n name\n identifier\n primaryImageOfPage {\n \t\t\t...imageWithAttributionFields\n \t\t}\n }\n }\n credits\n contentWarning {\n name\n description\n }\n categoriesCollection {\n items {\n name\n identifier\n }\n }\n relatedLink\n }\n }\n}\n\nfragment imageWithAttributionFields on ImageWithAttribution {\n name\n creator\n provider\n license\n url\n image {\n url\n description\n contentType\n }\n}\n",
"galleryFoyerPage": "query GalleryFoyerPage(\n $locale: String!,\n $preview: Boolean = false,\n $limit: Int = 20,\n $skip: Int = 0\n) {\n imageGalleryCollection(preview: $preview, locale: $locale, order: datePublished_DESC, limit: $limit, skip: $skip) {\n total\n items {\n identifier\n name\n description\n hasPartCollection(limit: 1) {\n total\n items {\n identifier\n encoding\n thumbnailUrl\n }\n }\n }\n }\n}\n",
"galleryPage": "query GalleryPage(\n $identifier: String!,\n $locale: String!,\n $preview: Boolean = false\n) {\n imageGalleryCollection(preview: $preview, locale: $locale, where: { identifier: $identifier }, limit: 1) {\n total\n items {\n identifier\n name\n description\n hasPartCollection(limit: 100) {\n total\n items {\n identifier\n encoding\n thumbnailUrl\n name\n }\n }\n contentWarning {\n name\n description\n }\n }\n }\n}\n",
"homePage": "query HomePage(\n $locale: String!,\n $preview: Boolean = false,\n $identifier: String,\n $date: DateTime\n) {\n homePageCollection(\n preview: $preview,\n locale: $locale,\n order: datePublished_DESC,\n limit: 1,\n where: {\n identifier: $identifier,\n datePublished_lte: $date\n }\n ) {\n items {\n name\n identifier\n sectionsCollection {\n items {\n __typename\n ... on PrimaryCallToAction {\n name\n \t\t\ttext\n \t\t\trelatedLink {\n \t\t\turl\n \t\t\ttext\n \t\t\t}\n image {\n ...illustrationFields\n }\n }\n }\n }\n primaryImageOfPage {\n ...imageWithAttributionFields\n }\n image {\n ...imageFields\n }\n }\n }\n}\n\nfragment imageWithAttributionFields on ImageWithAttribution {\n name\n creator\n provider\n license\n url\n image {\n ...imageFields\n }\n}\n\nfragment illustrationFields on Illustration {\n image {\n ...imageFields\n }\n}\n\nfragment imageFields on Asset {\n url\n contentType\n description\n width\n height\n}",
"latestCardGroups": "query LatestCardGroups(\n $preview: Boolean = false,\n $locale: String!,\n $limit: Int = 4,\n $exhibitions: Boolean = false,\n $galleries: Boolean = false,\n $blogPosts: Boolean = false\n) {\n exhibitionPageCollection(preview: $preview, locale: $locale, order: datePublished_DESC, limit: $limit) @include(if: $exhibitions) {\n total\n\t\titems {\n identifier\n name\n description\n primaryImageOfPage {\n ...imageWithAttributionFields\n }\n }\n }\n imageGalleryCollection(preview: $preview, locale: $locale, order: datePublished_DESC, limit: $limit) @include(if: $galleries) {\n total\n\t\titems {\n identifier\n name\n description\n hasPartCollection(limit: 1) {\n items {\n encoding\n }\n }\n }\n }\n blogPostingCollection(preview: $preview, locale: $locale, order: datePublished_DESC, limit: $limit) @include(if: $blogPosts) {\n total\n \titems {\n identifier\n name\n description\n primaryImageOfPage {\n ...imageWithAttributionFields\n }\n }\n }\n}\n\nfragment imageWithAttributionFields on ImageWithAttribution {\n image {\n url\n description\n contentType\n }\n}\n",
"latestEditorialContent": "query latestEditorialContent(\n $locale: String!,\n $preview: Boolean = false,\n $limit: Int = 1,\n $query: String = \"\"\n) {\n blogPostingCollection(\n where: { name_contains: $query },\n preview: $preview, locale: $locale, order: datePublished_DESC, limit: $limit\n ) {\n items {\n __typename\n name\n identifier\n primaryImageOfPage {\n image {\n url\n contentType\n description\n }\n }\n datePublished\n }\n }\n exhibitionPageCollection(\n where: { name_contains: $query },\n preview: $preview, locale: $locale, order: datePublished_DESC, limit: $limit\n ) {\n items {\n __typename\n name\n identifier\n primaryImageOfPage {\n image {\n url\n contentType\n description\n }\n }\n datePublished\n }\n }\n imageGalleryCollection(\n where: { name_contains: $query },\n preview: $preview, locale: $locale, order: datePublished_DESC, limit: $limit\n ) {\n items {\n __typename\n name\n identifier\n description\n hasPartCollection(limit: 1) {\n total\n items {\n identifier\n encoding\n thumbnailUrl\n }\n }\n }\n }\n}\n",
"relatedContent": "query EntityRelatedContent(\n $locale: String!,\n $preview: Boolean = false,\n $limit: Int = 4,\n $query: String = \"\"\n) {\n blogPostingCollection(\n where: { name_contains: $query },\n preview: $preview, locale: $locale, order: datePublished_DESC, limit: $limit\n ) {\n items {\n __typename\n name\n identifier\n primaryImageOfPage {\n image {\n url\n contentType\n description\n }\n }\n datePublished\n }\n }\n exhibitionPageCollection(\n where: { name_contains: $query },\n preview: $preview, locale: $locale, order: datePublished_DESC, limit: $limit\n ) {\n items {\n __typename\n name\n identifier\n primaryImageOfPage {\n image {\n url\n contentType\n description\n }\n }\n datePublished\n }\n }\n}\n",
"storiesBySysId": "query StoriesBySysId(\n $locale: String!,\n $preview: Boolean = false,\n $ids: [String]!,\n $limit: Int!,\n $query: String = \"\"\n) {\n\tblogPostingCollection(\n preview: $preview, locale: $locale, limit: $limit,\n where: { AND: [ { sys: { id_in: $ids } }, { name_contains: $query } ] }\n ) {\n ...blogPostingCollectionFields\n }\n exhibitionPageCollection(\n preview: $preview, locale: $locale, limit: $limit,\n where: { AND: [ { sys: { id_in: $ids } }, { name_contains: $query } ] }\n ) {\n ...exhibitionPageCollectionFields\n }\n}\n\nfragment blogPostingCollectionFields on BlogPostingCollection {\n items {\n __typename\n sys {\n id\n }\n identifier\n name\n primaryImageOfPage {\n ...imageWithAttributionFields\n }\n }\n}\n\nfragment exhibitionPageCollectionFields on ExhibitionPageCollection {\n items {\n __typename\n sys {\n id\n }\n identifier\n name\n primaryImageOfPage {\n ...imageWithAttributionFields\n }\n }\n}\n\nfragment imageWithAttributionFields on ImageWithAttribution {\n image {\n url\n contentType\n }\n}\n",
"storiesMinimal": "query storiesMinimal(\n $locale: String!,\n $preview: Boolean = false,\n $query: String = \"\"\n) {\n\tblogPostingCollection(\n preview: $preview, locale: $locale, order: datePublished_DESC, limit: 1500,\n where: { name_contains: $query }\n ) {\n items {\n date: datePublished\n sys {\n id\n }\n cats: categoriesCollection(limit: 5) {\n items {\n id: identifier\n }\n }\n }\n }\n exhibitionPageCollection(\n preview: $preview, locale: $locale, order: datePublished_DESC, limit: 150,\n where: { name_contains: $query }\n ) {\n items {\n date: datePublished\n sys {\n id\n }\n cats: categoriesCollection(limit: 5) {\n items: items {\n id: identifier\n }\n }\n }\n }\n}\n",
"storiesPage": "query StoriesPage(\n $identifier: String!,\n $locale: String!,\n $preview: Boolean = false\n) {\n browsePageCollection(\n preview: $preview,\n locale: $locale,\n where: { identifier: $identifier },\n limit: 1\n ) {\n items {\n identifier\n name\n hasPartCollection {\n items {\n __typename\n ... on PrimaryCallToAction {\n name\n \t\t\ttext\n \t\t\trelatedLink {\n \t\t\turl\n \t\t\ttext\n \t\t\t}\n image {\n ...illustrationFields\n }\n }\n }\n }\n }\n }\n}\n\nfragment illustrationFields on Illustration {\n image {\n url\n description\n contentType\n width\n height\n }\n}\n"
};